blob: debf503c504f914d6a46ab37c4e30e87439c55fa [file] [log] [blame]
Daniel Malea094881f2011-12-14 17:39:16 -05001/*
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
Stephen Hines2f6a4932012-05-03 12:27:13 -070033#ifndef BCC_GDBJITREGISTRAR_H
34#define BCC_GDBJITREGISTRAR_H
Daniel Malea094881f2011-12-14 17:39:16 -050035
36#include <cstddef>
37
38// Buffer for an in-memory object file in executable memory
39typedef char ObjectBuffer;
40
41void registerObjectWithGDB(const ObjectBuffer* Object, std::size_t Size);
42void deregisterObjectWithGDB(const ObjectBuffer* Object);
43
Stephen Hines2f6a4932012-05-03 12:27:13 -070044#endif // BCC_GDBJITREGISTRAR_H