This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/20287] X32 and "gdb_static_assert (sizeof (nat_siginfo_t) == sizeof (siginfo_t))"
- From: "equationssolver at yahoo dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 26 Jul 2016 11:13:57 +0000
- Subject: [Bug gdb/20287] X32 and "gdb_static_assert (sizeof (nat_siginfo_t) == sizeof (siginfo_t))"
- Auto-submitted: auto-generated
- References: <bug-20287-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20287
--- Comment #46 from hmb <equationssolver at yahoo dot com> ---
Hi,
Now applying the patch and changing the
typedef x32_siginfo_t ptrace_siginfo_t to typedef compat_x32_siginfo_t
ptrace_siginfo_t;
I can at least build the cross-complied gdbserver for x32 with build as
i386-linux and target as i686-pc-linux-gnu
But gdbserver gives following warning,
gdbserver: linux_ptrace_test_ret_to_nx: Cannot PTRACE_PEEKUSER: Input/output
error
and gives segmentation fault during debugging even on single instruction step
command.
e.g
1> Launch gdbserver
./gdbserver :10000 test
gdbserver: linux_ptrace_test_ret_to_nx: Cannot PTRACE_PEEKUSER: Input/output
error
Process test created; pid = 473
Listening on port 10000
now after connecting to gdb and on si command it gives
Remote debugging from host 127.0.0.1
Segmentation fault (core dumped)
--
You are receiving this mail because:
You are on the CC list for the bug.