forked from Imagelibrary/binutils-gdb
NOTICE_SIGNAL_HANDLING_CHANGE macro added to the target vector as
to_notice_signals. * inferior.h (proc_signal_handling_change): prototype removed. * infrun.c (NOTICE_SIGNAL_HANDLING_CHANGE): default removed. (handle_command): now calls target_notice_signals. * procfs.c (proc_signal_handling_change): renamed to procfs_notice_signals. Now static. Add prototype. All callers changed. * target.h (struct target_ops): new field, to_notice_signals. (target_notice_signals): new macro to cover new field. * target.c (cleanup_target): default to_notice_signals to ignore. * corelow.c (core_ops), exec.c (exec_ops), inftarg.c (child_ops), procfs.c (procfs_ops), remote-adapt.c (adapt-ops), remote-eb.c (eb_ops), remote-es1800.c (es1800_ops, es1800_child_ops), remote-hms.c (hms_ops), remote-mm.c (mm_ops), remote-nindy.c (nindy_ops), remote-st2000.c (st2000_ops), remote-udi.c (udi_ops), remote-vx.c (vx_ops, vx_run_ops), remote.c (remote_ops), target.c (dummy_target), xcoffexec.c (exec_ops): added static initializer for to_notice_signals. * xm-irix4.h, xm-sysv4.h (NOTICE_SIGNAL_HANDLING_CHANGE): removed.
This commit is contained in:
16
gdb/procfs.c
16
gdb/procfs.c
@@ -416,6 +416,9 @@ do_detach PARAMS ((int siggnal));
|
||||
static void
|
||||
procfs_create_inferior PARAMS ((char *, char *, char **));
|
||||
|
||||
static void
|
||||
procfs_notice_signals PARAMS ((void));
|
||||
|
||||
/* External function prototypes that can't be easily included in any
|
||||
header file because the args are typedefs in system include files. */
|
||||
|
||||
@@ -1267,7 +1270,7 @@ procfs_init_inferior (pid)
|
||||
{
|
||||
memset ((char *) &pi.prrun, 0, sizeof (pi.prrun));
|
||||
prfillset (&pi.prrun.pr_trace);
|
||||
proc_signal_handling_change ();
|
||||
procfs_notice_signals ();
|
||||
prfillset (&pi.prrun.pr_fault);
|
||||
prdelset (&pi.prrun.pr_fault, FLTPAGE);
|
||||
if (ioctl (pi.fd, PIOCWSTOP, &pi.prstatus) < 0)
|
||||
@@ -1285,11 +1288,11 @@ procfs_init_inferior (pid)
|
||||
|
||||
GLOBAL FUNCTION
|
||||
|
||||
proc_signal_handling_change
|
||||
procfs_notice_signals
|
||||
|
||||
SYNOPSIS
|
||||
|
||||
void proc_signal_handling_change (void);
|
||||
static void procfs_notice_signals (void);
|
||||
|
||||
DESCRIPTION
|
||||
|
||||
@@ -1306,8 +1309,8 @@ DESCRIPTION
|
||||
involved.
|
||||
*/
|
||||
|
||||
void
|
||||
proc_signal_handling_change ()
|
||||
static void
|
||||
procfs_notice_signals ()
|
||||
{
|
||||
int signo;
|
||||
|
||||
@@ -1775,7 +1778,7 @@ do_attach (pid)
|
||||
|
||||
memset (&pi.prrun, 0, sizeof (pi.prrun));
|
||||
prfillset (&pi.prrun.pr_trace);
|
||||
proc_signal_handling_change ();
|
||||
procfs_notice_signals ();
|
||||
prfillset (&pi.prrun.pr_fault);
|
||||
prdelset (&pi.prrun.pr_fault, FLTPAGE);
|
||||
if (ioctl (pi.fd, PIOCSFAULT, &pi.prrun.pr_fault))
|
||||
@@ -3118,6 +3121,7 @@ struct target_ops procfs_ops = {
|
||||
procfs_create_inferior, /* to_create_inferior */
|
||||
procfs_mourn_inferior, /* to_mourn_inferior */
|
||||
procfs_can_run, /* to_can_run */
|
||||
procfs_notice_signals, /* to_notice_signals */
|
||||
process_stratum, /* to_stratum */
|
||||
0, /* to_next */
|
||||
1, /* to_has_all_memory */
|
||||
|
||||
Reference in New Issue
Block a user