public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Some question about gdb unknown memory
@ 2022-05-20  6:51 joe jo
  2022-06-17 10:04 ` Nick Clifton
  0 siblings, 1 reply; 2+ messages in thread
From: joe jo @ 2022-05-20  6:51 UTC (permalink / raw)
  To: binutils

Hi


I met some questions when I used GDB to debugging my project. I'm writing this mail for some help.
At first I set up my one gdb-server and use GDB to connect it.
The problem happened when I use 'x' command to observe some unknown memory.
In my design, when gdb ask for some unknown memorys or registers, my server will return '?' or some other signal. For instance, when my gdbserver receive command 'm90000000,4' and memory after 90000002 is unknown, the server will return XXXX????. Otherwise, the server will return unknown register like 1234???000?0000 when receive 'g' command
However, when recieve ?, GDB will report errors like "Invalid hex digit 63".
I have read the source code of binutils-gdb/gdb/remote.c to find the reason of error, but I still don't know how can I notice GDB about those unknown memory.
In addition, I wonder how to use MI to sent the information about unknow memory to a eclipse-based front-end


I look forward to hearing from you soon.
Joe Jo

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Some question about gdb unknown memory
  2022-05-20  6:51 Some question about gdb unknown memory joe jo
@ 2022-06-17 10:04 ` Nick Clifton
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Clifton @ 2022-06-17 10:04 UTC (permalink / raw)
  To: joe jo, binutils

Hi Joe,

> I met some questions when I used GDB to debugging my project. I'm writing this mail for some help.

Sorry - you have reached the binutils mailing list.  For questions
about GDB you should ask on the gdb mailing list: gdb@sourceware.org

Cheers
   Nick


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-17 10:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-20  6:51 Some question about gdb unknown memory joe jo
2022-06-17 10:04 ` Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).