Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GCC Debugging Environment?

0 views
Skip to first unread message

Kevin Grigorenko

unread,
Oct 21, 2002, 12:13:20 PM10/21/02
to
Is there a GCC Debugging Environment. I have my exe compiled on LINUX, and
when I run it through my browser as a CGI program, I get an Internal Server
Error. I know generally where the error is, but is there any way to run the
exe through the LINUX prompt, but that would tell me what the error was.
For example, I tried to just do bash$ ./try.cgi, and it output up until the
place where the error is, however it gave me no reason why it stopped.

Thanks,
Kevin


André Pönitz

unread,
Oct 21, 2002, 12:21:52 PM10/21/02
to
Kevin Grigorenko <ke...@myplaceonline.com> wrote:
> Is there a GCC Debugging Environment.

Like gdb?

[or with frontend: ddd]

Andre'


--
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)

Kevin Grigorenko

unread,
Oct 21, 2002, 12:27:00 PM10/21/02
to
Yeah, I just found the GDB tool. Now my problem is that, when I do a 'run'
command, it says "Starting program: /home/bops/public_html/try.cgi", and
then it does absolutely nothing. It is on the next line, without (gdb) or
bash$ in front of it. It seems like it is waiting for input. I can't even
exit out of it with C^d, it just hangs. Am I missing something. I just did
a simple "bash$ gdb try.cgi"?

Also, what is ddd?

Thanks,
Kevin

"André Pönitz" <poe...@gmx.de> wrote in message
news:ap19j0$r1s$3...@narses.hrz.tu-chemnitz.de...

André Pönitz

unread,
Oct 21, 2002, 12:40:36 PM10/21/02
to
Kevin Grigorenko <ke...@myplaceonline.com> wrote:
> Now my problem is that, when I do a 'run' command, it says "Starting
> program: /home/bops/public_html/try.cgi", and then it does absolutely
> nothing. It is on the next line, without (gdb) or bash$ in front of it.
> It seems like it is waiting for input. I can't even exit out of it with
> C^d, it just hangs. Am I missing something.

You can stop the running program by pressing Ctrl-Z and examine the stack
by 'bt' or 'bt full'

Andre'

--
Top posting.
> What's the most irritating thing on Usenet?

Kevin Grigorenko

unread,
Oct 21, 2002, 12:55:52 PM10/21/02
to
Ctrl-Z doesn't work. It just sits there. I can't even kill the gdb
process.

Kevin

"André Pönitz" <poe...@gmx.de> wrote in message

news:ap1am4$r1s$5...@narses.hrz.tu-chemnitz.de...

0 new messages