skip to main | skip to sidebar

Wednesday, August 22, 2007

Setarea unui breakpoint in child, inainte de fork() .

GDB-ul, in mod default, nu se ataseaza la copiii creati de un proces.

Rezolvarea e cam așa:

gdb --args ./main -u $USER -h $USER -W ~/rtd/5.0 -l 15 -f ~/rtd/5.0/dbg
start
break file.cpp:666
set follow-fork-mode child
continue

Posted by yahim at 17:49

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

2am life facts

2am life facts

Blog Archive

  • ▼  2007 (30)
    • ►  September (4)
    • ▼  August (5)
      • Excursie Corfu 2007
      • AVR tutorial
      • Nice projects for do it yourself
      • Helmet action camera
      • Setarea unui breakpoint in child, inainte de fork() .
    • ►  July (2)
    • ►  June (4)
    • ►  April (3)
    • ►  March (12)
  • ►  2006 (20)
    • ►  June (2)
    • ►  May (3)
    • ►  April (8)
    • ►  March (2)
    • ►  February (3)
    • ►  January (2)
  • ►  2005 (20)
    • ►  December (3)
    • ►  November (1)
    • ►  October (1)
    • ►  September (1)
    • ►  August (1)
    • ►  July (3)
    • ►  May (3)
    • ►  April (7)
  • ►  2004 (11)
    • ►  November (1)
    • ►  September (3)
    • ►  August (2)
    • ►  July (1)
    • ►  June (1)
    • ►  May (3)

Labels

  • computer
  • foto
  • fun
  • turism
  • vacation

Favourite links

  • 2AM photo of the day website