OmegaPhil:
> Cheers - just out of interest, do you know how to set a watchpoint  on
> errno in gdb? That wouldve saved a lot of time. It seems gdb is only
> capable of using errno in an expression when it suits it...

In our ancient age, the global errno was just a intger variable. In
these days, especially in the multi-threaded application, errno is a
macro which is expanded to a local address (per thread).
If this is your case,
- obtain the address
- "watch *(int*)0x123abc"  (the address you got)
may help.


J. R. Okajima

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot

Reply via email to