aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.stabs/wierd-aout.S
blob: 63857cf588c896734e14f8cfc68f21e900df4898 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* GDB legitimately expects a file name.  */
/* The sun3 assembler bogusly requires that the value of this stab be a
   label.  Placate it.  */
	.stabs "wierd.c",0x64,0,0,Label0
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; \
.data; \
	.align 2; \
name:; \
	.long 42

#define STAB(string,type,value) .stabs string,type,0,0,value
#include "wierd.def"

/* Stuff with backslashes needs to go here, since the aix assembler treats
   them differently.  */

STAB("sym92:\\ !#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~",N_LSYM,0)
STAB("type92:t92=\\ !#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~",N_LSYM,0)
STAB("attr92:G392=@\\ !#$%&'()*+,-./0123456789:<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~;1",N_GSYM, 0)