aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2026-01-22 13:31:12 -0700
committerTom Tromey <tromey@adacore.com>2026-01-29 12:43:53 -0700
commit68567c5479cee1fd7f94be3b71f7bce88014b22a (patch)
tree1bc9707cc7b3a79fe213b3ad19ae8e4b56717203 /gdb/python
parentc993e3b21fad65fda4539f4b79852e3ae5205805 (diff)
downloadbinutils-68567c5479cee1fd7f94be3b71f7bce88014b22a.tar.gz
binutils-68567c5479cee1fd7f94be3b71f7bce88014b22a.tar.bz2
binutils-68567c5479cee1fd7f94be3b71f7bce88014b22a.zip
Remove alloca from lookup_cmd
lookup_cmd uses alloca to make a copy of a string, just for an error message. However, it's just as easy to use "%.*s" (already used once in undef_cmd_error) and to pass in a string_view, avoiding the need for an alloca and a copy. Approved-By: Kevin Buettner <kevinb@redhat.com>
Diffstat (limited to 'gdb/python')
0 files changed, 0 insertions, 0 deletions