This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [0/5] 'set print symbol' refresh
On Fri, 18 May 2012, Tom Tromey wrote:
> Tom> This is a refresh of the 'set print symbol' series.
> Tom> Unless there are comments I plan to check this in later this week.
>
> I'm checking it in now.
This test suite update is required as well it would seem, fixes:
print g_string_p
$29 = 0x8048fd4 <g_const_string> "hello world"
(gdb) FAIL: gdb.trace/unavailable.exp: collect globals: printing constant string through collected pointer
OK to apply?
2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
gdb/testsuite/
* gdb.trace/unavailable.exp (gdb_collect_globals_test): Update
for 'set print symbol' change.
Maciej
gdb-test-trace-unavailable-fix.diff
Index: gdb-fsf-trunk-quilt/gdb/testsuite/gdb.trace/unavailable.exp
===================================================================
--- gdb-fsf-trunk-quilt.orig/gdb/testsuite/gdb.trace/unavailable.exp 2012-04-05 23:17:08.000000000 +0100
+++ gdb-fsf-trunk-quilt/gdb/testsuite/gdb.trace/unavailable.exp 2012-05-22 23:27:25.055479380 +0100
@@ -475,7 +475,7 @@ proc gdb_collect_globals_test { } { with
"non collected const string is still printable"
gdb_test "print g_string_p" \
- " = $hex \"hello world\"" \
+ " = $hex <g_const_string> \"hello world\"" \
"printing constant string through collected pointer"
gdb_test "print g_string_unavail" \