Re: gdb continues when I want "next"

Michael Snyder
2007-03-07T19:09:20Z

> Breakpoint 1, CPTLinearGraphic::CalculateLinLines (this=0x9251de0)
> at
> /home/gru/projects/vxp/branches/branch-0-2-10-X/Dafit_Code/drawdevices/CPTLinearGraphic.cpp:1640
> (gdb) n
> (gdb) n
> Detaching after fork from child process 29873.
> [Thread -1863816272 (LWP 29869) exited]
>
> Program received signal SIGTRAP, Trace/breakpoint trap.
> [Switching to Thread -1863816272 (LWP 29869)]
> 0xb7446891 in __nptl_death_event () from
> /lib/tls/i686/cmov/libpthread.so.0

Hang on -- are we forking a multi-threaded program?
Can't really do that, you know... or at least, it's
likely to be quite unpredictable unles the *only* thing
the fork-child does is call exec.