This is the mail archive of the gdb-cvs@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]

src/gdb/gdbserver ChangeLog linux-low.c linux- ...


CVSROOT:	/cvs/src
Module name:	src
Changes by:	palves@sourceware.org	2013-06-11 18:05:57

Modified files:
	gdb/gdbserver  : ChangeLog linux-low.c linux-low.h 

Log message:
	Lazily allocate 'struct regsets_info'::disabled_regsets.
	
	There's no need for every arch to pre-allocate disabled_regsets.
	Chances are the array won't be used.
	
	(I have a hunch that with some more work we could dispense with
	initialize_regsets_info.)
	
	Tested on x86_64 Fedora 17 w/ -lmcheck.
	
	gdb/gdbserver/
	2013-06-11  Pedro Alves  <palves@redhat.com>
	
	* linux-low.c (regset_disabled, disable_regset): New functions.
	(regsets_fetch_inferior_registers)
	(regsets_store_inferior_registers): Use them.
	(initialize_regsets_info); Don't allocate the disabled_regsets
	array here.
	* linux-low.h (struct regsets_info) <disabled_regsets>: Extend
	comment.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/gdbserver/ChangeLog.diff?cvsroot=src&r1=1.727&r2=1.728
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/gdbserver/linux-low.c.diff?cvsroot=src&r1=1.241&r2=1.242
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/gdbserver/linux-low.h.diff?cvsroot=src&r1=1.62&r2=1.63


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