Question about GDB event mechanism
Tom Tromey
tromey@redhat.com
Wed May 9 20:34:00 GMT 2012
>>>>> "Siva" == Siva Chandra <sivachandra@google.com> writes:
Siva> I am trying to understand the event mechanism when used in Python
Siva> code.
I'm sorry about the delay in my reply.
I was away.
Siva> I would expect "Hello, Breakpoint!" to be printed, but it is not being
Siva> printed as 'run' is executed via 'execute_command_to_string' which
Siva> will reset gdb_stdout only after 'execute_command' returns. The
Siva> notification of the breakpoint event is sent via 'normal_stop' before
Siva> 'execute_command' returns.
[...]
Siva> Hence, should the current behavior be documented or fixed?
I think it is a bug.
In my view, the events should trigger for all stops, regardless of where
the command originated.
Tom
More information about the Gdb
mailing list