Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
eca16aa7
Commit
eca16aa7
authored
Mar 26, 2010
by
Nick Roberts
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(gdb-apple-test): New function.
(gdb-init-1): Use it.
parent
ef7b27ef
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
lisp/ChangeLog
lisp/ChangeLog
+6
-0
lisp/progmodes/gdb-ui.el
lisp/progmodes/gdb-ui.el
+15
-0
No files found.
lisp/ChangeLog
View file @
eca16aa7
2010-03-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Nick Roberts <nickrob@snap.net.nz>
* progmodes/gdb-ui.el (gdb-apple-test): New function.
(gdb-init-1): Use it.
2010-02-10 Dan Nicolaescu <dann@ics.uci.edu>
* vc.el (vc-root-diff): Doc fix.
...
...
lisp/progmodes/gdb-ui.el
View file @
eca16aa7
...
...
@@ -705,6 +705,9 @@ otherwise do not."
(
if
gdb-use-separate-io-buffer
(
gdb-clear-inferior-io
))
(
if
(
eq
system-type
'darwin
)
(
gdb-enqueue-input
(
list
"server show version\n"
'gdb-apple-test
)))
;; Hack to see test for GDB 6.4+ (-stack-info-frame was implemented in 6.4)
(
gdb-enqueue-input
(
list
"server interpreter mi -stack-info-frame\n"
'gdb-get-version
)))
...
...
@@ -736,6 +739,18 @@ otherwise do not."
(
gdb-enqueue-input
(
list
"server list MAIN__\n"
'ignore
))
(
gdb-enqueue-input
(
list
"server info source\n"
'gdb-source-info
)))
;; Workaround for some Apple versions of GDB that add ^M at EOL
;; after the command "server interpreter mi -stack-info-frame".
(
defun
gdb-apple-test
()
(
goto-char
(
point-min
))
(
if
(
re-search-forward
"(Apple version "
nil
t
)
(
let*
((
process
(
get-buffer-process
gud-comint-buffer
))
(
coding-systems
(
process-coding-system
process
)))
(
set-process-coding-system
process
(
coding-system-change-eol-conversion
(
car
coding-systems
)
'dos
)
(
cdr
coding-systems
)))))
(
defun
gdb-get-version
()
(
goto-char
(
point-min
))
(
if
(
re-search-forward
"Undefined\\( mi\\)* command:"
nil
t
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment