This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: breakpoint on a non-executable line
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Jafa <jafa at silicondust dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 28 Aug 2003 15:02:23 -0400
- Subject: Re: breakpoint on a non-executable line
- References: <3F4E35CB.3080300@redhat.com> <015801c36d96$95ea2d20$0502a8c0@scenix.com>
On Thu, Aug 28, 2003 at 12:00:02PM -0700, Jafa wrote:
> Hi all,
>
> I am seeing a problem/feature? of gdb (June top of trunk) where if you issue
> a command to set a breakpoint on a non-executable line it will return the
> line specified, regardless of where it actually set.
>
> For example:
>
> (gdb) b /ubicom/toolchain/src/ld/ldmain.c:1
> Breakpoint 2 at 0x41b800: file /ubicom/toolchain/src/ld/ldmain.c, line 1.
>
> (It actually put the breakpoint on line 167).
>
> Is this the desired behavior? I would have expected it to return success -
> line 167.
Do you know if this is a change?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer