* [PATCH/obvious] Remove unused variable in parse_breakpoint_sals
@ 2012-08-08 20:40 Keith Seitz
2012-08-08 20:46 ` Keith Seitz
0 siblings, 1 reply; 2+ messages in thread
From: Keith Seitz @ 2012-08-08 20:40 UTC (permalink / raw)
To: gdb-patches@sourceware.org ml
[-- Attachment #1: Type: text/plain, Size: 434 bytes --]
Hi,
While hacking on the breakpoint API, I noticed that the local variable
addr_start is no longer used in parse_breakpoint_sals.
As Jan kindly pointed out, this variable was obsoleted by Joel and Tom
as part of the ambiguous linespec patchset last year.
I am committing this as obvious.
Keith
ChangeLog
2012-08-08 Keith Seitz <keiths@redhat.com>
* breakpoint.c (parse_breakpoint_sals): Remove unused variable
addr_start.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: unused-var-parse_breakpoint_sals.patch --]
[-- Type: text/x-patch; name="unused-var-parse_breakpoint_sals.patch", Size: 0 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH/obvious] Remove unused variable in parse_breakpoint_sals
2012-08-08 20:40 [PATCH/obvious] Remove unused variable in parse_breakpoint_sals Keith Seitz
@ 2012-08-08 20:46 ` Keith Seitz
0 siblings, 0 replies; 2+ messages in thread
From: Keith Seitz @ 2012-08-08 20:46 UTC (permalink / raw)
To: gdb-patches@sourceware.org ml
On 08/08/2012 01:39 PM, Keith Seitz wrote:
> I am committing this as obvious.
And this time, including the patch!
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 03719d4..b24f71c 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -9115,8 +9115,6 @@ static void
parse_breakpoint_sals (char **address,
struct linespec_result *canonical)
{
- char *addr_start = *address;
-
/* If no arg given, or if first arg is 'if ', use the default
breakpoint. */
if ((*address) == NULL
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-08 20:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-08 20:40 [PATCH/obvious] Remove unused variable in parse_breakpoint_sals Keith Seitz
2012-08-08 20:46 ` Keith Seitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox