Fix Linux build warnings due to redefinition of macros:

- add new header lldb-python.h to be included before other system headers
- short term fix (eventually python dependencies must be cleaned up)

Patch by Matt Kopec!

llvm-svn: 169341
This commit is contained in:
Daniel Malea 2012-12-05 00:20:57 +00:00
parent 90ba81150e
commit 93a64300f8
101 changed files with 227 additions and 0 deletions
lldb
include/lldb
source
API
Breakpoint
Commands
Core
Expression
Host/common
Interpreter
Plugins
Symbol
Target
lldb.cpp

View File

@ -0,0 +1,29 @@
//===-- lldb-python.h --------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef LLDB_lldb_python_h_
#define LLDB_lldb_python_h_
// Python.h needs to be included before any system headers in order to avoid redefinition of macros
#ifdef LLDB_DISABLE_PYTHON
// Python is disabled in this build
#else
#if defined (__APPLE__)
#include <Python/Python.h>
#else
#include <Python.h>
#endif
#endif // LLDB_DISABLE_PYTHON
#endif // LLDB_lldb_python_h_

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/lldb-types.h"
#include "lldb/Core/SourceManager.h"
#include "lldb/Core/Listener.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/API/SBDebugger.h"
#include "lldb/lldb-private.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/API/SBEvent.h"
#include "lldb/API/SBBroadcaster.h"
#include "lldb/API/SBStream.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/API/SBListener.h"
#include "lldb/API/SBBroadcaster.h"
#include "lldb/API/SBDebugger.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/API/SBProcess.h"
#include "lldb/lldb-defines.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/API/SBDebugger.h"
#include "lldb/API/SBSourceManager.h"
#include "lldb/API/SBTarget.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/API/SBTarget.h"
#include "lldb/lldb-public.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/API/SBThread.h"
#include "lldb/API/SBSymbolContext.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/API/SBTypeCategory.h"
#include "lldb/API/SBTypeFilter.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/API/SBTypeFilter.h"
#include "lldb/API/SBStream.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/API/SBTypeFormat.h"
#include "lldb/API/SBStream.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/API/SBTypeNameSpecifier.h"
#include "lldb/API/SBStream.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/API/SBTypeSummary.h"
#include "lldb/API/SBStream.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/API/SBTypeSynthetic.h"
#include "lldb/API/SBStream.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/API/SBValue.h"
#include "lldb/API/SBDeclaration.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
// C Includes
// C++ Includes
#include <string>

View File

@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
// C Includes
#include <sys/stat.h>

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "CommandObjectApropos.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "CommandObjectArgs.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "CommandObjectBreakpoint.h"
#include "CommandObjectBreakpointCommand.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
// C Includes
// C++ Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "CommandObjectCommands.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "CommandObjectDisassemble.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "CommandObjectExpression.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "CommandObjectFrame.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "CommandObjectHelp.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "CommandObjectLog.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "CommandObjectMemory.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Interpreter/CommandObjectMultiword.h"
// C Includes
// C++ Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "CommandObjectPlatform.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "CommandObjectPlugin.h"
#include "lldb/API/SBDebugger.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "CommandObjectProcess.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "CommandObjectQuit.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "CommandObjectRegister.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "CommandObjectSettings.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "CommandObjectSource.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "CommandObjectSyntax.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "CommandObjectTarget.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "CommandObjectThread.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "CommandObjectType.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "CommandObjectVersion.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "CommandObjectWatchpoint.h"
#include "CommandObjectWatchpointCommand.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
// C Includes
// C++ Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Core/CXXFormatterFunctions.h"
// needed to get ConvertUTF16/32ToUTF8

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Core/DataVisualization.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/API/SBDebugger.h"
#include "lldb/Core/Debugger.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Core/Disassembler.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
// C Includes
// C++ Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Core/FormatManager.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include <string>
#include "lldb/Core/InputReader.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
// C Includes
#include <pthread.h>
#include <stdio.h>

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Core/Error.h"
#include "lldb/Core/Module.h"
#include "lldb/Core/DataBuffer.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Core/PluginManager.h"
#include <limits.h>

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Core/SourceManager.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include <string.h>
#include <algorithm>

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Core/ValueObject.h"
// C Includes

View File

@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Core/ValueObjectSyntheticFilter.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Expression/ClangExpressionParser.h"
#include "lldb/Core/ArchSpec.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Host/Host.h"
#include "lldb/Core/ArchSpec.h"
#include "lldb/Core/ConstString.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
// C Includes
#include <getopt.h>
#include <cstdlib>

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include <string>
#include <vector>

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Interpreter/CommandObject.h"
#include <string>

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Interpreter/CommandObjectRegexCommand.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "CommandObjectScript.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Interpreter/OptionGroupPlatform.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Interpreter/OptionGroupValueObjectDisplay.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Interpreter/OptionGroupVariable.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Interpreter/OptionValueArch.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Interpreter/OptionValueDictionary.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Interpreter/OptionValueFileSpec.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Interpreter/OptionValueFormat.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Interpreter/OptionValueUUID.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Interpreter/Options.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Interpreter/Property.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Interpreter/ScriptInterpreter.h"
#include <string>

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Interpreter/ScriptInterpreterNone.h"
#include "lldb/Core/Stream.h"
#include "lldb/Core/StringList.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Breakpoint/StoppointCallbackContext.h"
#include "lldb/Core/DataBuffer.h"
#include "lldb/Core/DataBufferHeap.h"

View File

@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include <string>
#include <vector>

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "AppleObjCTrampolineHandler.h"
// C Includes

View File

@ -6,6 +6,9 @@
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#ifndef LLDB_DISABLE_PYTHON
#include "OperatingSystemPython.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "PlatformFreeBSD.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "PlatformLinux.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "PlatformDarwin.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "PlatformRemoteGDBServer.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
// C Includes
#include <errno.h>
#include <poll.h>

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
// C Includes
#include <errno.h>

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
// C Includes
#include <errno.h>

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "DynamicRegisterInfo.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
// C Includes
#include <errno.h>
#include <spawn.h>

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Symbol/ClangASTType.h"
#include "clang/AST/ASTConsumer.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Target/Process.h"
#include "lldb/lldb-private-log.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Target/StackFrame.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Target/StopInfo.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Target/Target.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
// C Includes
// C++ Includes
// Other libraries and framework includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/lldb-private-log.h"
#include "lldb/Breakpoint/BreakpointLocation.h"
#include "lldb/Core/Debugger.h"

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Target/ThreadPlan.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Target/ThreadPlan.h"
// C Includes

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/lldb-private.h"
#include "lldb/lldb-private-log.h"
#include "lldb/Core/ArchSpec.h"

Some files were not shown because too many files have changed in this diff Show More