diff options
| author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2015-08-13 00:32:01 +0000 |
|---|---|---|
| committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2015-08-13 00:32:01 +0000 |
| commit | aab764965aa6fc21a2e143322ba9511f82130133 (patch) | |
| tree | 5f9f8cbb0918e543fa65e25539877e3da13c24dd /lldb/tools/debugserver/scripts | |
| parent | bdc8f2fb83706d8e38b8c879194ebba772e1f17c (diff) | |
| download | bcm5719-llvm-aab764965aa6fc21a2e143322ba9511f82130133.tar.gz bcm5719-llvm-aab764965aa6fc21a2e143322ba9511f82130133.zip | |
Remove DNBConfig.h
Summary:
This was no longer needed and hasn't been needed since r143244
in 2011. This removes everything associated with generating
or using it.
Reviewers: clayborg, jasonmolenda
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D11971
llvm-svn: 244850
Diffstat (limited to 'lldb/tools/debugserver/scripts')
| -rw-r--r-- | lldb/tools/debugserver/scripts/CMakeLists.txt | 14 | ||||
| -rw-r--r-- | lldb/tools/debugserver/scripts/Makefile | 21 | ||||
| -rw-r--r-- | lldb/tools/debugserver/scripts/dbgnub-config.pl | 72 |
3 files changed, 0 insertions, 107 deletions
diff --git a/lldb/tools/debugserver/scripts/CMakeLists.txt b/lldb/tools/debugserver/scripts/CMakeLists.txt deleted file mode 100644 index da8da5ff6b8..00000000000 --- a/lldb/tools/debugserver/scripts/CMakeLists.txt +++ /dev/null @@ -1,14 +0,0 @@ -set(LLVM_NO_RTTI 1) - -set(dnbconfig_builder ${CMAKE_CURRENT_SOURCE_DIR}/dbgnub-config.pl) -set(dnbconfig_header ${LLDB_BINARY_DIR}/tools/debugserver/DNBConfig.h) -set_source_files_properties(${dnbconfig_header} PROPERTIES GENERATED 1) - -add_custom_command(OUTPUT ${dnbconfig_header} - COMMAND SCRIPT_OUTPUT_FILE_0=${dnbconfig_header} perl ${dnbconfig_builder} - DEPENDS ${dnbconfig_builder} - ) -add_custom_target(generate_dnbconfig - DEPENDS ${dnbconfig_header} - ) - diff --git a/lldb/tools/debugserver/scripts/Makefile b/lldb/tools/debugserver/scripts/Makefile deleted file mode 100644 index 7eb1a18bb89..00000000000 --- a/lldb/tools/debugserver/scripts/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -##===- tools/debugserver/scripts/Makefile ------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## - -LLDB_LEVEL := ../../.. - -include $(LLDB_LEVEL)/Makefile - -DBCONFIG_FILE = "$(PROJ_OBJ_DIR)/../DNBConfig.h" - -$(DBCONFIG_FILE): - SCRIPT_OUTPUT_FILE_0=$(DBCONFIG_FILE) perl $(PROJ_SRC_DIR)/dbgnub-config.pl - -all:: $(DBCONFIG_FILE) - -.PHONY: all
\ No newline at end of file diff --git a/lldb/tools/debugserver/scripts/dbgnub-config.pl b/lldb/tools/debugserver/scripts/dbgnub-config.pl deleted file mode 100644 index 83e12b072d0..00000000000 --- a/lldb/tools/debugserver/scripts/dbgnub-config.pl +++ /dev/null @@ -1,72 +0,0 @@ -#!/usr/bin/perl - -use strict; -my $config_file = "$ENV{SCRIPT_OUTPUT_FILE_0}"; - -# Define the tests we need to run during this configuration -my @config_tests = ( - { - NAME => "HAVE_64_BIT_MACH_EXCEPTIONS", - TEST => "-e '$ENV{SDKROOT}/usr/include/mach/mach_exc.defs'", - COMMENT => "// Defined if we can use 64 bit mach exceptions", - FAIL => "#undef HAVE_64_BIT_MACH_EXCEPTIONS\ -#define mach_exception_data_t exception_data_t\ -#define mach_exception_data_type_t exception_data_type_t\ -#define mach_exc_server exc_server\ -#define MACH_EXCEPTION_CODES 0\n", - SUCCESS => "#define HAVE_64_BIT_MACH_EXCEPTIONS 1\n", - } -); - -#---------------------------------------------------------------------- -# Open the config file -#---------------------------------------------------------------------- -open(CONFIG, "> $config_file") || die "Couldn't open '$config_file' for writing: $!\n"; -print CONFIG "//" . "-" x 72 . "\n"; -print CONFIG "// This file is auto generated by a dbgnub-config.pl, do not edit by hand!\n"; -print CONFIG "//" . "-" x 72 . "\n"; -print CONFIG "// COMMAND LINE\n"; -print CONFIG "// " . join(' ', @ARGV) . "\n"; -print CONFIG "//" . "-" x 72 . "\n"; -print CONFIG "// ENVIRONMENT\n"; -my $key; -my $val; -while (($key, $val) = each %ENV) -{ - $val =~ s/\n/\n\/\/ /g; - printf CONFIG "// %s = %s\n", $key, $val; -} -print CONFIG "//" . "-" x 72 . "\n"; -print CONFIG "// SETTINGS\n"; -print CONFIG "// config_file: '$config_file'\n"; -print CONFIG "//" . "-" x 72 . "\n"; -print CONFIG "\n\n"; -print CONFIG "#ifndef __DBGNUB_CONFIG__\n"; -print CONFIG "#define __DBGNUB_CONFIG__\n"; - - -#---------------------------------------------------------------------- -# Run the tests -#---------------------------------------------------------------------- -foreach my $test_href (@config_tests) -{ - if (exists $test_href->{COMMENT}) { - print CONFIG "\n$test_href->{COMMENT}\n"; - } else { - print CONFIG "\n// $test_href->{NAME}\n"; - } - - my $test_result = eval "$test_href->{TEST}"; - if ($test_result != 0) - { - print CONFIG "$test_href->{SUCCESS}\n"; - } - else - { - print CONFIG "$test_href->{FAIL}\n"; - } -} - -print CONFIG "#endif // #ifndef __DBGNUB_CONFIG__\n"; -close(CONFIG); - |

