This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH, v2] Add command to erase all flash memory regions
>>>> +The output is a list of flash regions that have been erased, sorted by
>>>> +address/size.
>>>
>>> What does it mean to be sorted by address/size?
>>>
>>
>> It is actually an oversight. No sorting is done (the regions are shown
>> in the same order as they are provided by the target).
AFAICS, target_memory_map does a qsort on address.
But it's probably better to not commit to any ordering.
Thanks,
Pedro Alves