This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [testsuite patch] Fix new FAIL: py-frame.exp: test Frame.read_register(rip)
- From: Yao Qi <yao at codesourcery dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: <gdb-patches at sourceware dot org>, Sasha Smundak <asmundak at google dot com>
- Date: Sun, 11 Jan 2015 21:58:06 +0800
- Subject: Re: [testsuite patch] Fix new FAIL: py-frame.exp: test Frame.read_register(rip)
- Authentication-results: sourceware.org; auth=none
- References: <20150107143820 dot GA1482 at host2 dot jankratochvil dot net>
Jan Kratochvil <jan.kratochvil@redhat.com> writes:
> # On x86-64, PC is in $rip register.
> -if {[istarget x86_64-*]} {
> +if {[is_amd64_regs_target]} {
> gdb_test "python print ('result = %s' % (f0.read_register('pc') == f0.read_register('rip')))" \
> " = True" \
> "test Frame.read_register(rip)"
Hi, Jan,
With your patch applied, this test is skipped on 'x86_64 -m32'. I
prefer to increasing the test coverage, so how about extending the test
for 'x86_64 -m32'? I mean test Frame.read_register(eip)...
--
Yao (éå)