Cross Debugging

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Maikon Araujo

    #1

    Cross Debugging

    Helo everybdy, I would like to ask if there is any way to debug ( I am
    trying MingW-gdb) a dll compiled with Mingw g++ witch is being used by
    Microsoft Excel application.
    Has anyone had problems on this subject?

    Thanks in advance.
  • jacob navia

    #2
    Re: Cross Debugging

    Maikon Araujo wrote:
    Helo everybdy, I would like to ask if there is any way to debug ( I am
    trying MingW-gdb) a dll compiled with Mingw g++ witch is being used by
    Microsoft Excel application.
    Has anyone had problems on this subject?
    >
    Thanks in advance.
    Maybe it would be possible to help you if you would
    say what the problem is...

    Try to start excel under gdb. Then try to put a
    breakpoint in your dll when it gets loaded.

    Did you attempt something like that?

    --
    jacob navia
    jacob at jacob point remcomp point fr
    logiciels/informatique
    http://www.cs.virginia.edu/~lcc-win32

    Comment

    • Maikon Araujo

      #3
      Re: Cross Debugging

      On 16 nov, 18:59, jacob navia <ja...@nospam.c omwrote:
      Maikon Araujo wrote:
      Helo everybdy, I would like to ask if there is any way to debug ( I am
      trying MingW-gdb) a dll compiled with Mingw g++ witch is being used by
      Microsoft Excel application.
      Has anyone had problems on this subject?
      >
      Thanks in advance.
      >
      Maybe it would be possible to help you if you would
      say what the problem is...
      >
      Try to start excel under gdb. Then try to put a
      breakpoint in your dll when it gets loaded.
      >
      Did you attempt something like that?
      >
      --
      jacob navia
      jacob at jacob point remcomp point fr
      logiciels/informatiquehtt p://www.cs.virginia .edu/~lcc-win32
      I am trying to do it inside eclipse CDT, and when I put the breakpoint
      I see a warning saying: "Unresolved breakpoint".

      Comment

      • jacob navia

        #4
        Re: Cross Debugging

        Maikon Araujo wrote:
        On 16 nov, 18:59, jacob navia <ja...@nospam.c omwrote:
        >Maikon Araujo wrote:
        >>Helo everybdy, I would like to ask if there is any way to debug ( I am
        >>trying MingW-gdb) a dll compiled with Mingw g++ witch is being used by
        >>Microsoft Excel application.
        >>Has anyone had problems on this subject?
        >>Thanks in advance.
        >Maybe it would be possible to help you if you would
        >say what the problem is...
        >>
        >Try to start excel under gdb. Then try to put a
        >breakpoint in your dll when it gets loaded.
        >>
        >Did you attempt something like that?
        >>
        >--
        >jacob navia
        >jacob at jacob point remcomp point fr
        >logiciels/informatiquehtt p://www.cs.virginia .edu/~lcc-win32
        >
        I am trying to do it inside eclipse CDT, and when I put the breakpoint
        I see a warning saying: "Unresolved breakpoint".
        Yes of course. Very probably your dll isn't even loaded
        at the start of excel. You should put the breakpoint when
        your dll is loaded!


        --
        jacob navia
        jacob at jacob point remcomp point fr
        logiciels/informatique
        http://www.cs.virginia.edu/~lcc-win32

        Comment

        • rosewater@mailinator.com

          #5
          Re: Cross Debugging

          Maikon Araujo wrote:
          Helo everybdy, I would like to ask if there is any way to debug ( I am
          trying MingW-gdb) a dll compiled with Mingw g++ witch is being used by
          Microsoft Excel application.
          Has anyone had problems on this subject?
          This question is completely offtopic for this group, which discusses
          C, as you'd know if you'd bothered to find out about it before dumping
          your query here. You'll get much better answers in
          microsoft.publi c.excel.

          You should ignore any advice you get from Navia - he is a known crank
          who specializes in giving out false or misleading information to
          gullible newbies.

          Comment

          • Richard Heathfield

            #6
            Re: Cross Debugging

            rosewater@maili nator.com said:
            You should ignore any advice you get from Navia - he is a known crank
            who specializes in giving out false or misleading information to
            gullible newbies.
            And he should instead take advice from someone with no track record of
            providing good advice?

            If you want anyone to pay attention to your views on group dynamics, the
            way to do that is massively to increase the percentage of your articles in
            which you dispense high quality C advice, from the current level, which
            would seem to be 0.

            --
            Richard Heathfield <http://www.cpax.org.uk >
            Email: -http://www. +rjh@
            Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
            "Usenet is a strange place" - dmr 29 July 1999

            Comment

            • Flash Gordon

              #7
              Re: Cross Debugging

              jacob navia wrote, On 16/11/07 21:59:
              Maikon Araujo wrote:
              >Helo everybdy, I would like to ask if there is any way to debug ( I am
              >trying MingW-gdb) a dll compiled with Mingw g++ witch is being used by
              >Microsoft Excel application.
              >Has anyone had problems on this subject?
              >>
              >Thanks in advance.
              >
              Maybe it would be possible to help you if you would
              say what the problem is...
              <snip>

              You failed to give the most important piece of advice, Jacob. Take it to
              a group or mailing list where there are experts on gdb and/or mingw. For
              example one of the lists of forums listed here
              http://www.mingw.org/lists.shtml is likely to have far more people who
              will know about problems like this than a group dedicated to C programming.

              Oh, and even if we did tools here this would still be the wrong group
              since g++ is a C++ compiler, and C is not the same language as C++.
              --
              Flash Gordon

              Comment

              • Maikon Araujo

                #8
                Re: Cross Debugging

                On 16 nov, 19:15, Flash Gordon <s...@flash-gordon.me.ukwro te:
                jacob navia wrote, On 16/11/07 21:59:
                >
                Maikon Araujo wrote:
                Helo everybdy, I would like to ask if there is any way to debug ( I am
                trying MingW-gdb) a dll compiled with Mingw g++ witch is being used by
                Microsoft Excel application.
                Has anyone had problems on this subject?
                >
                Thanks in advance.
                >
                Maybe it would be possible to help you if you would
                say what the problem is...
                >
                <snip>
                >
                You failed to give the most important piece of advice, Jacob. Take it to
                a group or mailing list where there are experts on gdb and/or mingw. For
                example one of the lists of forums listed herehttp://www.mingw.org/lists.shtmlis likely to have far more people who
                will know about problems like this than a group dedicated to C programming.
                >
                Oh, and even if we did tools here this would still be the wrong group
                since g++ is a C++ compiler, and C is not the same language as C++.
                --
                Flash Gordon
                Tks Flash, I will look in that list.

                Comment

                • Maikon Araujo

                  #9
                  Re: Cross Debugging

                  On 16 nov, 22:00, Maikon Araujo <maikonara...@g mail.comwrote:
                  On 16 nov, 19:15, Flash Gordon <s...@flash-gordon.me.ukwro te:
                  >
                  >
                  >
                  jacob navia wrote, On 16/11/07 21:59:
                  >
                  Maikon Araujo wrote:
                  >Helo everybdy, I would like to ask if there is any way to debug ( I am
                  >trying MingW-gdb) a dll compiled with Mingw g++ witch is being used by
                  >Microsoft Excel application.
                  >Has anyone had problems on this subject?
                  >
                  >Thanks in advance.
                  >
                  Maybe it would be possible to help you if you would
                  say what the problem is...
                  >
                  <snip>
                  >
                  You failed to give the most important piece of advice, Jacob. Take it to
                  a group or mailing list where there are experts on gdb and/or mingw. For
                  example one of the lists of forums listed herehttp://www.mingw.org/lists.shtmlisli kely to have far more people who
                  will know about problems like this than a group dedicated to C programming.
                  >
                  Oh, and even if we did tools here this would still be the wrong group
                  since g++ is a C++ compiler, and C is not the same language as C++.
                  --
                  Flash Gordon
                  >
                  Tks Flash, I will look in that list.
                  Just to finish, I found the solution, I don't know why I but I need to
                  send an interruption

                  asm("int $3;");

                  from my code. After doing that in my code gdb stops in that line. As a
                  result only after doing that I become able to add more breakpoints
                  from eclipse CDT IDE.

                  Thanks Again.

                  Comment

                  Working...