diff options
| author | Fred Grim <fgrim@apple.com> | 2024-05-23 08:55:17 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-23 08:55:17 -0700 |
| commit | 942a6af6ad1d71c8f4219a2d4ab8ca886959c06d (patch) | |
| tree | 5daa6cb09dff6b8c1250e4600bd5edba7915da0e /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | dd32c3d36fbf21cf90d47ea83ad40ee959dd38d3 (diff) | |
[llvm-readobj] Fixes malformed json on JSON printed corefiles (#92835)
This patch fixes an issue where, when printing corefile notes with
llvm-readobj as json, the dumper generated llvm formatted output which
isn't valid json. This alters the dumper to, in the NT_FILE, note, dump
properly formatted json data.
Prior to this patch the JSON output was formatted like:
```
"Mapping": [
"Start": 4096,
"End": 8192,
"Offset": 12288,
"Filename": "/path/to/a.out"
],
```
Whereas now it is formatted as:
```
"Mappings": [
{
"Start": 4096,
"End": 8192,
"Offset": 12288,
"Filename": "/path/to/a.out"
},
```
Which is valid. Additionally the LLVM output has changed to match the
structure of the JSON output (i.e. instead of lists of keys it is a list
of dictionaries)
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
