mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 14:39:09 +08:00
* stabsread.c (read_struct_fields): Accept either '$' or '.' as
the character which introduces a cpp_abbrev or anonymous type.
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
Thu Nov 4 08:27:24 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
|
Thu Nov 4 08:27:24 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
|
||||||
|
|
||||||
|
* stabsread.c (read_struct_fields): Accept either '$' or '.' as
|
||||||
|
the character which introduces a cpp_abbrev or anonymous type.
|
||||||
|
|
||||||
* c-lang.c (c_printstr): Print "" to stream (like all the other
|
* c-lang.c (c_printstr): Print "" to stream (like all the other
|
||||||
output from this function), not gdb_stdout.
|
output from this function), not gdb_stdout.
|
||||||
|
|
||||||
|
@ -2322,11 +2322,16 @@ read_struct_fields (fip, pp, type, objfile)
|
|||||||
|
|
||||||
/* Get the field name. */
|
/* Get the field name. */
|
||||||
p = *pp;
|
p = *pp;
|
||||||
/* If is starts with CPLUS_MARKER it is a special abbreviation, unless
|
|
||||||
the CPLUS_MARKER is followed by an underscore, in which case it is
|
/* If is starts with CPLUS_MARKER it is a special abbreviation,
|
||||||
just the name of an anonymous type, which we should handle like any
|
unless the CPLUS_MARKER is followed by an underscore, in
|
||||||
other type name. */
|
which case it is just the name of an anonymous type, which we
|
||||||
if (*p == CPLUS_MARKER && p[1] != '_')
|
should handle like any other type name. We accept either '$'
|
||||||
|
or '.', because a field name can never contain one of these
|
||||||
|
characters except as a CPLUS_MARKER (we probably should be
|
||||||
|
doing that in most parts of GDB). */
|
||||||
|
|
||||||
|
if ((*p == '$' || *p == '.') && p[1] != '_')
|
||||||
{
|
{
|
||||||
if (!read_cpp_abbrev (fip, pp, type, objfile))
|
if (!read_cpp_abbrev (fip, pp, type, objfile))
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user