This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
> That's not quite true. You need a variable, or to mess around with
> casting a pointer; you can't say "ptype my_type.member".
I hadn't realized this. I'm so used to doing it when debugging Ada
programs:
(gdb) ptype rec
type = record
a: integer;
b: integer;
end record
(gdb) ptype rec.a
type = <4-byte integer>
--
Joel
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |