From 45a655b0b67e5f21ee23119cc34bf7125965e59d Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Sun, 15 Nov 1992 20:26:35 +0000 Subject: * Makefile.in (VERSION): Bump to 4.7.2 * symtab.c (find_pc_symtab): Fix return of random value to caller. --- gdb/symtab.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gdb/symtab.c') 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. -- cgit v1.1