aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarfread.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-01-24 06:32:43 +0000
committerFred Fish <fnf@specifix.com>1992-01-24 06:32:43 +0000
commit99140c31feccacf3a4a56f21b07f634e7112a120 (patch)
tree70ec34b17c74ab974fa7cf6c52c458c10eb030ae /gdb/dwarfread.c
parent75798a7ebadd1c117aeb9da43fa3f83cec9de459 (diff)
downloadgdb-99140c31feccacf3a4a56f21b07f634e7112a120.zip
gdb-99140c31feccacf3a4a56f21b07f634e7112a120.tar.gz
gdb-99140c31feccacf3a4a56f21b07f634e7112a120.tar.bz2
The list_in_scope pointer needs to be initialized to point to a
valid scope. Use the file scope as the initial scope.
Diffstat (limited to 'gdb/dwarfread.c')
-rw-r--r--gdb/dwarfread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c
index b170ff7..da2a87f 100644
--- a/gdb/dwarfread.c
+++ b/gdb/dwarfread.c
@@ -237,7 +237,7 @@ struct dwfinfo {
local scope, and all other local scopes as nested local scopes, and worked
fine. Check to see if we really need to distinguish these in buildsym.c */
-struct pending **list_in_scope;
+struct pending **list_in_scope = &file_symbols;
/* DIES which have user defined types or modified user defined types refer to
other DIES for the type information. Thus we need to associate the offset