Subject: Can't have `gdb' make proper "steps"
To: None <port-amiga@netbsd.org>
From: Jerome Lovy <jlovy@mygale.org>
List: port-amiga
Date: 10/10/1998 19:33:08
Hi,
Using vanilla gdb on NetBSD-1.3 (/amiga), I just cannot get it to
make `next' properly.
It happens to stop somewhere in a function where I didn't put any
breakpoint.
Here is a dump of my session (trying to run `mgv' step-by-step) :
GDB is free software and you are welcome to 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.
GDB 4.16 (m68k-netbsd), Copyright 1996 Free Software Foundation,
Inc...
(gdb) break main
Breakpoint 1 at 0x1117e: file main.c, line 445.
(gdb) run
Starting program: /home/jlovy/mgv-3.1.5/mgv
Breakpoint 1, main (argc=1, argv=0xdfff6a0) at main.c:445
445 sig_init();
(gdb) next
447 if((me = strrchr(argv[0], '/')) == NULL)
(gdb) next
0x3c364 in _DYNAMIC ()
(gdb)
As you can see, the first `next' is OK. But does anyone know
where this `_DYNAMIC()' comes from ?
Would it mean that one cannot properly debug dynamically linked
programs ?
(I didn't try a static version yet, because my `lesstif' is only
dynamic...)
Regards,
Jerome
PS : Some more precisions :
GDB 4.16 (m68k-netbsd)
NetBSD orpheus 1.3 NetBSD 1.3 (GENERIC) #0: Wed Dec 31 02:53:20
EST 1997
Amiga 4000 (68060 rev.5 CPU/MMU/FPU)
real mem = 67108864 (8192 pages)
avail mem = 60907520 (7435 pages)