Google-Apps
Hauptmenü

"gdb trick"

4 Comments -

1 – 4 of 4
Blogger Luis Villa said...

Clearly you never had to debug evolution. thread apply all bt is burned into my brain, still, getting on 8 years later...

18 June 2009 at 18:31

Blogger Bastien Nocera said...

I know thread apply all bt very well, the trick here is the fact that you can get the backtrace for a breakpoint without stopping the software.

18 June 2009 at 19:03

Anonymous Anonymous said...

Try out http://sourceware.org/gdb/wiki/PythonGdb .
You write some nice python scripts :)

18 June 2009 at 19:24

Anonymous Andy said...

For some cases, it is also handy to use:

set scheduler-locking on

This will prevent any other threads from being run, and you can explicitly choose which thread to run (with "thread [threadnumber]").

It lets you make your race condition a bit more deterministic.

21 June 2009 at 11:29

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.
Please prove you're not a robot