public inbox for gdb-testers@sourceware.org
help / color / mirror / Atom feed
From: gdb-buildbot@sergiodj.net
To: gdb-testers@sourceware.org
Subject: [binutils-gdb] [gdb/testsuite] Fix gdb.ada/mi_task_arg.exp
Date: Sun, 20 Oct 2019 06:06:00 -0000	[thread overview]
Message-ID: <b7be2d03fb2f873e0db74c84846df97787fc0dc6@gdb-build> (raw)

*** TEST RESULTS FOR COMMIT b7be2d03fb2f873e0db74c84846df97787fc0dc6 ***

commit b7be2d03fb2f873e0db74c84846df97787fc0dc6
Author:     Tom de Vries <tdevries@suse.de>
AuthorDate: Tue Oct 15 02:21:37 2019 +0200
Commit:     Tom de Vries <tdevries@suse.de>
CommitDate: Tue Oct 15 02:21:37 2019 +0200

    [gdb/testsuite] Fix gdb.ada/mi_task_arg.exp
    
    On openSUSE Leap 15.1, we have:
    ...
    FAIL: gdb.ada/mi_task_arg.exp: -stack-list-arguments 1 (unexpected output)
    ...
    
    The problem is that the stack-list-arguments command prints a frame argument
    'self_id' for function system.tasking.stages.task_wrapper:
    ...
    frame={level="2",args=[{name="self_id",value="0x12345678"}]
    ...
    where none (args=[]) is expected.
    
    The frame argument is in fact correct.  The FAIL does not show for say, fedora
    30, because there the executable uses the system.tasking.stages.task_wrapper
    from /lib64/libgnarl-9.so.  Adding "additional_flags=-bargs
    additional_flags=-shared additional_flags=-largs" to the flags argument of
    gdb_compile_ada gives us the same PASS, but installing libada7-debuginfo gets
    us the same FAIL again.
    
    Fix the FAIL by allowing the 'self_id' argument.
    
    Tested on x86_64-linux.
    
    Change-Id: I5aee5856fa6aeb0cc78aa4fe69deecba5b00b77a

diff --git a/gdb/testsuite/gdb.ada/mi_task_arg.exp b/gdb/testsuite/gdb.ada/mi_task_arg.exp
index 6c4156f5d3..29fcb4488c 100644
--- a/gdb/testsuite/gdb.ada/mi_task_arg.exp
+++ b/gdb/testsuite/gdb.ada/mi_task_arg.exp
@@ -44,7 +44,13 @@ if ![mi_runto "task_switch.break_me"] then {
 # Verify that "-stack-list-arguments" does not cause the debugger to
 # crash when printing the arguments of frame 1 (due to the internally-
 # generated argument "_task").
+# Frame for task_switch.break_me
+set frame0 "frame=\{level=\"0\",args=\\\[\\\]\}"
+# Frame for task_switch.caller
+set frame1 "frame=\{level=\"1\",args=\\\[\{name=\"<_task>\",value=\"$hex\"\}\\\]\}"
+# Frame for system.tasking.stages.task_wrapper
+set frame2 "frame=\{level=\"2\",args=\\\[(\{name=\"self_id\",value=\"$hex\"\})?\\\]\}"
 mi_gdb_test "-stack-list-arguments 1" \
-            "\\^done,stack-args=\\\[frame=\{level=\"0\",args=\\\[\\\]\},frame=\{level=\"1\",args=\\\[\{name=\"<_task>\",value=\"$hex\"\}\\\]\},frame=\{level=\"2\",args=\\\[\\\]\}.*" \
+            "\\^done,stack-args=\\\[$frame0,$frame1,$frame2,.*" \
             "-stack-list-arguments 1"
 


             reply	other threads:[~2019-10-20  6:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-20  6:06 gdb-buildbot [this message]
2019-10-20  6:06 ` Failures on Ubuntu-Aarch64-m64, branch master gdb-buildbot
2019-10-20  7:32 ` Failures on Ubuntu-Aarch64-native-extended-gdbserver-m64, " gdb-buildbot
2019-10-20  8:15 ` Failures on Ubuntu-Aarch64-native-gdbserver-m64, " gdb-buildbot
2019-10-27 23:50 ` Failures on Fedora-x86_64-cc-with-index, " gdb-buildbot
2019-10-28  0:07 ` Failures on Fedora-x86_64-m32, " gdb-buildbot
2019-10-28  2:06 ` Failures on Fedora-x86_64-m64, " gdb-buildbot
2019-10-28  2:54 ` Failures on Fedora-x86_64-native-gdbserver-m64, " gdb-buildbot

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=b7be2d03fb2f873e0db74c84846df97787fc0dc6@gdb-build \
    --to=gdb-buildbot@sergiodj.net \
    --cc=gdb-testers@sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).