This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb exceptions.h ChangeLog python/python.c ...
- From: brobecke at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 18 Jan 2010 06:25:23 -0000
- Subject: src/gdb exceptions.h ChangeLog python/python.c ...
CVSROOT: /cvs/src
Module name: src
Changes by: brobecke@sourceware.org 2010-01-18 06:25:23
Modified files:
gdb : exceptions.h ChangeLog
gdb/python : python.c python.h
gdb/cli : cli-cmds.c
Log message:
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.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/exceptions.h.diff?cvsroot=src&r1=1.26&r2=1.27
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.11262&r2=1.11263
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/python/python.c.diff?cvsroot=src&r1=1.23&r2=1.24
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/python/python.h.diff?cvsroot=src&r1=1.6&r2=1.7
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/cli/cli-cmds.c.diff?cvsroot=src&r1=1.96&r2=1.97