blob: f564af7a2c5c3d4e12517c876ca5ed26ed271dbd (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
 | /* Python/gdb header for generic use in gdb
   Copyright (C) 2008-2025 Free Software Foundation, Inc.
   This file is part of GDB.
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 3 of the License, or
   (at your option) any later version.
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
#ifndef GDB_PYTHON_PYTHON_H
#define GDB_PYTHON_PYTHON_H
#include "extension.h"
/* This is all that python exports to gdb.  */
extern const struct extension_language_defn extension_language_python;
/* Command element for the 'python' command.  */
extern cmd_list_element *python_cmd_element;
/* The "current" objfile.  This is set when gdb detects that a new
   objfile has been loaded.  It is only set for the duration of a call to
   gdbpy_source_objfile_script and gdbpy_execute_objfile_script; it is NULL
   at other times.  */
extern struct objfile *gdbpy_current_objfile;
#endif /* GDB_PYTHON_PYTHON_H */
 |