lttng: Make use of "is_pic" event field in debug info analysis
[deliverable/tracecompass.git] / lttng / org.eclipse.tracecompass.lttng2.ust.core / src / org / eclipse / tracecompass / internal / lttng2 / ust / core / analysis / debuginfo / UstDebugInfoLoadedBinaryFile.java
1 /*******************************************************************************
2 * Copyright (c) 2015 EfficiOS Inc., Alexandre Montplaisir
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *******************************************************************************/
9
10 package org.eclipse.tracecompass.internal.lttng2.ust.core.analysis.debuginfo;
11
12 /**
13 * Simple extension to {@link UstDebugInfoBinaryFile} that adds the base address at
14 * which the given binary or library is loaded.
15 *
16 * @author Alexandre Montplaisir
17 */
18 public class UstDebugInfoLoadedBinaryFile extends UstDebugInfoBinaryFile {
19
20 private final long baseAddress;
21
22 /**
23 * Constructor
24 *
25 * @param baseAddress
26 * The base address at which the binary or library is loaded
27 * @param filePath
28 * The file path of the loaded binary/library
29 * @param buildId
30 * The build ID of the binary object
31 * @param isPic
32 * If the binary is position-independent or not
33 */
34 public UstDebugInfoLoadedBinaryFile(long baseAddress, String filePath, String buildId, boolean isPic) {
35 super(filePath, buildId, isPic);
36 this.baseAddress = baseAddress;
37 }
38
39 /**
40 * Return the base address at which the object is loaded.
41 *
42 * @return The base address
43 */
44 public long getBaseAddress() {
45 return baseAddress;
46 }
47 }
This page took 0.031966 seconds and 5 git commands to generate.