{BEGIN,END}_COMMON for common block instead of STAB.
Mon Jun 28 09:15:17 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
+ * gdb.stabs/wierd{.def,-aout.S,-xcoff.S}: Use new macros
+ {BEGIN,END}_COMMON for common block instead of STAB.
+
* gdb.stabs/wierd.def: Make value of N_GSYM's 0.
intp_var should be N_GSYM not N_LSYM.
wierd-aout.S: Use a label for the value of the N_SO.
#define N_LSYM 0x80
#define N_GSYM 0x20
+
#define N_BCOMM 0xe2
#define N_ECOMM 0xe4
+#define BEGIN_COMMON(name) .stabs name, N_BCOMM, 0, 0, 0
+#define END_COMMON(name) .stabs name, N_ECOMM, 0, 0, 0
#define VAR(name) \
.globl name; \
#define N_GSYM 128
#define N_LSYM 129
-#define N_BCOMM 135
-#define N_ECOMM 137
+
+/* If we try to use .stabx for common blocks, the AIX assembler (bogusly)
+ complains about the lack of a colon in the stabstring. */
+#define BEGIN_COMMON(name) .bc name
+#define END_COMMON(name) .ec
#define VAR(name) \
.globl name; \
VAR (common0)
.long 24
.long 22
-STAB ("common0", N_BCOMM, 0)
+BEGIN_COMMON ("common0")
STAB ("common0var0:S1", N_GSYM, 0)
STAB ("common0var1:S1", N_GSYM, 4)
STAB ("common0var2:S1", N_GSYM, 8)
-STAB ("common0", N_ECOMM, 0)
+END_COMMON ("common0")
STAB("attr94:G394=@^ !#$%&'()*+,-./0123456789:<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~;1",N_GSYM, 0)
STAB("attr95:G395=@_ !#$%&'()*+,-./0123456789:<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~;1",N_GSYM, 0)