can't gdb across fork

Simon 'corecode' Schubert corecode at fs.ei.tum.de
Sun Oct 25 09:54:44 PDT 2009


When the debugged process performs a fork(), gdb/ptrace won't notice and 
will not be able to remove breakpoints in the new child.  When the child 
then hits a breakpoint, it will receive a SIGTRAP and dump core.

gdb needs to be aware of forks, so that it will be able to remove the 
breakpoints in the child.

Test:  gdb sh and break stalloc.

--
  <3 the future  +++  RENT this banner advert  +++   ASCII Ribbon   /"\
  rock the past  +++  space for low CHF NOW!1  +++     Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \




More information about the Bugs mailing list