This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix crash when loading a core with unexpected register section size
On 01/26/2017 02:31 PM, Antoine Tremblay wrote:
>
> Pedro Alves writes:
>
>> On 01/26/2017 01:54 PM, Antoine Tremblay wrote:
>>>
>>> Pedro Alves writes:
>>>
>>>> On 01/26/2017 01:17 PM, Antoine Tremblay wrote:
>>>>> When loading a core without an executable like so:
>>>>> gdb --core core for example often the gdbarch won't contain the
>>>>> iterate_over_regset_sections method.
>>>>
>>>> Can you give an example? That'd help a lot understand the issue
>>>> better.
>>>>
>>>
>>> I can't share the core that I have that reproduced this :(
>>
>> I meant an example gdbarch. It sounded like this would
>> happen with any core with that architecture?
>
> Ho yes, see v2, I added "For example arch-arm." Like you suggested.
Eh, "arch-" in "arch-foo" was just meant to show I was talking
about an arch. I didn't mean for you to keep the "arch-" part. :-)
So basically, we could have a testcase that dumps a file, and then
loads with back with no executable loaded? Do we really not
have such a testcase yet?
Thanks,
Pedro Alves