Git Product home page Git Product logo

gdbmgr's Introduction

This is a mirror of http://www.vim.org/scripts/script.php?script_id=4104

Gdbmgr supports a user-controllable multiple-tiled window interface to gdb, and does not need any external scripting support such as perl or python.  Try out the tutorial -- it contains seven examples with detailed instructions on how to compile the example code, run it, and use gdbmgr with it.

Using gdbgmgr is straightforward; you may start gdbmgr up from a running vim or, if you take the suggestion (:help gdbmgr-suggest), then attempting editing a program&#039s binary will bring up gdbmgr with that program loaded.

  :DI programname...starts up gdbgmr with the given programname
  :DR [args]..............runs the program (with optional arguments)
  :DQ........................quit gdbmgr

Standard Windows:
By default at startup you&#039ll have seven tiled windows in a tab:
  Netrw................: useful for bringing source code into the Source window and setting breakpoints and examining variables
  Messages........: shows messages issued by gdb
  Function Stack..: shows current function stack
  Source Window.: shows current source code
  Expr..................: enter expressions to be evaluated (ie. shows variable values)
  Breakpt.............: shows list of breakpoints
  Watchpoint........: shows list of watchpoints

Optional Windows:
Other available gdbmgr windows include:
  BufExplorer..: the buffer explorer shows its output here (see vimscript#42) - thanks to Jeff Lanzarotta for including some interface code!
  Commands..: enter commands to gdb via this window.  This window is stacked with the Source Window; ie. when you run your program, the commands window is displayed instead of the Source Window.
  Tags............: shows CtagExpl or HdrTag output (tags, hdrtags)
  Threads......: shows the results of gdb&#039s \"info threads\" command

Foreign Apps:
  Gdbmgr provides an interface to various \"foreign apps\"; ie. vimscripts that are external to gdbmgr itself.  Currently, gdbmgr provides interfaces to:
  bufexplorer
  CtagExpl
  Hdrtag
  netrw   (built-in interface)

Installing gdbmgr:
Gdbmgr does not require perl, python, or any other external scripting support.  However, it does need to have forkpty() support compiled in; you can get this by configuring your vim to support perl, python, or modify vim&#039s Makefile with EXTRA_LIBS = -lutil. 

Read :help gdbmgr-install   for information on how to get your vim configured and compiled for gdbmgr.
Read :help gdbmgr-tutorial  to learn many of the details of using gdbmgr.  Examples are included!

Supported:
stepping - continue
examining variable values (with ballooneval, simply point the mouse at the variable name in the source code)
breakpoints
watchpoints
function stack
examining core dumps
multiple-file source code programs supported

See gdbmgr's online documentation and examples at http://www.drchip.org/astronaut/vim/doc/gdbmgr.txt.html .

(alpha/beta version available at http://www.drchip.org/astronaut/vim/index.html#GDBMGR)

gdbmgr's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.