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 4/6] testsuite: Don't use expect_background to reap gdbserver


On 13/04/15 13:09, Pedro Alves wrote:
I wrap the send_gdb and gdb_expect statement above by "catch",
>testing looks fine, although error messages are still shown in the
>console and gdb.log.
Why not suppress the error message?  I think you just need to pass
a var name as second parameter to "catch".

I did that, but it is useless.  These messages prefixed with
"ERROR OCCURED:" are printed by DejaGNU, lib/remote.exp:remote_expect,

    if {$code == 1} {
if {[info exists string]} {send_user "ERROR OCCURED: $errorInfo $errorCode $string"}

looks we can't prevent DejaGNU invoking send_user.  If this error is
annoying, we can unset gdb_spawn_id at the end of proc do_test in
gdb-sigterm.exp.

--
Yao (éå)


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