List Info

Thread: Can't Debug in gdb




Can't Debug in gdb
user name
2006-11-26 05:42:30

Hi!
 
I do have a solution for you, that's the good news!;)
 
At first glance, however, you may not think so, but be patient, you'll see it's quite viable.
 
First, get a free copy of Visual Studio 2005 Express (Micro$ has declared this and the compiler free "forever").
 
Next, build your source in DB as a VC++ Project Debug.
 
Then, open the generated .vcproj file in the VS2005X IDE. Now select Debug on the menu, and step into the code. Step into/over/out of , run to cursor, or set breakpoints.
 ;
I routinely build MinGW and VS2005 projects all the time in DB, I use the Debugger in Visual Studio's IDE quite a bit, it's a very good debugger.  Also, if you're hand coding, it works better in Visual Studio because you can see what is/isn't active code and what functions (correct spelling, arguments, etc) are available.
 
For more information, go to wxMS_developers and check the links for demos/tutorials on using DB in conjunction with MinGW/Visual Studio. Or browse the tutorials/demos at wxWidgets Code Exchange. Pretty much the same things are available. However, wxMS_developers has more side information as some things just don't fit the code category (wxWidgets Code Exchange is for code), e.g. GNU documentation, which is available at wxMS_developers.
 
wxMS_developers also has the links for MinGW, Visual Studio Express, etc. (as do the tutorials).
 
HTH:
 ;
thx,
Dave S.
 
 
wxMS_developers · Development with wxWidgets on MSWindows 
 
wxMS_developers RSS feed
 
wxWidgets Code Exchange
-- On Sun, 26 Nov 2006 05:06:49 -0000 Vincent Leung wrote --
> Hi,
>
> This is my first time to use debug function in DB 3.12 but I can't
> execute the gdb and get the following messages:
>
> ----
> gdb -nw "P:swprojProject.exe" --directory="P:swproj" GNU gdb
> 5.2.1 Copyright 2002 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License,
> and you are
> welcome to change it and/or distribute copies of it under certain
> conditions. Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for
> details. This GDB was configured as "i686-pc-mingw32"...
> An internal GDB error was detected.  This may make further
> debugging unreliable.  Quit this debugging session? (y or n) n
>
> Create a core file containing the current state of GDB? (y or n) y
>
> This application has requested the Runtime to terminate it in an
> unusual way.
> Please contact the application's support team for more information.
> -----
>
> Both "MinGW Debug" and "MinGW Unicode Debug" option got the same
> result. I have also tried to debug the example program, which come
> from DB, and got the same result.
>
> Then I run the gdb manually in command line and got the following
> messages: ----- GNU gdb 5.2.1 Copyright 2002 Free Software
> Foundation, Inc.
> GDB is free software, covered by the GNU General Public License,
> and you are welcome to change it and/or distribute copies of it
> under certain conditions. Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for
> details. This GDB was configured as "i686-pc-mingw32". (gdb) file
> Project.exe Reading symbols from
> Project.exe...c:/cygmnt/prj/pkg/src/gdb/mingw32/gdb/dwa
> rf2read.c:985: gdb-internal-error: read_comp_unit_head: dwarf from
> non elf file
>
> An internal GDB error was detected.  This may make further
> debugging unreliable.  Quit this debugging session? (y or n) -----
>
> Here the following is my system configuration:
> Windows XP Home edition SP2
> MinGW 3.1
> DialogBlocks 3.12
>
> Does anyone can help me to fix this problem?
>
> Regards,
> Vincent
>
>
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
>
> Your email settings:
> Individual Email | Traditional
>
> To change settings online go to:
> required)
>
> To change settings via email:
> anthemion-devtools-digest@yahoogroups.com">mailto:anthemion-devtools-digestyahoogroups.com anthemion">mailto:anthemion-
> devtools-fullfeaturedyahoogroups.com
>
> To unsubscribe from this group, send an email to: anthemion-
> devtools-unsubscribeyahoogroups.com
>
> Your use of Yahoo! Groups is subject to:

__._,_.___
.

__,_._,___
Can't Debug in gdb
user name
2006-11-26 19:03:45

I will try the VC's debugger. It is a good suggestion for me.
Thank you, Dave.

Vincent

--- In anthemion-devtools%40yahoogroups.com">anthemion-devtoolsyahoogroups.com, Dave Silvia <dsilvia...>
wrote:
>;
> Hi!
>
> I do have a solution for you, that's the good news!;)
&gt;
> At first glance, however, you may not think so, but be patient,
you'll see it's
> quite viable.
&gt;
> First, get a free copy of Visual Studio 2005 Express (Micro$ has
declared this
> and the compiler free "forever").
>
> Next, build your source in DB as a VC++ Project Debug.
&gt;
> Then, open the generated .vcproj file in the VS2005X IDE. Now select
Debug on
> the menu, and step into the code. Step into/over/out of , run to
cursor, or set
> breakpoints.
>
> I routinely build MinGW and VS2005 projects all the time in DB, I
use the
> Debugger in Visual Studio's IDE quite a bit, it's a very good
debugger. Also,
> if you're hand coding, it works better in Visual Studio because you
can see what
> is/isn't active code and what functions (correct spelling,
arguments, etc) are
> available.
>
> For more information, go to wxMS_developers and check the links for
> demos/tutorials on using DB in conjunction with MinGW/Visual Studio.
Or browse
> the tutorials/demos at wxWidgets Code Exchange. Pretty much the same
things are
> available. However, wxMS_developers has more side information as
some things
> just don't fit the code category (wxWidgets Code Exchange is for
code), e.g. GNU
> documentation, which is available at wxMS_developers.
>;
> wxMS_developers also has the links for MinGW, Visual Studio Express,
etc. (as do
> the tutorials).
>
> HTH:
>
> thx,
> Dave S.
>
>
> wxMS_developers · Development with wxWidgets on MSWindows
> http://tech.groups.yahoo.com/group/wxMS_developers/join
>;
> wxMS_developers RSS feed
> http://rss.groups.yahoo.com/group/wxMS_developers/rss
>
> wxWidgets Code Exchange
> http://wxcodex.net/
>
> -- On Sun, 26 Nov 2006 05:06:49 -0000 Vincent Leung wrote --
> > Hi,
> >
> > This is my first time to use debug function in DB 3.12 but I can't
>; > execute the gdb and get the following messages:
> >
> > ----
> > gdb -nw "P:swprojProject.exe" --directory="P:swproj"; GNU gdb
> > 5.2.1 Copyright 2002 Free Software Foundation, Inc.
> > GDB is free software, covered by the GNU General Public License,
> > and you are
> > welcome to change it and/or distribute copies of it under certain
&gt; > conditions. Type "show copying&quot; to see the conditions.
> > There is absolutely no warranty for GDB. Type "show warranty&quot; for
> > details. This GDB was configured as "i686-pc-mingw32"...
> > An internal GDB error was detected. This may make further
&gt; > debugging unreliable. Quit this debugging session? (y or n) n
> >
> > Create a core file containing the current state of GDB? (y or n) y
> >
> > This application has requested the Runtime to terminate it in an
> > unusual way.
> > Please contact the application's support team for more information.
> > -----
>; >
> > Both "MinGW Debug"; and "MinGW Unicode Debug"; option got the same
> > result. I have also tried to debug the example program, which come
> > from DB, and got the same result.
&gt; >
> > Then I run the gdb manually in command line and got the following
> > messages: ----- GNU gdb 5.2.1 Copyright 2002 Free Software
> > Foundation, Inc.
> > GDB is free software, covered by the GNU General Public License,
> > and you are welcome to change it and/or distribute copies of it
> > under certain conditions. Type "show copying&quot; to see the conditions.
> > There is absolutely no warranty for GDB. Type "show warranty&quot; for
> > details. This GDB was configured as "i686-pc-mingw32". (gdb) file
> > Project.exe Reading symbols from
> > Project.exe...c:/cygmnt/prj/pkg/src/gdb/mingw32/gdb/dwa
> > rf2read.c:985: gdb-internal-error: read_comp_unit_head: dwarf from
> > non elf file
> >
> > An internal GDB error was detected. This may make further
&gt; > debugging unreliable. Quit this debugging session? (y or n) -----
>; >
> > Here the following is my system configuration:
> > Windows XP Home edition SP2
> > MinGW 3.1
> > DialogBlocks 3.12
> >
> > Does anyone can help me to fix this problem?
> >
> > Regards,
> > Vincent
&gt; >
> >
> > Yahoo! Groups Links
>; >
> > To visit your group on the web, go to:
> > http://groups.yahoo.com/group/anthemion-devtools/
> >
> > Your email settings:
> > Individual Email | Traditional
> >
> > To change settings online go to:
> > http://groups.yahoo.com/group/anthemion-devtools/join (Yahoo! ID
> > required)
> >
> > To change settings via email:
&gt; > mailto: anthemion-devtools-digest%40yahoogroups.com">anthemion-devtools-digestyahoogroups.com mailto:anthemion-
&gt; > devtools-fullfeatured%40yahoogroups.com">devtools-fullfeaturedyahoogroups.com
&gt; >
> > To unsubscribe from this group, send an email to: anthemion-
> > devtools-unsubscribe%40yahoogroups.com">devtools-unsubscribeyahoogroups.com
&gt; >
> > Your use of Yahoo! Groups is subject to:
> > http://docs.yahoo.com/info/terms/
>

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )