This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH]Add option "-at" to "maint agent" and "maint agent-eval"
- From: Tom Tromey <tromey at redhat dot com>
- To: Hui Zhu <teawater at gmail dot com>
- Cc: gdb-patches ml <gdb-patches at sourceware dot org>, Stan Shebs <stan_shebs at mentor dot com>, Yao Qi <Yao_Qi at mentor dot com>, Eli Zaretskii <eliz at gnu dot org>
- Date: Wed, 27 Jun 2012 12:37:22 -0600
- Subject: Re: [PATCH]Add option "-at" to "maint agent" and "maint agent-eval"
- References: <CANFwon2gboB-_waNACh1jSxrsXeuDSsEq=+b2yDnQV1Q1x4e+g@mail.gmail.com>
>>>>> ">" == Hui Zhu <teawater@gmail.com> writes:
>> 2012-06-24 Hui Zhu <hui_zhu@mentor.com>
>> * ax-gdb.c (cli/cli-utils.h): New include.
>> (linespec.h): Ditto.
>> (agent_eval_command_one): New function.
>> (agent_command_1): Ditto.
>> (agent_command): Call function agent_command_1.
>> (agent_eval_command): Ditto.
>> (_initialize_ax_gdb): Change help for "maint agent"
>> and "maint agent-eval".
This is also ok. I think it may slightly abuse linespec parsing, but
considering that it is a 'maint' command, I don't think it matters, as
we are free to say "don't do that", or change it as needed.
>> + expr = parse_exp_1 (&exp, block_for_pc (pc), 0);
You'll need a minor tweak to get it to compile, since I changed
parse_exp_1 today.
Tom