This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Help... GDB no longer works after updating...


Well, 

If you are having problems, and you can't debug gdb,
then try this:

Recompile/relink gdb with a -Wl,-Map -Wl,gdb.map option.
Then when you get your crash message, you should be
able to go back to the map file, and figure out which 
subroutine/code segment is causing the problem.  Then
you might be able to either desk check the code slightly,
or rerun gdb on gdb, and dissassemble the subroutine in
question.  This should allow you to get to the exact
machine instruction, which will take you back to the 
high level code involved, and then it's a matter of figuring
out which variable is whacked, or when/how the stack
is overflowing and whacking the code segment, etc, etc.


On Thu, 20 Sep 2001 13:32:42 -0700, Kris Erickson wrote:

>I just backed up my c:\cygwin directory, removed it, and
>did a complete re-install and still GDB gives me an
>"unknown target exception".  Does anyone have any ideas what
>could be causing this?  I did a quick bt in GDB after it crashes 
>and I get:
>
>(gdb) run
>Starting program: /home/administrator/temp/a.exe
>gdb: unknown target exception 0x000006d1 at 0x77e87e08
>Program received signal ?, Unknown signal.
>0x77e87e08 in _libkernel32_a_iname ()
>(gdb) bt
>#0  0x77e87e08 in _libkernel32_a_iname ()
>#1  0x0022f408 in ?? ()
>#2  0x77d5895a in _libkernel32_a_iname ()
>#3  0x751511cb in _libkernel32_a_iname ()
>#4  0x751aa114 in _libkernel32_a_iname ()
>#5  0x751a8755 in _libkernel32_a_iname ()
>#6  0x61067cec in _libkernel32_a_iname ()
>#7  0x61068256 in _libkernel32_a_iname ()
>#8  0x61003d4f in _libkernel32_a_iname ()
>#9  0x6100421d in _libkernel32_a_iname ()
>#10 0x6100425c in _libkernel32_a_iname ()
>#11 0x004010bf in cygwin_crt0 ()
>    at /cygnus/netrel/src/cygwin-1.3.3-2/winsup/cygwin/lib/cygwin_crt0.c:33
>
>Can anyone help me here.  Please...
>
>Kris
> 
>
>-----Original Message-----
>From: Larry Hall (RFK Partners, Inc) [mailto:lhall@rfk.com]
>Sent: Wednesday, September 19, 2001 7:23 PM
>To: Kris Erickson; 'cygwin@cygwin.com'
>Subject: Re: Help... GDB no longer works after updating...
>
>
>What did you update?  Just selected packages or all the packages?
>You mentioned specifically gdb, cygwin, w32api, and gdb but is that
>all that you updated?  You should take all the packages that setup 
>offers, unless you're absolutely sure that the ones you're omitting 
>aren't needed by any that you're taking.  Of course, then you're 
>pretty much on your own, since this list can't really support custom 
>installations at this point.  If you did install all the packages, well
>then I'm not sure what your issue is.  My best guess is that you have
>a package synchronization issue but if you installed everything, 
>synchronization is not the problem.  In that case, I can't offer any 
>other ideas.
>
>Larry Hall                              lhall@rfk.com
>RFK Partners, Inc.                      http://www.rfk.com
>118 Washington Street                   (508) 893-9779 - RFK Office
>Holliston, MA 01746                     (508) 893-9889 - FAX
>
>
>
>At 09:03 PM 9/19/2001, Kris Erickson wrote:
>>I had been happily (very happily) using GDB for debugging until this morning,
>>when I decided to update my cygwin files (have to keep current).  Now GDB won't
>>run anything.  I did a search on google and the cygwin lists on 
>>"unknown target exception", but everything I came up with seems fairly out of
>>date...
>>
>>Here is a simple test file I created, the error that it generates and executing
>>the show command.
>>
>>I have tried re-installing gdb, cygwin, w32api, gcc but nothing has changed.  I
>>tried going back a version in w32api and cygwin but that didn't help either...
>>I really don't want to have to blow away my whole cygwin distribution because it
>>took months to get X and all the nice utilities installed and compiled...
>>
>>Thank any of you for your help in advance,
>>
>>Kris
>>
>>cygwin session follows
>>------------------------------------
>>
>>$ cat test.c
>>#include <stdlib.h>
>>
>>int main(void) {
>>     printf("Hello World\n");
>>}
>>
>>Administrator@STORK ~/tmp
>>$ gcc -g -o test test.c
>>Administrator@STORK ~/tmp
>>$ gdb -nw test.exe
>>GNU gdb 5.0 (20010428-1)
>
>
><snip>
>
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting:         http://cygwin.com/bugs.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]