From: Tom Tromey <tom@tromey.com>
To: Simon Marchi <simark@simark.ca>
Cc: Tom Tromey <tom@tromey.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] Fix "set debug parser"
Date: Sat, 03 May 2025 11:26:43 -0600 [thread overview]
Message-ID: <87cycpd2r0.fsf@tromey.com> (raw)
In-Reply-To: <f6042d32-e569-405c-af03-a1c44bea8434@simark.ca> (Simon Marchi's message of "Sat, 3 May 2025 10:26:29 -0400")
>>>>> "Simon" == Simon Marchi <simark@simark.ca> writes:
Simon> Also, I'm not sure that it's a good idea to restore yydebug (i.e. to use
Simon> scoped_restore). Imaging that parser_debug is 1, meaning that the
Simon> intention is to print debug output.
Really for a pure parser, yydebug should not be a global.
IMNSHO yacc causes more problems than it solves. I think gdb would be
much better off with hand-written parsers. That's why I rewrote the
Rust parser.
Tom
next prev parent reply other threads:[~2025-05-03 17:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-26 23:12 Tom Tromey
2025-04-28 10:50 ` Tom de Vries
2025-04-28 22:29 ` Tom Tromey
2025-04-29 7:42 ` Tom de Vries
2025-05-02 20:30 ` Simon Marchi
2025-05-03 14:26 ` Simon Marchi
2025-05-03 17:26 ` Tom Tromey [this message]
2025-05-03 17:25 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87cycpd2r0.fsf@tromey.com \
--to=tom@tromey.com \
--cc=gdb-patches@sourceware.org \
--cc=simark@simark.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox