gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 15 Feb 2013 20:28:24 +0000 (20:28 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 15 Feb 2013 20:28:24 +0000 (20:28 +0000)
* gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
and dir commands into an if block.

gdb/ChangeLog
gdb/gdb-gdb.gdb.in

index d5211b507201aa3c90cd988af45404f132827646..529b6e07267cfd986234fc626e9350db8a526410 100644 (file)
@@ -1,3 +1,8 @@
+2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
+       and dir commands into an if block.
+
 2013-02-15  Sanimir Agovic  <sanimir.agovic@intel.com>
 
        * python/py-breakpoint (struct pybp_code):  Use int instead of
index ffb7f53b5007788a8177382a903c53587de7a540..05a38b2670b0547192844538386e96b0108dcc7a 100644 (file)
@@ -1,19 +1,26 @@
 echo Setting up the environment for debugging gdb.\n
 
-set complaints 1
+if !$gdb_init_done
+  set variable $gdb_init_done = 1
 
-b internal_error
+  set complaints 1
 
-b info_command
-commands
-       silent
-       return
+  b internal_error
+
+  b info_command
+  commands
+    silent
+    return
+  end
+
+  dir @srcdir@/../libiberty
+  dir @srcdir@/../bfd
+  dir @srcdir@
+  dir .
+
+  # Commands below are not fully compatible with wrapping into an 'if' block.
 end
 
-dir @srcdir@/../libiberty
-dir @srcdir@/../bfd
-dir @srcdir@
-dir .
 set prompt (top-gdb) 
 
 define pdie
This page took 0.026843 seconds and 4 git commands to generate.