[pushed 8.0-branch] [Bug server/22137] gdbserver crashes on hosts with pkru register

Tedeschi, Walfred
2017-10-16T08:30:48Z

> From: palves at redhat dot com [mailto:sourceware-
> bugzilla@sourceware.org]
> Sent: Friday, October 13, 2017 11:06 AM
> To: Tedeschi, Walfred <walfred.tedeschi@intel.com>
> Subject: [Bug server/22137] gdbserver crashes on hosts with pkru register
>
> https://sourceware.org/bugzilla/show_bug.cgi?id=22137
>
> Pedro Alves <palves at redhat dot com> changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> Status|UNCONFIRMED |NEW
> Last reconfirmed| |2017-10-13
> Ever confirmed|0 |1
>
> --- Comment #3 from Pedro Alves <palves at redhat dot com> ---
> > Bug is confirmed.
>
> Updating status then. Waldfred, if your account doesn't let you do that
> yourself, please let me know.
>
> And, I believe the bug is fixed in both master and 8.0 branch, right?
>
Hello Pedro,

I have pushed this one to 8.0 branch. In Master it does not apply anymore.
I also couldn't compile master:
../../../binutils-gdb/gdb/probe.c: In function \u2018void parse_probes_in_pspace(const probe_ops*, program_space*, const char*, const char*, const char*, std::vector<symtab_and_line>*)\u2019:
../../../binutils-gdb/gdb/probe.c:68:12: error: types may not be defined in a for-range-declaration [-Werror]
for (struct probe *probe : probes)
^~~~~~
../../../binutils-gdb/gdb/probe.c: In function \u2018VEC_probe_p* find_probes_in_objfile(objfile*, const char*, const char*)\u2019:
../../../binutils-gdb/gdb/probe.c:213:8: error: types may not be defined in a for-range-declaration [-Werror]
for (struct probe *probe : probes)
^~~~~~

Are you aware of it?

Thanks and regards,
/Fred

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