From 99140c31feccacf3a4a56f21b07f634e7112a120 Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Fri, 24 Jan 1992 06:32:43 +0000 Subject: [PATCH] The list_in_scope pointer needs to be initialized to point to a valid scope. Use the file scope as the initial scope. --- gdb/ChangeLog | 6 ++++++ gdb/dwarfread.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c8d39f6ca1..479aad8c59 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -2,6 +2,12 @@ Thu Jan 23 22:24:43 1992 Fred Fish (fnf at cygnus.com) * ansidecl.h: Removed, is duplicate of ../include/ansidecl.h + * Makefile.in (MALLOCSRC): Removed reference to removed local + copy of ansidecl.h. + + * dwarfread.c (list_in_scope): Needs an initial value, use file + scope. + Mon Jan 20 19:06:28 1992 Stu Grossman (grossman at cygnus.com) * main.c (main): Make option_index local to keep new getopt happy. diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c index b170ff74cd..da2a87f198 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 -- 2.34.1