Class DebugImage
- All Implemented Interfaces:
JsonSerializable
,JsonUnknown
This was also used for non-apple platforms with similar debug setups.
A generic (new-style) native platform debug information file.
The `type` key must be one of:
- `macho` - `elf`: ELF images are used on Linux platforms. Their structure is identical to other native images. - `pe`
Examples:
```json { "type": "elf", "code_id": "68220ae2c65d65c1b6aaa12fa6765a6ec2f5f434", "code_file": "/lib/x86_64-linux-gnu/libgcc_s.so.1", "debug_id": "e20a2268-5dc6-c165-b6aa-a12fa6765a6e", "image_addr": "0x7f5140527000", "image_size": 90112, "image_vmaddr": "0x40000", "arch": "x86_64" } ```
```json { "type": "pe", "code_id": "57898e12145000", "code_file": "C:\\Windows\\System32\\dbghelp.dll", "debug_id": "9c2a902b-6fdf-40ad-8308-588a41d572a0-1", "debug_file": "dbghelp.pdb", "image_addr": "0x70850000", "image_size": "1331200", "image_vmaddr": "0x40000", "arch": "x86" } ```
```json { "type": "macho", "debug_id": "84a04d24-0e60-3810-a8c0-90a65e2df61a", "debug_file": "libDiagnosticMessagesClient.dylib", "code_file": "/usr/lib/libDiagnosticMessagesClient.dylib", "image_addr": "0x7fffe668e000", "image_size": 8192, "image_vmaddr": "0x40000", "arch": "x86_64", } ```
Proguard mapping file.
Proguard images refer to `mapping.txt` files generated when Proguard obfuscates function names. The Java SDK integrations assign this file a unique identifier, which has to be included in the list of images.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
getArch()
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable Long
@Nullable String
getType()
@Nullable String
getUuid()
void
serialize
(@NotNull ObjectWriter writer, @NotNull ILogger logger) void
void
setCodeFile
(@Nullable String codeFile) void
void
setDebugFile
(@Nullable String debugFile) void
setDebugId
(@Nullable String debugId) void
setImageAddr
(@Nullable String imageAddr) void
setImageSize
(long imageSize) Sets the image size.void
setImageSize
(@Nullable Long imageSize) void
void
setUnknown
(@Nullable Map<String, Object> unknown) void
-
Field Details
-
PROGUARD
- See Also:
-
JVM
- See Also:
-
-
Constructor Details
-
DebugImage
public DebugImage()
-
-
Method Details
-
getUuid
-
setUuid
-
getType
-
setType
-
getDebugId
-
setDebugId
-
getDebugFile
-
setDebugFile
-
getCodeFile
-
setCodeFile
-
getImageAddr
-
setImageAddr
-
getImageSize
-
setImageSize
-
setImageSize
public void setImageSize(long imageSize) Sets the image size.- Parameters:
imageSize
- the image size.
-
getArch
-
setArch
-
getCodeId
-
setCodeId
-
getUnknown
- Specified by:
getUnknown
in interfaceJsonUnknown
-
setUnknown
- Specified by:
setUnknown
in interfaceJsonUnknown
-
serialize
public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException - Specified by:
serialize
in interfaceJsonSerializable
- Throws:
IOException
-