From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15030 invoked by alias); 24 Jul 2002 08:59:23 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 15023 invoked from network); 24 Jul 2002 08:59:21 -0000 Received: from unknown (HELO takamaka.act-europe.fr) (142.179.108.108) by sources.redhat.com with SMTP; 24 Jul 2002 08:59:21 -0000 Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 26414D2CBD; Wed, 24 Jul 2002 01:59:18 -0700 (PDT) Date: Wed, 24 Jul 2002 02:07:00 -0000 From: Joel Brobecker To: gdb-patches@sources.redhat.com Subject: [RFA] Minor changes to proc-api.c for Interix Message-ID: <20020724085918.GA1166@gnat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="ZPt4rx8FFjLCG7dd" Content-Disposition: inline User-Agent: Mutt/1.4i X-SW-Source: 2002-07/txt/msg00474.txt.bz2 --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 611 Hello, I would like to commit the following change. This change has been made for Interix, but should not affect any other platform. Tested on Solaris by recompiling GDB. OK to commit? 2002-07-24 Donn Terry * 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. Thanks, -- Joel --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii Content-Description: proc-api.c.diff Content-Disposition: attachment; filename="proc-api.c.diff" Content-length: 2817 Index: proc-api.c =================================================================== RCS file: /cvs/src/src/gdb/proc-api.c,v retrieving revision 1.13 diff -c -3 -p -r1.13 proc-api.c *** proc-api.c 16 Jul 2002 17:14:13 -0000 1.13 --- proc-api.c 24 Jul 2002 07:06:28 -0000 *************** static struct trans rw_table[] = { *** 397,405 **** --- 397,409 ---- #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" }, *************** static struct trans rw_table[] = { *** 419,425 **** --- 423,431 ---- { 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" }, *************** static struct trans rw_table[] = { *** 433,439 **** --- 439,447 ---- #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 *************** write_with_trace (int fd, void *varg, si *** 518,529 **** --- 526,539 ---- 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) "); *************** write_with_trace (int fd, void *varg, si *** 542,551 **** --- 552,565 ---- 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; --ZPt4rx8FFjLCG7dd--