pub_tool_aspacehl.h revision ea8a88c21eecdd9e91c75ccbd3c864e708e2f41b
1ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn
2ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn/*--------------------------------------------------------------------*/
3ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn/*--- Services layered on top of m_aspacemgr.  pub_tool_aspacehl.h ---*/
4ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn/*--------------------------------------------------------------------*/
5ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn
6ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn/*
7ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn   This file is part of Valgrind, a dynamic binary instrumentation
8ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn   framework.
9ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn
100f157ddb404bcde7815a1c5bf2d7e41c114f3d73sewardj   Copyright (C) 2009-2013 Julian Seward
11ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn      jseward@acm.org
12ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn
13ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn   This program is free software; you can redistribute it and/or
14ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn   modify it under the terms of the GNU General Public License as
15ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn   published by the Free Software Foundation; either version 2 of the
16ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn   License, or (at your option) any later version.
17ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn
18ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn   This program is distributed in the hope that it will be useful, but
19ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn   WITHOUT ANY WARRANTY; without even the implied warranty of
20ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn   General Public License for more details.
22ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn
23ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn   You should have received a copy of the GNU General Public License
24ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn   along with this program; if not, write to the Free Software
25ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
26ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn   02111-1307, USA.
27ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn
28ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn   The GNU General Public License is contained in the file COPYING.
29ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn*/
30ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn
31ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn#ifndef __PUB_TOOL_ASPACEHL_H
32ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn#define __PUB_TOOL_ASPACEHL_H
33ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn
34535fb1b49a80f2e880f755ee618381de3e222ddfflorian#include "pub_tool_basics.h"   // VG_ macro
35535fb1b49a80f2e880f755ee618381de3e222ddfflorian
36ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn// Extract from aspacem a vector of the current segment start
37ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn// addresses.  The vector is dynamically allocated and should be freed
38ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn// by the caller when done.  REQUIRES m_mallocfree to be running.
39ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn// Writes the number of addresses required into *n_acquired.
40ea8a88c21eecdd9e91c75ccbd3c864e708e2f41bflorian// Only those segments are considered whose kind matches any of the kinds
41ea8a88c21eecdd9e91c75ccbd3c864e708e2f41bflorian// given in KIND_MASK.
42ea8a88c21eecdd9e91c75ccbd3c864e708e2f41bflorianextern Addr* VG_(get_segment_starts)( UInt kind_mask, /*OUT*/Int* n_acquired );
43ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn
44ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn#endif   // __PUB_TOOL_ASPACEHL_H
45ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn
46ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn/*--------------------------------------------------------------------*/
47ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn/*--- end                                                          ---*/
48ac1e03303a9e4b38c34fb600a88533b6c368e66fnjn/*--------------------------------------------------------------------*/
49