This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Commit: ARM SIM: Add tracing support.
- From: Doug Evans <dje at google dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: Nick Clifton <nickc at redhat dot com>, gdb-patches <gdb-patches at sourceware dot org>
- Date: Sat, 15 Mar 2014 01:36:23 -0700
- Subject: Re: Commit: ARM SIM: Add tracing support.
- Authentication-results: sourceware.org; auth=none
- References: <87vbvg7qna dot fsf at redhat dot com> <20140314172311 dot GK4882 at adacore dot com>
On Fri, Mar 14, 2014 at 10:23 AM, Joel Brobecker <brobecker@adacore.com> wrote:
> Hey Nick,
>
>> I am applying the attached patch to add tracing support to the ARM
>> simulator. With the patch applied three new command line options are
>> now supported: -t enables tracing, -d enables disassembly and -z
>> enables a limited form of tracing which just reports function entry
>> and exits.
>>
>> In the course of testing this patch I also came across a variety of
>> compile time warning messages. So the patch also tidies these up,
>> just to make things clean and proper.
>
> I haven't looked at the patch itself (I trust you on this part).
> The part that I wondered about is documentation. I don't think
> we have a manual for the embedded simulator in general, but IWBN
> if we could somehow document those switches. Perhaps the best we could
> do is just at least announce them in the gdb/NEWS file?
fwiw, I think putting such effort into gdb's sims is more effort than
it's worth.
But if the community wants it, can we use something like sim/NEWS instead?
> I assume that "target sim --help" will print a usage, so people have
> a way of get a list of supported switches without having to read
> the code?
Yeah, the patch has that.
Nick, can we tighten up the argument parsing here?
IIUC, -tfoo will get recognized as -t.