aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdb-gdb.py.in
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-06-16 10:32:35 -0600
committerTom Tromey <tom@tromey.com>2019-06-25 07:48:25 -0600
commit82432e10143669d4936848d77e2a7b78c62c26e0 (patch)
treedb4d02a4e1a63733c44df3a39a90ebacd4d913b3 /gdb/gdb-gdb.py.in
parentec328aa512ee09ab326d59b417836bb950083230 (diff)
downloadbinutils-82432e10143669d4936848d77e2a7b78c62c26e0.zip
binutils-82432e10143669d4936848d77e2a7b78c62c26e0.tar.gz
binutils-82432e10143669d4936848d77e2a7b78c62c26e0.tar.bz2
Simplify command window creation
make_command_window is never called when *win_info_ptr is non-NULL, so this patch simplifies the function by removing the parameter and having it return its result directly. This in turn makes it more obvious that a NULL check in show_source_disasm_command can be removed. gdb/ChangeLog 2019-06-25 Tom Tromey <tom@tromey.com> * tui/tui-layout.c (make_command_window): Remove win_info_ptr parameter. Return the new window. (show_source_disasm_command): Update and remove NULL check. (show_source_or_disasm_and_command): Update.
Diffstat (limited to 'gdb/gdb-gdb.py.in')
0 files changed, 0 insertions, 0 deletions