User forums > Nightly builds

The 06 January 2009 build (5382) is out.

<< < (6/16) > >>

Jenna:

--- Quote from: ollydbg on January 09, 2009, 08:58:38 am ---@jens
I test again. I'm using using svn5382, TDM GCC 4.3.2 GDB 6.8.3.
I set break points in each "case" of DllMain, but it can't work.
Only the break points in "MyFunction" works.

--- End quote ---
Works here, too, but first after adding the declaration to "dllmain.h" and adding dummy code inside the case statements. The dummy code is not necessary to set breakpoint, but the pointer (the yellow triangle) is always on the return statement and you can not see which case statement is used.

ollydbg:
Thanks, it works, setting breaking points in dummy code also works.
so, in the header file:

--- Code: ---#ifdef __cplusplus
extern "C"
    {
#endif
    void MyFunction(const LPCSTR sometext);
    BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved);
#ifdef __cplusplus
    }
#endif
#endif

--- End code ---
After add the dummy code in each case of DllMain.

--- Code: ---BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
    static int a = 0;
    switch (fdwReason)
    {
        case DLL_PROCESS_ATTACH:
            // attach to process
            // return FALSE to fail DLL load
            a++;
            break;

        case DLL_PROCESS_DETACH:
            // detach from process
            a++;
            break;

        case DLL_THREAD_ATTACH:
            // attach to thread
            a++;
            break;

        case DLL_THREAD_DETACH:
            // detach from thread
            a++;
            break;
    }
    return TRUE; // succesful
}

--- End code ---

I can set break points in the line of "a++", and it works. Thanks.

gd_on:
Two small problems concerning translations :

within src/plugins/contrib/wxSmith/wxwidgets/defitems/wxsstatusbar.cpp
Lines 146 and 184 should probably use _("Variable width") instead of _T("Variable width")

within src/src/environmentsettingsdlg.cpp
Line 106, should use : SetLabel(_("Dynamic Data Exchange (needs application restart to take effect)"))

gd_on

Loaden:

--- Quote from: jens on January 09, 2009, 07:24:24 am ---please post the output of the gcc (C- not C++-executable) you have configured in toolchain executables tab, if called with "--version" on commandline.
Please call it with absolute path as configured in the settings:
--- Code: ---<Compiler's installation directory>\bin\<C compiler> --version
--- End code ---

Make sure you have not accidently added "bin" to the "Compiler's installation directory" in the settings !!

--- End quote ---
Please get my Code::Blocks IDE from here: http://www.qpsoft.com/downloads/qpcb.exe
and test it.

[attachment deleted by admin]

ollydbg:
@Loaden
In my system (windows XP, Official nightly build svn5382, TDM GCC 4.3.2 GDB 6.8.3. )
It returned the right number "4.3.2", just like Biplab's screenshot.

Your screen shot show  that your use "gcc.exe" instead of "mingw32-gcc.exe", but by default, these values was "mingw32-gcc.exe".

I'm not sure what's the difference between "mingw32-***.exe" and "***.exe"? Thanks.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version