diff options
author | Fred Fish <fnf@specifix.com> | 1993-03-05 00:45:08 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1993-03-05 00:45:08 +0000 |
commit | e5bb7e61ad59bb8c959a4028d8c2e1b036762927 (patch) | |
tree | c9eee1a42d7bd17624bd705e12948126326e046a /gdb/m88k-nat.c | |
parent | f68d8549cc14827a2adbfeefbcf05daad2895e79 (diff) | |
download | gdb-e5bb7e61ad59bb8c959a4028d8c2e1b036762927.zip gdb-e5bb7e61ad59bb8c959a4028d8c2e1b036762927.tar.gz gdb-e5bb7e61ad59bb8c959a4028d8c2e1b036762927.tar.bz2 |
* m88k-nat-c (SXIP_OFFSET, SNIP_OFFSET, SFIP_OFFSET): Enclose
macro definitions in parenthesis. Bug reported by karl@hq.ileaf.com.
Diffstat (limited to 'gdb/m88k-nat.c')
-rw-r--r-- | gdb/m88k-nat.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/m88k-nat.c b/gdb/m88k-nat.c index 15a0f7e..bbbceb8 100644 --- a/gdb/m88k-nat.c +++ b/gdb/m88k-nat.c @@ -47,14 +47,14 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* #include <sys/ptrace.h> */ /* define offsets to the pc instruction offsets in ptrace_user struct */ -#define SXIP_OFFSET (char *)&u.pt_sigframe.sig_sxip - (char *)&u -#define SNIP_OFFSET (char *)&u.pt_sigframe.sig_snip - (char *)&u -#define SFIP_OFFSET (char *)&u.pt_sigframe.sig_sfip - (char *)&u +#define SXIP_OFFSET ((char *)&u.pt_sigframe.sig_sxip - (char *)&u) +#define SNIP_OFFSET ((char *)&u.pt_sigframe.sig_snip - (char *)&u) +#define SFIP_OFFSET ((char *)&u.pt_sigframe.sig_sfip - (char *)&u) #else /* define offsets to the pc instruction offsets in ptrace_user struct */ -#define SXIP_OFFSET (char *)&u.pt_sigframe.dg_sigframe.sc_sxip - (char *)&u -#define SNIP_OFFSET (char *)&u.pt_sigframe.dg_sigframe.sc_snip - (char *)&u -#define SFIP_OFFSET (char *)&u.pt_sigframe.dg_sigframe.sc_sfip - (char *)&u +#define SXIP_OFFSET ((char *)&u.pt_sigframe.dg_sigframe.sc_sxip - (char *)&u) +#define SNIP_OFFSET ((char *)&u.pt_sigframe.dg_sigframe.sc_snip - (char *)&u) +#define SFIP_OFFSET ((char *)&u.pt_sigframe.dg_sigframe.sc_sfip - (char *)&u) #endif extern int have_symbol_file_p(); |