[PATCH 1/1] gdb, python: update threads in Inferior.threads ()

Metzger, Markus T markus.t.metzger@intel.com
Thu Jul 26 08:49:00 GMT 2012


> -----Original Message-----
> From: Jan Kratochvil [mailto:jan.kratochvil@redhat.com]
> Sent: Thursday, July 26, 2012 10:42 AM
> To: Metzger, Markus T


> > Thanks. Who would be the approver of the change?
> 
> I believe Tom approved it this way.

Ah. Good.


> 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. I'll send an updated patch.

Would be nice to have a library function similar to runto that does this.

Regards,
Markus.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 7228 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20120726/03f37cc3/attachment.p7s>
-------------- next part --------------
Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen, Deutschland
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Douglas Lusk, Peter Gleissner, Hannes Schwaderer, Christian Lamprechter
Registergericht: Muenchen HRB 47456
Ust.-IdNr./VAT Registration No.: DE129385895
Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052


More information about the Gdb-patches mailing list