aboutsummaryrefslogtreecommitdiff
path: root/gas/stabs.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2007-08-24 21:49:55 +0000
committerJoseph Myers <joseph@codesourcery.com>2007-08-24 21:49:55 +0000
commit3d6b762c68c6e19bdf387c0f1db7773fd22aab9a (patch)
treeaaed967f4fb27d39d98495f58b5aa56c5d102381 /gas/stabs.c
parent534a31f6908dfec77b02051240630059e3ad7520 (diff)
downloadgdb-3d6b762c68c6e19bdf387c0f1db7773fd22aab9a.zip
gdb-3d6b762c68c6e19bdf387c0f1db7773fd22aab9a.tar.gz
gdb-3d6b762c68c6e19bdf387c0f1db7773fd22aab9a.tar.bz2
2007-08-24 Joseph Myers <joseph@codesourcery.com>
Paul Brook <paul@codesourcery.com> * remap.c: New. * as.h (remap_debug_filename, add_debug_prefix_map): Declare. * as.c (show_usage): Document --debug-prefix-map option. (parse_args): Handle --debug-prefix-map. * dwarf2dbg.c (out_file_list, out_debug_info): Remap debug paths. * stabs.c (stabs_generate_asm_file): Remap debug paths. * Makefile.am (GAS_CFILES): Add remap.c (GENERIC_OBJS): Add remap.o. Regenerate dependencies. * Makefile.in: Regenerate. * doc/as.texinfo (--debug-prefix-map): Document.
Diffstat (limited to 'gas/stabs.c')
-rw-r--r--gas/stabs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gas/stabs.c b/gas/stabs.c
index fc207f6..d295bea 100644
--- a/gas/stabs.c
+++ b/gas/stabs.c
@@ -492,9 +492,10 @@ stabs_generate_asm_file (void)
as_where (&file, &lineno);
if (use_gnu_debug_info_extensions)
{
- char *dir, *dir2;
+ const char *dir;
+ char *dir2;
- dir = getpwd ();
+ dir = remap_debug_filename (getpwd ());
dir2 = alloca (strlen (dir) + 2);
sprintf (dir2, "%s%s", dir, "/");
generate_asm_file (N_SO, dir2);