gdb(1) in the tree

Marcel Moolenaar marcel at xcllnt.net
Fri Aug 25 02:10:37 UTC 2006


On Aug 24, 2006, at 5:51 PM, Peter Grehan wrote:

> Oops, previous one was wrong non-compilable version :(

Alas, no fix:

imac% gdb sig
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 "powerpc-marcel-freebsd"...
(gdb) b main
Breakpoint 1 at 0x18015bc: file sig.c, line 20.
(gdb) run
Starting program: /nfs/home/marcel/sig

Program exited normally.
(gdb)


Adding a second breakpoint does the trick:


(gdb) b breakpoint
Breakpoint 2 at 0x180155c: file sig.c, line 6.
(gdb) run
Starting program: /nfs/home/marcel/sig

Breakpoint 1, main () at sig.c:20
20              sa.sa_sigaction = handler;
(gdb)


However, the second breakpoint is not hit then:


(gdb) c
Continuing.

Program exited normally.
(gdb)


FYI,

-- 
  Marcel Moolenaar         USPA: A-39004          marcel at xcllnt.net




More information about the freebsd-ppc mailing list