Source lines don't advance on x86-64
Michal Ludvig
mludvig@suse.cz
Thu Feb 28 09:35:00 GMT 2002
Hi,
I'm having following problem on a x86-64 architecture:
1) I have a sourcefile tst.c:
int main()
{
int i;
i=0;
return i;
}
2) I compiled it with a native gcc:
gcc -g -o tst tst.c
3) And am debugging with native gdb:
***********
GNU gdb 2002-02-20-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux"...
(gdb) br main
Breakpoint 1 at 0x400440: file tst.c, line 2.
(gdb) r
Starting program: /tmp/tst
Breakpoint 1, main () at tst.c:2
2 int main()
(gdb) n
4 int main()
(gdb)
5 int main()
(gdb)
6 int main()
(gdb)
0x2a95691da8 in _dl_pagesize () from /lib64/libc.so.6
(gdb) ^D
***********
As you can see, the current line of source code doesn't correspond with
what is actually been done. Where and how can I fix it?
Thanks in advance
Michal Ludvig
--
* SuSE CR, s.r.o * mludvig@suse.cz
* +420 2 9654 5373 * http://www.suse.cz
More information about the Gdb
mailing list