Mail Archives: djgpp/2000/04/10/08:45:52
On 10 Apr 2000, Hans-Bernhard Broeker wrote:
> > In any case, I don't think FSDB would crash even if it does try to access a
> > bad address.
>
> IIRC, getting proper handling of unmapped memory regions right in our
> GDB port took quite a while, and several tries, didn't it?
Yes, but only because GDB was calling read_child and write_child without
checking the address first. FSDB already checks the address before
accessing it (Morten Welinder, who wrote FSDB, is not known as someone
who forgets these kinds of safety nets ;-).
Note that the case in point didn't really require FSDB to actually access
another segment. (None of the DJGPP debuggers currently can access other
segments; GDB provides a limited way of doing that, because it supports
calling functions linked into the application.)
- Raw text -