<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 28, 2021 at 12:04 AM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
On 28/04/2021 00:28, Joel Sherrill wrote:<br>
><br>
><br>
> On Tue, Apr 27, 2021, 11:24 AM Sebastian Huber <br>
> <<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a> <br>
> <mailto:<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>>> wrote:<br>
><br>
> On 27/04/2021 18:23, Gedare Bloom wrote:<br>
><br>
> > PS: the git-rm is missing?<br>
> Oh, yes. I will fix this if Joel is happy with the change.<br>
><br>
><br>
> Can you set a breakpoint on it as pthread_self?<br>
<br>
Yes, this works:<br>
<br>
(gdb) b pthread_self<br>
Breakpoint 6 at 0x105fac: file ../../../cpukit/rtems/src/taskself.c, <br>
line 29.<br>
(gdb) c<br>
Continuing.<br>
<br>
Breakpoint 6, rtems_task_self () at ../../../cpukit/rtems/src/taskself.c:29<br>
29 return _Thread_Get_executing()->Object.id;<br>
(gdb)<br>
<br>
(gdb) print pthread_self<br>
$1 = {rtems_id (void)} 0x105fa8 <rtems_task_self><br>
<br>
><br>
> It is an odd case but I think I would rather have a score method and <br>
> both be aliases.<br>
I could add an _Thread_Self_id() with aliases rtems_task_self and <br>
pthread_self.<br></blockquote><div><br></div><div>It's rather trivial but I would feel better about that. Is there an inline</div><div>method like this currently? I think there have been one at various </div><div>times across RTEMS history.</div><div><br></div><div>--joel </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
-- <br>
embedded brains GmbH<br>
Herr Sebastian HUBER<br>
Dornierstr. 4<br>
82178 Puchheim<br>
Germany<br>
email: <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
phone: +49-89-18 94 741 - 16<br>
fax: +49-89-18 94 741 - 08<br>
<br>
Registergericht: Amtsgericht München<br>
Registernummer: HRB 157899<br>
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler<br>
Unsere Datenschutzerklärung finden Sie hier:<br>
<a href="https://embedded-brains.de/datenschutzerklaerung/" rel="noreferrer" target="_blank">https://embedded-brains.de/datenschutzerklaerung/</a><br>
<br>
</blockquote></div></div>