aboutsummaryrefslogtreecommitdiff
path: root/gdb/auto-load.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-05-18 17:47:31 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-05-18 17:47:31 +0000
commitaff139ffa6c125160f8a39ba8ea3c6f4933d64d5 (patch)
treecc4ba956e65cd299179ed6ede1d4f855114d98ad /gdb/auto-load.c
parentf7bfa992dfca294af54332dc300691f20e184f69 (diff)
downloadgdb-aff139ffa6c125160f8a39ba8ea3c6f4933d64d5.zip
gdb-aff139ffa6c125160f8a39ba8ea3c6f4933d64d5.tar.gz
gdb-aff139ffa6c125160f8a39ba8ea3c6f4933d64d5.tar.bz2
gdb/
Rename $ddir to $datadir. * NEWS (--with-auto-load-dir): Rename $ddir to $datadir. * auto-load.c (auto_load_safe_path_vec_update) (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise. * configure: Regenerate. * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path): Likewise. Remove the 'use $ddir' help string. gdb/doc/ Rename $ddir to $datadir. * gdb.texinfo (Auto-loading, Auto-loading safe path) (objfile-gdb.py file): Rename $ddir to $datadir.
Diffstat (limited to 'gdb/auto-load.c')
-rw-r--r--gdb/auto-load.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/auto-load.c b/gdb/auto-load.c
index 462ee06..07c0061 100644
--- a/gdb/auto-load.c
+++ b/gdb/auto-load.c
@@ -174,13 +174,13 @@ auto_load_safe_path_vec_update (void)
char *ddir_subst, *expanded, *real_path;
ddir_subst = xstrdup (dir);
- substitute_path_component (&ddir_subst, "$ddir", gdb_datadir);
+ substitute_path_component (&ddir_subst, "$datadir", gdb_datadir);
expanded = tilde_expand (ddir_subst);
xfree (ddir_subst);
real_path = gdb_realpath (expanded);
/* Ensure the current entry is at least a valid path (therefore
- $ddir-expanded and tilde-expanded). */
+ $datadir-expanded and tilde-expanded). */
VEC_replace (char_ptr, auto_load_safe_path_vec, ix, expanded);
if (debug_auto_load)
@@ -212,7 +212,7 @@ auto_load_safe_path_vec_update (void)
}
}
-/* Variable gdb_datadir has been set. Update content depending on $ddir. */
+/* Variable gdb_datadir has been set. Update content depending on $datadir. */
static void
auto_load_gdb_datadir_changed (void)
@@ -699,7 +699,7 @@ auto_load_objfile_script (struct objfile *objfile,
for (ix = 0; VEC_iterate (char_ptr, vec, ix, dir); ++ix)
{
debugfile = xstrdup (dir);
- substitute_path_component (&debugfile, "$ddir", gdb_datadir);
+ substitute_path_component (&debugfile, "$datadir", gdb_datadir);
debugfile = xrealloc (debugfile, (strlen (debugfile)
+ strlen (filename) + 1));