[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[h-e-w] Emacs gdb interface

From: Dani Moncayo
Subject: [h-e-w] Emacs gdb interface
Date: Tue, 20 Mar 2012 21:21:42 +0100

Hello Emacs,

I'm trying to test the Emacs gdb interface, but there is something I
don't yet understand.

This is my setup:
* OS: MS-Windows 7.
* Development Environment: MinGW.

I've done this:
* I've written a "hello world" program [1].
* I've compiled it.
* I've tested the executable (p1.exe), and it works fine.

Now, from my Emacs (almost latest trunk) I've done:
* M-x gdb RET (the default command was "gdb -i=mi p1.exe")
* b main RET
* run RET
* M-x gdb-many-windows RET
* n RET

At this point, the *input/output of p1.exe* buffer should show the
"hello, world!" message written to the standard output, right?  But I
observe that the buffer remains empty (see attached screenshot).

Probably I'm missing something here.  Do you know what?


--- Footnotes ----------------------------------

[1] My program:
------------- main.c ---------------
#include <stdio.h>

int main(void)
  printf("hello, world!");
  return 0;

Dani Moncayo

Attachment: img-1.png
Description: PNG image

reply via email to

[Prev in Thread] Current Thread [Next in Thread]