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

Unified Diff: gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.exp

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 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.dwarf2/dw2-minsym-in-cu.S ('k') | gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.S » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.exp
diff --git a/gdb/testsuite/gdb.dwarf2/implptr-optimized-out.exp b/gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.exp
similarity index 68%
copy from gdb/testsuite/gdb.dwarf2/implptr-optimized-out.exp
copy to gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.exp
index ac0f95ffc265cbc7ee049d143e3d4a244604587d..7df47bdee808dae0d7a6e55876743d5bad7c3c42 100644
--- a/gdb/testsuite/gdb.dwarf2/implptr-optimized-out.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.exp
@@ -1,4 +1,4 @@
-# Copyright 2011-2012 Free Software Foundation, Inc.
+# Copyright 2004-2005, 2007-2012 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
@@ -19,19 +19,16 @@ if {![dwarf2_support]} {
return 0
}
-set testfile "implptr-optimized-out"
+# This testfile has reproducibility only with cc-with-index.sh.
+
+set testfile "dw2-minsym-in-cu"
set srcfile ${testfile}.S
-set mainfile main.c
set executable ${testfile}
-set binfile ${objdir}/${subdir}/${executable}
-
-if [prepare_for_testing ${testfile}.exp $executable "${srcfile} ${mainfile}" {}] {
- return -1
-}
-# DW_OP_GNU_implicit_pointer implementation requires a valid frame.
-if ![runto_main] {
+if [prepare_for_testing ${testfile}.exp ${executable} ${srcfile}] {
return -1
}
-gdb_test "p p->f" " = <optimized out>"
+# Ask for address which is still located in this CU but not described by
+# any DIE.
+gdb_test "info fun func2" {All functions matching regular expression "func2":}
« no previous file with comments | « gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.S ('k') | gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.S » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698