Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Aug 2006 19:10:03 -0700
From:      Marcel Moolenaar <marcel@xcllnt.net>
To:        Peter Grehan <grehan@freebsd.org>
Cc:        ppc@freebsd.org
Subject:   Re: gdb(1) in the tree
Message-ID:  <356BD079-D1A6-41E9-ADAB-371A096EB82E@xcllnt.net>
In-Reply-To: <44EE49A2.1050809@freebsd.org>
References:  <FF91B2A4-68A6-4F30-B3A2-91B849B51415@xcllnt.net>	<44ED2448.7030503@freebsd.org>	<46D747A2-7126-450A-83E4-DA7367706F18@xcllnt.net> <44EE45EC.3040403@freebsd.org> <44EE49A2.1050809@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@xcllnt.net





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?356BD079-D1A6-41E9-ADAB-371A096EB82E>