This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] config/i386/tm-i386.h: remove spurious ";"
- To: gdb-patches at sources dot redhat dot com
- Subject: [RFA] config/i386/tm-i386.h: remove spurious ";"
- From: Nicholas Duffek <nsd at redhat dot com>
- Date: Wed, 3 Jan 2001 15:42:00 -0500
REGISTER_CONVERT_TO_VIRTUAL and REGISTER_CONVERT_TO_RAW are defined in
config/i386/tm-i386.h with trailing semicolons, causing syntax errors in
if-else constructs like this:
if (REGISTER_CONVERTIBLE (regnum))
REGISTER_CONVERT_TO_VIRTUAL (regnum, type, rawbuf, virtbuf);
else
memcpy (virtbuf, rawbuf, TYPE_LENGTH (type));
This patch removes the semicolons.
ChangeLog:
* config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,
REGISTER_CONVERT_TO_RAW): Delete trailing semicolon.
No regressions on i686-pc-linux-gnu. Okay to apply?
Nicholas Duffek
<nsd@redhat.com>
[patch follows]
Index: gdb/config/i386/tm-i386.h
===================================================================
diff -up gdb/config/i386/tm-i386.h gdb/config/i386/tm-i386.h
--- gdb/config/i386/tm-i386.h Tue Dec 19 11:07:02 2000
+++ gdb/config/i386/tm-i386.h Tue Dec 19 11:06:42 2000
@@ -259,7 +259,7 @@ extern int i386_register_virtual_size[];
virtual format with type TYPE in buffer TO. */
#define REGISTER_CONVERT_TO_VIRTUAL(regnum, type, from, to) \
- i386_register_convert_to_virtual ((regnum), (type), (from), (to));
+ i386_register_convert_to_virtual ((regnum), (type), (from), (to))
extern void i386_register_convert_to_virtual (int regnum, struct type *type,
char *from, char *to);
@@ -267,7 +267,7 @@ extern void i386_register_convert_to_vir
raw format for register REGNUM in buffer TO. */
#define REGISTER_CONVERT_TO_RAW(type, regnum, from, to) \
- i386_register_convert_to_raw ((type), (regnum), (from), (to));
+ i386_register_convert_to_raw ((type), (regnum), (from), (to))
extern void i386_register_convert_to_raw (struct type *type, int regnum,
char *from, char *to);