From: Pedro Alves <palves@redhat.com>
To: Yao Qi <qiyaoltc@gmail.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] Clean up gdb.gdb/selftest.exp
Date: Wed, 14 Dec 2016 17:39:00 -0000 [thread overview]
Message-ID: <7affe31e-b41c-0aa8-2ae1-fd19f3eed16a@redhat.com> (raw)
In-Reply-To: <1481725157-14018-1-git-send-email-yao.qi@linaro.org>
On 12/14/2016 02:19 PM, Yao Qi wrote:
> I recently see the test fails like this,
>
> (gdb) PASS: gdb.gdb/selftest.exp: step over argv initialization
> list^M
> 487 std::vector<struct cmdarg> cmdarg_vec;^M
> (gdb) FAIL: gdb.gdb/selftest.exp: unknown source line (after step over argv initialization)
>
> step^M
> std::vector<cmdarg, std::allocator<cmdarg> >::vector (this=0x7fffffffdc10) at ../../binutils-gdb/gdb/main.c:487^M
> 487 std::vector<struct cmdarg> cmdarg_vec;^M
> (gdb) FAIL: gdb.gdb/selftest.exp: step into xmalloc call
>
> These fails are caused by using std::vector in commit
> f60ee22ea1d62f7004511ec65a3ad76890032d88. selttest.exp should match
> the source code of GDB. This patch adds some new regexp to match
> code using std::vector, and also removes some out of date regexp.
>
> proc "do_steps_and_nexts left us ready to execute an xmalloc call",
> however, there is no xmalloc called, so I also remove these bits.
>
> I am also wondering the value of do_steps_and_nexts, can we just
> remove it completely?
Yeah, I don't see much value either. It's a constant source of
update pain.
I've found the bits of selftest.exp that interact with SIGINT
useful in the past, as that interacts with readline's SIGINT
handler. IIUC, that caught a bug in some local version of my
console work earlier in the year. So I'd prefer to keep those
bits. But I wouldn't miss do_steps_and_nexts for sure.
Thanks,
Pedro Alves
next prev parent reply other threads:[~2016-12-14 17:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-14 14:19 Yao Qi
2016-12-14 17:39 ` Pedro Alves [this message]
2016-12-19 15:04 ` Yao Qi
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=7affe31e-b41c-0aa8-2ae1-fd19f3eed16a@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=qiyaoltc@gmail.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