From: Klee Dienes <klee@apple.com>
To: Jim Blandy <jimb@redhat.com>
Cc: Michael Snyder <msnyder@redhat.com>, Adam Fedor <fedor@doc.com>,
gdb-patches@sources.redhat.com
Subject: Re: [PATCH] Redefine skip_quoted
Date: Mon, 14 Oct 2002 14:33:00 -0000 [thread overview]
Message-ID: <95706CBA-DFBC-11D6-A1B6-00039396EEB8@apple.com> (raw)
In-Reply-To: <vt2bs5wu5ks.fsf@zenia.red-bean.com>
In the Apple code, we use skip_quoted to allow for the possibility of
spaces in Objective-C function names.
I'm actually coming to think that allowing people to break on unquoted
Objective-C methods was a mistake: it's caused us no end of trouble
trying to shoehorn decode_line_1() into handling every possible
edge-case. I'm not sure how practical it is for us to remove it at
this point, though --- we'd have to do some research among our
Objective-C developers to find out how important a feature it is to
them, I think.
Here's the appropriate diff from our linespec.c:
diff -u -r1.1.1.10 -r1.17
--- linespec.c 2002/09/26 20:57:05 1.1.1.10
+++ linespec.c 2002/09/26 22:19:22 1.17
@@ -1094,10 +1245,15 @@
}
else if (is_quoted)
{
- p = skip_quoted (*argptr);
+ /* allow word separators in function names for Obj-C */
+ p = skip_quoted (*argptr, "");
if (p[-1] != '\'')
error ("Unmatched single quote.");
}
@@ -1105,9 +1261,10 @@
}
else
{
- p = skip_quoted (*argptr);
+ /* allow word separators in function names for Obj-C */
+ p = skip_quoted (*argptr, "");
}
copy = (char *) alloca (p - *argptr + 1);
On Monday, October 14, 2002, at 04:29 PM, Jim Blandy wrote:
>
> I don't understand the purpose of this patch.
>
> Instead of havingb skip_quoted use gdb_completer_word_break_characters
> directly, it adds an argument to skip_quoted, and then passes the
> return value from get_gdb_completer_word_break_characters () in every
> case. But the Objective-C case does exactly the same thing as all the
> other cases; it doesn't behave any differently.
>
> Is this some sort of preparatory patch for something else? What's
> coming down the line?
>
> Michael Snyder <msnyder@redhat.com> writes:
>
>> Adam Fedor wrote:
>>>
>>> Objective-C has a different idea of what word break characters are.
>>> Hence this patch (although the new usage isn't actually apparent in
>>> this
>>> patch).
>>
>> I think you need Jim or Elena's buy-in for the change in linespec.c,
>> but I'll approve the rest. Jim, Elena's on vacation -- can you give
>> a quick look at this?
>>
>>>
>>> 2002-10-04 Adam Fedor <fedor@gnu.org>
>>>
>>> * Makefile.in (c-exp.tab.o): Add $(completer_h) to
>>> dependancies.
>>> (jv-exp.tarb.o): Likewise.
>>> (p-exp.tab.o): Likewise.
>>> * completer.c (skip_quoted): Take additional "word break
>>> characters" argument.
>>> * completer.h: Update definition of skip_quoted.
>>> * defs.h (skip_quoted): Delete, declared in completer.h.
>>> * c-exp.y: Include completer.h. Update definition of
>>> skip_quoted.
>>> * p-exp.y: Likewise.
>>> * jv-exp.y: Likewise.
>>> * linespec.c (decode_line_1): Likewise.
next prev parent reply other threads:[~2002-10-14 21:33 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-04 19:53 Adam Fedor
2002-10-08 16:22 ` Michael Snyder
2002-10-14 13:47 ` Jim Blandy
2002-10-14 14:30 ` Michael Snyder
2002-10-14 14:33 ` Klee Dienes [this message]
2002-10-16 0:44 ` Jim Blandy
2002-10-16 3:29 ` [PATCH] minor nit in read_tilde_fields Klee Dienes
2002-10-16 6:54 ` Daniel Jacobowitz
2002-10-17 23:33 ` [PATCH] Redefine skip_quoted Adam Fedor
2002-10-18 14:52 ` Elena Zannoni
2002-10-18 15:54 ` Adam Fedor
2002-10-22 8:04 ` Elena Zannoni
2002-10-25 12:43 ` Adam Fedor
2002-11-03 16:20 ` Elena Zannoni
2002-11-03 18:54 ` GDB ObjC plan (was: Re: [PATCH] Redefine skip_quoted) Adam Fedor
2002-11-07 12:36 ` [PATCH] Redefine skip_quoted Jim Blandy
2002-10-14 16:17 Adam Fedor
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=95706CBA-DFBC-11D6-A1B6-00039396EEB8@apple.com \
--to=klee@apple.com \
--cc=fedor@doc.com \
--cc=gdb-patches@sources.redhat.com \
--cc=jimb@redhat.com \
--cc=msnyder@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