Author Topic: GDB Console integration  (Read 3784 times)

RaffoPazzo

  • Community Member
  • Posts: 67
  • Hero Points: 2
GDB Console integration
« on: July 28, 2011, 06:12:23 am »
Is there a way to type gdb command directly in a console when debugging? Is there some sort of console integration?

hs2

  • Senior Community Member
  • Posts: 2752
  • Hero Points: 291
Re: GDB Console integration
« Reply #1 on: July 28, 2011, 08:22:08 am »
There is a 'debug-send-command' SE command. See e.g. this post for it's limitations and/or search the forum for related information.
HS2

RaffoPazzo

  • Community Member
  • Posts: 67
  • Hero Points: 2
Re: GDB Console integration
« Reply #2 on: July 28, 2011, 12:45:27 pm »
Thanks, this answer my question. At least showing that SE does not have a full integration with gdb (or other debuggers). I'm going to add this as a request for the next version.

JakeMontgomery

  • Community Member
  • Posts: 79
  • Hero Points: 8
Re: GDB Console integration
« Reply #3 on: August 15, 2011, 01:34:15 pm »
Attached is a little SlickEdit 'gdb console window' that I threw together to send commands directly to gdb from slick edit. Please read the disclaimers below before using. It can be used as a dialog, or made int a dockable tool window, in the usual way (which is how I run it.) It has an "Update VS" button to update the watch variable values on demand, using some ugly hacked code. It is not pretty, but it has worked for me. It has been 'tested' mostly under 15.0.1, but I just started using it under 16.0.1, and it seems to work. I have used it only with remote debug sessions, using gdbserver, but I have no reason to think that it would not work with direct debug sessions.

I hope this is helpful. If anyone makes any improvements, please let me know.

Disclaimers:
   * Use at your own risk ... and I do mean risk.
   * Backup your entire SlickEdit configuration folder before using. I have crashed SE before using this, and corrupted my settings. (See next item.)
   * The tool should not be used to send any 'flow control' commands (continue, step, etc.) as these will confuse, and possibly hang or crash SE.
   * I have no idea what happens if breakpoint commands are issued, as I have never tried it. I suspect the results would not be good though.
   * This is a 'quick and dirty' tool that I threw together for my own use. It was never intended for public release. Use at your own risk.

Enjoy!
 

JakeMontgomery

  • Community Member
  • Posts: 79
  • Hero Points: 8
Re: GDB Console integration
« Reply #4 on: September 13, 2012, 01:23:26 pm »
The version I posted above works with SE v15 and v16, but does not work with SlickEdit 2012 (v17.x.x). Attached is an updated GdbCommandView.e, which should work with SlickEdit 2012 (v17.x.x), or at least 17.0.3