Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Quality Quorum <qqi@theworld.com>
To: Torsten Mohr <tmohr@s.netic.de>
Cc: gdb <gdb@sources.redhat.com>
Subject: Re: ARM7, remote GDB, Software Breakpoints
Date: Wed, 12 Feb 2003 17:42:00 -0000	[thread overview]
Message-ID: <Pine.SGI.4.40.0302121219130.232998-100000@shell01.TheWorld.com> (raw)
In-Reply-To: <200302120659.36397.tmohr@s.netic.de>



On Wed, 12 Feb 2003, Torsten Mohr wrote:

> Hi,
>
> i have several questions related to the GDB remote protocol
> server i wrote ( http://www.s.netic.de/tmohr/pppcb-0.5.0.tar.bz2 ),
> it would be great if someone could give me some hints.
>
>
> 1. I could handle HW breakpoints, how can i tell GDB that it should
> use HW breakpoints?  Just answering requests for SW breakpoints with
> "ENN" doesn't seem to make GDB use HW breakpoints.

You have to implement commands starting with 'Z' and 'z' in order to
support hw breakpoints.

>
>
> 2. When i use SW breakpoints and download and start a program on
> the target, first the program is downloaded and then the SW
> breakpoints are set.  SW breakpoints are done by replacing the
> instruction at that address with a "breakpoint instruction".
> When the program stops on a "breakpoint instruction", and i
> then do a "step" or "continue", that original instruction is
> NOT EXECUTED, it seems i have to restore that value temporarily,
> do a "single step" and put back that "breakpoint instruction"
> again, right?
> >From watching the communication between target and server i assume
> it is like this, i just want to make sure this is the way to handle
> it and i don't miss anything.


It is very strange, because gdb works exactly this way. I am wondering do
you have 'step' command implemented?

>
>
> 3. Thumb mode is not handled at all at the moment, what do i need
> to do to handle Thumb mode?
> If GDB downloads a program into the target and sets the PC to a
> certain address, how does my server know if it should execute this
> in ARM or in Thumb mode?
>
>
> Best regards,
> Torsten.
>

Thanks,

Aleksey



  reply	other threads:[~2003-02-12 17:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-12  6:01 Torsten Mohr
2003-02-12 17:42 ` Quality Quorum [this message]
2003-02-12 20:20   ` Torsten Mohr
2003-02-12 20:49     ` Daniel Jacobowitz
2003-02-13  0:55       ` Steven Johnson
2003-02-13 17:14       ` Andrew Cagney
2003-02-12 21:27     ` Quality Quorum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.SGI.4.40.0302121219130.232998-100000@shell01.TheWorld.com \
    --to=qqi@theworld.com \
    --cc=gdb@sources.redhat.com \
    --cc=tmohr@s.netic.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox