This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Run gdb.compile/*.exp on {x86,x86_64,s390}-linux only


On Tue, Jan 16, 2018 at 6:58 PM, Sergio Durigan Junior
<sergiodj@redhat.com> wrote:
> Hi Yao,
>
> It seems you found the issue, but just to let you know, there was a
> related (or probably the same?) issue that I fixed a while ago on libcc1
> (GCC counterpart of the "compile" plugin).  "compile" wasn't working on
> Debian:
>
>   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=851146
>
> And I submitted a patch to GCC to fix it:
>
>   https://gcc.gnu.org/ml/gcc-patches/2017-08/msg01315.html
>
> Which eventually became:
>
>   https://gcc.gnu.org/ml/gcc-patches/2017-09/msg00087.html
>
> This is now upstream, but if you're using Ubuntu, you may very well see
> the problem with finding the right GCC compiler.

Hi Sergio,
Yes, that is one issue I've seen before on Ubuntu.  I switched to
gcc trunk, then I can run gdb.compile/*.exp tests on Ubuntu.
Thanks!

There is only one fail,

bt^M
#0  _gdb_expr (__regs=0x7ffff7ff3000) at gdb command line:1^M
#1  <function called from gdb>^M
#2  main () at /home/yao.qi/SourceCode/gnu/build/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.compile/compile.c:106^M
(gdb) FAIL: gdb.compile/compile.exp: bt

On fedora builder, the test passes,
bt^M
#0  0x00007ffff7ff43f6 in _gdb_expr (__regs=0x7ffff7ff2000) at gdb
command line:1^M
#1  <function called from gdb>^M
#2  main () at /home/gdb-buildbot/fedora-x86-64-1/fedora-x86-64/build/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.compile/compile.c:106^M
(gdb) PASS: gdb.compile/compile.exp: bt

I'll fix it in test case.

-- 
Yao (齐尧)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]