This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] objdump: allow to display instructions only for given label


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]