Skip to content

[lldb] Remove more workrounds for Android that have been fixed upstream #124176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

brad0
Copy link
Contributor

@brad0 brad0 commented Jan 23, 2025

Issues that were fixed 10+ years ago with Bionic libc.

@brad0 brad0 requested a review from JDevlieghere as a code owner January 23, 2025 19:08
@brad0 brad0 requested review from enh-google and removed request for JDevlieghere January 23, 2025 19:09
@llvmbot llvmbot added the lldb label Jan 23, 2025
@brad0 brad0 requested a review from labath January 23, 2025 19:09
@brad0 brad0 force-pushed the lldb_remove_android_2 branch from 4e10a6b to 6753c51 Compare January 23, 2025 19:09
@llvmbot
Copy link
Member

llvmbot commented Jan 23, 2025

@llvm/pr-subscribers-lldb

Author: Brad Smith (brad0)

Changes

Issues that were fixed 10+ years ago with Bionic libc.


Full diff: https://github.com/llvm/llvm-project/pull/124176.diff

2 Files Affected:

  • (modified) lldb/source/Host/posix/ProcessLauncherPosixFork.cpp (-4)
  • (modified) lldb/source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp (+1-1)
diff --git a/lldb/source/Host/posix/ProcessLauncherPosixFork.cpp b/lldb/source/Host/posix/ProcessLauncherPosixFork.cpp
index 22bf698c71716e..7d856954684c49 100644
--- a/lldb/source/Host/posix/ProcessLauncherPosixFork.cpp
+++ b/lldb/source/Host/posix/ProcessLauncherPosixFork.cpp
@@ -24,10 +24,6 @@
 #include <csignal>
 #include <sstream>
 
-#ifdef __ANDROID__
-#define PT_TRACE_ME PTRACE_TRACEME
-#endif
-
 #if defined(__linux__)
 #include <sys/personality.h>
 #endif
diff --git a/lldb/source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp b/lldb/source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp
index b202898ff438a6..6e5617664f7feb 100644
--- a/lldb/source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp
+++ b/lldb/source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp
@@ -8,7 +8,7 @@
 
 #include "ObjectContainerBSDArchive.h"
 
-#if defined(_WIN32) || defined(__ANDROID__) || defined(_AIX)
+#if defined(_WIN32) || defined(_AIX)
 // Defines from ar, missing on Windows
 #define SARMAG 8
 #define ARFMAG "`\n"

Issues that were fixed 10+ years ago with Bionic libc.
@brad0 brad0 force-pushed the lldb_remove_android_2 branch from 6753c51 to 7c56666 Compare January 23, 2025 19:34
@brad0 brad0 merged commit e289cb5 into llvm:main Jan 24, 2025
7 checks passed
@brad0 brad0 deleted the lldb_remove_android_2 branch January 24, 2025 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants