This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: change to remote protocol qOffsets response handling


J.T. Conklin wrote:
> 
> The qOffsets query, which was originally added for NetWare systems, is
> used to handle cases where the image being debugged has been relocated
> by the target.  It returns the new addresses of the text, data, and
> bss sections.  But GDB used the value returned for the data section
> for the bss section as well, with the comment:
> 
>         /* This is a temporary kludge to force data and bss to use the
>            same offsets because that's what nlmconv does now.  The real
>            solution requires changes to the stub and remote.c that I don't
>            have time to do right now. */
> 
> But this makes it impossible for other systems that do relocate data
> and bss sections separately to communicate that fact to GDB.  IMO, it
> seems better for the NetWare stub to return the same value to GDB for
> data and bss offsets, rather than GDB to make that assumption for all
> targets.

Agreed, but is it polite to just change it out from under them, 
without notice, consent or discussion?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]