|
From: Hehl, T. <Tho...@ac...> - 2010-11-11 20:49:14
|
I finally got my tiny little DLL to build inside of eclipse. When I went to debug my test to make sure it's working, I got the following errors on the console: Reading symbols from C:\workspace\agile\agile-api-interface\Debug\test.o...done. .gdbinit: No such file or directory. auto-solib-add on Undefined command: "auto-solib-add". Try "help". I posted on the eclipse site with no response, so I'm trying here. Thanks! |
|
From: Keith M. <kei...@us...> - 2010-11-11 22:26:27
|
On Thursday 11 November 2010 20:49:06 Hehl, Thomas wrote: > Reading symbols from > C:\workspace\agile\agile-api-interface\Debug\test.o...done. > > .gdbinit: No such file or directory. Possibly an installation problem? Do you see this, if you invoke the gdb session directly from the command line, rather than from eclipse? > auto-solib-add on > > Undefined command: "auto-solib-add". Try "help". Isn't the correct form of this command "set auto-solib-add on"? (Did you try "help"? I identified that you've omitted the "set", by doing just that). $ gdb GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later ... ... This GDB was configured as "i486-linux-gnu". (gdb) auto-solib-add on Undefined command: "auto-solib-add". Try "help". (gdb) help List of classes of commands: ... Type "help all" for the list of all commands. Type "help" followed by command name for full documentation. Type "apropos word" to search for commands related to "word". Command name abbreviations are allowed if unambiguous. (gdb) apropos auto-solib-add set auto-solib-add -- Set autoloading of shared library symbols show auto-solib-add -- Show autoloading of shared library symbols (gdb) help set auto-solib-add Set autoloading of shared library symbols. If "on", symbols from all shared object libraries will be loaded automatically when the inferior begins execution, ... ... (gdb) set auto-solib-add on (gdb) -- Regards, Keith. |
|
From: Hehl, T. <Tho...@ac...> - 2010-11-12 12:34:49
|
Problem is that I'm not checked out on gdb. I have used it before many years ago when I was a full-time C developer. I remember then not using it very much. We subscribed to the philosophy that putting debug statements in was a better solution. I had found that there was a command set auto-solib-add on and figured that was the problem, but what's giving this command to gdb and why is it doing it wrong and how can I fix it? "These are the times that try men's souls." -- Thomas, uh, someone. OK, I know that this is different than facing death from an overwhelmingly superior army, but it's Friday and I'm a little silly. Right, Payne, Thomas Payne.:) -----Original Message----- From: Keith Marshall [mailto:kei...@us...] Sent: Thursday, November 11, 2010 5:26 PM To: min...@li... Subject: Re: [Mingw-users] debug error On Thursday 11 November 2010 20:49:06 Hehl, Thomas wrote: > Reading symbols from > C:\workspace\agile\agile-api-interface\Debug\test.o...done. > > .gdbinit: No such file or directory. Possibly an installation problem? Do you see this, if you invoke the gdb session directly from the command line, rather than from eclipse? > auto-solib-add on > > Undefined command: "auto-solib-add". Try "help". Isn't the correct form of this command "set auto-solib-add on"? (Did you try "help"? I identified that you've omitted the "set", by doing just that). $ gdb GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later ... ... This GDB was configured as "i486-linux-gnu". (gdb) auto-solib-add on Undefined command: "auto-solib-add". Try "help". (gdb) help List of classes of commands: ... Type "help all" for the list of all commands. Type "help" followed by command name for full documentation. Type "apropos word" to search for commands related to "word". Command name abbreviations are allowed if unambiguous. (gdb) apropos auto-solib-add set auto-solib-add -- Set autoloading of shared library symbols show auto-solib-add -- Show autoloading of shared library symbols (gdb) help set auto-solib-add Set autoloading of shared library symbols. If "on", symbols from all shared object libraries will be loaded automatically when the inferior begins execution, ... ... (gdb) set auto-solib-add on (gdb) -- Regards, Keith. ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ MinGW-users mailing list Min...@li... This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists. We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated. _______________________________________________ You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
|
From: Hehl, T. <Tho...@ac...> - 2010-11-12 12:56:58
|
I found a gdb tutorial, but when I started going through it with the .o file that was created by eclipse, I got error 193. This appears to be because I'm trying to run gdb with something that's not an executable. Since my project builds a dll, I'm not exactly sure what to do next. :( -----Original Message----- From: Hehl, Thomas [mailto:Tho...@ac...] Sent: Friday, November 12, 2010 7:35 AM To: MinGW Users List Subject: Re: [Mingw-users] debug error Problem is that I'm not checked out on gdb. I have used it before many years ago when I was a full-time C developer. I remember then not using it very much. We subscribed to the philosophy that putting debug statements in was a better solution. I had found that there was a command set auto-solib-add on and figured that was the problem, but what's giving this command to gdb and why is it doing it wrong and how can I fix it? "These are the times that try men's souls." -- Thomas, uh, someone. OK, I know that this is different than facing death from an overwhelmingly superior army, but it's Friday and I'm a little silly. Right, Payne, Thomas Payne.:) -----Original Message----- From: Keith Marshall [mailto:kei...@us...] Sent: Thursday, November 11, 2010 5:26 PM To: min...@li... Subject: Re: [Mingw-users] debug error On Thursday 11 November 2010 20:49:06 Hehl, Thomas wrote: > Reading symbols from > C:\workspace\agile\agile-api-interface\Debug\test.o...done. > > .gdbinit: No such file or directory. Possibly an installation problem? Do you see this, if you invoke the gdb session directly from the command line, rather than from eclipse? > auto-solib-add on > > Undefined command: "auto-solib-add". Try "help". Isn't the correct form of this command "set auto-solib-add on"? (Did you try "help"? I identified that you've omitted the "set", by doing just that). $ gdb GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later ... ... This GDB was configured as "i486-linux-gnu". (gdb) auto-solib-add on Undefined command: "auto-solib-add". Try "help". (gdb) help List of classes of commands: ... Type "help all" for the list of all commands. Type "help" followed by command name for full documentation. Type "apropos word" to search for commands related to "word". Command name abbreviations are allowed if unambiguous. (gdb) apropos auto-solib-add set auto-solib-add -- Set autoloading of shared library symbols show auto-solib-add -- Show autoloading of shared library symbols (gdb) help set auto-solib-add Set autoloading of shared library symbols. If "on", symbols from all shared object libraries will be loaded automatically when the inferior begins execution, ... ... (gdb) set auto-solib-add on (gdb) -- Regards, Keith. ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ MinGW-users mailing list Min...@li... This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists. We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated. _______________________________________________ You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ MinGW-users mailing list Min...@li... This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists. We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated. _______________________________________________ You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
|
From: Keith M. <kei...@us...> - 2010-11-12 13:44:36
|
On 12 November 2010 12:56, Hehl, Thomas <Tho...@ac...> wrote: > I found a gdb tutorial, but when I started going through it with the > .o file that was created by eclipse, I got error 193. This appears to > be because I'm trying to run gdb with something that's not an > executable. > > Since my project builds a dll, I'm not exactly sure what to do next. Same as you would to test any other form of library code; write a driver program, which WILL become an executable, linked with your library, and designed to test the library functionality. Run that under gdb, and you can step into the library code. -- Regards, Keith. |
|
From: Hehl, T. <Tho...@ac...> - 2010-11-12 14:38:38
|
I have written the driver program. Can I compile the driver to an exe in the same project as the one building my dll or do I need to have a separate project? -----Original Message----- From: Keith Marshall [mailto:kei...@us...] Sent: Friday, November 12, 2010 8:44 AM To: MinGW Users List Subject: Re: [Mingw-users] debug error On 12 November 2010 12:56, Hehl, Thomas <Tho...@ac...> wrote: > I found a gdb tutorial, but when I started going through it with the > .o file that was created by eclipse, I got error 193. This appears to > be because I'm trying to run gdb with something that's not an > executable. > > Since my project builds a dll, I'm not exactly sure what to do next. Same as you would to test any other form of library code; write a driver program, which WILL become an executable, linked with your library, and designed to test the library functionality. Run that under gdb, and you can step into the library code. -- Regards, Keith. ------------------------------------------------------------------------ ------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ MinGW-users mailing list Min...@li... This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists. We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated. _______________________________________________ You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
|
From: Keith M. <kei...@us...> - 2010-11-12 15:02:59
|
On 12 November 2010 14:38, Hehl, Thomas <Tho...@ac...> wrote: [You are still top-posting. If you continue to do so, I will quickly lose interest in any continued dialogue]. > I have written the driver program. Can I compile the driver to an exe in > the same project as the one building my dll or do I need to have a > separate project? Your choice. I would do it as part of the same project, and formalise it as part of the test suite. However, I don't use an IDE, so "project" may have a different connotation for me. -- Regards, Keith. |
|
From: Hehl, T. <Tho...@ac...> - 2010-11-12 15:03:33
|
I have set up the new project in my workspace. I cannot seem to find where I need to point this new project to the other project's dll? Sigh...I thought IDEs were supposed to be helpful. I searched the docs and it doesn't tell me how to do this. C'mon!!! -----Original Message----- From: Hehl, Thomas [mailto:Tho...@ac...] Sent: Friday, November 12, 2010 9:38 AM To: MinGW Users List Subject: Re: [Mingw-users] debug error I have written the driver program. Can I compile the driver to an exe in the same project as the one building my dll or do I need to have a separate project? -----Original Message----- From: Keith Marshall [mailto:kei...@us...] Sent: Friday, November 12, 2010 8:44 AM To: MinGW Users List Subject: Re: [Mingw-users] debug error On 12 November 2010 12:56, Hehl, Thomas <Tho...@ac...> wrote: > I found a gdb tutorial, but when I started going through it with the > .o file that was created by eclipse, I got error 193. This appears to > be because I'm trying to run gdb with something that's not an > executable. > > Since my project builds a dll, I'm not exactly sure what to do next. Same as you would to test any other form of library code; write a driver program, which WILL become an executable, linked with your library, and designed to test the library functionality. Run that under gdb, and you can step into the library code. -- Regards, Keith. ------------------------------------------------------------------------ ------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ MinGW-users mailing list Min...@li... This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists. We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated. _______________________________________________ You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users ------------------------------------------------------------------------ ------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ MinGW-users mailing list Min...@li... This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists. We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated. _______________________________________________ You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
|
From: Keith M. <kei...@us...> - 2010-11-12 13:44:13
|
On 12 November 2010 12:34, Hehl, Thomas <Tho...@ac...> wrote: [Please don't top-post. It makes it too difficult to preserve context] > Problem is that I'm not checked out on gdb. I have used it before many > years ago when I was a full-time C developer. I remember then not > using it very much. We subscribed to the philosophy that putting debug > statements in was a better solution. That's still a viable option; indeed, it's one I use predominantly. > I had found that there was a command set auto-solib-add on and figured > that was the problem, but what's giving this command to gdb and why is > it doing it wrong and how can I fix it? See. This is a perfect example of your IDE getting in your way[*]; it's doing something behind your back, which you don't understand; it's doing it wrong, and you don't know how to fix it. I don't know either; you'll have to ask the IDE gurus. [*] See previous discussion with Peter Rockett, in thread related primarily to CodeBlocks, but applicable to IDEs in general. -- Regards, Keith. |