Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8896837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:10:46+00:00 2026-06-15T00:10:46+00:00

I have: A proprietary prototype ARM board (Cortex-M3 based) with eCos OS The board

  • 0

I have:

  • A proprietary prototype ARM board (Cortex-M3 based) with eCos OS
  • The board has the programmed RedBoot bootloader
  • Serial line (RS-232)
  • GDB debugger for ARM (arm-eabi-gdb)
  • Host OS is Windows/Cygwin and/or Linux (actually, doesn’t matter)

Problem: GDB debugger cannot connect to the target over the serial line.

What I want: is to sniff the packets of the GDB remote protocol in order to undestand whether the GDB stub on the target is alive and operating.

Details: RedBoot has an option to pass the target’s control to the built-in GDB stub. I know that the RedBoot is alive, I can connect to it and send it commands over the serial line. The RedBoot manual says that the switch to the GDB stub can be made by typing $ or + symbols (which are actually the prefixes of the GDB remote protocol packets). It seems to work for when I send those symbols the terminal dies. But I’m not sure if the RedBoot was compiled with the GDB stub support (don’t ask me why :-)).

Then, when I try to connect to the board with my GDB debugger I get the following picture (on Windows):

(gdb) target remote COM3
Remote debugging using COM3
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...

The port is correct, the baudrate as well. Actually the same output I get if I try to do the same with another serial port which is not connected with anything.

What I want to know is does GDB stub send back anything or not?

Intuitively I thought that probably

set verbose on

would help, but GDB manual says it has very a limited effect and my case is beyond it.

May be it is possible to compile GDB debugger with a macro which enables debug logging?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T00:10:48+00:00Added an answer on June 15, 2026 at 12:10 am

    What I want to know is does GDB stub send back anything or not?

    Do this (before target remote):

    (gdb) set debug remote 1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an old, third party, command line, proprietary program which I'm calling from
I have a proprietary command-line program that I want to call in a bash
We have a proprietary framework and now we want to integrate the authentication by
I have written a vim script for highlighting the syntax of a proprietary query
I have text files containing structured data (it is a proprietary format and not
Problem: We have to read from a proprietary binary file at work. It changes
Ok, i have a simple database engine (its a proprietary product written in vb6)
I have proprietary information (formulas etc) stored in a property list which is shipped
We have some proprietary libraries we need to interface with. These libraries are Windows
Let me begin by saying my Oracle knowledge is minimal. We have a proprietary

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.