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 ()


> -----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.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

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