[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-debug-dev] Some questions about Debugger
|
>
> Hi all!
Yellow,
>
> Let me ask some questions about CDT Debugger. :)=20
>
> 1. What do you think about assignment some hot keys to some action, =
> for example, for breakpoint setting or for "Run to line" action? I think =
> the debugger process will become more comfortable with hot keys
>
Yes, you should log and enhancement PR against it, to get things going.
It will not get any progress if there is no PR on it.
> 2. May be I have an archaic version but it seemed to me that while =
> debugging, expressions, which user can watch in Expression view, don't =
> update. Will you plan to make this feature?
If you mean "update live", no. The only time, we can get the values
is when the debugger is suspended. The Expression/Variable views should
update the variables.
However we restricted the updates only to the last current selected frame, it
turned out that when debugging for example a very deep recursive call or
any time there are lots of stackframes, where each stackframe would have a lot
of variables, it was taking a **lot** of time to do the update, for each
variable.
It maps to GDB/MI call:
-var-update var1
-var-update var2
-var-update var3
...
-var-update varn
We could not use "-var-update *" seems to crash randomly certain version
of gdb.
>
> 3. As I understood Gdb doesn't let to work in Suspend/Resume mode. I =
> mean mode in which if I launch a program I can suspend its work and =
> program will stop somewhere and will be waiting for subsequent work or =
> terminate command. As I have seen the button "Suspend" is always =
> disabled. Do you have some plans or thoughts about it?
>
It should be enable for Windows and GNU/Linux. It also depends on
what is the selection of the ILaunch view. The selection has to be on
GDB C/C++ not the thread not the stackframe.
If you still see this please fill a PR.
> 4. I've notised strange behavior when debugging infifnite-cycle =
> program. I'll try to describe the problem. When I start debugging =
> process there appears new tree item in Debug View. It consists of 1 =
> upper node named like current "Launch Configuration" and 2 above: first =
> named "Cygwin GDB Debugger"(it may consist of many other nodes but it's =
> not important now) and second simply "gdb". If we've terminated program =
> which was in "stopped" condition all 3 nodes mentioned above would turn =
> into "<terminated>" state. But if I'm trying to stop program with =
> infifnite-cycle(so all is in "running" state) in it in a usual way, only =
> "Cygwin GDB Debugger" node become "<terminated>", and another 2 nodes =
> are still in running state! And if I'm trying to terminate one of them, =
> error occurs - "Terminate failed".=20
> But it's not the end. :). If I trying to stop program in unusual way, =
> i.e. terminate "Launch configuration" node or terminate "gdb" node - =
> everything is ok, no errors occurs!
> Is it correct work?
>
Do not know 8-)
Please file a PR, so mikhailk could take a closer look at this.
If it is confusing then the UI should probably be changed to more intuitive,
if possible.
> 5. I've noticed "Global variables" popup menu item in Expression View, =
> but it's always empty while debugging in my version of CDT. How do you =
> plan to use this item?
>
The problem is that GDB does not provide us with the information. So we
rely on the binary Parser for this. The only binary parser that is feature
full enough to do this is the Elf Parser. The PE parser unfortunately, does
not provide this information yet. They are a STABS and DWARF2 implementation
in the work, but it will not be in yet at least not for the coming CDT 1.1
> Great thanks in advance for your answers,
>
> Igor S. Zamyatin
> Interstron Ltd.
> www.interstron.ru
>
>
> p.s. I'm using Windows 2000, Eclipse 2.0
> ------=_NextPart_000_02E6_01C30330.DF925A90
> Content-Type: text/html;
> charset="koi8-r"
> Content-Transfer-Encoding: quoted-printable
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=3DContent-Type content=3D"text/html; charset=3Dkoi8-r">
> <META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY bgColor=3D#ffffff>
> <DIV><FONT face=3DArial size=3D2> Hi =
> all!</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
> <DIV><FONT face=3DArial size=3D2> Let me =
> ask some=20
> questions about CDT Debugger. :) </FONT><FONT face=3DArial=20
> size=3D2></FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
> <DIV><FONT face=3DArial size=3D2> 1. What do you think=20
> about assignment some hot keys to some action, for example, for =
> breakpoint=20
> setting or for "Run to line" action? I think the debugger process will =
> become=20
> more comfortable with hot keys</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
> <DIV><FONT face=3DArial size=3D2> 2. May be I have an =
> archaic version=20
> but it seemed to me that while debugging, expressions, which user=20
> can watch in Expression view, don't update. Will you plan =
>
> to make this feature?</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2> </FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
> <DIV><FONT face=3DArial size=3D2> 3. As I understood =
> Gdb doesn't=20
> let to work in Suspend/Resume mode. I mean mode in which if=20
> I launch a program I can suspend its work and program will stop =
> somewhere=20
> and will be waiting for subsequent work or terminate command. As I have =
> seen the=20
> button "Suspend" is always disabled. Do you have some plans or thoughts =
> about=20
> it?</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
> <DIV><FONT face=3DArial size=3D2> 4. I've notised strange =
> behavior when=20
> debugging infifnite-cycle program. I'll try to describe =
> the=20
> problem. When I start debugging process there appears new tree item in =
> Debug=20
> View. It consists of 1 upper node named like current "Launch=20
> Configuration" and 2 above: first named "Cygwin GDB Debugger"(it =
> may=20
> consist of many other nodes but it's not important now) and second =
> simply "gdb".=20
> If we've terminated program which was in "stopped" condition all =
> 3 nodes=20
> mentioned above would turn into "<terminated>" state. But if =
> I'm=20
> trying to stop program with infifnite-cycle(so all is in "running" =
> state) in it=20
> in a usual way, only "Cygwin GDB Debugger" node become=20
> "<terminated>", and another 2 nodes are still in running =
> state! =20
> And if I'm trying to terminate one of them, error occurs - "Terminate =
> failed".=20
> </FONT></DIV>
> <DIV><FONT face=3DArial size=3D2>But it's not the end. :). If I =
> trying to stop=20
> program in unusual way, i.e. terminate "Launch configuration" node or =
> terminate=20
> "gdb" node - everything is ok, no errors occurs!</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2>Is it correct work?</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
> <DIV><FONT face=3DArial size=3D2> 5. I've noticed "Global =
> variables" popup=20
> menu item in Expression View, but it's always empty while debugging =
> in my=20
> version of CDT. How do you plan to use this item?</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
> <DIV><FONT face=3DArial size=3D2> Great thanks in advance =
> for your=20
> answers,</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
> <DIV><FONT face=3DArial size=3D2> Igor S. =
> Zamyatin</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2> Interstron =
> Ltd.</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2> <A=20
> href=3D"http://www.interstron.ru">www.interstron.ru</A></FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
> <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
> <DIV><FONT face=3DArial size=3D2>p.s. I'm using Windows 2000, Eclipse=20
> 2.0</FONT></DIV></BODY></HTML>
>
> ------=_NextPart_000_02E6_01C30330.DF925A90--
>
>
> _______________________________________________
> cdt-debug-dev mailing list
> cdt-debug-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/cdt-debug-dev
>
--
au revoir, alain
----
Aussi haut que l'on soit assis, on est toujours assis que sur son cul !!!