This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RFA: dwarf-mode.el -vs- ~
- From: Tom Tromey <tromey at redhat dot com>
- To: Binutils Development <binutils at sourceware dot org>
- Date: Thu, 16 Jun 2011 09:11:39 -0600
- Subject: RFA: dwarf-mode.el -vs- ~
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