This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/20266] Broken gdb with Apple's macOS 10.12 Sierra Beta - SIGTRAP


https://sourceware.org/bugzilla/show_bug.cgi?id=20266

--- Comment #3 from Pedro Alves <palves at redhat dot com> ---
Note that "During startup program terminated..." indicates that it's the shell
that died.  GDB starts the program like "sh -c '$program $arg1 $arg2'".

Usually, on Unix systems, gdb will see one SIGTRAP that indicates that the
shell execed the final program, and so gdb is now actually debugging the
program.

Maybe the problems is that now on macOS gdb needs to expect two traps.

See the START_INFERIOR_TRAPS_EXPECTED define in gdb's sources.  Try bumping it.

But first try the "set startup-with-shell off" command.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]