Skip to content

Commit

Permalink
Remove BPatch_dll.h (#1739)
Browse files Browse the repository at this point in the history
Since 67bc82c, this no longer serves a purpose. The definition for
V_libdyninstAPI was removed by dee8900 in 2011.
  • Loading branch information
hainest committed May 5, 2024
1 parent 67bc82c commit 170c01d
Show file tree
Hide file tree
Showing 26 changed files with 9 additions and 97 deletions.
2 changes: 0 additions & 2 deletions dyninstAPI/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ set(_public_headers
h/BPatch_basicBlockLoop.h
h/BPatch_binaryEdit.h
h/BPatch_callbacks.h
h/BPatch_dll.h
h/BPatch_edge.h
h/BPatch_enums.h
h/BPatch_flowGraph.h
Expand Down Expand Up @@ -298,7 +297,6 @@ dyninst_library(
dyninstAPI
PUBLIC_HEADER_FILES ${_public_headers}
SOURCE_FILES ${_sources}
DEFINES BPATCH_DLL_BUILD
DYNINST_DEPS common instructionAPI stackwalk pcontrol patchAPI parseAPI symtabAPI
PUBLIC_DEPS Dyninst::Boost_headers
PRIVATE_DEPS Dyninst::ElfUtils Threads::Threads
Expand Down
1 change: 0 additions & 1 deletion dyninstAPI/h/BPatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#define _BPatch_h_

#include <stdio.h>
#include "BPatch_dll.h"
#include "BPatch_Vector.h"
#include "BPatch_Set.h"
#include "BPatch_thread.h"
Expand Down
3 changes: 2 additions & 1 deletion dyninstAPI/h/BPatch_Set.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@
#include <assert.h>
#include <stdlib.h>
#include <set>
#include "BPatch_dll.h"
#include "BPatch_Vector.h"
#include <iostream>
#include <algorithm>
#include <iterator>
#include <functional>
#include "dyninst_visibility.h"

#if !defined(DO_INLINE_P)
#define DO_INLINE_P
#endif
Expand Down
1 change: 0 additions & 1 deletion dyninstAPI/h/BPatch_addressSpace.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#define _BPatch_addressSpace_h_

#include "boost/shared_ptr.hpp"
#include "BPatch_dll.h"
#include "BPatch_Vector.h"
#include "BPatch_enums.h"
#include "BPatch_instruction.h" // for register type
Expand Down
1 change: 0 additions & 1 deletion dyninstAPI/h/BPatch_basicBlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include <set>
#include <utility>
#include <vector>
#include "BPatch_dll.h"
#include "BPatch_Vector.h"
#include "BPatch_Set.h"
#include "BPatch_sourceBlock.h"
Expand Down
1 change: 0 additions & 1 deletion dyninstAPI/h/BPatch_basicBlockLoop.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include <set>
#include <vector>
#include "Annotatable.h"
#include "BPatch_dll.h"
#include "BPatch_Vector.h"
#include "BPatch_Set.h"
#include "BPatch_basicBlock.h"
Expand Down
1 change: 0 additions & 1 deletion dyninstAPI/h/BPatch_binaryEdit.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@


//#include "BPatch_snippet.h"
#include "BPatch_dll.h"
#include "BPatch_Vector.h"
#include "BPatch_image.h"
#include "BPatch_addressSpace.h"
Expand Down
70 changes: 0 additions & 70 deletions dyninstAPI/h/BPatch_dll.h

This file was deleted.

2 changes: 0 additions & 2 deletions dyninstAPI/h/BPatch_edge.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
#ifndef _BPatch_edge_h_
#define _BPatch_edge_h_

#include "BPatch_dll.h"

class BPatch_flowGraph;
class BPatch_basicBlock;
class BPatch_point;
Expand Down
2 changes: 1 addition & 1 deletion dyninstAPI/h/BPatch_flowGraph.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@
#include <set>
#include <map>
#include "Annotatable.h"
#include "BPatch_dll.h"
#include "BPatch_Vector.h"
#include "BPatch_Set.h"
#include "BPatch_basicBlock.h"
#include "BPatch_basicBlockLoop.h"
#include "BPatch_loopTreeNode.h"
#include "BPatch_edge.h"
#include "dyntypes.h"
#include "dyninst_visibility.h"

class func_instance;
class AddressSpace;
Expand Down
2 changes: 1 addition & 1 deletion dyninstAPI/h/BPatch_function.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include <string>
#include <vector>
#include "Annotatable.h"
#include "BPatch_dll.h"
#include "BPatch_Vector.h"
#include "BPatch_Set.h"
#include "BPatch_enums.h"
Expand All @@ -45,6 +44,7 @@
#include "BPatch_memoryAccess_NP.h"
#include "StackMod.h"
#include "dyntypes.h"
#include "dyninst_visibility.h"

class func_instance;

Expand Down
1 change: 0 additions & 1 deletion dyninstAPI/h/BPatch_image.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#ifndef _BPatch_image_h_
#define _BPatch_image_h_

#include "BPatch_dll.h"
#include "BPatch_sourceObj.h"
#include "BPatch_Vector.h"
#include "BPatch_module.h"
Expand Down
2 changes: 1 addition & 1 deletion dyninstAPI/h/BPatch_instruction.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
#ifndef _BPatch_instruction_h_
#define _BPatch_instruction_h_

#include "BPatch_dll.h"
#include "dyntypes.h"
#include "dyninst_visibility.h"
#include <string>

class BPatch_basicBlock;
Expand Down
1 change: 0 additions & 1 deletion dyninstAPI/h/BPatch_loopTreeNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@

#include <map>
#include <string>
#include "BPatch_dll.h"
#include "BPatch_Vector.h"
#include "BPatch_function.h"

Expand Down
2 changes: 1 addition & 1 deletion dyninstAPI/h/BPatch_module.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@

#ifndef _BPatch_module_h_
#define _BPatch_module_h_
#include "BPatch_dll.h"
#include "BPatch_Vector.h"
#include "BPatch_sourceObj.h"
#include "BPatch_enums.h"
#include "dyntypes.h"
#include "dyninst_visibility.h"
#include <stddef.h>
#include <vector>
#include <map>
Expand Down
1 change: 0 additions & 1 deletion dyninstAPI/h/BPatch_object.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include <set>
#include <utility>
#include "dyntypes.h"
#include "BPatch_dll.h"
#include "StackMod.h"

class mapped_object;
Expand Down
1 change: 0 additions & 1 deletion dyninstAPI/h/BPatch_parRegion.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#define _BPatch_parRegion_h_

#include <vector>
#include "BPatch_dll.h"
#include "BPatch_Vector.h"

class int_parRegion;
Expand Down
1 change: 0 additions & 1 deletion dyninstAPI/h/BPatch_point.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@

#include <string>
#include <vector>
#include "BPatch_dll.h"
#include "BPatch_Vector.h"
#include "BPatch_Set.h"
#include "BPatch_enums.h"
Expand Down
1 change: 0 additions & 1 deletion dyninstAPI/h/BPatch_process.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#define _BPatch_process_h_

#include "BPatch_snippet.h"
#include "BPatch_dll.h"
#include "BPatch_Vector.h"
// #include "BPatch_image.h"
#include "BPatch_addressSpace.h"
Expand Down
2 changes: 1 addition & 1 deletion dyninstAPI/h/BPatch_snippet.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#define _BPatch_snippet_h_

#include <string>
#include "BPatch_dll.h"
#include "dyninst_visibility.h"
#include "BPatch_Vector.h"
#include "BPatch_sourceObj.h"
#include "BPatch_type.h"
Expand Down
2 changes: 1 addition & 1 deletion dyninstAPI/h/BPatch_sourceBlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
#ifndef _BPatch_sourceBlock_h_
#define _BPatch_sourceBlock_h_

#include "BPatch_dll.h"
#include "BPatch_Vector.h"
#include "dyninst_visibility.h"
#include <set>

/** this class represents the basic blocks in the source
Expand Down
2 changes: 1 addition & 1 deletion dyninstAPI/h/BPatch_sourceObj.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
#ifndef _BPatch_sourceObj_h_
#define _BPatch_sourceObj_h_

#include "BPatch_dll.h"
#include "BPatch_Vector.h"
#include "dyninst_visibility.h"

class BPatch_type;
class BPatch_variableExpr;
Expand Down
1 change: 0 additions & 1 deletion dyninstAPI/h/BPatch_statement.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#ifndef _BPATCH_STATEMENT_H_
#define _BPATCH_STATEMENT_H_

#include "BPatch_dll.h"
#include "Statement.h"
class BPatch_module;

Expand Down
1 change: 0 additions & 1 deletion dyninstAPI/h/BPatch_thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@

#include <stdio.h>

#include "BPatch_dll.h"
#include "BPatch_Vector.h"
#include "BPatch_image.h"
#include "BPatch_snippet.h"
Expand Down
1 change: 0 additions & 1 deletion dyninstAPI/h/BPatch_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#ifndef _BPatch_type_h_
#define _BPatch_type_h_

#include "BPatch_dll.h"
#include "BPatch_Vector.h"
#include <string.h>
#include <assert.h>
Expand Down
1 change: 0 additions & 1 deletion dyninstAPI/h/StackMod.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#define _StackMod_h_

#include <string>
#include "BPatch_dll.h"
#include "stackanalysis.h"

class BPatch_function;
Expand Down

0 comments on commit 170c01d

Please sign in to comment.