diff options
author | Tom Tromey <tromey@adacore.com> | 2023-01-03 07:13:01 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-01-03 07:13:01 -0700 |
commit | 5aea5eca6c873334deb41f996dec255786a6f84d (patch) | |
tree | 2b829e0745f2c485c12d7cc5f9f49ed4964eba1a /gdb | |
parent | a8cf07d37b0063df888da82aed00babd1907ab7e (diff) | |
download | gdb-5aea5eca6c873334deb41f996dec255786a6f84d.zip gdb-5aea5eca6c873334deb41f996dec255786a6f84d.tar.gz gdb-5aea5eca6c873334deb41f996dec255786a6f84d.tar.bz2 |
Do not use PyObject_CallNoArgs
PyObject_CallNoArgs was introduced in Python 3.9, so avoid it in favor
of PyObject_CallObject.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/python/py-dap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-dap.c b/gdb/python/py-dap.c index 8e977bc..9c77b2a 100644 --- a/gdb/python/py-dap.c +++ b/gdb/python/py-dap.c @@ -1,6 +1,6 @@ /* Python DAP interpreter - Copyright (C) 2022 Free Software Foundation, Inc. + Copyright (C) 2022, 2023 Free Software Foundation, Inc. This file is part of GDB. @@ -80,7 +80,7 @@ dap_interp::init (bool top_level) if (func == nullptr) gdbpy_handle_exception (); - gdbpy_ref<> result_obj (PyObject_CallNoArgs (func.get ())); + gdbpy_ref<> result_obj (PyObject_CallObject (func.get (), nullptr)); if (result_obj == nullptr) gdbpy_handle_exception (); |