Thread: [Cgdb-users] TAB completion
Brought to you by:
bobbybrasko,
crouchingturbo
From: Dmitry S. <Dmi...@ok...> - 2003-11-15 19:36:54
|
Hello all. I have installed cgdb-0.4.0, and noticed that I cannot use TAB for automatic completion from (tgdb) command prompt. cgdb-0.3.4 had the completion feature, though it was not very convenient -- possible variants were only shown above, but not substituted inside the command prompt. Does anybody have the same problems with cgdb? ...Bye..Dmitry. |
From: Peter K. <pe...@ko...> - 2003-11-15 22:42:35
|
Dmitry -- This is a known problem with cgdb. It is a result of the way the cgdb interacts with gdb. I think that the fix is targetted for when the gdb-mi interface is done. - Peter On Sat, Nov 15, 2003 at 10:36:46PM +0300, Dmitry Semyonov wrote: > Hello all. >=20 > I have installed cgdb-0.4.0, and noticed that I cannot use TAB for > automatic completion from (tgdb) command prompt. >=20 > cgdb-0.3.4 had the completion feature, though it was not very convenient > -- possible variants were only shown above, but not substituted inside > the command prompt. >=20 > Does anybody have the same problems with cgdb? >=20 >=20 > ...Bye..Dmitry. >=20 >=20 >=20 > ------------------------------------------------------- > This SF. Net email is sponsored by: GoToMyPC > GoToMyPC is the fast, easy and secure way to access your computer from > any Web browser or wireless device. Click here to Try it Free! > https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=3Dmm/g22lp.tmpl > _______________________________________________ > Cgdb-users mailing list > Cgd...@li... > https://lists.sourceforge.net/lists/listinfo/cgdb-users --=20 Peter D. Kovacs <pe...@ko...> |
From: Bob R. <bo...@br...> - 2003-11-16 04:23:44
|
> I have installed cgdb-0.4.0, and noticed that I cannot use TAB for > automatic completion from (tgdb) command prompt. >=20 > cgdb-0.3.4 had the completion feature, though it was not very convenient > -- possible variants were only shown above, but not substituted inside > the command prompt. It was difficult to make the completion work in place. This is a planned feature for 1.0, although will probably not be done for some time. > Does anybody have the same problems with cgdb? Oops. Looks like you found a pretty serious bug. I will fix this and add a testcase so that it doesn't happen again. I'll notify you when the problem is fixed. Thanks, Bob Rossi |
From: Bob R. <bo...@br...> - 2003-11-16 14:31:07
|
> > Does anybody have the same problems with cgdb? >=20 > Oops. Looks like you found a pretty serious bug. > I will fix this and add a testcase so that it doesn't happen again. I have fixed the bug in cvs. However, there is no test case yet. I will look into adding the testcase when I get a little more time, probably this week. If you really like the tab completion feature, check out the latest cvs. Thanks, Bob Rossi |
From: Dmitry S. <Dmi...@ok...> - 2003-11-16 16:06:00
|
Hello Bob. On Sun, 16 Nov 2003, Bob Rossi wrote: > I have fixed the bug in cvs. However, there is no test case yet. I will > look into adding the testcase when I get a little more time, probably > this week. > > If you really like the tab completion feature, check out the latest cvs. Thank you, but TAB completion still does not work for me with CVS version. Below are the commands I used to install cgdb. $ CFLAGS="-Os -march=pentium3 -mfpmath=sse -msse -mmmx" ./configure --prefix=/usr/local/cgdb-0.4.0-20031116 --disable-dependency-tracking $ make $ make install Then I am entering cgdb, and pressing "he[TAB]". This is the output of cgdb-0.3.4: GNU gdb Red Hat Linux (5.1.90CVS-5) [...] This GDB was configured as "i386-redhat-linux". (tgdb) he help (tgdb) he And this is of cgdb-0.4.0-20031116: GNU gdb Red Hat Linux (5.1.90CVS-5) [...] This GDB was configured as "i386-redhat-linux". (tgdb) he (tgdb) he ...Bye..Dmitry. |
From: Bob R. <bo...@br...> - 2003-11-17 06:49:06
|
> > I have fixed the bug in cvs. However, there is no test case yet. I will > > look into adding the testcase when I get a little more time, probably > > this week. > > > > If you really like the tab completion feature, check out the latest cvs. >=20 > Thank you, but TAB completion still does not work for me with CVS > version. Below are the commands I used to install cgdb. The way you are installing it seems fine. I don't know why CVS isn't working for you. The reason tab completion was broken was just a simple error. I rewrote the interface to the annotate two tgdb code and I called the function a2_command_callback instead of a2_completion_callback. You should check to see if you have this patch in your CVS checkout. This should make tab completion work once again. You want to make sure that a2_completion_callback is there and not a2_command_callback. $ cvs diff -wu -r 1.4 -r 1.5 tgdb_client_interface.c=20 Index: tgdb_client_interface.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvsroot/cgdb/cgdb/tgdb/tgdb-base/src/tgdb_client_interface.c,v retrieving revision 1.4 retrieving revision 1.5 diff -w -u -r1.4 -r1.5 --- tgdb_client_interface.c 24 Oct 2003 01:10:40 -0000 1.4 +++ tgdb_client_interface.c 16 Nov 2003 14:34:41 -0000 1.5 @@ -130,7 +130,7 @@ /* tgdb_client_change_debugger_prompt */ a2_change_prompt, /* tgdb_client_completion_callback */ - a2_command_callback, + a2_completion_callback, /* tgdb_client_return_command*/ a2_return_client_command, /* tgdb_client_modify_breakpoint */ Doing a checkout of CVS should have given you this change. If it didn't please let us know. Maybe there is something wrong with our CVS setup. Thanks, Bob Rossi |
From: Dmitry S. <Dmi...@ok...> - 2003-11-17 11:33:10
|
Bob, On Mon, 17 Nov 2003, Bob Rossi wrote: > $ cvs diff -wu -r 1.4 -r 1.5 tgdb_client_interface.c > Index: tgdb_client_interface.c > =================================================================== > RCS file: /cvsroot/cgdb/cgdb/tgdb/tgdb-base/src/tgdb_client_interface.c,v > retrieving revision 1.4 > retrieving revision 1.5 > diff -w -u -r1.4 -r1.5 > --- tgdb_client_interface.c 24 Oct 2003 01:10:40 -0000 1.4 > +++ tgdb_client_interface.c 16 Nov 2003 14:34:41 -0000 1.5 [...] > Doing a checkout of CVS should have given you this change. If it didn't > please let us know. Maybe there is something wrong with our CVS setup. Yes, I think this is the reason. $ cvs status tgdb_client_interface.c =================================================================== File: tgdb_client_interface.c Status: Up-to-date Working revision: 1.4 Repository revision: 1.4 /cvsroot/cgdb/cgdb/tgdb/tgdb-base/src/tgdb_client_interface.c,v Sticky Tag: (none) Sticky Date: (none) Sticky Options: (none) ...Bye..Dmitry. |
From: Dmitry S. <Dmi...@ok...> - 2003-11-19 18:51:38
|
On Mon, 17 Nov 2003, Dmitry Semyonov wrote: > On Mon, 17 Nov 2003, Bob Rossi wrote: > > > +++ tgdb_client_interface.c 16 Nov 2003 14:34:41 -0000 1.5 > > [...] > > > Doing a checkout of CVS should have given you this change. If it didn't > > please let us know. Maybe there is something wrong with our CVS setup. > > Yes, I think this is the reason. > > $ cvs status tgdb_client_interface.c > =================================================================== > File: tgdb_client_interface.c Status: Up-to-date > > Working revision: 1.4 > Repository revision: 1.4 /cvsroot/cgdb/cgdb/tgdb/tgdb-base/src/tgdb_client_interface.c,v Today, I have tried 'cvs update' one more time, and the file (plus some other ones) were updated at last. ...Bye..Dmitry. |
From: Dmitry S. <Dmi...@ok...> - 2003-11-17 11:56:41
|
Bob, On Mon, 17 Nov 2003, Bob Rossi wrote: > > > If you really like the tab completion feature, check out the latest cvs. [...] > You want to make sure that a2_completion_callback is there and not > a2_command_callback. > > $ cvs diff -wu -r 1.4 -r 1.5 tgdb_client_interface.c [...] Thanks, TAB completion finally works as in 0.3.4 version. ...Bye..Dmitry. |
From: Dmitry S. <Dmi...@ok...> - 2003-11-17 12:03:20
|
Bob, On Sat, 15 Nov 2003, Bob Rossi wrote: > > cgdb-0.3.4 had the completion feature, though it was not very convenient > > -- possible variants were only shown above, but not substituted inside > > the command prompt. > > It was difficult to make the completion work in place. This is a planned > feature for 1.0, although will probably not be done for some time. Well, just for you to know. Inline TAB completion (not only list of prompts) is the main feature I really miss in cgdb. My co-worker even does not want to use cgdb due to lack of this feature. So, may be you'll change the priority. Anyway, thanks for the great tool! ...Bye..Dmitry. |
From: Bob R. <bo...@br...> - 2003-11-17 16:25:24
|
> > > cgdb-0.3.4 had the completion feature, though it was not very conveni= ent > > > -- possible variants were only shown above, but not substituted inside > > > the command prompt. > > > > It was difficult to make the completion work in place. This is a planned > > feature for 1.0, although will probably not be done for some time. >=20 > Well, just for you to know. > Inline TAB completion (not only list of prompts) is the main feature I > really miss in cgdb. My co-worker even does not want to use cgdb due to > lack of this feature. So, may be you'll change the priority. > Anyway, thanks for the great tool! Do you normally use GDB from the command line? or your friend ? As far as I know, there is no front end to GDB that implements that feature properly. Thanks, Bob Rossi |
From: Dmitry S. <Dmi...@ok...> - 2003-11-17 18:31:56
|
On Mon, 17 Nov 2003, Bob Rossi wrote: > > > > cgdb-0.3.4 had the completion feature, though it was not very convenient > > > > -- possible variants were only shown above, but not substituted inside > > > > the command prompt. > > > > > > It was difficult to make the completion work in place. This is a planned > > > feature for 1.0, although will probably not be done for some time. > > > > Well, just for you to know. > > Inline TAB completion (not only list of prompts) is the main feature I > > really miss in cgdb. My co-worker even does not want to use cgdb due to > > lack of this feature. So, may be you'll change the priority. > > Anyway, thanks for the great tool! > > Do you normally use GDB from the command line? or your friend ? We both use it that way, and also several other people I'm working with. > As far as I know, there is no front end to GDB that implements that > feature properly. May be. So, what are you waiting for? ;) ...Bye..Dmitry. |