From fac0d250c7f0efc521ef26519d8ab384a6f60e4d Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Thu, 3 Jun 1999 02:51:53 +0000 Subject: * as.c (parse_args): Add option -gdwarf2 to allow requesting DWARF2 debug info (line information only, at this point). * as.h: Update comment about supported debug formats. * dwarf2dbg.c, dwarf2dbg.h: New files. * Makefile.am (GAS_CFILES, HFILES, GENERIC_OBJS): Add them. --- gas/as.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'gas/as.c') diff --git a/gas/as.c b/gas/as.c index 0cdd357..8bb0b8c 100644 --- a/gas/as.c +++ b/gas/as.c @@ -143,6 +143,7 @@ Options:\n\ m include macro expansions\n\ n omit forms processing\n\ s include symbols\n\ + L include line debug statistics (if applicable)\n\ =file set listing file name (must be last sub-option)\n")); fprintf (stream, _("\ @@ -365,7 +366,9 @@ parse_args (pargc, pargv) #define OPTION_STRIP_LOCAL_ABSOLUTE (OPTION_STD_BASE + 15) {"strip-local-absolute", no_argument, NULL, OPTION_STRIP_LOCAL_ABSOLUTE}, #define OPTION_TRADITIONAL_FORMAT (OPTION_STD_BASE + 16) - {"traditional-format", no_argument, NULL, OPTION_TRADITIONAL_FORMAT} + {"traditional-format", no_argument, NULL, OPTION_TRADITIONAL_FORMAT}, +#define OPTION_GDWARF2 (OPTION_STD_BASE + 17) + {"gdwarf2", no_argument, NULL, OPTION_GDWARF2} }; /* Construct the option lists from the standard list and the @@ -546,6 +549,10 @@ the GNU General Public License. This program has absolutely no warranty.\n")); debug_type = DEBUG_STABS; break; + case OPTION_GDWARF2: + debug_type = DEBUG_DWARF2; + break; + case 'J': flag_signed_overflow_ok = 1; break; -- cgit v1.1