aboutsummaryrefslogtreecommitdiff
path: root/gdb/partial-stab.h
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1999-06-14 18:08:47 +0000
committerJason Molenda <jmolenda@apple.com>1999-06-14 18:08:47 +0000
commit0f71a2f66f83f4c7ac139fa8d33ab882362fe861 (patch)
tree16074aaf8b9c3abda2ddf840b5b307c933298a75 /gdb/partial-stab.h
parent308b1ffdedc0380e17d84260b0069593eb4f9336 (diff)
downloadgdb-0f71a2f66f83f4c7ac139fa8d33ab882362fe861.zip
gdb-0f71a2f66f83f4c7ac139fa8d33ab882362fe861.tar.gz
gdb-0f71a2f66f83f4c7ac139fa8d33ab882362fe861.tar.bz2
import gdb-1999-06-14 snapshot
Diffstat (limited to 'gdb/partial-stab.h')
-rw-r--r--gdb/partial-stab.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/partial-stab.h b/gdb/partial-stab.h
index d74c1c9..ffaaa51 100644
--- a/gdb/partial-stab.h
+++ b/gdb/partial-stab.h
@@ -441,7 +441,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
continue;
case 'T':
- if (p != namestring) /* a name is there, not just :T... */
+ /* When a 'T' entry is defining an anonymous enum, it
+ may have a name which is the empty string, or a
+ single space. Since they're not really defining a
+ symbol, those shouldn't go in the partial symbol
+ table. We do pick up the elements of such enums at
+ 'check_enum:', below. */
+ if (p >= namestring + 2
+ || (p == namestring + 1
+ && namestring[0] != ' '))
{
add_psymbol_to_list (namestring, p - namestring,
STRUCT_NAMESPACE, LOC_TYPEDEF,
@@ -580,10 +588,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
textlow_not_set = 0;
}
#endif
-#if 0
- if (startup_file_end == 0)
- startup_file_end = CUR_SYMBOL_VALUE;
-#endif
/* End kludge. */
/* In reordered executables this function may lie outside
@@ -627,10 +631,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
textlow_not_set = 0;
}
#endif
-#if 0
- if (startup_file_end == 0)
- startup_file_end = CUR_SYMBOL_VALUE;
-#endif
/* End kludge. */
/* In reordered executables this function may lie outside
the bounds created by N_SO symbols. If that's the case