aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1992-12-31 17:24:06 +0000
committerStu Grossman <grossman@cygnus>1992-12-31 17:24:06 +0000
commit8a1c3e99492d67497a338ce1efd71bb169bd85e5 (patch)
tree06813f521782e123dbb34e7555f9eccd63a97445 /gdb
parent684a832faafec73eb1b0cdf7a3c2f3269a17cd66 (diff)
downloadgdb-8a1c3e99492d67497a338ce1efd71bb169bd85e5.zip
gdb-8a1c3e99492d67497a338ce1efd71bb169bd85e5.tar.gz
gdb-8a1c3e99492d67497a338ce1efd71bb169bd85e5.tar.bz2
* partial-stab.h (near N_BINCL): Remove redundant code in N_BINCL
case. Use code in N_SOL.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/partial-stab.h17
2 files changed, 8 insertions, 12 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 15cb243..309f20b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,8 @@
Thu Dec 31 09:03:02 1992 Stu Grossman (grossman at cygnus.com)
+ * partial-stab.h (near N_BINCL): Remove redundant code in N_BINCL
+ case. Use code in N_SOL.
+
* paread.c: New file that contains all HPPA/HPUX symbol reading
code.
* dbxread.c: Remove almost all HPPA/HPUX symbol reading code.
diff --git a/gdb/partial-stab.h b/gdb/partial-stab.h
index 8361ff0..d69f7f6 100644
--- a/gdb/partial-stab.h
+++ b/gdb/partial-stab.h
@@ -267,20 +267,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Mark down an include file in the current psymtab */
- psymtab_include_list[includes_used++] = namestring;
- if (includes_used >= includes_allocated)
- {
- char **orig = psymtab_include_list;
-
- psymtab_include_list = (char **)
- alloca ((includes_allocated *= 2) *
- sizeof (char *));
- memcpy ((PTR)psymtab_include_list, (PTR)orig,
- includes_used * sizeof (char *));
- }
+ goto record_include_file;
-#endif /* DBXREAD_ONLY */
+#else /* DBXREAD_ONLY */
continue;
+#endif
case N_SOL:
/* Mark down an include file in the current psymtab */
@@ -311,6 +302,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
continue;
}
+ record_include_file:
+
psymtab_include_list[includes_used++] = namestring;
if (includes_used >= includes_allocated)
{