12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- (require 'cl)
- (defun gdb-guile-display-scm ()
- (interactive)
- (save-excursion
- (let ((sym (thing-at-point 'symbol))
- (proc (get-buffer-process
- (find-if (lambda (buf)
- (string-match "^.gud-." (buffer-name buf)))
- (buffer-list)))))
- (mapc (lambda (template)
- (process-send-string proc (format template sym)))
- (list
- "set gdb_print(%s)\n"
- "printf \"%s: %%s\\n\", gdb_output\n")))))
- (defvar gdb-guile-suggested-gdbinit "
- define gp
- set gdb_print($arg0)
- print gdb_output
- end
- document gp
- Executes (object->string arg)
- end
- define ge
- call gdb_read($arg0)
- call gdb_eval(gdb_result)
- set gdb_print(gdb_result)
- print gdb_output
- end
- document ge
- Executes (print (eval (read arg))): ge \"(+ 1 2)\" => 3
- end
- define gh
- call g_help(scm_str2symbol($arg0), 20)
- set gdb_print($1)
- print gdb_output
- end
- document gh
- Prints help string for arg: gh \"enved-target\"
- end
- "
- "A useful .gdbinit")
- (provide 'gud-guile)
|