Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch] ada testsuite: False FAILs with gcc debug info
Date: Mon, 28 Mar 2011 21:27:00 -0000	[thread overview]
Message-ID: <20110328205640.GE3670@adacore.com> (raw)
In-Reply-To: <20110328200825.GA22355@host1.jankratochvil.net>

> I do not understand this much.  I have the single system only
> compiler, which also provides debug info for all its parts.  While I
> can have some special GCC builds still with the default system
> compiler the GDB testsuite should work.

That's the thing, as far as I know, you need to change something
in order to be able to build the runtime with debugging information.
It's been a long time since I worked on that part of the compiler,
but, by default, we do not produce a runtime with debugging info.
For those of us that need to debug the runtime, we usually using
"gnatmake -f -a".

> (gdb) ptype ada.strings.maps.character_set
> type = array (character) of boolean <packed: 1-bit elements>
> (gdb) ptype "a"
> type = array (1 .. 1) of character
> 
> and ada_type_match for TYPE_CODE_ARRAY returns 1 without checking
> whether the array's target type matches.  And both these types are
> arrays.  Why Character_Set should not match String with this
> ada_type_match implementation?
>
> So far it seems to me ada_type_match has a bug, does not it?

Yeah, that looks like a hole in the implementation indeed.
I think I wasn't seeing the problem with `gnatmake -f -a'
because ada.strings.maps simply wasn't used at all.

You can assign the PR to me. It might be delicate to solve,
because the matching rules are complex (at least to me).

-- 
Joel


      reply	other threads:[~2011-03-28 20:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-28  8:06 Jan Kratochvil
2011-03-28 18:05 ` Joel Brobecker
2011-03-28 18:46   ` Tom Tromey
2011-03-28 20:21   ` Jan Kratochvil
2011-03-28 21:27     ` Joel Brobecker [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=20110328205640.GE3670@adacore.com \
    --to=brobecker@adacore.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