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 ChangeLog rs6000-aix-tdep.c


CVSROOT:	/cvs/src
Module name:	src
Changes by:	brobecke@sourceware.org	2012-10-19 19:58:18

Modified files:
	gdb            : ChangeLog rs6000-aix-tdep.c 

Log message:
	ppc-aix osabi sniffer: Turn test of bfd flavour into assertion
	
	Due to the way this function is registers, we know that given bfd's
	flavour should always be bfd_target_xcoff_flavour, thus making
	the former test always true, which means that this function should
	always return GDB_OSABI_AIX, and never return GDB_OSABI_UNKNOWN.
	
	This patch also fixes a typo detected by Tom Tromey that caused
	the test itself to be completely ineffective.
	
	gdb/ChangeLog (by Tom Tromey and Joel Brobecker):
	
	* rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
	inneffective if condition by gdb assertion.  Add function
	description comment.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.14744&r2=1.14745
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/rs6000-aix-tdep.c.diff?cvsroot=src&r1=1.24&r2=1.25


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