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

[PATCH/AARCH64] Fix hardware break points


I noticed after a fork, gdb would fail with the following message:
Unexpected error setting hardware debug registers

This is because it was trying to setup hardware breakpoint debug
registers but it was passing to ptrace garbage for the registers as
they were not zero'd out.

This fixes the problem by zeroing out the regs variable and now
debugging after a fork works on aarch64.

OK?  Built and tested on aarch64-linux-gnu with no regressions.

Thanks,
Andrew Pinski

ChangeLog:
* aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.

Attachment: fixfork.diff.txt
Description: Text document


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