Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Support for Tracepoints?: (5 Items)
   
Support for Tracepoints?  
Hello,

GDB server has a very useful feature called tracepoints, which allow to observe the values of variables at certain 
points in the program's execution without interrupting it. Does pdebug (which is the GDB Server variant for QNX as I 
understand) support this?

If not, is it possible and planned to support it?

What chances are there to take latest GDB Server from source and build it for QNX?

Thank you.

-Albrecht
Re: Support for Tracepoints?  
On 12-04-18 11:05 AM, Albrecht Uhlmann wrote:
> Hello,
>
> GDB server has a very useful feature called tracepoints, which allow to observe the values of variables at certain 
points in the program's execution without interrupting it. Does pdebug (which is the GDB Server variant for QNX as I 
understand) support this?

No, we do not have support for tracepoints yet.

>
> If not, is it possible and planned to support it?


Yes, it is possible and something we would like to do. However, there 
are no firm plans at this point.


>
> What chances are there to take latest GDB Server from source and build it for QNX?


Latest gdb server from FSF is our code. It does not have the support 
either. On my wish-TODO list.



---
Aleksandar
Re: Support for Tracepoints?  
Hello Alexandar,

thank you for this update. What is FSF? It must be a different source, since there are existing implementations of GDB 
server out there that support tracepoints.

I am not clear about the chain of events that lead from the main GDB server repository via a GDB server distribution to 
QNX pdebug. Maybe you can clarify this so that we better understand this issue. Thanks.

Regards,
Albrecht
Re: Support for Tracepoints?  
On 12-04-19 05:18 AM, Albrecht Uhlmann wrote:
> Hello Alexandar,
>
> thank you for this update. What is FSF? It must be a different source, since there are existing implementations of GDB
 server out there that support tracepoints.

FSF is Free Software Foundation. "FSF gdb" can be found here: 
http://www.gnu.org/software/gdb/

Our source can be found here: 
http://community.qnx.com/integration/viewvc/viewvc.cgi/?system=exsy1001&root=core-dev-tools

Gdbserver is specific to particular target (target being OS + cpu). 
Particular target must implement target-specific handling of different 
functionality.


>
> I am not clear about the chain of events that lead from the main GDB server repository via a GDB server distribution 
to QNX pdebug. Maybe you can clarify this so that we better understand this issue. Thanks.


FSF gdbserver target-specific code for nto was contributed to FSF a 
couple of years ago. It is very rudimentary target missing a lot of 
functionality.

pdebug is proprietary target agent developed by QNX and has similar 
function as gdbserver. Gdb communicates with pdebug using, again 
proprietary, binary protocol developed by QNX. It does not support 
tracepoints.


---
Aleksandar

Re: Support for Tracepoints?  
Thank you for this clarification. If I understand this correctly, supporting tracepoints
* inside pdebug is rather unlikely?
* porting the latest GDB server to QNX would also mean to adapt gdb.exe on the Windows host in order to talk to it and 
possibly to adapt some Plug-ins of the IDE as well?

Regards,
Albrecht