Modify cl ui a bit
This commit is contained in:
parent
5ece8d3b69
commit
93d62e450e
@ -162,7 +162,7 @@ func parseCommand(cmdstr string) (string, []string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (t *term) promptForInput() (string, error) {
|
func (t *term) promptForInput() (string, error) {
|
||||||
prompt := "dlv> "
|
prompt := "(dlv) "
|
||||||
linep := goreadline.ReadLine(&prompt)
|
linep := goreadline.ReadLine(&prompt)
|
||||||
if linep == nil {
|
if linep == nil {
|
||||||
return "", io.EOF
|
return "", io.EOF
|
||||||
|
|||||||
@ -269,7 +269,7 @@ func printcontext(p *proctl.DebuggedProcess) error {
|
|||||||
f, l, fn := p.GoSymTable.PCToLine(regs.PC())
|
f, l, fn := p.GoSymTable.PCToLine(regs.PC())
|
||||||
|
|
||||||
if fn != nil {
|
if fn != nil {
|
||||||
fmt.Printf("Stopped at: %s:%d\n", f, l)
|
fmt.Printf("current loc: %s %s:%d\n", fn.Name, f, l)
|
||||||
file, err := os.Open(f)
|
file, err := os.Open(f)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user