public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Do not use PyObject_CallNoArgs
@ 2023-01-03 14:14 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2023-01-03 14:14 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5aea5eca6c873334deb41f996dec255786a6f84d

commit 5aea5eca6c873334deb41f996dec255786a6f84d
Author: Tom Tromey <tromey@adacore.com>
Date:   Tue Jan 3 07:13:01 2023 -0700

    Do not use PyObject_CallNoArgs
    
    PyObject_CallNoArgs was introduced in Python 3.9, so avoid it in favor
    of PyObject_CallObject.

Diff:
---
 gdb/python/py-dap.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gdb/python/py-dap.c b/gdb/python/py-dap.c
index 8e977bc55bb..9c77b2a4f76 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 ();

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-03 14:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-03 14:14 [binutils-gdb] Do not use PyObject_CallNoArgs Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).