mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 03:57:15 +02:00
LibDebug+Everywhere: Avoid void* -> FlatPtr -> void* dance
And limit the `void*` to the functions that interface the system (i.e. ptrace wrappers). This generally makes the code less riddled with casts.
This commit is contained in:
committed by
Linus Groh
parent
b27b22a68c
commit
6d64b13a1b
Notes:
sideshowbarker
2024-07-17 20:03:58 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/6d64b13a1ba Pull-request: https://github.com/SerenityOS/serenity/pull/12153
@@ -113,7 +113,7 @@ RefPtr<GUI::Menu> DebugInfoWidget::get_context_menu_for_variable(const GUI::Mode
|
||||
}));
|
||||
}
|
||||
|
||||
auto variable_address = (FlatPtr*)variable->location_data.address;
|
||||
auto variable_address = variable->location_data.address;
|
||||
if (Debugger::the().session()->watchpoint_exists(variable_address)) {
|
||||
context_menu->add_action(GUI::Action::create("Remove watchpoint", [variable_address](auto&) {
|
||||
Debugger::the().session()->remove_watchpoint(variable_address);
|
||||
|
||||
Reference in New Issue
Block a user