Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Union breakpoint #3

Open
klemens-morgenstern opened this issue May 7, 2018 · 0 comments
Open

Union breakpoint #3

klemens-morgenstern opened this issue May 7, 2018 · 0 comments

Comments

@klemens-morgenstern
Copy link
Owner

For smaller devices that only provide two breakpoints the current approach might be problematic, because when using the test-lib, the _exit-code breakpoint and the syscalls (for gcov) in conjunction we already need three. There should be a way to remedy that and reduce them to one. The most obvious way is to add a METAL_BREAKPOINT macro. When compiled in unified mode (or whatever I'll call that) it enters a call to metal_trigger_breakpoint which exists ONCE in the binary and which contains the breakpoint. Then the debugger calls step-return and calls the breakpoint it's in.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant