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

Re: Z packet support in Gdbserver?


Daniel Jacobowitz wrote:

It's much simpler than that: gdbserver does not support hardware watchpoints. No one's ever implemented it. As a copy/paste exercise it would not be too hard; I still have pipe dreams of sharing the code with GDB someday.

Ah, that explains it. So what's needed is basically two new function pointers in struct target_ops (insert_watchpoint/remove_watchpoint) and a snippet of code in server.c to recognize the z/Z packets. (I assume that's what you meant by copy/paste exercise.)


--
Orjan Friberg
Axis Communications


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