Revision 67b915a5 monitor.c

b/monitor.c
21 21
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 22
 * THE SOFTWARE.
23 23
 */
24
#include <stdlib.h>
25
#include <stdio.h>
26
#include <stdarg.h>
27
#include <string.h>
28
#include <getopt.h>
29
#include <inttypes.h>
30
#include <unistd.h>
31
#include <sys/mman.h>
32
#include <fcntl.h>
33
#include <signal.h>
34
#include <time.h>
35
#include <sys/time.h>
36
#include <malloc.h>
37
#include <termios.h>
38
#include <sys/poll.h>
39
#include <errno.h>
40
#include <ctype.h>
41

  
42
#include "cpu.h"
43 24
#include "vl.h"
44 25

  
45 26
//#define DEBUG
......
311 292
    vm_start();
312 293
}
313 294

  
295
#ifdef CONFIG_GDBSTUB
314 296
static void do_gdbserver(int argc, const char **argv)
315 297
{
316 298
    int port;
......
324 306
        qemu_printf("Waiting gdb connection on port %d\n", port);
325 307
    }
326 308
}
309
#endif
327 310

  
328 311
static term_cmd_t term_cmds[] = {
329 312
    { "help|?", do_help, 
......
348 331
      "filename", "restore the whole virtual machine state from 'filename'" }, 
349 332
    { "stop", do_stop, "", "stop emulation", },
350 333
    { "c|cont", do_cont, "", "resume emulation", },
334
#ifdef CONFIG_GDBSTUB
351 335
    { "gdbserver", do_gdbserver, "[port]", "start gdbserver session (default port=1234)", },
336
#endif
352 337
    { NULL, NULL, }, 
353 338
};
354 339

  

Also available in: Unified diff