public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM] archer-keiths-linespec-rewrite: * linespec.c (linespec_parse_basic): Always decode the line offset when present.
@ 2012-03-27 17:16 kseitz
0 siblings, 0 replies; only message in thread
From: kseitz @ 2012-03-27 17:16 UTC (permalink / raw)
To: archer-commits
The branch, archer-keiths-linespec-rewrite has been updated
via 6d860be726c0e634ce1e17f222d4afabb36d67f2 (commit)
from 4e70b4a077f9fd00d00a6a56d587d6a075b618d6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 6d860be726c0e634ce1e17f222d4afabb36d67f2
Author: Keith Seitz <keiths@redhat.com>
Date: Tue Mar 27 10:15:26 2012 -0700
* linespec.c (linespec_parse_basic): Always decode the
line offset when present.
-----------------------------------------------------------------------
Summary of changes:
gdb/linespec.c | 29 ++++++++++-------------------
1 files changed, 10 insertions(+), 19 deletions(-)
First 500 lines of diff:
diff --git a/gdb/linespec.c b/gdb/linespec.c
index e614810..a329de9 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -1427,25 +1427,16 @@ linespec_parse_basic (linespec_parser *parser)
if (token.type == LSTOKEN_NUMBER)
{
- if (PARSER_RESULT (parser)->function_name != NULL)
- {
- /* We could do this, but it is a new feature. */
- throw_error (UNSUPPORTED_ERROR,
- _("FUNCTION:OFFSET is unimplemented"));
- }
- else
- {
- /* User specified FILE:LINE. Record the line offset and
- get the next token. */
- name = copy_token_string (token);
- cleanup = make_cleanup (xfree, name);
- PARSER_RESULT (parser)->line_offset
- = linespec_parse_line_offset (name);
- do_cleanups (cleanup);
+ /* User specified an offset. Record the line offset and
+ get the next token. */
+ name = copy_token_string (token);
+ cleanup = make_cleanup (xfree, name);
+ PARSER_RESULT (parser)->line_offset
+ = linespec_parse_line_offset (name);
+ do_cleanups (cleanup);
- /* Ge the next token. */
- token = linespec_lexer_consume_token (parser);
- }
+ /* Ge the next token. */
+ token = linespec_lexer_consume_token (parser);
}
else if (token.type == LSTOKEN_STRING)
{
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-03-27 17:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-27 17:16 [SCM] archer-keiths-linespec-rewrite: * linespec.c (linespec_parse_basic): Always decode the line offset when present kseitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).