Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* only force symbol lookups with local variables on hppa
@ 2006-08-20 14:28 Mike Frysinger
  2006-08-20 14:33 ` Mark Kettenis
  0 siblings, 1 reply; 18+ messages in thread
From: Mike Frysinger @ 2006-08-20 14:28 UTC (permalink / raw)
  To: gdb-patches


[-- Attachment #1.1: Type: text/plain, Size: 293 bytes --]

as a follow up to the slow script thread:
http://sources.redhat.com/ml/gdb/2006-08/msg00099.html

attached patch will change the behavior so symbols with dollar signs in them 
($) are only looked up when a specific arch says to do so (with hppa being 
the only one at the moment)
-mike

[-- Attachment #1.2: Type: application/pgp-signature, Size: 827 bytes --]

[-- Attachment #2: gdb-hppa-dollar-lookups.patch --]
[-- Type: text/x-diff, Size: 920 bytes --]

2006-08-20  Mike Frysinger  <vapier@gentoo.org>

	* parse.c (write_dollar_variable): Check LOOKUP_DOLLAR_SYMBOLS.
	* config/pa/tm-hppa.h [LOOKUP_DOLLAR_SYMBOLS]: Define.

--- gdb/parse.c
+++ gdb/parse.c
@@ -489,8 +489,12 @@ write_dollar_variable (struct stoken str
   /* On some systems, such as HP-UX and hppa-linux, certain system routines 
      have names beginning with $ or $$.  Check for those, first. */
 
+#ifdef LOOKUP_DOLLAR_SYMBOLS
   sym = lookup_symbol (copy_name (str), (struct block *) NULL,
 		       VAR_DOMAIN, (int *) NULL, (struct symtab **) NULL);
+#else
+  sym = NULL;
+#endif
   if (sym)
     {
       write_exp_elt_opcode (OP_VAR_VALUE);
--- gdb/config/pa/tm-hppa.h
+++ gdb/config/pa/tm-hppa.h
@@ -28,3 +28,5 @@
 
 extern int hppa_pc_requires_run_before_use (CORE_ADDR pc);
 #define DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE(pc) hppa_pc_requires_run_before_use (pc)
+
+#define LOOKUP_DOLLAR_SYMBOLS

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

end of thread, other threads:[~2007-10-01  1:41 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-20 14:28 only force symbol lookups with local variables on hppa Mike Frysinger
2006-08-20 14:33 ` Mark Kettenis
2006-08-20 14:38   ` Daniel Jacobowitz
2006-08-22  1:35     ` Mark Kettenis
2006-08-22  2:06       ` Daniel Jacobowitz
2006-08-22 18:01     ` Mike Frysinger
2006-08-22 18:21       ` Daniel Jacobowitz
2006-08-22 18:34         ` Mike Frysinger
2006-09-14  5:01         ` [patch ping] change lookup order of $localvars to happen before symbol tables Mike Frysinger
2006-09-16  4:02           ` Daniel Jacobowitz
2006-09-17  4:22             ` Mike Frysinger
2006-09-17 15:10               ` Daniel Jacobowitz
2006-09-17 20:22                 ` Mike Frysinger
2006-09-17 20:28                   ` Daniel Jacobowitz
2006-09-27  5:51                 ` Mike Frysinger
2007-09-26 19:50                 ` Mike Frysinger
2007-10-01  0:37                   ` Daniel Jacobowitz
2007-10-01  1:41                     ` Mike Frysinger

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