Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Elena Zannoni <ezannoni@redhat.com>
To: David Carlton <carlton@math.stanford.edu>
Cc: gdb-patches@sources.redhat.com, Elena Zannoni <ezannoni@redhat.com>
Subject: Re: [rfa] revert my previous search_symbols change, add comment
Date: Thu, 20 Feb 2003 20:43:00 -0000	[thread overview]
Message-ID: <15957.16088.234106.47580@localhost.redhat.com> (raw)
In-Reply-To: <ro13cn3377d.fsf@jackfruit.Stanford.EDU>

David Carlton writes:
 > In my patch from 2002-12-23, I changed some code in search_symbols
 > from a call to lookup_symbol to a call to lookup_symbol_aux_minsyms.
 > At that time, I didn't understand exactly what
 > lookup_symbol_aux_minsyms did; now that I understand that function
 > better, I don't think that change was a good idea.
 > 
 > So this patch reverts that change.  At Andrew's suggestion, I've added
 > a comment as well, saying what I'd really like to replace the call to
 > lookup_symbol with.

OK

 > 
 > In my next patch, I'll change lookup_symbol_aux_minsyms to actually do
 > something correct (now that Daniel has been kind enough to demangle
 > partial symbols for me), but I wanted to get this part of the change
 > out of the way first.
 >

Question, where does the other patch I just replied to stand wrt to this?
Should we forget about the old patch? 

elena

 
 > Tested on i686-pc-linux-gnu/GCC3.1/DWARF-2; OK to apply?
 > 
 > David Carlton
 > carlton@math.stanford.edu
 > 
 > 2003-02-04  David Carlton  <carlton@math.stanford.edu>
 > 
 > 	* symtab.c (search_symbols): Revert the search_symbols part of my
 > 	2002-12-23 patch.  Add comment.
 > 
 > Index: symtab.c
 > ===================================================================
 > RCS file: /cvs/src/src/gdb/symtab.c,v
 > retrieving revision 1.87
 > diff -u -p -r1.87 symtab.c
 > --- symtab.c	4 Feb 2003 18:07:01 -0000	1.87
 > +++ symtab.c	4 Feb 2003 23:55:02 -0000
 > @@ -2967,31 +2967,18 @@ search_symbols (char *regexp, namespace_
 >  	      {
 >  		if (0 == find_pc_symtab (SYMBOL_VALUE_ADDRESS (msymbol)))
 >  		  {
 > -		    if (kind == FUNCTIONS_NAMESPACE)
 > -		      {
 > -			found_misc = 1;
 > -		      }
 > -		    else
 > -		      {
 > -			struct symbol *sym;
 > -
 > -			if (SYMBOL_DEMANGLED_NAME (msymbol) != NULL)
 > -			  sym
 > -			    = lookup_symbol_aux_minsyms (SYMBOL_DEMANGLED_NAME
 > -							 (msymbol),
 > -							 SYMBOL_NAME (msymbol),
 > -							 VAR_NAMESPACE,
 > -							 NULL, NULL);
 > -			else
 > -			  sym
 > -			    = lookup_symbol_aux_minsyms (SYMBOL_NAME (msymbol),
 > -							 NULL,
 > -							 VAR_NAMESPACE,
 > -							 NULL, NULL);
 > -
 > -			if (sym == NULL)
 > -			  found_misc = 1;
 > -		      }
 > +		    /* FIXME: carlton/2003-02-04: Given that the
 > +		       semantics of lookup_symbol keeps on changing
 > +		       slightly, it would be a nice idea if we had a
 > +		       function lookup_symbol_minsym that found the
 > +		       symbol associated to a given minimal symbol (if
 > +		       any).  */
 > +		    if (kind == FUNCTIONS_NAMESPACE
 > +			|| lookup_symbol (SYMBOL_NAME (msymbol),
 > +					  (struct block *) NULL,
 > +					  VAR_NAMESPACE,
 > +					0, (struct symtab **) NULL) == NULL)
 > +		      found_misc = 1;
 >  		  }
 >  	      }
 >  	  }


  reply	other threads:[~2003-02-20 20:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-05  0:24 David Carlton
2003-02-20 20:43 ` Elena Zannoni [this message]
2003-02-20 21:03   ` David Carlton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15957.16088.234106.47580@localhost.redhat.com \
    --to=ezannoni@redhat.com \
    --cc=carlton@math.stanford.edu \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox