From: Omar Sandoval <osandov@osandov.com>
To: Daniel Thompson <daniel.thompson@linaro.org>
Cc: Doug Anderson <dianders@chromium.org>,
Jason Wessel <jason.wessel@windriver.com>,
Amal Raj T <amalrajt@meta.com>,
Stephen Brennan <stephen.s.brennan@oracle.com>,
kgdb-bugreport@lists.sourceforge.net,
linux-serial@vger.kernel.org, linux-debuggers@vger.kernel.org
Subject: Re: kgdb replacing newline with CRLF in custom query response
Date: Fri, 15 Nov 2024 09:57:12 -0800 [thread overview]
Message-ID: <ZzeLeFcMtx1ipt9R@telecaster> (raw)
In-Reply-To: <20241115144933.GB4408@aspen.lan>
On Fri, Nov 15, 2024 at 02:49:33PM +0000, Daniel Thompson wrote:
> On Fri, Nov 08, 2024 at 09:37:32AM -0800, Doug Anderson wrote:
[snip]
> > Bleh. It _probably_ wouldn't be a big deal to do the LF -> CRLF for
> > all these, but I don't know for sure. I guess worst case you could add
> > some flag in the "dbg_io_ops" and figure out how to set it just for
> > UARTs?
>
> I find myself in a similar position to Doug.
>
> It sounds reasonable to move the CR synthesis into kdb_msg_write() but I
> also am not certain the other polling backends will handle this correctly.
>
> However I did apply the following patch and run a few tests and it all
> looks good. Specifically there are no regressions from the kgdb test
> suite although that's unsurprising since that suite exclusively tests
> the serial port. I also fired up the kdb,kms polling backends on x86
> and verified that I didn't get double line feeds in kdb (I did not).
>
> That means I'd certainly accept patches based on Doug's idea and if it
> proves later that we have to revert and add a new dbg_io_ops pointer to
> switch the handler between binary and ascii modes then so be it!
Perfect, thanks for testing this, Daniel. Amal will include a
preparatory patch along those lines when he sends the VMCOREINFO packet
patch.
Thanks,
Omar
prev parent reply other threads:[~2024-11-15 17:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-07 22:23 kgdb replacing newline with CRLF in custom query response Omar Sandoval
2024-11-08 1:08 ` Doug Anderson
2024-11-08 1:13 ` Omar Sandoval
2024-11-08 15:31 ` Doug Anderson
2024-11-08 16:17 ` Omar Sandoval
2024-11-08 17:37 ` Doug Anderson
2024-11-15 14:49 ` Daniel Thompson
2024-11-15 17:57 ` Omar Sandoval [this message]
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=ZzeLeFcMtx1ipt9R@telecaster \
--to=osandov@osandov.com \
--cc=amalrajt@meta.com \
--cc=daniel.thompson@linaro.org \
--cc=dianders@chromium.org \
--cc=jason.wessel@windriver.com \
--cc=kgdb-bugreport@lists.sourceforge.net \
--cc=linux-debuggers@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=stephen.s.brennan@oracle.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.