* gdb.stabs/wierd{.def,-aout.S,-xcoff.S}: Use new macros

{BEGIN,END}_COMMON for common block instead of STAB.
This commit is contained in:
Jim Kingdon 1993-06-28 15:03:27 +00:00
parent 09a78a3d12
commit f492b6c11b
4 changed files with 13 additions and 4 deletions

View File

@ -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.

View File

@ -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; \

View File

@ -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; \

View File

@ -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)