aboutsummaryrefslogtreecommitdiff
path: root/gas/as.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/as.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/as.c')
-rw-r--r--gas/as.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gas/as.c b/gas/as.c
index bcb827b..b636396 100644
--- a/gas/as.c
+++ b/gas/as.c
@@ -244,6 +244,8 @@ Options:\n\
fprintf (stream, _("\
-D produce assembler debugging messages\n"));
fprintf (stream, _("\
+ --debug-prefix-map OLD=NEW Map OLD to NEW in debug information\n"));
+ fprintf (stream, _("\
--defsym SYM=VAL define symbol SYM to given value\n"));
#ifdef USE_EMULATIONS
{
@@ -407,6 +409,7 @@ parse_args (int * pargc, char *** pargv)
OPTION_DUMPCONFIG,
OPTION_VERBOSE,
OPTION_EMULATION,
+ OPTION_DEBUG_PREFIX_MAP,
OPTION_DEFSYM,
OPTION_INSTTBL,
OPTION_LISTING_LHS_WIDTH,
@@ -445,6 +448,7 @@ parse_args (int * pargc, char *** pargv)
,{"a", optional_argument, NULL, 'a'}
/* Handle -al=<FILE>. */
,{"al", optional_argument, NULL, OPTION_AL}
+ ,{"debug-prefix-map", required_argument, NULL, OPTION_DEBUG_PREFIX_MAP}
,{"defsym", required_argument, NULL, OPTION_DEFSYM}
,{"dump-config", no_argument, NULL, OPTION_DUMPCONFIG}
,{"emulation", required_argument, NULL, OPTION_EMULATION}
@@ -620,6 +624,10 @@ This program has absolutely no warranty.\n"));
#endif
exit (EXIT_SUCCESS);
+ case OPTION_DEBUG_PREFIX_MAP:
+ add_debug_prefix_map (optarg);
+ break;
+
case OPTION_DEFSYM:
{
char *s;