mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-18 13:23:10 +08:00
2002-10-16 Klee Dienes <kdienes@apple.com>
* stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2] to get the last character of a char[] buffer, not name[sizeof(vptr_name)-1].
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2002-10-16 Klee Dienes <kdienes@apple.com>
|
||||||
|
|
||||||
|
* stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
|
||||||
|
to get the last character of a char[] buffer, not
|
||||||
|
name[sizeof(vptr_name)-1].
|
||||||
|
|
||||||
2002-10-14 Adam Fedor <fedor@gnu.org>
|
2002-10-14 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
* symtab.h: New objc_specific struct.
|
* symtab.h: New objc_specific struct.
|
||||||
|
@ -4137,7 +4137,7 @@ read_tilde_fields (struct field_info *fip, char **pp, struct type *type,
|
|||||||
{
|
{
|
||||||
char *name = TYPE_FIELD_NAME (t, i);
|
char *name = TYPE_FIELD_NAME (t, i);
|
||||||
if (!strncmp (name, vptr_name, sizeof (vptr_name) - 2)
|
if (!strncmp (name, vptr_name, sizeof (vptr_name) - 2)
|
||||||
&& is_cplus_marker (name[sizeof (vptr_name) - 1]))
|
&& is_cplus_marker (name[sizeof (vptr_name) - 2]))
|
||||||
{
|
{
|
||||||
TYPE_VPTR_FIELDNO (type) = i;
|
TYPE_VPTR_FIELDNO (type) = i;
|
||||||
goto gotit;
|
goto gotit;
|
||||||
|
Reference in New Issue
Block a user