aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python.c
diff options
context:
space:
mode:
authorMatthieu Longo <matthieu.longo@arm.com>2026-02-27 10:28:34 +0000
committerMatthieu Longo <matthieu.longo@arm.com>2026-03-09 13:09:18 +0000
commit83d7283c4b1ec7904120faec04f4a7ee96b898df (patch)
treedbd907a315ad809993c5ce754b7380619176b2bb /gdb/python/python.c
parent072ea1fa0d39ea0110722385f37415ab6352315d (diff)
downloadbinutils-83d7283c4b1ec7904120faec04f4a7ee96b898df.tar.gz
binutils-83d7283c4b1ec7904120faec04f4a7ee96b898df.tar.bz2
binutils-83d7283c4b1ec7904120faec04f4a7ee96b898df.zip
gdb/python: accept gdbpy_ref in init helpers and return bool
Passing 'gdbpy_ref<> &' instead of raw 'PyObject *' to init helpers makes ownership of PyObject clearer at call sites, and removes unnecessary '.get()' calls. Changing the return type from 'int' to 'bool' improves readability and better expresses the success/failure semantics. Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/python/python.c')
0 files changed, 0 insertions, 0 deletions