Operating System - HP-UX
1828370 Members
3129 Online
109976 Solutions
New Discussion

how to edit source files in gdb

 
shiva_6
New Member

how to edit source files in gdb

How to edit the c source files in gdb.I am not able to edit the source files in GDB thro' edit command.It gives error as vt220 not found.I tried by setting the EDITOR to vt220 and by setting it to vi also.but still it is not working.please let me know if some one finds any soultion.
2 REPLIES 2
T G Manikandan
Honored Contributor

Re: how to edit source files in gdb

vt220 is the Terminal type.
you have to change the value of TERM.

export EDITOR=vi
export TERM=`ttytype`

Stanimir
Trusted Contributor

Re: how to edit source files in gdb

Hi!
Try to establish command line with:

#set -o vi

And also for editing C-sources try "xwpe" -
very good Borland-like GUInterface.
You can find it on:

http://hpux.cs.utah.edu/

Regards, Stan