Task context information available on crash

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Mar 20 06:21:14 UTC 2018


On 19/03/18 18:36, Matthew J Fletcher wrote:
> Hi,
>
> When an application crashes and the bsp_fatal_extension() is invoked, 
> is there a way to see (in gdb or otherwise) what the last executing 
> task was ?
>
> I guess there is some task context maintained but it would be internal 
> to rtems.

You can get the executing thread (and some other variables) from the 
global _Per_CPU_Information[], e.g.

(gdb) p/x _Per_CPU_Information [0].per_cpu.executing->Object.id
$1 = 0xa010001

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the users mailing list