Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Matt Rice <ratmice@gmail.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [rfc] Be in language c more c++ compatible
Date: Sun, 24 Jul 2011 15:59:00 -0000	[thread overview]
Message-ID: <CACTLOFpPrbOwYxyVc9wD_6Zh3k1ctLpfByOtWZMVxtcYJZ=VLQ@mail.gmail.com> (raw)
In-Reply-To: <20110724125222.GA8403@host1.jankratochvil.net>

On Sun, Jul 24, 2011 at 5:52 AM, Jan Kratochvil
<jan.kratochvil@redhat.com> wrote:
> On Sat, 23 Jul 2011 23:17:43 +0200, Matt Rice wrote:
>> was curious what it did with the attached objc++ version.
>>
>> which isn't really a supported language by any means.
>
> I think this is outside of the scope of this thread.
>

Yeah, I pretty much came to the same conclusion,
after stewing on it overnight
except as it relates to:

>>There was another mail about use case when you >>combine C/C++ application/libs.

since objc++ is typically used to bridge a c++ library with an
objective-c library, and not generally a language used to write in
directly. there is also more opportunity for 'set language', in both
languages with the current language being
objective-c and setting to c++, but also the current language being
c++ and wanting to be objective-c.

what made me think of it, is the last time I was debugging a mixed
c++/objective-c program, having to call 'set language', was extremely
annoying, to the point that I added commands to my .gdbinit to lighten
the churn.

define cp
set language c++
end

define oc
set language objective-c
end

and setting the language was mostly something done in response to some
failed command.  Thus, I personally think anything that lessens the
amount of 'set language'ing is a good idea.


  reply	other threads:[~2011-07-24 13:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-15 20:47 Jan Kratochvil
2011-07-16  8:42 ` Tom Tromey
2011-07-16  9:45   ` Jan Kratochvil
2011-07-23 21:17 ` Mark Kettenis
2011-07-23 21:38   ` Jan Kratochvil
2011-07-25 15:00   ` Tom Tromey
2011-07-23 22:12 ` Matt Rice
2011-07-24 15:59   ` Jan Kratochvil
2011-07-24 15:59     ` Matt Rice [this message]
2011-07-25 14:52       ` 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='CACTLOFpPrbOwYxyVc9wD_6Zh3k1ctLpfByOtWZMVxtcYJZ=VLQ@mail.gmail.com' \
    --to=ratmice@gmail.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@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