|
From: <sv...@va...> - 2009-04-27 04:59:10
|
Author: njn
Date: 2009-04-27 05:59:02 +0100 (Mon, 27 Apr 2009)
New Revision: 9645
Log:
Some Darwin tweaks, including removing --trace-unknown-syscalls.
Modified:
branches/DARWIN/coregrind/m_initimg/initimg-darwin.c
branches/DARWIN/coregrind/m_mach/mach_basics.c
branches/DARWIN/coregrind/m_main.c
branches/DARWIN/coregrind/m_options.c
branches/DARWIN/coregrind/m_syswrap/syswrap-darwin.c
branches/DARWIN/coregrind/pub_core_options.h
Modified: branches/DARWIN/coregrind/m_initimg/initimg-darwin.c
===================================================================
--- branches/DARWIN/coregrind/m_initimg/initimg-darwin.c 2009-04-27 04:35:28 UTC (rev 9644)
+++ branches/DARWIN/coregrind/m_initimg/initimg-darwin.c 2009-04-27 04:59:02 UTC (rev 9645)
@@ -78,7 +78,6 @@
/* Get hold of a file descriptor which refers to the client
executable. This is needed for attaching to GDB. */
- // GrP fixme ...which doesn't work anyway
res = VG_(open)(exe_name, VKI_O_RDONLY, VKI_S_IRUSR);
if (!sr_isError(res))
VG_(cl_exec_fd) = sr_Res(res);
Modified: branches/DARWIN/coregrind/m_mach/mach_basics.c
===================================================================
--- branches/DARWIN/coregrind/m_mach/mach_basics.c 2009-04-27 04:35:28 UTC (rev 9644)
+++ branches/DARWIN/coregrind/m_mach/mach_basics.c 2009-04-27 04:59:02 UTC (rev 9645)
@@ -46,13 +46,6 @@
mach_port_name_t mach_task_self_ = 0;
-// DDD: doesn't get used...
-//mach_port_name_t mach_host_self(void)
-//{
-// return host_self_trap();
-//}
-
-
mach_port_name_t mach_thread_self(void)
{
return thread_self_trap();
@@ -87,7 +80,7 @@
reply = 0;
mach_task_self_ = task_self_trap();
- // GrP fixme host_page_size(mach_host_self(), &vm_page_size);
+ // GrP fixme host_page_size(host_self_trap(), &vm_page_size);
vm_page_size = 4096;
}
Modified: branches/DARWIN/coregrind/m_main.c
===================================================================
--- branches/DARWIN/coregrind/m_main.c 2009-04-27 04:35:28 UTC (rev 9644)
+++ branches/DARWIN/coregrind/m_main.c 2009-04-27 04:59:02 UTC (rev 9645)
@@ -416,8 +416,6 @@
else if VG_BOOL_CLO(arg, "--trace-redir", VG_(clo_trace_redir)) {}
else if VG_BOOL_CLO(arg, "--trace-syscalls", VG_(clo_trace_syscalls)) {}
- else if VG_BOOL_CLO(arg, "--trace-unknown-syscalls",
- VG_(clo_trace_unknown_syscalls)) {}
else if VG_BOOL_CLO(arg, "--wait-for-gdb", VG_(clo_wait_for_gdb)) {}
else if VG_STR_CLO (arg, "--db-command", VG_(clo_db_command)) {}
else if VG_STR_CLO (arg, "--sim-hints", VG_(clo_sim_hints)) {}
Modified: branches/DARWIN/coregrind/m_options.c
===================================================================
--- branches/DARWIN/coregrind/m_options.c 2009-04-27 04:35:28 UTC (rev 9644)
+++ branches/DARWIN/coregrind/m_options.c 2009-04-27 04:59:02 UTC (rev 9645)
@@ -68,7 +68,6 @@
UChar VG_(clo_profile_flags) = 0; // 00000000b
Int VG_(clo_trace_notbelow) = 999999999;
Bool VG_(clo_trace_syscalls) = False;
-Bool VG_(clo_trace_unknown_syscalls) = True; // GrP
Bool VG_(clo_trace_signals) = False;
Bool VG_(clo_trace_symtab) = False;
HChar* VG_(clo_trace_symtab_patt) = "*";
Modified: branches/DARWIN/coregrind/m_syswrap/syswrap-darwin.c
===================================================================
--- branches/DARWIN/coregrind/m_syswrap/syswrap-darwin.c 2009-04-27 04:35:28 UTC (rev 9644)
+++ branches/DARWIN/coregrind/m_syswrap/syswrap-darwin.c 2009-04-27 04:59:02 UTC (rev 9645)
@@ -1120,9 +1120,7 @@
default:
PRINT("sys_fcntl ( %ld, %ld [??] )", ARG1, ARG2);
- if (VG_(clo_trace_unknown_syscalls)) {
- VG_(printf)("UNKNOWN fcntl %ld!", ARG2);
- }
+ VG_(printf)("UNKNOWN fcntl %ld!", ARG2);
break;
}
}
@@ -1590,7 +1588,7 @@
// JRS: arguments are identical to sigprocmask
// (how, sigset_t*, sigset_t*). Perhaps behave identically?
static Bool warned;
- if (!warned && VG_(clo_trace_unknown_syscalls)) {
+ if (!warned) {
VG_(printf)("UNKNOWN __pthread_sigmask is unsupported. "
"This warning will not be repeated.\n");
warned = True;
Modified: branches/DARWIN/coregrind/pub_core_options.h
===================================================================
--- branches/DARWIN/coregrind/pub_core_options.h 2009-04-27 04:35:28 UTC (rev 9644)
+++ branches/DARWIN/coregrind/pub_core_options.h 2009-04-27 04:59:02 UTC (rev 9645)
@@ -112,8 +112,6 @@
extern Int VG_(clo_trace_notbelow);
/* DEBUG: print system calls? default: NO */
extern Bool VG_(clo_trace_syscalls);
-/* DEBUG: print unknown system calls? default: NO */ // DDD: undocumented
-extern Bool VG_(clo_trace_unknown_syscalls);
/* DEBUG: print signal details? default: NO */
extern Bool VG_(clo_trace_signals);
/* DEBUG: print symtab details? default: NO */
|