Commit 4acbfa8
committed
[gdb] Don't throw an exception for types that have no fields
The JsDbg frontend will call GetAllFields even for types such as
'char'. For such types, accessing .fields() will throw an exception,
which makes the Objdiff extension fail. Instead, just return [].1 parent 8bd22f2 commit 4acbfa8
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
158 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
159 | 166 | | |
160 | 167 | | |
161 | 168 | | |
| |||
0 commit comments