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

Unified Diff: gdb/system-gdbinit/wrs-linux.py

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/system-gdbinit/elinos.py ('k') | gdb/target.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/system-gdbinit/wrs-linux.py
diff --git a/gdb/testsuite/gdb.ada/ptype_arith_binop.exp b/gdb/system-gdbinit/wrs-linux.py
similarity index 63%
copy from gdb/testsuite/gdb.ada/ptype_arith_binop.exp
copy to gdb/system-gdbinit/wrs-linux.py
index 75d381291f35cc40b60acd4dff047de319450f61..5571e668eb3ff85059d417043820b68e8ff07cc1 100644
--- a/gdb/testsuite/gdb.ada/ptype_arith_binop.exp
+++ b/gdb/system-gdbinit/wrs-linux.py
@@ -1,5 +1,5 @@
-# Copyright 2009-2012 Free Software Foundation, Inc.
-#
+# Copyright (C) 2011-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
@@ -13,19 +13,13 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-
-gdb_test_no_output "set lang ada" \
- "set lang ada"
-
-gdb_test "ptype 3 * 2.0" \
- "= <\[0-9\]+-byte float>" \
- "ptype 3 * 2.0"
+"""Configure GDB using the WRS/Linux environment."""
-gdb_test "ptype 3 / 2.0" \
- "= <\[0-9\]+-byte float>" \
- "ptype 3 / 2.0"
+import os
+if 'ENV_PREFIX' in os.environ:
+ gdb.execute('set sysroot %s' % os.environ['ENV_PREFIX'])
+else:
+ print "warning: ENV_PREFIX environment variable missing."
+ print "The debugger will probably be unable to find the correct system libraries"
« no previous file with comments | « gdb/system-gdbinit/elinos.py ('k') | gdb/target.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698