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]

[PATCH] target attributes [3/5] GDB access support


This patch add the target attributes support to let GDB access them as internal variables.


Thanks, Hui

2012-08-29 Hui Zhu <hui_zhu@mentor.com>

	* remote.c (remote_get_target_attribute_value,
	remote_set_target_attribute_value): New functions.
	(init_remote_ops): Set remote_ops.to_get_target_attribute_value
	and remote_ops.to_set_target_attribute_value.
	* target.c (update_current_target): Set
	to_get_target_attribute_value and to_set_target_attribute_value.
	* target.h (target_ops): Add to_get_target_attribute_value and
	to_set_target_attribute_value.
	(target_get_target_attribute_value,
	target_set_target_attribute_value): New macros.
	* value.c (target-attributes.h): New include.
	(value_of_internalvar): Add handler for target attributes.
	(set_internalvar): Ditto.

Attachment: target_attribute_gdb.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]