Handling GDB crashes [message #50949] |
Wed, 20 November 2002 08:19  |
Eclipse User |
|
|
|
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 #51257 is a reply to message #51176] |
Thu, 21 November 2002 02:31   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>>>>>
>>>>
>>>
>>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03464 seconds