RE: Tools to debug multiple cores/processes at the same time?
"Aktemur, Tankut Baris via Gdb" <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <SN6PR11MB28935BEAE83B5B424023EF0BC4C19@SN6PR11MB2893.namprd11.prod.outlook.com> |
> Let me give an example of a debugging session: > > * start a session with 3 core files > > * run a command that shows info about each core (assume a python > "showinfo" command that show all threads with some details about each > one). Maybe a command like: > (gdb) all: showinfo > i1: <info> > i2: <info> > i3: <info> > > * For each core, go to a certain thread (of course the thread numbers > will be different in each core): > (gdb) i1: thr 7 > (gdb) i2: thr 9 > (gdb) i3: thr 23 > > * Run a command that returns some value and stores it in a convenience > variable, on all cores: > (gdb) all: set $v = $findstuff() > > * Run a command that shows some value, on all cores: > (gdb) all: p $v->someDetail > i1: $1 = 7 > i2: $1 = 44 > i3: $1 = 165 > > I dunno, something like that. Alternatively maybe it would be simpler > for output for each inferior to go to a separate terminal or whatever. Hi, Have you considered using the "thread apply" command? -Baris Intel Deutschland GmbH Registered Address: Am Campeon 10, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de> Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928