]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/python] Use py_{none,notimplemented} more often
authorTom de Vries <tdevries@suse.de>
Fri, 15 May 2026 19:38:12 +0000 (21:38 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 15 May 2026 19:38:12 +0000 (21:38 +0200)
commit5cb6772600a90b7a214b84277fc795c5d45e98fa
tree14759b32431041abb5bfc11ceb4a92e13fcc1939
parentb9f58eb0d0c31273d41684db9bdbe539ae7b8731
[gdb/python] Use py_{none,notimplemented} more often

Replace:
...
    {
      Py_INCREF (Py_NotImplemented);
      return Py_NotImplemented;
    }
...
with:
...
    return py_notimplemented ().release ();
...

Likewise for py_none.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/python/py-block.c
gdb/python/py-connection.c
gdb/python/py-finishbreakpoint.c
gdb/python/py-frame.c
gdb/python/py-lazy-string.c
gdb/python/py-record-btrace.c
gdb/python/py-record.c
gdb/python/py-symbol.c
gdb/python/py-type.c
gdb/python/py-value.c