From 33044cdd10708af974aa82f55b0dca69b10b59ba Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Mon, 8 Nov 2021 20:43:54 +0800 Subject: [PATCH] tools/gdbinit: fix symbol mismatch if BOARD_LATE_INITIALIZE disable Signed-off-by: chao.an --- tools/nuttx-gdbinit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/nuttx-gdbinit b/tools/nuttx-gdbinit index 742b6c3653..583ed94806 100644 --- a/tools/nuttx-gdbinit +++ b/tools/nuttx-gdbinit @@ -46,11 +46,11 @@ define _examine_arch gdb.execute("set $_target_arch = \"i386:x86-64\"") # NOTE: we assume that sim has sim_bringup function - python if (type(gdb.lookup_global_symbol("sim_bringup")) is gdb.Symbol \ + python if (type(gdb.lookup_static_symbol("sim_start")) is gdb.Symbol \ and _target_arch.name() == 'i386') : \ gdb.execute("set $_target_arch=\"sim:x86\"") - python if (type(gdb.lookup_global_symbol("sim_bringup")) is gdb.Symbol \ + python if (type(gdb.lookup_static_symbol("sim_start")) is gdb.Symbol \ and _target_arch.name() == 'i386:x86-64') : \ gdb.execute("set $_target_arch=\"sim:x86-64\"") end