RFA: dwarf-mode.el -vs- ~
Tom Tromey
tromey@redhat.com
Thu Jun 16 15:12:00 GMT 2011
I noticed that dwarf-mode doesn't properly expand "~" before passing it
to objdump.
This patch fixes the problem. Ok?
Tom
2011-06-16 Tom Tromey <tromey@redhat.com>
* dwarf-mode.el (dwarf-do-insert-substructure): Call
expand-file-name.
(dwarf-do-refresh): Likewise.
Index: dwarf-mode.el
===================================================================
RCS file: /cvs/src/src/binutils/dwarf-mode.el,v
retrieving revision 1.1
diff -u -r1.1 dwarf-mode.el
--- dwarf-mode.el 28 Apr 2011 17:23:15 -0000 1.1
+++ dwarf-mode.el 16 Jun 2011 15:10:51 -0000
@@ -47,7 +47,7 @@
(save-excursion
(apply #'call-process dwarf-objdump-program nil (current-buffer) nil
"-Wi" (concat "--dwarf-start=0x" die)
- dwarf-file
+ (expand-file-name dwarf-file)
(if new-depth (list (concat "--dwarf-depth="
(int-to-string new-depth))))))
(set-buffer-modified-p nil)))
@@ -136,7 +136,7 @@
(call-process dwarf-objdump-program
nil (current-buffer) nil
"-Wi" "--dwarf-depth=1"
- dwarf-file))
+ (expand-file-name dwarf-file)))
(set-buffer-modified-p nil)))
;;;###autoload
More information about the Binutils
mailing list