[Mono-bugs] [Bug 77568][Wis] New - You shouldn't need to run "file"
before "attach" in mdb
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Feb 15 14:56:19 EST 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by joeshaw at novell.com.
http://bugzilla.ximian.com/show_bug.cgi?id=77568
--- shadow/77568 2006-02-15 14:56:19.000000000 -0500
+++ shadow/77568.tmp.25709 2006-02-15 14:56:19.000000000 -0500
@@ -0,0 +1,39 @@
+Bug#: 77568
+Product: Mono: Debugger
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: cli
+AssignedTo: martin at ximian.com
+ReportedBy: joeshaw at novell.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: You shouldn't need to run "file" before "attach" in mdb
+
+If you run mdb and then try to attach to an existing process, you'll get
+this error:
+
+ERROR: No executable file specified.
+Use the `file' command.
+
+Somehow gdb doesn't need this information to attach to native processes.
+
+Looking at various mono process in /proc/<pid>/fd, it looks like file
+descriptor 3 always contains the exe file I'm running:
+
+$ ls -l /proc/*/fd | grep "\.exe"
+lr-x------ 1 joe users 64 2006-02-15 14:47 3 -> /usr/lib/banshee/banshee.exe
+lr-x------ 1 joe users 64 2006-02-15 14:47 3 ->
+/opt/gnome/lib/tomboy/Tomboy.exe
+lr-x------ 1 joe users 64 2006-02-15 14:47 3 ->
+/home/joe/build/mono/lib/mono/1.0/mdb.exe
+lr-x------ 1 joe users 64 2006-02-15 14:43 3 ->
+/home/joe/cvs/beagle/tools/Settings.exe
+
+mdb could look at that and extract the file to load automatically.
More information about the mono-bugs
mailing list