summaryrefslogtreecommitdiff
path: root/gdb/exceptions.h
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2010-01-18 06:25:22 +0000
committerJoel Brobecker <brobecker@gnat.com>2010-01-18 06:25:22 +0000
commit973817a31359035221fb443a623830cdaab31de5 (patch)
tree0814db4b2c00155035ab6fd6c4a39bff660576b8 /gdb/exceptions.h
parent23db03a6052d85eb4a66bf31331ca8d611174af4 (diff)
downloadbinutils-gdb-973817a31359035221fb443a623830cdaab31de5.tar.gz
Allow "source" to load python scripts.
* exceptions.h (enum errors): Add UNSUPPORTED_ERROR. * python/python.c (source_python_script): New function. * python/python.h (source_python_script): Add declaration. * cli/cli-cmds.c: #include exceptions.h and python/python.h. (script_ext_off, script_ext_soft, script_ext_strict) (script_ext_enums, script_ext_mode): New static constants. (show_script_ext_mode, find_and_open_script): New functions. (source_script): Enhance to handle Python scripts. (init_cli_cmds): Add set/show script-extension commands.
Diffstat (limited to 'gdb/exceptions.h')
-rw-r--r--gdb/exceptions.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/exceptions.h b/gdb/exceptions.h
index 84a9f0120b1..6b3cbeb2426 100644
--- a/gdb/exceptions.h
+++ b/gdb/exceptions.h
@@ -75,6 +75,9 @@ enum errors {
/* Error accessing memory. */
MEMORY_ERROR,
+ /* Feature is not supported in this copy of GDB. */
+ UNSUPPORTED_ERROR,
+
/* Add more errors here. */
NR_ERRORS
};