f1c9372dc14b0428100d9380d1ad4de57ff506cf
[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 */
32 public UstDebugInfoLoadedBinaryFile(long baseAddress, String filePath, String buildId) {
33 super(filePath, buildId);
34 this.baseAddress = baseAddress;
35 }
36
37 /**
38 * Return the base address at which the object is loaded.
39 *
40 * @return The base address
41 */
42 public long getBaseAddress() {
43 return baseAddress;
44 }
45 }
This page took 0.033684 seconds and 4 git commands to generate.