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/20287] X32 and "gdb_static_assert (sizeof (nat_siginfo_t) == sizeof (siginfo_t))"


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.

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