From: Joel Brobecker <brobecker@gnat.com>
To: gdb-patches@sources.redhat.com
Subject: [RFA/testsuite/ada] Add null_record testcase
Date: Mon, 29 Mar 2004 20:11:00 -0000 [thread overview]
Message-ID: <20040329201139.GH888@gnat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 544 bytes --]
This is our first testcase involving an Ada program!
This testcase demonstrate a problem with our dwarf-2 reader, described
in http://sources.redhat.com/ml/gdb-patches/2004-02/msg00533.html.
This test currently fails, and then passes once the suggested patch
is applied.
2004-03-29 J. Brobecker <brobecker@gnat.com>
* gdb.ada (bar.ads, bar.adb, null_record.adb): New files.
* gdb.ada (null_record.exp): New testcase.
Tested on x86-linux (using an Ada-aware version of GDB based on GDB 6.0).
Ok to apply?
Thanks,
--
Joel
[-- Attachment #2: bar.ads --]
[-- Type: text/plain, Size: 83 bytes --]
package Bar is
type Empty is null record;
procedure Do_Nothing;
end Bar;
[-- Attachment #3: bar.adb --]
[-- Type: text/plain, Size: 98 bytes --]
package body Bar is
procedure Do_Nothing is
begin
null;
end Do_Nothing;
end Bar;
[-- Attachment #4: null_record.adb --]
[-- Type: text/plain, Size: 84 bytes --]
with Bar; use Bar;
procedure Null_Record is
begin
Do_Nothing;
end Null_Record;
[-- Attachment #5: null_record.exp --]
[-- Type: text/plain, Size: 537 bytes --]
if $tracelevel then {
strace $tracelevel
}
load_lib "ada.exp"
set testfile "null_record"
set srcfile ${testfile}.adb
set binfile ${objdir}/${subdir}/${testfile}
if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
return -1
}
gdb_exit
gdb_start
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}
gdb_test "begin" \
"Breakpoint \[0-9\]+ at .*null_record.adb.*" \
"begin"
gdb_test "ptype empty" \
"type = record null; end record" \
"ptype on null record"
next reply other threads:[~2004-03-29 20:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-29 20:11 Joel Brobecker [this message]
2004-03-31 16:13 ` Andrew Cagney
2004-04-01 0:58 ` Joel Brobecker
2004-04-01 1:04 ` Joel Brobecker
2004-04-01 1:35 ` Joel Brobecker
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=20040329201139.GH888@gnat.com \
--to=brobecker@gnat.com \
--cc=gdb-patches@sources.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