]> git.feebdaed.xyz Git - 0xmirror/binutils-gdb.git/commit
gdb: minor code cleanups in list_command
authorAndrew Burgess <aburgess@redhat.com>
Sat, 15 Nov 2025 14:17:01 +0000 (14:17 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Tue, 16 Dec 2025 15:24:06 +0000 (15:24 +0000)
commite5ba60c83639d04c296c8d9c47568c5557af9b8d
tree2362fdceeaa6d96c3fa83638ae553f1dd4cacbc6
parent6cf6a77c2b0293b9560d982436cda8856f082c93
gdb: minor code cleanups in list_command

There should be no functional change after this commit, this is mostly
just a code cleanup in the list_command function.

I have inlined local variables into the function body, changing 'int'
to 'bool' where appropriate, and updating 'if' conditions to avoid
treating non-bools as a bool.

I also make more use of list_around_line towards the end of the
list_command function, which avoids some code duplication, but
shouldn't be a functional change.

Reviewed-By: Keith Seitz <keiths@redhat.com>
gdb/cli/cli-cmds.c