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]

[ARI] Add "bzero" (was: "Re: Build failure for x86_64-pc-mingw32 target")


Pierre,

Would you mind adding bzero to the list of functions in the ARI that
should not be used? I think this would be useful to have. The following
patch should work, but I'm not sure how you test it, and i'm also not
sure about the right category...

Thanks!
-- 
Joel
Index: gdb_ari.sh
===================================================================
RCS file: /cvs/gdbadmin/ss/gdb_ari.sh,v
retrieving revision 1.89
diff -u -p -r1.89 gdb_ari.sh
--- gdb_ari.sh	20 Apr 2009 15:55:23 -0000	1.89
+++ gdb_ari.sh	6 May 2009 16:00:22 -0000
@@ -1028,6 +1028,14 @@ Do not use xvasprintf(), instead use xst
 
 # More generic memory operations
 
+BEGIN { doc["bzero"] = "\
+Do not use bzero(), instead use memset()"
+    category["bzero"] = ari_regression
+}
+/(^|[^_[:alnum:]])bzero[[:space:]]*\(/ {
+    fail("bzero")
+}
+
 BEGIN { doc["strdup"] = "\
 Do not use strdup(), instead use xstrdup()";
     category["strdup"] = ari_regression

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