-
-EOF
-}
-
-
-print_table ()
-{
- categories=""
- for c in $1; do
- categories="${categories} categories[\"${c}\"] = 1 ;"
- done
- # Remember to prune the dir prefix from projects files
- # ari.*.idx: ::
- cat ${wwwdir}/ari.idx | $AWK >> ${newari} '
-function qsort (table,
- middle, tmp, left, nr_left, right, nr_right, result) {
- middle = ""
- for (middle in table) { break; }
- nr_left = 0;
- nr_right = 0;
- for (tmp in table) {
- if (tolower(tmp) < tolower(middle)) {
- nr_left++
- left[tmp] = tmp
- } else if (tolower(tmp) > tolower(middle)) {
- nr_right++
- right[tmp] = tmp
- }
- }
- #print "qsort " nr_left " " middle " " nr_right > "/dev/stderr"
- result = ""
- if (nr_left > 0) {
- result = qsort(left) SUBSEP
- }
- result = result middle
- if (nr_right > 0) {
- result = result SUBSEP qsort(right)
- }
- return result
-}
-function print_heading (nb_file, where, bug_i) {
- print ""
- print ""
- print "| File " nb_file " | "
- print "Total | "
- print " | "
- for (bug_i = 1; bug_i <= nr_bug; bug_i++) {
- bug = i2bug[bug_i];
- printf ""
- # The title names are offset by one. Otherwise, when the browser
- # jumps to the name it leaves out half the relevant column.
- #printf " ", bug
- printf " ", i2bug[bug_i-1]
- printf "", bug
- printf "%s", gensub(/_/, " ", "g", bug)
- printf "\n"
- printf " | \n"
- }
- #print " | "
- printf " | \n", i2bug[bug_i-1]
- print "Total | "
- print "File " nb_file " | "
- print "
"
-}
-function print_totals (where, bug_i) {
- print "Totals | "
- printf ""
- printf "%s", total
- printf ">"
- printf " | \n"
- print " | ";
- for (bug_i = 1; bug_i <= nr_bug; bug_i++) {
- bug = i2bug[bug_i];
- printf ""
- printf ""
- printf "%d", bug, bug_total[bug]
- printf "";
- printf "^", prev_file[bug, where], bug
- printf "v", next_file[bug, where], bug
- printf " ", where, bug
- printf " | ";
- print ""
- }
- print " | "
- printf ""
- printf "%s", total
- printf "<"
- printf " | \n"
- print "Totals | "
- print ""
-}
-BEGIN {
- FS = ":"
- '"${categories}"'
- nr_file = 0;
- nr_bug = 0;
-}
-{
- # ari.*.idx: ::
- bug = $1
- file = $2
- category = $3
- # Interested in this
- if (!(category in categories)) next
- # Totals
- db[bug, file] += 1
- bug_total[bug] += 1
- file_total[file] += 1
- total += 1
-}
-END {
-
- # Sort the files and bugs creating indexed lists.
- nr_bug = split(qsort(bug_total), i2bug, SUBSEP);
- nr_file = split(qsort(file_total), i2file, SUBSEP);
-
- # Dummy entries for first/last
- i2file[0] = 0
- i2file[-1] = -1
- i2bug[0] = 0
- i2bug[-1] = -1
-
- # Construct a cycle of next/prev links. The file/bug "0" and "-1"
- # are used to identify the start/end of the cycle. Consequently,
- # prev(0) = -1 (prev of start is the end) and next(-1) = 0 (next
- # of end is the start).
-
- # For all the bugs, create a cycle that goes to the prev / next file.
- for (bug_i = 1; bug_i <= nr_bug; bug_i++) {
- bug = i2bug[bug_i]
- prev = 0
- prev_file[bug, 0] = -1
- next_file[bug, -1] = 0
- for (file_i = 1; file_i <= nr_file; file_i++) {
- file = i2file[file_i]
- if ((bug, file) in db) {
- prev_file[bug, file] = prev
- next_file[bug, prev] = file
- prev = file
- }
- }
- prev_file[bug, -1] = prev
- next_file[bug, prev] = -1
- }
-
- # For all the files, create a cycle that goes to the prev / next bug.
- for (file_i = 1; file_i <= nr_file; file_i++) {
- file = i2file[file_i]
- prev = 0
- prev_bug[file, 0] = -1
- next_bug[file, -1] = 0
- for (bug_i = 1; bug_i <= nr_bug; bug_i++) {
- bug = i2bug[bug_i]
- if ((bug, file) in db) {
- prev_bug[file, bug] = prev
- next_bug[file, prev] = bug
- prev = bug
- }
- }
- prev_bug[file, -1] = prev
- next_bug[file, prev] = -1
- }
-
- print ""
- print "
"
- print_heading(nr_file, 0);
- print "
"
- print_totals(0);
- print "
"
-
- for (file_i = 1; file_i <= nr_file; file_i++) {
- file = i2file[file_i];
- pfile = gensub(/^'${project}'\//, "", 1, file)
- print ""
- print ""
- print "| " pfile " | "
- printf ""
- printf "%s", file_total[file]
- printf ">", file, next_bug[file, 0]
- printf " | \n"
- print " | "
- for (bug_i = 1; bug_i <= nr_bug; bug_i++) {
- bug = i2bug[bug_i];
- if ((bug, file) in db) {
- printf ""
- printf "%d", bug, db[bug, file]
- printf "^", prev_file[bug, file], bug
- printf "v", next_file[bug, file], bug
- printf " ", file, bug
- printf " | "
- print ""
- } else {
- print " | "
- #print " | "
- }
- }
- print " | "
- printf ""
- printf "%s", file_total[file]
- printf "<", file, prev_bug[file, -1]
- printf " | \n"
- print "" pfile " | "
- print "
"
- }
-
- print "
"
- print_totals(-1)
- print "
"
- print_heading(nr_file, -1);
- print "
"
- print ""
- print "
"
- print ""
-}
-'
-}
-
-
-# Make the scripts available
-cp ${aridir}/gdb_*.sh ${wwwdir}
-
-nb_files=`cd "${srcdir}" && /bin/sh ${aridir}/gdb_find.sh "${project}" | wc -l`
-
-echo "Total number of tested files is $nb_files"
-
-if [ "x$debug_awk" = "x" ]
-then
- debug_awk=0
-fi
-
-# Compute the ARI index - ratio of zero vs non-zero problems.
-indexes=`${AWK} -v debug=${debug_awk} -v nr="$nb_files" '
-BEGIN {
- FS=":"
-}
-{
- # ari.*.doc: :::
- bug = $1; count = $2; category = $3; doc = $4
-
- # legacy type error have at least one entry,
- #corresponding to the declaration.
- if (bug ~ /^legacy /) legacy++
- # Idem for deprecated_XXX symbols/functions.
- if (bug ~ /^deprecated /) deprecated++
-
- if (category !~ /^gdbarch$/) {
- bugs += count
- nrtests += 1
- }
- if (count == 0) {
- oks++
- }
-}
-END {
- if (debug == 1) {
- print "nb files: " nr
- print "tests/oks: " nrtests "/" oks
- print "bugs/tests: " bugs "/" nrtests
- print "bugs/oks: " bugs "/" oks
- print bugs "/ (" oks "+" legacy "+" deprecated ")"
- }
- # This value should be as low as possible
- print bugs / ( oks + legacy + deprecated )
-}
-' ${wwwdir}/ari.doc`
-
-# Merge, generating the ARI tables.
-if ${update_web_p}
-then
- echo "Create the ARI table" 1>&2
- oldari=${wwwdir}/old.html
- ari=${wwwdir}/index.html
- newari=${wwwdir}/new.html
- rm -f ${newari} ${newari}.gz
- cat <> ${newari}
-
-
-A.R. Index for GDB version ${version}
-
-
-
-A.R. Index for GDB version ${version}
-
-
-
-
-
-${indexes}
-You can not take this seriously!
-
-
-Also available:
-most recent branch
-|
-current
-|
-last release
-
-
-
-Last updated: `date -u`
-
-EOF
-
- print_toc 0 1 "internal regression" Critical <> ${newari} '
-BEGIN {
- FS = ":"
- '"$all2"'
-}
-{
- # ari.*.doc: :::
- bug = $1
- count = $2
- category = $3
- doc = $4
- if (!(category in all)) {
- print "" category ": no documentation
"
- }
-}
-'
-
- cat >> ${newari} <
-Input files:
-`( cd ${wwwdir} && ls ari.*.bug ari.idx ari.doc ) | while read f
-do
- echo "${f}"
-done`
-
-
-
-Scripts:
-`( cd ${wwwdir} && ls *.sh ) | while read f
-do
- echo "${f}"
-done`
-
-
-
-
-
-EOF
-
- for i in . .. ../..; do
- x=${wwwdir}/${i}/index.sh
- if test -x $x; then
- $x ${newari}
- break
- fi
- done
-
- gzip -c -v -9 ${newari} > ${newari}.gz
-
- cp ${ari} ${oldari}
- cp ${ari}.gz ${oldari}.gz
- cp ${newari} ${ari}
- cp ${newari}.gz ${ari}.gz
-
-fi # update_web_p
-
-# ls -l ${wwwdir}
-
-exit 0
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index 84b1480dbcb..114c608fde3 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -17404,7 +17404,7 @@ get_signatured_type (struct die_info *die, ULONGEST signature,
static struct type *
get_DW_AT_signature_type (struct die_info *die, const struct attribute *attr,
- struct dwarf2_cu *cu) /* ARI: editCase function */
+ struct dwarf2_cu *cu)
{
/* Yes, DW_AT_signature can use a non-ref_sig8 reference. */
if (attr->form_is_ref ())
diff --git a/gdb/event-top.c b/gdb/event-top.c
index 48dfb34c47f..0fb6eafec57 100644
--- a/gdb/event-top.c
+++ b/gdb/event-top.c
@@ -1038,7 +1038,7 @@ handle_fatal_signal (int sig)
#ifdef SIGABRT
signal (SIGABRT, SIG_DFL);
#endif
- abort (); /* ARI: abort */
+ abort ();
}
/* The SIGSEGV handler for this thread, or NULL if there is none. GDB
diff --git a/gdb/guile/scm-param.c b/gdb/guile/scm-param.c
index ee743217828..c94f8ef8f7f 100644
--- a/gdb/guile/scm-param.c
+++ b/gdb/guile/scm-param.c
@@ -250,7 +250,7 @@ pascm_make_param_smob (void)
SCM p_scm;
p_smob->cmd_class = no_class;
- p_smob->type = var_boolean; /* ARI: var_boolean */
+ p_smob->type = var_boolean;
p_smob->set_func = SCM_BOOL_F;
p_smob->show_func = SCM_BOOL_F;
p_scm = scm_new_smob (parameter_smob_tag, (scm_t_bits) p_smob);
@@ -614,7 +614,7 @@ compute_enum_list (SCM enum_values_scm, int arg_pos, const char *func_name)
static const scheme_integer_constant parameter_types[] =
{
- { "PARAM_BOOLEAN", param_boolean }, /* ARI: param_boolean */
+ { "PARAM_BOOLEAN", param_boolean },
{ "PARAM_AUTO_BOOLEAN", param_auto_boolean },
{ "PARAM_ZINTEGER", param_zinteger },
{ "PARAM_UINTEGER", param_uinteger },
@@ -993,7 +993,7 @@ gdbscm_make_parameter (SCM name_scm, SCM rest)
char *s;
char *name;
int cmd_class = no_class;
- int param_type = param_boolean; /* ARI: param_boolean */
+ int param_type = param_boolean;
SCM enum_list_scm = SCM_BOOL_F;
SCM set_func = SCM_BOOL_F, show_func = SCM_BOOL_F;
char *doc = NULL, *set_doc = NULL, *show_doc = NULL;
diff --git a/gdb/python/py-param.c b/gdb/python/py-param.c
index 35f55c3dbd0..c5f7ff57e1a 100644
--- a/gdb/python/py-param.c
+++ b/gdb/python/py-param.c
@@ -81,7 +81,7 @@ static struct {
int value;
} parm_constants[] =
{
- { "PARAM_BOOLEAN", param_boolean }, /* ARI: param_boolean */
+ { "PARAM_BOOLEAN", param_boolean },
{ "PARAM_AUTO_BOOLEAN", param_auto_boolean },
{ "PARAM_UINTEGER", param_uinteger },
{ "PARAM_INTEGER", param_integer },
@@ -858,7 +858,7 @@ parmpy_init (PyObject *self, PyObject *args, PyObject *kwds)
return -1;
}
- if (parmclass != param_boolean /* ARI: param_boolean */
+ if (parmclass != param_boolean
&& parmclass != param_auto_boolean
&& parmclass != param_uinteger && parmclass != param_integer
&& parmclass != param_string && parmclass != param_string_noescape
diff --git a/gdb/target-float.c b/gdb/target-float.c
index dd64b23636b..31b5ac642a7 100644
--- a/gdb/target-float.c
+++ b/gdb/target-float.c
@@ -646,7 +646,7 @@ host_float_ops::from_target (const struct floatformat *fmt,
{
double dto;
- floatformat_to_double /* ARI: floatformat_to_double */
+ floatformat_to_double
(fmt->split_half ? fmt->split_half : fmt, from, &dto);
*to = (T) dto;
return;
diff --git a/gdb/unittests/format_pieces-selftests.c b/gdb/unittests/format_pieces-selftests.c
index c5f3cf74f1d..96d3d478399 100644
--- a/gdb/unittests/format_pieces-selftests.c
+++ b/gdb/unittests/format_pieces-selftests.c
@@ -74,7 +74,7 @@ test_format_specifier ()
{
/* The format string here ends with a % sequence, to ensure we don't
see a trailing empty literal piece. */
- check ("Hello\\t %d%llx%%d%d", /* ARI: %ll */
+ check ("Hello\\t %d%llx%%d%d",
{
{"Hello\t ", literal_piece, 0},
{"%d", int_arg, 0},
@@ -105,7 +105,7 @@ test_gdb_formats ()
static void
test_format_int_sizes ()
{
- check ("Hello\\t %hu%lu%llu%zu%tu", /* ARI: %ll */
+ check ("Hello\\t %hu%lu%llu%zu%tu",
{
{"Hello\t ", literal_piece, 0},
{"%hu", int_arg, 0},
@@ -115,7 +115,7 @@ test_format_int_sizes ()
{"%tu", ptrdiff_t_arg, 0},
});
- check ("Hello\\t %hx%lx%llx%zx%tx", /* ARI: %ll */
+ check ("Hello\\t %hx%lx%llx%zx%tx",
{
{"Hello\t ", literal_piece, 0},
{"%hx", int_arg, 0},
@@ -125,7 +125,7 @@ test_format_int_sizes ()
{"%tx", ptrdiff_t_arg, 0},
});
- check ("Hello\\t %ho%lo%llo%zo%to", /* ARI: %ll */
+ check ("Hello\\t %ho%lo%llo%zo%to",
{
{"Hello\t ", literal_piece, 0},
{"%ho", int_arg, 0},
@@ -135,7 +135,7 @@ test_format_int_sizes ()
{"%to", ptrdiff_t_arg, 0},
});
- check ("Hello\\t %hd%ld%lld%zd%td", /* ARI: %ll */
+ check ("Hello\\t %hd%ld%lld%zd%td",
{
{"Hello\t ", literal_piece, 0},
{"%hd", int_arg, 0},
diff --git a/gdb/utils.c b/gdb/utils.c
index 4a46ed34f4c..96c60544213 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -214,7 +214,7 @@ abort_with_message (const char *msg)
else
gdb_puts (msg, gdb_stderr);
- abort (); /* ARI: abort */
+ abort ();
}
/* Dump core trying to increase the core soft limit to hard limit first. */
@@ -233,7 +233,7 @@ dump_core (void)
a backtrace to the console here. */
signal (SIGABRT, SIG_DFL);
- abort (); /* ARI: abort */
+ abort ();
}
/* Check whether GDB will be able to dump core using the dump_core
@@ -383,7 +383,7 @@ internal_vproblem (struct internal_problem *problem,
does not fix this problem. This is the solution suggested
at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509. */
if (write (STDERR_FILENO, msg, sizeof (msg)) != sizeof (msg))
- abort (); /* ARI: abort */
+ abort ();
exit (1);
}
}
diff --git a/gdbsupport/common-utils.cc b/gdbsupport/common-utils.cc
index cc1344d8159..3ae3afcc380 100644
--- a/gdbsupport/common-utils.cc
+++ b/gdbsupport/common-utils.cc
@@ -103,7 +103,7 @@ string_printf (const char* fmt, ...)
/* C++11 and later guarantee std::string uses contiguous memory and
always includes the terminating '\0'. */
va_start (vp, fmt);
- vsprintf (&str[0], fmt, vp); /* ARI: vsprintf */
+ vsprintf (&str[0], fmt, vp);
va_end (vp);
return str;
@@ -125,7 +125,7 @@ string_vprintf (const char* fmt, va_list args)
/* C++11 and later guarantee std::string uses contiguous memory and
always includes the terminating '\0'. */
- vsprintf (&str[0], fmt, args); /* ARI: vsprintf */
+ vsprintf (&str[0], fmt, args);
return str;
}
@@ -163,7 +163,7 @@ string_vappendf (std::string &str, const char *fmt, va_list args)
/* C++11 and later guarantee std::string uses contiguous memory and
always includes the terminating '\0'. */
- vsprintf (&str[curr_size], fmt, args); /* ARI: vsprintf */
+ vsprintf (&str[curr_size], fmt, args);
return str;
}
diff --git a/gdbsupport/gdb-xfree.h b/gdbsupport/gdb-xfree.h
index aa5403de58a..fd14bf5748f 100644
--- a/gdbsupport/gdb-xfree.h
+++ b/gdbsupport/gdb-xfree.h
@@ -32,9 +32,9 @@ data type. Use operator delete instead.");
if (ptr != NULL)
#ifdef GNULIB_NAMESPACE
- GNULIB_NAMESPACE::free (ptr); /* ARI: free */
+ GNULIB_NAMESPACE::free (ptr);
#else
- free (ptr); /* ARI: free */
+ free (ptr);
#endif
}
diff --git a/gdbsupport/new-op.cc b/gdbsupport/new-op.cc
index 24bd480078d..a0185f6c862 100644
--- a/gdbsupport/new-op.cc
+++ b/gdbsupport/new-op.cc
@@ -55,7 +55,7 @@ operator new (std::size_t sz)
if (sz == 0)
sz = 1;
- void *p = malloc (sz); /* ARI: malloc */
+ void *p = malloc (sz);
if (p == NULL)
{
/* If the user decides to continue debugging, throw a
@@ -82,7 +82,7 @@ operator new (std::size_t sz, const std::nothrow_t&) noexcept
/* malloc (0) is unpredictable; avoid it. */
if (sz == 0)
sz = 1;
- return malloc (sz); /* ARI: malloc */
+ return malloc (sz);
}
void *