1 /* 2 * Copyright 2012, The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 // This file contains portions derived from LLVM, with the original copyright 18 // header below: 19 //===-- GDBJITRegistrar.h - Common Implementation shared by GDB-JIT users --===// 20 // 21 // The LLVM Compiler Infrastructure 22 // 23 // This file is distributed under the University of Illinois Open Source 24 // License. See LICENSE.TXT for details. 25 // 26 //===----------------------------------------------------------------------===// 27 // 28 // This file contains declarations of the interface an ExecutionEngine would use 29 // to register an in-memory object file with GDB. 30 // 31 //===----------------------------------------------------------------------===// 32 33 #ifndef BCC_EXECUTION_ENGINE_GDB_JIT_REGISTRAR_H 34 #define BCC_EXECUTION_ENGINE_GDB_JIT_REGISTRAR_H 35 36 #include <cstddef> 37 38 // Buffer for an in-memory object file in executable memory 39 typedef char ObjectBuffer; 40 41 void registerObjectWithGDB(const ObjectBuffer* Object, std::size_t Size); 42 void deregisterObjectWithGDB(const ObjectBuffer* Object); 43 44 #endif // BCC_EXECUTION_ENGINE_GDB_JIT_REGISTRAR_H 45