Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Handling GDB crashes
Handling GDB crashes [message #50949] Wed, 20 November 2002 08:19 Go to next message
Eclipse UserFriend
Originally posted by: johan.nosp.m.appeal.se

Just out of curiosity, what does Eclipse do if / when GDB crashes?

Cheers //Johan
Re: Handling GDB crashes [message #51004 is a reply to message #50949] Wed, 20 November 2002 08:27 Go to previous messageGo to next message
Eclipse UserFriend
The debug session should terminate.

Johan Walles wrote:
> Just out of curiosity, what does Eclipse do if / when GDB crashes?
>
> Cheers //Johan
>
Re: Handling GDB crashes [message #51032 is a reply to message #51004] Wed, 20 November 2002 08:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: johan.nosp.m.appeal.se

Would it be possible for you to tell gdb to generate a core dump and
send it to the GDB bug reporting system?

Cheers //Johan

Dave Inglis wrote:
> The debug session should terminate.
>
> Johan Walles wrote:
>
>> Just out of curiosity, what does Eclipse do if / when GDB crashes?
>>
>> Cheers //Johan
>>
>
Re: Handling GDB crashes [message #51176 is a reply to message #51032] Wed, 20 November 2002 11:48 Go to previous messageGo to next message
Eclipse UserFriend
The core should be generated automatically... and I think
the bug reporting can be up to the user it they choose...


Johan Walles wrote:
> Would it be possible for you to tell gdb to generate a core dump and
> send it to the GDB bug reporting system?
>
> Cheers //Johan
>
> Dave Inglis wrote:
>
>> The debug session should terminate.
>>
>> Johan Walles wrote:
>>
>>> Just out of curiosity, what does Eclipse do if / when GDB crashes?
>>>
>>> Cheers //Johan
>>>
>>
>
Re: Handling GDB crashes [message #51257 is a reply to message #51176] Thu, 21 November 2002 02:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: johan.nosp.m.appeal.se

When using the command line gdb, if gdb segfaults it says something
along the lines of "I am broken, do you wish to generate a core file?".
After doing that (or not), it asks me if I wish to continue the
debugging session.

I think Eclipse doesn't talk to GDB using the ordinary command line
client (correct?). Thus, I have no idea about GDB's behaviour when
crashing under Eclipse. Do you know *for sure* that GDB will generate a
core file automatically in this case, or does it do something similar to
what the command line client does?

Of course people can (theoretically) report bugs in GDB, but my
experience is that people are *very* reluctant to complain where it
matters when things break. Since GDB is important to the CDT, improving
feedback to the GDB developers should be of interest to the CDT community.

I'm not asking you to do any such thing (yet), but if it seems doable
(which I'm currently trying to find out), I will file an RFE for it in
the Bugzilla. I realize there are more important issues at hand, and I
won't tell you to prioritize this before anything else, but I do think
it would be a good thing to do.

Cheers //Johan

Dave Inglis wrote:
> The core should be generated automatically... and I think
> the bug reporting can be up to the user it they choose...
>
>
> Johan Walles wrote:
>
>> Would it be possible for you to tell gdb to generate a core dump and
>> send it to the GDB bug reporting system?
>>
>> Cheers //Johan
>>
>> Dave Inglis wrote:
>>
>>> The debug session should terminate.
>>>
>>> Johan Walles wrote:
>>>
>>>> Just out of curiosity, what does Eclipse do if / when GDB crashes?
>>>>
>>>> Cheers //Johan
>>>>
>>>
>>
>
Re: Handling GDB crashes [message #51309 is a reply to message #51257] Thu, 21 November 2002 10:36 Go to previous message
Eclipse UserFriend
Johan Walles wrote:
> When using the command line gdb, if gdb segfaults it says something
> along the lines of "I am broken, do you wish to generate a core file?".
> After doing that (or not), it asks me if I wish to continue the
> debugging session.
>
> I think Eclipse doesn't talk to GDB using the ordinary command line
> client (correct?). Thus, I have no idea about GDB's behaviour when
> crashing under Eclipse. Do you know *for sure* that GDB will generate a
> core file automatically in this case, or does it do something similar to
> what the command line client does?

The gdb plugin in cdt uses "mi" to talk to gdb, so in order for this to work
the responses from gdb regarding the crash would need to be in "mi" (though
I doubt gdb is in any state to do this if its crashing...).

>
> Of course people can (theoretically) report bugs in GDB, but my
> experience is that people are *very* reluctant to complain where it
> matters when things break. Since GDB is important to the CDT, improving
> feedback to the GDB developers should be of interest to the CDT community.
>
> I'm not asking you to do any such thing (yet), but if it seems doable
> (which I'm currently trying to find out), I will file an RFE for it in
> the Bugzilla. I realize there are more important issues at hand, and I
> won't tell you to prioritize this before anything else, but I do think
> it would be a good thing to do.

If gdb uses mi to notify the gdb plugin that it is dying then it
certainly is doable, we could put a UI piece in the mi.ui plugin
that listens for these types of events and notify the user asking
what it should do, ie. generate a bug report, tell gdb to generate
a dump, etc.


>
> Cheers //Johan
>
> Dave Inglis wrote:
>
>> The core should be generated automatically... and I think
>> the bug reporting can be up to the user it they choose...
>>
>>
>> Johan Walles wrote:
>>
>>> Would it be possible for you to tell gdb to generate a core dump and
>>> send it to the GDB bug reporting system?
>>>
>>> Cheers //Johan
>>>
>>> Dave Inglis wrote:
>>>
>>>> The debug session should terminate.
>>>>
>>>> Johan Walles wrote:
>>>>
>>>>> Just out of curiosity, what does Eclipse do if / when GDB crashes?
>>>>>
>>>>> Cheers //Johan
>>>>>
>>>>
>>>
>>
>
Previous Topic:Sorry
Next Topic:Legal Question
Goto Forum:
  


Current Time: Fri May 02 01:02:51 EDT 2025

Powered by FUDForum. Page generated in 0.03464 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top