This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [RFA] Token cleanup in c-exp.y


   Just for information:
doesn't this mean that
the parser that previously accepted
  '->  *' with spaces between the arrow and the star,
will now reject such patterns?
  Is this also what a C compile would do?

The behavior of GDB did change indeed:
Old behavior:
(top-gdb) p current_objfile->*gdb_stderr
non-pointer-to-member value used in pointer-to-member construct
(top-gdb) p current_objfile-> *gdb_stderr
non-pointer-to-member value used in pointer-to-member construct

New behavior:
(top-gdb) p current_objfile->*gdb_stderr
non-pointer-to-member value used in pointer-to-member construct
(top-gdb) p current_objfile-> *gdb_stderr
A syntax error in expression, near `*gdb_stderr'.

  The problem is that I have 
no idea what it stands for...
and I never saw '->*' nor '.*' in any C sources.

  Please forgive the question if it is silly,
and remember that my knowledge of C is limited
to what I learned to be able to contribute to the GDB project...


Pierre Muller
Pascal language support maintainer for GDB




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]