This is the mail archive of the gdb@sourceware.org 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]

Re: Pending breakpoints on lines that don't exist


>>>>> "Marc" == Marc Khouzam <marc.khouzam@ericsson.com> writes:

Marc> (gdb) b 2
Marc> No line 2 in the current file.
Marc> Make breakpoint pending on future shared library load? (y or [n]) y
Marc> Breakpoint 1 (2) pending.

This is intended, but I wonder whether it would make sense to have
different behavior in the case where the file is implicit.

That is, "b 2" would just give the old error, but "b currentfile.c:2"
would prompt for a pending breakpoint.

The rationale for this would be that, in the implicit filename case, the
user is presumably asking for exactly the current file.

Tom


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