summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2022-02-12 15:50:14 +0000
committerrillig <rillig@NetBSD.org>2022-02-12 15:50:14 +0000
commitce51d50e043fa14d8d782e663e5314beb4b595de (patch)
tree620df45670e0855631dc4c98fdec0d2ada7b4602 /sys/dev
parentf2e0628f7851077c9682dc1f7e68b04739882a6f (diff)
indent: extend debug logging for the parser state
The member names in struct parser_state are not trustworthy, for example in_decl does not correspond to the intuitive definition of "inside a declaration". To cope with this uncertainty, output the full state of the parser state to the debug log, not only the changes. This helps to track the inner state for small differences in the input, such as between 'typedef enum { TA, TB } TT' and 'enum { EA, EB } ET'. This hopefully helps in fixing PR#55453. No functional change outside debug mode.
Diffstat (limited to 'sys/dev')
0 files changed, 0 insertions, 0 deletions