From: Jim Kingdon Date: Mon, 28 Jun 1993 15:03:27 +0000 (+0000) Subject: * gdb.stabs/wierd{.def,-aout.S,-xcoff.S}: Use new macros X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f492b6c11b56018ac91c477ac6b3cf46881b435d;p=binutils-gdb.git * gdb.stabs/wierd{.def,-aout.S,-xcoff.S}: Use new macros {BEGIN,END}_COMMON for common block instead of STAB. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index fc4d16295d5..0f69849f86b 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 a16ff04efec..63857cf588c 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 0b65f6f0f57..f697d76f099 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 093991b6691..495906a6beb 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)