This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: [RFC] Replace complain() with complaint()


-	  complain (&anon_block_end_complaint, BLOCK_END (block), BLOCK_START (block));
+	  complaint (&symfile_complaints,
+		     "block end address 0x%lx less than block start address 0x%lx (patched it)",
+		     BLOCK_END (block), BLOCK_START (block));
Hmm, I don't think that is right. It should have attacted a -Wformat warning as block start/end are core-addrs. From memory though, a native i386 build has CORE_ADDR as a long which might explain why you don't see the warning.

Puzzled.

Andrew



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