[lldb-dev] Target and platform clarification request

Matthew Gardiner mg11 at csr.com
Tue Jul 1 06:04:17 PDT 2014


Hi all,

I have modified my local copy of lldb in order that it can gdb-remote to 
an in-house gdb-rsp server. However after I connect to my target, the 
target list command informs me that my target's platform is "host".

e.g.

(lldb) target list
Current targets:
* target #0: 
/home/mg11/src/main/devtools/main/heracles/csrgdbserver/test/examples/simple/kalgsd5te_hello.elf 
( arch=kalimba-csr-unknown, platform=host, pid=1, state=stopped )

Is this correct for a embedded target connected over gdb-rsp?

When I invoke platform list I see:

(lldb) platform list
Available platforms:
host: Local Linux user platform plug-in.
remote-freebsd: Remote FreeBSD user platform plug-in.
remote-linux: Remote Linux user platform plug-in.
remote-windows: Remote Windows user platform plug-in.
remote-gdb-server: A platform that uses the GDB remote protocol as the 
communication transport.

So I wondered why my target doesn't report remote-gdb-server as it's 
target. Should it?

Could someone clarify what this concept of platform means? I understand 
the concept of the host as being the Machine/OS where the debugger user 
is worked at, and the target as being the "thing being debugged", which 
could be co-located on the host (in either a 32-bit or 64-bit form) or 
remotely located, in particular for an embedded device, but where does 
the idea of the platform fit in?

all help appreciated,
Matthew Gardiner



Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Keep up to date with CSR on our technical blog, www.csr.com/blog, CSR people blog, www.csr.com/people, YouTube, www.youtube.com/user/CSRplc, Facebook, www.facebook.com/pages/CSR/191038434253534, or follow us on Twitter at www.twitter.com/CSR_plc.
New for 2014, you can now access the wide range of products powered by aptX at www.aptx.com.



More information about the lldb-dev mailing list