[Buildroot] [PATCH] Revert "package/gdb: prevent gdbserver being selected for RISC-V builds"

Vineet Gupta Vineet.Gupta1 at synopsys.com
Fri Dec 4 08:26:45 UTC 2020

Hi Thomas,

On 12/4/20 12:13 AM, Thomas Petazzoni wrote:
> Hello,
> On Thu,  3 Dec 2020 17:45:49 -0800
> Vineet Gupta <Vineet.Gupta1 at synopsys.com> wrote:
>> This reverts commit 44a9babcc67cd011e957ba9fd1cf741891957c12.
>> As of Buildroot 2020.11 (glibc build of qemu_riscv64_virt_defconfig),
>> cross-gdb for RISCV buildis fine and can also attach to a qemu
>> instance, so remove the gate on not building it.
> Is this true for all gdb versions we support ? We currently support
> 8.2, 8.3 and 9.2.

My working setup has gdb 8.3 and I just tested 8.2 works well too - I'm 
guessing 9.2 should be fine.

riscv64-softmmu/qemu-system-riscv64 -M virt -nographic -bios 
images/fw_jump.elf  -kernel images/Image  -append "root=/dev/vda ro"  
-drive file=images/rootfs.ext2,format=raw,id=hd0 -device 
virtio-blk-device,drive=hd0  -netdev user,id=net0 -device 
virtio-net-device,netdev=net0 -s -S

GNU gdb (GDB) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
(gdb) file build/linux-5.4.58/vmlinux

(gdb) b start_kernel
Breakpoint 1 at 0xffffffe00000070e

(gdb) target remote :1234
Remote debugging using :1234
warning: Target-supplied registers are not supported by the current 
0x0000000000001000 in ?? ()
(gdb) c

Breakpoint 1, 0xffffffe00000070c in start_kernel ()
(gdb) si
0xffffffe00000070e in start_kernel ()


More information about the buildroot mailing list