]> git.eshelyaron.com Git - emacs.git/commitdiff
* .gdbinit (pp1, pv1): Remove redundant defines.
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 4 Feb 2012 19:57:12 +0000 (20:57 +0100)
committerAndreas Schwab <schwab@linux-m68k.org>
Sat, 4 Feb 2012 19:57:12 +0000 (20:57 +0100)
(pr): Use pp.

src/.gdbinit
src/ChangeLog

index b60c14fe28980a2c892265c47df1bcaa9123b6f4..fc8eab6d1dfbd4693fa7c5059e93229c2f818a29 100644 (file)
@@ -67,10 +67,7 @@ end
 # from calling OutputDebugString, which causes GDB to display each
 # character twice (yuk!).
 define pr
-  set $output_debug = print_output_debug_flag
-  set print_output_debug_flag = 0
-  set debug_print ($)
-  set print_output_debug_flag = $output_debug
+  pp $
 end
 document pr
 Print the emacs s-expression which is $.
@@ -90,48 +87,17 @@ Print the argument as an emacs s-expression
 Works only when an inferior emacs is executing.
 end
 
-# Print out s-expressions from tool bar
-define pp1
-  set $tmp = $arg0
-  set $output_debug = print_output_debug_flag
-  set print_output_debug_flag = 0
-  set safe_debug_print ($tmp)
-  set print_output_debug_flag = $output_debug
-end
-document pp1
-Print the argument as an emacs s-expression.
-Works only when an inferior emacs is executing.
-For use on tool bar when debugging in Emacs
-where the variable name would not otherwise
-be recorded in the GUD buffer.
-end
-
 # Print value of lisp variable
 define pv
-  set $tmp = "$arg0"
-  set $output_debug = print_output_debug_flag
-  set print_output_debug_flag = 0
-  set safe_debug_print ( find_symbol_value (intern ($tmp)))
-  set print_output_debug_flag = $output_debug
-end
-document pv
-Print the value of the lisp variable given as argument.
-Works only when an inferior emacs is executing.
-end
-
-# Print value of lisp variable
-define pv1
   set $tmp = "$arg0"
   set $output_debug = print_output_debug_flag
   set print_output_debug_flag = 0
   set safe_debug_print (find_symbol_value (intern ($tmp)))
   set print_output_debug_flag = $output_debug
 end
-document pv1
+document pv
 Print the value of the lisp variable given as argument.
 Works only when an inferior emacs is executing.
-For use when debugging in Emacs where the variable
-name would not otherwise be recorded in the GUD buffer.
 end
 
 # Print out current buffer point and boundaries
index 0be59675192489535b85035a2d51946a8f3f17c4..2353cc1eca2f735b9ad02405a5f09faf0d506471 100644 (file)
@@ -1,3 +1,8 @@
+2012-02-04  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * .gdbinit (pp1, pv1): Remove redundant defines.
+       (pr): Use pp.
+
 2012-02-04  Chong Yidong  <cyd@gnu.org>
 
        * nsterm.m: Declare a global (Bug#10694).