Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: gdb-patches@sourceware.org
Subject: only force symbol lookups with local variables on hppa
Date: Sun, 20 Aug 2006 14:28:00 -0000	[thread overview]
Message-ID: <200608200903.07185.vapier@gentoo.org> (raw)


[-- 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

             reply	other threads:[~2006-08-20 13:02 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-20 14:28 Mike Frysinger [this message]
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

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=200608200903.07185.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=gdb-patches@sourceware.org \
    /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