This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdbserver: variable sized breakpoints
- From: Yao Qi <yao at codesourcery dot com>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: gdb at sourceware dot org, toolchain-devel at blackfin dot uclinux dot org
- Date: Thu, 07 Jul 2011 11:13:18 +0800
- Subject: Re: gdbserver: variable sized breakpoints
- References: <201107062213.52762.vapier@gentoo.org>
On 07/07/2011 10:13 AM, Mike Frysinger wrote:
> gdb itself takes care of this when it's setting breakpoints in
> bfin_breakpoint_from_pc. but gdbserver doesnt seem to have a way to handle
> this. is it already possible ? or does the linux_target_ops struct need to
> be extended ?
gdbserver doesn't have to worry about this. gdb is able to send
breakpoint insn by 'M' packet, IIRC, if remote stub doesn't support 'Z0'
packet. Looks target->insert_point is not defined in bfin gdbserver, so
'Z0' packet is not supported. Then, gdb can send the right breakpoint
insn (32-bit or 16-bit) by 'M' packet to remote.
--
Yao (éå)