Author: martin
Date: 2005-11-28 11:54:13 -0500 (Mon, 28 Nov 2005)
New Revision: 53562
Modified:
trunk/debugger/arch/Bfd.cs
Log:
Don't crash here if we don't have nptl_setxid in the pthreads vtable
Modified: trunk/debugger/arch/Bfd.cs
===================================================================
--- trunk/debugger/arch/Bfd.cs 2005-11-28 16:32:55 UTC (rev 53561)
+++ trunk/debugger/arch/Bfd.cs 2005-11-28 16:54:13 UTC (rev 53562)
@@ -1023,8 +1023,9 @@
TargetAddress nptl_setxid =
inferior.ReadAddress (
vtable + 51 * info.TargetAddressSize);
- inferior.BreakpointManager.InsertBreakpoint (
- inferior, new SetXidBreakpoint (this),
nptl_setxid);
+ if (!nptl_setxid.IsNull)
+
inferior.BreakpointManager.InsertBreakpoint (
+ inferior, new SetXidBreakpoint
(this), nptl_setxid);
}
if (dwarf != null) {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches