diff options
author | Nick Clifton <nickc@redhat.com> | 2008-04-10 12:45:18 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2008-04-10 12:45:18 +0000 |
commit | 83f10cb26a460a5ab1921b6305e63e848b1d798f (patch) | |
tree | bdeca9f8e57a8beda8fdfc407e2381b9eb202910 /gas/listing.h | |
parent | 45a5551e7407cb5815016928bfce96262084b751 (diff) | |
download | gdb-83f10cb26a460a5ab1921b6305e63e848b1d798f.zip gdb-83f10cb26a460a5ab1921b6305e63e848b1d798f.tar.gz gdb-83f10cb26a460a5ab1921b6305e63e848b1d798f.tar.bz2 |
* listing.c: Add -ag listing flag to show general information in
listings such as gas version, passed options, and time stamp.
(listing_general_info): New function.
(print_options): New function.
(print_single_option): New function.
(print_timestamp): New function.
(MAX_DATELEN): Define.
(listing_print): Add call to listing_general_info.
* listing.h (LISTING_GENERAL): Define.
(listing_print): Add new parameter.
* as.c (show_usage): Print new switch.
(parse_args): Parse new switch.
(main): Pass command line on to listing_print.
* NEWS: Mention this new feature.
* doc/as.texinfo: Document the new sub-option.
* gas/all/gas.exp: Check the performance of the -ag command line
switch.
Diffstat (limited to 'gas/listing.h')
-rw-r--r-- | gas/listing.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gas/listing.h b/gas/listing.h index d78c2b1..1969b34 100644 --- a/gas/listing.h +++ b/gas/listing.h @@ -1,6 +1,6 @@ /* This file is listing.h Copyright 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1995, 1997, 1998, - 2003, 2007 Free Software Foundation, Inc. + 2003, 2007, 2008 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -27,13 +27,14 @@ #define LISTING_NOFORM 4 #define LISTING_HLL 8 #define LISTING_NODEBUG 16 -#define LISTING_NOCOND 32 -#define LISTING_MACEXP 64 +#define LISTING_NOCOND 32 +#define LISTING_MACEXP 64 +#define LISTING_GENERAL 128 #define LISTING_DEFAULT (LISTING_LISTING | LISTING_HLL | LISTING_SYMBOLS) #ifndef NO_LISTING -#define LISTING_NEWLINE() { if (listing) listing_newline(NULL); } +#define LISTING_NEWLINE() { if (listing) listing_newline (NULL); } #else #define LISTING_NEWLINE() {;} #endif @@ -48,7 +49,7 @@ void listing_flags (int); void listing_list (int on); void listing_newline (char *ps); void listing_prev_line (void); -void listing_print (char *name); +void listing_print (char *, char **); void listing_psize (int); void listing_nopage (int); void listing_source_file (const char *); |