Skip to content

Commit 268abcb

Browse files
fix: bump libtcc, fix ctx->pc -> getPc()
1 parent 42dd9e5 commit 268abcb

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

deps/libtcc.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package("libtcc")
33
set_description("Tiny C Compiler")
44

55
set_urls("https://github.com/std-microblock/tinycc.git")
6-
add_versions("2026.03.30+1", "38caec5487b44da82ed9b25699e13cdab8845b77")
6+
add_versions("2026.03.30+2", "4aa71afa8e59194d7b05f5ea49ff9476401b7d20")
77

88
add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})
99

src/core/bindings/native_hw_breakpoint.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ hwBpSigtrapHandler(std::shared_ptr<chromatic::js::ExceptionContext> ctx) {
420420
for (auto &[addr, entry] : g_hwByAddress) {
421421
if (entry->slot == slot) {
422422
if (entry->onHit) {
423-
std::string ctxHex = toHexAddr(ctx->pc);
423+
std::string ctxHex = toHexAddr(ctx->getPc());
424424
try {
425425
entry->onHit(ctxHex);
426426
} catch (...) {
@@ -445,7 +445,7 @@ hwBpSigtrapHandler(std::shared_ptr<chromatic::js::ExceptionContext> ctx) {
445445
for (auto &[addr, entry] : g_hwByAddress) {
446446
if (entry->slot == slot) {
447447
if (entry->onHit) {
448-
std::string ctxHex = toHexAddr(ctx->pc);
448+
std::string ctxHex = toHexAddr(ctx->getPc());
449449
try {
450450
entry->onHit(ctxHex);
451451
} catch (...) {

0 commit comments

Comments
 (0)