Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

CDT/Obsolete/designs/MultiCoreDebug

< CDT‎ | Obsolete
Revision as of 16:10, 23 June 2010 by Marc.khouzam.gmail.com (Talk | contribs) (New page: == Introduction == This page describes the effort to bring multi-core debugging to the CDT. Multi-core debugging should provide the user with knowledge and control about the different co...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Introduction

This page describes the effort to bring multi-core debugging to the CDT. Multi-core debugging should provide the user with knowledge and control about the different cores of the target machine of a debugging session.

GDB

As of version 7.1, some information is reported by GDB with respect to the cores threads and processes are located on. See details on the GDB mailing list here. Specifically, changes of interest are:

  • The MI stopped event shows core:
    • *stopped,frame={addr="0x08048618",func="main",args=[],file="a.cc",fullname="/local/a.cc",line="9"},thread-id="1",stopped-threads="all",core="1"
  • -list-thread-groups shows cores:
    • -list-thread-groups => ^done,groups=[{id="13286",type="process",pid="13286",cores=["1"]}]
    • -list-thread-groups 13286 -> ^done,threads=[{id="1",target-id="process 13286",frame={level="0",addr="0x08048618",func="main",args=[],file="a.cc",fullname="/local/a.cc",line="9"},state="stopped",core="1"}]
  • -list-thread-groups --available shows cores but only when connected to gdbserver
    • ^done,groups=[{id="13492",type="process",description="sleep 5",user="lmckhou",cores=["0"]},{id="25226",type="process",description="/local/lmckhou/jre1.6.0_20/bin/java",user="lmckhou",cores=["0","1","2","3"]} ....
  • -thread-info shows core:
    • ^done,threads=[{id="1",target-id="Thread 13433",frame={level="0",addr="0xb7f3a840",func="_start",args=[],from="/lib/ld-linux.so.2"},state="stopped",core="0"}]

Back to the top