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: [RFC-v5] Fix .text section offset for windows DLL (was Calling __stdcall functions in the inferior)


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


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