aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/testsuite/ChangeLog3
-rw-r--r--gdb/testsuite/gdb.stabs/wierd-aout.S3
-rw-r--r--gdb/testsuite/gdb.stabs/wierd-xcoff.S7
-rw-r--r--gdb/testsuite/gdb.stabs/wierd.def4
4 files changed, 13 insertions, 4 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index fc4d162..0f69849 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,8 @@
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.
diff --git a/gdb/testsuite/gdb.stabs/wierd-aout.S b/gdb/testsuite/gdb.stabs/wierd-aout.S
index a16ff04..63857cf 100644
--- a/gdb/testsuite/gdb.stabs/wierd-aout.S
+++ b/gdb/testsuite/gdb.stabs/wierd-aout.S
@@ -6,8 +6,11 @@ Label0:
#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; \
diff --git a/gdb/testsuite/gdb.stabs/wierd-xcoff.S b/gdb/testsuite/gdb.stabs/wierd-xcoff.S
index 0b65f6f..f697d76 100644
--- a/gdb/testsuite/gdb.stabs/wierd-xcoff.S
+++ b/gdb/testsuite/gdb.stabs/wierd-xcoff.S
@@ -1,7 +1,10 @@
#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; \
diff --git a/gdb/testsuite/gdb.stabs/wierd.def b/gdb/testsuite/gdb.stabs/wierd.def
index 093991b..495906a 100644
--- a/gdb/testsuite/gdb.stabs/wierd.def
+++ b/gdb/testsuite/gdb.stabs/wierd.def
@@ -323,11 +323,11 @@ VAR (_common0)
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)