Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Unified Diff: gdb/testsuite/gdb.cp/using-crash.exp

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/testsuite/gdb.cp/using-crash.cc ('k') | gdb/testsuite/gdb.cp/virtbase.exp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.cp/using-crash.exp
diff --git a/gdb/testsuite/gdb.cp/abstract-origin.exp b/gdb/testsuite/gdb.cp/using-crash.exp
similarity index 66%
copy from gdb/testsuite/gdb.cp/abstract-origin.exp
copy to gdb/testsuite/gdb.cp/using-crash.exp
index 16c90692a26ff5352d6251502180e10d15807e82..adbeba1a61283d399fd79c243c43ac5ea30c7602 100644
--- a/gdb/testsuite/gdb.cp/abstract-origin.exp
+++ b/gdb/testsuite/gdb.cp/using-crash.exp
@@ -1,5 +1,4 @@
-# Copyright 2009-2012 Free Software Foundation, Inc.
-
+# Copyright 2012-2013 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
@@ -19,13 +18,15 @@ if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] {
- untested abstract-origin
- return -1
-}
+runto "foo"
-gdb_breakpoint [gdb_get_line_number "break-here"]
-gdb_continue_to_breakpoint "break-here"
-
-# The Bug was: No symbol "problem" in current context.
-gdb_test "p problem" " = \\(int \\*\\) 0x.*"
+# This would cause reading debug info with using_directives pointing to
+# freed memory.
+# http://sourceware.org/bugzilla/show_bug.cgi?id=14601
+# Note: You may need to compile with -fdebug-types-section to see the crash.
+set test "reload file"
+if { [gdb_file_cmd "$binfile"] == 0 } {
+ pass $test
+} else {
+ fail $test
+}
« no previous file with comments | « gdb/testsuite/gdb.cp/using-crash.cc ('k') | gdb/testsuite/gdb.cp/virtbase.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698