Fix pascal behavior for class fields with testcase
authorPierre Muller <muller@ics.u-strasbg.fr>
Tue, 21 Apr 2015 20:10:08 +0000 (22:10 +0200)
committerPierre Muller <muller@ics.u-strasbg.fr>
Tue, 21 Apr 2015 20:10:08 +0000 (22:10 +0200)
commit8aae434443df61440ff5228f5c8fe3e5d4a38798
tree881bcf8df211db467af1d81f22a81d2dab0ff9ae
parent819843c7029916120aa2929f80e0d7276177a7fb
Fix pascal behavior for class fields with testcase

  Problem reported as PR pascal/17815

Part 1/3: Remember the case pattern that allowed finding a field of this.
File gdb/p-exp.y modified

  This is the fix in the pascal parser (p-exp.y),
to avoid the error that GDB does find normal variables
case insensitively, but not fields of this,
inside a class or object method.

Part 2/3: Add "class" option for pascal compiler
File gdb/testsuite/lib/pascal.exp

This part of the patch series is unchanged.
It adds class option to pascal compiler
which adds the required command line option to
accept pascal class types.

Part 3/3:
New file: gdb/testsuite/gdb.pascal/case-insensitive-symbols.exp
New file: gdb/testsuite/gdb.pascal/case-insensitive-symbols.pas

  Here is an updated version of this test, using Pedro's suggestions.
Test to check that PR 17815 is fixed.
gdb/ChangeLog
gdb/p-exp.y
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.pascal/case-insensitive-symbols.exp [new file with mode: 0644]
gdb/testsuite/gdb.pascal/case-insensitive-symbols.pas [new file with mode: 0644]
gdb/testsuite/lib/pascal.exp