abstracted
added to other gdb programs