You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/11/23 03:58:19 UTC
[incubator-nuttx] 02/02: tools/gdbinit: fix symbol mismatch if BOARD_LATE_INITIALIZE disable
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 33044cdd10708af974aa82f55b0dca69b10b59ba
Author: chao.an <an...@xiaomi.com>
AuthorDate: Mon Nov 8 20:43:54 2021 +0800
tools/gdbinit: fix symbol mismatch if BOARD_LATE_INITIALIZE disable
Signed-off-by: chao.an <an...@xiaomi.com>
---
tools/nuttx-gdbinit | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/nuttx-gdbinit b/tools/nuttx-gdbinit
index 742b6c3..583ed94 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