Standalone gdb server?

Has anyone encountered a standalone gdb server? That is gdb server that runs on a bare metal.

I've been looking for sources to build one. Doesn't need to be ARM, but that might help.

Maybe someone has come across a document explaining how gdb server really works?

(It might help in reading the 'standard' gdb server code.)

I understand that 'stub' means "gdb server" linked into the executable, but I'd like to have a server with which I could upload programs onto the board for debugging through the network or serial IF.

My main concern is attaching to the program to be debugged, when there is no OS (and no processes).

Parents
  • On my CubieBoard2, which is Cortex-A7, I sometimes write Cortex-M0 assembly code, in order to test it without waiting for too long.

    Cortex-M0 instructions can be run directly on the Cortex-A7; I even think the instruction set is binary compatible (upwards of course).

    What's not compatible are the exception vectors and the peripherals.

    That means: Ethernet, SPI and U(S)ART hardware would require some work.

    -But I would expect that someone, somewhere would have written header files for your Raspberry Pi board.

    (Is there a way to give credits, or something?)

    You can mark the discussion as a question, then you have two "helpful answer" coins and one "correct answer" coin.

    -And of course, you can click "Like" at the bottom of each reply that you like or find relevant - feel free to click "Like" anywhere you find something that you're interested in on the entire ARM Connected Community - for instance, when albanrampon posts some helpful information (for instance like FAQ, Guide, Tip, Governance - Content & Planned Outage).

Reply
  • On my CubieBoard2, which is Cortex-A7, I sometimes write Cortex-M0 assembly code, in order to test it without waiting for too long.

    Cortex-M0 instructions can be run directly on the Cortex-A7; I even think the instruction set is binary compatible (upwards of course).

    What's not compatible are the exception vectors and the peripherals.

    That means: Ethernet, SPI and U(S)ART hardware would require some work.

    -But I would expect that someone, somewhere would have written header files for your Raspberry Pi board.

    (Is there a way to give credits, or something?)

    You can mark the discussion as a question, then you have two "helpful answer" coins and one "correct answer" coin.

    -And of course, you can click "Like" at the bottom of each reply that you like or find relevant - feel free to click "Like" anywhere you find something that you're interested in on the entire ARM Connected Community - for instance, when albanrampon posts some helpful information (for instance like FAQ, Guide, Tip, Governance - Content & Planned Outage).

Children