WDB Support for GNU gdb-5.0

by Till Straumann <strauman@slac.stanford.edu>
Last modified: May 2nd, 2001

Introduction

gdb is an open-source debugger which is released under the GNU general public license. gdb supports many different platforms, both as a native and as a cross debugger.

One among the supported targets is the vxWorks (tm) real-time kernel. vxWorks features a so called "remote agent", which, among other things can be used for remote debugging. gdb (running on a host computer) talks to the remote agent speaking a dedicated network protocol. Until version 5.3 of vxWorks, there were two different agents and protocols: RDB and WDB. WindRiver had written and released to the public, the RDB client for gdb which enabled the debugger to connect to vxWorks targets. However, as of version 5.4, vxWorks no longer supports RDB and the RDB server is no longer present.

This page describes a patch for gdb which provides WDB (the newer protocol) support.

WDB Support

WindRiver removed the RDB server as of vxWorks 5.4. The patch which is downloadable from this page implements support for the newer WDB protocol and target agent. Note that you need additional software for running gdb with the vxworks target:

New Features / TODO

Notes

GUI Front End

I strongly recommend the excellent GUI frontend "ddd" for use with gdb.

Object File Path

gdb searches for object files in all directories specified in the PATH environment variable. Note that the relevant variable connot be changed from within gdb. The "set environ PATH" command only affects the environment of processes created by gdb (perhaps pointless for the vxworks target) and not the environment of gdb itself!
You must set the PATH variable to point to the directories holding any vxWorks objects before starting gdb.

Installation

What you need

Building the Package

Building the RDB Server

unpack the tillRdb.tgz archive, cd to the topdir and follow the instructions in the README file.

Download