This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/20035] New: gdb doesn't handle SIGINT on OS X when attaching to a process
- From: "edmunoz at microsoft dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 02 May 2016 20:30:09 +0000
- Subject: [Bug gdb/20035] New: gdb doesn't handle SIGINT on OS X when attaching to a process
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=20035
Bug ID: 20035
Summary: gdb doesn't handle SIGINT on OS X when attaching to a
process
Product: gdb
Version: 7.11
Status: NEW
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: edmunoz at microsoft dot com
Target Milestone: ---
On OS X, when attaching to a simple program (e.g., infinite loop), gdb doesn't
handle SIGINT signals sent to the debuggee, and hence the process can't be
interrupted. This does not repro when the debuggee is started by gdb (using
'run').
1. Attach gdb
$ gdb a.out
(gdb) attach <PID>
(gdb) continue
2. Send a SIGINT to the debuggee
$ kill -2 <PID>
3. The debuggee exits
[Inferior 1 (process <PID>) exited normally]
Expected
gdb should handle the SIGINT sent to the debuggee, as shown when executing
"info handle".
I tried this with executables built with clang and gcc (gcc-5 (Homebrew gcc
5.3.0) 5.3.0).
The configuration of gdb is
--host=x86_64-apple-darwin14.5.0 --target=x86_64-apple-darwin14.5.0
--with-auto-load-dir=:${prefix}/share/auto-load
--with-auto-load-safe-path=:${prefix}/share/auto-load
--with-expat
--with-gdb-datadir=/usr/local/Cellar/gdb/7.11/share/gdb (relocatable)
--with-jit-reader-dir=/usr/local/Cellar/gdb/7.11/lib/gdb (relocatable)
--without-libunwind-ia64
--without-lzma
--with-python=/System/Library/Frameworks/Python.framework/Versions/2.7
--without-guile
--with-separate-debug-dir=/usr/local/Cellar/gdb/7.11/lib/debug (relocatable)
--without-babeltrace
The version of my OS is OS X Yosemite 10.10.5
$ uname -a
Darwin 14.5.0 Darwin Kernel Version 14.5.0: Mon Jan 11 18:48:35 PST 2016;
root:xnu-2782.50.2~1/RELEASE_X86_64 x86_64
--
You are receiving this mail because:
You are on the CC list for the bug.