This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

breakpoint on a non-executable line


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.

Nick


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]