This is the mail archive of the archer@sourceware.org mailing list for the Archer 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: [Archer] Re: [Archer] Re: [Archer] Stop the Insanity! LinespecRewrite


> Pedro pointed out that your original note actually said that you thought
> "TASK" was accepted by Keith's branch, not CVS HEAD.
> But, this isn't the case, the code uses strncmp.
> So, I think there is no change in behavior here and everything is ok.

Aha, indeed, it's not what I thought.  I think that the "TASK" keyword
and what is behind it appears to be ignored when the "*" syntax is
used. The following works as expected:

    (gdb) break *break_me'address task 2
    Breakpoint 2 at 0x403a52: file /[...]/task_switch.adb, line 55.
    (gdb) info break
    [...]
    2       breakpoint     keep y   0x0000000000403a52 in task_switch.break_me 
                                    at /[...]/task_switch.adb:55 task 2
                                                                 ^^^^^^

The following accepts the command:

    (gdb) break *break_me'address TASK 2
    Note: breakpoint 2 also set at pc 0x403a52.
    Breakpoint 3 at 0x403a52: file /[...]/task_switch.adb, line 55.

But inserts a breakpoint without the task constraint:

    (gdb) info break
    [...]
    3       breakpoint     keep y   0x0000000000403a52 in task_switch.break_me 
                                    at /[...]/task_switch.adb:55

It might be something to do with the Ada expression parser?

-- 
Joel


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