From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3452 invoked by alias); 20 Aug 2006 13:02:11 -0000 Received: (qmail 3437 invoked by uid 22791); 20 Aug 2006 13:02:10 -0000 X-Spam-Check-By: sourceware.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 20 Aug 2006 13:02:03 +0000 Received: from home.wh0rd.org (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 78431645D6 for ; Sun, 20 Aug 2006 13:02:01 +0000 (UTC) Received: (qmail 32689 invoked from network); 20 Aug 2006 08:56:33 -0400 Received: from unknown (HELO vapier) (192.168.0.2) by 192.168.0.1 with SMTP; 20 Aug 2006 08:56:33 -0400 From: Mike Frysinger To: gdb-patches@sourceware.org Subject: only force symbol lookups with local variables on hppa Date: Sun, 20 Aug 2006 14:28:00 -0000 User-Agent: KMail/1.9.3 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_L2F6E8xEk39oaA1" Message-Id: <200608200903.07185.vapier@gentoo.org> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00135.txt.bz2 --Boundary-00=_L2F6E8xEk39oaA1 Content-Type: multipart/signed; boundary="nextPart1182864.lnvIZ3I97Y"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1182864.lnvIZ3I97Y Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-length: 294 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 the= m=20 ($) are only looked up when a specific arch says to do so (with hppa being= =20 the only one at the moment) -mike --nextPart1182864.lnvIZ3I97Y Content-Type: application/pgp-signature Content-length: 827 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (GNU/Linux) iQIVAwUAROhdi0FjO5/oN/WBAQLBUxAAmswe/J3e0gUtMRC3zbRDZymCBjriP27P NLcyrVptGaWAj35Eutex7AOhkPiYvrIj8JDGU3YduT8N/GsTREAEzpTv4FMhDV2i FEwXS9CJpFFvOWqflOQk3C6x07kaI5RZciAHda2gscO+j5uUh/hbw+IH6XXFC6dg bYSBp6oKFBAc69mqDoZwhtSnYW1cCOx6vyG1xqSuwTx85P8njcTbGHb1xjzqP9v0 SnIqt9o0pCndLHs4KuLh5JgSQQAv3fkLn5hMXNou5xD+QoPDx1Rocvc237GlUzSb GxDQkee0AxZ3sV4M9gwGn7zv1LlmuRo8gqmF+t9PQbppp29Dg6c9sIuNHPTgMDU1 9GENMs+WbOrndtUHe7RjQMvV6zCnZwOMYv5Mi6fZyayPChgsad60kyGzfNede55W xnnTcpnPaX5LH0/CuRt42A39dUfv5UVTL5CngSWtFZfPenJa3sPG05iyvrsd011h mo58O/t+hz8yHwqIfRCWITUmjidXKwBKo6CXCCX7XY78axJObQrirHQ82BZq3SDm zU04PMuXVw5t2iBLPBRu2hzlNOfac9yd4vuZ0DSVUnm73WbwDK/J/rlkj7/LXZul 3+bQFs4HLhwvceVSVrXLVIpNat1m4H8csQVGqWea2B9PzQTwpTu1gG3aCng1o6nD TsPmt+N4TzA= =GT9h -----END PGP SIGNATURE----- --nextPart1182864.lnvIZ3I97Y-- --Boundary-00=_L2F6E8xEk39oaA1 Content-Type: text/x-diff; charset="us-ascii"; name="gdb-hppa-dollar-lookups.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="gdb-hppa-dollar-lookups.patch" Content-length: 920 2006-08-20 Mike Frysinger * 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 --Boundary-00=_L2F6E8xEk39oaA1--