10.4. Tips and Tricks
- To prevent GDB from jumping around in the code when trying to
single step, i. e. when it seems as if the code is not executing
line by line, you can recompile your code with the following
additional compiler options:
-fno-schedule-insns -fno-schedule-insns2
- On some systems (like the MPC8xx or MPC8260) you can only define
one hardware breakpoint. Therefore you must delete an existing
breakpoint before you can define a new one:
(gdb) d b Delete all breakpoints? (y or n) y (gdb) b ex_preempt.c:63 Breakpoint 2 at 0xcf030080: file ex_preempt.c, line 63.
| 10.3. GDB Startup File and Utility Scripts | 1. Abstract | 10.5. Application Debugging | |||
| Prev | Home | Next | |||
