------- Comment #2 from hjl dot tools at gmail dot com  2008-07-04 13:19 -------
Created an attachment (id=15853)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15853&action=view)
A testcase without drap 

[EMAIL PROTECTED] stack-10]$
/export/build/gnu/gcc-stack-internal/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc-stack-internal/build-x86_64-linux/gcc/ -m32 bar.c -g
[EMAIL PROTECTED] stack-10]$ gdb a.out 
GNU gdb 6.8.50.20080605-cvs
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...
(gdb) b foo
Breakpoint 1 at 0x80483b1: file bar.c, line 11.
(gdb) r
Starting program: /export/home/hjl/bugs/gcc/stack-10/a.out 

Breakpoint 1, foo (dummy1=1, dummy2=2, dummy3=3, dummy4=4, dummy5=5, dummy6=6, 
    size=30) at bar.c:11
11        xxx = 2;
(gdb) next
12        ptr [1]= 30;
(gdb) 
13        printf ("%d: %d\n", xxx, ptr [1]);
(gdb) p xxx
$1 = 3
(gdb) p  ptr [1]
$2 = 0 '\0'
(gdb) 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36728

Reply via email to