aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-08-03 12:26:46 +0930
committerAlan Modra <amodra@gmail.com>2023-08-03 21:20:33 +0930
commit75747be51e6d11287e12c4504f2607d36a0edfd2 (patch)
tree70a1c0bcca2476bf85da5733a56c4015ac8353f6 /gdb/testsuite/gdb.python
parentb43e801e28550653ecef2b7e6b15125516ab1a58 (diff)
downloadbinutils-75747be51e6d11287e12c4504f2607d36a0edfd2.zip
binutils-75747be51e6d11287e12c4504f2607d36a0edfd2.tar.gz
binutils-75747be51e6d11287e12c4504f2607d36a0edfd2.tar.bz2
cris: sprintf optimisation
Since I was poking at cris-dis.c to avoid the sanitizer warning, I figure I might as well make use of stpcpy and sprintf return value in other places in this file. * cris-dis.c (format_hex): Use sprintf return value. (format_reg): Use stpcpy and sprintf return, avoiding strlen. (format_sup_reg): Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.python')
0 files changed, 0 insertions, 0 deletions