This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
RE: cygwin runtime woes (was Re: [RFA] ARI fixes for gdbtk directories)
I debugged the problem a bit:
gdb_loc is call a few times
for 'main' 'MAIN___' 'MAIN__' 'cyg_user_start' 'cyg_start'
and then finally with '*' which causes the abort.
the first calls all fail with
"No symbol table loaded. Use "file" command"
even though I used ./gdb.exe as arg for run command.
It cycles through that list twice but
goes behind to finally call
gdb_force_quit a little bit later.
Last call to wrapped_call before this is
gdb_restore_fputs...
bjut this all doesn't help me much,
maybe it explains something for you...
Pierre Muller
Pascal language support maintainer for GDB
> -----Message d'origine-----
> De?: insight-owner@sourceware.org [mailto:insight-owner@sourceware.org]
> De la part de Keith Seitz
> Envoyé?: Tuesday, April 07, 2009 1:53 AM
> À?: Pierre Muller
> Cc?: insight@sourceware.org
> Objet?: Re: cygwin runtime woes (was Re: [RFA] ARI fixes for gdbtk
> directories)
>
> Pierre Muller wrote:
> > I finally managed to get one:
> > Can you do something with this??
>
> This is kind of odd...
>
> > (gdb) bt
> > #0 error (string=0x62915c "Argument required (%s).")
> > at ../../purecvs/gdb/utils.c:812
> [snip]
> > #8 0x0041318b in catch_errors (func=0x4a15b0 <wrapped_call>,
> > func_args=0x22a5b0, errstring=0x653e13 "", mask=6)
> > at ../../purecvs/gdb/exceptions.c:510
>
> Frame 8, catch_errors, should have caught any the call to frame 0.
> However, the question is, why is gdb_loc calling decode_line_1 with no
> arguments?
>
> My memory is a little fuzzy about this, but I fired up insight on my
> linux box under gdb and set a breakpoint in gdb_loc. As I recall, this
> happens at start-up to find "main", but for some reason, it appears
> that
> the argument which should contain "main" instead contains an empty
> string.
>
> Can you set a breakpoint in gdb_loc, run insight, and tell me what objc
> is? It should be 2, and objv[0]->bytes should be "gdb_loc" and
> objv[1]->bytes should be "main".
>
> Is this not the case?
>
> Keith