[RFC-v5] Fix .text section offset for windows DLL (was Calling __stdcall functions in the inferior)

asmwarrior asmwarrior@gmail.com
Wed Nov 28 02:44:00 GMT 2012


On 2012-11-27 22:58, Pierre Muller wrote:
>    Thanks, Tom...
>    it really seems that this is the culprit:
> I was freeing again already freed memory, which of course
> created random crashes later.
>
>    I send here rapidly a new patch version.
> I really tested the allocation problems by adding
> allocation + free'ing of each of the first parameters
> used in prim_record_minimal_symbol
> and it does seem that freeing of char array doesn't lead to any problem.
>
>    So the only trouble was related to the
> reallocation of section_data and seems to be fixed
> thanks to Tom's proposal.
>
> Yuanhui Zhang,
> could you please check if the new patch
> suppresses the crash you had when you tried the previous version?
>
> Thanks to everyone...
>
> Pierre Muller
>

I just tested this new patch, and the crash issue is gone. Thanks.

Yuanhui Zhang



More information about the Gdb-patches mailing list