Shail Shah
Shail Shah

Reputation: 1

Build GDB Source Code for QNX (QNX App Debugging alternative)

I’ve retrieved the GDB source from QNX CVS.

The error message indicates that the linker (ld) cannot find the definitions for various functions, such as i386_linux_read_description, amd64_linux_read_description, amd64_collect_fxsave, amd64_collect_xsave, amd64_supply_fxsave, amd64_supply_xsave, amd64_linux_gregset_reg_offset, amd64_supply_fxsave, and amd64_collect_fxsave.

  1. Where to find the source code of above function or is it available in some library how to link that library?
  2. IS any script availbe to use for the same? For Example : Using Standard GDB with pdebug:While a standard GDB client wouldn't directly work with pdebug, it's possible to bridge the gap using additional tools: QNX SDK: The QNX Software Development Platform (SDK) includes a wrapper script that allows executing standard GDB commands over the pdebug connection. This essentially translates GDB commands into the pdebug protocol, enabling limited use of regular GDB with pdebug.

3)Custom scripts: With advanced knowledge of both GDB and pdebug protocols, it's possible to write custom scripts or wrappers that translate commands and bridge the communication gap.

Is any customer scripts availbe for use ?

  1. We just need to avoid QNX Debugger. We just want to use open source debugger for QNX application if any other approched can u please inform?

To build GDB for QNX and debug QNX application

Upvotes: 0

Views: 211

Answers (1)

gr8lakes
gr8lakes

Reputation: 1

I would also like to have a fully native gdb for QNX (7.1 in my case).

Some things I know:

There is a project rocgdb which may support qnx and might be able to be used for x86 targets. I've not tried this and am interested in any feedback from anyone that's used this.

There is a github project rpdebug that communications with pdebug to dump memory addresses. I have not seen a full API documented for pdebug. https://github.com/mandiant/rpdebug_qnx

Upvotes: 0

Related Questions