Re: [PATCH 3/4] Explicit fixed-width integral File I/O protocol types

Joel Brobecker
2018-05-02T16:14:29Z

> Since I am talking a lot of embedded software, I CC'd Joel Brobecker
> from AdaCore to maybe give the final direction for a v2.

I'm not really sure what is expected of me, can you clarify? If you
are thinking of my experience with baremetal targets, that's no problem.
But, although I do work with C code on baremetal targets, it tends
to be in situations where we have a C library (based on newlib, for
the most part).

Are we talking about the remote File-IO extension? I should say up front
that my knowledge of this extension was nearly null until I read the
documentation in the manual. I think Pedro is the expert on that.

If I understand correctly, you are arguing that we should be providing
fileio.h so that programs being debugged can use it? I don't understand
how this would integrate with GDB, though. If I understand correctly,
this file is used for the definition of some structures used within
the remote protocol, so the information exchanged between GDB and
GDBserver. How would you exploit that? (what this tells me is that
your patch series deserves a documentation update)

--
Joel