我有一台装有联发科技MT7621并在4.14.82上内置安装了OpenWrt的设备 我正在尝试在ssh而不是remotegdb上使用gdb并出现此问题。 当我添加断线时,没有问题,但是当我尝试使用args运行代码时,它说
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
但是它开始了。经过两个“下一个”
warning: GDB can't find the start of the function at 0x77fc1304.
GDB is unable to find the start of the function at 0x77fc1304and thus can't determine the size of that function's stack frame. This means that GDB may be unable to access that stack frame, or the frames below it.
This problem is most likely caused by an invalid program counter or stack pointer.
However, if you think GDB should simply search farther back from 0x77fc1304 for code which looks like the beginning of a function, you can increase the range of the search using the `set heuristic-fence-post' command. 0x77fc1304 in ?? ()
gcc版本5.4.0(OpenWrt GCC 5.4.0)
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/mipsel-openwrt-linux-musl/5.4.0/lto-wrapper
Target: mipsel-openwrt-linux-musl
Configured with: /home/XERONT/development/vdorst/build_dir/target mipsel_24kc_musl/gcc-5.4.0/configure --target=mipsel-openwrt-linux --host=mipsel-openwrt-linux --build=x86_64-pc-linux-gnu --program-prefix= --program-suffix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls 'CXX_FOR_TARGET=mipsel-openwrt-linux-musl-g++ -std=gnu++03' 'CXXFLAGS_FOR_TARGET=-g -O2 -D_GLIBCXX_INCLUDE_NEXT_C_HEADERS' --build=x86_64-pc-linux-gnu --host=mipsel-openwrt-linux-musl --target=mipsel-openwrt-linux-musl --enable-languages=c,c++ --with-bugurl=https://dev.openwrt.org/ --with-pkgversion='OpenWrt GCC 5.4.0' --enable-shared --disable-__cxa_atexit --with-default-libstdcxx-abi=gcc4-compatible --enable-target-optspace --with-gnu-ld --disable-nls --disable-libsanitizer --disable-libvtv --disable-libcilkrts --disable-libmudflap --disable-multilib --disable-libgomp --disable-libquadmath --disable-libssp --disable-decimal-float --disable-libstdcxx-pch --with-host-libstdcxx=-lstdc++ --prefix=/usr --libexecdir=/usr/lib --with-local-prefix=/usr --with-float=soft
Thread model: posix
GNU gdb(GDB)8.2