Browse Source

Make the default sysroot be "target:"

This commit makes GDB default to a sysroot of "target:".
One testcase needed updating as a result of this change.

gdb/ChangeLog:

	* main.c (captured_main): Set gdb_sysroot to "target:"
	if not otherwise set.

gdb/testsuite/ChangeLog:

	* gdb.base/break-probes.exp: Cope with "target:" sysroot.
gdb-7.10-branch
Gary Benson 12 years ago
parent
commit
fed040c6a5
  1. 5
      gdb/ChangeLog
  2. 6
      gdb/main.c
  3. 4
      gdb/testsuite/ChangeLog
  4. 4
      gdb/testsuite/gdb.base/break-probes.exp

5
gdb/ChangeLog

@ -1,3 +1,8 @@
2015-04-02 Gary Benson <gbenson@redhat.com>
* main.c (captured_main): Set gdb_sysroot to "target:"
if not otherwise set.
2015-04-02 Gary Benson <gbenson@redhat.com> 2015-04-02 Gary Benson <gbenson@redhat.com>
* exec.c (exec_file_attach): Support "target:" filenames. * exec.c (exec_file_attach): Support "target:" filenames.

6
gdb/main.c

@ -548,6 +548,12 @@ captured_main (void *data)
gdb_sysroot = relocate_gdb_directory (TARGET_SYSTEM_ROOT, gdb_sysroot = relocate_gdb_directory (TARGET_SYSTEM_ROOT,
TARGET_SYSTEM_ROOT_RELOCATABLE); TARGET_SYSTEM_ROOT_RELOCATABLE);
if (gdb_sysroot == NULL || *gdb_sysroot == '\0')
{
xfree (gdb_sysroot);
gdb_sysroot = xstrdup (TARGET_SYSROOT_PREFIX);
}
debug_file_directory = relocate_gdb_directory (DEBUGDIR, debug_file_directory = relocate_gdb_directory (DEBUGDIR,
DEBUGDIR_RELOCATABLE); DEBUGDIR_RELOCATABLE);

4
gdb/testsuite/ChangeLog

@ -1,3 +1,7 @@
2015-04-02 Gary Benson <gbenson@redhat.com>
* gdb.base/break-probes.exp: Cope with "target:" sysroot.
2015-04-01 Sasha Smundak <asmundak@google.com> 2015-04-01 Sasha Smundak <asmundak@google.com>
* gdb.python/py-unwind-maint.c: New file. * gdb.python/py-unwind-maint.c: New file.

4
gdb/testsuite/gdb.base/break-probes.exp

@ -66,6 +66,10 @@ if { $using_probes } {
} }
} }
# GDB strips "target:" from the start of filenames
# when operating on the local filesystem
regsub "^target:" "$sysroot" "(target:)?" sysroot
# Run til it loads our library # Run til it loads our library
set test "run til our library loads" set test "run til our library loads"
set not_loaded_library 1 set not_loaded_library 1

Loading…
Cancel
Save