Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2022-10-28 12:37:02 +0300
committerCorinna Vinschen <corinna@vinschen.de>2022-10-28 12:37:02 +0300
commit1fc30147282ab0d3dc8bc742082d4745e5ffe352 (patch)
treefbf41d1eaceb55b25c1c8e8009a35059b15164b8 /winsup/utils/profiler.cc
parentf51e76da0af5ad404aaa61ed8e43fbf948695ba8 (diff)
Cygwin: utils: drop 32 bit considerations
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/utils/profiler.cc')
-rw-r--r--winsup/utils/profiler.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/winsup/utils/profiler.cc b/winsup/utils/profiler.cc
index 985946e5f..520e29d12 100644
--- a/winsup/utils/profiler.cc
+++ b/winsup/utils/profiler.cc
@@ -191,11 +191,10 @@ sample (CONTEXT *context, HANDLE h)
return 0ULL;
}
else
-//TODO this approach does not support 32-bit executables on 64-bit
#ifdef __x86_64__
return context->Rip;
#else
- return context->Eip;
+#error unimplemented for this target
#endif
}
@@ -495,8 +494,6 @@ find_text_section (LPVOID base, HANDLE h)
read_child ((void *) &lfanew, sizeof (lfanew), &idh->e_lfanew, h);
ptr += lfanew;
- /* Code handles 32- or 64-bit headers depending on compilation environment. */
- /*TODO It doesn't yet handle 32-bit headers on 64-bit Cygwin or v/v. */
IMAGE_NT_HEADERS *inth = (IMAGE_NT_HEADERS *) ptr;
read_child ((void *) &ntsig, sizeof (ntsig), &inth->Signature, h);
if (ntsig != IMAGE_NT_SIGNATURE)
@@ -507,7 +504,7 @@ find_text_section (LPVOID base, HANDLE h)
#ifdef __x86_64__
if (machine != IMAGE_FILE_MACHINE_AMD64)
#else
- if (machine != IMAGE_FILE_MACHINE_I386)
+#error unimplemented for this target
#endif
error (0, "target program was built for different machine architecture\n");
@@ -923,13 +920,11 @@ profile1 (FILE *ofile, pid_t pid)
case STATUS_BREAKPOINT:
break;
-#ifdef __x86_64__
case STATUS_GCC_THROW:
case STATUS_GCC_UNWIND:
case STATUS_GCC_FORCED:
status = DBG_EXCEPTION_NOT_HANDLED;
break;
-#endif
default:
status = DBG_EXCEPTION_NOT_HANDLED;