From e5bb7e61ad59bb8c959a4028d8c2e1b036762927 Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Fri, 5 Mar 1993 00:45:08 +0000 Subject: * m88k-nat-c (SXIP_OFFSET, SNIP_OFFSET, SFIP_OFFSET): Enclose macro definitions in parenthesis. Bug reported by karl@hq.ileaf.com. --- gdb/ChangeLog | 3 +++ gdb/m88k-nat.c | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'gdb') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fde5832..fdb70d3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ Thu Mar 4 08:22:55 1993 Fred Fish (fnf@cygnus.com) + * m88k-nat-c (SXIP_OFFSET, SNIP_OFFSET, SFIP_OFFSET): Enclose + macro definitions in parenthesis. Bug reported by karl@hq.ileaf.com. + * dbxread.c (dbx_symfile_init): Catch the case where there is no string table, but the only way we find out is by reading zero bytes from EOF. 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 */ /* 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(); -- cgit v1.1