This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb ChangeLog system-gdbinit/elinos.py
- From: brobecke at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: Tue, 01 Oct 2013 09:21:52 +0000
- Subject: src/gdb ChangeLog system-gdbinit/elinos.py
CVSROOT: /cvs/src
Module name: src
Changes by: brobecke@sourceware.org 2013-10-01 09:21:52
Modified files:
gdb : ChangeLog
gdb/system-gdbinit: elinos.py
Log message:
[ELinOS] Best effort to load system libraries in case of incomplete env
So far elinos.py was assuming that the whole ELinOS environment was
around to find the system libraries; if some environment variables
were missing, the script would just abort.
This was a bit extreme. It is possible to do better than that: to get
the core system libraries, one doesn't need to have a full environment
but just the path to the CDK. The path to kernel project is only
needed for the optional Xenomai libs.
gdb/ChangeLog:
* system-gdbinit/elinos.py (get_elinos_environment): Return an
incomplete dictionnary instead of None in case of missing
environment variables.
(elinos_init): in case of an incomplete environment, best
effort to load system libraries instead of abort.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.16050&r2=1.16051
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/system-gdbinit/elinos.py.diff?cvsroot=src&r1=1.1&r2=1.2