Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

as show below:

Step 1: SSH Login to remote host.

Step 2: Use gdb debug proc_a.

Step 3: Use gdb subcommand (gdb) shell vi tes.c, edit the file.

Step 4: The ssh client have something unknown error failure link (can not input any command to remote host)

Step 5: I have to relogin the remote host using SSH.

The question is how can I continue to the debug work which the Step1f going?

share|improve this question

migrated from stackoverflow.com Sep 21 '12 at 23:44

This question came from our site for professional and enthusiast programmers.

2 Answers 2

up vote 1 down vote accepted

Use screen.

I would do: screen gdb debug proc_a at first.

When you need to reclaim it, call, screen -r for reattach.

Look for your screen instance which was running that cmd, and you are all set.

share|improve this answer
    
Thank you, It is woks. –  infantcoder Sep 22 '12 at 1:57

The question is how can I continue to the debug work which the step1 going?

Use screen. Documentation here.

share|improve this answer
    
Thank you, It is what I need. –  infantcoder Sep 22 '12 at 1:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.