User Tools

Site Tools


gdb_a

This is a gdb (debugger) plugin that makes it easy for users to setup break/watchpoints in which an audio file is played and execution is continued.

This extention stores all audio files in a directory called .gdba in the directory you execute gdb from. The you can record new audio files (form your microphone) and preview files in this directory via the audiopoint plugin.

code


These are the contents of the README file:

This is a gdb plugin that extends gdb to play wav files at break and watchpoints.

INSTALL - you must have wave and pyaudio python libraries installed - open gdb - run the following command: python exectile(“path/to/audiopoint.py”) - Now the audiopoint command is installed

USAGE audiopoint assumes all the wav files you want to use are in .gdba of your current working directory. Any wav files you record with audiopoint are stored here.

_adding existing wav files_ (gdb) audiopoint audio add <path to file> this will copy the wav to .gdba

_recording new wav files_ (gdb) audiopoint audio record <name.wav> Then press <enter> to start recording and <enter> to stop recording.

Your new audio file will be written to .gdba

_listing available audio files_ (gdb) audiopoint audio list

_listing to an audio file_ (gdb) audiopoint play <file.wav> audiopoint will play file.wav in .gdba

_creating a new audio breakpoint_ (gdb) audiopoint insert break <file.wav> location (ie: audipoint insert break beep.wav main, will cause beep.wav whenever main is executed, execution will continue)

_creating a new audio watchpoint_ (not really tested yet) (gdb) audiopoint insert watch <file.wav> location

_deleting or listing breakpoints_ These are otherwise normal breakpoints do you can use info break to view all your breakpoints (including audio) and del break to delete all your breakpoints (including audio) ''

gdb_a.txt · Last modified: 2013/09/29 13:28 by rebecca_shapiro