From 8df6afe63ba7d7f056b75267f92cdd259ce28d6c Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Sun, 11 Jul 1993 19:31:49 +0000 Subject: [PATCH] (PRINT_REGISTER_HOOK): Fix typo, add parens around macro arg. --- gdb/config/sparc/tm-sparc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb/config/sparc/tm-sparc.h b/gdb/config/sparc/tm-sparc.h index b6c376d919f..c0499566061 100644 --- a/gdb/config/sparc/tm-sparc.h +++ b/gdb/config/sparc/tm-sparc.h @@ -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); \ } \ -- 2.30.2