This is the mail archive of the gdb-patches@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: [RFA] new set/show multiple-symbols command (take 4)


On Sat, Feb 02, 2008 at 11:08:25PM -0800, Joel Brobecker wrote:
>> ? ? ? ? (gdb) set multiple-symbols (ask|all|cancel)
>> ? ? ? ? (gdb) show multiple-symbols
>

Hi, I wanted to get this question out here, I am kind of assuming it
might be too late to change this
to something to the effect of 'set multiple-symbols behaviour (ask|all|cancel)'

I would like to add something to the effect of

set multiple-symbols override-list 'foo=uhh::foo(void):bar=uhh::bar(int)'
or maybe
set multiple-symbols override-list add foo=uhh::foo(void)

It could always be added as a separate command 'set
multiple-symbols-override-list'
unless it is possible to have both:

set multiple-symbols (ask|all|cancel)
set multiple-symbols override-list 'list'

the idea is to first check the override-list, then fall if its not
found, fall back to (ask|all|cancel)

I was trying to think of a generic way I could avoid this hack in the
apple sources, will work on a patch in the nearish future:

      /* APPLE LOCAL: Don't look for method name matches if
         it's ``main''.  AppKit has a couple of classes with "main"
         methods now and this means every time you type "b main"
         on an ObjC program you get a "Select one of the following"
         dialogue.  Lame.  And it doesn't look like we can talk the
         AppKit guys down, so hack it in here.
         Jeez.  Same thing with "error" now.  Guess what function I put
         a breakpoint on all the time while working on gdb... */


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