diff options
author | Philippe Waroquiers <philippe.waroquiers@skynet.be> | 2019-06-25 00:50:29 +0200 |
---|---|---|
committer | Philippe Waroquiers <philippe.waroquiers@skynet.be> | 2020-06-22 21:16:25 +0200 |
commit | 5b860c93e3c659625d92a2d2247712a84eac1041 (patch) | |
tree | 47c7f36f35cf6b6ddbade564876f4aeb0b9b3b89 /gdb/NEWS | |
parent | 746ebfe8dd7aa7d9ec8e9651871f6e11fbf14537 (diff) | |
download | gdb-5b860c93e3c659625d92a2d2247712a84eac1041.zip gdb-5b860c93e3c659625d92a2d2247712a84eac1041.tar.gz gdb-5b860c93e3c659625d92a2d2247712a84eac1041.tar.bz2 |
NEWS and documentation for alias default-args related concept and commands.
gdb/ChangeLog
2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
* NEWS: Mention change to the alias command.
gdb/doc/ChangeLog
2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
* gdb.texinfo (Command aliases default args): New node documenting
how to use default args for a command using aliases.
(Aliases): Document the new 'DEFAULT-ARGS...' option.
(Help): Update help aliases text and describe when full alias
definition is provided.
Diffstat (limited to 'gdb/NEWS')
-rw-r--r-- | gdb/NEWS | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -79,6 +79,21 @@ tui new-layout NAME WINDOW WEIGHT [WINDOW WEIGHT]... Define a new TUI layout, specifying its name and the windows that will be displayed. +* Changed commands + +alias [-a] [--] ALIAS = COMMAND [DEFAULT-ARGS...] + The alias command can now specify default args for an alias. + GDB automatically prepends the alias default args to the argument list + provided explicitly by the user. + For example, to have a backtrace with full details, you can define + an alias 'bt_ALL' as + 'alias bt_ALL = backtrace -entry-values both -frame-arg all + -past-main -past-entry -full'. + Alias default arguments can also use a set of nested 'with' commands, + e.g. 'alias pp10 = with print pretty -- with print elem 10 -- print' + defines the alias pp10 that will pretty print a maximum of 10 elements + of the given expression (if the expression is an array). + * New targets GNU/Linux/RISC-V (gdbserver) riscv*-*-linux* |