(PRINT_REGISTER_HOOK): Fix typo, add parens around macro arg.
authorDavid Edelsohn <dje.gcc@gmail.com>
Sun, 11 Jul 1993 19:31:49 +0000 (19:31 +0000)
committerDavid Edelsohn <dje.gcc@gmail.com>
Sun, 11 Jul 1993 19:31:49 +0000 (19:31 +0000)
gdb/config/sparc/tm-sparc.h

index b6c376d919f0a8334b104f5e2075402eabd19ed2..c0499566061991a1c1a7aab743ec548ee8964651 100644 (file)
@@ -568,10 +568,10 @@ extern struct frame_info *setup_arbitrary_frame PARAMS ((int, CORE_ADDR *));
 #define        PRINT_REGISTER_HOOK(regno)      \
   if (((regno) >= FP0_REGNUM)          \
    && ((regno) <  FP0_REGNUM + 32)     \
-   && (0 == (regno & 1))) {            \
+   && (0 == ((regno) & 1))) {          \
     char doublereg[8];         /* two float regs */    \
-    if (!read_relative_register_raw_bytes (i  , doublereg  )   \
-     && !read_relative_register_raw_bytes (i+1, doublereg+4)) {        \
+    if (!read_relative_register_raw_bytes ((regno)  , doublereg  )     \
+     && !read_relative_register_raw_bytes ((regno)+1, doublereg+4)) {  \
       printf("\t");                    \
       print_floating (doublereg, builtin_type_double, stdout); \
     }                                  \