aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-record.h
diff options
context:
space:
mode:
authorTim Wiederhake <tim.wiederhake@intel.com>2017-05-02 11:35:54 +0200
committerTim Wiederhake <tim.wiederhake@intel.com>2017-05-02 11:35:54 +0200
commit913aeadd9d6b8bdea5131b16dc7ede395097656d (patch)
treee162888cebec7fc5d93893c493cf0424aa38bc66 /gdb/python/py-record.h
parenta3be24ad59d683d1b08df28e093739743a7cf256 (diff)
downloadfsf-binutils-gdb-913aeadd9d6b8bdea5131b16dc7ede395097656d.zip
fsf-binutils-gdb-913aeadd9d6b8bdea5131b16dc7ede395097656d.tar.gz
fsf-binutils-gdb-913aeadd9d6b8bdea5131b16dc7ede395097656d.tar.bz2
Python: Introduce gdb.RecordGap class
As discussed here: https://sourceware.org/ml/gdb-patches/2017-04/msg00157.html A gap is not an instruction and it should not pretend to be one. gdb.Record.instruction_history is now a list of gdb.RecordInstruction and gdb.RecordGap objects. This allows the user to deal with Gaps in the record in a more sane way.
Diffstat (limited to 'gdb/python/py-record.h')
-rw-r--r--gdb/python/py-record.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/python/py-record.h b/gdb/python/py-record.h
index c386ba2..5cf7a02 100644
--- a/gdb/python/py-record.h
+++ b/gdb/python/py-record.h
@@ -37,4 +37,8 @@ typedef struct
enum record_method method;
} recpy_record_object;
+/* Create a new gdb.RecordGap object. */
+extern PyObject *recpy_gap_new (int reason_code, const char *reason_string,
+ Py_ssize_t number);
+
#endif /* GDB_PY_RECORD_H */