aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python/python.c')
-rw-r--r--gdb/python/python.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c
index de3a94d..fc1de8b 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -559,7 +559,10 @@ gdbpy_parameter (PyObject *self, PyObject *args)
GDB_PY_HANDLE_EXCEPTION (ex);
}
- if (!found)
+ if (cmd == CMD_LIST_AMBIGUOUS)
+ return PyErr_Format (PyExc_RuntimeError,
+ _("Parameter `%s' is ambiguous."), arg);
+ else if (!found)
return PyErr_Format (PyExc_RuntimeError,
_("Could not find parameter `%s'."), arg);