Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-patch] WinDbg Fixing arbitrary bug - comment needed!!

For these type of odd behaviours, I would recommend putting in an 
appropriate comment so that future explorers will have an idea of
why it is that it is 0 and not the size of the structure =;-)

Thomas

>-----Original Message-----
>From: Hasse Hellberg [mailto:hasse@xxxxxxxxxxxxxxx]
>Sent: July 16, 2004 3:57 AM
>To: Douglas Schaefer
>Subject: [cdt-patch] WinDbg Fixing arbitrary bug - comment needed!!
>
>
>
>Hello cdt-patch-request and especially Doug Schaefer.
>
>We are actually not totally sure why this fix is needed!
>But to be able to set a breakpoint at all, this was needed.
>I mean! stopping at a break point did not work until we saw this
>and added this path. Now execution stops at breakpoint and
>we can continue exploring this plugin :):):)
>
>
>
>
>
>Index: target.cpp
>===================================================================
>RCS file: 
>/home/tools/org.eclipse.cdt-debug/org.eclipse.cdt.debug.win32.c
>ore/native/target.cpp,v
>retrieving revision 1.2
>diff -u -r1.2 target.cpp
>--- target.cpp  12 Jul 2004 13:35:54 -0000      1.2
>+++ target.cpp  16 Jul 2004 06:48:42 -0000
>@@ -235,7 +235,7 @@
> 
>        IMAGEHLP_MODULE64 modinfo;
>        ZeroMemory(&modinfo, sizeof(modinfo));
>-       modinfo.SizeOfStruct = sizeof(modinfo);
>+       modinfo.SizeOfStruct = 0;
>        
>        if (!SymGetModuleInfo64(data->process, baseOfDll, &modinfo)) {
>                reportError(L"modinfo");
>
>
>
>
>
>_______________________________________________
>cdt-patch mailing list
>cdt-patch@xxxxxxxxxxx
>http://dev.eclipse.org/mailman/listinfo/cdt-patch
>


Back to the top