Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA/commit] (Ada) fix GDB crash printing packed array
Date: Sat, 11 May 2019 17:23:00 -0000	[thread overview]
Message-ID: <20190511172305.GA27503@adacore.com> (raw)
In-Reply-To: <87o94a824q.fsf@linux.ibm.com>

Hi Pedro,

> I was running some regression tests for gdb 8.3, and I noticed that
> there was a regression introduced by this patch for test
> gdb.ada/pckd_arr_ren.exp.
> 
> I tried investigating, and it seems that this happened due to the
> compiler in my system being relatively old (GNAT 4.9.3).  I don't know
> much about Ada, so I couldn't figure out if this is an issue with the
> debug symbols generated by the older compiler or if GDB should handle
> this, but it worked before the patch.
> 
> This is the relevant output from the test:
> 
> (gdb) break foo.adb:22
> Breakpoint 1 at 0x10002410: file /home/pedromfc/binutils-gdb/gdb/testsuite/gdb.ada/pckd_arr_ren/foo.adb, line 22.
> (gdb) run 
> Starting program: /home/pedromfc/binutils-gdb/build-bisect/gdb/testsuite/outputs/gdb.ada/pckd_arr_ren/foo 
> 
> Breakpoint 1, foo () at /home/pedromfc/binutils-gdb/gdb/testsuite/gdb.ada/pckd_arr_ren/foo.adb:22
> 22         Do_Nothing (A2'Address); -- STOP
> (gdb) print A2
> Could not find renamed variable: a1
> (gdb) FAIL: gdb.ada/pckd_arr_ren.exp: print var
> 
> That error message seems to come from ada-exp.y:write_object_renaming.

Thanks for the heads up.

Most likely the version of the compiler you are using is generating
the debug info improperly, but why don't you send me privately your
binary, and I will try to take a look, to see what's happening.

-- 
Joel


      reply	other threads:[~2019-05-11 17:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-10  8:21 Joel Brobecker
2019-02-15 19:49 ` Tom Tromey
2019-02-17 13:34   ` Joel Brobecker
2019-05-10 20:51 ` Pedro Franco de Carvalho
2019-05-11 17:23   ` 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=20190511172305.GA27503@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=pedromfc@linux.ibm.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