Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] register bitelds show and read/write

Adding $<register_name> to the Expressions view would do the trick.
In DSF/GDB the implementations of the Variables and Expressions views is based on GDB's variable objects while the implementation of the Registers view uses the MI equivalent of "print". We should switch to variable objects in the Registers view (as it was done in CDI/GDB :-P). The patch was posted a couple of years ago but unfortunately never made it.

Mikhail

On 21/07/2016 12:35 PM, Doug Schaefer wrote:
I see bitfields in the variables view but I don’t remember seeing the size of the field. Is gdb aware of that? If so do we show it somewhere?

(Having fun, or not so much, debugging a USB driver for the Pi :) ).

Thanks!
Doug.

From: <cdt-dev-bounces@xxxxxxxxxxx> on behalf of 高国胜 <guosheng_gao@xxxxxxxxxxxxxx>
Reply-To: "CDT General developers list." <cdt-dev@xxxxxxxxxxx>
Date: Thursday, July 21, 2016 at 5:57 AM
To: "CDT General developers list." <cdt-dev@xxxxxxxxxxx>
Subject: [cdt-dev] register bitelds show and read/write

Hi

Does CDT support register bit-fields show and read/write

The MI packet from GDB like this

687,376 51-data-list-register-values --thread 1 d 371

687,377 48^done,register-values=[{number="371",value="{CU = 0, BEV = 01, IM = 0, KUo = 0, IEo = 0, K\

Up = 0, IEp = 0, KUc = 0, IEc = 0}"}]

 

Best regards!
---------------------------------------------
guosheng_gao 高国胜
Realsil Microelectronics Inc.
Tel: +86-512-6258-8966 ext.6617
E-Mail:guosheng_gao@xxxxxxxxxxxxxx
---------------------------------------------

 



_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev



Back to the top