foss-for-synopsys-dwc-arc-processors / toolchain

Repository containing releases of prebuilt GNU toolchains for DesignWare ARC Processors from Synopsys (available from "releases" link below).
http://www.synopsys.com/IP/ProcessorIP/ARCProcessors/Pages/default.aspx
GNU General Public License v3.0
92 stars 48 forks source link

Add native GDB client support for ARCv3 HS5x targets #605

Open jzbydniewski opened 6 months ago

jzbydniewski commented 6 months ago

Using ARCv3, in release 2023.09 I cannot enable option "BR2_PACKAGE_GDB_DEBUGGER". In Config.in I can see this line

config BR2_PACKAGE_GDB_DEBUGGER
    bool "full debugger"
    depends on BR2_USE_WCHAR
    depends on !BR2_sh && !(BR2_arc64 || BR2_arc32)
    select BR2_PACKAGE_GMP if !BR2_GDB_VERSION_10
    select BR2_PACKAGE_NCURSES
    select BR2_PACKAGE_ZLIB

Is this really not supported for arc32 or just leftover ? For comparison, branch arc64 doesn't have this limitations

config BR2_PACKAGE_GDB_DEBUGGER
    bool "full debugger"
    depends on BR2_USE_WCHAR
    depends on !BR2_sh
    select BR2_PACKAGE_GMP if !BR2_GDB_VERSION_10 && !BR2_arc
    select BR2_PACKAGE_NCURSES
    select BR2_PACKAGE_ZLIB

If really not supported, can you please add support ?

shahab-vahedi commented 6 months ago

There's no native GDB client support in ARCv3 (yet).

kolerov commented 2 months ago

Corresponding PR:

kolerov commented 1 month ago

Hi @jzbydniewski. With the latest GDB patches not it's possible to build native GDB for HS5x targets with core dumps support. You can build Linux images using this Buildroot branch:

https://github.com/foss-for-synopsys-dwc-arc-processors/buildroot/tree/arc-2024.12

Note that now arc-2024.12 is a current development branch for the next release and arc64 branch is abandoned.