This is the mail archive of the gdb-patches@sourceware.org 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]
Other format: [Raw text]

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


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