GDB/MI Debugger implementation based on DSF

GDB/MI Debugger implementation based on DSF



Buiding and Running Instructions

To build:
  1. Install the latest milestone of Eclipse 3.3 SDK
  2. Install the latest milestone of CDT 4.0
  3. Install and configure gdb (cygwin on windows)
  4. Check out following projects from /cvsroot/dsdp/org.eclipse.dd.dsf/plugins
    • org.eclipse.dd.dsf
    • org.eclipse.dd.dsf.ui
    • org.eclipse.dd.dsf.debug
    • org.eclipse.dd.dsf.debug.ui
    • org.eclipse.dd.dsf.mi.core
    • org.eclipse.dd.dsf.mi.ui.
To run:
  1. Create a new "Managed make build project" called "hello".
  2. Create a simple hello.c source file:
#include <stdio.h>
int main(void) {
printf("Hello world");
}
  1. Build the project.
  2. Create a new "DSF C/C++ Local Application"  launch configuration (one with the pink icon) and set the executable and entry point to "main"
  3. Launch and step through.
  4. If the "source not found" page appears, the a path mapping needs to be created.  This is an issue with latest cygwin gdb.
    1. Click on the "Edit source lookup" button in the editor, or right click on the launch node in Debug View and select "Edit source lookup"
    2. Click on the "Add..." button
    3. Select "Path Mapping" and click OK.
    4. Select the new "Path Mapping" source container and click the "Edit..." button.
    5. Once again, click the "Add..." button to create a mapping.
    6. Enter the path to map from.  Look at the stack frame label in Debug view, if the filename is something like "/cygdrive/c/workspace/hello/hello.c", enter the path to the first real directory "/cygdrive/c/workspace".
    7. Enter the correct path to the directory entered above, in the file system.  In example above, it would be "C:/workspace".
    8. Click OK three times and you'll be back in Kansas.... ehm Debug view that is.
    9. If the source doesn't show up right away, try stepping once.

Supported Platforms

Currently only Windows with cygwin GDB is supported.


Current Features

  • Launching
    • The "DSF C/C++Local Application" is the standard CDT launch configuration minus some of the features. 
    • What is NOT working here is
      • Debugger tab: the selection of debugger back ends (gdb/mi, Cygwin gdb debugger, etc.), tThe implementation is currently hard-wired for Cygwin,
      • Debugger tab: Debugger Options section
  • Debug view
    • Single thread debugging only.
    • Terminating
    • Stepping
    • Resume/Suspend
  • Console support
    • GDB process output
    • NO user process console support
  • Breakpoints
    • Basic CDT breakpoint support implemented
      • no filtering support,
      • no advanced options (hardware, temporary, etc)
      • no watchpoints
  • Variables
    • not yet
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值