aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-11-15 20:26:35 +0000
committerFred Fish <fnf@specifix.com>1992-11-15 20:26:35 +0000
commit45a655b0b67e5f21ee23119cc34bf7125965e59d (patch)
tree834e3de0bb0eaeb019b562194d425f59aec7e73a
parent6845e2da3e8d8bc547185d00efb7687481ad29c1 (diff)
downloadgdb-45a655b0b67e5f21ee23119cc34bf7125965e59d.zip
gdb-45a655b0b67e5f21ee23119cc34bf7125965e59d.tar.gz
gdb-45a655b0b67e5f21ee23119cc34bf7125965e59d.tar.bz2
* Makefile.in (VERSION): Bump to 4.7.2
* symtab.c (find_pc_symtab): Fix return of random value to caller.
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/Makefile.in2
-rw-r--r--gdb/symtab.c4
3 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0f63ad0..fd10cdc 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,8 @@
Sun Nov 15 09:22:09 1992 Fred Fish (fnf@cygnus.com)
+ * Makefile.in (VERSION): Bump to 4.7.2
+ * symtab.c (find_pc_symtab): Fix return of random value
+ to caller.
* Makefile.in (SFILES_MAINDIR): Add ch-exp.y.
* Makefile.in (YYFILES): Add ch-exp.tab.c.
* Makefile.in (YYOBJ): Add ch-exp.tab.o.
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 1cfbcdb..e1d7916 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -166,7 +166,7 @@ CDEPS = ${XM_CDEPS} ${TM_CDEPS} ${NAT_CDEPS} \
ADD_FILES = ${REGEX} ${ALLOCA} ${XM_ADD_FILES} ${TM_ADD_FILES} ${NAT_ADD_FILES}
ADD_DEPS = ${REGEX1} ${ALLOCA1} ${XM_ADD_FILES} ${TM_ADD_FILES} ${NAT_ADD_FILES}
-VERSION = 4.7.1
+VERSION = 4.7.2
DIST=gdb
LINT=/usr/5bin/lint
diff --git a/gdb/symtab.c b/gdb/symtab.c
index f5f0455..3bea1ec 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -970,7 +970,7 @@ find_pc_symtab (pc)
{
register struct block *b;
struct blockvector *bv;
- register struct symtab *s = 0;
+ register struct symtab *s = NULL;
register struct partial_symtab *ps;
register struct objfile *objfile;
@@ -985,6 +985,7 @@ find_pc_symtab (pc)
return (s);
}
+ s = NULL;
ps = find_pc_psymtab (pc);
if (ps)
{
@@ -992,6 +993,7 @@ find_pc_symtab (pc)
printf_filtered ("(Internal error: pc 0x%x in read in psymtab, but not in symtab.)\n", pc);
s = PSYMTAB_TO_SYMTAB (ps);
}
+ return (s);
}
/* Find the source file and line number for a given PC value.