Thread: [Cgdb-users] Line number problems.
Brought to you by:
bobbybrasko,
crouchingturbo
From: Christopher W. <cs...@k1...> - 2003-07-16 16:44:02
|
If a string spans multiple lines cgdb's idea of what line it is on gets completely thrown off. For example my code includes. sprintf( cmd, "SELECT username, password, group, active from users where userid=%d", userid ) ; This all winds up on one line in the source view of cgdb but gdb thinks it takes up 6 lines in the source. Needless to say this really confuses things :) I'm using cgdb-0.3.3a.tar.gz downloaded today. Other than this little problem I LOVE cgdb. I have finally found something that is textmode and supports vi keystrokes. -- ------------------------------------------------------------ Christopher Weimann http://www.k12usa.com K12USA.com Cool Tools for Schools! ------------------------------------------------------------ |
From: Bob R. <bo...@br...> - 2003-07-16 18:33:48
|
Ok, I reproduced the problem. There is a temporary solution until its fixed. Type :set syntax=3Doff in the status bar when the file that has the problem is loaded. This bug found 2 error in cgdb. 'set syntax=3Doff' should work in the=20 $HOME/.cgdb/cgdbrc and it doesn't. The problem will be fixed within a day or two. Thanks for the support! Bob Rossi On Wed, Jul 16, 2003 at 12:43:59PM -0400, Christopher Weimann wrote: > If a string spans multiple lines cgdb's idea of what > line it is on gets completely thrown off. For example > my code includes. >=20 > sprintf( cmd, "SELECT username, > password, > group, > active > from users > where userid=3D%d", userid ) ;=20 >=20 > This all winds up on one line in the source view of cgdb > but gdb thinks it takes up 6 lines in the source. Needless > to say this really confuses things :) >=20 > I'm using cgdb-0.3.3a.tar.gz downloaded today. >=20 > Other than this little problem I LOVE cgdb. I have finally=20 > found something that is textmode and supports vi keystrokes. >=20 > --=20 > ------------------------------------------------------------ > Christopher Weimann > http://www.k12usa.com > K12USA.com Cool Tools for Schools! > ------------------------------------------------------------ >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the > same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 > _______________________________________________ > Cgdb-users mailing list > Cgd...@li... > https://lists.sourceforge.net/lists/listinfo/cgdb-users |
From: Bob R. <bo...@br...> - 2003-07-16 22:25:53
|
String literals now highlight properly. You need to grab the latest cvs tree or just wait for the next release. Bob Rossi On Wed, Jul 16, 2003 at 02:33:36PM -0400, Bob Rossi wrote: > Ok, I reproduced the problem. >=20 > There is a temporary solution until its fixed. Type :set syntax=3Doff in > the status bar when the file that has the problem is loaded. >=20 > This bug found 2 error in cgdb. 'set syntax=3Doff' should work in the=20 > $HOME/.cgdb/cgdbrc and it doesn't. >=20 > The problem will be fixed within a day or two. >=20 > Thanks for the support! > Bob Rossi >=20 > On Wed, Jul 16, 2003 at 12:43:59PM -0400, Christopher Weimann wrote: > > If a string spans multiple lines cgdb's idea of what > > line it is on gets completely thrown off. For example > > my code includes. > >=20 > > sprintf( cmd, "SELECT username, > > password, > > group, > > active > > from users > > where userid=3D%d", userid ) ;=20 > >=20 > > This all winds up on one line in the source view of cgdb > > but gdb thinks it takes up 6 lines in the source. Needless > > to say this really confuses things :) > >=20 > > I'm using cgdb-0.3.3a.tar.gz downloaded today. > >=20 > > Other than this little problem I LOVE cgdb. I have finally=20 > > found something that is textmode and supports vi keystrokes. > >=20 > > --=20 > > ------------------------------------------------------------ > > Christopher Weimann > > http://www.k12usa.com > > K12USA.com Cool Tools for Schools! > > ------------------------------------------------------------ > >=20 > >=20 > >=20 > > ------------------------------------------------------- > > This SF.net email is sponsored by: VM Ware > > With VMware you can run multiple operating systems on a single machine. > > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the > > same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 > > _______________________________________________ > > Cgdb-users mailing list > > Cgd...@li... > > https://lists.sourceforge.net/lists/listinfo/cgdb-users |
From: Christopher W. <cwe...@k1...> - 2003-07-17 00:52:02
|
On Wed 07/16/2003-06:25:46PM -0400, Bob Rossi wrote: > > String literals now highlight properly. > You need to grab the latest cvs tree or just wait for the next release. Wow! Great support too! :) Thanks! |