Create class to work with GDB. This class have to provide basics functionality to work with most of GDB functionality.
Class must have following:
- Open some project (set target exec, file, etc.)
- Write commands to GDB and receive respond
- Catch errors from GDB
- Start target program, step in\out\over
- Parse all local variables
- Set breakpoints
- Give type/content of given variable
- Set/Delete breakpoint
- Give list of all breakpoints
- Terminate executing target program
- Terminate executing GDB and target program
It's very convenient to use some extra classes: Breakpoint and Variable.
Breakpoint must contains type, line, function and enabled properties.
Variable must contains name, type and content. Also, Variable class must provides some functionality to parse nested structs.
Create class to work with GDB. This class have to provide basics functionality to work with most of GDB functionality.
Class must have following:
It's very convenient to use some extra classes: Breakpoint and Variable.
Breakpoint must contains type, line, function and enabled properties.
Variable must contains name, type and content. Also, Variable class must provides some functionality to parse nested structs.