public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "N.Suresh" <nsuresh@cdotb.ernet.in>
To: bshiva@cdotb.ernet.in, rprakash@cdotb.ernet.in,
	ecos-discuss@sources.redhat.com
Subject: [ECOS] Breakpoint problem
Date: Tue, 12 Feb 2002 00:58:00 -0000	[thread overview]
Message-ID: <3C68DA67.CF155ECA@cdotb.ernet.in> (raw)

Hi all,
    I am testing GDB stubs on ADS8260 board. (I am downloading 'hello'
program using gdb)
    Following is the observations i made:

    *)  When we execute (gdb)  b main
           It is just doing some memory access ('m' packets) and
updating it's internal data structures.
    *)  When we execute (gdb) c
           The host sends a 'Z' packet to actually put the breakpoint.
           But we are not processing this inside the stub. But even then
the target stops at main and GDB prints the
            line number properly.
    After hitting the breakpoint:
    *)   When we execute (gdb) c     it is sending a 's' packet and our
stub is executing the single_step function and
     target gives some errors but if we continue the execution after
that, "Hello World!" is printed. Any
     breakpoints after that is not hit.

    My questions are :

     How the target is stopping even when we are not putting a
breakpoint at the given location ?
     Why is the host (gdb) sending 's' packet for the second continue
command?
     Any options to be enabled in the stub building or any version
mismatch ?

thanx in advance,


--
!============================================================================!
= Suresh N., Research Engineer, C-DoT, Bangalore.                            =
= Call me at : OFF: 2383951(Dir) / 2263399 (268)  RES: 3334248               =
= Alternate email :  nsur_mys@email.com                                      =
= QOT: For fast-acting relief, try slowing down.
!============================================================================!




Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

             reply	other threads:[~2002-02-12  8:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-12  0:58 N.Suresh [this message]
2002-02-14 11:18 ` Jonathan Larmour
  -- strict thread matches above, loose matches on Subject: below --
2000-10-20  2:03 Andreas.Karlsson
2000-10-19  6:35 Andreas.Karlsson
2000-10-19  4:55 Andreas.Karlsson
2000-10-19  5:50 ` Jesper Skov
2000-10-19  6:11   ` Jonathan Larmour

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=3C68DA67.CF155ECA@cdotb.ernet.in \
    --to=nsuresh@cdotb.ernet.in \
    --cc=bshiva@cdotb.ernet.in \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=rprakash@cdotb.ernet.in \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).