diff options
author | Kevin Pouget <kpouget@sourceware.org> | 2011-09-15 12:42:30 +0000 |
---|---|---|
committer | Kevin Pouget <kpouget@sourceware.org> | 2011-09-15 12:42:30 +0000 |
commit | 2aa483373c8e7abf69bbc074a17bf708a1a5eaff (patch) | |
tree | 17786f6230cb15f662de16a68bb5f731d7e68ce0 /gdb/python/python.c | |
parent | 6839b47f2b1cd56c90dc38da7bb612df7e052d90 (diff) | |
download | binutils-2aa483373c8e7abf69bbc074a17bf708a1a5eaff.zip binutils-2aa483373c8e7abf69bbc074a17bf708a1a5eaff.tar.gz binutils-2aa483373c8e7abf69bbc074a17bf708a1a5eaff.tar.bz2 |
2011-09-15 Kevin Pouget <kevin.pouget@st.com>
PR Python/12692 Add gdb.selected_inferior() to Python interface.
* python/py-inferior.c (GdbMethods): New Python method definition.
doc:
PR Python/12692 Add gdb.selected_inferior() to Python interface.
* gdb.texinfo (Inferiors In Python): Describe new
gdb.selected_inferior() function.
testsuite:
PR Python/12692 Add gdb.selected_inferior() to Python interface.
* gdb.python/py-inferior.exp: Add testcase for gdb.selected_inferior().
Diffstat (limited to 'gdb/python/python.c')
-rw-r--r-- | gdb/python/python.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c index 0f702a2..67649c3 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -1423,6 +1423,9 @@ Arguments are separate by spaces and may be quoted." { "selected_thread", gdbpy_selected_thread, METH_NOARGS, "selected_thread () -> gdb.InferiorThread.\n\ Return the selected thread object." }, + { "selected_inferior", gdbpy_selected_inferior, METH_NOARGS, + "selected_inferior () -> gdb.Inferior.\n\ +Return the selected inferior object." }, { "inferiors", gdbpy_inferiors, METH_NOARGS, "inferiors () -> (gdb.Inferior, ...).\n\ Return a tuple containing all inferiors." }, |