]> Git Repo - binutils.git/blobdiff - gdb/python/py-function.c
gdb: remove SYMBOL_CLASS macro, add getter
[binutils.git] / gdb / python / py-function.c
index 1c4588780e241ead98411c04435b7a48ada3cf78..c314ee5da7145f080b063ccf16e3116bbf6961e6 100644 (file)
@@ -1,6 +1,6 @@
 /* Convenience functions implemented in Python.
 
-   Copyright (C) 2008-2019 Free Software Foundation, Inc.
+   Copyright (C) 2008-2022 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -127,8 +127,8 @@ fnpy_init (PyObject *self, PyObject *args, PyObject *kwds)
   if (! docstring)
     docstring.reset (xstrdup (_("This function is not documented.")));
 
-  add_internal_function (name, std::move (docstring), fnpy_call,
-                        self_ref.release ());
+  add_internal_function (make_unique_xstrdup (name), std::move (docstring),
+                        fnpy_call, self_ref.release ());
   return 0;
 }
 
This page took 0.027669 seconds and 4 git commands to generate.