forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
18
gdb/procfs.c
18
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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user