From: Pedro Alves <palves@redhat.com>
To: Peter Bergner <bergner@vnet.ibm.com>
Cc: Eli Zaretskii <eliz@gnu.org>,
nickc@redhat.com, gdb-patches@sourceware.org,
uweigand@de.ibm.com, amodra@gmail.com,
binutils@sourceware.org
Subject: Re: [PATCH 1/2] Add support for setting disassembler-options in GDB for POWER, ARM and S390
Date: Tue, 22 Nov 2016 17:40:00 -0000 [thread overview]
Message-ID: <833d0a5c-fa02-59d1-96ec-65c43bb5f836@redhat.com> (raw)
In-Reply-To: <3ced8e70-af98-12cc-9ee0-41dc46029abc@vnet.ibm.com>
On 11/22/2016 05:04 PM, Peter Bergner wrote:
> On 11/18/16 11:23 AM, Pedro Alves wrote:
>> On 11/18/2016 04:56 PM, Peter Bergner wrote:
>> This will need a change to the GDB manual as well. It'd probably
>> be a good idea to refer to the -M/--disassembler-options section
>> of the binutils/disassembler manual for the architecture specific
>> options.
>
> I don't know the manual at all. Can you point me to the spot
> you'd like the documentation inserted at?
Between the documentation of "disassemble" and "set disassembly-flavor",
perhaps?
>
>
>> It'll be good to include an arch-independent gdb test to make sure
>> that "set disassembler-options" on other architectures doesn't
>> crash and cover some corner cases. E.g., test at least both:
>>
>> "set disassembler-options"
>> "set disassembler-options non-existing-option"
>
> Is there an example of an arch independent gdb test case I can
> use as a skeleton?
Most tests are arch independent. Ones that aren't will
have some istarget check. Tests in gdb.arch/ are examples.
See "Testsuite Organization" in testsuite/README.
See also <https://sourceware.org/gdb/wiki/GDBTestcaseCookbook>,
though for the suggestion above, you don't even need to compile a
program and run to main. The suggestion would basically be
translated to something like:
gdb_exit
gdb_start
# Using gdb_test_no_output assuming these (should) produce no output.
gdb_test_no_output "set disassembler-options"
gdb_test_no_output "show disassembler-options"
gdb_test "set disassembler-options non-existing-option" "whatever gdb says"
Thanks,
Pedro Alves
next prev parent reply other threads:[~2016-11-22 17:40 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-17 19:19 Peter Bergner
2016-11-17 19:52 ` Peter Bergner
2016-11-18 10:25 ` Nick Clifton
2016-11-18 15:10 ` Peter Bergner
2016-11-18 15:38 ` Eli Zaretskii
2016-11-18 16:56 ` Peter Bergner
2016-11-18 17:08 ` Eli Zaretskii
2016-11-18 17:23 ` Pedro Alves
2016-11-22 17:04 ` Peter Bergner
2016-11-22 17:40 ` Pedro Alves [this message]
2017-01-23 23:35 ` Peter Bergner
2017-01-24 1:57 ` Alan Modra
2017-01-24 2:39 ` Peter Bergner
2017-01-24 3:36 ` Alan Modra
2017-01-24 4:32 ` Peter Bergner
2017-01-24 16:00 ` Peter Bergner
2017-01-25 4:31 ` Alan Modra
2017-01-25 17:20 ` Peter Bergner
2017-01-24 3:29 ` Eli Zaretskii
[not found] ` <20170125142335.GT28060@E107787-LIN>
2017-01-25 14:30 ` Peter Bergner
2017-01-31 21:13 ` Peter Bergner
2017-02-01 21:44 ` Yao Qi
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=833d0a5c-fa02-59d1-96ec-65c43bb5f836@redhat.com \
--to=palves@redhat.com \
--cc=amodra@gmail.com \
--cc=bergner@vnet.ibm.com \
--cc=binutils@sourceware.org \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=nickc@redhat.com \
--cc=uweigand@de.ibm.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