From: Sorin Otescu <sorinu@gmail.com>
To: gdb-patches@sourceware.org
Subject: Re: [patch] Add support for hooking prefix commands
Date: Wed, 09 Mar 2011 14:03:00 -0000 [thread overview]
Message-ID: <4D7786A1.8020806@gmail.com> (raw)
In-Reply-To: <83k4g8pg4x.fsf@gnu.org>
On 03/09/2011 03:39 PM, Eli Zaretskii wrote:
>> Date: Wed, 09 Mar 2011 14:54:44 +0200
>> From: Sorin Otescu<sorinu@gmail.com>
>> CC: gdb-patches@sourceware.org
>>
>>> Can we have underscore characters in commands? If so, this
>>> implementation would defeat hooking them.
>>>
>> It is possible to define commands containing underscores, but none of
>> the built-in commands
>> contain any (they all use dash).
> That could be a problem. What do others think?
>
>>> Anyway, if this is accepted, please write a short patch for the manual
>>> as well.
>>>
>> The documentation for 7.2 suggests this functionality is already there;
>> the difference is that
>> you need to hook the last word of the command (in this case,
>> hook-threads). I wonder if
>> that's enough / better... This patch was generated from 7.0 and adapted
>> to 7.2.
> Are you saying that 7.2 already supports this feature? Or are you
> saying that it's documented there, but doesn't work?
>
It's documented there, but I can't test it ATM, because I'm using a gdb
from a toolchain and it's not
easy for me to switch to 7.2. Maybe somebody can shed a light on the issue.
I see some problems with that approach, even if it works. What happens
if two or more commands
have the same second word ? Which one would be used ?
next prev parent reply other threads:[~2011-03-09 13:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-09 12:35 Sorin Otescu
2011-03-09 12:58 ` Eli Zaretskii
2011-03-09 13:36 ` Sorin Otescu
2011-03-09 14:01 ` Eli Zaretskii
2011-03-09 14:03 ` Sorin Otescu [this message]
2011-03-09 14:15 ` Eli Zaretskii
2011-03-09 14:22 ` Eli Zaretskii
2011-03-09 15:08 ` Sorin Otescu
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=4D7786A1.8020806@gmail.com \
--to=sorinu@gmail.com \
--cc=gdb-patches@sourceware.org \
/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