* Bare metal gdb stub/server implementation
[not found] <DUB122-W730C2001FD91F22F856C4DC420@phx.gbl>
@ 2015-09-25 23:52 ` Juha
2015-09-26 1:48 ` Duane Ellis
0 siblings, 1 reply; 2+ messages in thread
From: Juha @ 2015-09-25 23:52 UTC (permalink / raw)
To: gdb
I have tried to find the answer by googling, in manuals and tried asking in
freenode chat (#gdb) but haven't come up with an answer...
Where could I find the "right" way to handle things like process IDs and
thread IDs in a bare metal case, where there really are no processes or threads?
I'm trying to put together a standalone gdb stub/server for Raspberry Pi B2.
(I'm not sure what to call it: it has stub functionality, but is standalone
and as such works like a server.)
I have started with a single core, and maybe one day I'll expand to all 4 cores.
Should I fake the gdb client that there are processes or threads? If,
then which way would be better: single process with 4 threads (= cores) or
4 processes without multithreading support? Maybe there is still a better option?
Also, now, when my 'stub' starts and gdb client asks for reason for halt ('?'),
I respond that a program has finished (W 00). Is that a good choise?
-Juha Aaltonen
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Bare metal gdb stub/server implementation
2015-09-25 23:52 ` Bare metal gdb stub/server implementation Juha
@ 2015-09-26 1:48 ` Duane Ellis
0 siblings, 0 replies; 2+ messages in thread
From: Duane Ellis @ 2015-09-26 1:48 UTC (permalink / raw)
To: Juha; +Cc: gdb
> I'm trying to put together a standalone gdb stub/server for Raspberry Pi B2.
> (I'm not sure what to call it: it has stub functionality, but is standalone
> and as such works like a server.)
Are you sure you are talking about bare metal on raspberry pi?
I think you mean Linux Kernel debug (not application debug) via JTAG
Take a look at the open source JTAG solution called “OpenOCD”
Specifically look at the “rtos” directory for linux stuff.
-Duane
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-09-26 1:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <DUB122-W730C2001FD91F22F856C4DC420@phx.gbl>
2015-09-25 23:52 ` Bare metal gdb stub/server implementation Juha
2015-09-26 1:48 ` Duane Ellis
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).