GDB (API)
/home/stan/gdb/linux/gdb/data-directory/system-gdbinit/wrs-linux.py
Go to the documentation of this file.
00001 # Copyright (C) 2011-2013 Free Software Foundation, Inc.
00002 
00003 # This program is free software; you can redistribute it and/or modify
00004 # it under the terms of the GNU General Public License as published by
00005 # the Free Software Foundation; either version 3 of the License, or
00006 # (at your option) any later version.
00007 #
00008 # This program is distributed in the hope that it will be useful,
00009 # but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011 # GNU General Public License for more details.
00012 #
00013 # You should have received a copy of the GNU General Public License
00014 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
00015 
00016 """Configure GDB using the WRS/Linux environment."""
00017 
00018 import os
00019 
00020 if 'ENV_PREFIX' in os.environ:
00021     gdb.execute('set sysroot %s' % os.environ['ENV_PREFIX'])
00022 
00023 else:
00024     print "warning: ENV_PREFIX environment variable missing."
00025     print "The debugger will probably be unable to find the correct system libraries"
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines