aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-09-20 21:50:27 +0000
committerJohn Gilmore <gnu@cygnus>1991-09-20 21:50:27 +0000
commit30c52cdf23c167bb7e6ba3c9770852746b3b2dbc (patch)
tree54bd1c6e367f701f0588608d87546bbdd335035b /include
parent1b3f485c582b72bb215ed3c04c31650daf6e1c8d (diff)
downloadgdb-30c52cdf23c167bb7e6ba3c9770852746b3b2dbc.zip
gdb-30c52cdf23c167bb7e6ba3c9770852746b3b2dbc.tar.gz
gdb-30c52cdf23c167bb7e6ba3c9770852746b3b2dbc.tar.bz2
Update N_FN value to 0x1F. Add comments about N_EXT bits.
Diffstat (limited to 'include')
-rwxr-xr-xinclude/aout64.h5
-rwxr-xr-xinclude/stab.def13
2 files changed, 15 insertions, 3 deletions
diff --git a/include/aout64.h b/include/aout64.h
index 9edb7d3..e25770d 100755
--- a/include/aout64.h
+++ b/include/aout64.h
@@ -175,8 +175,11 @@ struct internal_nlist {
#define N_TEXT 4
#define N_DATA 6
#define N_BSS 8
-#define N_FN 0x0e
#define N_COMM 0x12 /* Common symbol (visible after shared lib dynlink) */
+#define N_FN 0x1f /* File name of .o file */
+/* Note: N_EXT can only usefully be OR-ed with N_UNDF, N_ABS, N_TEXT,
+ N_DATA, or N_BSS. When the low-order bit of other types is set,
+ (e.g. N_WARNING versus N_FN), they are two different types. */
#define N_EXT 1
#define N_TYPE 0x1e
#define N_STAB 0xe0
diff --git a/include/stab.def b/include/stab.def
index 8c5e5fe..005dd75 100755
--- a/include/stab.def
+++ b/include/stab.def
@@ -171,11 +171,20 @@ __define_stab (N_LENG, 0xfe, "LENG")
STAB MATRIX
_________________________________________________
| 00 - 1F are not dbx stab symbols |
- | Entries with bit 01 set are external symbols. |
+ | In most cases, the low bit is the EXTernal bit|
+
| 00 UNDEF | 02 ABS | 04 TEXT | 06 DATA |
- | 08 BSS | 0A INDR | 0C | 0E FN |
+ | 01 |EXT | 03 |EXT | 05 |EXT | 07 |EXT |
+
+ | 08 BSS | 0A INDR | 0C | 0E |
+ | 09 |EXT | 0B | 0D | 0F |
+
| 10 | 12 COMM | 14 SETA | 16 SETT |
+ | 11 | 13 | 15 | 17 |
+
| 18 SETD | 1A SETB | 1C SETV | 1E WARNING|
+ | 19 | 1B | 1D | 1F FN |
+
|_______________________________________________|
| Debug entries with bit 01 set are unused. |
| 20 GSYM | 22 FNAME | 24 FUN | 26 STSYM |