AW: [RFC, patch] ptype bitfields show bitpos and bitsize

Leutwein Tobias (BEG-PT/ESB1) Tobias.Leutwein@de.bosch.com
Mon Feb 20 12:26:00 GMT 2012


I have reworked the patch for showing the bitpos and bitsize of bitfields through the
ptype command.
Now I didn't see any test cases, which passed before, failing.
Also there are some test cases regarding the new behavior of the ptype command added.
I haven't run the test suit on a big endian target, so probably the test cases will
fail on big endian targets.

I have tried to change the parameter "type" to "value" at the ..._print_type
functions, but I haven't got it to work. So the ..._print_type_through_value
functions are still needed.

Tobias


* ada-lang.c: Extension of ptype command for showing the bitpos
and bitsize of bitfield variables. ada_print_type_through_value
added.

* ada-lang.h: Extension of ptype command for showing the bitpos
and bitsize of bitfield variables. ada_print_type_through_value
added.

* ada-typeprint.c: Extension of ptype command for showing the
bitpos and bitsize of bitfield variables.
ada_print_type_through_valuem added.

* c-lang.c: Extension of ptype command for showing the bitpos
and bitsize of bitfield variables. c_print_type_through_value
added.

* c-lang.h: Extension of ptype command for showing the bitpos
and bitsize of bitfield variables. c_print_type_through_value
added.

* c-typeprint.c: Extension of ptype command for showing the
bitpos and bitsize of bitfield variables. c_print_type_common(),
c_type_print_base_common(), c_print_type_through_value() and
c_type_print_base_through_value() added.

* d-lang.c: Extension of ptype command for showing the
bitpos and bitsize of bitfield variables.
c_print_type_through_value() added.

* f-lang.c: Extension of ptype command for showing the
bitpos and bitsize of bitfield variables.
f_print_type_through_value() added.

* f-typeprint.c: Extension of ptype command for showing the
bitpos and bitsize of bitfield variables.
f_print_type_through_value() added.

* jv-lang.c: Extension of ptype command for showing the
bitpos and bitsize of bitfield variables.
java_print_type_through_value () added.

* jv-lang.h: Extension of ptype command for showing the
bitpos and bitsize of bitfield variables.
java_print_type_through_value() added.

* jv-typeprint.c: Extension of ptype command for showing the
bitpos and bitsize of bitfield variables.
java_print_type_through_value() added.

* language.c: Extension of ptype command for showing the
bitpos and bitsize of bitfield variables.
unk_lang_print_type_through_value() added.

* language.h: Extension of ptype command for showing the
bitpos and bitsize of bitfield variables.
LA_PRINT_TYPE_THROUGH_VALUE, la_print_type_through_value added.

* m2-lang.c: Extension of ptype command for showing the
bitpos and bitsize of bitfield variables.
m2_print_type_through_value() added.

* m2-lang.h: Extension of ptype command for showing the
bitpos and bitsize of bitfield variables.
m2_print_type_through_value() added.

* m2-typeprint.c: Extension of ptype command for showing the
bitpos and bitsize of bitfield variables.
m2_print_type_through_value() added.

* objc-lang.c: Extension of ptype command for showing the
bitpos and bitsize of bitfield variables. At
objc_language_defn c_print_type_through_value added.

* opencl-lang.c: Extension of ptype command for showing the
bitpos and bitsize of bitfield variables. At
opencl_language_defn c_print_type_through_value added.

* p-lang.c: Extension of ptype command for showing the
bitpos and bitsize of bitfield variables.
pascal_print_type_through_value() added.

* p-lang.h: Extension of ptype command for showing the
bitpos and bitsize of bitfield variables.
pascal_print_type_through_value() added.

* p-typeprint.c: Extension of ptype command for showing the
bitpos and bitsize of bitfield variables.
pascal_print_type_through_value() added.

* testsuite/gdb.base/bitfields2.exp: Extension of ptype command
for showing the bitpos and bitsize of bitfield variables. Test
cases for bitfield position und size added.

* testsuite/gdb.base/bitfields.exp: Extension of ptype command
for showing the bitpos and bitsize of bitfield variables. Test
cases for bitfield position und size added.

* typeprint.c: Extension of ptype command for showing the
bitpos and bitsize of bitfield variables.
type_print_through_value() added.

* value.h: Extension of ptype command for showing the
bitpos and bitsize of bitfield variables.
type_print_through_value() added.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdbPtype.diff
Type: application/octet-stream
Size: 28758 bytes
Desc: gdbPtype.diff
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20120220/538cb9b0/attachment.obj>


More information about the Gdb-patches mailing list