command qOffsets
Format: ‘qOffsets’
Meaning: Get section offsets that the target used when relocating the downloaded image.
Reply:
Text=xxx;Data=yyy[;Bss=zzz]
Relocate the Text section by xxx from its original address. Relocate the Data section by yyy from its original address. If the object file format provides segment information (e.g. ELF ‘PT_LOAD’ program headers), GDB will relocate entire segments by the supplied offsets.
Note: while a Bss offset may be included in the response, GDB ignores this and instead applies the Data offset to the Bss section.
TextSeg=xxx[;DataSeg=yyy]
Relocate the first segment of the object file, which conventionally contains program code, to a starting address of xxx. If ‘DataSeg’ is specified, relocate the second segment, which conventionally contains modifiable data, to a starting address of yyy. GDB will report an error if the object file does not contain segment information, or does not contain at least as many segments as mentioned in the reply. Extra segments are kept at fixed offsets relative to the last relocated segment.