By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,369 Members | 1,230 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,369 IT Pros & Developers. It's quick & easy.

Cross Debugging

P: n/a
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.
Nov 16 '07 #1
Share this Question
Share on Google+
8 Replies


P: n/a
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
Nov 16 '07 #2

P: n/a
On 16 nov, 18:59, jacob navia <ja...@nospam.comwrote:
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/informatiquehttp://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".
Nov 16 '07 #3

P: n/a
Maikon Araujo wrote:
On 16 nov, 18:59, jacob navia <ja...@nospam.comwrote:
>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/informatiquehttp://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
Nov 16 '07 #4

P: n/a
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.public.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.
Nov 16 '07 #5

P: n/a
ro*******@mailinator.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
Nov 16 '07 #6

P: n/a
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
Nov 16 '07 #7

P: n/a
On 16 nov, 19:15, Flash Gordon <s...@flash-gordon.me.ukwrote:
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.
Nov 17 '07 #8

P: n/a
On 16 nov, 22:00, Maikon Araujo <maikonara...@gmail.comwrote:
On 16 nov, 19:15, Flash Gordon <s...@flash-gordon.me.ukwrote:
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.shtmlislikely 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.
Nov 17 '07 #9

This discussion thread is closed

Replies have been disabled for this discussion.