Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* RFA: probable rs6000-aix-tdep.c bug found by clang
@ 2012-10-17 20:06 Tom Tromey
  2012-10-17 21:24 ` Joel Brobecker
  0 siblings, 1 reply; 10+ messages in thread
From: Tom Tromey @ 2012-10-17 20:06 UTC (permalink / raw)
  To: gdb-patches

Here is another patch for a bug found by clang.

rs6000-aix-tdep.c:rs6000_aix_osabi_sniffer has an extraneous ";" that
makes the initial "if" irrelevant.

Based on indentation and logic I think that the fix is to remove the ";".
However, I have no decent way to test this and would appreciate someone
else looking at it.

Tom

2012-10-17  Tom Tromey  <tromey@redhat.com>

	* rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Remove extraneous
	semicolon.

diff --git a/gdb/rs6000-aix-tdep.c b/gdb/rs6000-aix-tdep.c
index 59cfa73..749c109 100644
--- a/gdb/rs6000-aix-tdep.c
+++ b/gdb/rs6000-aix-tdep.c
@@ -723,7 +723,7 @@ static enum gdb_osabi
 rs6000_aix_osabi_sniffer (bfd *abfd)
 {
   
-  if (bfd_get_flavour (abfd) == bfd_target_xcoff_flavour);
+  if (bfd_get_flavour (abfd) == bfd_target_xcoff_flavour)
     return GDB_OSABI_AIX;
 
   return GDB_OSABI_UNKNOWN;


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-10-19 20:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-17 20:06 RFA: probable rs6000-aix-tdep.c bug found by clang Tom Tromey
2012-10-17 21:24 ` Joel Brobecker
2012-10-18  9:10   ` Pedro Alves
2012-10-18 15:33     ` Joel Brobecker
2012-10-18 15:46       ` Pedro Alves
2012-10-18 15:58         ` Joel Brobecker
2012-10-18 16:06           ` Pedro Alves
2012-10-18 18:49       ` Joel Brobecker
2012-10-18 19:43         ` Tom Tromey
2012-10-19 20:00         ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox