gdb/ChangeLog:
authorPaul Pluzhnikov <ppluzhnikov@google.com>
Fri, 13 Nov 2009 17:17:57 +0000 (17:17 +0000)
committerPaul Pluzhnikov <ppluzhnikov@google.com>
Fri, 13 Nov 2009 17:17:57 +0000 (17:17 +0000)
2009-11-13  Paul Pluzhnikov  <ppluzhnikov@google.com>

* python/py-prettyprint.c (print_string_repr): Suppress
address printing

testsuite/ChangeLog:

2009-11-13  Paul Pluzhnikov  <ppluzhnikov@google.com>

* gdb.python/py-prettyprint.exp: Adjust.

gdb/ChangeLog
gdb/python/py-prettyprint.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-prettyprint.exp

index 5111dbc28f697f9f460a965526abfa10200f409b..7bfd1a88a422cbb6436bfefa97c8b8939eb2c127 100644 (file)
@@ -1,3 +1,8 @@
+2009-11-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
+
+       * python/py-prettyprint.c (print_string_repr): Suppress
+       address printing
+       
 2009-11-13  Tristan Gingold  <gingold@adacore.com>
 
        * avr-tdep.c (avr_push_dummy_call): Fix endianness issue and avoid
index 5d696c86d3df08b8ae4e5bb157323bfa4165e8ea..19818e63f0370aa57d8fa5b1622778ab056f7887 100644 (file)
@@ -209,7 +209,12 @@ print_string_repr (PyObject *printer, const char *hint,
       Py_DECREF (py_str);
     }
   else if (replacement)
-    common_val_print (replacement, stream, recurse, options, language);
+    {
+      struct value_print_options opts = *options;
+
+      opts.addressprint = 0;
+      common_val_print (replacement, stream, recurse, &opts, language);
+    }
   else
     gdbpy_print_stack ();
 }
index 42960998deed1301221f7d54241d2bf84379f730..b6d9c7914663a2570d7d59a21d9c4e2664a5aff0 100644 (file)
@@ -1,3 +1,7 @@
+2009-11-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
+
+       * gdb.python/py-prettyprint.exp: Adjust.
+       
 2009-11-12  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * lib/cell.exp (skip_cell_tests): Clean up test files before
index 14119f075be4b420da83c41c987ee0e46e3bbe21..f8cf36d49647fbf9b65d9745b4b636087eaa713e 100644 (file)
@@ -99,10 +99,10 @@ proc run_lang_tests {lang} {
        gdb_py_test_silent_cmd "set print elements 200" "" 1
     }
 
-    gdb_test "print x" " = $hex \"this is x\""
-    gdb_test "print cstring" " = $hex \"const string\""
+    gdb_test "print x" " = \"this is x\""
+    gdb_test "print cstring" " = \"const string\""
 
-    gdb_test "print c" " = container $hex \"container\" with 2 elements = {$nl *.0. = 23,$nl *.1. = 72$nl}"
+    gdb_test "print c" " = container \"container\" with 2 elements = {$nl *.0. = 23,$nl *.1. = 72$nl}"
 
     gdb_test "continue" "Program exited normally\."