Skip to content

Changes

Summary

  1. Improvements for Breakpoint Logic (#268) (details)
Commit 250881c64415e076d3b66068a3c7057ab9a3130f by noreply
Improvements for Breakpoint Logic (#268)

In this update there are update for breakpoint insert logic.

We introduce a new method getBreakpointOptions to GDBBackend class.
With this new functionality, any child class could override the
breakpoint options (including changing the type hardware/software).

This will enable a new feature for embedded systems to manage the
limited breakpoint capability more efficiently. Also, any error thrown
in the getBreakpointOptions will disable the breakpoint, thus, limited
capabilities controlled without having errors in the user interface.

There are also some refactoring performed during the operation. Perhaps,
not all the refactorings are must to have, but tried to handle the
namings of functions/methods and object structure to be semantically
coherent after the update.
The file was modified src/GDBBackend.ts (diff)
The file was modified src/GDBDebugSession.ts (diff)
The file was addedsrc/integration-tests/mocks/debugAdapters/dynamicBreakpointOptions.ts
The file was addedsrc/integration-tests/dynamicBreakpointOptions.spec.ts
The file was modified src/mi/breakpoint.ts (diff)