From: Bart Veer <bartv@redhat.com>
To: jlarmour@redhat.com
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] Debugging multi-threaded eCos application using GDB
Date: Fri, 03 Aug 2001 09:46:00 -0000 [thread overview]
Message-ID: <200108031646.f73Gkn225440@sheesh.cambridge.redhat.com> (raw)
In-Reply-To: <3B6ABF02.4A91A194@redhat.com>
>>>>> "Jifl" == Jonathan Larmour <jlarmour@redhat.com> writes:
>> Yes, theoretically it would be possible to run something like
>> Redboot inside the synthetic target, connect to it via a socket
>> and the remote protocol, and then boot a RAM-startup synthetic
>> target application into it.
Jifl> That's what I was thinking sort of - except you could just
Jifl> build your application for "ROM" startup and include stubs
Jifl> instead. After all, this only applies if you explicitly want
Jifl> thread debugging.
There would be various problems:
1) you would be using the native Linux target vector for starting up
the application, then switching to the remote target vector. That
is not exactly normal behaviour for a Linux gdb session. There
could be all kinds of confusion if e.g. during initialization you
set a few Linux native breakpoints.
2) in the synthetic target only ROM startup is currently supported,
and the code region really is made read-only. Therefore attempting
to insert a breakpoint instruction from inside gdb stubs is not
going to work very well. Although RAM startup support could be
added, it would be a shame to lose functionality such as
applications being unable to overwrite their own code by accident.
3) Linux ptrace debugging probably uses more advanced functionality
than typical gdb stubs, e.g. hardware breakpoints and watchpoints.
It would be a shame to lose those.
Yes, something along your lines is possible. However I would much
prefer to see it fixed generally, by making the gdb target vector
scriptable, and thus solving the problem for simulators etc. at the
same time. All this assumes that the gdb folks do not have their own
plans in this area, of course.
Bart
next prev parent reply other threads:[~2001-08-03 9:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-03 2:49 Stefan Syberichs
2001-08-03 6:21 ` Jonathan Larmour
2001-08-03 7:39 ` Bart Veer
2001-08-03 8:11 ` Jonathan Larmour
2001-08-03 9:46 ` Bart Veer [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-04-23 0:28 Nadine.Albiez-extern
2001-04-23 5:52 ` Bart Veer
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=200108031646.f73Gkn225440@sheesh.cambridge.redhat.com \
--to=bartv@redhat.com \
--cc=ecos-discuss@sources.redhat.com \
--cc=jlarmour@redhat.com \
/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).