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

Unified Diff: gdb/testsuite/gdb.base/print-file-var-main.c

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.base/print-file-var-lib2.c ('k') | gdb/testsuite/gdb.base/printcmds.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.base/print-file-var-main.c
diff --git a/gdb/testsuite/gdb.base/dmsym_main.c b/gdb/testsuite/gdb.base/print-file-var-main.c
similarity index 70%
copy from gdb/testsuite/gdb.base/dmsym_main.c
copy to gdb/testsuite/gdb.base/print-file-var-main.c
index 4f867b4c85d7b82b9a7f553966f13527682d0575..04e45e3fce8ab6ccef9ec8b77a22d8b7a1a3a7cc 100644
--- a/gdb/testsuite/gdb.base/dmsym_main.c
+++ b/gdb/testsuite/gdb.base/print-file-var-main.c
@@ -1,6 +1,5 @@
/* This testcase is part of GDB, the GNU debugger.
-
- Copyright 2011-2012 Free Software Foundation, Inc.
+ Copyright 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
@@ -15,22 +14,21 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-extern int get_pck__foo__bar__minsym (void);
-
-int
-pck__foo__bar__minsym__2 (void)
-{
- return get_pck__foo__bar__minsym ();
-}
+extern int get_version_1 (void);
+extern int get_version_2 (void);
int
main (void)
{
- int val = pck__foo__bar__minsym__2 ();
+ int v1 = get_version_1 ();
+ int v2 = get_version_2 ();
- if (val != 124) /* BREAK */
+ if (v1 != 104) /* STOP */
return 1;
+ /* The value returned by get_version_2 depends on the target system. */
+ if (v2 != 104 || v2 != 203)
+ return 2;
+
return 0;
}
-
« no previous file with comments | « gdb/testsuite/gdb.base/print-file-var-lib2.c ('k') | gdb/testsuite/gdb.base/printcmds.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698