From: Simon Marchi <simon.marchi@efficios.com>
To: gdb-patches@sourceware.org
Cc: Simon Marchi <simon.marchi@efficios.com>
Subject: [PATCH v2 0/7] Enable -Wmissing-declarations diagnostic
Date: Fri, 10 Jan 2020 22:00:00 -0000 [thread overview]
Message-ID: <20200110220027.26450-1-simon.marchi@efficios.com> (raw)
This is v2 of:
https://sourceware.org/ml/gdb-patches/2019-11/msg00805.html
Although a few patches of the original series were merged, since they
were valid fixes in any case.
I have re-generated the configure script for gdbserver, which I had
forgotten in v1, and it of course unearthed some more issues.
I have build-tested the series with gcc 7.4.0 and clang 9.
Simon Marchi (7):
gdb: add back declarations for _initialize functions
gdb: add declaration to Python init function
gdbserver: include hostio.h in hostio-errno.c
gdbserver: include gdbsupport/common-inferior.h in inferiors.c
gdbserver: make some functions static in linux-x86-low.c
gdbserver: set IP_AGENT_EXPORT_FUNC to static when not building IPA,
add declarations
Enable -Wmissing-declarations diagnostic
gdb/aarch64-fbsd-nat.c | 3 ++-
gdb/aarch64-fbsd-tdep.c | 3 ++-
gdb/aarch64-linux-nat.c | 3 ++-
gdb/aarch64-linux-tdep.c | 3 ++-
gdb/aarch64-newlib-tdep.c | 3 ++-
gdb/aarch64-tdep.c | 3 ++-
gdb/ada-exp.y | 3 ++-
gdb/ada-lang.c | 3 ++-
gdb/ada-tasks.c | 3 ++-
gdb/agent.c | 3 ++-
gdb/aix-thread.c | 3 ++-
gdb/alpha-bsd-nat.c | 3 ++-
gdb/alpha-linux-nat.c | 3 ++-
gdb/alpha-linux-tdep.c | 3 ++-
gdb/alpha-nbsd-tdep.c | 3 ++-
gdb/alpha-obsd-tdep.c | 3 ++-
gdb/alpha-tdep.c | 3 ++-
gdb/amd64-darwin-tdep.c | 3 ++-
gdb/amd64-dicos-tdep.c | 3 ++-
gdb/amd64-fbsd-nat.c | 3 ++-
gdb/amd64-fbsd-tdep.c | 3 ++-
gdb/amd64-linux-nat.c | 3 ++-
gdb/amd64-linux-tdep.c | 3 ++-
gdb/amd64-nbsd-nat.c | 3 ++-
gdb/amd64-nbsd-tdep.c | 3 ++-
gdb/amd64-obsd-nat.c | 3 ++-
gdb/amd64-obsd-tdep.c | 3 ++-
gdb/amd64-sol2-tdep.c | 3 ++-
gdb/amd64-tdep.c | 3 ++-
gdb/amd64-windows-nat.c | 3 ++-
gdb/amd64-windows-tdep.c | 3 ++-
gdb/annotate.c | 3 ++-
gdb/arc-newlib-tdep.c | 3 ++-
gdb/arc-tdep.c | 3 ++-
gdb/arch-utils.c | 3 ++-
gdb/arm-fbsd-nat.c | 3 ++-
gdb/arm-fbsd-tdep.c | 3 ++-
gdb/arm-linux-nat.c | 3 ++-
gdb/arm-linux-tdep.c | 3 ++-
gdb/arm-nbsd-nat.c | 3 ++-
gdb/arm-nbsd-tdep.c | 3 ++-
gdb/arm-obsd-tdep.c | 3 ++-
gdb/arm-pikeos-tdep.c | 3 ++-
gdb/arm-symbian-tdep.c | 3 ++-
gdb/arm-tdep.c | 3 ++-
gdb/arm-wince-tdep.c | 3 ++-
gdb/auto-load.c | 3 ++-
gdb/auxv.c | 3 ++-
gdb/avr-tdep.c | 3 ++-
gdb/ax-gdb.c | 3 ++-
gdb/bfin-linux-tdep.c | 3 ++-
gdb/bfin-tdep.c | 3 ++-
gdb/break-catch-sig.c | 3 ++-
gdb/break-catch-syscall.c | 3 ++-
gdb/break-catch-throw.c | 3 ++-
gdb/breakpoint.c | 3 ++-
gdb/bsd-uthread.c | 3 ++-
gdb/btrace.c | 3 ++-
gdb/charset.c | 3 ++-
gdb/cli/cli-cmds.c | 3 ++-
gdb/cli/cli-dump.c | 3 ++-
gdb/cli/cli-interp.c | 3 ++-
gdb/cli/cli-logging.c | 3 ++-
gdb/cli/cli-script.c | 3 ++-
gdb/cli/cli-style.c | 1 +
gdb/coff-pe-read.c | 3 ++-
gdb/coffread.c | 3 ++-
gdb/compile/compile-cplus-types.c | 1 +
gdb/compile/compile.c | 3 ++-
gdb/complaints.c | 3 ++-
gdb/completer.c | 3 ++-
gdb/configure | 3 ++-
gdb/copying.c | 3 ++-
gdb/corefile.c | 3 ++-
gdb/corelow.c | 3 ++-
gdb/cp-abi.c | 3 ++-
gdb/cp-namespace.c | 3 ++-
gdb/cp-support.c | 3 ++-
gdb/cp-valprint.c | 3 ++-
gdb/cris-linux-tdep.c | 3 ++-
gdb/cris-tdep.c | 3 ++-
gdb/csky-linux-tdep.c | 3 ++-
gdb/csky-tdep.c | 3 ++-
gdb/ctfread.c | 3 ++-
gdb/d-lang.c | 3 ++-
gdb/darwin-nat-info.c | 3 ++-
gdb/darwin-nat.c | 1 +
gdb/dbxread.c | 3 ++-
gdb/dcache.c | 3 ++-
gdb/disasm-selftests.c | 3 ++-
gdb/disasm.c | 3 ++-
gdb/dtrace-probe.c | 3 ++-
gdb/dummy-frame.c | 3 ++-
gdb/dwarf-index-cache.c | 1 +
gdb/dwarf-index-write.c | 1 +
gdb/dwarf2-frame-tailcall.c | 3 ++-
gdb/dwarf2-frame.c | 3 ++-
gdb/dwarf2expr.c | 3 ++-
gdb/dwarf2loc.c | 3 ++-
gdb/dwarf2read.c | 3 ++-
gdb/elfread.c | 3 ++-
gdb/exec.c | 3 ++-
gdb/extension.c | 3 ++-
gdb/f-lang.c | 3 ++-
gdb/f-valprint.c | 3 ++-
gdb/fbsd-nat.c | 3 ++-
gdb/fbsd-tdep.c | 3 ++-
gdb/filesystem.c | 3 ++-
gdb/findcmd.c | 3 ++-
gdb/findvar.c | 3 ++-
gdb/fork-child.c | 3 ++-
gdb/frame-base.c | 3 ++-
gdb/frame-unwind.c | 3 ++-
gdb/frame.c | 3 ++-
gdb/frv-linux-tdep.c | 3 ++-
gdb/frv-tdep.c | 3 ++-
gdb/ft32-tdep.c | 3 ++-
gdb/gcore.c | 3 ++-
gdb/gdb-demangle.c | 3 ++-
gdb/gdb_bfd.c | 3 ++-
gdb/gdbarch-selftests.c | 3 ++-
gdb/gdbarch.c | 3 ++-
gdb/gdbserver/configure | 3 ++-
gdb/gdbserver/hostio-errno.c | 3 +++
gdb/gdbserver/inferiors.c | 1 +
gdb/gdbserver/linux-x86-low.c | 26 +++++++++----------
gdb/gdbserver/tracepoint.c | 20 ++++++++++++++
gdb/gdbserver/tracepoint.h | 2 +-
gdb/gdbtypes.c | 3 ++-
gdb/gnu-nat.c | 3 ++-
gdb/gnu-v2-abi.c | 3 ++-
gdb/gnu-v3-abi.c | 3 ++-
gdb/go-lang.c | 3 ++-
gdb/go32-nat.c | 3 ++-
gdb/guile/guile.c | 3 ++-
gdb/h8300-tdep.c | 3 ++-
gdb/hppa-linux-nat.c | 3 ++-
gdb/hppa-linux-tdep.c | 3 ++-
gdb/hppa-nbsd-nat.c | 3 ++-
gdb/hppa-nbsd-tdep.c | 3 ++-
gdb/hppa-obsd-nat.c | 3 ++-
gdb/hppa-obsd-tdep.c | 3 ++-
gdb/hppa-tdep.c | 3 ++-
gdb/i386-bsd-nat.c | 3 ++-
gdb/i386-cygwin-tdep.c | 3 ++-
gdb/i386-darwin-nat.c | 3 ++-
gdb/i386-darwin-tdep.c | 3 ++-
gdb/i386-dicos-tdep.c | 3 ++-
gdb/i386-fbsd-nat.c | 3 ++-
gdb/i386-fbsd-tdep.c | 3 ++-
gdb/i386-gnu-nat.c | 3 ++-
gdb/i386-gnu-tdep.c | 3 ++-
gdb/i386-go32-tdep.c | 1 +
gdb/i386-linux-nat.c | 3 ++-
gdb/i386-linux-tdep.c | 3 ++-
gdb/i386-nbsd-nat.c | 3 ++-
gdb/i386-nbsd-tdep.c | 3 ++-
gdb/i386-nto-tdep.c | 3 ++-
gdb/i386-obsd-nat.c | 3 ++-
gdb/i386-obsd-tdep.c | 3 ++-
gdb/i386-sol2-nat.c | 3 ++-
gdb/i386-sol2-tdep.c | 3 ++-
gdb/i386-tdep.c | 3 ++-
gdb/i386-windows-nat.c | 3 ++-
gdb/ia64-libunwind-tdep.c | 3 ++-
gdb/ia64-linux-nat.c | 3 ++-
gdb/ia64-linux-tdep.c | 3 ++-
gdb/ia64-tdep.c | 3 ++-
gdb/ia64-vms-tdep.c | 3 ++-
gdb/infcall.c | 3 ++-
gdb/infcmd.c | 3 ++-
gdb/inflow.c | 3 ++-
gdb/infrun.c | 3 ++-
gdb/interps.c | 3 ++-
gdb/iq2000-tdep.c | 3 ++-
gdb/jit.c | 3 ++-
gdb/language.c | 3 ++-
gdb/linux-fork.c | 3 ++-
gdb/linux-nat.c | 3 ++-
gdb/linux-tdep.c | 3 ++-
gdb/linux-thread-db.c | 3 ++-
gdb/lm32-tdep.c | 3 ++-
gdb/m2-lang.c | 3 ++-
gdb/m32c-tdep.c | 3 ++-
gdb/m32r-linux-nat.c | 3 ++-
gdb/m32r-linux-tdep.c | 3 ++-
gdb/m32r-tdep.c | 3 ++-
gdb/m68hc11-tdep.c | 3 ++-
gdb/m68k-bsd-nat.c | 3 ++-
gdb/m68k-bsd-tdep.c | 3 ++-
gdb/m68k-linux-nat.c | 3 ++-
gdb/m68k-linux-tdep.c | 3 ++-
gdb/m68k-tdep.c | 3 ++-
gdb/machoread.c | 3 ++-
gdb/macrocmd.c | 3 ++-
gdb/macroscope.c | 3 ++-
gdb/maint-test-options.c | 1 +
gdb/maint-test-settings.c | 3 ++-
gdb/maint.c | 3 ++-
gdb/mdebugread.c | 3 ++-
gdb/memattr.c | 3 ++-
gdb/mep-tdep.c | 3 ++-
gdb/mi/mi-cmd-env.c | 3 ++-
gdb/mi/mi-cmds.c | 3 ++-
gdb/mi/mi-interp.c | 3 ++-
gdb/mi/mi-main.c | 3 ++-
gdb/microblaze-linux-tdep.c | 3 ++-
gdb/microblaze-tdep.c | 3 ++-
gdb/mips-fbsd-nat.c | 3 ++-
gdb/mips-fbsd-tdep.c | 3 ++-
gdb/mips-linux-nat.c | 3 ++-
gdb/mips-linux-tdep.c | 3 ++-
gdb/mips-nbsd-nat.c | 3 ++-
gdb/mips-nbsd-tdep.c | 3 ++-
gdb/mips-sde-tdep.c | 3 ++-
gdb/mips-tdep.c | 3 ++-
gdb/mips64-obsd-nat.c | 3 ++-
gdb/mips64-obsd-tdep.c | 3 ++-
gdb/mipsread.c | 3 ++-
gdb/mn10300-linux-tdep.c | 3 ++-
gdb/mn10300-tdep.c | 3 ++-
gdb/moxie-tdep.c | 3 ++-
gdb/msp430-tdep.c | 3 ++-
gdb/nds32-tdep.c | 3 ++-
gdb/nios2-linux-tdep.c | 3 ++-
gdb/nios2-tdep.c | 3 ++-
gdb/nto-procfs.c | 3 ++-
gdb/objc-lang.c | 3 ++-
gdb/observable.c | 3 ++-
gdb/opencl-lang.c | 3 ++-
gdb/or1k-linux-tdep.c | 3 ++-
gdb/or1k-tdep.c | 3 ++-
gdb/osabi.c | 3 ++-
gdb/osdata.c | 3 ++-
gdb/p-valprint.c | 3 ++-
gdb/parse.c | 3 ++-
gdb/ppc-fbsd-nat.c | 3 ++-
gdb/ppc-fbsd-tdep.c | 3 ++-
gdb/ppc-linux-nat.c | 3 ++-
gdb/ppc-linux-tdep.c | 3 ++-
gdb/ppc-nbsd-nat.c | 3 ++-
gdb/ppc-nbsd-tdep.c | 3 ++-
gdb/ppc-obsd-nat.c | 3 ++-
gdb/ppc-obsd-tdep.c | 3 ++-
gdb/printcmd.c | 3 ++-
gdb/probe.c | 3 ++-
gdb/proc-api.c | 3 ++-
gdb/proc-events.c | 3 ++-
gdb/proc-service.c | 3 ++-
gdb/procfs.c | 3 ++-
gdb/producer.c | 1 +
gdb/psymtab.c | 3 ++-
gdb/python/python.c | 4 ++-
gdb/ravenscar-thread.c | 1 +
gdb/record-btrace.c | 3 ++-
gdb/record-full.c | 3 ++-
gdb/record.c | 3 ++-
gdb/regcache-dump.c | 3 ++-
gdb/regcache.c | 3 ++-
gdb/reggroups.c | 3 ++-
gdb/remote-notif.c | 3 ++-
gdb/remote-sim.c | 3 ++-
gdb/remote.c | 3 ++-
gdb/reverse.c | 3 ++-
gdb/riscv-fbsd-nat.c | 3 ++-
gdb/riscv-fbsd-tdep.c | 3 ++-
gdb/riscv-linux-nat.c | 3 ++-
gdb/riscv-linux-tdep.c | 3 ++-
gdb/riscv-tdep.c | 3 ++-
gdb/rl78-tdep.c | 3 ++-
gdb/rs6000-aix-tdep.c | 3 ++-
gdb/rs6000-lynx178-tdep.c | 3 ++-
gdb/rs6000-nat.c | 3 ++-
gdb/rs6000-tdep.c | 3 ++-
gdb/run-on-main-thread.c | 1 +
gdb/rust-exp.y | 3 ++-
gdb/rx-tdep.c | 3 ++-
gdb/s12z-tdep.c | 3 ++-
gdb/s390-linux-nat.c | 3 ++-
gdb/s390-linux-tdep.c | 3 ++-
gdb/s390-tdep.c | 3 ++-
gdb/score-tdep.c | 3 ++-
gdb/ser-go32.c | 3 ++-
gdb/ser-mingw.c | 3 ++-
gdb/ser-pipe.c | 3 ++-
gdb/ser-tcp.c | 3 ++-
gdb/ser-uds.c | 3 ++-
gdb/ser-unix.c | 3 ++-
gdb/serial.c | 3 ++-
gdb/sh-linux-tdep.c | 3 ++-
gdb/sh-nbsd-nat.c | 3 ++-
gdb/sh-nbsd-tdep.c | 3 ++-
gdb/sh-tdep.c | 3 ++-
gdb/skip.c | 3 ++-
gdb/sol-thread.c | 3 ++-
gdb/solib-aix.c | 3 ++-
gdb/solib-darwin.c | 3 ++-
gdb/solib-dsbt.c | 3 ++-
gdb/solib-frv.c | 3 ++-
gdb/solib-svr4.c | 3 ++-
gdb/solib-target.c | 3 ++-
gdb/solib.c | 3 ++-
gdb/source-cache.c | 1 +
gdb/source.c | 3 ++-
gdb/sparc-linux-nat.c | 3 ++-
gdb/sparc-linux-tdep.c | 3 ++-
gdb/sparc-nat.c | 3 ++-
gdb/sparc-nbsd-nat.c | 3 ++-
gdb/sparc-nbsd-tdep.c | 3 ++-
gdb/sparc-obsd-tdep.c | 3 ++-
gdb/sparc-sol2-tdep.c | 3 ++-
gdb/sparc-tdep.c | 3 ++-
gdb/sparc64-fbsd-nat.c | 3 ++-
gdb/sparc64-fbsd-tdep.c | 3 ++-
gdb/sparc64-linux-nat.c | 3 ++-
gdb/sparc64-linux-tdep.c | 3 ++-
gdb/sparc64-nat.c | 3 ++-
gdb/sparc64-nbsd-nat.c | 3 ++-
gdb/sparc64-nbsd-tdep.c | 3 ++-
gdb/sparc64-obsd-nat.c | 3 ++-
gdb/sparc64-obsd-tdep.c | 3 ++-
gdb/sparc64-sol2-tdep.c | 3 ++-
gdb/sparc64-tdep.c | 3 ++-
gdb/stabsread.c | 3 ++-
gdb/stack.c | 3 ++-
gdb/stap-probe.c | 3 ++-
gdb/std-regs.c | 3 ++-
gdb/symfile-debug.c | 3 ++-
gdb/symfile-mem.c | 3 ++-
gdb/symfile.c | 3 ++-
gdb/symmisc.c | 3 ++-
gdb/symtab.c | 3 ++-
gdb/target-dcache.c | 3 ++-
gdb/target-descriptions.c | 3 ++-
gdb/thread.c | 3 ++-
gdb/tic6x-linux-tdep.c | 3 ++-
gdb/tic6x-tdep.c | 3 ++-
gdb/tilegx-linux-nat.c | 3 ++-
gdb/tilegx-linux-tdep.c | 3 ++-
gdb/tilegx-tdep.c | 3 ++-
gdb/tracectf.c | 3 ++-
gdb/tracefile-tfile.c | 3 ++-
gdb/tracefile.c | 3 ++-
gdb/tracepoint.c | 3 ++-
gdb/tui/tui-hooks.c | 3 ++-
gdb/tui/tui-interp.c | 3 ++-
gdb/tui/tui-layout.c | 3 ++-
gdb/tui/tui-regs.c | 3 ++-
gdb/tui/tui-stack.c | 3 ++-
gdb/tui/tui-win.c | 3 ++-
gdb/tui/tui.c | 3 ++-
gdb/typeprint.c | 3 ++-
gdb/ui-style.c | 1 +
gdb/unittests/array-view-selftests.c | 1 +
gdb/unittests/child-path-selftests.c | 1 +
gdb/unittests/cli-utils-selftests.c | 1 +
gdb/unittests/common-utils-selftests.c | 1 +
gdb/unittests/copy_bitwise-selftests.c | 1 +
gdb/unittests/environ-selftests.c | 1 +
gdb/unittests/filtered_iterator-selftests.c | 1 +
gdb/unittests/format_pieces-selftests.c | 1 +
gdb/unittests/function-view-selftests.c | 1 +
gdb/unittests/help-doc-selftests.c | 1 +
gdb/unittests/lookup_name_info-selftests.c | 1 +
gdb/unittests/main-thread-selftests.c | 1 +
gdb/unittests/memory-map-selftests.c | 1 +
gdb/unittests/memrange-selftests.c | 1 +
gdb/unittests/mkdir-recursive-selftests.c | 1 +
gdb/unittests/observable-selftests.c | 1 +
gdb/unittests/offset-type-selftests.c | 1 +
gdb/unittests/optional-selftests.c | 1 +
.../parse-connection-spec-selftests.c | 1 +
gdb/unittests/rsp-low-selftests.c | 1 +
gdb/unittests/scoped_fd-selftests.c | 1 +
gdb/unittests/scoped_mmap-selftests.c | 1 +
gdb/unittests/scoped_restore-selftests.c | 1 +
gdb/unittests/string_view-selftests.c | 1 +
gdb/unittests/style-selftests.c | 1 +
gdb/unittests/tracepoint-selftests.c | 1 +
gdb/unittests/tui-selftests.c | 1 +
gdb/unittests/unpack-selftests.c | 1 +
gdb/unittests/utils-selftests.c | 1 +
gdb/unittests/vec-utils-selftests.c | 1 +
gdb/unittests/xml-utils-selftests.c | 1 +
gdb/user-regs.c | 3 ++-
gdb/utils.c | 3 ++-
gdb/v850-tdep.c | 3 ++-
gdb/valops.c | 3 ++-
gdb/valprint.c | 3 ++-
gdb/value.c | 3 ++-
gdb/varobj.c | 3 ++-
gdb/vax-bsd-nat.c | 3 ++-
gdb/vax-nbsd-tdep.c | 3 ++-
gdb/vax-tdep.c | 3 ++-
gdb/warning.m4 | 3 ++-
gdb/windows-nat.c | 9 ++++---
gdb/windows-tdep.c | 3 ++-
gdb/x86-bsd-nat.c | 1 +
gdb/x86-linux-nat.c | 1 +
gdb/xcoffread.c | 3 ++-
gdb/xml-support.c | 4 ++-
gdb/xstormy16-tdep.c | 3 ++-
gdb/xtensa-linux-nat.c | 3 ++-
gdb/xtensa-linux-tdep.c | 3 ++-
gdb/xtensa-tdep.c | 3 ++-
405 files changed, 799 insertions(+), 371 deletions(-)
--
2.24.1
next reply other threads:[~2020-01-10 22:00 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-10 22:00 Simon Marchi [this message]
2020-01-10 22:00 ` [PATCH v2 2/7] gdb: add declaration to Python init function Simon Marchi
2020-01-10 22:00 ` [PATCH v2 4/7] gdbserver: include gdbsupport/common-inferior.h in inferiors.c Simon Marchi
2020-01-10 22:00 ` [PATCH v2 3/7] gdbserver: include hostio.h in hostio-errno.c Simon Marchi
2020-01-10 22:00 ` [PATCH v2 7/7] Enable -Wmissing-declarations diagnostic Simon Marchi
2020-01-11 3:33 ` Simon Marchi
2020-01-10 22:01 ` [PATCH v2 1/7] gdb: add back declarations for _initialize functions Simon Marchi
2020-01-11 3:32 ` Simon Marchi
2020-01-10 22:09 ` [PATCH v2 5/7] gdbserver: make some functions static in linux-x86-low.c Simon Marchi
2020-01-10 22:09 ` [PATCH v2 6/7] gdbserver: set IP_AGENT_EXPORT_FUNC to static when not building IPA, add declarations Simon Marchi
2020-01-11 18:11 ` [PATCH v2 0/7] Enable -Wmissing-declarations diagnostic Tom Tromey
2020-01-11 17:29 ` Tom Tromey
2020-01-12 7:06 ` Simon Marchi
2020-01-13 19:19 ` Simon Marchi
2020-01-12 8:13 ` Joel Brobecker
2020-01-12 20:23 ` Simon Marchi
2020-01-13 17:42 ` Tom Tromey
2020-01-13 19:10 ` Simon Marchi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200110220027.26450-1-simon.marchi@efficios.com \
--to=simon.marchi@efficios.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox