https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92759
Bug ID: 92759
Summary: Typo in libstdcxx/v6/xmethods.py
Product: gcc
Version: 9.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: yyc1992 at gmail dot com
Target Milestone: ---
I get the following warning when running gdb/rr.
```
/usr/lib/../share/gcc-9.2.0/python/libstdcxx/v6/xmethods.py:731: SyntaxWarning:
list indices must be integers or slices, not str; perhaps you missed a comma?
refcounts = ['_M_refcount']['_M_pi']
```
Looking at the
[code](https://github.com/gcc-mirror/gcc/blob/daa87973f7a00bf3bb81d0644dd60f4efb83bb65/libstdc%2B%2B-v3/python/libstdcxx/v6/xmethods.py#L731)
I think that line should read
```
refcounts = obj['_M_refcount']['_M_pi']
```
instead.
I could submit a patch but I feel like it'll be faster/easier for someone here
to just fix this....