This is the mail archive of the gdb-prs@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]

[Bug gdb/18208] Fails in gdb.base/coredump-filter.exp in remote testing


https://sourceware.org/bugzilla/show_bug.cgi?id=18208

--- Comment #9 from Yao Qi <qiyao at gcc dot gnu.org> ---
(In reply to Pedro Alves from comment #8)

> so it sounds like the issue may be on your board file.  I haven't tried it
> through a board file myself though.  We should probably have a board file
> that does real remote gdbserver testing against localhost...

Maybe, I hacked the test case to set /proc/PID/coredump_filter in the C code,

int
set_coredump_filter (int pid, int bits)
{
  char cmd[80];

  snprintf(cmd, sizeof cmd, "echo %d > /proc/%d/coredump_filter", bits, pid);
  return system (cmd);
}

and call set_coredump_filter in gdb like this,

gdb_test "p set_coredump_filter (${ipid}, ${filter_flag})" " = 0"

all the fails go away.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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