Sign in

username:

password:



Not a member?

Search Online Books



Search tips

Free Online Books

Ads

Chapters

Chapter Contents:

Search Physical Audio Signal Processing

  

Book Index | Global Index


Would you like to be notified by email when Julius Orion Smith III publishes a new entry into his blog?

  

Debugging STK Programs in gdb

One of the nicest aspects of working with STK programs is that all source (C++) is available, facilitating debugging. Single-stepping someone else's STK program is a very good way to learn how it works. Object oriented software is often hard to read because its functionality is spread out over many member functions in many class files, some of which may be in separate libraries. Single-stepping the code in a debugger solves this problem by showing you exactly what code is being executed and in a natural order, complete with the ability to inspect variables, stack frames, and even larger data structures such as arrays, structs, and objects.

On Windows platforms, development tools such as Microsoft Visual C++ provide all the debugging support you need.

On UNIX platforms, the standard C++ debugger is gdb, and we'll look at that case below.B.1



Subsections

Order a Hardcopy of Physical Audio Signal Processing

Previous: Compiling and Debugging from Emacs
Next: An example .gdbinit file.

written by Julius Orion Smith III
Julius Smith's background is in electrical engineering (BS Rice 1975, PhD Stanford 1983). He is presently Professor of Music and Associate Professor (by courtesy) of Electrical Engineering at Stanford's Center for Computer Research in Music and Acoustics (CCRMA), teaching courses and pursuing research related to signal processing applied to music and audio systems. See http://ccrma.stanford.edu/~jos/ for details.


Comments


No comments yet for this page


Add a Comment
You need to login before you can post a comment (best way to prevent spam). ( Not a member? )