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: [PATCH 1/1] gdb, python: update threads in Inferior.threads ()


On Thu, 26 Jul 2012 09:49:44 +0200, Metzger, Markus T wrote:
> > Otherwise looks good to me.
> 
> Thanks. Who would be the approver of the change?

I believe Tom approved it this way.

BTW instead of those two runto calls it would be cheaper to:

gdb_breakpoint "check_threads"
gdb_continue_to_breakpoint "check_threads" ".* pthread_barrier_wait .*"

and

gdb_breakpoint [gdb_get_line_number "Break here."]
gdb_continue_to_breakpoint "Break-here" {.* Break here\. .*}

(The second parameter to gdb_continue_to_breakpoint is not mandatory.)

Otherwise you do the whole spawn of gdbserver 2 more times.


Thanks,
Jan


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