diff options
| author | Walnut <39544927+Walnut356@users.noreply.github.com> | 2025-01-21 03:23:01 -0600 |
|---|---|---|
| committer | Walnut <39544927+Walnut356@users.noreply.github.com> | 2025-01-21 03:23:01 -0600 |
| commit | a9495e01187a8aadb4500993d40ce7b27e1958d2 (patch) | |
| tree | f1b84bf3a23ad19c8df3685137444d77d16aa042 /src/etc/gdb_providers.py | |
| parent | 6067b36314ab5eb2eb47cecc464545ba58e1ad24 (diff) | |
| download | rust-a9495e01187a8aadb4500993d40ce7b27e1958d2.tar.gz rust-a9495e01187a8aadb4500993d40ce7b27e1958d2.zip | |
change lookup from `OsString.inner.inner.0` -> `OsString.inner.inner.bytes`
Diffstat (limited to 'src/etc/gdb_providers.py')
| -rw-r--r-- | src/etc/gdb_providers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/gdb_providers.py b/src/etc/gdb_providers.py index 34bb5c39909..c8f4a32cb17 100644 --- a/src/etc/gdb_providers.py +++ b/src/etc/gdb_providers.py @@ -71,7 +71,7 @@ class StdOsStringProvider(printer_base): self._valobj = valobj buf = self._valobj["inner"]["inner"] is_windows = "Wtf8Buf" in buf.type.name - vec = buf[ZERO_FIELD] if is_windows else buf + vec = buf["bytes"] if is_windows else buf self._length = int(vec["len"]) self._data_ptr = unwrap_unique_or_non_null(vec["buf"]["inner"]["ptr"]) |
