| OLD | NEW |
| 1 /* Gdb/Python header for private use by Python module. | 1 /* Gdb/Python header for private use by Python module. |
| 2 | 2 |
| 3 Copyright (C) 2008-2012 Free Software Foundation, Inc. | 3 Copyright (C) 2008-2012 Free Software Foundation, Inc. |
| 4 | 4 |
| 5 This file is part of GDB. | 5 This file is part of GDB. |
| 6 | 6 |
| 7 This program is free software; you can redistribute it and/or modify | 7 This program is free software; you can redistribute it and/or modify |
| 8 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
| 9 the Free Software Foundation; either version 3 of the License, or | 9 the Free Software Foundation; either version 3 of the License, or |
| 10 (at your option) any later version. | 10 (at your option) any later version. |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 struct inferior; | 114 struct inferior; |
| 115 | 115 |
| 116 extern PyObject *gdb_module; | 116 extern PyObject *gdb_module; |
| 117 extern PyTypeObject value_object_type; | 117 extern PyTypeObject value_object_type; |
| 118 extern PyTypeObject block_object_type; | 118 extern PyTypeObject block_object_type; |
| 119 extern PyTypeObject symbol_object_type; | 119 extern PyTypeObject symbol_object_type; |
| 120 extern PyTypeObject event_object_type; | 120 extern PyTypeObject event_object_type; |
| 121 extern PyTypeObject events_object_type; | 121 extern PyTypeObject events_object_type; |
| 122 extern PyTypeObject stop_event_object_type; | 122 extern PyTypeObject stop_event_object_type; |
| 123 extern PyTypeObject breakpoint_object_type; | 123 extern PyTypeObject breakpoint_object_type; |
| 124 extern PyTypeObject frame_object_type; |
| 124 | 125 |
| 125 typedef struct breakpoint_object | 126 typedef struct breakpoint_object |
| 126 { | 127 { |
| 127 PyObject_HEAD | 128 PyObject_HEAD |
| 128 | 129 |
| 129 /* The breakpoint number according to gdb. */ | 130 /* The breakpoint number according to gdb. */ |
| 130 int number; | 131 int number; |
| 131 | 132 |
| 132 /* The gdb breakpoint object, or NULL if the breakpoint has been | 133 /* The gdb breakpoint object, or NULL if the breakpoint has been |
| 133 deleted. */ | 134 deleted. */ |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 do { \ | 283 do { \ |
| 283 if (Exception.reason < 0) \ | 284 if (Exception.reason < 0) \ |
| 284 { \ | 285 { \ |
| 285 gdbpy_convert_exception (Exception); \ | 286 gdbpy_convert_exception (Exception); \ |
| 286 return -1; \ | 287 return -1; \ |
| 287 } \ | 288 } \ |
| 288 } while (0) | 289 } while (0) |
| 289 | 290 |
| 290 void gdbpy_print_stack (void); | 291 void gdbpy_print_stack (void); |
| 291 | 292 |
| 292 void source_python_script_for_objfile (struct objfile *objfile, | 293 void source_python_script_for_objfile (struct objfile *objfile, FILE *file, |
| 293 » » » » const char *file); | 294 » » » » const char *filename); |
| 294 | 295 |
| 295 PyObject *python_string_to_unicode (PyObject *obj); | 296 PyObject *python_string_to_unicode (PyObject *obj); |
| 296 char *unicode_to_target_string (PyObject *unicode_str); | 297 char *unicode_to_target_string (PyObject *unicode_str); |
| 297 char *python_string_to_target_string (PyObject *obj); | 298 char *python_string_to_target_string (PyObject *obj); |
| 298 PyObject *python_string_to_target_python_string (PyObject *obj); | 299 PyObject *python_string_to_target_python_string (PyObject *obj); |
| 299 char *python_string_to_host_string (PyObject *obj); | 300 char *python_string_to_host_string (PyObject *obj); |
| 300 PyObject *target_string_to_unicode (const gdb_byte *str, int length); | 301 PyObject *target_string_to_unicode (const gdb_byte *str, int length); |
| 301 int gdbpy_is_string (PyObject *obj); | 302 int gdbpy_is_string (PyObject *obj); |
| 302 char *gdbpy_obj_to_string (PyObject *obj); | 303 char *gdbpy_obj_to_string (PyObject *obj); |
| 303 char *gdbpy_exception_to_string (PyObject *ptype, PyObject *pvalue); | 304 char *gdbpy_exception_to_string (PyObject *ptype, PyObject *pvalue); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 334 extern PyObject *gdbpy_gdberror_exc; | 335 extern PyObject *gdbpy_gdberror_exc; |
| 335 | 336 |
| 336 extern PyObject *gdbpy_convert_exception (struct gdb_exception); | 337 extern PyObject *gdbpy_convert_exception (struct gdb_exception); |
| 337 | 338 |
| 338 int get_addr_from_python (PyObject *obj, CORE_ADDR *addr); | 339 int get_addr_from_python (PyObject *obj, CORE_ADDR *addr); |
| 339 | 340 |
| 340 PyObject *gdb_py_object_from_longest (LONGEST l); | 341 PyObject *gdb_py_object_from_longest (LONGEST l); |
| 341 PyObject *gdb_py_object_from_ulongest (ULONGEST l); | 342 PyObject *gdb_py_object_from_ulongest (ULONGEST l); |
| 342 int gdb_py_int_as_long (PyObject *, long *); | 343 int gdb_py_int_as_long (PyObject *, long *); |
| 343 | 344 |
| 345 PyObject *gdb_py_generic_dict (PyObject *self, void *closure); |
| 346 |
| 344 #endif /* GDB_PYTHON_INTERNAL_H */ | 347 #endif /* GDB_PYTHON_INTERNAL_H */ |
| OLD | NEW |