diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-08-18 15:15:28 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-08-18 15:15:28 +0000 |
commit | ca2329727efad7d7e8a541f2aa88c28fcb5d2526 (patch) | |
tree | f20aa75ff3acdc11a1292b6cbac37d5a09d8ad8e /gas/read.c | |
parent | 65d860fc2871e9cc16dc8c8147550c2b9114964d (diff) | |
download | gdb-ca2329727efad7d7e8a541f2aa88c28fcb5d2526.zip gdb-ca2329727efad7d7e8a541f2aa88c28fcb5d2526.tar.gz gdb-ca2329727efad7d7e8a541f2aa88c28fcb5d2526.tar.bz2 |
* read.c (s_include): In MRI mode, don't expect quotes around the
file name.
* listing.c (listing_title): Don't require the title to be quoted.
Diffstat (limited to 'gas/read.c')
-rw-r--r-- | gas/read.c | 26 |
1 files changed, 21 insertions, 5 deletions
@@ -1711,17 +1711,17 @@ s_mri_sect (type) flagword flags; flags = SEC_NO_FLAGS; - if (type == 'C') + if (*type == 'C') flags = SEC_CODE; - else if (type == 'D') + else if (*type == 'D') flags = SEC_DATA; - else if (type == 'R') + else if (*type == 'R') flags = SEC_ROM; if (flags != SEC_NO_FLAGS) { if (! bfd_set_section_flags (stdoutput, seg, flags)) as_warn ("error setting flags for \"%s\": %s", - bfd_section_name (stdoutput, sec), + bfd_section_name (stdoutput, seg), bfd_errmsg (bfd_get_error ())); } } @@ -3273,7 +3273,23 @@ s_include (arg) FILE *try; char *path; - filename = demand_copy_string (&i); + if (! flag_mri) + filename = demand_copy_string (&i); + else + { + SKIP_WHITESPACE (); + i = 0; + while (! is_end_of_line[(unsigned char) *input_line_pointer] + && *input_line_pointer != ' ' + && *input_line_pointer != '\t') + { + obstack_1grow (¬es, *input_line_pointer); + ++input_line_pointer; + ++i; + } + obstack_1grow (¬es, '\0'); + filename = obstack_finish (¬es); + } demand_empty_rest_of_line (); path = xmalloc ((unsigned long) i + include_dir_maxlen + 5 /* slop */ ); for (i = 0; i < include_dir_count; i++) |