From: Daniel Jacobowitz <drow@mvista.com>
To: gdb-patches@sources.redhat.com
Subject: PR gdb/260: variables not expanded on the add-symbol-file command line
Date: Sat, 21 Jun 2003 22:31:00 -0000 [thread overview]
Message-ID: <20030621223056.GB31184@nevyn.them.org> (raw)
This PR gets reported pretty regularly. Since the command line
overhaul I was hoping to do never materialized, does anyone object to
this patch to fix the specific problem in add-symbol-file? I believe
the patch is simple enough to have no copyright issues.
The problem is that the code tries to parse <decimalnum> and 0x<hexnum>
directly, and does not accept convenience variables.
----- Forwarded message from Nick Hibma <n_hibma@webweaving.org> -----
Date: 28 May 2002 19:28:01 -0000
From: Nick Hibma <n_hibma@webweaving.org>
Subject: Re: gdb/260: variables not expanded on the add-symbol-file command line
To: nobody@sources.redhat.com
Cc: gdb-prs@sources.redhat.com,
Reply-To: Nick Hibma <n_hibma@webweaving.org>
The following reply was made to PR gdb/260; it has been noted by GNATS.
From: Nick Hibma <n_hibma@webweaving.org>
To: nobody@sources.redhat.com, phil@off.net,
gdb-gnats@sources.redhat.com, gdb-prs@sources.redhat.com
Cc:
Subject: Re: gdb/260: variables not expanded on the add-symbol-file command line
Date: Tue, 28 May 2002 21:23:53 +0200
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=260
The following patch fixes this (in 5.2) (note that it also removes a
duplicate initialisation):
# diff -wu symfile.c.orig symfile.c
--- symfile.c.orig Tue May 28 15:51:37 2002
+++ symfile.c Tue May 28 21:21:04 2002
@@ -1546,11 +1546,7 @@
char *val = sect_opts[i].value;
char *sec = sect_opts[i].name;
- val = sect_opts[i].value;
- if (val[0] == '0' && val[1] == 'x')
- addr = strtoul (val+2, NULL, 16);
- else
- addr = strtoul (val, NULL, 10);
+ addr = parse_and_eval_address(val);
/* Here we store the section offsets in the order they were
entered on the command line. */
----- End forwarded message -----
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
next reply other threads:[~2003-06-21 22:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-21 22:31 Daniel Jacobowitz [this message]
2003-06-22 17:59 ` Andrew Cagney
2003-06-22 18:34 ` Daniel Jacobowitz
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=20030621223056.GB31184@nevyn.them.org \
--to=drow@mvista.com \
--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