This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/18208] Fails in gdb.base/coredump-filter.exp in remote testing
- From: "qiyao at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 08 Apr 2015 16:13:08 +0000
- Subject: [Bug gdb/18208] Fails in gdb.base/coredump-filter.exp in remote testing
- Auto-submitted: auto-generated
- References: <bug-18208-4717 at http dot sourceware dot org/bugzilla/>
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.