diff options
author | Jan Vrany <jan.vrany@fit.cvut.cz> | 2018-08-14 14:13:28 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2018-08-14 14:13:28 +0100 |
commit | 26fb3983d7062c6f6bc43028ae2074cc29d22c7e (patch) | |
tree | 85d063d26e8b205cd713db224064d363decd88b6 /gdb/doc | |
parent | 67943c005fafa4397535766787b4fbda338ac07d (diff) | |
download | gdb-26fb3983d7062c6f6bc43028ae2074cc29d22c7e.zip gdb-26fb3983d7062c6f6bc43028ae2074cc29d22c7e.tar.gz gdb-26fb3983d7062c6f6bc43028ae2074cc29d22c7e.tar.bz2 |
MI: Add -a option to the "-data-disassemble" command
The CLI "disassemble" command allows specifying a single address - in
that case the function surrounding that address is disassembled.
This commit adds this feature to the equivalent MI command
"-data-disassemble".
gdb/ChangeLog:
2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
* mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
If used, use find_pc_partial_function to find address range
to disassemble.
* mi/mi-main.c (mi_cmd_list_features): Report
"data-disassemble-a-option" feature.
* NEWS: Mention new -data-disassemble option -a.
gdb/doc/ChangeLog:
2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
* gdb.texinfo (GDB/MI Data Manipulation): Document
"-data-disassemble -a addr".
(GDB/MI Support Commands): Document "data-disassemble-a-option"
feature.
gdb/testsuite/ChangeLog:
2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
* gdb.mi/mi-disassemble.exp (test_disassembly_only): Add tests for
-data-disassemble -a.
(test_disassembly_bogus_args): Likewise.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 9 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index ceb4043..8688b7f 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,10 @@ +2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz> + + * gdb.texinfo (GDB/MI Data Manipulation): Document + "-data-disassemble -a addr". + (GDB/MI Support Commands): Document "data-disassemble-a-option" + feature. + 2018-08-07 Simon Marchi <simon.marchi@ericsson.com> * gdb.texinfo (Index Files Speed Up GDB): Add section about diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index b931834..433a269 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -31208,6 +31208,7 @@ For details about what an addressable memory unit is, @smallexample -data-disassemble [ -s @var{start-addr} -e @var{end-addr} ] + | [ -a @var{addr} ] | [ -f @var{filename} -l @var{linenum} [ -n @var{lines} ] ] -- @var{mode} @end smallexample @@ -31220,6 +31221,11 @@ Where: is the beginning address (or @code{$pc}) @item @var{end-addr} is the end address +@item @var{addr} +is an address anywhere within (or the name of) the function to +disassemble. If an address is specified, the whole function +surrounding that address will be disassembled. If a name is +specified, the whole function with that name will be disassembled. @item @var{filename} is the name of the file to disassemble @item @var{linenum} @@ -33356,6 +33362,9 @@ records, produced when trying to execute an undefined @sc{gdb/mi} command @item exec-run-start-option Indicates that the @code{-exec-run} command supports the @option{--start} option (@pxref{GDB/MI Program Execution}). +@item data-disassemble-a-option +Indicates that the @code{-data-disassemble} command supports the @option{-a} +option (@pxref{GDB/MI Data Manipulation}). @end ftable @subheading The @code{-list-target-features} Command |