diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2003-11-06 13:19:06 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2003-11-06 13:19:06 +0000 |
commit | 681db0fae3b644e9604f4620a63fdfd9b39ffc3c (patch) | |
tree | 4728962f29bebc749e11ff1595a53d8024131857 | |
parent | f5c6bee4e5e854eb11f5b393e908b69d3b043c2a (diff) |
Teach gdb about the existence of SIGINFO. Fixes PR 3173.
"Works for me" todd@ ok mickey@ fgsch@
-rw-r--r-- | gnu/usr.bin/binutils/gdb/target.c | 10 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/gdb/target.h | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/gdb/target.c b/gnu/usr.bin/binutils/gdb/target.c index 6f0c6deeec5..42825e0dd3d 100644 --- a/gnu/usr.bin/binutils/gdb/target.c +++ b/gnu/usr.bin/binutils/gdb/target.c @@ -1064,7 +1064,11 @@ static struct { {"SIGVTALRM", "Virtual timer expired"}, {"SIGPROF", "Profiling timer expired"}, {"SIGWINCH", "Window size changed"}, +#if defined(SIGINFO) + {"SIGINFO", "Information request"}, +#else {"SIGLOST", "Resource lost"}, +#endif {"SIGUSR1", "User defined signal 1"}, {"SIGUSR2", "User defined signal 2"}, {"SIGPWR", "Power fail/restart"}, @@ -1245,6 +1249,9 @@ target_signal_from_host (hostsig) #if defined (SIGWINCH) if (hostsig == SIGWINCH) return TARGET_SIGNAL_WINCH; #endif +#if defined (SIGINFO) + if (hostsig == SIGINFO) return TARGET_SIGNAL_INFO; +#endif #if defined (SIGURG) if (hostsig == SIGURG) return TARGET_SIGNAL_URG; #endif @@ -1464,6 +1471,9 @@ target_signal_to_host (oursig) #if defined (SIGLOST) case TARGET_SIGNAL_LOST: return SIGLOST; #endif +#if defined (SIGINFO) + case TARGET_SIGNAL_INFO: return SIGINFO; +#endif #if defined (SIGWAITING) case TARGET_SIGNAL_WAITING: return SIGWAITING; #endif diff --git a/gnu/usr.bin/binutils/gdb/target.h b/gnu/usr.bin/binutils/gdb/target.h index ffba65a5526..35d4a153b22 100644 --- a/gnu/usr.bin/binutils/gdb/target.h +++ b/gnu/usr.bin/binutils/gdb/target.h @@ -129,6 +129,7 @@ enum target_signal { TARGET_SIGNAL_VTALRM = 26, TARGET_SIGNAL_PROF = 27, TARGET_SIGNAL_WINCH = 28, + TARGET_SIGNAL_INFO = 29, TARGET_SIGNAL_LOST = 29, TARGET_SIGNAL_USR1 = 30, TARGET_SIGNAL_USR2 = 31, |