Sysprogs forums › Forums › VisualGDB › Can't attach to existing process › Reply To: Can't attach to existing process
March 26, 2016 at 19:46
#7845
BitFlipper
Participant
I actually found out that adding the following as part of the gdb command for the PID works:
pidof my_program
This assumes there is only 1 instance of my_program running at the time.
[EDIT] It appears the forum software is removing the grave accents from the above command. It needs to be inside “`”.
- This reply was modified 8 years, 1 month ago by BitFlipper.
- This reply was modified 8 years, 1 month ago by BitFlipper.
- This reply was modified 8 years, 1 month ago by BitFlipper.
- This reply was modified 8 years, 1 month ago by BitFlipper.