This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]