summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2002-08-23 15:06:53 +0000
committerJoel Brobecker <brobecker@gnat.com>2002-08-23 15:06:53 +0000
commitd318f81ce18fedd2442c261e1e773cc05ec15d30 (patch)
treec4cc4e3985c3ff3b8ad6ff29a86c22079221278f
parentf69cfb5ce23179073a70c048fc9992cf625111b3 (diff)
downloadgdb-d318f81ce18fedd2442c261e1e773cc05ec15d30.tar.gz
* proc-api.c (rw_table): Do not include a row for PCDSTOP if the
corresponding macro is not defined. Likewise for PCNICE, PCSHOLD and PCUNKILL. (write_with_trace): Conditionalize out the switch branch handling PCSHOLD if the corresponding macro is not defined. Likewise for PRSABORT and PRSTOP. This change will be needed by the Interix port.
-rw-r--r--gdb/ChangeLog10
-rw-r--r--gdb/proc-api.c14
2 files changed, 24 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5c047fc876e..7b55f3e1dbf 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,13 @@
+2002-08-23 Donn Terry <dterry@microsoft.com>
+
+ * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
+ corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
+ and PCUNKILL.
+ (write_with_trace): Conditionalize out the switch branch handling
+ PCSHOLD if the corresponding macro is not defined. Likewise for
+ PRSABORT and PRSTOP.
+ This change will be needed by the Interix port.
+
2002-08-22 Elena Zannoni <ezannoni@redhat.com>
* rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
diff --git a/gdb/proc-api.c b/gdb/proc-api.c
index fa6667f1a83..a74882db7e2 100644
--- a/gdb/proc-api.c
+++ b/gdb/proc-api.c
@@ -397,9 +397,13 @@ static struct trans rw_table[] = {
#ifdef PCCSIG /* solaris */
{ PCCSIG, "PCCSIG", "clear current signal" },
#endif
+#ifdef PCDSTOP /* solaris */
{ PCDSTOP, "PCDSTOP", "post stop request" },
+#endif
{ PCKILL, "PCKILL", "post a signal" },
+#ifdef PCNICE /* solaris */
{ PCNICE, "PCNICE", "set nice priority" },
+#endif
#ifdef PCREAD /* solaris */
{ PCREAD, "PCREAD", "read from the address space" },
{ PCWRITE, "PCWRITE", "write to the address space" },
@@ -419,7 +423,9 @@ static struct trans rw_table[] = {
{ PCSEXIT, "PCSEXIT", "set traced syscall exit set" },
{ PCSFAULT, "PCSFAULT", "set traced fault set" },
{ PCSFPREG, "PCSFPREG", "set floating point registers" },
+#ifdef PCHOLD /* solaris */
{ PCSHOLD, "PCSHOLD", "set signal mask" },
+#endif
{ PCSREG, "PCSREG", "set general registers" },
{ PCSSIG, "PCSSIG", "set current signal" },
{ PCSTOP, "PCSTOP", "post stop request and wait" },
@@ -433,7 +439,9 @@ static struct trans rw_table[] = {
#ifdef PCTWSTOP /* solaris */
{ PCTWSTOP, "PCTWSTOP", "wait for stop, with timeout arg" },
#endif
+#ifdef PCUNKILL /* solaris */
{ PCUNKILL, "PCUNKILL", "delete a pending signal" },
+#endif
#ifdef PCUNSET /* solaris */
{ PCUNSET, "PCUNSET", "unset modes" },
#endif
@@ -518,12 +526,14 @@ write_with_trace (int fd, void *varg, size_t len, char *file, int line)
proc_prettyfprint_syscalls (procfs_file ? procfs_file : stdout,
(sysset_t *) &arg[1], 0);
break;
+#ifdef PCSHOLD
case PCSHOLD:
fprintf (procfs_file ? procfs_file : stdout,
"write (PCSHOLD) ");
proc_prettyfprint_signalset (procfs_file ? procfs_file : stdout,
(sigset_t *) &arg[1], 0);
break;
+#endif
case PCSSIG:
fprintf (procfs_file ? procfs_file : stdout,
"write (PCSSIG) ");
@@ -542,10 +552,14 @@ write_with_trace (int fd, void *varg, size_t len, char *file, int line)
fprintf (procfs_file ? procfs_file : stdout, "clearFlt ");
if (arg[1] & PRSTEP)
fprintf (procfs_file ? procfs_file : stdout, "step ");
+#ifdef PRSABORT
if (arg[1] & PRSABORT)
fprintf (procfs_file ? procfs_file : stdout, "syscallAbort ");
+#endif
+#ifdef PRSTOP
if (arg[1] & PRSTOP)
fprintf (procfs_file ? procfs_file : stdout, "stopReq ");
+#endif
fprintf (procfs_file ? procfs_file : stdout, "\n");
break;