diff options
author | Pedro Alves <palves@redhat.com> | 2012-05-24 16:39:15 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2012-05-24 16:39:15 +0000 |
commit | 2ea286498fd2ddceaf074bfbc9a2986777ea0396 (patch) | |
tree | 4360c24b1ef43fad4fa8143e65435c33f053617c /gdb/procfs.c | |
parent | b09846a918b74f0371149f730f8b391548b11a8d (diff) | |
download | gdb-2ea286498fd2ddceaf074bfbc9a2986777ea0396.zip gdb-2ea286498fd2ddceaf074bfbc9a2986777ea0396.tar.gz gdb-2ea286498fd2ddceaf074bfbc9a2986777ea0396.tar.bz2 |
gdb/
2012-05-24 Pedro Alves <palves@redhat.com>
PR gdb/7205
Replace target_signal with gdb_signal throughout.
gdb/gdbserver/
2012-05-24 Pedro Alves <palves@redhat.com>
PR gdb/7205
Replace target_signal with gdb_signal throughout.
include/gdb/
2012-05-24 Pedro Alves <palves@redhat.com>
PR gdb/7205
Replace target_signal with gdb_signal throughout.
sim/common/
2012-05-24 Pedro Alves <palves@redhat.com>
PR gdb/7205
Replace target_signal with gdb_signal throughout.
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r-- | gdb/procfs.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c index 0d47f80..7c5bfd3 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -112,7 +112,7 @@ static void procfs_attach (struct target_ops *, char *, int); static void procfs_detach (struct target_ops *, char *, int); static void procfs_resume (struct target_ops *, - ptid_t, int, enum target_signal); + ptid_t, int, enum gdb_signal); static void procfs_stop (ptid_t); static void procfs_files_info (struct target_ops *); static void procfs_fetch_registers (struct target_ops *, @@ -2122,7 +2122,7 @@ proc_set_current_signal (procinfo *pi, int signo) get_last_target_status (&wait_ptid, &wait_status); if (ptid_equal (wait_ptid, inferior_ptid) && wait_status.kind == TARGET_WAITKIND_STOPPED - && wait_status.value.sig == target_signal_from_host (signo) + && wait_status.value.sig == gdb_signal_from_host (signo) && proc_get_status (pi) #ifdef NEW_PROC_API && pi->prstatus.pr_lwp.pr_info.si_signo == signo @@ -4182,7 +4182,7 @@ make_signal_thread_runnable (procinfo *process, procinfo *pi, void *ptr) static void procfs_resume (struct target_ops *ops, - ptid_t ptid, int step, enum target_signal signo) + ptid_t ptid, int step, enum gdb_signal signo) { procinfo *pi, *thread; int native_signo; @@ -4214,7 +4214,7 @@ procfs_resume (struct target_ops *ops, (signo == TARGET_SIGNAL_STOP && pi->ignore_next_sigstop)) native_signo = 0; else - native_signo = target_signal_to_host (signo); + native_signo = gdb_signal_to_host (signo); pi->ignore_next_sigstop = 0; @@ -4273,7 +4273,7 @@ procfs_pass_signals (int numsigs, unsigned char *pass_signals) for (signo = 0; signo < NSIG; signo++) { - int target_signo = target_signal_from_host (signo); + int target_signo = gdb_signal_from_host (signo); if (target_signo < numsigs && pass_signals[target_signo]) gdb_prdelset (&signals, signo); } @@ -5411,7 +5411,7 @@ procfs_first_available (void) static char * procfs_do_thread_registers (bfd *obfd, ptid_t ptid, char *note_data, int *note_size, - enum target_signal stop_signal) + enum gdb_signal stop_signal) { struct regcache *regcache = get_thread_regcache (ptid); gdb_gregset_t gregs; @@ -5462,7 +5462,7 @@ struct procfs_corefile_thread_data { bfd *obfd; char *note_data; int *note_size; - enum target_signal stop_signal; + enum gdb_signal stop_signal; }; static int @@ -5492,7 +5492,7 @@ find_signalled_thread (struct thread_info *info, void *data) return 0; } -static enum target_signal +static enum gdb_signal find_stop_signal (void) { struct thread_info *info = @@ -5518,7 +5518,7 @@ procfs_make_note_section (bfd *obfd, int *note_size) struct procfs_corefile_thread_data thread_args; gdb_byte *auxv; int auxv_len; - enum target_signal stop_signal; + enum gdb_signal stop_signal; if (get_exec_file (0)) { |