frame information missing
nagaraju.m
nagaraju.m@redpinesignals.com
Wed Jun 10 05:57:00 GMT 2009
Hi,
I have recently ported gdb-6.8. I took frv as reference for my
*-tdep file. Every thing is working fine but,
Whenever a function is called it is printing whole stack instead
of printing function arguments..
*consider the following simple program*
int add(int a,int b)
{
return (a+b);
}
int main()
{
int a=10,b=20;
b = add(a,b);
}
* GDB Behaviour*
(gdb) tar sim
Connected to the simulator.
(gdb) lo
Loading section .text, size 0x320 lma 0x0
Loading section .data, size 0x38c lma 0x320
Start address 0x100
Transfer rate: 13664 bits in <1 sec.
(gdb) b main
Breakpoint 1 at 0x154: file add.c, line 8.
(gdb) r
Starting program: /work/nagarajul/scripts/a.out
Breakpoint 1, main () at add.c:8
8 int a=10,b=20;
(gdb) s
9 b = add(a,b);
(gdb)
add (a=0, b=0) at add.c:2
2 {
(gdb)
*add (a=10,
b=20, 450224, 368, 10, 20, 20, 10, 0, 302, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) at add.c:3*
3 return (a+b);
(gdb)
4 }
(gdb)
main () at add.c:10
10 }
(gdb) p b
$1 = 30
can any one please suggest where should i give frame boundaries.
Thanks,
Nagaraju.M
More information about the Gdb
mailing list