You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, build Linux image using Buildroot, arc-2023.09 branch (don't forget to select building GDB in toolchain's configuration and then gdbserver package itself). I did it in build-hs4x-glibc subdirectory of Buildroot source tree. Then run Linux image using QEMU:
$ ./build-hs4x-glibc/host/bin/arc-buildroot-linux-gnu-gdb -q \
-ex "set sysroot build-hs4x-glibc/host/arc-buildroot-linux-gnu/sysroot" \
-ex "target remote :12345" \
overlay/root/main-hs4x-glibc
Reading symbols from overlay/root/main-hs4x-glibc...
Remote debugging using :12345
Reading symbols from build-hs4x-glibc/host/arc-buildroot-linux-gnu/sysroot/lib/ld-linux-arc.so.2...
0x2000d47c in __start () from build-hs4x-glibc/host/arc-buildroot-linux-gnu/sysroot/lib/ld-linux-arc.so.2
(gdb) b main
Breakpoint 1 at 0x40000540: file main.c, line 5.
(gdb) c
Continuing.
gdbserver output:
Process /root/main-hs4x-glibc created; pid = 96
Listening on port 12345
Remote debugging from host 10.0.2.2, port 34430
Then nothing happens. Sometimes that issue does not happen, but in most cases it does. The same issue does not happen on ARCv3 targets.
The text was updated successfully, but these errors were encountered:
A sample program:
First, build Linux image using Buildroot,
arc-2023.09
branch (don't forget to select building GDB in toolchain's configuration and thengdbserver
package itself). I did it inbuild-hs4x-glibc
subdirectory of Buildroot source tree. Then run Linux image using QEMU:Run
gdbserver
on target:Run GDB:
gdbserver
output:Then nothing happens. Sometimes that issue does not happen, but in most cases it does. The same issue does not happen on ARCv3 targets.
The text was updated successfully, but these errors were encountered: