Menu

GDB: I can't debug a DLL file!!

2009-04-02
2012-09-26
  • Pablo Ardiles

    Pablo Ardiles - 2009-04-02

    The issue is I can't debug a DLL file which I'm working on. The DLL compiles and runs just FINE, but i want to watch some values into it.
    The thing is, when I set a single breakpoint into code, i get an output log in the debugging view like this:
    .
    .
    .
    breakpoints-invalid
    Breakpoint 1 at 0x6f0...b13: file MyDll.cpp, line 449
    pre-prompt
    .
    .
    .
    .
    post-prompt
    Starting program: C:\TheApp\theApp.exe
    frames-invalid
    frames-invalid
    frames-invalid
    frames-invalid
    frames-invalid
    frames-invalid
    error
    pre-prompt
    (gdb)
    prompt

    ... and nothing happens. But, if I remove the breakpoint and click on Debug->Debug, the app runs without problems, but, of course, i can't add any brakpoint at this point.
    BTW, I didn't develop theApp.exe, since MyDll.dll is going to be a plugin for that application.

    I added -g3 -O0 flags in the compiler options, but it didn't work neither...

    Is something missed? What could it be?? I'm really stuck in this.
    I hope you can help me.

    Blopa09.

     
  • laxman varada

    laxman varada - 2010-08-16

    hi,

    f I remove the breakpoint and click on Debug->Debug, the app runs without
    problems, but, of course, i can't add any brakpoint at this point. BTW, I
    didn't develop theApp.exe, since MyDll.dll is going to be a plugin for that
    application.

    regards,
    phe9oxis,
    http://www.guidebuddha.com

     

Log in to post a comment.