aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdb-gdb.gdb.in
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-04-17 15:49:16 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-04-17 15:49:16 +0000
commite2207b9a2828674a1deaf98db4ab4d0079b96d34 (patch)
treed26710472879a824daefee3c3ac5f08a503047c1 /gdb/gdb-gdb.gdb.in
parente4ab2fad14aace768d2241c2595a29de08deabad (diff)
downloadgdb-e2207b9a2828674a1deaf98db4ab4d0079b96d34.zip
gdb-e2207b9a2828674a1deaf98db4ab4d0079b96d34.tar.gz
gdb-e2207b9a2828674a1deaf98db4ab4d0079b96d34.tar.bz2
gdb/
auto-load: Move files. * Makefile.in (SFILES): Add auto-load.c. (HFILES_NO_SRCDIR): Add auto-load.h. (COMMON_OBS): Add auto-load.o. (distclean): Change .gdbinit for gdb-gdb.gdb. * auto-load.c: New file, with parts from python/py-auto-load.c. * auto-load.h: New file, with parts from python/python.h. * configure: Regenerate. * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb. * gdb-gdb.gdb.in: New file, renamed from gdbinit.in. * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in. * main.c: Include auto-load.h. * python/py-auto-load.c: Move include filenames.h, gdb_regex.h, command.h, observer.h and progspace.h to auto-load.c. Add include auto-load.h. (gdbpy_global_auto_load, struct auto_load_pspace_info) (struct loaded_script, auto_load_pspace_data) (auto_load_pspace_data_cleanup, get_auto_load_pspace_data) (hash_loaded_script_entry, eq_loaded_script_entry) (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading) (maybe_add_script): Move to auto-load.c. (source_section_scripts): Change maybe_add_script parameters passing, use script_not_found_warning_print. (clear_section_scripts, auto_load_objfile_script) (auto_load_new_objfile, loaded_script_ptr) (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script) (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c. (gdbpy_initialize_auto_load): Move auto_load_pspace_data, auto_load_new_objfile and info_auto_load_scripts initizations to auto-load.c. * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
Diffstat (limited to 'gdb/gdb-gdb.gdb.in')
-rw-r--r--gdb/gdb-gdb.gdb.in34
1 files changed, 34 insertions, 0 deletions
diff --git a/gdb/gdb-gdb.gdb.in b/gdb/gdb-gdb.gdb.in
new file mode 100644
index 0000000..ffb7f53
--- /dev/null
+++ b/gdb/gdb-gdb.gdb.in
@@ -0,0 +1,34 @@
+echo Setting up the environment for debugging gdb.\n
+
+set complaints 1
+
+b internal_error
+
+b info_command
+commands
+ silent
+ return
+end
+
+dir @srcdir@/../libiberty
+dir @srcdir@/../bfd
+dir @srcdir@
+dir .
+set prompt (top-gdb)
+
+define pdie
+ if $argc == 1
+ call dump_die ($arg0, 1)
+ else
+ if $argc == 2
+ call dump_die ($arg0, $arg1)
+ else
+ printf "Syntax: pdie die [depth]\n"
+ end
+ end
+end
+
+document pdie
+Pretty print a DWARF DIE.
+Syntax: pdie die [depth]
+end