This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] objdump: allow to display instructions only for given label
- From: Nick Clifton <nickc at redhat dot com>
- To: Masatake YAMATO <yamato at redhat dot com>, binutils at sourceware dot org
- Date: Wed, 7 Nov 2018 18:10:17 +0000
- Subject: Re: [PATCH] objdump: allow to display instructions only for given label
- References: <20181022194026.7294-1-yamato@redhat.com>
Hi Masatake-san,
> * objdump.c (long_options): make --disassemble option take
> option argument.
> (usage): Add description for `label' option argument
> for the --disassemble option.
> (label): New file private variable.
> (struct objdump_disasm_info): New field `label'.
> (disassemble_section): Introduce `do_print' local variable
> to control whether objdump displays the result of disassembling
> for a lable or not.
> (main): Set `label' file private variable if the option argument
> for the --disassemble option is given.
>
> * doc/binutils.texi (objdump): Add description for the option
> argument.
Thank you for submitting this patch. I have applied it along with
a couple of minor additions. Specifically I added an entry in the
binutils/NEWS file mentioning this new feature, and I added a test
to the binutils testsuite to check that the feature works.
Cheers
Nick