Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* PATCH: In dwarf2read, restore local_symbols and param_symbols
@ 2002-11-08 11:32 Jim Blandy
  2002-11-08 11:35 ` Andrew Cagney
  0 siblings, 1 reply; 7+ messages in thread
From: Jim Blandy @ 2002-11-08 11:32 UTC (permalink / raw)
  To: gdb-patches


2002-11-08  Jim Blandy  <jimb@redhat.com>

	* dwarf2read.c (read_func_scope): Restore local_symbols and
	param_symbols after we finish the function context.  (Based on a
	patch from David Edelsohn.)

Index: gdb/dwarf2read.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2read.c,v
retrieving revision 1.72
diff -c -r1.72 dwarf2read.c
*** gdb/dwarf2read.c	25 Oct 2002 22:25:55 -0000	1.72
--- gdb/dwarf2read.c	8 Nov 2002 19:30:13 -0000
***************
*** 2013,2018 ****
--- 2013,2026 ----
    /* Make a block for the local symbols within.  */
    finish_block (new->name, &local_symbols, new->old_blocks,
  		lowpc, highpc, objfile);
+   
+   /* In C++, we can have functions nested inside functions (e.g., when
+      a function declares a class that has methods).  This means that
+      when we finish processing a function scope, we may need to go
+      back to building a containing block's symbol lists.  */
+   local_symbols = new->locals;
+   param_symbols = new->params;
+ 
    list_in_scope = &file_symbols;
  }
  


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: PATCH: In dwarf2read, restore local_symbols and param_symbols
  2002-11-08 11:32 PATCH: In dwarf2read, restore local_symbols and param_symbols Jim Blandy
@ 2002-11-08 11:35 ` Andrew Cagney
  2002-11-08 12:21   ` Jim Blandy
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew Cagney @ 2002-11-08 11:35 UTC (permalink / raw)
  To: Jim Blandy; +Cc: gdb-patches

> 2002-11-08  Jim Blandy  <jimb@redhat.com>
> 
> 	* dwarf2read.c (read_func_scope): Restore local_symbols and
> 	param_symbols after we finish the function context.  (Based on a
> 	patch from David Edelsohn.)
> 
Should this be part of 5.3?

Andrew



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: PATCH: In dwarf2read, restore local_symbols and param_symbols
  2002-11-08 11:35 ` Andrew Cagney
@ 2002-11-08 12:21   ` Jim Blandy
  2002-11-08 12:35     ` Andrew Cagney
  0 siblings, 1 reply; 7+ messages in thread
From: Jim Blandy @ 2002-11-08 12:21 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: gdb-patches

Andrew Cagney <ac131313@redhat.com> writes:

> > 2002-11-08  Jim Blandy  <jimb@redhat.com>
> > 	* dwarf2read.c (read_func_scope): Restore local_symbols and
> > 	param_symbols after we finish the function context.  (Based on a
> > 	patch from David Edelsohn.)
> >
> Should this be part of 5.3?

Couldn't hurt.  The macro fix I committed definitely should be.
Shall I commit those to the branch?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: PATCH: In dwarf2read, restore local_symbols and param_symbols
  2002-11-08 12:21   ` Jim Blandy
@ 2002-11-08 12:35     ` Andrew Cagney
  2002-11-13 11:41       ` Jim Blandy
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew Cagney @ 2002-11-08 12:35 UTC (permalink / raw)
  To: Jim Blandy; +Cc: gdb-patches

> Andrew Cagney <ac131313@redhat.com> writes:
> 
> 
>> > 2002-11-08  Jim Blandy  <jimb@redhat.com>
>> > 	* dwarf2read.c (read_func_scope): Restore local_symbols and
>> > 	param_symbols after we finish the function context.  (Based on a
>> > 	patch from David Edelsohn.)
>> >
> 
>> Should this be part of 5.3?
> 
> 
> Couldn't hurt.  The macro fix I committed definitely should be.
> Shall I commit those to the branch?

(waves hands) How would I know?  They look safe :-)

Andrew




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: PATCH: In dwarf2read, restore local_symbols and param_symbols
  2002-11-08 12:35     ` Andrew Cagney
@ 2002-11-13 11:41       ` Jim Blandy
  2002-11-13 12:54         ` Andrew Cagney
  0 siblings, 1 reply; 7+ messages in thread
From: Jim Blandy @ 2002-11-13 11:41 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: gdb-patches

Andrew Cagney <ac131313@redhat.com> writes:

> > Andrew Cagney <ac131313@redhat.com> writes:
> >
> >> > 2002-11-08  Jim Blandy  <jimb@redhat.com>
> >> > 	* dwarf2read.c (read_func_scope): Restore local_symbols and
> >> > 	param_symbols after we finish the function context.  (Based on a
> >> > 	patch from David Edelsohn.)
> >> >
> >
> >> Should this be part of 5.3?
> > Couldn't hurt.  The macro fix I committed definitely should be.
> > Shall I commit those to the branch?
> 
> (waves hands) How would I know?  They look safe :-)

I think they're safe, too, so I've committed them to the 5.3 branch,
along with the regression test for one of them.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: PATCH: In dwarf2read, restore local_symbols and param_symbols
  2002-11-13 11:41       ` Jim Blandy
@ 2002-11-13 12:54         ` Andrew Cagney
  2002-11-14 11:44           ` Jim Blandy
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew Cagney @ 2002-11-13 12:54 UTC (permalink / raw)
  To: Jim Blandy; +Cc: gdb-patches


>> (waves hands) How would I know?  They look safe :-)
> 
> 
> I think they're safe, too, so I've committed them to the 5.3 branch,
> along with the regression test for one of them.

Ya!  I think there is a glimmer of light for 5.3 ..

Andrew



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: PATCH: In dwarf2read, restore local_symbols and param_symbols
  2002-11-13 12:54         ` Andrew Cagney
@ 2002-11-14 11:44           ` Jim Blandy
  0 siblings, 0 replies; 7+ messages in thread
From: Jim Blandy @ 2002-11-14 11:44 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: gdb-patches

Andrew Cagney <ac131313@redhat.com> writes:

> >> (waves hands) How would I know?  They look safe :-)
> > I think they're safe, too, so I've committed them to the 5.3 branch,
> > along with the regression test for one of them.
> 
> Ya!  I think there is a glimmer of light for 5.3 ..

:)

You will see the kfail->fail regression I mentioned on gdb@sources,
unfortunately.  But as I say, I think it's not a real regression.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-11-14 19:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-08 11:32 PATCH: In dwarf2read, restore local_symbols and param_symbols Jim Blandy
2002-11-08 11:35 ` Andrew Cagney
2002-11-08 12:21   ` Jim Blandy
2002-11-08 12:35     ` Andrew Cagney
2002-11-13 11:41       ` Jim Blandy
2002-11-13 12:54         ` Andrew Cagney
2002-11-14 11:44           ` Jim Blandy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox