This is the mail archive of the
mailing list for the GDB project.
Re: set multiple-symbol ask/cancel not working
>>>>> "Tom" == Tom Tromey <firstname.lastname@example.org> writes:
Tom> Since the "canonical form" doesn't actually have to be valid input to
Tom> linespec (it is only used for filtering the results -- well, it is now
Tom> that I fixed a couple of bad uses), I went ahead and changed
Tom> linespec.c:add_sal_to_sals to use FILE:FUNCTION:LINE for the canonical
Tom> form in this case.
Tom> This gives:
Tom> (gdb) b pck.adb:normal_Menu
Tom>  cancel
Tom>  all
Tom>  pck.adb:pck.normal_menu:4
Tom>  pck.adb:pck.normal_menu:8
I am not at all sure about doing this. It means that the breakpoint
will stop working if the line number changes.
Maybe this is ok, since it is what the user asked for in
multiple-symbols=ask mode -- not the default, so he essentially asked
Another option would be to only apply this treatment to Ada.
I'll send the current patches, with this in place, regardless.