Author: martin
Date: 2007-12-10 05:32:59 -0500 (Mon, 10 Dec 2007)
New Revision: 91037
Modified:
trunk/debugger/ChangeLog
trunk/debugger/backend/server/i386-arch.c
trunk/debugger/backend/server/x86-linux-ptrace.c
trunk/debugger/backend/server/x86_64-arch.c
trunk/debugger/classes/DebuggerOptions.cs
trunk/debugger/frontend/Command.cs
Log:
2007-12-10 Martin Baulig <[EMAIL PROTECTED]>
Applied a patch from Harald Krapfenbauer <[EMAIL PROTECTED]>:
* backend/server/i386-arch.c
(x86_arch_get_registers): Store the return value each time to
`result' to check for errors.
* backend/server/x86_64-arch.c
(x86_arch_get_registers): Store the return value each time to
`result' to check for errors.
* backend/server/x86-linux-ptrace.c
(server_ptrace_get_application): Increase size of `buffer' by 1.
Modified: trunk/debugger/ChangeLog
===================================================================
--- trunk/debugger/ChangeLog 2007-12-10 10:09:38 UTC (rev 91036)
+++ trunk/debugger/ChangeLog 2007-12-10 10:32:59 UTC (rev 91037)
@@ -1,3 +1,18 @@
+2007-12-10 Martin Baulig <[EMAIL PROTECTED]>
+
+ Applied a patch from Harald Krapfenbauer <[EMAIL PROTECTED]>:
+
+ * backend/server/i386-arch.c
+ (x86_arch_get_registers): Store the return value each time to
+ `result' to check for errors.
+
+ * backend/server/x86_64-arch.c
+ (x86_arch_get_registers): Store the return value each time to
+ `result' to check for errors.
+
+ * backend/server/x86-linux-ptrace.c
+ (server_ptrace_get_application): Increase size of `buffer' by 1.
+
2007-12-08 Martin Baulig <[EMAIL PROTECTED]>
* configure.in: Bumped version number to 0.60.
Modified: trunk/debugger/backend/server/i386-arch.c
===================================================================
--- trunk/debugger/backend/server/i386-arch.c 2007-12-10 10:09:38 UTC (rev
91036)
+++ trunk/debugger/backend/server/i386-arch.c 2007-12-10 10:32:59 UTC (rev
91037)
@@ -411,11 +411,11 @@
if (result != COMMAND_ERROR_NONE)
return result;
- _server_ptrace_get_fp_registers (handle->inferior,
&handle->arch->current_fpregs);
+ result = _server_ptrace_get_fp_registers (handle->inferior,
&handle->arch->current_fpregs);
if (result != COMMAND_ERROR_NONE)
return result;
- _server_ptrace_get_dr (handle->inferior, DR_STATUS,
&handle->arch->dr_status);
+ result = _server_ptrace_get_dr (handle->inferior, DR_STATUS,
&handle->arch->dr_status);
if (result != COMMAND_ERROR_NONE)
return result;
Modified: trunk/debugger/backend/server/x86-linux-ptrace.c
===================================================================
--- trunk/debugger/backend/server/x86-linux-ptrace.c 2007-12-10 10:09:38 UTC
(rev 91036)
+++ trunk/debugger/backend/server/x86-linux-ptrace.c 2007-12-10 10:32:59 UTC
(rev 91037)
@@ -397,7 +397,7 @@
gchar *exe_filename = g_strdup_printf ("/proc/%d/exe",
handle->inferior->pid);
gchar *cwd_filename = g_strdup_printf ("/proc/%d/cwd",
handle->inferior->pid);
gchar *cmdline_filename = g_strdup_printf ("/proc/%d/cmdline",
handle->inferior->pid);
- char buffer [BUFSIZ];
+ char buffer [BUFSIZ+1];
GPtrArray *array;
gchar *cmdline, **ptr;
gsize pos, len;
Modified: trunk/debugger/backend/server/x86_64-arch.c
===================================================================
--- trunk/debugger/backend/server/x86_64-arch.c 2007-12-10 10:09:38 UTC (rev
91036)
+++ trunk/debugger/backend/server/x86_64-arch.c 2007-12-10 10:32:59 UTC (rev
91037)
@@ -158,11 +158,11 @@
if (result != COMMAND_ERROR_NONE)
return result;
- _server_ptrace_get_fp_registers (handle->inferior,
&handle->arch->current_fpregs);
+ result = _server_ptrace_get_fp_registers (handle->inferior,
&handle->arch->current_fpregs);
if (result != COMMAND_ERROR_NONE)
return result;
- _server_ptrace_get_dr (handle->inferior, DR_STATUS,
&handle->arch->dr_status);
+ result = _server_ptrace_get_dr (handle->inferior, DR_STATUS,
&handle->arch->dr_status);
if (result != COMMAND_ERROR_NONE)
return result;
Modified: trunk/debugger/classes/DebuggerOptions.cs
===================================================================
--- trunk/debugger/classes/DebuggerOptions.cs 2007-12-10 10:09:38 UTC (rev
91036)
+++ trunk/debugger/classes/DebuggerOptions.cs 2007-12-10 10:32:59 UTC (rev
91037)
@@ -269,7 +269,7 @@
static void About ()
{
Console.WriteLine (
- "The Mono Debugger is (C) 2003-2006 Novell,
Inc.\n\n" +
+ "The Mono Debugger is (C) 2003-2007 Novell,
Inc.\n\n" +
"The debugger source code is released under the
terms of the GNU GPL\n\n" +
"For more information on Mono, visit the
project Web site\n" +
@@ -283,17 +283,18 @@
static void Usage ()
{
Console.WriteLine (
- "Mono Debugger, (C) 2003-2006 Novell, Inc.\n" +
+ "Mono Debugger, (C) 2003-2007 Novell, Inc.\n" +
"mdb [options] [exe-file]\n" +
"mdb [options] -args exe-file
[inferior-arguments ...]\n\n" +
" -args Arguments after
exe-file are passed to inferior\n" +
" -debug-flags:PARAM Sets the
debugging flags\n" +
" -fullname Sets the
debugging flags (short -f)\n" +
+ " -jit-arg:PARAM Additional
argument for the inferior mono\n" +
" -jit-optimizations:PARAM Set jit
optimizations used on the inferior process\n" +
" -mono:PATH Override the
inferior mono\n" +
" -mono-prefix:PATH Override the mono
prefix\n" +
- " -native-symtabs Load native
symtabs\n" +
+ " -run Start inferior
without halting in Main()\n" +
" -script \n" +
" -usage \n" +
" -version Display version
and licensing information (short -V)\n" +
Modified: trunk/debugger/frontend/Command.cs
===================================================================
--- trunk/debugger/frontend/Command.cs 2007-12-10 10:09:38 UTC (rev 91036)
+++ trunk/debugger/frontend/Command.cs 2007-12-10 10:32:59 UTC (rev 91037)
@@ -1323,7 +1323,7 @@
// IDocumentableCommand
public CommandFamily Family { get { return
CommandFamily.Running; } }
- public string Description { get { return "Step program untli it
reaches a different source line, proceeding into function calls."; } }
+ public string Description { get { return "Step program until it
reaches a different source line, proceeding into function calls."; } }
public string Documentation { get { return ""; } }
}
@@ -3400,7 +3400,7 @@
{
public override object Execute (Engine e)
{
- Console.WriteLine ("Mono Debugger (C) 2003, 2004
Novell, Inc.\n" +
+ Console.WriteLine ("Mono Debugger (C) 2003-2007 Novell,
Inc.\n" +
"Written by Martin Baulig ([EMAIL
PROTECTED])\n" +
" and Chris Toshok ([EMAIL
PROTECTED])\n");
return null;
@@ -3408,7 +3408,7 @@
// IDocumentableCommand
public CommandFamily Family { get { return
CommandFamily.Support; } }
- public string Description { get { return "Print
copyright/authour info."; } }
+ public string Description { get { return "Print
copyright/author info."; } }
public string Documentation { get { return ""; } }
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches