Skip to main content

Debugging RI's C (native) code !!

2 replies [Last post]
svikrant
Offline
Joined: 2011-02-09
Points: 0

Hi All,
Do anyone know a way how to debug the "native/mpe/platform" of ri code or the C code ?
Did any one used eclipse CDT debugger or any other debugger for the same ?
Any assistance in this respect will be appreciated.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
csweeney
Offline
Joined: 2009-04-11
Points: 0

Instructions for configuring Eclipse to debug the RI's Platform code are on the wiki:
https://community.cablelabs.com/wiki/display/OCORI/Eclipse+Platform+Conf...

greg80303
Offline
Joined: 2008-07-03
Points: 0

At one time, we had a member of the team that was using CDT and it seemed to work well. However, I can't offer much guidance since I have never used it. Personally, I use GDB in emacs debug our native code and it works very well. You can also just run GDB from the command line.

  • Make sure your shell has all the appropriate environment variables setup (OCAPROOT, PLATFORMROOT, etc.)
  • On Windows, the command would look some thing like: gdb $PLATFORMROOT/install/Win32/debug/bin/ri.exe
  • On Linux, the command would look something like: gdb $PLATFORMROOT/install/Linux/debug/bin/ri

Hopefully, that will get you started.
G