mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-12 20:58:48 +00:00
* target.h (target_ops): Rename send_signal to request_interrupt,
and remove enum target_signal parameter. * linux-low.c (linux_request_interrupt): Rename from linux_send_signal, and always send SIGINT. * spu-low.c (spu_request_interrupt): Rename from spu_send_signal, and always send SIGINT. * remote-utils.c (putpkt_binary): Call request_interrupt, instead of send_signal. (input_interrupt): Likewise.
This commit is contained in:
parent
820f2bda8e
commit
ef57601be4
@ -1,3 +1,15 @@
|
|||||||
|
2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
|
||||||
|
|
||||||
|
* target.h (target_ops): Rename send_signal to request_interrupt,
|
||||||
|
and remove enum target_signal parameter.
|
||||||
|
* linux-low.c (linux_request_interrupt): Rename from
|
||||||
|
linux_send_signal, and always send SIGINT.
|
||||||
|
* spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
|
||||||
|
and always send SIGINT.
|
||||||
|
* remote-utils.c (putpkt_binary): Call request_interrupt, instead
|
||||||
|
of send_signal.
|
||||||
|
(input_interrupt): Likewise.
|
||||||
|
|
||||||
2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
|
2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
|
||||||
|
|
||||||
* server.c (get_features_xml): Check if target implemented
|
* server.c (get_features_xml): Check if target implemented
|
||||||
|
@ -1514,7 +1514,7 @@ linux_look_up_symbols (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
linux_send_signal (int signum)
|
linux_request_interrupt (void)
|
||||||
{
|
{
|
||||||
extern unsigned long signal_pid;
|
extern unsigned long signal_pid;
|
||||||
|
|
||||||
@ -1523,10 +1523,10 @@ linux_send_signal (int signum)
|
|||||||
struct process_info *process;
|
struct process_info *process;
|
||||||
|
|
||||||
process = get_thread_process (current_inferior);
|
process = get_thread_process (current_inferior);
|
||||||
kill_lwp (process->lwpid, signum);
|
kill_lwp (process->lwpid, SIGINT);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
kill_lwp (signal_pid, signum);
|
kill_lwp (signal_pid, SIGINT);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Copy LEN bytes from inferior's auxiliary vector starting at OFFSET
|
/* Copy LEN bytes from inferior's auxiliary vector starting at OFFSET
|
||||||
@ -1660,7 +1660,7 @@ static struct target_ops linux_target_ops = {
|
|||||||
linux_read_memory,
|
linux_read_memory,
|
||||||
linux_write_memory,
|
linux_write_memory,
|
||||||
linux_look_up_symbols,
|
linux_look_up_symbols,
|
||||||
linux_send_signal,
|
linux_request_interrupt,
|
||||||
linux_read_auxv,
|
linux_read_auxv,
|
||||||
linux_insert_watchpoint,
|
linux_insert_watchpoint,
|
||||||
linux_remove_watchpoint,
|
linux_remove_watchpoint,
|
||||||
|
@ -549,7 +549,7 @@ putpkt_binary (char *buf, int cnt)
|
|||||||
|
|
||||||
/* Check for an input interrupt while we're here. */
|
/* Check for an input interrupt while we're here. */
|
||||||
if (buf3[0] == '\003')
|
if (buf3[0] == '\003')
|
||||||
(*the_target->send_signal) (SIGINT);
|
(*the_target->request_interrupt) ();
|
||||||
}
|
}
|
||||||
while (buf3[0] != '+');
|
while (buf3[0] != '+');
|
||||||
|
|
||||||
@ -572,7 +572,7 @@ putpkt (char *buf)
|
|||||||
/* Come here when we get an input interrupt from the remote side. This
|
/* Come here when we get an input interrupt from the remote side. This
|
||||||
interrupt should only be active while we are waiting for the child to do
|
interrupt should only be active while we are waiting for the child to do
|
||||||
something. About the only thing that should come through is a ^C, which
|
something. About the only thing that should come through is a ^C, which
|
||||||
will cause us to send a SIGINT to the child. */
|
will cause us to request child interruption. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
input_interrupt (int unused)
|
input_interrupt (int unused)
|
||||||
@ -599,7 +599,7 @@ input_interrupt (int unused)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
(*the_target->send_signal) (SIGINT);
|
(*the_target->request_interrupt) ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -551,9 +551,9 @@ spu_look_up_symbols (void)
|
|||||||
|
|
||||||
/* Send signal to inferior. */
|
/* Send signal to inferior. */
|
||||||
static void
|
static void
|
||||||
spu_send_signal (int signo)
|
spu_request_interrupt (void)
|
||||||
{
|
{
|
||||||
syscall (SYS_tkill, current_tid, signo);
|
syscall (SYS_tkill, current_tid, SIGINT);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *
|
static const char *
|
||||||
@ -576,7 +576,7 @@ static struct target_ops spu_target_ops = {
|
|||||||
spu_read_memory,
|
spu_read_memory,
|
||||||
spu_write_memory,
|
spu_write_memory,
|
||||||
spu_look_up_symbols,
|
spu_look_up_symbols,
|
||||||
spu_send_signal,
|
spu_request_interrupt,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
|
@ -127,8 +127,10 @@ struct target_ops
|
|||||||
|
|
||||||
void (*look_up_symbols) (void);
|
void (*look_up_symbols) (void);
|
||||||
|
|
||||||
/* Send a signal to the inferior process, however is appropriate. */
|
/* Send an interrupt request to the inferior process,
|
||||||
void (*send_signal) (int);
|
however is appropriate. */
|
||||||
|
|
||||||
|
void (*request_interrupt) (void);
|
||||||
|
|
||||||
/* Read auxiliary vector data from the inferior process.
|
/* Read auxiliary vector data from the inferior process.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user