aboutsummaryrefslogtreecommitdiff
path: root/gas/as.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-10-08 14:37:20 +0000
committerNick Clifton <nickc@redhat.com>2003-10-08 14:37:20 +0000
commit05da4302188949f1752cb1fa5def4b010450dbe4 (patch)
tree8d257fbd257ce60a4a7969a65e74ec216d74df61 /gas/as.c
parente62eb3ee7e4f8b4821b2f029d0f9d2dbbc462b44 (diff)
downloadfsf-binutils-gdb-05da4302188949f1752cb1fa5def4b010450dbe4.zip
fsf-binutils-gdb-05da4302188949f1752cb1fa5def4b010450dbe4.tar.gz
fsf-binutils-gdb-05da4302188949f1752cb1fa5def4b010450dbe4.tar.bz2
* as.c (use_gnu_debug_info_extensions) : New variable.
(parse_args) : Accept new --gstabs+ option, and set `use_gnu_debug_info_extensions'. (show_usage) : Document --gstabs+ option. * as.h (use_gnu_debug_info_extensions) : New extern declaration. * stabs.c (stabs_generate_asm_file) : If `use_gnu_debug_info_extensions' is set add the compilation directory to the stabs debug info. * doc/as.texinfo : Document --gstabs+ option. * NEWS: Mention new feature.
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 8b27316..20d1522 100644
--- a/gas/as.c
+++ b/gas/as.c
@@ -87,6 +87,7 @@ int listing;
/* Type of debugging to generate. */
enum debug_info_type debug_type = DEBUG_UNSPECIFIED;
+int use_gnu_debug_info_extensions = 0;
/* Maximum level of macro nesting. */
int max_macro_nest = 100;
@@ -276,6 +277,8 @@ Options:\n\
fprintf (stream, _("\
--gstabs generate stabs debugging information\n"));
fprintf (stream, _("\
+ --gstabs+ generate stabs debug info with GNU extensions\n"));
+ fprintf (stream, _("\
--gdwarf2 generate DWARF2 debugging information\n"));
fprintf (stream, _("\
--help show this message and exit\n"));
@@ -403,6 +406,7 @@ parse_args (int * pargc, char *** pargv)
OPTION_LISTING_CONT_LINES,
OPTION_DEPFILE,
OPTION_GSTABS,
+ OPTION_GSTABS_PLUS,
OPTION_STRIP_LOCAL_ABSOLUTE,
OPTION_TRADITIONAL_FORMAT,
OPTION_GDWARF2,
@@ -442,6 +446,7 @@ parse_args (int * pargc, char *** pargv)
{"listing-cont-lines", required_argument, NULL, OPTION_LISTING_CONT_LINES},
{"MD", required_argument, NULL, OPTION_DEPFILE},
{"gstabs", no_argument, NULL, OPTION_GSTABS},
+ {"gstabs+", no_argument, NULL, OPTION_GSTABS_PLUS},
{"strip-local-absolute", no_argument, NULL, OPTION_STRIP_LOCAL_ABSOLUTE},
{"traditional-format", no_argument, NULL, OPTION_TRADITIONAL_FORMAT},
{"gdwarf2", no_argument, NULL, OPTION_GDWARF2},
@@ -643,6 +648,9 @@ the GNU General Public License. This program has absolutely no warranty.\n"));
start_dependencies (optarg);
break;
+ case OPTION_GSTABS_PLUS:
+ use_gnu_debug_info_extensions = 1;
+ /* Fall through. */
case OPTION_GSTABS:
debug_type = DEBUG_STABS;
break;