summaryrefslogtreecommitdiffstats
path: root/gdb/tm-sun4sol2.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/tm-sun4sol2.h')
-rw-r--r--gdb/tm-sun4sol2.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/gdb/tm-sun4sol2.h b/gdb/tm-sun4sol2.h
index 78c7389db0..76251d9fbc 100644
--- a/gdb/tm-sun4sol2.h
+++ b/gdb/tm-sun4sol2.h
@@ -30,9 +30,16 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define BLOCK_ADDRESS_FUNCTION_RELATIVE
-/* Variables in the debug stabs occur after the N_LBRAC, not before it. */
+/* Variables in the debug stabs occur after the N_LBRAC, not before it,
+ in code generated by Sun C. */
-#define VARIABLES_INSIDE_BLOCK(desc, gcc_p) (!gcc_p)
+#define VARIABLES_INSIDE_BLOCK(desc, gcc_p) (!(gcc_p))
+
+/* There's no need to correct LBRAC entries by guessing how they should
+ work. In fact, this is harmful because the LBRAC entries now all appear
+ at the end of the function, not intermixed with the SLINE entries. */
+
+#define SUN_FIXED_LBRAC_BUG
/* May be needed, may be not? From Pace Willisson's port. FIXME. */
#define PROLOGUE_FIRSTLINE_OVERLAP
OpenPOWER on IntegriCloud