Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Doug Evans <dje@google.com>
Cc: gdb-patches@sourceware.org, iant@google.com,
	       Keith Seitz <keiths@redhat.com>
Subject: Re: [RFC] Initial pass at supporting the Go language
Date: Tue, 03 Jan 2012 19:50:00 -0000	[thread overview]
Message-ID: <m3ipksftw6.fsf@fleche.redhat.com> (raw)
In-Reply-To: <CADPb22Q8zDXFEAQV07=gUNojf0bJuh5kM4bc85facDLdrTdaRA@mail.gmail.com>	(Doug Evans's message of "Tue, 3 Jan 2012 10:12:11 -0800")

>>>>> "Doug" == Doug Evans <dje@google.com> writes:

Tom> I think this over-exposes some buildsym details to dwarf2read.

Doug> Sigh.
Doug> This is what I get for monkey-see-monkey-do hacking.
Doug> You can't trust any part of gdb to be what the powers-that-be find acceptable.
Doug> [The code in question is far from rare, and any details are certainly
Doug> not protected in a way that imposes or even suggests a proper API.  A
Doug> day I continue to wish for btw.]

I don't insist on changing this.  In fact I thought it was reasonably
clear that I was approaching it as a tradeoff between ugly alternatives.
I grepped the tree looking for similar uses of struct pending, and
didn't find any.

Tom> What is the problem here?

Doug> The choice of what encoding to use is, ultimately, a property of the
Doug> thing you are printing, not any global state.  Plus Go generally uses
Doug> utf8; I wasn't willing to have the Go support change the target
Doug> encoding.

It seems to me that if a Go string is UTF-8, then it is friendliest to
the user to print it as such.  After all, you're already doing other
Go-specific decoding here.

If the user really needs to see the details, he can "set lang c" and see
the underlying representation.

That said, I don't mind either way here, either.  I don't actually know
much about Go.

Tom


  reply	other threads:[~2012-01-03 19:50 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-28 21:13 Doug Evans
2011-12-29  3:50 ` Eli Zaretskii
2011-12-29  5:17 ` Joel Brobecker
2012-01-03 17:38   ` Doug Evans
2012-01-03 17:52     ` Joel Brobecker
2012-01-25 20:00   ` Doug Evans
2012-01-02 19:13 ` Tom Tromey
2012-01-03  3:20   ` Joel Brobecker
2012-01-03 18:12   ` Doug Evans
2012-01-03 19:50     ` Tom Tromey [this message]
2012-01-03 20:02   ` Keith Seitz
2015-01-20 17:34 ` golang compiler (6g) testsuite board file [Re: [RFC] Initial pass at supporting the Go language] Jan Kratochvil
2015-01-21 17:59   ` Doug Evans

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=m3ipksftw6.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=dje@google.com \
    --cc=gdb-patches@sourceware.org \
    --cc=iant@google.com \
    --cc=keiths@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox