From 1adf31d140cbad1bff75ceb53fe674ada395c3ec Mon Sep 17 00:00:00 2001 From: Corwin Date: Sat, 20 Apr 2024 13:30:14 +0100 Subject: [PATCH] report when there's no information for an address --- website/agb/src/app/crash/debug.tsx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/website/agb/src/app/crash/debug.tsx b/website/agb/src/app/crash/debug.tsx index 5e036640..3765f14f 100644 --- a/website/agb/src/app/crash/debug.tsx +++ b/website/agb/src/app/crash/debug.tsx @@ -139,8 +139,19 @@ function BacktraceAddressInfo({ address: number; info: AddressInfo[] | undefined; }) { + const formattedAddress = `0x${address.toString(16).padStart(8, "0")}`; if (!info) { - return 0x{address.toString(16).padStart(8, "0")}; + return {formattedAddress}; + } + + if (info.length === 0) { + return ( + +
  • + (no info) {formattedAddress} +
  • +
    + ); } function FunctionName({ @@ -156,6 +167,8 @@ function BacktraceAddressInfo({ return functionName; } + console.log(info); + return ( {info.map((x, idx) => (