mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
* buildsym.c (read_struct_type): Avoid double-bump of parse ptr
in the op$::OPERATOR. case. From Steven McCanne, <mccanne@horse.ee.lbl.gov>.
This commit is contained in:
parent
ef9b1bc915
commit
256269fc92
@ -1,5 +1,9 @@
|
||||
Fri Feb 7 07:56:05 1992 John Gilmore (gnu at cygnus.com)
|
||||
|
||||
* buildsym.c (read_struct_type): Avoid double-bump of parse ptr
|
||||
in the op$::OPERATOR. case. From Steven McCanne,
|
||||
<mccanne@horse.ee.lbl.gov>.
|
||||
|
||||
* exec.c (set_section_name): Pass arg to exec_files_info;
|
||||
only call it if interactive. From Francis Kauth <fk@tv.tv.tek.com>.
|
||||
|
||||
|
@ -2244,7 +2244,7 @@ read_struct_type (pp, type)
|
||||
At the end, we see a semicolon instead of a field.
|
||||
|
||||
For the case of overloaded operators, the format is
|
||||
OPERATOR::*.methods, where OPERATOR is the string "operator",
|
||||
op$::*.methods, where $ is the CPLUS_MARKER (usually '$'),
|
||||
`*' holds the place for an operator name (such as `+=')
|
||||
and `.' marks the end of the operator name. */
|
||||
if (p[1] == ':')
|
||||
@ -2294,9 +2294,11 @@ read_struct_type (pp, type)
|
||||
*pp = p + 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
main_fn_name = savestring (*pp, p - *pp);
|
||||
/* Skip past '::'. */
|
||||
*pp = p + 2;
|
||||
/* Skip past '::'. */
|
||||
*pp = p + 2;
|
||||
}
|
||||
new_mainlist->fn_fieldlist.name = main_fn_name;
|
||||
|
||||
do
|
||||
|
Loading…
Reference in New Issue
Block a user