X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fproc-utils.h;h=1c41964918486f8b72c91ff7896b905fc37dd8da;hb=9733f989bbfcefd612a9712683eeebff74329bf4;hp=08b0cc77268229cb46067b3b26cf1c2233daba7a;hpb=103b3ef54f8d3711039fe1dfe18b109e5dac322b;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/proc-utils.h b/gdb/proc-utils.h index 08b0cc7726..1c41964918 100644 --- a/gdb/proc-utils.h +++ b/gdb/proc-utils.h @@ -1,5 +1,5 @@ /* Machine independent support for SVR4 /proc (process file system) for GDB. - Copyright 1999 Free Software Foundation, Inc. + Copyright 1999, 2000 Free Software Foundation, Inc. This file is part of GDB. @@ -88,7 +88,15 @@ extern void procfs_note (char *, char *, int); #define open(X,Y) open_with_trace (X, Y, __FILE__, __LINE__) #define close(X) close_with_trace (X, __FILE__, __LINE__) #define wait(X) wait_with_trace (X, __FILE__, __LINE__) +#endif #define PROCFS_NOTE(X) procfs_note (X, __FILE__, __LINE__) #define PROC_PRETTYFPRINT_STATUS(X,Y,Z,T) \ proc_prettyfprint_status (X, Y, Z, T) + +/* Define the type (and more importantly the width) of the control + word used to write to the /proc/PID/ctl file. */ +#if defined (PROC_CTL_WORD_TYPE) +typedef PROC_CTL_WORD_TYPE procfs_ctl_t; +#else +typedef long procfs_ctl_t; #endif