---
title: "emacs+gdb"
author: "hellobin"
date: "2013-07-04T00:25:57Z"
tags: []
categories: ["开源软件"]
slug: "emacs-gdb"
draft: false
lastmod: "2013-07-04T00:25:57Z"
id: 1898202
url: "https://hellobinfeng.iteye.com/blog/1898202"
---

$ emacs helloworld.c  # 打开文件

C+x 3      # 水平切窗口

 

M+x gdb # 直接gdb

M+x shel #进入shell

M+x compile #编译模式

 

C+x C+c #退出emacs

 

 

其中C是ctrl，M是Alt

http://tedlab.mit.edu/~dr/gdbintro.html