Home » Language IDEs » C / C++ IDE (CDT) » gdb can't read execution path on Windows
gdb can't read execution path on Windows [message #71606] |
Tue, 27 May 2003 16:27 |
Eclipse User |
|
|
|
Originally posted by: david.pickens.arc.com
Forgive me if this problem has been addressed elsewhere, but I've spent
considerable time searching the news group and bugzilla and found nothing.
I installed the latest CDT under Eclipse 2.1 on Windows XP Professional,
with MinGW and gdb 5.2.1. I can build the "Hello, World" program okay, but
when I attempt to run the debugger, it immediately aborts with the pop up
dialog:
The execution of program is suspended because of error.
Error creating process C:Documents and SettingsdavidpMy
DocumentsworkspaceHelloWorldhello.exe, (error 193)
As you can see, backslashes are not getting escaped properly. Is there a
preference, or something, that needs to be set somewhere?
Thanks
-- David
|
|
|
Re: gdb can't read execution path on Windows [message #71662 is a reply to message #71606] |
Tue, 27 May 2003 16:36 |
Eclipse User |
|
|
|
Originally posted by: mikhailk.qnx.com
Check if the "Debugger" option on the "Debugger" propety page of launch
configuration is set to "Cygwin GDB Debugger".
"David Pickens" <david.pickens@arc.com> wrote in message
news:bb03lj$8cc$1@rogue.oti.com...
> Forgive me if this problem has been addressed elsewhere, but I've spent
> considerable time searching the news group and bugzilla and found nothing.
>
> I installed the latest CDT under Eclipse 2.1 on Windows XP Professional,
> with MinGW and gdb 5.2.1. I can build the "Hello, World" program okay, but
> when I attempt to run the debugger, it immediately aborts with the pop up
> dialog:
>
> The execution of program is suspended because of error.
> Error creating process C:Documents and SettingsdavidpMy
> DocumentsworkspaceHelloWorldhello.exe, (error 193)
>
> As you can see, backslashes are not getting escaped properly. Is there a
> preference, or something, that needs to be set somewhere?
>
> Thanks
> -- David
>
>
|
|
|
Re: gdb can't read execution path on Windows [message #71699 is a reply to message #71662] |
Tue, 27 May 2003 17:02 |
Eclipse User |
|
|
|
Originally posted by: david.pickens.arc.com
Mikhail,
Yes, the Debugger is set to "Cygwin GDB Debugger". The gdb path
is "C:\MinGW\bin\gdb.exe".
--David
"Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
news:bb049a$8r8$1@rogue.oti.com...
> Check if the "Debugger" option on the "Debugger" propety page of launch
> configuration is set to "Cygwin GDB Debugger".
>
> "David Pickens" <david.pickens@arc.com> wrote in message
> news:bb03lj$8cc$1@rogue.oti.com...
> > Forgive me if this problem has been addressed elsewhere, but I've spent
> > considerable time searching the news group and bugzilla and found
nothing.
> >
> > I installed the latest CDT under Eclipse 2.1 on Windows XP Professional,
> > with MinGW and gdb 5.2.1. I can build the "Hello, World" program okay,
but
> > when I attempt to run the debugger, it immediately aborts with the pop
up
> > dialog:
> >
> > The execution of program is suspended because of error.
> > Error creating process C:Documents and SettingsdavidpMy
> > DocumentsworkspaceHelloWorldhello.exe, (error 193)
> >
> > As you can see, backslashes are not getting escaped properly. Is there a
> > preference, or something, that needs to be set somewhere?
> >
> > Thanks
> > -- David
> >
> >
>
>
|
|
|
Re: gdb can't read execution path on Windows [message #71737 is a reply to message #71699] |
Tue, 27 May 2003 18:11 |
Eclipse User |
|
|
|
Originally posted by: mikhailk.qnx.com
I don't think that this happens because of backslashes. This message is
returned by gdb. Try to debug it from command line.
"David Pickens" <david.pickens@arc.com> wrote in message
news:bb05rp$a9m$1@rogue.oti.com...
> Mikhail,
> Yes, the Debugger is set to "Cygwin GDB Debugger". The gdb path
> is "C:\MinGW\bin\gdb.exe".
> --David
>
> "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> news:bb049a$8r8$1@rogue.oti.com...
> > Check if the "Debugger" option on the "Debugger" propety page of launch
> > configuration is set to "Cygwin GDB Debugger".
> >
> > "David Pickens" <david.pickens@arc.com> wrote in message
> > news:bb03lj$8cc$1@rogue.oti.com...
> > > Forgive me if this problem has been addressed elsewhere, but I've
spent
> > > considerable time searching the news group and bugzilla and found
> nothing.
> > >
> > > I installed the latest CDT under Eclipse 2.1 on Windows XP
Professional,
> > > with MinGW and gdb 5.2.1. I can build the "Hello, World" program okay,
> but
> > > when I attempt to run the debugger, it immediately aborts with the pop
> up
> > > dialog:
> > >
> > > The execution of program is suspended because of error.
> > > Error creating process C:Documents and SettingsdavidpMy
> > > DocumentsworkspaceHelloWorldhello.exe, (error 193)
> > >
> > > As you can see, backslashes are not getting escaped properly. Is there
a
> > > preference, or something, that needs to be set somewhere?
> > >
> > > Thanks
> > > -- David
> > >
> > >
> >
> >
>
>
|
|
|
Re: gdb can't read execution path on Windows [message #71775 is a reply to message #71737] |
Wed, 28 May 2003 00:41 |
Eclipse User |
|
|
|
Originally posted by: david.pickens.arc.com
I invoked gdb from the command line on my executable, and it
issues the error 193 and then immediately hangs.
So, the problem is indeed gdb related.
Do you happen to know what causes error 193? Is it something to
do with an unrecognized executable format, or something like that?
The executable that I am debugging is simply the "hello,world" example
from the tutorial. It was compiled and
linked with "g++" version 3.2.3, which comes with MinGW. It runs
okay by itself, so, it should be quite acceptable to gdb.
--David
"Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
news:bb09s2$dl1$1@rogue.oti.com...
> I don't think that this happens because of backslashes. This message is
> returned by gdb. Try to debug it from command line.
>
> "David Pickens" <david.pickens@arc.com> wrote in message
> news:bb05rp$a9m$1@rogue.oti.com...
> > Mikhail,
> > Yes, the Debugger is set to "Cygwin GDB Debugger". The gdb path
> > is "C:\MinGW\bin\gdb.exe".
> > --David
> >
> > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > news:bb049a$8r8$1@rogue.oti.com...
> > > Check if the "Debugger" option on the "Debugger" propety page of
launch
> > > configuration is set to "Cygwin GDB Debugger".
> > >
> > > "David Pickens" <david.pickens@arc.com> wrote in message
> > > news:bb03lj$8cc$1@rogue.oti.com...
> > > > Forgive me if this problem has been addressed elsewhere, but I've
> spent
> > > > considerable time searching the news group and bugzilla and found
> > nothing.
> > > >
> > > > I installed the latest CDT under Eclipse 2.1 on Windows XP
> Professional,
> > > > with MinGW and gdb 5.2.1. I can build the "Hello, World" program
okay,
> > but
> > > > when I attempt to run the debugger, it immediately aborts with the
pop
> > up
> > > > dialog:
> > > >
> > > > The execution of program is suspended because of error.
> > > > Error creating process C:Documents and SettingsdavidpMy
> > > > DocumentsworkspaceHelloWorldhello.exe, (error 193)
> > > >
> > > > As you can see, backslashes are not getting escaped properly. Is
there
> a
> > > > preference, or something, that needs to be set somewhere?
> > > >
> > > > Thanks
> > > > -- David
> > > >
> > > >
> > >
> > >
> >
> >
>
>
|
|
|
Re: gdb can't read execution path on Windows [message #72001 is a reply to message #71775] |
Wed, 28 May 2003 18:03 |
Eclipse User |
|
|
|
Originally posted by: david.pickens.arc.com
I discovered that the problem only occurs if the executable is within the
"C:\documents and settings" folder, or sub-folder there of. gdb works fine
if the target executable is moved elsewhere.
I found in the gdb source where this error is emitted. It is the error code
from calling the Windows "CreateProcess" API function. gdb first transforms
the path by calling "cygwin_conv_to_win32_path". Evidently, the
path is somehow corrupted. The error message prints out the path prior
to being transformed. I don't have any means to debug gdb itself, so
I am not able see what exactly is being passed to CreateProcess to
cause this error.
-David
"David Pickens" <david.pickens@arc.com> wrote in message
news:bb10k5$ts4$1@rogue.oti.com...
> I invoked gdb from the command line on my executable, and it
> issues the error 193 and then immediately hangs.
> So, the problem is indeed gdb related.
>
> Do you happen to know what causes error 193? Is it something to
> do with an unrecognized executable format, or something like that?
>
> The executable that I am debugging is simply the "hello,world" example
> from the tutorial. It was compiled and
> linked with "g++" version 3.2.3, which comes with MinGW. It runs
> okay by itself, so, it should be quite acceptable to gdb.
>
>
> --David
>
> "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> news:bb09s2$dl1$1@rogue.oti.com...
> > I don't think that this happens because of backslashes. This message is
> > returned by gdb. Try to debug it from command line.
> >
> > "David Pickens" <david.pickens@arc.com> wrote in message
> > news:bb05rp$a9m$1@rogue.oti.com...
> > > Mikhail,
> > > Yes, the Debugger is set to "Cygwin GDB Debugger". The gdb path
> > > is "C:\MinGW\bin\gdb.exe".
> > > --David
> > >
> > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > > news:bb049a$8r8$1@rogue.oti.com...
> > > > Check if the "Debugger" option on the "Debugger" propety page of
> launch
> > > > configuration is set to "Cygwin GDB Debugger".
> > > >
> > > > "David Pickens" <david.pickens@arc.com> wrote in message
> > > > news:bb03lj$8cc$1@rogue.oti.com...
> > > > > Forgive me if this problem has been addressed elsewhere, but I've
> > spent
> > > > > considerable time searching the news group and bugzilla and found
> > > nothing.
> > > > >
> > > > > I installed the latest CDT under Eclipse 2.1 on Windows XP
> > Professional,
> > > > > with MinGW and gdb 5.2.1. I can build the "Hello, World" program
> okay,
> > > but
> > > > > when I attempt to run the debugger, it immediately aborts with the
> pop
> > > up
> > > > > dialog:
> > > > >
> > > > > The execution of program is suspended because of error.
> > > > > Error creating process C:Documents and SettingsdavidpMy
> > > > > DocumentsworkspaceHelloWorldhello.exe, (error 193)
> > > > >
> > > > > As you can see, backslashes are not getting escaped properly. Is
> there
> > a
> > > > > preference, or something, that needs to be set somewhere?
> > > > >
> > > > > Thanks
> > > > > -- David
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
|
|
|
Re: gdb can't read execution path on Windows [message #72020 is a reply to message #72001] |
Wed, 28 May 2003 18:06 |
Eclipse User |
|
|
|
Originally posted by: jvaldez.mail.com
Most like the problem is due to the spaces in the path name.
David Pickens wrote:
> I discovered that the problem only occurs if the executable is within the
> "C:\documents and settings" folder, or sub-folder there of. gdb works fine
> if the target executable is moved elsewhere.
>
> I found in the gdb source where this error is emitted. It is the error code
> from calling the Windows "CreateProcess" API function. gdb first transforms
> the path by calling "cygwin_conv_to_win32_path". Evidently, the
> path is somehow corrupted. The error message prints out the path prior
> to being transformed. I don't have any means to debug gdb itself, so
> I am not able see what exactly is being passed to CreateProcess to
> cause this error.
>
> -David
>
>
> "David Pickens" <david.pickens@arc.com> wrote in message
> news:bb10k5$ts4$1@rogue.oti.com...
>
>>I invoked gdb from the command line on my executable, and it
>>issues the error 193 and then immediately hangs.
>>So, the problem is indeed gdb related.
>>
>>Do you happen to know what causes error 193? Is it something to
>>do with an unrecognized executable format, or something like that?
>>
>>The executable that I am debugging is simply the "hello,world" example
>>from the tutorial. It was compiled and
>>linked with "g++" version 3.2.3, which comes with MinGW. It runs
>>okay by itself, so, it should be quite acceptable to gdb.
>>
>>
>>--David
>>
>>"Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
>>news:bb09s2$dl1$1@rogue.oti.com...
>>
>>>I don't think that this happens because of backslashes. This message is
>>>returned by gdb. Try to debug it from command line.
>>>
>>>"David Pickens" <david.pickens@arc.com> wrote in message
>>>news:bb05rp$a9m$1@rogue.oti.com...
>>>
>>>>Mikhail,
>>>>Yes, the Debugger is set to "Cygwin GDB Debugger". The gdb path
>>>>is "C:\MinGW\bin\gdb.exe".
>>>>--David
>>>>
>>>>"Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
>>>>news:bb049a$8r8$1@rogue.oti.com...
>>>>
>>>>>Check if the "Debugger" option on the "Debugger" propety page of
>>>>
>>launch
>>
>>>>>configuration is set to "Cygwin GDB Debugger".
>>>>>
>>>>>"David Pickens" <david.pickens@arc.com> wrote in message
>>>>>news:bb03lj$8cc$1@rogue.oti.com...
>>>>>
>>>>>>Forgive me if this problem has been addressed elsewhere, but I've
>>>>>
>>>spent
>>>
>>>>>>considerable time searching the news group and bugzilla and found
>>>>>
>>>>nothing.
>>>>
>>>>>>I installed the latest CDT under Eclipse 2.1 on Windows XP
>>>>>
>>>Professional,
>>>
>>>>>>with MinGW and gdb 5.2.1. I can build the "Hello, World" program
>>>>>
>>okay,
>>
>>>>but
>>>>
>>>>>>when I attempt to run the debugger, it immediately aborts with the
>>>>>
>>pop
>>
>>>>up
>>>>
>>>>>>dialog:
>>>>>>
>>>>>>The execution of program is suspended because of error.
>>>>>> Error creating process C:Documents and SettingsdavidpMy
>>>>>>DocumentsworkspaceHelloWorldhello.exe, (error 193)
>>>>>>
>>>>>>As you can see, backslashes are not getting escaped properly. Is
>>>>>
>>there
>>
>>>a
>>>
>>>>>>preference, or something, that needs to be set somewhere?
>>>>>>
>>>>>>Thanks
>>>>>> -- David
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>
>
|
|
|
Re: gdb can't read execution path on Windows [message #72059 is a reply to message #72020] |
Wed, 28 May 2003 18:17 |
Eclipse User |
|
|
|
Originally posted by: david.pickens.arc.com
No, I checked that already. Spaces don't seem to be a problem if the
target executable is in another directory.
-David
"exquisitus" <jvaldez@mail.com> wrote in message
news:3ED4FA8F.2070203@mail.com...
> Most like the problem is due to the spaces in the path name.
>
> David Pickens wrote:
> > I discovered that the problem only occurs if the executable is within
the
> > "C:\documents and settings" folder, or sub-folder there of. gdb works
fine
> > if the target executable is moved elsewhere.
> >
> > I found in the gdb source where this error is emitted. It is the error
code
> > from calling the Windows "CreateProcess" API function. gdb first
transforms
> > the path by calling "cygwin_conv_to_win32_path". Evidently, the
> > path is somehow corrupted. The error message prints out the path prior
> > to being transformed. I don't have any means to debug gdb itself, so
> > I am not able see what exactly is being passed to CreateProcess to
> > cause this error.
> >
> > -David
> >
> >
> > "David Pickens" <david.pickens@arc.com> wrote in message
> > news:bb10k5$ts4$1@rogue.oti.com...
> >
> >>I invoked gdb from the command line on my executable, and it
> >>issues the error 193 and then immediately hangs.
> >>So, the problem is indeed gdb related.
> >>
> >>Do you happen to know what causes error 193? Is it something to
> >>do with an unrecognized executable format, or something like that?
> >>
> >>The executable that I am debugging is simply the "hello,world" example
> >>from the tutorial. It was compiled and
> >>linked with "g++" version 3.2.3, which comes with MinGW. It runs
> >>okay by itself, so, it should be quite acceptable to gdb.
> >>
> >>
> >>--David
> >>
> >>"Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> >>news:bb09s2$dl1$1@rogue.oti.com...
> >>
> >>>I don't think that this happens because of backslashes. This message is
> >>>returned by gdb. Try to debug it from command line.
> >>>
> >>>"David Pickens" <david.pickens@arc.com> wrote in message
> >>>news:bb05rp$a9m$1@rogue.oti.com...
> >>>
> >>>>Mikhail,
> >>>>Yes, the Debugger is set to "Cygwin GDB Debugger". The gdb path
> >>>>is "C:\MinGW\bin\gdb.exe".
> >>>>--David
> >>>>
> >>>>"Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> >>>>news:bb049a$8r8$1@rogue.oti.com...
> >>>>
> >>>>>Check if the "Debugger" option on the "Debugger" propety page of
> >>>>
> >>launch
> >>
> >>>>>configuration is set to "Cygwin GDB Debugger".
> >>>>>
> >>>>>"David Pickens" <david.pickens@arc.com> wrote in message
> >>>>>news:bb03lj$8cc$1@rogue.oti.com...
> >>>>>
> >>>>>>Forgive me if this problem has been addressed elsewhere, but I've
> >>>>>
> >>>spent
> >>>
> >>>>>>considerable time searching the news group and bugzilla and found
> >>>>>
> >>>>nothing.
> >>>>
> >>>>>>I installed the latest CDT under Eclipse 2.1 on Windows XP
> >>>>>
> >>>Professional,
> >>>
> >>>>>>with MinGW and gdb 5.2.1. I can build the "Hello, World" program
> >>>>>
> >>okay,
> >>
> >>>>but
> >>>>
> >>>>>>when I attempt to run the debugger, it immediately aborts with the
> >>>>>
> >>pop
> >>
> >>>>up
> >>>>
> >>>>>>dialog:
> >>>>>>
> >>>>>>The execution of program is suspended because of error.
> >>>>>> Error creating process C:Documents and SettingsdavidpMy
> >>>>>>DocumentsworkspaceHelloWorldhello.exe, (error 193)
> >>>>>>
> >>>>>>As you can see, backslashes are not getting escaped properly. Is
> >>>>>
> >>there
> >>
> >>>a
> >>>
> >>>>>>preference, or something, that needs to be set somewhere?
> >>>>>>
> >>>>>>Thanks
> >>>>>> -- David
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>
> >>>
> >>
> >
> >
>
|
|
|
Goto Forum:
Current Time: Sat Nov 09 03:02:16 GMT 2024
Powered by FUDForum. Page generated in 0.03143 seconds
|