8

I'm getting this error when I try running a program using gdb.

    (gdb) run
      Starting program: /Users/vp/personal/a.out 
      [New Thread 0x1803 of process 3676]
      [New Thread 0x1b03 of process 3676]
      During startup program terminated with signal SIGTRAP, Trace/breakpoint trap.
     (gdb)

Anybody have any ideas regarding the message?

nullbyte
  • 1,178
  • 8
  • 16

1 Answers1

0

The reason for this on my system running on High Sierra was that the file .gdbinit was not found. I was using Eclipse C/C++ as a code editor. In the debug configuration under "Debugger" the path to the .gdbinit must be specified, e.g. /Users/john/.gdbinit. Then gdb with Eclipse works.

In addition the instructions for using gdb 8.0.1 must be used.

k_o_
  • 5,143
  • 1
  • 34
  • 43