aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2000-07-30 01:48:28 +0000
committerKevin Buettner <kevinb@redhat.com>2000-07-30 01:48:28 +0000
commitfba45db2faf619e71856ee38ec63949c0ef6903e (patch)
tree107efc21d2b12f54d84b59e75251449e3d5fd096 /gdb
parent29e6d33b03a5e39540d17bc8235573b1dac13341 (diff)
downloadfsf-binutils-gdb-fba45db2faf619e71856ee38ec63949c0ef6903e.zip
fsf-binutils-gdb-fba45db2faf619e71856ee38ec63949c0ef6903e.tar.gz
fsf-binutils-gdb-fba45db2faf619e71856ee38ec63949c0ef6903e.tar.bz2
Protoization.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog72
-rw-r--r--gdb/a29k-tdep.c81
-rw-r--r--gdb/a68v-nat.c6
-rw-r--r--gdb/abug-rom.c12
-rw-r--r--gdb/alpha-nat.c39
-rw-r--r--gdb/alpha-tdep.c103
-rw-r--r--gdb/annotate.c152
-rw-r--r--gdb/arc-tdep.c52
-rw-r--r--gdb/arch-utils.c17
-rw-r--r--gdb/ax-gdb.c189
-rw-r--r--gdb/ax-general.c69
-rw-r--r--gdb/blockframe.c192
-rw-r--r--gdb/breakpoint.c497
-rw-r--r--gdb/buildsym.c4
-rw-r--r--gdb/c-lang.c23
-rw-r--r--gdb/c-typeprint.c58
-rw-r--r--gdb/c-valprint.c21
-rw-r--r--gdb/ch-exp.c117
-rw-r--r--gdb/ch-lang.c45
-rw-r--r--gdb/ch-typeprint.c15
-rw-r--r--gdb/ch-valprint.c52
-rw-r--r--gdb/cli-out.c63
-rw-r--r--gdb/coff-solib.c7
-rw-r--r--gdb/coffread.c143
-rw-r--r--gdb/command.c121
-rw-r--r--gdb/complaints.c6
-rw-r--r--gdb/copying.c10
-rw-r--r--gdb/core-aout.c13
-rw-r--r--gdb/core-regset.c2
-rw-r--r--gdb/core-sol2.c2
-rw-r--r--gdb/corefile.c69
-rw-r--r--gdb/corelow.c55
-rw-r--r--gdb/cp-valprint.c74
-rw-r--r--gdb/cpu32bug-rom.c12
-rw-r--r--gdb/cxux-nat.c26
-rw-r--r--gdb/d10v-tdep.c178
-rw-r--r--gdb/d30v-tdep.c100
-rw-r--r--gdb/dbug-rom.c12
-rw-r--r--gdb/dbxread.c144
-rw-r--r--gdb/dcache.c45
-rw-r--r--gdb/delta68-nat.c10
-rw-r--r--gdb/demangle.c13
-rw-r--r--gdb/dink32-rom.c17
-rw-r--r--gdb/dpx2-nat.c6
-rw-r--r--gdb/dsrec.c10
-rw-r--r--gdb/dstread.c116
-rw-r--r--gdb/dve3900-rom.c71
-rw-r--r--gdb/dwarf2read.c201
-rw-r--r--gdb/dwarfread.c189
-rw-r--r--gdb/elfread.c45
-rw-r--r--gdb/environ.c24
-rw-r--r--gdb/eval.c77
-rw-r--r--gdb/event-top.c3
-rw-r--r--gdb/exec.c67
-rw-r--r--gdb/expprint.c34
-rw-r--r--gdb/f-lang.c64
-rw-r--r--gdb/f-typeprint.c38
-rw-r--r--gdb/f-valprint.c69
-rw-r--r--gdb/findvar.c19
-rw-r--r--gdb/fork-child.c13
-rw-r--r--gdb/fr30-tdep.c47
-rw-r--r--gdb/gdbarch.c5
-rw-r--r--gdb/gdbserver/gdbreplay.c26
-rw-r--r--gdb/gdbserver/low-hppabsd.c41
-rw-r--r--gdb/gdbserver/low-linux.c55
-rw-r--r--gdb/gdbserver/low-lynx.c42
-rw-r--r--gdb/gdbserver/low-nbsd.c44
-rw-r--r--gdb/gdbserver/low-sim.c40
-rw-r--r--gdb/gdbserver/low-sparc.c34
-rw-r--r--gdb/gdbserver/low-sun3.c34
-rw-r--r--gdb/gdbserver/remote-utils.c59
-rw-r--r--gdb/gdbserver/utils.c3
-rw-r--r--gdb/gdbtypes.c241
-rw-r--r--gdb/gnu-nat.c56
-rw-r--r--gdb/h8300-tdep.c86
-rw-r--r--gdb/h8500-tdep.c81
-rw-r--r--gdb/hp-psymtab-read.c106
-rw-r--r--gdb/hp-symtab-read.c162
-rw-r--r--gdb/hp300ux-nat.c23
-rw-r--r--gdb/hppa-tdep.c246
-rw-r--r--gdb/hppab-nat.c12
-rw-r--r--gdb/hppah-nat.c138
-rw-r--r--gdb/hppam3-nat.c6
-rw-r--r--gdb/hpread.c159
-rw-r--r--gdb/hpux-thread.c71
-rw-r--r--gdb/i386-linux-nat.c14
-rw-r--r--gdb/i386-stub.c11
-rw-r--r--gdb/i386-tdep.c55
-rw-r--r--gdb/i386aix-nat.c24
-rw-r--r--gdb/i386b-nat.c25
-rw-r--r--gdb/i386ly-tdep.c3
-rw-r--r--gdb/i386m3-nat.c22
-rw-r--r--gdb/i386mach-nat.c5
-rw-r--r--gdb/i386nbsd-nat.c15
-rw-r--r--gdb/i386v-nat.c36
-rw-r--r--gdb/i386v4-nat.c14
-rw-r--r--gdb/i387-tdep.c20
-rw-r--r--gdb/i960-tdep.c39
-rw-r--r--gdb/ia64-linux-nat.c18
-rw-r--r--gdb/ia64-tdep.c4
-rw-r--r--gdb/infcmd.c142
-rw-r--r--gdb/inflow.c55
-rw-r--r--gdb/infptrace.c42
-rw-r--r--gdb/infrun.c3
-rw-r--r--gdb/inftarg.c149
-rw-r--r--gdb/infttrace.c372
-rw-r--r--gdb/irix4-nat.c19
-rw-r--r--gdb/irix5-nat.c56
-rw-r--r--gdb/jv-lang.c86
-rw-r--r--gdb/jv-typeprint.c19
-rw-r--r--gdb/jv-valprint.c33
-rw-r--r--gdb/kdb-start.c2
-rw-r--r--gdb/kod-cisco.c4
-rw-r--r--gdb/kod.c2
-rw-r--r--gdb/language.c191
-rw-r--r--gdb/lin-thread.c91
-rw-r--r--gdb/linux-thread.c113
-rw-r--r--gdb/lynx-nat.c39
-rw-r--r--gdb/m2-lang.c23
-rw-r--r--gdb/m2-typeprint.c8
-rw-r--r--gdb/m2-valprint.c14
-rw-r--r--gdb/m3-nat.c349
-rw-r--r--gdb/m32r-rom.c48
-rw-r--r--gdb/m32r-stub.c94
-rw-r--r--gdb/m32r-tdep.c76
-rw-r--r--gdb/m68hc11-tdep.c6
-rw-r--r--gdb/m68k-stub.c4
-rw-r--r--gdb/m68k-tdep.c59
-rw-r--r--gdb/m68klinux-nat.c15
-rw-r--r--gdb/m68knbsd-nat.c15
-rw-r--r--gdb/m88k-nat.c12
-rw-r--r--gdb/m88k-tdep.c53
-rw-r--r--gdb/mac-nat.c36
-rw-r--r--gdb/mac-xdep.c65
-rw-r--r--gdb/maint.c47
-rw-r--r--gdb/mcore-rom.c4
-rw-r--r--gdb/mcore-tdep.c2
-rw-r--r--gdb/mdebugread.c183
-rw-r--r--gdb/mem-break.c20
-rw-r--r--gdb/mi/mi-cmds.c2
-rw-r--r--gdb/mi/mi-main.c9
-rw-r--r--gdb/mi/mi-out.c60
-rw-r--r--gdb/mi/mi-parse.c2
-rw-r--r--gdb/minsyms.c80
-rw-r--r--gdb/mips-nat.c22
-rw-r--r--gdb/mips-tdep.c13
-rw-r--r--gdb/mipsm3-nat.c6
-rw-r--r--gdb/mipsread.c25
-rw-r--r--gdb/mipsv4-nat.c17
-rw-r--r--gdb/mn10200-tdep.c41
-rw-r--r--gdb/mn10300-tdep.c83
-rw-r--r--gdb/mon960-rom.c15
-rw-r--r--gdb/monitor.c169
-rw-r--r--gdb/news-xdep.c3
-rw-r--r--gdb/nindy-tdep.c4
-rw-r--r--gdb/nlm/gdbserve.c51
-rw-r--r--gdb/nlm/i386.c20
-rw-r--r--gdb/nlm/ppc.c29
-rw-r--r--gdb/nlmread.c20
-rw-r--r--gdb/ns32k-tdep.c29
-rw-r--r--gdb/ns32km3-nat.c6
-rw-r--r--gdb/ns32knbsd-nat.c16
-rw-r--r--gdb/objfiles.c63
-rw-r--r--gdb/ocd.c152
-rw-r--r--gdb/op50-rom.c6
-rw-r--r--gdb/os9kread.c61
-rw-r--r--gdb/osfsolib.c43
-rw-r--r--gdb/p-lang.c28
-rw-r--r--gdb/p-typeprint.c45
-rw-r--r--gdb/p-valprint.c83
-rw-r--r--gdb/pa64solib.c109
-rw-r--r--gdb/parse.c100
-rw-r--r--gdb/ppc-bdm.c16
-rw-r--r--gdb/ppc-linux-nat.c2
-rw-r--r--gdb/ppc-linux-tdep.c8
-rw-r--r--gdb/ppcbug-rom.c16
-rw-r--r--gdb/ppcnbsd-nat.c15
-rw-r--r--gdb/printcmd.c163
-rw-r--r--gdb/proc-api.c60
-rw-r--r--gdb/proc-events.c61
-rw-r--r--gdb/proc-flags.c9
-rw-r--r--gdb/proc-why.c12
-rw-r--r--gdb/procfs.c369
-rw-r--r--gdb/ptx4-nat.c14
-rw-r--r--gdb/remote-adapt.c114
-rw-r--r--gdb/remote-array.c121
-rw-r--r--gdb/remote-bug.c50
-rw-r--r--gdb/remote-e7000.c167
-rw-r--r--gdb/remote-eb.c79
-rw-r--r--gdb/remote-es.c138
-rw-r--r--gdb/remote-est.c12
-rw-r--r--gdb/remote-hms.c12
-rw-r--r--gdb/remote-mips.c278
-rw-r--r--gdb/remote-mm.c119
-rw-r--r--gdb/remote-nindy.c64
-rw-r--r--gdb/remote-nrom.c30
-rw-r--r--gdb/remote-os9k.c103
-rw-r--r--gdb/remote-rdi.c97
-rw-r--r--gdb/remote-rdp.c115
-rw-r--r--gdb/remote-sds.c117
-rw-r--r--gdb/remote-sim.c89
-rw-r--r--gdb/remote-st.c95
-rw-r--r--gdb/remote-udi.c106
-rw-r--r--gdb/remote-utils.c68
-rw-r--r--gdb/remote-vx.c149
-rw-r--r--gdb/remote-vx29k.c6
-rw-r--r--gdb/remote-vx68.c6
-rw-r--r--gdb/remote-vx960.c6
-rw-r--r--gdb/remote-vxmips.c6
-rw-r--r--gdb/remote-vxsparc.c6
-rw-r--r--gdb/remote.c448
-rw-r--r--gdb/rom68k-rom.c12
-rw-r--r--gdb/rs6000-tdep.c4
-rw-r--r--gdb/scm-exp.c24
-rw-r--r--gdb/scm-lang.c42
-rw-r--r--gdb/scm-valprint.c53
-rw-r--r--gdb/ser-e7kpc.c57
-rw-r--r--gdb/ser-go32.c55
-rw-r--r--gdb/ser-mac.c42
-rw-r--r--gdb/ser-ocd.c41
-rw-r--r--gdb/ser-unix.c4
-rw-r--r--gdb/sh-stub.c12
-rw-r--r--gdb/sh-tdep.c125
-rw-r--r--gdb/sh3-rom.c24
-rw-r--r--gdb/sol-thread.c113
-rw-r--r--gdb/solib.c59
-rw-r--r--gdb/somread.c31
-rw-r--r--gdb/somsolib.c95
-rw-r--r--gdb/source.c96
-rw-r--r--gdb/sparc-nat.c10
-rw-r--r--gdb/sparc-stub.c33
-rw-r--r--gdb/sparc-tdep.c149
-rw-r--r--gdb/sparcl-stub.c35
-rw-r--r--gdb/sparcl-tdep.c89
-rw-r--r--gdb/sparclet-rom.c17
-rw-r--r--gdb/sparclet-stub.c40
-rw-r--r--gdb/stabsread.c220
-rw-r--r--gdb/stack.c204
-rw-r--r--gdb/standalone.c146
-rw-r--r--gdb/stop-gdb.c4
-rw-r--r--gdb/stuff.c11
-rw-r--r--gdb/sun3-nat.c8
-rw-r--r--gdb/sun386-nat.c18
-rw-r--r--gdb/symfile.c282
-rw-r--r--gdb/symm-nat.c55
-rw-r--r--gdb/symm-tdep.c5
-rw-r--r--gdb/symmisc.c70
-rw-r--r--gdb/symtab.c238
-rw-r--r--gdb/target.c356
-rw-r--r--gdb/thread.c119
-rw-r--r--gdb/tic80-tdep.c44
-rw-r--r--gdb/top.c259
-rw-r--r--gdb/tracepoint.c217
-rw-r--r--gdb/tui/tui-file.c24
-rw-r--r--gdb/tui/tui.c2
-rw-r--r--gdb/tui/tuiLayout.c2
-rw-r--r--gdb/tui/tuiRegs.c2
-rw-r--r--gdb/tui/tuiStack.c2
-rw-r--r--gdb/tui/tuiWin.c2
-rw-r--r--gdb/typeprint.c33
-rw-r--r--gdb/ui-file.c87
-rw-r--r--gdb/ui-out.c193
-rw-r--r--gdb/ultra3-nat.c15
-rw-r--r--gdb/ultra3-xdep.c18
-rw-r--r--gdb/umax-xdep.c4
-rw-r--r--gdb/utils.c300
-rw-r--r--gdb/v850-tdep.c54
-rw-r--r--gdb/v850ice.c81
-rw-r--r--gdb/valarith.c68
-rw-r--r--gdb/valops.c236
-rw-r--r--gdb/valprint.c128
-rw-r--r--gdb/values.c163
-rw-r--r--gdb/varobj.c182
-rw-r--r--gdb/vax-tdep.c19
-rw-r--r--gdb/w65-tdep.c52
-rw-r--r--gdb/w89k-rom.c17
-rw-r--r--gdb/win32-nat.c23
-rw-r--r--gdb/wince.c23
-rw-r--r--gdb/windows-nat.c23
-rw-r--r--gdb/wrapper.c46
-rw-r--r--gdb/xcoffread.c137
-rw-r--r--gdb/xcoffsolib.c18
-rw-r--r--gdb/xmodem.c22
-rw-r--r--gdb/z8k-tdep.c76
284 files changed, 5720 insertions, 13265 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 18b85ab..dbece5d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,75 @@
+2000-07-29 Kevin Buettner <kevinb@redhat.com>
+
+ * a29k-tdep.c, a68v-nat.c, abug-rom.c, alpha-nat.c,
+ alpha-tdep.c, annotate.c, arc-tdep.c, arch-utils.c, ax-gdb.c,
+ ax-general.c, blockframe.c, breakpoint.c, buildsym.c,
+ c-lang.c, c-typeprint.c, c-valprint.c, ch-exp.c, ch-lang.c,
+ ch-typeprint.c, ch-valprint.c, cli-out.c, coff-solib.c,
+ coffread.c, command.c, complaints.c, copying.c, core-aout.c,
+ core-regset.c, core-sol2.c, corefile.c, corelow.c,
+ cp-valprint.c, cpu32bug-rom.c, cxux-nat.c, d10v-tdep.c,
+ d30v-tdep.c, dbug-rom.c, dbxread.c, dcache.c, delta68-nat.c,
+ demangle.c, dink32-rom.c, dpx2-nat.c, dsrec.c, dstread.c,
+ dve3900-rom.c, dwarf2read.c, dwarfread.c, elfread.c,
+ environ.c, eval.c, event-top.c, exec.c, expprint.c, f-lang.c,
+ f-typeprint.c, f-valprint.c, findvar.c, fork-child.c,
+ fr30-tdep.c, gdbarch.c, gdbserver/gdbreplay.c,
+ gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
+ gdbserver/low-lynx.c, gdbserver/low-nbsd.c,
+ gdbserver/low-sim.c, gdbserver/low-sparc.c,
+ gdbserver/low-sun3.c, gdbserver/remote-utils.c,
+ gdbserver/utils.c, gdbtypes.c, gnu-nat.c, h8300-tdep.c,
+ h8500-tdep.c, hp-psymtab-read.c, hp-symtab-read.c,
+ hp300ux-nat.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c,
+ hppam3-nat.c, hpread.c, hpux-thread.c, i386-linux-nat.c,
+ i386-stub.c, i386-tdep.c, i386aix-nat.c, i386b-nat.c,
+ i386ly-tdep.c, i386m3-nat.c, i386mach-nat.c, i386nbsd-nat.c,
+ i386v-nat.c, i386v4-nat.c, i387-tdep.c, i960-tdep.c,
+ ia64-linux-nat.c, ia64-tdep.c, infcmd.c, inflow.c,
+ infptrace.c, infrun.c, inftarg.c, infttrace.c, irix4-nat.c,
+ irix5-nat.c, jv-lang.c, jv-typeprint.c, jv-valprint.c,
+ kdb-start.c, kod-cisco.c, kod.c, language.c, lin-thread.c,
+ linux-thread.c, lynx-nat.c, m2-lang.c, m2-typeprint.c,
+ m2-valprint.c, m3-nat.c, m32r-rom.c, m32r-stub.c, m32r-tdep.c,
+ m68hc11-tdep.c, m68k-stub.c, m68k-tdep.c, m68klinux-nat.c,
+ m68knbsd-nat.c, m88k-nat.c, m88k-tdep.c, mac-nat.c,
+ mac-xdep.c, maint.c, mcore-rom.c, mcore-tdep.c, mdebugread.c,
+ mem-break.c, mi/mi-cmds.c, mi/mi-main.c, mi/mi-out.c,
+ mi/mi-parse.c, minsyms.c, mips-nat.c, mips-tdep.c,
+ mipsm3-nat.c, mipsread.c, mipsv4-nat.c, mn10200-tdep.c,
+ mn10300-tdep.c, mon960-rom.c, monitor.c, news-xdep.c,
+ nindy-tdep.c, nlm/gdbserve.c, nlm/i386.c, nlm/ppc.c,
+ nlmread.c, ns32k-tdep.c, ns32km3-nat.c, ns32knbsd-nat.c,
+ objfiles.c, ocd.c, op50-rom.c, os9kread.c, osfsolib.c,
+ p-lang.c, p-typeprint.c, p-valprint.c, pa64solib.c, parse.c,
+ ppc-bdm.c, ppc-linux-nat.c, ppc-linux-tdep.c, ppcbug-rom.c,
+ ppcnbsd-nat.c, printcmd.c, proc-api.c, proc-events.c,
+ proc-flags.c, proc-why.c, procfs.c, ptx4-nat.c,
+ remote-adapt.c, remote-array.c, remote-bug.c, remote-e7000.c,
+ remote-eb.c, remote-es.c, remote-est.c, remote-hms.c,
+ remote-mips.c, remote-mm.c, remote-nindy.c, remote-nrom.c,
+ remote-os9k.c, remote-rdi.c, remote-rdp.c, remote-sds.c,
+ remote-sim.c, remote-st.c, remote-udi.c, remote-utils.c,
+ remote-vx.c, remote-vx29k.c, remote-vx68.c, remote-vx960.c,
+ remote-vxmips.c, remote-vxsparc.c, remote.c, rom68k-rom.c,
+ rs6000-tdep.c, scm-exp.c, scm-lang.c, scm-valprint.c,
+ ser-e7kpc.c, ser-go32.c, ser-mac.c, ser-ocd.c, ser-unix.c,
+ sh-stub.c, sh-tdep.c, sh3-rom.c, sol-thread.c, solib.c,
+ somread.c, somsolib.c, source.c, sparc-nat.c, sparc-stub.c,
+ sparc-tdep.c, sparcl-stub.c, sparcl-tdep.c, sparclet-rom.c,
+ sparclet-stub.c, stabsread.c, stack.c, standalone.c,
+ stop-gdb.c, stuff.c, sun3-nat.c, sun386-nat.c, symfile.c,
+ symm-nat.c, symm-tdep.c, symmisc.c, symtab.c, target.c,
+ thread.c, tic80-tdep.c, top.c, tracepoint.c, tui/tui-file.c,
+ tui/tui.c, tui/tuiLayout.c, tui/tuiRegs.c, tui/tuiStack.c,
+ tui/tuiWin.c, typeprint.c, ui-file.c, ui-out.c, ultra3-nat.c,
+ ultra3-xdep.c, umax-xdep.c, utils.c, v850-tdep.c, v850ice.c,
+ valarith.c, valops.c, valprint.c, values.c, varobj.c,
+ vax-tdep.c, w65-tdep.c, w89k-rom.c, win32-nat.c, wince.c,
+ wrapper.c, xcoffread.c, xcoffsolib.c, xmodem.c, z8k-tdep.c:
+ Convert old-style, pre-ISO function definitions to prototyped
+ form.
+
2000-07-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* sh-tdep.c (sh_gdbarch_init): For sh4 initialize
diff --git a/gdb/a29k-tdep.c b/gdb/a29k-tdep.c
index 5370106..4d307b7 100644
--- a/gdb/a29k-tdep.c
+++ b/gdb/a29k-tdep.c
@@ -46,9 +46,7 @@ static CORE_ADDR rstack_high_address = UINT_MAX;
/* Should call_function allocate stack space for a struct return? */
/* On the a29k objects over 16 words require the caller to allocate space. */
int
-a29k_use_struct_convention (gcc_p, type)
- int gcc_p;
- struct type *type;
+a29k_use_struct_convention (int gcc_p, struct type *type)
{
return (TYPE_LENGTH (type) > 16 * 4);
}
@@ -83,11 +81,7 @@ struct prologue_info
frame pointer is being used. */
CORE_ADDR
-examine_prologue (pc, rsize, msize, mfp_used)
- CORE_ADDR pc;
- unsigned *msize;
- unsigned *rsize;
- int *mfp_used;
+examine_prologue (CORE_ADDR pc, unsigned *rsize, unsigned *msize, int *mfp_used)
{
long insn;
CORE_ADDR p = pc;
@@ -338,8 +332,7 @@ done:
to reach some "real" code. */
CORE_ADDR
-a29k_skip_prologue (pc)
- CORE_ADDR pc;
+a29k_skip_prologue (CORE_ADDR pc)
{
return examine_prologue (pc, NULL, NULL, NULL);
}
@@ -355,12 +348,8 @@ a29k_skip_prologue (pc)
*/
static int /* 0/1 - failure/success of finding the tag word */
-examine_tag (p, is_trans, argcount, msize, mfp_used)
- CORE_ADDR p;
- int *is_trans;
- int *argcount;
- unsigned *msize;
- int *mfp_used;
+examine_tag (CORE_ADDR p, int *is_trans, int *argcount, unsigned *msize,
+ int *mfp_used)
{
unsigned int tag1, tag2;
@@ -398,9 +387,7 @@ examine_tag (p, is_trans, argcount, msize, mfp_used)
of stacks and the frame cache in tm-a29k.h for more detail. */
static void
-init_frame_info (innermost_frame, frame)
- int innermost_frame;
- struct frame_info *frame;
+init_frame_info (int innermost_frame, struct frame_info *frame)
{
CORE_ADDR p;
long insn;
@@ -505,8 +492,7 @@ init_frame_info (innermost_frame, frame)
}
void
-init_extra_frame_info (frame)
- struct frame_info *frame;
+init_extra_frame_info (struct frame_info *frame)
{
if (frame->next == 0)
/* Assume innermost frame. May produce strange results for "info frame"
@@ -521,9 +507,7 @@ init_extra_frame_info (frame)
}
void
-init_frame_pc (fromleaf, frame)
- int fromleaf;
- struct frame_info *frame;
+init_frame_pc (int fromleaf, struct frame_info *frame)
{
frame->pc = (fromleaf ? SAVED_PC_AFTER_CALL (frame->next) :
frame->next ? FRAME_SAVED_PC (frame->next) : read_pc ());
@@ -535,8 +519,7 @@ init_frame_pc (fromleaf, frame)
saved_msp (gcc). */
CORE_ADDR
-frame_locals_address (fi)
- struct frame_info *fi;
+frame_locals_address (struct frame_info *fi)
{
if (fi->flags & MFP_USED)
return fi->saved_msp;
@@ -556,11 +539,8 @@ frame_locals_address (fi)
on where it came from. The contents written into MYADDR are in
target format. */
void
-read_register_stack (memaddr, myaddr, actual_mem_addr, lval)
- CORE_ADDR memaddr;
- char *myaddr;
- CORE_ADDR *actual_mem_addr;
- enum lval_type *lval;
+read_register_stack (CORE_ADDR memaddr, char *myaddr,
+ CORE_ADDR *actual_mem_addr, enum lval_type *lval)
{
long rfb = read_register (RFB_REGNUM);
long rsp = read_register (RSP_REGNUM);
@@ -616,9 +596,7 @@ read_register_stack (memaddr, myaddr, actual_mem_addr, lval)
/* Analogous to read_memory_integer
except the length is understood to be 4. */
long
-read_register_stack_integer (memaddr, len)
- CORE_ADDR memaddr;
- int len;
+read_register_stack_integer (CORE_ADDR memaddr, int len)
{
char buf[4];
read_register_stack (memaddr, buf, NULL, NULL);
@@ -629,10 +607,8 @@ read_register_stack_integer (memaddr, len)
at MEMADDR and put the actual address written into in
*ACTUAL_MEM_ADDR. */
static void
-write_register_stack (memaddr, myaddr, actual_mem_addr)
- CORE_ADDR memaddr;
- char *myaddr;
- CORE_ADDR *actual_mem_addr;
+write_register_stack (CORE_ADDR memaddr, char *myaddr,
+ CORE_ADDR *actual_mem_addr)
{
long rfb = read_register (RFB_REGNUM);
long rsp = read_register (RSP_REGNUM);
@@ -673,13 +649,9 @@ write_register_stack (memaddr, myaddr, actual_mem_addr)
The argument RAW_BUFFER must point to aligned memory. */
void
-a29k_get_saved_register (raw_buffer, optimized, addrp, frame, regnum, lvalp)
- char *raw_buffer;
- int *optimized;
- CORE_ADDR *addrp;
- struct frame_info *frame;
- int regnum;
- enum lval_type *lvalp;
+a29k_get_saved_register (char *raw_buffer, int *optimized, CORE_ADDR *addrp,
+ struct frame_info *frame, int regnum,
+ enum lval_type *lvalp)
{
struct frame_info *fi;
CORE_ADDR addr;
@@ -762,7 +734,7 @@ a29k_get_saved_register (raw_buffer, optimized, addrp, frame, regnum, lvalp)
restoring all saved registers. */
void
-pop_frame ()
+pop_frame (void)
{
struct frame_info *frame = get_current_frame ();
CORE_ADDR rfb = read_register (RFB_REGNUM);
@@ -825,7 +797,7 @@ pop_frame ()
/* Push an empty stack frame, to record the current PC, etc. */
void
-push_dummy_frame ()
+push_dummy_frame (void)
{
long w;
CORE_ADDR rab, gr1;
@@ -910,9 +882,7 @@ push_dummy_frame ()
good job. */
struct frame_info *
-setup_arbitrary_frame (argc, argv)
- int argc;
- CORE_ADDR *argv;
+setup_arbitrary_frame (int argc, CORE_ADDR *argv)
{
struct frame_info *frame;
@@ -939,9 +909,7 @@ setup_arbitrary_frame (argc, argv)
}
int
-gdb_print_insn_a29k (memaddr, info)
- bfd_vma memaddr;
- disassemble_info *info;
+gdb_print_insn_a29k (bfd_vma memaddr, disassemble_info *info)
{
if (TARGET_BYTE_ORDER == BIG_ENDIAN)
return print_insn_big_a29k (memaddr, info);
@@ -952,7 +920,7 @@ gdb_print_insn_a29k (memaddr, info)
enum a29k_processor_types processor_type = a29k_unknown;
void
-a29k_get_processor_type ()
+a29k_get_processor_type (void)
{
unsigned int cfg_reg = (unsigned int) read_register (CFG_REGNUM);
@@ -1002,8 +970,7 @@ a29k_get_processor_type ()
This routine returns true on success */
int
-get_longjmp_target (pc)
- CORE_ADDR *pc;
+get_longjmp_target (CORE_ADDR *pc)
{
CORE_ADDR jb_addr;
char buf[sizeof (CORE_ADDR)];
@@ -1020,7 +987,7 @@ get_longjmp_target (pc)
#endif /* GET_LONGJMP_TARGET */
void
-_initialize_a29k_tdep ()
+_initialize_a29k_tdep (void)
{
extern CORE_ADDR text_end;
diff --git a/gdb/a68v-nat.c b/gdb/a68v-nat.c
index 3b4c271..7ad39a6 100644
--- a/gdb/a68v-nat.c
+++ b/gdb/a68v-nat.c
@@ -30,8 +30,7 @@
extern int errno;
void
-fetch_inferior_registers (ignored)
- int ignored;
+fetch_inferior_registers (int ignored)
{
struct ptrace_$data_regs_m68k inferior_registers;
struct ptrace_$floating_regs_m68k inferior_fp_registers;
@@ -72,8 +71,7 @@ fetch_inferior_registers (ignored)
Otherwise, REGNO specifies which register (so we can save time). */
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
struct ptrace_$data_regs_m68k inferior_registers;
struct ptrace_$floating_regs_m68k inferior_fp_registers;
diff --git a/gdb/abug-rom.c b/gdb/abug-rom.c
index 0ade234..68f48a2 100644
--- a/gdb/abug-rom.c
+++ b/gdb/abug-rom.c
@@ -31,11 +31,7 @@
static void abug_open (char *args, int from_tty);
static void
-abug_supply_register (regname, regnamelen, val, vallen)
- char *regname;
- int regnamelen;
- char *val;
- int vallen;
+abug_supply_register (char *regname, int regnamelen, char *val, int vallen)
{
int regno;
@@ -148,15 +144,13 @@ init_abug_cmds (void)
};
static void
-abug_open (args, from_tty)
- char *args;
- int from_tty;
+abug_open (char *args, int from_tty)
{
monitor_open (args, &abug_cmds, from_tty);
}
void
-_initialize_abug_rom ()
+_initialize_abug_rom (void)
{
init_abug_cmds ();
init_monitor_ops (&abug_ops);
diff --git a/gdb/alpha-nat.c b/gdb/alpha-nat.c
index 4bf33b3..da8d5ae 100644
--- a/gdb/alpha-nat.c
+++ b/gdb/alpha-nat.c
@@ -55,8 +55,7 @@ static void fetch_elf_core_registers (char *, unsigned, int, CORE_ADDR);
This routine returns true on success. */
int
-get_longjmp_target (pc)
- CORE_ADDR *pc;
+get_longjmp_target (CORE_ADDR *pc)
{
CORE_ADDR jb_addr;
char raw_buffer[MAX_REGISTER_RAW_SIZE];
@@ -85,11 +84,8 @@ get_longjmp_target (pc)
*/
static void
-fetch_osf_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
- char *core_reg_sect;
- unsigned core_reg_size;
- int which;
- CORE_ADDR reg_addr;
+fetch_osf_core_registers (char *core_reg_sect, unsigned core_reg_size,
+ int which, CORE_ADDR reg_addr)
{
register int regno;
register int addr;
@@ -138,11 +134,8 @@ fetch_osf_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
}
static void
-fetch_elf_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
- char *core_reg_sect;
- unsigned core_reg_size;
- int which;
- CORE_ADDR reg_addr;
+fetch_elf_core_registers (char *core_reg_sect, unsigned core_reg_size,
+ int which, CORE_ADDR reg_addr)
{
if (core_reg_size < 32 * 8)
{
@@ -181,15 +174,13 @@ fetch_elf_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
/* Return the ptrace ``address'' of register REGNO. */
CORE_ADDR
-register_addr (regno, blockend)
- int regno;
- CORE_ADDR blockend;
+register_addr (int regno, CORE_ADDR blockend)
{
return REGISTER_PTRACE_ADDR (regno);
}
int
-kernel_u_size ()
+kernel_u_size (void)
{
return (sizeof (struct user));
}
@@ -205,8 +196,7 @@ kernel_u_size ()
*/
void
-supply_gregset (gregsetp)
- gregset_t *gregsetp;
+supply_gregset (gregset_t *gregsetp)
{
register int regi;
register long *regp = ALPHA_REGSET_BASE (gregsetp);
@@ -224,9 +214,7 @@ supply_gregset (gregsetp)
}
void
-fill_gregset (gregsetp, regno)
- gregset_t *gregsetp;
- int regno;
+fill_gregset (gregset_t *gregsetp, int regno)
{
int regi;
register long *regp = ALPHA_REGSET_BASE (gregsetp);
@@ -245,8 +233,7 @@ fill_gregset (gregsetp, regno)
*/
void
-supply_fpregset (fpregsetp)
- fpregset_t *fpregsetp;
+supply_fpregset (fpregset_t *fpregsetp)
{
register int regi;
register long *regp = ALPHA_REGSET_BASE (fpregsetp);
@@ -256,9 +243,7 @@ supply_fpregset (fpregsetp)
}
void
-fill_fpregset (fpregsetp, regno)
- fpregset_t *fpregsetp;
- int regno;
+fill_fpregset (fpregset_t *fpregsetp, int regno)
{
int regi;
register long *regp = ALPHA_REGSET_BASE (fpregsetp);
@@ -298,7 +283,7 @@ static struct core_fns alpha_elf_core_fns =
};
void
-_initialize_core_alpha ()
+_initialize_core_alpha (void)
{
add_core_fns (&alpha_osf_core_fns);
add_core_fns (&alpha_elf_core_fns);
diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c
index 465efac..132dec7 100644
--- a/gdb/alpha-tdep.c
+++ b/gdb/alpha-tdep.c
@@ -171,8 +171,7 @@ struct linked_proc_info
long alpha_linux_sigtramp_offset (CORE_ADDR pc);
#endif
long
-alpha_linux_sigtramp_offset (pc)
- CORE_ADDR pc;
+alpha_linux_sigtramp_offset (CORE_ADDR pc)
{
unsigned int i[3], w;
long off;
@@ -215,9 +214,7 @@ alpha_linux_sigtramp_offset (pc)
/* Under OSF/1, the __sigtramp routine is frameless and has a frame
size of zero, but we are able to backtrace through it. */
CORE_ADDR
-alpha_osf_skip_sigtramp_frame (frame, pc)
- struct frame_info *frame;
- CORE_ADDR pc;
+alpha_osf_skip_sigtramp_frame (struct frame_info *frame, CORE_ADDR pc)
{
char *name;
find_pc_partial_function (pc, &name, (CORE_ADDR *) NULL, (CORE_ADDR *) NULL);
@@ -233,8 +230,7 @@ alpha_osf_skip_sigtramp_frame (frame, pc)
descriptor is added to the linked_proc_desc_table. */
static alpha_extra_func_info_t
-push_sigtramp_desc (low_addr)
- CORE_ADDR low_addr;
+push_sigtramp_desc (CORE_ADDR low_addr)
{
struct linked_proc_info *link;
alpha_extra_func_info_t proc_desc;
@@ -265,8 +261,7 @@ push_sigtramp_desc (low_addr)
NULL). */
void
-alpha_find_saved_regs (frame)
- struct frame_info *frame;
+alpha_find_saved_regs (struct frame_info *frame)
{
int ireg;
CORE_ADDR reg_position;
@@ -354,9 +349,7 @@ alpha_find_saved_regs (frame)
}
static CORE_ADDR
-read_next_frame_reg (fi, regno)
- struct frame_info *fi;
- int regno;
+read_next_frame_reg (struct frame_info *fi, int regno)
{
for (; fi; fi = fi->next)
{
@@ -376,8 +369,7 @@ read_next_frame_reg (fi, regno)
}
CORE_ADDR
-alpha_frame_saved_pc (frame)
- struct frame_info *frame;
+alpha_frame_saved_pc (struct frame_info *frame)
{
alpha_extra_func_info_t proc_desc = frame->proc_desc;
/* We have to get the saved pc from the sigcontext
@@ -391,8 +383,7 @@ alpha_frame_saved_pc (frame)
}
CORE_ADDR
-alpha_saved_pc_after_call (frame)
- struct frame_info *frame;
+alpha_saved_pc_after_call (struct frame_info *frame)
{
CORE_ADDR pc = frame->pc;
CORE_ADDR tmp;
@@ -421,8 +412,7 @@ static struct frame_saved_regs temp_saved_regs;
$zero,($ra),1" on alpha. */
static int
-alpha_about_to_return (pc)
- CORE_ADDR pc;
+alpha_about_to_return (CORE_ADDR pc)
{
return read_memory_integer (pc, 4) == 0x6bfa8001;
}
@@ -434,8 +424,7 @@ alpha_about_to_return (pc)
lines. */
static CORE_ADDR
-heuristic_proc_start (pc)
- CORE_ADDR pc;
+heuristic_proc_start (CORE_ADDR pc)
{
CORE_ADDR start_pc = pc;
CORE_ADDR fence = start_pc - heuristic_fence_post;
@@ -488,9 +477,8 @@ Otherwise, you told GDB there was a function where there isn't one, or\n\
}
static alpha_extra_func_info_t
-heuristic_proc_desc (start_pc, limit_pc, next_frame)
- CORE_ADDR start_pc, limit_pc;
- struct frame_info *next_frame;
+heuristic_proc_desc (CORE_ADDR start_pc, CORE_ADDR limit_pc,
+ struct frame_info *next_frame)
{
CORE_ADDR sp = read_next_frame_reg (next_frame, SP_REGNUM);
CORE_ADDR cur_pc;
@@ -612,9 +600,7 @@ heuristic_proc_desc (start_pc, limit_pc, next_frame)
find the prologue, then return 0. */
static CORE_ADDR
-after_prologue (pc, proc_desc)
- CORE_ADDR pc;
- alpha_extra_func_info_t proc_desc;
+after_prologue (CORE_ADDR pc, alpha_extra_func_info_t proc_desc)
{
struct symtab_and_line sal;
CORE_ADDR func_addr, func_end;
@@ -652,9 +638,7 @@ after_prologue (pc, proc_desc)
are definitively *not* in a function prologue. */
static int
-alpha_in_prologue (pc, proc_desc)
- CORE_ADDR pc;
- alpha_extra_func_info_t proc_desc;
+alpha_in_prologue (CORE_ADDR pc, alpha_extra_func_info_t proc_desc)
{
CORE_ADDR after_prologue_pc;
@@ -668,9 +652,7 @@ alpha_in_prologue (pc, proc_desc)
}
static alpha_extra_func_info_t
-find_proc_desc (pc, next_frame)
- CORE_ADDR pc;
- struct frame_info *next_frame;
+find_proc_desc (CORE_ADDR pc, struct frame_info *next_frame)
{
alpha_extra_func_info_t proc_desc;
struct block *b;
@@ -792,8 +774,7 @@ find_proc_desc (pc, next_frame)
alpha_extra_func_info_t cached_proc_desc;
CORE_ADDR
-alpha_frame_chain (frame)
- struct frame_info *frame;
+alpha_frame_chain (struct frame_info *frame)
{
alpha_extra_func_info_t proc_desc;
CORE_ADDR saved_pc = FRAME_SAVED_PC (frame);
@@ -827,8 +808,7 @@ alpha_frame_chain (frame)
}
void
-init_extra_frame_info (frame)
- struct frame_info *frame;
+init_extra_frame_info (struct frame_info *frame)
{
/* Use proc_desc calculated in frame_chain */
alpha_extra_func_info_t proc_desc =
@@ -900,9 +880,7 @@ init_extra_frame_info (frame)
arguments without difficulty. */
struct frame_info *
-setup_arbitrary_frame (argc, argv)
- int argc;
- CORE_ADDR *argv;
+setup_arbitrary_frame (int argc, CORE_ADDR *argv)
{
if (argc != 2)
error ("ALPHA frame specifications require two arguments: sp and pc");
@@ -921,12 +899,8 @@ setup_arbitrary_frame (argc, argv)
structure to be returned is passed as a hidden first argument. */
CORE_ADDR
-alpha_push_arguments (nargs, args, sp, struct_return, struct_addr)
- int nargs;
- value_ptr *args;
- CORE_ADDR sp;
- int struct_return;
- CORE_ADDR struct_addr;
+alpha_push_arguments (int nargs, value_ptr *args, CORE_ADDR sp,
+ int struct_return, CORE_ADDR struct_addr)
{
int i;
int accumulate_size = struct_return ? 8 : 0;
@@ -1007,7 +981,7 @@ alpha_push_arguments (nargs, args, sp, struct_return, struct_addr)
}
void
-alpha_push_dummy_frame ()
+alpha_push_dummy_frame (void)
{
int ireg;
struct linked_proc_info *link;
@@ -1123,7 +1097,7 @@ alpha_push_dummy_frame ()
}
void
-alpha_pop_frame ()
+alpha_pop_frame (void)
{
register int regnum;
struct frame_info *frame = get_current_frame ();
@@ -1193,9 +1167,7 @@ alpha_pop_frame ()
stuff some day. */
CORE_ADDR
-alpha_skip_prologue (pc, lenient)
- CORE_ADDR pc;
- int lenient;
+alpha_skip_prologue (CORE_ADDR pc, int lenient)
{
unsigned long inst;
int offset;
@@ -1272,9 +1244,7 @@ alpha_skip_prologue (pc, lenient)
STARTADDR? */
static int
-alpha_in_lenient_prologue (startaddr, pc)
- CORE_ADDR startaddr;
- CORE_ADDR pc;
+alpha_in_lenient_prologue (CORE_ADDR startaddr, CORE_ADDR pc)
{
CORE_ADDR end_prologue = alpha_skip_prologue (startaddr, 1);
return pc >= startaddr && pc < end_prologue;
@@ -1288,11 +1258,8 @@ alpha_in_lenient_prologue (startaddr, pc)
memory format is an integer with 4 bytes or less, as the representation
of integers in floating point registers is different. */
void
-alpha_register_convert_to_virtual (regnum, valtype, raw_buffer, virtual_buffer)
- int regnum;
- struct type *valtype;
- char *raw_buffer;
- char *virtual_buffer;
+alpha_register_convert_to_virtual (int regnum, struct type *valtype,
+ char *raw_buffer, char *virtual_buffer)
{
if (TYPE_LENGTH (valtype) >= REGISTER_RAW_SIZE (regnum))
{
@@ -1317,11 +1284,8 @@ alpha_register_convert_to_virtual (regnum, valtype, raw_buffer, virtual_buffer)
}
void
-alpha_register_convert_to_raw (valtype, regnum, virtual_buffer, raw_buffer)
- struct type *valtype;
- int regnum;
- char *virtual_buffer;
- char *raw_buffer;
+alpha_register_convert_to_raw (struct type *valtype, int regnum,
+ char *virtual_buffer, char *raw_buffer)
{
if (TYPE_LENGTH (valtype) >= REGISTER_RAW_SIZE (regnum))
{
@@ -1369,9 +1333,7 @@ alpha_extract_return_value (valtype, regbuf, valbuf)
write its value into the appropriate register. */
void
-alpha_store_return_value (valtype, valbuf)
- struct type *valtype;
- char *valbuf;
+alpha_store_return_value (struct type *valtype, char *valbuf)
{
char raw_buffer[MAX_REGISTER_RAW_SIZE];
int regnum = V0_REGNUM;
@@ -1393,10 +1355,7 @@ alpha_store_return_value (valtype, valbuf)
callable as an sfunc. */
static void
-reinit_frame_cache_sfunc (args, from_tty, c)
- char *args;
- int from_tty;
- struct cmd_list_element *c;
+reinit_frame_cache_sfunc (char *args, int from_tty, struct cmd_list_element *c)
{
reinit_frame_cache ();
}
@@ -1407,7 +1366,7 @@ reinit_frame_cache_sfunc (args, from_tty, c)
*/
CORE_ADDR
-alpha_call_dummy_address ()
+alpha_call_dummy_address (void)
{
CORE_ADDR entry;
struct minimal_symbol *sym;
@@ -1426,7 +1385,7 @@ alpha_call_dummy_address ()
}
void
-_initialize_alpha_tdep ()
+_initialize_alpha_tdep (void)
{
struct cmd_list_element *c;
diff --git a/gdb/annotate.c b/gdb/annotate.c
index ee26290..c5879e3 100644
--- a/gdb/annotate.c
+++ b/gdb/annotate.c
@@ -43,8 +43,7 @@ void (*annotate_exited_hook) (void);
static int ignore_count_changed = 0;
static void
-print_value_flags (t)
- struct type *t;
+print_value_flags (struct type *t)
{
if (can_dereference (t))
printf_filtered ("*");
@@ -53,7 +52,7 @@ print_value_flags (t)
}
void
-breakpoints_changed ()
+breakpoints_changed (void)
{
if (annotation_level > 1)
{
@@ -78,31 +77,28 @@ annotate_ignore_count_change (void)
}
void
-annotate_breakpoint (num)
- int num;
+annotate_breakpoint (int num)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032breakpoint %d\n", num);
}
void
-annotate_catchpoint (num)
- int num;
+annotate_catchpoint (int num)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032catchpoint %d\n", num);
}
void
-annotate_watchpoint (num)
- int num;
+annotate_watchpoint (int num)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032watchpoint %d\n", num);
}
void
-annotate_starting ()
+annotate_starting (void)
{
if (annotate_starting_hook)
@@ -117,7 +113,7 @@ annotate_starting ()
}
void
-annotate_stopped ()
+annotate_stopped (void)
{
if (annotate_stopped_hook)
annotate_stopped_hook ();
@@ -134,8 +130,7 @@ annotate_stopped ()
}
void
-annotate_exited (exitstatus)
- int exitstatus;
+annotate_exited (int exitstatus)
{
if (annotate_exited_hook)
annotate_exited_hook ();
@@ -147,7 +142,7 @@ annotate_exited (exitstatus)
}
void
-annotate_signalled ()
+annotate_signalled (void)
{
if (annotate_signalled_hook)
annotate_signalled_hook ();
@@ -157,35 +152,35 @@ annotate_signalled ()
}
void
-annotate_signal_name ()
+annotate_signal_name (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032signal-name\n");
}
void
-annotate_signal_name_end ()
+annotate_signal_name_end (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032signal-name-end\n");
}
void
-annotate_signal_string ()
+annotate_signal_string (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032signal-string\n");
}
void
-annotate_signal_string_end ()
+annotate_signal_string_end (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032signal-string-end\n");
}
void
-annotate_signal ()
+annotate_signal (void)
{
if (annotate_signal_hook)
annotate_signal_hook ();
@@ -195,43 +190,42 @@ annotate_signal ()
}
void
-annotate_breakpoints_headers ()
+annotate_breakpoints_headers (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032breakpoints-headers\n");
}
void
-annotate_field (num)
- int num;
+annotate_field (int num)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032field %d\n", num);
}
void
-annotate_breakpoints_table ()
+annotate_breakpoints_table (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032breakpoints-table\n");
}
void
-annotate_record ()
+annotate_record (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032record\n");
}
void
-annotate_breakpoints_table_end ()
+annotate_breakpoints_table_end (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032breakpoints-table-end\n");
}
void
-annotate_frames_invalid ()
+annotate_frames_invalid (void)
{
if (annotation_level > 1)
{
@@ -241,8 +235,7 @@ annotate_frames_invalid ()
}
void
-annotate_field_begin (type)
- struct type *type;
+annotate_field_begin (struct type *type)
{
if (annotation_level > 1)
{
@@ -253,51 +246,49 @@ annotate_field_begin (type)
}
void
-annotate_field_name_end ()
+annotate_field_name_end (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032field-name-end\n");
}
void
-annotate_field_value ()
+annotate_field_value (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032field-value\n");
}
void
-annotate_field_end ()
+annotate_field_end (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032field-end\n");
}
void
-annotate_quit ()
+annotate_quit (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032quit\n");
}
void
-annotate_error ()
+annotate_error (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032error\n");
}
void
-annotate_error_begin ()
+annotate_error_begin (void)
{
if (annotation_level > 1)
fprintf_filtered (gdb_stderr, "\n\032\032error-begin\n");
}
void
-annotate_value_history_begin (histindex, type)
- int histindex;
- struct type *type;
+annotate_value_history_begin (int histindex, struct type *type)
{
if (annotation_level > 1)
{
@@ -308,8 +299,7 @@ annotate_value_history_begin (histindex, type)
}
void
-annotate_value_begin (type)
- struct type *type;
+annotate_value_begin (struct type *type)
{
if (annotation_level > 1)
{
@@ -320,92 +310,91 @@ annotate_value_begin (type)
}
void
-annotate_value_history_value ()
+annotate_value_history_value (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032value-history-value\n");
}
void
-annotate_value_history_end ()
+annotate_value_history_end (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032value-history-end\n");
}
void
-annotate_value_end ()
+annotate_value_end (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032value-end\n");
}
void
-annotate_display_begin ()
+annotate_display_begin (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032display-begin\n");
}
void
-annotate_display_number_end ()
+annotate_display_number_end (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032display-number-end\n");
}
void
-annotate_display_format ()
+annotate_display_format (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032display-format\n");
}
void
-annotate_display_expression ()
+annotate_display_expression (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032display-expression\n");
}
void
-annotate_display_expression_end ()
+annotate_display_expression_end (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032display-expression-end\n");
}
void
-annotate_display_value ()
+annotate_display_value (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032display-value\n");
}
void
-annotate_display_end ()
+annotate_display_end (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032display-end\n");
}
void
-annotate_arg_begin ()
+annotate_arg_begin (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032arg-begin\n");
}
void
-annotate_arg_name_end ()
+annotate_arg_name_end (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032arg-name-end\n");
}
void
-annotate_arg_value (type)
- struct type *type;
+annotate_arg_value (struct type *type)
{
if (annotation_level > 1)
{
@@ -416,19 +405,14 @@ annotate_arg_value (type)
}
void
-annotate_arg_end ()
+annotate_arg_end (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032arg-end\n");
}
void
-annotate_source (filename, line, character, mid, pc)
- char *filename;
- int line;
- int character;
- int mid;
- CORE_ADDR pc;
+annotate_source (char *filename, int line, int character, int mid, CORE_ADDR pc)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032source ");
@@ -443,9 +427,7 @@ annotate_source (filename, line, character, mid, pc)
}
void
-annotate_frame_begin (level, pc)
- int level;
- CORE_ADDR pc;
+annotate_frame_begin (int level, CORE_ADDR pc)
{
if (annotation_level > 1)
{
@@ -456,100 +438,98 @@ annotate_frame_begin (level, pc)
}
void
-annotate_function_call ()
+annotate_function_call (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032function-call\n");
}
void
-annotate_signal_handler_caller ()
+annotate_signal_handler_caller (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032signal-handler-caller\n");
}
void
-annotate_frame_address ()
+annotate_frame_address (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032frame-address\n");
}
void
-annotate_frame_address_end ()
+annotate_frame_address_end (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032frame-address-end\n");
}
void
-annotate_frame_function_name ()
+annotate_frame_function_name (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032frame-function-name\n");
}
void
-annotate_frame_args ()
+annotate_frame_args (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032frame-args\n");
}
void
-annotate_frame_source_begin ()
+annotate_frame_source_begin (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032frame-source-begin\n");
}
void
-annotate_frame_source_file ()
+annotate_frame_source_file (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032frame-source-file\n");
}
void
-annotate_frame_source_file_end ()
+annotate_frame_source_file_end (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032frame-source-file-end\n");
}
void
-annotate_frame_source_line ()
+annotate_frame_source_line (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032frame-source-line\n");
}
void
-annotate_frame_source_end ()
+annotate_frame_source_end (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032frame-source-end\n");
}
void
-annotate_frame_where ()
+annotate_frame_where (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032frame-where\n");
}
void
-annotate_frame_end ()
+annotate_frame_end (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032frame-end\n");
}
void
-annotate_array_section_begin (index, elttype)
- int index;
- struct type *elttype;
+annotate_array_section_begin (int index, struct type *elttype)
{
if (annotation_level > 1)
{
@@ -560,43 +540,41 @@ annotate_array_section_begin (index, elttype)
}
void
-annotate_elt_rep (repcount)
- unsigned int repcount;
+annotate_elt_rep (unsigned int repcount)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032elt-rep %u\n", repcount);
}
void
-annotate_elt_rep_end ()
+annotate_elt_rep_end (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032elt-rep-end\n");
}
void
-annotate_elt ()
+annotate_elt (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032elt\n");
}
void
-annotate_array_section_end ()
+annotate_array_section_end (void)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032array-section-end\n");
}
static void
-breakpoint_changed (b)
- struct breakpoint *b;
+breakpoint_changed (struct breakpoint *b)
{
breakpoints_changed ();
}
void
-_initialize_annotate ()
+_initialize_annotate (void)
{
if (annotation_level > 1)
{
diff --git a/gdb/arc-tdep.c b/gdb/arc-tdep.c
index 8b69770..fc20d8b 100644
--- a/gdb/arc-tdep.c
+++ b/gdb/arc-tdep.c
@@ -114,8 +114,7 @@ static int codestream_cnt;
: codestream_buf[codestream_off++])
static unsigned int
-codestream_fill (peek_flag)
- int peek_flag;
+codestream_fill (int peek_flag)
{
codestream_addr = codestream_next_addr;
codestream_next_addr += CODESTREAM_BUFSIZ * sizeof (codestream_buf[0]);
@@ -142,8 +141,7 @@ codestream_fill (peek_flag)
}
static void
-codestream_seek (place)
- CORE_ADDR place;
+codestream_seek (CORE_ADDR place)
{
codestream_next_addr = place / CODESTREAM_BUFSIZ;
codestream_next_addr *= CODESTREAM_BUFSIZ;
@@ -156,9 +154,7 @@ codestream_seek (place)
/* This function is currently unused but leave in for now. */
static void
-codestream_read (buf, count)
- unsigned int *buf;
- int count;
+codestream_read (unsigned int *buf, int count)
{
unsigned int *p;
int i;
@@ -170,8 +166,7 @@ codestream_read (buf, count)
/* Set up prologue scanning and return the first insn. */
static unsigned int
-setup_prologue_scan (pc)
- CORE_ADDR pc;
+setup_prologue_scan (CORE_ADDR pc)
{
unsigned int insn;
@@ -189,8 +184,7 @@ setup_prologue_scan (pc)
*/
static long
-arc_get_frame_setup (pc)
- CORE_ADDR pc;
+arc_get_frame_setup (CORE_ADDR pc)
{
unsigned int insn;
/* Size of frame or -1 if unrecognizable prologue. */
@@ -277,9 +271,7 @@ arc_get_frame_setup (pc)
This allows a quicker answer. */
CORE_ADDR
-arc_skip_prologue (pc, frameless_p)
- CORE_ADDR pc;
- int frameless_p;
+arc_skip_prologue (CORE_ADDR pc, int frameless_p)
{
unsigned int insn;
int i, frame_size;
@@ -310,8 +302,7 @@ arc_skip_prologue (pc, frameless_p)
This is taken from frameless_look_for_prologue. */
CORE_ADDR
-arc_frame_saved_pc (frame)
- struct frame_info *frame;
+arc_frame_saved_pc (struct frame_info *frame)
{
CORE_ADDR func_start;
unsigned int insn;
@@ -357,9 +348,7 @@ arc_frame_saved_pc (frame)
*/
void
-frame_find_saved_regs (fip, fsrp)
- struct frame_info *fip;
- struct frame_saved_regs *fsrp;
+frame_find_saved_regs (struct frame_info *fip, struct frame_saved_regs *fsrp)
{
long locals;
unsigned int insn;
@@ -472,9 +461,7 @@ insn_type;
/* ??? Need to verify all cases are properly handled. */
static insn_type
-get_insn_type (insn, pc, target)
- unsigned long insn;
- CORE_ADDR pc, *target;
+get_insn_type (unsigned long insn, CORE_ADDR pc, CORE_ADDR *target)
{
unsigned long limm;
@@ -535,9 +522,8 @@ get_insn_type (insn, pc, target)
set up a simulated single-step, we undo our damage. */
void
-arc_software_single_step (ignore, insert_breakpoints_p)
- enum target_signal ignore; /* sig but we don't need it */
- int insert_breakpoints_p;
+arc_software_single_step (enum target_signal ignore, /* sig but we don't need it */
+ int insert_breakpoints_p)
{
static CORE_ADDR next_pc, target;
static int brktrg_p;
@@ -593,8 +579,7 @@ arc_software_single_step (ignore, insert_breakpoints_p)
This routine returns true on success. */
int
-get_longjmp_target (pc)
- CORE_ADDR *pc;
+get_longjmp_target (CORE_ADDR *pc)
{
char buf[TARGET_PTR_BIT / TARGET_CHAR_BIT];
CORE_ADDR sp, jb_addr;
@@ -621,9 +606,7 @@ get_longjmp_target (pc)
/* Disassemble one instruction. */
static int
-arc_print_insn (vma, info)
- bfd_vma vma;
- disassemble_info *info;
+arc_print_insn (bfd_vma vma, disassemble_info *info)
{
static int current_mach;
static int current_endian;
@@ -670,9 +653,7 @@ arc_set_cpu_type_command (char *args, int from_tty)
}
static void
-arc_show_cpu_type_command (args, from_tty)
- char *args;
- int from_tty;
+arc_show_cpu_type_command (char *args, int from_tty)
{
}
@@ -680,8 +661,7 @@ arc_show_cpu_type_command (args, from_tty)
Result is a boolean indicating success. */
static int
-arc_set_cpu_type (str)
- char *str;
+arc_set_cpu_type (char *str)
{
int i, j;
@@ -702,7 +682,7 @@ arc_set_cpu_type (str)
}
void
-_initialize_arc_tdep ()
+_initialize_arc_tdep (void)
{
struct cmd_list_element *c;
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index bf637b5..8af1373 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -151,17 +151,13 @@ generic_prologue_frameless_p (CORE_ADDR ip)
/* Helper functions for INNER_THAN */
int
-core_addr_lessthan (lhs, rhs)
- CORE_ADDR lhs;
- CORE_ADDR rhs;
+core_addr_lessthan (CORE_ADDR lhs, CORE_ADDR rhs)
{
return (lhs < rhs);
}
int
-core_addr_greaterthan (lhs, rhs)
- CORE_ADDR lhs;
- CORE_ADDR rhs;
+core_addr_greaterthan (CORE_ADDR lhs, CORE_ADDR rhs)
{
return (lhs > rhs);
}
@@ -211,16 +207,14 @@ default_double_format (struct gdbarch *gdbarch)
/* Misc helper functions for targets. */
int
-frame_num_args_unknown (fi)
- struct frame_info *fi;
+frame_num_args_unknown (struct frame_info *fi)
{
return -1;
}
int
-generic_register_convertible_not (num)
- int num;
+generic_register_convertible_not (int num)
{
return 0;
}
@@ -539,8 +533,7 @@ info_architecture (char *args, int from_tty)
byte-order) using information found in the BFD */
void
-set_gdbarch_from_file (abfd)
- bfd *abfd;
+set_gdbarch_from_file (bfd *abfd)
{
if (GDB_MULTI_ARCH)
{
diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c
index e0d6ce5..2e2d0f2 100644
--- a/gdb/ax-gdb.c
+++ b/gdb/ax-gdb.c
@@ -154,8 +154,7 @@ static void agent_command (char *exp, int from_tty);
proletariat? */
static struct value *
-const_var_ref (var)
- struct symbol *var;
+const_var_ref (struct symbol *var)
{
struct type *type = SYMBOL_TYPE (var);
@@ -178,8 +177,7 @@ const_var_ref (var)
advanced to the end of it. If we return zero, *PC could be
anywhere. */
static struct value *
-const_expr (pc)
- union exp_element **pc;
+const_expr (union exp_element **pc)
{
enum exp_opcode op = (*pc)->opcode;
struct value *v1;
@@ -220,8 +218,7 @@ const_expr (pc)
/* Like const_expr, but guarantee also that *PC is undisturbed if the
expression is not constant. */
static struct value *
-maybe_const_expr (pc)
- union exp_element **pc;
+maybe_const_expr (union exp_element **pc)
{
union exp_element *tentative_pc = *pc;
struct value *v = const_expr (&tentative_pc);
@@ -307,9 +304,7 @@ static int trace_kludge;
the value. Useful on the left side of a comma, and at the end of
an expression being used for tracing. */
static void
-gen_traced_pop (ax, value)
- struct agent_expr *ax;
- struct axs_value *value;
+gen_traced_pop (struct agent_expr *ax, struct axs_value *value)
{
if (trace_kludge)
switch (value->kind)
@@ -354,9 +349,7 @@ gen_traced_pop (ax, value)
/* Assume that the lower bits of the top of the stack is a value of
type TYPE, and the upper bits are zero. Sign-extend if necessary. */
static void
-gen_sign_extend (ax, type)
- struct agent_expr *ax;
- struct type *type;
+gen_sign_extend (struct agent_expr *ax, struct type *type)
{
/* Do we need to sign-extend this? */
if (!TYPE_UNSIGNED (type))
@@ -368,9 +361,7 @@ gen_sign_extend (ax, type)
TYPE, and the upper bits are garbage. Sign-extend or truncate as
needed. */
static void
-gen_extend (ax, type)
- struct agent_expr *ax;
- struct type *type;
+gen_extend (struct agent_expr *ax, struct type *type)
{
int bits = type->length * TARGET_CHAR_BIT;
/* I just had to. */
@@ -382,9 +373,7 @@ gen_extend (ax, type)
to TYPE"; generate code to fetch its value. Note that TYPE is the
target type, not the pointer type. */
static void
-gen_fetch (ax, type)
- struct agent_expr *ax;
- struct type *type;
+gen_fetch (struct agent_expr *ax, struct type *type)
{
if (trace_kludge)
{
@@ -440,9 +429,7 @@ gen_fetch (ax, type)
right shift it by -DISTANCE bits if DISTANCE < 0. This generates
unsigned (logical) right shifts. */
static void
-gen_left_shift (ax, distance)
- struct agent_expr *ax;
- int distance;
+gen_left_shift (struct agent_expr *ax, int distance)
{
if (distance > 0)
{
@@ -463,8 +450,7 @@ gen_left_shift (ax, distance)
/* Generate code to push the base address of the argument portion of
the top stack frame. */
static void
-gen_frame_args_address (ax)
- struct agent_expr *ax;
+gen_frame_args_address (struct agent_expr *ax)
{
long frame_reg, frame_offset;
@@ -477,8 +463,7 @@ gen_frame_args_address (ax)
/* Generate code to push the base address of the locals portion of the
top stack frame. */
static void
-gen_frame_locals_address (ax)
- struct agent_expr *ax;
+gen_frame_locals_address (struct agent_expr *ax)
{
long frame_reg, frame_offset;
@@ -494,9 +479,7 @@ gen_frame_locals_address (ax)
programming in ML, it would be clearer why these are the same
thing. */
static void
-gen_offset (ax, offset)
- struct agent_expr *ax;
- int offset;
+gen_offset (struct agent_expr *ax, int offset)
{
/* It would suffice to simply push the offset and add it, but this
makes it easier to read positive and negative offsets in the
@@ -518,9 +501,7 @@ gen_offset (ax, offset)
address (stack frame, base register, etc.) Generate code to add
VAR's value to the top of the stack. */
static void
-gen_sym_offset (ax, var)
- struct agent_expr *ax;
- struct symbol *var;
+gen_sym_offset (struct agent_expr *ax, struct symbol *var)
{
gen_offset (ax, SYMBOL_VALUE (var));
}
@@ -530,10 +511,7 @@ gen_sym_offset (ax, var)
symbol VAR. Set VALUE to describe the result. */
static void
-gen_var_ref (ax, value, var)
- struct agent_expr *ax;
- struct axs_value *value;
- struct symbol *var;
+gen_var_ref (struct agent_expr *ax, struct axs_value *value, struct symbol *var)
{
/* Dereference any typedefs. */
value->type = check_typedef (SYMBOL_TYPE (var));
@@ -648,11 +626,8 @@ gen_var_ref (ax, value, var)
/* Generating bytecode from GDB expressions: literals */
static void
-gen_int_literal (ax, value, k, type)
- struct agent_expr *ax;
- struct axs_value *value;
- LONGEST k;
- struct type *type;
+gen_int_literal (struct agent_expr *ax, struct axs_value *value, LONGEST k,
+ struct type *type)
{
ax_const_l (ax, k);
value->kind = axs_rvalue;
@@ -667,9 +642,7 @@ gen_int_literal (ax, value, k, type)
try to make an rvalue out of it. Signal an error if we can't do
that. */
static void
-require_rvalue (ax, value)
- struct agent_expr *ax;
- struct axs_value *value;
+require_rvalue (struct agent_expr *ax, struct axs_value *value)
{
switch (value->kind)
{
@@ -714,9 +687,7 @@ require_rvalue (ax, value)
lvalue through unchanged, and let `+' raise an error. */
static void
-gen_usual_unary (ax, value)
- struct agent_expr *ax;
- struct axs_value *value;
+gen_usual_unary (struct agent_expr *ax, struct axs_value *value)
{
/* We don't have to generate any code for the usual integral
conversions, since values are always represented as full-width on
@@ -763,8 +734,7 @@ gen_usual_unary (ax, value)
/* Return non-zero iff the type TYPE1 is considered "wider" than the
type TYPE2, according to the rules described in gen_usual_arithmetic. */
static int
-type_wider_than (type1, type2)
- struct type *type1, *type2;
+type_wider_than (struct type *type1, struct type *type2)
{
return (TYPE_LENGTH (type1) > TYPE_LENGTH (type2)
|| (TYPE_LENGTH (type1) == TYPE_LENGTH (type2)
@@ -775,8 +745,7 @@ type_wider_than (type1, type2)
/* Return the "wider" of the two types TYPE1 and TYPE2. */
static struct type *
-max_type (type1, type2)
- struct type *type1, *type2;
+max_type (struct type *type1, struct type *type2)
{
return type_wider_than (type1, type2) ? type1 : type2;
}
@@ -784,9 +753,7 @@ max_type (type1, type2)
/* Generate code to convert a scalar value of type FROM to type TO. */
static void
-gen_conversion (ax, from, to)
- struct agent_expr *ax;
- struct type *from, *to;
+gen_conversion (struct agent_expr *ax, struct type *from, struct type *to)
{
/* Perhaps there is a more graceful way to state these rules. */
@@ -816,8 +783,7 @@ gen_conversion (ax, from, to)
/* Return non-zero iff the type FROM will require any bytecodes to be
emitted to be converted to the type TO. */
static int
-is_nontrivial_conversion (from, to)
- struct type *from, *to;
+is_nontrivial_conversion (struct type *from, struct type *to)
{
struct agent_expr *ax = new_agent_expr (0);
int nontrivial;
@@ -841,9 +807,8 @@ is_nontrivial_conversion (from, to)
and promotes each argument to that type. *VALUE1 and *VALUE2
describe the values as they are passed in, and as they are left. */
static void
-gen_usual_arithmetic (ax, value1, value2)
- struct agent_expr *ax;
- struct axs_value *value1, *value2;
+gen_usual_arithmetic (struct agent_expr *ax, struct axs_value *value1,
+ struct axs_value *value2)
{
/* Do the usual binary conversions. */
if (TYPE_CODE (value1->type) == TYPE_CODE_INT
@@ -879,9 +844,7 @@ gen_usual_arithmetic (ax, value1, value2)
the value on the top of the stack, as described by VALUE. Assume
the value has integral type. */
static void
-gen_integral_promotions (ax, value)
- struct agent_expr *ax;
- struct axs_value *value;
+gen_integral_promotions (struct agent_expr *ax, struct axs_value *value)
{
if (!type_wider_than (value->type, builtin_type_int))
{
@@ -898,10 +861,7 @@ gen_integral_promotions (ax, value)
/* Generate code for a cast to TYPE. */
static void
-gen_cast (ax, value, type)
- struct agent_expr *ax;
- struct axs_value *value;
- struct type *type;
+gen_cast (struct agent_expr *ax, struct axs_value *value, struct type *type)
{
/* GCC does allow casts to yield lvalues, so this should be fixed
before merging these changes into the trunk. */
@@ -956,10 +916,7 @@ gen_cast (ax, value, type)
/* Scale the integer on the top of the stack by the size of the target
of the pointer type TYPE. */
static void
-gen_scale (ax, op, type)
- struct agent_expr *ax;
- enum agent_op op;
- struct type *type;
+gen_scale (struct agent_expr *ax, enum agent_op op, struct type *type)
{
struct type *element = TYPE_TARGET_TYPE (type);
@@ -977,10 +934,8 @@ gen_scale (ax, op, type)
they've undergone the usual binary conversions. Used by both
BINOP_ADD and BINOP_SUBSCRIPT. NAME is used in error messages. */
static void
-gen_add (ax, value, value1, value2, name)
- struct agent_expr *ax;
- struct axs_value *value, *value1, *value2;
- char *name;
+gen_add (struct agent_expr *ax, struct axs_value *value,
+ struct axs_value *value1, struct axs_value *value2, char *name)
{
/* Is it INT+PTR? */
if (value1->type->code == TYPE_CODE_INT
@@ -1026,9 +981,8 @@ gen_add (ax, value, value1, value2, name)
value; we assume VALUE1 and VALUE2 describe the two operands, and
that they've undergone the usual binary conversions. */
static void
-gen_sub (ax, value, value1, value2)
- struct agent_expr *ax;
- struct axs_value *value, *value1, *value2;
+gen_sub (struct agent_expr *ax, struct axs_value *value,
+ struct axs_value *value1, struct axs_value *value2)
{
if (value1->type->code == TYPE_CODE_PTR)
{
@@ -1080,12 +1034,9 @@ an integer nor a pointer of the same type.");
result needs to be extended. NAME is the English name of the
operator, used in error messages */
static void
-gen_binop (ax, value, value1, value2, op, op_unsigned, may_carry, name)
- struct agent_expr *ax;
- struct axs_value *value, *value1, *value2;
- enum agent_op op, op_unsigned;
- int may_carry;
- char *name;
+gen_binop (struct agent_expr *ax, struct axs_value *value,
+ struct axs_value *value1, struct axs_value *value2, enum agent_op op,
+ enum agent_op op_unsigned, int may_carry, char *name)
{
/* We only handle INT op INT. */
if ((value1->type->code != TYPE_CODE_INT)
@@ -1102,9 +1053,7 @@ gen_binop (ax, value, value1, value2, op, op_unsigned, may_carry, name)
static void
-gen_logical_not (ax, value)
- struct agent_expr *ax;
- struct axs_value *value;
+gen_logical_not (struct agent_expr *ax, struct axs_value *value)
{
if (TYPE_CODE (value->type) != TYPE_CODE_INT
&& TYPE_CODE (value->type) != TYPE_CODE_PTR)
@@ -1117,9 +1066,7 @@ gen_logical_not (ax, value)
static void
-gen_complement (ax, value)
- struct agent_expr *ax;
- struct axs_value *value;
+gen_complement (struct agent_expr *ax, struct axs_value *value)
{
if (TYPE_CODE (value->type) != TYPE_CODE_INT)
error ("Illegal type of operand to `~'.");
@@ -1136,9 +1083,7 @@ gen_complement (ax, value)
/* Dereference the value on the top of the stack. */
static void
-gen_deref (ax, value)
- struct agent_expr *ax;
- struct axs_value *value;
+gen_deref (struct agent_expr *ax, struct axs_value *value)
{
/* The caller should check the type, because several operators use
this, and we don't know what error message to generate. */
@@ -1158,9 +1103,7 @@ gen_deref (ax, value)
/* Produce the address of the lvalue on the top of the stack. */
static void
-gen_address_of (ax, value)
- struct agent_expr *ax;
- struct axs_value *value;
+gen_address_of (struct agent_expr *ax, struct axs_value *value)
{
/* Special case for taking the address of a function. The ANSI
standard describes this as a special case, too, so this
@@ -1192,9 +1135,7 @@ gen_address_of (ax, value)
/* Find the field in the structure type TYPE named NAME, and return
its index in TYPE's field array. */
static int
-find_field (type, name)
- struct type *type;
- char *name;
+find_field (struct type *type, char *name)
{
int i;
@@ -1227,11 +1168,8 @@ find_field (type, name)
starting and one-past-ending *bit* numbers of the field within the
structure. */
static void
-gen_bitfield_ref (ax, value, type, start, end)
- struct agent_expr *ax;
- struct axs_value *value;
- struct type *type;
- int start, end;
+gen_bitfield_ref (struct agent_expr *ax, struct axs_value *value,
+ struct type *type, int start, int end)
{
/* Note that ops[i] fetches 8 << i bits. */
static enum agent_op ops[]
@@ -1390,12 +1328,8 @@ gen_bitfield_ref (ax, value, type, start, end)
the operator being compiled, and OPERAND_NAME is the kind of thing
it operates on; we use them in error messages. */
static void
-gen_struct_ref (ax, value, field, operator_name, operand_name)
- struct agent_expr *ax;
- struct axs_value *value;
- char *field;
- char *operator_name;
- char *operand_name;
+gen_struct_ref (struct agent_expr *ax, struct axs_value *value, char *field,
+ char *operator_name, char *operand_name)
{
struct type *type;
int i;
@@ -1450,10 +1384,8 @@ gen_struct_ref (ax, value, field, operator_name, operand_name)
stack slots, doing weird things with sizeof, etc. So we require
the right operand to be a constant expression. */
static void
-gen_repeat (pc, ax, value)
- union exp_element **pc;
- struct agent_expr *ax;
- struct axs_value *value;
+gen_repeat (union exp_element **pc, struct agent_expr *ax,
+ struct axs_value *value)
{
struct axs_value value1;
/* We don't want to turn this into an rvalue, so no conversions
@@ -1495,10 +1427,8 @@ gen_repeat (pc, ax, value)
*PC should point at the start of the operand expression; we advance it
to the first instruction after the operand. */
static void
-gen_sizeof (pc, ax, value)
- union exp_element **pc;
- struct agent_expr *ax;
- struct axs_value *value;
+gen_sizeof (union exp_element **pc, struct agent_expr *ax,
+ struct axs_value *value)
{
/* We don't care about the value of the operand expression; we only
care about its type. However, in the current arrangement, the
@@ -1522,10 +1452,8 @@ gen_sizeof (pc, ax, value)
/* A gen_expr function written by a Gen-X'er guy.
Append code for the subexpression of EXPR starting at *POS_P to AX. */
static void
-gen_expr (pc, ax, value)
- union exp_element **pc;
- struct agent_expr *ax;
- struct axs_value *value;
+gen_expr (union exp_element **pc, struct agent_expr *ax,
+ struct axs_value *value)
{
/* Used to hold the descriptions of operand expressions. */
struct axs_value value1, value2;
@@ -1770,9 +1698,7 @@ gen_expr (pc, ax, value)
which computes its value. Return the agent expression, and set
*VALUE to describe its type, and whether it's an lvalue or rvalue. */
struct agent_expr *
-expr_to_agent (expr, value)
- struct expression *expr;
- struct axs_value *value;
+expr_to_agent (struct expression *expr, struct axs_value *value)
{
struct cleanup *old_chain = 0;
struct agent_expr *ax = new_agent_expr (0);
@@ -1799,8 +1725,7 @@ expr_to_agent (expr, value)
Not sure this function is useful at all. */
struct agent_expr *
-expr_to_address_and_size (expr)
- struct expression *expr;
+expr_to_address_and_size (struct expression *expr)
{
struct axs_value value;
struct agent_expr *ax = expr_to_agent (expr, &value);
@@ -1825,9 +1750,7 @@ expr_to_address_and_size (expr)
caller can then use the ax_reqs function to discover which
registers it relies upon. */
struct agent_expr *
-gen_trace_for_expr (scope, expr)
- CORE_ADDR scope;
- struct expression *expr;
+gen_trace_for_expr (CORE_ADDR scope, struct expression *expr)
{
struct cleanup *old_chain = 0;
struct agent_expr *ax = new_agent_expr (scope);
@@ -1858,9 +1781,7 @@ gen_trace_for_expr (scope, expr)
/* The "agent" command, for testing: compile and disassemble an expression. */
static void
-print_axs_value (f, value)
- struct ui_file *f;
- struct axs_value *value;
+print_axs_value (struct ui_file *f, struct axs_value *value)
{
switch (value->kind)
{
@@ -1883,9 +1804,7 @@ print_axs_value (f, value)
static void
-agent_command (exp, from_tty)
- char *exp;
- int from_tty;
+agent_command (char *exp, int from_tty)
{
struct cleanup *old_chain = 0;
struct expression *expr;
@@ -1920,7 +1839,7 @@ agent_command (exp, from_tty)
void _initialize_ax_gdb (void);
void
-_initialize_ax_gdb ()
+_initialize_ax_gdb (void)
{
add_cmd ("agent", class_maintenance, agent_command,
"Translate an expression into remote agent bytecode.",
diff --git a/gdb/ax-general.c b/gdb/ax-general.c
index 0c851eb..91aefff 100644
--- a/gdb/ax-general.c
+++ b/gdb/ax-general.c
@@ -40,8 +40,7 @@ static void generic_ext (struct agent_expr *x, enum agent_op op, int n);
/* Allocate a new, empty agent expression. */
struct agent_expr *
-new_agent_expr (scope)
- CORE_ADDR scope;
+new_agent_expr (CORE_ADDR scope)
{
struct agent_expr *x = xmalloc (sizeof (*x));
x->len = 0;
@@ -55,8 +54,7 @@ new_agent_expr (scope)
/* Free a agent expression. */
void
-free_agent_expr (x)
- struct agent_expr *x;
+free_agent_expr (struct agent_expr *x)
{
free (x->buf);
free (x);
@@ -78,9 +76,7 @@ make_cleanup_free_agent_expr (struct agent_expr *x)
/* Make sure that X has room for at least N more bytes. This doesn't
affect the length, just the allocated size. */
static void
-grow_expr (x, n)
- struct agent_expr *x;
- int n;
+grow_expr (struct agent_expr *x, int n)
{
if (x->len + n > x->size)
{
@@ -95,10 +91,7 @@ grow_expr (x, n)
/* Append the low N bytes of VAL as an N-byte integer to the
expression X, in big-endian order. */
static void
-append_const (x, val, n)
- struct agent_expr *x;
- LONGEST val;
- int n;
+append_const (struct agent_expr *x, LONGEST val, int n)
{
int i;
@@ -115,9 +108,7 @@ append_const (x, val, n)
/* Extract an N-byte big-endian unsigned integer from expression X at
offset O. */
static LONGEST
-read_const (x, o, n)
- struct agent_expr *x;
- int o, n;
+read_const (struct agent_expr *x, int o, int n)
{
int i;
LONGEST accum = 0;
@@ -135,9 +126,7 @@ read_const (x, o, n)
/* Append a simple operator OP to EXPR. */
void
-ax_simple (x, op)
- struct agent_expr *x;
- enum agent_op op;
+ax_simple (struct agent_expr *x, enum agent_op op)
{
grow_expr (x, 1);
x->buf[x->len++] = op;
@@ -147,10 +136,7 @@ ax_simple (x, op)
/* Append a sign-extension or zero-extension instruction to EXPR, to
extend an N-bit value. */
static void
-generic_ext (x, op, n)
- struct agent_expr *x;
- enum agent_op op;
- int n;
+generic_ext (struct agent_expr *x, enum agent_op op, int n)
{
/* N must fit in a byte. */
if (n < 0 || n > 255)
@@ -167,9 +153,7 @@ generic_ext (x, op, n)
/* Append a sign-extension instruction to EXPR, to extend an N-bit value. */
void
-ax_ext (x, n)
- struct agent_expr *x;
- int n;
+ax_ext (struct agent_expr *x, int n)
{
generic_ext (x, aop_ext, n);
}
@@ -177,9 +161,7 @@ ax_ext (x, n)
/* Append a zero-extension instruction to EXPR, to extend an N-bit value. */
void
-ax_zero_ext (x, n)
- struct agent_expr *x;
- int n;
+ax_zero_ext (struct agent_expr *x, int n)
{
generic_ext (x, aop_zero_ext, n);
}
@@ -187,9 +169,7 @@ ax_zero_ext (x, n)
/* Append a trace_quick instruction to EXPR, to record N bytes. */
void
-ax_trace_quick (x, n)
- struct agent_expr *x;
- int n;
+ax_trace_quick (struct agent_expr *x, int n)
{
/* N must fit in a byte. */
if (n < 0 || n > 255)
@@ -208,9 +188,7 @@ ax_trace_quick (x, n)
can backpatch it once we do know the target offset. Use ax_label
to do the backpatching. */
int
-ax_goto (x, op)
- struct agent_expr *x;
- enum agent_op op;
+ax_goto (struct agent_expr *x, enum agent_op op)
{
grow_expr (x, 3);
x->buf[x->len + 0] = op;
@@ -225,10 +203,7 @@ ax_goto (x, op)
ax_label (EXPR, PATCH, TARGET)
to patch TARGET into the ax_goto instruction. */
void
-ax_label (x, patch, target)
- struct agent_expr *x;
- int patch;
- int target;
+ax_label (struct agent_expr *x, int patch, int target)
{
/* Make sure the value is in range. Don't accept 0xffff as an
offset; that's our magic sentinel value for unpatched branches. */
@@ -242,9 +217,7 @@ ax_label (x, patch, target)
/* Assemble code to push a constant on the stack. */
void
-ax_const_l (x, l)
- struct agent_expr *x;
- LONGEST l;
+ax_const_l (struct agent_expr *x, LONGEST l)
{
static enum agent_op ops[]
=
@@ -274,9 +247,7 @@ ax_const_l (x, l)
void
-ax_const_d (x, d)
- struct agent_expr *x;
- LONGEST d;
+ax_const_d (struct agent_expr *x, LONGEST d)
{
/* FIXME: floating-point support not present yet. */
error ("GDB bug: ax-general.c (ax_const_d): floating point not supported yet");
@@ -286,9 +257,7 @@ ax_const_d (x, d)
/* Assemble code to push the value of register number REG on the
stack. */
void
-ax_reg (x, reg)
- struct agent_expr *x;
- int reg;
+ax_reg (struct agent_expr *x, int reg)
{
/* Make sure the register number is in range. */
if (reg < 0 || reg > 0xffff)
@@ -361,9 +330,7 @@ struct aop_map aop_map[] =
/* Disassemble the expression EXPR, writing to F. */
void
-ax_print (f, x)
- struct ui_file *f;
- struct agent_expr *x;
+ax_print (struct ui_file *f, struct agent_expr *x)
{
int i;
int is_float = 0;
@@ -411,9 +378,7 @@ ax_print (f, x)
/* Given an agent expression AX, fill in an agent_reqs structure REQS
describing it. */
void
-ax_reqs (ax, reqs)
- struct agent_expr *ax;
- struct agent_reqs *reqs;
+ax_reqs (struct agent_expr *ax, struct agent_reqs *reqs)
{
int i;
int height;
diff --git a/gdb/blockframe.c b/gdb/blockframe.c
index ccc80db..8e5c18c 100644
--- a/gdb/blockframe.c
+++ b/gdb/blockframe.c
@@ -41,9 +41,7 @@ void _initialize_blockframe (void);
frame is the outermost one and has no caller. */
int
-file_frame_chain_valid (chain, thisframe)
- CORE_ADDR chain;
- struct frame_info *thisframe;
+file_frame_chain_valid (CORE_ADDR chain, struct frame_info *thisframe)
{
return ((chain) != 0
&& !inside_entry_file (FRAME_SAVED_PC (thisframe)));
@@ -54,9 +52,7 @@ file_frame_chain_valid (chain, thisframe)
the comments in objfiles.h. */
int
-func_frame_chain_valid (chain, thisframe)
- CORE_ADDR chain;
- struct frame_info *thisframe;
+func_frame_chain_valid (CORE_ADDR chain, struct frame_info *thisframe)
{
return ((chain) != 0
&& !inside_main_func ((thisframe)->pc)
@@ -66,9 +62,7 @@ func_frame_chain_valid (chain, thisframe)
/* A very simple method of determining a valid frame */
int
-nonnull_frame_chain_valid (chain, thisframe)
- CORE_ADDR chain;
- struct frame_info *thisframe;
+nonnull_frame_chain_valid (CORE_ADDR chain, struct frame_info *thisframe)
{
return ((chain) != 0);
}
@@ -82,8 +76,7 @@ nonnull_frame_chain_valid (chain, thisframe)
A PC of zero is always considered to be the bottom of the stack. */
int
-inside_entry_file (addr)
- CORE_ADDR addr;
+inside_entry_file (CORE_ADDR addr)
{
if (addr == 0)
return 1;
@@ -110,8 +103,7 @@ inside_entry_file (addr)
A PC of zero is always considered to be the bottom of the stack. */
int
-inside_main_func (pc)
- CORE_ADDR pc;
+inside_main_func (CORE_ADDR pc)
{
if (pc == 0)
return 1;
@@ -149,8 +141,7 @@ inside_main_func (pc)
A PC of zero is always considered to be the bottom of the stack. */
int
-inside_entry_func (pc)
- CORE_ADDR pc;
+inside_entry_func (CORE_ADDR pc)
{
if (pc == 0)
return 1;
@@ -179,15 +170,13 @@ static struct frame_info *current_frame;
static struct obstack frame_cache_obstack;
void *
-frame_obstack_alloc (size)
- unsigned long size;
+frame_obstack_alloc (unsigned long size)
{
return obstack_alloc (&frame_cache_obstack, size);
}
void
-frame_saved_regs_zalloc (fi)
- struct frame_info *fi;
+frame_saved_regs_zalloc (struct frame_info *fi)
{
fi->saved_regs = (CORE_ADDR *)
frame_obstack_alloc (SIZEOF_FRAME_SAVED_REGS);
@@ -198,7 +187,7 @@ frame_saved_regs_zalloc (fi)
/* Return the innermost (currently executing) stack frame. */
struct frame_info *
-get_current_frame ()
+get_current_frame (void)
{
if (current_frame == NULL)
{
@@ -211,8 +200,7 @@ get_current_frame ()
}
void
-set_current_frame (frame)
- struct frame_info *frame;
+set_current_frame (struct frame_info *frame)
{
current_frame = frame;
}
@@ -221,9 +209,7 @@ set_current_frame (frame)
Always returns a non-NULL value. */
struct frame_info *
-create_new_frame (addr, pc)
- CORE_ADDR addr;
- CORE_ADDR pc;
+create_new_frame (CORE_ADDR addr, CORE_ADDR pc)
{
struct frame_info *fi;
char *name;
@@ -252,8 +238,7 @@ create_new_frame (addr, pc)
frame). */
struct frame_info *
-get_next_frame (frame)
- struct frame_info *frame;
+get_next_frame (struct frame_info *frame)
{
return frame->next;
}
@@ -261,7 +246,7 @@ get_next_frame (frame)
/* Flush the entire frame cache. */
void
-flush_cached_frames ()
+flush_cached_frames (void)
{
/* Since we can't really be sure what the first object allocated was */
obstack_free (&frame_cache_obstack, 0);
@@ -275,7 +260,7 @@ flush_cached_frames ()
/* Flush the frame cache, and start a new one if necessary. */
void
-reinit_frame_cache ()
+reinit_frame_cache (void)
{
flush_cached_frames ();
@@ -291,8 +276,7 @@ reinit_frame_cache ()
function. */
int
-frameless_look_for_prologue (frame)
- struct frame_info *frame;
+frameless_look_for_prologue (struct frame_info *frame)
{
CORE_ADDR func_start, after_prologue;
@@ -335,8 +319,7 @@ frameless_look_for_prologue (frame)
if there is no such frame. */
struct frame_info *
-get_prev_frame (next_frame)
- struct frame_info *next_frame;
+get_prev_frame (struct frame_info *next_frame)
{
CORE_ADDR address = 0;
struct frame_info *prev;
@@ -496,8 +479,7 @@ get_prev_frame (next_frame)
}
CORE_ADDR
-get_frame_pc (frame)
- struct frame_info *frame;
+get_frame_pc (struct frame_info *frame)
{
return frame->pc;
}
@@ -509,9 +491,8 @@ get_frame_pc (frame)
/* Find the addresses in which registers are saved in FRAME. */
void
-get_frame_saved_regs (frame, saved_regs_addr)
- struct frame_info *frame;
- struct frame_saved_regs *saved_regs_addr;
+get_frame_saved_regs (struct frame_info *frame,
+ struct frame_saved_regs *saved_regs_addr)
{
if (frame->saved_regs == NULL)
{
@@ -536,8 +517,7 @@ get_frame_saved_regs (frame, saved_regs_addr)
in a specified stack frame. The frame address is assumed valid. */
struct block *
-get_frame_block (frame)
- struct frame_info *frame;
+get_frame_block (struct frame_info *frame)
{
CORE_ADDR pc;
@@ -554,14 +534,13 @@ get_frame_block (frame)
}
struct block *
-get_current_block ()
+get_current_block (void)
{
return block_for_pc (read_pc ());
}
CORE_ADDR
-get_pc_function_start (pc)
- CORE_ADDR pc;
+get_pc_function_start (CORE_ADDR pc)
{
register struct block *bl;
register struct symbol *symbol;
@@ -588,8 +567,7 @@ get_pc_function_start (pc)
/* Return the symbol for the function executing in frame FRAME. */
struct symbol *
-get_frame_function (frame)
- struct frame_info *frame;
+get_frame_function (struct frame_info *frame)
{
register struct block *bl = get_frame_block (frame);
if (bl == 0)
@@ -604,12 +582,8 @@ get_frame_function (frame)
is NULL, we don't pass this information back to the caller. */
struct blockvector *
-blockvector_for_pc_sect (pc, section, pindex, symtab)
- register CORE_ADDR pc;
- struct sec *section;
- int *pindex;
- struct symtab *symtab;
-
+blockvector_for_pc_sect (register CORE_ADDR pc, struct sec *section,
+ int *pindex, struct symtab *symtab)
{
register struct block *b;
register int bot, top, half;
@@ -662,9 +636,7 @@ blockvector_for_pc_sect (pc, section, pindex, symtab)
Backward compatibility, no section. */
struct blockvector *
-blockvector_for_pc (pc, pindex)
- register CORE_ADDR pc;
- int *pindex;
+blockvector_for_pc (register CORE_ADDR pc, int *pindex)
{
return blockvector_for_pc_sect (pc, find_pc_mapped_section (pc),
pindex, NULL);
@@ -674,9 +646,7 @@ blockvector_for_pc (pc, pindex)
in the specified section, or 0 if there is none. */
struct block *
-block_for_pc_sect (pc, section)
- register CORE_ADDR pc;
- struct sec *section;
+block_for_pc_sect (register CORE_ADDR pc, struct sec *section)
{
register struct blockvector *bl;
int index;
@@ -691,8 +661,7 @@ block_for_pc_sect (pc, section)
or 0 if there is none. Backward compatibility, no section. */
struct block *
-block_for_pc (pc)
- register CORE_ADDR pc;
+block_for_pc (register CORE_ADDR pc)
{
return block_for_pc_sect (pc, find_pc_mapped_section (pc));
}
@@ -701,9 +670,7 @@ block_for_pc (pc)
Returns 0 if function is not known. */
struct symbol *
-find_pc_sect_function (pc, section)
- CORE_ADDR pc;
- struct sec *section;
+find_pc_sect_function (CORE_ADDR pc, struct sec *section)
{
register struct block *b = block_for_pc_sect (pc, section);
if (b == 0)
@@ -715,8 +682,7 @@ find_pc_sect_function (pc, section)
Returns 0 if function is not known. Backward compatibility, no section */
struct symbol *
-find_pc_function (pc)
- CORE_ADDR pc;
+find_pc_function (CORE_ADDR pc)
{
return find_pc_sect_function (pc, find_pc_mapped_section (pc));
}
@@ -732,7 +698,7 @@ static struct sec *cache_pc_function_section = NULL;
/* Clear cache, e.g. when symbol table is discarded. */
void
-clear_pc_function_cache ()
+clear_pc_function_cache (void)
{
cache_pc_function_low = 0;
cache_pc_function_high = 0;
@@ -752,12 +718,8 @@ clear_pc_function_cache ()
returns 0. */
int
-find_pc_sect_partial_function (pc, section, name, address, endaddr)
- CORE_ADDR pc;
- asection *section;
- char **name;
- CORE_ADDR *address;
- CORE_ADDR *endaddr;
+find_pc_sect_partial_function (CORE_ADDR pc, asection *section, char **name,
+ CORE_ADDR *address, CORE_ADDR *endaddr)
{
struct partial_symtab *pst;
struct symbol *f;
@@ -924,11 +886,8 @@ return_cached_value:
/* Backward compatibility, no section argument */
int
-find_pc_partial_function (pc, name, address, endaddr)
- CORE_ADDR pc;
- char **name;
- CORE_ADDR *address;
- CORE_ADDR *endaddr;
+find_pc_partial_function (CORE_ADDR pc, char **name, CORE_ADDR *address,
+ CORE_ADDR *endaddr)
{
asection *section;
@@ -940,8 +899,7 @@ find_pc_partial_function (pc, name, address, endaddr)
or NULL if there is no such frame. If BLOCK is NULL, just return NULL. */
struct frame_info *
-block_innermost_frame (block)
- struct block *block;
+block_innermost_frame (struct block *block)
{
struct frame_info *frame;
register CORE_ADDR start;
@@ -968,8 +926,7 @@ block_innermost_frame (block)
or NULL if no FRAME on the chain corresponds to CORE_ADDR. */
struct frame_info *
-find_frame_addr_in_frame_chain (frame_addr)
- CORE_ADDR frame_addr;
+find_frame_addr_in_frame_chain (CORE_ADDR frame_addr)
{
struct frame_info *frame = NULL;
@@ -990,8 +947,7 @@ find_frame_addr_in_frame_chain (frame_addr)
/* Get saved user PC for sigtramp from sigcontext for BSD style sigtramp. */
CORE_ADDR
-sigtramp_saved_pc (frame)
- struct frame_info *frame;
+sigtramp_saved_pc (struct frame_info *frame)
{
CORE_ADDR sigcontext_addr;
char buf[TARGET_PTR_BIT / TARGET_CHAR_BIT];
@@ -1024,20 +980,16 @@ sigtramp_saved_pc (frame)
extern CORE_ADDR text_end;
int
-pc_in_call_dummy_before_text_end (pc, sp, frame_address)
- CORE_ADDR pc;
- CORE_ADDR sp;
- CORE_ADDR frame_address;
+pc_in_call_dummy_before_text_end (CORE_ADDR pc, CORE_ADDR sp,
+ CORE_ADDR frame_address)
{
return ((pc) >= text_end - CALL_DUMMY_LENGTH
&& (pc) <= text_end + DECR_PC_AFTER_BREAK);
}
int
-pc_in_call_dummy_after_text_end (pc, sp, frame_address)
- CORE_ADDR pc;
- CORE_ADDR sp;
- CORE_ADDR frame_address;
+pc_in_call_dummy_after_text_end (CORE_ADDR pc, CORE_ADDR sp,
+ CORE_ADDR frame_address)
{
return ((pc) >= text_end
&& (pc) <= text_end + CALL_DUMMY_LENGTH + DECR_PC_AFTER_BREAK);
@@ -1062,10 +1014,7 @@ pc_in_call_dummy_after_text_end (pc, sp, frame_address)
allocate other kinds of code on the stack. */
int
-pc_in_call_dummy_on_stack (pc, sp, frame_address)
- CORE_ADDR pc;
- CORE_ADDR sp;
- CORE_ADDR frame_address;
+pc_in_call_dummy_on_stack (CORE_ADDR pc, CORE_ADDR sp, CORE_ADDR frame_address)
{
return (INNER_THAN ((sp), (pc))
&& (frame_address != 0)
@@ -1073,10 +1022,8 @@ pc_in_call_dummy_on_stack (pc, sp, frame_address)
}
int
-pc_in_call_dummy_at_entry_point (pc, sp, frame_address)
- CORE_ADDR pc;
- CORE_ADDR sp;
- CORE_ADDR frame_address;
+pc_in_call_dummy_at_entry_point (CORE_ADDR pc, CORE_ADDR sp,
+ CORE_ADDR frame_address)
{
return ((pc) >= CALL_DUMMY_ADDRESS ()
&& (pc) <= (CALL_DUMMY_ADDRESS () + DECR_PC_AFTER_BREAK));
@@ -1123,9 +1070,7 @@ static struct dummy_frame *dummy_frame_stack = NULL;
This is the work-horse for pc_in_call_dummy and read_register_dummy */
char *
-generic_find_dummy_frame (pc, fp)
- CORE_ADDR pc;
- CORE_ADDR fp;
+generic_find_dummy_frame (CORE_ADDR pc, CORE_ADDR fp)
{
struct dummy_frame *dummyframe;
@@ -1147,10 +1092,7 @@ generic_find_dummy_frame (pc, fp)
Return true if this is a dummy frame created by gdb for an inferior call */
int
-generic_pc_in_call_dummy (pc, sp, fp)
- CORE_ADDR pc;
- CORE_ADDR sp;
- CORE_ADDR fp;
+generic_pc_in_call_dummy (CORE_ADDR pc, CORE_ADDR sp, CORE_ADDR fp)
{
/* if find_dummy_frame succeeds, then PC is in a call dummy */
/* Note: SP and not FP is passed on. */
@@ -1161,10 +1103,7 @@ generic_pc_in_call_dummy (pc, sp, fp)
Find a saved register from before GDB calls a function in the inferior */
CORE_ADDR
-generic_read_register_dummy (pc, fp, regno)
- CORE_ADDR pc;
- CORE_ADDR fp;
- int regno;
+generic_read_register_dummy (CORE_ADDR pc, CORE_ADDR fp, int regno)
{
char *dummy_regs = generic_find_dummy_frame (pc, fp);
@@ -1183,7 +1122,7 @@ generic_read_register_dummy (pc, fp, regno)
where a breakpoint is laying in wait. */
void
-generic_push_dummy_frame ()
+generic_push_dummy_frame (void)
{
struct dummy_frame *dummy_frame;
CORE_ADDR fp = (get_current_frame ())->frame;
@@ -1217,8 +1156,7 @@ generic_push_dummy_frame ()
}
void
-generic_save_dummy_frame_tos (sp)
- CORE_ADDR sp;
+generic_save_dummy_frame_tos (CORE_ADDR sp)
{
dummy_frame_stack->top = sp;
}
@@ -1241,7 +1179,7 @@ generic_pop_current_frame (void (*popper) (struct frame_info * frame))
Restore the machine state from a saved dummy stack frame. */
void
-generic_pop_dummy_frame ()
+generic_pop_dummy_frame (void)
{
struct dummy_frame *dummy_frame = dummy_frame_stack;
@@ -1263,9 +1201,7 @@ generic_pop_dummy_frame ()
and false for the CRT0 start-up frame. Purpose is to terminate backtrace */
int
-generic_file_frame_chain_valid (fp, fi)
- CORE_ADDR fp;
- struct frame_info *fi;
+generic_file_frame_chain_valid (CORE_ADDR fp, struct frame_info *fi)
{
if (PC_IN_CALL_DUMMY (FRAME_SAVED_PC (fi), fp, fp))
return 1; /* don't prune CALL_DUMMY frames */
@@ -1276,9 +1212,7 @@ generic_file_frame_chain_valid (fp, fi)
}
int
-generic_func_frame_chain_valid (fp, fi)
- CORE_ADDR fp;
- struct frame_info *fi;
+generic_func_frame_chain_valid (CORE_ADDR fp, struct frame_info *fi)
{
if (PC_IN_CALL_DUMMY ((fi)->pc, fp, fp))
return 1; /* don't prune CALL_DUMMY frames */
@@ -1294,14 +1228,8 @@ generic_func_frame_chain_valid (fp, fi)
the frame being created */
void
-generic_fix_call_dummy (dummy, pc, fun, nargs, args, type, gcc_p)
- char *dummy;
- CORE_ADDR pc;
- CORE_ADDR fun;
- int nargs;
- struct value **args;
- struct type *type;
- int gcc_p;
+generic_fix_call_dummy (char *dummy, CORE_ADDR pc, CORE_ADDR fun, int nargs,
+ struct value **args, struct type *type, int gcc_p)
{
return;
}
@@ -1331,13 +1259,9 @@ generic_fix_call_dummy (dummy, pc, fun, nargs, args, type, gcc_p)
The argument RAW_BUFFER must point to aligned memory. */
void
-generic_get_saved_register (raw_buffer, optimized, addrp, frame, regnum, lval)
- char *raw_buffer;
- int *optimized;
- CORE_ADDR *addrp;
- struct frame_info *frame;
- int regnum;
- enum lval_type *lval;
+generic_get_saved_register (char *raw_buffer, int *optimized, CORE_ADDR *addrp,
+ struct frame_info *frame, int regnum,
+ enum lval_type *lval)
{
if (!target_has_registers)
error ("No registers.");
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index de8cabf..6633eb9 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -328,8 +328,7 @@ int exception_support_initialized = 0;
/* Set breakpoint count to NUM. */
void
-set_breakpoint_count (num)
- int num;
+set_breakpoint_count (int num)
{
breakpoint_count = num;
set_internalvar (lookup_internalvar ("bpnum"),
@@ -339,7 +338,7 @@ set_breakpoint_count (num)
/* Used in run_command to zero the hit count when a new run starts. */
void
-clear_breakpoint_hit_counts ()
+clear_breakpoint_hit_counts (void)
{
struct breakpoint *b;
@@ -369,9 +368,7 @@ int default_breakpoint_line;
TRAILER is a character which can be found after the number; most
commonly this is `-'. If you don't want a trailer, use \0. */
static int
-get_number_trailer (pp, trailer)
- char **pp;
- int trailer;
+get_number_trailer (char **pp, int trailer)
{
int retval = 0; /* default */
char *p = *pp;
@@ -435,8 +432,7 @@ get_number_trailer (pp, trailer)
/* Like get_number_trailer, but don't allow a trailer. */
int
-get_number (pp)
- char **pp;
+get_number (char **pp)
{
return get_number_trailer (pp, '\0');
}
@@ -458,8 +454,7 @@ get_number (pp)
*/
int
-get_number_or_range (pp)
- char **pp;
+get_number_or_range (char **pp)
{
static int last_retval, end_value;
static char *end_ptr;
@@ -523,9 +518,7 @@ get_number_or_range (pp)
/* condition N EXP -- set break condition of breakpoint N to EXP. */
static void
-condition_command (arg, from_tty)
- char *arg;
- int from_tty;
+condition_command (char *arg, int from_tty)
{
register struct breakpoint *b;
char *p;
@@ -576,9 +569,7 @@ condition_command (arg, from_tty)
/* ARGSUSED */
static void
-commands_command (arg, from_tty)
- char *arg;
- int from_tty;
+commands_command (char *arg, int from_tty)
{
register struct breakpoint *b;
char *p;
@@ -623,10 +614,7 @@ commands_command (arg, from_tty)
shadow contents, not the breakpoints themselves. From breakpoint.c. */
int
-read_memory_nobpt (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- unsigned len;
+read_memory_nobpt (CORE_ADDR memaddr, char *myaddr, unsigned len)
{
int status;
struct breakpoint *b;
@@ -728,7 +716,7 @@ read_memory_nobpt (memaddr, myaddr, len)
or an `errno' value if could not write the inferior. */
int
-insert_breakpoints ()
+insert_breakpoints (void)
{
register struct breakpoint *b, *temp;
int return_val = 0; /* return success code. */
@@ -1038,7 +1026,7 @@ insert_breakpoints ()
int
-remove_breakpoints ()
+remove_breakpoints (void)
{
register struct breakpoint *b;
int val;
@@ -1077,8 +1065,7 @@ remove_hw_watchpoints (void)
}
int
-reattach_breakpoints (pid)
- int pid;
+reattach_breakpoints (int pid)
{
register struct breakpoint *b;
int val;
@@ -1107,7 +1094,7 @@ reattach_breakpoints (pid)
}
void
-update_breakpoints_after_exec ()
+update_breakpoints_after_exec (void)
{
struct breakpoint *b;
struct breakpoint *temp;
@@ -1222,8 +1209,7 @@ update_breakpoints_after_exec ()
}
int
-detach_breakpoints (pid)
- int pid;
+detach_breakpoints (int pid)
{
register struct breakpoint *b;
int val;
@@ -1251,9 +1237,7 @@ detach_breakpoints (pid)
}
static int
-remove_breakpoint (b, is)
- struct breakpoint *b;
- insertion_state_t is;
+remove_breakpoint (struct breakpoint *b, insertion_state_t is)
{
int val;
@@ -1417,7 +1401,7 @@ remove_breakpoint (b, is)
/* Clear the "inserted" flag in all breakpoints. */
void
-mark_breakpoints_out ()
+mark_breakpoints_out (void)
{
register struct breakpoint *b;
@@ -1438,8 +1422,7 @@ mark_breakpoints_out ()
void
-breakpoint_init_inferior (context)
- enum inf_context context;
+breakpoint_init_inferior (enum inf_context context)
{
register struct breakpoint *b, *temp;
static int warning_needed = 0;
@@ -1506,8 +1489,7 @@ breakpoint_init_inferior (context)
the target, to advance the PC past the breakpoint. */
enum breakpoint_here
-breakpoint_here_p (pc)
- CORE_ADDR pc;
+breakpoint_here_p (CORE_ADDR pc)
{
register struct breakpoint *b;
int any_breakpoint_here = 0;
@@ -1536,8 +1518,7 @@ breakpoint_here_p (pc)
at PC. */
int
-breakpoint_inserted_here_p (pc)
- CORE_ADDR pc;
+breakpoint_inserted_here_p (CORE_ADDR pc)
{
register struct breakpoint *b;
@@ -1563,8 +1544,7 @@ breakpoint_inserted_here_p (pc)
bp_call_dummy breakpoint. */
int
-frame_in_dummy (frame)
- struct frame_info *frame;
+frame_in_dummy (struct frame_info *frame)
{
struct breakpoint *b;
@@ -1593,9 +1573,7 @@ frame_in_dummy (frame)
PC is valid for process/thread PID. */
int
-breakpoint_thread_match (pc, pid)
- CORE_ADDR pc;
- int pid;
+breakpoint_thread_match (CORE_ADDR pc, int pid)
{
struct breakpoint *b;
int thread;
@@ -1625,8 +1603,7 @@ breakpoint_thread_match (pc, pid)
in breakpoint.h. */
int
-ep_is_catchpoint (ep)
- struct breakpoint *ep;
+ep_is_catchpoint (struct breakpoint *ep)
{
return
(ep->type == bp_catch_load)
@@ -1643,8 +1620,7 @@ ep_is_catchpoint (ep)
}
int
-ep_is_shlib_catchpoint (ep)
- struct breakpoint *ep;
+ep_is_shlib_catchpoint (struct breakpoint *ep)
{
return
(ep->type == bp_catch_load)
@@ -1653,8 +1629,7 @@ ep_is_shlib_catchpoint (ep)
}
int
-ep_is_exception_catchpoint (ep)
- struct breakpoint *ep;
+ep_is_exception_catchpoint (struct breakpoint *ep)
{
return
(ep->type == bp_catch_catch)
@@ -1666,8 +1641,7 @@ ep_is_exception_catchpoint (ep)
Also free any storage that is part of a bpstat. */
void
-bpstat_clear (bsp)
- bpstat *bsp;
+bpstat_clear (bpstat *bsp)
{
bpstat p;
bpstat q;
@@ -1690,8 +1664,7 @@ bpstat_clear (bsp)
is part of the bpstat is copied as well. */
bpstat
-bpstat_copy (bs)
- bpstat bs;
+bpstat_copy (bpstat bs)
{
bpstat p = NULL;
bpstat tmp;
@@ -1718,9 +1691,7 @@ bpstat_copy (bs)
/* Find the bpstat associated with this breakpoint */
bpstat
-bpstat_find_breakpoint (bsp, breakpoint)
- bpstat bsp;
- struct breakpoint *breakpoint;
+bpstat_find_breakpoint (bpstat bsp, struct breakpoint *breakpoint)
{
if (bsp == NULL)
return NULL;
@@ -1742,8 +1713,7 @@ bpstat_find_breakpoint (bsp, breakpoint)
See wait_for_inferior's use of this function. */
struct breakpoint *
-bpstat_find_step_resume_breakpoint (bsp)
- bpstat bsp;
+bpstat_find_step_resume_breakpoint (bpstat bsp)
{
if (bsp == NULL)
error ("Internal error (bpstat_find_step_resume_breakpoint)");
@@ -1766,8 +1736,7 @@ bpstat_find_step_resume_breakpoint (bsp)
Return 0 if passed a bpstat which does not indicate any breakpoints. */
int
-bpstat_num (bsp)
- bpstat *bsp;
+bpstat_num (bpstat *bsp)
{
struct breakpoint *b;
@@ -1787,8 +1756,7 @@ bpstat_num (bsp)
/* Modify BS so that the actions will not be performed. */
void
-bpstat_clear_actions (bs)
- bpstat bs;
+bpstat_clear_actions (bpstat bs)
{
for (; bs != NULL; bs = bs->next)
{
@@ -1804,8 +1772,7 @@ bpstat_clear_actions (bs)
/* Stub for cleaning up our state if we error-out of a breakpoint command */
/* ARGSUSED */
static void
-cleanup_executing_breakpoints (ignore)
- PTR ignore;
+cleanup_executing_breakpoints (PTR ignore)
{
executing_breakpoint_commands = 0;
}
@@ -1816,8 +1783,7 @@ cleanup_executing_breakpoints (ignore)
the global "breakpoint_proceeded" after each command. */
void
-bpstat_do_actions (bsp)
- bpstat *bsp;
+bpstat_do_actions (bpstat *bsp)
{
bpstat bs;
struct cleanup *old_chain;
@@ -1892,8 +1858,7 @@ top:
analysis. */
static enum print_stop_action
-print_it_typical (bs)
- bpstat bs;
+print_it_typical (bpstat bs)
{
#ifdef UI_OUT
struct cleanup *old_chain;
@@ -2242,8 +2207,7 @@ print_bp_stop_message (bpstat bs)
further info to be printed.*/
enum print_stop_action
-bpstat_print (bs)
- bpstat bs;
+bpstat_print (bpstat bs)
{
int val;
@@ -2271,8 +2235,7 @@ bpstat_print (bs)
make it pass through catch_errors. */
static int
-breakpoint_cond_eval (exp)
- PTR exp;
+breakpoint_cond_eval (PTR exp)
{
value_ptr mark = value_mark ();
int i = !value_true (evaluate_expression ((struct expression *) exp));
@@ -2314,8 +2277,7 @@ bpstat_alloc (b, cbs)
/* Check watchpoint condition. */
static int
-watchpoint_check (p)
- PTR p;
+watchpoint_check (PTR p)
{
bpstat bs = (bpstat) p;
struct breakpoint *b;
@@ -2423,9 +2385,7 @@ which its expression is valid.\n", bs->breakpoint_at->number);
commands, FIXME??? fields. */
bpstat
-bpstat_stop_status (pc, not_a_breakpoint)
- CORE_ADDR *pc;
- int not_a_breakpoint;
+bpstat_stop_status (CORE_ADDR *pc, int not_a_breakpoint)
{
register struct breakpoint *b, *temp;
CORE_ADDR bp_addr;
@@ -2743,8 +2703,7 @@ bpstat_stop_status (pc, not_a_breakpoint)
/* Tell what to do about this bpstat. */
struct bpstat_what
-bpstat_what (bs)
- bpstat bs;
+bpstat_what (bpstat bs)
{
/* Classify each bpstat as one of the following. */
enum class
@@ -3021,7 +2980,7 @@ bpstat_what (bs)
just to things like whether watchpoints are set. */
int
-bpstat_should_step ()
+bpstat_should_step (void)
{
struct breakpoint *b;
ALL_BREAKPOINTS (b)
@@ -3032,7 +2991,7 @@ bpstat_should_step ()
/* Nonzero if there are enabled hardware watchpoints. */
int
-bpstat_have_active_hw_watchpoints ()
+bpstat_have_active_hw_watchpoints (void)
{
struct breakpoint *b;
ALL_BREAKPOINTS (b)
@@ -3050,9 +3009,7 @@ bpstat_have_active_hw_watchpoints ()
function returns another bpstat which contains only the catchpoints
on that first list, if any. */
void
-bpstat_get_triggered_catchpoints (ep_list, cp_list)
- bpstat ep_list;
- bpstat *cp_list;
+bpstat_get_triggered_catchpoints (bpstat ep_list, bpstat *cp_list)
{
struct bpstats root_bs[1];
bpstat bs = root_bs;
@@ -3567,9 +3524,7 @@ gdb_breakpoint_query (/* output object, */ int bnum)
is nonzero, process only watchpoints. */
static void
-breakpoint_1 (bnum, allflag)
- int bnum;
- int allflag;
+breakpoint_1 (int bnum, int allflag)
{
register struct breakpoint *b;
CORE_ADDR last_addr = (CORE_ADDR) -1;
@@ -3680,9 +3635,7 @@ breakpoint_1 (bnum, allflag)
/* ARGSUSED */
static void
-breakpoints_info (bnum_exp, from_tty)
- char *bnum_exp;
- int from_tty;
+breakpoints_info (char *bnum_exp, int from_tty)
{
int bnum = -1;
@@ -3694,9 +3647,7 @@ breakpoints_info (bnum_exp, from_tty)
/* ARGSUSED */
static void
-maintenance_info_breakpoints (bnum_exp, from_tty)
- char *bnum_exp;
- int from_tty;
+maintenance_info_breakpoints (char *bnum_exp, int from_tty)
{
int bnum = -1;
@@ -3709,9 +3660,7 @@ maintenance_info_breakpoints (bnum_exp, from_tty)
/* Print a message describing any breakpoints set at PC. */
static void
-describe_other_breakpoints (pc, section)
- CORE_ADDR pc;
- asection *section;
+describe_other_breakpoints (CORE_ADDR pc, asection *section)
{
register int others = 0;
register struct breakpoint *b;
@@ -3750,11 +3699,8 @@ describe_other_breakpoints (pc, section)
for the `break' command with no arguments. */
void
-set_default_breakpoint (valid, addr, symtab, line)
- int valid;
- CORE_ADDR addr;
- struct symtab *symtab;
- int line;
+set_default_breakpoint (int valid, CORE_ADDR addr, struct symtab *symtab,
+ int line)
{
default_breakpoint_valid = valid;
default_breakpoint_address = addr;
@@ -3769,9 +3715,7 @@ set_default_breakpoint (valid, addr, symtab, line)
the official one, and the rest as duplicates. */
static void
-check_duplicates (address, section)
- CORE_ADDR address;
- asection *section;
+check_duplicates (CORE_ADDR address, asection *section)
{
register struct breakpoint *b;
register int count = 0;
@@ -3838,8 +3782,7 @@ check_duplicates (address, section)
your arguments BEFORE calling this routine! */
struct breakpoint *
-set_raw_breakpoint (sal)
- struct symtab_and_line sal;
+set_raw_breakpoint (struct symtab_and_line sal)
{
register struct breakpoint *b, *b1;
@@ -3902,8 +3845,7 @@ make_breakpoint_permanent (struct breakpoint *b)
#ifdef GET_LONGJMP_TARGET
static void
-create_longjmp_breakpoint (func_name)
- char *func_name;
+create_longjmp_breakpoint (char *func_name)
{
struct symtab_and_line sal;
struct breakpoint *b;
@@ -3941,7 +3883,7 @@ create_longjmp_breakpoint (func_name)
set_longjmp_resume_breakpoint() to figure out where we are going. */
void
-enable_longjmp_breakpoint ()
+enable_longjmp_breakpoint (void)
{
register struct breakpoint *b;
@@ -3954,7 +3896,7 @@ enable_longjmp_breakpoint ()
}
void
-disable_longjmp_breakpoint ()
+disable_longjmp_breakpoint (void)
{
register struct breakpoint *b;
@@ -3968,8 +3910,7 @@ disable_longjmp_breakpoint ()
}
struct breakpoint *
-create_thread_event_breakpoint (address)
- CORE_ADDR address;
+create_thread_event_breakpoint (CORE_ADDR address)
{
struct breakpoint *b;
struct symtab_and_line sal;
@@ -4005,7 +3946,7 @@ remove_thread_event_breakpoints (void)
#ifdef SOLIB_ADD
void
-remove_solib_event_breakpoints ()
+remove_solib_event_breakpoints (void)
{
register struct breakpoint *b, *temp;
@@ -4015,8 +3956,7 @@ remove_solib_event_breakpoints ()
}
struct breakpoint *
-create_solib_event_breakpoint (address)
- CORE_ADDR address;
+create_solib_event_breakpoint (CORE_ADDR address)
{
struct breakpoint *b;
struct symtab_and_line sal;
@@ -4036,8 +3976,7 @@ create_solib_event_breakpoint (address)
apply to enabled breakpoints, disabled ones can just stay disabled. */
void
-disable_breakpoints_in_shlibs (silent)
- int silent;
+disable_breakpoints_in_shlibs (int silent)
{
struct breakpoint *b;
int disabled_shlib_breaks = 0;
@@ -4070,7 +4009,7 @@ disable_breakpoints_in_shlibs (silent)
/* Try to reenable any breakpoints in shared libraries. */
void
-re_enable_breakpoints_in_shlibs ()
+re_enable_breakpoints_in_shlibs (void)
{
struct breakpoint *b;
@@ -4089,12 +4028,8 @@ re_enable_breakpoints_in_shlibs ()
#endif
static void
-solib_load_unload_1 (hookname, tempflag, dll_pathname, cond_string, bp_kind)
- char *hookname;
- int tempflag;
- char *dll_pathname;
- char *cond_string;
- enum bptype bp_kind;
+solib_load_unload_1 (char *hookname, int tempflag, char *dll_pathname,
+ char *cond_string, enum bptype bp_kind)
{
struct breakpoint *b;
struct symtabs_and_lines sals;
@@ -4170,34 +4105,24 @@ solib_load_unload_1 (hookname, tempflag, dll_pathname, cond_string, bp_kind)
}
void
-create_solib_load_event_breakpoint (hookname, tempflag,
- dll_pathname, cond_string)
- char *hookname;
- int tempflag;
- char *dll_pathname;
- char *cond_string;
+create_solib_load_event_breakpoint (char *hookname, int tempflag,
+ char *dll_pathname, char *cond_string)
{
solib_load_unload_1 (hookname, tempflag, dll_pathname,
cond_string, bp_catch_load);
}
void
-create_solib_unload_event_breakpoint (hookname, tempflag,
- dll_pathname, cond_string)
- char *hookname;
- int tempflag;
- char *dll_pathname;
- char *cond_string;
+create_solib_unload_event_breakpoint (char *hookname, int tempflag,
+ char *dll_pathname, char *cond_string)
{
solib_load_unload_1 (hookname,tempflag, dll_pathname,
cond_string, bp_catch_unload);
}
static void
-create_fork_vfork_event_catchpoint (tempflag, cond_string, bp_kind)
- int tempflag;
- char *cond_string;
- enum bptype bp_kind;
+create_fork_vfork_event_catchpoint (int tempflag, char *cond_string,
+ enum bptype bp_kind)
{
struct symtab_and_line sal;
struct breakpoint *b;
@@ -4226,25 +4151,19 @@ create_fork_vfork_event_catchpoint (tempflag, cond_string, bp_kind)
}
void
-create_fork_event_catchpoint (tempflag, cond_string)
- int tempflag;
- char *cond_string;
+create_fork_event_catchpoint (int tempflag, char *cond_string)
{
create_fork_vfork_event_catchpoint (tempflag, cond_string, bp_catch_fork);
}
void
-create_vfork_event_catchpoint (tempflag, cond_string)
- int tempflag;
- char *cond_string;
+create_vfork_event_catchpoint (int tempflag, char *cond_string)
{
create_fork_vfork_event_catchpoint (tempflag, cond_string, bp_catch_vfork);
}
void
-create_exec_event_catchpoint (tempflag, cond_string)
- int tempflag;
- char *cond_string;
+create_exec_event_catchpoint (int tempflag, char *cond_string)
{
struct symtab_and_line sal;
struct breakpoint *b;
@@ -4272,7 +4191,7 @@ create_exec_event_catchpoint (tempflag, cond_string)
}
static int
-hw_breakpoint_used_count ()
+hw_breakpoint_used_count (void)
{
register struct breakpoint *b;
int i = 0;
@@ -4287,9 +4206,7 @@ hw_breakpoint_used_count ()
}
static int
-hw_watchpoint_used_count (type, other_type_used)
- enum bptype type;
- int *other_type_used;
+hw_watchpoint_used_count (enum bptype type, int *other_type_used)
{
register struct breakpoint *b;
int i = 0;
@@ -4318,9 +4235,7 @@ hw_watchpoint_used_count (type, other_type_used)
that gets deleted automatically... */
void
-set_longjmp_resume_breakpoint (pc, frame)
- CORE_ADDR pc;
- struct frame_info *frame;
+set_longjmp_resume_breakpoint (CORE_ADDR pc, struct frame_info *frame)
{
register struct breakpoint *b;
@@ -4339,7 +4254,7 @@ set_longjmp_resume_breakpoint (pc, frame)
}
void
-disable_watchpoints_before_interactive_call_start ()
+disable_watchpoints_before_interactive_call_start (void)
{
struct breakpoint *b;
@@ -4359,7 +4274,7 @@ disable_watchpoints_before_interactive_call_start ()
}
void
-enable_watchpoints_after_interactive_call_stop ()
+enable_watchpoints_after_interactive_call_stop (void)
{
struct breakpoint *b;
@@ -4384,10 +4299,8 @@ enable_watchpoints_after_interactive_call_stop ()
Restrict it to frame FRAME if FRAME is nonzero. */
struct breakpoint *
-set_momentary_breakpoint (sal, frame, type)
- struct symtab_and_line sal;
- struct frame_info *frame;
- enum bptype type;
+set_momentary_breakpoint (struct symtab_and_line sal, struct frame_info *frame,
+ enum bptype type)
{
register struct breakpoint *b;
b = set_raw_breakpoint (sal);
@@ -4409,8 +4322,7 @@ set_momentary_breakpoint (sal, frame, type)
/* Tell the user we have just set a breakpoint B. */
static void
-mention (b)
- struct breakpoint *b;
+mention (struct breakpoint *b)
{
int say_where = 0;
#ifdef UI_OUT
@@ -4736,9 +4648,7 @@ breakpoint_sals_to_pc (struct symtabs_and_lines *sals,
second bit : 0 normal breakpoint, 1 hardware breakpoint. */
static void
-break_command_1 (arg, flag, from_tty)
- char *arg;
- int flag, from_tty;
+break_command_1 (char *arg, int flag, int from_tty)
{
int tempflag, hardwareflag;
struct symtabs_and_lines sals;
@@ -4993,10 +4903,7 @@ gdb_breakpoint (char *address, char *condition,
static void
-break_at_finish_at_depth_command_1 (arg, flag, from_tty)
- char *arg;
- int flag;
- int from_tty;
+break_at_finish_at_depth_command_1 (char *arg, int flag, int from_tty)
{
struct frame_info *frame;
CORE_ADDR low, high, selected_pc = 0;
@@ -5071,10 +4978,7 @@ break_at_finish_at_depth_command_1 (arg, flag, from_tty)
static void
-break_at_finish_command_1 (arg, flag, from_tty)
- char *arg;
- int flag;
- int from_tty;
+break_at_finish_command_1 (char *arg, int flag, int from_tty)
{
char *addr_string, *break_string, *beg_addr_string;
CORE_ADDR low, high;
@@ -5162,8 +5066,7 @@ break_at_finish_command_1 (arg, flag, from_tty)
/* Helper function for break_command_1 and disassemble_command. */
void
-resolve_sal_pc (sal)
- struct symtab_and_line *sal;
+resolve_sal_pc (struct symtab_and_line *sal)
{
CORE_ADDR pc;
@@ -5210,65 +5113,49 @@ resolve_sal_pc (sal)
}
void
-break_command (arg, from_tty)
- char *arg;
- int from_tty;
+break_command (char *arg, int from_tty)
{
break_command_1 (arg, 0, from_tty);
}
static void
-break_at_finish_command (arg, from_tty)
- char *arg;
- int from_tty;
+break_at_finish_command (char *arg, int from_tty)
{
break_at_finish_command_1 (arg, 0, from_tty);
}
static void
-break_at_finish_at_depth_command (arg, from_tty)
- char *arg;
- int from_tty;
+break_at_finish_at_depth_command (char *arg, int from_tty)
{
break_at_finish_at_depth_command_1 (arg, 0, from_tty);
}
void
-tbreak_command (arg, from_tty)
- char *arg;
- int from_tty;
+tbreak_command (char *arg, int from_tty)
{
break_command_1 (arg, BP_TEMPFLAG, from_tty);
}
static void
-tbreak_at_finish_command (arg, from_tty)
- char *arg;
- int from_tty;
+tbreak_at_finish_command (char *arg, int from_tty)
{
break_at_finish_command_1 (arg, BP_TEMPFLAG, from_tty);
}
static void
-hbreak_command (arg, from_tty)
- char *arg;
- int from_tty;
+hbreak_command (char *arg, int from_tty)
{
break_command_1 (arg, BP_HARDWAREFLAG, from_tty);
}
static void
-thbreak_command (arg, from_tty)
- char *arg;
- int from_tty;
+thbreak_command (char *arg, int from_tty)
{
break_command_1 (arg, (BP_TEMPFLAG | BP_HARDWAREFLAG), from_tty);
}
static void
-stop_command (arg, from_tty)
- char *arg;
- int from_tty;
+stop_command (char *arg, int from_tty)
{
printf_filtered ("Specify the type of breakpoint to set.\n\
Usage: stop in <function | address>\n\
@@ -5276,9 +5163,7 @@ Usage: stop in <function | address>\n\
}
static void
-stopin_command (arg, from_tty)
- char *arg;
- int from_tty;
+stopin_command (char *arg, int from_tty)
{
int badInput = 0;
@@ -5311,9 +5196,7 @@ stopin_command (arg, from_tty)
}
static void
-stopat_command (arg, from_tty)
- char *arg;
- int from_tty;
+stopat_command (char *arg, int from_tty)
{
int badInput = 0;
@@ -5349,10 +5232,7 @@ stopat_command (arg, from_tty)
hw_read: watch read,
hw_access: watch access (read or write) */
static void
-watch_command_1 (arg, accessflag, from_tty)
- char *arg;
- int accessflag;
- int from_tty;
+watch_command_1 (char *arg, int accessflag, int from_tty)
{
struct breakpoint *b;
struct symtab_and_line sal;
@@ -5532,8 +5412,7 @@ watch_command_1 (arg, accessflag, from_tty)
#endif
static int
-can_use_hardware_watchpoint (v)
- struct value *v;
+can_use_hardware_watchpoint (struct value *v)
{
int found_memory_cnt = 0;
struct value *head = v;
@@ -5606,51 +5485,39 @@ can_use_hardware_watchpoint (v)
#ifdef UI_OUT
void
-watch_command_wrapper (arg, from_tty)
- char *arg;
- int from_tty;
+watch_command_wrapper (char *arg, int from_tty)
{
watch_command (arg, from_tty);
}
#endif
static void
-watch_command (arg, from_tty)
- char *arg;
- int from_tty;
+watch_command (char *arg, int from_tty)
{
watch_command_1 (arg, hw_write, from_tty);
}
#ifdef UI_OUT
void
-rwatch_command_wrapper (arg, from_tty)
- char *arg;
- int from_tty;
+rwatch_command_wrapper (char *arg, int from_tty)
{
rwatch_command (arg, from_tty);
}
#endif
static void
-rwatch_command (arg, from_tty)
- char *arg;
- int from_tty;
+rwatch_command (char *arg, int from_tty)
{
watch_command_1 (arg, hw_read, from_tty);
}
#ifdef UI_OUT
void
-awatch_command_wrapper (arg, from_tty)
- char *arg;
- int from_tty;
+awatch_command_wrapper (char *arg, int from_tty)
{
awatch_command (arg, from_tty);
}
#endif
static void
-awatch_command (arg, from_tty)
- char *arg;
- int from_tty;
+awatch_command (char *arg, int from_tty)
{
watch_command_1 (arg, hw_access, from_tty);
}
@@ -5674,9 +5541,7 @@ until_break_command_continuation (struct continuation_arg *arg)
/* ARGSUSED */
void
-until_break_command (arg, from_tty)
- char *arg;
- int from_tty;
+until_break_command (char *arg, int from_tty)
{
struct symtabs_and_lines sals;
struct symtab_and_line sal;
@@ -5761,23 +5626,22 @@ until_break_command (arg, from_tty)
/* These aren't used; I don't konw what they were for. */
/* Set a breakpoint at the catch clause for NAME. */
static int
-catch_breakpoint (name)
- char *name;
+catch_breakpoint (char *name)
{
}
static int
-disable_catch_breakpoint ()
+disable_catch_breakpoint (void)
{
}
static int
-delete_catch_breakpoint ()
+delete_catch_breakpoint (void)
{
}
static int
-enable_catch_breakpoint ()
+enable_catch_breakpoint (void)
{
}
#endif /* 0 */
@@ -5858,8 +5722,7 @@ map_catch_names (args, function)
/* This shares a lot of code with `print_frame_label_vars' from stack.c. */
static struct symtabs_and_lines
-get_catch_sals (this_level_only)
- int this_level_only;
+get_catch_sals (int this_level_only)
{
register struct blockvector *bl;
register struct block *block;
@@ -5971,8 +5834,7 @@ get_catch_sals (this_level_only)
}
static void
-ep_skip_leading_whitespace (s)
- char **s;
+ep_skip_leading_whitespace (char **s)
{
if ((s == NULL) || (*s == NULL))
return;
@@ -5986,8 +5848,7 @@ ep_skip_leading_whitespace (s)
the token is returned. Else, NULL is returned. */
static char *
-ep_find_event_name_end (arg)
- char *arg;
+ep_find_event_name_end (char *arg)
{
char *s = arg;
char *event_name_end = NULL;
@@ -6020,8 +5881,7 @@ ep_find_event_name_end (arg)
if clause in the arg string. */
static char *
-ep_parse_optional_if_clause (arg)
- char **arg;
+ep_parse_optional_if_clause (char **arg)
{
char *cond_string;
@@ -6053,8 +5913,7 @@ ep_parse_optional_if_clause (arg)
Note that clients needing to preserve the returned filename for
future access should copy it to their own buffers. */
static char *
-ep_parse_optional_filename (arg)
- char **arg;
+ep_parse_optional_filename (char **arg)
{
static char filename[1024];
char *arg_p = *arg;
@@ -6093,11 +5952,8 @@ static void catch_fork_command_1 (catch_fork_kind fork_kind,
char *arg, int tempflag, int from_tty);
static void
-catch_fork_command_1 (fork_kind, arg, tempflag, from_tty)
- catch_fork_kind fork_kind;
- char *arg;
- int tempflag;
- int from_tty;
+catch_fork_command_1 (catch_fork_kind fork_kind, char *arg, int tempflag,
+ int from_tty)
{
char *cond_string = NULL;
@@ -6132,10 +5988,7 @@ catch_fork_command_1 (fork_kind, arg, tempflag, from_tty)
#if defined(CHILD_INSERT_EXEC_CATCHPOINT)
static void
-catch_exec_command_1 (arg, tempflag, from_tty)
- char *arg;
- int tempflag;
- int from_tty;
+catch_exec_command_1 (char *arg, int tempflag, int from_tty)
{
char *cond_string = NULL;
@@ -6159,10 +6012,7 @@ catch_exec_command_1 (arg, tempflag, from_tty)
#if defined(SOLIB_ADD)
static void
-catch_load_command_1 (arg, tempflag, from_tty)
- char *arg;
- int tempflag;
- int from_tty;
+catch_load_command_1 (char *arg, int tempflag, int from_tty)
{
char *dll_pathname = NULL;
char *cond_string = NULL;
@@ -6204,10 +6054,7 @@ catch_load_command_1 (arg, tempflag, from_tty)
}
static void
-catch_unload_command_1 (arg, tempflag, from_tty)
- char *arg;
- int tempflag;
- int from_tty;
+catch_unload_command_1 (char *arg, int tempflag, int from_tty)
{
char *dll_pathname = NULL;
char *cond_string = NULL;
@@ -6255,11 +6102,9 @@ catch_unload_command_1 (arg, tempflag, from_tty)
exception event callback */
static void
-create_exception_catchpoint (tempflag, cond_string, ex_event, sal)
- int tempflag;
- char *cond_string;
- enum exception_event_kind ex_event;
- struct symtab_and_line *sal;
+create_exception_catchpoint (int tempflag, char *cond_string,
+ enum exception_event_kind ex_event,
+ struct symtab_and_line *sal)
{
struct breakpoint *b;
int thread = -1; /* All threads. */
@@ -6296,11 +6141,8 @@ create_exception_catchpoint (tempflag, cond_string, ex_event, sal)
/* Deal with "catch catch" and "catch throw" commands */
static void
-catch_exception_command_1 (ex_event, arg, tempflag, from_tty)
- enum exception_event_kind ex_event;
- char *arg;
- int tempflag;
- int from_tty;
+catch_exception_command_1 (enum exception_event_kind ex_event, char *arg,
+ int tempflag, int from_tty)
{
char *cond_string = NULL;
struct symtab_and_line *sal = NULL;
@@ -6351,8 +6193,7 @@ catch_exception_command_1 (ex_event, arg, tempflag, from_tty)
inside a catch_errors */
static int
-cover_target_enable_exception_callback (arg)
- PTR arg;
+cover_target_enable_exception_callback (PTR arg)
{
args_for_catchpoint_enable *args = arg;
struct symtab_and_line *sal;
@@ -6380,10 +6221,7 @@ cover_target_enable_exception_callback (arg)
static void
-handle_gnu_4_16_catch_command (arg, tempflag, from_tty)
- char *arg;
- int tempflag;
- int from_tty;
+handle_gnu_4_16_catch_command (char *arg, int tempflag, int from_tty)
{
/* First, translate ARG into something we can deal with in terms
of breakpoints. */
@@ -6479,8 +6317,7 @@ handle_gnu_4_16_catch_command (arg, tempflag, from_tty)
/* This creates a temporary internal breakpoint
just to placate infrun */
static struct breakpoint *
-create_temp_exception_breakpoint (pc)
- CORE_ADDR pc;
+create_temp_exception_breakpoint (CORE_ADDR pc)
{
struct symtab_and_line sal;
struct breakpoint *b;
@@ -6504,10 +6341,7 @@ create_temp_exception_breakpoint (pc)
#endif
static void
-catch_command_1 (arg, tempflag, from_tty)
- char *arg;
- int tempflag;
- int from_tty;
+catch_command_1 (char *arg, int tempflag, int from_tty)
{
/* The first argument may be an event name, such as "start" or "load".
@@ -6630,8 +6464,7 @@ catch_command_1 (arg, tempflag, from_tty)
/* Used by the gui, could be made a worker for other things. */
struct breakpoint *
-set_breakpoint_sal (sal)
- struct symtab_and_line sal;
+set_breakpoint_sal (struct symtab_and_line sal)
{
struct breakpoint *b;
b = set_raw_breakpoint (sal);
@@ -6647,51 +6480,42 @@ set_breakpoint_sal (sal)
/* These aren't used; I don't know what they were for. */
/* Disable breakpoints on all catch clauses described in ARGS. */
static void
-disable_catch (args)
- char *args;
+disable_catch (char *args)
{
/* Map the disable command to catch clauses described in ARGS. */
}
/* Enable breakpoints on all catch clauses described in ARGS. */
static void
-enable_catch (args)
- char *args;
+enable_catch (char *args)
{
/* Map the disable command to catch clauses described in ARGS. */
}
/* Delete breakpoints on all catch clauses in the active scope. */
static void
-delete_catch (args)
- char *args;
+delete_catch (char *args)
{
/* Map the delete command to catch clauses described in ARGS. */
}
#endif /* 0 */
static void
-catch_command (arg, from_tty)
- char *arg;
- int from_tty;
+catch_command (char *arg, int from_tty)
{
catch_command_1 (arg, 0, from_tty);
}
static void
-tcatch_command (arg, from_tty)
- char *arg;
- int from_tty;
+tcatch_command (char *arg, int from_tty)
{
catch_command_1 (arg, 1, from_tty);
}
static void
-clear_command (arg, from_tty)
- char *arg;
- int from_tty;
+clear_command (char *arg, int from_tty)
{
register struct breakpoint *b, *b1;
int default_match;
@@ -6829,8 +6653,7 @@ clear_command (arg, from_tty)
This is called after any breakpoint is hit, or after errors. */
void
-breakpoint_auto_delete (bs)
- bpstat bs;
+breakpoint_auto_delete (bpstat bs)
{
struct breakpoint *b, *temp;
@@ -6850,8 +6673,7 @@ breakpoint_auto_delete (bs)
structures. */
void
-delete_breakpoint (bpt)
- struct breakpoint *bpt;
+delete_breakpoint (struct breakpoint *bpt)
{
register struct breakpoint *b;
register bpstat bs;
@@ -7044,9 +6866,7 @@ make_exec_cleanup_delete_breakpoint (struct breakpoint *b)
}
void
-delete_command (arg, from_tty)
- char *arg;
- int from_tty;
+delete_command (char *arg, int from_tty)
{
struct breakpoint *b, *temp;
@@ -7089,8 +6909,7 @@ delete_command (arg, from_tty)
Unused in this case. */
static int
-breakpoint_re_set_one (bint)
- PTR bint;
+breakpoint_re_set_one (PTR bint)
{
/* get past catch_errs */
struct breakpoint *b = (struct breakpoint *) bint;
@@ -7269,7 +7088,7 @@ breakpoint_re_set_one (bint)
/* Re-set all breakpoints after symbols have been re-loaded. */
void
-breakpoint_re_set ()
+breakpoint_re_set (void)
{
struct breakpoint *b, *temp;
enum language save_language;
@@ -7313,8 +7132,7 @@ breakpoint_re_set ()
- If the breakpoint is for all threads, leave it as-is.
- Else, reset it to the current thread for inferior_pid. */
void
-breakpoint_re_set_thread (b)
- struct breakpoint *b;
+breakpoint_re_set_thread (struct breakpoint *b)
{
if (b->thread != -1)
{
@@ -7324,8 +7142,7 @@ breakpoint_re_set_thread (b)
}
void
-set_ignore_count (bptnum, count, from_tty)
- int bptnum, count, from_tty;
+set_ignore_count (int bptnum, int count, int from_tty)
{
register struct breakpoint *b;
@@ -7356,7 +7173,7 @@ set_ignore_count (bptnum, count, from_tty)
/* Clear the ignore counts of all breakpoints. */
void
-breakpoint_clear_ignore_counts ()
+breakpoint_clear_ignore_counts (void)
{
struct breakpoint *b;
@@ -7367,9 +7184,7 @@ breakpoint_clear_ignore_counts ()
/* Command to set ignore-count of breakpoint N to COUNT. */
static void
-ignore_command (args, from_tty)
- char *args;
- int from_tty;
+ignore_command (char *args, int from_tty)
{
char *p = args;
register int num;
@@ -7437,8 +7252,7 @@ map_breakpoint_numbers (args, function)
}
void
-disable_breakpoint (bpt)
- struct breakpoint *bpt;
+disable_breakpoint (struct breakpoint *bpt)
{
/* Never disable a watchpoint scope breakpoint; we want to
hit them when we leave scope so we can delete both the
@@ -7461,9 +7275,7 @@ disable_breakpoint (bpt)
/* ARGSUSED */
static void
-disable_command (args, from_tty)
- char *args;
- int from_tty;
+disable_command (char *args, int from_tty)
{
register struct breakpoint *bpt;
if (args == 0)
@@ -7496,9 +7308,7 @@ disable_command (args, from_tty)
}
static void
-do_enable_breakpoint (bpt, disposition)
- struct breakpoint *bpt;
- enum bpdisp disposition;
+do_enable_breakpoint (struct breakpoint *bpt, enum bpdisp disposition)
{
struct frame_info *save_selected_frame = NULL;
int save_selected_frame_level = -1;
@@ -7593,8 +7403,7 @@ have been allocated for other watchpoints.\n", bpt->number);
}
void
-enable_breakpoint (bpt)
- struct breakpoint *bpt;
+enable_breakpoint (struct breakpoint *bpt)
{
do_enable_breakpoint (bpt, bpt->disposition);
}
@@ -7605,9 +7414,7 @@ enable_breakpoint (bpt)
/* ARGSUSED */
static void
-enable_command (args, from_tty)
- char *args;
- int from_tty;
+enable_command (char *args, int from_tty)
{
register struct breakpoint *bpt;
if (args == 0)
@@ -7640,33 +7447,27 @@ enable_command (args, from_tty)
}
static void
-enable_once_breakpoint (bpt)
- struct breakpoint *bpt;
+enable_once_breakpoint (struct breakpoint *bpt)
{
do_enable_breakpoint (bpt, disable);
}
/* ARGSUSED */
static void
-enable_once_command (args, from_tty)
- char *args;
- int from_tty;
+enable_once_command (char *args, int from_tty)
{
map_breakpoint_numbers (args, enable_once_breakpoint);
}
static void
-enable_delete_breakpoint (bpt)
- struct breakpoint *bpt;
+enable_delete_breakpoint (struct breakpoint *bpt)
{
do_enable_breakpoint (bpt, del);
}
/* ARGSUSED */
static void
-enable_delete_command (args, from_tty)
- char *args;
- int from_tty;
+enable_delete_command (char *args, int from_tty)
{
map_breakpoint_numbers (args, enable_delete_breakpoint);
}
@@ -7674,9 +7475,7 @@ enable_delete_command (args, from_tty)
/* Use default_breakpoint_'s, or nothing if they aren't valid. */
struct symtabs_and_lines
-decode_line_spec_1 (string, funfirstline)
- char *string;
- int funfirstline;
+decode_line_spec_1 (char *string, int funfirstline)
{
struct symtabs_and_lines sals;
if (string == 0)
@@ -7695,7 +7494,7 @@ decode_line_spec_1 (string, funfirstline)
}
void
-_initialize_breakpoint ()
+_initialize_breakpoint (void)
{
struct cmd_list_element *c;
diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index 70105be..271a5e4 100644
--- a/gdb/buildsym.c
+++ b/gdb/buildsym.c
@@ -1104,7 +1104,7 @@ merge_symbol_lists (struct pending **srclist, struct pending **targetlist)
corresponding to a psymtab. */
void
-buildsym_init ()
+buildsym_init (void)
{
free_pendings = NULL;
file_symbols = NULL;
@@ -1117,7 +1117,7 @@ buildsym_init ()
file, e.g. a shared library). */
void
-buildsym_new_init ()
+buildsym_new_init (void)
{
buildsym_init ();
}
diff --git a/gdb/c-lang.c b/gdb/c-lang.c
index 10d54e6..5214c2a 100644
--- a/gdb/c-lang.c
+++ b/gdb/c-lang.c
@@ -35,10 +35,7 @@ static void c_emit_char (int c, struct ui_file * stream, int quoter);
characters and strings is language specific. */
static void
-c_emit_char (c, stream, quoter)
- register int c;
- struct ui_file *stream;
- int quoter;
+c_emit_char (register int c, struct ui_file *stream, int quoter)
{
c &= 0xFF; /* Avoid sign bit follies */
@@ -83,9 +80,7 @@ c_emit_char (c, stream, quoter)
}
void
-c_printchar (c, stream)
- int c;
- struct ui_file *stream;
+c_printchar (int c, struct ui_file *stream)
{
fputc_filtered ('\'', stream);
LA_EMIT_CHAR (c, stream, '\'');
@@ -99,12 +94,8 @@ c_printchar (c, stream)
printing LENGTH characters, or if FORCE_ELLIPSES. */
void
-c_printstr (stream, string, length, width, force_ellipses)
- struct ui_file *stream;
- char *string;
- unsigned int length;
- int width;
- int force_ellipses;
+c_printstr (struct ui_file *stream, char *string, unsigned int length,
+ int width, int force_ellipses)
{
register unsigned int i;
unsigned int things_printed = 0;
@@ -223,9 +214,7 @@ c_printstr (stream, string, length, width, force_ellipses)
debugging information supplied by the compiler. fnf@cygnus.com */
struct type *
-c_create_fundamental_type (objfile, typeid)
- struct objfile *objfile;
- int typeid;
+c_create_fundamental_type (struct objfile *objfile, int typeid)
{
register struct type *type = NULL;
@@ -521,7 +510,7 @@ const struct language_defn asm_language_defn =
};
void
-_initialize_c_language ()
+_initialize_c_language (void)
{
add_language (&c_language_defn);
add_language (&cplus_language_defn);
diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c
index acfbc6f..5c73bbd 100644
--- a/gdb/c-typeprint.c
+++ b/gdb/c-typeprint.c
@@ -63,10 +63,7 @@ static void c_type_print_cv_qualifier (struct type *, struct ui_file *,
NEW is the new name for a type TYPE. */
void
-c_typedef_print (type, new, stream)
- struct type *type;
- struct symbol *new;
- struct ui_file *stream;
+c_typedef_print (struct type *type, struct symbol *new, struct ui_file *stream)
{
CHECK_TYPEDEF (type);
switch (current_language->la_language)
@@ -113,12 +110,8 @@ c_typedef_print (type, new, stream)
/* LEVEL is the depth to indent lines by. */
void
-c_print_type (type, varstring, stream, show, level)
- struct type *type;
- char *varstring;
- struct ui_file *stream;
- int show;
- int level;
+c_print_type (struct type *type, char *varstring, struct ui_file *stream,
+ int show, int level)
{
register enum type_code code;
int demangled_args;
@@ -182,9 +175,7 @@ c_print_type (type, varstring, stream, show, level)
derivation via protected inheritance, so gdb can print it out */
static void
-cp_type_print_derivation_info (stream, type)
- struct ui_file *stream;
- struct type *type;
+cp_type_print_derivation_info (struct ui_file *stream, struct type *type)
{
char *name;
int i;
@@ -207,12 +198,8 @@ cp_type_print_derivation_info (stream, type)
/* Print the C++ method arguments ARGS to the file STREAM. */
static void
-cp_type_print_method_args (args, prefix, varstring, staticp, stream)
- struct type **args;
- char *prefix;
- char *varstring;
- int staticp;
- struct ui_file *stream;
+cp_type_print_method_args (struct type **args, char *prefix, char *varstring,
+ int staticp, struct ui_file *stream)
{
int i;
@@ -256,11 +243,8 @@ cp_type_print_method_args (args, prefix, varstring, staticp, stream)
SHOW is always zero on recursive calls. */
void
-c_type_print_varspec_prefix (type, stream, show, passed_a_ptr)
- struct type *type;
- struct ui_file *stream;
- int show;
- int passed_a_ptr;
+c_type_print_varspec_prefix (struct type *type, struct ui_file *stream,
+ int show, int passed_a_ptr)
{
char *name;
if (type == 0)
@@ -354,11 +338,8 @@ c_type_print_varspec_prefix (type, stream, show, passed_a_ptr)
NEED_SPACE = 1 indicates an initial white space is needed */
static void
-c_type_print_cv_qualifier (type, stream, need_pre_space, need_post_space)
- struct type *type;
- struct ui_file *stream;
- int need_pre_space;
- int need_post_space;
+c_type_print_cv_qualifier (struct type *type, struct ui_file *stream,
+ int need_pre_space, int need_post_space)
{
int flag = 0;
@@ -386,9 +367,7 @@ c_type_print_cv_qualifier (type, stream, need_pre_space, need_post_space)
static void
-c_type_print_args (type, stream)
- struct type *type;
- struct ui_file *stream;
+c_type_print_args (struct type *type, struct ui_file *stream)
{
int i;
struct type **args;
@@ -567,12 +546,8 @@ remove_qualifiers (char *qid)
Args work like c_type_print_varspec_prefix. */
void
-c_type_print_varspec_suffix (type, stream, show, passed_a_ptr, demangled_args)
- struct type *type;
- struct ui_file *stream;
- int show;
- int passed_a_ptr;
- int demangled_args;
+c_type_print_varspec_suffix (struct type *type, struct ui_file *stream,
+ int show, int passed_a_ptr, int demangled_args)
{
if (type == 0)
return;
@@ -690,11 +665,8 @@ c_type_print_varspec_suffix (type, stream, show, passed_a_ptr, demangled_args)
We increase it for some recursive calls. */
void
-c_type_print_base (type, stream, show, level)
- struct type *type;
- struct ui_file *stream;
- int show;
- int level;
+c_type_print_base (struct type *type, struct ui_file *stream, int show,
+ int level)
{
register int i;
register int len;
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c
index f9dbd03..784cbc8 100644
--- a/gdb/c-valprint.c
+++ b/gdb/c-valprint.c
@@ -44,17 +44,9 @@
The PRETTY parameter controls prettyprinting. */
int
-c_val_print (type, valaddr, embedded_offset, address, stream, format, deref_ref, recurse,
- pretty)
- struct type *type;
- char *valaddr;
- int embedded_offset;
- CORE_ADDR address;
- struct ui_file *stream;
- int format;
- int deref_ref;
- int recurse;
- enum val_prettyprint pretty;
+c_val_print (struct type *type, char *valaddr, int embedded_offset,
+ CORE_ADDR address, struct ui_file *stream, int format,
+ int deref_ref, int recurse, enum val_prettyprint pretty)
{
register unsigned int i = 0; /* Number of characters printed */
unsigned len;
@@ -454,11 +446,8 @@ c_val_print (type, valaddr, embedded_offset, address, stream, format, deref_ref,
}
int
-c_value_print (val, stream, format, pretty)
- value_ptr val;
- struct ui_file *stream;
- int format;
- enum val_prettyprint pretty;
+c_value_print (value_ptr val, struct ui_file *stream, int format,
+ enum val_prettyprint pretty)
{
struct type *type = VALUE_TYPE (val);
struct type *real_type;
diff --git a/gdb/ch-exp.c b/gdb/ch-exp.c
index 4811f7c..3d8318e 100644
--- a/gdb/ch-exp.c
+++ b/gdb/ch-exp.c
@@ -200,7 +200,7 @@ static YYSTYPE val_buffer[MAX_LOOK_AHEAD + 1];
/*int current_token, lookahead_token; */
INLINE static enum ch_terminal
-PEEK_TOKEN ()
+PEEK_TOKEN (void)
{
if (terminal_buffer[0] == TOKEN_NOT_READ)
{
@@ -213,8 +213,7 @@ PEEK_TOKEN ()
#define PEEK_TOKEN1() peek_token_(1)
#define PEEK_TOKEN2() peek_token_(2)
static enum ch_terminal
-peek_token_ (i)
- int i;
+peek_token_ (int i)
{
if (i > MAX_LOOK_AHEAD)
internal_error ("ch-exp.c - too much lookahead");
@@ -229,9 +228,7 @@ peek_token_ (i)
#if 0
static void
-pushback_token (code, node)
- enum ch_terminal code;
- YYSTYPE node;
+pushback_token (enum ch_terminal code, YYSTYPE node)
{
int i;
if (terminal_buffer[MAX_LOOK_AHEAD] != TOKEN_NOT_READ)
@@ -248,7 +245,7 @@ pushback_token (code, node)
#endif
static void
-forward_token_ ()
+forward_token_ (void)
{
int i;
for (i = 0; i < MAX_LOOK_AHEAD; i++)
@@ -264,8 +261,7 @@ forward_token_ ()
if it isn't TOKEN, the parser is broken. */
static void
-require (token)
- enum ch_terminal token;
+require (enum ch_terminal token)
{
if (PEEK_TOKEN () != token)
{
@@ -275,8 +271,7 @@ require (token)
}
static int
-check_token (token)
- enum ch_terminal token;
+check_token (enum ch_terminal token)
{
if (PEEK_TOKEN () != token)
return 0;
@@ -288,9 +283,7 @@ check_token (token)
else return 1.
*/
static int
-expect (token, message)
- enum ch_terminal token;
- char *message;
+expect (enum ch_terminal token, char *message)
{
if (PEEK_TOKEN () != token)
{
@@ -347,7 +340,7 @@ parse_opt_name_string (allow_all)
}
static tree
-parse_simple_name_string ()
+parse_simple_name_string (void)
{
int token = PEEK_TOKEN ();
tree name;
@@ -362,7 +355,7 @@ parse_simple_name_string ()
}
static tree
-parse_name_string ()
+parse_name_string (void)
{
tree name = parse_opt_name_string (0);
if (name)
@@ -377,7 +370,7 @@ parse_name_string ()
Returns if pass 2: a decl or value for identifier. */
static tree
-parse_name ()
+parse_name (void)
{
tree name = parse_name_string ();
if (pass == 1 || ignoring)
@@ -404,8 +397,7 @@ parse_name ()
#if 0
static void
-pushback_paren_expr (expr)
- tree expr;
+pushback_paren_expr (tree expr)
{
if (pass == 1 && !ignoring)
expr = build1 (PAREN_EXPR, NULL_TREE, expr);
@@ -416,7 +408,7 @@ pushback_paren_expr (expr)
/* Matches: <case label> */
static void
-parse_case_label ()
+parse_case_label (void)
{
if (check_token (ELSE))
error ("ELSE in tuples labels not implemented");
@@ -430,7 +422,7 @@ parse_case_label ()
}
static int
-parse_opt_untyped_expr ()
+parse_opt_untyped_expr (void)
{
switch (PEEK_TOKEN ())
{
@@ -445,7 +437,7 @@ parse_opt_untyped_expr ()
}
static void
-parse_unary_call ()
+parse_unary_call (void)
{
FORWARD_TOKEN ();
expect ('(', NULL);
@@ -458,7 +450,7 @@ parse_unary_call ()
#if 0
static struct type *
-parse_mode_call ()
+parse_mode_call (void)
{
struct type *type;
FORWARD_TOKEN ();
@@ -474,7 +466,7 @@ parse_mode_call ()
#endif
static struct type *
-parse_mode_or_normal_call ()
+parse_mode_or_normal_call (void)
{
struct type *type;
FORWARD_TOKEN ();
@@ -497,7 +489,7 @@ parse_mode_or_normal_call ()
Assume we have parsed the function, and are at the '('. */
static void
-parse_call ()
+parse_call (void)
{
int arg_count;
require ('(');
@@ -534,7 +526,7 @@ parse_call ()
}
static void
-parse_named_record_element ()
+parse_named_record_element (void)
{
struct stoken label;
char buf[256];
@@ -556,8 +548,7 @@ parse_named_record_element ()
/* Returns one or more TREE_LIST nodes, in reverse order. */
static void
-parse_tuple_element (type)
- struct type *type;
+parse_tuple_element (struct type *type)
{
if (PEEK_TOKEN () == DOT_FIELD_NAME)
{
@@ -622,8 +613,7 @@ parse_tuple_element (type)
/* Matches: a COMMA-separated list of tuple elements.
Returns a list (of TREE_LIST nodes). */
static void
-parse_opt_element_list (type)
- struct type *type;
+parse_opt_element_list (struct type *type)
{
arglist_len = 0;
if (PEEK_TOKEN () == ']')
@@ -643,8 +633,7 @@ parse_opt_element_list (type)
If modename is non-NULL it prefixed the tuple. */
static void
-parse_tuple (mode)
- struct type *mode;
+parse_tuple (struct type *mode)
{
struct type *type;
if (mode)
@@ -672,7 +661,7 @@ parse_tuple (mode)
}
static void
-parse_primval ()
+parse_primval (void)
{
struct type *type;
enum exp_opcode op;
@@ -942,7 +931,7 @@ parse_primval ()
}
static void
-parse_operand6 ()
+parse_operand6 (void)
{
if (check_token (RECEIVE))
{
@@ -959,7 +948,7 @@ parse_operand6 ()
}
static void
-parse_operand5 ()
+parse_operand5 (void)
{
enum exp_opcode op;
/* We are supposed to be looking for a <string repetition operator>,
@@ -990,7 +979,7 @@ parse_operand5 ()
}
static void
-parse_operand4 ()
+parse_operand4 (void)
{
enum exp_opcode op;
parse_operand5 ();
@@ -1020,7 +1009,7 @@ parse_operand4 ()
}
static void
-parse_operand3 ()
+parse_operand3 (void)
{
enum exp_opcode op;
parse_operand4 ();
@@ -1047,7 +1036,7 @@ parse_operand3 ()
}
static void
-parse_operand2 ()
+parse_operand2 (void)
{
enum exp_opcode op;
parse_operand3 ();
@@ -1091,7 +1080,7 @@ parse_operand2 ()
}
static void
-parse_operand1 ()
+parse_operand1 (void)
{
enum exp_opcode op;
parse_operand2 ();
@@ -1115,7 +1104,7 @@ parse_operand1 ()
}
static void
-parse_operand0 ()
+parse_operand0 (void)
{
enum exp_opcode op;
parse_operand1 ();
@@ -1142,7 +1131,7 @@ parse_operand0 ()
}
static void
-parse_expr ()
+parse_expr (void)
{
parse_operand0 ();
if (check_token (GDB_ASSIGNMENT))
@@ -1153,14 +1142,14 @@ parse_expr ()
}
static void
-parse_then_alternative ()
+parse_then_alternative (void)
{
expect (THEN, "missing 'THEN' in 'IF' expression");
parse_expr ();
}
static void
-parse_else_alternative ()
+parse_else_alternative (void)
{
if (check_token (ELSIF))
parse_if_expression_body ();
@@ -1173,7 +1162,7 @@ parse_else_alternative ()
/* Matches: <boolean expression> <then alternative> <else alternative> */
static void
-parse_if_expression_body ()
+parse_if_expression_body (void)
{
parse_expr ();
parse_then_alternative ();
@@ -1182,7 +1171,7 @@ parse_if_expression_body ()
}
static void
-parse_if_expression ()
+parse_if_expression (void)
{
require (IF);
parse_if_expression_body ();
@@ -1196,7 +1185,7 @@ parse_if_expression ()
You should call convert() to fix up the <untyped_expr>. */
static void
-parse_untyped_expr ()
+parse_untyped_expr (void)
{
switch (PEEK_TOKEN ())
{
@@ -1226,7 +1215,7 @@ parse_untyped_expr ()
}
int
-chill_parse ()
+chill_parse (void)
{
terminal_buffer[0] = TOKEN_NOT_READ;
if (PEEK_TOKEN () == TYPENAME && PEEK_TOKEN1 () == END_TOKEN)
@@ -1271,8 +1260,7 @@ static int tempbufindex; /* Current index into buffer */
on demand. */
static void
-growbuf_by_size (count)
- int count;
+growbuf_by_size (int count)
{
int growby;
@@ -1293,7 +1281,7 @@ growbuf_by_size (count)
in symbol table lookups. If not successful, returns NULL. */
static char *
-match_simple_name_string ()
+match_simple_name_string (void)
{
char *tokptr = lexptr;
@@ -1321,10 +1309,7 @@ match_simple_name_string ()
digits we have encountered. */
static int
-decode_integer_value (base, tokptrptr, ivalptr)
- int base;
- char **tokptrptr;
- LONGEST *ivalptr;
+decode_integer_value (int base, char **tokptrptr, LONGEST *ivalptr)
{
char *tokptr = *tokptrptr;
int temp;
@@ -1395,9 +1380,7 @@ decode_integer_value (base, tokptrptr, ivalptr)
}
static int
-decode_integer_literal (valptr, tokptrptr)
- LONGEST *valptr;
- char **tokptrptr;
+decode_integer_literal (LONGEST *valptr, char **tokptrptr)
{
char *tokptr = *tokptrptr;
int base = 0;
@@ -1480,7 +1463,7 @@ decode_integer_literal (valptr, tokptrptr)
legal floating point value. */
static enum ch_terminal
-match_float_literal ()
+match_float_literal (void)
{
char *tokptr = lexptr;
char *buf;
@@ -1610,7 +1593,7 @@ convert_float:
a string, it is simply doubled (I.E. "this""is""one""string") */
static enum ch_terminal
-match_string_literal ()
+match_string_literal (void)
{
char *tokptr = lexptr;
int in_ctrlseq = 0;
@@ -1706,7 +1689,7 @@ match_string_literal ()
*/
static enum ch_terminal
-match_character_literal ()
+match_character_literal (void)
{
char *tokptr = lexptr;
LONGEST ival = 0;
@@ -1788,7 +1771,7 @@ match_character_literal ()
in any integer literal. */
static enum ch_terminal
-match_integer_literal ()
+match_integer_literal (void)
{
char *tokptr = lexptr;
LONGEST ival;
@@ -1817,7 +1800,7 @@ match_integer_literal ()
in any bit-string literal. */
static enum ch_terminal
-match_bitstring_literal ()
+match_bitstring_literal (void)
{
register char *tokptr = lexptr;
int bitoffset = 0;
@@ -1989,7 +1972,7 @@ static const struct token tokentab2[] =
operators used are compatible. */
static enum ch_terminal
-ch_lex ()
+ch_lex (void)
{
unsigned int i;
enum ch_terminal token;
@@ -2226,9 +2209,8 @@ ch_lex ()
}
static void
-write_lower_upper_value (opcode, type)
- enum exp_opcode opcode; /* Either UNOP_LOWER or UNOP_UPPER */
- struct type *type;
+write_lower_upper_value (enum exp_opcode opcode, /* Either UNOP_LOWER or UNOP_UPPER */
+ struct type *type)
{
if (type == NULL)
write_exp_elt_opcode (opcode);
@@ -2244,8 +2226,7 @@ write_lower_upper_value (opcode, type)
}
void
-chill_error (msg)
- char *msg;
+chill_error (char *msg)
{
/* Never used. */
}
diff --git a/gdb/ch-lang.c b/gdb/ch-lang.c
index 44e621e..32e612e 100644
--- a/gdb/ch-lang.c
+++ b/gdb/ch-lang.c
@@ -53,8 +53,7 @@ static void chill_printchar (int, struct ui_file *);
characters to derive the demangled form. */
char *
-chill_demangle (mangled)
- const char *mangled;
+chill_demangle (const char *mangled)
{
const char *joiner = NULL;
char *demangled;
@@ -81,9 +80,7 @@ chill_demangle (mangled)
}
static void
-chill_printchar (c, stream)
- register int c;
- struct ui_file *stream;
+chill_printchar (register int c, struct ui_file *stream)
{
c &= 0xFF; /* Avoid sign bit follies */
@@ -112,12 +109,8 @@ chill_printchar (c, stream)
*/
static void
-chill_printstr (stream, string, length, width, force_ellipses)
- struct ui_file *stream;
- char *string;
- unsigned int length;
- int width;
- int force_ellipses;
+chill_printstr (struct ui_file *stream, char *string, unsigned int length,
+ int width, int force_ellipses)
{
register unsigned int i;
unsigned int things_printed = 0;
@@ -228,9 +221,7 @@ chill_printstr (stream, string, length, width, force_ellipses)
}
static struct type *
-chill_create_fundamental_type (objfile, typeid)
- struct objfile *objfile;
- int typeid;
+chill_create_fundamental_type (struct objfile *objfile, int typeid)
{
register struct type *type = NULL;
@@ -346,10 +337,8 @@ struct type **CONST_PTR (chill_builtin_types[]) =
*RESULT_TYPE is the appropriate type for the result. */
LONGEST
-type_lower_upper (op, type, result_type)
- enum exp_opcode op; /* Either UNOP_LOWER or UNOP_UPPER */
- struct type *type;
- struct type **result_type;
+type_lower_upper (enum exp_opcode op, /* Either UNOP_LOWER or UNOP_UPPER */
+ struct type *type, struct type **result_type)
{
LONGEST low, high;
*result_type = type;
@@ -400,8 +389,7 @@ type_lower_upper (op, type, result_type)
}
static value_ptr
-value_chill_length (val)
- value_ptr val;
+value_chill_length (value_ptr val)
{
LONGEST tmp;
struct type *type = VALUE_TYPE (val);
@@ -429,8 +417,7 @@ value_chill_length (val)
}
static value_ptr
-value_chill_card (val)
- value_ptr val;
+value_chill_card (value_ptr val)
{
LONGEST tmp = 0;
struct type *type = VALUE_TYPE (val);
@@ -454,9 +441,7 @@ value_chill_card (val)
}
static value_ptr
-value_chill_max_min (op, val)
- enum exp_opcode op;
- value_ptr val;
+value_chill_max_min (enum exp_opcode op, value_ptr val)
{
LONGEST tmp = 0;
struct type *type = VALUE_TYPE (val);
@@ -509,11 +494,9 @@ value_chill_max_min (op, val)
}
static value_ptr
-evaluate_subexp_chill (expect_type, exp, pos, noside)
- struct type *expect_type;
- register struct expression *exp;
- register int *pos;
- enum noside noside;
+evaluate_subexp_chill (struct type *expect_type,
+ register struct expression *exp, register int *pos,
+ enum noside noside)
{
int pc = *pos;
struct type *type;
@@ -649,7 +632,7 @@ const struct language_defn chill_language_defn =
/* Initialization for Chill */
void
-_initialize_chill_language ()
+_initialize_chill_language (void)
{
builtin_type_chill_bool =
init_type (TYPE_CODE_BOOL, TARGET_CHAR_BIT / TARGET_CHAR_BIT,
diff --git a/gdb/ch-typeprint.c b/gdb/ch-typeprint.c
index 2a655ab..dc22957 100644
--- a/gdb/ch-typeprint.c
+++ b/gdb/ch-typeprint.c
@@ -40,12 +40,8 @@
static void chill_type_print_base (struct type *, struct ui_file *, int, int);
void
-chill_print_type (type, varstring, stream, show, level)
- struct type *type;
- char *varstring;
- struct ui_file *stream;
- int show;
- int level;
+chill_print_type (struct type *type, char *varstring, struct ui_file *stream,
+ int show, int level)
{
if (varstring != NULL && *varstring != '\0')
{
@@ -68,11 +64,8 @@ chill_print_type (type, varstring, stream, show, level)
We increase it for some recursive calls. */
static void
-chill_type_print_base (type, stream, show, level)
- struct type *type;
- struct ui_file *stream;
- int show;
- int level;
+chill_type_print_base (struct type *type, struct ui_file *stream, int show,
+ int level)
{
register int len;
register int i;
diff --git a/gdb/ch-valprint.c b/gdb/ch-valprint.c
index 6fc3985..60fcaca 100644
--- a/gdb/ch-valprint.c
+++ b/gdb/ch-valprint.c
@@ -53,10 +53,7 @@ static void chill_val_print_array_elements (struct type *, char *,
decimal integer values. */
static void
-chill_print_type_scalar (type, val, stream)
- struct type *type;
- LONGEST val;
- struct ui_file *stream;
+chill_print_type_scalar (struct type *type, LONGEST val, struct ui_file *stream)
{
switch (TYPE_CODE (type))
{
@@ -99,16 +96,10 @@ chill_print_type_scalar (type, val, stream)
element indexes (in Chill syntax). */
static void
-chill_val_print_array_elements (type, valaddr, address, stream,
- format, deref_ref, recurse, pretty)
- struct type *type;
- char *valaddr;
- CORE_ADDR address;
- struct ui_file *stream;
- int format;
- int deref_ref;
- int recurse;
- enum val_prettyprint pretty;
+chill_val_print_array_elements (struct type *type, char *valaddr,
+ CORE_ADDR address, struct ui_file *stream,
+ int format, int deref_ref, int recurse,
+ enum val_prettyprint pretty)
{
unsigned int i = 0;
unsigned int things_printed = 0;
@@ -199,17 +190,9 @@ chill_val_print_array_elements (type, valaddr, address, stream,
The PRETTY parameter controls prettyprinting. */
int
-chill_val_print (type, valaddr, embedded_offset, address,
- stream, format, deref_ref, recurse, pretty)
- struct type *type;
- char *valaddr;
- int embedded_offset;
- CORE_ADDR address;
- struct ui_file *stream;
- int format;
- int deref_ref;
- int recurse;
- enum val_prettyprint pretty;
+chill_val_print (struct type *type, char *valaddr, int embedded_offset,
+ CORE_ADDR address, struct ui_file *stream, int format,
+ int deref_ref, int recurse, enum val_prettyprint pretty)
{
LONGEST val;
unsigned int i = 0; /* Number of characters printed. */
@@ -514,15 +497,9 @@ chill_val_print (type, valaddr, embedded_offset, address,
should not print, or zero if called from top level. */
static void
-chill_print_value_fields (type, valaddr, stream, format, recurse, pretty,
- dont_print)
- struct type *type;
- char *valaddr;
- struct ui_file *stream;
- int format;
- int recurse;
- enum val_prettyprint pretty;
- struct type **dont_print;
+chill_print_value_fields (struct type *type, char *valaddr,
+ struct ui_file *stream, int format, int recurse,
+ enum val_prettyprint pretty, struct type **dont_print)
{
int i, len;
int fields_seen = 0;
@@ -586,11 +563,8 @@ chill_print_value_fields (type, valaddr, stream, format, recurse, pretty,
}
int
-chill_value_print (val, stream, format, pretty)
- value_ptr val;
- struct ui_file *stream;
- int format;
- enum val_prettyprint pretty;
+chill_value_print (value_ptr val, struct ui_file *stream, int format,
+ enum val_prettyprint pretty)
{
struct type *type = VALUE_TYPE (val);
struct type *real_type = check_typedef (type);
diff --git a/gdb/cli-out.c b/gdb/cli-out.c
index cfe6a21..127f77d 100644
--- a/gdb/cli-out.c
+++ b/gdb/cli-out.c
@@ -102,18 +102,14 @@ static void out_field_fmt (struct ui_out *uiout, int fldno, char *fldname,
/* Mark beginning of a table */
void
-cli_table_begin (uiout, nbrofcols, tblid)
- struct ui_out *uiout;
- int nbrofcols;
- char *tblid;
+cli_table_begin (struct ui_out *uiout, int nbrofcols, char *tblid)
{
}
/* Mark beginning of a table body */
void
-cli_table_body (uiout)
- struct ui_out *uiout;
+cli_table_body (struct ui_out *uiout)
{
/* first, close the table header line */
cli_text (uiout, "\n");
@@ -122,19 +118,15 @@ cli_table_body (uiout)
/* Mark end of a table */
void
-cli_table_end (uiout)
- struct ui_out *uiout;
+cli_table_end (struct ui_out *uiout)
{
}
/* Specify table header */
void
-cli_table_header (uiout, width, alignment, colhdr)
- struct ui_out *uiout;
- int width;
- enum ui_align alignment;
- char *colhdr;
+cli_table_header (struct ui_out *uiout, int width, enum ui_align alignment,
+ char *colhdr)
{
cli_field_string (uiout, 0, width, alignment, 0, colhdr);
}
@@ -142,32 +134,22 @@ cli_table_header (uiout, width, alignment, colhdr)
/* Mark beginning of a list */
void
-cli_list_begin (uiout, list_flag, lstid)
- struct ui_out *uiout;
- int list_flag;
- char *lstid;
+cli_list_begin (struct ui_out *uiout, int list_flag, char *lstid)
{
}
/* Mark end of a list */
void
-cli_list_end (uiout, list_flag)
- struct ui_out *uiout;
- int list_flag;
+cli_list_end (struct ui_out *uiout, int list_flag)
{
}
/* output an int field */
void
-cli_field_int (uiout, fldno, width, alignment, fldname, value)
- struct ui_out *uiout;
- int fldno;
- int width;
- enum ui_align alignment;
- char *fldname;
- int value;
+cli_field_int (struct ui_out *uiout, int fldno, int width,
+ enum ui_align alignment, char *fldname, int value)
{
char buffer[20]; /* FIXME: how many chars long a %d can become? */
@@ -178,12 +160,8 @@ cli_field_int (uiout, fldno, width, alignment, fldname, value)
/* used to ommit a field */
void
-cli_field_skip (uiout, fldno, width, alignment, fldname)
- struct ui_out *uiout;
- int fldno;
- int width;
- enum ui_align alignment;
- char *fldname;
+cli_field_skip (struct ui_out *uiout, int fldno, int width,
+ enum ui_align alignment, char *fldname)
{
cli_field_string (uiout, fldno, width, alignment, fldname, "");
}
@@ -251,18 +229,14 @@ cli_field_fmt (struct ui_out *uiout, int fldno,
}
void
-cli_spaces (uiout, numspaces)
- struct ui_out *uiout;
- int numspaces;
+cli_spaces (struct ui_out *uiout, int numspaces)
{
struct ui_out_data *data = ui_out_data (uiout);
print_spaces_filtered (numspaces, data->stream);
}
void
-cli_text (uiout, string)
- struct ui_out *uiout;
- char *string;
+cli_text (struct ui_out *uiout, char *string)
{
struct ui_out_data *data = ui_out_data (uiout);
fputs_filtered (string, data->stream);
@@ -277,16 +251,13 @@ cli_message (struct ui_out *uiout, int verbosity, char *format, va_list args)
}
void
-cli_wrap_hint (uiout, identstring)
- struct ui_out *uiout;
- char *identstring;
+cli_wrap_hint (struct ui_out *uiout, char *identstring)
{
wrap_here (identstring);
}
void
-cli_flush (uiout)
- struct ui_out *uiout;
+cli_flush (struct ui_out *uiout)
{
struct ui_out_data *data = ui_out_data (uiout);
gdb_flush (data->stream);
@@ -314,7 +285,7 @@ out_field_fmt (struct ui_out *uiout, int fldno, char *fldname,
/* access to ui_out format private members */
static void
-field_separator ()
+field_separator (void)
{
struct ui_out_data *data = ui_out_data (uiout);
fputc_filtered (' ', data->stream);
@@ -334,7 +305,7 @@ cli_out_new (struct ui_file *stream)
/* standard gdb initialization hook */
void
-_initialize_cli_out ()
+_initialize_cli_out (void)
{
/* nothing needs to be done */
}
diff --git a/gdb/coff-solib.c b/gdb/coff-solib.c
index 9c68fa4..e36b276 100644
--- a/gdb/coff-solib.c
+++ b/gdb/coff-solib.c
@@ -48,10 +48,7 @@
*/
void
-coff_solib_add (arg_string, from_tty, target)
- char *arg_string;
- int from_tty;
- struct target_ops *target;
+coff_solib_add (char *arg_string, int from_tty, struct target_ops *target)
{
asection *libsect;
@@ -126,7 +123,7 @@ coff_solib_add (arg_string, from_tty, target)
*/
void
-coff_solib_create_inferior_hook ()
+coff_solib_create_inferior_hook (void)
{
coff_solib_add ((char *) 0, 0, (struct target_ops *) 0);
}
diff --git a/gdb/coffread.c b/gdb/coffread.c
index c781a34..75f6fc5 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -260,10 +260,7 @@ static void coff_locate_sections (bfd *, asection *, PTR);
-kingdon). */
static void
-coff_locate_sections (abfd, sectp, csip)
- bfd *abfd;
- asection *sectp;
- PTR csip;
+coff_locate_sections (bfd *abfd, asection *sectp, PTR csip)
{
register struct coff_symfile_info *csi;
const char *name;
@@ -324,10 +321,7 @@ struct find_targ_sec_arg
static void find_targ_sec (bfd *, asection *, void *);
static void
-find_targ_sec (abfd, sect, obj)
- bfd *abfd;
- asection *sect;
- PTR obj;
+find_targ_sec (bfd *abfd, asection *sect, PTR obj)
{
struct find_targ_sec_arg *args = (struct find_targ_sec_arg *) obj;
if (sect->target_index == args->targ_index)
@@ -336,9 +330,7 @@ find_targ_sec (abfd, sect, obj)
/* Return the section number (SECT_OFF_*) that CS points to. */
static int
-cs_to_section (cs, objfile)
- struct coff_symbol *cs;
- struct objfile *objfile;
+cs_to_section (struct coff_symbol *cs, struct objfile *objfile)
{
asection *sect = NULL;
struct find_targ_sec_arg args;
@@ -365,9 +357,7 @@ cs_to_section (cs, objfile)
static CORE_ADDR cs_section_address (struct coff_symbol *, bfd *);
static CORE_ADDR
-cs_section_address (cs, abfd)
- struct coff_symbol *cs;
- bfd *abfd;
+cs_section_address (struct coff_symbol *cs, bfd *abfd)
{
asection *sect = NULL;
struct find_targ_sec_arg args;
@@ -389,8 +379,7 @@ cs_section_address (cs, abfd)
or for associating a new type with the index. */
static struct type **
-coff_lookup_type (index)
- register int index;
+coff_lookup_type (register int index)
{
if (index >= type_vector_length)
{
@@ -414,8 +403,7 @@ coff_lookup_type (index)
This can create an empty (zeroed) type object. */
static struct type *
-coff_alloc_type (index)
- int index;
+coff_alloc_type (int index)
{
register struct type **type_addr = coff_lookup_type (index);
register struct type *type = *type_addr;
@@ -436,8 +424,7 @@ coff_alloc_type (index)
it indicates the start of data for one original source file. */
static void
-coff_start_symtab (name)
- char *name;
+coff_start_symtab (char *name)
{
start_symtab (
/* We fill in the filename later. start_symtab puts
@@ -459,10 +446,7 @@ coff_start_symtab (name)
text address for the file, and SIZE is the number of bytes of text. */
static void
-complete_symtab (name, start_addr, size)
- char *name;
- CORE_ADDR start_addr;
- unsigned int size;
+complete_symtab (char *name, CORE_ADDR start_addr, unsigned int size)
{
if (last_source_file != NULL)
free (last_source_file);
@@ -484,8 +468,7 @@ complete_symtab (name, start_addr, size)
struct symtab for that file and put it in the list of all such. */
static void
-coff_end_symtab (objfile)
- struct objfile *objfile;
+coff_end_symtab (struct objfile *objfile)
{
struct symtab *symtab;
@@ -501,11 +484,8 @@ coff_end_symtab (objfile)
}
static void
-record_minimal_symbol (name, address, type, objfile)
- char *name;
- CORE_ADDR address;
- enum minimal_symbol_type type;
- struct objfile *objfile;
+record_minimal_symbol (char *name, CORE_ADDR address,
+ enum minimal_symbol_type type, struct objfile *objfile)
{
/* We don't want TDESC entry points in the minimal symbol table */
if (name[0] == '@')
@@ -528,8 +508,7 @@ record_minimal_symbol (name, address, type, objfile)
The ultimate result is a new symtab (or, FIXME, eventually a psymtab). */
static void
-coff_symfile_init (objfile)
- struct objfile *objfile;
+coff_symfile_init (struct objfile *objfile)
{
/* Allocate struct to keep track of stab reading. */
objfile->sym_stab_info = (struct dbx_symfile_info *)
@@ -557,10 +536,7 @@ coff_symfile_init (objfile)
/* ARGSUSED */
static void
-find_linenos (abfd, asect, vpinfo)
- bfd *abfd;
- sec_ptr asect;
- PTR vpinfo;
+find_linenos (bfd *abfd, sec_ptr asect, PTR vpinfo)
{
struct coff_symfile_info *info;
int size, count;
@@ -597,9 +573,7 @@ static bfd *symfile_bfd;
/* ARGSUSED */
static void
-coff_symfile_read (objfile, mainline)
- struct objfile *objfile;
- int mainline;
+coff_symfile_read (struct objfile *objfile, int mainline)
{
struct coff_symfile_info *info;
struct dbx_symfile_info *dbxinfo;
@@ -725,8 +699,7 @@ coff_symfile_read (objfile, mainline)
}
static void
-coff_new_init (ignore)
- struct objfile *ignore;
+coff_new_init (struct objfile *ignore)
{
}
@@ -736,8 +709,7 @@ coff_new_init (ignore)
objfile struct from the global list of known objfiles. */
static void
-coff_symfile_finish (objfile)
- struct objfile *objfile;
+coff_symfile_finish (struct objfile *objfile)
{
if (objfile->sym_private != NULL)
{
@@ -755,10 +727,8 @@ coff_symfile_finish (objfile)
We read them one at a time using read_one_sym (). */
static void
-coff_symtab_read (symtab_offset, nsyms, objfile)
- long symtab_offset;
- unsigned int nsyms;
- struct objfile *objfile;
+coff_symtab_read (long symtab_offset, unsigned int nsyms,
+ struct objfile *objfile)
{
register struct context_stack *new;
struct coff_symbol coff_symbol;
@@ -1169,10 +1139,9 @@ coff_symtab_read (symtab_offset, nsyms, objfile)
in internal_auxent form, and skip any other auxents. */
static void
-read_one_sym (cs, sym, aux)
- register struct coff_symbol *cs;
- register struct internal_syment *sym;
- register union internal_auxent *aux;
+read_one_sym (register struct coff_symbol *cs,
+ register struct internal_syment *sym,
+ register union internal_auxent *aux)
{
int i;
@@ -1239,9 +1208,7 @@ read_one_sym (cs, sym, aux)
static char *stringtab = NULL;
static int
-init_stringtab (abfd, offset)
- bfd *abfd;
- long offset;
+init_stringtab (bfd *abfd, long offset)
{
long length;
int val;
@@ -1280,7 +1247,7 @@ init_stringtab (abfd, offset)
}
static void
-free_stringtab ()
+free_stringtab (void)
{
if (stringtab)
free (stringtab);
@@ -1294,8 +1261,7 @@ free_stringtab_cleanup (void *ignore)
}
static char *
-getsymname (symbol_entry)
- struct internal_syment *symbol_entry;
+getsymname (struct internal_syment *symbol_entry)
{
static char buffer[SYMNMLEN + 1];
char *result;
@@ -1320,8 +1286,7 @@ getsymname (symbol_entry)
is only good for temporary use. */
static char *
-coff_getfilename (aux_entry)
- union internal_auxent *aux_entry;
+coff_getfilename (union internal_auxent *aux_entry)
{
static char buffer[BUFSIZ];
register char *temp;
@@ -1355,10 +1320,7 @@ static unsigned long linetab_size;
them into GDB's data structures. */
static int
-init_lineno (abfd, offset, size)
- bfd *abfd;
- long offset;
- int size;
+init_lineno (bfd *abfd, long offset, int size)
{
int val;
@@ -1387,7 +1349,7 @@ init_lineno (abfd, offset, size)
}
static void
-free_linetab ()
+free_linetab (void)
{
if (linetab)
free (linetab);
@@ -1405,11 +1367,8 @@ free_linetab_cleanup (void *ignore)
#endif
static void
-enter_linenos (file_offset, first_line, last_line, objfile)
- long file_offset;
- register int first_line;
- register int last_line;
- struct objfile *objfile;
+enter_linenos (long file_offset, register int first_line,
+ register int last_line, struct objfile *objfile)
{
register char *rawptr;
struct internal_lineno lptr;
@@ -1446,9 +1405,7 @@ enter_linenos (file_offset, first_line, last_line, objfile)
}
static void
-patch_type (type, real_type)
- struct type *type;
- struct type *real_type;
+patch_type (struct type *type, struct type *real_type)
{
register struct type *target = TYPE_TARGET_TYPE (type);
register struct type *real_target = TYPE_TARGET_TYPE (real_type);
@@ -1472,8 +1429,7 @@ patch_type (type, real_type)
so that they can be used to print out opaque data structures properly. */
static void
-patch_opaque_types (s)
- struct symtab *s;
+patch_opaque_types (struct symtab *s)
{
register struct block *b;
register int i;
@@ -1534,10 +1490,9 @@ patch_opaque_types (s)
}
static struct symbol *
-process_coff_symbol (cs, aux, objfile)
- register struct coff_symbol *cs;
- register union internal_auxent *aux;
- struct objfile *objfile;
+process_coff_symbol (register struct coff_symbol *cs,
+ register union internal_auxent *aux,
+ struct objfile *objfile)
{
register struct symbol *sym
= (struct symbol *) obstack_alloc (&objfile->symbol_obstack,
@@ -1761,10 +1716,8 @@ process_coff_symbol (cs, aux, objfile)
/* Decode a coff type specifier; return the type that is meant. */
static struct type *
-decode_type (cs, c_type, aux)
- register struct coff_symbol *cs;
- unsigned int c_type;
- register union internal_auxent *aux;
+decode_type (register struct coff_symbol *cs, unsigned int c_type,
+ register union internal_auxent *aux)
{
register struct type *type = 0;
unsigned int new_c_type;
@@ -1842,10 +1795,8 @@ decode_type (cs, c_type, aux)
return the type that the function returns. */
static struct type *
-decode_function_type (cs, c_type, aux)
- register struct coff_symbol *cs;
- unsigned int c_type;
- register union internal_auxent *aux;
+decode_function_type (register struct coff_symbol *cs, unsigned int c_type,
+ register union internal_auxent *aux)
{
if (aux->x_sym.x_tagndx.l == 0)
cs->c_naux = 0; /* auxent refers to function, not base type */
@@ -1856,10 +1807,8 @@ decode_function_type (cs, c_type, aux)
/* basic C types */
static struct type *
-decode_base_type (cs, c_type, aux)
- register struct coff_symbol *cs;
- unsigned int c_type;
- register union internal_auxent *aux;
+decode_base_type (register struct coff_symbol *cs, unsigned int c_type,
+ register union internal_auxent *aux)
{
struct type *type;
@@ -2010,10 +1959,7 @@ decode_base_type (cs, c_type, aux)
object describing the type. */
static struct type *
-coff_read_struct_type (index, length, lastsym)
- int index;
- int length;
- int lastsym;
+coff_read_struct_type (int index, int length, int lastsym)
{
struct nextfield
{
@@ -2108,10 +2054,7 @@ coff_read_struct_type (index, length, lastsym)
/* ARGSUSED */
static struct type *
-coff_read_enum_type (index, length, lastsym)
- int index;
- int length;
- int lastsym;
+coff_read_enum_type (int index, int length, int lastsym)
{
register struct symbol *sym;
register struct type *type;
@@ -2228,7 +2171,7 @@ static struct sym_fns coff_sym_fns =
};
void
-_initialize_coffread ()
+_initialize_coffread (void)
{
add_symtab_fns (&coff_sym_fns);
}
diff --git a/gdb/command.c b/gdb/command.c
index bc3a8fb..aff3191 100644
--- a/gdb/command.c
+++ b/gdb/command.c
@@ -145,9 +145,7 @@ add_cmd (name, class, fun, doc, list)
Returns a pointer to the deprecated command. */
struct cmd_list_element *
-deprecate_cmd (cmd, replacement)
- struct cmd_list_element *cmd;
- char *replacement;
+deprecate_cmd (struct cmd_list_element *cmd, char *replacement)
{
cmd->flags |= (CMD_DEPRECATED | DEPRECATED_WARN_USER);
@@ -182,12 +180,8 @@ add_abbrev_cmd (name, class, fun, doc, list)
#endif
struct cmd_list_element *
-add_alias_cmd (name, oldname, class, abbrev_flag, list)
- char *name;
- char *oldname;
- enum command_class class;
- int abbrev_flag;
- struct cmd_list_element **list;
+add_alias_cmd (char *name, char *oldname, enum command_class class,
+ int abbrev_flag, struct cmd_list_element **list)
{
/* Must do this since lookup_cmd tries to side-effect its first arg */
char *copied_name;
@@ -260,9 +254,7 @@ add_abbrev_prefix_cmd (name, class, fun, doc, prefixlist, prefixname,
/* This is an empty "cfunc". */
void
-not_just_help_class_command (args, from_tty)
- char *args;
- int from_tty;
+not_just_help_class_command (char *args, int from_tty)
{
}
@@ -270,10 +262,7 @@ not_just_help_class_command (args, from_tty)
static void empty_sfunc (char *, int, struct cmd_list_element *);
static void
-empty_sfunc (args, from_tty, c)
- char *args;
- int from_tty;
- struct cmd_list_element *c;
+empty_sfunc (char *args, int from_tty, struct cmd_list_element *c)
{
}
@@ -350,9 +339,8 @@ add_set_auto_boolean_cmd (char *name,
command to LIST and return a pointer to the added command (not
necessarily the head of LIST). */
struct cmd_list_element *
-add_show_from_set (setcmd, list)
- struct cmd_list_element *setcmd;
- struct cmd_list_element **list;
+add_show_from_set (struct cmd_list_element *setcmd,
+ struct cmd_list_element **list)
{
struct cmd_list_element *showcmd =
(struct cmd_list_element *) xmalloc (sizeof (struct cmd_list_element));
@@ -391,9 +379,7 @@ add_show_from_set (setcmd, list)
/* Remove the command named NAME from the command list. */
void
-delete_cmd (name, list)
- char *name;
- struct cmd_list_element **list;
+delete_cmd (char *name, struct cmd_list_element **list)
{
register struct cmd_list_element *c;
struct cmd_list_element *p;
@@ -516,9 +502,7 @@ apropos_command (char *searchstr, int from_tty)
*/
void
-help_cmd (command, stream)
- char *command;
- struct ui_file *stream;
+help_cmd (char *command, struct ui_file *stream)
{
struct cmd_list_element *c;
extern struct cmd_list_element *cmdlist;
@@ -585,11 +569,8 @@ help_cmd (command, stream)
* If you call this routine with a class >= 0, it recurses.
*/
void
-help_list (list, cmdtype, class, stream)
- struct cmd_list_element *list;
- char *cmdtype;
- enum command_class class;
- struct ui_file *stream;
+help_list (struct cmd_list_element *list, char *cmdtype,
+ enum command_class class, struct ui_file *stream)
{
int len;
char *cmdtype1, *cmdtype2;
@@ -649,9 +630,7 @@ help_all (struct ui_file *stream)
/* Print only the first line of STR on STREAM. */
static void
-print_doc_line (stream, str)
- struct ui_file *stream;
- char *str;
+print_doc_line (struct ui_file *stream, char *str)
{
static char *line_buffer = 0;
static int line_size;
@@ -700,12 +679,8 @@ print_doc_line (stream, str)
* is at the low level, not the high-level).
*/
void
-help_cmd_list (list, class, prefix, recurse, stream)
- struct cmd_list_element *list;
- enum command_class class;
- char *prefix;
- int recurse;
- struct ui_file *stream;
+help_cmd_list (struct cmd_list_element *list, enum command_class class,
+ char *prefix, int recurse, struct ui_file *stream)
{
register struct cmd_list_element *c;
@@ -733,12 +708,8 @@ help_cmd_list (list, class, prefix, recurse, stream)
found in nfound */
static struct cmd_list_element *
-find_cmd (command, len, clist, ignore_help_classes, nfound)
- char *command;
- int len;
- struct cmd_list_element *clist;
- int ignore_help_classes;
- int *nfound;
+find_cmd (char *command, int len, struct cmd_list_element *clist,
+ int ignore_help_classes, int *nfound)
{
struct cmd_list_element *found, *c;
@@ -796,10 +767,8 @@ find_cmd (command, len, clist, ignore_help_classes, nfound)
the struct cmd_list_element is NULL). */
struct cmd_list_element *
-lookup_cmd_1 (text, clist, result_list, ignore_help_classes)
- char **text;
- struct cmd_list_element *clist, **result_list;
- int ignore_help_classes;
+lookup_cmd_1 (char **text, struct cmd_list_element *clist,
+ struct cmd_list_element **result_list, int ignore_help_classes)
{
char *p, *command;
int len, tmp, nfound;
@@ -931,8 +900,7 @@ lookup_cmd_1 (text, clist, result_list, ignore_help_classes)
/* All this hair to move the space to the front of cmdtype */
static void
-undef_cmd_error (cmdtype, q)
- char *cmdtype, *q;
+undef_cmd_error (char *cmdtype, char *q)
{
error ("Undefined %scommand: \"%s\". Try \"help%s%.*s\".",
cmdtype,
@@ -957,12 +925,8 @@ undef_cmd_error (cmdtype, q)
the function field of the struct cmd_list_element is 0). */
struct cmd_list_element *
-lookup_cmd (line, list, cmdtype, allow_unknown, ignore_help_classes)
- char **line;
- struct cmd_list_element *list;
- char *cmdtype;
- int allow_unknown;
- int ignore_help_classes;
+lookup_cmd (char **line, struct cmd_list_element *list, char *cmdtype,
+ int allow_unknown, int ignore_help_classes)
{
struct cmd_list_element *last_list = 0;
struct cmd_list_element *c =
@@ -1279,11 +1243,8 @@ lookup_cmd_composition (char *text,
CMDTYPE precedes the word "command" in the error message. */
struct cmd_list_element *
-lookup_cmd (line, list, cmdtype, allow_unknown)
- char **line;
- struct cmd_list_element *list;
- char *cmdtype;
- int allow_unknown;
+lookup_cmd (char **line, struct cmd_list_element *list, char *cmdtype,
+ int allow_unknown)
{
register char *p;
register struct cmd_list_element *c, *found;
@@ -1415,10 +1376,7 @@ lookup_cmd (line, list, cmdtype, allow_unknown)
"oobar"; if WORD is "baz/foo", return "baz/foobar". */
char **
-complete_on_cmdlist (list, text, word)
- struct cmd_list_element *list;
- char *text;
- char *word;
+complete_on_cmdlist (struct cmd_list_element *list, char *text, char *word)
{
struct cmd_list_element *ptr;
char **matchlist;
@@ -1576,8 +1534,7 @@ parse_auto_binary_operation (const char *arg)
}
static int
-parse_binary_operation (arg)
- char *arg;
+parse_binary_operation (char *arg)
{
int length;
@@ -1611,10 +1568,7 @@ parse_binary_operation (arg)
directly by the user (i.e. these are just like any other
command). C is the command list element for the command. */
void
-do_setshow_command (arg, from_tty, c)
- char *arg;
- int from_tty;
- struct cmd_list_element *c;
+do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c)
{
if (c->type == set_cmd)
{
@@ -1932,10 +1886,7 @@ do_setshow_command (arg, from_tty, c)
/* Show all the settings in a list of show commands. */
void
-cmd_show_list (list, from_tty, prefix)
- struct cmd_list_element *list;
- int from_tty;
- char *prefix;
+cmd_show_list (struct cmd_list_element *list, int from_tty, char *prefix)
{
#ifdef UI_OUT
ui_out_list_begin (uiout, "showlist");
@@ -1980,9 +1931,7 @@ cmd_show_list (list, from_tty, prefix)
/* ARGSUSED */
static void
-shell_escape (arg, from_tty)
- char *arg;
- int from_tty;
+shell_escape (char *arg, int from_tty)
{
#ifdef CANT_FORK
/* If ARG is NULL, they want an inferior shell, but `system' just
@@ -2043,9 +1992,7 @@ shell_escape (arg, from_tty)
}
static void
-make_command (arg, from_tty)
- char *arg;
- int from_tty;
+make_command (char *arg, int from_tty)
{
char *p;
@@ -2062,9 +2009,7 @@ make_command (arg, from_tty)
}
static void
-show_user_1 (c, stream)
- struct cmd_list_element *c;
- struct ui_file *stream;
+show_user_1 (struct cmd_list_element *c, struct ui_file *stream)
{
register struct command_line *cmdlines;
@@ -2090,9 +2035,7 @@ show_user_1 (c, stream)
/* ARGSUSED */
static void
-show_user (args, from_tty)
- char *args;
- int from_tty;
+show_user (char *args, int from_tty)
{
struct cmd_list_element *c;
extern struct cmd_list_element *cmdlist;
@@ -2115,7 +2058,7 @@ show_user (args, from_tty)
}
void
-_initialize_command ()
+_initialize_command (void)
{
add_com ("shell", class_support, shell_escape,
"Execute the rest of the line as a shell command. \n\
diff --git a/gdb/complaints.c b/gdb/complaints.c
index ee877fb..6c9d728 100644
--- a/gdb/complaints.c
+++ b/gdb/complaints.c
@@ -124,9 +124,7 @@ complain (struct complaint *complaint,...)
context for the user to figure it out. */
void
-clear_complaints (sym_reading, noisy)
- int sym_reading;
- int noisy;
+clear_complaints (int sym_reading, int noisy)
{
struct complaint *p;
@@ -145,7 +143,7 @@ clear_complaints (sym_reading, noisy)
}
void
-_initialize_complaints ()
+_initialize_complaints (void)
{
add_show_from_set
(add_set_cmd ("complaints", class_support, var_zinteger,
diff --git a/gdb/copying.c b/gdb/copying.c
index 76414bd..a78a862 100644
--- a/gdb/copying.c
+++ b/gdb/copying.c
@@ -13,9 +13,7 @@ void _initialize_copying (void);
extern int immediate_quit;
static void
-show_copying_command (ignore, from_tty)
- char *ignore;
- int from_tty;
+show_copying_command (char *ignore, int from_tty)
{
immediate_quit++;
printf_filtered (" GNU GENERAL PUBLIC LICENSE\n");
@@ -279,9 +277,7 @@ show_copying_command (ignore, from_tty)
}
static void
-show_warranty_command (ignore, from_tty)
- char *ignore;
- int from_tty;
+show_warranty_command (char *ignore, int from_tty)
{
immediate_quit++;
printf_filtered (" NO WARRANTY\n");
@@ -310,7 +306,7 @@ show_warranty_command (ignore, from_tty)
}
void
-_initialize_copying ()
+_initialize_copying (void)
{
add_cmd ("copying", no_class, show_copying_command,
"Conditions for redistributing copies of GDB.",
diff --git a/gdb/core-aout.c b/gdb/core-aout.c
index ad64720..367090f 100644
--- a/gdb/core-aout.c
+++ b/gdb/core-aout.c
@@ -73,11 +73,8 @@ void _initialize_core_aout (void);
*/
static void
-fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
- char *core_reg_sect;
- unsigned core_reg_size;
- int which;
- CORE_ADDR reg_addr;
+fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, int which,
+ CORE_ADDR reg_addr)
{
int regno;
CORE_ADDR addr;
@@ -115,9 +112,7 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
BLOCKEND is the address of the end of the user structure. */
CORE_ADDR
-register_addr (regno, blockend)
- int regno;
- CORE_ADDR blockend;
+register_addr (int regno, CORE_ADDR blockend)
{
CORE_ADDR addr;
@@ -144,7 +139,7 @@ static struct core_fns aout_core_fns =
};
void
-_initialize_core_aout ()
+_initialize_core_aout (void)
{
add_core_fns (&aout_core_fns);
}
diff --git a/gdb/core-regset.c b/gdb/core-regset.c
index 2070da6..f6e6a88 100644
--- a/gdb/core-regset.c
+++ b/gdb/core-regset.c
@@ -133,7 +133,7 @@ static struct core_fns regset_core_fns =
};
void
-_initialize_core_regset ()
+_initialize_core_regset (void)
{
add_core_fns (&regset_core_fns);
}
diff --git a/gdb/core-sol2.c b/gdb/core-sol2.c
index 46b5eb6..4cf7d33 100644
--- a/gdb/core-sol2.c
+++ b/gdb/core-sol2.c
@@ -133,7 +133,7 @@ static struct core_fns solaris_core_fns =
};
void
-_initialize_core_solaris ()
+_initialize_core_solaris (void)
{
add_core_fns (&solaris_core_fns);
}
diff --git a/gdb/corefile.c b/gdb/corefile.c
index c8772de..6ff1ac5 100644
--- a/gdb/corefile.c
+++ b/gdb/corefile.c
@@ -65,9 +65,7 @@ bfd *core_bfd = NULL;
/* Backward compatability with old way of specifying core files. */
void
-core_file_command (filename, from_tty)
- char *filename;
- int from_tty;
+core_file_command (char *filename, int from_tty)
{
struct target_ops *t;
@@ -110,8 +108,7 @@ core_file_command (filename, from_tty)
* this function will call all of the hook functions. */
static void
-call_extra_exec_file_hooks (filename)
- char *filename;
+call_extra_exec_file_hooks (char *filename)
{
int i;
@@ -160,7 +157,7 @@ specify_exec_file_hook (hook)
be reopened. */
void
-close_exec_file ()
+close_exec_file (void)
{
#if 0 /* FIXME */
if (exec_bfd)
@@ -169,7 +166,7 @@ close_exec_file ()
}
void
-reopen_exec_file ()
+reopen_exec_file (void)
{
#if 0 /* FIXME */
if (exec_bfd)
@@ -199,7 +196,7 @@ reopen_exec_file ()
print a warning if they don't go together. */
void
-validate_files ()
+validate_files (void)
{
if (exec_bfd && core_bfd)
{
@@ -215,8 +212,7 @@ validate_files ()
otherwise return 0 in that case. */
char *
-get_exec_file (err)
- int err;
+get_exec_file (int err)
{
if (exec_bfd)
return bfd_get_filename (exec_bfd);
@@ -232,9 +228,7 @@ Use the \"file\" or \"exec-file\" command.");
/* Report a memory error with error(). */
void
-memory_error (status, memaddr)
- int status;
- CORE_ADDR memaddr;
+memory_error (int status, CORE_ADDR memaddr)
{
struct ui_file *tmp_stream = mem_fileopen ();
make_cleanup_ui_file_delete (tmp_stream);
@@ -259,10 +253,7 @@ memory_error (status, memaddr)
/* Same as target_read_memory, but report an error if can't read. */
void
-read_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+read_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
int status;
status = target_read_memory (memaddr, myaddr, len);
@@ -272,40 +263,29 @@ read_memory (memaddr, myaddr, len)
/* Like target_read_memory, but slightly different parameters. */
int
-dis_asm_read_memory (memaddr, myaddr, len, info)
- bfd_vma memaddr;
- bfd_byte *myaddr;
- unsigned int len;
- disassemble_info *info;
+dis_asm_read_memory (bfd_vma memaddr, bfd_byte *myaddr, unsigned int len,
+ disassemble_info *info)
{
return target_read_memory (memaddr, (char *) myaddr, len);
}
/* Like memory_error with slightly different parameters. */
void
-dis_asm_memory_error (status, memaddr, info)
- int status;
- bfd_vma memaddr;
- disassemble_info *info;
+dis_asm_memory_error (int status, bfd_vma memaddr, disassemble_info *info)
{
memory_error (status, memaddr);
}
/* Like print_address with slightly different parameters. */
void
-dis_asm_print_address (addr, info)
- bfd_vma addr;
- struct disassemble_info *info;
+dis_asm_print_address (bfd_vma addr, struct disassemble_info *info)
{
print_address (addr, info->stream);
}
/* Same as target_write_memory, but report an error if can't write. */
void
-write_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+write_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
int status;
@@ -317,9 +297,7 @@ write_memory (memaddr, myaddr, len)
/* Read an integer from debugged memory, given address and number of bytes. */
LONGEST
-read_memory_integer (memaddr, len)
- CORE_ADDR memaddr;
- int len;
+read_memory_integer (CORE_ADDR memaddr, int len)
{
char buf[sizeof (LONGEST)];
@@ -328,9 +306,7 @@ read_memory_integer (memaddr, len)
}
ULONGEST
-read_memory_unsigned_integer (memaddr, len)
- CORE_ADDR memaddr;
- int len;
+read_memory_unsigned_integer (CORE_ADDR memaddr, int len)
{
char buf[sizeof (ULONGEST)];
@@ -339,10 +315,7 @@ read_memory_unsigned_integer (memaddr, len)
}
void
-read_memory_string (memaddr, buffer, max_len)
- CORE_ADDR memaddr;
- char *buffer;
- int max_len;
+read_memory_string (CORE_ADDR memaddr, char *buffer, int max_len)
{
register char *cp;
register int i;
@@ -419,10 +392,7 @@ static char *gnutarget_string;
static void set_gnutarget_command (char *, int, struct cmd_list_element *);
static void
-set_gnutarget_command (ignore, from_tty, c)
- char *ignore;
- int from_tty;
- struct cmd_list_element *c;
+set_gnutarget_command (char *ignore, int from_tty, struct cmd_list_element *c)
{
if (STREQ (gnutarget_string, "auto"))
gnutarget = NULL;
@@ -432,8 +402,7 @@ set_gnutarget_command (ignore, from_tty, c)
/* Set the gnutarget. */
void
-set_gnutarget (newtarget)
- char *newtarget;
+set_gnutarget (char *newtarget)
{
if (gnutarget_string != NULL)
free (gnutarget_string);
@@ -442,7 +411,7 @@ set_gnutarget (newtarget)
}
void
-_initialize_core ()
+_initialize_core (void)
{
struct cmd_list_element *c;
c = add_cmd ("core-file", class_files, core_file_command,
diff --git a/gdb/corelow.c b/gdb/corelow.c
index 43163d9..b552600 100644
--- a/gdb/corelow.c
+++ b/gdb/corelow.c
@@ -84,8 +84,7 @@ struct target_ops core_ops;
handle. */
void
-add_core_fns (cf)
- struct core_fns *cf;
+add_core_fns (struct core_fns *cf)
{
cf->next = core_file_fns;
core_file_fns = cf;
@@ -96,9 +95,7 @@ add_core_fns (cf)
reading the core file. */
int
-default_core_sniffer (our_fns, abfd)
- struct core_fns *our_fns;
- bfd *abfd;
+default_core_sniffer (struct core_fns *our_fns, bfd *abfd)
{
int result;
@@ -112,8 +109,7 @@ default_core_sniffer (our_fns, abfd)
selected. */
static struct core_fns *
-sniff_core_bfd (abfd)
- bfd *abfd;
+sniff_core_bfd (bfd *abfd)
{
struct core_fns *cf;
struct core_fns *yummy = NULL;
@@ -149,8 +145,7 @@ sniff_core_bfd (abfd)
core file handler that recognizes it. */
int
-default_check_format (abfd)
- bfd *abfd;
+default_check_format (bfd *abfd)
{
return (0);
}
@@ -158,8 +153,7 @@ default_check_format (abfd)
/* Attempt to recognize core file formats that BFD rejects. */
static boolean
-gdb_check_format (abfd)
- bfd *abfd;
+gdb_check_format (bfd *abfd)
{
struct core_fns *cf;
@@ -178,8 +172,7 @@ gdb_check_format (abfd)
/* ARGSUSED */
static void
-core_close (quitting)
- int quitting;
+core_close (int quitting)
{
char *name;
@@ -220,8 +213,7 @@ core_close_cleanup (void *ignore)
is really an int * which points to from_tty. */
static int
-solib_add_stub (from_ttyp)
- PTR from_ttyp;
+solib_add_stub (PTR from_ttyp)
{
SOLIB_ADD (NULL, *(int *) from_ttyp, &current_target);
re_enable_breakpoints_in_shlibs ();
@@ -233,10 +225,7 @@ solib_add_stub (from_ttyp)
list of threads in a core file. */
static void
-add_to_thread_list (abfd, asect, reg_sect_arg)
- bfd *abfd;
- asection *asect;
- PTR reg_sect_arg;
+add_to_thread_list (bfd *abfd, asection *asect, PTR reg_sect_arg)
{
int thread_id;
asection *reg_sect = (asection *) reg_sect_arg;
@@ -258,9 +247,7 @@ add_to_thread_list (abfd, asect, reg_sect_arg)
/* This routine opens and sets up the core file bfd. */
static void
-core_open (filename, from_tty)
- char *filename;
- int from_tty;
+core_open (char *filename, int from_tty)
{
const char *p;
int siggy;
@@ -375,9 +362,7 @@ your %s; do ``info files''", target_longname);
}
static void
-core_detach (args, from_tty)
- char *args;
- int from_tty;
+core_detach (char *args, int from_tty)
{
if (args)
error ("Too many arguments");
@@ -451,8 +436,7 @@ get_core_register_section (char *name,
/* ARGSUSED */
static void
-get_core_registers (regno)
- int regno;
+get_core_registers (int regno)
{
int status;
@@ -472,8 +456,7 @@ get_core_registers (regno)
}
static char *
-core_file_to_sym_file (core)
- char *core;
+core_file_to_sym_file (char *core)
{
CONST char *failing_command;
char *p;
@@ -535,8 +518,7 @@ core_file_to_sym_file (core)
}
static void
-core_files_info (t)
- struct target_ops *t;
+core_files_info (struct target_ops *t)
{
print_section_info (t, core_bfd);
}
@@ -545,9 +527,7 @@ core_files_info (t)
`gdb internal error' (since generic_mourn calls breakpoint_init_inferior). */
static int
-ignore (addr, contents)
- CORE_ADDR addr;
- char *contents;
+ignore (CORE_ADDR addr, char *contents)
{
return 0;
}
@@ -560,8 +540,7 @@ ignore (addr, contents)
behaviour.
*/
static int
-core_file_thread_alive (tid)
- int tid;
+core_file_thread_alive (int tid)
{
return 1;
}
@@ -569,7 +548,7 @@ core_file_thread_alive (tid)
/* Fill in core_ops with its defined operations and properties. */
static void
-init_core_ops ()
+init_core_ops (void)
{
core_ops.to_shortname = "core";
core_ops.to_longname = "Local core dump file";
@@ -606,7 +585,7 @@ init_core_ops ()
int coreops_suppress_target;
void
-_initialize_corelow ()
+_initialize_corelow (void)
{
init_core_ops ();
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c
index 58bbc7c..e828613 100644
--- a/gdb/cp-valprint.c
+++ b/gdb/cp-valprint.c
@@ -63,10 +63,7 @@ static void cp_print_hpacc_virtual_table_entries (struct type *, int *,
void
-cp_print_class_method (valaddr, type, stream)
- char *valaddr;
- struct type *type;
- struct ui_file *stream;
+cp_print_class_method (char *valaddr, struct type *type, struct ui_file *stream)
{
struct type *domain;
struct fn_field *f = NULL;
@@ -184,8 +181,7 @@ const char hpacc_vtbl_ptr_type_name[] =
"pointer to virtual function". */
int
-cp_is_vtbl_ptr_type (type)
- struct type *type;
+cp_is_vtbl_ptr_type (struct type *type)
{
char *typename = type_name_no_tag (type);
@@ -198,8 +194,7 @@ cp_is_vtbl_ptr_type (type)
"pointer to virtual function table". */
int
-cp_is_vtbl_member (type)
- struct type *type;
+cp_is_vtbl_member (struct type *type)
{
if (TYPE_CODE (type) == TYPE_CODE_PTR)
{
@@ -232,19 +227,10 @@ cp_is_vtbl_member (type)
should not print, or zero if called from top level. */
void
-cp_print_value_fields (type, real_type, valaddr, offset, address, stream, format, recurse, pretty,
- dont_print_vb, dont_print_statmem)
- struct type *type;
- struct type *real_type;
- char *valaddr;
- int offset;
- CORE_ADDR address;
- struct ui_file *stream;
- int format;
- int recurse;
- enum val_prettyprint pretty;
- struct type **dont_print_vb;
- int dont_print_statmem;
+cp_print_value_fields (struct type *type, struct type *real_type, char *valaddr,
+ int offset, CORE_ADDR address, struct ui_file *stream,
+ int format, int recurse, enum val_prettyprint pretty,
+ struct type **dont_print_vb, int dont_print_statmem)
{
int i, len, n_baseclasses;
struct obstack tmp_obstack;
@@ -495,18 +481,10 @@ cp_print_value_fields (type, real_type, valaddr, offset, address, stream, format
baseclasses. */
static void
-cp_print_value (type, real_type, valaddr, offset, address, stream, format, recurse, pretty,
- dont_print_vb)
- struct type *type;
- struct type *real_type;
- char *valaddr;
- int offset;
- CORE_ADDR address;
- struct ui_file *stream;
- int format;
- int recurse;
- enum val_prettyprint pretty;
- struct type **dont_print_vb;
+cp_print_value (struct type *type, struct type *real_type, char *valaddr,
+ int offset, CORE_ADDR address, struct ui_file *stream,
+ int format, int recurse, enum val_prettyprint pretty,
+ struct type **dont_print_vb)
{
struct obstack tmp_obstack;
struct type **last_dont_print
@@ -627,13 +605,8 @@ cp_print_value (type, real_type, valaddr, offset, address, stream, format, recur
have the same meanings as in c_val_print. */
static void
-cp_print_static_field (type, val, stream, format, recurse, pretty)
- struct type *type;
- value_ptr val;
- struct ui_file *stream;
- int format;
- int recurse;
- enum val_prettyprint pretty;
+cp_print_static_field (struct type *type, value_ptr val, struct ui_file *stream,
+ int format, int recurse, enum val_prettyprint pretty)
{
if (TYPE_CODE (type) == TYPE_CODE_STRUCT)
{
@@ -668,11 +641,8 @@ cp_print_static_field (type, val, stream, format, recurse, pretty)
}
void
-cp_print_class_member (valaddr, domain, stream, prefix)
- char *valaddr;
- struct type *domain;
- struct ui_file *stream;
- char *prefix;
+cp_print_class_member (char *valaddr, struct type *domain,
+ struct ui_file *stream, char *prefix)
{
/* VAL is a byte offset into the structure type DOMAIN.
@@ -746,14 +716,10 @@ cp_print_class_member (valaddr, domain, stream, prefix)
static void
-cp_print_hpacc_virtual_table_entries (type, vfuncs, v, stream, format, recurse, pretty)
- struct type *type;
- int *vfuncs;
- value_ptr v;
- struct ui_file *stream;
- int format;
- int recurse;
- enum val_prettyprint pretty;
+cp_print_hpacc_virtual_table_entries (struct type *type, int *vfuncs,
+ value_ptr v, struct ui_file *stream,
+ int format, int recurse,
+ enum val_prettyprint pretty)
{
int fn, oi;
@@ -798,7 +764,7 @@ cp_print_hpacc_virtual_table_entries (type, vfuncs, v, stream, format, recurse,
void
-_initialize_cp_valprint ()
+_initialize_cp_valprint (void)
{
add_show_from_set
(add_set_cmd ("static-members", class_support, var_boolean,
diff --git a/gdb/cpu32bug-rom.c b/gdb/cpu32bug-rom.c
index 8bd0ea2..6b77506 100644
--- a/gdb/cpu32bug-rom.c
+++ b/gdb/cpu32bug-rom.c
@@ -29,11 +29,7 @@
static void cpu32bug_open (char *args, int from_tty);
static void
-cpu32bug_supply_register (regname, regnamelen, val, vallen)
- char *regname;
- int regnamelen;
- char *val;
- int vallen;
+cpu32bug_supply_register (char *regname, int regnamelen, char *val, int vallen)
{
int regno;
@@ -146,15 +142,13 @@ init_cpu32bug_cmds (void)
}; /* init_cpu32bug_cmds */
static void
-cpu32bug_open (args, from_tty)
- char *args;
- int from_tty;
+cpu32bug_open (char *args, int from_tty)
{
monitor_open (args, &cpu32bug_cmds, from_tty);
}
void
-_initialize_cpu32bug_rom ()
+_initialize_cpu32bug_rom (void)
{
init_cpu32bug_cmds ();
init_monitor_ops (&cpu32bug_ops);
diff --git a/gdb/cxux-nat.c b/gdb/cxux-nat.c
index 93ed232..c37fc0c 100644
--- a/gdb/cxux-nat.c
+++ b/gdb/cxux-nat.c
@@ -139,8 +139,7 @@ fetch_inferior_registers (regno)
Otherwise, REGNO specifies which register (so we can save time). */
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
register unsigned int regaddr;
char buf[80];
@@ -249,8 +248,7 @@ store_inferior_registers (regno)
/* blockend is the address of the end of the user structure */
-m88k_register_u_addr (blockend, regnum)
- int blockend, regnum;
+m88k_register_u_addr (int blockend, int regnum)
{
struct USER u;
int ustart = blockend - sizeof (struct USER);
@@ -289,8 +287,7 @@ m88k_register_u_addr (blockend, regnum)
register values. */
void
-supply_gregset (gregsetp)
- gregset_t *gregsetp;
+supply_gregset (gregset_t *gregsetp)
{
register int regi;
register greg_t *regp = (greg_t *) gregsetp;
@@ -307,9 +304,7 @@ supply_gregset (gregsetp)
}
void
-fill_gregset (gregsetp, regno)
- gregset_t *gregsetp;
- int regno;
+fill_gregset (gregset_t *gregsetp, int regno)
{
int regi;
register greg_t *regp = (greg_t *) gregsetp;
@@ -357,7 +352,7 @@ struct link_map
#endif
void
-add_shared_symbol_files ()
+add_shared_symbol_files (void)
{
void *desc;
struct link_map *ld_map, *lm, lms;
@@ -410,8 +405,7 @@ add_shared_symbol_files ()
#include <sys/regset.h>
unsigned int
-m88k_harris_core_register_addr (regno, reg_ptr)
- int regno, reg_ptr;
+m88k_harris_core_register_addr (int regno, int reg_ptr)
{
unsigned int word_offset;
@@ -447,7 +441,7 @@ m88k_harris_core_register_addr (regno, reg_ptr)
#endif /* _ES_MP */
void
-_initialize_m88k_nat ()
+_initialize_m88k_nat (void)
{
#ifdef _ES_MP
/* Enable 88110 support, as we don't support the 88100 under ES/MP. */
@@ -465,8 +459,7 @@ _initialize_m88k_nat ()
register values. */
void
-supply_gregset (gregsetp)
- gregset_t *gregsetp;
+supply_gregset (gregset_t *gregsetp)
{
register int regi;
register greg_t *regp = (greg_t *) gregsetp;
@@ -488,8 +481,7 @@ supply_gregset (gregsetp)
idea of the current floating point register values. */
void
-supply_fpregset (fpregsetp)
- fpregset_t *fpregsetp;
+supply_fpregset (fpregset_t *fpregsetp)
{
register int regi;
char *from;
diff --git a/gdb/d10v-tdep.c b/gdb/d10v-tdep.c
index 3aab494..20e146f 100644
--- a/gdb/d10v-tdep.c
+++ b/gdb/d10v-tdep.c
@@ -121,18 +121,14 @@ d10v_stack_align (CORE_ADDR len)
registers. */
int
-d10v_use_struct_convention (gcc_p, type)
- int gcc_p;
- struct type *type;
+d10v_use_struct_convention (int gcc_p, struct type *type)
{
return (TYPE_LENGTH (type) > 8);
}
unsigned char *
-d10v_breakpoint_from_pc (pcptr, lenptr)
- CORE_ADDR *pcptr;
- int *lenptr;
+d10v_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr)
{
static unsigned char breakpoint[] =
{0x2f, 0x90, 0x5e, 0x00};
@@ -288,8 +284,7 @@ d10v_register_sim_regno (int nr)
register REG_NR. */
int
-d10v_register_byte (reg_nr)
- int reg_nr;
+d10v_register_byte (int reg_nr)
{
if (reg_nr < A0_REGNUM)
return (reg_nr * 2);
@@ -306,8 +301,7 @@ d10v_register_byte (reg_nr)
register REG_NR. */
int
-d10v_register_raw_size (reg_nr)
- int reg_nr;
+d10v_register_raw_size (int reg_nr)
{
if (reg_nr < A0_REGNUM)
return 2;
@@ -321,8 +315,7 @@ d10v_register_raw_size (reg_nr)
for register N. */
int
-d10v_register_virtual_size (reg_nr)
- int reg_nr;
+d10v_register_virtual_size (int reg_nr)
{
return TYPE_LENGTH (REGISTER_VIRTUAL_TYPE (reg_nr));
}
@@ -331,8 +324,7 @@ d10v_register_virtual_size (reg_nr)
of data in register N. */
struct type *
-d10v_register_virtual_type (reg_nr)
- int reg_nr;
+d10v_register_virtual_type (int reg_nr)
{
if (reg_nr >= A0_REGNUM
&& reg_nr < (A0_REGNUM + NR_A_REGS))
@@ -346,18 +338,14 @@ d10v_register_virtual_type (reg_nr)
/* convert $pc and $sp to/from virtual addresses */
int
-d10v_register_convertible (nr)
- int nr;
+d10v_register_convertible (int nr)
{
return ((nr) == PC_REGNUM || (nr) == SP_REGNUM);
}
void
-d10v_register_convert_to_virtual (regnum, type, from, to)
- int regnum;
- struct type *type;
- char *from;
- char *to;
+d10v_register_convert_to_virtual (int regnum, struct type *type, char *from,
+ char *to)
{
ULONGEST x = extract_unsigned_integer (from, REGISTER_RAW_SIZE (regnum));
if (regnum == PC_REGNUM)
@@ -368,11 +356,8 @@ d10v_register_convert_to_virtual (regnum, type, from, to)
}
void
-d10v_register_convert_to_raw (type, regnum, from, to)
- struct type *type;
- int regnum;
- char *from;
- char *to;
+d10v_register_convert_to_raw (struct type *type, int regnum, char *from,
+ char *to)
{
ULONGEST x = extract_unsigned_integer (from, TYPE_LENGTH (type));
x &= 0x3ffff;
@@ -383,44 +368,38 @@ d10v_register_convert_to_raw (type, regnum, from, to)
CORE_ADDR
-d10v_make_daddr (x)
- CORE_ADDR x;
+d10v_make_daddr (CORE_ADDR x)
{
return ((x) | DMEM_START);
}
CORE_ADDR
-d10v_make_iaddr (x)
- CORE_ADDR x;
+d10v_make_iaddr (CORE_ADDR x)
{
return (((x) << 2) | IMEM_START);
}
int
-d10v_daddr_p (x)
- CORE_ADDR x;
+d10v_daddr_p (CORE_ADDR x)
{
return (((x) & 0x3000000) == DMEM_START);
}
int
-d10v_iaddr_p (x)
- CORE_ADDR x;
+d10v_iaddr_p (CORE_ADDR x)
{
return (((x) & 0x3000000) == IMEM_START);
}
CORE_ADDR
-d10v_convert_iaddr_to_raw (x)
- CORE_ADDR x;
+d10v_convert_iaddr_to_raw (CORE_ADDR x)
{
return (((x) >> 2) & 0xffff);
}
CORE_ADDR
-d10v_convert_daddr_to_raw (x)
- CORE_ADDR x;
+d10v_convert_daddr_to_raw (CORE_ADDR x)
{
return ((x) & 0xffff);
}
@@ -432,9 +411,7 @@ d10v_convert_daddr_to_raw (x)
register. */
void
-d10v_store_struct_return (addr, sp)
- CORE_ADDR addr;
- CORE_ADDR sp;
+d10v_store_struct_return (CORE_ADDR addr, CORE_ADDR sp)
{
write_register (ARG1_REGNUM, (addr));
}
@@ -445,9 +422,7 @@ d10v_store_struct_return (addr, sp)
Things always get returned in RET1_REGNUM, RET2_REGNUM, ... */
void
-d10v_store_return_value (type, valbuf)
- struct type *type;
- char *valbuf;
+d10v_store_return_value (struct type *type, char *valbuf)
{
write_register_bytes (REGISTER_BYTE (RET1_REGNUM),
valbuf,
@@ -459,8 +434,7 @@ d10v_store_return_value (type, valbuf)
as a CORE_ADDR (or an expression that can be used as one). */
CORE_ADDR
-d10v_extract_struct_value_address (regbuf)
- char *regbuf;
+d10v_extract_struct_value_address (char *regbuf)
{
return (extract_address ((regbuf) + REGISTER_BYTE (ARG1_REGNUM),
REGISTER_RAW_SIZE (ARG1_REGNUM))
@@ -468,22 +442,19 @@ d10v_extract_struct_value_address (regbuf)
}
CORE_ADDR
-d10v_frame_saved_pc (frame)
- struct frame_info *frame;
+d10v_frame_saved_pc (struct frame_info *frame)
{
return ((frame)->extra_info->return_pc);
}
CORE_ADDR
-d10v_frame_args_address (fi)
- struct frame_info *fi;
+d10v_frame_args_address (struct frame_info *fi)
{
return (fi)->frame;
}
CORE_ADDR
-d10v_frame_locals_address (fi)
- struct frame_info *fi;
+d10v_frame_locals_address (struct frame_info *fi)
{
return (fi)->frame;
}
@@ -493,8 +464,7 @@ d10v_frame_locals_address (fi)
the stack and that may not be written yet. */
CORE_ADDR
-d10v_saved_pc_after_call (frame)
- struct frame_info *frame;
+d10v_saved_pc_after_call (struct frame_info *frame)
{
return ((read_register (LR_REGNUM) << 2)
| IMEM_START);
@@ -504,14 +474,13 @@ d10v_saved_pc_after_call (frame)
registers. */
void
-d10v_pop_frame ()
+d10v_pop_frame (void)
{
generic_pop_current_frame (do_d10v_pop_frame);
}
static void
-do_d10v_pop_frame (fi)
- struct frame_info *fi;
+do_d10v_pop_frame (struct frame_info *fi)
{
CORE_ADDR fp;
int regnum;
@@ -550,8 +519,7 @@ do_d10v_pop_frame (fi)
}
static int
-check_prologue (op)
- unsigned short op;
+check_prologue (unsigned short op)
{
/* st rn, @-sp */
if ((op & 0x7E1F) == 0x6C1F)
@@ -585,8 +553,7 @@ check_prologue (op)
}
CORE_ADDR
-d10v_skip_prologue (pc)
- CORE_ADDR pc;
+d10v_skip_prologue (CORE_ADDR pc)
{
unsigned long op;
unsigned short op1, op2;
@@ -654,8 +621,7 @@ d10v_skip_prologue (pc)
*/
CORE_ADDR
-d10v_frame_chain (fi)
- struct frame_info *fi;
+d10v_frame_chain (struct frame_info *fi)
{
d10v_frame_init_saved_regs (fi);
@@ -683,10 +649,7 @@ d10v_frame_chain (fi)
static int next_addr, uses_frame;
static int
-prologue_find_regs (op, fi, addr)
- unsigned short op;
- struct frame_info *fi;
- CORE_ADDR addr;
+prologue_find_regs (unsigned short op, struct frame_info *fi, CORE_ADDR addr)
{
int n;
@@ -757,8 +720,7 @@ prologue_find_regs (op, fi, addr)
for it IS the sp for the next frame. */
void
-d10v_frame_init_saved_regs (fi)
- struct frame_info *fi;
+d10v_frame_init_saved_regs (struct frame_info *fi)
{
CORE_ADDR fp, pc;
unsigned long op;
@@ -859,9 +821,7 @@ d10v_frame_init_saved_regs (fi)
}
void
-d10v_init_extra_frame_info (fromleaf, fi)
- int fromleaf;
- struct frame_info *fi;
+d10v_init_extra_frame_info (int fromleaf, struct frame_info *fi)
{
fi->extra_info = (struct frame_extra_info *)
frame_obstack_alloc (sizeof (struct frame_extra_info));
@@ -884,9 +844,7 @@ d10v_init_extra_frame_info (fromleaf, fi)
}
static void
-show_regs (args, from_tty)
- char *args;
- int from_tty;
+show_regs (char *args, int from_tty)
{
int a;
printf_filtered ("PC=%04lx (0x%lx) PSW=%04lx RPT_S=%04lx RPT_E=%04lx RPT_C=%04lx\n",
@@ -946,8 +904,7 @@ show_regs (args, from_tty)
}
CORE_ADDR
-d10v_read_pc (pid)
- int pid;
+d10v_read_pc (int pid)
{
int save_pid;
CORE_ADDR pc;
@@ -962,9 +919,7 @@ d10v_read_pc (pid)
}
void
-d10v_write_pc (val, pid)
- CORE_ADDR val;
- int pid;
+d10v_write_pc (CORE_ADDR val, int pid)
{
int save_pid;
@@ -975,27 +930,25 @@ d10v_write_pc (val, pid)
}
CORE_ADDR
-d10v_read_sp ()
+d10v_read_sp (void)
{
return (D10V_MAKE_DADDR (read_register (SP_REGNUM)));
}
void
-d10v_write_sp (val)
- CORE_ADDR val;
+d10v_write_sp (CORE_ADDR val)
{
write_register (SP_REGNUM, D10V_CONVERT_DADDR_TO_RAW (val));
}
void
-d10v_write_fp (val)
- CORE_ADDR val;
+d10v_write_fp (CORE_ADDR val)
{
write_register (FP_REGNUM, D10V_CONVERT_DADDR_TO_RAW (val));
}
CORE_ADDR
-d10v_read_fp ()
+d10v_read_fp (void)
{
return (D10V_MAKE_DADDR (read_register (FP_REGNUM)));
}
@@ -1005,9 +958,7 @@ d10v_read_fp ()
Needed for targets where we don't actually execute a JSR/BSR instruction */
CORE_ADDR
-d10v_push_return_address (pc, sp)
- CORE_ADDR pc;
- CORE_ADDR sp;
+d10v_push_return_address (CORE_ADDR pc, CORE_ADDR sp)
{
write_register (LR_REGNUM, D10V_CONVERT_IADDR_TO_RAW (CALL_DUMMY_ADDRESS ()));
return sp;
@@ -1027,10 +978,7 @@ struct stack_item
static struct stack_item *push_stack_item (struct stack_item *prev,
void *contents, int len);
static struct stack_item *
-push_stack_item (prev, contents, len)
- struct stack_item *prev;
- void *contents;
- int len;
+push_stack_item (struct stack_item *prev, void *contents, int len)
{
struct stack_item *si;
si = xmalloc (sizeof (struct stack_item));
@@ -1043,8 +991,7 @@ push_stack_item (prev, contents, len)
static struct stack_item *pop_stack_item (struct stack_item *si);
static struct stack_item *
-pop_stack_item (si)
- struct stack_item *si;
+pop_stack_item (struct stack_item *si)
{
struct stack_item *dead = si;
si = si->prev;
@@ -1055,12 +1002,8 @@ pop_stack_item (si)
CORE_ADDR
-d10v_push_arguments (nargs, args, sp, struct_return, struct_addr)
- int nargs;
- value_ptr *args;
- CORE_ADDR sp;
- int struct_return;
- CORE_ADDR struct_addr;
+d10v_push_arguments (int nargs, value_ptr *args, CORE_ADDR sp,
+ int struct_return, CORE_ADDR struct_addr)
{
int i;
int regnum = ARG1_REGNUM;
@@ -1285,9 +1228,7 @@ struct trace_buffer
trace_data;
static void
-trace_command (args, from_tty)
- char *args;
- int from_tty;
+trace_command (char *args, int from_tty)
{
/* Clear the host-side trace buffer, allocating space if needed. */
trace_data.size = 0;
@@ -1302,9 +1243,7 @@ trace_command (args, from_tty)
}
static void
-untrace_command (args, from_tty)
- char *args;
- int from_tty;
+untrace_command (char *args, int from_tty)
{
tracing = 0;
@@ -1312,9 +1251,7 @@ untrace_command (args, from_tty)
}
static void
-trace_info (args, from_tty)
- char *args;
- int from_tty;
+trace_info (char *args, int from_tty)
{
int i;
@@ -1341,9 +1278,7 @@ trace_info (args, from_tty)
on STREAM. Returns length of the instruction, in bytes. */
static int
-print_insn (memaddr, stream)
- CORE_ADDR memaddr;
- struct ui_file *stream;
+print_insn (CORE_ADDR memaddr, struct ui_file *stream)
{
/* If there's no disassembler, something is very wrong. */
if (tm_print_insn == NULL)
@@ -1357,7 +1292,7 @@ print_insn (memaddr, stream)
}
static void
-d10v_eva_prepare_to_trace ()
+d10v_eva_prepare_to_trace (void)
{
if (!tracing)
return;
@@ -1369,7 +1304,7 @@ d10v_eva_prepare_to_trace ()
more useful for display. */
static void
-d10v_eva_get_trace_data ()
+d10v_eva_get_trace_data (void)
{
int count, i, j, oldsize;
int trace_addr, trace_seg, trace_cnt, next_cnt;
@@ -1429,9 +1364,7 @@ d10v_eva_get_trace_data ()
}
static void
-tdisassemble_command (arg, from_tty)
- char *arg;
- int from_tty;
+tdisassemble_command (char *arg, int from_tty)
{
int i, count;
CORE_ADDR low, high;
@@ -1466,8 +1399,7 @@ tdisassemble_command (arg, from_tty)
}
static void
-display_trace (low, high)
- int low, high;
+display_trace (int low, int high)
{
int i, count, trace_show_source, first, suppress;
CORE_ADDR next_address;
@@ -1527,9 +1459,7 @@ display_trace (low, high)
static gdbarch_init_ftype d10v_gdbarch_init;
static struct gdbarch *
-d10v_gdbarch_init (info, arches)
- struct gdbarch_info info;
- struct gdbarch_list *arches;
+d10v_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
{
static LONGEST d10v_call_dummy_words[] =
{0};
@@ -1686,7 +1616,7 @@ extern void (*target_resume_hook) (void);
extern void (*target_wait_loop_hook) (void);
void
-_initialize_d10v_tdep ()
+_initialize_d10v_tdep (void)
{
register_gdbarch_init (bfd_arch_d10v, d10v_gdbarch_init);
diff --git a/gdb/d30v-tdep.c b/gdb/d30v-tdep.c
index cea0350..f20ab0b 100644
--- a/gdb/d30v-tdep.c
+++ b/gdb/d30v-tdep.c
@@ -112,7 +112,7 @@ d30v_frame_chain_valid (chain, fi)
registers. */
void
-d30v_pop_frame ()
+d30v_pop_frame (void)
{
struct frame_info *frame = get_current_frame ();
CORE_ADDR fp;
@@ -159,8 +159,7 @@ d30v_pop_frame ()
}
static int
-check_prologue (op)
- unsigned long op;
+check_prologue (unsigned long op)
{
/* add sp,sp,imm -- observed */
if ((op & OP_MASK_ALL_BUT_IMM) == OP_ADD_SP_IMM)
@@ -234,8 +233,7 @@ check_prologue (op)
}
CORE_ADDR
-d30v_skip_prologue (pc)
- CORE_ADDR pc;
+d30v_skip_prologue (CORE_ADDR pc)
{
unsigned long op[2];
unsigned long opl, opr; /* left / right sub operations */
@@ -320,8 +318,7 @@ static int end_of_stack;
*/
CORE_ADDR
-d30v_frame_chain (frame)
- struct frame_info *frame;
+d30v_frame_chain (struct frame_info *frame)
{
struct frame_saved_regs fsr;
@@ -351,10 +348,8 @@ static int next_addr, uses_frame;
static int frame_size;
static int
-prologue_find_regs (op, fsr, addr)
- unsigned long op;
- struct frame_saved_regs *fsr;
- CORE_ADDR addr;
+prologue_find_regs (unsigned long op, struct frame_saved_regs *fsr,
+ CORE_ADDR addr)
{
int n;
int offset;
@@ -503,9 +498,7 @@ prologue_find_regs (op, fsr, addr)
ways in the stack frame. sp is even more special: the address we
return for it IS the sp for the next frame. */
void
-d30v_frame_find_saved_regs (fi, fsr)
- struct frame_info *fi;
- struct frame_saved_regs *fsr;
+d30v_frame_find_saved_regs (struct frame_info *fi, struct frame_saved_regs *fsr)
{
CORE_ADDR fp, pc;
unsigned long opl, opr;
@@ -556,9 +549,8 @@ d30v_frame_find_saved_regs (fi, fsr)
}
void
-d30v_frame_find_saved_regs_offsets (fi, fsr)
- struct frame_info *fi;
- struct frame_saved_regs *fsr;
+d30v_frame_find_saved_regs_offsets (struct frame_info *fi,
+ struct frame_saved_regs *fsr)
{
CORE_ADDR fp, pc;
unsigned long opl, opr;
@@ -677,9 +669,7 @@ d30v_frame_find_saved_regs_offsets (fi, fsr)
}
void
-d30v_init_extra_frame_info (fromleaf, fi)
- int fromleaf;
- struct frame_info *fi;
+d30v_init_extra_frame_info (int fromleaf, struct frame_info *fi)
{
struct frame_saved_regs dummy;
@@ -709,9 +699,7 @@ d30v_init_extra_frame_info (fromleaf, fi)
}
void
-d30v_init_frame_pc (fromleaf, prev)
- int fromleaf;
- struct frame_info *prev;
+d30v_init_frame_pc (int fromleaf, struct frame_info *prev)
{
/* default value, put here so we can breakpoint on it and
see if the default value is really the right thing to use */
@@ -722,9 +710,7 @@ d30v_init_frame_pc (fromleaf, prev)
static void d30v_print_register (int regnum, int tabular);
static void
-d30v_print_register (regnum, tabular)
- int regnum;
- int tabular;
+d30v_print_register (int regnum, int tabular)
{
if (regnum < A0_REGNUM)
{
@@ -754,7 +740,7 @@ d30v_print_register (regnum, tabular)
}
static void
-d30v_print_flags ()
+d30v_print_flags (void)
{
long psw = read_register (PSW_REGNUM);
printf_filtered ("flags #1");
@@ -778,17 +764,13 @@ d30v_print_flags ()
}
static void
-print_flags_command (args, from_tty)
- char *args;
- int from_tty;
+print_flags_command (char *args, int from_tty)
{
d30v_print_flags ();
}
void
-d30v_do_registers_info (regnum, fpregs)
- int regnum;
- int fpregs;
+d30v_do_registers_info (int regnum, int fpregs)
{
long long num1, num2;
long psw;
@@ -886,14 +868,8 @@ d30v_do_registers_info (regnum, fpregs)
}
CORE_ADDR
-d30v_fix_call_dummy (dummyname, start_sp, fun, nargs, args, type, gcc_p)
- char *dummyname;
- CORE_ADDR start_sp;
- CORE_ADDR fun;
- int nargs;
- value_ptr *args;
- struct type *type;
- int gcc_p;
+d30v_fix_call_dummy (char *dummyname, CORE_ADDR start_sp, CORE_ADDR fun,
+ int nargs, value_ptr *args, struct type *type, int gcc_p)
{
int regnum;
CORE_ADDR sp;
@@ -916,8 +892,7 @@ d30v_fix_call_dummy (dummyname, start_sp, fun, nargs, args, type, gcc_p)
}
static void
-d30v_pop_dummy_frame (fi)
- struct frame_info *fi;
+d30v_pop_dummy_frame (struct frame_info *fi)
{
CORE_ADDR sp = fi->dummy;
int regnum;
@@ -932,12 +907,8 @@ d30v_pop_dummy_frame (fi)
CORE_ADDR
-d30v_push_arguments (nargs, args, sp, struct_return, struct_addr)
- int nargs;
- value_ptr *args;
- CORE_ADDR sp;
- int struct_return;
- CORE_ADDR struct_addr;
+d30v_push_arguments (int nargs, value_ptr *args, CORE_ADDR sp,
+ int struct_return, CORE_ADDR struct_addr)
{
int i, len, index = 0, regnum = 2;
char buffer[4], *contents;
@@ -1035,7 +1006,7 @@ d30v_push_arguments (nargs, args, sp, struct_return, struct_addr)
/* restored. */
CORE_ADDR
-d30v_call_dummy_address ()
+d30v_call_dummy_address (void)
{
CORE_ADDR entry;
struct minimal_symbol *sym;
@@ -1126,9 +1097,7 @@ struct trace_buffer
trace_data;
static void
-trace_command (args, from_tty)
- char *args;
- int from_tty;
+trace_command (char *args, int from_tty)
{
/* Clear the host-side trace buffer, allocating space if needed. */
trace_data.size = 0;
@@ -1143,9 +1112,7 @@ trace_command (args, from_tty)
}
static void
-untrace_command (args, from_tty)
- char *args;
- int from_tty;
+untrace_command (char *args, int from_tty)
{
tracing = 0;
@@ -1153,9 +1120,7 @@ untrace_command (args, from_tty)
}
static void
-trace_info (args, from_tty)
- char *args;
- int from_tty;
+trace_info (char *args, int from_tty)
{
int i;
@@ -1181,9 +1146,7 @@ trace_info (args, from_tty)
on STREAM. Returns length of the instruction, in bytes. */
static int
-print_insn (memaddr, stream)
- CORE_ADDR memaddr;
- struct ui_file *stream;
+print_insn (CORE_ADDR memaddr, struct ui_file *stream)
{
/* If there's no disassembler, something is very wrong. */
if (tm_print_insn == NULL)
@@ -1197,7 +1160,7 @@ print_insn (memaddr, stream)
}
void
-d30v_eva_prepare_to_trace ()
+d30v_eva_prepare_to_trace (void)
{
if (!tracing)
return;
@@ -1209,7 +1172,7 @@ d30v_eva_prepare_to_trace ()
more useful for display. */
void
-d30v_eva_get_trace_data ()
+d30v_eva_get_trace_data (void)
{
int count, i, j, oldsize;
int trace_addr, trace_seg, trace_cnt, next_cnt;
@@ -1269,9 +1232,7 @@ d30v_eva_get_trace_data ()
}
static void
-tdisassemble_command (arg, from_tty)
- char *arg;
- int from_tty;
+tdisassemble_command (char *arg, int from_tty)
{
int i, count;
CORE_ADDR low, high;
@@ -1308,8 +1269,7 @@ tdisassemble_command (arg, from_tty)
}
static void
-display_trace (low, high)
- int low, high;
+display_trace (int low, int high)
{
int i, count, trace_show_source, first, suppress;
CORE_ADDR next_address;
@@ -1369,7 +1329,7 @@ extern void (*target_resume_hook) (void);
extern void (*target_wait_loop_hook) (void);
void
-_initialize_d30v_tdep ()
+_initialize_d30v_tdep (void)
{
tm_print_insn = print_insn_d30v;
diff --git a/gdb/dbug-rom.c b/gdb/dbug-rom.c
index 4d95012..dff1a3b 100644
--- a/gdb/dbug-rom.c
+++ b/gdb/dbug-rom.c
@@ -34,11 +34,7 @@
static void dbug_open (char *args, int from_tty);
static void
-dbug_supply_register (regname, regnamelen, val, vallen)
- char *regname;
- int regnamelen;
- char *val;
- int vallen;
+dbug_supply_register (char *regname, int regnamelen, char *val, int vallen)
{
int regno;
@@ -143,15 +139,13 @@ init_dbug_cmds (void)
} /* init_debug_ops */
static void
-dbug_open (args, from_tty)
- char *args;
- int from_tty;
+dbug_open (char *args, int from_tty)
{
monitor_open (args, &dbug_cmds, from_tty);
}
void
-_initialize_dbug_rom ()
+_initialize_dbug_rom (void)
{
init_dbug_cmds ();
init_monitor_ops (&dbug_ops);
diff --git a/gdb/dbxread.c b/gdb/dbxread.c
index 10e1535..2cb594e 100644
--- a/gdb/dbxread.c
+++ b/gdb/dbxread.c
@@ -319,7 +319,7 @@ static struct partial_symtab *start_psymtab (struct objfile *, char *,
/* Free up old header file tables */
static void
-free_header_files ()
+free_header_files (void)
{
if (this_object_header_files)
{
@@ -332,7 +332,7 @@ free_header_files ()
/* Allocate new header file tables */
static void
-init_header_files ()
+init_header_files (void)
{
n_allocated_this_object_header_files = 10;
this_object_header_files = (int *) xmalloc (10 * sizeof (int));
@@ -342,8 +342,7 @@ init_header_files ()
at the next successive FILENUM. */
static void
-add_this_object_header_file (i)
- int i;
+add_this_object_header_file (int i)
{
if (n_this_object_header_files == n_allocated_this_object_header_files)
{
@@ -362,9 +361,7 @@ add_this_object_header_file (i)
symbol tables for the same header file. */
static void
-add_old_header_file (name, instance)
- char *name;
- int instance;
+add_old_header_file (char *name, int instance)
{
register struct header_file *p = HEADER_FILES (current_objfile);
register int i;
@@ -390,9 +387,7 @@ add_old_header_file (name, instance)
so we record the file when its "begin" is seen and ignore the "end". */
static void
-add_new_header_file (name, instance)
- char *name;
- int instance;
+add_new_header_file (char *name, int instance)
{
register int i;
register struct header_file *hfile;
@@ -435,8 +430,7 @@ add_new_header_file (name, instance)
#if 0
static struct type **
-explicit_lookup_type (real_filenum, index)
- int real_filenum, index;
+explicit_lookup_type (int real_filenum, int index)
{
register struct header_file *f = &HEADER_FILES (current_objfile)[real_filenum];
@@ -453,11 +447,8 @@ explicit_lookup_type (real_filenum, index)
#endif
static void
-record_minimal_symbol (name, address, type, objfile)
- char *name;
- CORE_ADDR address;
- int type;
- struct objfile *objfile;
+record_minimal_symbol (char *name, CORE_ADDR address, int type,
+ struct objfile *objfile)
{
enum minimal_symbol_type ms_type;
int section;
@@ -626,8 +617,7 @@ dbx_symfile_read (objfile, mainline)
file, e.g. a shared library). */
static void
-dbx_new_init (ignore)
- struct objfile *ignore;
+dbx_new_init (struct objfile *ignore)
{
stabsread_new_init ();
buildsym_new_init ();
@@ -651,8 +641,7 @@ dbx_new_init (ignore)
#define DBX_STRINGTAB_SIZE_SIZE sizeof(long) /* FIXME */
static void
-dbx_symfile_init (objfile)
- struct objfile *objfile;
+dbx_symfile_init (struct objfile *objfile)
{
int val;
bfd *sym_bfd = objfile->obfd;
@@ -769,8 +758,7 @@ dbx_symfile_init (objfile)
objfile struct from the global list of known objfiles. */
static void
-dbx_symfile_finish (objfile)
- struct objfile *objfile;
+dbx_symfile_finish (struct objfile *objfile)
{
if (objfile->sym_stab_info != NULL)
{
@@ -857,8 +845,7 @@ process_later (sym, p, f)
/* Call deferred funtions in CONT_LIST. */
static void
-process_now (objfile)
- struct objfile *objfile;
+process_now (struct objfile *objfile)
{
int i;
int save_symbuf_idx;
@@ -927,8 +914,7 @@ static unsigned int symbuf_read;
(into the string table) but this does no harm. */
static void
-fill_symbuf (sym_bfd)
- bfd *sym_bfd;
+fill_symbuf (bfd *sym_bfd)
{
unsigned int count;
int nbytes;
@@ -991,8 +977,7 @@ fill_symbuf (sym_bfd)
call this function to get the continuation. */
static char *
-dbx_next_symbol_text (objfile)
- struct objfile *objfile;
+dbx_next_symbol_text (struct objfile *objfile)
{
struct internal_nlist nlist;
@@ -1012,9 +997,7 @@ dbx_next_symbol_text (objfile)
allocated. */
static void
-init_bincl_list (number, objfile)
- int number;
- struct objfile *objfile;
+init_bincl_list (int number, struct objfile *objfile)
{
bincls_allocated = number;
next_bincl = bincl_list = (struct header_file_location *)
@@ -1024,10 +1007,7 @@ init_bincl_list (number, objfile)
/* Add a bincl to the list. */
static void
-add_bincl_to_list (pst, name, instance)
- struct partial_symtab *pst;
- char *name;
- int instance;
+add_bincl_to_list (struct partial_symtab *pst, char *name, int instance)
{
if (next_bincl >= bincl_list + bincls_allocated)
{
@@ -1048,9 +1028,7 @@ add_bincl_to_list (pst, name, instance)
with that header_file_location. */
static struct partial_symtab *
-find_corresponding_bincl_psymtab (name, instance)
- char *name;
- int instance;
+find_corresponding_bincl_psymtab (char *name, int instance)
{
struct header_file_location *bincl;
@@ -1066,8 +1044,7 @@ find_corresponding_bincl_psymtab (name, instance)
/* Free the storage allocated for the bincl list. */
static void
-free_bincl_list (objfile)
- struct objfile *objfile;
+free_bincl_list (struct objfile *objfile)
{
mfree (objfile->md, (PTR) bincl_list);
bincls_allocated = 0;
@@ -1089,8 +1066,7 @@ make_cleanup_free_bincl_list (struct objfile *objfile)
add them to the minimal symbol table. */
static void
-read_dbx_dynamic_symtab (objfile)
- struct objfile *objfile;
+read_dbx_dynamic_symtab (struct objfile *objfile)
{
bfd *abfd = objfile->obfd;
struct cleanup *back_to;
@@ -1232,8 +1208,7 @@ read_dbx_dynamic_symtab (objfile)
debugging information is available. */
static void
-read_dbx_symtab (objfile)
- struct objfile *objfile;
+read_dbx_symtab (struct objfile *objfile)
{
register struct external_nlist *bufp = 0; /* =0 avoids gcc -Wall glitch */
struct internal_nlist nlist;
@@ -1395,13 +1370,9 @@ read_dbx_symtab (objfile)
static struct partial_symtab *
-start_psymtab (objfile, filename, textlow, ldsymoff, global_syms, static_syms)
- struct objfile *objfile;
- char *filename;
- CORE_ADDR textlow;
- int ldsymoff;
- struct partial_symbol **global_syms;
- struct partial_symbol **static_syms;
+start_psymtab (struct objfile *objfile, char *filename, CORE_ADDR textlow,
+ int ldsymoff, struct partial_symbol **global_syms,
+ struct partial_symbol **static_syms)
{
struct partial_symtab *result =
start_psymtab_common (objfile, objfile->section_offsets,
@@ -1434,16 +1405,10 @@ start_psymtab (objfile, filename, textlow, ldsymoff, global_syms, static_syms)
FIXME: List variables and peculiarities of same. */
struct partial_symtab *
-end_psymtab (pst, include_list, num_includes, capping_symbol_offset,
- capping_text, dependency_list, number_dependencies, textlow_not_set)
- struct partial_symtab *pst;
- char **include_list;
- int num_includes;
- int capping_symbol_offset;
- CORE_ADDR capping_text;
- struct partial_symtab **dependency_list;
- int number_dependencies;
- int textlow_not_set;
+end_psymtab (struct partial_symtab *pst, char **include_list, int num_includes,
+ int capping_symbol_offset, CORE_ADDR capping_text,
+ struct partial_symtab **dependency_list, int number_dependencies,
+ int textlow_not_set)
{
int i;
struct objfile *objfile = pst->objfile;
@@ -1607,8 +1572,7 @@ end_psymtab (pst, include_list, num_includes, capping_symbol_offset,
}
static void
-dbx_psymtab_to_symtab_1 (pst)
- struct partial_symtab *pst;
+dbx_psymtab_to_symtab_1 (struct partial_symtab *pst)
{
struct cleanup *old_chain;
int i;
@@ -1665,8 +1629,7 @@ dbx_psymtab_to_symtab_1 (pst)
Be verbose about it if the user wants that. */
static void
-dbx_psymtab_to_symtab (pst)
- struct partial_symtab *pst;
+dbx_psymtab_to_symtab (struct partial_symtab *pst)
{
bfd *sym_bfd;
@@ -1709,8 +1672,7 @@ dbx_psymtab_to_symtab (pst)
/* Read in a defined section of a specific object file's symbols. */
static void
-read_ofile_symtab (pst)
- struct partial_symtab *pst;
+read_ofile_symtab (struct partial_symtab *pst)
{
register char *namestring;
register struct external_nlist *bufp;
@@ -1903,12 +1865,9 @@ read_ofile_symtab (pst)
It is used in end_symtab. */
void
-process_one_symbol (type, desc, valu, name, section_offsets, objfile)
- int type, desc;
- CORE_ADDR valu;
- char *name;
- struct section_offsets *section_offsets;
- struct objfile *objfile;
+process_one_symbol (int type, int desc, CORE_ADDR valu, char *name,
+ struct section_offsets *section_offsets,
+ struct objfile *objfile)
{
#ifdef SUN_FIXED_LBRAC_BUG
/* If SUN_FIXED_LBRAC_BUG is defined, then it tells us whether we need
@@ -2491,16 +2450,10 @@ process_one_symbol (type, desc, valu, name, section_offsets, objfile)
adjusted for coff details. */
void
-coffstab_build_psymtabs (objfile, mainline,
- textaddr, textsize, stabsects,
- stabstroffset, stabstrsize)
- struct objfile *objfile;
- int mainline;
- CORE_ADDR textaddr;
- unsigned int textsize;
- struct stab_section_list *stabsects;
- file_ptr stabstroffset;
- unsigned int stabstrsize;
+coffstab_build_psymtabs (struct objfile *objfile, int mainline,
+ CORE_ADDR textaddr, unsigned int textsize,
+ struct stab_section_list *stabsects,
+ file_ptr stabstroffset, unsigned int stabstrsize)
{
int val;
bfd *sym_bfd = objfile->obfd;
@@ -2592,15 +2545,9 @@ coffstab_build_psymtabs (objfile, mainline,
adjusted for elf details. */
void
-elfstab_build_psymtabs (objfile, mainline,
- staboffset, stabsize,
- stabstroffset, stabstrsize)
- struct objfile *objfile;
- int mainline;
- file_ptr staboffset;
- unsigned int stabsize;
- file_ptr stabstroffset;
- unsigned int stabstrsize;
+elfstab_build_psymtabs (struct objfile *objfile, int mainline,
+ file_ptr staboffset, unsigned int stabsize,
+ file_ptr stabstroffset, unsigned int stabstrsize)
{
int val;
bfd *sym_bfd = objfile->obfd;
@@ -2668,13 +2615,8 @@ elfstab_build_psymtabs (objfile, mainline,
This routine is mostly copied from dbx_symfile_init and dbx_symfile_read. */
void
-stabsect_build_psymtabs (objfile, mainline, stab_name,
- stabstr_name, text_name)
- struct objfile *objfile;
- int mainline;
- char *stab_name;
- char *stabstr_name;
- char *text_name;
+stabsect_build_psymtabs (struct objfile *objfile, int mainline, char *stab_name,
+ char *stabstr_name, char *text_name)
{
int val;
bfd *sym_bfd = objfile->obfd;
@@ -2750,7 +2692,7 @@ static struct sym_fns aout_sym_fns =
};
void
-_initialize_dbxread ()
+_initialize_dbxread (void)
{
add_symtab_fns (&aout_sym_fns);
}
diff --git a/gdb/dcache.c b/gdb/dcache.c
index 1c52cc3..7e5a755 100644
--- a/gdb/dcache.c
+++ b/gdb/dcache.c
@@ -173,8 +173,7 @@ DCACHE *last_cache; /* Used by info dcache */
/* Free all the data cache blocks, thus discarding all cached data. */
void
-dcache_flush (dcache)
- DCACHE *dcache;
+dcache_flush (DCACHE *dcache)
{
int i;
dcache->valid_head = 0;
@@ -204,9 +203,7 @@ dcache_flush (dcache)
containing it. */
static struct dcache_block *
-dcache_hit (dcache, addr)
- DCACHE *dcache;
- CORE_ADDR addr;
+dcache_hit (DCACHE *dcache, CORE_ADDR addr)
{
register struct dcache_block *db;
@@ -230,9 +227,7 @@ dcache_hit (dcache, addr)
be written is. */
static int
-dcache_write_line (dcache, db)
- DCACHE *dcache;
- register struct dcache_block *db;
+dcache_write_line (DCACHE *dcache, register struct dcache_block *db)
{
int s;
int e;
@@ -280,8 +275,7 @@ dcache_write_line (dcache, db)
list...). */
static struct dcache_block *
-dcache_alloc (dcache)
- DCACHE *dcache;
+dcache_alloc (DCACHE *dcache)
{
register struct dcache_block *db;
@@ -320,10 +314,7 @@ dcache_alloc (dcache)
Returns 0 on error. */
static int
-dcache_peek_byte (dcache, addr, ptr)
- DCACHE *dcache;
- CORE_ADDR addr;
- char *ptr;
+dcache_peek_byte (DCACHE *dcache, CORE_ADDR addr, char *ptr)
{
register struct dcache_block *db = dcache_hit (dcache, addr);
int ok = 1;
@@ -361,8 +352,7 @@ dcache_peek_byte (dcache, addr, ptr)
/* Writeback any dirty lines to the remote. */
static int
-dcache_writeback (dcache)
- DCACHE *dcache;
+dcache_writeback (DCACHE *dcache)
{
struct dcache_block *db;
@@ -383,10 +373,7 @@ dcache_writeback (dcache)
*/
static int
-dcache_poke_byte (dcache, addr, ptr)
- DCACHE *dcache;
- CORE_ADDR addr;
- char *ptr;
+dcache_poke_byte (DCACHE *dcache, CORE_ADDR addr, char *ptr)
{
register struct dcache_block *db = dcache_hit (dcache, addr);
@@ -405,9 +392,7 @@ dcache_poke_byte (dcache, addr, ptr)
/* Initialize the data cache. */
DCACHE *
-dcache_init (reading, writing)
- memxferfunc reading;
- memxferfunc writing;
+dcache_init (memxferfunc reading, memxferfunc writing)
{
int csize = sizeof (struct dcache_block) * DCACHE_SIZE;
DCACHE *dcache;
@@ -434,12 +419,8 @@ dcache_init (reading, writing)
This routine is indended to be called by remote_xfer_ functions. */
int
-dcache_xfer_memory (dcache, memaddr, myaddr, len, should_write)
- DCACHE *dcache;
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
- int should_write;
+dcache_xfer_memory (DCACHE *dcache, CORE_ADDR memaddr, char *myaddr, int len,
+ int should_write)
{
int i;
@@ -470,9 +451,7 @@ dcache_xfer_memory (dcache, memaddr, myaddr, len, should_write)
}
static void
-dcache_info (exp, tty)
- char *exp;
- int tty;
+dcache_info (char *exp, int tty)
{
struct dcache_block *p;
@@ -510,7 +489,7 @@ set_dcache_state (int what)
}
void
-_initialize_dcache ()
+_initialize_dcache (void)
{
add_show_from_set
(add_set_cmd ("remotecache", class_support, var_boolean,
diff --git a/gdb/delta68-nat.c b/gdb/delta68-nat.c
index f54f1b8..bf81b84 100644
--- a/gdb/delta68-nat.c
+++ b/gdb/delta68-nat.c
@@ -34,9 +34,7 @@
BLOCKEND is the address of the end of the user structure. */
CORE_ADDR
-register_addr (regno, blockend)
- int regno;
- CORE_ADDR blockend;
+register_addr (int regno, CORE_ADDR blockend)
{
static int sysv68reg[] =
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, -1, 15, 16};
@@ -64,7 +62,7 @@ CORE_ADDR kernel_u_addr;
/* Read the value of the u area from the kernel. */
void
-_initialize_delta68_nat ()
+_initialize_delta68_nat (void)
{
struct nlist nl[2];
@@ -79,14 +77,14 @@ _initialize_delta68_nat ()
}
}
-clear_insn_cache ()
+clear_insn_cache (void)
{
#ifdef MCT_TEXT /* in sys/signal.h on sysV68 R3V7.1 */
memctl (0, 4096, MCT_TEXT);
#endif
}
-kernel_u_size ()
+kernel_u_size (void)
{
return sizeof (struct user);
}
diff --git a/gdb/demangle.c b/gdb/demangle.c
index b0fd138..b4a76a1 100644
--- a/gdb/demangle.c
+++ b/gdb/demangle.c
@@ -120,10 +120,7 @@ static void set_demangling_command (char *, int, struct cmd_list_element *);
a malloc'd string, even if it is a null-string. */
static void
-set_demangling_command (ignore, from_tty, c)
- char *ignore;
- int from_tty;
- struct cmd_list_element *c;
+set_demangling_command (char *ignore, int from_tty, struct cmd_list_element *c)
{
const struct demangler *dem;
@@ -184,8 +181,7 @@ set_demangling_command (ignore, from_tty, c)
/* Fake a "set demangle-style" command. */
void
-set_demangling_style (style)
- char *style;
+set_demangling_style (char *style)
{
if (current_demangling_style_string != NULL)
{
@@ -215,14 +211,13 @@ static char cplus_markers[] =
{CPLUS_MARKER, '.', '$', '\0'};
int
-is_cplus_marker (c)
- int c;
+is_cplus_marker (int c)
{
return c && strchr (cplus_markers, c) != NULL;
}
void
-_initialize_demangler ()
+_initialize_demangler (void)
{
struct cmd_list_element *set, *show;
diff --git a/gdb/dink32-rom.c b/gdb/dink32-rom.c
index 1d6f4d0..059a5b6 100644
--- a/gdb/dink32-rom.c
+++ b/gdb/dink32-rom.c
@@ -30,11 +30,7 @@
static void dink32_open (char *args, int from_tty);
static void
-dink32_supply_register (regname, regnamelen, val, vallen)
- char *regname;
- int regnamelen;
- char *val;
- int vallen;
+dink32_supply_register (char *regname, int regnamelen, char *val, int vallen)
{
int regno = 0;
@@ -100,10 +96,7 @@ dink32_supply_register (regname, regnamelen, val, vallen)
}
static void
-dink32_load (monops, filename, from_tty)
- struct monitor_ops *monops;
- char *filename;
- int from_tty;
+dink32_load (struct monitor_ops *monops, char *filename, int from_tty)
{
extern int inferior_pid;
@@ -145,15 +138,13 @@ static char *dink32_inits[] =
static struct monitor_ops dink32_cmds;
static void
-dink32_open (args, from_tty)
- char *args;
- int from_tty;
+dink32_open (char *args, int from_tty)
{
monitor_open (args, &dink32_cmds, from_tty);
}
void
-_initialize_dink32_rom ()
+_initialize_dink32_rom (void)
{
dink32_cmds.flags = MO_HEX_PREFIX | MO_GETMEM_NEEDS_RANGE | MO_FILL_USES_ADDR | MO_HANDLE_NL | MO_32_REGS_PAIRED | MO_SETREG_INTERACTIVE | MO_SETMEM_INTERACTIVE | MO_GETMEM_16_BOUNDARY | MO_CLR_BREAK_1_BASED | MO_SREC_ACK | MO_SREC_ACK_ROTATE;
dink32_cmds.init = dink32_inits;
diff --git a/gdb/dpx2-nat.c b/gdb/dpx2-nat.c
index d039a13..37275fe 100644
--- a/gdb/dpx2-nat.c
+++ b/gdb/dpx2-nat.c
@@ -47,9 +47,7 @@ static int regmap[] =
*/
int
-dpx2_register_u_addr (blockend, regnum)
- int blockend;
- int regnum;
+dpx2_register_u_addr (int blockend, int regnum)
{
if (regnum < FP0_REGNUM)
return (blockend + 4 * regmap[regnum]);
@@ -73,7 +71,7 @@ dpx2_register_u_addr (blockend, regnum)
CORE_ADDR kernel_u_addr;
void
-_initialize_dpx2_nat ()
+_initialize_dpx2_nat (void)
{
struct utsname uts;
diff --git a/gdb/dsrec.c b/gdb/dsrec.c
index 31b8fc2..8f58916 100644
--- a/gdb/dsrec.c
+++ b/gdb/dsrec.c
@@ -218,14 +218,8 @@ load_srec (desc, file, load_offset, maxrecsize, flags, hashmark, waitack)
*/
static int
-make_srec (srec, targ_addr, abfd, sect, sectoff, maxrecsize, flags)
- char *srec;
- CORE_ADDR targ_addr;
- bfd *abfd;
- asection *sect;
- int sectoff;
- int *maxrecsize;
- int flags;
+make_srec (char *srec, CORE_ADDR targ_addr, bfd *abfd, asection *sect,
+ int sectoff, int *maxrecsize, int flags)
{
unsigned char checksum;
int tmp;
diff --git a/gdb/dstread.c b/gdb/dstread.c
index a5f7f35..b6f31ac 100644
--- a/gdb/dstread.c
+++ b/gdb/dstread.c
@@ -78,9 +78,7 @@ static void dst_record_line (int, CORE_ADDR);
/* FIXME: Use record_line instead. */
static void
-dst_record_line (line, pc)
- int line;
- CORE_ADDR pc;
+dst_record_line (int line, CORE_ADDR pc)
{
struct linetable_entry *e;
/* Make sure line vector is big enough. */
@@ -104,7 +102,7 @@ dst_record_line (line, pc)
/* FIXME: use start_symtab, like coffread.c now does. */
static void
-dst_start_symtab ()
+dst_start_symtab (void)
{
/* Initialize the source file line number information for this file. */
@@ -124,10 +122,7 @@ dst_start_symtab ()
text address for the file, and SIZE is the number of bytes of text. */
static void
-complete_symtab (name, start_addr, size)
- char *name;
- CORE_ADDR start_addr;
- unsigned int size;
+complete_symtab (char *name, CORE_ADDR start_addr, unsigned int size)
{
last_source_file = savestring (name, strlen (name));
cur_src_start_addr = start_addr;
@@ -148,8 +143,7 @@ complete_symtab (name, start_addr, size)
/* FIXME: Use end_symtab, like coffread.c now does. */
static void
-dst_end_symtab (objfile)
- struct objfile *objfile;
+dst_end_symtab (struct objfile *objfile)
{
register struct symtab *symtab;
register struct blockvector *blockvector;
@@ -194,8 +188,7 @@ dst_end_symtab (objfile)
The ultimate result is a new symtab (or, FIXME, eventually a psymtab). */
static void
-dst_symfile_init (objfile)
- struct objfile *objfile;
+dst_symfile_init (struct objfile *objfile)
{
asection *section;
bfd *abfd = objfile->obfd;
@@ -210,10 +203,7 @@ dst_symfile_init (objfile)
/* ARGSUSED */
static void
-find_dst_sections (abfd, asect, vpinfo)
- bfd *abfd;
- sec_ptr asect;
- PTR vpinfo;
+find_dst_sections (bfd *abfd, sec_ptr asect, PTR vpinfo)
{
int size, count;
long base;
@@ -252,9 +242,7 @@ static bfd *symfile_bfd;
/* ARGSUSED */
static void
-dst_symfile_read (objfile, mainline)
- struct objfile *objfile;
- int mainline;
+dst_symfile_read (struct objfile *objfile, int mainline)
{
bfd *abfd = objfile->obfd;
char *name = bfd_get_filename (abfd);
@@ -301,8 +289,7 @@ dst_symfile_read (objfile, mainline)
}
static void
-dst_new_init (ignore)
- struct objfile *ignore;
+dst_new_init (struct objfile *ignore)
{
/* Nothin' to do */
}
@@ -313,8 +300,7 @@ dst_new_init (ignore)
objfile struct from the global list of known objfiles. */
static void
-dst_symfile_finish (objfile)
- struct objfile *objfile;
+dst_symfile_finish (struct objfile *objfile)
{
/* Nothing to do */
}
@@ -327,9 +313,7 @@ dst_symfile_finish (objfile)
* this is what was really intended.
*/
static int
-get_dst_line (buffer, pc)
- signed char **buffer;
- long *pc;
+get_dst_line (signed char **buffer, long *pc)
{
static last_pc = 0;
static long last_line = 0;
@@ -433,18 +417,14 @@ get_dst_line (buffer, pc)
}
static void
-enter_all_lines (buffer, address)
- char *buffer;
- long address;
+enter_all_lines (char *buffer, long address)
{
if (buffer)
while (get_dst_line (&buffer, &address));
}
static int
-get_dst_entry (buffer, ret_entry)
- char *buffer;
- dst_rec_ptr_t *ret_entry;
+get_dst_entry (char *buffer, dst_rec_ptr_t *ret_entry)
{
int size;
dst_rec_ptr_t entry;
@@ -666,10 +646,7 @@ get_dst_entry (buffer, ret_entry)
}
static int
-next_dst_entry (buffer, entry, table)
- char **buffer;
- dst_rec_ptr_t *entry;
- dst_sec *table;
+next_dst_entry (char **buffer, dst_rec_ptr_t *entry, dst_sec *table)
{
if (*buffer - table->buffer >= table->size)
{
@@ -687,8 +664,7 @@ next_dst_entry (buffer, entry, table)
static dst_rec_ptr_t section_table = NULL;
char *
-get_sec_ref (ref)
- dst_sect_ref_t *ref;
+get_sec_ref (dst_sect_ref_t *ref)
{
dst_sec *section = NULL;
long offset;
@@ -720,8 +696,7 @@ dst_get_addr (int section, long offset)
}
CORE_ADDR
-dst_sym_addr (ref)
- dst_sect_ref_t *ref;
+dst_sym_addr (dst_sect_ref_t *ref)
{
if (!section_table || !ref->sect_index)
return 0;
@@ -730,8 +705,7 @@ dst_sym_addr (ref)
}
static struct type *
-create_new_type (objfile)
- struct objfile *objfile;
+create_new_type (struct objfile *objfile)
{
struct type *type;
@@ -742,9 +716,7 @@ create_new_type (objfile)
}
static struct symbol *
-create_new_symbol (objfile, name)
- struct objfile *objfile;
- char *name;
+create_new_symbol (struct objfile *objfile, char *name)
{
struct symbol *sym = (struct symbol *)
obstack_alloc (&objfile->symbol_obstack, sizeof (struct symbol));
@@ -761,10 +733,8 @@ create_new_symbol (objfile, name)
static struct type *decode_dst_type (struct objfile *, dst_rec_ptr_t);
static struct type *
-decode_type_desc (objfile, type_desc, base)
- struct objfile *objfile;
- dst_type_t *type_desc;
- dst_rec_ptr_t base;
+decode_type_desc (struct objfile *objfile, dst_type_t *type_desc,
+ dst_rec_ptr_t base)
{
struct type *type;
dst_rec_ptr_t entry;
@@ -862,8 +832,7 @@ struct structure_list
static struct structure_list *struct_list = NULL;
static struct type *
-find_dst_structure (name)
- char *name;
+find_dst_structure (char *name)
{
struct structure_list *element;
@@ -875,11 +844,8 @@ find_dst_structure (name)
static struct type *
-decode_dst_structure (objfile, entry, code, version)
- struct objfile *objfile;
- dst_rec_ptr_t entry;
- int code;
- int version;
+decode_dst_structure (struct objfile *objfile, dst_rec_ptr_t entry, int code,
+ int version)
{
struct type *type, *child_type;
char *struct_name;
@@ -981,9 +947,7 @@ decode_dst_structure (objfile, entry, code, version)
}
static struct type *
-decode_dst_type (objfile, entry)
- struct objfile *objfile;
- dst_rec_ptr_t entry;
+decode_dst_type (struct objfile *objfile, dst_rec_ptr_t entry)
{
struct type *child_type, *type, *range_type, *index_type;
@@ -1047,9 +1011,7 @@ static struct symbol_list *dst_global_symbols = NULL;
static int total_globals = 0;
static void
-decode_dst_locstring (locstr, sym)
- char *locstr;
- struct symbol *sym;
+decode_dst_locstring (char *locstr, struct symbol *sym)
{
dst_loc_entry_t *entry, *next_entry;
CORE_ADDR temp;
@@ -1166,11 +1128,8 @@ decode_dst_locstring (locstr, sym)
}
static struct symbol_list *
-process_dst_symbols (objfile, entry, name, nsyms_ret)
- struct objfile *objfile;
- dst_rec_ptr_t entry;
- char *name;
- int *nsyms_ret;
+process_dst_symbols (struct objfile *objfile, dst_rec_ptr_t entry, char *name,
+ int *nsyms_ret)
{
struct symbol_list *list = NULL, *element;
struct symbol *sym;
@@ -1308,11 +1267,8 @@ process_dst_symbols (objfile, entry, name, nsyms_ret)
static struct symbol *
-process_dst_function (objfile, entry, name, address)
- struct objfile *objfile;
- dst_rec_ptr_t entry;
- char *name;
- CORE_ADDR address;
+process_dst_function (struct objfile *objfile, dst_rec_ptr_t entry, char *name,
+ CORE_ADDR address)
{
struct symbol *sym;
struct type *type, *ftype;
@@ -1369,9 +1325,7 @@ process_dst_function (objfile, entry, name, address)
}
static struct block *
-process_dst_block (objfile, entry)
- struct objfile *objfile;
- dst_rec_ptr_t entry;
+process_dst_block (struct objfile *objfile, dst_rec_ptr_t entry)
{
struct block *block;
struct symbol *function = NULL;
@@ -1498,8 +1452,7 @@ process_dst_block (objfile, entry)
static void
-read_dst_symtab (objfile)
- struct objfile *objfile;
+read_dst_symtab (struct objfile *objfile)
{
char *buffer;
dst_rec_ptr_t entry, file_table, root_block;
@@ -1595,9 +1548,7 @@ static unsigned long linetab_size;
external (unswapped) format in memory; we'll swap them as we enter
them into GDB's data structures. */
static int
-init_one_section (chan, secinfo)
- int chan;
- dst_sec *secinfo;
+init_one_section (int chan, dst_sec *secinfo)
{
if (secinfo->size == 0
|| lseek (chan, secinfo->position, 0) == -1
@@ -1609,8 +1560,7 @@ init_one_section (chan, secinfo)
}
static int
-init_dst_sections (chan)
- int chan;
+init_dst_sections (int chan)
{
if (!init_one_section (chan, &blocks_info) ||
@@ -1652,7 +1602,7 @@ static struct sym_fns dst_sym_fns =
};
void
-_initialize_dstread ()
+_initialize_dstread (void)
{
add_symtab_fns (&dst_sym_fns);
}
diff --git a/gdb/dve3900-rom.c b/gdb/dve3900-rom.c
index 4cd035f..34707bb 100644
--- a/gdb/dve3900-rom.c
+++ b/gdb/dve3900-rom.c
@@ -373,11 +373,7 @@ static struct bit_field cause_fields[] =
the hex value before passing it to monitor_supply_register. */
static void
-r3900_supply_register (regname, regnamelen, val, vallen)
- char *regname;
- int regnamelen;
- char *val;
- int vallen;
+r3900_supply_register (char *regname, int regnamelen, char *val, int vallen)
{
int regno = -1;
int i;
@@ -416,7 +412,7 @@ r3900_supply_register (regname, regnamelen, val, vallen)
you modify it. */
static void
-fetch_bad_vaddr ()
+fetch_bad_vaddr (void)
{
char buf[20];
@@ -431,8 +427,7 @@ fetch_bad_vaddr ()
combined binary value. */
static unsigned long
-fetch_fields (bf)
- struct bit_field *bf;
+fetch_fields (struct bit_field *bf)
{
char buf[20];
unsigned long val = 0;
@@ -456,9 +451,7 @@ fetch_fields (bf)
static void
-fetch_bitmapped_register (regno, bf)
- int regno;
- struct bit_field *bf;
+fetch_bitmapped_register (int regno, struct bit_field *bf)
{
unsigned long val;
unsigned char regbuf[MAX_REGISTER_RAW_SIZE];
@@ -482,8 +475,7 @@ fetch_bitmapped_register (regno, bf)
a very unusual fashion by the monitor, and must be handled specially. */
static void
-r3900_fetch_registers (regno)
- int regno;
+r3900_fetch_registers (int regno)
{
switch (regno)
{
@@ -505,9 +497,7 @@ r3900_fetch_registers (regno)
/* Write the new value of the bitmapped register to the monitor. */
static void
-store_bitmapped_register (regno, bf)
- int regno;
- struct bit_field *bf;
+store_bitmapped_register (int regno, struct bit_field *bf)
{
unsigned long oldval, newval;
@@ -537,8 +527,7 @@ store_bitmapped_register (regno, bf)
static void
-r3900_store_registers (regno)
- int regno;
+r3900_store_registers (int regno)
{
switch (regno)
{
@@ -557,9 +546,7 @@ r3900_store_registers (regno)
/* Write a 4-byte integer to the buffer in big-endian order. */
static void
-write_long (buf, n)
- char *buf;
- long n;
+write_long (char *buf, long n)
{
buf[0] = (n >> 24) & 0xff;
buf[1] = (n >> 16) & 0xff;
@@ -571,9 +558,7 @@ write_long (buf, n)
/* Write a 4-byte integer to the buffer in little-endian order. */
static void
-write_long_le (buf, n)
- char *buf;
- long n;
+write_long_le (char *buf, long n)
{
buf[0] = n & 0xff;
buf[1] = (n >> 8) & 0xff;
@@ -587,8 +572,7 @@ write_long_le (buf, n)
character in hexadecimal; otherwise, print it in ASCII. */
static int
-debug_readchar (hex)
- int hex;
+debug_readchar (int hex)
{
char buf[10];
int c = monitor_readchar ();
@@ -614,9 +598,7 @@ debug_readchar (hex)
print the sent buffer in hex. */
static void
-debug_write (buf, buflen)
- unsigned char *buf;
- int buflen;
+debug_write (unsigned char *buf, int buflen)
{
char s[10];
@@ -649,7 +631,7 @@ debug_write (buf, buflen)
*/
static void
-ignore_packet ()
+ignore_packet (void)
{
int c;
int len;
@@ -688,10 +670,7 @@ ignore_packet ()
*/
static void
-send_packet (type, buf, buflen, seq)
- char type;
- unsigned char *buf;
- int buflen, seq;
+send_packet (char type, unsigned char *buf, int buflen, int seq)
{
unsigned char hdr[4];
int len = buflen;
@@ -764,9 +743,7 @@ send_packet (type, buf, buflen, seq)
*/
static void
-process_read_request (buf, buflen)
- unsigned char *buf;
- int buflen;
+process_read_request (unsigned char *buf, int buflen)
{
unsigned char len[4];
int i, chunk;
@@ -802,10 +779,7 @@ process_read_request (buf, buflen)
/* Count loadable sections (helper function for r3900_load). */
static void
-count_section (abfd, s, section_count)
- bfd *abfd;
- asection *s;
- unsigned int *section_count;
+count_section (bfd *abfd, asection *s, unsigned int *section_count)
{
if (s->flags & SEC_LOAD && bfd_section_size (abfd, s) != 0)
(*section_count)++;
@@ -827,10 +801,7 @@ count_section (abfd, s, section_count)
*/
static void
-load_section (abfd, s, data_count)
- bfd *abfd;
- asection *s;
- unsigned int *data_count;
+load_section (bfd *abfd, asection *s, unsigned int *data_count)
{
if (s->flags & SEC_LOAD)
{
@@ -886,9 +857,7 @@ load_section (abfd, s, data_count)
*/
static void
-r3900_load (filename, from_tty)
- char *filename;
- int from_tty;
+r3900_load (char *filename, int from_tty)
{
bfd *abfd;
unsigned int data_count = 0;
@@ -990,9 +959,7 @@ static struct target_ops r3900_ops;
static struct monitor_ops r3900_cmds;
static void
-r3900_open (args, from_tty)
- char *args;
- int from_tty;
+r3900_open (char *args, int from_tty)
{
char buf[64];
int i;
@@ -1023,7 +990,7 @@ r3900_open (args, from_tty)
}
void
-_initialize_r3900_rom ()
+_initialize_r3900_rom (void)
{
r3900_cmds.flags = MO_NO_ECHO_ON_OPEN |
MO_ADDR_BITS_REMOVE |
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 2f9b032..18cb65e 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -776,8 +776,7 @@ static struct die_info *dwarf_alloc_die (void);
information and return true if we have enough to do something. */
int
-dwarf2_has_info (abfd)
- bfd *abfd;
+dwarf2_has_info (bfd *abfd)
{
dwarf_info_offset = dwarf_abbrev_offset = dwarf_line_offset = 0;
bfd_map_over_sections (abfd, dwarf2_locate_sections, NULL);
@@ -796,10 +795,7 @@ dwarf2_has_info (abfd)
in. */
static void
-dwarf2_locate_sections (ignore_abfd, sectp, ignore_ptr)
- bfd *ignore_abfd;
- asection *sectp;
- PTR ignore_ptr;
+dwarf2_locate_sections (bfd *ignore_abfd, asection *sectp, PTR ignore_ptr)
{
if (STREQ (sectp->name, INFO_SECTION))
{
@@ -846,9 +842,7 @@ dwarf2_locate_sections (ignore_abfd, sectp, ignore_ptr)
/* Build a partial symbol table. */
void
-dwarf2_build_psymtabs (objfile, mainline)
- struct objfile *objfile;
- int mainline;
+dwarf2_build_psymtabs (struct objfile *objfile, int mainline)
{
/* We definitely need the .debug_info and .debug_abbrev sections */
@@ -891,9 +885,7 @@ dwarf2_build_psymtabs (objfile, mainline)
.debug_pubnames and .debug_aranges sections. */
static void
-dwarf2_build_psymtabs_easy (objfile, mainline)
- struct objfile *objfile;
- int mainline;
+dwarf2_build_psymtabs_easy (struct objfile *objfile, int mainline)
{
bfd *abfd = objfile->obfd;
char *aranges_buffer, *pubnames_buffer;
@@ -950,9 +942,7 @@ read_comp_unit_head (struct comp_unit_head *cu_header,
.debug_info and .debug_abbrev sections. */
static void
-dwarf2_build_psymtabs_hard (objfile, mainline)
- struct objfile *objfile;
- int mainline;
+dwarf2_build_psymtabs_hard (struct objfile *objfile, int mainline)
{
/* Instead of reading this into a big buffer, we should probably use
mmap() on architectures that support it. (FIXME) */
@@ -1278,8 +1268,7 @@ add_partial_symbol (struct partial_die_info *pdi, struct objfile *objfile,
/* Expand this partial symbol table into a full symbol table. */
static void
-dwarf2_psymtab_to_symtab (pst)
- struct partial_symtab *pst;
+dwarf2_psymtab_to_symtab (struct partial_symtab *pst)
{
/* FIXME: This is barely more than a stub. */
if (pst != NULL)
@@ -1306,8 +1295,7 @@ dwarf2_psymtab_to_symtab (pst)
}
static void
-psymtab_to_symtab_1 (pst)
- struct partial_symtab *pst;
+psymtab_to_symtab_1 (struct partial_symtab *pst)
{
struct objfile *objfile = pst->objfile;
bfd *abfd = objfile->obfd;
@@ -1684,11 +1672,8 @@ read_lexical_block_scope (struct die_info *die, struct objfile *objfile,
Return 1 if the attributes are present and valid, otherwise, return 0. */
static int
-dwarf2_get_pc_bounds (die, lowpc, highpc, objfile)
- struct die_info *die;
- CORE_ADDR *lowpc;
- CORE_ADDR *highpc;
- struct objfile *objfile;
+dwarf2_get_pc_bounds (struct die_info *die, CORE_ADDR *lowpc, CORE_ADDR *highpc,
+ struct objfile *objfile)
{
struct attribute *attr;
CORE_ADDR low;
@@ -1885,10 +1870,8 @@ dwarf2_add_field (struct field_info *fip, struct die_info *die,
/* Create the vector of fields, and attach it to the type. */
static void
-dwarf2_attach_fields_to_type (fip, type, objfile)
- struct field_info *fip;
- struct type *type;
- struct objfile *objfile;
+dwarf2_attach_fields_to_type (struct field_info *fip, struct type *type,
+ struct objfile *objfile)
{
int nfields = fip->nfields;
@@ -2102,10 +2085,8 @@ dwarf2_add_member_fn (struct field_info *fip, struct die_info *die,
/* Create the vector of member function fields, and attach it to the type. */
static void
-dwarf2_attach_fn_fields_to_type (fip, type, objfile)
- struct field_info *fip;
- struct type *type;
- struct objfile *objfile;
+dwarf2_attach_fn_fields_to_type (struct field_info *fip, struct type *type,
+ struct objfile *objfile)
{
struct fnfieldlist *flp;
int total_length = 0;
@@ -2684,9 +2665,7 @@ read_tag_volatile_type (struct die_info *die, struct objfile *objfile,
attribute to reference it. */
static void
-read_tag_string_type (die, objfile)
- struct die_info *die;
- struct objfile *objfile;
+read_tag_string_type (struct die_info *die, struct objfile *objfile)
{
struct type *type, *range_type, *index_type, *char_type;
struct attribute *attr;
@@ -2827,9 +2806,7 @@ read_typedef (struct die_info *die, struct objfile *objfile,
it in the TYPE field of the die. */
static void
-read_base_type (die, objfile)
- struct die_info *die;
- struct objfile *objfile;
+read_base_type (struct die_info *die, struct objfile *objfile)
{
struct type *type;
struct attribute *attr;
@@ -2948,8 +2925,7 @@ read_comp_unit (char *info_ptr, bfd *abfd,
/* Free a linked list of dies. */
static void
-free_die_list (dies)
- struct die_info *dies;
+free_die_list (struct die_info *dies)
{
struct die_info *die, *next;
@@ -2980,10 +2956,8 @@ make_cleanup_free_die_list (struct die_info *dies)
object file specified by OBJFILE into the psymbol_obstack and return it. */
static char *
-dwarf2_read_section (objfile, offset, size)
- struct objfile *objfile;
- file_ptr offset;
- unsigned int size;
+dwarf2_read_section (struct objfile *objfile, file_ptr offset,
+ unsigned int size)
{
bfd *abfd = objfile->obfd;
char *buf;
@@ -3008,9 +2982,7 @@ dwarf2_read_section (objfile, offset, size)
in a hash table. */
static void
-dwarf2_read_abbrevs (abfd, offset)
- bfd *abfd;
- unsigned int offset;
+dwarf2_read_abbrevs (bfd *abfd, unsigned int offset)
{
char *abbrev_ptr;
struct abbrev_info *cur_abbrev;
@@ -3083,8 +3055,7 @@ dwarf2_read_abbrevs (abfd, offset)
/* ARGSUSED */
static void
-dwarf2_empty_abbrev_table (ignore)
- PTR ignore;
+dwarf2_empty_abbrev_table (PTR ignore)
{
int i;
struct abbrev_info *abbrev, *next;
@@ -3107,8 +3078,7 @@ dwarf2_empty_abbrev_table (ignore)
/* Lookup an abbrev_info structure in the abbrev hash table. */
static struct abbrev_info *
-dwarf2_lookup_abbrev (number)
- unsigned int number;
+dwarf2_lookup_abbrev (unsigned int number)
{
unsigned int hash_number;
struct abbrev_info *abbrev;
@@ -3416,57 +3386,43 @@ read_attribute (struct attribute *attr, struct attr_abbrev *abbrev,
/* read dwarf information from a buffer */
static unsigned int
-read_1_byte (abfd, buf)
- bfd *abfd;
- char *buf;
+read_1_byte (bfd *abfd, char *buf)
{
return bfd_get_8 (abfd, (bfd_byte *) buf);
}
static int
-read_1_signed_byte (abfd, buf)
- bfd *abfd;
- char *buf;
+read_1_signed_byte (bfd *abfd, char *buf)
{
return bfd_get_signed_8 (abfd, (bfd_byte *) buf);
}
static unsigned int
-read_2_bytes (abfd, buf)
- bfd *abfd;
- char *buf;
+read_2_bytes (bfd *abfd, char *buf)
{
return bfd_get_16 (abfd, (bfd_byte *) buf);
}
static int
-read_2_signed_bytes (abfd, buf)
- bfd *abfd;
- char *buf;
+read_2_signed_bytes (bfd *abfd, char *buf)
{
return bfd_get_signed_16 (abfd, (bfd_byte *) buf);
}
static unsigned int
-read_4_bytes (abfd, buf)
- bfd *abfd;
- char *buf;
+read_4_bytes (bfd *abfd, char *buf)
{
return bfd_get_32 (abfd, (bfd_byte *) buf);
}
static int
-read_4_signed_bytes (abfd, buf)
- bfd *abfd;
- char *buf;
+read_4_signed_bytes (bfd *abfd, char *buf)
{
return bfd_get_signed_32 (abfd, (bfd_byte *) buf);
}
static unsigned long
-read_8_bytes (abfd, buf)
- bfd *abfd;
- char *buf;
+read_8_bytes (bfd *abfd, char *buf)
{
return bfd_get_64 (abfd, (bfd_byte *) buf);
}
@@ -3517,10 +3473,7 @@ read_address (bfd *abfd, char *buf, const struct comp_unit_head *cu_header,
}
static char *
-read_n_bytes (abfd, buf, size)
- bfd *abfd;
- char *buf;
- unsigned int size;
+read_n_bytes (bfd *abfd, char *buf, unsigned int size)
{
/* If the size of a host char is 8 bits, we can return a pointer
to the buffer, otherwise we have to copy the data to a buffer
@@ -3542,10 +3495,7 @@ read_n_bytes (abfd, buf, size)
}
static char *
-read_string (abfd, buf, bytes_read_ptr)
- bfd *abfd;
- char *buf;
- unsigned int *bytes_read_ptr;
+read_string (bfd *abfd, char *buf, unsigned int *bytes_read_ptr)
{
/* If the size of a host char is 8 bits, we can return a pointer
to the string, otherwise we have to copy the string to a buffer
@@ -3580,10 +3530,7 @@ read_string (abfd, buf, bytes_read_ptr)
}
static unsigned long
-read_unsigned_leb128 (abfd, buf, bytes_read_ptr)
- bfd *abfd;
- char *buf;
- unsigned int *bytes_read_ptr;
+read_unsigned_leb128 (bfd *abfd, char *buf, unsigned int *bytes_read_ptr)
{
unsigned long result;
unsigned int num_read;
@@ -3611,10 +3558,7 @@ read_unsigned_leb128 (abfd, buf, bytes_read_ptr)
}
static long
-read_signed_leb128 (abfd, buf, bytes_read_ptr)
- bfd *abfd;
- char *buf;
- unsigned int *bytes_read_ptr;
+read_signed_leb128 (bfd *abfd, char *buf, unsigned int *bytes_read_ptr)
{
long result;
int i, shift, size, num_read;
@@ -3646,8 +3590,7 @@ read_signed_leb128 (abfd, buf, bytes_read_ptr)
}
static void
-set_cu_language (lang)
- unsigned int lang;
+set_cu_language (unsigned int lang)
{
switch (lang)
{
@@ -3680,9 +3623,7 @@ set_cu_language (lang)
/* Return the named attribute or NULL if not there. */
static struct attribute *
-dwarf_attr (die, name)
- struct die_info *die;
- unsigned int name;
+dwarf_attr (struct die_info *die, unsigned int name)
{
unsigned int i;
struct attribute *spec = NULL;
@@ -4005,9 +3946,7 @@ done:
subfile, so that `break /srcdir/list0.c:1' works as expected. */
static void
-dwarf2_start_subfile (filename, dirname)
- char *filename;
- char *dirname;
+dwarf2_start_subfile (char *filename, char *dirname)
{
/* If the filename isn't absolute, try to match an existing subfile
with the full pathname. */
@@ -4453,9 +4392,7 @@ die_containing_type (struct die_info *die, struct objfile *objfile,
#if 0
static struct type *
-type_at_offset (offset, objfile)
- unsigned int offset;
- struct objfile *objfile;
+type_at_offset (unsigned int offset, struct objfile *objfile)
{
struct die_info *die;
struct type *type;
@@ -4574,10 +4511,7 @@ read_type_die (struct die_info *die, struct objfile *objfile,
}
static struct type *
-dwarf_base_type (encoding, size, objfile)
- int encoding;
- int size;
- struct objfile *objfile;
+dwarf_base_type (int encoding, int size, struct objfile *objfile)
{
/* FIXME - this should not produce a new (struct type *)
every time. It should cache base types. */
@@ -4654,8 +4588,7 @@ dwarf_base_type (encoding, size, objfile)
#if 0
struct die_info *
-copy_die (old_die)
- struct die_info *old_die;
+copy_die (struct die_info *old_die)
{
struct die_info *new_die;
int i, num_attrs;
@@ -4689,8 +4622,7 @@ copy_die (old_die)
/* Return sibling of die, NULL if no sibling. */
struct die_info *
-sibling_die (die)
- struct die_info *die;
+sibling_die (struct die_info *die)
{
int nesting_level = 0;
@@ -4734,8 +4666,7 @@ sibling_die (die)
/* Get linkage name of a die, return NULL if not found. */
static char *
-dwarf2_linkage_name (die)
- struct die_info *die;
+dwarf2_linkage_name (struct die_info *die)
{
struct attribute *attr;
@@ -4751,8 +4682,7 @@ dwarf2_linkage_name (die)
/* Convert a DIE tag into its string name. */
static char *
-dwarf_tag_name (tag)
- register unsigned tag;
+dwarf_tag_name (register unsigned tag)
{
switch (tag)
{
@@ -4868,8 +4798,7 @@ dwarf_tag_name (tag)
/* Convert a DWARF attribute code into its string name. */
static char *
-dwarf_attr_name (attr)
- register unsigned attr;
+dwarf_attr_name (register unsigned attr)
{
switch (attr)
{
@@ -5035,8 +4964,7 @@ dwarf_attr_name (attr)
/* Convert a DWARF value form code into its string name. */
static char *
-dwarf_form_name (form)
- register unsigned form;
+dwarf_form_name (register unsigned form)
{
switch (form)
{
@@ -5090,8 +5018,7 @@ dwarf_form_name (form)
/* Convert a DWARF stack opcode into its string name. */
static char *
-dwarf_stack_op_name (op)
- register unsigned op;
+dwarf_stack_op_name (register unsigned op)
{
switch (op)
{
@@ -5391,8 +5318,7 @@ dwarf_stack_op_name (op)
}
static char *
-dwarf_bool_name (mybool)
- unsigned mybool;
+dwarf_bool_name (unsigned mybool)
{
if (mybool)
return "TRUE";
@@ -5403,8 +5329,7 @@ dwarf_bool_name (mybool)
/* Convert a DWARF type code into its string name. */
static char *
-dwarf_type_encoding_name (enc)
- register unsigned enc;
+dwarf_type_encoding_name (register unsigned enc)
{
switch (enc)
{
@@ -5433,8 +5358,7 @@ dwarf_type_encoding_name (enc)
#if 0
static char *
-dwarf_cfi_name (cfi_opc)
- register unsigned cfi_opc;
+dwarf_cfi_name (register unsigned cfi_opc)
{
switch (cfi_opc)
{
@@ -5484,8 +5408,7 @@ dwarf_cfi_name (cfi_opc)
#endif
void
-dump_die (die)
- struct die_info *die;
+dump_die (struct die_info *die)
{
unsigned int i;
@@ -5547,8 +5470,7 @@ dump_die (die)
}
void
-dump_die_list (die)
- struct die_info *die;
+dump_die_list (struct die_info *die)
{
while (die)
{
@@ -5558,9 +5480,7 @@ dump_die_list (die)
}
void
-store_in_ref_table (offset, die)
- unsigned int offset;
- struct die_info *die;
+store_in_ref_table (unsigned int offset, struct die_info *die)
{
int h;
struct die_info *old;
@@ -5573,15 +5493,14 @@ store_in_ref_table (offset, die)
static void
-dwarf2_empty_hash_tables ()
+dwarf2_empty_hash_tables (void)
{
memset (die_ref_table, 0, sizeof (die_ref_table));
memset (dwarf2_cached_types, 0, sizeof(dwarf2_cached_types));
}
static unsigned int
-dwarf2_get_ref_die_offset (attr)
- struct attribute *attr;
+dwarf2_get_ref_die_offset (struct attribute *attr)
{
unsigned int result = 0;
@@ -5603,8 +5522,7 @@ dwarf2_get_ref_die_offset (attr)
}
struct die_info *
-follow_die_ref (offset)
- unsigned int offset;
+follow_die_ref (unsigned int offset)
{
struct die_info *die;
int h;
@@ -5623,9 +5541,7 @@ follow_die_ref (offset)
}
static struct type *
-dwarf2_fundamental_type (objfile, typeid)
- struct objfile *objfile;
- int typeid;
+dwarf2_fundamental_type (struct objfile *objfile, int typeid)
{
if (typeid < 0 || typeid >= FT_NUM_MEMBERS)
{
@@ -5893,14 +5809,13 @@ decode_locdesc (struct dwarf_block *blk, struct objfile *objfile,
/* ARGSUSED */
static void
-dwarf2_free_tmp_obstack (ignore)
- PTR ignore;
+dwarf2_free_tmp_obstack (PTR ignore)
{
obstack_free (&dwarf2_tmp_obstack, NULL);
}
static struct dwarf_block *
-dwarf_alloc_block ()
+dwarf_alloc_block (void)
{
struct dwarf_block *blk;
@@ -5910,7 +5825,7 @@ dwarf_alloc_block ()
}
static struct abbrev_info *
-dwarf_alloc_abbrev ()
+dwarf_alloc_abbrev (void)
{
struct abbrev_info *abbrev;
@@ -5920,7 +5835,7 @@ dwarf_alloc_abbrev ()
}
static struct die_info *
-dwarf_alloc_die ()
+dwarf_alloc_die (void)
{
struct die_info *die;
diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c
index c56155e..499c41e 100644
--- a/gdb/dwarfread.c
+++ b/gdb/dwarfread.c
@@ -576,9 +576,7 @@ static struct type *dwarf_fundamental_type (struct objfile *, int);
*/
static struct type *
-dwarf_fundamental_type (objfile, typeid)
- struct objfile *objfile;
- int typeid;
+dwarf_fundamental_type (struct objfile *objfile, int typeid)
{
if (typeid < 0 || typeid >= FT_NUM_MEMBERS)
{
@@ -621,8 +619,7 @@ dwarf_fundamental_type (objfile, typeid)
*/
static void
-set_cu_language (dip)
- struct dieinfo *dip;
+set_cu_language (struct dieinfo *dip)
{
switch (dip->at_language)
{
@@ -690,14 +687,9 @@ set_cu_language (dip)
*/
void
-dwarf_build_psymtabs (objfile, mainline, dbfoff, dbfsize,
- lnoffset, lnsize)
- struct objfile *objfile;
- int mainline;
- file_ptr dbfoff;
- unsigned int dbfsize;
- file_ptr lnoffset;
- unsigned int lnsize;
+dwarf_build_psymtabs (struct objfile *objfile, int mainline, file_ptr dbfoff,
+ unsigned int dbfsize, file_ptr lnoffset,
+ unsigned int lnsize)
{
bfd *abfd = objfile->obfd;
struct cleanup *back_to;
@@ -758,11 +750,8 @@ dwarf_build_psymtabs (objfile, mainline, dbfoff, dbfsize,
*/
static void
-read_lexical_block_scope (dip, thisdie, enddie, objfile)
- struct dieinfo *dip;
- char *thisdie;
- char *enddie;
- struct objfile *objfile;
+read_lexical_block_scope (struct dieinfo *dip, char *thisdie, char *enddie,
+ struct objfile *objfile)
{
register struct context_stack *new;
@@ -797,8 +786,7 @@ read_lexical_block_scope (dip, thisdie, enddie, objfile)
*/
static struct type *
-lookup_utype (die_ref)
- DIE_REF die_ref;
+lookup_utype (DIE_REF die_ref)
{
struct type *type = NULL;
int utypeidx;
@@ -838,9 +826,7 @@ lookup_utype (die_ref)
*/
static struct type *
-alloc_utype (die_ref, utypep)
- DIE_REF die_ref;
- struct type *utypep;
+alloc_utype (DIE_REF die_ref, struct type *utypep)
{
struct type **typep;
int utypeidx;
@@ -886,8 +872,7 @@ alloc_utype (die_ref, utypep)
*/
static void
-free_utypes (dummy)
- PTR dummy;
+free_utypes (PTR dummy)
{
free (utypes);
utypes = NULL;
@@ -913,8 +898,7 @@ free_utypes (dummy)
*/
static struct type *
-decode_die_type (dip)
- struct dieinfo *dip;
+decode_die_type (struct dieinfo *dip)
{
struct type *type = NULL;
@@ -965,11 +949,8 @@ decode_die_type (dip)
*/
static struct type *
-struct_type (dip, thisdie, enddie, objfile)
- struct dieinfo *dip;
- char *thisdie;
- char *enddie;
- struct objfile *objfile;
+struct_type (struct dieinfo *dip, char *thisdie, char *enddie,
+ struct objfile *objfile)
{
struct type *type;
struct nextfield
@@ -1163,11 +1144,8 @@ struct_type (dip, thisdie, enddie, objfile)
*/
static void
-read_structure_scope (dip, thisdie, enddie, objfile)
- struct dieinfo *dip;
- char *thisdie;
- char *enddie;
- struct objfile *objfile;
+read_structure_scope (struct dieinfo *dip, char *thisdie, char *enddie,
+ struct objfile *objfile)
{
struct type *type;
struct symbol *sym;
@@ -1207,8 +1185,7 @@ read_structure_scope (dip, thisdie, enddie, objfile)
*/
static struct type *
-decode_array_element_type (scan)
- char *scan;
+decode_array_element_type (char *scan)
{
struct type *typep;
DIE_REF die_ref;
@@ -1302,9 +1279,7 @@ decode_array_element_type (scan)
*/
static struct type *
-decode_subscript_data_item (scan, end)
- char *scan;
- char *end;
+decode_subscript_data_item (char *scan, char *end)
{
struct type *typep = NULL; /* Array type we are building */
struct type *nexttype; /* Type of each element (may be array) */
@@ -1384,8 +1359,7 @@ decode_subscript_data_item (scan, end)
*/
static void
-dwarf_read_array_type (dip)
- struct dieinfo *dip;
+dwarf_read_array_type (struct dieinfo *dip)
{
struct type *type;
struct type *utype;
@@ -1449,8 +1423,7 @@ dwarf_read_array_type (dip)
*/
static void
-read_tag_pointer_type (dip)
- struct dieinfo *dip;
+read_tag_pointer_type (struct dieinfo *dip)
{
struct type *type;
struct type *utype;
@@ -1492,8 +1465,7 @@ read_tag_pointer_type (dip)
*/
static void
-read_tag_string_type (dip)
- struct dieinfo *dip;
+read_tag_string_type (struct dieinfo *dip)
{
struct type *utype;
struct type *indextype;
@@ -1564,10 +1536,7 @@ read_tag_string_type (dip)
*/
static void
-read_subroutine_type (dip, thisdie, enddie)
- struct dieinfo *dip;
- char *thisdie;
- char *enddie;
+read_subroutine_type (struct dieinfo *dip, char *thisdie, char *enddie)
{
struct type *type; /* Type that this function returns */
struct type *ftype; /* Function that returns above type */
@@ -1624,11 +1593,8 @@ read_subroutine_type (dip, thisdie, enddie)
*/
static void
-read_enumeration (dip, thisdie, enddie, objfile)
- struct dieinfo *dip;
- char *thisdie;
- char *enddie;
- struct objfile *objfile;
+read_enumeration (struct dieinfo *dip, char *thisdie, char *enddie,
+ struct objfile *objfile)
{
struct type *type;
struct symbol *sym;
@@ -1677,9 +1643,7 @@ read_enumeration (dip, thisdie, enddie, objfile)
*/
static struct type *
-enum_type (dip, objfile)
- struct dieinfo *dip;
- struct objfile *objfile;
+enum_type (struct dieinfo *dip, struct objfile *objfile)
{
struct type *type;
struct nextfield
@@ -1805,11 +1769,8 @@ enum_type (dip, objfile)
*/
static void
-read_func_scope (dip, thisdie, enddie, objfile)
- struct dieinfo *dip;
- char *thisdie;
- char *enddie;
- struct objfile *objfile;
+read_func_scope (struct dieinfo *dip, char *thisdie, char *enddie,
+ struct objfile *objfile)
{
register struct context_stack *new;
@@ -1855,8 +1816,7 @@ read_func_scope (dip, thisdie, enddie, objfile)
*/
static void
-handle_producer (producer)
- char *producer;
+handle_producer (char *producer)
{
/* If this compilation unit was compiled with g++ or gcc, then set the
@@ -1916,11 +1876,8 @@ handle_producer (producer)
*/
static void
-read_file_scope (dip, thisdie, enddie, objfile)
- struct dieinfo *dip;
- char *thisdie;
- char *enddie;
- struct objfile *objfile;
+read_file_scope (struct dieinfo *dip, char *thisdie, char *enddie,
+ struct objfile *objfile)
{
struct cleanup *back_to;
struct symtab *symtab;
@@ -1972,10 +1929,7 @@ read_file_scope (dip, thisdie, enddie, objfile)
*/
static void
-process_dies (thisdie, enddie, objfile)
- char *thisdie;
- char *enddie;
- struct objfile *objfile;
+process_dies (char *thisdie, char *enddie, struct objfile *objfile)
{
char *nextdie;
struct dieinfo di;
@@ -2118,8 +2072,7 @@ process_dies (thisdie, enddie, objfile)
*/
static void
-decode_line_numbers (linetable)
- char *linetable;
+decode_line_numbers (char *linetable)
{
char *tblscan;
char *tblend;
@@ -2192,8 +2145,7 @@ decode_line_numbers (linetable)
*/
static int
-locval (dip)
- struct dieinfo *dip;
+locval (struct dieinfo *dip)
{
unsigned short nbytes;
unsigned short locsize;
@@ -2294,8 +2246,7 @@ locval (dip)
*/
static void
-read_ofile_symtab (pst)
- struct partial_symtab *pst;
+read_ofile_symtab (struct partial_symtab *pst)
{
struct cleanup *back_to;
unsigned long lnsize;
@@ -2374,8 +2325,7 @@ read_ofile_symtab (pst)
*/
static void
-psymtab_to_symtab_1 (pst)
- struct partial_symtab *pst;
+psymtab_to_symtab_1 (struct partial_symtab *pst)
{
int i;
struct cleanup *old_chain;
@@ -2447,8 +2397,7 @@ psymtab_to_symtab_1 (pst)
*/
static void
-dwarf_psymtab_to_symtab (pst)
- struct partial_symtab *pst;
+dwarf_psymtab_to_symtab (struct partial_symtab *pst)
{
if (pst != NULL)
@@ -2507,9 +2456,7 @@ dwarf_psymtab_to_symtab (pst)
*/
static void
-add_enum_psymbol (dip, objfile)
- struct dieinfo *dip;
- struct objfile *objfile;
+add_enum_psymbol (struct dieinfo *dip, struct objfile *objfile)
{
char *scan;
char *listend;
@@ -2558,9 +2505,7 @@ add_enum_psymbol (dip, objfile)
*/
static void
-add_partial_symbol (dip, objfile)
- struct dieinfo *dip;
- struct objfile *objfile;
+add_partial_symbol (struct dieinfo *dip, struct objfile *objfile)
{
switch (dip->die_tag)
{
@@ -2685,10 +2630,7 @@ NOTES
static void
-scan_partial_symbols (thisdie, enddie, objfile)
- char *thisdie;
- char *enddie;
- struct objfile *objfile;
+scan_partial_symbols (char *thisdie, char *enddie, struct objfile *objfile)
{
char *nextdie;
char *temp;
@@ -2809,12 +2751,8 @@ scan_partial_symbols (thisdie, enddie, objfile)
*/
static void
-scan_compilation_units (thisdie, enddie, dbfoff, lnoffset, objfile)
- char *thisdie;
- char *enddie;
- file_ptr dbfoff;
- file_ptr lnoffset;
- struct objfile *objfile;
+scan_compilation_units (char *thisdie, char *enddie, file_ptr dbfoff,
+ file_ptr lnoffset, struct objfile *objfile)
{
char *nextdie;
struct dieinfo di;
@@ -2904,9 +2842,7 @@ scan_compilation_units (thisdie, enddie, dbfoff, lnoffset, objfile)
*/
static struct symbol *
-new_symbol (dip, objfile)
- struct dieinfo *dip;
- struct objfile *objfile;
+new_symbol (struct dieinfo *dip, struct objfile *objfile)
{
struct symbol *sym = NULL;
@@ -3066,10 +3002,8 @@ new_symbol (dip, objfile)
*/
static void
-synthesize_typedef (dip, objfile, type)
- struct dieinfo *dip;
- struct objfile *objfile;
- struct type *type;
+synthesize_typedef (struct dieinfo *dip, struct objfile *objfile,
+ struct type *type)
{
struct symbol *sym = NULL;
@@ -3113,8 +3047,7 @@ synthesize_typedef (dip, objfile, type)
*/
static struct type *
-decode_mod_fund_type (typedata)
- char *typedata;
+decode_mod_fund_type (char *typedata)
{
struct type *typep = NULL;
unsigned short modcount;
@@ -3160,8 +3093,7 @@ decode_mod_fund_type (typedata)
*/
static struct type *
-decode_mod_u_d_type (typedata)
- char *typedata;
+decode_mod_u_d_type (char *typedata)
{
struct type *typep = NULL;
unsigned short modcount;
@@ -3224,10 +3156,7 @@ decode_mod_u_d_type (typedata)
*/
static struct type *
-decode_modified_type (modifiers, modcount, mtype)
- char *modifiers;
- unsigned int modcount;
- int mtype;
+decode_modified_type (char *modifiers, unsigned int modcount, int mtype)
{
struct type *typep = NULL;
unsigned short fundtype;
@@ -3313,8 +3242,7 @@ decode_modified_type (modifiers, modcount, mtype)
*/
static struct type *
-decode_fund_type (fundtype)
- unsigned int fundtype;
+decode_fund_type (unsigned int fundtype)
{
struct type *typep = NULL;
@@ -3446,9 +3374,7 @@ decode_fund_type (fundtype)
*/
static char *
-create_name (name, obstackp)
- char *name;
- struct obstack *obstackp;
+create_name (char *name, struct obstack *obstackp)
{
int length;
char *newname;
@@ -3514,10 +3440,7 @@ create_name (name, obstackp)
*/
static void
-basicdieinfo (dip, diep, objfile)
- struct dieinfo *dip;
- char *diep;
- struct objfile *objfile;
+basicdieinfo (struct dieinfo *dip, char *diep, struct objfile *objfile)
{
curdie = dip;
memset (dip, 0, sizeof (struct dieinfo));
@@ -3576,9 +3499,7 @@ basicdieinfo (dip, diep, objfile)
*/
static void
-completedieinfo (dip, objfile)
- struct dieinfo *dip;
- struct objfile *objfile;
+completedieinfo (struct dieinfo *dip, struct objfile *objfile)
{
char *diep; /* Current pointer into raw DIE data */
char *end; /* Terminate DIE scan here */
@@ -3790,11 +3711,8 @@ completedieinfo (dip, objfile)
*/
static CORE_ADDR
-target_to_host (from, nbytes, signextend, objfile)
- char *from;
- int nbytes;
- int signextend; /* FIXME: Unused */
- struct objfile *objfile;
+target_to_host (char *from, int nbytes, int signextend, /* FIXME: Unused */
+ struct objfile *objfile)
{
CORE_ADDR rtnval;
@@ -3841,8 +3759,7 @@ target_to_host (from, nbytes, signextend, objfile)
*/
static int
-attribute_size (attr)
- unsigned int attr;
+attribute_size (unsigned int attr)
{
int nbytes; /* Size of next data for this attribute */
unsigned short form; /* Form of the attribute */
diff --git a/gdb/elfread.c b/gdb/elfread.c
index edd4786..3de6b5e 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -108,10 +108,7 @@ static void elf_locate_sections (bfd *, asection *, void *);
-kingdon). */
static void
-elf_locate_sections (ignore_abfd, sectp, eip)
- bfd *ignore_abfd;
- asection *sectp;
- PTR eip;
+elf_locate_sections (bfd *ignore_abfd, asection *sectp, PTR eip)
{
register struct elfinfo *ei;
@@ -143,8 +140,7 @@ elf_locate_sections (ignore_abfd, sectp, eip)
#if 0 /* Currently unused */
char *
-elf_interpreter (abfd)
- bfd *abfd;
+elf_interpreter (bfd *abfd)
{
sec_ptr interp_sec;
unsigned size;
@@ -171,14 +167,9 @@ elf_interpreter (abfd)
#endif
static struct minimal_symbol *
-record_minimal_symbol_and_info (name, address, ms_type, info, bfd_section,
- objfile)
- char *name;
- CORE_ADDR address;
- enum minimal_symbol_type ms_type;
- char *info; /* FIXME, is this really char *? */
- asection *bfd_section;
- struct objfile *objfile;
+record_minimal_symbol_and_info (char *name, CORE_ADDR address,
+ enum minimal_symbol_type ms_type, char *info, /* FIXME, is this really char *? */
+ asection *bfd_section, struct objfile *objfile)
{
int section;
@@ -233,9 +224,7 @@ record_minimal_symbol_and_info (name, address, ms_type, info, bfd_section,
*/
static void
-elf_symtab_read (objfile, dynamic)
- struct objfile *objfile;
- int dynamic;
+elf_symtab_read (struct objfile *objfile, int dynamic)
{
long storage_needed;
asymbol *sym;
@@ -578,9 +567,7 @@ elf_symtab_read (objfile, dynamic)
capability even for files compiled without -g. */
static void
-elf_symfile_read (objfile, mainline)
- struct objfile *objfile;
- int mainline;
+elf_symfile_read (struct objfile *objfile, int mainline)
{
bfd *abfd = objfile->obfd;
struct elfinfo ei;
@@ -688,8 +675,7 @@ elf_symfile_read (objfile, mainline)
stab_section_info's, that might be dangling from it. */
static void
-free_elfinfo (objp)
- PTR objp;
+free_elfinfo (PTR objp)
{
struct objfile *objfile = (struct objfile *) objp;
struct dbx_symfile_info *dbxinfo = objfile->sym_stab_info;
@@ -714,8 +700,7 @@ free_elfinfo (objp)
We reinitialize buildsym, since we may be reading stabs from an ELF file. */
static void
-elf_new_init (ignore)
- struct objfile *ignore;
+elf_new_init (struct objfile *ignore)
{
stabsread_new_init ();
buildsym_new_init ();
@@ -727,8 +712,7 @@ elf_new_init (ignore)
objfile struct from the global list of known objfiles. */
static void
-elf_symfile_finish (objfile)
- struct objfile *objfile;
+elf_symfile_finish (struct objfile *objfile)
{
if (objfile->sym_stab_info != NULL)
{
@@ -746,8 +730,7 @@ elf_symfile_finish (objfile)
just a stub. */
static void
-elf_symfile_init (objfile)
- struct objfile *objfile;
+elf_symfile_init (struct objfile *objfile)
{
/* ELF objects may be reordered, so set OBJF_REORDERED. If we
find this causes a significant slowdown in gdb then we could
@@ -764,9 +747,7 @@ elf_symfile_init (objfile)
with wierd names. Go get 'em when needed. */
void
-elfstab_offset_sections (objfile, pst)
- struct objfile *objfile;
- struct partial_symtab *pst;
+elfstab_offset_sections (struct objfile *objfile, struct partial_symtab *pst)
{
char *filename = pst->filename;
struct dbx_symfile_info *dbx = objfile->sym_stab_info;
@@ -832,7 +813,7 @@ static struct sym_fns elf_sym_fns =
};
void
-_initialize_elfread ()
+_initialize_elfread (void)
{
add_symtab_fns (&elf_sym_fns);
}
diff --git a/gdb/environ.c b/gdb/environ.c
index c4a5adc..53e63e0 100644
--- a/gdb/environ.c
+++ b/gdb/environ.c
@@ -28,7 +28,7 @@
/* Return a new environment object. */
struct environ *
-make_environ ()
+make_environ (void)
{
register struct environ *e;
@@ -43,8 +43,7 @@ make_environ ()
/* Free an environment and all the strings in it. */
void
-free_environ (e)
- register struct environ *e;
+free_environ (register struct environ *e)
{
register char **vector = e->vector;
@@ -59,8 +58,7 @@ free_environ (e)
that all strings in these environments are safe to free. */
void
-init_environ (e)
- register struct environ *e;
+init_environ (register struct environ *e)
{
extern char **environ;
register int i;
@@ -92,8 +90,7 @@ init_environ (e)
This is used to get something to pass to execve. */
char **
-environ_vector (e)
- struct environ *e;
+environ_vector (struct environ *e)
{
return e->vector;
}
@@ -101,9 +98,7 @@ environ_vector (e)
/* Return the value in environment E of variable VAR. */
char *
-get_in_environ (e, var)
- const struct environ *e;
- const char *var;
+get_in_environ (const struct environ *e, const char *var)
{
register int len = strlen (var);
register char **vector = e->vector;
@@ -119,10 +114,7 @@ get_in_environ (e, var)
/* Store the value in E of VAR as VALUE. */
void
-set_in_environ (e, var, value)
- struct environ *e;
- const char *var;
- const char *value;
+set_in_environ (struct environ *e, const char *var, const char *value)
{
register int i;
register int len = strlen (var);
@@ -169,9 +161,7 @@ set_in_environ (e, var, value)
/* Remove the setting for variable VAR from environment E. */
void
-unset_in_environ (e, var)
- struct environ *e;
- char *var;
+unset_in_environ (struct environ *e, char *var)
{
register int len = strlen (var);
register char **vector = e->vector;
diff --git a/gdb/eval.c b/gdb/eval.c
index 9cfac7b..e9ca802 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -65,11 +65,8 @@ init_array_element (value_ptr, value_ptr, struct expression *,
inline
#endif
static value_ptr
-evaluate_subexp (expect_type, exp, pos, noside)
- struct type *expect_type;
- register struct expression *exp;
- register int *pos;
- enum noside noside;
+evaluate_subexp (struct type *expect_type, register struct expression *exp,
+ register int *pos, enum noside noside)
{
return (*exp->language_defn->evaluate_exp) (expect_type, exp, pos, noside);
}
@@ -78,8 +75,7 @@ evaluate_subexp (expect_type, exp, pos, noside)
and return the result as a number. */
CORE_ADDR
-parse_and_eval_address (exp)
- char *exp;
+parse_and_eval_address (char *exp)
{
struct expression *expr = parse_expression (exp);
register CORE_ADDR addr;
@@ -95,8 +91,7 @@ parse_and_eval_address (exp)
and advanced that variable across the characters parsed. */
CORE_ADDR
-parse_and_eval_address_1 (expptr)
- char **expptr;
+parse_and_eval_address_1 (char **expptr)
{
struct expression *expr = parse_exp_1 (expptr, (struct block *) 0, 0);
register CORE_ADDR addr;
@@ -109,8 +104,7 @@ parse_and_eval_address_1 (expptr)
}
value_ptr
-parse_and_eval (exp)
- char *exp;
+parse_and_eval (char *exp)
{
struct expression *expr = parse_expression (exp);
register value_ptr val;
@@ -127,8 +121,7 @@ parse_and_eval (exp)
EXPP is advanced to point to the comma. */
value_ptr
-parse_to_comma_and_eval (expp)
- char **expp;
+parse_to_comma_and_eval (char **expp)
{
struct expression *expr = parse_exp_1 (expp, (struct block *) 0, 1);
register value_ptr val;
@@ -146,8 +139,7 @@ parse_to_comma_and_eval (expp)
See expression.h for info on the format of an expression. */
value_ptr
-evaluate_expression (exp)
- struct expression *exp;
+evaluate_expression (struct expression *exp)
{
int pc = 0;
return evaluate_subexp (NULL_TYPE, exp, &pc, EVAL_NORMAL);
@@ -157,8 +149,7 @@ evaluate_expression (exp)
and getting a value whose type alone is correct. */
value_ptr
-evaluate_type (exp)
- struct expression *exp;
+evaluate_type (struct expression *exp)
{
int pc = 0;
return evaluate_subexp (NULL_TYPE, exp, &pc, EVAL_AVOID_SIDE_EFFECTS);
@@ -168,9 +159,7 @@ evaluate_type (exp)
returning the label. Otherwise, does nothing and returns NULL. */
static char *
-get_label (exp, pos)
- register struct expression *exp;
- int *pos;
+get_label (register struct expression *exp, int *pos)
{
if (exp->elts[*pos].opcode == OP_LABELED)
{
@@ -188,12 +177,8 @@ get_label (exp, pos)
(in C/C++) for structure types. */
static value_ptr
-evaluate_struct_tuple (struct_val, exp, pos, noside, nargs)
- value_ptr struct_val;
- register struct expression *exp;
- register int *pos;
- enum noside noside;
- int nargs;
+evaluate_struct_tuple (value_ptr struct_val, register struct expression *exp,
+ register int *pos, enum noside noside, int nargs)
{
struct type *struct_type = check_typedef (VALUE_TYPE (struct_val));
struct type *substruct_type = struct_type;
@@ -335,12 +320,9 @@ evaluate_struct_tuple (struct_val, exp, pos, noside, nargs)
Returns last index value. */
static LONGEST
-init_array_element (array, element, exp, pos, noside, low_bound, high_bound)
- value_ptr array, element;
- register struct expression *exp;
- register int *pos;
- enum noside noside;
- LONGEST low_bound, high_bound;
+init_array_element (value_ptr array, value_ptr element,
+ register struct expression *exp, register int *pos,
+ enum noside noside, LONGEST low_bound, LONGEST high_bound)
{
LONGEST index;
int element_size = TYPE_LENGTH (VALUE_TYPE (element));
@@ -379,11 +361,9 @@ init_array_element (array, element, exp, pos, noside, low_bound, high_bound)
}
value_ptr
-evaluate_subexp_standard (expect_type, exp, pos, noside)
- struct type *expect_type;
- register struct expression *exp;
- register int *pos;
- enum noside noside;
+evaluate_subexp_standard (struct type *expect_type,
+ register struct expression *exp, register int *pos,
+ enum noside noside)
{
enum exp_opcode op;
int tem, tem2, tem3;
@@ -1781,10 +1761,8 @@ nosideret:
then only the type of the result need be correct. */
static value_ptr
-evaluate_subexp_for_address (exp, pos, noside)
- register struct expression *exp;
- register int *pos;
- enum noside noside;
+evaluate_subexp_for_address (register struct expression *exp, register int *pos,
+ enum noside noside)
{
enum exp_opcode op;
register int pc;
@@ -1863,10 +1841,8 @@ evaluate_subexp_for_address (exp, pos, noside)
*/
value_ptr
-evaluate_subexp_with_coercion (exp, pos, noside)
- register struct expression *exp;
- register int *pos;
- enum noside noside;
+evaluate_subexp_with_coercion (register struct expression *exp,
+ register int *pos, enum noside noside)
{
register enum exp_opcode op;
register int pc;
@@ -1902,9 +1878,7 @@ evaluate_subexp_with_coercion (exp, pos, noside)
Advance *POS over the subexpression. */
static value_ptr
-evaluate_subexp_for_sizeof (exp, pos)
- register struct expression *exp;
- register int *pos;
+evaluate_subexp_for_sizeof (register struct expression *exp, register int *pos)
{
enum exp_opcode op;
register int pc;
@@ -1954,9 +1928,7 @@ evaluate_subexp_for_sizeof (exp, pos)
/* Parse a type expression in the string [P..P+LENGTH). */
struct type *
-parse_and_eval_type (p, length)
- char *p;
- int length;
+parse_and_eval_type (char *p, int length)
{
char *tmp = (char *) alloca (length + 4);
struct expression *expr;
@@ -1972,8 +1944,7 @@ parse_and_eval_type (p, length)
}
int
-calc_f77_array_dims (array_type)
- struct type *array_type;
+calc_f77_array_dims (struct type *array_type)
{
int ndimen = 1;
struct type *tmp_type;
diff --git a/gdb/event-top.c b/gdb/event-top.c
index deb7df67..bc7e642 100644
--- a/gdb/event-top.c
+++ b/gdb/event-top.c
@@ -1016,8 +1016,7 @@ async_do_nothing (gdb_client_data arg)
/* Tell the event loop what to do if SIGHUP is received.
See event-signal.c. */
static void
-handle_sighup (sig)
- int sig;
+handle_sighup (int sig)
{
mark_async_signal_handler_wrapper (sighup_token);
signal (sig, handle_sighup);
diff --git a/gdb/exec.c b/gdb/exec.c
index f99cad9..2051d1e 100644
--- a/gdb/exec.c
+++ b/gdb/exec.c
@@ -95,8 +95,7 @@ struct vmap *vmap;
/* ARGSUSED */
static void
-exec_close (quitting)
- int quitting;
+exec_close (int quitting)
{
int need_symtab_cleanup = 0;
struct vmap *vp, *nxt;
@@ -168,9 +167,7 @@ exec_close (quitting)
we're supplying the exec pathname late for good reason.) */
void
-exec_file_attach (args, from_tty)
- char *args;
- int from_tty;
+exec_file_attach (char *args, int from_tty)
{
char **argv;
char *filename;
@@ -311,9 +308,7 @@ exec_file_attach (args, from_tty)
which can take multiple args. */
void
-exec_file_command (args, from_tty)
- char *args;
- int from_tty;
+exec_file_command (char *args, int from_tty)
{
target_preopen (from_tty);
exec_file_attach (args, from_tty);
@@ -324,9 +319,7 @@ exec_file_command (args, from_tty)
command was added? */
static void
-file_command (arg, from_tty)
- char *arg;
- int from_tty;
+file_command (char *arg, int from_tty)
{
/* FIXME, if we lose on reading the symbol file, we should revert
the exec file, but that's rough. */
@@ -342,10 +335,7 @@ file_command (arg, from_tty)
we cast it back to its proper type. */
static void
-add_to_section_table (abfd, asect, table_pp_char)
- bfd *abfd;
- sec_ptr asect;
- PTR table_pp_char;
+add_to_section_table (bfd *abfd, sec_ptr asect, PTR table_pp_char)
{
struct section_table **table_pp = (struct section_table **) table_pp_char;
flagword aflag;
@@ -366,9 +356,8 @@ add_to_section_table (abfd, asect, table_pp_char)
Returns 0 if OK, 1 on error. */
int
-build_section_table (some_bfd, start, end)
- bfd *some_bfd;
- struct section_table **start, **end;
+build_section_table (bfd *some_bfd, struct section_table **start,
+ struct section_table **end)
{
unsigned count;
@@ -385,10 +374,7 @@ build_section_table (some_bfd, start, end)
}
static void
-bfdsec_to_vmap (abfd, sect, arg3)
- bfd *abfd;
- sec_ptr sect;
- PTR arg3;
+bfdsec_to_vmap (bfd *abfd, sec_ptr sect, PTR arg3)
{
struct vmap_and_bfd *vmap_bfd = (struct vmap_and_bfd *) arg3;
struct vmap *vp;
@@ -418,9 +404,7 @@ bfdsec_to_vmap (abfd, sect, arg3)
Return the new vmap. */
struct vmap *
-map_vmap (abfd, arch)
- bfd *abfd;
- bfd *arch;
+map_vmap (bfd *abfd, bfd *arch)
{
struct vmap_and_bfd vmap_bfd;
struct vmap *vp, **vpp;
@@ -463,12 +447,8 @@ map_vmap (abfd, arch)
we just tail-call it with more arguments to select between them. */
int
-xfer_memory (memaddr, myaddr, len, write, target)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
- int write;
- struct target_ops *target;
+xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
+ struct target_ops *target)
{
boolean res;
struct section_table *p;
@@ -528,9 +508,7 @@ xfer_memory (memaddr, myaddr, len, write, target)
void
-print_section_info (t, abfd)
- struct target_ops *t;
- bfd *abfd;
+print_section_info (struct target_ops *t, bfd *abfd)
{
struct section_table *p;
@@ -561,8 +539,7 @@ print_section_info (t, abfd)
}
static void
-exec_files_info (t)
- struct target_ops *t;
+exec_files_info (struct target_ops *t)
{
print_section_info (t, exec_bfd);
@@ -596,10 +573,8 @@ exec_files_info (t)
in the exec objfile. */
void
-exec_set_section_offsets (text_off, data_off, bss_off)
- bfd_signed_vma text_off;
- bfd_signed_vma data_off;
- bfd_signed_vma bss_off;
+exec_set_section_offsets (bfd_signed_vma text_off, bfd_signed_vma data_off,
+ bfd_signed_vma bss_off)
{
struct section_table *sect;
@@ -630,9 +605,7 @@ exec_set_section_offsets (text_off, data_off, bss_off)
}
static void
-set_section_command (args, from_tty)
- char *args;
- int from_tty;
+set_section_command (char *args, int from_tty)
{
struct section_table *p;
char *secname;
@@ -676,9 +649,7 @@ set_section_command (args, from_tty)
breakpoint_init_inferior). */
static int
-ignore (addr, contents)
- CORE_ADDR addr;
- char *contents;
+ignore (CORE_ADDR addr, char *contents)
{
return 0;
}
@@ -687,7 +658,7 @@ ignore (addr, contents)
defined. */
void
-init_exec_ops ()
+init_exec_ops (void)
{
exec_ops.to_shortname = "exec";
exec_ops.to_longname = "Local exec file";
@@ -710,7 +681,7 @@ Specify the filename of the executable file.";
}
void
-_initialize_exec ()
+_initialize_exec (void)
{
struct cmd_list_element *c;
diff --git a/gdb/expprint.c b/gdb/expprint.c
index edf4f8c..a21b723 100644
--- a/gdb/expprint.c
+++ b/gdb/expprint.c
@@ -36,9 +36,7 @@ static void print_subexp (struct expression *, int *, struct ui_file *,
enum precedence);
void
-print_expression (exp, stream)
- struct expression *exp;
- struct ui_file *stream;
+print_expression (struct expression *exp, struct ui_file *stream)
{
int pc = 0;
print_subexp (exp, &pc, stream, PREC_NULL);
@@ -50,11 +48,8 @@ print_expression (exp, stream)
parentheses are needed here. */
static void
-print_subexp (exp, pos, stream, prec)
- register struct expression *exp;
- register int *pos;
- struct ui_file *stream;
- enum precedence prec;
+print_subexp (register struct expression *exp, register int *pos,
+ struct ui_file *stream, enum precedence prec)
{
register unsigned tem;
register const struct op_print *op_print_tab;
@@ -488,8 +483,7 @@ print_subexp (exp, pos, stream, prec)
a string. NULL indicates that the opcode was not found in the
current language table. */
char *
-op_string (op)
- enum exp_opcode op;
+op_string (enum exp_opcode op)
{
int tem;
register const struct op_print *op_print_tab;
@@ -507,8 +501,7 @@ op_string (op)
static char *op_name (int opcode);
static char *
-op_name (opcode)
- int opcode;
+op_name (int opcode)
{
switch (opcode)
{
@@ -693,10 +686,8 @@ op_name (opcode)
}
void
-dump_prefix_expression (exp, stream, note)
- struct expression *exp;
- struct ui_file *stream;
- char *note;
+dump_prefix_expression (struct expression *exp, struct ui_file *stream,
+ char *note)
{
int elt;
char *opcode_name;
@@ -740,10 +731,7 @@ static int dump_subexp (struct expression *exp, struct ui_file *stream,
int elt);
static int
-dump_subexp (exp, stream, elt)
- struct expression *exp;
- struct ui_file *stream;
- int elt;
+dump_subexp (struct expression *exp, struct ui_file *stream, int elt)
{
static int indent = 0;
int i;
@@ -973,10 +961,8 @@ dump_subexp (exp, stream, elt)
}
void
-dump_postfix_expression (exp, stream, note)
- struct expression *exp;
- struct ui_file *stream;
- char *note;
+dump_postfix_expression (struct expression *exp, struct ui_file *stream,
+ char *note)
{
int elt;
diff --git a/gdb/f-lang.c b/gdb/f-lang.c
index 7a5f861..d127a50 100644
--- a/gdb/f-lang.c
+++ b/gdb/f-lang.c
@@ -98,10 +98,7 @@ static void f_emit_char (int c, struct ui_file * stream, int quoter);
be replaced with a true F77 version. */
static void
-f_emit_char (c, stream, quoter)
- register int c;
- struct ui_file *stream;
- int quoter;
+f_emit_char (register int c, struct ui_file *stream, int quoter)
{
c &= 0xFF; /* Avoid sign bit follies */
@@ -147,9 +144,7 @@ f_emit_char (c, stream, quoter)
be replaced with a true F77version. */
static void
-f_printchar (c, stream)
- int c;
- struct ui_file *stream;
+f_printchar (int c, struct ui_file *stream)
{
fputs_filtered ("'", stream);
LA_EMIT_CHAR (c, stream, '\'');
@@ -164,12 +159,8 @@ f_printchar (c, stream)
be replaced with a true F77 version. */
static void
-f_printstr (stream, string, length, width, force_ellipses)
- struct ui_file *stream;
- char *string;
- unsigned int length;
- int width;
- int force_ellipses;
+f_printstr (struct ui_file *stream, char *string, unsigned int length,
+ int width, int force_ellipses)
{
register unsigned int i;
unsigned int things_printed = 0;
@@ -256,9 +247,7 @@ f_printstr (stream, string, length, width, force_ellipses)
by an experienced F77 programmer. */
static struct type *
-f_create_fundamental_type (objfile, typeid)
- struct objfile *objfile;
- int typeid;
+f_create_fundamental_type (struct objfile *objfile, int typeid)
{
register struct type *type = NULL;
@@ -493,7 +482,7 @@ const struct language_defn f_language_defn =
};
void
-_initialize_f_language ()
+_initialize_f_language (void)
{
builtin_type_f_void =
init_type (TYPE_CODE_VOID, 1,
@@ -576,7 +565,7 @@ _initialize_f_language ()
#if 0
static SAVED_BF_PTR
-allocate_saved_bf_node ()
+allocate_saved_bf_node (void)
{
SAVED_BF_PTR new;
@@ -585,7 +574,7 @@ allocate_saved_bf_node ()
}
static SAVED_FUNCTION *
-allocate_saved_function_node ()
+allocate_saved_function_node (void)
{
SAVED_FUNCTION *new;
@@ -594,7 +583,7 @@ allocate_saved_function_node ()
}
static SAVED_F77_COMMON_PTR
-allocate_saved_f77_common_node ()
+allocate_saved_f77_common_node (void)
{
SAVED_F77_COMMON_PTR new;
@@ -603,7 +592,7 @@ allocate_saved_f77_common_node ()
}
static COMMON_ENTRY_PTR
-allocate_common_entry_node ()
+allocate_common_entry_node (void)
{
COMMON_ENTRY_PTR new;
@@ -630,11 +619,7 @@ static SAVED_BF_PTR tmp_bf_ptr; /* Generic temporary for use
the global common block chain */
static void
-add_common_block (name, offset, secnum, func_stab)
- char *name;
- CORE_ADDR offset;
- int secnum;
- char *func_stab;
+add_common_block (char *name, CORE_ADDR offset, int secnum, char *func_stab)
{
SAVED_F77_COMMON_PTR tmp;
char *c, *local_copy_func_stab;
@@ -703,8 +688,7 @@ add_common_block (name, offset, secnum, func_stab)
#if 0
static void
-add_common_entry (entry_sym_ptr)
- struct symbol *entry_sym_ptr;
+add_common_entry (struct symbol *entry_sym_ptr)
{
COMMON_ENTRY_PTR tmp;
@@ -741,8 +725,7 @@ add_common_entry (entry_sym_ptr)
#if 0
static SAVED_F77_COMMON_PTR
-find_first_common_named (name)
- char *name;
+find_first_common_named (char *name)
{
SAVED_F77_COMMON_PTR tmp;
@@ -764,9 +747,7 @@ find_first_common_named (name)
that belongs to function funcname */
SAVED_F77_COMMON_PTR
-find_common_for_function (name, funcname)
- char *name;
- char *funcname;
+find_common_for_function (char *name, char *funcname)
{
SAVED_F77_COMMON_PTR tmp;
@@ -791,10 +772,7 @@ find_common_for_function (name, funcname)
"name." */
static void
-patch_common_entries (blk, offset, secnum)
- SAVED_F77_COMMON_PTR blk;
- CORE_ADDR offset;
- int secnum;
+patch_common_entries (SAVED_F77_COMMON_PTR blk, CORE_ADDR offset, int secnum)
{
COMMON_ENTRY_PTR entry;
@@ -819,10 +797,7 @@ patch_common_entries (blk, offset, secnum)
(which is where common data lives). */
static void
-patch_all_commons_by_name (name, offset, secnum)
- char *name;
- CORE_ADDR offset;
- int secnum;
+patch_all_commons_by_name (char *name, CORE_ADDR offset, int secnum)
{
SAVED_F77_COMMON_PTR tmp;
@@ -890,7 +865,7 @@ else \
#if 0
static void
-clear_bf_list ()
+clear_bf_list (void)
{
SAVED_BF_PTR tmp = saved_bf_list;
@@ -911,8 +886,7 @@ int global_remote_debug;
#if 0
static long
-get_bf_for_fcn (the_function)
- long the_function;
+get_bf_for_fcn (long the_function)
{
SAVED_BF_PTR tmp;
int nprobes = 0;
@@ -963,7 +937,7 @@ static SAVED_FUNCTION_PTR saved_function_list = NULL;
static SAVED_FUNCTION_PTR saved_function_list_end = NULL;
static void
-clear_function_list ()
+clear_function_list (void)
{
SAVED_FUNCTION_PTR tmp = saved_function_list;
SAVED_FUNCTION_PTR next = NULL;
diff --git a/gdb/f-typeprint.c b/gdb/f-typeprint.c
index db6e001..681b449 100644
--- a/gdb/f-typeprint.c
+++ b/gdb/f-typeprint.c
@@ -59,12 +59,8 @@ void f_type_print_base (struct type *, struct ui_file *, int, int);
/* LEVEL is the depth to indent lines by. */
void
-f_print_type (type, varstring, stream, show, level)
- struct type *type;
- char *varstring;
- struct ui_file *stream;
- int show;
- int level;
+f_print_type (struct type *type, char *varstring, struct ui_file *stream,
+ int show, int level)
{
register enum type_code code;
int demangled_args;
@@ -103,11 +99,8 @@ f_print_type (type, varstring, stream, show, level)
SHOW is always zero on recursive calls. */
void
-f_type_print_varspec_prefix (type, stream, show, passed_a_ptr)
- struct type *type;
- struct ui_file *stream;
- int show;
- int passed_a_ptr;
+f_type_print_varspec_prefix (struct type *type, struct ui_file *stream,
+ int show, int passed_a_ptr)
{
if (type == 0)
return;
@@ -161,9 +154,7 @@ f_type_print_varspec_prefix (type, stream, show, passed_a_ptr)
#if 0 /* Currently unused */
static void
-f_type_print_args (type, stream)
- struct type *type;
- struct ui_file *stream;
+f_type_print_args (struct type *type, struct ui_file *stream)
{
int i;
struct type **args;
@@ -201,12 +192,8 @@ f_type_print_args (type, stream)
Args work like c_type_print_varspec_prefix. */
static void
-f_type_print_varspec_suffix (type, stream, show, passed_a_ptr, demangled_args)
- struct type *type;
- struct ui_file *stream;
- int show;
- int passed_a_ptr;
- int demangled_args;
+f_type_print_varspec_suffix (struct type *type, struct ui_file *stream,
+ int show, int passed_a_ptr, int demangled_args)
{
int upper_bound, lower_bound;
int lower_bound_was_default = 0;
@@ -312,9 +299,7 @@ f_type_print_varspec_suffix (type, stream, show, passed_a_ptr, demangled_args)
}
static void
-print_equivalent_f77_float_type (type, stream)
- struct type *type;
- struct ui_file *stream;
+print_equivalent_f77_float_type (struct type *type, struct ui_file *stream)
{
/* Override type name "float" and make it the
appropriate real. XLC stupidly outputs -12 as a type
@@ -337,11 +322,8 @@ print_equivalent_f77_float_type (type, stream)
We increase it for some recursive calls. */
void
-f_type_print_base (type, stream, show, level)
- struct type *type;
- struct ui_file *stream;
- int show;
- int level;
+f_type_print_base (struct type *type, struct ui_file *stream, int show,
+ int level)
{
int retcode;
int upper_bound;
diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c
index a91766d..56b48dd 100644
--- a/gdb/f-valprint.c
+++ b/gdb/f-valprint.c
@@ -66,9 +66,7 @@ int f77_array_offset_tbl[MAX_FORTRAN_DIMS + 1][2];
#define F77_DIM_OFFSET(n) (f77_array_offset_tbl[n][0])
int
-f77_get_dynamic_lowerbound (type, lower_bound)
- struct type *type;
- int *lower_bound;
+f77_get_dynamic_lowerbound (struct type *type, int *lower_bound)
{
CORE_ADDR current_frame_addr;
CORE_ADDR ptr_to_lower_bound;
@@ -126,9 +124,7 @@ f77_get_dynamic_lowerbound (type, lower_bound)
}
int
-f77_get_dynamic_upperbound (type, upper_bound)
- struct type *type;
- int *upper_bound;
+f77_get_dynamic_upperbound (struct type *type, int *upper_bound)
{
CORE_ADDR current_frame_addr = 0;
CORE_ADDR ptr_to_upper_bound;
@@ -193,8 +189,7 @@ f77_get_dynamic_upperbound (type, upper_bound)
/* Obtain F77 adjustable array dimensions */
static void
-f77_get_dynamic_length_of_aggregate (type)
- struct type *type;
+f77_get_dynamic_length_of_aggregate (struct type *type)
{
int upper_bound = -1;
int lower_bound = 1;
@@ -232,9 +227,7 @@ f77_get_dynamic_length_of_aggregate (type)
type "type". */
static void
-f77_create_arrayprint_offset_tbl (type, stream)
- struct type *type;
- struct ui_file *stream;
+f77_create_arrayprint_offset_tbl (struct type *type, struct ui_file *stream)
{
struct type *tmp_type;
int eltlen;
@@ -281,18 +274,9 @@ f77_create_arrayprint_offset_tbl (type, stream)
the superior. Address == the address in the inferior. */
static void
-f77_print_array_1 (nss, ndimensions, type, valaddr, address,
- stream, format, deref_ref, recurse, pretty)
- int nss;
- int ndimensions;
- struct type *type;
- char *valaddr;
- CORE_ADDR address;
- struct ui_file *stream;
- int format;
- int deref_ref;
- int recurse;
- enum val_prettyprint pretty;
+f77_print_array_1 (int nss, int ndimensions, struct type *type, char *valaddr,
+ CORE_ADDR address, struct ui_file *stream, int format,
+ int deref_ref, int recurse, enum val_prettyprint pretty)
{
int i;
@@ -331,16 +315,9 @@ f77_print_array_1 (nss, ndimensions, type, valaddr, address,
stuff and then immediately call f77_print_array_1() */
static void
-f77_print_array (type, valaddr, address, stream, format, deref_ref, recurse,
- pretty)
- struct type *type;
- char *valaddr;
- CORE_ADDR address;
- struct ui_file *stream;
- int format;
- int deref_ref;
- int recurse;
- enum val_prettyprint pretty;
+f77_print_array (struct type *type, char *valaddr, CORE_ADDR address,
+ struct ui_file *stream, int format, int deref_ref, int recurse,
+ enum val_prettyprint pretty)
{
int ndimensions;
@@ -375,17 +352,9 @@ f77_print_array (type, valaddr, address, stream, format, deref_ref, recurse,
The PRETTY parameter controls prettyprinting. */
int
-f_val_print (type, valaddr, embedded_offset, address, stream, format, deref_ref, recurse,
- pretty)
- struct type *type;
- char *valaddr;
- int embedded_offset;
- CORE_ADDR address;
- struct ui_file *stream;
- int format;
- int deref_ref;
- int recurse;
- enum val_prettyprint pretty;
+f_val_print (struct type *type, char *valaddr, int embedded_offset,
+ CORE_ADDR address, struct ui_file *stream, int format,
+ int deref_ref, int recurse, enum val_prettyprint pretty)
{
register unsigned int i = 0; /* Number of characters printed */
struct type *elttype;
@@ -583,8 +552,7 @@ f_val_print (type, valaddr, embedded_offset, address, stream, format, deref_ref,
}
static void
-list_all_visible_commons (funname)
- char *funname;
+list_all_visible_commons (char *funname)
{
SAVED_F77_COMMON_PTR tmp;
@@ -606,9 +574,7 @@ list_all_visible_commons (funname)
given name */
static void
-info_common_command (comname, from_tty)
- char *comname;
- int from_tty;
+info_common_command (char *comname, int from_tty)
{
SAVED_F77_COMMON_PTR the_common;
COMMON_ENTRY_PTR entry;
@@ -703,8 +669,7 @@ info_common_command (comname, from_tty)
#if 0
static int
-there_is_a_visible_common_named (comname)
- char *comname;
+there_is_a_visible_common_named (char *comname)
{
SAVED_F77_COMMON_PTR the_common;
struct frame_info *fi;
@@ -764,7 +729,7 @@ there_is_a_visible_common_named (comname)
#endif
void
-_initialize_f_valprint ()
+_initialize_f_valprint (void)
{
add_info ("common", info_common_command,
"Print out the values contained in a Fortran COMMON block.");
diff --git a/gdb/findvar.c b/gdb/findvar.c
index a0baa47..002f3f3 100644
--- a/gdb/findvar.c
+++ b/gdb/findvar.c
@@ -388,8 +388,7 @@ store_floating (void *addr, int len, DOUBLEST val)
Caller will check return value or die! */
value_ptr
-value_of_register (regnum)
- int regnum;
+value_of_register (int regnum)
{
CORE_ADDR addr;
int optim;
@@ -460,8 +459,7 @@ address_to_signed_pointer (struct type *type, void *buf, CORE_ADDR addr)
up caring what frame it is being evaluated relative to? SYM must
be non-NULL. */
int
-symbol_read_needs_frame (sym)
- struct symbol *sym;
+symbol_read_needs_frame (struct symbol *sym)
{
switch (SYMBOL_CLASS (sym))
{
@@ -506,9 +504,7 @@ symbol_read_needs_frame (sym)
If FRAME is NULL, use the selected_frame. */
value_ptr
-read_var_value (var, frame)
- register struct symbol *var;
- struct frame_info *frame;
+read_var_value (register struct symbol *var, struct frame_info *frame)
{
register value_ptr v;
struct type *type = SYMBOL_TYPE (var);
@@ -713,10 +709,7 @@ addresses have not been bound by the dynamic loader. Try again when executable i
Caller will check return value or die! */
value_ptr
-value_from_register (type, regnum, frame)
- struct type *type;
- int regnum;
- struct frame_info *frame;
+value_from_register (struct type *type, int regnum, struct frame_info *frame)
{
char raw_buffer[MAX_REGISTER_RAW_SIZE];
CORE_ADDR addr;
@@ -961,9 +954,7 @@ value_from_register (type, regnum, frame)
address. */
value_ptr
-locate_var_value (var, frame)
- register struct symbol *var;
- struct frame_info *frame;
+locate_var_value (register struct symbol *var, struct frame_info *frame)
{
CORE_ADDR addr = 0;
struct type *type = SYMBOL_TYPE (var);
diff --git a/gdb/fork-child.c b/gdb/fork-child.c
index 0996fbd..ea5c33d 100644
--- a/gdb/fork-child.c
+++ b/gdb/fork-child.c
@@ -46,11 +46,7 @@ extern char **environ;
* the four arguments "a", "b", "c", "d".
*/
static void
-breakup_args (
- scratch,
- argv)
- char *scratch;
- char **argv;
+breakup_args (char *scratch, char **argv)
{
char *cp = scratch;
@@ -388,9 +384,7 @@ fork_inferior (exec_file, allargs, env, traceme_fun, init_trace_fun,
clone will set it TRUE.
*/
void
-clone_and_follow_inferior (child_pid, followed_child)
- int child_pid;
- int *followed_child;
+clone_and_follow_inferior (int child_pid, int *followed_child)
{
extern int auto_solib_add;
@@ -512,8 +506,7 @@ clone_and_follow_inferior (child_pid, followed_child)
/* Accept NTRAPS traps from the inferior. */
void
-startup_inferior (ntraps)
- int ntraps;
+startup_inferior (int ntraps)
{
int pending_execs = ntraps;
int terminal_initted;
diff --git a/gdb/fr30-tdep.c b/gdb/fr30-tdep.c
index c35201d..c6a4b12 100644
--- a/gdb/fr30-tdep.c
+++ b/gdb/fr30-tdep.c
@@ -32,8 +32,7 @@
/* An expression that tells us whether the function invocation represented
by FI does not have a frame on the stack associated with it. */
int
-fr30_frameless_function_invocation (fi)
- struct frame_info *fi;
+fr30_frameless_function_invocation (struct frame_info *fi)
{
int frameless;
CORE_ADDR func_start, after_prologue;
@@ -50,7 +49,7 @@ fr30_frameless_function_invocation (fi)
command, or the call dummy breakpoint gets hit. */
void
-fr30_pop_frame ()
+fr30_pop_frame (void)
{
struct frame_info *frame = get_current_frame ();
int regnum;
@@ -159,12 +158,8 @@ fr30_skip_prologue (CORE_ADDR pc)
*/
CORE_ADDR
-fr30_push_arguments (nargs, args, sp, struct_return, struct_addr)
- int nargs;
- value_ptr *args;
- CORE_ADDR sp;
- int struct_return;
- CORE_ADDR struct_addr;
+fr30_push_arguments (int nargs, value_ptr *args, CORE_ADDR sp,
+ int struct_return, CORE_ADDR struct_addr)
{
int argreg;
int argnum;
@@ -245,7 +240,7 @@ fr30_push_arguments (nargs, args, sp, struct_return, struct_addr)
void _initialize_fr30_tdep (void);
void
-_initialize_fr30_tdep ()
+_initialize_fr30_tdep (void)
{
extern int print_insn_fr30 (bfd_vma, disassemble_info *);
tm_print_insn = print_insn_fr30;
@@ -272,8 +267,7 @@ _initialize_fr30_tdep ()
static struct frame_info prologue_cache;
static int
-check_prologue_cache (fi)
- struct frame_info *fi;
+check_prologue_cache (struct frame_info *fi)
{
int i;
@@ -296,8 +290,7 @@ check_prologue_cache (fi)
*/
static void
-save_prologue_cache (fi)
- struct frame_info *fi;
+save_prologue_cache (struct frame_info *fi)
{
int i;
@@ -323,8 +316,7 @@ save_prologue_cache (fi)
be determined till after we have scanned the prologue. */
static void
-fr30_scan_prologue (fi)
- struct frame_info *fi;
+fr30_scan_prologue (struct frame_info *fi)
{
int sp_offset, fp_offset;
CORE_ADDR prologue_start, prologue_end, current_pc;
@@ -460,8 +452,7 @@ fr30_scan_prologue (fi)
pointer just prior to calling the target function (see run_stack_dummy). */
void
-fr30_init_extra_frame_info (fi)
- struct frame_info *fi;
+fr30_init_extra_frame_info (struct frame_info *fi)
{
int reg;
@@ -507,9 +498,7 @@ fr30_init_extra_frame_info (fi)
frame. */
CORE_ADDR
-fr30_find_callers_reg (fi, regnum)
- struct frame_info *fi;
- int regnum;
+fr30_find_callers_reg (struct frame_info *fi, int regnum)
{
for (; fi; fi = fi->next)
if (PC_IN_CALL_DUMMY (fi->pc, fi->frame, fi->frame))
@@ -531,8 +520,7 @@ fr30_find_callers_reg (fi, regnum)
CORE_ADDR
-fr30_frame_chain (fi)
- struct frame_info *fi;
+fr30_frame_chain (struct frame_info *fi)
{
CORE_ADDR fn_start, callers_pc, fp;
struct frame_info caller_fi;
@@ -580,8 +568,7 @@ fr30_frame_chain (fi)
will be found. */
CORE_ADDR
-fr30_frame_saved_pc (fi)
- struct frame_info *fi;
+fr30_frame_saved_pc (struct frame_info *fi)
{
if (PC_IN_CALL_DUMMY (fi->pc, fi->frame, fi->frame))
return generic_read_register_dummy (fi->pc, fi->frame, PC_REGNUM);
@@ -597,14 +584,8 @@ fr30_frame_saved_pc (fi)
*/
int
-fr30_fix_call_dummy (dummy, sp, fun, nargs, args, type, gcc_p)
- char *dummy;
- CORE_ADDR sp;
- CORE_ADDR fun;
- int nargs;
- value_ptr *args;
- struct type *type;
- int gcc_p;
+fr30_fix_call_dummy (char *dummy, CORE_ADDR sp, CORE_ADDR fun, int nargs,
+ value_ptr *args, struct type *type, int gcc_p)
{
long offset24;
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c
index 2eb4900..a32eafa 100644
--- a/gdb/gdbarch.c
+++ b/gdb/gdbarch.c
@@ -3693,8 +3693,7 @@ init_gdbarch_data (struct gdbarch *gdbarch)
data-pointer. */
void *
-gdbarch_data (data)
- struct gdbarch_data *data;
+gdbarch_data (struct gdbarch_data *data)
{
if (data->index >= current_gdbarch->nr_data)
internal_error ("gdbarch_data: request for non-existant data.");
@@ -4086,7 +4085,7 @@ disassemble_info tm_print_insn_info;
extern void _initialize_gdbarch (void);
void
-_initialize_gdbarch ()
+_initialize_gdbarch (void)
{
struct cmd_list_element *c;
diff --git a/gdb/gdbserver/gdbreplay.c b/gdb/gdbserver/gdbreplay.c
index 9e88a75..4fabf1d 100644
--- a/gdb/gdbserver/gdbreplay.c
+++ b/gdb/gdbserver/gdbreplay.c
@@ -41,8 +41,7 @@ static int remote_desc;
Then return to command level. */
void
-perror_with_name (string)
- char *string;
+perror_with_name (char *string)
{
#ifndef STDC_HEADERS
extern int sys_nerr;
@@ -63,11 +62,7 @@ perror_with_name (string)
}
static void
-sync_error (fp, desc, expect, got)
- FILE *fp;
- char *desc;
- int expect;
- int got;
+sync_error (FILE *fp, char *desc, int expect, int got)
{
fprintf (stderr, "\n%s\n", desc);
fprintf (stderr, "At logfile offset %ld, expected '0x%x' got '0x%x'\n",
@@ -77,7 +72,7 @@ sync_error (fp, desc, expect, got)
}
void
-remote_close ()
+remote_close (void)
{
close (remote_desc);
}
@@ -86,8 +81,7 @@ remote_close ()
NAME is the filename used for communication. */
void
-remote_open (name)
- char *name;
+remote_open (char *name)
{
extern char *strchr ();
@@ -159,8 +153,7 @@ remote_open (name)
}
static int
-tohex (ch)
- int ch;
+tohex (int ch)
{
if (ch >= '0' && ch <= '9')
{
@@ -180,8 +173,7 @@ tohex (ch)
}
static int
-logchar (fp)
- FILE *fp;
+logchar (FILE *fp)
{
int ch;
int ch2;
@@ -244,8 +236,7 @@ logchar (fp)
blank) up until a \n is read from fp (which is not matched) */
void
-expect (fp)
- FILE *fp;
+expect (FILE *fp)
{
int fromlog;
unsigned char fromgdb;
@@ -276,8 +267,7 @@ expect (fp)
\n is read from fp (which is discarded and not sent to gdb). */
void
-play (fp)
- FILE *fp;
+play (FILE *fp)
{
int fromlog;
char ch;
diff --git a/gdb/gdbserver/low-hppabsd.c b/gdb/gdbserver/low-hppabsd.c
index de78ad5..e85c0b2 100644
--- a/gdb/gdbserver/low-hppabsd.c
+++ b/gdb/gdbserver/low-hppabsd.c
@@ -58,9 +58,7 @@ int query ();
ENV is the environment vector to pass. */
int
-create_inferior (program, allargs)
- char *program;
- char **allargs;
+create_inferior (char *program, char **allargs)
{
int pid;
@@ -86,7 +84,7 @@ create_inferior (program, allargs)
/* Kill the inferior process. Make us have no inferior. */
void
-kill_inferior ()
+kill_inferior (void)
{
if (inferior_pid == 0)
return;
@@ -97,8 +95,7 @@ kill_inferior ()
/* Return nonzero if the given thread is still alive. */
int
-mythread_alive (pid)
- int pid;
+mythread_alive (int pid)
{
return 1;
}
@@ -106,8 +103,7 @@ mythread_alive (pid)
/* Wait for process, returns status */
unsigned char
-mywait (status)
- char *status;
+mywait (char *status)
{
int pid;
union wait w;
@@ -140,9 +136,7 @@ mywait (status)
If SIGNAL is nonzero, give it that signal. */
void
-myresume (step, signal)
- int step;
- int signal;
+myresume (int step, int signal)
{
errno = 0;
ptrace (step ? PT_STEP : PT_CONTINUE, inferior_pid, 1, signal, 0);
@@ -164,9 +158,7 @@ myresume (step, signal)
#endif
CORE_ADDR
-register_addr (regno, blockend)
- int regno;
- CORE_ADDR blockend;
+register_addr (int regno, CORE_ADDR blockend)
{
CORE_ADDR addr;
@@ -181,8 +173,7 @@ register_addr (regno, blockend)
/* Fetch one register. */
static void
-fetch_register (regno)
- int regno;
+fetch_register (int regno)
{
register unsigned int regaddr;
char buf[MAX_REGISTER_RAW_SIZE];
@@ -217,8 +208,7 @@ error_exit:;
/* Fetch all registers, or just one, from the child process. */
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
if (regno == -1 || regno == 0)
for (regno = 0; regno < NUM_REGS; regno++)
@@ -232,8 +222,7 @@ fetch_inferior_registers (regno)
Otherwise, REGNO specifies which register (so we can save time). */
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
register unsigned int regaddr;
char buf[80];
@@ -295,10 +284,7 @@ store_inferior_registers (regno)
/* Copy LEN bytes from inferior's memory starting at MEMADDR
to debugger memory starting at MYADDR. */
-read_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
register int i;
/* Round starting address down to longword boundary. */
@@ -325,10 +311,7 @@ read_inferior_memory (memaddr, myaddr, len)
returns the value of errno. */
int
-write_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+write_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
register int i;
/* Round starting address down to longword boundary. */
@@ -369,6 +352,6 @@ write_inferior_memory (memaddr, myaddr, len)
}
void
-initialize_low ()
+initialize_low (void)
{
}
diff --git a/gdb/gdbserver/low-linux.c b/gdb/gdbserver/low-linux.c
index 75b6085..7df5157 100644
--- a/gdb/gdbserver/low-linux.c
+++ b/gdb/gdbserver/low-linux.c
@@ -66,9 +66,7 @@ static void initialize_arch (void);
ENV is the environment vector to pass. */
int
-create_inferior (program, allargs)
- char *program;
- char **allargs;
+create_inferior (char *program, char **allargs)
{
int pid;
@@ -94,7 +92,7 @@ create_inferior (program, allargs)
/* Kill the inferior process. Make us have no inferior. */
void
-kill_inferior ()
+kill_inferior (void)
{
if (inferior_pid == 0)
return;
@@ -105,8 +103,7 @@ kill_inferior ()
/* Return nonzero if the given thread is still alive. */
int
-mythread_alive (pid)
- int pid;
+mythread_alive (int pid)
{
return 1;
}
@@ -114,8 +111,7 @@ mythread_alive (pid)
/* Wait for process, returns status */
unsigned char
-mywait (status)
- char *status;
+mywait (char *status)
{
int pid;
union wait w;
@@ -148,9 +144,7 @@ mywait (status)
If SIGNAL is nonzero, give it that signal. */
void
-myresume (step, signal)
- int step;
- int signal;
+myresume (int step, int signal)
{
errno = 0;
ptrace (step ? PTRACE_SINGLESTEP : PTRACE_CONT, inferior_pid, 1, signal);
@@ -191,7 +185,7 @@ int i386_register_raw_size[MAX_NUM_REGS] = {
int i386_register_byte[MAX_NUM_REGS];
static void
-initialize_arch ()
+initialize_arch (void)
{
/* Initialize the table saying where each register starts in the
register file. */
@@ -218,9 +212,7 @@ static int regmap[] =
};
int
-i386_register_u_addr (blockend, regnum)
- int blockend;
- int regnum;
+i386_register_u_addr (int blockend, int regnum)
{
#if 0
/* this will be needed if fp registers are reinstated */
@@ -242,7 +234,7 @@ i386_register_u_addr (blockend, regnum)
}
#elif defined(TARGET_M68K)
static void
-initialize_arch ()
+initialize_arch (void)
{
return;
}
@@ -270,9 +262,7 @@ static int regmap[] =
is stored. */
int
-m68k_linux_register_u_addr (blockend, regnum)
- int blockend;
- int regnum;
+m68k_linux_register_u_addr (int blockend, int regnum)
{
return (blockend + 4 * regmap[regnum]);
}
@@ -551,16 +541,14 @@ ia64_register_u_addr (int blockend, int regnum)
}
static void
-initialize_arch ()
+initialize_arch (void)
{
return;
}
#endif
CORE_ADDR
-register_addr (regno, blockend)
- int regno;
- CORE_ADDR blockend;
+register_addr (int regno, CORE_ADDR blockend)
{
CORE_ADDR addr;
@@ -575,8 +563,7 @@ register_addr (regno, blockend)
/* Fetch one register. */
static void
-fetch_register (regno)
- int regno;
+fetch_register (int regno)
{
CORE_ADDR regaddr;
register int i;
@@ -610,8 +597,7 @@ error_exit:;
/* Fetch all registers, or just one, from the child process. */
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
if (regno == -1 || regno == 0)
for (regno = 0; regno < NUM_REGS - NUM_FREGS; regno++)
@@ -625,8 +611,7 @@ fetch_inferior_registers (regno)
Otherwise, REGNO specifies which register (so we can save time). */
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
CORE_ADDR regaddr;
int i;
@@ -690,10 +675,7 @@ store_inferior_registers (regno)
to debugger memory starting at MYADDR. */
void
-read_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
register int i;
/* Round starting address down to longword boundary. */
@@ -722,10 +704,7 @@ read_inferior_memory (memaddr, myaddr, len)
returns the value of errno. */
int
-write_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+write_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
register int i;
/* Round starting address down to longword boundary. */
@@ -766,7 +745,7 @@ write_inferior_memory (memaddr, myaddr, len)
}
void
-initialize_low ()
+initialize_low (void)
{
initialize_arch ();
}
diff --git a/gdb/gdbserver/low-lynx.c b/gdb/gdbserver/low-lynx.c
index 6669565..d16201e 100644
--- a/gdb/gdbserver/low-lynx.c
+++ b/gdb/gdbserver/low-lynx.c
@@ -53,9 +53,7 @@ char *registers = my_registers;
ALLARGS is a vector of program-name and args. */
int
-create_inferior (program, allargs)
- char *program;
- char **allargs;
+create_inferior (char *program, char **allargs)
{
int pid;
@@ -91,7 +89,7 @@ create_inferior (program, allargs)
/* Kill the inferior process. Make us have no inferior. */
void
-kill_inferior ()
+kill_inferior (void)
{
if (inferior_pid == 0)
return;
@@ -103,8 +101,7 @@ kill_inferior ()
/* Return nonzero if the given thread is still alive. */
int
-mythread_alive (pid)
- int pid;
+mythread_alive (int pid)
{
/* Arggh. Apparently pthread_kill only works for threads within
the process that calls pthread_kill.
@@ -122,8 +119,7 @@ mythread_alive (pid)
/* Wait for process, returns status */
unsigned char
-mywait (status)
- char *status;
+mywait (char *status)
{
int pid;
union wait w;
@@ -186,9 +182,7 @@ mywait (status)
If SIGNAL is nonzero, give it that signal. */
void
-myresume (step, signal)
- int step;
- int signal;
+myresume (int step, int signal)
{
errno = 0;
ptrace (step ? PTRACE_SINGLESTEP_ONE : PTRACE_CONT,
@@ -352,8 +346,7 @@ static int regmap[] =
It also handles knows where to find the I & L regs on the stack. */
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
#if 0
int whatregs = 0;
@@ -457,8 +450,7 @@ fetch_inferior_registers (regno)
this point. */
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
#if 0
int whatregs = 0;
@@ -566,7 +558,7 @@ store_inferior_registers (regno)
saved context block. */
static unsigned long
-lynx_registers_addr ()
+lynx_registers_addr (void)
{
CORE_ADDR stblock;
int ecpoff = offsetof (st_t, ecp);
@@ -591,8 +583,7 @@ lynx_registers_addr ()
marking them as valid so we won't fetch them again. */
void
-fetch_inferior_registers (ignored)
- int ignored;
+fetch_inferior_registers (int ignored)
{
int regno;
unsigned long reg;
@@ -623,8 +614,7 @@ fetch_inferior_registers (ignored)
Otherwise, REGNO specifies which register (so we can save time). */
void
-store_inferior_registers (ignored)
- int ignored;
+store_inferior_registers (int ignored)
{
int regno;
unsigned long reg;
@@ -662,10 +652,7 @@ store_inferior_registers (ignored)
to debugger memory starting at MYADDR. */
void
-read_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
register int i;
/* Round starting address down to longword boundary. */
@@ -692,10 +679,7 @@ read_inferior_memory (memaddr, myaddr, len)
returns the value of errno. */
int
-write_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+write_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
register int i;
/* Round starting address down to longword boundary. */
@@ -748,6 +732,6 @@ ptrace (PTRACE_POKETEXT): errno=%d, pid=0x%x, addr=0x%x, buffer[i] = 0x%x\n",
}
void
-initialize_low ()
+initialize_low (void)
{
}
diff --git a/gdb/gdbserver/low-nbsd.c b/gdb/gdbserver/low-nbsd.c
index 4aa3409..32bfa78 100644
--- a/gdb/gdbserver/low-nbsd.c
+++ b/gdb/gdbserver/low-nbsd.c
@@ -89,7 +89,7 @@ int i386_register_raw_size[MAX_NUM_REGS] = {
int i386_register_byte[MAX_NUM_REGS];
static void
-initialize_arch()
+initialize_arch (void)
{
/* Initialize the table saying where each register starts in the
register file. */
@@ -108,7 +108,7 @@ initialize_arch()
#ifdef __powerpc__
static void
-initialize_arch()
+initialize_arch (void)
{
}
#endif /* !__powerpc__ */
@@ -119,9 +119,7 @@ initialize_arch()
ENV is the environment vector to pass. */
int
-create_inferior (program, allargs)
- char *program;
- char **allargs;
+create_inferior (char *program, char **allargs)
{
int pid;
@@ -147,7 +145,7 @@ create_inferior (program, allargs)
/* Kill the inferior process. Make us have no inferior. */
void
-kill_inferior ()
+kill_inferior (void)
{
if (inferior_pid == 0)
return;
@@ -158,8 +156,7 @@ kill_inferior ()
/* Return nonzero if the given thread is still alive. */
int
-mythread_alive (pid)
- int pid;
+mythread_alive (int pid)
{
return 1;
}
@@ -167,8 +164,7 @@ mythread_alive (pid)
/* Wait for process, returns status */
unsigned char
-mywait (status)
- char *status;
+mywait (char *status)
{
int pid;
int w;
@@ -201,9 +197,7 @@ mywait (status)
If SIGNAL is nonzero, give it that signal. */
void
-myresume (step, signal)
- int step;
- int signal;
+myresume (int step, int signal)
{
errno = 0;
ptrace (step ? PT_STEP : PT_CONTINUE, inferior_pid,
@@ -219,8 +213,7 @@ myresume (step, signal)
marking them as valid so we won't fetch them again. */
void
-fetch_inferior_registers (ignored)
- int ignored;
+fetch_inferior_registers (int ignored)
{
struct reg inferior_registers;
struct env387 inferior_fp_registers;
@@ -271,8 +264,7 @@ fetch_inferior_registers (ignored)
Otherwise, REGNO specifies which register (so we can save time). */
void
-store_inferior_registers (ignored)
- int ignored;
+store_inferior_registers (int ignored)
{
struct reg inferior_registers;
struct env387 inferior_fp_registers;
@@ -325,8 +317,7 @@ store_inferior_registers (ignored)
marking them as valid so we won't fetch them again. */
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
struct reg inferior_registers;
struct fpreg inferior_fp_registers;
@@ -354,8 +345,7 @@ fetch_inferior_registers (regno)
Otherwise, REGNO specifies which register (so we can save time). */
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
struct reg inferior_registers;
struct fpreg inferior_fp_registers;
@@ -388,10 +378,7 @@ store_inferior_registers (regno)
/* Copy LEN bytes from inferior's memory starting at MEMADDR
to debugger memory starting at MYADDR. */
-read_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
register int i;
/* Round starting address down to longword boundary. */
@@ -418,10 +405,7 @@ read_inferior_memory (memaddr, myaddr, len)
returns the value of errno. */
int
-write_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+write_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
register int i;
/* Round starting address down to longword boundary. */
@@ -462,7 +446,7 @@ write_inferior_memory (memaddr, myaddr, len)
}
void
-initialize_low ()
+initialize_low (void)
{
initialize_arch ();
}
diff --git a/gdb/gdbserver/low-sim.c b/gdb/gdbserver/low-sim.c
index 8d7c2e6..a0a9aa6 100644
--- a/gdb/gdbserver/low-sim.c
+++ b/gdb/gdbserver/low-sim.c
@@ -41,8 +41,7 @@ static SIM_DESC gdbsim_desc = 0;
does not support loading itself. */
static void
-generic_load (loadfile_bfd)
- bfd *loadfile_bfd;
+generic_load (bfd *loadfile_bfd)
{
asection *s;
@@ -85,9 +84,7 @@ generic_load (loadfile_bfd)
}
int
-create_inferior (program, argv)
- char *program;
- char **argv;
+create_inferior (char *program, char **argv)
{
bfd *abfd;
int pid = 0;
@@ -145,7 +142,7 @@ create_inferior (program, argv)
/* Kill the inferior process. Make us have no inferior. */
void
-kill_inferior ()
+kill_inferior (void)
{
sim_close (gdbsim_desc, 0);
default_callback.shutdown (&default_callback);
@@ -154,8 +151,7 @@ kill_inferior ()
/* Fetch one register. */
static void
-fetch_register (regno)
- int regno;
+fetch_register (int regno)
{
sim_fetch_register (gdbsim_desc, regno, &registers[REGISTER_BYTE (regno)],
REGISTER_RAW_SIZE (regno));
@@ -164,8 +160,7 @@ fetch_register (regno)
/* Fetch all registers, or just one, from the child process. */
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
if (regno == -1 || regno == 0)
for (regno = 0; regno < NUM_REGS /*-NUM_FREGS*/ ; regno++)
@@ -179,8 +174,7 @@ fetch_inferior_registers (regno)
Otherwise, REGNO specifies which register (so we can save time). */
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
if (regno == -1)
{
@@ -194,8 +188,7 @@ store_inferior_registers (regno)
/* Return nonzero if the given thread is still alive. */
int
-mythread_alive (pid)
- int pid;
+mythread_alive (int pid)
{
return 1;
}
@@ -203,8 +196,7 @@ mythread_alive (pid)
/* Wait for process, returns status */
unsigned char
-mywait (status)
- char *status;
+mywait (char *status)
{
int sigrc;
enum sim_stop reason;
@@ -240,9 +232,7 @@ mywait (status)
If SIGNAL is nonzero, give it that signal. */
void
-myresume (step, signo)
- int step;
- int signo;
+myresume (int step, int signo)
{
/* Should be using target_signal_to_host() or signal numbers in target.h
to convert GDB signal number to target signal number. */
@@ -253,10 +243,7 @@ myresume (step, signo)
to debugger memory starting at MYADDR. */
void
-read_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
sim_read (gdbsim_desc, memaddr, myaddr, len);
}
@@ -267,16 +254,13 @@ read_inferior_memory (memaddr, myaddr, len)
returns the value of errno. */
int
-write_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+write_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
sim_write (gdbsim_desc, memaddr, myaddr, len); /* should check for error. FIXME!! */
return 0;
}
void
-initialize_low ()
+initialize_low (void)
{
}
diff --git a/gdb/gdbserver/low-sparc.c b/gdb/gdbserver/low-sparc.c
index 178afc7..e667c2e 100644
--- a/gdb/gdbserver/low-sparc.c
+++ b/gdb/gdbserver/low-sparc.c
@@ -63,9 +63,7 @@ int query ();
ENV is the environment vector to pass. */
int
-create_inferior (program, allargs)
- char *program;
- char **allargs;
+create_inferior (char *program, char **allargs)
{
int pid;
@@ -91,7 +89,7 @@ create_inferior (program, allargs)
/* Kill the inferior process. Make us have no inferior. */
void
-kill_inferior ()
+kill_inferior (void)
{
if (inferior_pid == 0)
return;
@@ -102,8 +100,7 @@ kill_inferior ()
/* Return nonzero if the given thread is still alive. */
int
-mythread_alive (pid)
- int pid;
+mythread_alive (int pid)
{
return 1;
}
@@ -111,8 +108,7 @@ mythread_alive (pid)
/* Wait for process, returns status */
unsigned char
-mywait (status)
- char *status;
+mywait (char *status)
{
int pid;
union wait w;
@@ -145,9 +141,7 @@ mywait (status)
If SIGNAL is nonzero, give it that signal. */
void
-myresume (step, signal)
- int step;
- int signal;
+myresume (int step, int signal)
{
errno = 0;
ptrace (step ? PTRACE_SINGLESTEP : PTRACE_CONT, inferior_pid, 1, signal);
@@ -160,8 +154,7 @@ myresume (step, signal)
marking them as valid so we won't fetch them again. */
void
-fetch_inferior_registers (ignored)
- int ignored;
+fetch_inferior_registers (int ignored)
{
struct regs inferior_registers;
struct fp_status inferior_fp_registers;
@@ -207,8 +200,7 @@ fetch_inferior_registers (ignored)
Otherwise, REGNO specifies which register (so we can save time). */
void
-store_inferior_registers (ignored)
- int ignored;
+store_inferior_registers (int ignored)
{
struct regs inferior_registers;
struct fp_status inferior_fp_registers;
@@ -250,10 +242,7 @@ store_inferior_registers (ignored)
/* Copy LEN bytes from inferior's memory starting at MEMADDR
to debugger memory starting at MYADDR. */
-read_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
register int i;
/* Round starting address down to longword boundary. */
@@ -280,10 +269,7 @@ read_inferior_memory (memaddr, myaddr, len)
returns the value of errno. */
int
-write_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+write_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
register int i;
/* Round starting address down to longword boundary. */
@@ -324,6 +310,6 @@ write_inferior_memory (memaddr, myaddr, len)
}
void
-initialize_low ()
+initialize_low (void)
{
}
diff --git a/gdb/gdbserver/low-sun3.c b/gdb/gdbserver/low-sun3.c
index 71a151e..b20c2a8 100644
--- a/gdb/gdbserver/low-sun3.c
+++ b/gdb/gdbserver/low-sun3.c
@@ -60,9 +60,7 @@ int query ();
ENV is the environment vector to pass. */
int
-create_inferior (program, allargs)
- char *program;
- char **allargs;
+create_inferior (char *program, char **allargs)
{
int pid;
@@ -88,7 +86,7 @@ create_inferior (program, allargs)
/* Kill the inferior process. Make us have no inferior. */
void
-kill_inferior ()
+kill_inferior (void)
{
if (inferior_pid == 0)
return;
@@ -99,8 +97,7 @@ kill_inferior ()
/* Return nonzero if the given thread is still alive. */
int
-mythread_alive (pid)
- int pid;
+mythread_alive (int pid)
{
return 1;
}
@@ -108,8 +105,7 @@ mythread_alive (pid)
/* Wait for process, returns status */
unsigned char
-mywait (status)
- char *status;
+mywait (char *status)
{
int pid;
union wait w;
@@ -142,9 +138,7 @@ mywait (status)
If SIGNAL is nonzero, give it that signal. */
void
-myresume (step, signal)
- int step;
- int signal;
+myresume (int step, int signal)
{
errno = 0;
ptrace (step ? PTRACE_SINGLESTEP : PTRACE_CONT, inferior_pid, 1, signal);
@@ -157,8 +151,7 @@ myresume (step, signal)
marking them as valid so we won't fetch them again. */
void
-fetch_inferior_registers (ignored)
- int ignored;
+fetch_inferior_registers (int ignored)
{
struct regs inferior_registers;
struct fp_status inferior_fp_registers;
@@ -190,8 +183,7 @@ fetch_inferior_registers (ignored)
Otherwise, REGNO specifies which register (so we can save time). */
void
-store_inferior_registers (ignored)
- int ignored;
+store_inferior_registers (int ignored)
{
struct regs inferior_registers;
struct fp_status inferior_fp_registers;
@@ -229,10 +221,7 @@ store_inferior_registers (ignored)
/* Copy LEN bytes from inferior's memory starting at MEMADDR
to debugger memory starting at MYADDR. */
-read_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
register int i;
/* Round starting address down to longword boundary. */
@@ -259,10 +248,7 @@ read_inferior_memory (memaddr, myaddr, len)
returns the value of errno. */
int
-write_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+write_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
register int i;
/* Round starting address down to longword boundary. */
@@ -303,6 +289,6 @@ write_inferior_memory (memaddr, myaddr, len)
}
void
-initialize_low ()
+initialize_low (void)
{
}
diff --git a/gdb/gdbserver/remote-utils.c b/gdb/gdbserver/remote-utils.c
index 2b632d6..614466d 100644
--- a/gdb/gdbserver/remote-utils.c
+++ b/gdb/gdbserver/remote-utils.c
@@ -41,8 +41,7 @@ static int remote_desc;
NAME is the filename used for communication. */
void
-remote_open (name)
- char *name;
+remote_open (char *name)
{
int save_fcntl_flags;
@@ -162,7 +161,7 @@ remote_open (name)
}
void
-remote_close ()
+remote_close (void)
{
close (remote_desc);
}
@@ -170,8 +169,7 @@ remote_close ()
/* Convert hex digit A to a number. */
static int
-fromhex (a)
- int a;
+fromhex (int a)
{
if (a >= '0' && a <= '9')
return a - '0';
@@ -184,8 +182,7 @@ fromhex (a)
/* Convert number NIB to a hex digit. */
static int
-tohex (nib)
- int nib;
+tohex (int nib)
{
if (nib < 10)
return '0' + nib;
@@ -197,8 +194,7 @@ tohex (nib)
The data of the packet is in BUF. Returns >= 0 on success, -1 otherwise. */
int
-putpkt (buf)
- char *buf;
+putpkt (char *buf)
{
int i;
unsigned char csum = 0;
@@ -262,7 +258,7 @@ putpkt (buf)
will cause us to send a SIGINT to the child. */
static void
-input_interrupt ()
+input_interrupt (void)
{
int cc;
char c;
@@ -279,13 +275,13 @@ input_interrupt ()
}
void
-enable_async_io ()
+enable_async_io (void)
{
signal (SIGIO, input_interrupt);
}
void
-disable_async_io ()
+disable_async_io (void)
{
signal (SIGIO, SIG_IGN);
}
@@ -293,7 +289,7 @@ disable_async_io ()
/* Returns next char from remote GDB. -1 if error. */
static int
-readchar ()
+readchar (void)
{
static char buf[BUFSIZ];
static int bufcnt = 0;
@@ -323,8 +319,7 @@ readchar ()
and store it in BUF. Returns length of packet, or negative if error. */
int
-getpkt (buf)
- char *buf;
+getpkt (char *buf)
{
char *bp;
unsigned char csum, c1, c2;
@@ -380,8 +375,7 @@ getpkt (buf)
}
void
-write_ok (buf)
- char *buf;
+write_ok (char *buf)
{
buf[0] = 'O';
buf[1] = 'K';
@@ -389,8 +383,7 @@ write_ok (buf)
}
void
-write_enn (buf)
- char *buf;
+write_enn (char *buf)
{
buf[0] = 'E';
buf[1] = 'N';
@@ -399,9 +392,7 @@ write_enn (buf)
}
void
-convert_int_to_ascii (from, to, n)
- char *from, *to;
- int n;
+convert_int_to_ascii (char *from, char *to, int n)
{
int nib;
char ch;
@@ -418,9 +409,7 @@ convert_int_to_ascii (from, to, n)
void
-convert_ascii_to_int (from, to, n)
- char *from, *to;
- int n;
+convert_ascii_to_int (char *from, char *to, int n)
{
int nib1, nib2;
while (n--)
@@ -432,9 +421,7 @@ convert_ascii_to_int (from, to, n)
}
static char *
-outreg (regno, buf)
- int regno;
- char *buf;
+outreg (int regno, char *buf)
{
int regsize = REGISTER_RAW_SIZE (regno);
@@ -453,10 +440,7 @@ outreg (regno, buf)
}
void
-prepare_resume_reply (buf, status, signo)
- char *buf;
- char status;
- unsigned char signo;
+prepare_resume_reply (char *buf, char status, unsigned char signo)
{
int nib;
@@ -512,10 +496,7 @@ prepare_resume_reply (buf, status, signo)
}
void
-decode_m_packet (from, mem_addr_ptr, len_ptr)
- char *from;
- CORE_ADDR *mem_addr_ptr;
- unsigned int *len_ptr;
+decode_m_packet (char *from, CORE_ADDR *mem_addr_ptr, unsigned int *len_ptr)
{
int i = 0, j = 0;
char ch;
@@ -537,10 +518,8 @@ decode_m_packet (from, mem_addr_ptr, len_ptr)
}
void
-decode_M_packet (from, mem_addr_ptr, len_ptr, to)
- char *from, *to;
- CORE_ADDR *mem_addr_ptr;
- unsigned int *len_ptr;
+decode_M_packet (char *from, CORE_ADDR *mem_addr_ptr, unsigned int *len_ptr,
+ char *to)
{
int i = 0;
char ch;
diff --git a/gdb/gdbserver/utils.c b/gdb/gdbserver/utils.c
index 2603beb..2ad49e3 100644
--- a/gdb/gdbserver/utils.c
+++ b/gdb/gdbserver/utils.c
@@ -29,8 +29,7 @@
Then return to command level. */
void
-perror_with_name (string)
- char *string;
+perror_with_name (char *string)
{
#ifndef STDC_HEADERS
extern int sys_nerr;
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index 67e9a7e..3fee0cf 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -101,8 +101,7 @@ static void virtual_base_list_aux (struct type *dclass);
in that objfile's type_obstack. */
struct type *
-alloc_type (objfile)
- struct objfile *objfile;
+alloc_type (struct objfile *objfile)
{
register struct type *type;
@@ -136,9 +135,7 @@ alloc_type (objfile)
We allocate new memory if needed. */
struct type *
-make_pointer_type (type, typeptr)
- struct type *type;
- struct type **typeptr;
+make_pointer_type (struct type *type, struct type **typeptr)
{
register struct type *ntype; /* New type */
struct objfile *objfile;
@@ -194,8 +191,7 @@ make_pointer_type (type, typeptr)
May need to construct such a type if this is the first use. */
struct type *
-lookup_pointer_type (type)
- struct type *type;
+lookup_pointer_type (struct type *type)
{
return make_pointer_type (type, (struct type **) 0);
}
@@ -206,9 +202,7 @@ lookup_pointer_type (type)
We allocate new memory if needed. */
struct type *
-make_reference_type (type, typeptr)
- struct type *type;
- struct type **typeptr;
+make_reference_type (struct type *type, struct type **typeptr)
{
register struct type *ntype; /* New type */
struct objfile *objfile;
@@ -259,8 +253,7 @@ make_reference_type (type, typeptr)
/* Same as above, but caller doesn't care about memory allocation details. */
struct type *
-lookup_reference_type (type)
- struct type *type;
+lookup_reference_type (struct type *type)
{
return make_reference_type (type, (struct type **) 0);
}
@@ -271,9 +264,7 @@ lookup_reference_type (type)
We allocate new memory if needed. */
struct type *
-make_function_type (type, typeptr)
- struct type *type;
- struct type **typeptr;
+make_function_type (struct type *type, struct type **typeptr)
{
register struct type *ntype; /* New type */
struct objfile *objfile;
@@ -306,8 +297,7 @@ make_function_type (type, typeptr)
May need to construct such a type if this is the first use. */
struct type *
-lookup_function_type (type)
- struct type *type;
+lookup_function_type (struct type *type)
{
return make_function_type (type, (struct type **) 0);
}
@@ -324,11 +314,7 @@ lookup_function_type (type)
We allocate new memory if needed. */
struct type *
-make_cv_type (cnst, voltl, type, typeptr)
- int cnst;
- int voltl;
- struct type *type;
- struct type **typeptr;
+make_cv_type (int cnst, int voltl, struct type *type, struct type **typeptr)
{
register struct type *ntype; /* New type */
register struct type *tmp_type = type; /* tmp type */
@@ -402,9 +388,7 @@ make_cv_type (cnst, voltl, type, typeptr)
of the aggregate that the member belongs to. */
struct type *
-lookup_member_type (type, domain)
- struct type *type;
- struct type *domain;
+lookup_member_type (struct type *type, struct type *domain)
{
register struct type *mtype;
@@ -420,8 +404,7 @@ lookup_member_type (type, domain)
This always returns a fresh type. */
struct type *
-allocate_stub_method (type)
- struct type *type;
+allocate_stub_method (struct type *type)
{
struct type *mtype;
@@ -445,11 +428,8 @@ allocate_stub_method (type)
sure it is TYPE_CODE_UNDEF before we bash it into a range type? */
struct type *
-create_range_type (result_type, index_type, low_bound, high_bound)
- struct type *result_type;
- struct type *index_type;
- int low_bound;
- int high_bound;
+create_range_type (struct type *result_type, struct type *index_type,
+ int low_bound, int high_bound)
{
if (result_type == NULL)
{
@@ -481,9 +461,7 @@ create_range_type (result_type, index_type, low_bound, high_bound)
will fit in LONGEST), or -1 otherwise. */
int
-get_discrete_bounds (type, lowp, highp)
- struct type *type;
- LONGEST *lowp, *highp;
+get_discrete_bounds (struct type *type, LONGEST *lowp, LONGEST *highp)
{
CHECK_TYPEDEF (type);
switch (TYPE_CODE (type))
@@ -557,10 +535,8 @@ get_discrete_bounds (type, lowp, highp)
sure it is TYPE_CODE_UNDEF before we bash it into an array type? */
struct type *
-create_array_type (result_type, element_type, range_type)
- struct type *result_type;
- struct type *element_type;
- struct type *range_type;
+create_array_type (struct type *result_type, struct type *element_type,
+ struct type *range_type)
{
LONGEST low_bound, high_bound;
@@ -601,9 +577,7 @@ create_array_type (result_type, element_type, range_type)
sure it is TYPE_CODE_UNDEF before we bash it into a string type? */
struct type *
-create_string_type (result_type, range_type)
- struct type *result_type;
- struct type *range_type;
+create_string_type (struct type *result_type, struct type *range_type)
{
result_type = create_array_type (result_type,
*current_language->string_char_type,
@@ -613,9 +587,7 @@ create_string_type (result_type, range_type)
}
struct type *
-create_set_type (result_type, domain_type)
- struct type *result_type;
- struct type *domain_type;
+create_set_type (struct type *result_type, struct type *domain_type)
{
LONGEST low_bound, high_bound, bit_length;
if (result_type == NULL)
@@ -693,10 +665,8 @@ init_simd_type (char *name,
allocated. */
void
-smash_to_member_type (type, domain, to_type)
- struct type *type;
- struct type *domain;
- struct type *to_type;
+smash_to_member_type (struct type *type, struct type *domain,
+ struct type *to_type)
{
struct objfile *objfile;
@@ -718,11 +688,8 @@ smash_to_member_type (type, domain, to_type)
allocated. */
void
-smash_to_method_type (type, domain, to_type, args)
- struct type *type;
- struct type *domain;
- struct type *to_type;
- struct type **args;
+smash_to_method_type (struct type *type, struct type *domain,
+ struct type *to_type, struct type **args)
{
struct objfile *objfile;
@@ -741,8 +708,7 @@ smash_to_method_type (type, domain, to_type, args)
"union ", or "enum ". If the type has a NULL name, return NULL. */
char *
-type_name_no_tag (type)
- register const struct type *type;
+type_name_no_tag (register const struct type *type)
{
if (TYPE_TAG_NAME (type) != NULL)
return TYPE_TAG_NAME (type);
@@ -757,8 +723,7 @@ type_name_no_tag (type)
Return zero if NAME is not a primitive type. */
struct type *
-lookup_primitive_typename (name)
- char *name;
+lookup_primitive_typename (char *name)
{
struct type **const *p;
@@ -777,10 +742,7 @@ lookup_primitive_typename (name)
If NOERR is nonzero, return zero if NAME is not suitably defined. */
struct type *
-lookup_typename (name, block, noerr)
- char *name;
- struct block *block;
- int noerr;
+lookup_typename (char *name, struct block *block, int noerr)
{
register struct symbol *sym;
register struct type *tmp;
@@ -806,8 +768,7 @@ lookup_typename (name, block, noerr)
}
struct type *
-lookup_unsigned_typename (name)
- char *name;
+lookup_unsigned_typename (char *name)
{
char *uns = alloca (strlen (name) + 10);
@@ -817,8 +778,7 @@ lookup_unsigned_typename (name)
}
struct type *
-lookup_signed_typename (name)
- char *name;
+lookup_signed_typename (char *name)
{
struct type *t;
char *uns = alloca (strlen (name) + 8);
@@ -836,9 +796,7 @@ lookup_signed_typename (name)
visible in lexical block BLOCK. */
struct type *
-lookup_struct (name, block)
- char *name;
- struct block *block;
+lookup_struct (char *name, struct block *block)
{
register struct symbol *sym;
@@ -860,9 +818,7 @@ lookup_struct (name, block)
visible in lexical block BLOCK. */
struct type *
-lookup_union (name, block)
- char *name;
- struct block *block;
+lookup_union (char *name, struct block *block)
{
register struct symbol *sym;
struct type *t;
@@ -894,9 +850,7 @@ lookup_union (name, block)
visible in lexical block BLOCK. */
struct type *
-lookup_enum (name, block)
- char *name;
- struct block *block;
+lookup_enum (char *name, struct block *block)
{
register struct symbol *sym;
@@ -917,10 +871,7 @@ lookup_enum (name, block)
visible in lexical block BLOCK. */
struct type *
-lookup_template_type (name, type, block)
- char *name;
- struct type *type;
- struct block *block;
+lookup_template_type (char *name, struct type *type, struct block *block)
{
struct symbol *sym;
char *nam = (char *) alloca (strlen (name) + strlen (type->name) + 4);
@@ -953,10 +904,7 @@ lookup_template_type (name, type, block)
If NAME is the name of a baseclass type, return that type. */
struct type *
-lookup_struct_elt_type (type, name, noerr)
- struct type *type;
- char *name;
- int noerr;
+lookup_struct_elt_type (struct type *type, char *name, int noerr)
{
int i;
@@ -1038,8 +986,7 @@ lookup_struct_elt_type (type, name, noerr)
will remain NULL. */
void
-fill_in_vptr_fieldno (type)
- struct type *type;
+fill_in_vptr_fieldno (struct type *type)
{
CHECK_TYPEDEF (type);
@@ -1068,10 +1015,7 @@ fill_in_vptr_fieldno (type)
Return 1 if the destructor was found, otherwise, return 0. */
int
-get_destructor_fn_field (t, method_indexp, field_indexp)
- struct type *t;
- int *method_indexp;
- int *field_indexp;
+get_destructor_fn_field (struct type *t, int *method_indexp, int *field_indexp)
{
int i;
@@ -1110,8 +1054,7 @@ struct complaint stub_noname_complaint =
{"stub type has NULL name", 0, 0};
struct type *
-check_typedef (type)
- register struct type *type;
+check_typedef (register struct type *type)
{
struct type *orig_type = type;
while (TYPE_CODE (type) == TYPE_CODE_TYPEDEF)
@@ -1226,9 +1169,7 @@ check_typedef (type)
#define ADD_EXTRA(c) { pextras->str[pextras->len++]=c; }
static void
-add_name (pextras, n)
- struct extra *pextras;
- char *n;
+add_name (struct extra *pextras, char *n)
{
int nlen;
@@ -1239,9 +1180,7 @@ add_name (pextras, n)
}
static void
-add_mangled_type (pextras, t)
- struct extra *pextras;
- struct type *t;
+add_mangled_type (struct extra *pextras, struct type *t)
{
enum type_code tcode;
int tlen, tflags;
@@ -1371,10 +1310,7 @@ add_mangled_type (pextras, t)
#if 0
void
-cfront_mangle_name (type, i, j)
- struct type *type;
- int i;
- int j;
+cfront_mangle_name (struct type *type, int i, int j)
{
struct fn_field *f;
char *mangled_name = gdb_mangle_name (type, i, j);
@@ -1460,10 +1396,7 @@ safe_parse_type (char *p, int length)
the space required for them. */
void
-check_stub_method (type, method_id, signature_id)
- struct type *type;
- int method_id;
- int signature_id;
+check_stub_method (struct type *type, int method_id, int signature_id)
{
struct fn_field *f;
char *mangled_name = gdb_mangle_name (type, method_id, signature_id);
@@ -1568,8 +1501,7 @@ check_stub_method (type, method_id, signature_id)
const struct cplus_struct_type cplus_struct_default;
void
-allocate_cplus_struct_type (type)
- struct type *type;
+allocate_cplus_struct_type (struct type *type)
{
if (!HAVE_CPLUS_STRUCT (type))
{
@@ -1587,12 +1519,8 @@ allocate_cplus_struct_type (type)
in particular, where init_type is called with a NULL value for NAME). */
struct type *
-init_type (code, length, flags, name, objfile)
- enum type_code code;
- int length;
- int flags;
- char *name;
- struct objfile *objfile;
+init_type (enum type_code code, int length, int flags, char *name,
+ struct objfile *objfile)
{
register struct type *type;
@@ -1641,9 +1569,7 @@ init_type (code, length, flags, name, objfile)
struct type *
-lookup_fundamental_type (objfile, typeid)
- struct objfile *objfile;
- int typeid;
+lookup_fundamental_type (struct objfile *objfile, int typeid)
{
register struct type **typep;
register int nbytes;
@@ -1678,8 +1604,7 @@ lookup_fundamental_type (objfile, typeid)
}
int
-can_dereference (t)
- struct type *t;
+can_dereference (struct type *t)
{
/* FIXME: Should we return true for references as well as pointers? */
CHECK_TYPEDEF (t);
@@ -1690,8 +1615,7 @@ can_dereference (t)
}
int
-is_integral_type (t)
- struct type *t;
+is_integral_type (struct type *t)
{
CHECK_TYPEDEF (t);
return
@@ -1710,8 +1634,7 @@ is_integral_type (t)
Return true if TYPE is such a Chill varying type. */
int
-chill_varying_type (type)
- struct type *type;
+chill_varying_type (struct type *type)
{
if (TYPE_CODE (type) != TYPE_CODE_STRUCT
|| TYPE_NFIELDS (type) != 2
@@ -1727,9 +1650,7 @@ chill_varying_type (type)
the ancestor relationship even if they're identical */
int
-is_ancestor (base, dclass)
- struct type *base;
- struct type *dclass;
+is_ancestor (struct type *base, struct type *dclass)
{
int i;
@@ -1756,8 +1677,7 @@ is_ancestor (base, dclass)
runtime models. Return 1 => Yes, 0 => No. */
int
-has_vtable (dclass)
- struct type *dclass;
+has_vtable (struct type *dclass)
{
/* In the HP ANSI C++ runtime model, a class has a vtable only if it
has virtual functions or virtual bases. */
@@ -1799,8 +1719,7 @@ has_vtable (dclass)
and may not work with other runtime models. */
struct type *
-primary_base_class (dclass)
- struct type *dclass;
+primary_base_class (struct type *dclass)
{
/* In HP ANSI C++'s runtime model, a "primary base class" of a class
is the first directly inherited, non-virtual base class that
@@ -1832,8 +1751,7 @@ static struct vbase *current_vbase_list = NULL;
copies the items out in reverse order. */
static void
-virtual_base_list_aux (dclass)
- struct type *dclass;
+virtual_base_list_aux (struct type *dclass)
{
struct vbase *tmp_vbase;
register int i;
@@ -1891,8 +1809,7 @@ virtual_base_list_aux (dclass)
and then copies the result into an array to save space. */
struct type **
-virtual_base_list (dclass)
- struct type *dclass;
+virtual_base_list (struct type *dclass)
{
register struct vbase *tmp_vbase;
register struct vbase *tmp_vbase_2;
@@ -1929,8 +1846,7 @@ virtual_base_list (dclass)
/* Return the length of the virtual base list of the type DCLASS. */
int
-virtual_base_list_length (dclass)
- struct type *dclass;
+virtual_base_list_length (struct type *dclass)
{
register int i;
register struct vbase *tmp_vbase;
@@ -1948,8 +1864,7 @@ virtual_base_list_length (dclass)
primary base, recursively). */
int
-virtual_base_list_length_skip_primaries (dclass)
- struct type *dclass;
+virtual_base_list_length_skip_primaries (struct type *dclass)
{
register int i;
register struct vbase *tmp_vbase;
@@ -1978,9 +1893,7 @@ virtual_base_list_length_skip_primaries (dclass)
indicates "not found" or a problem. */
int
-virtual_base_index (base, dclass)
- struct type *base;
- struct type *dclass;
+virtual_base_index (struct type *base, struct type *dclass)
{
register struct type *vbase;
register int i;
@@ -2010,9 +1923,7 @@ virtual_base_index (base, dclass)
found" or a problem. */
int
-virtual_base_index_skip_primaries (base, dclass)
- struct type *base;
- struct type *dclass;
+virtual_base_index_skip_primaries (struct type *base, struct type *dclass)
{
register struct type *vbase;
register int i, j;
@@ -2044,8 +1955,7 @@ virtual_base_index_skip_primaries (base, dclass)
* Position returned is 0-based. */
int
-class_index_in_primary_list (dclass)
- struct type *dclass;
+class_index_in_primary_list (struct type *dclass)
{
struct type *pbc; /* primary base class */
@@ -2067,8 +1977,7 @@ class_index_in_primary_list (dclass)
*/
int
-count_virtual_fns (dclass)
- struct type *dclass;
+count_virtual_fns (struct type *dclass)
{
int fn, oi; /* function and overloaded instance indices */
int vfuncs; /* count to return */
@@ -2097,9 +2006,7 @@ count_virtual_fns (dclass)
* 3 => A is worse than B */
int
-compare_badness (a, b)
- struct badness_vector *a;
- struct badness_vector *b;
+compare_badness (struct badness_vector *a, struct badness_vector *b)
{
int i;
int tmp;
@@ -2142,11 +2049,7 @@ compare_badness (a, b)
* Return a pointer to a badness vector. This has NARGS + 1 entries. */
struct badness_vector *
-rank_function (parms, nparms, args, nargs)
- struct type **parms;
- int nparms;
- struct type **args;
- int nargs;
+rank_function (struct type **parms, int nparms, struct type **args, int nargs)
{
int i;
struct badness_vector *bv;
@@ -2187,9 +2090,7 @@ rank_function (parms, nparms, args, nargs)
* Generally the "bad" conversions are all uniformly assigned a 100 */
int
-rank_one_type (parm, arg)
- struct type *parm;
- struct type *arg;
+rank_one_type (struct type *parm, struct type *arg)
{
/* Identical type pointers */
/* However, this still doesn't catch all cases of same type for arg
@@ -2520,9 +2421,7 @@ rank_one_type (parm, arg)
/* End of functions for overload resolution */
static void
-print_bit_vector (bits, nbits)
- B_TYPE *bits;
- int nbits;
+print_bit_vector (B_TYPE *bits, int nbits)
{
int bitno;
@@ -2550,9 +2449,7 @@ print_bit_vector (bits, nbits)
include it since we may get into a infinitely recursive situation. */
static void
-print_arg_types (args, spaces)
- struct type **args;
- int spaces;
+print_arg_types (struct type **args, int spaces)
{
if (args != NULL)
{
@@ -2568,9 +2465,7 @@ print_arg_types (args, spaces)
}
static void
-dump_fn_fieldlists (type, spaces)
- struct type *type;
- int spaces;
+dump_fn_fieldlists (struct type *type, int spaces)
{
int method_idx;
int overload_idx;
@@ -2633,9 +2528,7 @@ dump_fn_fieldlists (type, spaces)
}
static void
-print_cplus_stuff (type, spaces)
- struct type *type;
- int spaces;
+print_cplus_stuff (struct type *type, int spaces)
{
printfi_filtered (spaces, "n_baseclasses %d\n",
TYPE_N_BASECLASSES (type));
@@ -2686,9 +2579,7 @@ print_cplus_stuff (type, spaces)
static struct obstack dont_print_type_obstack;
void
-recursive_dump_type (type, spaces)
- struct type *type;
- int spaces;
+recursive_dump_type (struct type *type, int spaces)
{
int idx;
@@ -2893,7 +2784,7 @@ recursive_dump_type (type, spaces)
static void build_gdbtypes (void);
static void
-build_gdbtypes ()
+build_gdbtypes (void)
{
builtin_type_void =
init_type (TYPE_CODE_VOID, 1,
@@ -3050,7 +2941,7 @@ build_gdbtypes ()
extern void _initialize_gdbtypes (void);
void
-_initialize_gdbtypes ()
+_initialize_gdbtypes (void)
{
struct cmd_list_element *c;
build_gdbtypes ();
diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c
index 243e264..ff56ffc 100644
--- a/gdb/gnu-nat.c
+++ b/gdb/gnu-nat.c
@@ -633,7 +633,7 @@ _proc_free (struct proc *proc)
struct inf *
-make_inf ()
+make_inf (void)
{
struct inf *inf = malloc (sizeof (struct inf));
@@ -1994,7 +1994,7 @@ gnu_resume (int tid, int step, enum target_signal sig)
static void
-gnu_kill_inferior ()
+gnu_kill_inferior (void)
{
struct proc *task = current_inferior->task;
if (task)
@@ -2008,7 +2008,7 @@ gnu_kill_inferior ()
/* Clean up after the inferior dies. */
static void
-gnu_mourn_inferior ()
+gnu_mourn_inferior (void)
{
inf_debug (current_inferior, "rip");
inf_detach (current_inferior);
@@ -2021,7 +2021,7 @@ gnu_mourn_inferior ()
/* Set INFERIOR_PID to the first thread available in the child, if any. */
static int
-inf_pick_first_thread ()
+inf_pick_first_thread (void)
{
if (current_inferior->task && current_inferior->threads)
/* The first thread. */
@@ -2032,7 +2032,7 @@ inf_pick_first_thread ()
}
static struct inf *
-cur_inf ()
+cur_inf (void)
{
if (!current_inferior)
current_inferior = make_inf ();
@@ -2040,10 +2040,7 @@ cur_inf ()
}
static void
-gnu_create_inferior (exec_file, allargs, env)
- char *exec_file;
- char *allargs;
- char **env;
+gnu_create_inferior (char *exec_file, char *allargs, char **env)
{
struct inf *inf = cur_inf ();
@@ -2099,7 +2096,7 @@ gnu_create_inferior (exec_file, allargs, env)
/* Mark our target-struct as eligible for stray "run" and "attach"
commands. */
static int
-gnu_can_run ()
+gnu_can_run (void)
{
return 1;
}
@@ -2110,9 +2107,7 @@ gnu_can_run ()
/* Attach to process PID, then initialize for debugging it
and wait for the trace-trap that results from attaching. */
static void
-gnu_attach (args, from_tty)
- char *args;
- int from_tty;
+gnu_attach (char *args, int from_tty)
{
int pid;
char *exec_file;
@@ -2174,9 +2169,7 @@ gnu_attach (args, from_tty)
previously attached. It *might* work if the program was
started via fork. */
static void
-gnu_detach (args, from_tty)
- char *args;
- int from_tty;
+gnu_detach (char *args, int from_tty)
{
if (from_tty)
{
@@ -2199,7 +2192,7 @@ gnu_detach (args, from_tty)
static void
-gnu_terminal_init_inferior ()
+gnu_terminal_init_inferior (void)
{
assert (current_inferior);
terminal_init_inferior_with_pgrp (current_inferior->pid);
@@ -2211,7 +2204,7 @@ gnu_terminal_init_inferior ()
that registers contains all the registers from the program being
debugged. */
static void
-gnu_prepare_to_store ()
+gnu_prepare_to_store (void)
{
#ifdef CHILD_PREPARE_TO_STORE
CHILD_PREPARE_TO_STORE ();
@@ -2219,21 +2212,19 @@ gnu_prepare_to_store ()
}
static void
-gnu_open (arg, from_tty)
- char *arg;
- int from_tty;
+gnu_open (char *arg, int from_tty)
{
error ("Use the \"run\" command to start a Unix child process.");
}
static void
-gnu_stop ()
+gnu_stop (void)
{
error ("to_stop target function not implemented");
}
static char *
-gnu_pid_to_exec_file ()
+gnu_pid_to_exec_file (void)
{
error ("to_pid_to_exec_file target function not implemented");
return NULL;
@@ -2252,11 +2243,7 @@ gnu_thread_alive (int tid)
gdb's address space. Return 0 on failure; number of bytes read
otherwise. */
int
-gnu_read_inferior (task, addr, myaddr, length)
- task_t task;
- CORE_ADDR addr;
- char *myaddr;
- int length;
+gnu_read_inferior (task_t task, CORE_ADDR addr, char *myaddr, int length)
{
error_t err;
vm_address_t low_address = (vm_address_t) trunc_page (addr);
@@ -2300,11 +2287,7 @@ struct obstack region_obstack;
/* Write gdb's LEN bytes from MYADDR and copy it to ADDR in inferior
task's address space. */
int
-gnu_write_inferior (task, addr, myaddr, length)
- task_t task;
- CORE_ADDR addr;
- char *myaddr;
- int length;
+gnu_write_inferior (task_t task, CORE_ADDR addr, char *myaddr, int length)
{
error_t err = 0;
vm_address_t low_address = (vm_address_t) trunc_page (addr);
@@ -2672,7 +2655,7 @@ check_empty (char *args, char *cmd_prefix)
/* Returns the alive thread named by INFERIOR_PID, or signals an error. */
static struct proc *
-cur_thread ()
+cur_thread (void)
{
struct inf *inf = cur_inf ();
struct proc *thread = inf_tid_to_thread (inf, inferior_pid);
@@ -2683,7 +2666,7 @@ cur_thread ()
/* Returns the current inferior, but signals an error if it has no task. */
static struct inf *
-active_inf ()
+active_inf (void)
{
struct inf *inf = cur_inf ();
if (!inf->task)
@@ -3361,8 +3344,7 @@ _initialize_gnu_nat (void)
end up looping in mysterious Bpt traps */
void
-flush_inferior_icache (pc, amount)
- CORE_ADDR pc;
+flush_inferior_icache (CORE_ADDR pc, int amount)
{
vm_machine_attribute_val_t flush = MATTR_VAL_ICACHE_FLUSH;
error_t ret;
diff --git a/gdb/h8300-tdep.c b/gdb/h8300-tdep.c
index af2530c..31abf59 100644
--- a/gdb/h8300-tdep.c
+++ b/gdb/h8300-tdep.c
@@ -72,8 +72,7 @@ static void set_machine_hook (char *filename);
void h8300_frame_find_saved_regs ();
CORE_ADDR
-h8300_skip_prologue (start_pc)
- CORE_ADDR start_pc;
+h8300_skip_prologue (CORE_ADDR start_pc)
{
short int w;
int adjust = 0;
@@ -143,9 +142,7 @@ h8300_skip_prologue (start_pc)
}
int
-gdb_print_insn_h8300 (memaddr, info)
- bfd_vma memaddr;
- disassemble_info *info;
+gdb_print_insn_h8300 (bfd_vma memaddr, disassemble_info *info)
{
if (h8300smode)
return print_insn_h8300s (memaddr, info);
@@ -163,8 +160,7 @@ gdb_print_insn_h8300 (memaddr, info)
the function prologue to determine the caller's sp value, and return it. */
CORE_ADDR
-h8300_frame_chain (thisframe)
- struct frame_info *thisframe;
+h8300_frame_chain (struct frame_info *thisframe)
{
if (PC_IN_CALL_DUMMY (thisframe->pc, thisframe->frame, thisframe->frame))
{ /* initialize the from_pc now */
@@ -187,9 +183,8 @@ h8300_frame_chain (thisframe)
fairly expensive. */
void
-h8300_frame_find_saved_regs (fi, fsr)
- struct frame_info *fi;
- struct frame_saved_regs *fsr;
+h8300_frame_find_saved_regs (struct frame_info *fi,
+ struct frame_saved_regs *fsr)
{
register struct frame_saved_regs *cache_fsr;
CORE_ADDR ip;
@@ -232,10 +227,7 @@ h8300_frame_find_saved_regs (fi, fsr)
of the instruction. */
CORE_ADDR
-NEXT_PROLOGUE_INSN (addr, lim, pword1)
- CORE_ADDR addr;
- CORE_ADDR lim;
- INSN_WORD *pword1;
+NEXT_PROLOGUE_INSN (CORE_ADDR addr, CORE_ADDR lim, INSN_WORD *pword1)
{
char buf[2];
if (addr < lim + 8)
@@ -258,12 +250,9 @@ NEXT_PROLOGUE_INSN (addr, lim, pword1)
to reflect the offsets of the arg pointer and the locals pointer. */
static CORE_ADDR
-examine_prologue (ip, limit, after_prolog_fp, fsr, fi)
- register CORE_ADDR ip;
- register CORE_ADDR limit;
- CORE_ADDR after_prolog_fp;
- struct frame_saved_regs *fsr;
- struct frame_info *fi;
+examine_prologue (register CORE_ADDR ip, register CORE_ADDR limit,
+ CORE_ADDR after_prolog_fp, struct frame_saved_regs *fsr,
+ struct frame_info *fi)
{
register CORE_ADDR next_ip;
int r;
@@ -416,9 +405,7 @@ examine_prologue (ip, limit, after_prolog_fp, fsr, fi)
}
void
-h8300_init_extra_frame_info (fromleaf, fi)
- int fromleaf;
- struct frame_info *fi;
+h8300_init_extra_frame_info (int fromleaf, struct frame_info *fi)
{
fi->fsr = 0; /* Not yet allocated */
fi->args_pointer = 0; /* Unknown */
@@ -436,8 +423,7 @@ h8300_init_extra_frame_info (fromleaf, fi)
just use the register SRP_REGNUM itself. */
CORE_ADDR
-h8300_frame_saved_pc (frame)
- struct frame_info *frame;
+h8300_frame_saved_pc (struct frame_info *frame)
{
if (PC_IN_CALL_DUMMY (frame->pc, frame->frame, frame->frame))
return generic_read_register_dummy (frame->pc, frame->frame, PC_REGNUM);
@@ -446,8 +432,7 @@ h8300_frame_saved_pc (frame)
}
CORE_ADDR
-frame_locals_address (fi)
- struct frame_info *fi;
+frame_locals_address (struct frame_info *fi)
{
if (PC_IN_CALL_DUMMY (fi->pc, fi->frame, fi->frame))
return (CORE_ADDR) 0; /* Not sure what else to do... */
@@ -465,8 +450,7 @@ frame_locals_address (fi)
described by FI. Returns 0 if the address is unknown. */
CORE_ADDR
-frame_args_address (fi)
- struct frame_info *fi;
+frame_args_address (struct frame_info *fi)
{
if (PC_IN_CALL_DUMMY (fi->pc, fi->frame, fi->frame))
return (CORE_ADDR) 0; /* Not sure what else to do... */
@@ -519,12 +503,8 @@ frame_args_address (fi)
the other arguments passed in via registers R0 to R2. */
CORE_ADDR
-h8300_push_arguments (nargs, args, sp, struct_return, struct_addr)
- int nargs;
- struct value **args;
- CORE_ADDR sp;
- unsigned char struct_return;
- CORE_ADDR struct_addr;
+h8300_push_arguments (int nargs, struct value **args, CORE_ADDR sp,
+ unsigned char struct_return, CORE_ADDR struct_addr)
{
int stack_align, stack_alloc, stack_offset;
int wordsize;
@@ -613,9 +593,7 @@ h8300_push_arguments (nargs, args, sp, struct_return, struct_addr)
a JSR/BSR instruction. */
CORE_ADDR
-h8300_push_return_address (pc, sp)
- CORE_ADDR pc;
- CORE_ADDR sp;
+h8300_push_return_address (CORE_ADDR pc, CORE_ADDR sp)
{
unsigned char buf[4];
int wordsize;
@@ -637,7 +615,7 @@ h8300_push_return_address (pc, sp)
call_function_by_hand after the dummy_frame is finished. */
void
-h8300_pop_frame ()
+h8300_pop_frame (void)
{
unsigned regnum;
struct frame_saved_regs fsr;
@@ -673,10 +651,7 @@ h8300_pop_frame ()
Copy that into VALBUF. Be sure to account for CPU type. */
void
-h8300_extract_return_value (type, regbuf, valbuf)
- struct type *type;
- char *regbuf;
- char *valbuf;
+h8300_extract_return_value (struct type *type, char *regbuf, char *valbuf)
{
int wordsize, len;
@@ -716,9 +691,7 @@ h8300_extract_return_value (type, regbuf, valbuf)
Primarily used by the RETURN command. */
void
-h8300_store_return_value (type, valbuf)
- struct type *type;
- char *valbuf;
+h8300_store_return_value (struct type *type, char *valbuf)
{
int wordsize, len, regval;
@@ -756,7 +729,7 @@ h8300_store_return_value (type, valbuf)
struct cmd_list_element *setmemorylist;
static void
-set_register_names ()
+set_register_names (void)
{
if (h8300hmode != 0)
h8300_register_names = h8300h_register_names;
@@ -765,7 +738,7 @@ set_register_names ()
}
static void
-h8300_command (args, from_tty)
+h8300_command (int args, int from_tty)
{
extern int h8300hmode;
h8300hmode = 0;
@@ -774,7 +747,7 @@ h8300_command (args, from_tty)
}
static void
-h8300h_command (args, from_tty)
+h8300h_command (int args, int from_tty)
{
extern int h8300hmode;
h8300hmode = 1;
@@ -783,7 +756,7 @@ h8300h_command (args, from_tty)
}
static void
-h8300s_command (args, from_tty)
+h8300s_command (int args, int from_tty)
{
extern int h8300smode;
extern int h8300hmode;
@@ -794,9 +767,7 @@ h8300s_command (args, from_tty)
static void
-set_machine (args, from_tty)
- char *args;
- int from_tty;
+set_machine (char *args, int from_tty)
{
printf_unfiltered ("\"set machine\" must be followed by h8300, h8300h");
printf_unfiltered ("or h8300s");
@@ -810,8 +781,7 @@ set_machine (args, from_tty)
to be 16 or 32 bits as appropriate for the machine. */
static void
-set_machine_hook (filename)
- char *filename;
+set_machine_hook (char *filename)
{
if (bfd_get_mach (exec_bfd) == bfd_mach_h8300s)
{
@@ -832,7 +802,7 @@ set_machine_hook (filename)
}
void
-_initialize_h8300m ()
+_initialize_h8300m (void)
{
add_prefix_cmd ("machine", no_class, set_machine,
"set the machine type",
@@ -856,7 +826,7 @@ _initialize_h8300m ()
void
-print_register_hook (regno)
+print_register_hook (int regno)
{
if (regno == 8)
{
@@ -901,7 +871,7 @@ print_register_hook (regno)
}
void
-_initialize_h8300_tdep ()
+_initialize_h8300_tdep (void)
{
tm_print_insn = gdb_print_insn_h8300;
}
diff --git a/gdb/h8500-tdep.c b/gdb/h8500-tdep.c
index b6ac28c..2cbe1e3 100644
--- a/gdb/h8500-tdep.c
+++ b/gdb/h8500-tdep.c
@@ -78,8 +78,7 @@ static int data_size = 2;
int minimum_mode = 1;
CORE_ADDR
-h8500_skip_prologue (start_pc)
- CORE_ADDR start_pc;
+h8500_skip_prologue (CORE_ADDR start_pc)
{
short int w;
@@ -100,8 +99,7 @@ h8500_skip_prologue (start_pc)
}
CORE_ADDR
-h8500_addr_bits_remove (addr)
- CORE_ADDR addr;
+h8500_addr_bits_remove (CORE_ADDR addr)
{
return ((addr) & 0xffffff);
}
@@ -114,8 +112,7 @@ h8500_addr_bits_remove (addr)
the function prologue to determine the caller's sp value, and return it. */
CORE_ADDR
-h8500_frame_chain (thisframe)
- struct frame_info *thisframe;
+h8500_frame_chain (struct frame_info *thisframe)
{
if (!inside_entry_file (thisframe->pc))
return (read_memory_integer (FRAME_FP (thisframe), PTR_SIZE));
@@ -129,10 +126,7 @@ h8500_frame_chain (thisframe)
of the instruction. */
CORE_ADDR
-NEXT_PROLOGUE_INSN (addr, lim, pword1)
- CORE_ADDR addr;
- CORE_ADDR lim;
- char *pword1;
+NEXT_PROLOGUE_INSN (CORE_ADDR addr, CORE_ADDR lim, char *pword1)
{
if (addr < lim + 8)
{
@@ -156,14 +150,13 @@ NEXT_PROLOGUE_INSN (addr, lim, pword1)
/* Return the saved PC from this frame. */
CORE_ADDR
-frame_saved_pc (frame)
- struct frame_info *frame;
+frame_saved_pc (struct frame_info *frame)
{
return read_memory_integer (FRAME_FP (frame) + 2, PTR_SIZE);
}
void
-h8500_pop_frame ()
+h8500_pop_frame (void)
{
unsigned regnum;
struct frame_saved_regs fsr;
@@ -181,8 +174,7 @@ h8500_pop_frame ()
}
void
-print_register_hook (regno)
- int regno;
+print_register_hook (int regno)
{
if (regno == CCR_REGNUM)
{
@@ -228,8 +220,7 @@ print_register_hook (regno)
}
int
-h8500_register_size (regno)
- int regno;
+h8500_register_size (int regno)
{
switch (regno)
{
@@ -265,8 +256,7 @@ h8500_register_size (regno)
}
struct type *
-h8500_register_virtual_type (regno)
- int regno;
+h8500_register_virtual_type (int regno)
{
switch (regno)
{
@@ -307,9 +297,8 @@ h8500_register_virtual_type (regno)
the address we return for it IS the sp for the next frame. */
void
-frame_find_saved_regs (frame_info, frame_saved_regs)
- struct frame_info *frame_info;
- struct frame_saved_regs *frame_saved_regs;
+frame_find_saved_regs (struct frame_info *frame_info,
+ struct frame_saved_regs *frame_saved_regs)
{
register int regnum;
register int regmask;
@@ -387,7 +376,7 @@ lose:;
}
CORE_ADDR
-saved_pc_after_call ()
+saved_pc_after_call (void)
{
int x;
int a = read_register (SP_REGNUM);
@@ -404,8 +393,7 @@ saved_pc_after_call ()
}
void
-h8500_set_pointer_size (newsize)
- int newsize;
+h8500_set_pointer_size (int newsize)
{
static int oldsize = 0;
@@ -426,7 +414,7 @@ h8500_set_pointer_size (newsize)
}
static void
-big_command ()
+big_command (void)
{
h8500_set_pointer_size (32);
code_size = 4;
@@ -434,7 +422,7 @@ big_command ()
}
static void
-medium_command ()
+medium_command (void)
{
h8500_set_pointer_size (32);
code_size = 4;
@@ -442,7 +430,7 @@ medium_command ()
}
static void
-compact_command ()
+compact_command (void)
{
h8500_set_pointer_size (32);
code_size = 2;
@@ -450,7 +438,7 @@ compact_command ()
}
static void
-small_command ()
+small_command (void)
{
h8500_set_pointer_size (16);
code_size = 2;
@@ -460,9 +448,7 @@ small_command ()
static struct cmd_list_element *setmemorylist;
static void
-set_memory (args, from_tty)
- char *args;
- int from_tty;
+set_memory (char *args, int from_tty)
{
printf_unfiltered ("\"set memory\" must be followed by the name of a memory subcommand.\n");
help_list (setmemorylist, "set memory ", -1, gdb_stdout);
@@ -471,8 +457,7 @@ set_memory (args, from_tty)
/* See if variable name is ppc or pr[0-7] */
int
-h8500_is_trapped_internalvar (name)
- char *name;
+h8500_is_trapped_internalvar (char *name)
{
if (name[0] != 'p')
return 0;
@@ -490,8 +475,7 @@ h8500_is_trapped_internalvar (name)
}
value_ptr
-h8500_value_of_trapped_internalvar (var)
- struct internalvar *var;
+h8500_value_of_trapped_internalvar (struct internalvar *var)
{
LONGEST regval;
unsigned char regbuf[4];
@@ -537,10 +521,8 @@ h8500_value_of_trapped_internalvar (var)
}
void
-h8500_set_trapped_internalvar (var, newval, bitpos, bitsize, offset)
- struct internalvar *var;
- int offset, bitpos, bitsize;
- value_ptr newval;
+h8500_set_trapped_internalvar (struct internalvar *var, value_ptr newval,
+ int bitpos, int bitsize, int offset)
{
char *page_regnum, *regnum;
char expression[100];
@@ -590,48 +572,43 @@ h8500_set_trapped_internalvar (var, newval, bitpos, bitsize, offset)
}
CORE_ADDR
-h8500_read_sp ()
+h8500_read_sp (void)
{
return read_register (PR7_REGNUM);
}
void
-h8500_write_sp (v)
- CORE_ADDR v;
+h8500_write_sp (CORE_ADDR v)
{
write_register (PR7_REGNUM, v);
}
CORE_ADDR
-h8500_read_pc (pid)
- int pid;
+h8500_read_pc (int pid)
{
return read_register (PC_REGNUM);
}
void
-h8500_write_pc (v, pid)
- CORE_ADDR v;
- int pid;
+h8500_write_pc (CORE_ADDR v, int pid)
{
write_register (PC_REGNUM, v);
}
CORE_ADDR
-h8500_read_fp ()
+h8500_read_fp (void)
{
return read_register (PR6_REGNUM);
}
void
-h8500_write_fp (v)
- CORE_ADDR v;
+h8500_write_fp (CORE_ADDR v)
{
write_register (PR6_REGNUM, v);
}
void
-_initialize_h8500_tdep ()
+_initialize_h8500_tdep (void)
{
tm_print_insn = print_insn_h8500;
diff --git a/gdb/hp-psymtab-read.c b/gdb/hp-psymtab-read.c
index f1aa475..db68c1f 100644
--- a/gdb/hp-psymtab-read.c
+++ b/gdb/hp-psymtab-read.c
@@ -72,8 +72,7 @@ static struct partial_symtab *hpread_end_psymtab
/* check for the existance of a file, given its full pathname */
int
-file_exists (filename)
- char *filename;
+file_exists (char *filename)
{
if (filename)
return (access (filename, F_OK) == 0);
@@ -84,8 +83,7 @@ file_exists (filename)
/* Translate from the "hp_language" enumeration in hp-symtab.h
used in the debug info to gdb's generic enumeration in defs.h. */
static enum language
-trans_lang (in_lang)
- enum hp_language in_lang;
+trans_lang (enum hp_language in_lang)
{
if (in_lang == HP_LANGUAGE_C)
return language_c;
@@ -112,8 +110,7 @@ static char main_string[] = "main";
Return value: 1 if ok, 0 if not */
int
-hpread_call_pxdb (file_name)
- char *file_name;
+hpread_call_pxdb (char *file_name)
{
char *p;
int status;
@@ -146,8 +143,7 @@ hpread_call_pxdb (file_name)
and the file therefore needs to be re-loaded. Otherwise
return 0. */
int
-hpread_pxdb_needed (sym_bfd)
- bfd *sym_bfd;
+hpread_pxdb_needed (bfd *sym_bfd)
{
asection *pinfo_section, *debug_section, *header_section;
unsigned int do_pxdb;
@@ -277,8 +273,7 @@ hpread_pxdb_needed (sym_bfd)
If so, call pxdb. */
void
-do_pxdb (sym_bfd)
- bfd *sym_bfd;
+do_pxdb (bfd *sym_bfd)
{
/* The following code is HP-specific. The "right" way of
doing this is unknown, but we bet would involve a target-
@@ -373,7 +368,7 @@ static boolean told_objfile = 0;
/* Set up psymtab symbol index stuff */
static void
-init_pst_syms ()
+init_pst_syms (void)
{
pst_syms_count = 0;
pst_syms_size = 20;
@@ -382,7 +377,7 @@ init_pst_syms ()
/* Clean up psymtab symbol index stuff */
static void
-clear_pst_syms ()
+clear_pst_syms (void)
{
pst_syms_count = 0;
pst_syms_size = 0;
@@ -392,9 +387,7 @@ clear_pst_syms ()
/* Add information about latest psymtab to symbol index table */
static void
-record_pst_syms (start_sym, end_sym)
- int start_sym;
- int end_sym;
+record_pst_syms (int start_sym, int end_sym)
{
if (++pst_syms_count > pst_syms_size)
{
@@ -416,8 +409,7 @@ record_pst_syms (start_sym, end_sym)
Return 0 => not found */
static int
-find_next_pst_start (index)
- int index;
+find_next_pst_start (int index)
{
int i;
@@ -442,11 +434,8 @@ find_next_pst_start (index)
Return 0 => not found */
static int
-find_next_file_isym (index, qFD, curr_fd, pxdb_header_p)
- int index;
- quick_file_entry *qFD;
- int curr_fd;
- PXDB_header_ptr pxdb_header_p;
+find_next_file_isym (int index, quick_file_entry *qFD, int curr_fd,
+ PXDB_header_ptr pxdb_header_p)
{
while (VALID_CURR_FILE)
{
@@ -464,11 +453,8 @@ find_next_file_isym (index, qFD, curr_fd, pxdb_header_p)
Return 0 => not found */
static int
-find_next_proc_isym (index, qPD, curr_pd, pxdb_header_p)
- int index;
- quick_procedure_entry *qPD;
- int curr_pd;
- PXDB_header_ptr pxdb_header_p;
+find_next_proc_isym (int index, quick_procedure_entry *qPD, int curr_pd,
+ PXDB_header_ptr pxdb_header_p)
{
while (VALID_CURR_PROC)
{
@@ -486,11 +472,8 @@ find_next_proc_isym (index, qPD, curr_pd, pxdb_header_p)
Return 0 => not found */
static int
-find_next_module_isym (index, qMD, curr_md, pxdb_header_p)
- int index;
- quick_module_entry *qMD;
- int curr_md;
- PXDB_header_ptr pxdb_header_p;
+find_next_module_isym (int index, quick_module_entry *qMD, int curr_md,
+ PXDB_header_ptr pxdb_header_p)
{
while (VALID_CURR_MODULE)
{
@@ -1348,9 +1331,7 @@ hpread_quick_traverse (objfile, gntt_bits, vt_bits, pxdb_header_p)
/* Get appropriate header, based on pxdb type.
Return value: 1 if ok, 0 if not */
int
-hpread_get_header (objfile, pxdb_header_p)
- struct objfile *objfile;
- PXDB_header_ptr pxdb_header_p;
+hpread_get_header (struct objfile *objfile, PXDB_header_ptr pxdb_header_p)
{
asection *pinfo_section, *debug_section, *header_section;
@@ -1468,8 +1449,7 @@ hpread_get_header (objfile, pxdb_header_p)
FIXME, there should be a cleaner peephole into the BFD environment
here. */
void
-hpread_symfile_init (objfile)
- struct objfile *objfile;
+hpread_symfile_init (struct objfile *objfile)
{
asection *vt_section, *slt_section, *lntt_section, *gntt_section;
@@ -1566,9 +1546,7 @@ hpread_symfile_init (objfile)
opposed to a shared lib or dynamically loaded file). */
void
-hpread_build_psymtabs (objfile, mainline)
- struct objfile *objfile;
- int mainline;
+hpread_build_psymtabs (struct objfile *objfile, int mainline)
{
#ifdef DUMPING
@@ -2091,8 +2069,7 @@ hpread_build_psymtabs (objfile, mainline)
objfile struct from the global list of known objfiles. */
void
-hpread_symfile_finish (objfile)
- struct objfile *objfile;
+hpread_symfile_finish (struct objfile *objfile)
{
if (objfile->sym_private != NULL)
{
@@ -2106,27 +2083,21 @@ hpread_symfile_finish (objfile)
/* Various small functions to get entries in the debug symbol sections. */
union dnttentry *
-hpread_get_lntt (index, objfile)
- int index;
- struct objfile *objfile;
+hpread_get_lntt (int index, struct objfile *objfile)
{
return (union dnttentry *)
&(LNTT (objfile)[(index * sizeof (struct dntt_type_block))]);
}
static union dnttentry *
-hpread_get_gntt (index, objfile)
- int index;
- struct objfile *objfile;
+hpread_get_gntt (int index, struct objfile *objfile)
{
return (union dnttentry *)
&(GNTT (objfile)[(index * sizeof (struct dntt_type_block))]);
}
union sltentry *
-hpread_get_slt (index, objfile)
- int index;
- struct objfile *objfile;
+hpread_get_slt (int index, struct objfile *objfile)
{
return (union sltentry *) &(SLT (objfile)[index * sizeof (union sltentry)]);
}
@@ -2137,11 +2108,8 @@ hpread_get_slt (index, objfile)
the existance of DNTT_TYPE_FUNCTION symbols. */
static unsigned long
-hpread_get_textlow (global, index, objfile, symcount)
- int global;
- int index;
- struct objfile *objfile;
- int symcount;
+hpread_get_textlow (int global, int index, struct objfile *objfile,
+ int symcount)
{
union dnttentry *dn_bufp;
struct minimal_symbol *msymbol;
@@ -2193,14 +2161,10 @@ hpread_get_textlow (global, index, objfile, symcount)
(normal). */
static struct partial_symtab *
-hpread_start_psymtab (objfile,
- filename, textlow, ldsymoff, global_syms, static_syms)
- struct objfile *objfile;
- char *filename;
- CORE_ADDR textlow;
- int ldsymoff;
- struct partial_symbol **global_syms;
- struct partial_symbol **static_syms;
+hpread_start_psymtab (struct objfile *objfile, char *filename,
+ CORE_ADDR textlow, int ldsymoff,
+ struct partial_symbol **global_syms,
+ struct partial_symbol **static_syms)
{
int offset = ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
extern void hpread_psymtab_to_symtab ();
@@ -2228,15 +2192,11 @@ hpread_start_psymtab (objfile,
FIXME: List variables and peculiarities of same. */
static struct partial_symtab *
-hpread_end_psymtab (pst, include_list, num_includes, capping_symbol_offset,
- capping_text, dependency_list, number_dependencies)
- struct partial_symtab *pst;
- char **include_list;
- int num_includes;
- int capping_symbol_offset;
- CORE_ADDR capping_text;
- struct partial_symtab **dependency_list;
- int number_dependencies;
+hpread_end_psymtab (struct partial_symtab *pst, char **include_list,
+ int num_includes, int capping_symbol_offset,
+ CORE_ADDR capping_text,
+ struct partial_symtab **dependency_list,
+ int number_dependencies)
{
int i;
struct objfile *objfile = pst->objfile;
diff --git a/gdb/hp-symtab-read.c b/gdb/hp-symtab-read.c
index e4c10f5..902a40d 100644
--- a/gdb/hp-symtab-read.c
+++ b/gdb/hp-symtab-read.c
@@ -169,9 +169,7 @@ static struct type *fixup_method = NULL;
/* Get the nesting depth for the source line identified by INDEX. */
static unsigned long
-hpread_get_scope_start (index, objfile)
- sltpointer index;
- struct objfile *objfile;
+hpread_get_scope_start (sltpointer index, struct objfile *objfile)
{
union sltentry *sl_bufp;
@@ -182,9 +180,7 @@ hpread_get_scope_start (index, objfile)
/* Get the source line number the the line identified by INDEX. */
static unsigned long
-hpread_get_line (index, objfile)
- sltpointer index;
- struct objfile *objfile;
+hpread_get_line (sltpointer index, struct objfile *objfile)
{
union sltentry *sl_bufp;
@@ -195,9 +191,7 @@ hpread_get_line (index, objfile)
/* Find the code address associated with a given sltpointer */
static CORE_ADDR
-hpread_get_location (index, objfile)
- sltpointer index;
- struct objfile *objfile;
+hpread_get_location (sltpointer index, struct objfile *objfile)
{
union sltentry *sl_bufp;
int i;
@@ -236,8 +230,7 @@ hpread_get_location (index, objfile)
*/
int
-hpread_has_name (kind)
- enum dntt_entry_type kind;
+hpread_has_name (enum dntt_entry_type kind)
{
switch (kind)
{
@@ -311,8 +304,7 @@ hpread_has_name (kind)
table. */
static void
-hpread_psymtab_to_symtab_1 (pst)
- struct partial_symtab *pst;
+hpread_psymtab_to_symtab_1 (struct partial_symtab *pst)
{
struct cleanup *old_chain;
int i;
@@ -370,8 +362,7 @@ hpread_psymtab_to_symtab_1 (pst)
Be verbose about it if the user wants that. */
void
-hpread_psymtab_to_symtab (pst)
- struct partial_symtab *pst;
+hpread_psymtab_to_symtab (struct partial_symtab *pst)
{
/* Get out quick if given junk. */
if (!pst)
@@ -427,15 +418,9 @@ hpread_psymtab_to_symtab (pst)
SECTION_OFFSETS are the relocation offsets which get added to each symbol. */
static struct symtab *
-hpread_expand_symtab (objfile, sym_offset, sym_size, text_offset, text_size,
- section_offsets, filename)
- struct objfile *objfile;
- int sym_offset;
- int sym_size;
- CORE_ADDR text_offset;
- int text_size;
- struct section_offsets *section_offsets;
- char *filename;
+hpread_expand_symtab (struct objfile *objfile, int sym_offset, int sym_size,
+ CORE_ADDR text_offset, int text_size,
+ struct section_offsets *section_offsets, char *filename)
{
char *namestring;
union dnttentry *dn_bufp;
@@ -540,8 +525,7 @@ hpread_expand_symtab (objfile, sym_offset, sym_size, text_offset, text_size,
/* Convert basic types from HP debug format into GDB internal format. */
static int
-hpread_type_translate (typep)
- dnttpointer typep;
+hpread_type_translate (dnttpointer typep)
{
if (!typep.dntti.immediate)
{
@@ -632,9 +616,7 @@ hpread_type_translate (typep)
*/
static struct type **
-hpread_lookup_type (hp_type, objfile)
- dnttpointer hp_type;
- struct objfile *objfile;
+hpread_lookup_type (dnttpointer hp_type, struct objfile *objfile)
{
unsigned old_len;
int index = hp_type.dnttp.index;
@@ -720,9 +702,7 @@ hpread_lookup_type (hp_type, objfile)
have it lying around. */
static struct type *
-hpread_alloc_type (hp_type, objfile)
- dnttpointer hp_type;
- struct objfile *objfile;
+hpread_alloc_type (dnttpointer hp_type, struct objfile *objfile)
{
struct type **type_addr;
@@ -744,10 +724,8 @@ hpread_alloc_type (hp_type, objfile)
/* Read a native enumerated type and return it in GDB internal form. */
static struct type *
-hpread_read_enum_type (hp_type, dn_bufp, objfile)
- dnttpointer hp_type;
- union dnttentry *dn_bufp;
- struct objfile *objfile;
+hpread_read_enum_type (dnttpointer hp_type, union dnttentry *dn_bufp,
+ struct objfile *objfile)
{
struct type *type;
struct pending **symlist, *osyms, *syms;
@@ -839,11 +817,8 @@ hpread_read_enum_type (hp_type, dn_bufp, objfile)
/* Read and internalize a native function debug symbol. */
static struct type *
-hpread_read_function_type (hp_type, dn_bufp, objfile, newblock)
- dnttpointer hp_type;
- union dnttentry *dn_bufp;
- struct objfile *objfile;
- int newblock;
+hpread_read_function_type (dnttpointer hp_type, union dnttentry *dn_bufp,
+ struct objfile *objfile, int newblock)
{
struct type *type, *type1;
struct pending *syms;
@@ -1025,11 +1000,8 @@ finish:
* volatile, please leave it this way.
*/
static struct type *
-hpread_read_doc_function_type (hp_type, dn_bufp, objfile, newblock)
- dnttpointer hp_type;
- union dnttentry *dn_bufp;
- struct objfile *objfile;
- int newblock;
+hpread_read_doc_function_type (dnttpointer hp_type, union dnttentry *dn_bufp,
+ struct objfile *objfile, int newblock)
{
struct type *type, *type1;
struct pending *syms;
@@ -1218,10 +1190,8 @@ static struct type *current_template = NULL;
*/
static struct type *
-hpread_read_struct_type (hp_type, dn_bufp, objfile)
- dnttpointer hp_type;
- union dnttentry *dn_bufp;
- struct objfile *objfile;
+hpread_read_struct_type (dnttpointer hp_type, union dnttentry *dn_bufp,
+ struct objfile *objfile)
{
/* The data members get linked together into a list of struct nextfield's */
struct nextfield
@@ -2059,10 +2029,8 @@ hpread_read_struct_type (hp_type, dn_bufp, objfile)
Void return */
static void
-fix_static_member_physnames (type, class_name, objfile)
- struct type *type;
- char *class_name;
- struct objfile *objfile;
+fix_static_member_physnames (struct type *type, char *class_name,
+ struct objfile *objfile)
{
int i;
@@ -2092,10 +2060,8 @@ fix_static_member_physnames (type, class_name, objfile)
* Void return. */
static void
-fixup_class_method_type (class, method, objfile)
- struct type *class;
- struct type *method;
- struct objfile *objfile;
+fixup_class_method_type (struct type *class, struct type *method,
+ struct objfile *objfile)
{
int i, j, k;
@@ -2156,9 +2122,7 @@ finish:
* This is called from hpread_type_lookup().
*/
static struct type *
-hpread_get_nth_template_arg (objfile, n)
- struct objfile *objfile;
- int n;
+hpread_get_nth_template_arg (struct objfile *objfile, int n)
{
if (current_template != NULL)
return TYPE_TEMPLATE_ARG (current_template, n).type;
@@ -2169,11 +2133,8 @@ hpread_get_nth_template_arg (objfile, n)
/* Read in and internalize a TEMPL_ARG (template arg) symbol. */
static struct type *
-hpread_read_templ_arg_type (hp_type, dn_bufp, objfile, name)
- dnttpointer hp_type;
- union dnttentry *dn_bufp;
- struct objfile *objfile;
- char *name;
+hpread_read_templ_arg_type (dnttpointer hp_type, union dnttentry *dn_bufp,
+ struct objfile *objfile, char *name)
{
struct type *type;
@@ -2193,10 +2154,8 @@ hpread_read_templ_arg_type (hp_type, dn_bufp, objfile, name)
/* Read in and internalize a set debug symbol. */
static struct type *
-hpread_read_set_type (hp_type, dn_bufp, objfile)
- dnttpointer hp_type;
- union dnttentry *dn_bufp;
- struct objfile *objfile;
+hpread_read_set_type (dnttpointer hp_type, union dnttentry *dn_bufp,
+ struct objfile *objfile)
{
struct type *type;
@@ -2217,10 +2176,8 @@ hpread_read_set_type (hp_type, dn_bufp, objfile)
/* Read in and internalize an array debug symbol. */
static struct type *
-hpread_read_array_type (hp_type, dn_bufp, objfile)
- dnttpointer hp_type;
- union dnttentry *dn_bufp;
- struct objfile *objfile;
+hpread_read_array_type (dnttpointer hp_type, union dnttentry *dn_bufp,
+ struct objfile *objfile)
{
struct type *type;
@@ -2277,10 +2234,8 @@ hpread_read_array_type (hp_type, dn_bufp, objfile)
/* Read in and internalize a subrange debug symbol. */
static struct type *
-hpread_read_subrange_type (hp_type, dn_bufp, objfile)
- dnttpointer hp_type;
- union dnttentry *dn_bufp;
- struct objfile *objfile;
+hpread_read_subrange_type (dnttpointer hp_type, union dnttentry *dn_bufp,
+ struct objfile *objfile)
{
struct type *type;
@@ -2340,9 +2295,7 @@ hpread_read_subrange_type (hp_type, dn_bufp, objfile)
* a struct/class type, etc).
*/
static struct type *
-hpread_type_lookup (hp_type, objfile)
- dnttpointer hp_type;
- struct objfile *objfile;
+hpread_type_lookup (dnttpointer hp_type, struct objfile *objfile)
{
union dnttentry *dn_bufp;
struct type *tmp_type;
@@ -2701,11 +2654,9 @@ hpread_type_lookup (hp_type, objfile)
}
static sltpointer
-hpread_record_lines (subfile, s_idx, e_idx, objfile, offset)
- struct subfile *subfile;
- sltpointer s_idx, e_idx;
- struct objfile *objfile;
- CORE_ADDR offset;
+hpread_record_lines (struct subfile *subfile, sltpointer s_idx,
+ sltpointer e_idx, struct objfile *objfile,
+ CORE_ADDR offset)
{
union sltentry *sl_bufp;
@@ -2733,8 +2684,7 @@ hpread_record_lines (subfile, s_idx, e_idx, objfile, offset)
* If "f" is not a member function, return NULL.
*/
char *
-class_of (functype)
- struct type *functype;
+class_of (struct type *functype)
{
struct type *first_param_type;
char *first_param_name;
@@ -2794,19 +2744,11 @@ class_of (functype)
*/
static void
-hpread_process_one_debug_symbol (dn_bufp, name, section_offsets, objfile,
- text_offset, text_size, filename,
- index, at_module_boundary_p
-)
- union dnttentry *dn_bufp;
- char *name;
- struct section_offsets *section_offsets;
- struct objfile *objfile;
- CORE_ADDR text_offset;
- int text_size;
- char *filename;
- int index;
- int *at_module_boundary_p;
+hpread_process_one_debug_symbol (union dnttentry *dn_bufp, char *name,
+ struct section_offsets *section_offsets,
+ struct objfile *objfile, CORE_ADDR text_offset,
+ int text_size, char *filename, int index,
+ int *at_module_boundary_p)
{
unsigned long desc;
int type;
@@ -3916,10 +3858,8 @@ hpread_process_one_debug_symbol (dn_bufp, name, section_offsets, objfile,
static int
-hpread_get_scope_depth (dn_bufp, objfile, report_nested)
- union dnttentry *dn_bufp;
- struct objfile *objfile;
- int report_nested;
+hpread_get_scope_depth (union dnttentry *dn_bufp, struct objfile *objfile,
+ int report_nested)
{
register int index;
register union dnttentry *dn_tmp;
@@ -3964,9 +3904,7 @@ hpread_get_scope_depth (dn_bufp, objfile, report_nested)
enclosing structure instead of relative to the union itself. */
static void
-hpread_adjust_bitoffsets (type, bits)
- struct type *type;
- int bits;
+hpread_adjust_bitoffsets (struct type *type, int bits)
{
register int i;
@@ -4000,11 +3938,9 @@ hpread_adjust_bitoffsets (type, bits)
is a dnttpointer for the new field after all the skipped ones */
static dnttpointer
-hpread_get_next_skip_over_anon_unions (skip_fields, field, fieldp, objfile)
- int skip_fields;
- dnttpointer field;
- union dnttentry **fieldp;
- struct objfile *objfile;
+hpread_get_next_skip_over_anon_unions (int skip_fields, dnttpointer field,
+ union dnttentry **fieldp,
+ struct objfile *objfile)
{
struct type *anon_type;
register int i;
diff --git a/gdb/hp300ux-nat.c b/gdb/hp300ux-nat.c
index 6a01e33..ca0a802 100644
--- a/gdb/hp300ux-nat.c
+++ b/gdb/hp300ux-nat.c
@@ -60,7 +60,7 @@ static struct hpnlist nl[] =
/* read the value of the u area from the hp-ux kernel */
void
-_initialize_hp300ux_nat ()
+_initialize_hp300ux_nat (void)
{
#ifndef HPUX_VERSION_5
nlist ("/hp-ux", nl);
@@ -77,9 +77,7 @@ _initialize_hp300ux_nat ()
- kernel_u_addr)
static void
-fetch_inferior_register (regno, regaddr)
- register int regno;
- register unsigned int regaddr;
+fetch_inferior_register (register int regno, register unsigned int regaddr)
{
#ifndef HPUX_VERSION_5
if (regno == PS_REGNUM)
@@ -115,10 +113,7 @@ fetch_inferior_register (regno, regaddr)
}
static void
-store_inferior_register_1 (regno, regaddr, val)
- int regno;
- unsigned int regaddr;
- int val;
+store_inferior_register_1 (int regno, unsigned int regaddr, int val)
{
errno = 0;
ptrace (PT_WUAREA, inferior_pid, (PTRACE_ARG3_TYPE) regaddr, val, 0);
@@ -137,9 +132,7 @@ store_inferior_register_1 (regno, regaddr, val)
}
static void
-store_inferior_register (regno, regaddr)
- register int regno;
- register unsigned int regaddr;
+store_inferior_register (register int regno, register unsigned int regaddr)
{
#ifndef HPUX_VERSION_5
if (regno == PS_REGNUM)
@@ -173,8 +166,7 @@ store_inferior_register (regno, regaddr)
}
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
struct user u;
register unsigned int ar0_offset;
@@ -199,8 +191,7 @@ fetch_inferior_registers (regno)
Otherwise, REGNO specifies which register (so we can save time). */
void
-store_inferior_registers (regno)
- register int regno;
+store_inferior_registers (register int regno)
{
struct user u;
register unsigned int ar0_offset;
@@ -226,7 +217,7 @@ store_inferior_registers (regno)
}
int
-getpagesize ()
+getpagesize (void)
{
return 4096;
}
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index 20ad6c0..ad81ebe 100644
--- a/gdb/hppa-tdep.c
+++ b/gdb/hppa-tdep.c
@@ -150,9 +150,7 @@ extern value_ptr find_function_in_inferior (char *);
/* Should call_function allocate stack space for a struct return? */
int
-hppa_use_struct_convention (gcc_p, type)
- int gcc_p;
- struct type *type;
+hppa_use_struct_convention (int gcc_p, struct type *type)
{
return (TYPE_LENGTH (type) > 2 * REGISTER_SIZE);
}
@@ -165,8 +163,7 @@ hppa_use_struct_convention (gcc_p, type)
value. */
static int
-sign_extend (val, bits)
- unsigned val, bits;
+sign_extend (unsigned val, unsigned bits)
{
return (int) (val >> (bits - 1) ? (-1 << bits) | val : val);
}
@@ -174,8 +171,7 @@ sign_extend (val, bits)
/* For many immediate values the sign bit is the low bit! */
static int
-low_sign_extend (val, bits)
- unsigned val, bits;
+low_sign_extend (unsigned val, unsigned bits)
{
return (int) ((val & 0x1 ? (-1 << (bits - 1)) : 0) | val >> 1);
}
@@ -183,8 +179,7 @@ low_sign_extend (val, bits)
/* extract the immediate field from a ld{bhw}s instruction */
static int
-extract_5_load (word)
- unsigned word;
+extract_5_load (unsigned word)
{
return low_sign_extend (word >> 16 & MASK_5, 5);
}
@@ -192,8 +187,7 @@ extract_5_load (word)
/* extract the immediate field from a break instruction */
static unsigned
-extract_5r_store (word)
- unsigned word;
+extract_5r_store (unsigned word)
{
return (word & MASK_5);
}
@@ -201,8 +195,7 @@ extract_5r_store (word)
/* extract the immediate field from a {sr}sm instruction */
static unsigned
-extract_5R_store (word)
- unsigned word;
+extract_5R_store (unsigned word)
{
return (word >> 16 & MASK_5);
}
@@ -210,8 +203,7 @@ extract_5R_store (word)
/* extract a 14 bit immediate field */
static int
-extract_14 (word)
- unsigned word;
+extract_14 (unsigned word)
{
return low_sign_extend (word & MASK_14, 14);
}
@@ -219,9 +211,7 @@ extract_14 (word)
/* deposit a 14 bit constant in a word */
static unsigned
-deposit_14 (opnd, word)
- int opnd;
- unsigned word;
+deposit_14 (int opnd, unsigned word)
{
unsigned sign = (opnd < 0 ? 1 : 0);
@@ -231,8 +221,7 @@ deposit_14 (opnd, word)
/* extract a 21 bit constant */
static int
-extract_21 (word)
- unsigned word;
+extract_21 (unsigned word)
{
int val;
@@ -255,8 +244,7 @@ extract_21 (word)
the low 21 bits of opnd are relevant */
static unsigned
-deposit_21 (opnd, word)
- unsigned opnd, word;
+deposit_21 (unsigned opnd, unsigned word)
{
unsigned val = 0;
@@ -276,8 +264,7 @@ deposit_21 (opnd, word)
19 bit signed value. */
static int
-extract_17 (word)
- unsigned word;
+extract_17 (unsigned word)
{
return sign_extend (GET_FIELD (word, 19, 28) |
GET_FIELD (word, 29, 29) << 10 |
@@ -291,9 +278,7 @@ extract_17 (word)
larger than the first, and zero if they are equal. */
static int
-compare_unwind_entries (arg1, arg2)
- const void *arg1;
- const void *arg2;
+compare_unwind_entries (const void *arg1, const void *arg2)
{
const struct unwind_table_entry *a = arg1;
const struct unwind_table_entry *b = arg2;
@@ -321,12 +306,9 @@ record_text_segment_lowaddr (abfd, section, ignored)
}
static void
-internalize_unwinds (objfile, table, section, entries, size, text_offset)
- struct objfile *objfile;
- struct unwind_table_entry *table;
- asection *section;
- unsigned int entries, size;
- CORE_ADDR text_offset;
+internalize_unwinds (struct objfile *objfile, struct unwind_table_entry *table,
+ asection *section, unsigned int entries, unsigned int size,
+ CORE_ADDR text_offset)
{
/* We will read the unwind entries into temporary memory, then
fill in the actual unwind table. */
@@ -418,8 +400,7 @@ internalize_unwinds (objfile, table, section, entries, size, text_offset)
gets freed when the objfile is destroyed. */
static void
-read_unwind_info (objfile)
- struct objfile *objfile;
+read_unwind_info (struct objfile *objfile)
{
asection *unwind_sec, *stub_unwind_sec;
unsigned unwind_size, stub_unwind_size, total_size;
@@ -561,8 +542,7 @@ read_unwind_info (objfile)
search of the unwind tables, we depend upon them to be sorted. */
struct unwind_table_entry *
-find_unwind_entry (pc)
- CORE_ADDR pc;
+find_unwind_entry (CORE_ADDR pc)
{
int first, middle, last;
struct objfile *objfile;
@@ -624,8 +604,7 @@ find_unwind_entry (pc)
bizarre way in which someone (?) decided they wanted to handle
frame pointerless code in GDB. */
int
-hpread_adjust_stack_address (func_addr)
- CORE_ADDR func_addr;
+hpread_adjust_stack_address (CORE_ADDR func_addr)
{
struct unwind_table_entry *u;
@@ -640,8 +619,7 @@ hpread_adjust_stack_address (func_addr)
kind. */
static int
-pc_in_interrupt_handler (pc)
- CORE_ADDR pc;
+pc_in_interrupt_handler (CORE_ADDR pc)
{
struct unwind_table_entry *u;
struct minimal_symbol *msym_us;
@@ -663,8 +641,7 @@ pc_in_interrupt_handler (pc)
?!? Need to handle stubs which appear in PA64 code. */
static int
-pc_in_linker_stub (pc)
- CORE_ADDR pc;
+pc_in_linker_stub (CORE_ADDR pc)
{
int found_magic_instruction = 0;
int i;
@@ -729,8 +706,7 @@ pc_in_linker_stub (pc)
}
static int
-find_return_regnum (pc)
- CORE_ADDR pc;
+find_return_regnum (CORE_ADDR pc)
{
struct unwind_table_entry *u;
@@ -747,8 +723,7 @@ find_return_regnum (pc)
/* Return size of frame, or -1 if we should use a frame pointer. */
static int
-find_proc_framesize (pc)
- CORE_ADDR pc;
+find_proc_framesize (CORE_ADDR pc)
{
struct unwind_table_entry *u;
struct minimal_symbol *msym_us;
@@ -783,8 +758,7 @@ find_proc_framesize (pc)
static int rp_saved (CORE_ADDR);
static int
-rp_saved (pc)
- CORE_ADDR pc;
+rp_saved (CORE_ADDR pc)
{
struct unwind_table_entry *u;
@@ -823,8 +797,7 @@ rp_saved (pc)
}
int
-frameless_function_invocation (frame)
- struct frame_info *frame;
+frameless_function_invocation (struct frame_info *frame)
{
struct unwind_table_entry *u;
@@ -837,8 +810,7 @@ frameless_function_invocation (frame)
}
CORE_ADDR
-saved_pc_after_call (frame)
- struct frame_info *frame;
+saved_pc_after_call (struct frame_info *frame)
{
int ret_regnum;
CORE_ADDR pc;
@@ -857,8 +829,7 @@ saved_pc_after_call (frame)
}
CORE_ADDR
-hppa_frame_saved_pc (frame)
- struct frame_info *frame;
+hppa_frame_saved_pc (struct frame_info *frame)
{
CORE_ADDR pc = get_frame_pc (frame);
struct unwind_table_entry *u;
@@ -1037,9 +1008,7 @@ hppa_frame_saved_pc (frame)
in a system call. */
void
-init_extra_frame_info (fromleaf, frame)
- int fromleaf;
- struct frame_info *frame;
+init_extra_frame_info (int fromleaf, struct frame_info *frame)
{
int flags;
int framesize;
@@ -1096,8 +1065,7 @@ init_extra_frame_info (fromleaf, frame)
a frame pointer calls code without a frame pointer. */
CORE_ADDR
-frame_chain (frame)
- struct frame_info *frame;
+frame_chain (struct frame_info *frame)
{
int my_framesize, caller_framesize;
struct unwind_table_entry *u;
@@ -1353,9 +1321,7 @@ frame_chain (frame)
was compiled with gcc. */
int
-hppa_frame_chain_valid (chain, thisframe)
- CORE_ADDR chain;
- struct frame_info *thisframe;
+hppa_frame_chain_valid (CORE_ADDR chain, struct frame_info *thisframe)
{
struct minimal_symbol *msym_us;
struct minimal_symbol *msym_start;
@@ -1416,8 +1382,7 @@ hppa_frame_chain_valid (chain, thisframe)
to be aligned to a 64-byte boundary. */
void
-push_dummy_frame (inf_status)
- struct inferior_status *inf_status;
+push_dummy_frame (struct inferior_status *inf_status)
{
CORE_ADDR sp, pc, pcspace;
register int regnum;
@@ -1494,9 +1459,8 @@ push_dummy_frame (inf_status)
}
static void
-find_dummy_frame_regs (frame, frame_saved_regs)
- struct frame_info *frame;
- struct frame_saved_regs *frame_saved_regs;
+find_dummy_frame_regs (struct frame_info *frame,
+ struct frame_saved_regs *frame_saved_regs)
{
CORE_ADDR fp = frame->frame;
int i;
@@ -1536,7 +1500,7 @@ find_dummy_frame_regs (frame, frame_saved_regs)
}
void
-hppa_pop_frame ()
+hppa_pop_frame (void)
{
register struct frame_info *frame = get_current_frame ();
register CORE_ADDR fp, npc, target_pc;
@@ -1634,8 +1598,7 @@ hppa_pop_frame ()
queue space registers. */
static int
-restore_pc_queue (fsr)
- struct frame_saved_regs *fsr;
+restore_pc_queue (struct frame_saved_regs *fsr)
{
CORE_ADDR pc = read_pc ();
CORE_ADDR new_pc = read_memory_integer (fsr->regs[PCOQ_HEAD_REGNUM],
@@ -1705,12 +1668,8 @@ restore_pc_queue (fsr)
to the callee, so we do that too. */
CORE_ADDR
-hppa_push_arguments (nargs, args, sp, struct_return, struct_addr)
- int nargs;
- value_ptr *args;
- CORE_ADDR sp;
- int struct_return;
- CORE_ADDR struct_addr;
+hppa_push_arguments (int nargs, value_ptr *args, CORE_ADDR sp,
+ int struct_return, CORE_ADDR struct_addr)
{
/* array of arguments' offsets */
int *offset = (int *) alloca (nargs * sizeof (int));
@@ -1828,12 +1787,8 @@ hppa_push_arguments (nargs, args, sp, struct_return, struct_addr)
arguments into registers as needed by the ABI. */
CORE_ADDR
-hppa_push_arguments (nargs, args, sp, struct_return, struct_addr)
- int nargs;
- value_ptr *args;
- CORE_ADDR sp;
- int struct_return;
- CORE_ADDR struct_addr;
+hppa_push_arguments (int nargs, value_ptr *args, CORE_ADDR sp,
+ int struct_return, CORE_ADDR struct_addr)
{
/* array of arguments' offsets */
int *offset = (int *) alloca (nargs * sizeof (int));
@@ -1922,9 +1877,7 @@ hppa_push_arguments (nargs, args, sp, struct_return, struct_addr)
gets the value from the stack rather than from the buffer where all the
registers were saved when the function called completed. */
value_ptr
-hppa_value_returned_from_stack (valtype, addr)
- register struct type *valtype;
- CORE_ADDR addr;
+hppa_value_returned_from_stack (register struct type *valtype, CORE_ADDR addr)
{
register value_ptr val;
@@ -1957,9 +1910,7 @@ hppa_value_returned_from_stack (valtype, addr)
man entry for shl_findsym */
CORE_ADDR
-find_stub_with_shl_get (function, handle)
- struct minimal_symbol *function;
- CORE_ADDR handle;
+find_stub_with_shl_get (struct minimal_symbol *function, CORE_ADDR handle)
{
struct symbol *get_sym, *symbol2;
struct minimal_symbol *buff_minsym, *msymbol;
@@ -2058,14 +2009,8 @@ cover_find_stub_with_shl_get (PTR args_untyped)
Please contact Jeff Law (law@cygnus.com) before changing this code. */
CORE_ADDR
-hppa_fix_call_dummy (dummy, pc, fun, nargs, args, type, gcc_p)
- char *dummy;
- CORE_ADDR pc;
- CORE_ADDR fun;
- int nargs;
- value_ptr *args;
- struct type *type;
- int gcc_p;
+hppa_fix_call_dummy (char *dummy, CORE_ADDR pc, CORE_ADDR fun, int nargs,
+ value_ptr *args, struct type *type, int gcc_p)
{
CORE_ADDR dyncall_addr;
struct minimal_symbol *msymbol;
@@ -2441,8 +2386,7 @@ hppa_fix_call_dummy (dummy, pc, fun, nargs, args, type, gcc_p)
We'll return zero in that case, rather than attempting to read it
and cause a warning. */
CORE_ADDR
-target_read_fp (pid)
- int pid;
+target_read_fp (int pid)
{
int flags = read_register (FLAGS_REGNUM);
@@ -2461,8 +2405,7 @@ target_read_fp (pid)
bits. */
CORE_ADDR
-target_read_pc (pid)
- int pid;
+target_read_pc (int pid)
{
int flags = read_register_pid (FLAGS_REGNUM, pid);
@@ -2479,9 +2422,7 @@ target_read_pc (pid)
PC value into %r31. */
void
-target_write_pc (v, pid)
- CORE_ADDR v;
- int pid;
+target_write_pc (CORE_ADDR v, int pid)
{
int flags = read_register_pid (FLAGS_REGNUM, pid);
@@ -2501,8 +2442,7 @@ target_write_pc (v, pid)
alignment required by their fields. */
static int
-hppa_alignof (type)
- struct type *type;
+hppa_alignof (struct type *type)
{
int max_align, align, i;
CHECK_TYPEDEF (type);
@@ -2536,9 +2476,7 @@ hppa_alignof (type)
/* Print the register regnum, or all registers if regnum is -1 */
void
-pa_do_registers_info (regnum, fpregs)
- int regnum;
- int fpregs;
+pa_do_registers_info (int regnum, int fpregs)
{
char raw_regs[REGISTER_BYTES];
int i;
@@ -2581,11 +2519,8 @@ pa_do_registers_info (regnum, fpregs)
/********** new function ********************/
void
-pa_do_strcat_registers_info (regnum, fpregs, stream, precision)
- int regnum;
- int fpregs;
- struct ui_file *stream;
- enum precision_type precision;
+pa_do_strcat_registers_info (int regnum, int fpregs, struct ui_file *stream,
+ enum precision_type precision)
{
char raw_regs[REGISTER_BYTES];
int i;
@@ -2634,10 +2569,7 @@ pa_do_strcat_registers_info (regnum, fpregs, stream, precision)
Note that reg_val is really expected to be an array of longs,
with two elements. */
static void
-pa_register_look_aside (raw_regs, regnum, raw_val)
- char *raw_regs;
- int regnum;
- long *raw_val;
+pa_register_look_aside (char *raw_regs, int regnum, long *raw_val)
{
static int know_which = 0; /* False */
@@ -2740,10 +2672,7 @@ error_exit:
/* "Info all-reg" command */
static void
-pa_print_registers (raw_regs, regnum, fpregs)
- char *raw_regs;
- int regnum;
- int fpregs;
+pa_print_registers (char *raw_regs, int regnum, int fpregs)
{
int i, j;
/* Alas, we are compiled so that "long long" is 32 bits */
@@ -2795,11 +2724,8 @@ pa_print_registers (raw_regs, regnum, fpregs)
/************* new function ******************/
static void
-pa_strcat_registers (raw_regs, regnum, fpregs, stream)
- char *raw_regs;
- int regnum;
- int fpregs;
- struct ui_file *stream;
+pa_strcat_registers (char *raw_regs, int regnum, int fpregs,
+ struct ui_file *stream)
{
int i, j;
long raw_val[2]; /* Alas, we are compiled so that "long long" is 32 bits */
@@ -2846,8 +2772,7 @@ pa_strcat_registers (raw_regs, regnum, fpregs, stream)
}
static void
-pa_print_fp_reg (i)
- int i;
+pa_print_fp_reg (int i)
{
char raw_buffer[MAX_REGISTER_RAW_SIZE];
char virtual_buffer[MAX_REGISTER_VIRTUAL_SIZE];
@@ -2890,10 +2815,7 @@ pa_print_fp_reg (i)
/*************** new function ***********************/
static void
-pa_strcat_fp_reg (i, stream, precision)
- int i;
- struct ui_file *stream;
- enum precision_type precision;
+pa_strcat_fp_reg (int i, struct ui_file *stream, enum precision_type precision)
{
char raw_buffer[MAX_REGISTER_RAW_SIZE];
char virtual_buffer[MAX_REGISTER_VIRTUAL_SIZE];
@@ -2936,9 +2858,7 @@ pa_strcat_fp_reg (i, stream, precision)
just shared library trampolines (import, export). */
int
-in_solib_call_trampoline (pc, name)
- CORE_ADDR pc;
- char *name;
+in_solib_call_trampoline (CORE_ADDR pc, char *name)
{
struct minimal_symbol *minsym;
struct unwind_table_entry *u;
@@ -3098,9 +3018,7 @@ in_solib_call_trampoline (pc, name)
just shared library trampolines (import, export). */
int
-in_solib_return_trampoline (pc, name)
- CORE_ADDR pc;
- char *name;
+in_solib_return_trampoline (CORE_ADDR pc, char *name)
{
struct unwind_table_entry *u;
@@ -3173,9 +3091,7 @@ in_solib_return_trampoline (pc, name)
used in dynamic executables. */
CORE_ADDR
-skip_trampoline_code (pc, name)
- CORE_ADDR pc;
- char *name;
+skip_trampoline_code (CORE_ADDR pc, char *name)
{
long orig_pc = pc;
long prev_inst, curr_inst, loc;
@@ -3450,8 +3366,7 @@ skip_trampoline_code (pc, name)
This only handles instructions commonly found in prologues. */
static int
-prologue_inst_adjust_sp (inst)
- unsigned long inst;
+prologue_inst_adjust_sp (unsigned long inst)
{
/* This must persist across calls. */
static int save_high21;
@@ -3490,8 +3405,7 @@ prologue_inst_adjust_sp (inst)
/* Return nonzero if INST is a branch of some kind, else return zero. */
static int
-is_branch (inst)
- unsigned long inst;
+is_branch (unsigned long inst)
{
switch (inst >> 26)
{
@@ -3524,8 +3438,7 @@ is_branch (inst)
zero it INST does not save a GR. */
static int
-inst_saves_gr (inst)
- unsigned long inst;
+inst_saves_gr (unsigned long inst)
{
/* Does it look like a stw? */
if ((inst >> 26) == 0x1a || (inst >> 26) == 0x1b
@@ -3564,8 +3477,7 @@ inst_saves_gr (inst)
FIXME: What about argument stores with the HP compiler in ANSI mode? */
static int
-inst_saves_fr (inst)
- unsigned long inst;
+inst_saves_fr (unsigned long inst)
{
/* is this an FSTD ? */
if ((inst & 0xfc00dfc0) == 0x2c001200)
@@ -3588,8 +3500,7 @@ inst_saves_fr (inst)
CORE_ADDR
-skip_prologue_hard_way (pc)
- CORE_ADDR pc;
+skip_prologue_hard_way (CORE_ADDR pc)
{
char buf[4];
CORE_ADDR orig_pc = pc;
@@ -3821,8 +3732,7 @@ restart:
we can determine it from the debug symbols. Else return zero. */
static CORE_ADDR
-after_prologue (pc)
- CORE_ADDR pc;
+after_prologue (CORE_ADDR pc)
{
struct symtab_and_line sal;
CORE_ADDR func_addr, func_end;
@@ -3863,8 +3773,7 @@ after_prologue (pc)
stuff some day. */
CORE_ADDR
-hppa_skip_prologue (pc)
- CORE_ADDR pc;
+hppa_skip_prologue (CORE_ADDR pc)
{
unsigned long inst;
int offset;
@@ -3896,9 +3805,8 @@ hppa_skip_prologue (pc)
the address we return for it IS the sp for the next frame. */
void
-hppa_frame_find_saved_regs (frame_info, frame_saved_regs)
- struct frame_info *frame_info;
- struct frame_saved_regs *frame_saved_regs;
+hppa_frame_find_saved_regs (struct frame_info *frame_info,
+ struct frame_saved_regs *frame_saved_regs)
{
CORE_ADDR pc;
struct unwind_table_entry *u;
@@ -4185,7 +4093,7 @@ static struct symtab_and_line *break_callback_sal = 0;
0 => success
1 => failure */
int
-setup_d_pid_in_inferior ()
+setup_d_pid_in_inferior (void)
{
CORE_ADDR anaddr;
struct minimal_symbol *msymbol;
@@ -4219,7 +4127,7 @@ setup_d_pid_in_inferior ()
1 => success */
static int
-initialize_hp_cxx_exception_support ()
+initialize_hp_cxx_exception_support (void)
{
struct symtabs_and_lines sals;
struct cleanup *old_chain;
@@ -4440,9 +4348,7 @@ initialize_hp_cxx_exception_support ()
address was found. */
struct symtab_and_line *
-child_enable_exception_callback (kind, enable)
- enum exception_event_kind kind;
- int enable;
+child_enable_exception_callback (enum exception_event_kind kind, int enable)
{
char buf[4];
@@ -4532,7 +4438,7 @@ static struct symtab_and_line null_symtab_and_line =
and where it will be caught. More information may be reported
in the future */
struct exception_event_record *
-child_get_current_exception_event ()
+child_get_current_exception_event (void)
{
CORE_ADDR event_kind;
CORE_ADDR throw_addr;
@@ -4591,9 +4497,7 @@ child_get_current_exception_event ()
}
static void
-unwind_command (exp, from_tty)
- char *exp;
- int from_tty;
+unwind_command (char *exp, int from_tty)
{
CORE_ADDR address;
struct unwind_table_entry *u;
@@ -4698,7 +4602,7 @@ unwind_command (exp, from_tty)
here, that's what counts, as core gdb is the one which is
putting the BPT instruction in and taking it out. */
int
-hppa_prepare_to_proceed ()
+hppa_prepare_to_proceed (void)
{
pid_t old_thread;
pid_t current_thread;
@@ -4743,7 +4647,7 @@ hppa_prepare_to_proceed ()
#endif /* PREPARE_TO_PROCEED */
void
-hppa_skip_permanent_breakpoint ()
+hppa_skip_permanent_breakpoint (void)
{
/* To step over a breakpoint instruction on the PA takes some
fiddling with the instruction address queue.
@@ -4767,7 +4671,7 @@ hppa_skip_permanent_breakpoint ()
}
void
-_initialize_hppa_tdep ()
+_initialize_hppa_tdep (void)
{
tm_print_insn = print_insn_hppa;
diff --git a/gdb/hppab-nat.c b/gdb/hppab-nat.c
index 29d22eb..5659532 100644
--- a/gdb/hppab-nat.c
+++ b/gdb/hppab-nat.c
@@ -50,8 +50,7 @@
/* Fetch one register. */
static void
-fetch_register (regno)
- int regno;
+fetch_register (int regno)
{
register unsigned int regaddr;
char buf[MAX_REGISTER_RAW_SIZE];
@@ -87,8 +86,7 @@ error_exit:;
/* Fetch all registers, or just one, from the child process. */
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
if (regno == -1)
for (regno = 0; regno < NUM_REGS; regno++)
@@ -102,8 +100,7 @@ fetch_inferior_registers (regno)
Otherwise, REGNO specifies which register (so we can save time). */
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
register unsigned int regaddr;
char buf[80];
@@ -190,8 +187,7 @@ store_inferior_registers (regno)
#define PT_PROT 21
int
-hppa_set_watchpoint (addr, len, flag)
- int addr, len, flag;
+hppa_set_watchpoint (int addr, int len, int flag)
{
int pt_args[3];
pt_args[0] = addr;
diff --git a/gdb/hppah-nat.c b/gdb/hppah-nat.c
index 30e7ab9..222a6e0 100644
--- a/gdb/hppah-nat.c
+++ b/gdb/hppah-nat.c
@@ -36,8 +36,7 @@ extern CORE_ADDR text_end;
static void fetch_register (int);
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
if (regno == -1)
for (regno = 0; regno < NUM_REGS; regno++)
@@ -54,8 +53,7 @@ fetch_inferior_registers (regno)
Otherwise, REGNO specifies which register (so we can save time). */
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
register unsigned int regaddr;
char buf[80];
@@ -178,8 +176,7 @@ store_inferior_registers (regno)
/* Fetch a register's value from the process's U area. */
static void
-fetch_register (regno)
- int regno;
+fetch_register (int regno)
{
char buf[MAX_REGISTER_RAW_SIZE];
unsigned int addr, len, offset;
@@ -378,7 +375,7 @@ child_xfer_memory (memaddr, myaddr, len, write, target)
void
-child_post_follow_inferior_by_clone ()
+child_post_follow_inferior_by_clone (void)
{
int status;
@@ -396,11 +393,8 @@ child_post_follow_inferior_by_clone ()
void
-child_post_follow_vfork (parent_pid, followed_parent, child_pid, followed_child)
- int parent_pid;
- int followed_parent;
- int child_pid;
- int followed_child;
+child_post_follow_vfork (int parent_pid, int followed_parent, int child_pid,
+ int followed_child)
{
/* Are we a debugger that followed the parent of a vfork? If so,
then recall that the child's vfork event was delivered to us
@@ -438,8 +432,7 @@ child_post_follow_vfork (parent_pid, followed_parent, child_pid, followed_child)
/* Format a process id, given PID. Be sure to terminate
this with a null--it's going to be printed via a "%s". */
char *
-child_pid_to_str (pid)
- pid_t pid;
+child_pid_to_str (pid_t pid)
{
/* Static because address returned */
static char buf[30];
@@ -456,8 +449,7 @@ child_pid_to_str (pid)
Note: This is a core-gdb tid, not the actual system tid.
See infttrace.c for details. */
char *
-hppa_tid_to_str (tid)
- pid_t tid;
+hppa_tid_to_str (pid_t tid)
{
/* Static because address returned */
static char buf[30];
@@ -515,10 +507,7 @@ extern int parent_attach_all (int, PTRACE_ARG3_TYPE, int);
child_acknowledge_created_inferior.) */
int
-parent_attach_all (pid, addr, data)
- int pid;
- PTRACE_ARG3_TYPE addr;
- int data;
+parent_attach_all (int pid, PTRACE_ARG3_TYPE addr, int data)
{
int pt_status = 0;
@@ -555,8 +544,7 @@ parent_attach_all (pid, addr, data)
#endif
int
-hppa_require_attach (pid)
- int pid;
+hppa_require_attach (int pid)
{
int pt_status;
CORE_ADDR pc;
@@ -589,9 +577,7 @@ hppa_require_attach (pid)
}
int
-hppa_require_detach (pid, signal)
- int pid;
- int signal;
+hppa_require_detach (int pid, int signal)
{
errno = 0;
call_ptrace (PT_DETACH, pid, (PTRACE_ARG3_TYPE) 1, signal);
@@ -604,58 +590,42 @@ hppa_require_detach (pid, signal)
dummy versions, which perform no useful work. */
void
-hppa_enable_page_protection_events (pid)
- int pid;
+hppa_enable_page_protection_events (int pid)
{
}
void
-hppa_disable_page_protection_events (pid)
- int pid;
+hppa_disable_page_protection_events (int pid)
{
}
int
-hppa_insert_hw_watchpoint (pid, start, len, type)
- int pid;
- CORE_ADDR start;
- LONGEST len;
- int type;
+hppa_insert_hw_watchpoint (int pid, CORE_ADDR start, LONGEST len, int type)
{
error ("Hardware watchpoints not implemented on this platform.");
}
int
-hppa_remove_hw_watchpoint (pid, start, len, type)
- int pid;
- CORE_ADDR start;
- LONGEST len;
- enum bptype type;
+hppa_remove_hw_watchpoint (int pid, CORE_ADDR start, LONGEST len,
+ enum bptype type)
{
error ("Hardware watchpoints not implemented on this platform.");
}
int
-hppa_can_use_hw_watchpoint (type, cnt, ot)
- enum bptype type;
- int cnt;
- enum bptype ot;
+hppa_can_use_hw_watchpoint (enum bptype type, int cnt, enum bptype ot)
{
return 0;
}
int
-hppa_range_profitable_for_hw_watchpoint (pid, start, len)
- int pid;
- CORE_ADDR start;
- LONGEST len;
+hppa_range_profitable_for_hw_watchpoint (int pid, CORE_ADDR start, LONGEST len)
{
error ("Hardware watchpoints not implemented on this platform.");
}
char *
-hppa_pid_or_tid_to_str (id)
- pid_t id;
+hppa_pid_or_tid_to_str (pid_t id)
{
/* In the ptrace world, there are only processes. */
return child_pid_to_str (id);
@@ -666,15 +636,13 @@ hppa_pid_or_tid_to_str (id)
hppa-tdep.c. */
pid_t
-hppa_switched_threads (pid)
- pid_t pid;
+hppa_switched_threads (pid_t pid)
{
return (pid_t) 0;
}
void
-hppa_ensure_vforking_parent_remains_stopped (pid)
- int pid;
+hppa_ensure_vforking_parent_remains_stopped (int pid)
{
/* This assumes that the vforked parent is presently stopped, and
that the vforked child has just delivered its first exec event.
@@ -686,14 +654,13 @@ hppa_ensure_vforking_parent_remains_stopped (pid)
}
int
-hppa_resume_execd_vforking_child_to_get_parent_vfork ()
+hppa_resume_execd_vforking_child_to_get_parent_vfork (void)
{
return 1; /* Yes, the child must be resumed. */
}
void
-require_notification_of_events (pid)
- int pid;
+require_notification_of_events (int pid)
{
#if defined(PT_SET_EVENT_MASK)
int pt_status;
@@ -758,8 +725,7 @@ require_notification_of_events (pid)
}
void
-require_notification_of_exec_events (pid)
- int pid;
+require_notification_of_exec_events (int pid)
{
#if defined(PT_SET_EVENT_MASK)
int pt_status;
@@ -800,8 +766,7 @@ require_notification_of_exec_events (pid)
ID of the child process, after the debugger has forked. */
void
-child_acknowledge_created_inferior (pid)
- int pid;
+child_acknowledge_created_inferior (int pid)
{
/* We need a memory home for a constant. */
int tc_magic_parent = PT_VERSION;
@@ -848,22 +813,19 @@ child_acknowledge_created_inferior (pid)
}
void
-child_post_startup_inferior (pid)
- int pid;
+child_post_startup_inferior (int pid)
{
require_notification_of_events (pid);
}
void
-child_post_attach (pid)
- int pid;
+child_post_attach (int pid)
{
require_notification_of_events (pid);
}
int
-child_insert_fork_catchpoint (pid)
- int pid;
+child_insert_fork_catchpoint (int pid)
{
/* This request is only available on HPUX 10.0 and later. */
#if !defined(PT_SET_EVENT_MASK)
@@ -877,8 +839,7 @@ child_insert_fork_catchpoint (pid)
}
int
-child_remove_fork_catchpoint (pid)
- int pid;
+child_remove_fork_catchpoint (int pid)
{
/* This request is only available on HPUX 10.0 and later. */
#if !defined(PT_SET_EVENT_MASK)
@@ -892,8 +853,7 @@ child_remove_fork_catchpoint (pid)
}
int
-child_insert_vfork_catchpoint (pid)
- int pid;
+child_insert_vfork_catchpoint (int pid)
{
/* This request is only available on HPUX 10.0 and later. */
#if !defined(PT_SET_EVENT_MASK)
@@ -907,8 +867,7 @@ child_insert_vfork_catchpoint (pid)
}
int
-child_remove_vfork_catchpoint (pid)
- int pid;
+child_remove_vfork_catchpoint (int pid)
{
/* This request is only available on HPUX 10.0 and later. */
#if !defined(PT_SET_EVENT_MASK)
@@ -922,9 +881,7 @@ child_remove_vfork_catchpoint (pid)
}
int
-child_has_forked (pid, childpid)
- int pid;
- int *childpid;
+child_has_forked (int pid, int *childpid)
{
/* This request is only available on HPUX 10.0 and later. */
#if !defined(PT_GET_PROCESS_STATE)
@@ -955,9 +912,7 @@ child_has_forked (pid, childpid)
}
int
-child_has_vforked (pid, childpid)
- int pid;
- int *childpid;
+child_has_vforked (int pid, int *childpid)
{
/* This request is only available on HPUX 10.0 and later. */
#if !defined(PT_GET_PROCESS_STATE)
@@ -989,15 +944,14 @@ child_has_vforked (pid, childpid)
}
int
-child_can_follow_vfork_prior_to_exec ()
+child_can_follow_vfork_prior_to_exec (void)
{
/* ptrace doesn't allow this. */
return 0;
}
int
-child_insert_exec_catchpoint (pid)
- int pid;
+child_insert_exec_catchpoint (int pid)
{
/* This request is only available on HPUX 10.0 and later. */
#if !defined(PT_SET_EVENT_MASK)
@@ -1012,8 +966,7 @@ child_insert_exec_catchpoint (pid)
}
int
-child_remove_exec_catchpoint (pid)
- int pid;
+child_remove_exec_catchpoint (int pid)
{
/* This request is only available on HPUX 10.0 and later. */
#if !defined(PT_SET_EVENT_MASK)
@@ -1028,9 +981,7 @@ child_remove_exec_catchpoint (pid)
}
int
-child_has_execd (pid, execd_pathname)
- int pid;
- char **execd_pathname;
+child_has_execd (int pid, char **execd_pathname)
{
/* This request is only available on HPUX 10.0 and later. */
#if !defined(PT_GET_PROCESS_STATE)
@@ -1063,16 +1014,13 @@ child_has_execd (pid, execd_pathname)
}
int
-child_reported_exec_events_per_exec_call ()
+child_reported_exec_events_per_exec_call (void)
{
return 2; /* ptrace reports the event twice per call. */
}
int
-child_has_syscall_event (pid, kind, syscall_id)
- int pid;
- enum target_waitkind *kind;
- int *syscall_id;
+child_has_syscall_event (int pid, enum target_waitkind *kind, int *syscall_id)
{
/* This request is only available on HPUX 10.30 and later, via
the ttrace interface. */
@@ -1083,8 +1031,7 @@ child_has_syscall_event (pid, kind, syscall_id)
}
char *
-child_pid_to_exec_file (pid)
- int pid;
+child_pid_to_exec_file (int pid)
{
static char exec_file_buffer[1024];
int pt_status;
@@ -1150,7 +1097,7 @@ child_pid_to_exec_file (pid)
}
void
-pre_fork_inferior ()
+pre_fork_inferior (void)
{
int status;
@@ -1176,8 +1123,7 @@ pre_fork_inferior ()
return "TRUE". */
int
-child_thread_alive (pid)
- int pid;
+child_thread_alive (int pid)
{
return 1;
}
diff --git a/gdb/hppam3-nat.c b/gdb/hppam3-nat.c
index aa89379..a3d4e5b 100644
--- a/gdb/hppam3-nat.c
+++ b/gdb/hppam3-nat.c
@@ -37,8 +37,7 @@
*/
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
kern_return_t ret;
thread_state_data_t state;
@@ -76,8 +75,7 @@ fetch_inferior_registers (regno)
* On mach3 all registers are always saved in one call.
*/
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
kern_return_t ret;
thread_state_data_t state;
diff --git a/gdb/hpread.c b/gdb/hpread.c
index f49f01e..9ee526a 100644
--- a/gdb/hpread.c
+++ b/gdb/hpread.c
@@ -213,8 +213,7 @@ static int hpread_has_name (enum dntt_entry_type);
FIXME, there should be a cleaner peephole into the BFD environment here. */
void
-hpread_symfile_init (objfile)
- struct objfile *objfile;
+hpread_symfile_init (struct objfile *objfile)
{
asection *vt_section, *slt_section, *lntt_section, *gntt_section;
@@ -301,9 +300,7 @@ hpread_symfile_init (objfile)
table (as opposed to a shared lib or dynamically loaded file). */
void
-hpread_build_psymtabs (objfile, mainline)
- struct objfile *objfile;
- int mainline;
+hpread_build_psymtabs (struct objfile *objfile, int mainline)
{
char *namestring;
int past_first_source_file = 0;
@@ -626,8 +623,7 @@ hpread_build_psymtabs (objfile, mainline)
objfile struct from the global list of known objfiles. */
void
-hpread_symfile_finish (objfile)
- struct objfile *objfile;
+hpread_symfile_finish (struct objfile *objfile)
{
if (objfile->sym_private != NULL)
{
@@ -641,27 +637,21 @@ hpread_symfile_finish (objfile)
/* Various small functions to get entries in the debug symbol sections. */
static union dnttentry *
-hpread_get_lntt (index, objfile)
- int index;
- struct objfile *objfile;
+hpread_get_lntt (int index, struct objfile *objfile)
{
return (union dnttentry *)
&(LNTT (objfile)[(index * sizeof (struct dntt_type_block))]);
}
static union dnttentry *
-hpread_get_gntt (index, objfile)
- int index;
- struct objfile *objfile;
+hpread_get_gntt (int index, struct objfile *objfile)
{
return (union dnttentry *)
&(GNTT (objfile)[(index * sizeof (struct dntt_type_block))]);
}
static union sltentry *
-hpread_get_slt (index, objfile)
- int index;
- struct objfile *objfile;
+hpread_get_slt (int index, struct objfile *objfile)
{
return (union sltentry *) &(SLT (objfile)[index * sizeof (union sltentry)]);
}
@@ -672,10 +662,7 @@ hpread_get_slt (index, objfile)
the existance of DNTT_TYPE_FUNCTION symbols. */
static unsigned long
-hpread_get_textlow (global, index, objfile)
- int global;
- int index;
- struct objfile *objfile;
+hpread_get_textlow (int global, int index, struct objfile *objfile)
{
union dnttentry *dn_bufp;
struct minimal_symbol *msymbol;
@@ -708,9 +695,7 @@ hpread_get_textlow (global, index, objfile)
/* Get the nesting depth for the source line identified by INDEX. */
static unsigned long
-hpread_get_depth (index, objfile)
- sltpointer index;
- struct objfile *objfile;
+hpread_get_depth (sltpointer index, struct objfile *objfile)
{
union sltentry *sl_bufp;
@@ -721,9 +706,7 @@ hpread_get_depth (index, objfile)
/* Get the source line number the the line identified by INDEX. */
static unsigned long
-hpread_get_line (index, objfile)
- sltpointer index;
- struct objfile *objfile;
+hpread_get_line (sltpointer index, struct objfile *objfile)
{
union sltentry *sl_bufp;
@@ -732,9 +715,7 @@ hpread_get_line (index, objfile)
}
static CORE_ADDR
-hpread_get_location (index, objfile)
- sltpointer index;
- struct objfile *objfile;
+hpread_get_location (sltpointer index, struct objfile *objfile)
{
union sltentry *sl_bufp;
int i;
@@ -763,8 +744,7 @@ hpread_get_location (index, objfile)
it, else return 0. */
static int
-hpread_has_name (kind)
- enum dntt_entry_type kind;
+hpread_has_name (enum dntt_entry_type kind)
{
switch (kind)
{
@@ -815,14 +795,10 @@ hpread_has_name (kind)
(normal). */
static struct partial_symtab *
-hpread_start_psymtab (objfile, filename, textlow, ldsymoff, global_syms,
- static_syms)
- struct objfile *objfile;
- char *filename;
- CORE_ADDR textlow;
- int ldsymoff;
- struct partial_symbol **global_syms;
- struct partial_symbol **static_syms;
+hpread_start_psymtab (struct objfile *objfile, char *filename,
+ CORE_ADDR textlow, int ldsymoff,
+ struct partial_symbol **global_syms,
+ struct partial_symbol **static_syms)
{
struct partial_symtab *result =
start_psymtab_common (objfile, section_offsets,
@@ -843,15 +819,11 @@ hpread_start_psymtab (objfile, filename, textlow, ldsymoff, global_syms,
FIXME: List variables and peculiarities of same. */
static struct partial_symtab *
-hpread_end_psymtab (pst, include_list, num_includes, capping_symbol_offset,
- capping_text, dependency_list, number_dependencies)
- struct partial_symtab *pst;
- char **include_list;
- int num_includes;
- int capping_symbol_offset;
- CORE_ADDR capping_text;
- struct partial_symtab **dependency_list;
- int number_dependencies;
+hpread_end_psymtab (struct partial_symtab *pst, char **include_list,
+ int num_includes, int capping_symbol_offset,
+ CORE_ADDR capping_text,
+ struct partial_symtab **dependency_list,
+ int number_dependencies)
{
int i;
struct objfile *objfile = pst->objfile;
@@ -941,8 +913,7 @@ hpread_end_psymtab (pst, include_list, num_includes, capping_symbol_offset,
table. */
static void
-hpread_psymtab_to_symtab_1 (pst)
- struct partial_symtab *pst;
+hpread_psymtab_to_symtab_1 (struct partial_symtab *pst)
{
struct cleanup *old_chain;
int i;
@@ -1000,8 +971,7 @@ hpread_psymtab_to_symtab_1 (pst)
Be verbose about it if the user wants that. */
static void
-hpread_psymtab_to_symtab (pst)
- struct partial_symtab *pst;
+hpread_psymtab_to_symtab (struct partial_symtab *pst)
{
/* Get out quick if given junk. */
if (!pst)
@@ -1048,15 +1018,9 @@ hpread_psymtab_to_symtab (pst)
SECTION_OFFSETS are the relocation offsets which get added to each symbol. */
static struct symtab *
-hpread_expand_symtab (objfile, sym_offset, sym_size, text_offset, text_size,
- section_offsets, filename)
- struct objfile *objfile;
- int sym_offset;
- int sym_size;
- CORE_ADDR text_offset;
- int text_size;
- struct section_offsets *section_offsets;
- char *filename;
+hpread_expand_symtab (struct objfile *objfile, int sym_offset, int sym_size,
+ CORE_ADDR text_offset, int text_size,
+ struct section_offsets *section_offsets, char *filename)
{
char *namestring;
union dnttentry *dn_bufp;
@@ -1107,8 +1071,7 @@ hpread_expand_symtab (objfile, sym_offset, sym_size, text_offset, text_size,
/* Convert basic types from HP debug format into GDB internal format. */
static int
-hpread_type_translate (typep)
- dnttpointer typep;
+hpread_type_translate (dnttpointer typep)
{
if (!typep.dntti.immediate)
abort ();
@@ -1180,9 +1143,7 @@ hpread_type_translate (typep)
/* Return the type associated with the index found in HP_TYPE. */
static struct type **
-hpread_lookup_type (hp_type, objfile)
- dnttpointer hp_type;
- struct objfile *objfile;
+hpread_lookup_type (dnttpointer hp_type, struct objfile *objfile)
{
unsigned old_len;
int index = hp_type.dnttp.index;
@@ -1223,9 +1184,7 @@ hpread_lookup_type (hp_type, objfile)
have it lying around. */
static struct type *
-hpread_alloc_type (hp_type, objfile)
- dnttpointer hp_type;
- struct objfile *objfile;
+hpread_alloc_type (dnttpointer hp_type, struct objfile *objfile)
{
struct type **type_addr;
@@ -1241,10 +1200,8 @@ hpread_alloc_type (hp_type, objfile)
/* Read a native enumerated type and return it in GDB internal form. */
static struct type *
-hpread_read_enum_type (hp_type, dn_bufp, objfile)
- dnttpointer hp_type;
- union dnttentry *dn_bufp;
- struct objfile *objfile;
+hpread_read_enum_type (dnttpointer hp_type, union dnttentry *dn_bufp,
+ struct objfile *objfile)
{
struct type *type;
struct pending **symlist, *osyms, *syms;
@@ -1320,10 +1277,8 @@ hpread_read_enum_type (hp_type, dn_bufp, objfile)
/* Read and internalize a native function debug symbol. */
static struct type *
-hpread_read_function_type (hp_type, dn_bufp, objfile)
- dnttpointer hp_type;
- union dnttentry *dn_bufp;
- struct objfile *objfile;
+hpread_read_function_type (dnttpointer hp_type, union dnttentry *dn_bufp,
+ struct objfile *objfile)
{
struct type *type, *type1;
struct pending **symlist, *osyms, *syms;
@@ -1430,10 +1385,8 @@ hpread_read_function_type (hp_type, dn_bufp, objfile)
/* Read in and internalize a structure definition. */
static struct type *
-hpread_read_struct_type (hp_type, dn_bufp, objfile)
- dnttpointer hp_type;
- union dnttentry *dn_bufp;
- struct objfile *objfile;
+hpread_read_struct_type (dnttpointer hp_type, union dnttentry *dn_bufp,
+ struct objfile *objfile)
{
struct nextfield
{
@@ -1510,10 +1463,8 @@ hpread_read_struct_type (hp_type, dn_bufp, objfile)
/* Read in and internalize a set debug symbol. */
static struct type *
-hpread_read_set_type (hp_type, dn_bufp, objfile)
- dnttpointer hp_type;
- union dnttentry *dn_bufp;
- struct objfile *objfile;
+hpread_read_set_type (dnttpointer hp_type, union dnttentry *dn_bufp,
+ struct objfile *objfile)
{
struct type *type;
@@ -1534,10 +1485,8 @@ hpread_read_set_type (hp_type, dn_bufp, objfile)
/* Read in and internalize an array debug symbol. */
static struct type *
-hpread_read_array_type (hp_type, dn_bufp, objfile)
- dnttpointer hp_type;
- union dnttentry *dn_bufp;
- struct objfile *objfile;
+hpread_read_array_type (dnttpointer hp_type, union dnttentry *dn_bufp,
+ struct objfile *objfile)
{
struct type *type;
union dnttentry save;
@@ -1576,10 +1525,8 @@ hpread_read_array_type (hp_type, dn_bufp, objfile)
/* Read in and internalize a subrange debug symbol. */
static struct type *
-hpread_read_subrange_type (hp_type, dn_bufp, objfile)
- dnttpointer hp_type;
- union dnttentry *dn_bufp;
- struct objfile *objfile;
+hpread_read_subrange_type (dnttpointer hp_type, union dnttentry *dn_bufp,
+ struct objfile *objfile)
{
struct type *type;
@@ -1611,9 +1558,7 @@ hpread_read_subrange_type (hp_type, dn_bufp, objfile)
}
static struct type *
-hpread_type_lookup (hp_type, objfile)
- dnttpointer hp_type;
- struct objfile *objfile;
+hpread_type_lookup (dnttpointer hp_type, struct objfile *objfile)
{
union dnttentry *dn_bufp;
@@ -1729,11 +1674,9 @@ hpread_type_lookup (hp_type, objfile)
}
static sltpointer
-hpread_record_lines (subfile, s_idx, e_idx, objfile, offset)
- struct subfile *subfile;
- sltpointer s_idx, e_idx;
- struct objfile *objfile;
- CORE_ADDR offset;
+hpread_record_lines (struct subfile *subfile, sltpointer s_idx,
+ sltpointer e_idx, struct objfile *objfile,
+ CORE_ADDR offset)
{
union sltentry *sl_bufp;
@@ -1753,16 +1696,10 @@ hpread_record_lines (subfile, s_idx, e_idx, objfile, offset)
/* Internalize one native debug symbol. */
static void
-hpread_process_one_debug_symbol (dn_bufp, name, section_offsets, objfile,
- text_offset, text_size, filename, index)
- union dnttentry *dn_bufp;
- char *name;
- struct section_offsets *section_offsets;
- struct objfile *objfile;
- CORE_ADDR text_offset;
- int text_size;
- char *filename;
- int index;
+hpread_process_one_debug_symbol (union dnttentry *dn_bufp, char *name,
+ struct section_offsets *section_offsets,
+ struct objfile *objfile, CORE_ADDR text_offset,
+ int text_size, char *filename, int index)
{
unsigned long desc;
int type;
diff --git a/gdb/hpux-thread.c b/gdb/hpux-thread.c
index f27d12b..940ba9a 100644
--- a/gdb/hpux-thread.c
+++ b/gdb/hpux-thread.c
@@ -100,14 +100,13 @@ static struct target_ops hpux_thread_ops;
static struct cleanup *
-save_inferior_pid ()
+save_inferior_pid (void)
{
return make_cleanup (restore_inferior_pid, inferior_pid);
}
static void
-restore_inferior_pid (pid)
- int pid;
+restore_inferior_pid (int pid)
{
inferior_pid = pid;
}
@@ -119,7 +118,7 @@ static int cached_active_thread;
static cma__t_int_tcb cached_tcb;
static int
-find_active_thread ()
+find_active_thread (void)
{
static cma__t_int_tcb tcb;
CORE_ADDR tcb_ptr;
@@ -139,8 +138,7 @@ find_active_thread ()
static cma__t_int_tcb *find_tcb (int thread);
static cma__t_int_tcb *
-find_tcb (thread)
- int thread;
+find_tcb (int thread)
{
cma__t_known_object queue_header;
cma__t_queue *queue_ptr;
@@ -179,9 +177,7 @@ find_tcb (thread)
/* ARGSUSED */
static void
-hpux_thread_open (arg, from_tty)
- char *arg;
- int from_tty;
+hpux_thread_open (char *arg, int from_tty)
{
child_ops.to_open (arg, from_tty);
}
@@ -190,9 +186,7 @@ hpux_thread_open (arg, from_tty)
and wait for the trace-trap that results from attaching. */
static void
-hpux_thread_attach (args, from_tty)
- char *args;
- int from_tty;
+hpux_thread_attach (char *args, int from_tty)
{
child_ops.to_attach (args, from_tty);
@@ -208,9 +202,7 @@ hpux_thread_attach (args, from_tty)
started via the normal ptrace (PTRACE_TRACEME). */
static void
-hpux_thread_detach (args, from_tty)
- char *args;
- int from_tty;
+hpux_thread_detach (char *args, int from_tty)
{
child_ops.to_detach (args, from_tty);
}
@@ -221,10 +213,7 @@ hpux_thread_detach (args, from_tty)
for procfs. */
static void
-hpux_thread_resume (pid, step, signo)
- int pid;
- int step;
- enum target_signal signo;
+hpux_thread_resume (int pid, int step, enum target_signal signo)
{
struct cleanup *old_chain;
@@ -253,9 +242,7 @@ hpux_thread_resume (pid, step, signo)
to a LWP id, and vice versa on the way out. */
static int
-hpux_thread_wait (pid, ourstatus)
- int pid;
- struct target_waitstatus *ourstatus;
+hpux_thread_wait (int pid, struct target_waitstatus *ourstatus)
{
int rtnval;
struct cleanup *old_chain;
@@ -303,8 +290,7 @@ static char regmap[NUM_REGS] =
};
static void
-hpux_thread_fetch_registers (regno)
- int regno;
+hpux_thread_fetch_registers (int regno)
{
cma__t_int_tcb tcb, *tcb_ptr;
struct cleanup *old_chain;
@@ -366,8 +352,7 @@ hpux_thread_fetch_registers (regno)
}
static void
-hpux_thread_store_registers (regno)
- int regno;
+hpux_thread_store_registers (int regno)
{
cma__t_int_tcb tcb, *tcb_ptr;
struct cleanup *old_chain;
@@ -442,7 +427,7 @@ hpux_thread_store_registers (regno)
debugged. */
static void
-hpux_thread_prepare_to_store ()
+hpux_thread_prepare_to_store (void)
{
child_ops.to_prepare_to_store ();
}
@@ -472,21 +457,19 @@ hpux_thread_xfer_memory (memaddr, myaddr, len, dowrite, target)
/* Print status information about what we're accessing. */
static void
-hpux_thread_files_info (ignore)
- struct target_ops *ignore;
+hpux_thread_files_info (struct target_ops *ignore)
{
child_ops.to_files_info (ignore);
}
static void
-hpux_thread_kill_inferior ()
+hpux_thread_kill_inferior (void)
{
child_ops.to_kill ();
}
static void
-hpux_thread_notice_signals (pid)
- int pid;
+hpux_thread_notice_signals (int pid)
{
child_ops.to_notice_signals (pid);
}
@@ -494,10 +477,7 @@ hpux_thread_notice_signals (pid)
/* Fork an inferior process, and start debugging it with /proc. */
static void
-hpux_thread_create_inferior (exec_file, allargs, env)
- char *exec_file;
- char *allargs;
- char **env;
+hpux_thread_create_inferior (char *exec_file, char *allargs, char **env)
{
child_ops.to_create_inferior (exec_file, allargs, env);
@@ -527,8 +507,7 @@ hpux_thread_create_inferior (exec_file, allargs, env)
static void (*target_new_objfile_chain) (struct objfile *);
void
-hpux_thread_new_objfile (objfile)
- struct objfile *objfile;
+hpux_thread_new_objfile (struct objfile *objfile)
{
struct minimal_symbol *ms;
@@ -562,7 +541,7 @@ quit:
/* Clean up after the inferior dies. */
static void
-hpux_thread_mourn_inferior ()
+hpux_thread_mourn_inferior (void)
{
child_ops.to_mourn_inferior ();
}
@@ -570,20 +549,19 @@ hpux_thread_mourn_inferior ()
/* Mark our target-struct as eligible for stray "run" and "attach" commands. */
static int
-hpux_thread_can_run ()
+hpux_thread_can_run (void)
{
return child_suppress_run;
}
static int
-hpux_thread_alive (pid)
- int pid;
+hpux_thread_alive (int pid)
{
return 1;
}
static void
-hpux_thread_stop ()
+hpux_thread_stop (void)
{
child_ops.to_stop ();
}
@@ -591,8 +569,7 @@ hpux_thread_stop ()
/* Convert a pid to printable form. */
char *
-hpux_pid_to_str (pid)
- int pid;
+hpux_pid_to_str (int pid)
{
static char buf[100];
@@ -602,7 +579,7 @@ hpux_pid_to_str (pid)
}
static void
-init_hpux_thread_ops ()
+init_hpux_thread_ops (void)
{
hpux_thread_ops.to_shortname = "hpux-threads";
hpux_thread_ops.to_longname = "HPUX threads and pthread.";
@@ -641,7 +618,7 @@ init_hpux_thread_ops ()
}
void
-_initialize_hpux_thread ()
+_initialize_hpux_thread (void)
{
init_hpux_thread_ops ();
add_target (&hpux_thread_ops);
diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c
index 6a37558..6d7b50e 100644
--- a/gdb/i386-linux-nat.c
+++ b/gdb/i386-linux-nat.c
@@ -146,8 +146,7 @@ int have_ptrace_getxfpregs =
/* Fetch one register. */
static void
-fetch_register (regno)
- int regno;
+fetch_register (int regno)
{
/* This isn't really an address. But ptrace thinks of it as one. */
CORE_ADDR regaddr;
@@ -192,8 +191,7 @@ fetch_register (regno)
Otherwise, REGNO specifies which register (so we can save time). */
void
-old_fetch_inferior_registers (regno)
- int regno;
+old_fetch_inferior_registers (int regno)
{
if (regno >= 0)
{
@@ -216,8 +214,7 @@ old_fetch_inferior_registers (regno)
/* Store one register. */
static void
-store_register (regno)
- int regno;
+store_register (int regno)
{
/* This isn't really an address. But ptrace thinks of it as one. */
CORE_ADDR regaddr;
@@ -258,8 +255,7 @@ store_register (regno)
Otherwise, REGNO specifies which register (so we can save time). */
void
-old_store_inferior_registers (regno)
- int regno;
+old_store_inferior_registers (int regno)
{
if (regno >= 0)
{
@@ -1151,7 +1147,7 @@ static struct core_fns linux_elf_core_fns =
};
void
-_initialize_i386_linux_nat ()
+_initialize_i386_linux_nat (void)
{
add_core_fns (&linux_elf_core_fns);
}
diff --git a/gdb/i386-stub.c b/gdb/i386-stub.c
index 157779c..2b08e34 100644
--- a/gdb/i386-stub.c
+++ b/gdb/i386-stub.c
@@ -449,7 +449,7 @@ static char remcomOutBuffer[BUFMAX];
/* scan for the sequence $<data>#<checksum> */
unsigned char *
-getpacket ()
+getpacket (void)
{
unsigned char *buffer = &remcomInBuffer[0];
unsigned char checksum;
@@ -562,7 +562,7 @@ static void (*volatile mem_fault_routine)() = NULL;
static volatile int mem_err = 0;
void
-set_mem_err ()
+set_mem_err (void)
{
mem_err = 1;
}
@@ -572,16 +572,13 @@ set_mem_err ()
to mem_fault, they won't get restored, so there better not be any
saved). */
int
-get_char (addr)
- char *addr;
+get_char (char *addr)
{
return *addr;
}
void
-set_char (addr, val)
- char *addr;
- int val;
+set_char (char *addr, int val)
{
*addr = val;
}
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index 728d012..8aaf651 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -123,8 +123,7 @@ static int codestream_cnt;
codestream_fill(0) : codestream_buf[codestream_off++])
static unsigned char
-codestream_fill (peek_flag)
- int peek_flag;
+codestream_fill (int peek_flag)
{
codestream_addr = codestream_next_addr;
codestream_next_addr += CODESTREAM_BUFSIZ;
@@ -139,8 +138,7 @@ codestream_fill (peek_flag)
}
static void
-codestream_seek (place)
- CORE_ADDR place;
+codestream_seek (CORE_ADDR place)
{
codestream_next_addr = place / CODESTREAM_BUFSIZ;
codestream_next_addr *= CODESTREAM_BUFSIZ;
@@ -151,9 +149,7 @@ codestream_seek (place)
}
static void
-codestream_read (buf, count)
- unsigned char *buf;
- int count;
+codestream_read (unsigned char *buf, int count)
{
unsigned char *p;
int i;
@@ -165,7 +161,7 @@ codestream_read (buf, count)
/* next instruction is a jump, move to target */
static void
-i386_follow_jump ()
+i386_follow_jump (void)
{
unsigned char buf[4];
long delta;
@@ -223,8 +219,7 @@ i386_follow_jump ()
*/
static long
-i386_get_frame_setup (pc)
- CORE_ADDR pc;
+i386_get_frame_setup (CORE_ADDR pc)
{
unsigned char op;
@@ -375,8 +370,7 @@ i386_get_frame_setup (pc)
Can return -1, meaning no way to tell. */
int
-i386_frame_num_args (fi)
- struct frame_info *fi;
+i386_frame_num_args (struct frame_info *fi)
{
#if 1
return -1;
@@ -477,8 +471,7 @@ i386_frame_num_args (fi)
*/
void
-i386_frame_init_saved_regs (fip)
- struct frame_info *fip;
+i386_frame_init_saved_regs (struct frame_info *fip)
{
long locals = -1;
unsigned char op;
@@ -539,8 +532,7 @@ i386_frame_init_saved_regs (fip)
/* return pc of first real instruction */
int
-i386_skip_prologue (pc)
- int pc;
+i386_skip_prologue (int pc)
{
unsigned char op;
int i;
@@ -621,7 +613,7 @@ i386_skip_prologue (pc)
}
void
-i386_push_dummy_frame ()
+i386_push_dummy_frame (void)
{
CORE_ADDR sp = read_register (SP_REGNUM);
int regnum;
@@ -659,7 +651,7 @@ i386_fix_call_dummy (char *dummy, CORE_ADDR pc, CORE_ADDR fun, int nargs,
}
void
-i386_pop_frame ()
+i386_pop_frame (void)
{
struct frame_info *frame = get_current_frame ();
CORE_ADDR fp;
@@ -694,8 +686,7 @@ i386_pop_frame ()
This routine returns true on success. */
int
-get_longjmp_target (pc)
- CORE_ADDR *pc;
+get_longjmp_target (CORE_ADDR *pc)
{
char buf[TARGET_PTR_BIT / TARGET_CHAR_BIT];
CORE_ADDR sp, jb_addr;
@@ -814,8 +805,7 @@ i386_register_convert_to_raw (struct type *type, int regnum,
for all three variants of SVR4 sigtramps. */
CORE_ADDR
-i386v4_sigtramp_saved_pc (frame)
- struct frame_info *frame;
+i386v4_sigtramp_saved_pc (struct frame_info *frame)
{
CORE_ADDR saved_pc_offset = 4;
char *name = NULL;
@@ -843,8 +833,7 @@ i386v4_sigtramp_saved_pc (frame)
it is done for C too. */
char *
-sunpro_static_transform_name (name)
- char *name;
+sunpro_static_transform_name (char *name)
{
char *p;
if (IS_STATIC_TRANSFORM_NAME (name))
@@ -869,9 +858,7 @@ sunpro_static_transform_name (name)
/* Stuff for WIN32 PE style DLL's but is pretty generic really. */
CORE_ADDR
-skip_trampoline_code (pc, name)
- CORE_ADDR pc;
- char *name;
+skip_trampoline_code (CORE_ADDR pc, char *name)
{
if (pc && read_memory_unsigned_integer (pc, 2) == 0x25ff) /* jmp *(dest) */
{
@@ -891,9 +878,7 @@ skip_trampoline_code (pc, name)
}
static int
-gdb_print_insn_i386 (memaddr, info)
- bfd_vma memaddr;
- disassemble_info *info;
+gdb_print_insn_i386 (bfd_vma memaddr, disassemble_info *info)
{
if (disassembly_flavor == att_flavor)
return print_insn_i386_att (memaddr, info);
@@ -909,16 +894,14 @@ gdb_print_insn_i386 (memaddr, info)
command, and does that. */
static void
-set_disassembly_flavor_sfunc (args, from_tty, c)
- char *args;
- int from_tty;
- struct cmd_list_element *c;
+set_disassembly_flavor_sfunc (char *args, int from_tty,
+ struct cmd_list_element *c)
{
set_disassembly_flavor ();
}
static void
-set_disassembly_flavor ()
+set_disassembly_flavor (void)
{
if (disassembly_flavor == att_flavor)
set_architecture_from_arch_mach (bfd_arch_i386, bfd_mach_i386_i386);
@@ -928,7 +911,7 @@ set_disassembly_flavor ()
void
-_initialize_i386_tdep ()
+_initialize_i386_tdep (void)
{
/* Initialize the table saying where each register starts in the
register file. */
diff --git a/gdb/i386aix-nat.c b/gdb/i386aix-nat.c
index 03154d2..0a432dd 100644
--- a/gdb/i386aix-nat.c
+++ b/gdb/i386aix-nat.c
@@ -70,9 +70,7 @@ static int regmap[] =
*/
int
-i386_register_u_addr (blockend, regnum)
- int blockend;
- int regnum;
+i386_register_u_addr (int blockend, int regnum)
{
#if 0
/* this will be needed if fp registers are reinstated */
@@ -115,9 +113,7 @@ struct env387
};
static
-print_387_status (status, ep)
- unsigned short status;
- struct env387 *ep;
+print_387_status (unsigned short status, struct env387 *ep)
{
int i;
int bothstatus;
@@ -183,7 +179,7 @@ print_387_status (status, ep)
static struct env387 core_env387;
void
-i386_float_info ()
+i386_float_info (void)
{
struct env387 fps;
int fpsaved = 0;
@@ -232,8 +228,7 @@ i386_float_info ()
/* Fetch one register. */
static void
-fetch_register (regno)
- int regno;
+fetch_register (int regno)
{
char buf[MAX_REGISTER_RAW_SIZE];
if (regno < FP0_REGNUM)
@@ -246,8 +241,7 @@ fetch_register (regno)
}
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
if (regno < 0)
for (regno = 0; regno < NUM_REGS; regno++)
@@ -258,8 +252,7 @@ fetch_inferior_registers (regno)
/* store one register */
static void
-store_register (regno)
- int regno;
+store_register (int regno)
{
char buf[80];
errno = 0;
@@ -281,8 +274,7 @@ store_register (regno)
If REGNO is -1, do this for all registers.
Otherwise, REGNO specifies which register (so we can save time). */
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
if (regno < 0)
for (regno = 0; regno < NUM_REGS; regno++)
@@ -366,7 +358,7 @@ static struct core_fns i386aix_core_fns =
};
void
-_initialize_core_i386aix ()
+_initialize_core_i386aix (void)
{
add_core_fns (&i386aix_core_fns);
}
diff --git a/gdb/i386b-nat.c b/gdb/i386b-nat.c
index dfa0a70..12a27a9 100644
--- a/gdb/i386b-nat.c
+++ b/gdb/i386b-nat.c
@@ -29,8 +29,7 @@
#include "gdbcore.h" /* for registers_fetched() */
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
struct reg inferior_registers;
@@ -40,8 +39,7 @@ fetch_inferior_registers (regno)
}
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
struct reg inferior_registers;
@@ -56,11 +54,8 @@ struct md_core
};
void
-fetch_core_registers (core_reg_sect, core_reg_size, which, ignore)
- char *core_reg_sect;
- unsigned core_reg_size;
- int which;
- CORE_ADDR ignore;
+fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, int which,
+ CORE_ADDR ignore)
{
struct md_core *core_reg = (struct md_core *) core_reg_sect;
@@ -108,9 +103,7 @@ static int sregmap[] =
place where ES is stored. */
int
-i386_register_u_addr (blockend, regnum)
- int blockend;
- int regnum;
+i386_register_u_addr (int blockend, int regnum)
{
/* The following condition is a kludge to get at the proper register map
depending upon the state of pcb_flag.
@@ -174,9 +167,7 @@ struct env387
};
static void
-print_387_status (status, ep)
- unsigned short status;
- struct env387 *ep;
+print_387_status (unsigned short status, struct env387 *ep)
{
int i;
int bothstatus;
@@ -239,7 +230,7 @@ print_387_status (status, ep)
}
}
-i386_float_info ()
+i386_float_info (void)
{
struct user u; /* just for address computations */
int i;
@@ -288,7 +279,7 @@ i386_float_info ()
}
int
-kernel_u_size ()
+kernel_u_size (void)
{
return (sizeof (struct user));
}
diff --git a/gdb/i386ly-tdep.c b/gdb/i386ly-tdep.c
index 1b01121..0122479 100644
--- a/gdb/i386ly-tdep.c
+++ b/gdb/i386ly-tdep.c
@@ -30,8 +30,7 @@
system calls use a different calling sequence. */
CORE_ADDR
-i386lynx_saved_pc_after_call (frame)
- struct frame_info *frame;
+i386lynx_saved_pc_after_call (struct frame_info *frame)
{
char opcode[7];
static const unsigned char call_inst[] =
diff --git a/gdb/i386m3-nat.c b/gdb/i386m3-nat.c
index 61fd384..5f3d130 100644
--- a/gdb/i386m3-nat.c
+++ b/gdb/i386m3-nat.c
@@ -101,8 +101,7 @@ static int reg_offset[] =
*/
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
kern_return_t ret;
thread_state_data_t state;
@@ -147,8 +146,7 @@ fetch_inferior_registers (regno)
* On mach3 all registers are always saved in one call.
*/
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
kern_return_t ret;
thread_state_data_t state;
@@ -221,9 +219,7 @@ store_inferior_registers (regno)
*/
CORE_ADDR
-register_addr (regno, blockend)
- int regno;
- CORE_ADDR blockend;
+register_addr (int regno, CORE_ADDR blockend)
{
CORE_ADDR addr;
@@ -261,9 +257,7 @@ struct env387
* Should move it to i387-tdep.c but you need to export struct env387
*/
private
-print_387_status (status, ep)
- unsigned short status;
- struct env387 *ep;
+print_387_status (unsigned short status, struct env387 *ep)
{
int i;
int bothstatus;
@@ -358,8 +352,7 @@ typedef struct fpstate
/* Mach 3 specific routines.
*/
private boolean_t
-get_i387_state (fstate)
- struct fpstate *fstate;
+get_i387_state (struct fpstate *fstate)
{
kern_return_t ret;
thread_state_data_t state;
@@ -396,8 +389,7 @@ get_i387_state (fstate)
}
private boolean_t
-get_i387_core_state (fstate)
- struct fpstate *fstate;
+get_i387_core_state (struct fpstate *fstate)
{
/* Not implemented yet. Core files do not contain float state. */
return FALSE;
@@ -407,7 +399,7 @@ get_i387_core_state (fstate)
* This is called by "info float" command
*/
void
-i386_mach3_float_info ()
+i386_mach3_float_info (void)
{
char buf[sizeof (struct fpstate) + 2 * sizeof (int)];
boolean_t valid = FALSE;
diff --git a/gdb/i386mach-nat.c b/gdb/i386mach-nat.c
index ded044b..966acb8 100644
--- a/gdb/i386mach-nat.c
+++ b/gdb/i386mach-nat.c
@@ -68,8 +68,7 @@ fetch_inferior_registers (regno)
Otherwise, REGNO specifies which register (so we can save time). */
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
struct regs inferior_registers;
struct fp_state inferior_fp_registers;
@@ -156,7 +155,7 @@ static struct core_fns i386mach_core_fns =
};
void
-_initialize_core_i386mach ()
+_initialize_core_i386mach (void)
{
add_core_fns (&i386mach_core_fns);
}
diff --git a/gdb/i386nbsd-nat.c b/gdb/i386nbsd-nat.c
index c1d2cd7..b60ff32 100644
--- a/gdb/i386nbsd-nat.c
+++ b/gdb/i386nbsd-nat.c
@@ -51,8 +51,7 @@ struct env387
};
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
struct reg inferior_registers;
struct env387 inferior_fpregisters;
@@ -101,8 +100,7 @@ fetch_inferior_registers (regno)
}
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
struct reg inferior_registers;
struct env387 inferior_fpregisters;
@@ -165,11 +163,8 @@ struct md_core
};
static void
-fetch_core_registers (core_reg_sect, core_reg_size, which, ignore)
- char *core_reg_sect;
- unsigned core_reg_size;
- int which;
- CORE_ADDR ignore;
+fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, int which,
+ CORE_ADDR ignore)
{
struct md_core *core_reg = (struct md_core *) core_reg_sect;
@@ -212,7 +207,7 @@ static struct core_fns i386nbsd_core_fns =
};
void
-_initialize_i386nbsd_nat ()
+_initialize_i386nbsd_nat (void)
{
add_core_fns (&i386nbsd_core_fns);
}
diff --git a/gdb/i386v-nat.c b/gdb/i386v-nat.c
index 9ae5716..54cf387 100644
--- a/gdb/i386v-nat.c
+++ b/gdb/i386v-nat.c
@@ -87,9 +87,7 @@ static int regmap[] =
*/
int
-i386_register_u_addr (blockend, regnum)
- int blockend;
- int regnum;
+i386_register_u_addr (int blockend, int regnum)
{
struct user u;
int fpstate;
@@ -116,7 +114,7 @@ i386_register_u_addr (blockend, regnum)
}
int
-kernel_u_size ()
+kernel_u_size (void)
{
return (sizeof (struct user));
}
@@ -142,22 +140,14 @@ i386_insert_nonaligned_watchpoint (int, CORE_ADDR, CORE_ADDR, int, int);
/* Insert a watchpoint. */
int
-i386_insert_watchpoint (pid, addr, len, rw)
- int pid;
- CORE_ADDR addr;
- int len;
- int rw;
+i386_insert_watchpoint (int pid, CORE_ADDR addr, int len, int rw)
{
return i386_insert_aligned_watchpoint (pid, addr, addr, len, rw);
}
static int
-i386_insert_aligned_watchpoint (pid, waddr, addr, len, rw)
- int pid;
- CORE_ADDR waddr;
- CORE_ADDR addr;
- int len;
- int rw;
+i386_insert_aligned_watchpoint (int pid, CORE_ADDR waddr, CORE_ADDR addr,
+ int len, int rw)
{
int i;
int read_write_bits, len_bits;
@@ -216,12 +206,8 @@ i386_insert_aligned_watchpoint (pid, waddr, addr, len, rw)
}
static int
-i386_insert_nonaligned_watchpoint (pid, waddr, addr, len, rw)
- int pid;
- CORE_ADDR waddr;
- CORE_ADDR addr;
- int len;
- int rw;
+i386_insert_nonaligned_watchpoint (int pid, CORE_ADDR waddr, CORE_ADDR addr,
+ int len, int rw)
{
int align;
int size;
@@ -257,10 +243,7 @@ i386_insert_nonaligned_watchpoint (pid, waddr, addr, len, rw)
/* Remove a watchpoint. */
int
-i386_remove_watchpoint (pid, addr, len)
- int pid;
- CORE_ADDR addr;
- int len;
+i386_remove_watchpoint (int pid, CORE_ADDR addr, int len)
{
int i;
int register_number;
@@ -285,8 +268,7 @@ i386_remove_watchpoint (pid, addr, len)
/* Check if stopped by a watchpoint. */
CORE_ADDR
-i386_stopped_by_watchpoint (pid)
- int pid;
+i386_stopped_by_watchpoint (int pid)
{
int i;
int status;
diff --git a/gdb/i386v4-nat.c b/gdb/i386v4-nat.c
index a266423..9750647 100644
--- a/gdb/i386v4-nat.c
+++ b/gdb/i386v4-nat.c
@@ -112,8 +112,7 @@ void fill_fpregset (fpregset_t *, int);
register values. */
void
-supply_gregset (gregsetp)
- gregset_t *gregsetp;
+supply_gregset (gregset_t *gregsetp)
{
register int regi;
register greg_t *regp = (greg_t *) gregsetp;
@@ -126,9 +125,7 @@ supply_gregset (gregsetp)
}
void
-fill_gregset (gregsetp, regno)
- gregset_t *gregsetp;
- int regno;
+fill_gregset (gregset_t *gregsetp, int regno)
{
int regi;
register greg_t *regp = (greg_t *) gregsetp;
@@ -176,8 +173,7 @@ static const int freg_offset_map[] =
};
void
-supply_fpregset (fpregsetp)
- fpregset_t *fpregsetp;
+supply_fpregset (fpregset_t *fpregsetp)
{
int regi;
@@ -212,9 +208,7 @@ supply_fpregset (fpregsetp)
them all. */
void
-fill_fpregset (fpregsetp, regno)
- fpregset_t *fpregsetp;
- int regno;
+fill_fpregset (fpregset_t *fpregsetp, int regno)
{
int regi;
diff --git a/gdb/i387-tdep.c b/gdb/i387-tdep.c
index 4f180fa..88b65a4 100644
--- a/gdb/i387-tdep.c
+++ b/gdb/i387-tdep.c
@@ -34,17 +34,13 @@ void i387_to_double (char *from, char *to);
void double_to_i387 (char *from, char *to);
void
-i387_to_double (from, to)
- char *from;
- char *to;
+i387_to_double (char *from, char *to)
{
floatformat_to_double (&floatformat_i387_ext, from, (double *) to);
}
void
-double_to_i387 (from, to)
- char *from;
- char *to;
+double_to_i387 (char *from, char *to)
{
floatformat_from_double (&floatformat_i387_ext, (double *) from, to);
}
@@ -60,8 +56,7 @@ static void print_387_control_bits (unsigned int control);
static void print_387_status_bits (unsigned int status);
static void
-print_387_control_bits (control)
- unsigned int control;
+print_387_control_bits (unsigned int control)
{
switch ((control >> 8) & 3)
{
@@ -117,8 +112,7 @@ print_387_control_bits (control)
}
void
-print_387_control_word (control)
- unsigned int control;
+print_387_control_word (unsigned int control)
{
printf_filtered ("control %s:", local_hex_string(control & 0xffff));
print_387_control_bits (control);
@@ -126,8 +120,7 @@ print_387_control_word (control)
}
static void
-print_387_status_bits (status)
- unsigned int status;
+print_387_status_bits (unsigned int status)
{
printf_unfiltered (" flags %d%d%d%d; ",
(status & 0x4000) != 0,
@@ -149,8 +142,7 @@ print_387_status_bits (status)
}
void
-print_387_status_word (status)
- unsigned int status;
+print_387_status_word (unsigned int status)
{
printf_filtered ("status %s:", local_hex_string (status & 0xffff));
print_387_status_bits (status);
diff --git a/gdb/i960-tdep.c b/gdb/i960-tdep.c
index f7aab5f..7bc0e88 100644
--- a/gdb/i960-tdep.c
+++ b/gdb/i960-tdep.c
@@ -47,9 +47,7 @@ static CORE_ADDR next_insn (CORE_ADDR memaddr,
If it's more than 16 bytes long, g13 pointed to it on entry. */
int
-i960_use_struct_convention (gcc_p, type)
- int gcc_p;
- struct type *type;
+i960_use_struct_convention (int gcc_p, struct type *type)
{
return (TYPE_LENGTH (type) > 16);
}
@@ -58,7 +56,7 @@ i960_use_struct_convention (gcc_p, type)
This routine must be called as part of gdb initialization. */
static void
-check_host ()
+check_host (void)
{
int i;
@@ -170,11 +168,8 @@ check_host ()
(((addr) < (lim)) ? next_insn (addr, pword1, pword2) : 0)
static CORE_ADDR
-examine_prologue (ip, limit, frame_addr, fsr)
- register CORE_ADDR ip;
- register CORE_ADDR limit;
- CORE_ADDR frame_addr;
- struct frame_saved_regs *fsr;
+examine_prologue (register CORE_ADDR ip, register CORE_ADDR limit,
+ CORE_ADDR frame_addr, struct frame_saved_regs *fsr)
{
register CORE_ADDR next_ip;
register int src, dst;
@@ -359,9 +354,7 @@ CORE_ADDR (ip);
fairly expensive. */
void
-frame_find_saved_regs (fi, fsr)
- struct frame_info *fi;
- struct frame_saved_regs *fsr;
+frame_find_saved_regs (struct frame_info *fi, struct frame_saved_regs *fsr)
{
register CORE_ADDR next_addr;
register CORE_ADDR *saved_regs;
@@ -427,8 +420,7 @@ frame_find_saved_regs (fi, fsr)
described by FI. Returns 0 if the address is unknown. */
CORE_ADDR
-frame_args_address (fi, must_be_correct)
- struct frame_info *fi;
+frame_args_address (struct frame_info *fi, int must_be_correct)
{
struct frame_saved_regs fsr;
CORE_ADDR ap;
@@ -459,8 +451,7 @@ frame_args_address (fi, must_be_correct)
described by FI. Returns 0 if the address is unknown. */
CORE_ADDR
-frame_struct_result_address (fi)
- struct frame_info *fi;
+frame_struct_result_address (struct frame_info *fi)
{
struct frame_saved_regs fsr;
CORE_ADDR ap;
@@ -551,8 +542,7 @@ leafproc_return (ip)
unless the function is a leaf procedure. */
CORE_ADDR
-saved_pc_after_call (frame)
- struct frame_info *frame;
+saved_pc_after_call (struct frame_info *frame)
{
CORE_ADDR saved_pc;
@@ -620,8 +610,7 @@ i960_pop_frame (void)
corresponds. */
enum target_signal
-i960_fault_to_signal (fault)
- int fault;
+i960_fault_to_signal (int fault)
{
switch (fault)
{
@@ -794,9 +783,7 @@ mem (memaddr, word1, word2, noprint)
'pword2'. */
static CORE_ADDR
-next_insn (memaddr, pword1, pword2)
- unsigned int *pword1, *pword2;
- CORE_ADDR memaddr;
+next_insn (CORE_ADDR memaddr, unsigned int *pword1, unsigned int *pword2)
{
int len;
char buf[8];
@@ -852,9 +839,7 @@ next_insn (memaddr, pword1, pword2)
they display this frame. */
int
-mon960_frame_chain_valid (chain, curframe)
- CORE_ADDR chain;
- struct frame_info *curframe;
+mon960_frame_chain_valid (CORE_ADDR chain, struct frame_info *curframe)
{
struct symbol *sym;
struct minimal_symbol *msymbol;
@@ -898,7 +883,7 @@ mon960_frame_chain_valid (chain, curframe)
void
-_initialize_i960_tdep ()
+_initialize_i960_tdep (void)
{
check_host ();
diff --git a/gdb/ia64-linux-nat.c b/gdb/ia64-linux-nat.c
index 6838134..bd07c3b 100644
--- a/gdb/ia64-linux-nat.c
+++ b/gdb/ia64-linux-nat.c
@@ -296,9 +296,7 @@ static int u_offsets[] =
};
CORE_ADDR
-register_addr (regno, blockend)
- int regno;
- CORE_ADDR blockend;
+register_addr (int regno, CORE_ADDR blockend)
{
CORE_ADDR addr;
@@ -356,8 +354,7 @@ int ia64_cannot_store_register (regno)
}
void
-supply_gregset (gregsetp)
- gregset_t *gregsetp;
+supply_gregset (gregset_t *gregsetp)
{
int regi;
greg_t *regp = (greg_t *) gregsetp;
@@ -393,9 +390,7 @@ supply_gregset (gregsetp)
}
void
-fill_gregset (gregsetp, regno)
- gregset_t *gregsetp;
- int regno;
+fill_gregset (gregset_t *gregsetp, int regno)
{
int regi;
greg_t *regp = (greg_t *) gregsetp;
@@ -439,8 +434,7 @@ fill_gregset (gregsetp, regno)
idea of the current floating point register values. */
void
-supply_fpregset (fpregsetp)
- fpregset_t *fpregsetp;
+supply_fpregset (fpregset_t *fpregsetp)
{
register int regi;
char *from;
@@ -458,9 +452,7 @@ supply_fpregset (fpregsetp)
them all. */
void
-fill_fpregset (fpregsetp, regno)
- fpregset_t *fpregsetp;
- int regno;
+fill_fpregset (fpregset_t *fpregsetp, int regno)
{
int regi;
char *to;
diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c
index e220e27..eac2570 100644
--- a/gdb/ia64-tdep.c
+++ b/gdb/ia64-tdep.c
@@ -564,9 +564,7 @@ ia64_memory_remove_breakpoint (CORE_ADDR addr, char *contents_cache)
/* We don't really want to use this, but remote.c needs to call it in order
to figure out if Z-packets are supported or not. Oh, well. */
unsigned char *
-ia64_breakpoint_from_pc (pcptr, lenptr)
- CORE_ADDR *pcptr;
- int *lenptr;
+ia64_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr)
{
static unsigned char breakpoint[] =
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 4f2dd8c..bbe1a7c 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -205,8 +205,7 @@ struct environ *inferior_environ;
of a command. If it has, it removes it and returns 1. Otherwise it
does nothing and returns 0. */
static int
-strip_bg_char (args)
- char **args;
+strip_bg_char (char **args)
{
char *p = NULL;
@@ -233,9 +232,7 @@ strip_bg_char (args)
/* ARGSUSED */
void
-tty_command (file, from_tty)
- char *file;
- int from_tty;
+tty_command (char *file, int from_tty)
{
if (file == 0)
error_no_arg ("terminal name for running target process");
@@ -244,9 +241,7 @@ tty_command (file, from_tty)
}
static void
-run_command (args, from_tty)
- char *args;
- int from_tty;
+run_command (char *args, int from_tty)
{
char *exec_file;
@@ -346,9 +341,7 @@ Start it from the beginning? "))
static void
-run_no_args_command (args, from_tty)
- char *args;
- int from_tty;
+run_no_args_command (char *args, int from_tty)
{
execute_command ("set args", from_tty);
run_command ((char *) NULL, from_tty);
@@ -356,9 +349,7 @@ run_no_args_command (args, from_tty)
void
-continue_command (proc_count_exp, from_tty)
- char *proc_count_exp;
- int from_tty;
+continue_command (char *proc_count_exp, int from_tty)
{
int async_exec = 0;
ERROR_NO_INFERIOR;
@@ -416,9 +407,7 @@ continue_command (proc_count_exp, from_tty)
/* ARGSUSED */
static void
-step_command (count_string, from_tty)
- char *count_string;
- int from_tty;
+step_command (char *count_string, int from_tty)
{
step_1 (0, 0, count_string);
}
@@ -427,9 +416,7 @@ step_command (count_string, from_tty)
/* ARGSUSED */
static void
-next_command (count_string, from_tty)
- char *count_string;
- int from_tty;
+next_command (char *count_string, int from_tty)
{
step_1 (1, 0, count_string);
}
@@ -438,18 +425,14 @@ next_command (count_string, from_tty)
/* ARGSUSED */
void
-stepi_command (count_string, from_tty)
- char *count_string;
- int from_tty;
+stepi_command (char *count_string, int from_tty)
{
step_1 (0, 1, count_string);
}
/* ARGSUSED */
void
-nexti_command (count_string, from_tty)
- char *count_string;
- int from_tty;
+nexti_command (char *count_string, int from_tty)
{
step_1 (1, 1, count_string);
}
@@ -461,10 +444,7 @@ disable_longjmp_breakpoint_cleanup (void *ignore)
}
static void
-step_1 (skip_subroutines, single_inst, count_string)
- int skip_subroutines;
- int single_inst;
- char *count_string;
+step_1 (int skip_subroutines, int single_inst, char *count_string)
{
register int count = 1;
struct frame_info *frame;
@@ -578,8 +558,7 @@ which has no line number information.\n", name);
proceed(), via step_once(). Basically it is like step_once and
step_1_continuation are co-recursive. */
static void
-step_1_continuation (arg)
- struct continuation_arg *arg;
+step_1_continuation (struct continuation_arg *arg)
{
int count;
int skip_subroutines;
@@ -681,9 +660,7 @@ which has no line number information.\n", name);
/* Continue program at specified address. */
static void
-jump_command (arg, from_tty)
- char *arg;
- int from_tty;
+jump_command (char *arg, int from_tty)
{
register CORE_ADDR addr;
struct symtabs_and_lines sals;
@@ -771,9 +748,7 @@ jump_command (arg, from_tty)
/* Go to line or address in current procedure */
static void
-go_command (line_no, from_tty)
- char *line_no;
- int from_tty;
+go_command (char *line_no, int from_tty)
{
if (line_no == (char *) NULL || !*line_no)
printf_filtered (GO_USAGE);
@@ -788,9 +763,7 @@ go_command (line_no, from_tty)
/* Continue program giving it specified signal. */
static void
-signal_command (signum_exp, from_tty)
- char *signum_exp;
- int from_tty;
+signal_command (char *signum_exp, int from_tty)
{
enum target_signal oursig;
@@ -837,8 +810,7 @@ signal_command (signum_exp, from_tty)
pointed to by arg (which is really a bpstat *). */
static void
-breakpoint_auto_delete_contents (arg)
- PTR arg;
+breakpoint_auto_delete_contents (PTR arg)
{
breakpoint_auto_delete (*(bpstat *) arg);
}
@@ -866,9 +838,7 @@ breakpoint_auto_delete_contents (arg)
will eventually be popped when we do hit the dummy end breakpoint). */
int
-run_stack_dummy (addr, buffer)
- CORE_ADDR addr;
- char *buffer;
+run_stack_dummy (CORE_ADDR addr, char *buffer)
{
struct cleanup *old_cleanups = make_cleanup (null_cleanup, 0);
int saved_async = 0;
@@ -956,8 +926,7 @@ run_stack_dummy (addr, buffer)
/* ARGSUSED */
static void
-until_next_command (from_tty)
- int from_tty;
+until_next_command (int from_tty)
{
struct frame_info *frame;
CORE_ADDR pc;
@@ -1003,9 +972,7 @@ until_next_command (from_tty)
}
static void
-until_command (arg, from_tty)
- char *arg;
- int from_tty;
+until_command (char *arg, int from_tty)
{
int async_exec = 0;
@@ -1106,8 +1073,7 @@ print_return_value (int structure_return, struct type *value_type)
detects that the target has stopped. This function is called via the
cmd_continaution pointer. */
void
-finish_command_continuation (arg)
- struct continuation_arg *arg;
+finish_command_continuation (struct continuation_arg *arg)
{
register struct symbol *function;
struct breakpoint *breakpoint;
@@ -1150,9 +1116,7 @@ finish_command_continuation (arg)
the selected frame will return to, then continue. */
static void
-finish_command (arg, from_tty)
- char *arg;
- int from_tty;
+finish_command (char *arg, int from_tty)
{
struct symtab_and_line sal;
register struct frame_info *frame;
@@ -1277,9 +1241,7 @@ finish_command (arg, from_tty)
/* ARGSUSED */
static void
-program_info (args, from_tty)
- char *args;
- int from_tty;
+program_info (char *args, int from_tty)
{
bpstat bs = stop_bpstat;
int num = bpstat_num (&bs);
@@ -1326,9 +1288,7 @@ program_info (args, from_tty)
}
static void
-environment_info (var, from_tty)
- char *var;
- int from_tty;
+environment_info (char *var, int from_tty)
{
if (var)
{
@@ -1359,9 +1319,7 @@ environment_info (var, from_tty)
}
static void
-set_environment_command (arg, from_tty)
- char *arg;
- int from_tty;
+set_environment_command (char *arg, int from_tty)
{
register char *p, *val, *var;
int nullset = 0;
@@ -1423,9 +1381,7 @@ set_environment_command (arg, from_tty)
}
static void
-unset_environment_command (var, from_tty)
- char *var;
- int from_tty;
+unset_environment_command (char *var, int from_tty)
{
if (var == 0)
{
@@ -1447,9 +1403,7 @@ static const char path_var_name[] = "PATH";
/* ARGSUSED */
static void
-path_info (args, from_tty)
- char *args;
- int from_tty;
+path_info (char *args, int from_tty)
{
puts_filtered ("Executable and object file path: ");
puts_filtered (get_in_environ (inferior_environ, path_var_name));
@@ -1459,9 +1413,7 @@ path_info (args, from_tty)
/* Add zero or more directories to the front of the execution path. */
static void
-path_command (dirname, from_tty)
- char *dirname;
- int from_tty;
+path_command (char *dirname, int from_tty)
{
char *exec_path;
char *env;
@@ -1498,9 +1450,7 @@ char *gdb_register_names[] = REGISTER_NAMES;
#define DO_REGISTERS_INFO(regnum, fp) do_registers_info(regnum, fp)
static void
-do_registers_info (regnum, fpregs)
- int regnum;
- int fpregs;
+do_registers_info (int regnum, int fpregs)
{
register int i;
int numregs = ARCH_NUM_REGS;
@@ -1605,9 +1555,7 @@ do_registers_info (regnum, fpregs)
#endif /* no DO_REGISTERS_INFO. */
void
-registers_info (addr_exp, fpregs)
- char *addr_exp;
- int fpregs;
+registers_info (char *addr_exp, int fpregs)
{
int regnum, numregs;
register char *end;
@@ -1654,17 +1602,13 @@ registers_info (addr_exp, fpregs)
}
void
-all_registers_info (addr_exp, from_tty)
- char *addr_exp;
- int from_tty;
+all_registers_info (char *addr_exp, int from_tty)
{
registers_info (addr_exp, 1);
}
void
-nofp_registers_info (addr_exp, from_tty)
- char *addr_exp;
- int from_tty;
+nofp_registers_info (char *addr_exp, int from_tty)
{
registers_info (addr_exp, 0);
}
@@ -1687,9 +1631,7 @@ nofp_registers_info (addr_exp, from_tty)
and wait for the trace-trap that results from attaching. */
void
-attach_command (args, from_tty)
- char *args;
- int from_tty;
+attach_command (char *args, int from_tty)
{
#ifdef SOLIB_ADD
extern int auto_solib_add;
@@ -1786,9 +1728,7 @@ attach_command (args, from_tty)
*/
static void
-detach_command (args, from_tty)
- char *args;
- int from_tty;
+detach_command (char *args, int from_tty)
{
dont_repeat (); /* Not for the faint of heart */
target_detach (args, from_tty);
@@ -1803,17 +1743,13 @@ detach_command (args, from_tty)
the backgound. */
#ifdef UI_OUT
void
-interrupt_target_command_wrapper (args, from_tty)
- char *args;
- int from_tty;
+interrupt_target_command_wrapper (char *args, int from_tty)
{
interrupt_target_command (args, from_tty);
}
#endif
static void
-interrupt_target_command (args, from_tty)
- char *args;
- int from_tty;
+interrupt_target_command (char *args, int from_tty)
{
if (event_loop_p && target_can_async_p ())
{
@@ -1824,9 +1760,7 @@ interrupt_target_command (args, from_tty)
/* ARGSUSED */
static void
-float_info (addr_exp, from_tty)
- char *addr_exp;
- int from_tty;
+float_info (char *addr_exp, int from_tty)
{
#ifdef FLOAT_INFO
FLOAT_INFO;
@@ -1837,9 +1771,7 @@ float_info (addr_exp, from_tty)
/* ARGSUSED */
static void
-unset_command (args, from_tty)
- char *args;
- int from_tty;
+unset_command (char *args, int from_tty)
{
printf_filtered ("\"unset\" must be followed by the name of ");
printf_filtered ("an unset subcommand.\n");
@@ -1847,7 +1779,7 @@ unset_command (args, from_tty)
}
void
-_initialize_infcmd ()
+_initialize_infcmd (void)
{
struct cmd_list_element *c;
diff --git a/gdb/inflow.c b/gdb/inflow.c
index 0b98f83..16047b2 100644
--- a/gdb/inflow.c
+++ b/gdb/inflow.c
@@ -120,7 +120,7 @@ gdb_has_a_terminal_flag = have_not_checked;
/* Does GDB have a terminal (on stdin)? */
int
-gdb_has_a_terminal ()
+gdb_has_a_terminal (void)
{
switch (gdb_has_a_terminal_flag)
{
@@ -178,8 +178,7 @@ static void terminal_ours_1 (int);
before we actually run the inferior. */
void
-terminal_init_inferior_with_pgrp (pgrp)
- int pgrp;
+terminal_init_inferior_with_pgrp (int pgrp)
{
if (gdb_has_a_terminal ())
{
@@ -201,7 +200,7 @@ terminal_init_inferior_with_pgrp (pgrp)
}
void
-terminal_init_inferior ()
+terminal_init_inferior (void)
{
#ifdef PROCESS_GROUP_TYPE
/* This is for Lynx, and should be cleaned up by having Lynx be a separate
@@ -218,7 +217,7 @@ terminal_init_inferior ()
This is preparation for starting or resuming the inferior. */
void
-terminal_inferior ()
+terminal_inferior (void)
{
if (gdb_has_a_terminal () && terminal_is_ours
&& inferior_thisrun_terminal == 0)
@@ -288,7 +287,7 @@ terminal_inferior ()
should be called to get back to a normal state of affairs. */
void
-terminal_ours_for_output ()
+terminal_ours_for_output (void)
{
terminal_ours_1 (1);
}
@@ -298,7 +297,7 @@ terminal_ours_for_output ()
so they can be restored properly later. */
void
-terminal_ours ()
+terminal_ours (void)
{
terminal_ours_1 (0);
}
@@ -308,8 +307,7 @@ terminal_ours ()
flags. */
static void
-terminal_ours_1 (output_only)
- int output_only;
+terminal_ours_1 (int output_only)
{
/* Checking inferior_thisrun_terminal is necessary so that
if GDB is running in the background, it won't block trying
@@ -411,18 +409,14 @@ terminal_ours_1 (output_only)
/* ARGSUSED */
void
-term_info (arg, from_tty)
- char *arg;
- int from_tty;
+term_info (char *arg, int from_tty)
{
target_terminal_info (arg, from_tty);
}
/* ARGSUSED */
void
-child_terminal_info (args, from_tty)
- char *args;
- int from_tty;
+child_terminal_info (char *args, int from_tty)
{
if (!gdb_has_a_terminal ())
{
@@ -506,8 +500,7 @@ child_terminal_info (args, from_tty)
the terminal specified in the NEW_TTY_PREFORK call. */
void
-new_tty_prefork (ttyname)
- char *ttyname;
+new_tty_prefork (char *ttyname)
{
/* Save the name for later, for determining whether we and the child
are sharing a tty. */
@@ -515,7 +508,7 @@ new_tty_prefork (ttyname)
}
void
-new_tty ()
+new_tty (void)
{
register int tty;
@@ -576,9 +569,7 @@ new_tty ()
/* ARGSUSED */
static void
-kill_command (arg, from_tty)
- char *arg;
- int from_tty;
+kill_command (char *arg, int from_tty)
{
/* FIXME: This should not really be inferior_pid (or target_has_execution).
It should be a distinct flag that indicates that a target is active, cuz
@@ -609,8 +600,7 @@ kill_command (arg, from_tty)
/* ARGSUSED */
static void
-pass_signal (signo)
- int signo;
+pass_signal (int signo)
{
#ifndef _WIN32
kill (PIDGET (inferior_pid), SIGINT);
@@ -620,7 +610,7 @@ pass_signal (signo)
static void (*osig) ();
void
-set_sigint_trap ()
+set_sigint_trap (void)
{
if (attach_flag || inferior_thisrun_terminal)
{
@@ -629,7 +619,7 @@ set_sigint_trap ()
}
void
-clear_sigint_trap ()
+clear_sigint_trap (void)
{
if (attach_flag || inferior_thisrun_terminal)
{
@@ -641,8 +631,7 @@ clear_sigint_trap ()
static void (*old_sigio) ();
static void
-handle_sigio (signo)
- int signo;
+handle_sigio (int signo)
{
int numfds;
fd_set readfds;
@@ -664,7 +653,7 @@ handle_sigio (signo)
static int old_fcntl_flags;
void
-set_sigio_trap ()
+set_sigio_trap (void)
{
if (target_activity_function)
{
@@ -676,7 +665,7 @@ set_sigio_trap ()
}
void
-clear_sigio_trap ()
+clear_sigio_trap (void)
{
if (target_activity_function)
{
@@ -686,14 +675,14 @@ clear_sigio_trap ()
}
#else /* No SIGIO. */
void
-set_sigio_trap ()
+set_sigio_trap (void)
{
if (target_activity_function)
abort ();
}
void
-clear_sigio_trap ()
+clear_sigio_trap (void)
{
if (target_activity_function)
abort ();
@@ -711,7 +700,7 @@ clear_sigio_trap ()
calls setpgrp and a setpgrp which does nothing (any system with job control
will have one or the other). */
int
-gdb_setpgid ()
+gdb_setpgid (void)
{
int retval = 0;
@@ -736,7 +725,7 @@ gdb_setpgid ()
}
void
-_initialize_inflow ()
+_initialize_inflow (void)
{
add_info ("terminal", term_info,
"Print inferior's saved terminal status.");
diff --git a/gdb/infptrace.c b/gdb/infptrace.c
index 52ff7a3..b189f50 100644
--- a/gdb/infptrace.c
+++ b/gdb/infptrace.c
@@ -132,10 +132,7 @@ void _initialize_infptrace (void);
It exists so that all calls to ptrace are isolated in this
machine-dependent file. */
int
-call_ptrace (request, pid, addr, data)
- int request, pid;
- PTRACE_ARG3_TYPE addr;
- int data;
+call_ptrace (int request, int pid, PTRACE_ARG3_TYPE addr, int data)
{
int pt_status = 0;
@@ -216,9 +213,7 @@ call_ptrace (request, pid, addr, data)
hook before returning. */
int
-ptrace_wait (pid, status)
- int pid;
- int *status;
+ptrace_wait (int pid, int *status)
{
int wstate;
@@ -228,7 +223,7 @@ ptrace_wait (pid, status)
}
void
-kill_inferior ()
+kill_inferior (void)
{
int status;
@@ -255,10 +250,7 @@ kill_inferior ()
If SIGNAL is nonzero, give it that signal. */
void
-child_resume (pid, step, signal)
- int pid;
- int step;
- enum target_signal signal;
+child_resume (int pid, int step, enum target_signal signal)
{
errno = 0;
@@ -300,8 +292,7 @@ child_resume (pid, step, signal)
#ifdef ATTACH_DETACH
/* Start debugging the process whose number is PID. */
int
-attach (pid)
- int pid;
+attach (int pid)
{
errno = 0;
ptrace (PT_ATTACH, pid, (PTRACE_ARG3_TYPE) 0, 0);
@@ -316,8 +307,7 @@ attach (pid)
SIGNAL = 0 means just continue it. */
void
-detach (signal)
- int signal;
+detach (int signal)
{
errno = 0;
ptrace (PT_DETACH, inferior_pid, (PTRACE_ARG3_TYPE) 1, signal);
@@ -340,7 +330,7 @@ CORE_ADDR kernel_u_addr;
#endif /* KERNEL_U_ADDR_BSD. */
void
-_initialize_kernel_u_addr ()
+_initialize_kernel_u_addr (void)
{
#if defined (KERNEL_U_ADDR_BSD) && !defined (FETCH_INFERIOR_REGISTERS)
struct nlist names[2];
@@ -376,8 +366,7 @@ _initialize_kernel_u_addr ()
/* Fetch one register. */
static void
-fetch_register (regno)
- int regno;
+fetch_register (int regno)
{
/* This isn't really an address. But ptrace thinks of it as one. */
CORE_ADDR regaddr;
@@ -423,8 +412,7 @@ fetch_register (regno)
Otherwise, REGNO specifies which register (so we can save time). */
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
if (regno >= 0)
{
@@ -447,8 +435,7 @@ fetch_inferior_registers (regno)
/* Store one register. */
static void
-store_register (regno)
- int regno;
+store_register (int regno)
{
/* This isn't really an address. But ptrace thinks of it as one. */
CORE_ADDR regaddr;
@@ -489,8 +476,7 @@ store_register (regno)
Otherwise, REGNO specifies which register (so we can save time). */
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
if (regno >= 0)
{
@@ -613,9 +599,7 @@ child_xfer_memory (memaddr, myaddr, len, write, target)
static void
-udot_info (dummy1, dummy2)
- char *dummy1;
- int dummy2;
+udot_info (char *dummy1, int dummy2)
{
#if defined (KERNEL_U_SIZE)
int udot_off; /* Offset into user struct */
@@ -665,7 +649,7 @@ udot_info (dummy1, dummy2)
void
-_initialize_infptrace ()
+_initialize_infptrace (void)
{
#if !defined (CHILD_XFER_MEMORY)
add_info ("udot", udot_info,
diff --git a/gdb/infrun.c b/gdb/infrun.c
index a945c1a..1aef786 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -1309,8 +1309,7 @@ struct execution_control_state async_ecss;
struct execution_control_state *async_ecs;
void
-fetch_inferior_event (client_data)
- void *client_data;
+fetch_inferior_event (void *client_data)
{
static struct cleanup *old_cleanups;
diff --git a/gdb/inftarg.c b/gdb/inftarg.c
index 53c53e4..90762f8 100644
--- a/gdb/inftarg.c
+++ b/gdb/inftarg.c
@@ -116,9 +116,7 @@ int not_same_real_pid = 1;
of error; store status through argument pointer OURSTATUS. */
static int
-child_wait (pid, ourstatus)
- int pid;
- struct target_waitstatus *ourstatus;
+child_wait (int pid, struct target_waitstatus *ourstatus)
{
int save_errno;
int status;
@@ -228,9 +226,7 @@ child_wait (pid, ourstatus)
#if !defined(CHILD_POST_WAIT)
void
-child_post_wait (pid, wait_status)
- int pid;
- int wait_status;
+child_post_wait (int pid, int wait_status)
{
/* This version of Unix doesn't require a meaningful "post wait"
operation.
@@ -247,8 +243,7 @@ child_post_wait (pid, wait_status)
for now we're going to try and be compatable with the old thread
code. */
int
-child_thread_alive (pid)
- int pid;
+child_thread_alive (int pid)
{
return (kill (pid, 0) != -1);
}
@@ -256,10 +251,7 @@ child_thread_alive (pid)
#endif
static void
-child_attach_to_process (args, from_tty, after_fork)
- char *args;
- int from_tty;
- int after_fork;
+child_attach_to_process (char *args, int from_tty, int after_fork)
{
if (!args)
error_no_arg ("process-id to attach");
@@ -312,17 +304,14 @@ child_attach_to_process (args, from_tty, after_fork)
/* Attach to process PID, then initialize for debugging it. */
static void
-child_attach (args, from_tty)
- char *args;
- int from_tty;
+child_attach (char *args, int from_tty)
{
child_attach_to_process (args, from_tty, 0);
}
#if !defined(CHILD_POST_ATTACH)
void
-child_post_attach (pid)
- int pid;
+child_post_attach (int pid)
{
/* This version of Unix doesn't require a meaningful "post attach"
operation by a debugger. */
@@ -330,19 +319,13 @@ child_post_attach (pid)
#endif
static void
-child_require_attach (args, from_tty)
- char *args;
- int from_tty;
+child_require_attach (char *args, int from_tty)
{
child_attach_to_process (args, from_tty, 1);
}
static void
-child_detach_from_process (pid, args, from_tty, after_fork)
- int pid;
- char *args;
- int from_tty;
- int after_fork;
+child_detach_from_process (int pid, char *args, int from_tty, int after_fork)
{
#ifdef ATTACH_DETACH
{
@@ -383,9 +366,7 @@ child_detach_from_process (pid, args, from_tty, after_fork)
started via the normal ptrace (PTRACE_TRACEME). */
static void
-child_detach (args, from_tty)
- char *args;
- int from_tty;
+child_detach (char *args, int from_tty)
{
child_detach_from_process (inferior_pid, args, from_tty, 0);
inferior_pid = 0;
@@ -393,10 +374,7 @@ child_detach (args, from_tty)
}
static void
-child_require_detach (pid, args, from_tty)
- int pid;
- char *args;
- int from_tty;
+child_require_detach (int pid, char *args, int from_tty)
{
child_detach_from_process (pid, args, from_tty, 1);
}
@@ -409,7 +387,7 @@ child_require_detach (pid, args, from_tty)
debugged. */
static void
-child_prepare_to_store ()
+child_prepare_to_store (void)
{
#ifdef CHILD_PREPARE_TO_STORE
CHILD_PREPARE_TO_STORE ();
@@ -419,8 +397,7 @@ child_prepare_to_store ()
/* Print status information about what we're accessing. */
static void
-child_files_info (ignore)
- struct target_ops *ignore;
+child_files_info (struct target_ops *ignore)
{
printf_unfiltered ("\tUsing the running image of %s %s.\n",
attach_flag ? "attached" : "child", target_pid_to_str (inferior_pid));
@@ -428,9 +405,7 @@ child_files_info (ignore)
/* ARGSUSED */
static void
-child_open (arg, from_tty)
- char *arg;
- int from_tty;
+child_open (char *arg, int from_tty)
{
error ("Use the \"run\" command to start a Unix child process.");
}
@@ -439,7 +414,7 @@ child_open (arg, from_tty)
by its parent process. */
static void
-ptrace_me ()
+ptrace_me (void)
{
/* "Trace me, Dr. Memory!" */
call_ptrace (0, 0, (PTRACE_ARG3_TYPE) 0, 0);
@@ -449,8 +424,7 @@ ptrace_me ()
the child process. */
static void
-ptrace_him (pid)
- int pid;
+ptrace_him (int pid)
{
push_target (&child_ops);
@@ -480,10 +454,7 @@ ptrace_him (pid)
ENV is the environment vector to pass. Errors reported with error(). */
static void
-child_create_inferior (exec_file, allargs, env)
- char *exec_file;
- char *allargs;
- char **env;
+child_create_inferior (char *exec_file, char *allargs, char **env)
{
#ifdef HPUXHPPA
fork_inferior (exec_file, allargs, env, ptrace_me, ptrace_him, pre_fork_inferior, NULL);
@@ -497,8 +468,7 @@ child_create_inferior (exec_file, allargs, env)
#if !defined(CHILD_POST_STARTUP_INFERIOR)
void
-child_post_startup_inferior (pid)
- int pid;
+child_post_startup_inferior (int pid)
{
/* This version of Unix doesn't require a meaningful "post startup inferior"
operation by a debugger.
@@ -508,8 +478,7 @@ child_post_startup_inferior (pid)
#if !defined(CHILD_ACKNOWLEDGE_CREATED_INFERIOR)
void
-child_acknowledge_created_inferior (pid)
- int pid;
+child_acknowledge_created_inferior (int pid)
{
/* This version of Unix doesn't require a meaningful "acknowledge created inferior"
operation by a debugger.
@@ -519,9 +488,7 @@ child_acknowledge_created_inferior (pid)
void
-child_clone_and_follow_inferior (child_pid, followed_child)
- int child_pid;
- int *followed_child;
+child_clone_and_follow_inferior (int child_pid, int *followed_child)
{
clone_and_follow_inferior (child_pid, followed_child);
@@ -533,7 +500,7 @@ child_clone_and_follow_inferior (child_pid, followed_child)
#if !defined(CHILD_POST_FOLLOW_INFERIOR_BY_CLONE)
void
-child_post_follow_inferior_by_clone ()
+child_post_follow_inferior_by_clone (void)
{
/* This version of Unix doesn't require a meaningful "post follow inferior"
operation by a clone debugger.
@@ -543,8 +510,7 @@ child_post_follow_inferior_by_clone ()
#if !defined(CHILD_INSERT_FORK_CATCHPOINT)
int
-child_insert_fork_catchpoint (pid)
- int pid;
+child_insert_fork_catchpoint (int pid)
{
/* This version of Unix doesn't support notification of fork events. */
return 0;
@@ -553,8 +519,7 @@ child_insert_fork_catchpoint (pid)
#if !defined(CHILD_REMOVE_FORK_CATCHPOINT)
int
-child_remove_fork_catchpoint (pid)
- int pid;
+child_remove_fork_catchpoint (int pid)
{
/* This version of Unix doesn't support notification of fork events. */
return 0;
@@ -563,8 +528,7 @@ child_remove_fork_catchpoint (pid)
#if !defined(CHILD_INSERT_VFORK_CATCHPOINT)
int
-child_insert_vfork_catchpoint (pid)
- int pid;
+child_insert_vfork_catchpoint (int pid)
{
/* This version of Unix doesn't support notification of vfork events. */
return 0;
@@ -573,8 +537,7 @@ child_insert_vfork_catchpoint (pid)
#if !defined(CHILD_REMOVE_VFORK_CATCHPOINT)
int
-child_remove_vfork_catchpoint (pid)
- int pid;
+child_remove_vfork_catchpoint (int pid)
{
/* This version of Unix doesn't support notification of vfork events. */
return 0;
@@ -583,9 +546,7 @@ child_remove_vfork_catchpoint (pid)
#if !defined(CHILD_HAS_FORKED)
int
-child_has_forked (pid, child_pid)
- int pid;
- int *child_pid;
+child_has_forked (int pid, int *child_pid)
{
/* This version of Unix doesn't support notification of fork events. */
return 0;
@@ -595,9 +556,7 @@ child_has_forked (pid, child_pid)
#if !defined(CHILD_HAS_VFORKED)
int
-child_has_vforked (pid, child_pid)
- int pid;
- int *child_pid;
+child_has_vforked (int pid, int *child_pid)
{
/* This version of Unix doesn't support notification of vfork events.
*/
@@ -608,7 +567,7 @@ child_has_vforked (pid, child_pid)
#if !defined(CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC)
int
-child_can_follow_vfork_prior_to_exec ()
+child_can_follow_vfork_prior_to_exec (void)
{
/* This version of Unix doesn't support notification of vfork events.
However, if it did, it probably wouldn't allow vforks to be followed
@@ -621,11 +580,8 @@ child_can_follow_vfork_prior_to_exec ()
#if !defined(CHILD_POST_FOLLOW_VFORK)
void
-child_post_follow_vfork (parent_pid, followed_parent, child_pid, followed_child)
- int parent_pid;
- int followed_parent;
- int child_pid;
- int followed_child;
+child_post_follow_vfork (int parent_pid, int followed_parent, int child_pid,
+ int followed_child)
{
/* This version of Unix doesn't require a meaningful "post follow vfork"
operation by a clone debugger.
@@ -635,8 +591,7 @@ child_post_follow_vfork (parent_pid, followed_parent, child_pid, followed_child)
#if !defined(CHILD_INSERT_EXEC_CATCHPOINT)
int
-child_insert_exec_catchpoint (pid)
- int pid;
+child_insert_exec_catchpoint (int pid)
{
/* This version of Unix doesn't support notification of exec events. */
return 0;
@@ -645,8 +600,7 @@ child_insert_exec_catchpoint (pid)
#if !defined(CHILD_REMOVE_EXEC_CATCHPOINT)
int
-child_remove_exec_catchpoint (pid)
- int pid;
+child_remove_exec_catchpoint (int pid)
{
/* This version of Unix doesn't support notification of exec events. */
return 0;
@@ -655,9 +609,7 @@ child_remove_exec_catchpoint (pid)
#if !defined(CHILD_HAS_EXECD)
int
-child_has_execd (pid, execd_pathname)
- int pid;
- char **execd_pathname;
+child_has_execd (int pid, char **execd_pathname)
{
/* This version of Unix doesn't support notification of exec events.
*/
@@ -668,7 +620,7 @@ child_has_execd (pid, execd_pathname)
#if !defined(CHILD_REPORTED_EXEC_EVENTS_PER_EXEC_CALL)
int
-child_reported_exec_events_per_exec_call ()
+child_reported_exec_events_per_exec_call (void)
{
/* This version of Unix doesn't support notification of exec events.
*/
@@ -679,10 +631,7 @@ child_reported_exec_events_per_exec_call ()
#if !defined(CHILD_HAS_SYSCALL_EVENT)
int
-child_has_syscall_event (pid, kind, syscall_id)
- int pid;
- enum target_waitkind *kind;
- int *syscall_id;
+child_has_syscall_event (int pid, enum target_waitkind *kind, int *syscall_id)
{
/* This version of Unix doesn't support notification of syscall events.
*/
@@ -693,10 +642,7 @@ child_has_syscall_event (pid, kind, syscall_id)
#if !defined(CHILD_HAS_EXITED)
int
-child_has_exited (pid, wait_status, exit_status)
- int pid;
- int wait_status;
- int *exit_status;
+child_has_exited (int pid, int wait_status, int *exit_status)
{
if (WIFEXITED (wait_status))
{
@@ -719,14 +665,14 @@ child_has_exited (pid, wait_status, exit_status)
static void
-child_mourn_inferior ()
+child_mourn_inferior (void)
{
unpush_target (&child_ops);
generic_mourn_inferior ();
}
static int
-child_can_run ()
+child_can_run (void)
{
/* This variable is controlled by modules that sit atop inftarg that may layer
their own process structure atop that provided here. hpux-thread.c does
@@ -742,7 +688,7 @@ child_can_run ()
killpg() instead of kill (-pgrp). */
static void
-child_stop ()
+child_stop (void)
{
extern pid_t inferior_process_group;
@@ -751,9 +697,7 @@ child_stop ()
#if !defined(CHILD_ENABLE_EXCEPTION_CALLBACK)
struct symtab_and_line *
-child_enable_exception_callback (kind, enable)
- enum exception_event_kind kind;
- int enable;
+child_enable_exception_callback (enum exception_event_kind kind, int enable)
{
return (struct symtab_and_line *) NULL;
}
@@ -761,7 +705,7 @@ child_enable_exception_callback (kind, enable)
#if !defined(CHILD_GET_CURRENT_EXCEPTION_EVENT)
struct exception_event_record *
-child_get_current_exception_event ()
+child_get_current_exception_event (void)
{
return (struct exception_event_record *) NULL;
}
@@ -770,8 +714,7 @@ child_get_current_exception_event ()
#if !defined(CHILD_PID_TO_EXEC_FILE)
char *
-child_pid_to_exec_file (pid)
- int pid;
+child_pid_to_exec_file (int pid)
{
/* This version of Unix doesn't support translation of a process ID
to the filename of the executable file.
@@ -781,8 +724,7 @@ child_pid_to_exec_file (pid)
#endif
char *
-child_core_file_to_sym_file (core)
- char *core;
+child_core_file_to_sym_file (char *core)
{
/* The target stratum for a running executable need not support
this operation.
@@ -793,15 +735,14 @@ child_core_file_to_sym_file (core)
#if !defined(CHILD_PID_TO_STR)
char *
-child_pid_to_str (pid)
- int pid;
+child_pid_to_str (int pid)
{
return normal_pid_to_str (pid);
}
#endif
static void
-init_child_ops ()
+init_child_ops (void)
{
child_ops.to_shortname = "child";
child_ops.to_longname = "Unix child process";
@@ -866,7 +807,7 @@ init_child_ops ()
}
void
-_initialize_inftarg ()
+_initialize_inftarg (void)
{
#ifdef HAVE_OPTIONAL_PROC_FS
char procname[32];
diff --git a/gdb/infttrace.c b/gdb/infttrace.c
index 89edab4..8b2fa62 100644
--- a/gdb/infttrace.c
+++ b/gdb/infttrace.c
@@ -390,8 +390,7 @@ static saved_real_pid = 0;
*************************************************
*/
CORE_ADDR
-get_raw_pc (ttid)
- lwpid_t ttid;
+get_raw_pc (lwpid_t ttid)
{
unsigned long pc_val;
int offset;
@@ -414,8 +413,7 @@ get_raw_pc (ttid)
}
static char *
-get_printable_name_of_stepping_mode (mode)
- stepping_mode_t mode;
+get_printable_name_of_stepping_mode (stepping_mode_t mode)
{
switch (mode)
{
@@ -434,8 +432,7 @@ get_printable_name_of_stepping_mode (mode)
* ttrace event being reported.
*/
char *
-get_printable_name_of_ttrace_event (event)
- ttevents_t event;
+get_printable_name_of_ttrace_event (ttevents_t event)
{
/* This enumeration is "gappy", so don't use a table. */
switch (event)
@@ -478,8 +475,7 @@ get_printable_name_of_ttrace_event (event)
* name.
*/
char *
-get_printable_name_of_ttrace_request (request)
- ttreq_t request;
+get_printable_name_of_ttrace_request (ttreq_t request)
{
if (!IS_TTRACE_REQ (request))
return "?bad req?";
@@ -550,8 +546,7 @@ get_printable_name_of_ttrace_request (request)
* name.
*/
static char *
-get_printable_name_of_process_state (process_state)
- process_state_t process_state;
+get_printable_name_of_process_state (process_state_t process_state)
{
switch (process_state)
{
@@ -573,8 +568,7 @@ get_printable_name_of_process_state (process_state)
/* Set a ttrace thread state to a safe, initial state.
*/
static void
-clear_ttstate_t (tts)
- ttstate_t *tts;
+clear_ttstate_t (ttstate_t *tts)
{
tts->tts_pid = 0;
tts->tts_lwpid = 0;
@@ -585,9 +579,7 @@ clear_ttstate_t (tts)
/* Copy ttrace thread state TTS_FROM into TTS_TO.
*/
static void
-copy_ttstate_t (tts_to, tts_from)
- ttstate_t *tts_to;
- ttstate_t *tts_from;
+copy_ttstate_t (ttstate_t *tts_to, ttstate_t *tts_from)
{
memcpy ((char *) tts_to, (char *) tts_from, sizeof (*tts_to));
}
@@ -595,7 +587,7 @@ copy_ttstate_t (tts_to, tts_from)
/* Are there any live threads we know about?
*/
static int
-any_thread_records ()
+any_thread_records (void)
{
return (thread_head.count > 0);
}
@@ -603,9 +595,7 @@ any_thread_records ()
/* Create, fill in and link in a thread descriptor.
*/
static thread_info *
-create_thread_info (pid, tid)
- int pid;
- lwpid_t tid;
+create_thread_info (int pid, lwpid_t tid)
{
thread_info *new_p;
thread_info *p;
@@ -681,7 +671,7 @@ create_thread_info (pid, tid)
/* Get rid of our thread info.
*/
static void
-clear_thread_info ()
+clear_thread_info (void)
{
thread_info *p;
thread_info *q;
@@ -723,8 +713,7 @@ clear_thread_info ()
/* Given a tid, find the thread block for it.
*/
static thread_info *
-find_thread_info (tid)
- lwpid_t tid;
+find_thread_info (lwpid_t tid)
{
thread_info *p;
@@ -755,8 +744,7 @@ find_thread_info (tid)
* deleted threads. We do the map, but we don't like it.
*/
static lwpid_t
-map_from_gdb_tid (gdb_tid)
- lwpid_t gdb_tid;
+map_from_gdb_tid (lwpid_t gdb_tid)
{
thread_info *p;
@@ -805,8 +793,7 @@ map_from_gdb_tid (gdb_tid)
* also need to consider deleted threads.
*/
static lwpid_t
-map_to_gdb_tid (real_tid)
- lwpid_t real_tid;
+map_to_gdb_tid (lwpid_t real_tid)
{
thread_info *p;
@@ -836,7 +823,7 @@ map_to_gdb_tid (real_tid)
/* Do any threads have saved signals?
*/
static int
-saved_signals_exist ()
+saved_signals_exist (void)
{
thread_info *p;
@@ -854,8 +841,7 @@ saved_signals_exist ()
/* Is this the tid for the zero-th thread?
*/
static int
-is_pseudo_thread (tid)
- lwpid_t tid;
+is_pseudo_thread (lwpid_t tid)
{
thread_info *p = find_thread_info (tid);
if (NULL == p || p->terminated)
@@ -867,8 +853,7 @@ is_pseudo_thread (tid)
/* Is this thread terminated?
*/
static int
-is_terminated (tid)
- lwpid_t tid;
+is_terminated (lwpid_t tid)
{
thread_info *p = find_thread_info (tid);
@@ -881,8 +866,7 @@ is_terminated (tid)
/* Is this pid a real PID or a TID?
*/
static int
-is_process_id (pid)
- int pid;
+is_process_id (int pid)
{
lwpid_t tid;
thread_info *tinfo;
@@ -921,9 +905,7 @@ is_process_id (pid)
/* Add a thread to our info. Prevent duplicate entries.
*/
static thread_info *
-add_tthread (pid, tid)
- int pid;
- lwpid_t tid;
+add_tthread (int pid, lwpid_t tid)
{
thread_info *p;
@@ -937,8 +919,7 @@ add_tthread (pid, tid)
/* Notice that a thread was deleted.
*/
static void
-del_tthread (tid)
- lwpid_t tid;
+del_tthread (lwpid_t tid)
{
thread_info *p;
thread_info *chase;
@@ -1023,8 +1004,7 @@ del_tthread (tid)
/* Get the pid for this tid. (Has to be a real TID!).
*/
static int
-get_pid_for (tid)
- lwpid_t tid;
+get_pid_for (lwpid_t tid)
{
thread_info *p;
@@ -1050,9 +1030,7 @@ get_pid_for (tid)
/* Note that this thread's current event has been handled.
*/
static void
-set_handled (pid, tid)
- int pid;
- lwpid_t tid;
+set_handled (int pid, lwpid_t tid)
{
thread_info *p;
@@ -1066,8 +1044,7 @@ set_handled (pid, tid)
/* Was this thread's current event handled?
*/
static int
-was_handled (tid)
- lwpid_t tid;
+was_handled (lwpid_t tid)
{
thread_info *p;
@@ -1081,8 +1058,7 @@ was_handled (tid)
/* Set this thread to unhandled.
*/
static void
-clear_handled (tid)
- lwpid_t tid;
+clear_handled (lwpid_t tid)
{
thread_info *p;
@@ -1101,7 +1077,7 @@ clear_handled (tid)
/* Set all threads to unhandled.
*/
static void
-clear_all_handled ()
+clear_all_handled (void)
{
thread_info *p;
@@ -1124,8 +1100,7 @@ clear_all_handled ()
/* Set this thread to default stepping mode.
*/
static void
-clear_stepping_mode (tid)
- lwpid_t tid;
+clear_stepping_mode (lwpid_t tid)
{
thread_info *p;
@@ -1144,7 +1119,7 @@ clear_stepping_mode (tid)
/* Set all threads to do default continue on resume.
*/
static void
-clear_all_stepping_mode ()
+clear_all_stepping_mode (void)
{
thread_info *p;
@@ -1167,7 +1142,7 @@ clear_all_stepping_mode ()
/* Set all threads to unseen on this pass.
*/
static void
-set_all_unseen ()
+set_all_unseen (void)
{
thread_info *p;
@@ -1181,8 +1156,7 @@ set_all_unseen ()
/* debugging routine.
*/
static void
-print_tthread (p)
- thread_info *p;
+print_tthread (thread_info *p)
{
printf (" Thread pid %d, tid %d", p->pid, p->tid);
if (p->have_state)
@@ -1214,7 +1188,7 @@ print_tthread (p)
}
static void
-print_tthreads ()
+print_tthreads (void)
{
thread_info *p;
@@ -1254,7 +1228,7 @@ print_tthreads ()
/* Update the thread list based on the "seen" bits.
*/
static void
-update_thread_list ()
+update_thread_list (void)
{
thread_info *p;
thread_info *chase;
@@ -1302,11 +1276,8 @@ update_thread_list ()
* No other "raw" calls to ttrace should exist in this module.
*/
static int
-call_real_ttrace (request, pid, tid, addr, data, addr2)
- ttreq_t request;
- pid_t pid;
- lwpid_t tid;
- TTRACE_ARG_TYPE addr, data, addr2;
+call_real_ttrace (ttreq_t request, pid_t pid, lwpid_t tid, TTRACE_ARG_TYPE addr,
+ TTRACE_ARG_TYPE data, TTRACE_ARG_TYPE addr2)
{
int tt_status;
@@ -1359,12 +1330,8 @@ call_real_ttrace (request, pid, tid, addr, data, addr2)
* No "raw" calls to ttrace_wait should exist elsewhere.
*/
static int
-call_real_ttrace_wait (pid, tid, option, tsp, tsp_size)
- int pid;
- lwpid_t tid;
- ttwopt_t option;
- ttstate_t *tsp;
- size_t tsp_size;
+call_real_ttrace_wait (int pid, lwpid_t tid, ttwopt_t option, ttstate_t *tsp,
+ size_t tsp_size)
{
int ttw_status;
thread_info *tinfo = NULL;
@@ -1394,9 +1361,7 @@ call_real_ttrace_wait (pid, tid, option, tsp, tsp_size)
to iterate over the IDs of all stopped threads of this process.
*/
static lwpid_t
-get_process_first_stopped_thread_id (pid, thread_state)
- int pid;
- ttstate_t *thread_state;
+get_process_first_stopped_thread_id (int pid, ttstate_t *thread_state)
{
int tt_status;
@@ -1444,9 +1409,7 @@ get_process_first_stopped_thread_id (pid, thread_state)
to iterate over the IDs of all stopped threads of this process.
*/
static lwpid_t
-get_process_next_stopped_thread_id (pid, thread_state)
- int pid;
- ttstate_t *thread_state;
+get_process_next_stopped_thread_id (int pid, ttstate_t *thread_state)
{
int tt_status;
@@ -1488,8 +1451,7 @@ get_process_next_stopped_thread_id (pid, thread_state)
NOTE: currently not called.
*/
static lwpid_t
-get_active_tid_of_pid (pid)
- int pid;
+get_active_tid_of_pid (int pid)
{
ttstate_t thread_state;
@@ -1500,8 +1462,7 @@ get_active_tid_of_pid (pid)
* operates upon all threads of a (i.e., the entire) process.
*/
int
-is_process_ttrace_request (tt_request)
- ttreq_t tt_request;
+is_process_ttrace_request (ttreq_t tt_request)
{
return IS_TTRACE_PROCREQ (tt_request);
}
@@ -1511,8 +1472,7 @@ is_process_ttrace_request (tt_request)
* the equivalent process request for a one-thread process.
*/
static ttreq_t
-make_process_version (request)
- ttreq_t request;
+make_process_version (ttreq_t request)
{
if (!IS_TTRACE_REQ (request))
{
@@ -1556,10 +1516,8 @@ make_process_version (request)
* reasons).
*/
static int
-call_ttrace (request, gdb_tid, addr, data, addr2)
- ttreq_t request;
- int gdb_tid;
- TTRACE_ARG_TYPE addr, data, addr2;
+call_ttrace (ttreq_t request, int gdb_tid, TTRACE_ARG_TYPE addr,
+ TTRACE_ARG_TYPE data, TTRACE_ARG_TYPE addr2)
{
lwpid_t real_tid;
int real_pid;
@@ -1757,8 +1715,7 @@ call_ttrace (request, gdb_tid, addr, data, addr2)
* very careful, and only call TT_PROC_STOP when you mean it!
*/
static void
-stop_all_threads_of_process (real_pid)
- pid_t real_pid;
+stop_all_threads_of_process (pid_t real_pid)
{
int ttw_status;
@@ -1796,9 +1753,7 @@ stop_all_threads_of_process (real_pid)
(((evt) == TTEVT_VFORK) && ((pid) == inferior_pid))
static int
-can_touch_threads_of_process (pid, stopping_event)
- int pid;
- ttevents_t stopping_event;
+can_touch_threads_of_process (int pid, ttevents_t stopping_event)
{
if (CHILD_VFORKED (stopping_event, pid))
{
@@ -1826,9 +1781,7 @@ can_touch_threads_of_process (pid, stopping_event)
* been stopped, undefined behaviour is guaranteed!
*/
static int
-select_stopped_thread_of_process (pid, tsp)
- int pid;
- ttstate_t *tsp;
+select_stopped_thread_of_process (int pid, ttstate_t *tsp)
{
lwpid_t candidate_tid, tid;
ttstate_t candidate_tstate, tstate;
@@ -1982,8 +1935,7 @@ select_stopped_thread_of_process (pid, tsp)
/* Check our internal thread data against the real thing.
*/
static void
-check_thread_consistency (real_pid)
- pid_t real_pid;
+check_thread_consistency (pid_t real_pid)
{
int tid; /* really lwpid_t */
ttstate_t tstate;
@@ -2049,11 +2001,7 @@ check_thread_consistency (real_pid)
* Return value is the status of the pseudo wait.
*/
static int
-call_ttrace_wait (pid, option, tsp, tsp_size)
- int pid;
- ttwopt_t option;
- ttstate_t *tsp;
- size_t tsp_size;
+call_ttrace_wait (int pid, ttwopt_t option, ttstate_t *tsp, size_t tsp_size)
{
/* This holds the actual, for-real, true process ID.
*/
@@ -2350,7 +2298,7 @@ call_ttrace_wait (pid, option, tsp, tsp_size)
#if defined(CHILD_REPORTED_EXEC_EVENTS_PER_EXEC_CALL)
int
-child_reported_exec_events_per_exec_call ()
+child_reported_exec_events_per_exec_call (void)
{
return 1; /* ttrace reports the event once per call. */
}
@@ -2400,7 +2348,7 @@ memory_page_dictionary;
static void
-require_memory_page_dictionary ()
+require_memory_page_dictionary (void)
{
int i;
@@ -2422,7 +2370,7 @@ require_memory_page_dictionary ()
static void
-retire_memory_page_dictionary ()
+retire_memory_page_dictionary (void)
{
memory_page_dictionary.page_count = (LONGEST) - 1;
}
@@ -2433,9 +2381,7 @@ retire_memory_page_dictionary ()
Returns the original permissions of the page.
*/
static int
-write_protect_page (pid, page_start)
- int pid;
- CORE_ADDR page_start;
+write_protect_page (int pid, CORE_ADDR page_start)
{
int tt_status;
int original_permissions;
@@ -2474,10 +2420,7 @@ write_protect_page (pid, page_start)
(what we must assume are) its original permissions.
*/
static void
-unwrite_protect_page (pid, page_start, original_permissions)
- int pid;
- CORE_ADDR page_start;
- int original_permissions;
+unwrite_protect_page (int pid, CORE_ADDR page_start, int original_permissions)
{
int tt_status;
@@ -2500,8 +2443,7 @@ unwrite_protect_page (pid, page_start, original_permissions)
presently should be write-protected), write-protect it.
*/
void
-hppa_enable_page_protection_events (pid)
- int pid;
+hppa_enable_page_protection_events (int pid)
{
int bucket;
@@ -2528,8 +2470,7 @@ hppa_enable_page_protection_events (pid)
presently is or should be write-protected), un-write-protect it.
*/
void
-hppa_disable_page_protection_events (pid)
- int pid;
+hppa_disable_page_protection_events (int pid)
{
int bucket;
@@ -2556,9 +2497,7 @@ hppa_disable_page_protection_events (pid)
* Note: we could just scan our own thread list. FIXME!
*/
static int
-count_unhandled_events (real_pid, real_tid)
- int real_pid;
- lwpid_t real_tid;
+count_unhandled_events (int real_pid, lwpid_t real_tid)
{
ttstate_t tstate;
lwpid_t ttid;
@@ -2656,9 +2595,7 @@ count_unhandled_events (real_pid, real_tid)
* Note: used by core gdb and so uses the pseudo-pid (really tid).
*/
int
-ptrace_wait (pid, status)
- int pid;
- int *status;
+ptrace_wait (int pid, int *status)
{
ttstate_t tsp;
int ttwait_return;
@@ -3000,7 +2937,7 @@ ptrace_wait (pid, status)
child_acknowledge_created_inferior.)
*/
int
-parent_attach_all ()
+parent_attach_all (void)
{
int tt_status;
@@ -3059,8 +2996,7 @@ parent_attach_all ()
* have to be the common part of both.
*/
static void
-require_notification_of_events (real_pid)
- int real_pid;
+require_notification_of_events (int real_pid)
{
int tt_status;
ttevent_t notifiable_events;
@@ -3110,8 +3046,7 @@ require_notification_of_events (real_pid)
}
static void
-require_notification_of_exec_events (real_pid)
- int real_pid;
+require_notification_of_exec_events (int real_pid)
{
int tt_status;
ttevent_t notifiable_events;
@@ -3155,8 +3090,7 @@ require_notification_of_exec_events (real_pid)
* ID of the child process, after the debugger has forked.
*/
void
-child_acknowledge_created_inferior (pid)
- int pid;
+child_acknowledge_created_inferior (int pid)
{
/* We need a memory home for a constant, to pass it to ttrace.
The value of the constant is arbitrary, so long as both
@@ -3215,8 +3149,7 @@ child_acknowledge_created_inferior (pid)
* calling require_notification_of_events.
*/
void
-child_post_startup_inferior (real_pid)
- int real_pid;
+child_post_startup_inferior (int real_pid)
{
require_notification_of_events (real_pid);
}
@@ -3224,8 +3157,7 @@ child_post_startup_inferior (real_pid)
/* From here on, we should expect tids rather than pids.
*/
static void
-hppa_enable_catch_fork (tid)
- int tid;
+hppa_enable_catch_fork (int tid)
{
int tt_status;
ttevent_t ttrace_events;
@@ -3259,8 +3191,7 @@ hppa_enable_catch_fork (tid)
static void
-hppa_disable_catch_fork (tid)
- int tid;
+hppa_disable_catch_fork (int tid)
{
int tt_status;
ttevent_t ttrace_events;
@@ -3297,8 +3228,7 @@ hppa_disable_catch_fork (tid)
#if defined(CHILD_INSERT_FORK_CATCHPOINT)
int
-child_insert_fork_catchpoint (tid)
- int tid;
+child_insert_fork_catchpoint (int tid)
{
/* Enable reporting of fork events from the kernel. */
/* ??rehrauer: For the moment, we're always enabling these events,
@@ -3311,8 +3241,7 @@ child_insert_fork_catchpoint (tid)
#if defined(CHILD_REMOVE_FORK_CATCHPOINT)
int
-child_remove_fork_catchpoint (tid)
- int tid;
+child_remove_fork_catchpoint (int tid)
{
/* Disable reporting of fork events from the kernel. */
/* ??rehrauer: For the moment, we're always enabling these events,
@@ -3324,8 +3253,7 @@ child_remove_fork_catchpoint (tid)
static void
-hppa_enable_catch_vfork (tid)
- int tid;
+hppa_enable_catch_vfork (int tid)
{
int tt_status;
ttevent_t ttrace_events;
@@ -3361,8 +3289,7 @@ hppa_enable_catch_vfork (tid)
static void
-hppa_disable_catch_vfork (tid)
- int tid;
+hppa_disable_catch_vfork (int tid)
{
int tt_status;
ttevent_t ttrace_events;
@@ -3397,8 +3324,7 @@ hppa_disable_catch_vfork (tid)
#if defined(CHILD_INSERT_VFORK_CATCHPOINT)
int
-child_insert_vfork_catchpoint (tid)
- int tid;
+child_insert_vfork_catchpoint (int tid)
{
/* Enable reporting of vfork events from the kernel. */
/* ??rehrauer: For the moment, we're always enabling these events,
@@ -3411,8 +3337,7 @@ child_insert_vfork_catchpoint (tid)
#if defined(CHILD_REMOVE_VFORK_CATCHPOINT)
int
-child_remove_vfork_catchpoint (tid)
- int tid;
+child_remove_vfork_catchpoint (int tid)
{
/* Disable reporting of vfork events from the kernel. */
/* ??rehrauer: For the moment, we're always enabling these events,
@@ -3431,9 +3356,7 @@ child_remove_vfork_catchpoint (tid)
* start the mapping.
*/
int
-child_has_forked (tid, childpid)
- int tid;
- int *childpid;
+child_has_forked (int tid, int *childpid)
{
int tt_status;
ttstate_t ttrace_state;
@@ -3478,9 +3401,7 @@ child_has_forked (tid, childpid)
/* See child_has_forked for pid discussion.
*/
int
-child_has_vforked (tid, childpid)
- int tid;
- int *childpid;
+child_has_vforked (int tid, int *childpid)
{
int tt_status;
ttstate_t ttrace_state;
@@ -3520,7 +3441,7 @@ child_has_vforked (tid, childpid)
#if defined(CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC)
int
-child_can_follow_vfork_prior_to_exec ()
+child_can_follow_vfork_prior_to_exec (void)
{
/* ttrace does allow this.
@@ -3535,8 +3456,7 @@ child_can_follow_vfork_prior_to_exec ()
#if defined(CHILD_INSERT_EXEC_CATCHPOINT)
int
-child_insert_exec_catchpoint (tid)
- int tid;
+child_insert_exec_catchpoint (int tid)
{
/* Enable reporting of exec events from the kernel. */
/* ??rehrauer: For the moment, we're always enabling these events,
@@ -3549,8 +3469,7 @@ child_insert_exec_catchpoint (tid)
#if defined(CHILD_REMOVE_EXEC_CATCHPOINT)
int
-child_remove_exec_catchpoint (tid)
- int tid;
+child_remove_exec_catchpoint (int tid)
{
/* Disable reporting of execevents from the kernel. */
/* ??rehrauer: For the moment, we're always enabling these events,
@@ -3563,9 +3482,7 @@ child_remove_exec_catchpoint (tid)
#if defined(CHILD_HAS_EXECD)
int
-child_has_execd (tid, execd_pathname)
- int tid;
- char **execd_pathname;
+child_has_execd (int tid, char **execd_pathname)
{
int tt_status;
ttstate_t ttrace_state;
@@ -3609,10 +3526,7 @@ child_has_execd (tid, execd_pathname)
#if defined(CHILD_HAS_SYSCALL_EVENT)
int
-child_has_syscall_event (pid, kind, syscall_id)
- int pid;
- enum target_waitkind *kind;
- int *syscall_id;
+child_has_syscall_event (int pid, enum target_waitkind *kind, int *syscall_id)
{
int tt_status;
ttstate_t ttrace_state;
@@ -3667,8 +3581,7 @@ child_has_syscall_event (pid, kind, syscall_id)
* May need a FIXME for that reason.
*/
int
-child_thread_alive (gdb_tid)
- lwpid_t gdb_tid;
+child_thread_alive (lwpid_t gdb_tid)
{
lwpid_t tid;
@@ -3694,11 +3607,8 @@ child_thread_alive (gdb_tid)
undefined it this function fails.
*/
int
-read_from_register_save_state (tid, ss_offset, buf, sizeof_buf)
- int tid;
- TTRACE_ARG_TYPE ss_offset;
- char *buf;
- int sizeof_buf;
+read_from_register_save_state (int tid, TTRACE_ARG_TYPE ss_offset, char *buf,
+ int sizeof_buf)
{
int tt_status;
register_value_t register_value = 0;
@@ -3729,11 +3639,8 @@ read_from_register_save_state (tid, ss_offset, buf, sizeof_buf)
are undefined it this function fails.
*/
int
-write_to_register_save_state (tid, ss_offset, buf, sizeof_buf)
- int tid;
- TTRACE_ARG_TYPE ss_offset;
- char *buf;
- int sizeof_buf;
+write_to_register_save_state (int tid, TTRACE_ARG_TYPE ss_offset, char *buf,
+ int sizeof_buf)
{
int tt_status;
register_value_t register_value = 0;
@@ -3758,11 +3665,7 @@ write_to_register_save_state (tid, ss_offset, buf, sizeof_buf)
process-specific, ttrace equivalents.
*/
int
-call_ptrace (pt_request, gdb_tid, addr, data)
- int pt_request;
- int gdb_tid;
- PTRACE_ARG3_TYPE addr;
- int data;
+call_ptrace (int pt_request, int gdb_tid, PTRACE_ARG3_TYPE addr, int data)
{
ttreq_t tt_request;
TTRACE_ARG_TYPE tt_addr = (TTRACE_ARG_TYPE) addr;
@@ -3903,7 +3806,7 @@ call_ptrace (pt_request, gdb_tid, addr, data)
/* Kill that pesky process!
*/
void
-kill_inferior ()
+kill_inferior (void)
{
int tid;
int wait_status;
@@ -3982,8 +3885,7 @@ kill_inferior ()
/* Sanity check a thread about to be continued.
*/
static void
-thread_dropping_event_check (p)
- thread_info *p;
+thread_dropping_event_check (thread_info *p)
{
if (!p->handled)
{
@@ -4044,9 +3946,7 @@ thread_dropping_event_check (p)
* the one specified, which is to be stepped.
*/
static void
-threads_continue_all_but_one (gdb_tid, signal)
- lwpid_t gdb_tid;
- int signal;
+threads_continue_all_but_one (lwpid_t gdb_tid, int signal)
{
thread_info *p;
int thread_signal;
@@ -4183,9 +4083,7 @@ threads_continue_all_but_one (gdb_tid, signal)
* This is done when a signal must be sent to any of the threads.
*/
static void
-threads_continue_all_with_signals (gdb_tid, signal)
- lwpid_t gdb_tid;
- int signal;
+threads_continue_all_with_signals (lwpid_t gdb_tid, int signal)
{
thread_info *p;
int thread_signal;
@@ -4301,9 +4199,7 @@ threads_continue_all_with_signals (gdb_tid, signal)
/* Step one thread only.
*/
static void
-thread_fake_step (tid, signal)
- lwpid_t tid;
- enum target_signal signal;
+thread_fake_step (lwpid_t tid, enum target_signal signal)
{
thread_info *p;
@@ -4356,9 +4252,7 @@ thread_fake_step (tid, signal)
/* Continue one thread when a signal must be sent to it.
*/
static void
-threads_continue_one_with_signal (gdb_tid, signal)
- lwpid_t gdb_tid;
- int signal;
+threads_continue_one_with_signal (lwpid_t gdb_tid, int signal)
{
thread_info *p;
lwpid_t real_tid;
@@ -4428,10 +4322,7 @@ threads_continue_one_with_signal (gdb_tid, signal)
* | user command.
*/
void
-child_resume (gdb_tid, step, signal)
- lwpid_t gdb_tid;
- int step;
- enum target_signal signal;
+child_resume (lwpid_t gdb_tid, int step, enum target_signal signal)
{
int resume_all_threads;
lwpid_t tid;
@@ -4761,9 +4652,7 @@ child_resume (gdb_tid, step, signal)
*
*/
static void
-update_thread_state_after_attach (pid, kind_of_go)
- int pid;
- attach_continue_t kind_of_go;
+update_thread_state_after_attach (int pid, attach_continue_t kind_of_go)
{
int tt_status;
ttstate_t thread_state;
@@ -4934,8 +4823,7 @@ update_thread_state_after_attach (pid, kind_of_go)
* (A _real_ pid).
*/
int
-attach (pid)
- int pid;
+attach (int pid)
{
int tt_status;
@@ -4966,8 +4854,7 @@ attach (pid)
#if defined(CHILD_POST_ATTACH)
void
-child_post_attach (pid)
- int pid;
+child_post_attach (int pid)
{
#ifdef THREAD_DEBUG
if (debug_on)
@@ -4984,8 +4871,7 @@ child_post_attach (pid)
SIGNAL = 0 means just continue it.
*/
void
-detach (signal)
- int signal;
+detach (int signal)
{
errno = 0;
call_ttrace (TT_PROC_DETACH,
@@ -5008,7 +4894,7 @@ detach (signal)
#endif
void
-_initialize_kernel_u_addr ()
+_initialize_kernel_u_addr (void)
{
}
@@ -5128,7 +5014,7 @@ child_xfer_memory (memaddr, myaddr, len, write, target)
static void
-udot_info ()
+udot_info (void)
{
int udot_off; /* Offset into user struct */
int udot_val; /* Value from user struct at udot_off */
@@ -5181,8 +5067,7 @@ udot_info ()
/* TTrace version of "target_pid_to_exec_file"
*/
char *
-child_pid_to_exec_file (tid)
- int tid;
+child_pid_to_exec_file (int tid)
{
static char exec_file_buffer[1024];
int tt_status;
@@ -5254,7 +5139,7 @@ child_pid_to_exec_file (tid)
void
-pre_fork_inferior ()
+pre_fork_inferior (void)
{
int status;
@@ -5283,8 +5168,7 @@ pre_fork_inferior ()
* seems odd--it always fails in our test system.
*/
int
-hppa_require_attach (pid)
- int pid;
+hppa_require_attach (int pid)
{
int tt_status;
CORE_ADDR pc;
@@ -5342,9 +5226,7 @@ hppa_require_attach (pid)
}
int
-hppa_require_detach (pid, signal)
- int pid;
- int signal;
+hppa_require_detach (int pid, int signal)
{
int tt_status;
@@ -5376,8 +5258,7 @@ hppa_require_detach (pid, signal)
the memory page dictionary.
*/
static int
-get_dictionary_bucket_of_page (page_start)
- CORE_ADDR page_start;
+get_dictionary_bucket_of_page (CORE_ADDR page_start)
{
int hash;
@@ -5394,9 +5275,7 @@ get_dictionary_bucket_of_page (page_start)
count of 0 (if the page was newly-added to the dictionary).
*/
static memory_page_t *
-get_dictionary_entry_of_page (pid, page_start)
- int pid;
- CORE_ADDR page_start;
+get_dictionary_entry_of_page (int pid, CORE_ADDR page_start)
{
int bucket;
memory_page_t *page = NULL;
@@ -5445,9 +5324,7 @@ get_dictionary_entry_of_page (pid, page_start)
static void
-remove_dictionary_entry_of_page (pid, page)
- int pid;
- memory_page_t *page;
+remove_dictionary_entry_of_page (int pid, memory_page_t *page)
{
/* Restore the page's original permissions. */
unwrite_protect_page (pid, page->page_start, page->original_permissions);
@@ -5468,8 +5345,7 @@ remove_dictionary_entry_of_page (pid, page)
static void
-hppa_enable_syscall_events (pid)
- int pid;
+hppa_enable_syscall_events (int pid)
{
int tt_status;
ttevent_t ttrace_events;
@@ -5498,8 +5374,7 @@ hppa_enable_syscall_events (pid)
static void
-hppa_disable_syscall_events (pid)
- int pid;
+hppa_disable_syscall_events (int pid)
{
int tt_status;
ttevent_t ttrace_events;
@@ -5540,11 +5415,7 @@ hppa_disable_syscall_events (pid)
from the TYPE that is passed to hppa_remove_hw_watchpoint.)
*/
int
-hppa_insert_hw_watchpoint (pid, start, len, type)
- int pid;
- CORE_ADDR start;
- LONGEST len;
- int type;
+hppa_insert_hw_watchpoint (int pid, CORE_ADDR start, LONGEST len, int type)
{
CORE_ADDR page_start;
int dictionary_was_empty;
@@ -5617,11 +5488,8 @@ hppa_insert_hw_watchpoint (pid, start, len, type)
watchpoints.
*/
int
-hppa_remove_hw_watchpoint (pid, start, len, type)
- int pid;
- CORE_ADDR start;
- LONGEST len;
- enum bptype type;
+hppa_remove_hw_watchpoint (int pid, CORE_ADDR start, LONGEST len,
+ enum bptype type)
{
CORE_ADDR page_start;
int dictionary_is_empty;
@@ -5681,10 +5549,7 @@ hppa_remove_hw_watchpoint (pid, start, len, type)
hardware support.
*/
int
-hppa_can_use_hw_watchpoint (type, cnt, ot)
- enum bptype type;
- int cnt;
- enum bptype ot;
+hppa_can_use_hw_watchpoint (enum bptype type, int cnt, enum bptype ot)
{
return (type == bp_hardware_watchpoint);
}
@@ -5696,10 +5561,7 @@ hppa_can_use_hw_watchpoint (type, cnt, ot)
on the address...
*/
int
-hppa_range_profitable_for_hw_watchpoint (pid, start, len)
- int pid;
- CORE_ADDR start;
- LONGEST len;
+hppa_range_profitable_for_hw_watchpoint (int pid, CORE_ADDR start, LONGEST len)
{
int range_is_stack_based;
int range_is_accessible;
@@ -5766,8 +5628,7 @@ hppa_range_profitable_for_hw_watchpoint (pid, start, len)
char *
-hppa_pid_or_tid_to_str (id)
- pid_t id;
+hppa_pid_or_tid_to_str (pid_t id)
{
static char buf[100]; /* Static because address returned. */
@@ -5792,8 +5653,7 @@ hppa_pid_or_tid_to_str (id)
* the old thread id, else return 0.
*/
pid_t
-hppa_switched_threads (gdb_pid)
- pid_t gdb_pid;
+hppa_switched_threads (pid_t gdb_pid)
{
if (gdb_pid == old_gdb_pid)
{
@@ -5844,8 +5704,7 @@ hppa_switched_threads (gdb_pid)
}
void
-hppa_ensure_vforking_parent_remains_stopped (pid)
- int pid;
+hppa_ensure_vforking_parent_remains_stopped (int pid)
{
/* Nothing to do when using ttrace. Only the ptrace-based implementation
must do real work.
@@ -5854,7 +5713,7 @@ hppa_ensure_vforking_parent_remains_stopped (pid)
int
-hppa_resume_execd_vforking_child_to_get_parent_vfork ()
+hppa_resume_execd_vforking_child_to_get_parent_vfork (void)
{
return 0; /* No, the parent vfork is available now. */
}
@@ -5867,10 +5726,7 @@ hppa_resume_execd_vforking_child_to_get_parent_vfork ()
This is horribly gross and disgusting. */
int
-ttrace_write_reg_64 (gdb_tid, dest_addr, src_addr)
- int gdb_tid;
- CORE_ADDR dest_addr;
- CORE_ADDR src_addr;
+ttrace_write_reg_64 (int gdb_tid, CORE_ADDR dest_addr, CORE_ADDR src_addr)
{
pid_t pid;
lwpid_t tid;
@@ -5911,7 +5767,7 @@ ttrace_write_reg_64 (gdb_tid, dest_addr, src_addr)
}
void
-_initialize_infttrace ()
+_initialize_infttrace (void)
{
/* Initialize the ttrace-based hardware watchpoint implementation. */
memory_page_dictionary.page_count = (LONGEST) - 1;
diff --git a/gdb/irix4-nat.c b/gdb/irix4-nat.c
index b3e288c..8e397b8 100644
--- a/gdb/irix4-nat.c
+++ b/gdb/irix4-nat.c
@@ -46,8 +46,7 @@ static void fetch_core_registers (char *, unsigned int, int, CORE_ADDR);
*/
void
-supply_gregset (gregsetp)
- gregset_t *gregsetp;
+supply_gregset (gregset_t *gregsetp)
{
register int regi;
register greg_t *regp = (greg_t *) (gregsetp->gp_regs);
@@ -69,9 +68,7 @@ supply_gregset (gregsetp)
}
void
-fill_gregset (gregsetp, regno)
- gregset_t *gregsetp;
- int regno;
+fill_gregset (gregset_t *gregsetp, int regno)
{
int regi;
register greg_t *regp = (greg_t *) (gregsetp->gp_regs);
@@ -103,8 +100,7 @@ fill_gregset (gregsetp, regno)
*/
void
-supply_fpregset (fpregsetp)
- fpregset_t *fpregsetp;
+supply_fpregset (fpregset_t *fpregsetp)
{
register int regi;
static char zerobuf[MAX_REGISTER_RAW_SIZE] =
@@ -121,9 +117,7 @@ supply_fpregset (fpregsetp)
}
void
-fill_fpregset (fpregsetp, regno)
- fpregset_t *fpregsetp;
- int regno;
+fill_fpregset (fpregset_t *fpregsetp, int regno)
{
int regi;
char *from, *to;
@@ -149,8 +143,7 @@ fill_fpregset (fpregsetp, regno)
This routine returns true on success. */
int
-get_longjmp_target (pc)
- CORE_ADDR *pc;
+get_longjmp_target (CORE_ADDR *pc)
{
char buf[TARGET_PTR_BIT / TARGET_CHAR_BIT];
CORE_ADDR jb_addr;
@@ -196,7 +189,7 @@ static struct core_fns irix4_core_fns =
};
void
-_initialize_core_irix4 ()
+_initialize_core_irix4 (void)
{
add_core_fns (&irix4_core_fns);
}
diff --git a/gdb/irix5-nat.c b/gdb/irix5-nat.c
index ea37b8c..dcef6ad 100644
--- a/gdb/irix5-nat.c
+++ b/gdb/irix5-nat.c
@@ -50,8 +50,7 @@ static void fetch_core_registers (char *, unsigned int, int, CORE_ADDR);
*/
void
-supply_gregset (gregsetp)
- gregset_t *gregsetp;
+supply_gregset (gregset_t *gregsetp)
{
register int regi;
register greg_t *regp = &(*gregsetp)[0];
@@ -72,9 +71,7 @@ supply_gregset (gregsetp)
}
void
-fill_gregset (gregsetp, regno)
- gregset_t *gregsetp;
- int regno;
+fill_gregset (gregset_t *gregsetp, int regno)
{
int regi;
register greg_t *regp = &(*gregsetp)[0];
@@ -119,8 +116,7 @@ fill_gregset (gregsetp, regno)
*/
void
-supply_fpregset (fpregsetp)
- fpregset_t *fpregsetp;
+supply_fpregset (fpregset_t *fpregsetp)
{
register int regi;
static char zerobuf[MAX_REGISTER_RAW_SIZE] =
@@ -139,9 +135,7 @@ supply_fpregset (fpregsetp)
}
void
-fill_fpregset (fpregsetp, regno)
- fpregset_t *fpregsetp;
- int regno;
+fill_fpregset (fpregset_t *fpregsetp, int regno)
{
int regi;
char *from, *to;
@@ -169,8 +163,7 @@ fill_fpregset (fpregsetp, regno)
This routine returns true on success. */
int
-get_longjmp_target (pc)
- CORE_ADDR *pc;
+get_longjmp_target (CORE_ADDR *pc)
{
char buf[TARGET_PTR_BIT / TARGET_CHAR_BIT];
CORE_ADDR jb_addr;
@@ -511,7 +504,7 @@ solib_map_sections (void *arg)
*/
static CORE_ADDR
-locate_base ()
+locate_base (void)
{
struct minimal_symbol *msymbol;
CORE_ADDR address = 0;
@@ -542,7 +535,7 @@ locate_base ()
*/
static struct link_map *
-first_link_map_member ()
+first_link_map_member (void)
{
struct obj_list *listp;
struct obj_list list_old;
@@ -610,8 +603,7 @@ first_link_map_member ()
*/
static struct link_map *
-next_link_map_member (so_list_ptr)
- struct so_list *so_list_ptr;
+next_link_map_member (struct so_list *so_list_ptr)
{
struct link_map *lm = &so_list_ptr->lm;
CORE_ADDR next_lladdr = lm->l_next;
@@ -670,9 +662,7 @@ next_link_map_member (so_list_ptr)
*/
static void
-xfer_link_map_member (so_list_ptr, lm)
- struct so_list *so_list_ptr;
- struct link_map *lm;
+xfer_link_map_member (struct so_list *so_list_ptr, struct link_map *lm)
{
struct obj_list list_old;
CORE_ADDR lladdr = lm->l_lladdr;
@@ -868,10 +858,7 @@ symbol_add_stub (void *arg)
*/
void
-solib_add (arg_string, from_tty, target)
- char *arg_string;
- int from_tty;
- struct target_ops *target;
+solib_add (char *arg_string, int from_tty, struct target_ops *target)
{
register struct so_list *so = NULL; /* link map state variable */
@@ -968,9 +955,7 @@ solib_add (arg_string, from_tty, target)
*/
static void
-info_sharedlibrary_command (ignore, from_tty)
- char *ignore;
- int from_tty;
+info_sharedlibrary_command (char *ignore, int from_tty)
{
register struct so_list *so = NULL; /* link map state variable */
int header_done = 0;
@@ -1031,8 +1016,7 @@ info_sharedlibrary_command (ignore, from_tty)
*/
char *
-solib_address (address)
- CORE_ADDR address;
+solib_address (CORE_ADDR address)
{
register struct so_list *so = 0; /* link map state variable */
@@ -1051,7 +1035,7 @@ solib_address (address)
/* Called by free_all_symtabs */
void
-clear_solib ()
+clear_solib (void)
{
struct so_list *next;
char *bfd_filename;
@@ -1103,7 +1087,7 @@ clear_solib ()
*/
static int
-disable_break ()
+disable_break (void)
{
int status = 1;
@@ -1145,7 +1129,7 @@ disable_break ()
*/
static int
-enable_break ()
+enable_break (void)
{
if (symfile_objfile != NULL
&& target_insert_breakpoint (symfile_objfile->ei.entry_point,
@@ -1211,7 +1195,7 @@ enable_break ()
*/
void
-solib_create_inferior_hook ()
+solib_create_inferior_hook (void)
{
if (!enable_break ())
{
@@ -1276,16 +1260,14 @@ solib_create_inferior_hook ()
*/
static void
-sharedlibrary_command (args, from_tty)
- char *args;
- int from_tty;
+sharedlibrary_command (char *args, int from_tty)
{
dont_repeat ();
solib_add (args, from_tty, (struct target_ops *) 0);
}
void
-_initialize_solib ()
+_initialize_solib (void)
{
add_com ("sharedlibrary", class_files, sharedlibrary_command,
"Load shared object library symbols for files matching REGEXP.");
@@ -1318,7 +1300,7 @@ static struct core_fns irix5_core_fns =
};
void
-_initialize_core_irix5 ()
+_initialize_core_irix5 (void)
{
add_core_fns (&irix5_core_fns);
}
diff --git a/gdb/jv-lang.c b/gdb/jv-lang.c
index 4c08c73..5a22f1c 100644
--- a/gdb/jv-lang.c
+++ b/gdb/jv-lang.c
@@ -69,7 +69,7 @@ static struct objfile *dynamics_objfile = NULL;
static struct type *java_link_class_type (struct type *, value_ptr);
static struct objfile *
-get_dynamics_objfile ()
+get_dynamics_objfile (void)
{
if (dynamics_objfile == NULL)
{
@@ -88,7 +88,7 @@ static struct symtab *class_symtab = NULL;
static int class_symtab_space;
static struct symtab *
-get_java_class_symtab ()
+get_java_class_symtab (void)
{
if (class_symtab == NULL)
{
@@ -127,8 +127,7 @@ get_java_class_symtab ()
}
static void
-add_class_symtab_symbol (sym)
- struct symbol *sym;
+add_class_symtab_symbol (struct symbol *sym)
{
struct symtab *symtab = get_java_class_symtab ();
struct blockvector *bv = BLOCKVECTOR (symtab);
@@ -152,9 +151,7 @@ add_class_symtab_symbol (sym)
static struct symbol *add_class_symbol (struct type *type, CORE_ADDR addr);
static struct symbol *
-add_class_symbol (type, addr)
- struct type *type;
- CORE_ADDR addr;
+add_class_symbol (struct type *type, CORE_ADDR addr)
{
struct symbol *sym;
sym = (struct symbol *)
@@ -172,8 +169,7 @@ add_class_symbol (type, addr)
#endif
struct type *
-java_lookup_class (name)
- char *name;
+java_lookup_class (char *name)
{
struct symbol *sym;
sym = lookup_symbol (name, expression_context_block, STRUCT_NAMESPACE,
@@ -210,9 +206,7 @@ java_lookup_class (name)
a name given by NAME (which has type Utf8Const*). */
char *
-get_java_utf8_name (obstack, name)
- struct obstack *obstack;
- value_ptr name;
+get_java_utf8_name (struct obstack *obstack, value_ptr name)
{
char *chrs;
value_ptr temp = name;
@@ -229,8 +223,7 @@ get_java_utf8_name (obstack, name)
}
value_ptr
-java_class_from_object (obj_val)
- value_ptr obj_val;
+java_class_from_object (value_ptr obj_val)
{
/* This is all rather inefficient, since the offsets of vtable and
class are fixed. FIXME */
@@ -247,8 +240,7 @@ java_class_from_object (obj_val)
/* Check if CLASS_IS_PRIMITIVE(value of clas): */
static int
-java_class_is_primitive (clas)
- value_ptr clas;
+java_class_is_primitive (value_ptr clas)
{
value_ptr vtable = value_struct_elt (&clas, NULL, "vtable", NULL, "struct");
CORE_ADDR i = value_as_pointer (vtable);
@@ -258,8 +250,7 @@ java_class_is_primitive (clas)
/* Read a GCJ Class object, and generated a gdb (TYPE_CODE_STRUCT) type. */
struct type *
-type_from_class (clas)
- value_ptr clas;
+type_from_class (value_ptr clas)
{
struct type *type;
char *name;
@@ -346,9 +337,7 @@ type_from_class (clas)
/* Fill in class TYPE with data from the CLAS value. */
struct type *
-java_link_class_type (type, clas)
- struct type *type;
- value_ptr clas;
+java_link_class_type (struct type *type, value_ptr clas)
{
value_ptr temp;
char *unqualified_name;
@@ -583,7 +572,7 @@ java_link_class_type (type, clas)
static struct type *java_object_type;
struct type *
-get_java_object_type ()
+get_java_object_type (void)
{
if (java_object_type == NULL)
{
@@ -598,7 +587,7 @@ get_java_object_type ()
}
int
-get_java_object_header_size ()
+get_java_object_header_size (void)
{
struct type *objtype = get_java_object_type ();
if (objtype == NULL)
@@ -608,8 +597,7 @@ get_java_object_header_size ()
}
int
-is_object_type (type)
- struct type *type;
+is_object_type (struct type *type)
{
CHECK_TYPEDEF (type);
if (TYPE_CODE (type) == TYPE_CODE_PTR)
@@ -635,8 +623,7 @@ is_object_type (type)
}
struct type *
-java_primitive_type (signature)
- int signature;
+java_primitive_type (int signature)
{
switch (signature)
{
@@ -666,9 +653,7 @@ java_primitive_type (signature)
return that type. Otherwise, return NULL. */
struct type *
-java_primitive_type_from_name (name, namelen)
- char *name;
- int namelen;
+java_primitive_type_from_name (char *name, int namelen)
{
switch (name[0])
{
@@ -713,8 +698,7 @@ java_primitive_type_from_name (name, namelen)
signature string SIGNATURE. */
static int
-java_demangled_signature_length (signature)
- char *signature;
+java_demangled_signature_length (char *signature)
{
int array = 0;
for (; *signature == '['; signature++)
@@ -732,9 +716,7 @@ java_demangled_signature_length (signature)
/* Demangle the Java type signature SIGNATURE, leaving the result in RESULT. */
static void
-java_demangled_signature_copy (result, signature)
- char *result;
- char *signature;
+java_demangled_signature_copy (char *result, char *signature)
{
int array = 0;
char *ptr;
@@ -776,8 +758,7 @@ java_demangled_signature_copy (result, signature)
as a freshly allocated copy. */
char *
-java_demangle_type_signature (signature)
- char *signature;
+java_demangle_type_signature (char *signature)
{
int length = java_demangled_signature_length (signature);
char *result = xmalloc (length + 1);
@@ -787,8 +768,7 @@ java_demangle_type_signature (signature)
}
struct type *
-java_lookup_type (signature)
- char *signature;
+java_lookup_type (char *signature)
{
switch (signature[0])
{
@@ -804,9 +784,7 @@ java_lookup_type (signature)
If DIMS == 0, TYPE is returned. */
struct type *
-java_array_type (type, dims)
- struct type *type;
- int dims;
+java_array_type (struct type *type, int dims)
{
struct type *range_type;
@@ -823,9 +801,7 @@ java_array_type (type, dims)
/* Create a Java string in the inferior from a (Utf8) literal. */
static value_ptr
-java_value_string (ptr, len)
- char *ptr;
- int len;
+java_value_string (char *ptr, int len)
{
error ("not implemented - java_value_string"); /* FIXME */
}
@@ -835,10 +811,7 @@ java_value_string (ptr, len)
characters and strings is language specific. */
static void
-java_emit_char (c, stream, quoter)
- int c;
- struct ui_file *stream;
- int quoter;
+java_emit_char (int c, struct ui_file *stream, int quoter)
{
switch (c)
{
@@ -871,11 +844,8 @@ java_emit_char (c, stream, quoter)
}
static value_ptr
-evaluate_subexp_java (expect_type, exp, pos, noside)
- struct type *expect_type;
- register struct expression *exp;
- register int *pos;
- enum noside noside;
+evaluate_subexp_java (struct type *expect_type, register struct expression *exp,
+ register int *pos, enum noside noside)
{
int pc = *pos;
int i;
@@ -986,9 +956,7 @@ nosideret:
}
static struct type *
-java_create_fundamental_type (objfile, typeid)
- struct objfile *objfile;
- int typeid;
+java_create_fundamental_type (struct objfile *objfile, int typeid)
{
switch (typeid)
{
@@ -1087,7 +1055,7 @@ const struct language_defn java_language_defn =
};
void
-_initialize_java_language ()
+_initialize_java_language (void)
{
java_int_type = init_type (TYPE_CODE_INT, 4, 0, "int", NULL);
@@ -1109,7 +1077,7 @@ _initialize_java_language ()
extern void java_rerun_cleanup (void);
void
-java_rerun_cleanup ()
+java_rerun_cleanup (void)
{
if (class_symtab != NULL)
{
diff --git a/gdb/jv-typeprint.c b/gdb/jv-typeprint.c
index 1b60830..0bfe559 100644
--- a/gdb/jv-typeprint.c
+++ b/gdb/jv-typeprint.c
@@ -36,9 +36,7 @@ static void java_type_print_base (struct type * type,
int level);
static void
-java_type_print_derivation_info (stream, type)
- struct ui_file *stream;
- struct type *type;
+java_type_print_derivation_info (struct ui_file *stream, struct type *type)
{
char *name;
int i;
@@ -84,11 +82,8 @@ java_type_print_derivation_info (stream, type)
We increase it for some recursive calls. */
static void
-java_type_print_base (type, stream, show, level)
- struct type *type;
- struct ui_file *stream;
- int show;
- int level;
+java_type_print_base (struct type *type, struct ui_file *stream, int show,
+ int level)
{
register int i;
register int len;
@@ -329,12 +324,8 @@ extern void c_type_print_varspec_suffix (struct type *, struct ui_file *,
int, int, int);
void
-java_print_type (type, varstring, stream, show, level)
- struct type *type;
- char *varstring;
- struct ui_file *stream;
- int show;
- int level;
+java_print_type (struct type *type, char *varstring, struct ui_file *stream,
+ int show, int level)
{
int demangled_args;
diff --git a/gdb/jv-valprint.c b/gdb/jv-valprint.c
index 6f9273d..6fd1691 100644
--- a/gdb/jv-valprint.c
+++ b/gdb/jv-valprint.c
@@ -41,11 +41,8 @@ static void java_print_value_fields (struct type * type, char *valaddr,
int
-java_value_print (val, stream, format, pretty)
- value_ptr val;
- struct ui_file *stream;
- int format;
- enum val_prettyprint pretty;
+java_value_print (value_ptr val, struct ui_file *stream, int format,
+ enum val_prettyprint pretty)
{
struct type *type;
CORE_ADDR address;
@@ -241,15 +238,9 @@ java_value_print (val, stream, format, pretty)
should not print, or zero if called from top level. */
static void
-java_print_value_fields (type, valaddr, address, stream,
- format, recurse, pretty)
- struct type *type;
- char *valaddr;
- CORE_ADDR address;
- struct ui_file *stream;
- int format;
- int recurse;
- enum val_prettyprint pretty;
+java_print_value_fields (struct type *type, char *valaddr, CORE_ADDR address,
+ struct ui_file *stream, int format, int recurse,
+ enum val_prettyprint pretty)
{
int i, len, n_baseclasses;
@@ -450,17 +441,9 @@ java_print_value_fields (type, valaddr, address, stream,
The PRETTY parameter controls prettyprinting. */
int
-java_val_print (type, valaddr, embedded_offset, address, stream, format,
- deref_ref, recurse, pretty)
- struct type *type;
- char *valaddr;
- int embedded_offset;
- CORE_ADDR address;
- struct ui_file *stream;
- int format;
- int deref_ref;
- int recurse;
- enum val_prettyprint pretty;
+java_val_print (struct type *type, char *valaddr, int embedded_offset,
+ CORE_ADDR address, struct ui_file *stream, int format,
+ int deref_ref, int recurse, enum val_prettyprint pretty)
{
register unsigned int i = 0; /* Number of characters printed */
struct type *target_type;
diff --git a/gdb/kdb-start.c b/gdb/kdb-start.c
index 7a4acb7..ce4d299 100644
--- a/gdb/kdb-start.c
+++ b/gdb/kdb-start.c
@@ -28,7 +28,7 @@ static char *environment[] =
char **environ;
-start ()
+start (void)
{
INIT_STACK (kdb_stack_beg, kdb_stack_end);
diff --git a/gdb/kod-cisco.c b/gdb/kod-cisco.c
index 06ea9a7..bf97d67 100644
--- a/gdb/kod-cisco.c
+++ b/gdb/kod-cisco.c
@@ -90,13 +90,13 @@ cisco_kod_open (kod_display_callback_ftype *display_func,
/* Close the connection. */
void
-cisco_kod_close ()
+cisco_kod_close (void)
{
}
/* Print a "bad packet" message. */
static void
-bad_packet ()
+bad_packet (void)
{
(*gdb_kod_display) ("Remote target returned malformed packet.\n");
}
diff --git a/gdb/kod.c b/gdb/kod.c
index 0a90677..d2687d7 100644
--- a/gdb/kod.c
+++ b/gdb/kod.c
@@ -216,7 +216,7 @@ load_kod_library (char *lib)
}
void
-_initialize_kod ()
+_initialize_kod (void)
{
struct cmd_list_element *c;
diff --git a/gdb/language.c b/gdb/language.c
index dc5ae40..19520ce 100644
--- a/gdb/language.c
+++ b/gdb/language.c
@@ -145,9 +145,7 @@ char lang_frame_mismatch_warn[] =
/* Show command. Display a warning if the language set
does not match the frame. */
static void
-show_language_command (ignore, from_tty)
- char *ignore;
- int from_tty;
+show_language_command (char *ignore, int from_tty)
{
enum language flang; /* The language of the current frame */
@@ -160,9 +158,7 @@ show_language_command (ignore, from_tty)
/* Set command. Change the current working language. */
static void
-set_language_command (ignore, from_tty)
- char *ignore;
- int from_tty;
+set_language_command (char *ignore, int from_tty)
{
int i;
enum language flang;
@@ -234,9 +230,7 @@ set_language_command (ignore, from_tty)
/* Show command. Display a warning if the type setting does
not match the current language. */
static void
-show_type_command (ignore, from_tty)
- char *ignore;
- int from_tty;
+show_type_command (char *ignore, int from_tty)
{
if (type_check != current_language->la_type_check)
printf_unfiltered (
@@ -245,9 +239,7 @@ show_type_command (ignore, from_tty)
/* Set command. Change the setting for type checking. */
static void
-set_type_command (ignore, from_tty)
- char *ignore;
- int from_tty;
+set_type_command (char *ignore, int from_tty)
{
if (STREQ (type, "on"))
{
@@ -283,9 +275,7 @@ set_type_command (ignore, from_tty)
/* Show command. Display a warning if the range setting does
not match the current language. */
static void
-show_range_command (ignore, from_tty)
- char *ignore;
- int from_tty;
+show_range_command (char *ignore, int from_tty)
{
if (range_check != current_language->la_range_check)
@@ -295,9 +285,7 @@ show_range_command (ignore, from_tty)
/* Set command. Change the setting for range checking. */
static void
-set_range_command (ignore, from_tty)
- char *ignore;
- int from_tty;
+set_range_command (char *ignore, int from_tty)
{
if (STREQ (range, "on"))
{
@@ -335,7 +323,7 @@ set_range_command (ignore, from_tty)
If SHOW is non-zero, then print out the current language,
type and range checking status. */
static void
-set_type_range ()
+set_type_range (void)
{
if (range_mode == range_mode_auto)
@@ -351,8 +339,7 @@ set_type_range ()
/* Set current language to (enum language) LANG. Returns previous language. */
enum language
-set_language (lang)
- enum language lang;
+set_language (enum language lang)
{
int i;
enum language prev_language;
@@ -376,7 +363,7 @@ set_language (lang)
/* This page contains functions that update the global vars
language, type and range. */
static void
-set_lang_str ()
+set_lang_str (void)
{
char *prefix = "";
@@ -389,7 +376,7 @@ set_lang_str ()
}
static void
-set_type_str ()
+set_type_str (void)
{
char *tmp = NULL, *prefix = "";
@@ -417,7 +404,7 @@ set_type_str ()
}
static void
-set_range_str ()
+set_range_str (void)
{
char *tmp, *pref = "";
@@ -449,8 +436,7 @@ set_range_str ()
type checking. If QUIETLY, print only what has changed. */
void
-language_info (quietly)
- int quietly;
+language_info (int quietly)
{
if (quietly && expected_language == current_language)
return;
@@ -473,8 +459,7 @@ language_info (quietly)
#if 0 /* Currently unused */
struct type *
-binop_result_type (v1, v2)
- value_ptr v1, v2;
+binop_result_type (value_ptr v1, value_ptr v2)
{
int size, uns;
struct type *t1 = check_typedef (VALUE_TYPE (v1));
@@ -521,8 +506,7 @@ binop_result_type (v1, v2)
/* Returns the appropriate printf format for hexadecimal
numbers. */
char *
-local_hex_format_custom (pre)
- char *pre;
+local_hex_format_custom (char *pre)
{
static char form[50];
@@ -543,8 +527,7 @@ local_hex_format_custom (pre)
static string. Returns a pointer to this string. */
char *
-longest_raw_hex_string (num)
- LONGEST num;
+longest_raw_hex_string (LONGEST num)
{
static char res_longest_raw_hex_string[50];
long long ll = num; /* MERGEBUG ?? see below */
@@ -561,8 +544,7 @@ longest_raw_hex_string (num)
/* Converts a number to hexadecimal and stores it in a static
string. Returns a pointer to this string. */
char *
-local_hex_string (num)
- unsigned long num;
+local_hex_string (unsigned long num)
{
static char res[50];
@@ -573,8 +555,7 @@ local_hex_string (num)
/* Converts a LONGEST number to hexadecimal and stores it in a static
string. Returns a pointer to this string. */
char *
-longest_local_hex_string (num)
- LONGEST num;
+longest_local_hex_string (LONGEST num)
{
return longest_local_hex_string_custom (num, "l");
}
@@ -582,9 +563,7 @@ longest_local_hex_string (num)
/* Converts a number to custom hexadecimal and stores it in a static
string. Returns a pointer to this string. */
char *
-local_hex_string_custom (num, pre)
- unsigned long num;
- char *pre;
+local_hex_string_custom (unsigned long num, char *pre)
{
static char res[50];
@@ -597,9 +576,7 @@ local_hex_string_custom (num, pre)
should end with "l", e.g. "08l" as with calls to local_hex_string_custom */
char *
-longest_local_hex_string_custom (num, width)
- LONGEST num;
- char *width;
+longest_local_hex_string_custom (LONGEST num, char *width)
{
#define RESULT_BUF_LEN 50
static char res2[RESULT_BUF_LEN];
@@ -694,8 +671,7 @@ longest_local_hex_string_custom (num, width)
/* Returns the appropriate printf format for octal
numbers. */
char *
-local_octal_format_custom (pre)
- char *pre;
+local_octal_format_custom (char *pre)
{
static char form[50];
@@ -709,8 +685,7 @@ local_octal_format_custom (pre)
/* Returns the appropriate printf format for decimal numbers. */
char *
-local_decimal_format_custom (pre)
- char *pre;
+local_decimal_format_custom (char *pre)
{
static char form[50];
@@ -741,8 +716,7 @@ local_decimal_format_custom (pre)
both Modula-2 and for C. In the C case, TYPE_CODE_CHAR will never occur,
and thus will never cause the failure of the test. */
int
-simple_type (type)
- struct type *type;
+simple_type (struct type *type)
{
CHECK_TYPEDEF (type);
switch (TYPE_CODE (type))
@@ -765,8 +739,7 @@ simple_type (type)
properties of "greater than", "less than", etc, or for which the
operations "increment" or "decrement" make sense. */
int
-ordered_type (type)
- struct type *type;
+ordered_type (struct type *type)
{
CHECK_TYPEDEF (type);
switch (TYPE_CODE (type))
@@ -785,8 +758,7 @@ ordered_type (type)
/* Returns non-zero if the two types are the same */
int
-same_type (arg1, arg2)
- struct type *arg1, *arg2;
+same_type (struct type *arg1, struct type *arg2)
{
CHECK_TYPEDEF (type);
if (structured_type (arg1) ? !structured_type (arg2) : structured_type (arg2))
@@ -804,8 +776,7 @@ same_type (arg1, arg2)
/* Returns non-zero if the type is integral */
int
-integral_type (type)
- struct type *type;
+integral_type (struct type *type)
{
CHECK_TYPEDEF (type);
switch (current_language->la_language)
@@ -826,8 +797,7 @@ integral_type (type)
/* Returns non-zero if the value is numeric */
int
-numeric_type (type)
- struct type *type;
+numeric_type (struct type *type)
{
CHECK_TYPEDEF (type);
switch (TYPE_CODE (type))
@@ -843,8 +813,7 @@ numeric_type (type)
/* Returns non-zero if the value is a character type */
int
-character_type (type)
- struct type *type;
+character_type (struct type *type)
{
CHECK_TYPEDEF (type);
switch (current_language->la_language)
@@ -866,8 +835,7 @@ character_type (type)
/* Returns non-zero if the value is a string type */
int
-string_type (type)
- struct type *type;
+string_type (struct type *type)
{
CHECK_TYPEDEF (type);
switch (current_language->la_language)
@@ -888,8 +856,7 @@ string_type (type)
/* Returns non-zero if the value is a boolean type */
int
-boolean_type (type)
- struct type *type;
+boolean_type (struct type *type)
{
CHECK_TYPEDEF (type);
if (TYPE_CODE (type) == TYPE_CODE_BOOL)
@@ -910,8 +877,7 @@ boolean_type (type)
/* Returns non-zero if the value is a floating-point type */
int
-float_type (type)
- struct type *type;
+float_type (struct type *type)
{
CHECK_TYPEDEF (type);
return TYPE_CODE (type) == TYPE_CODE_FLT;
@@ -919,8 +885,7 @@ float_type (type)
/* Returns non-zero if the value is a pointer type */
int
-pointer_type (type)
- struct type *type;
+pointer_type (struct type *type)
{
return TYPE_CODE (type) == TYPE_CODE_PTR ||
TYPE_CODE (type) == TYPE_CODE_REF;
@@ -928,8 +893,7 @@ pointer_type (type)
/* Returns non-zero if the value is a structured type */
int
-structured_type (type)
- struct type *type;
+structured_type (struct type *type)
{
CHECK_TYPEDEF (type);
switch (current_language->la_language)
@@ -957,7 +921,7 @@ structured_type (type)
#endif
struct type *
-lang_bool_type ()
+lang_bool_type (void)
{
struct symbol *sym;
struct type *type;
@@ -1006,8 +970,7 @@ lang_bool_type ()
/* Returns non-zero if the value VAL represents a true value. */
int
-value_true (val)
- value_ptr val;
+value_true (value_ptr val)
{
/* It is possible that we should have some sort of error if a non-boolean
value is used in this context. Possibly dependent on some kind of
@@ -1024,9 +987,7 @@ value_true (val)
#if 0 /* Currently unused */
void
-binop_type_check (arg1, arg2, op)
- value_ptr arg1, arg2;
- int op;
+binop_type_check (value_ptr arg1, value_ptr arg2, int op)
{
struct type *t1, *t2;
@@ -1218,10 +1179,7 @@ binop_type_check (arg1, arg2, op)
this is an error and error () is called. Otherwise, it is
a warning and printf() is called. */
void
-op_error (fmt, op, fatal)
- char *fmt;
- enum exp_opcode op;
- int fatal;
+op_error (char *fmt, enum exp_opcode op, int fatal)
{
if (fatal)
error (fmt, op_string (op));
@@ -1280,8 +1238,7 @@ range_error (char *string,...)
/* Return the language enum for a given language string. */
enum language
-language_enum (str)
- char *str;
+language_enum (char *str)
{
int i;
@@ -1295,8 +1252,7 @@ language_enum (str)
/* Return the language struct for a given language enum. */
const struct language_defn *
-language_def (lang)
- enum language lang;
+language_def (enum language lang)
{
int i;
@@ -1312,8 +1268,7 @@ language_def (lang)
/* Return the language as a string */
char *
-language_str (lang)
- enum language lang;
+language_str (enum language lang)
{
int i;
@@ -1328,9 +1283,7 @@ language_str (lang)
}
static void
-set_check (ignore, from_tty)
- char *ignore;
- int from_tty;
+set_check (char *ignore, int from_tty)
{
printf_unfiltered (
"\"set check\" must be followed by the name of a check subcommand.\n");
@@ -1338,9 +1291,7 @@ set_check (ignore, from_tty)
}
static void
-show_check (ignore, from_tty)
- char *ignore;
- int from_tty;
+show_check (char *ignore, int from_tty)
{
cmd_show_list (showchecklist, from_tty, "");
}
@@ -1348,8 +1299,7 @@ show_check (ignore, from_tty)
/* Add a language to the set of known languages. */
void
-add_language (lang)
- const struct language_defn *lang;
+add_language (const struct language_defn *lang)
{
if (lang->la_magic != LANG_MAGIC)
{
@@ -1376,87 +1326,60 @@ add_language (lang)
/* Define the language that is no language. */
static int
-unk_lang_parser ()
+unk_lang_parser (void)
{
return 1;
}
static void
-unk_lang_error (msg)
- char *msg;
+unk_lang_error (char *msg)
{
error ("Attempted to parse an expression with unknown language");
}
static void
-unk_lang_emit_char (c, stream, quoter)
- register int c;
- struct ui_file *stream;
- int quoter;
+unk_lang_emit_char (register int c, struct ui_file *stream, int quoter)
{
error ("internal error - unimplemented function unk_lang_emit_char called.");
}
static void
-unk_lang_printchar (c, stream)
- register int c;
- struct ui_file *stream;
+unk_lang_printchar (register int c, struct ui_file *stream)
{
error ("internal error - unimplemented function unk_lang_printchar called.");
}
static void
-unk_lang_printstr (stream, string, length, width, force_ellipses)
- struct ui_file *stream;
- char *string;
- unsigned int length;
- int width;
- int force_ellipses;
+unk_lang_printstr (struct ui_file *stream, char *string, unsigned int length,
+ int width, int force_ellipses)
{
error ("internal error - unimplemented function unk_lang_printstr called.");
}
static struct type *
-unk_lang_create_fundamental_type (objfile, typeid)
- struct objfile *objfile;
- int typeid;
+unk_lang_create_fundamental_type (struct objfile *objfile, int typeid)
{
error ("internal error - unimplemented function unk_lang_create_fundamental_type called.");
}
static void
-unk_lang_print_type (type, varstring, stream, show, level)
- struct type *type;
- char *varstring;
- struct ui_file *stream;
- int show;
- int level;
+unk_lang_print_type (struct type *type, char *varstring, struct ui_file *stream,
+ int show, int level)
{
error ("internal error - unimplemented function unk_lang_print_type called.");
}
static int
-unk_lang_val_print (type, valaddr, embedded_offset, address, stream, format, deref_ref,
- recurse, pretty)
- struct type *type;
- char *valaddr;
- int embedded_offset;
- CORE_ADDR address;
- struct ui_file *stream;
- int format;
- int deref_ref;
- int recurse;
- enum val_prettyprint pretty;
+unk_lang_val_print (struct type *type, char *valaddr, int embedded_offset,
+ CORE_ADDR address, struct ui_file *stream, int format,
+ int deref_ref, int recurse, enum val_prettyprint pretty)
{
error ("internal error - unimplemented function unk_lang_val_print called.");
}
static int
-unk_lang_value_print (val, stream, format, pretty)
- value_ptr val;
- struct ui_file *stream;
- int format;
- enum val_prettyprint pretty;
+unk_lang_value_print (value_ptr val, struct ui_file *stream, int format,
+ enum val_prettyprint pretty)
{
error ("internal error - unimplemented function unk_lang_value_print called.");
}
@@ -1558,7 +1481,7 @@ const struct language_defn local_language_defn =
/* Initialize the language routines */
void
-_initialize_language ()
+_initialize_language (void)
{
struct cmd_list_element *set, *show;
diff --git a/gdb/lin-thread.c b/gdb/lin-thread.c
index cd9ab99..dd06e5d 100644
--- a/gdb/lin-thread.c
+++ b/gdb/lin-thread.c
@@ -555,7 +555,7 @@ static td_err_e (*p_td_ta_map_lwp2thr) (const td_thragent_t *ta_p,
*/
static int
-init_thread_db_library ()
+init_thread_db_library (void)
{
void *dlhandle;
td_err_e ret;
@@ -704,8 +704,7 @@ restore_inferior_pid (void *arg)
*/
static char *
-thr_err_string (errcode)
- td_err_e errcode;
+thr_err_string (td_err_e errcode)
{
static char buf[50];
@@ -755,8 +754,7 @@ thr_err_string (errcode)
*/
static char *
-thr_state_string (statecode)
- td_thr_state_e statecode;
+thr_state_string (td_thr_state_e statecode)
{
static char buf[50];
@@ -794,11 +792,7 @@ int threadlist_top = 0; /* number of threads now in table */
#define THREADLIST_ALLOC 100 /* chunk size by which to expand table */
static threadinfo *
-insert_thread (tid, lid, state, type)
- int tid;
- int lid;
- td_thr_state_e state;
- td_thr_type_e type;
+insert_thread (int tid, int lid, td_thr_state_e state, td_thr_type_e type)
{
if (threadlist_top >= threadlist_max)
{
@@ -819,13 +813,13 @@ insert_thread (tid, lid, state, type)
}
static void
-empty_threadlist ()
+empty_threadlist (void)
{
threadlist_top = 0;
}
static threadinfo *
-next_pending_event ()
+next_pending_event (void)
{
int i;
@@ -910,8 +904,7 @@ static CORE_ADDR thread_death_bkpt_address;
The thread-specific enabling is handled per-thread elsewhere. */
static void
-enable_thread_event_reporting (ta)
- td_thragent_t *ta;
+enable_thread_event_reporting (td_thragent_t *ta)
{
td_thr_events_t events;
td_notify_t notify;
@@ -970,8 +963,7 @@ enable_thread_event_reporting (ta)
The thread-specific enabling is handled per-thread elsewhere. */
static void
-disable_thread_event_reporting (ta)
- td_thragent_t *ta;
+disable_thread_event_reporting (td_thragent_t *ta)
{
td_thr_events_t events;
@@ -1133,8 +1125,7 @@ quit:
*/
static int
-thread_db_alive (pid)
- int pid;
+thread_db_alive (int pid)
{
if (is_thread (pid)) /* user-space (non-kernel) thread */
{
@@ -1159,8 +1150,7 @@ thread_db_alive (pid)
*/
static int /* lwpid_t or pid_t */
-get_lwp_from_thread_handle (th)
- td_thrhandle_t *th;
+get_lwp_from_thread_handle (td_thrhandle_t *th)
{
td_thrinfo_t ti;
td_err_e ret;
@@ -1279,8 +1269,7 @@ thread_db_xfer_memory (memaddr, myaddr, len, dowrite, target)
*/
static void
-thread_db_fetch_registers (regno)
- int regno;
+thread_db_fetch_registers (int regno)
{
td_thrhandle_t thandle;
gdb_prfpregset_t fpregset;
@@ -1330,8 +1319,7 @@ thread_db_fetch_registers (regno)
*/
static void
-thread_db_store_registers (regno)
- int regno;
+thread_db_store_registers (int regno)
{
td_thrhandle_t thandle;
gdb_prfpregset_t fpregset;
@@ -1382,10 +1370,9 @@ thread_db_store_registers (regno)
}
static void
-handle_new_thread (tid, lid, verbose)
- int tid; /* user thread id */
- int lid; /* kernel thread id */
- int verbose;
+handle_new_thread (int tid, /* user thread id */
+ int lid, /* kernel thread id */
+ int verbose)
{
int gdb_pid = BUILD_THREAD (tid, main_prochandle.pid);
int wait_pid, wait_status;
@@ -1405,10 +1392,7 @@ handle_new_thread (tid, lid, verbose)
}
static void
-test_for_new_thread (tid, lid, verbose)
- int tid;
- int lid;
- int verbose;
+test_for_new_thread (int tid, int lid, int verbose)
{
if (!in_thread_list (BUILD_THREAD (tid, main_prochandle.pid)))
handle_new_thread (tid, lid, verbose);
@@ -1420,9 +1404,7 @@ test_for_new_thread (tid, lid, verbose)
*/
static int
-find_new_threads_callback (th, ignored)
- const td_thrhandle_t *th;
- void *ignored;
+find_new_threads_callback (const td_thrhandle_t *th, void *ignored)
{
td_thrinfo_t ti;
td_err_e ret;
@@ -1448,7 +1430,7 @@ find_new_threads_callback (th, ignored)
*/
static void
-thread_db_find_new_threads ()
+thread_db_find_new_threads (void)
{
if (inferior_pid == -1) /* FIXME: still necessary? */
{
@@ -1487,9 +1469,7 @@ thread_db_find_new_threads ()
*/
static int
-resume_thread_callback (th, data)
- const td_thrhandle_t *th;
- void *data;
+resume_thread_callback (const td_thrhandle_t *th, void *data)
{
td_thrinfo_t ti;
td_err_e ret;
@@ -1517,9 +1497,7 @@ resume_thread_callback (th, data)
}
static int
-new_resume_thread_callback (thread, data)
- threadinfo *thread;
- void *data;
+new_resume_thread_callback (threadinfo *thread, void *data)
{
if (thread->lid != event_pid &&
thread->lid != main_prochandle.pid)
@@ -1536,10 +1514,7 @@ static int last_resume_step;
static int last_resume_signo;
static void
-thread_db_resume (pid, step, signo)
- int pid;
- int step;
- enum target_signal signo;
+thread_db_resume (int pid, int step, enum target_signal signo)
{
last_resume_pid = pid;
last_resume_step = step;
@@ -1632,8 +1607,7 @@ stop_or_attach_thread_callback (const td_thrhandle_t *th, void *data)
*/
static void
-wait_for_stop (pid)
- int pid;
+wait_for_stop (int pid)
{
int i;
int retpid;
@@ -1763,9 +1737,7 @@ wait_thread_callback (const td_thrhandle_t *th, void *data)
}
static int
-new_wait_thread_callback (thread, data)
- threadinfo *thread;
- void *data;
+new_wait_thread_callback (threadinfo *thread, void *data)
{
/* don't wait on the event thread -- it's already stopped and waited.
Ditto the main thread. */
@@ -1898,9 +1870,7 @@ thread_db_wait (int pid, struct target_waitstatus *ourstatus)
*/
static int
-kill_thread_callback (th, data)
- td_thrhandle_t *th;
- void *data;
+kill_thread_callback (td_thrhandle_t *th, void *data)
{
td_thrinfo_t ti;
td_err_e ret;
@@ -1990,9 +1960,7 @@ static void thread_db_mourn_inferior (void)
*/
static int
-detach_thread_callback (th, data)
- td_thrhandle_t *th;
- void *data;
+detach_thread_callback (td_thrhandle_t *th, void *data)
{
/* Called once per thread. */
td_thrinfo_t ti;
@@ -2075,10 +2043,7 @@ thread_db_detach (char *args, int from_tty)
*/
static void
-thread_db_create_inferior (exec_file, allargs, env)
- char *exec_file;
- char *allargs;
- char **env;
+thread_db_create_inferior (char *exec_file, char *allargs, char **env)
{
thread_db_unpush_target ();
find_default_create_inferior (exec_file, allargs, env);
@@ -2089,7 +2054,7 @@ thread_db_create_inferior (exec_file, allargs, env)
*/
void
-init_thread_db_ops ()
+init_thread_db_ops (void)
{
thread_db_ops.to_shortname = "multi-thread";
thread_db_ops.to_longname = "multi-threaded child process.";
@@ -2122,7 +2087,7 @@ init_thread_db_ops ()
void
-_initialize_thread_db ()
+_initialize_thread_db (void)
{
#ifdef HAVE_STDINT_H /* stub out entire module, leave initializer empty */
if (init_thread_db_library ())
diff --git a/gdb/linux-thread.c b/gdb/linux-thread.c
index f25c763..3cf8433 100644
--- a/gdb/linux-thread.c
+++ b/gdb/linux-thread.c
@@ -205,8 +205,7 @@ static CORE_ADDR linuxthreads_breakpoint_addr;
#endif
/* Check to see if the given thread is alive. */
static int
-linuxthreads_thread_alive (pid)
- int pid;
+linuxthreads_thread_alive (int pid)
{
errno = 0;
return ptrace (PT_READ_U, pid, (PTRACE_ARG3_TYPE)0, 0) >= 0 || errno == 0;
@@ -230,9 +229,7 @@ linuxthreads_thread_alive (pid)
our efforts to debug it, accept them with wait, but don't pass them
through to PID. Do pass all other signals through. */
static int
-linuxthreads_find_trap (pid, stop)
- int pid;
- int stop;
+linuxthreads_find_trap (int pid, int stop)
{
int i;
int rpid;
@@ -397,8 +394,7 @@ save_inferior_pid (void)
}
static void
-sigchld_handler (signo)
- int signo;
+sigchld_handler (int signo)
{
/* This handler is used to get an EINTR while doing waitpid()
when an event is received */
@@ -407,8 +403,7 @@ sigchld_handler (signo)
/* Have we already collected a wait status for PID in the
linuxthreads_wait bag? */
static int
-linuxthreads_pending_status (pid)
- int pid;
+linuxthreads_pending_status (int pid)
{
int i;
for (i = linuxthreads_wait_last; i >= 0; i--)
@@ -425,9 +420,7 @@ linuxthreads_pending_status (pid)
in OBJFILE, so we complain if it's required, but not there.
Return true iff things are okay. */
static int
-find_signal_var (sig, objfile)
- struct linuxthreads_signal *sig;
- struct objfile *objfile;
+find_signal_var (struct linuxthreads_signal *sig, struct objfile *objfile)
{
struct minimal_symbol *ms = lookup_minimal_symbol (sig->var, NULL, objfile);
@@ -453,8 +446,7 @@ find_signal_var (sig, objfile)
}
static int
-find_all_signal_vars (objfile)
- struct objfile *objfile;
+find_all_signal_vars (struct objfile *objfile)
{
return ( find_signal_var (&linuxthreads_sig_restart, objfile)
&& find_signal_var (&linuxthreads_sig_cancel, objfile)
@@ -468,8 +460,7 @@ static int complained_cannot_determine_thread_signal_number = 0;
been initialized yet. If it has, tell GDB to pass that signal
through to the inferior silently. */
static void
-check_signal_number (sig)
- struct linuxthreads_signal *sig;
+check_signal_number (struct linuxthreads_signal *sig)
{
int num;
@@ -505,7 +496,7 @@ check_signal_number (sig)
}
void
-check_all_signal_numbers ()
+check_all_signal_numbers (void)
{
/* If this isn't a LinuxThreads program, quit early. */
if (! linuxthreads_max)
@@ -538,8 +529,7 @@ check_all_signal_numbers ()
talking to an executable that uses LinuxThreads, so we clear the
signal number and variable address too. */
static void
-restore_signal (sig)
- struct linuxthreads_signal *sig;
+restore_signal (struct linuxthreads_signal *sig)
{
if (! sig->signal)
return;
@@ -559,7 +549,7 @@ restore_signal (sig)
talking to an executable that uses LinuxThreads, so we clear the
signal number and variable address too. */
static void
-restore_all_signals ()
+restore_all_signals (void)
{
restore_signal (&linuxthreads_sig_restart);
restore_signal (&linuxthreads_sig_cancel);
@@ -610,8 +600,7 @@ iterate_active_threads (func, all)
This is the worker function for linuxthreads_insert_breakpoint,
which passes it to iterate_active_threads. */
static void
-insert_breakpoint (pid)
- int pid;
+insert_breakpoint (int pid)
{
int j;
@@ -637,8 +626,7 @@ insert_breakpoint (pid)
breakpoint if the thread's PC is pointing at the breakpoint being
removed. */
static void
-remove_breakpoint (pid)
- int pid;
+remove_breakpoint (int pid)
{
int j;
@@ -663,8 +651,7 @@ remove_breakpoint (pid)
/* Kill a thread */
static void
-kill_thread (pid)
- int pid;
+kill_thread (int pid)
{
if (in_thread_list (pid))
{
@@ -678,8 +665,7 @@ kill_thread (pid)
/* Resume a thread */
static void
-resume_thread (pid)
- int pid;
+resume_thread (int pid)
{
if (pid != inferior_pid
&& in_thread_list (pid)
@@ -698,8 +684,7 @@ resume_thread (pid)
/* Detach a thread */
static void
-detach_thread (pid)
- int pid;
+detach_thread (int pid)
{
if (in_thread_list (pid) && linuxthreads_thread_alive (pid))
{
@@ -714,8 +699,7 @@ detach_thread (pid)
/* Attach a thread */
void
-attach_thread (pid)
- int pid;
+attach_thread (int pid)
{
if (ptrace (PT_ATTACH, pid, (PTRACE_ARG3_TYPE) 0, 0) != 0)
perror_with_name ("attach_thread");
@@ -723,8 +707,7 @@ attach_thread (pid)
/* Stop a thread */
static void
-stop_thread (pid)
- int pid;
+stop_thread (int pid)
{
if (pid != inferior_pid)
{
@@ -752,8 +735,7 @@ stop_thread (pid)
/* Wait for a thread */
static void
-wait_thread (pid)
- int pid;
+wait_thread (int pid)
{
int status;
int rpid;
@@ -815,8 +797,7 @@ wait_thread (pid)
/* Walk through the linuxthreads handles in order to detect all
threads and stop them */
static void
-update_stop_threads (test_pid)
- int test_pid;
+update_stop_threads (int test_pid)
{
struct cleanup *old_chain = NULL;
@@ -905,8 +886,7 @@ update_stop_threads (test_pid)
static void (*target_new_objfile_chain) (struct objfile *);
void
-linuxthreads_new_objfile (objfile)
- struct objfile *objfile;
+linuxthreads_new_objfile (struct objfile *objfile)
{
struct minimal_symbol *ms;
@@ -1076,8 +1056,7 @@ quit:
return 1 otherwise 0. */
int
-linuxthreads_prepare_to_proceed (step)
- int step;
+linuxthreads_prepare_to_proceed (int step)
{
if (!linuxthreads_max
|| !linuxthreads_manager_pid
@@ -1098,8 +1077,7 @@ linuxthreads_prepare_to_proceed (step)
/* Convert a pid to printable form. */
char *
-linuxthreads_pid_to_str (pid)
- int pid;
+linuxthreads_pid_to_str (int pid)
{
static char buf[100];
@@ -1115,9 +1093,7 @@ linuxthreads_pid_to_str (pid)
and wait for the trace-trap that results from attaching. */
static void
-linuxthreads_attach (args, from_tty)
- char *args;
- int from_tty;
+linuxthreads_attach (char *args, int from_tty)
{
if (!args)
error_no_arg ("process-id to attach");
@@ -1143,9 +1119,7 @@ linuxthreads_attach (args, from_tty)
started via the normal ptrace (PTRACE_TRACEME). */
static void
-linuxthreads_detach (args, from_tty)
- char *args;
- int from_tty;
+linuxthreads_detach (char *args, int from_tty)
{
if (linuxthreads_max)
{
@@ -1209,10 +1183,7 @@ linuxthreads_detach (args, from_tty)
signal activated. */
static void
-linuxthreads_resume (pid, step, signo)
- int pid;
- int step;
- enum target_signal signo;
+linuxthreads_resume (int pid, int step, enum target_signal signo)
{
if (!linuxthreads_max || stop_soon_quietly || linuxthreads_manager_pid == 0)
{
@@ -1288,10 +1259,7 @@ linuxthreads_resume (pid, step, signo)
/* Abstract out the child_wait functionality. */
int
-linux_child_wait (pid, rpid, status)
- int pid;
- int *rpid;
- int *status;
+linux_child_wait (int pid, int *rpid, int *status)
{
int save_errno;
@@ -1345,9 +1313,7 @@ linux_child_wait (pid, rpid, status)
to a LWP id, and vice versa on the way out. */
static int
-linuxthreads_wait (pid, ourstatus)
- int pid;
- struct target_waitstatus *ourstatus;
+linuxthreads_wait (int pid, struct target_waitstatus *ourstatus)
{
int status;
int rpid;
@@ -1582,10 +1548,7 @@ linuxthreads_wait (pid, ourstatus)
/* Fork an inferior process, and start debugging it with ptrace. */
static void
-linuxthreads_create_inferior (exec_file, allargs, env)
- char *exec_file;
- char *allargs;
- char **env;
+linuxthreads_create_inferior (char *exec_file, char *allargs, char **env)
{
if (!exec_file && !exec_bfd)
{
@@ -1607,7 +1570,7 @@ Use the \"file\" or \"exec-file\" command.");
}
void
-linuxthreads_discard_global_state ()
+linuxthreads_discard_global_state (void)
{
linuxthreads_inferior_pid = 0;
linuxthreads_breakpoint_pid = 0;
@@ -1622,7 +1585,7 @@ linuxthreads_discard_global_state ()
/* Clean up after the inferior dies. */
static void
-linuxthreads_mourn_inferior ()
+linuxthreads_mourn_inferior (void)
{
if (linuxthreads_max)
{
@@ -1641,7 +1604,7 @@ linuxthreads_mourn_inferior ()
/* Kill the inferior process */
static void
-linuxthreads_kill ()
+linuxthreads_kill (void)
{
int rpid;
int status;
@@ -1702,9 +1665,7 @@ linuxthreads_kill ()
/* Insert a breakpoint */
static int
-linuxthreads_insert_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+linuxthreads_insert_breakpoint (CORE_ADDR addr, char *contents_cache)
{
if (linuxthreads_max && linuxthreads_manager_pid != 0)
{
@@ -1719,9 +1680,7 @@ linuxthreads_insert_breakpoint (addr, contents_cache)
/* Remove a breakpoint */
static int
-linuxthreads_remove_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+linuxthreads_remove_breakpoint (CORE_ADDR addr, char *contents_cache)
{
if (linuxthreads_max && linuxthreads_manager_pid != 0)
{
@@ -1736,14 +1695,14 @@ linuxthreads_remove_breakpoint (addr, contents_cache)
/* Mark our target-struct as eligible for stray "run" and "attach" commands. */
static int
-linuxthreads_can_run ()
+linuxthreads_can_run (void)
{
return child_suppress_run;
}
static void
-init_linuxthreads_ops ()
+init_linuxthreads_ops (void)
{
linuxthreads_ops.to_shortname = "linuxthreads";
linuxthreads_ops.to_longname = "LINUX threads and pthread.";
@@ -1765,7 +1724,7 @@ init_linuxthreads_ops ()
}
void
-_initialize_linuxthreads ()
+_initialize_linuxthreads (void)
{
struct sigaction sact;
sigset_t linuxthreads_wait_mask; /* sigset with SIGCHLD */
diff --git a/gdb/lynx-nat.c b/gdb/lynx-nat.c
index 3974018..20a7e16 100644
--- a/gdb/lynx-nat.c
+++ b/gdb/lynx-nat.c
@@ -260,8 +260,7 @@ static int regmap[] =
It also handles knows where to find the I & L regs on the stack. */
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
int whatregs = 0;
@@ -361,8 +360,7 @@ fetch_inferior_registers (regno)
this point. */
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
int whatregs = 0;
@@ -469,8 +467,7 @@ store_inferior_registers (regno)
saved context block. */
static unsigned long
-registers_addr (pid)
- int pid;
+registers_addr (int pid)
{
CORE_ADDR stblock;
int ecpoff = offsetof (st_t, ecp);
@@ -495,8 +492,7 @@ registers_addr (pid)
marking them as valid so we won't fetch them again. */
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
int reglo, reghi;
int i;
@@ -547,8 +543,7 @@ fetch_inferior_registers (regno)
#endif
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
int reglo, reghi;
int i;
@@ -595,9 +590,7 @@ store_inferior_registers (regno)
of error; store status through argument pointer OURSTATUS. */
int
-child_wait (pid, ourstatus)
- int pid;
- struct target_waitstatus *ourstatus;
+child_wait (int pid, struct target_waitstatus *ourstatus)
{
int save_errno;
int thread;
@@ -716,8 +709,7 @@ child_wait (pid, ourstatus)
/* Return nonzero if the given thread is still alive. */
int
-child_thread_alive (pid)
- int pid;
+child_thread_alive (int pid)
{
/* Arggh. Apparently pthread_kill only works for threads within
the process that calls pthread_kill.
@@ -736,10 +728,7 @@ child_thread_alive (pid)
If SIGNAL is nonzero, give it that signal. */
void
-child_resume (pid, step, signal)
- int pid;
- int step;
- enum target_signal signal;
+child_resume (int pid, int step, enum target_signal signal)
{
int func;
@@ -775,8 +764,7 @@ child_resume (pid, step, signal)
buffer. */
char *
-child_pid_to_str (pid)
- int pid;
+child_pid_to_str (int pid)
{
static char buf[40];
@@ -799,11 +787,8 @@ child_pid_to_str (pid)
*/
static void
-fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
- char *core_reg_sect;
- unsigned core_reg_size;
- int which;
- CORE_ADDR reg_addr;
+fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, int which,
+ CORE_ADDR reg_addr)
{
struct st_entry s;
unsigned int regno;
@@ -835,7 +820,7 @@ static struct core_fns lynx_core_fns =
};
void
-_initialize_core_lynx ()
+_initialize_core_lynx (void)
{
add_core_fns (&lynx_core_fns);
}
diff --git a/gdb/m2-lang.c b/gdb/m2-lang.c
index 8b93810..cc3d82f 100644
--- a/gdb/m2-lang.c
+++ b/gdb/m2-lang.c
@@ -44,10 +44,7 @@ static void m2_emit_char (int, struct ui_file *, int);
*/
static void
-m2_emit_char (c, stream, quoter)
- register int c;
- struct ui_file *stream;
- int quoter;
+m2_emit_char (register int c, struct ui_file *stream, int quoter)
{
c &= 0xFF; /* Avoid sign bit follies */
@@ -96,9 +93,7 @@ m2_emit_char (c, stream, quoter)
be replaced with a true Modula version. */
static void
-m2_printchar (c, stream)
- int c;
- struct ui_file *stream;
+m2_printchar (int c, struct ui_file *stream)
{
fputs_filtered ("'", stream);
LA_EMIT_CHAR (c, stream, '\'');
@@ -113,12 +108,8 @@ m2_printchar (c, stream)
be replaced with a true Modula version. */
static void
-m2_printstr (stream, string, length, width, force_ellipses)
- struct ui_file *stream;
- char *string;
- unsigned int length;
- int width;
- int force_ellipses;
+m2_printstr (struct ui_file *stream, char *string, unsigned int length,
+ int width, int force_ellipses)
{
register unsigned int i;
unsigned int things_printed = 0;
@@ -205,9 +196,7 @@ m2_printstr (stream, string, length, width, force_ellipses)
by an experienced Modula programmer. */
static struct type *
-m2_create_fundamental_type (objfile, typeid)
- struct objfile *objfile;
- int typeid;
+m2_create_fundamental_type (struct objfile *objfile, int typeid)
{
register struct type *type = NULL;
@@ -449,7 +438,7 @@ const struct language_defn m2_language_defn =
/* Initialization for Modula-2 */
void
-_initialize_m2_language ()
+_initialize_m2_language (void)
{
/* Modula-2 "pervasive" types. NOTE: these can be redefined!!! */
builtin_type_m2_int =
diff --git a/gdb/m2-typeprint.c b/gdb/m2-typeprint.c
index ee7e836..3278bd0 100644
--- a/gdb/m2-typeprint.c
+++ b/gdb/m2-typeprint.c
@@ -37,12 +37,8 @@
#include <errno.h>
void
-m2_print_type (type, varstring, stream, show, level)
- struct type *type;
- char *varstring;
- struct ui_file *stream;
- int show;
- int level;
+m2_print_type (struct type *type, char *varstring, struct ui_file *stream,
+ int show, int level)
{
extern void c_print_type (struct type *, char *, struct ui_file *, int,
int);
diff --git a/gdb/m2-valprint.c b/gdb/m2-valprint.c
index 903d96b..a59bed3 100644
--- a/gdb/m2-valprint.c
+++ b/gdb/m2-valprint.c
@@ -28,17 +28,9 @@
/* FIXME: For now, just explicitly declare c_val_print and use it instead */
int
-m2_val_print (type, valaddr, embedded_offset, address,
- stream, format, deref_ref, recurse, pretty)
- struct type *type;
- char *valaddr;
- int embedded_offset;
- CORE_ADDR address;
- struct ui_file *stream;
- int format;
- int deref_ref;
- int recurse;
- enum val_prettyprint pretty;
+m2_val_print (struct type *type, char *valaddr, int embedded_offset,
+ CORE_ADDR address, struct ui_file *stream, int format,
+ int deref_ref, int recurse, enum val_prettyprint pretty)
{
extern int c_val_print (struct type *, char *, int, CORE_ADDR,
struct ui_file *, int, int, int,
diff --git a/gdb/m3-nat.c b/gdb/m3-nat.c
index c6b9679..50f7b71 100644
--- a/gdb/m3-nat.c
+++ b/gdb/m3-nat.c
@@ -207,9 +207,7 @@ int debug_level = 0;
/* "Temporary" debug stuff */
void
-xx_debug (fmt, a, b, c)
- char *fmt;
- int a, b, c;
+xx_debug (char *fmt, int a, int b, int c)
{
if (debug_level)
warning (fmt, a, b, c);
@@ -318,10 +316,7 @@ struct obstack *cproc_obstack = &Cproc_obstack;
port_chain_t notify_chain = (port_chain_t) NULL;
port_chain_t
-port_chain_insert (list, name, type)
- port_chain_t list;
- mach_port_t name;
- int type;
+port_chain_insert (port_chain_t list, mach_port_t name, int type)
{
kern_return_t ret;
port_chain_t new;
@@ -363,9 +358,7 @@ port_chain_insert (list, name, type)
}
port_chain_t
-port_chain_delete (list, elem)
- port_chain_t list;
- mach_port_t elem;
+port_chain_delete (port_chain_t list, mach_port_t elem)
{
if (list)
if (list->port == elem)
@@ -382,17 +375,14 @@ port_chain_delete (list, elem)
}
void
-port_chain_destroy (ostack)
- struct obstack *ostack;
+port_chain_destroy (struct obstack *ostack)
{
obstack_free (ostack, 0);
obstack_init (ostack);
}
port_chain_t
-port_chain_member (list, elem)
- port_chain_t list;
- mach_port_t elem;
+port_chain_member (port_chain_t list, mach_port_t elem)
{
while (list)
{
@@ -404,9 +394,7 @@ port_chain_member (list, elem)
}
int
-map_port_name_to_mid (name, type)
- mach_port_t name;
- int type;
+map_port_name_to_mid (mach_port_t name, int type)
{
port_chain_t elem;
@@ -445,8 +433,7 @@ map_port_name_to_mid (name, type)
/* Guard for currently_waiting_for and singlestepped_thread_port */
static void
-discard_single_step (thread)
- thread_t thread;
+discard_single_step (thread_t thread)
{
currently_waiting_for = inferior_wait_port_set;
@@ -455,9 +442,7 @@ discard_single_step (thread)
setup_single_step (thread, FALSE);
}
-setup_single_step (thread, start_step)
- thread_t thread;
- boolean_t start_step;
+setup_single_step (thread_t thread, boolean_t start_step)
{
kern_return_t ret;
@@ -545,10 +530,7 @@ setup_single_step (thread, start_step)
}
static
-request_notify (name, variant, type)
- mach_port_t name;
- mach_msg_id_t variant;
- int type;
+request_notify (mach_port_t name, mach_msg_id_t variant, int type)
{
kern_return_t ret;
mach_port_t previous_port_dummy = MACH_PORT_NULL;
@@ -574,9 +556,7 @@ request_notify (name, variant, type)
notify_chain = port_chain_insert (notify_chain, name, type);
}
-reverse_msg_bits (msgp, type)
- mach_msg_header_t *msgp;
- int type;
+reverse_msg_bits (mach_msg_header_t *msgp, int type)
{
int rbits, lbits;
rbits = MACH_MSGH_BITS_REMOTE (msgp->msgh_bits);
@@ -612,7 +592,7 @@ mach_port_t original_server_port_name = MACH_PORT_NULL;
/* Called from inferior after FORK but before EXEC */
static void
-m3_trace_me ()
+m3_trace_me (void)
{
kern_return_t ret;
@@ -643,8 +623,7 @@ m3_trace_me ()
*/
void
-intercept_exec_calls (exec_counter)
- int exec_counter;
+intercept_exec_calls (int exec_counter)
{
int terminal_initted = 0;
@@ -878,9 +857,7 @@ intercept_exec_calls (exec_counter)
}
void
-consume_send_rights (thread_list, thread_count)
- thread_array_t thread_list;
- int thread_count;
+consume_send_rights (thread_array_t thread_list, int thread_count)
{
int index;
@@ -896,9 +873,7 @@ consume_send_rights (thread_list, thread_count)
}
/* suspend/abort/resume a thread. */
-setup_thread (thread, what)
- mach_port_t thread;
- int what;
+setup_thread (mach_port_t thread, int what)
{
kern_return_t ret;
@@ -918,10 +893,7 @@ setup_thread (thread, what)
}
int
-map_slot_to_mid (slot, threads, thread_count)
- int slot;
- thread_array_t threads;
- int thread_count;
+map_slot_to_mid (int slot, thread_array_t threads, int thread_count)
{
kern_return_t ret;
int deallocate = 0;
@@ -962,10 +934,7 @@ map_slot_to_mid (slot, threads, thread_count)
}
static int
-parse_thread_id (arg, thread_count, slots)
- char *arg;
- int thread_count;
- int slots;
+parse_thread_id (char *arg, int thread_count, int slots)
{
kern_return_t ret;
int mid;
@@ -1025,10 +994,7 @@ parse_thread_id (arg, thread_count, slots)
*
*/
kern_return_t
-select_thread (task, thread_id, flag)
- mach_port_t task;
- int thread_id;
- int flag;
+select_thread (mach_port_t task, int thread_id, int flag)
{
thread_array_t thread_list;
int thread_count;
@@ -1144,8 +1110,7 @@ select_thread (task, thread_id, flag)
* Return it's MID
*/
int
-switch_to_thread (new_thread)
- thread_t new_thread;
+switch_to_thread (thread_t new_thread)
{
thread_t saved_thread = current_thread;
int mid;
@@ -1168,8 +1133,7 @@ switch_to_thread (new_thread)
* Note that the registers are not yet valid in the inferior task.
*/
static int
-m3_trace_him (pid)
- int pid;
+m3_trace_him (int pid)
{
kern_return_t ret;
@@ -1206,7 +1170,7 @@ m3_trace_him (pid)
return pid;
}
-setup_exception_port ()
+setup_exception_port (void)
{
kern_return_t ret;
@@ -1269,9 +1233,7 @@ int mach_really_waiting;
Returns the inferior_pid for rest of gdb.
Side effects: Set *OURSTATUS. */
int
-mach_really_wait (pid, ourstatus)
- int pid;
- struct target_waitstatus *ourstatus;
+mach_really_wait (int pid, struct target_waitstatus *ourstatus)
{
kern_return_t ret;
int w;
@@ -1391,7 +1353,7 @@ mach_really_wait (pid, ourstatus)
* This is called just before calling error() to return to command level
*/
void
-mach3_quit ()
+mach3_quit (void)
{
int mid;
kern_return_t ret;
@@ -1435,7 +1397,7 @@ mach3_quit ()
* Called by REQUEST_QUIT() from utils.c(request_quit)
*/
void
-mach3_request_quit ()
+mach3_request_quit (void)
{
if (mach_really_waiting)
immediate_quit = 1;
@@ -1448,8 +1410,7 @@ mach3_request_quit ()
* gdb to return to the command level like ^C had been typed from terminal.
*/
int
-gdb_message_server (InP)
- mach_msg_header_t *InP;
+gdb_message_server (mach_msg_header_t *InP)
{
kern_return_t ret;
int mid;
@@ -1496,7 +1457,7 @@ gdb_message_server (InP)
* External program "stop-gdb" implements this also.
*/
void
-stop_inferior_gdb ()
+stop_inferior_gdb (void)
{
kern_return_t ret;
@@ -1541,8 +1502,7 @@ stop_inferior_gdb ()
* it is selected and the last exception was a breakpoint.
*/
int
-mach_thread_for_breakpoint (mid)
- int mid;
+mach_thread_for_breakpoint (int mid)
{
int cmid = map_port_name_to_mid (current_thread, MACH_TYPE_THREAD);
@@ -1576,8 +1536,7 @@ mach_thread_for_breakpoint (mid)
* slot index. (Since 0 is reserved))
*/
int
-mach_thread_parse_id (arg)
- char *arg;
+mach_thread_parse_id (char *arg)
{
int mid;
if (arg == 0)
@@ -1590,8 +1549,7 @@ mach_thread_parse_id (arg)
#ifdef THREAD_OUTPUT_ID
char *
-mach_thread_output_id (mid)
- int mid;
+mach_thread_output_id (int mid)
{
static char foobar[20];
@@ -1615,8 +1573,7 @@ mach_thread_output_id (mid)
*
*/
-mach3_prepare_to_proceed (select_it)
- int select_it;
+mach3_prepare_to_proceed (int select_it)
{
if (stop_thread &&
stop_thread != current_thread &&
@@ -1653,11 +1610,8 @@ mach3_prepare_to_proceed (select_it)
*/
kern_return_t
-catch_exception_raise (port, thread, task, exception, code, subcode)
- mach_port_t port;
- thread_t thread;
- task_t task;
- int exception, code, subcode;
+catch_exception_raise (mach_port_t port, thread_t thread, task_t task,
+ int exception, int code, int subcode)
{
kern_return_t ret;
boolean_t signal_thread;
@@ -1797,9 +1751,7 @@ catch_exception_raise (port, thread, task, exception, code, subcode)
}
int
-port_valid (port, mask)
- mach_port_t port;
- int mask;
+port_valid (mach_port_t port, int mask)
{
kern_return_t ret;
mach_port_type_t type;
@@ -1822,10 +1774,7 @@ boolean_t vm_read_cache_valid = FALSE;
* Return 0 on failure; number of bytes read otherwise.
*/
int
-mach3_read_inferior (addr, myaddr, length)
- CORE_ADDR addr;
- char *myaddr;
- int length;
+mach3_read_inferior (CORE_ADDR addr, char *myaddr, int length)
{
kern_return_t ret;
vm_address_t low_address = (vm_address_t) trunc_page (addr);
@@ -1903,10 +1852,7 @@ struct obstack region_obstack;
* in gdb's address space.
*/
int
-mach3_write_inferior (addr, myaddr, length)
- CORE_ADDR addr;
- char *myaddr;
- int length;
+mach3_write_inferior (CORE_ADDR addr, char *myaddr, int length)
{
kern_return_t ret;
vm_address_t low_address = (vm_address_t) trunc_page (addr);
@@ -2085,8 +2031,7 @@ m3_xfer_memory (memaddr, myaddr, len, write, target)
static char *
-translate_state (state)
- int state;
+translate_state (int state)
{
switch (state)
{
@@ -2106,8 +2051,7 @@ translate_state (state)
}
static char *
-translate_cstate (state)
- int state;
+translate_cstate (int state)
{
switch (state)
{
@@ -2129,9 +2073,7 @@ translate_cstate (state)
/* type == MACH_MSG_TYPE_COPY_SEND || type == MACH_MSG_TYPE_MAKE_SEND */
mach_port_t /* no mach_port_name_t found in include files. */
-map_inferior_port_name (inferior_name, type)
- mach_port_t inferior_name;
- mach_msg_type_name_t type;
+map_inferior_port_name (mach_port_t inferior_name, mach_msg_type_name_t type)
{
kern_return_t ret;
mach_msg_type_name_t acquired;
@@ -2169,9 +2111,7 @@ map_inferior_port_name (inferior_name, type)
static char buf[7];
static char *
-get_thread_name (one_cproc, id)
- gdb_thread_t one_cproc;
- int id;
+get_thread_name (gdb_thread_t one_cproc, int id)
{
if (one_cproc)
if (one_cproc->cthread == NULL)
@@ -2274,8 +2214,7 @@ fetch_thread_info (task, mthreads_out)
* emulator stack below struct emul_stack_top stuff.
*/
CORE_ADDR
-fetch_usp_from_emulator_stack (sp)
- CORE_ADDR sp;
+fetch_usp_from_emulator_stack (CORE_ADDR sp)
{
CORE_ADDR stack_pointer;
@@ -2303,8 +2242,7 @@ fetch_usp_from_emulator_stack (sp)
/* Check if the emulator exists at task's address space.
*/
boolean_t
-have_emulator_p (task)
- task_t task;
+have_emulator_p (task_t task)
{
kern_return_t ret;
#ifndef EMUL_VECTOR_COUNT
@@ -2352,10 +2290,8 @@ have_emulator_p (task)
/* Map cprocs to kernel threads and vice versa. */
void
-map_cprocs_to_kernel_threads (cprocs, mthreads, thread_count)
- gdb_thread_t cprocs;
- gdb_thread_t mthreads;
- int thread_count;
+map_cprocs_to_kernel_threads (gdb_thread_t cprocs, gdb_thread_t mthreads,
+ int thread_count)
{
int index;
gdb_thread_t scan;
@@ -2471,9 +2407,7 @@ map_cprocs_to_kernel_threads (cprocs, mthreads, thread_count)
#define TL_HEADER "\n@ MID Name KState CState Where\n"
void
-print_tl_address (stream, pc)
- struct ui_file *stream;
- CORE_ADDR pc;
+print_tl_address (struct ui_file *stream, CORE_ADDR pc)
{
if (!lookup_minimal_symbol_by_pc (pc))
fprintf_filtered (stream, local_hex_format (), pc);
@@ -2494,8 +2428,7 @@ print_tl_address (stream, pc)
/* Returns the address of variable NAME or 0 if not found */
CORE_ADDR
-lookup_address_of_variable (name)
- char *name;
+lookup_address_of_variable (char *name)
{
struct symbol *sym;
CORE_ADDR symaddr = 0;
@@ -2522,7 +2455,7 @@ lookup_address_of_variable (name)
}
static gdb_thread_t
-get_cprocs ()
+get_cprocs (void)
{
gdb_thread_t cproc_head;
gdb_thread_t cproc_copy;
@@ -2636,8 +2569,7 @@ get_cprocs ()
#define FETCH_CPROC_STATE(mth) mach3_cproc_state (mth)
int
-mach3_cproc_state (mthread)
- gdb_thread_t mthread;
+mach3_cproc_state (gdb_thread_t mthread)
{
int context;
@@ -2674,7 +2606,7 @@ mach3_cproc_state (mthread)
void
-thread_list_command ()
+thread_list_command (void)
{
thread_basic_info_data_t ths;
int thread_count;
@@ -2893,9 +2825,7 @@ thread_list_command ()
}
void
-thread_select_command (args, from_tty)
- char *args;
- int from_tty;
+thread_select_command (char *args, int from_tty)
{
int mid;
thread_array_t thread_list;
@@ -2932,9 +2862,7 @@ thread_select_command (args, from_tty)
MACH_TYPE_THREAD) : mid);
}
-thread_trace (thread, set)
- mach_port_t thread;
- boolean_t set;
+thread_trace (mach_port_t thread, boolean_t set)
{
int flavor = TRACE_FLAVOR;
unsigned int stateCnt = TRACE_FLAVOR_SIZE;
@@ -2980,8 +2908,7 @@ thread_trace (thread, set)
This definitely includes breakpoints, for instance, or else we
end up looping in mysterious Bpt traps */
-flush_inferior_icache (pc, amount)
- CORE_ADDR pc;
+flush_inferior_icache (CORE_ADDR pc, int amount)
{
vm_machine_attribute_val_t flush = MATTR_VAL_ICACHE_FLUSH;
kern_return_t ret;
@@ -2999,8 +2926,7 @@ flush_inferior_icache (pc, amount)
static
-suspend_all_threads (from_tty)
- int from_tty;
+suspend_all_threads (int from_tty)
{
kern_return_t ret;
thread_array_t thread_list;
@@ -3052,9 +2978,7 @@ suspend_all_threads (from_tty)
}
void
-thread_suspend_command (args, from_tty)
- char *args;
- int from_tty;
+thread_suspend_command (char *args, int from_tty)
{
kern_return_t ret;
int mid;
@@ -3103,8 +3027,7 @@ thread_suspend_command (args, from_tty)
current_thread = saved_thread;
}
-resume_all_threads (from_tty)
- int from_tty;
+resume_all_threads (int from_tty)
{
kern_return_t ret;
thread_array_t thread_list;
@@ -3157,9 +3080,7 @@ resume_all_threads (from_tty)
}
void
-thread_resume_command (args, from_tty)
- char *args;
- int from_tty;
+thread_resume_command (char *args, int from_tty)
{
int mid;
mach_port_t saved_thread;
@@ -3218,9 +3139,7 @@ out:
}
void
-thread_kill_command (args, from_tty)
- char *args;
- int from_tty;
+thread_kill_command (char *args, int from_tty)
{
int mid;
kern_return_t ret;
@@ -3282,9 +3201,7 @@ thread_kill_command (args, from_tty)
/* Task specific commands; add more if you like */
void
-task_resume_command (args, from_tty)
- char *args;
- int from_tty;
+task_resume_command (char *args, int from_tty)
{
kern_return_t ret;
task_basic_info_data_t ta_info;
@@ -3328,9 +3245,7 @@ task_resume_command (args, from_tty)
void
-task_suspend_command (args, from_tty)
- char *args;
- int from_tty;
+task_suspend_command (char *args, int from_tty)
{
kern_return_t ret;
task_basic_info_data_t ta_info;
@@ -3359,8 +3274,7 @@ task_suspend_command (args, from_tty)
}
static char *
-get_size (bytes)
- int bytes;
+get_size (int bytes)
{
static char size[30];
int zz = bytes / 1024;
@@ -3375,9 +3289,7 @@ get_size (bytes)
/* Does this require the target task to be suspended?? I don't think so. */
void
-task_info_command (args, from_tty)
- char *args;
- int from_tty;
+task_info_command (char *args, int from_tty)
{
int mid = -5;
mach_port_t task;
@@ -3454,9 +3366,7 @@ task_info_command (args, from_tty)
*/
static void
-exception_command (args, from_tty)
- char *args;
- int from_tty;
+exception_command (char *args, int from_tty)
{
char *scan = args;
int exception;
@@ -3505,8 +3415,7 @@ exception_command (args, from_tty)
}
static void
-print_exception_info (exception)
- int exception;
+print_exception_info (int exception)
{
boolean_t forward = exception_map[exception].forward;
@@ -3524,9 +3433,7 @@ print_exception_info (exception)
}
void
-exception_info (args, from_tty)
- char *args;
- int from_tty;
+exception_info (char *args, int from_tty)
{
int exception;
@@ -3546,10 +3453,7 @@ exception_info (args, from_tty)
/* Check for actions for mach exceptions.
*/
-mach3_exception_actions (w, force_print_only, who)
- WAITTYPE *w;
- boolean_t force_print_only;
- char *who;
+mach3_exception_actions (WAITTYPE *w, boolean_t force_print_only, char *who)
{
boolean_t force_print = FALSE;
@@ -3603,8 +3507,7 @@ mach3_exception_actions (w, force_print_only, who)
}
}
-setup_notify_port (create_new)
- int create_new;
+setup_notify_port (int create_new)
{
kern_return_t ret;
@@ -3649,9 +3552,7 @@ setup_notify_port (create_new)
char registered_name[MAX_NAME_LEN];
void
-message_port_info (args, from_tty)
- char *args;
- int from_tty;
+message_port_info (char *args, int from_tty)
{
if (registered_name[0])
printf_filtered ("gdb's message port name: '%s'\n",
@@ -3661,9 +3562,7 @@ message_port_info (args, from_tty)
}
void
-gdb_register_port (name, port)
- char *name;
- mach_port_t port;
+gdb_register_port (char *name, mach_port_t port)
{
kern_return_t ret;
static int already_signed = 0;
@@ -3715,9 +3614,7 @@ struct cmd_list_element *cmd_task_list;
/*ARGSUSED */
static void
-thread_command (arg, from_tty)
- char *arg;
- int from_tty;
+thread_command (char *arg, int from_tty)
{
printf_unfiltered ("\"thread\" must be followed by the name of a thread command.\n");
help_list (cmd_thread_list, "thread ", -1, gdb_stdout);
@@ -3725,15 +3622,13 @@ thread_command (arg, from_tty)
/*ARGSUSED */
static void
-task_command (arg, from_tty)
- char *arg;
- int from_tty;
+task_command (char *arg, int from_tty)
{
printf_unfiltered ("\"task\" must be followed by the name of a task command.\n");
help_list (cmd_task_list, "task ", -1, gdb_stdout);
}
-add_mach_specific_commands ()
+add_mach_specific_commands (void)
{
/* Thread handling commands */
@@ -3814,9 +3709,7 @@ Normally \"keep\" is used to return to GDB on exception.");
}
kern_return_t
-do_mach_notify_dead_name (notify, name)
- mach_port_t notify;
- mach_port_t name;
+do_mach_notify_dead_name (mach_port_t notify, mach_port_t name)
{
kern_return_t kr = KERN_SUCCESS;
@@ -3875,9 +3768,7 @@ do_mach_notify_dead_name (notify, name)
}
kern_return_t
-do_mach_notify_msg_accepted (notify, name)
- mach_port_t notify;
- mach_port_t name;
+do_mach_notify_msg_accepted (mach_port_t notify, mach_port_t name)
{
warning ("do_mach_notify_msg_accepted : notify %x, name %x",
notify, name);
@@ -3885,9 +3776,7 @@ do_mach_notify_msg_accepted (notify, name)
}
kern_return_t
-do_mach_notify_no_senders (notify, mscount)
- mach_port_t notify;
- mach_port_mscount_t mscount;
+do_mach_notify_no_senders (mach_port_t notify, mach_port_mscount_t mscount)
{
warning ("do_mach_notify_no_senders : notify %x, mscount %x",
notify, mscount);
@@ -3895,9 +3784,7 @@ do_mach_notify_no_senders (notify, mscount)
}
kern_return_t
-do_mach_notify_port_deleted (notify, name)
- mach_port_t notify;
- mach_port_t name;
+do_mach_notify_port_deleted (mach_port_t notify, mach_port_t name)
{
warning ("do_mach_notify_port_deleted : notify %x, name %x",
notify, name);
@@ -3905,9 +3792,7 @@ do_mach_notify_port_deleted (notify, name)
}
kern_return_t
-do_mach_notify_port_destroyed (notify, rights)
- mach_port_t notify;
- mach_port_t rights;
+do_mach_notify_port_destroyed (mach_port_t notify, mach_port_t rights)
{
warning ("do_mach_notify_port_destroyed : notify %x, rights %x",
notify, rights);
@@ -3915,8 +3800,7 @@ do_mach_notify_port_destroyed (notify, rights)
}
kern_return_t
-do_mach_notify_send_once (notify)
- mach_port_t notify;
+do_mach_notify_send_once (mach_port_t notify)
{
#ifdef DUMP_SYSCALL
/* MANY of these are generated. */
@@ -3928,7 +3812,7 @@ do_mach_notify_send_once (notify)
/* Kills the inferior. It's gone when you call this */
static void
-kill_inferior_fast ()
+kill_inferior_fast (void)
{
WAITTYPE w;
@@ -3953,7 +3837,7 @@ kill_inferior_fast ()
}
static void
-m3_kill_inferior ()
+m3_kill_inferior (void)
{
kill_inferior_fast ();
target_mourn_inferior ();
@@ -3962,7 +3846,7 @@ m3_kill_inferior ()
/* Clean up after the inferior dies. */
static void
-m3_mourn_inferior ()
+m3_mourn_inferior (void)
{
unpush_target (&m3_ops);
generic_mourn_inferior ();
@@ -3972,10 +3856,7 @@ m3_mourn_inferior ()
/* Fork an inferior process, and start debugging it. */
static void
-m3_create_inferior (exec_file, allargs, env)
- char *exec_file;
- char *allargs;
- char **env;
+m3_create_inferior (char *exec_file, char *allargs, char **env)
{
fork_inferior (exec_file, allargs, env, m3_trace_me, m3_trace_him, NULL, NULL);
/* We are at the first instruction we care about. */
@@ -3986,7 +3867,7 @@ m3_create_inferior (exec_file, allargs, env)
/* Mark our target-struct as eligible for stray "run" and "attach"
commands. */
static int
-m3_can_run ()
+m3_can_run (void)
{
return 1;
}
@@ -3994,8 +3875,7 @@ m3_can_run ()
/* Mach 3.0 does not need ptrace for anything
* Make sure nobody uses it on mach.
*/
-ptrace (a, b, c, d)
- int a, b, c, d;
+ptrace (int a, int b, int c, int d)
{
error ("Lose, Lose! Somebody called ptrace\n");
}
@@ -4005,10 +3885,7 @@ ptrace (a, b, c, d)
If SIGNAL is nonzero, give it that signal. */
void
-m3_resume (pid, step, signal)
- int pid;
- int step;
- enum target_signal signal;
+m3_resume (int pid, int step, enum target_signal signal)
{
kern_return_t ret;
@@ -4066,8 +3943,7 @@ m3_resume (pid, step, signal)
/* Start debugging the process with the given task */
void
-task_attach (tid)
- task_t tid;
+task_attach (task_t tid)
{
kern_return_t ret;
inferior_task = tid;
@@ -4097,14 +3973,13 @@ task_attach (tid)
* (Someone must have killed it))
*/
void
-attach_to_thread ()
+attach_to_thread (void)
{
if (select_thread (inferior_task, 0, 1) != KERN_SUCCESS)
error ("Could not select any threads to attach to");
}
-mid_attach (mid)
- int mid;
+mid_attach (int mid)
{
kern_return_t ret;
@@ -4125,8 +4000,7 @@ mid_attach (mid)
* "atta pidself". Anyway, the latter is allowed by specifying a MID.
*/
static int
-m3_do_attach (pid)
- int pid;
+m3_do_attach (int pid)
{
kern_return_t ret;
@@ -4162,9 +4036,7 @@ m3_do_attach (pid)
and wait for the trace-trap that results from attaching. */
static void
-m3_attach (args, from_tty)
- char *args;
- int from_tty;
+m3_attach (char *args, int from_tty)
{
char *exec_file;
int pid;
@@ -4195,7 +4067,7 @@ m3_attach (args, from_tty)
}
void
-deallocate_inferior_ports ()
+deallocate_inferior_ports (void)
{
kern_return_t ret;
thread_array_t thread_list;
@@ -4251,8 +4123,7 @@ deallocate_inferior_ports ()
SIGNAL = 0 means just continue it. */
static void
-m3_do_detach (signal)
- int signal;
+m3_do_detach (int signal)
{
kern_return_t ret;
@@ -4299,9 +4170,7 @@ m3_do_detach (signal)
started via fork. */
static void
-m3_detach (args, from_tty)
- char *args;
- int from_tty;
+m3_detach (char *args, int from_tty)
{
int siggnal = 0;
@@ -4330,7 +4199,7 @@ m3_detach (args, from_tty)
debugged. */
static void
-m3_prepare_to_store ()
+m3_prepare_to_store (void)
{
#ifdef CHILD_PREPARE_TO_STORE
CHILD_PREPARE_TO_STORE ();
@@ -4340,8 +4209,7 @@ m3_prepare_to_store ()
/* Print status information about what we're accessing. */
static void
-m3_files_info (ignore)
- struct target_ops *ignore;
+m3_files_info (struct target_ops *ignore)
{
/* FIXME: should print MID and all that crap. */
printf_unfiltered ("\tUsing the running image of %s %s.\n",
@@ -4349,9 +4217,7 @@ m3_files_info (ignore)
}
static void
-m3_open (arg, from_tty)
- char *arg;
- int from_tty;
+m3_open (char *arg, int from_tty)
{
error ("Use the \"run\" command to start a Unix child process.");
}
@@ -4435,11 +4301,7 @@ char *bsd1_names[] =
int bsd1_nnames = sizeof (bsd1_names) / sizeof (bsd1_names[0]);
char *
-name_str (name, buf)
-
- int name;
- char *buf;
-
+name_str (int name, char *buf)
{
switch (name)
{
@@ -4464,11 +4326,7 @@ name_str (name, buf)
}
char *
-id_str (id, buf)
-
- int id;
- char *buf;
-
+id_str (int id, char *buf)
{
char *p;
if (id >= 101000 && id < 101000 + bsd1_nnames)
@@ -4484,8 +4342,7 @@ id_str (id, buf)
return buf;
}
-print_msg (mp)
- mach_msg_header_t *mp;
+print_msg (mach_msg_header_t *mp)
{
char *fmt_x = "%20s : 0x%08x\n";
char *fmt_d = "%20s : %10d\n";
@@ -4550,10 +4407,7 @@ print_msg (mp)
}
}
-print_data (p, size, number)
-
- char *p;
-
+print_data (char *p, int size, int number)
{
int *ip;
short *sp;
@@ -4587,21 +4441,20 @@ print_data (p, size, number)
#endif /* DUMP_SYSCALL */
static void
-m3_stop ()
+m3_stop (void)
{
error ("to_stop target function not implemented");
}
static char *
-m3_pid_to_exec_file (pid)
- int pid;
+m3_pid_to_exec_file (int pid)
{
error ("to_pid_to_exec_file target function not implemented");
return NULL; /* To keep all compilers happy. */
}
static void
-init_m3_ops ()
+init_m3_ops (void)
{
m3_ops.to_shortname = "mach";
m3_ops.to_longname = "Mach child process";
@@ -4639,7 +4492,7 @@ init_m3_ops ()
}
void
-_initialize_m3_nat ()
+_initialize_m3_nat (void)
{
kern_return_t ret;
diff --git a/gdb/m32r-rom.c b/gdb/m32r-rom.c
index b975ace..d6b1e5c 100644
--- a/gdb/m32r-rom.c
+++ b/gdb/m32r-rom.c
@@ -62,10 +62,7 @@ static char *download_path; /* user-settable path for SREC files */
*/
static void
-m32r_load_section (abfd, s, data_count)
- bfd *abfd;
- asection *s;
- unsigned int *data_count;
+m32r_load_section (bfd *abfd, asection *s, unsigned int *data_count)
{
if (s->flags & SEC_LOAD)
{
@@ -95,8 +92,7 @@ m32r_load_section (abfd, s, data_count)
}
static int
-m32r_load_1 (dummy)
- void *dummy;
+m32r_load_1 (void *dummy)
{
int data_count = 0;
@@ -109,9 +105,7 @@ m32r_load_1 (dummy)
*/
static void
-m32r_load (filename, from_tty)
- char *filename;
- int from_tty;
+m32r_load (char *filename, int from_tty)
{
extern int inferior_pid;
bfd *abfd;
@@ -182,9 +176,7 @@ m32r_load (filename, from_tty)
}
static void
-m32r_load_gen (filename, from_tty)
- char *filename;
- int from_tty;
+m32r_load_gen (char *filename, int from_tty)
{
generic_load (filename, from_tty);
}
@@ -204,11 +196,7 @@ static char *m32r_regnames[] =
};
static void
-m32r_supply_register (regname, regnamelen, val, vallen)
- char *regname;
- int regnamelen;
- char *val;
- int vallen;
+m32r_supply_register (char *regname, int regnamelen, char *val, int vallen)
{
int regno;
int num_regs = sizeof (m32r_regnames) / sizeof (m32r_regnames[0]);
@@ -337,9 +325,7 @@ init_m32r_cmds (void)
} /* init_m32r_cmds */
static void
-m32r_open (args, from_tty)
- char *args;
- int from_tty;
+m32r_open (char *args, int from_tty)
{
monitor_open (args, &m32r_cmds, from_tty);
}
@@ -399,9 +385,7 @@ init_mon2000_cmds (void)
} /* init_mon2000_cmds */
static void
-mon2000_open (args, from_tty)
- char *args;
- int from_tty;
+mon2000_open (char *args, int from_tty)
{
monitor_open (args, &mon2000_cmds, from_tty);
}
@@ -412,9 +396,7 @@ mon2000_open (args, from_tty)
Tell the BootOne monitor what it's ethernet IP address is. */
static void
-m32r_set_board_address (args, from_tty)
- char *args;
- int from_tty;
+m32r_set_board_address (char *args, int from_tty)
{
int resp_len;
char buf[1024];
@@ -433,9 +415,7 @@ m32r_set_board_address (args, from_tty)
Tell the BootOne monitor what gdb's ethernet IP address is. */
static void
-m32r_set_server_address (args, from_tty)
- char *args;
- int from_tty;
+m32r_set_server_address (char *args, int from_tty)
{
int resp_len;
char buf[1024];
@@ -454,9 +434,7 @@ m32r_set_server_address (args, from_tty)
Tell the BootOne monitor the default path for downloadable SREC files. */
static void
-m32r_set_download_path (args, from_tty)
- char *args;
- int from_tty;
+m32r_set_download_path (char *args, int from_tty)
{
int resp_len;
char buf[1024];
@@ -472,9 +450,7 @@ m32r_set_download_path (args, from_tty)
}
static void
-m32r_upload_command (args, from_tty)
- char *args;
- int from_tty;
+m32r_upload_command (char *args, int from_tty)
{
bfd *abfd;
asection *s;
@@ -601,7 +577,7 @@ m32r_upload_command (args, from_tty)
#endif /* ! _MSC_VER */
void
-_initialize_m32r_rom ()
+_initialize_m32r_rom (void)
{
/* Initialize m32r RevC monitor target */
init_m32r_cmds ();
diff --git a/gdb/m32r-stub.c b/gdb/m32r-stub.c
index 9fdf496..cb95626 100644
--- a/gdb/m32r-stub.c
+++ b/gdb/m32r-stub.c
@@ -535,10 +535,7 @@ handle_exception(int exceptionVector)
static unsigned long crc32_table[256] = {0, 0};
static unsigned long
-crc32 (buf, len, crc)
- unsigned char *buf;
- int len;
- unsigned long crc;
+crc32 (unsigned char *buf, int len, unsigned long crc)
{
if (! crc32_table[1])
{
@@ -563,8 +560,7 @@ crc32 (buf, len, crc)
}
static int
-hex(ch)
- unsigned char ch;
+hex (unsigned char ch)
{
if ((ch >= 'a') && (ch <= 'f')) return (ch-'a'+10);
if ((ch >= '0') && (ch <= '9')) return (ch-'0');
@@ -575,7 +571,7 @@ hex(ch)
/* scan for the sequence $<data>#<checksum> */
unsigned char *
-getpacket ()
+getpacket (void)
{
unsigned char *buffer = &remcomInBuffer[0];
unsigned char checksum;
@@ -651,8 +647,7 @@ retry:
/* send the packet in buffer. */
static void
-putpacket(buffer)
- unsigned char *buffer;
+putpacket (unsigned char *buffer)
{
unsigned char checksum;
int count;
@@ -680,7 +675,7 @@ putpacket(buffer)
static void (*volatile mem_fault_routine)() = 0;
static void
-set_mem_err ()
+set_mem_err (void)
{
mem_err = 1;
}
@@ -691,8 +686,7 @@ set_mem_err ()
whether there's anything connected to the expansion bus. */
static int
-mem_safe (addr)
- unsigned char *addr;
+mem_safe (unsigned char *addr)
{
#define BAD_RANGE_ONE_START ((unsigned char *) 0x600000)
#define BAD_RANGE_ONE_END ((unsigned char *) 0xa00000)
@@ -710,8 +704,7 @@ mem_safe (addr)
to mem_fault, they won't get restored, so there better not be any
saved). */
static int
-get_char (addr)
- unsigned char *addr;
+get_char (unsigned char *addr)
{
#if 1
if (mem_fault_routine && !mem_safe(addr))
@@ -724,9 +717,7 @@ get_char (addr)
}
static void
-set_char (addr, val)
- unsigned char *addr;
- unsigned char val;
+set_char (unsigned char *addr, unsigned char val)
{
#if 1
if (mem_fault_routine && !mem_safe (addr))
@@ -744,11 +735,7 @@ set_char (addr, val)
a fault; if zero treat a fault like any other fault in the stub. */
static unsigned char *
-mem2hex(mem, buf, count, may_fault)
- unsigned char* mem;
- unsigned char* buf;
- int count;
- int may_fault;
+mem2hex (unsigned char *mem, unsigned char *buf, int count, int may_fault)
{
int i;
unsigned char ch;
@@ -772,11 +759,7 @@ mem2hex(mem, buf, count, may_fault)
Return a pointer to the character AFTER the last byte written. */
static unsigned char*
-hex2mem(buf, mem, count, may_fault)
- unsigned char* buf;
- unsigned char* mem;
- int count;
- int may_fault;
+hex2mem (unsigned char *buf, unsigned char *mem, int count, int may_fault)
{
int i;
unsigned char ch;
@@ -801,11 +784,7 @@ hex2mem(buf, mem, count, may_fault)
COUNT is the total number of bytes to write into
memory. */
static unsigned char *
-bin2mem (buf, mem, count, may_fault)
- unsigned char *buf;
- unsigned char *mem;
- int count;
- int may_fault;
+bin2mem (unsigned char *buf, unsigned char *mem, int count, int may_fault)
{
int i;
unsigned char ch;
@@ -847,8 +826,7 @@ bin2mem (buf, mem, count, may_fault)
translate this number into a unix compatible signal value */
static int
-computeSignal(exceptionVector)
- int exceptionVector;
+computeSignal (int exceptionVector)
{
int sigval;
switch (exceptionVector) {
@@ -880,9 +858,7 @@ computeSignal(exceptionVector)
/* RETURN NUMBER OF CHARS PROCESSED */
/**********************************************/
static int
-hexToInt(ptr, intValue)
- unsigned char **ptr;
- int *intValue;
+hexToInt (unsigned char **ptr, int *intValue)
{
int numChars = 0;
int hexValue;
@@ -928,8 +904,7 @@ hexToInt(ptr, intValue)
*/
static int
-isShortBranch(instr)
- unsigned char *instr;
+isShortBranch (unsigned char *instr)
{
unsigned char instr0 = instr[0] & 0x7F; /* mask off high bit */
@@ -948,8 +923,7 @@ isShortBranch(instr)
}
static int
-isLongBranch(instr)
- unsigned char *instr;
+isLongBranch (unsigned char *instr)
{
if (instr[0] == 0xFC || instr[0] == 0xFD || /* BRA, BNC, BL, BC */
instr[0] == 0xFE || instr[0] == 0xFF) /* 24 bit relative */
@@ -975,8 +949,7 @@ isLongBranch(instr)
((((int) addr & 2) || (((unsigned char *) addr)[0] & 0x80) == 0) ? 2 : 4)
static int
-isBranch(instr)
- unsigned char *instr;
+isBranch (unsigned char *instr)
{
if (INSTRUCTION_SIZE(instr) == 2)
return isShortBranch(instr);
@@ -985,8 +958,7 @@ isBranch(instr)
}
static int
-willBranch(instr, branchCode)
- unsigned char *instr;
+willBranch (unsigned char *instr, int branchCode)
{
switch (branchCode)
{
@@ -1041,8 +1013,7 @@ willBranch(instr, branchCode)
}
static int
-branchDestination(instr, branchCode)
- unsigned char *instr;
+branchDestination (unsigned char *instr, int branchCode)
{
switch (branchCode) {
default:
@@ -1073,9 +1044,7 @@ branchDestination(instr, branchCode)
}
static void
-branchSideEffects(instr, branchCode)
- unsigned char *instr;
- int branchCode;
+branchSideEffects (unsigned char *instr, int branchCode)
{
switch (branchCode)
{
@@ -1185,7 +1154,7 @@ prepare_to_step(continue_p)
just "continue continuing". */
static int
-finish_from_step()
+finish_from_step (void)
{
if (stepping.stepping) /* anything to do? */
{
@@ -1276,7 +1245,7 @@ stash_registers:
but doing stash_registers in C isn't straightforward. */
static void
-cleanup_stash ()
+cleanup_stash (void)
{
psw = (struct PSWreg *) &registers[PSW]; /* fields of PSW register */
psw->sm = psw->bsm; /* fix up pre-trap values of psw fields */
@@ -1344,8 +1313,7 @@ restore_and_return:
NUM is the trap/exception number. */
static void
-process_exception (num)
- int num;
+process_exception (int num)
{
cleanup_stash ();
asm volatile ("
@@ -1552,7 +1520,7 @@ _catchException17:
/* this function is used to set up exception handlers for tracing and
breakpoints */
void
-set_debug_traps()
+set_debug_traps (void)
{
/* extern void remcomHandler(); */
int i;
@@ -1593,7 +1561,7 @@ set_debug_traps()
#define BREAKPOINT() asm volatile (" trap #2");
void
-breakpoint()
+breakpoint (void)
{
if (initialized)
BREAKPOINT();
@@ -1612,8 +1580,7 @@ breakpoint()
Returns: the char */
static int
-gdb_putchar(ch)
- int ch;
+gdb_putchar (int ch)
{
char buf[4];
@@ -1630,9 +1597,7 @@ gdb_putchar(ch)
Returns: number of bytes written */
static int
-gdb_write(data, len)
- char *data;
- int len;
+gdb_write (char *data, int len)
{
char *buf, *cpy;
int i;
@@ -1660,8 +1625,7 @@ gdb_write(data, len)
Returns: the length of the string */
static int
-gdb_puts(str)
- char *str;
+gdb_puts (char *str)
{
return gdb_write(str, strlen(str));
}
@@ -1672,9 +1636,7 @@ gdb_puts(str)
will cause the optional second string to be inserted. */
static void
-gdb_error(format, parm)
- char * format;
- char * parm;
+gdb_error (char *format, char *parm)
{
char buf[400], *cpy;
int len;
diff --git a/gdb/m32r-tdep.c b/gdb/m32r-tdep.c
index cb5d9c3..e868403 100644
--- a/gdb/m32r-tdep.c
+++ b/gdb/m32r-tdep.c
@@ -33,9 +33,7 @@
Return nonzero if call_function should allocate stack space for a
struct return? */
int
-m32r_use_struct_convention (gcc_p, type)
- int gcc_p;
- struct type *type;
+m32r_use_struct_convention (int gcc_p, struct type *type)
{
return (TYPE_LENGTH (type) > 8);
}
@@ -46,9 +44,8 @@ m32r_use_struct_convention (gcc_p, type)
an empty frame_saved_regs, so I guess that's better than total failure */
void
-m32r_frame_find_saved_regs (fi, regaddr)
- struct frame_info *fi;
- struct frame_saved_regs *regaddr;
+m32r_frame_find_saved_regs (struct frame_info *fi,
+ struct frame_saved_regs *regaddr)
{
memcpy (regaddr, &fi->fsr, sizeof (struct frame_saved_regs));
}
@@ -109,15 +106,9 @@ dump_insn (char *commnt, CORE_ADDR pc, int insn)
*/
static void
-decode_prologue (start_pc, scan_limit,
- pl_endptr, framelength,
- fi, fsr)
- CORE_ADDR start_pc;
- CORE_ADDR scan_limit;
- CORE_ADDR *pl_endptr; /* var parameter */
- unsigned long *framelength;
- struct frame_info *fi;
- struct frame_saved_regs *fsr;
+decode_prologue (CORE_ADDR start_pc, CORE_ADDR scan_limit, CORE_ADDR *pl_endptr, /* var parameter */
+ unsigned long *framelength, struct frame_info *fi,
+ struct frame_saved_regs *fsr)
{
unsigned long framesize;
int insn;
@@ -309,8 +300,7 @@ decode_prologue (start_pc, scan_limit,
Find end of function prologue */
CORE_ADDR
-m32r_skip_prologue (pc)
- CORE_ADDR pc;
+m32r_skip_prologue (CORE_ADDR pc)
{
CORE_ADDR func_addr, func_end;
struct symtab_and_line sal;
@@ -344,9 +334,7 @@ m32r_skip_prologue (pc)
}
static unsigned long
-m32r_scan_prologue (fi, fsr)
- struct frame_info *fi;
- struct frame_saved_regs *fsr;
+m32r_scan_prologue (struct frame_info *fi, struct frame_saved_regs *fsr)
{
struct symtab_and_line sal;
CORE_ADDR prologue_start, prologue_end, current_pc;
@@ -389,8 +377,7 @@ m32r_scan_prologue (fi, fsr)
examine the prologue. */
void
-m32r_init_extra_frame_info (fi)
- struct frame_info *fi;
+m32r_init_extra_frame_info (struct frame_info *fi)
{
int reg;
@@ -436,10 +423,7 @@ m32r_init_extra_frame_info (fi)
any frame pointer offsets. */
void
-m32r_virtual_frame_pointer (pc, reg, offset)
- CORE_ADDR pc;
- long *reg;
- long *offset;
+m32r_virtual_frame_pointer (CORE_ADDR pc, long *reg, long *offset)
{
struct frame_info fi;
@@ -474,9 +458,7 @@ m32r_virtual_frame_pointer (pc, reg, offset)
caller-saves registers for an inner frame. */
CORE_ADDR
-m32r_find_callers_reg (fi, regnum)
- struct frame_info *fi;
- int regnum;
+m32r_find_callers_reg (struct frame_info *fi, int regnum)
{
for (; fi; fi = fi->next)
if (PC_IN_CALL_DUMMY (fi->pc, fi->frame, fi->frame))
@@ -494,8 +476,7 @@ m32r_find_callers_reg (fi, regnum)
For m32r, we save the frame size when we initialize the frame_info. */
CORE_ADDR
-m32r_frame_chain (fi)
- struct frame_info *fi;
+m32r_frame_chain (struct frame_info *fi)
{
CORE_ADDR fn_start, callers_pc, fp;
@@ -529,9 +510,7 @@ m32r_frame_chain (fi)
(ie. when using an empty CALL_DUMMY) */
CORE_ADDR
-m32r_push_return_address (pc, sp)
- CORE_ADDR pc;
- CORE_ADDR sp;
+m32r_push_return_address (CORE_ADDR pc, CORE_ADDR sp)
{
write_register (RP_REGNUM, CALL_DUMMY_ADDRESS ());
return sp;
@@ -543,8 +522,7 @@ m32r_push_return_address (pc, sp)
restoring all saved registers. */
struct frame_info *
-m32r_pop_frame (frame)
- struct frame_info *frame;
+m32r_pop_frame (struct frame_info *frame)
{
int regnum;
@@ -573,8 +551,7 @@ m32r_pop_frame (frame)
in the stack anywhere, otherwise we get it from the registers. */
CORE_ADDR
-m32r_frame_saved_pc (fi)
- struct frame_info *fi;
+m32r_frame_saved_pc (struct frame_info *fi)
{
if (PC_IN_CALL_DUMMY (fi->pc, fi->frame, fi->frame))
return generic_read_register_dummy (fi->pc, fi->frame, PC_REGNUM);
@@ -614,12 +591,8 @@ m32r_frame_saved_pc (fi)
passed as an implicit first argument, always in R0. */
CORE_ADDR
-m32r_push_arguments (nargs, args, sp, struct_return, struct_addr)
- int nargs;
- value_ptr *args;
- CORE_ADDR sp;
- unsigned char struct_return;
- CORE_ADDR struct_addr;
+m32r_push_arguments (int nargs, value_ptr *args, CORE_ADDR sp,
+ unsigned char struct_return, CORE_ADDR struct_addr)
{
int stack_offset, stack_alloc;
int argreg;
@@ -700,14 +673,8 @@ m32r_push_arguments (nargs, args, sp, struct_return, struct_addr)
is the target of the target function call. */
void
-m32r_fix_call_dummy (dummy, pc, fun, nargs, args, type, gcc_p)
- char *dummy;
- CORE_ADDR pc;
- CORE_ADDR fun;
- int nargs;
- value_ptr *args;
- struct type *type;
- int gcc_p;
+m32r_fix_call_dummy (char *dummy, CORE_ADDR pc, CORE_ADDR fun, int nargs,
+ value_ptr *args, struct type *type, int gcc_p)
{
/* ld24 r8, <(imm24) fun> */
*(unsigned long *) (dummy) = (fun & 0x00ffffff) | 0xe8000000;
@@ -719,8 +686,7 @@ m32r_fix_call_dummy (dummy, pc, fun, nargs, args, type, gcc_p)
we must actually write one of those two as well, depending on PSW. */
void
-m32r_write_sp (val)
- CORE_ADDR val;
+m32r_write_sp (CORE_ADDR val)
{
unsigned long psw = read_register (PSW_REGNUM);
@@ -732,7 +698,7 @@ m32r_write_sp (val)
}
void
-_initialize_m32r_tdep ()
+_initialize_m32r_tdep (void)
{
tm_print_insn = print_insn_m32r;
}
diff --git a/gdb/m68hc11-tdep.c b/gdb/m68hc11-tdep.c
index 82d71b2..4c2d505 100644
--- a/gdb/m68hc11-tdep.c
+++ b/gdb/m68hc11-tdep.c
@@ -323,7 +323,7 @@ m68hc11_saved_pc_after_call (struct frame_info *frame)
registers. */
void
-m68hc11_pop_frame ()
+m68hc11_pop_frame (void)
{
m68hc11_not_yet ("m68hc11_pop_frame");
}
@@ -727,7 +727,7 @@ m68hc11_push_arguments (int nargs,
CORE_ADDR
-m68hc11_call_dummy_address ()
+m68hc11_call_dummy_address (void)
{
m68hc11_not_yet ("m68hc11_call_dummy_address");
return 0;
@@ -745,7 +745,7 @@ m68hc11_extract_return_value (struct type *valtype,
}
void
-_initialize_m68hc11_tdep ()
+_initialize_m68hc11_tdep (void)
{
tm_print_insn = print_insn_m68hc11;
diff --git a/gdb/m68k-stub.c b/gdb/m68k-stub.c
index 84c61a1..72281da 100644
--- a/gdb/m68k-stub.c
+++ b/gdb/m68k-stub.c
@@ -528,7 +528,7 @@ static char remcomOutBuffer[BUFMAX];
/* scan for the sequence $<data>#<checksum> */
unsigned char *
-getpacket ()
+getpacket (void)
{
unsigned char *buffer = &remcomInBuffer[0];
unsigned char checksum;
@@ -966,7 +966,7 @@ void handle_exception(int exceptionVector)
void
-initializeRemcomErrorFrame()
+initializeRemcomErrorFrame (void)
{
lastFrame = ((Frame *) &gdbFrameStack[FRAMESIZE-1]) - 1;
lastFrame->previous = lastFrame;
diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c
index 0bdb3f6..c15a1e8 100644
--- a/gdb/m68k-tdep.c
+++ b/gdb/m68k-tdep.c
@@ -44,8 +44,7 @@
was moved back here from tm-m68k.h. FIXME? */
extern CORE_ADDR
-altos_skip_prologue (pc)
- CORE_ADDR pc;
+altos_skip_prologue (CORE_ADDR pc)
{
register int op = read_memory_integer (pc, 2);
if (op == P_LINKW_FP)
@@ -67,8 +66,7 @@ altos_skip_prologue (pc)
was moved back here from tm-m68k.h. FIXME? */
extern CORE_ADDR
-isi_skip_prologue (pc)
- CORE_ADDR pc;
+isi_skip_prologue (CORE_ADDR pc)
{
register int op = read_memory_integer (pc, 2);
if (op == P_LINKW_FP)
@@ -87,9 +85,7 @@ isi_skip_prologue (pc)
}
int
-delta68_in_sigtramp (pc, name)
- CORE_ADDR pc;
- char *name;
+delta68_in_sigtramp (CORE_ADDR pc, char *name)
{
if (name != NULL)
return strcmp (name, "_sigcode") == 0;
@@ -98,8 +94,7 @@ delta68_in_sigtramp (pc, name)
}
CORE_ADDR
-delta68_frame_args_address (frame_info)
- struct frame_info * frame_info;
+delta68_frame_args_address (struct frame_info *frame_info)
{
/* we assume here that the only frameless functions are the system calls
or other functions who do not put anything on the stack. */
@@ -118,8 +113,7 @@ delta68_frame_args_address (frame_info)
}
CORE_ADDR
-delta68_frame_saved_pc (frame_info)
- struct frame_info * frame_info;
+delta68_frame_saved_pc (struct frame_info *frame_info)
{
return read_memory_integer (delta68_frame_args_address (frame_info) + 4, 4);
}
@@ -128,8 +122,7 @@ delta68_frame_saved_pc (frame_info)
Can return -1, meaning no way to tell. */
int
-isi_frame_num_args (fi)
- struct frame_info *fi;
+isi_frame_num_args (struct frame_info *fi)
{
int val;
CORE_ADDR pc = FRAME_SAVED_PC (fi);
@@ -151,8 +144,7 @@ isi_frame_num_args (fi)
}
int
-delta68_frame_num_args (fi)
- struct frame_info *fi;
+delta68_frame_num_args (struct frame_info *fi)
{
int val;
CORE_ADDR pc = FRAME_SAVED_PC (fi);
@@ -174,8 +166,7 @@ delta68_frame_num_args (fi)
}
int
-news_frame_num_args (fi)
- struct frame_info *fi;
+news_frame_num_args (struct frame_info *fi)
{
int val;
CORE_ADDR pc = FRAME_SAVED_PC (fi);
@@ -199,7 +190,7 @@ news_frame_num_args (fi)
/* Push an empty stack frame, to record the current PC, etc. */
void
-m68k_push_dummy_frame ()
+m68k_push_dummy_frame (void)
{
register CORE_ADDR sp = read_register (SP_REGNUM);
register int regnum;
@@ -229,7 +220,7 @@ m68k_push_dummy_frame ()
restoring all saved registers. */
void
-m68k_pop_frame ()
+m68k_pop_frame (void)
{
register struct frame_info *frame = get_current_frame ();
register CORE_ADDR fp;
@@ -298,8 +289,7 @@ m68k_pop_frame ()
*/
CORE_ADDR
-m68k_skip_prologue (ip)
- CORE_ADDR ip;
+m68k_skip_prologue (CORE_ADDR ip)
{
register CORE_ADDR limit;
struct symtab_and_line sal;
@@ -335,9 +325,8 @@ m68k_skip_prologue (ip)
}
void
-m68k_find_saved_regs (frame_info, saved_regs)
- struct frame_info *frame_info;
- struct frame_saved_regs *saved_regs;
+m68k_find_saved_regs (struct frame_info *frame_info,
+ struct frame_saved_regs *saved_regs)
{
register int regnum;
register int regmask;
@@ -551,8 +540,7 @@ lose:;
register values. */
void
-supply_gregset (gregsetp)
- gregset_t *gregsetp;
+supply_gregset (gregset_t *gregsetp)
{
register int regi;
register greg_t *regp = (greg_t *) gregsetp;
@@ -566,9 +554,7 @@ supply_gregset (gregsetp)
}
void
-fill_gregset (gregsetp, regno)
- gregset_t *gregsetp;
- int regno;
+fill_gregset (gregset_t *gregsetp, int regno)
{
register int regi;
register greg_t *regp = (greg_t *) gregsetp;
@@ -597,8 +583,7 @@ fill_gregset (gregsetp, regno)
idea of the current floating point register values. */
void
-supply_fpregset (fpregsetp)
- fpregset_t *fpregsetp;
+supply_fpregset (fpregset_t *fpregsetp)
{
register int regi;
char *from;
@@ -619,9 +604,7 @@ supply_fpregset (fpregsetp)
them all. */
void
-fill_fpregset (fpregsetp, regno)
- fpregset_t *fpregsetp;
- int regno;
+fill_fpregset (fpregset_t *fpregsetp, int regno)
{
int regi;
char *to;
@@ -661,8 +644,7 @@ fill_fpregset (fpregsetp, regno)
This routine returns true on success. */
int
-get_longjmp_target (pc)
- CORE_ADDR *pc;
+get_longjmp_target (CORE_ADDR *pc)
{
char buf[TARGET_PTR_BIT / TARGET_CHAR_BIT];
CORE_ADDR sp, jb_addr;
@@ -692,8 +674,7 @@ get_longjmp_target (pc)
prior to doing the trap. */
CORE_ADDR
-m68k_saved_pc_after_call (frame)
- struct frame_info *frame;
+m68k_saved_pc_after_call (struct frame_info *frame)
{
#ifdef SYSCALL_TRAP
int op;
@@ -709,7 +690,7 @@ m68k_saved_pc_after_call (frame)
void
-_initialize_m68k_tdep ()
+_initialize_m68k_tdep (void)
{
tm_print_insn = print_insn_m68k;
}
diff --git a/gdb/m68klinux-nat.c b/gdb/m68klinux-nat.c
index 111f2a9..b78b8a5 100644
--- a/gdb/m68klinux-nat.c
+++ b/gdb/m68klinux-nat.c
@@ -60,9 +60,7 @@ static const int regmap[] =
is stored. */
int
-m68k_linux_register_u_addr (blockend, regnum)
- int blockend;
- int regnum;
+m68k_linux_register_u_addr (int blockend, int regnum)
{
return (blockend + 4 * regmap[regnum]);
}
@@ -86,8 +84,7 @@ m68k_linux_register_u_addr (blockend, regnum)
#include "gregset.h"
void
-supply_gregset (gregsetp)
- gregset_t *gregsetp;
+supply_gregset (gregset_t *gregsetp)
{
int regi;
@@ -102,8 +99,7 @@ supply_gregset (gregsetp)
idea of the current floating point register values. */
void
-supply_fpregset (fpregsetp)
- fpregset_t *fpregsetp;
+supply_fpregset (fpregset_t *fpregsetp)
{
int regi;
@@ -118,7 +114,7 @@ supply_fpregset (fpregsetp)
int
-kernel_u_size ()
+kernel_u_size (void)
{
return (sizeof (struct user));
}
@@ -126,8 +122,7 @@ kernel_u_size ()
/* Return non-zero if PC points into the signal trampoline. */
int
-in_sigtramp (pc)
- CORE_ADDR pc;
+in_sigtramp (CORE_ADDR pc)
{
CORE_ADDR sp;
char buf[TARGET_SHORT_BIT / TARGET_CHAR_BIT];
diff --git a/gdb/m68knbsd-nat.c b/gdb/m68knbsd-nat.c
index b76dc79..9dc59c0 100644
--- a/gdb/m68knbsd-nat.c
+++ b/gdb/m68knbsd-nat.c
@@ -27,8 +27,7 @@
#include "inferior.h"
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
struct reg inferior_registers;
struct fpreg inferior_fp_registers;
@@ -47,8 +46,7 @@ fetch_inferior_registers (regno)
}
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
struct reg inferior_registers;
struct fpreg inferior_fp_registers;
@@ -71,11 +69,8 @@ struct md_core
};
static void
-fetch_core_registers (core_reg_sect, core_reg_size, which, ignore)
- char *core_reg_sect;
- unsigned core_reg_size;
- int which;
- CORE_ADDR ignore;
+fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, int which,
+ CORE_ADDR ignore)
{
struct md_core *core_reg = (struct md_core *) core_reg_sect;
@@ -100,7 +95,7 @@ static struct core_fns m68knbsd_core_fns =
};
void
-_initialize_m68knbsd_nat ()
+_initialize_m68knbsd_nat (void)
{
add_core_fns (&m68knbsd_core_fns);
}
diff --git a/gdb/m88k-nat.c b/gdb/m88k-nat.c
index afaa4ea..56ef951 100644
--- a/gdb/m88k-nat.c
+++ b/gdb/m88k-nat.c
@@ -106,8 +106,7 @@ fetch_inferior_registers (regno)
Otherwise, REGNO specifies which register (so we can save time). */
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
register unsigned int regaddr;
char buf[80];
@@ -174,7 +173,7 @@ store_inferior_registers (regno)
/* blockend is the address of the end of the user structure */
-m88k_register_u_addr (blockend, regnum)
+m88k_register_u_addr (int blockend, int regnum)
{
struct USER u;
int ustart = blockend - sizeof (struct USER);
@@ -247,8 +246,7 @@ m88k_register_u_addr (blockend, regnum)
register values. */
void
-supply_gregset (gregsetp)
- gregset_t *gregsetp;
+supply_gregset (gregset_t *gregsetp)
{
register int regi;
register greg_t *regp = (greg_t *) gregsetp;
@@ -265,9 +263,7 @@ supply_gregset (gregsetp)
}
void
-fill_gregset (gregsetp, regno)
- gregset_t *gregsetp;
- int regno;
+fill_gregset (gregset_t *gregsetp, int regno)
{
int regi;
register greg_t *regp = (greg_t *) gregsetp;
diff --git a/gdb/m88k-tdep.c b/gdb/m88k-tdep.c
index 4ca3d68..1cdd4e5 100644
--- a/gdb/m88k-tdep.c
+++ b/gdb/m88k-tdep.c
@@ -45,8 +45,7 @@ int target_is_m88110 = 0;
of an instruction. Shrug. */
CORE_ADDR
-m88k_addr_bits_remove (addr)
- CORE_ADDR addr;
+m88k_addr_bits_remove (CORE_ADDR addr)
{
return ((addr) & ~3);
}
@@ -60,8 +59,7 @@ m88k_addr_bits_remove (addr)
the function prologue to determine the caller's sp value, and return it. */
CORE_ADDR
-frame_chain (thisframe)
- struct frame_info *thisframe;
+frame_chain (struct frame_info *thisframe)
{
frame_find_saved_regs (thisframe, (struct frame_saved_regs *) 0);
@@ -75,8 +73,7 @@ frame_chain (thisframe)
}
int
-frameless_function_invocation (frame)
- struct frame_info *frame;
+frameless_function_invocation (struct frame_info *frame)
{
frame_find_saved_regs (frame, (struct frame_saved_regs *) 0);
@@ -90,9 +87,7 @@ frameless_function_invocation (frame)
}
void
-init_extra_frame_info (fromleaf, frame)
- int fromleaf;
- struct frame_info *frame;
+init_extra_frame_info (int fromleaf, struct frame_info *frame)
{
frame->fsr = 0; /* Not yet allocated */
frame->args_pointer = 0; /* Unknown */
@@ -212,9 +207,7 @@ struct prologue_insns prologue_insn_tbl[] =
is stored at 'pword1'. */
CORE_ADDR
-next_insn (memaddr, pword1)
- unsigned long *pword1;
- CORE_ADDR memaddr;
+next_insn (CORE_ADDR memaddr, unsigned long *pword1)
{
*pword1 = read_memory_integer (memaddr, BYTES_PER_88K_INSN);
return memaddr + BYTES_PER_88K_INSN;
@@ -223,9 +216,7 @@ next_insn (memaddr, pword1)
/* Read a register from frames called by us (or from the hardware regs). */
static int
-read_next_frame_reg (frame, regno)
- struct frame_info *frame;
- int regno;
+read_next_frame_reg (struct frame_info *frame, int regno)
{
for (; frame; frame = frame->next)
{
@@ -247,12 +238,9 @@ read_next_frame_reg (frame, regno)
to reflect the offsets of the arg pointer and the locals pointer. */
static CORE_ADDR
-examine_prologue (ip, limit, frame_sp, fsr, fi)
- register CORE_ADDR ip;
- register CORE_ADDR limit;
- CORE_ADDR frame_sp;
- struct frame_saved_regs *fsr;
- struct frame_info *fi;
+examine_prologue (register CORE_ADDR ip, register CORE_ADDR limit,
+ CORE_ADDR frame_sp, struct frame_saved_regs *fsr,
+ struct frame_info *fi)
{
register CORE_ADDR next_ip;
register int src;
@@ -437,9 +425,7 @@ CORE_ADDR (ip);
fairly expensive. */
void
-frame_find_saved_regs (fi, fsr)
- struct frame_info *fi;
- struct frame_saved_regs *fsr;
+frame_find_saved_regs (struct frame_info *fi, struct frame_saved_regs *fsr)
{
register struct frame_saved_regs *cache_fsr;
CORE_ADDR ip;
@@ -487,8 +473,7 @@ frame_find_saved_regs (fi, fsr)
argument pointer, so this is the same as frame_args_address(). */
CORE_ADDR
-frame_locals_address (fi)
- struct frame_info *fi;
+frame_locals_address (struct frame_info *fi)
{
struct frame_saved_regs fsr;
@@ -506,8 +491,7 @@ frame_locals_address (fi)
described by FI. Returns 0 if the address is unknown. */
CORE_ADDR
-frame_args_address (fi)
- struct frame_info *fi;
+frame_args_address (struct frame_info *fi)
{
struct frame_saved_regs fsr;
@@ -527,8 +511,7 @@ frame_args_address (fi)
just use the register SRP_REGNUM itself. */
CORE_ADDR
-frame_saved_pc (frame)
- struct frame_info *frame;
+frame_saved_pc (struct frame_info *frame)
{
return read_next_frame_reg (frame, SRP_REGNUM);
}
@@ -537,9 +520,7 @@ frame_saved_pc (frame)
#define DUMMY_FRAME_SIZE 192
static void
-write_word (sp, word)
- CORE_ADDR sp;
- ULONGEST word;
+write_word (CORE_ADDR sp, ULONGEST word)
{
register int len = REGISTER_SIZE;
char buffer[MAX_REGISTER_RAW_SIZE];
@@ -549,7 +530,7 @@ write_word (sp, word)
}
void
-m88k_push_dummy_frame ()
+m88k_push_dummy_frame (void)
{
register CORE_ADDR sp = read_register (SP_REGNUM);
register int rn;
@@ -583,7 +564,7 @@ m88k_push_dummy_frame ()
}
void
-pop_frame ()
+pop_frame (void)
{
register struct frame_info *frame = get_current_frame ();
register CORE_ADDR fp;
@@ -635,7 +616,7 @@ pop_frame ()
}
void
-_initialize_m88k_tdep ()
+_initialize_m88k_tdep (void)
{
tm_print_insn = print_insn_m88k;
}
diff --git a/gdb/mac-nat.c b/gdb/mac-nat.c
index aa25417..864fcab 100644
--- a/gdb/mac-nat.c
+++ b/gdb/mac-nat.c
@@ -84,9 +84,7 @@ child_wait (int pid, struct target_waitstatus *ourstatus)
/* Attach to process PID, then initialize for debugging it. */
static void
-child_attach (args, from_tty)
- char *args;
- int from_tty;
+child_attach (char *args, int from_tty)
{
ProcessSerialNumber psn;
ProcessInfoRec inforec;
@@ -130,9 +128,7 @@ child_attach (args, from_tty)
}
static void
-child_detach (args, from_tty)
- char *args;
- int from_tty;
+child_detach (char *args, int from_tty)
{
char *exec_file;
@@ -152,8 +148,7 @@ child_detach (args, from_tty)
/* Print status information about what we're accessing. */
static void
-child_files_info (ignore)
- struct target_ops *ignore;
+child_files_info (struct target_ops *ignore)
{
printf_unfiltered ("\tUsing the running image of %s %s.\n",
attach_flag ? "attached" : "child", target_pid_to_str (inferior_pid));
@@ -161,9 +156,7 @@ child_files_info (ignore)
/* ARGSUSED */
static void
-child_open (arg, from_tty)
- char *arg;
- int from_tty;
+child_open (char *arg, int from_tty)
{
error ("Use the \"run\" command to start a Mac application.");
}
@@ -174,10 +167,7 @@ child_open (arg, from_tty)
ENV is the environment vector to pass. Errors reported with error(). */
static void
-child_create_inferior (exec_file, allargs, env)
- char *exec_file;
- char *allargs;
- char **env;
+child_create_inferior (char *exec_file, char *allargs, char **env)
{
LaunchParamBlockRec launchparms;
FSSpec fsspec;
@@ -221,14 +211,14 @@ child_create_inferior (exec_file, allargs, env)
}
static void
-child_mourn_inferior ()
+child_mourn_inferior (void)
{
unpush_target (&child_ops);
generic_mourn_inferior ();
}
static void
-child_stop ()
+child_stop (void)
{
}
@@ -263,26 +253,24 @@ child_resume (int pid, int step, enum target_signal signal)
}
static void
-child_prepare_to_store ()
+child_prepare_to_store (void)
{
/* Do nothing, since we can store individual regs */
}
static int
-child_can_run ()
+child_can_run (void)
{
return 1;
}
static void
-child_close ()
+child_close (void)
{
}
static void
-info_proc (args, from_tty)
- char *args;
- int from_tty;
+info_proc (char *args, int from_tty)
{
ProcessSerialNumber psn;
ProcessInfoRec inforec;
@@ -404,7 +392,7 @@ init_child_ops (void)
};
void
-_initialize_mac_nat ()
+_initialize_mac_nat (void)
{
init_child_ops ();
diff --git a/gdb/mac-xdep.c b/gdb/mac-xdep.c
index ae5c4fa..b2ed22b 100644
--- a/gdb/mac-xdep.c
+++ b/gdb/mac-xdep.c
@@ -120,12 +120,12 @@ TEHandle console_text;
Rect console_text_rect;
/* This will go away eventually. */
-gdb_has_a_terminal ()
+gdb_has_a_terminal (void)
{
return 1;
}
-mac_init ()
+mac_init (void)
{
SysEnvRec se;
int eventloopdone = 0;
@@ -203,7 +203,7 @@ mac_init ()
new_console_window ();
}
-new_console_window ()
+new_console_window (void)
{
/* Create the main window we're going to play in. */
if (has_color_qd)
@@ -234,7 +234,7 @@ new_console_window ()
SelectWindow (console_window);
}
-mac_command_loop ()
+mac_command_loop (void)
{
SysEnvRec se;
int eventloopdone = 0;
@@ -294,8 +294,7 @@ mac_command_loop ()
/* Collect the global coordinates of the mouse pointer. */
-get_global_mouse (mouse)
- Point *mouse;
+get_global_mouse (Point *mouse)
{
EventRecord evt;
@@ -306,16 +305,13 @@ get_global_mouse (mouse)
/* Change the cursor's appearance to be appropriate for the given mouse
location. */
-adjust_cursor (mouse, region)
- Point mouse;
- RgnHandle region;
+adjust_cursor (Point mouse, RgnHandle region)
{
}
/* Decipher an event, maybe do something with it. */
-do_event (evt)
- EventRecord *evt;
+do_event (EventRecord *evt)
{
short part, err, rslt = 0;
WindowPtr win;
@@ -430,14 +426,12 @@ do_event (evt)
/* Do any idle-time activities. */
-do_idle ()
+do_idle (void)
{
TEIdle (console_text);
}
-grow_window (win, where)
- WindowPtr win;
- Point where;
+grow_window (WindowPtr win, Point where)
{
long winsize;
int h, v;
@@ -461,10 +455,7 @@ grow_window (win, where)
}
}
-zoom_window (win, where, part)
- WindowPtr win;
- Point where;
- short part;
+zoom_window (WindowPtr win, Point where, short part)
{
ZoomWindow (win, part, (win == FrontWindow ()));
if (win == console_window)
@@ -473,7 +464,7 @@ zoom_window (win, where, part)
}
}
-resize_console_window ()
+resize_console_window (void)
{
adjust_console_sizes ();
adjust_console_scrollbars ();
@@ -481,8 +472,7 @@ resize_console_window ()
InvalRect (&console_window->portRect);
}
-close_window (win)
- WindowPtr win;
+close_window (WindowPtr win)
{
}
@@ -565,14 +555,11 @@ do_mouse_down (WindowPtr win, EventRecord * event)
}
}
-scroll_text (hlines, vlines)
- int hlines, vlines;
+scroll_text (int hlines, int vlines)
{
}
-activate_window (win, activate)
- WindowPtr win;
- int activate;
+activate_window (WindowPtr win, int activate)
{
Rect grow_rect;
@@ -603,8 +590,7 @@ activate_window (win, activate)
}
}
-update_window (win)
- WindowPtr win;
+update_window (WindowPtr win)
{
int controls = 1, growbox = 0;
GrafPtr oldport;
@@ -628,12 +614,11 @@ update_window (win)
SetPort (oldport);
}
-adjust_menus ()
+adjust_menus (void)
{
}
-do_menu_command (which)
- long which;
+do_menu_command (long which)
{
short menuid, menuitem;
short itemHit;
@@ -736,8 +721,7 @@ do_menu_command (which)
char commandbuf[1000];
-do_keyboard_command (key)
- int key;
+do_keyboard_command (int key)
{
int startpos, endpos, i, len;
char *last_newline;
@@ -798,7 +782,7 @@ do_keyboard_command (key)
/* Draw all graphical stuff in the console window. */
-draw_console ()
+draw_console (void)
{
SetPort (console_window);
TEUpdate (&(console_window->portRect), console_text);
@@ -806,8 +790,7 @@ draw_console ()
/* Cause an update of a given window's entire contents. */
-force_update (win)
- WindowPtr win;
+force_update (WindowPtr win)
{
GrafPtr oldport;
@@ -820,7 +803,7 @@ force_update (win)
SetPort (oldport);
}
-adjust_console_sizes ()
+adjust_console_sizes (void)
{
Rect tmprect;
@@ -841,7 +824,7 @@ adjust_console_sizes ()
(*console_text)->viewRect = tmprect;
}
-adjust_console_scrollbars ()
+adjust_console_scrollbars (void)
{
int lines, newmax, value;
@@ -862,7 +845,7 @@ adjust_console_scrollbars ()
/* Scroll the TE record so that it is consistent with the scrollbar(s). */
-adjust_console_text ()
+adjust_console_text (void)
{
TEScroll (((*console_text)->viewRect.left
- (*console_text)->destRect.left)
@@ -907,7 +890,7 @@ stifle_history (int n)
}
int
-unstifle_history ()
+unstifle_history (void)
{
}
diff --git a/gdb/maint.c b/gdb/maint.c
index 44dcba8..c2fc9e1 100644
--- a/gdb/maint.c
+++ b/gdb/maint.c
@@ -82,9 +82,7 @@ int watchdog = 0;
*/
static void
-maintenance_command (args, from_tty)
- char *args;
- int from_tty;
+maintenance_command (char *args, int from_tty)
{
printf_unfiltered ("\"maintenance\" must be followed by the name of a maintenance command.\n");
help_list (maintenancelist, "maintenance ", -1, gdb_stdout);
@@ -93,9 +91,7 @@ maintenance_command (args, from_tty)
#ifndef _WIN32
/* ARGSUSED */
static void
-maintenance_dump_me (args, from_tty)
- char *args;
- int from_tty;
+maintenance_dump_me (char *args, int from_tty)
{
if (query ("Should GDB dump core? "))
{
@@ -131,9 +127,7 @@ maintenance_internal_error (char *args, int from_tty)
demangle and print what it points to, etc. (FIXME) */
static void
-maintenance_demangle (args, from_tty)
- char *args;
- int from_tty;
+maintenance_demangle (char *args, int from_tty)
{
char *demangled;
@@ -157,9 +151,7 @@ maintenance_demangle (args, from_tty)
}
static void
-maintenance_time_display (args, from_tty)
- char *args;
- int from_tty;
+maintenance_time_display (char *args, int from_tty)
{
extern int display_time;
@@ -170,9 +162,7 @@ maintenance_time_display (args, from_tty)
}
static void
-maintenance_space_display (args, from_tty)
- char *args;
- int from_tty;
+maintenance_space_display (char *args, int from_tty)
{
extern int display_space;
@@ -188,19 +178,14 @@ maintenance_space_display (args, from_tty)
/* ARGSUSED */
static void
-maintenance_info_command (arg, from_tty)
- char *arg;
- int from_tty;
+maintenance_info_command (char *arg, int from_tty)
{
printf_unfiltered ("\"maintenance info\" must be followed by the name of an info command.\n");
help_list (maintenanceinfolist, "maintenance info ", -1, gdb_stdout);
}
static void
-print_section_table (abfd, asect, ignore)
- bfd *abfd;
- asection *asect;
- PTR ignore;
+print_section_table (bfd *abfd, asection *asect, PTR ignore)
{
flagword flags;
@@ -250,9 +235,7 @@ print_section_table (abfd, asect, ignore)
/* ARGSUSED */
static void
-maintenance_info_sections (arg, from_tty)
- char *arg;
- int from_tty;
+maintenance_info_sections (char *arg, int from_tty)
{
if (exec_bfd)
{
@@ -275,9 +258,7 @@ maintenance_info_sections (arg, from_tty)
/* ARGSUSED */
void
-maintenance_print_statistics (args, from_tty)
- char *args;
- int from_tty;
+maintenance_print_statistics (char *args, int from_tty)
{
print_objfile_statistics ();
print_symbol_bcache_statistics ();
@@ -304,9 +285,7 @@ maintenance_print_architecture (char *args, int from_tty)
/* ARGSUSED */
static void
-maintenance_print_command (arg, from_tty)
- char *arg;
- int from_tty;
+maintenance_print_command (char *arg, int from_tty)
{
printf_unfiltered ("\"maintenance print\" must be followed by the name of a print command.\n");
help_list (maintenanceprintlist, "maintenance print ", -1, gdb_stdout);
@@ -319,9 +298,7 @@ maintenance_print_command (arg, from_tty)
*/
static void
-maintenance_translate_address (arg, from_tty)
- char *arg;
- int from_tty;
+maintenance_translate_address (char *arg, int from_tty)
{
CORE_ADDR address;
asection *sect;
@@ -494,7 +471,7 @@ maintenance_do_deprecate (char *text, int deprecate)
void
-_initialize_maint_cmds ()
+_initialize_maint_cmds (void)
{
add_prefix_cmd ("maintenance", class_maintenance, maintenance_command,
"Commands for use by GDB maintainers.\n\
diff --git a/gdb/mcore-rom.c b/gdb/mcore-rom.c
index e28fddc..7470cb8 100644
--- a/gdb/mcore-rom.c
+++ b/gdb/mcore-rom.c
@@ -83,7 +83,7 @@ ss0-ss4 bad0beef 00000000 00000000 00000000 00000000 vbr 30005c00
int
-picobug_dumpregs ()
+picobug_dumpregs (void)
{
char buf[1024];
int resp_len;
@@ -189,7 +189,7 @@ init_picobug_cmds (void)
}
void
-_initialize_picobug_rom ()
+_initialize_picobug_rom (void)
{
int i;
diff --git a/gdb/mcore-tdep.c b/gdb/mcore-tdep.c
index 1fc6e90..d129d5f 100644
--- a/gdb/mcore-tdep.c
+++ b/gdb/mcore-tdep.c
@@ -978,7 +978,7 @@ get_insn (CORE_ADDR pc)
}
void
-_initialize_mcore_tdep ()
+_initialize_mcore_tdep (void)
{
extern int print_insn_mcore (bfd_vma, disassemble_info *);
tm_print_insn = print_insn_mcore;
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c
index e377435..8bc869e 100644
--- a/gdb/mdebugread.c
+++ b/gdb/mdebugread.c
@@ -410,8 +410,7 @@ CORE_ADDR sigtramp_address, sigtramp_end;
/* Allocate zeroed memory */
static PTR
-xzalloc (size)
- unsigned int size;
+xzalloc (unsigned int size)
{
PTR p = xmalloc (size);
@@ -425,8 +424,7 @@ xzalloc (size)
and reorders the symtab list at the end */
static void
-mdebug_psymtab_to_symtab (pst)
- struct partial_symtab *pst;
+mdebug_psymtab_to_symtab (struct partial_symtab *pst)
{
if (!pst)
@@ -455,8 +453,7 @@ mdebug_psymtab_to_symtab (pst)
/* Find a file descriptor given its index RF relative to a file CF */
static FDR *
-get_rfd (cf, rf)
- int cf, rf;
+get_rfd (int cf, int rf)
{
FDR *fdrs;
register FDR *f;
@@ -478,8 +475,7 @@ get_rfd (cf, rf)
/* Return a safer print NAME for a file descriptor */
static char *
-fdr_name (f)
- FDR *f;
+fdr_name (FDR *f)
{
if (f->rss == -1)
return "<stripped file>";
@@ -493,10 +489,9 @@ fdr_name (f)
different sections are relocated via the SECTION_OFFSETS. */
void
-mdebug_build_psymtabs (objfile, swap, info)
- struct objfile *objfile;
- const struct ecoff_debug_swap *swap;
- struct ecoff_debug_info *info;
+mdebug_build_psymtabs (struct objfile *objfile,
+ const struct ecoff_debug_swap *swap,
+ struct ecoff_debug_info *info)
{
cur_bfd = objfile->obfd;
debug_swap = swap;
@@ -580,7 +575,7 @@ static struct parse_stack
/* Enter a new lexical context */
static void
-push_parse_stack ()
+push_parse_stack (void)
{
struct parse_stack *new;
@@ -605,7 +600,7 @@ push_parse_stack ()
/* Exit a lexical context */
static void
-pop_parse_stack ()
+pop_parse_stack (void)
{
if (!top_stack)
return;
@@ -639,9 +634,7 @@ static struct mdebug_pending **pending_list;
/* Check whether we already saw symbol SH in file FH */
static struct mdebug_pending *
-is_pending_symbol (fh, sh)
- FDR *fh;
- char *sh;
+is_pending_symbol (FDR *fh, char *sh)
{
int f_idx = fh - debug_info->fdr;
register struct mdebug_pending *p;
@@ -656,10 +649,7 @@ is_pending_symbol (fh, sh)
/* Add a new symbol SH of type T */
static void
-add_pending (fh, sh, t)
- FDR *fh;
- char *sh;
- struct type *t;
+add_pending (FDR *fh, char *sh, struct type *t)
{
int f_idx = fh - debug_info->fdr;
struct mdebug_pending *p = is_pending_symbol (fh, sh);
@@ -690,13 +680,8 @@ add_pending (fh, sh, t)
SYMR's handled (normally one). */
static int
-parse_symbol (sh, ax, ext_sh, bigend, section_offsets, objfile)
- SYMR *sh;
- union aux_ext *ax;
- char *ext_sh;
- int bigend;
- struct section_offsets *section_offsets;
- struct objfile *objfile;
+parse_symbol (SYMR *sh, union aux_ext *ax, char *ext_sh, int bigend,
+ struct section_offsets *section_offsets, struct objfile *objfile)
{
const bfd_size_type external_sym_size = debug_swap->external_sym_size;
void (*const swap_sym_in) (bfd *, PTR, SYMR *) = debug_swap->swap_sym_in;
@@ -1437,13 +1422,8 @@ parse_symbol (sh, ax, ext_sh, bigend, section_offsets, objfile)
they are big-endian or little-endian (from fh->fBigendian). */
static struct type *
-parse_type (fd, ax, aux_index, bs, bigend, sym_name)
- int fd;
- union aux_ext *ax;
- unsigned int aux_index;
- int *bs;
- int bigend;
- char *sym_name;
+parse_type (int fd, union aux_ext *ax, unsigned int aux_index, int *bs,
+ int bigend, char *sym_name)
{
/* Null entries in this map are treated specially */
static struct type **map_bt[] =
@@ -1778,13 +1758,8 @@ parse_type (fd, ax, aux_index, bs, bigend, sym_name)
Returns the number of aux symbols we parsed. */
static int
-upgrade_type (fd, tpp, tq, ax, bigend, sym_name)
- int fd;
- struct type **tpp;
- int tq;
- union aux_ext *ax;
- int bigend;
- char *sym_name;
+upgrade_type (int fd, struct type **tpp, int tq, union aux_ext *ax, int bigend,
+ char *sym_name)
{
int off;
struct type *t;
@@ -1902,10 +1877,8 @@ upgrade_type (fd, tpp, tq, ax, bigend, sym_name)
static void parse_procedure (PDR *, struct symtab *, struct partial_symtab *);
static void
-parse_procedure (pr, search_symtab, pst)
- PDR *pr;
- struct symtab *search_symtab;
- struct partial_symtab *pst;
+parse_procedure (PDR *pr, struct symtab *search_symtab,
+ struct partial_symtab *pst)
{
struct symbol *s, *i;
struct block *b;
@@ -2058,9 +2031,7 @@ parse_procedure (pr, search_symtab, pst)
/* Relocate the extra function info pointed to by the symbol table. */
void
-ecoff_relocate_efi (sym, delta)
- struct symbol *sym;
- CORE_ADDR delta;
+ecoff_relocate_efi (struct symbol *sym, CORE_ADDR delta)
{
struct mips_extra_func_info *e;
@@ -2079,11 +2050,8 @@ static void parse_external (EXTR *, int, struct section_offsets *,
struct objfile *);
static void
-parse_external (es, bigend, section_offsets, objfile)
- EXTR *es;
- int bigend;
- struct section_offsets *section_offsets;
- struct objfile *objfile;
+parse_external (EXTR *es, int bigend, struct section_offsets *section_offsets,
+ struct objfile *objfile)
{
union aux_ext *ax;
@@ -2175,13 +2143,8 @@ static void parse_lines (FDR *, PDR *, struct linetable *, int,
struct partial_symtab *, CORE_ADDR);
static void
-parse_lines (fh, pr, lt, maxlines, pst, lowest_pdr_addr)
- FDR *fh;
- PDR *pr;
- struct linetable *lt;
- int maxlines;
- struct partial_symtab *pst;
- CORE_ADDR lowest_pdr_addr;
+parse_lines (FDR *fh, PDR *pr, struct linetable *lt, int maxlines,
+ struct partial_symtab *pst, CORE_ADDR lowest_pdr_addr)
{
unsigned char *base;
int j, k;
@@ -2247,8 +2210,7 @@ parse_lines (fh, pr, lt, maxlines, pst, lowest_pdr_addr)
into a partial_symtab. */
static void
-parse_partial_symbols (objfile)
- struct objfile *objfile;
+parse_partial_symbols (struct objfile *objfile)
{
const bfd_size_type external_sym_size = debug_swap->external_sym_size;
const bfd_size_type external_rfd_size = debug_swap->external_rfd_size;
@@ -3156,11 +3118,8 @@ parse_partial_symbols (objfile)
all the the enum constants to the partial symbol table. */
static void
-handle_psymbol_enumerators (objfile, fh, stype, svalue)
- struct objfile *objfile;
- FDR *fh;
- int stype;
- CORE_ADDR svalue;
+handle_psymbol_enumerators (struct objfile *objfile, FDR *fh, int stype,
+ CORE_ADDR svalue)
{
const bfd_size_type external_sym_size = debug_swap->external_sym_size;
void (*const swap_sym_in) (bfd *, PTR, SYMR *) = debug_swap->swap_sym_in;
@@ -3249,9 +3208,7 @@ mdebug_next_symbol_text (objfile)
The flow of control and even the memory allocation differs. FIXME. */
static void
-psymtab_to_symtab_1 (pst, filename)
- struct partial_symtab *pst;
- char *filename;
+psymtab_to_symtab_1 (struct partial_symtab *pst, char *filename)
{
bfd_size_type external_sym_size;
bfd_size_type external_pdr_size;
@@ -3636,9 +3593,7 @@ psymtab_to_symtab_1 (pst, filename)
to an opaque aggregate type, else 0. */
static int
-has_opaque_xref (fh, sh)
- FDR *fh;
- SYMR *sh;
+has_opaque_xref (FDR *fh, SYMR *sh)
{
TIR tir;
union aux_ext *ax;
@@ -3670,14 +3625,8 @@ has_opaque_xref (fh, sh)
Return value says how many aux symbols we ate. */
static int
-cross_ref (fd, ax, tpp, type_code, pname, bigend, sym_name)
- int fd;
- union aux_ext *ax;
- struct type **tpp;
- enum type_code type_code; /* Use to alloc new type if none is found. */
- char **pname;
- int bigend;
- char *sym_name;
+cross_ref (int fd, union aux_ext *ax, struct type **tpp, enum type_code type_code, /* Use to alloc new type if none is found. */
+ char **pname, int bigend, char *sym_name)
{
RNDXR rn[1];
unsigned int rf;
@@ -3874,11 +3823,8 @@ cross_ref (fd, ax, tpp, type_code, pname, bigend, sym_name)
keeping the symtab sorted */
static struct symbol *
-mylookup_symbol (name, block, namespace, class)
- char *name;
- register struct block *block;
- namespace_enum namespace;
- enum address_class class;
+mylookup_symbol (char *name, register struct block *block,
+ namespace_enum namespace, enum address_class class)
{
register int bot, top, inc;
register struct symbol *sym;
@@ -3909,9 +3855,7 @@ mylookup_symbol (name, block, namespace, class)
that's the only time we know how big the block is. FIXME. */
static void
-add_symbol (s, b)
- struct symbol *s;
- struct block *b;
+add_symbol (struct symbol *s, struct block *b)
{
int nsyms = BLOCK_NSYMS (b)++;
struct block *origb;
@@ -3944,9 +3888,7 @@ add_symbol (s, b)
/* Add a new block B to a symtab S */
static void
-add_block (b, s)
- struct block *b;
- struct symtab *s;
+add_block (struct block *b, struct symtab *s)
{
struct blockvector *bv = BLOCKVECTOR (s);
@@ -3976,11 +3918,7 @@ add_block (b, s)
This is another reason why -ggdb debugging format is preferable. */
static int
-add_line (lt, lineno, adr, last)
- struct linetable *lt;
- int lineno;
- CORE_ADDR adr;
- int last;
+add_line (struct linetable *lt, int lineno, CORE_ADDR adr, int last)
{
/* DEC c89 sometimes produces zero linenos which confuse gdb.
Change them to something sensible. */
@@ -4002,9 +3940,7 @@ add_line (lt, lineno, adr, last)
/* Blocks with a smaller low bound should come first */
static int
-compare_blocks (arg1, arg2)
- const PTR arg1;
- const PTR arg2;
+compare_blocks (const PTR arg1, const PTR arg2)
{
register int addr_diff;
struct block **b1 = (struct block **) arg1;
@@ -4021,8 +3957,7 @@ compare_blocks (arg1, arg2)
as required by some MI search routines */
static void
-sort_blocks (s)
- struct symtab *s;
+sort_blocks (struct symtab *s)
{
struct blockvector *bv = BLOCKVECTOR (s);
@@ -4073,11 +4008,7 @@ sort_blocks (s)
MAXSYMS and linenumbers MAXLINES we'll put in it */
static struct symtab *
-new_symtab (name, maxsyms, maxlines, objfile)
- char *name;
- int maxsyms;
- int maxlines;
- struct objfile *objfile;
+new_symtab (char *name, int maxsyms, int maxlines, struct objfile *objfile)
{
struct symtab *s = allocate_symtab (name, objfile);
@@ -4099,9 +4030,7 @@ new_symtab (name, maxsyms, maxlines, objfile)
/* Allocate a new partial_symtab NAME */
static struct partial_symtab *
-new_psymtab (name, objfile)
- char *name;
- struct objfile *objfile;
+new_psymtab (char *name, struct objfile *objfile)
{
struct partial_symtab *psymtab;
@@ -4130,8 +4059,7 @@ new_psymtab (name, objfile)
proper size to allocate. */
static struct linetable *
-new_linetable (size)
- int size;
+new_linetable (int size)
{
struct linetable *l;
@@ -4148,8 +4076,7 @@ new_linetable (size)
calculating the proper size to allocate. */
static struct linetable *
-shrink_linetable (lt)
- struct linetable *lt;
+shrink_linetable (struct linetable *lt)
{
return (struct linetable *) xrealloc ((PTR) lt,
@@ -4161,8 +4088,7 @@ shrink_linetable (lt)
/* Allocate and zero a new blockvector of NBLOCKS blocks. */
static struct blockvector *
-new_bvect (nblocks)
- int nblocks;
+new_bvect (int nblocks)
{
struct blockvector *bv;
int size;
@@ -4178,8 +4104,7 @@ new_bvect (nblocks)
/* Allocate and zero a new block of MAXSYMS symbols */
static struct block *
-new_block (maxsyms)
- int maxsyms;
+new_block (int maxsyms)
{
int size = sizeof (struct block) + (maxsyms - 1) * sizeof (struct symbol *);
@@ -4190,9 +4115,7 @@ new_block (maxsyms)
Shrink_block can also be used by add_symbol to grow a block. */
static struct block *
-shrink_block (b, s)
- struct block *b;
- struct symtab *s;
+shrink_block (struct block *b, struct symtab *s)
{
struct block *new;
struct blockvector *bv = BLOCKVECTOR (s);
@@ -4220,8 +4143,7 @@ shrink_block (b, s)
/* Create a new symbol with printname NAME */
static struct symbol *
-new_symbol (name)
- char *name;
+new_symbol (char *name)
{
struct symbol *s = ((struct symbol *)
obstack_alloc (&current_objfile->symbol_obstack,
@@ -4238,8 +4160,7 @@ new_symbol (name)
/* Create a new type with printname NAME */
static struct type *
-new_type (name)
- char *name;
+new_type (char *name)
{
struct type *t;
@@ -4255,10 +4176,8 @@ new_type (name)
it as normal. */
void
-elfmdebug_build_psymtabs (objfile, swap, sec)
- struct objfile *objfile;
- const struct ecoff_debug_swap *swap;
- asection *sec;
+elfmdebug_build_psymtabs (struct objfile *objfile,
+ const struct ecoff_debug_swap *swap, asection *sec)
{
bfd *abfd = objfile->obfd;
struct ecoff_debug_info *info;
@@ -4293,7 +4212,7 @@ elfmdebug_build_psymtabs (objfile, swap, sec)
#ifdef TM_MIPS_H
void
-fixup_sigtramp ()
+fixup_sigtramp (void)
{
struct symbol *s;
struct symtab *st;
@@ -4395,7 +4314,7 @@ fixup_sigtramp ()
#endif /* TM_MIPS_H */
void
-_initialize_mdebugread ()
+_initialize_mdebugread (void)
{
mdebug_type_void =
init_type (TYPE_CODE_VOID, 1,
diff --git a/gdb/mem-break.c b/gdb/mem-break.c
index 3f013c2..881ba2f 100644
--- a/gdb/mem-break.c
+++ b/gdb/mem-break.c
@@ -40,9 +40,7 @@
for inserting the breakpoint. */
unsigned char *
-memory_breakpoint_from_pc (pcptr, lenptr)
- CORE_ADDR *pcptr;
- int *lenptr;
+memory_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr)
{
/* {BIG_,LITTLE_}BREAKPOINT is the sequence of bytes we insert for a
breakpoint. On some machines, breakpoints are handled by the
@@ -84,9 +82,7 @@ memory_breakpoint_from_pc (pcptr, lenptr)
is accomplished via BREAKPOINT_MAX). */
int
-default_memory_insert_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+default_memory_insert_breakpoint (CORE_ADDR addr, char *contents_cache)
{
int val;
unsigned char *bp;
@@ -109,9 +105,7 @@ default_memory_insert_breakpoint (addr, contents_cache)
int
-default_memory_remove_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+default_memory_remove_breakpoint (CORE_ADDR addr, char *contents_cache)
{
unsigned char *bp;
int bplen;
@@ -126,17 +120,13 @@ default_memory_remove_breakpoint (addr, contents_cache)
int
-memory_insert_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+memory_insert_breakpoint (CORE_ADDR addr, char *contents_cache)
{
return MEMORY_INSERT_BREAKPOINT(addr, contents_cache);
}
int
-memory_remove_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+memory_remove_breakpoint (CORE_ADDR addr, char *contents_cache)
{
return MEMORY_REMOVE_BREAKPOINT(addr, contents_cache);
}
diff --git a/gdb/mi/mi-cmds.c b/gdb/mi/mi-cmds.c
index f03d5be..ff8b537 100644
--- a/gdb/mi/mi-cmds.c
+++ b/gdb/mi/mi-cmds.c
@@ -253,7 +253,7 @@ build_table (struct mi_cmd *commands)
}
void
-_initialize_mi_cmds ()
+_initialize_mi_cmds (void)
{
build_table (mi_cmds);
memset (&stats, 0, sizeof (stats));
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index b7b5ae3..12be2b7 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -1412,7 +1412,7 @@ mi_load_progress (const char *section_name,
}
static void
-mi_command_loop ()
+mi_command_loop (void)
{
/* HACK: Force stdout/stderr to point at the console. This avoids
any potential side effects caused by legacy code that is still
@@ -1468,7 +1468,7 @@ mi_command_loop ()
}
static void
-setup_architecture_data ()
+setup_architecture_data (void)
{
/* don't trust REGISTER_BYTES to be zero. */
old_regs = xmalloc (REGISTER_BYTES + 1);
@@ -1476,15 +1476,14 @@ setup_architecture_data ()
}
static void
-mi_init_ui (arg0)
- char *arg0;
+mi_init_ui (char *arg0)
{
/* Eventually this will contain code that takes control of the
console. */
}
void
-_initialize_mi_main ()
+_initialize_mi_main (void)
{
/* If we're _the_ interpreter, take control. */
if (interpreter_p
diff --git a/gdb/mi/mi-out.c b/gdb/mi/mi-out.c
index 8554a88..e70ba28 100644
--- a/gdb/mi/mi-out.c
+++ b/gdb/mi/mi-out.c
@@ -99,10 +99,7 @@ static void out_field_fmt (struct ui_out *uiout, int fldno, char *fldname,
/* Mark beginning of a table */
void
-mi_table_begin (uiout, nbrofcols, tblid)
- struct ui_out *uiout;
- int nbrofcols;
- char *tblid;
+mi_table_begin (struct ui_out *uiout, int nbrofcols, char *tblid)
{
struct ui_out_data *data = ui_out_data (uiout);
field_separator (uiout);
@@ -116,8 +113,7 @@ mi_table_begin (uiout, nbrofcols, tblid)
/* Mark beginning of a table body */
void
-mi_table_body (uiout)
- struct ui_out *uiout;
+mi_table_body (struct ui_out *uiout)
{
struct ui_out_data *data = ui_out_data (uiout);
/* close the table header line if there were any headers */
@@ -128,8 +124,7 @@ mi_table_body (uiout)
/* Mark end of a table */
void
-mi_table_end (uiout)
- struct ui_out *uiout;
+mi_table_end (struct ui_out *uiout)
{
struct ui_out_data *data = ui_out_data (uiout);
list_close (uiout);
@@ -140,11 +135,7 @@ mi_table_end (uiout)
/* Specify table header */
void
-mi_table_header (uiout, width, alignment, colhdr)
- struct ui_out *uiout;
- int width;
- int alignment;
- char *colhdr;
+mi_table_header (struct ui_out *uiout, int width, int alignment, char *colhdr)
{
struct ui_out_data *data = ui_out_data (uiout);
if (!data->first_header++)
@@ -158,10 +149,7 @@ mi_table_header (uiout, width, alignment, colhdr)
/* Mark beginning of a list */
void
-mi_list_begin (uiout, list_flag, lstid)
- struct ui_out *uiout;
- int list_flag;
- char *lstid;
+mi_list_begin (struct ui_out *uiout, int list_flag, char *lstid)
{
struct ui_out_data *data = ui_out_data (uiout);
field_separator (uiout);
@@ -174,9 +162,7 @@ mi_list_begin (uiout, list_flag, lstid)
/* Mark end of a list */
void
-mi_list_end (uiout, list_flag)
- struct ui_out *uiout;
- int list_flag;
+mi_list_end (struct ui_out *uiout, int list_flag)
{
struct ui_out_data *data = ui_out_data (uiout);
list_close (uiout);
@@ -187,13 +173,8 @@ mi_list_end (uiout, list_flag)
/* output an int field */
void
-mi_field_int (uiout, fldno, width, alignment, fldname, value)
- struct ui_out *uiout;
- int fldno;
- int width;
- int alignment;
- char *fldname;
- int value;
+mi_field_int (struct ui_out *uiout, int fldno, int width, int alignment,
+ char *fldname, int value)
{
char buffer[20]; /* FIXME: how many chars long a %d can become? */
@@ -204,12 +185,8 @@ mi_field_int (uiout, fldno, width, alignment, fldname, value)
/* used to ommit a field */
void
-mi_field_skip (uiout, fldno, width, alignment, fldname)
- struct ui_out *uiout;
- int fldno;
- int width;
- int alignment;
- char *fldname;
+mi_field_skip (struct ui_out *uiout, int fldno, int width, int alignment,
+ char *fldname)
{
mi_field_string (uiout, fldno, width, alignment, fldname, "");
}
@@ -253,16 +230,12 @@ mi_field_fmt (struct ui_out *uiout, int fldno,
}
void
-mi_spaces (uiout, numspaces)
- struct ui_out *uiout;
- int numspaces;
+mi_spaces (struct ui_out *uiout, int numspaces)
{
}
void
-mi_text (uiout, string)
- struct ui_out *uiout;
- char *string;
+mi_text (struct ui_out *uiout, char *string)
{
}
@@ -272,16 +245,13 @@ mi_message (struct ui_out *uiout, int verbosity, char *format, va_list args)
}
void
-mi_wrap_hint (uiout, identstring)
- struct ui_out *uiout;
- char *identstring;
+mi_wrap_hint (struct ui_out *uiout, char *identstring)
{
wrap_here (identstring);
}
void
-mi_flush (uiout)
- struct ui_out *uiout;
+mi_flush (struct ui_out *uiout)
{
struct ui_out_data *data = ui_out_data (uiout);
gdb_flush (data->buffer);
@@ -391,7 +361,7 @@ mi_out_new (void)
/* standard gdb initialization hook */
void
-_initialize_mi_out ()
+_initialize_mi_out (void)
{
/* nothing happens here */
}
diff --git a/gdb/mi/mi-parse.c b/gdb/mi/mi-parse.c
index 26c47a8..a739043 100644
--- a/gdb/mi/mi-parse.c
+++ b/gdb/mi/mi-parse.c
@@ -234,6 +234,6 @@ mi_parse (char *cmd)
}
void
-_initialize_mi_parse ()
+_initialize_mi_parse (void)
{
}
diff --git a/gdb/minsyms.c b/gdb/minsyms.c
index e6978e7..4bb5ed0 100644
--- a/gdb/minsyms.c
+++ b/gdb/minsyms.c
@@ -151,10 +151,8 @@ add_minsym_to_demangled_hash_table (struct minimal_symbol *sym,
names (the dynamic linker deals with the duplication). */
struct minimal_symbol *
-lookup_minimal_symbol (name, sfile, objf)
- register const char *name;
- const char *sfile;
- struct objfile *objf;
+lookup_minimal_symbol (register const char *name, const char *sfile,
+ struct objfile *objf)
{
struct objfile *objfile;
struct minimal_symbol *msymbol;
@@ -264,10 +262,8 @@ lookup_minimal_symbol (name, sfile, objf)
*/
struct minimal_symbol *
-lookup_minimal_symbol_text (name, sfile, objf)
- register const char *name;
- const char *sfile;
- struct objfile *objf;
+lookup_minimal_symbol_text (register const char *name, const char *sfile,
+ struct objfile *objf)
{
struct objfile *objfile;
struct minimal_symbol *msymbol;
@@ -341,10 +337,8 @@ lookup_minimal_symbol_text (name, sfile, objf)
*/
struct minimal_symbol *
-lookup_minimal_symbol_solib_trampoline (name, sfile, objf)
- register const char *name;
- const char *sfile;
- struct objfile *objf;
+lookup_minimal_symbol_solib_trampoline (register const char *name,
+ const char *sfile, struct objfile *objf)
{
struct objfile *objfile;
struct minimal_symbol *msymbol;
@@ -392,9 +386,7 @@ lookup_minimal_symbol_solib_trampoline (name, sfile, objf)
0x40000 and objfile B has .text at 0x234 and .data at 0x40048. */
struct minimal_symbol *
-lookup_minimal_symbol_by_pc_section (pc, section)
- CORE_ADDR pc;
- asection *section;
+lookup_minimal_symbol_by_pc_section (CORE_ADDR pc, asection *section)
{
int lo;
int hi;
@@ -510,18 +502,15 @@ lookup_minimal_symbol_by_pc_section (pc, section)
for a matching PC (no section given) */
struct minimal_symbol *
-lookup_minimal_symbol_by_pc (pc)
- CORE_ADDR pc;
+lookup_minimal_symbol_by_pc (CORE_ADDR pc)
{
return lookup_minimal_symbol_by_pc_section (pc, find_pc_mapped_section (pc));
}
#ifdef SOFUN_ADDRESS_MAYBE_MISSING
CORE_ADDR
-find_stab_function_addr (namestring, filename, objfile)
- char *namestring;
- char *filename;
- struct objfile *objfile;
+find_stab_function_addr (char *namestring, char *filename,
+ struct objfile *objfile)
{
struct minimal_symbol *msym;
char *p;
@@ -571,8 +560,7 @@ find_stab_function_addr (namestring, filename, objfile)
static int get_symbol_leading_char (bfd *);
static int
-get_symbol_leading_char (abfd)
- bfd *abfd;
+get_symbol_leading_char (bfd *abfd)
{
if (abfd != NULL)
return bfd_get_symbol_leading_char (abfd);
@@ -586,7 +574,7 @@ get_symbol_leading_char (abfd)
symbol to allocate the memory for the first bunch. */
void
-init_minimal_symbol_collection ()
+init_minimal_symbol_collection (void)
{
msym_count = 0;
msym_bunch = NULL;
@@ -594,11 +582,9 @@ init_minimal_symbol_collection ()
}
void
-prim_record_minimal_symbol (name, address, ms_type, objfile)
- const char *name;
- CORE_ADDR address;
- enum minimal_symbol_type ms_type;
- struct objfile *objfile;
+prim_record_minimal_symbol (const char *name, CORE_ADDR address,
+ enum minimal_symbol_type ms_type,
+ struct objfile *objfile)
{
int section;
@@ -629,15 +615,11 @@ prim_record_minimal_symbol (name, address, ms_type, objfile)
newly created. */
struct minimal_symbol *
-prim_record_minimal_symbol_and_info (name, address, ms_type, info, section,
- bfd_section, objfile)
- const char *name;
- CORE_ADDR address;
- enum minimal_symbol_type ms_type;
- char *info;
- int section;
- asection *bfd_section;
- struct objfile *objfile;
+prim_record_minimal_symbol_and_info (const char *name, CORE_ADDR address,
+ enum minimal_symbol_type ms_type,
+ char *info, int section,
+ asection *bfd_section,
+ struct objfile *objfile)
{
register struct msym_bunch *new;
register struct minimal_symbol *msymbol;
@@ -698,9 +680,7 @@ prim_record_minimal_symbol_and_info (name, address, ms_type, info, section,
Within groups with the same address, sort by name. */
static int
-compare_minimal_symbols (fn1p, fn2p)
- const PTR fn1p;
- const PTR fn2p;
+compare_minimal_symbols (const PTR fn1p, const PTR fn2p)
{
register const struct minimal_symbol *fn1;
register const struct minimal_symbol *fn2;
@@ -799,10 +779,8 @@ make_cleanup_discard_minimal_symbols (void)
overwrite its type with the type from the one we are compacting out. */
static int
-compact_minimal_symbols (msymbol, mcount, objfile)
- struct minimal_symbol *msymbol;
- int mcount;
- struct objfile *objfile;
+compact_minimal_symbols (struct minimal_symbol *msymbol, int mcount,
+ struct objfile *objfile)
{
struct minimal_symbol *copyfrom;
struct minimal_symbol *copyto;
@@ -859,8 +837,7 @@ compact_minimal_symbols (msymbol, mcount, objfile)
attempts to demangle them if we later add more minimal symbols. */
void
-install_minimal_symbols (objfile)
- struct objfile *objfile;
+install_minimal_symbols (struct objfile *objfile)
{
register int bindex;
register int mcount;
@@ -963,8 +940,7 @@ install_minimal_symbols (objfile)
/* Sort all the minimal symbols in OBJFILE. */
void
-msymbols_sort (objfile)
- struct objfile *objfile;
+msymbols_sort (struct objfile *objfile)
{
qsort (objfile->msymbols, objfile->minimal_symbol_count,
sizeof (struct minimal_symbol), compare_minimal_symbols);
@@ -975,8 +951,7 @@ msymbols_sort (objfile)
in a trampoline code stub. */
struct minimal_symbol *
-lookup_solib_trampoline_symbol_by_pc (pc)
- CORE_ADDR pc;
+lookup_solib_trampoline_symbol_by_pc (CORE_ADDR pc)
{
struct minimal_symbol *msymbol = lookup_minimal_symbol_by_pc (pc);
@@ -996,8 +971,7 @@ lookup_solib_trampoline_symbol_by_pc (pc)
a duplicate function in case this matters someday. */
CORE_ADDR
-find_solib_trampoline_target (pc)
- CORE_ADDR pc;
+find_solib_trampoline_target (CORE_ADDR pc)
{
struct objfile *objfile;
struct minimal_symbol *msymbol;
diff --git a/gdb/mips-nat.c b/gdb/mips-nat.c
index 5064d05..b9d20b7 100644
--- a/gdb/mips-nat.c
+++ b/gdb/mips-nat.c
@@ -68,8 +68,7 @@ static void fetch_core_registers (char *, unsigned, int, CORE_ADDR);
/* Get all registers from the inferior */
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
register unsigned int regaddr;
char buf[MAX_REGISTER_RAW_SIZE];
@@ -99,8 +98,7 @@ fetch_inferior_registers (regno)
Otherwise, REGNO specifies which register (so we can save time). */
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
register unsigned int regaddr;
char buf[80];
@@ -136,8 +134,7 @@ store_inferior_registers (regno)
This routine returns true on success. */
int
-get_longjmp_target (pc)
- CORE_ADDR *pc;
+get_longjmp_target (CORE_ADDR *pc)
{
CORE_ADDR jb_addr;
char buf[TARGET_PTR_BIT / TARGET_CHAR_BIT];
@@ -167,11 +164,8 @@ get_longjmp_target (pc)
*/
static void
-fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
- char *core_reg_sect;
- unsigned core_reg_size;
- int which;
- CORE_ADDR reg_addr;
+fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, int which,
+ CORE_ADDR reg_addr)
{
register int regno;
register unsigned int addr;
@@ -217,9 +211,7 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
BLOCKEND is the address of the end of the user structure. */
CORE_ADDR
-register_addr (regno, blockend)
- int regno;
- CORE_ADDR blockend;
+register_addr (int regno, CORE_ADDR blockend)
{
CORE_ADDR addr;
@@ -245,7 +237,7 @@ static struct core_fns mips_core_fns =
};
void
-_initialize_core_mips ()
+_initialize_core_mips (void)
{
add_core_fns (&mips_core_fns);
}
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index 1745e78..4139bbc 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -268,8 +268,7 @@ char *mips_generic_reg_names[] = MIPS_REGISTER_NAMES;
char **mips_processor_reg_names = mips_generic_reg_names;
char *
-mips_register_name (i)
- int i;
+mips_register_name (int i)
{
return mips_processor_reg_names[i];
}
@@ -499,9 +498,7 @@ show_mask_address (char *cmd, int from_tty)
/* Should call_function allocate stack space for a struct return? */
int
-mips_use_struct_convention (gcc_p, type)
- int gcc_p;
- struct type *type;
+mips_use_struct_convention (int gcc_p, struct type *type)
{
if (MIPS_EABI)
return (TYPE_LENGTH (type) > 2 * MIPS_SAVED_REGSIZE);
@@ -1714,10 +1711,8 @@ mips16_heuristic_proc_desc (CORE_ADDR start_pc, CORE_ADDR limit_pc,
}
static void
-mips32_heuristic_proc_desc (start_pc, limit_pc, next_frame, sp)
- CORE_ADDR start_pc, limit_pc;
- struct frame_info *next_frame;
- CORE_ADDR sp;
+mips32_heuristic_proc_desc (CORE_ADDR start_pc, CORE_ADDR limit_pc,
+ struct frame_info *next_frame, CORE_ADDR sp)
{
CORE_ADDR cur_pc;
CORE_ADDR frame_addr = 0; /* Value of $r30. Used by gcc for frame-pointer */
diff --git a/gdb/mipsm3-nat.c b/gdb/mipsm3-nat.c
index 5f4d50b..ba43b8d9 100644
--- a/gdb/mipsm3-nat.c
+++ b/gdb/mipsm3-nat.c
@@ -141,8 +141,7 @@ static int reg_offset[] =
/* Fech thread's registers. if regno == -1, fetch all regs */
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
kern_return_t ret;
@@ -296,8 +295,7 @@ fetch_inferior_registers (regno)
*/
void
-store_inferior_registers (regno)
- register int regno;
+store_inferior_registers (register int regno)
{
thread_state_data_t state;
kern_return_t ret;
diff --git a/gdb/mipsread.c b/gdb/mipsread.c
index 2c90b56..1a1c668 100644
--- a/gdb/mipsread.c
+++ b/gdb/mipsread.c
@@ -63,8 +63,7 @@ read_alphacoff_dynamic_symtab (struct section_offsets *,
extern CORE_ADDR sigtramp_address;
static void
-mipscoff_new_init (ignore)
- struct objfile *ignore;
+mipscoff_new_init (struct objfile *ignore)
{
sigtramp_address = 0;
stabsread_new_init ();
@@ -74,17 +73,14 @@ mipscoff_new_init (ignore)
/* Initialize to read a symbol file (nothing to do). */
static void
-mipscoff_symfile_init (objfile)
- struct objfile *objfile;
+mipscoff_symfile_init (struct objfile *objfile)
{
}
/* Read a symbol file from a file. */
static void
-mipscoff_symfile_read (objfile, mainline)
- struct objfile *objfile;
- int mainline;
+mipscoff_symfile_read (struct objfile *objfile, int mainline)
{
bfd *abfd = objfile->obfd;
struct cleanup *back_to;
@@ -136,8 +132,7 @@ mipscoff_symfile_read (objfile, mainline)
particular objfile. */
static void
-mipscoff_symfile_finish (objfile)
- struct objfile *objfile;
+mipscoff_symfile_finish (struct objfile *objfile)
{
}
@@ -198,10 +193,7 @@ static void alphacoff_locate_sections (bfd *, asection *, void *);
if so, stash away some access information for the section. */
static void
-alphacoff_locate_sections (ignore_abfd, sectp, sip)
- bfd *ignore_abfd;
- asection *sectp;
- PTR sip;
+alphacoff_locate_sections (bfd *ignore_abfd, asection *sectp, PTR sip)
{
register struct alphacoff_dynsecinfo *si;
@@ -229,9 +221,8 @@ alphacoff_locate_sections (ignore_abfd, sectp, sip)
add them to the minimal symbol table. */
static void
-read_alphacoff_dynamic_symtab (section_offsets, objfile)
- struct section_offsets *section_offsets;
- struct objfile *objfile;
+read_alphacoff_dynamic_symtab (struct section_offsets *section_offsets,
+ struct objfile *objfile)
{
bfd *abfd = objfile->obfd;
struct alphacoff_dynsecinfo si;
@@ -443,7 +434,7 @@ static struct sym_fns ecoff_sym_fns =
};
void
-_initialize_mipsread ()
+_initialize_mipsread (void)
{
add_symtab_fns (&ecoff_sym_fns);
}
diff --git a/gdb/mipsv4-nat.c b/gdb/mipsv4-nat.c
index 01ac8c0..d63e043 100644
--- a/gdb/mipsv4-nat.c
+++ b/gdb/mipsv4-nat.c
@@ -42,8 +42,7 @@
*/
void
-supply_gregset (gregsetp)
- gregset_t *gregsetp;
+supply_gregset (gregset_t *gregsetp)
{
register int regi;
register greg_t *regp = &(*gregsetp)[0];
@@ -68,9 +67,7 @@ supply_gregset (gregsetp)
}
void
-fill_gregset (gregsetp, regno)
- gregset_t *gregsetp;
- int regno;
+fill_gregset (gregset_t *gregsetp, int regno)
{
int regi;
register greg_t *regp = &(*gregsetp)[0];
@@ -101,8 +98,7 @@ fill_gregset (gregsetp, regno)
*/
void
-supply_fpregset (fpregsetp)
- fpregset_t *fpregsetp;
+supply_fpregset (fpregset_t *fpregsetp)
{
register int regi;
static char zerobuf[MAX_REGISTER_RAW_SIZE] =
@@ -119,9 +115,7 @@ supply_fpregset (fpregsetp)
}
void
-fill_fpregset (fpregsetp, regno)
- fpregset_t *fpregsetp;
- int regno;
+fill_fpregset (fpregset_t *fpregsetp, int regno)
{
int regi;
char *from, *to;
@@ -147,8 +141,7 @@ fill_fpregset (fpregsetp, regno)
This routine returns true on success. */
int
-get_longjmp_target (pc)
- CORE_ADDR *pc;
+get_longjmp_target (CORE_ADDR *pc)
{
char buf[TARGET_PTR_BIT / TARGET_CHAR_BIT];
CORE_ADDR jb_addr;
diff --git a/gdb/mn10200-tdep.c b/gdb/mn10200-tdep.c
index f8637e8..59cf238 100644
--- a/gdb/mn10200-tdep.c
+++ b/gdb/mn10200-tdep.c
@@ -32,9 +32,7 @@
/* Should call_function allocate stack space for a struct return? */
int
-mn10200_use_struct_convention (gcc_p, type)
- int gcc_p;
- struct type *type;
+mn10200_use_struct_convention (int gcc_p, struct type *type)
{
return (TYPE_NFIELDS (type) > 1 || TYPE_LENGTH (type) > 8);
}
@@ -112,9 +110,7 @@ mn10200_use_struct_convention (gcc_p, type)
#define NO_MORE_FRAMES 0x8
static CORE_ADDR
-mn10200_analyze_prologue (fi, pc)
- struct frame_info *fi;
- CORE_ADDR pc;
+mn10200_analyze_prologue (struct frame_info *fi, CORE_ADDR pc)
{
CORE_ADDR func_addr, func_end, addr, stop;
CORE_ADDR stack_size;
@@ -609,8 +605,7 @@ mn10200_analyze_prologue (fi, pc)
stack pointer that was in use at the time the function call was made? */
CORE_ADDR
-mn10200_frame_chain (fi)
- struct frame_info *fi;
+mn10200_frame_chain (struct frame_info *fi)
{
struct frame_info dummy_frame;
@@ -674,8 +669,7 @@ mn10200_frame_chain (fi)
Return the address of the first inst past the prologue of the function. */
CORE_ADDR
-mn10200_skip_prologue (pc)
- CORE_ADDR pc;
+mn10200_skip_prologue (CORE_ADDR pc)
{
/* We used to check the debug symbols, but that can lose if
we have a null prologue. */
@@ -687,8 +681,7 @@ mn10200_skip_prologue (pc)
command, or the call dummy breakpoint gets hit. */
void
-mn10200_pop_frame (frame)
- struct frame_info *frame;
+mn10200_pop_frame (struct frame_info *frame)
{
int regnum;
@@ -724,12 +717,8 @@ mn10200_pop_frame (frame)
order on the stack. */
CORE_ADDR
-mn10200_push_arguments (nargs, args, sp, struct_return, struct_addr)
- int nargs;
- value_ptr *args;
- CORE_ADDR sp;
- unsigned char struct_return;
- CORE_ADDR struct_addr;
+mn10200_push_arguments (int nargs, value_ptr *args, CORE_ADDR sp,
+ unsigned char struct_return, CORE_ADDR struct_addr)
{
int argnum = 0;
int len = 0;
@@ -833,9 +822,7 @@ mn10200_push_arguments (nargs, args, sp, struct_return, struct_addr)
Needed for targets where we don't actually execute a JSR/BSR instruction */
CORE_ADDR
-mn10200_push_return_address (pc, sp)
- CORE_ADDR pc;
- CORE_ADDR sp;
+mn10200_push_return_address (CORE_ADDR pc, CORE_ADDR sp)
{
unsigned char buf[4];
@@ -849,9 +836,7 @@ mn10200_push_return_address (pc, sp)
call. */
CORE_ADDR
-mn10200_store_struct_return (addr, sp)
- CORE_ADDR addr;
- CORE_ADDR sp;
+mn10200_store_struct_return (CORE_ADDR addr, CORE_ADDR sp)
{
/* The structure return address is passed as the first argument. */
write_register (0, addr);
@@ -866,8 +851,7 @@ mn10200_store_struct_return (addr, sp)
will be found. */
CORE_ADDR
-mn10200_frame_saved_pc (fi)
- struct frame_info *fi;
+mn10200_frame_saved_pc (struct frame_info *fi)
{
/* The saved PC will always be at the base of the current frame. */
return (read_memory_integer (fi->frame, REGISTER_SIZE) & 0xffffff);
@@ -888,8 +872,7 @@ mn10200_frame_saved_pc (fi)
pointer just prior to calling the target function (see run_stack_dummy). */
void
-mn10200_init_extra_frame_info (fi)
- struct frame_info *fi;
+mn10200_init_extra_frame_info (struct frame_info *fi)
{
if (fi->next)
fi->pc = FRAME_SAVED_PC (fi->next);
@@ -902,7 +885,7 @@ mn10200_init_extra_frame_info (fi)
}
void
-_initialize_mn10200_tdep ()
+_initialize_mn10200_tdep (void)
{
tm_print_insn = print_insn_mn10200;
}
diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c
index 8311a9e..a30b56c 100644
--- a/gdb/mn10300-tdep.c
+++ b/gdb/mn10300-tdep.c
@@ -58,24 +58,19 @@ static char *am33_register_names[] =
static int am33_mode;
char *
-mn10300_register_name (i)
- int i;
+mn10300_register_name (int i)
{
return mn10300_register_names[i];
}
CORE_ADDR
-mn10300_saved_pc_after_call (fi)
- struct frame_info *fi;
+mn10300_saved_pc_after_call (struct frame_info *fi)
{
return read_memory_integer (read_register (SP_REGNUM), 4);
}
void
-mn10300_extract_return_value (type, regbuf, valbuf)
- struct type *type;
- char *regbuf;
- char *valbuf;
+mn10300_extract_return_value (struct type *type, char *regbuf, char *valbuf)
{
if (TYPE_CODE (type) == TYPE_CODE_PTR)
memcpy (valbuf, regbuf + REGISTER_BYTE (4), TYPE_LENGTH (type));
@@ -84,17 +79,14 @@ mn10300_extract_return_value (type, regbuf, valbuf)
}
CORE_ADDR
-mn10300_extract_struct_value_address (regbuf)
- char *regbuf;
+mn10300_extract_struct_value_address (char *regbuf)
{
return extract_address (regbuf + REGISTER_BYTE (4),
REGISTER_RAW_SIZE (4));
}
void
-mn10300_store_return_value (type, valbuf)
- struct type *type;
- char *valbuf;
+mn10300_store_return_value (struct type *type, char *valbuf)
{
if (TYPE_CODE (type) == TYPE_CODE_PTR)
write_register_bytes (REGISTER_BYTE (4), valbuf, TYPE_LENGTH (type));
@@ -104,9 +96,7 @@ mn10300_store_return_value (type, valbuf)
static struct frame_info *analyze_dummy_frame (CORE_ADDR, CORE_ADDR);
static struct frame_info *
-analyze_dummy_frame (pc, frame)
- CORE_ADDR pc;
- CORE_ADDR frame;
+analyze_dummy_frame (CORE_ADDR pc, CORE_ADDR frame)
{
static struct frame_info *dummy = NULL;
if (dummy == NULL)
@@ -135,9 +125,7 @@ analyze_dummy_frame (pc, frame)
/* Should call_function allocate stack space for a struct return? */
int
-mn10300_use_struct_convention (gcc_p, type)
- int gcc_p;
- struct type *type;
+mn10300_use_struct_convention (int gcc_p, struct type *type)
{
return (TYPE_NFIELDS (type) > 1 || TYPE_LENGTH (type) > 8);
}
@@ -150,9 +138,7 @@ mn10300_use_struct_convention (gcc_p, type)
one, so we defined it ourselves. */
unsigned char *
-mn10300_breakpoint_from_pc (bp_addr, bp_size)
- CORE_ADDR *bp_addr;
- int *bp_size;
+mn10300_breakpoint_from_pc (CORE_ADDR *bp_addr, int *bp_size)
{
static char breakpoint[] =
{0xff};
@@ -165,9 +151,7 @@ mn10300_breakpoint_from_pc (bp_addr, bp_size)
function for mn10300_analyze_prologue. */
static void
-fix_frame_pointer (fi, stack_size)
- struct frame_info *fi;
- int stack_size;
+fix_frame_pointer (struct frame_info *fi, int stack_size)
{
if (fi && fi->next == NULL)
{
@@ -183,9 +167,7 @@ fix_frame_pointer (fi, stack_size)
This is a helper function for mn10300_analyze_prologue. */
static void
-set_movm_offsets (fi, movm_args)
- struct frame_info *fi;
- int movm_args;
+set_movm_offsets (struct frame_info *fi, int movm_args)
{
int offset = 0;
@@ -271,9 +253,7 @@ set_movm_offsets (fi, movm_args)
frame chain to not bother trying to unwind past this frame. */
static CORE_ADDR
-mn10300_analyze_prologue (fi, pc)
- struct frame_info *fi;
- CORE_ADDR pc;
+mn10300_analyze_prologue (struct frame_info *fi, CORE_ADDR pc)
{
CORE_ADDR func_addr, func_end, addr, stop;
CORE_ADDR stack_size;
@@ -515,8 +495,7 @@ mn10300_analyze_prologue (fi, pc)
stack pointer that was in use at the time the function call was made? */
CORE_ADDR
-mn10300_frame_chain (fi)
- struct frame_info *fi;
+mn10300_frame_chain (struct frame_info *fi)
{
struct frame_info *dummy;
/* Walk through the prologue to determine the stack size,
@@ -583,8 +562,7 @@ mn10300_frame_chain (fi)
Return the address of the first inst past the prologue of the function. */
CORE_ADDR
-mn10300_skip_prologue (pc)
- CORE_ADDR pc;
+mn10300_skip_prologue (CORE_ADDR pc)
{
/* We used to check the debug symbols, but that can lose if
we have a null prologue. */
@@ -597,8 +575,7 @@ mn10300_skip_prologue (pc)
command, or the call dummy breakpoint gets hit. */
void
-mn10300_pop_frame (frame)
- struct frame_info *frame;
+mn10300_pop_frame (struct frame_info *frame)
{
int regnum;
@@ -634,12 +611,8 @@ mn10300_pop_frame (frame)
order on the stack. */
CORE_ADDR
-mn10300_push_arguments (nargs, args, sp, struct_return, struct_addr)
- int nargs;
- value_ptr *args;
- CORE_ADDR sp;
- unsigned char struct_return;
- CORE_ADDR struct_addr;
+mn10300_push_arguments (int nargs, value_ptr *args, CORE_ADDR sp,
+ unsigned char struct_return, CORE_ADDR struct_addr)
{
int argnum = 0;
int len = 0;
@@ -719,9 +692,7 @@ mn10300_push_arguments (nargs, args, sp, struct_return, struct_addr)
Needed for targets where we don't actually execute a JSR/BSR instruction */
CORE_ADDR
-mn10300_push_return_address (pc, sp)
- CORE_ADDR pc;
- CORE_ADDR sp;
+mn10300_push_return_address (CORE_ADDR pc, CORE_ADDR sp)
{
unsigned char buf[4];
@@ -735,9 +706,7 @@ mn10300_push_return_address (pc, sp)
call. */
CORE_ADDR
-mn10300_store_struct_return (addr, sp)
- CORE_ADDR addr;
- CORE_ADDR sp;
+mn10300_store_struct_return (CORE_ADDR addr, CORE_ADDR sp)
{
/* The structure return address is passed as the first argument. */
write_register (0, addr);
@@ -752,8 +721,7 @@ mn10300_store_struct_return (addr, sp)
will be found. */
CORE_ADDR
-mn10300_frame_saved_pc (fi)
- struct frame_info *fi;
+mn10300_frame_saved_pc (struct frame_info *fi)
{
int adjust = 0;
@@ -787,8 +755,7 @@ mn10300_frame_saved_pc (fi)
pointer just prior to calling the target function (see run_stack_dummy). */
void
-mn10300_init_extra_frame_info (fi)
- struct frame_info *fi;
+mn10300_init_extra_frame_info (struct frame_info *fi)
{
if (fi->next)
fi->pc = FRAME_SAVED_PC (fi->next);
@@ -809,10 +776,7 @@ mn10300_init_extra_frame_info (fi)
any frame pointer offsets. */
void
-mn10300_virtual_frame_pointer (pc, reg, offset)
- CORE_ADDR pc;
- long *reg;
- long *offset;
+mn10300_virtual_frame_pointer (CORE_ADDR pc, long *reg, long *offset)
{
struct frame_info *dummy = analyze_dummy_frame (pc, 0);
/* Set up a dummy frame_info, Analyze the prolog and fill in the
@@ -832,8 +796,7 @@ mn10300_virtual_frame_pointer (pc, reg, offset)
/* This can be made more generic later. */
static void
-set_machine_hook (filename)
- char *filename;
+set_machine_hook (char *filename)
{
int i;
@@ -853,7 +816,7 @@ set_machine_hook (filename)
}
void
-_initialize_mn10300_tdep ()
+_initialize_mn10300_tdep (void)
{
/* printf("_initialize_mn10300_tdep\n"); */
diff --git a/gdb/mon960-rom.c b/gdb/mon960-rom.c
index 1912397..a761fc2 100644
--- a/gdb/mon960-rom.c
+++ b/gdb/mon960-rom.c
@@ -39,9 +39,7 @@ static void mon960_open (char *args, int from_tty);
#ifdef USE_GENERIC_LOAD
static void
-mon960_load_gen (filename, from_tty)
- char *filename;
- int from_tty;
+mon960_load_gen (char *filename, int from_tty)
{
extern int inferior_pid;
@@ -56,10 +54,7 @@ mon960_load_gen (filename, from_tty)
#else
static void
-mon960_load (desc, file, hashmark)
- serial_t desc;
- char *file;
- int hashmark;
+mon960_load (serial_t desc, char *file, int hashmark)
{
bfd *abfd;
asection *s;
@@ -217,9 +212,7 @@ init_mon960_cmds (void)
};
static void
-mon960_open (args, from_tty)
- char *args;
- int from_tty;
+mon960_open (char *args, int from_tty)
{
char buf[64];
@@ -242,7 +235,7 @@ mon960_open (args, from_tty)
}
void
-_initialize_mon960 ()
+_initialize_mon960 (void)
{
memcpy (mon960_regnames, full_regnames, sizeof (full_regnames));
diff --git a/gdb/monitor.c b/gdb/monitor.c
index 0381754..e3fa1c8 100644
--- a/gdb/monitor.c
+++ b/gdb/monitor.c
@@ -243,8 +243,7 @@ monitor_error (char *function, char *message,
/* Convert hex digit A to a number. */
static int
-fromhex (a)
- int a;
+fromhex (int a)
{
if (a >= '0' && a <= '9')
return a - '0';
@@ -271,10 +270,7 @@ fromhex (a)
*/
static void
-monitor_vsprintf (sndbuf, pattern, args)
- char *sndbuf;
- char *pattern;
- va_list args;
+monitor_vsprintf (char *sndbuf, char *pattern, va_list args)
{
char format[10];
char fmt;
@@ -391,9 +387,7 @@ monitor_printf (char *pattern,...)
/* Write characters to the remote system. */
void
-monitor_write (buf, buflen)
- char *buf;
- int buflen;
+monitor_write (char *buf, int buflen)
{
if (SERIAL_WRITE (monitor_desc, buf, buflen))
fprintf_unfiltered (gdb_stderr, "SERIAL_WRITE failed: %s\n",
@@ -406,7 +400,7 @@ monitor_write (buf, buflen)
and without printing remote debug information. */
int
-monitor_readchar ()
+monitor_readchar (void)
{
int c;
int looping;
@@ -435,8 +429,7 @@ monitor_readchar ()
timeout stuff. */
static int
-readchar (timeout)
- int timeout;
+readchar (int timeout)
{
int c;
static enum
@@ -514,10 +507,7 @@ readchar (timeout)
will be at the end of BUF. */
int
-monitor_expect (string, buf, buflen)
- char *string;
- char *buf;
- int buflen;
+monitor_expect (char *string, char *buf, int buflen)
{
char *p = string;
int obuflen = buflen;
@@ -622,10 +612,7 @@ monitor_expect (string, buf, buflen)
/* Search for a regexp. */
static int
-monitor_expect_regexp (pat, buf, buflen)
- struct re_pattern_buffer *pat;
- char *buf;
- int buflen;
+monitor_expect_regexp (struct re_pattern_buffer *pat, char *buf, int buflen)
{
char *mybuf;
char *p;
@@ -676,9 +663,7 @@ monitor_expect_regexp (pat, buf, buflen)
getting into states from which we can't recover. */
int
-monitor_expect_prompt (buf, buflen)
- char *buf;
- int buflen;
+monitor_expect_prompt (char *buf, int buflen)
{
monitor_debug ("MON Expecting prompt\n");
return monitor_expect (current_monitor->prompt, buf, buflen);
@@ -689,7 +674,7 @@ monitor_expect_prompt (buf, buflen)
#if 0
static unsigned long
-get_hex_word ()
+get_hex_word (void)
{
unsigned long val;
int i;
@@ -714,10 +699,8 @@ get_hex_word ()
#endif
static void
-compile_pattern (pattern, compiled_pattern, fastmap)
- char *pattern;
- struct re_pattern_buffer *compiled_pattern;
- char *fastmap;
+compile_pattern (char *pattern, struct re_pattern_buffer *compiled_pattern,
+ char *fastmap)
{
int tmp;
const char *val;
@@ -741,10 +724,7 @@ compile_pattern (pattern, compiled_pattern, fastmap)
for communication. */
void
-monitor_open (args, mon_ops, from_tty)
- char *args;
- struct monitor_ops *mon_ops;
- int from_tty;
+monitor_open (char *args, struct monitor_ops *mon_ops, int from_tty)
{
char *name;
char **p;
@@ -869,8 +849,7 @@ monitor_open (args, mon_ops, from_tty)
control. */
void
-monitor_close (quitting)
- int quitting;
+monitor_close (int quitting)
{
if (monitor_desc)
SERIAL_CLOSE (monitor_desc);
@@ -889,9 +868,7 @@ monitor_close (quitting)
when you want to detach and do something else with your gdb. */
static void
-monitor_detach (args, from_tty)
- char *args;
- int from_tty;
+monitor_detach (char *args, int from_tty)
{
pop_target (); /* calls monitor_close to do the real work */
if (from_tty)
@@ -901,9 +878,7 @@ monitor_detach (args, from_tty)
/* Convert VALSTR into the target byte-ordered value of REGNO and store it. */
char *
-monitor_supply_register (regno, valstr)
- int regno;
- char *valstr;
+monitor_supply_register (int regno, char *valstr)
{
ULONGEST val;
unsigned char regbuf[MAX_REGISTER_RAW_SIZE];
@@ -950,15 +925,13 @@ monitor_supply_register (regno, valstr)
/* Tell the remote machine to resume. */
void
-flush_monitor_dcache ()
+flush_monitor_dcache (void)
{
dcache_flush (remote_dcache);
}
static void
-monitor_resume (pid, step, sig)
- int pid, step;
- enum target_signal sig;
+monitor_resume (int pid, int step, enum target_signal sig)
{
/* Some monitors require a different command when starting a program */
monitor_debug ("MON resume\n");
@@ -990,9 +963,7 @@ monitor_resume (pid, step, sig)
string which are passed down to monitor specific code. */
static void
-parse_register_dump (buf, len)
- char *buf;
- int len;
+parse_register_dump (char *buf, int len)
{
monitor_debug ("MON Parsing register dump\n");
while (1)
@@ -1025,8 +996,7 @@ parse_register_dump (buf, len)
packet. */
static void
-monitor_interrupt (signo)
- int signo;
+monitor_interrupt (int signo)
{
/* If this doesn't work, try more severe steps. */
signal (signo, monitor_interrupt_twice);
@@ -1040,8 +1010,7 @@ monitor_interrupt (signo)
/* The user typed ^C twice. */
static void
-monitor_interrupt_twice (signo)
- int signo;
+monitor_interrupt_twice (int signo)
{
signal (signo, ofunc);
@@ -1053,7 +1022,7 @@ monitor_interrupt_twice (signo)
/* Ask the user what to do when an interrupt is received. */
static void
-monitor_interrupt_query ()
+monitor_interrupt_query (void)
{
target_terminal_ours ();
@@ -1068,8 +1037,7 @@ Give up (and stop debugging it)? "))
}
static void
-monitor_wait_cleanup (old_timeout)
- void *old_timeout;
+monitor_wait_cleanup (void *old_timeout)
{
timeout = *(int *) old_timeout;
signal (SIGINT, ofunc);
@@ -1115,9 +1083,7 @@ monitor_wait_filter (char *buf,
status just as `wait' would. */
static int
-monitor_wait (pid, status)
- int pid;
- struct target_waitstatus *status;
+monitor_wait (int pid, struct target_waitstatus *status)
{
int old_timeout = timeout;
char buf[TARGET_BUF_SIZE];
@@ -1200,8 +1166,7 @@ monitor_wait (pid, status)
errno value. */
static void
-monitor_fetch_register (regno)
- int regno;
+monitor_fetch_register (int regno)
{
char *name;
char *zerobuf;
@@ -1320,7 +1285,7 @@ monitor_dump_reg_block (char *block_cmd)
/* Call the specific function if it has been provided */
static void
-monitor_dump_regs ()
+monitor_dump_regs (void)
{
char buf[TARGET_BUF_SIZE];
int resp_len;
@@ -1337,8 +1302,7 @@ monitor_dump_regs ()
}
static void
-monitor_fetch_registers (regno)
- int regno;
+monitor_fetch_registers (int regno)
{
monitor_debug ("MON fetchregs\n");
if (current_monitor->getreg.cmd)
@@ -1361,8 +1325,7 @@ monitor_fetch_registers (regno)
/* Store register REGNO, or all if REGNO == 0. Return errno value. */
static void
-monitor_store_register (regno)
- int regno;
+monitor_store_register (int regno)
{
char *name;
ULONGEST val;
@@ -1408,8 +1371,7 @@ monitor_store_register (regno)
/* Store the remote registers. */
static void
-monitor_store_registers (regno)
- int regno;
+monitor_store_registers (int regno)
{
if (regno >= 0)
{
@@ -1428,23 +1390,19 @@ monitor_store_registers (regno)
debugged. */
static void
-monitor_prepare_to_store ()
+monitor_prepare_to_store (void)
{
/* Do nothing, since we can store individual regs */
}
static void
-monitor_files_info (ops)
- struct target_ops *ops;
+monitor_files_info (struct target_ops *ops)
{
printf_unfiltered ("\tAttached to %s at %d baud.\n", dev_name, baud_rate);
}
static int
-monitor_write_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+monitor_write_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
unsigned int val, hostval;
char *cmd;
@@ -1540,10 +1498,7 @@ monitor_write_memory (memaddr, myaddr, len)
static int
-monitor_write_even_block (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+monitor_write_even_block (CORE_ADDR memaddr, char *myaddr, int len)
{
unsigned int val;
int written = 0;;
@@ -1570,10 +1525,7 @@ monitor_write_even_block (memaddr, myaddr, len)
static int
-monitor_write_memory_bytes (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+monitor_write_memory_bytes (CORE_ADDR memaddr, char *myaddr, int len)
{
unsigned char val;
int written = 0;
@@ -1665,10 +1617,7 @@ longlong_hexchars (unsigned long long value,
Which possably entails endian conversions
*/
static int
-monitor_write_memory_longlongs (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+monitor_write_memory_longlongs (CORE_ADDR memaddr, char *myaddr, int len)
{
static char hexstage[20]; /* At least 16 digits required, plus null */
char *endstring;
@@ -1716,10 +1665,7 @@ monitor_write_memory_longlongs (memaddr, myaddr, len)
*/
static int
-monitor_write_memory_block (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+monitor_write_memory_block (CORE_ADDR memaddr, char *myaddr, int len)
{
int written;
written = 0;
@@ -1749,10 +1695,7 @@ monitor_write_memory_block (memaddr, myaddr, len)
which can only read a single byte/word/etc. at a time. */
static int
-monitor_read_memory_single (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+monitor_read_memory_single (CORE_ADDR memaddr, char *myaddr, int len)
{
unsigned int val;
char membuf[sizeof (int) * 2 + 1];
@@ -1879,10 +1822,7 @@ monitor_read_memory_single (memaddr, myaddr, len)
than 16 bytes at a time. */
static int
-monitor_read_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+monitor_read_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
unsigned int val;
char buf[512];
@@ -2067,7 +2007,7 @@ monitor_xfer_memory (memaddr, myaddr, len, write, target)
}
static void
-monitor_kill ()
+monitor_kill (void)
{
return; /* ignore attempts to kill target system */
}
@@ -2076,10 +2016,7 @@ monitor_kill ()
the program at that point. */
static void
-monitor_create_inferior (exec_file, args, env)
- char *exec_file;
- char *args;
- char **env;
+monitor_create_inferior (char *exec_file, char *args, char **env)
{
if (args && (*args != '\000'))
error ("Args are not supported by the monitor.");
@@ -2095,7 +2032,7 @@ monitor_create_inferior (exec_file, args, env)
instructions. */
static void
-monitor_mourn_inferior ()
+monitor_mourn_inferior (void)
{
unpush_target (targ_ops);
generic_mourn_inferior (); /* Do all the proper things now */
@@ -2104,9 +2041,7 @@ monitor_mourn_inferior ()
/* Tell the monitor to add a breakpoint. */
static int
-monitor_insert_breakpoint (addr, shadow)
- CORE_ADDR addr;
- char *shadow;
+monitor_insert_breakpoint (CORE_ADDR addr, char *shadow)
{
int i;
unsigned char *bp;
@@ -2140,9 +2075,7 @@ monitor_insert_breakpoint (addr, shadow)
/* Tell the monitor to remove a breakpoint. */
static int
-monitor_remove_breakpoint (addr, shadow)
- CORE_ADDR addr;
- char *shadow;
+monitor_remove_breakpoint (CORE_ADDR addr, char *shadow)
{
int i;
@@ -2179,7 +2112,7 @@ monitor_remove_breakpoint (addr, shadow)
an S-record. Return non-zero if the ACK is received properly. */
static int
-monitor_wait_srec_ack ()
+monitor_wait_srec_ack (void)
{
int ch;
@@ -2205,9 +2138,7 @@ monitor_wait_srec_ack ()
/* monitor_load -- download a file. */
static void
-monitor_load (file, from_tty)
- char *file;
- int from_tty;
+monitor_load (char *file, int from_tty)
{
dcache_flush (remote_dcache);
monitor_debug ("MON load\n");
@@ -2256,7 +2187,7 @@ monitor_load (file, from_tty)
}
static void
-monitor_stop ()
+monitor_stop (void)
{
monitor_debug ("MON stop\n");
if ((current_monitor->flags & MO_SEND_BREAK_ON_STOP) != 0)
@@ -2296,8 +2227,7 @@ monitor_rcmd (char *command,
#if 0
static int
-from_hex (a)
- int a;
+from_hex (int a)
{
if (a >= '0' && a <= '9')
return a - '0';
@@ -2311,7 +2241,7 @@ from_hex (a)
#endif
char *
-monitor_get_dev_name ()
+monitor_get_dev_name (void)
{
return dev_name;
}
@@ -2390,8 +2320,7 @@ init_base_monitor_ops (void)
/* Init the target_ops structure pointed at by OPS */
void
-init_monitor_ops (ops)
- struct target_ops *ops;
+init_monitor_ops (struct target_ops *ops)
{
if (monitor_ops.to_magic != OPS_MAGIC)
init_base_monitor_ops ();
@@ -2402,7 +2331,7 @@ init_monitor_ops (ops)
/* Define additional commands that are usually only used by monitors. */
void
-_initialize_remote_monitors ()
+_initialize_remote_monitors (void)
{
init_base_monitor_ops ();
add_show_from_set (add_set_cmd ("hash", no_class, var_boolean,
diff --git a/gdb/news-xdep.c b/gdb/news-xdep.c
index b3732fb..9f32b43 100644
--- a/gdb/news-xdep.c
+++ b/gdb/news-xdep.c
@@ -55,8 +55,7 @@
*/
-execle (name, args)
- char *name, *args;
+execle (char *name, char *args)
{
register char **env = &args;
while (*env++)
diff --git a/gdb/nindy-tdep.c b/gdb/nindy-tdep.c
index 4f4fd53..eb1d7bd 100644
--- a/gdb/nindy-tdep.c
+++ b/gdb/nindy-tdep.c
@@ -34,9 +34,7 @@
they display this frame. */
int
-nindy_frame_chain_valid (chain, curframe)
- CORE_ADDR chain;
- struct frame_info *curframe;
+nindy_frame_chain_valid (CORE_ADDR chain, struct frame_info *curframe)
{
struct symbol *sym;
struct minimal_symbol *msymbol;
diff --git a/gdb/nlm/gdbserve.c b/gdb/nlm/gdbserve.c
index 62adf3a..990a3f9 100644
--- a/gdb/nlm/gdbserve.c
+++ b/gdb/nlm/gdbserve.c
@@ -166,7 +166,7 @@ static int __main() {};
that's OK because we will be the only thread running anyhow. */
static int
-getDebugChar ()
+getDebugChar (void)
{
int err;
LONG got;
@@ -191,8 +191,7 @@ getDebugChar ()
non-zero on success. */
static int
-putDebugChar (c)
- unsigned char c;
+putDebugChar (unsigned char c)
{
int err;
LONG put;
@@ -210,8 +209,7 @@ putDebugChar (c)
/* Turn a hex character into a number. */
static int
-hex (ch)
- char ch;
+hex (char ch)
{
if ((ch >= 'a') && (ch <= 'f'))
return (ch-'a'+10);
@@ -226,8 +224,7 @@ hex (ch)
non-zero on success. */
static int
-getpacket (buffer)
- char * buffer;
+getpacket (char *buffer)
{
unsigned char checksum;
unsigned char xmitcsum;
@@ -312,8 +309,7 @@ getpacket (buffer)
success. */
static int
-putpacket (buffer)
- char * buffer;
+putpacket (char *buffer)
{
unsigned char checksum;
int count;
@@ -357,9 +353,7 @@ static char remcomOutBuffer[BUFMAX];
static short error;
static void
-debug_error (format, parm)
- char *format;
- char *parm;
+debug_error (char *format, char *parm)
{
if (remote_debug)
{
@@ -382,16 +376,13 @@ volatile int mem_err = 0;
saved). */
int
-get_char (addr)
- char *addr;
+get_char (char *addr)
{
return *addr;
}
void
-set_char (addr, val)
- char *addr;
- int val;
+set_char (char *addr, int val)
{
*addr = val;
}
@@ -403,11 +394,7 @@ set_char (addr, val)
a fault; if zero treat a fault like any other fault in the stub. */
char *
-mem2hex (mem, buf, count, may_fault)
- void *mem;
- char *buf;
- int count;
- int may_fault;
+mem2hex (void *mem, char *buf, int count, int may_fault)
{
int i;
unsigned char ch;
@@ -431,11 +418,7 @@ mem2hex (mem, buf, count, may_fault)
/* return a pointer to the character AFTER the last byte written */
char *
-hex2mem (buf, mem, count, may_fault)
- char *buf;
- void *mem;
- int count;
- int may_fault;
+hex2mem (char *buf, void *mem, int count, int may_fault)
{
int i;
unsigned char ch;
@@ -458,8 +441,7 @@ hex2mem (buf, mem, count, may_fault)
translate this number into a unix compatible signal value. */
int
-computeSignal (exceptionVector)
- int exceptionVector;
+computeSignal (int exceptionVector)
{
int sigval;
switch (exceptionVector)
@@ -490,9 +472,7 @@ computeSignal (exceptionVector)
/* RETURN NUMBER OF CHARS PROCESSED */
/**********************************************/
static int
-hexToInt(ptr, intValue)
- char **ptr;
- int *intValue;
+hexToInt (char **ptr, int *intValue)
{
int numChars = 0;
int hexValue;
@@ -521,8 +501,7 @@ hexToInt(ptr, intValue)
debugged. */
static LONG
-handle_exception (frame)
- struct StackFrame *frame;
+handle_exception (struct StackFrame *frame)
{
int addr, length;
char *ptr;
@@ -810,9 +789,7 @@ char parity[] = "NOEMS";
to have to figure out how to do that. */
int
-main (argc, argv)
- int argc;
- char **argv;
+main (int argc, char **argv)
{
int hardware, board, port;
BYTE bitRate;
diff --git a/gdb/nlm/i386.c b/gdb/nlm/i386.c
index 560198e..b8ab480 100644
--- a/gdb/nlm/i386.c
+++ b/gdb/nlm/i386.c
@@ -16,16 +16,14 @@ extern char *hex2mem (char *buf, void *mem, int count, int may_fault);
extern int computeSignal (int exceptionVector);
void
-flush_i_cache()
+flush_i_cache (void)
{
}
/* Get the registers out of the frame information. */
void
-frame_to_registers (frame, regs)
- struct StackFrame *frame;
- char *regs;
+frame_to_registers (struct StackFrame *frame, char *regs)
{
/* Copy EAX -> EDI */
mem2hex (&frame->ExceptionEAX, &regs[0 * 4 * 2], 4 * 8, 0);
@@ -46,9 +44,7 @@ frame_to_registers (frame, regs)
/* Put the registers back into the frame information. */
void
-registers_to_frame (regs, frame)
- char *regs;
- struct StackFrame *frame;
+registers_to_frame (char *regs, struct StackFrame *frame)
{
/* Copy EAX -> EDI */
hex2mem (&regs[0 * 4 * 2], &frame->ExceptionEAX, 4 * 8, 0);
@@ -67,23 +63,19 @@ registers_to_frame (regs, frame)
}
void
-set_step_traps (frame)
- struct StackFrame *frame;
+set_step_traps (struct StackFrame *frame)
{
frame->ExceptionSystemFlags |= 0x100;
}
void
-clear_step_traps (frame)
- struct StackFrame *frame;
+clear_step_traps (struct StackFrame *frame)
{
frame->ExceptionSystemFlags &= ~0x100;
}
void
-do_status (ptr, frame)
- char *ptr;
- struct StackFrame *frame;
+do_status (char *ptr, struct StackFrame *frame)
{
int sigval;
diff --git a/gdb/nlm/ppc.c b/gdb/nlm/ppc.c
index e68397b..c5850ab 100644
--- a/gdb/nlm/ppc.c
+++ b/gdb/nlm/ppc.c
@@ -24,9 +24,7 @@ flush_i_cache (void)
/* Get the registers out of the frame information. */
void
-frame_to_registers (frame, regs)
- struct StackFrame *frame;
- char *regs;
+frame_to_registers (struct StackFrame *frame, char *regs)
{
mem2hex (&frame->ExceptionState.CsavedRegs, &regs[GP0_REGNUM * 4 * 2], 4 * 32, 0);
@@ -44,9 +42,7 @@ frame_to_registers (frame, regs)
/* Put the registers back into the frame information. */
void
-registers_to_frame (regs, frame)
- char *regs;
- struct StackFrame *frame;
+registers_to_frame (char *regs, struct StackFrame *frame)
{
hex2mem (&regs[GP0_REGNUM * 4 * 2], &frame->ExceptionState.CsavedRegs, 4 * 32, 0);
@@ -68,8 +64,7 @@ extern volatile int mem_err;
extern int ReadByteAltDebugger (char* addr, char *theByte);
extern int WriteByteAltDebugger (char* addr, char theByte);
int
-get_char (addr)
- char *addr;
+get_char (char *addr)
{
char c;
@@ -80,9 +75,7 @@ get_char (addr)
}
void
-set_char (addr, val)
- char *addr;
- int val;
+set_char (char *addr, int val)
{
if (!WriteByteAltDebugger (addr, val))
mem_err = 1;
@@ -90,9 +83,7 @@ set_char (addr, val)
#endif
int
-mem_write (dst, src, len)
- char *dst, *src;
- int len;
+mem_write (char *dst, char *src, int len)
{
while (len-- && !mem_err)
set_char (dst++, *src++);
@@ -142,8 +133,7 @@ static LONG saved_target_inst;
static LONG *saved_target_inst_pc = 0;
void
-set_step_traps (frame)
- struct StackFrame *frame;
+set_step_traps (struct StackFrame *frame)
{
union inst inst;
LONG *target;
@@ -203,8 +193,7 @@ set_step_traps (frame)
set. */
int
-clear_step_traps (frame)
- struct StackFrame *frame;
+clear_step_traps (struct StackFrame *frame)
{
int retcode;
LONG *pc = (LONG *)frame->ExceptionPC;
@@ -230,9 +219,7 @@ clear_step_traps (frame)
}
void
-do_status (ptr, frame)
- char *ptr;
- struct StackFrame *frame;
+do_status (char *ptr, struct StackFrame *frame)
{
int sigval;
diff --git a/gdb/nlmread.c b/gdb/nlmread.c
index c710b0a..dcc95d9 100644
--- a/gdb/nlmread.c
+++ b/gdb/nlmread.c
@@ -49,8 +49,7 @@ static void nlm_symtab_read (bfd *, CORE_ADDR, struct objfile *);
file at some point in the near future. */
static void
-nlm_new_init (ignore)
- struct objfile *ignore;
+nlm_new_init (struct objfile *ignore)
{
stabsread_new_init ();
buildsym_new_init ();
@@ -67,8 +66,7 @@ nlm_new_init (ignore)
just a stub. */
static void
-nlm_symfile_init (ignore)
- struct objfile *ignore;
+nlm_symfile_init (struct objfile *ignore)
{
}
@@ -92,10 +90,7 @@ nlm_symfile_init (ignore)
*/
static void
-nlm_symtab_read (abfd, addr, objfile)
- bfd *abfd;
- CORE_ADDR addr;
- struct objfile *objfile;
+nlm_symtab_read (bfd *abfd, CORE_ADDR addr, struct objfile *objfile)
{
long storage_needed;
asymbol *sym;
@@ -177,9 +172,7 @@ nlm_symtab_read (abfd, addr, objfile)
is not currently used. */
static void
-nlm_symfile_read (objfile, mainline)
- struct objfile *objfile;
- int mainline;
+nlm_symfile_read (struct objfile *objfile, int mainline)
{
bfd *abfd = objfile->obfd;
struct cleanup *back_to;
@@ -228,8 +221,7 @@ nlm_symfile_read (objfile, mainline)
objfile struct from the global list of known objfiles. */
static void
-nlm_symfile_finish (objfile)
- struct objfile *objfile;
+nlm_symfile_finish (struct objfile *objfile)
{
if (objfile->sym_private != NULL)
{
@@ -251,7 +243,7 @@ static struct sym_fns nlm_sym_fns =
};
void
-_initialize_nlmread ()
+_initialize_nlmread (void)
{
add_symtab_fns (&nlm_sym_fns);
}
diff --git a/gdb/ns32k-tdep.c b/gdb/ns32k-tdep.c
index fc166de..6f39c8c 100644
--- a/gdb/ns32k-tdep.c
+++ b/gdb/ns32k-tdep.c
@@ -22,7 +22,7 @@
#include "defs.h"
void
-_initialize_ns32k_tdep ()
+_initialize_ns32k_tdep (void)
{
tm_print_insn = print_insn_ns32k;
}
@@ -31,8 +31,7 @@ _initialize_ns32k_tdep ()
to reach some "real" code. */
CORE_ADDR
-merlin_skip_prologue (pc)
- CORE_ADDR pc;
+merlin_skip_prologue (CORE_ADDR pc)
{
register int op = read_memory_integer (pc, 1);
if (op == 0x82)
@@ -49,8 +48,7 @@ merlin_skip_prologue (pc)
}
CORE_ADDR
-umax_skip_prologue (pc)
- CORE_ADDR pc;
+umax_skip_prologue (CORE_ADDR pc)
{
register unsigned char op = read_memory_integer (pc, 1);
if (op == 0x82)
@@ -70,8 +68,7 @@ umax_skip_prologue (pc)
Can return -1, meaning no way to tell. */
int
-merlin_frame_num_args (fi)
- struct frame_info *fi;
+merlin_frame_num_args (struct frame_info *fi)
{
int numargs;
CORE_ADDR pc;
@@ -109,8 +106,7 @@ merlin_frame_num_args (fi)
so this will often not work properly. If the arg names
are known, it's likely most of them will be printed. */
int
-umax_frame_num_args (fi)
- struct frame_info *fi;
+umax_frame_num_args (struct frame_info *fi)
{
int numargs;
CORE_ADDR pc;
@@ -148,7 +144,7 @@ umax_frame_num_args (fi)
}
-sign_extend (value, bits)
+sign_extend (int value, int bits)
{
value = value & ((1 << bits) - 1);
return (value & (1 << (bits - 1))
@@ -157,9 +153,7 @@ sign_extend (value, bits)
}
void
-flip_bytes (ptr, count)
- char *ptr;
- int count;
+flip_bytes (char *ptr, int count)
{
char tmp;
@@ -178,8 +172,7 @@ flip_bytes (ptr, count)
FRAME_FIND_SAVED_REGS. */
int
-ns32k_localcount (enter_pc)
- CORE_ADDR enter_pc;
+ns32k_localcount (CORE_ADDR enter_pc)
{
unsigned char localtype;
int localcount;
@@ -202,8 +195,7 @@ ns32k_localcount (enter_pc)
/* Nonzero if instruction at PC is a return instruction. */
static int
-ns32k_about_to_return (pc)
- CORE_ADDR pc;
+ns32k_about_to_return (CORE_ADDR pc)
{
return (read_memory_integer (pc, 1) == 0x12);
}
@@ -218,8 +210,7 @@ ns32k_about_to_return (pc)
*/
CORE_ADDR
-ns32k_get_enter_addr (pc)
- CORE_ADDR pc;
+ns32k_get_enter_addr (CORE_ADDR pc)
{
CORE_ADDR enter_addr;
unsigned char op;
diff --git a/gdb/ns32km3-nat.c b/gdb/ns32km3-nat.c
index bd4f70d..23d3a826 100644
--- a/gdb/ns32km3-nat.c
+++ b/gdb/ns32km3-nat.c
@@ -77,8 +77,7 @@ REG_N_OFFSET (sp), REG_N_OFFSET (fp), REG_N_OFFSET (pc), REG_N_OFFSET (psr),
*/
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
kern_return_t ret;
thread_state_data_t state;
@@ -123,8 +122,7 @@ fetch_inferior_registers (regno)
* On mach3 all registers are always saved in one call.
*/
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
kern_return_t ret;
thread_state_data_t state;
diff --git a/gdb/ns32knbsd-nat.c b/gdb/ns32knbsd-nat.c
index de2299c..ed82447 100644
--- a/gdb/ns32knbsd-nat.c
+++ b/gdb/ns32knbsd-nat.c
@@ -36,8 +36,7 @@
memcpy(&dst, &registers[REGISTER_BYTE(src)], sizeof(dst))
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
struct reg inferior_registers;
struct fpreg inferior_fpregisters;
@@ -74,8 +73,7 @@ fetch_inferior_registers (regno)
}
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
struct reg inferior_registers;
struct fpreg inferior_fpregisters;
@@ -183,7 +181,7 @@ static struct core_fns nat_core_fns =
};
void
-_initialize_ns32knbsd_nat ()
+_initialize_ns32knbsd_nat (void)
{
add_core_fns (&nat_core_fns);
}
@@ -200,8 +198,7 @@ _initialize_ns32knbsd_nat ()
* Called by kcore-nbsd.c:get_kcore_registers().
*/
void
-fetch_kcore_registers (pcb)
- struct pcb *pcb;
+fetch_kcore_registers (struct pcb *pcb)
{
struct switchframe sf;
struct reg intreg;
@@ -246,7 +243,7 @@ fetch_kcore_registers (pcb)
#endif /* FETCH_KCORE_REGISTERS */
void
-clear_regs ()
+clear_regs (void)
{
double zero = 0.0;
int null = 0;
@@ -283,8 +280,7 @@ clear_regs ()
Can return -1, meaning no way to tell. */
int
-frame_num_args (fi)
- struct frame_info *fi;
+frame_num_args (struct frame_info *fi)
{
CORE_ADDR enter_addr;
CORE_ADDR argp;
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index f1c70fa..5cdfb98 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -76,10 +76,7 @@ int mapped_symbol_files; /* Try to use mapped symbol files */
the end of the table (objfile->sections_end). */
static void
-add_to_objfile_sections (abfd, asect, objfile_p_char)
- bfd *abfd;
- sec_ptr asect;
- PTR objfile_p_char;
+add_to_objfile_sections (bfd *abfd, sec_ptr asect, PTR objfile_p_char)
{
struct objfile *objfile = (struct objfile *) objfile_p_char;
struct obj_section section;
@@ -119,8 +116,7 @@ add_to_objfile_sections (abfd, asect, objfile_p_char)
we are building the table, we're pretty much hosed. */
int
-build_objfile_section_table (objfile)
- struct objfile *objfile;
+build_objfile_section_table (struct objfile *objfile)
{
/* objfile->sections can be already set when reading a mapped symbol
file. I believe that we do need to rebuild the section table in
@@ -148,9 +144,7 @@ build_objfile_section_table (objfile)
member. */
struct objfile *
-allocate_objfile (abfd, flags)
- bfd *abfd;
- int flags;
+allocate_objfile (bfd *abfd, int flags)
{
struct objfile *objfile = NULL;
struct objfile *last_one = NULL;
@@ -331,8 +325,7 @@ allocate_objfile (abfd, flags)
/* Put OBJFILE at the front of the list. */
void
-objfile_to_front (objfile)
- struct objfile *objfile;
+objfile_to_front (struct objfile *objfile)
{
struct objfile **objp;
for (objp = &object_files; *objp != NULL; objp = &((*objp)->next))
@@ -363,8 +356,7 @@ objfile_to_front (objfile)
between the OBJFILE and the list. */
void
-unlink_objfile (objfile)
- struct objfile *objfile;
+unlink_objfile (struct objfile *objfile)
{
struct objfile **objpp;
@@ -399,8 +391,7 @@ unlink_objfile (objfile)
we free objects in the reusable area. */
void
-free_objfile (objfile)
- struct objfile *objfile;
+free_objfile (struct objfile *objfile)
{
/* First do any symbol file specific actions required when we are
finished with a particular symbol file. Note that if the objfile
@@ -505,7 +496,7 @@ make_cleanup_free_objfile (struct objfile *obj)
/* Free all the object files at once and clean up their users. */
void
-free_all_objfiles ()
+free_all_objfiles (void)
{
struct objfile *objfile, *temp;
@@ -519,9 +510,7 @@ free_all_objfiles ()
/* Relocate OBJFILE to NEW_OFFSETS. There should be OBJFILE->NUM_SECTIONS
entries in new_offsets. */
void
-objfile_relocate (objfile, new_offsets)
- struct objfile *objfile;
- struct section_offsets *new_offsets;
+objfile_relocate (struct objfile *objfile, struct section_offsets *new_offsets)
{
struct section_offsets *delta =
(struct section_offsets *) alloca (SIZEOF_SECTION_OFFSETS);
@@ -704,7 +693,7 @@ objfile_relocate (objfile, new_offsets)
available, nonzero otherwise. */
int
-have_partial_symbols ()
+have_partial_symbols (void)
{
struct objfile *ofp;
@@ -723,7 +712,7 @@ have_partial_symbols ()
available, nonzero otherwise. */
int
-have_full_symbols ()
+have_full_symbols (void)
{
struct objfile *ofp;
@@ -743,7 +732,7 @@ have_full_symbols ()
command.
*/
void
-objfile_purge_solibs ()
+objfile_purge_solibs (void)
{
struct objfile *objf;
struct objfile *temp;
@@ -764,7 +753,7 @@ objfile_purge_solibs ()
available, nonzero otherwise. */
int
-have_minimal_symbols ()
+have_minimal_symbols (void)
{
struct objfile *ofp;
@@ -800,10 +789,7 @@ have_minimal_symbols ()
Otherwise, returns the open file descriptor. */
static int
-open_existing_mapped_file (symsfilename, mtime, flags)
- char *symsfilename;
- long mtime;
- int flags;
+open_existing_mapped_file (char *symsfilename, long mtime, int flags)
{
int fd = -1;
struct stat sbuf;
@@ -855,10 +841,7 @@ open_existing_mapped_file (symsfilename, mtime, flags)
/bin for example). */
static int
-open_mapped_file (filename, mtime, flags)
- char *filename;
- long mtime;
- int flags;
+open_mapped_file (char *filename, long mtime, int flags)
{
int fd;
char *symsfilename;
@@ -903,8 +886,7 @@ open_mapped_file (filename, mtime, flags)
}
static PTR
-map_to_file (fd)
- int fd;
+map_to_file (int fd)
{
PTR md;
CORE_ADDR mapto;
@@ -954,9 +936,7 @@ map_to_file (fd)
contains a pointer to the bfd struct sec section. */
struct obj_section *
-find_pc_sect_section (pc, section)
- CORE_ADDR pc;
- struct sec *section;
+find_pc_sect_section (CORE_ADDR pc, struct sec *section)
{
struct obj_section *s;
struct objfile *objfile;
@@ -973,8 +953,7 @@ find_pc_sect_section (pc, section)
Backward compatibility, no section. */
struct obj_section *
-find_pc_section (pc)
- CORE_ADDR pc;
+find_pc_section (CORE_ADDR pc)
{
return find_pc_sect_section (pc, find_pc_mapped_section (pc));
}
@@ -985,9 +964,7 @@ find_pc_section (pc)
a trampoline. */
int
-in_plt_section (pc, name)
- CORE_ADDR pc;
- char *name;
+in_plt_section (CORE_ADDR pc, char *name)
{
struct obj_section *s;
int retval = 0;
@@ -1004,9 +981,7 @@ in_plt_section (pc, name)
return zero. */
int
-is_in_import_list (name, objfile)
- char *name;
- struct objfile *objfile;
+is_in_import_list (char *name, struct objfile *objfile)
{
register int i;
diff --git a/gdb/ocd.c b/gdb/ocd.c
index 1eeed77..1a50978 100644
--- a/gdb/ocd.c
+++ b/gdb/ocd.c
@@ -86,9 +86,7 @@ static int remote_timeout = 2;
static serial_t ocd_desc = NULL;
void
-ocd_error (s, error_code)
- char *s;
- int error_code;
+ocd_error (char *s, int error_code)
{
char buf[100];
@@ -153,8 +151,7 @@ ocd_error (s, error_code)
/* Return nonzero if the thread TH is still alive on the remote system. */
int
-ocd_thread_alive (th)
- int th;
+ocd_thread_alive (int th)
{
return 1;
}
@@ -163,8 +160,7 @@ ocd_thread_alive (th)
/* ARGSUSED */
void
-ocd_close (quitting)
- int quitting;
+ocd_close (int quitting)
{
if (ocd_desc)
SERIAL_CLOSE (ocd_desc);
@@ -174,8 +170,7 @@ ocd_close (quitting)
/* Stub for catch_errors. */
static int
-ocd_start_remote (dummy)
- PTR dummy;
+ocd_start_remote (PTR dummy)
{
unsigned char buf[10], *p;
int pktlen;
@@ -281,11 +276,8 @@ ocd_start_remote (dummy)
static DCACHE *ocd_dcache;
void
-ocd_open (name, from_tty, target_type, ops)
- char *name;
- int from_tty;
- enum ocd_target_type target_type;
- struct target_ops *ops;
+ocd_open (char *name, int from_tty, enum ocd_target_type target_type,
+ struct target_ops *ops)
{
unsigned char buf[10], *p;
int pktlen;
@@ -375,9 +367,7 @@ device the OCD device is attached to (e.g. /dev/ttya).");
die when it hits one. */
void
-ocd_detach (args, from_tty)
- char *args;
- int from_tty;
+ocd_detach (char *args, int from_tty)
{
if (args)
error ("Argument given to \"detach\" when remotely debugging.");
@@ -390,9 +380,7 @@ ocd_detach (args, from_tty)
/* Tell the remote machine to resume. */
void
-ocd_resume (pid, step, siggnal)
- int pid, step;
- enum target_signal siggnal;
+ocd_resume (int pid, int step, enum target_signal siggnal)
{
int pktlen;
@@ -405,7 +393,7 @@ ocd_resume (pid, step, siggnal)
}
void
-ocd_stop ()
+ocd_stop (void)
{
int status;
int pktlen;
@@ -422,8 +410,7 @@ static volatile int ocd_interrupt_flag;
packet. */
static void
-ocd_interrupt (signo)
- int signo;
+ocd_interrupt (int signo)
{
/* If this doesn't work, try more severe steps. */
signal (signo, ocd_interrupt_twice);
@@ -445,8 +432,7 @@ static void (*ofunc) ();
/* The user typed ^C twice. */
static void
-ocd_interrupt_twice (signo)
- int signo;
+ocd_interrupt_twice (int signo)
{
signal (signo, ofunc);
@@ -458,7 +444,7 @@ ocd_interrupt_twice (signo)
/* Ask the user what to do when an interrupt is received. */
static void
-interrupt_query ()
+interrupt_query (void)
{
target_terminal_ours ();
@@ -481,7 +467,7 @@ static int kill_kludge;
means in the case of this target). */
int
-ocd_wait ()
+ocd_wait (void)
{
unsigned char *p;
int error_code;
@@ -529,10 +515,7 @@ ocd_wait ()
Returns a pointer to a static array containing the register contents. */
unsigned char *
-ocd_read_bdm_registers (first_bdm_regno, last_bdm_regno, reglen)
- int first_bdm_regno;
- int last_bdm_regno;
- int *reglen;
+ocd_read_bdm_registers (int first_bdm_regno, int last_bdm_regno, int *reglen)
{
unsigned char buf[10];
int i;
@@ -574,8 +557,7 @@ ocd_read_bdm_registers (first_bdm_regno, last_bdm_regno, reglen)
/* Read register BDM_REGNO and returns its value ala read_register() */
CORE_ADDR
-ocd_read_bdm_register (bdm_regno)
- int bdm_regno;
+ocd_read_bdm_register (int bdm_regno)
{
int reglen;
unsigned char *p;
@@ -588,10 +570,7 @@ ocd_read_bdm_register (bdm_regno)
}
void
-ocd_write_bdm_registers (first_bdm_regno, regptr, reglen)
- int first_bdm_regno;
- unsigned char *regptr;
- int reglen;
+ocd_write_bdm_registers (int first_bdm_regno, unsigned char *regptr, int reglen)
{
unsigned char *buf;
unsigned char *p;
@@ -620,9 +599,7 @@ ocd_write_bdm_registers (first_bdm_regno, regptr, reglen)
}
void
-ocd_write_bdm_register (bdm_regno, reg)
- int bdm_regno;
- CORE_ADDR reg;
+ocd_write_bdm_register (int bdm_regno, CORE_ADDR reg)
{
unsigned char buf[4];
@@ -632,7 +609,7 @@ ocd_write_bdm_register (bdm_regno, reg)
}
void
-ocd_prepare_to_store ()
+ocd_prepare_to_store (void)
{
}
@@ -647,10 +624,7 @@ ocd_prepare_to_store ()
static int write_mem_command = OCD_WRITE_MEM;
int
-ocd_write_bytes (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+ocd_write_bytes (CORE_ADDR memaddr, char *myaddr, int len)
{
char buf[256 + 10];
unsigned char *p;
@@ -722,10 +696,7 @@ ocd_write_bytes (memaddr, myaddr, len)
Returns number of bytes transferred, or 0 for error. */
static int
-ocd_read_bytes (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+ocd_read_bytes (CORE_ADDR memaddr, char *myaddr, int len)
{
char buf[256 + 10];
unsigned char *p;
@@ -805,8 +776,7 @@ ocd_xfer_memory (memaddr, myaddr, len, should_write, target)
}
void
-ocd_files_info (ignore)
- struct target_ops *ignore;
+ocd_files_info (struct target_ops *ignore)
{
puts_filtered ("Debugging a target over a serial line.\n");
}
@@ -817,8 +787,7 @@ ocd_files_info (ignore)
/* Read a single character from the remote side, handling wierd errors. */
static int
-readchar (timeout)
- int timeout;
+readchar (int timeout)
{
int ch;
@@ -843,8 +812,7 @@ readchar (timeout)
mistaken for real data). */
static int
-get_quoted_char (timeout)
- int timeout;
+get_quoted_char (int timeout)
{
int ch;
@@ -869,13 +837,13 @@ get_quoted_char (timeout)
static unsigned char pkt[256 * 2 + 10], *pktp; /* Worst case */
static void
-reset_packet ()
+reset_packet (void)
{
pktp = pkt;
}
static void
-output_packet ()
+output_packet (void)
{
if (SERIAL_WRITE (ocd_desc, pkt, pktp - pkt))
perror_with_name ("output_packet: write failed");
@@ -887,8 +855,7 @@ output_packet ()
through untouched. */
static void
-put_quoted_char (c)
- int c;
+put_quoted_char (int c)
{
switch (c)
{
@@ -911,9 +878,7 @@ put_quoted_char (c)
byte count. */
static void
-stu_put_packet (buf, len)
- unsigned char *buf;
- int len;
+stu_put_packet (unsigned char *buf, int len)
{
unsigned char checksum;
unsigned char c;
@@ -956,9 +921,7 @@ stu_put_packet (buf, len)
byte count. */
static void
-ocd_put_packet (buf, len)
- unsigned char *buf;
- int len;
+ocd_put_packet (unsigned char *buf, int len)
{
unsigned char checksum;
unsigned char c;
@@ -993,9 +956,7 @@ ocd_put_packet (buf, len)
*/
static unsigned char *
-stu_get_packet (cmd, lenp, timeout)
- unsigned char cmd;
- int *lenp;
+stu_get_packet (unsigned char cmd, int *lenp, int timeout)
{
int ch;
int len;
@@ -1058,9 +1019,7 @@ found_syn: /* Found the start of a packet */
*/
static unsigned char *
-ocd_get_packet (cmd, lenp, timeout)
- int cmd;
- int *lenp;
+ocd_get_packet (int cmd, int *lenp, int timeout)
{
int ch;
int len;
@@ -1207,10 +1166,7 @@ ocd_get_packet (cmd, lenp, timeout)
following the error code. */
static unsigned char *
-ocd_do_command (cmd, statusp, lenp)
- int cmd;
- int *statusp;
- int *lenp;
+ocd_do_command (int cmd, int *statusp, int *lenp)
{
unsigned char buf[100], *p;
int status, error_code;
@@ -1256,7 +1212,7 @@ ocd_do_command (cmd, statusp, lenp)
}
void
-ocd_kill ()
+ocd_kill (void)
{
/* For some mysterious reason, wait_for_inferior calls kill instead of
mourn after it gets TARGET_WAITKIND_SIGNALLED. Work around it. */
@@ -1273,7 +1229,7 @@ ocd_kill ()
}
void
-ocd_mourn ()
+ocd_mourn (void)
{
unpush_target (current_ops);
generic_mourn_inferior ();
@@ -1283,10 +1239,7 @@ ocd_mourn ()
the program at that point. */
void
-ocd_create_inferior (exec_file, args, env)
- char *exec_file;
- char *args;
- char **env;
+ocd_create_inferior (char *exec_file, char *args, char **env)
{
if (args && (*args != '\000'))
error ("Args are not supported by BDM.");
@@ -1296,9 +1249,7 @@ ocd_create_inferior (exec_file, args, env)
}
void
-ocd_load (args, from_tty)
- char *args;
- int from_tty;
+ocd_load (char *args, int from_tty)
{
generic_load (args, from_tty);
@@ -1325,9 +1276,7 @@ ocd_load (args, from_tty)
/* BDM (at least on CPU32) uses a different breakpoint */
int
-ocd_insert_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+ocd_insert_breakpoint (CORE_ADDR addr, char *contents_cache)
{
static char break_insn[] = BDM_BREAKPOINT;
int val;
@@ -1341,9 +1290,7 @@ ocd_insert_breakpoint (addr, contents_cache)
}
int
-ocd_remove_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+ocd_remove_breakpoint (CORE_ADDR addr, char *contents_cache)
{
static char break_insn[] = BDM_BREAKPOINT;
int val;
@@ -1354,17 +1301,13 @@ ocd_remove_breakpoint (addr, contents_cache)
}
static void
-bdm_command (args, from_tty)
- char *args;
- int from_tty;
+bdm_command (char *args, int from_tty)
{
error ("bdm command must be followed by `reset'");
}
static void
-bdm_reset_command (args, from_tty)
- char *args;
- int from_tty;
+bdm_reset_command (char *args, int from_tty)
{
int status, pktlen;
@@ -1377,9 +1320,7 @@ bdm_reset_command (args, from_tty)
}
static void
-bdm_restart_command (args, from_tty)
- char *args;
- int from_tty;
+bdm_restart_command (char *args, int from_tty)
{
int status, pktlen;
@@ -1397,15 +1338,12 @@ bdm_restart_command (args, from_tty)
generic_load from trying to set the PC. */
static void
-noop_store_registers (regno)
- int regno;
+noop_store_registers (int regno)
{
}
static void
-bdm_update_flash_command (args, from_tty)
- char *args;
- int from_tty;
+bdm_update_flash_command (char *args, int from_tty)
{
int status, pktlen;
struct cleanup *old_chain;
@@ -1438,9 +1376,7 @@ bdm_update_flash_command (args, from_tty)
}
static void
-bdm_read_register_command (args, from_tty)
- char *args;
- int from_tty;
+bdm_read_register_command (char *args, int from_tty)
{
/* XXX repeat should go on to the next register */
@@ -1453,7 +1389,7 @@ bdm_read_register_command (args, from_tty)
}
void
-_initialize_remote_ocd ()
+_initialize_remote_ocd (void)
{
extern struct cmd_list_element *cmdlist;
static struct cmd_list_element *ocd_cmd_list = NULL;
diff --git a/gdb/op50-rom.c b/gdb/op50-rom.c
index 92eccef..14eeeca 100644
--- a/gdb/op50-rom.c
+++ b/gdb/op50-rom.c
@@ -121,15 +121,13 @@ init_op50n_cmds (void)
};
static void
-op50n_open (args, from_tty)
- char *args;
- int from_tty;
+op50n_open (char *args, int from_tty)
{
monitor_open (args, &op50n_cmds, from_tty);
}
void
-_initialize_op50n ()
+_initialize_op50n (void)
{
init_op50n_cmds ();
init_monitor_ops (&op50n_ops);
diff --git a/gdb/os9kread.c b/gdb/os9kread.c
index d3e782f..d9fafe5 100644
--- a/gdb/os9kread.c
+++ b/gdb/os9kread.c
@@ -186,11 +186,8 @@ static void record_minimal_symbol (char *, CORE_ADDR, int, struct objfile *);
#define N_ABS 6
static void
-record_minimal_symbol (name, address, type, objfile)
- char *name;
- CORE_ADDR address;
- int type;
- struct objfile *objfile;
+record_minimal_symbol (char *name, CORE_ADDR address, int type,
+ struct objfile *objfile)
{
enum minimal_symbol_type ms_type;
@@ -244,8 +241,7 @@ struct stbsymbol
#define STBSYMSIZE 10
static void
-read_minimal_symbols (objfile)
- struct objfile *objfile;
+read_minimal_symbols (struct objfile *objfile)
{
FILE *fp;
bfd *abfd;
@@ -349,8 +345,7 @@ os9k_symfile_read (objfile, mainline)
file, e.g. a shared library). */
static void
-os9k_new_init (ignore)
- struct objfile *ignore;
+os9k_new_init (struct objfile *ignore)
{
stabsread_new_init ();
buildsym_new_init ();
@@ -371,8 +366,7 @@ os9k_new_init (ignore)
FIXME, there should be a cleaner peephole into the BFD environment here. */
static void
-os9k_symfile_init (objfile)
- struct objfile *objfile;
+os9k_symfile_init (struct objfile *objfile)
{
bfd *sym_bfd = objfile->obfd;
char *name = bfd_get_filename (sym_bfd);
@@ -420,8 +414,7 @@ os9k_symfile_init (objfile)
objfile struct from the global list of known objfiles. */
static void
-os9k_symfile_finish (objfile)
- struct objfile *objfile;
+os9k_symfile_finish (struct objfile *objfile)
{
if (objfile->sym_stab_info != NULL)
{
@@ -476,9 +469,7 @@ static short cmplrid;
#define VER_ULTRAC ((short)5)
static int
-fill_sym (dbg_file, abfd)
- FILE *dbg_file;
- bfd *abfd;
+fill_sym (FILE *dbg_file, bfd *abfd)
{
short si, nmask;
long li;
@@ -552,10 +543,7 @@ fill_sym (dbg_file, abfd)
SYMFILE_NAME is the name of the file we are reading from. */
static void
-read_os9k_psymtab (objfile, text_addr, text_size)
- struct objfile *objfile;
- CORE_ADDR text_addr;
- int text_size;
+read_os9k_psymtab (struct objfile *objfile, CORE_ADDR text_addr, int text_size)
{
register struct internal_symstruct *bufp = 0; /* =0 avoids gcc -Wall glitch */
register char *namestring;
@@ -973,15 +961,10 @@ read_os9k_psymtab (objfile, text_addr, text_size)
static struct partial_symtab *
-os9k_start_psymtab (objfile,
- filename, textlow, ldsymoff, ldsymcnt, global_syms, static_syms)
- struct objfile *objfile;
- char *filename;
- CORE_ADDR textlow;
- int ldsymoff;
- int ldsymcnt;
- struct partial_symbol **global_syms;
- struct partial_symbol **static_syms;
+os9k_start_psymtab (struct objfile *objfile, char *filename, CORE_ADDR textlow,
+ int ldsymoff, int ldsymcnt,
+ struct partial_symbol **global_syms,
+ struct partial_symbol **static_syms)
{
struct partial_symtab *result =
start_psymtab_common (objfile, objfile->section_offsets,
@@ -1188,8 +1171,7 @@ os9k_end_psymtab (pst, include_list, num_includes, capping_symbol_cnt,
}
static void
-os9k_psymtab_to_symtab_1 (pst)
- struct partial_symtab *pst;
+os9k_psymtab_to_symtab_1 (struct partial_symtab *pst)
{
struct cleanup *old_chain;
int i;
@@ -1242,8 +1224,7 @@ os9k_psymtab_to_symtab_1 (pst)
Be verbose about it if the user wants that. */
static void
-os9k_psymtab_to_symtab (pst)
- struct partial_symtab *pst;
+os9k_psymtab_to_symtab (struct partial_symtab *pst)
{
bfd *sym_bfd;
@@ -1282,8 +1263,7 @@ os9k_psymtab_to_symtab (pst)
/* Read in a defined section of a specific object file's symbols. */
static void
-os9k_read_ofile_symtab (pst)
- struct partial_symtab *pst;
+os9k_read_ofile_symtab (struct partial_symtab *pst)
{
register struct internal_symstruct *bufp;
unsigned char type;
@@ -1433,12 +1413,9 @@ os9k_read_ofile_symtab (pst)
It is used in end_symtab. */
static void
-os9k_process_one_symbol (type, desc, valu, name, section_offsets, objfile)
- int type, desc;
- CORE_ADDR valu;
- char *name;
- struct section_offsets *section_offsets;
- struct objfile *objfile;
+os9k_process_one_symbol (int type, int desc, CORE_ADDR valu, char *name,
+ struct section_offsets *section_offsets,
+ struct objfile *objfile)
{
register struct context_stack *new;
/* The stab type used for the definition of the last function.
@@ -1645,7 +1622,7 @@ static struct sym_fns os9k_sym_fns =
};
void
-_initialize_os9kread ()
+_initialize_os9kread (void)
{
add_symtab_fns (&os9k_sym_fns);
}
diff --git a/gdb/osfsolib.c b/gdb/osfsolib.c
index 34b809d..a59239e 100644
--- a/gdb/osfsolib.c
+++ b/gdb/osfsolib.c
@@ -116,11 +116,7 @@ static ldr_process_t fake_ldr_process;
static int ldr_read_memory (CORE_ADDR, char *, int, int);
static int
-ldr_read_memory (memaddr, myaddr, len, readstring)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
- int readstring;
+ldr_read_memory (CORE_ADDR memaddr, char *myaddr, int len, int readstring)
{
int result;
char *buffer;
@@ -221,8 +217,7 @@ static int solib_map_sections (char *);
*/
static int
-solib_map_sections (arg)
- char *arg;
+solib_map_sections (char *arg)
{
struct so_list *so = (struct so_list *) arg; /* catch_errors bogon */
char *filename;
@@ -308,7 +303,7 @@ solib_map_sections (arg)
*/
static struct link_map *
-first_link_map_member ()
+first_link_map_member (void)
{
struct link_map *lm = NULL;
static struct link_map first_lm;
@@ -351,8 +346,7 @@ first_link_map_member ()
}
static struct link_map *
-next_link_map_member (so_list_ptr)
- struct so_list *so_list_ptr;
+next_link_map_member (struct so_list *so_list_ptr)
{
struct link_map *lm = NULL;
static struct link_map next_lm;
@@ -393,9 +387,7 @@ next_link_map_member (so_list_ptr)
}
static void
-xfer_link_map_member (so_list_ptr, lm)
- struct so_list *so_list_ptr;
- struct link_map *lm;
+xfer_link_map_member (struct so_list *so_list_ptr, struct link_map *lm)
{
int i;
so_list_ptr->lm = *lm;
@@ -564,8 +556,7 @@ find_solib (so_list_ptr)
/* A small stub to get us past the arg-passing pinhole of catch_errors. */
static int
-symbol_add_stub (arg)
- char *arg;
+symbol_add_stub (char *arg)
{
register struct so_list *so = (struct so_list *) arg; /* catch_errs bogon */
CORE_ADDR text_addr = 0;
@@ -612,10 +603,7 @@ symbol_add_stub (arg)
*/
void
-solib_add (arg_string, from_tty, target)
- char *arg_string;
- int from_tty;
- struct target_ops *target;
+solib_add (char *arg_string, int from_tty, struct target_ops *target)
{
register struct so_list *so = NULL; /* link map state variable */
@@ -715,9 +703,7 @@ solib_add (arg_string, from_tty, target)
*/
static void
-info_sharedlibrary_command (ignore, from_tty)
- char *ignore;
- int from_tty;
+info_sharedlibrary_command (char *ignore, int from_tty)
{
register struct so_list *so = NULL; /* link map state variable */
int header_done = 0;
@@ -782,8 +768,7 @@ info_sharedlibrary_command (ignore, from_tty)
*/
char *
-solib_address (address)
- CORE_ADDR address;
+solib_address (CORE_ADDR address)
{
register struct so_list *so = 0; /* link map state variable */
@@ -802,7 +787,7 @@ solib_address (address)
/* Called by free_all_symtabs */
void
-clear_solib ()
+clear_solib (void)
{
struct so_list *next;
char *bfd_filename;
@@ -871,7 +856,7 @@ clear_solib ()
*/
void
-solib_create_inferior_hook ()
+solib_create_inferior_hook (void)
{
/* Nothing to do for statically bound executables. */
@@ -923,16 +908,14 @@ solib_create_inferior_hook ()
*/
static void
-sharedlibrary_command (args, from_tty)
- char *args;
- int from_tty;
+sharedlibrary_command (char *args, int from_tty)
{
dont_repeat ();
solib_add (args, from_tty, (struct target_ops *) 0);
}
void
-_initialize_solib ()
+_initialize_solib (void)
{
add_com ("sharedlibrary", class_files, sharedlibrary_command,
"Load shared object library symbols for files matching REGEXP.");
diff --git a/gdb/p-lang.c b/gdb/p-lang.c
index db33eb7..57ee5b8 100644
--- a/gdb/p-lang.c
+++ b/gdb/p-lang.c
@@ -36,10 +36,7 @@ static void pascal_one_char (int, struct ui_file *, int *);
In_quotes is reset to 0 if a char is written with #4 notation */
static void
-pascal_one_char (c, stream, in_quotes)
- register int c;
- struct ui_file *stream;
- int *in_quotes;
+pascal_one_char (register int c, struct ui_file *stream, int *in_quotes)
{
c &= 0xFF; /* Avoid sign bit follies */
@@ -72,10 +69,7 @@ static void pascal_emit_char (int c, struct ui_file *stream, int quoter);
characters and strings is language specific. */
static void
-pascal_emit_char (c, stream, quoter)
- register int c;
- struct ui_file *stream;
- int quoter;
+pascal_emit_char (register int c, struct ui_file *stream, int quoter)
{
int in_quotes = 0;
pascal_one_char (c, stream, &in_quotes);
@@ -84,9 +78,7 @@ pascal_emit_char (c, stream, quoter)
}
void
-pascal_printchar (c, stream)
- int c;
- struct ui_file *stream;
+pascal_printchar (int c, struct ui_file *stream)
{
int in_quotes = 0;
pascal_one_char (c, stream, &in_quotes);
@@ -100,12 +92,8 @@ pascal_printchar (c, stream)
had to stop before printing LENGTH characters, or if FORCE_ELLIPSES. */
void
-pascal_printstr (stream, string, length, width, force_ellipses)
- struct ui_file *stream;
- char *string;
- unsigned int length;
- int width;
- int force_ellipses;
+pascal_printstr (struct ui_file *stream, char *string, unsigned int length,
+ int width, int force_ellipses)
{
register unsigned int i;
unsigned int things_printed = 0;
@@ -222,9 +210,7 @@ pascal_printstr (stream, string, length, width, force_ellipses)
struct type *
-pascal_create_fundamental_type (objfile, typeid)
- struct objfile *objfile;
- int typeid;
+pascal_create_fundamental_type (struct objfile *objfile, int typeid)
{
register struct type *type = NULL;
@@ -424,7 +410,7 @@ const struct language_defn pascal_language_defn =
};
void
-_initialize_pascal_language ()
+_initialize_pascal_language (void)
{
add_language (&pascal_language_defn);
}
diff --git a/gdb/p-typeprint.c b/gdb/p-typeprint.c
index d8ea0d4..df35531 100644
--- a/gdb/p-typeprint.c
+++ b/gdb/p-typeprint.c
@@ -52,12 +52,8 @@ void pascal_type_print_varspec_prefix (struct type *, struct ui_file *, int, int
/* LEVEL is the depth to indent lines by. */
void
-pascal_print_type (type, varstring, stream, show, level)
- struct type *type;
- char *varstring;
- struct ui_file *stream;
- int show;
- int level;
+pascal_print_type (struct type *type, char *varstring, struct ui_file *stream,
+ int show, int level)
{
register enum type_code code;
int demangled_args;
@@ -122,9 +118,7 @@ pascal_print_type (type, varstring, stream, show, level)
the form that they appear in the source code. */
static void
-pascal_type_print_derivation_info (stream, type)
- struct ui_file *stream;
- struct type *type;
+pascal_type_print_derivation_info (struct ui_file *stream, struct type *type)
{
char *name;
int i;
@@ -147,10 +141,8 @@ pascal_type_print_derivation_info (stream, type)
/* Print the Pascal method arguments ARGS to the file STREAM. */
void
-pascal_type_print_method_args (physname, methodname, stream)
- char *physname;
- char *methodname;
- struct ui_file *stream;
+pascal_type_print_method_args (char *physname, char *methodname,
+ struct ui_file *stream)
{
int is_constructor = STREQN (physname, "__ct__", 6);
int is_destructor = STREQN (physname, "__dt__", 6);
@@ -201,11 +193,8 @@ pascal_type_print_method_args (physname, methodname, stream)
SHOW is always zero on recursive calls. */
void
-pascal_type_print_varspec_prefix (type, stream, show, passed_a_ptr)
- struct type *type;
- struct ui_file *stream;
- int show;
- int passed_a_ptr;
+pascal_type_print_varspec_prefix (struct type *type, struct ui_file *stream,
+ int show, int passed_a_ptr)
{
char *name;
if (type == 0)
@@ -316,9 +305,7 @@ pascal_type_print_varspec_prefix (type, stream, show, passed_a_ptr)
}
static void
-pascal_type_print_args (type, stream)
- struct type *type;
- struct ui_file *stream;
+pascal_type_print_args (struct type *type, struct ui_file *stream)
{
int i;
struct type **args;
@@ -397,12 +384,9 @@ pascal_print_func_args (struct type *type, struct ui_file *stream)
Args work like pascal_type_print_varspec_prefix. */
static void
-pascal_type_print_varspec_suffix (type, stream, show, passed_a_ptr, demangled_args)
- struct type *type;
- struct ui_file *stream;
- int show;
- int passed_a_ptr;
- int demangled_args;
+pascal_type_print_varspec_suffix (struct type *type, struct ui_file *stream,
+ int show, int passed_a_ptr,
+ int demangled_args)
{
if (type == 0)
return;
@@ -505,11 +489,8 @@ pascal_type_print_varspec_suffix (type, stream, show, passed_a_ptr, demangled_ar
We increase it for some recursive calls. */
void
-pascal_type_print_base (type, stream, show, level)
- struct type *type;
- struct ui_file *stream;
- int show;
- int level;
+pascal_type_print_base (struct type *type, struct ui_file *stream, int show,
+ int level)
{
register int i;
register int len;
diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c
index b18e7cf..0ba363d 100644
--- a/gdb/p-valprint.c
+++ b/gdb/p-valprint.c
@@ -54,17 +54,9 @@
int
-pascal_val_print (type, valaddr, embedded_offset, address, stream, format, deref_ref, recurse,
- pretty)
- struct type *type;
- char *valaddr;
- int embedded_offset;
- CORE_ADDR address;
- struct ui_file *stream;
- int format;
- int deref_ref;
- int recurse;
- enum val_prettyprint pretty;
+pascal_val_print (struct type *type, char *valaddr, int embedded_offset,
+ CORE_ADDR address, struct ui_file *stream, int format,
+ int deref_ref, int recurse, enum val_prettyprint pretty)
{
register unsigned int i = 0; /* Number of characters printed */
unsigned len;
@@ -536,11 +528,8 @@ pascal_val_print (type, valaddr, embedded_offset, address, stream, format, deref
}
int
-pascal_value_print (val, stream, format, pretty)
- value_ptr val;
- struct ui_file *stream;
- int format;
- enum val_prettyprint pretty;
+pascal_value_print (value_ptr val, struct ui_file *stream, int format,
+ enum val_prettyprint pretty)
{
struct type *type = VALUE_TYPE (val);
@@ -596,10 +585,8 @@ static void
int, int, enum val_prettyprint, struct type **);
void
-pascal_object_print_class_method (valaddr, type, stream)
- char *valaddr;
- struct type *type;
- struct ui_file *stream;
+pascal_object_print_class_method (char *valaddr, struct type *type,
+ struct ui_file *stream)
{
struct type *domain;
struct fn_field *f = NULL;
@@ -701,8 +688,7 @@ const char pascal_vtbl_ptr_name[] =
"pointer to virtual function". */
int
-pascal_object_is_vtbl_ptr_type (type)
- struct type *type;
+pascal_object_is_vtbl_ptr_type (struct type *type)
{
char *typename = type_name_no_tag (type);
@@ -714,8 +700,7 @@ pascal_object_is_vtbl_ptr_type (type)
"pointer to virtual function table". */
int
-pascal_object_is_vtbl_member (type)
- struct type *type;
+pascal_object_is_vtbl_member (struct type *type)
{
if (TYPE_CODE (type) == TYPE_CODE_PTR)
{
@@ -745,17 +730,12 @@ pascal_object_is_vtbl_member (type)
should not print, or zero if called from top level. */
void
-pascal_object_print_value_fields (type, valaddr, address, stream, format, recurse, pretty,
- dont_print_vb, dont_print_statmem)
- struct type *type;
- char *valaddr;
- CORE_ADDR address;
- struct ui_file *stream;
- int format;
- int recurse;
- enum val_prettyprint pretty;
- struct type **dont_print_vb;
- int dont_print_statmem;
+pascal_object_print_value_fields (struct type *type, char *valaddr,
+ CORE_ADDR address, struct ui_file *stream,
+ int format, int recurse,
+ enum val_prettyprint pretty,
+ struct type **dont_print_vb,
+ int dont_print_statmem)
{
int i, len, n_baseclasses;
struct obstack tmp_obstack;
@@ -924,16 +904,10 @@ pascal_object_print_value_fields (type, valaddr, address, stream, format, recurs
baseclasses. */
void
-pascal_object_print_value (type, valaddr, address, stream, format, recurse, pretty,
- dont_print_vb)
- struct type *type;
- char *valaddr;
- CORE_ADDR address;
- struct ui_file *stream;
- int format;
- int recurse;
- enum val_prettyprint pretty;
- struct type **dont_print_vb;
+pascal_object_print_value (struct type *type, char *valaddr, CORE_ADDR address,
+ struct ui_file *stream, int format, int recurse,
+ enum val_prettyprint pretty,
+ struct type **dont_print_vb)
{
struct obstack tmp_obstack;
struct type **last_dont_print
@@ -1034,13 +1008,9 @@ pascal_object_print_value (type, valaddr, address, stream, format, recurse, pret
have the same meanings as in c_val_print. */
static void
-pascal_object_print_static_field (type, val, stream, format, recurse, pretty)
- struct type *type;
- value_ptr val;
- struct ui_file *stream;
- int format;
- int recurse;
- enum val_prettyprint pretty;
+pascal_object_print_static_field (struct type *type, value_ptr val,
+ struct ui_file *stream, int format,
+ int recurse, enum val_prettyprint pretty)
{
if (TYPE_CODE (type) == TYPE_CODE_STRUCT)
{
@@ -1075,11 +1045,8 @@ pascal_object_print_static_field (type, val, stream, format, recurse, pretty)
}
void
-pascal_object_print_class_member (valaddr, domain, stream, prefix)
- char *valaddr;
- struct type *domain;
- struct ui_file *stream;
- char *prefix;
+pascal_object_print_class_member (char *valaddr, struct type *domain,
+ struct ui_file *stream, char *prefix)
{
/* VAL is a byte offset into the structure type DOMAIN.
@@ -1131,7 +1098,7 @@ pascal_object_print_class_member (valaddr, domain, stream, prefix)
void
-_initialize_pascal_valprint ()
+_initialize_pascal_valprint (void)
{
add_show_from_set
(add_set_cmd ("pascal_static-members", class_support, var_boolean,
diff --git a/gdb/pa64solib.c b/gdb/pa64solib.c
index 88ff67e..7a78136 100644
--- a/gdb/pa64solib.c
+++ b/gdb/pa64solib.c
@@ -145,8 +145,7 @@ static char *pa64_debug_section_names[] = {
/* Return a ballbark figure for the amount of memory GDB will need to
allocate to read in the debug symbols from FILENAME. */
static LONGEST
-pa64_solib_sizeof_symbol_table (filename)
- char *filename;
+pa64_solib_sizeof_symbol_table (char *filename)
{
bfd *abfd;
int i;
@@ -216,11 +215,8 @@ pa64_solib_sizeof_symbol_table (filename)
/* Add a shared library to the objfile list and load its symbols into
GDB's symbol table. */
static void
-pa64_solib_add_solib_objfile (so, name, from_tty, text_addr)
- struct so_list *so;
- char *name;
- int from_tty;
- CORE_ADDR text_addr;
+pa64_solib_add_solib_objfile (struct so_list *so, char *name, int from_tty,
+ CORE_ADDR text_addr)
{
bfd *tmp_bfd;
asection *sec;
@@ -298,12 +294,8 @@ pa64_solib_add_solib_objfile (so, name, from_tty, text_addr)
NULL if we are not attaching to a process or reading a core file. */
static void
-pa64_solib_load_symbols (so, name, from_tty, text_addr, target)
- struct so_list *so;
- char *name;
- int from_tty;
- CORE_ADDR text_addr;
- struct target_ops *target;
+pa64_solib_load_symbols (struct so_list *so, char *name, int from_tty,
+ CORE_ADDR text_addr, struct target_ops *target)
{
struct section_table *p;
asection *sec;
@@ -379,10 +371,7 @@ pa64_solib_load_symbols (so, name, from_tty, text_addr, target)
be exceeded. */
void
-pa64_solib_add (arg_string, from_tty, target)
- char *arg_string;
- int from_tty;
- struct target_ops *target;
+pa64_solib_add (char *arg_string, int from_tty, struct target_ops *target)
{
struct minimal_symbol *msymbol;
CORE_ADDR addr;
@@ -471,7 +460,7 @@ pa64_solib_add (arg_string, from_tty, target)
call the breakpoint routine for significant events. */
void
-pa64_solib_create_inferior_hook ()
+pa64_solib_create_inferior_hook (void)
{
struct minimal_symbol *msymbol;
unsigned int dld_flags, status;
@@ -601,8 +590,7 @@ get_out:
GDB may already have been notified of. */
void
-pa64_solib_remove_inferior_hook (pid)
- int pid;
+pa64_solib_remove_inferior_hook (int pid)
{
/* Turn off the DT_HP_DEBUG_CALLBACK bit in the dynamic linker flags. */
dld_cache.dld_flags &= ~DT_HP_DEBUG_CALLBACK;
@@ -623,11 +611,8 @@ pa64_solib_remove_inferior_hook (pid)
pa64_solib_create_inferior_hook. */
void
-pa64_solib_create_catch_load_hook (pid, tempflag, filename, cond_string)
- int pid;
- int tempflag;
- char *filename;
- char *cond_string;
+pa64_solib_create_catch_load_hook (int pid, int tempflag, char *filename,
+ char *cond_string)
{
create_solib_load_event_breakpoint ("", tempflag, filename, cond_string);
}
@@ -644,11 +629,8 @@ pa64_solib_create_catch_load_hook (pid, tempflag, filename, cond_string)
pa64_solib_create_inferior_hook. */
void
-pa64_solib_create_catch_unload_hook (pid, tempflag, filename, cond_string)
- int pid;
- int tempflag;
- char *filename;
- char *cond_string;
+pa64_solib_create_catch_unload_hook (int pid, int tempflag, char *filename,
+ char *cond_string)
{
create_solib_unload_event_breakpoint ("", tempflag, filename, cond_string);
}
@@ -657,8 +639,7 @@ pa64_solib_create_catch_unload_hook (pid, tempflag, filename, cond_string)
has been loaded. */
int
-pa64_solib_have_load_event (pid)
- int pid;
+pa64_solib_have_load_event (int pid)
{
CORE_ADDR event_kind;
@@ -669,8 +650,7 @@ pa64_solib_have_load_event (pid)
/* Return nonzero if the dynamic linker has reproted that a library
has been unloaded. */
int
-pa64_solib_have_unload_event (pid)
- int pid;
+pa64_solib_have_unload_event (int pid)
{
CORE_ADDR event_kind;
@@ -685,8 +665,7 @@ pa64_solib_have_unload_event (pid)
restarted. */
char *
-pa64_solib_loaded_library_pathname (pid)
- int pid;
+pa64_solib_loaded_library_pathname (int pid)
{
static char dll_path[MAXPATHLEN];
CORE_ADDR dll_path_addr = read_register (ARG3_REGNUM);
@@ -701,8 +680,7 @@ pa64_solib_loaded_library_pathname (pid)
restarted. */
char *
-pa64_solib_unloaded_library_pathname (pid)
- int pid;
+pa64_solib_unloaded_library_pathname (int pid)
{
static char dll_path[MAXPATHLEN];
CORE_ADDR dll_path_addr = read_register (ARG3_REGNUM);
@@ -713,9 +691,7 @@ pa64_solib_unloaded_library_pathname (pid)
/* Return nonzero if PC is an address inside the dynamic linker. */
int
-pa64_solib_in_dynamic_linker (pid, pc)
- int pid;
- CORE_ADDR pc;
+pa64_solib_in_dynamic_linker (int pid, CORE_ADDR pc)
{
asection *shlib_info;
@@ -735,8 +711,7 @@ pa64_solib_in_dynamic_linker (pid, pc)
ADDR isn't in any known shared library, return zero. */
CORE_ADDR
-pa64_solib_get_got_by_pc (addr)
- CORE_ADDR addr;
+pa64_solib_get_got_by_pc (CORE_ADDR addr)
{
struct so_list *so_list = so_list_head;
CORE_ADDR got_value = 0;
@@ -762,8 +737,7 @@ pa64_solib_get_got_by_pc (addr)
This function is used in hppa_fix_call_dummy in hppa-tdep.c. */
CORE_ADDR
-pa64_solib_get_solib_by_pc (addr)
- CORE_ADDR addr;
+pa64_solib_get_solib_by_pc (CORE_ADDR addr)
{
struct so_list *so_list = so_list_head;
CORE_ADDR retval = 0;
@@ -786,9 +760,7 @@ pa64_solib_get_solib_by_pc (addr)
/* Dump information about all the currently loaded shared libraries. */
static void
-pa64_sharedlibrary_info_command (ignore, from_tty)
- char *ignore;
- int from_tty;
+pa64_sharedlibrary_info_command (char *ignore, int from_tty)
{
struct so_list *so_list = so_list_head;
@@ -842,9 +814,7 @@ pa64_sharedlibrary_info_command (ignore, from_tty)
/* Load up one or more shared libraries as directed by the user. */
static void
-pa64_solib_sharedlibrary_command (args, from_tty)
- char *args;
- int from_tty;
+pa64_solib_sharedlibrary_command (char *args, int from_tty)
{
dont_repeat ();
pa64_solib_add (args, from_tty, (struct target_ops *) 0);
@@ -854,8 +824,7 @@ pa64_solib_sharedlibrary_command (args, from_tty)
is not contained in any known shared library. */
char *
-pa64_solib_address (addr)
- CORE_ADDR addr;
+pa64_solib_address (CORE_ADDR addr)
{
struct so_list *so = so_list_head;
@@ -879,7 +848,7 @@ pa64_solib_address (addr)
/* We are killing the inferior and restarting the program. */
void
-pa64_solib_restart ()
+pa64_solib_restart (void)
{
struct so_list *sl = so_list_head;
@@ -910,7 +879,7 @@ pa64_solib_restart ()
}
void
-_initialize_pa64_solib ()
+_initialize_pa64_solib (void)
{
add_com ("sharedlibrary", class_files, pa64_solib_sharedlibrary_command,
"Load shared object library symbols for files matching REGEXP.");
@@ -944,8 +913,7 @@ Otherwise, symbols must be loaded manually, using `sharedlibrary'.",
/* Get some HPUX-specific data from a shared lib. */
CORE_ADDR
-so_lib_thread_start_addr (so)
- struct so_list *so;
+so_lib_thread_start_addr (struct so_list *so)
{
return so->pa64_solib_desc.tls_start_addr;
}
@@ -958,8 +926,7 @@ so_lib_thread_start_addr (so)
return nonzero. */
static boolean
-read_dld_descriptor (target)
- struct target_ops *target;
+read_dld_descriptor (struct target_ops *target)
{
char *dll_path;
asection *dyninfo_sect;
@@ -1028,9 +995,7 @@ read_dld_descriptor (target)
was used as a model for this. */
static boolean
-read_dynamic_info (dyninfo_sect, dld_cache_p)
- asection *dyninfo_sect;
- dld_cache_t *dld_cache_p;
+read_dynamic_info (asection *dyninfo_sect, dld_cache_t *dld_cache_p)
{
char *buf;
char *bufend;
@@ -1111,11 +1076,7 @@ read_dynamic_info (dyninfo_sect, dld_cache_p)
/* Wrapper for target_read_memory to make dlgetmodinfo happy. */
static void *
-pa64_target_read_memory (buffer, ptr, bufsiz, ident)
- void *buffer;
- CORE_ADDR ptr;
- size_t bufsiz;
- int ident;
+pa64_target_read_memory (void *buffer, CORE_ADDR ptr, size_t bufsiz, int ident)
{
if (target_read_memory (ptr, buffer, bufsiz) != 0)
return 0;
@@ -1130,13 +1091,9 @@ pa64_target_read_memory (buffer, ptr, bufsiz, ident)
be read from the inferior process at the address load_module_desc_addr. */
static void
-add_to_solist (from_tty, dll_path, load_module_desc_p,
- load_module_desc_addr, target)
- boolean from_tty;
- char *dll_path;
- struct load_module_desc *load_module_desc_p;
- CORE_ADDR load_module_desc_addr;
- struct target_ops *target;
+add_to_solist (boolean from_tty, char *dll_path,
+ struct load_module_desc *load_module_desc_p,
+ CORE_ADDR load_module_desc_addr, struct target_ops *target)
{
struct so_list *new_so, *so_list_tail;
int pa64_solib_st_size_threshhold_exceeded;
@@ -1239,9 +1196,7 @@ add_to_solist (from_tty, dll_path, load_module_desc_p,
*/
static CORE_ADDR
-bfd_lookup_symbol (abfd, symname)
- bfd *abfd;
- char *symname;
+bfd_lookup_symbol (bfd *abfd, char *symname)
{
unsigned int storage_needed;
asymbol *sym;
diff --git a/gdb/parse.c b/gdb/parse.c
index b8757b7..166446a 100644
--- a/gdb/parse.c
+++ b/gdb/parse.c
@@ -111,9 +111,7 @@ struct std_regs *std_regs;
REGISTER_NAME; std_regs; or a target specific alias hook. */
int
-target_map_name_to_register (str, len)
- char *str;
- int len;
+target_map_name_to_register (char *str, int len)
{
int i;
@@ -157,7 +155,7 @@ target_map_name_to_register (str, len)
saving the data about any containing call. */
void
-start_arglist ()
+start_arglist (void)
{
register struct funcall *new;
@@ -172,7 +170,7 @@ start_arglist ()
and restore the data for the containing function call. */
int
-end_arglist ()
+end_arglist (void)
{
register int val = arglist_len;
register struct funcall *call = funcall_chain;
@@ -206,8 +204,7 @@ free_funcalls (void *ignore)
a register through here */
void
-write_exp_elt (expelt)
- union exp_element expelt;
+write_exp_elt (union exp_element expelt)
{
if (expout_ptr >= expout_size)
{
@@ -220,8 +217,7 @@ write_exp_elt (expelt)
}
void
-write_exp_elt_opcode (expelt)
- enum exp_opcode expelt;
+write_exp_elt_opcode (enum exp_opcode expelt)
{
union exp_element tmp;
@@ -231,8 +227,7 @@ write_exp_elt_opcode (expelt)
}
void
-write_exp_elt_sym (expelt)
- struct symbol *expelt;
+write_exp_elt_sym (struct symbol *expelt)
{
union exp_element tmp;
@@ -242,8 +237,7 @@ write_exp_elt_sym (expelt)
}
void
-write_exp_elt_block (b)
- struct block *b;
+write_exp_elt_block (struct block *b)
{
union exp_element tmp;
tmp.block = b;
@@ -251,8 +245,7 @@ write_exp_elt_block (b)
}
void
-write_exp_elt_longcst (expelt)
- LONGEST expelt;
+write_exp_elt_longcst (LONGEST expelt)
{
union exp_element tmp;
@@ -262,8 +255,7 @@ write_exp_elt_longcst (expelt)
}
void
-write_exp_elt_dblcst (expelt)
- DOUBLEST expelt;
+write_exp_elt_dblcst (DOUBLEST expelt)
{
union exp_element tmp;
@@ -273,8 +265,7 @@ write_exp_elt_dblcst (expelt)
}
void
-write_exp_elt_type (expelt)
- struct type *expelt;
+write_exp_elt_type (struct type *expelt)
{
union exp_element tmp;
@@ -284,8 +275,7 @@ write_exp_elt_type (expelt)
}
void
-write_exp_elt_intern (expelt)
- struct internalvar *expelt;
+write_exp_elt_intern (struct internalvar *expelt)
{
union exp_element tmp;
@@ -316,8 +306,7 @@ write_exp_elt_intern (expelt)
void
-write_exp_string (str)
- struct stoken str;
+write_exp_string (struct stoken str)
{
register int len = str.length;
register int lenelt;
@@ -366,8 +355,7 @@ write_exp_string (str)
either end of the bitstring. */
void
-write_exp_bitstring (str)
- struct stoken str;
+write_exp_bitstring (struct stoken str)
{
register int bits = str.length; /* length in bits */
register int len = (bits + HOST_CHAR_BIT - 1) / HOST_CHAR_BIT;
@@ -414,10 +402,8 @@ static struct type *msym_data_symbol_type;
static struct type *msym_unknown_symbol_type;
void
-write_exp_msymbol (msymbol, text_symbol_type, data_symbol_type)
- struct minimal_symbol *msymbol;
- struct type *text_symbol_type;
- struct type *data_symbol_type;
+write_exp_msymbol (struct minimal_symbol *msymbol,
+ struct type *text_symbol_type, struct type *data_symbol_type)
{
CORE_ADDR addr;
@@ -478,8 +464,7 @@ write_exp_msymbol (msymbol, text_symbol_type, data_symbol_type)
*/
void
-write_dollar_variable (str)
- struct stoken str;
+write_dollar_variable (struct stoken str)
{
/* Handle the tokens $digits; also $ (short for $0) and $$ (short for $$1)
and $$digits (equivalent to $<-digits> if you could type that). */
@@ -595,12 +580,8 @@ static const char coloncolon[2] =
{':', ':'};
struct symbol *
-parse_nested_classes_for_hpacc (name, len, token, class_prefix, argptr)
- char *name;
- int len;
- char **token;
- int *class_prefix;
- char **argptr;
+parse_nested_classes_for_hpacc (char *name, int len, char **token,
+ int *class_prefix, char **argptr)
{
/* Comment below comes from decode_line_1 which has very similar
code, which is called for "break" command parsing. */
@@ -754,8 +735,7 @@ parse_nested_classes_for_hpacc (name, len, token, class_prefix, argptr)
}
char *
-find_template_name_end (p)
- char *p;
+find_template_name_end (char *p)
{
int depth = 1;
int just_seen_right = 0;
@@ -820,8 +800,7 @@ find_template_name_end (p)
of a string token. */
char *
-copy_name (token)
- struct stoken token;
+copy_name (struct stoken token)
{
memcpy (namecopy, token.ptr, token.length);
namecopy[token.length] = 0;
@@ -832,8 +811,7 @@ copy_name (token)
to prefix form (in which we can conveniently print or execute it). */
static void
-prefixify_expression (expr)
- register struct expression *expr;
+prefixify_expression (register struct expression *expr)
{
register int len =
sizeof (struct expression) + EXP_ELEM_TO_BYTES (expr->nelts);
@@ -852,9 +830,7 @@ prefixify_expression (expr)
whose last exp_element is at index ENDPOS - 1 in EXPR. */
int
-length_of_subexp (expr, endpos)
- register struct expression *expr;
- register int endpos;
+length_of_subexp (register struct expression *expr, register int endpos)
{
register int oplen = 1;
register int args = 0;
@@ -988,11 +964,8 @@ length_of_subexp (expr, endpos)
In the process, convert it from suffix to prefix form. */
static void
-prefixify_subexp (inexpr, outexpr, inend, outbeg)
- register struct expression *inexpr;
- struct expression *outexpr;
- register int inend;
- int outbeg;
+prefixify_subexp (register struct expression *inexpr,
+ struct expression *outexpr, register int inend, int outbeg)
{
register int oplen = 1;
register int args = 0;
@@ -1157,10 +1130,7 @@ prefixify_subexp (inexpr, outexpr, inend, outbeg)
If COMMA is nonzero, stop if a comma is reached. */
struct expression *
-parse_exp_1 (stringptr, block, comma)
- char **stringptr;
- struct block *block;
- int comma;
+parse_exp_1 (char **stringptr, struct block *block, int comma)
{
struct cleanup *old_chain;
@@ -1222,8 +1192,7 @@ parse_exp_1 (stringptr, block, comma)
to use up all of the contents of STRING. */
struct expression *
-parse_expression (string)
- char *string;
+parse_expression (char *string)
{
register struct expression *exp;
exp = parse_exp_1 (&string, 0, 0);
@@ -1236,8 +1205,7 @@ parse_expression (string)
probably useful for any language which declares its types "backwards". */
void
-push_type (tp)
- enum type_pieces tp;
+push_type (enum type_pieces tp)
{
if (type_stack_depth == type_stack_size)
{
@@ -1249,8 +1217,7 @@ push_type (tp)
}
void
-push_type_int (n)
- int n;
+push_type_int (int n)
{
if (type_stack_depth == type_stack_size)
{
@@ -1262,7 +1229,7 @@ push_type_int (n)
}
enum type_pieces
-pop_type ()
+pop_type (void)
{
if (type_stack_depth)
return type_stack[--type_stack_depth].piece;
@@ -1270,7 +1237,7 @@ pop_type ()
}
int
-pop_type_int ()
+pop_type_int (void)
{
if (type_stack_depth)
return type_stack[--type_stack_depth].int_val;
@@ -1281,8 +1248,7 @@ pop_type_int ()
/* Pop the type stack and return the type which corresponds to FOLLOW_TYPE
as modified by all the stuff on the stack. */
struct type *
-follow_types (follow_type)
- struct type *follow_type;
+follow_types (struct type *follow_type)
{
int done = 0;
int array_size;
@@ -1326,7 +1292,7 @@ follow_types (follow_type)
static void build_parse (void);
static void
-build_parse ()
+build_parse (void)
{
int i;
@@ -1388,7 +1354,7 @@ build_parse ()
}
void
-_initialize_parse ()
+_initialize_parse (void)
{
type_stack_size = 80;
type_stack_depth = 0;
diff --git a/gdb/ppc-bdm.c b/gdb/ppc-bdm.c
index e10ebac..1cd0237 100644
--- a/gdb/ppc-bdm.c
+++ b/gdb/ppc-bdm.c
@@ -77,9 +77,7 @@ char nowatchdog[4] =
NAME is the filename used for communication. */
static void
-bdm_ppc_open (name, from_tty)
- char *name;
- int from_tty;
+bdm_ppc_open (char *name, int from_tty)
{
CORE_ADDR watchdogaddr = 0xff000004;
@@ -99,9 +97,7 @@ bdm_ppc_open (name, from_tty)
means in the case of this target). */
static int
-bdm_ppc_wait (pid, target_status)
- int pid;
- struct target_waitstatus *target_status;
+bdm_ppc_wait (int pid, struct target_waitstatus *target_status)
{
int stop_reason;
@@ -153,8 +149,7 @@ static int bdm_regmap[] =
*/
static void
-bdm_ppc_fetch_registers (regno)
- int regno;
+bdm_ppc_fetch_registers (int regno)
{
int i;
unsigned char *regs, *beginregs, *endregs, *almostregs;
@@ -258,8 +253,7 @@ bdm_ppc_fetch_registers (regno)
of REGISTERS. FIXME: ignores errors. */
static void
-bdm_ppc_store_registers (regno)
- int regno;
+bdm_ppc_store_registers (int regno)
{
int i;
int first_regno, last_regno;
@@ -383,7 +377,7 @@ a wiggler, specify wiggler and then the port it is connected to\n\
} /* init_bdm_ppc_ops */
void
-_initialize_bdm_ppc ()
+_initialize_bdm_ppc (void)
{
init_bdm_ppc_ops ();
add_target (&bdm_ppc_ops);
diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c
index 30e580a..e37aef9 100644
--- a/gdb/ppc-linux-nat.c
+++ b/gdb/ppc-linux-nat.c
@@ -35,7 +35,7 @@
#include "gregset.h"
int
-kernel_u_size ()
+kernel_u_size (void)
{
return (sizeof (struct user));
}
diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c
index 50388fa..55ab716 100644
--- a/gdb/ppc-linux-tdep.c
+++ b/gdb/ppc-linux-tdep.c
@@ -419,12 +419,8 @@ ppc_linux_frame_chain (struct frame_info *thisframe)
starting from r4. */
CORE_ADDR
-ppc_sysv_abi_push_arguments (nargs, args, sp, struct_return, struct_addr)
- int nargs;
- value_ptr *args;
- CORE_ADDR sp;
- int struct_return;
- CORE_ADDR struct_addr;
+ppc_sysv_abi_push_arguments (int nargs, value_ptr *args, CORE_ADDR sp,
+ int struct_return, CORE_ADDR struct_addr)
{
int argno;
int greg, freg;
diff --git a/gdb/ppcbug-rom.c b/gdb/ppcbug-rom.c
index af1da73..16a7f9d 100644
--- a/gdb/ppcbug-rom.c
+++ b/gdb/ppcbug-rom.c
@@ -28,11 +28,7 @@
#include "serial.h"
static void
-ppcbug_supply_register (regname, regnamelen, val, vallen)
- char *regname;
- int regnamelen;
- char *val;
- int vallen;
+ppcbug_supply_register (char *regname, int regnamelen, char *val, int vallen)
{
int regno = 0;
@@ -188,23 +184,19 @@ static struct monitor_ops ppcbug_cmds0;
static struct monitor_ops ppcbug_cmds1;
static void
-ppcbug_open0 (args, from_tty)
- char *args;
- int from_tty;
+ppcbug_open0 (char *args, int from_tty)
{
monitor_open (args, &ppcbug_cmds0, from_tty);
}
static void
-ppcbug_open1 (args, from_tty)
- char *args;
- int from_tty;
+ppcbug_open1 (char *args, int from_tty)
{
monitor_open (args, &ppcbug_cmds1, from_tty);
}
void
-_initialize_ppcbug_rom ()
+_initialize_ppcbug_rom (void)
{
init_ppc_cmds ("lo 0\r", &ppcbug_cmds0, &ppcbug_ops0);
init_ppc_cmds ("lo 1\r", &ppcbug_cmds1, &ppcbug_ops1);
diff --git a/gdb/ppcnbsd-nat.c b/gdb/ppcnbsd-nat.c
index b754fa7..3fba397 100644
--- a/gdb/ppcnbsd-nat.c
+++ b/gdb/ppcnbsd-nat.c
@@ -34,8 +34,7 @@
memcpy(&dst, &registers[REGISTER_BYTE(src)], sizeof(dst))
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
struct reg inferior_registers;
struct fpreg inferior_fp_registers;
@@ -60,8 +59,7 @@ fetch_inferior_registers (regno)
}
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
struct reg inferior_registers;
struct fpreg inferior_fp_registers;
@@ -91,11 +89,8 @@ struct md_core
};
void
-fetch_core_registers (core_reg_sect, core_reg_size, which, ignore)
- char *core_reg_sect;
- unsigned core_reg_size;
- int which;
- CORE_ADDR ignore;
+fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, int which,
+ CORE_ADDR ignore)
{
struct md_core *core_reg = (struct md_core *) core_reg_sect;
int i;
@@ -129,7 +124,7 @@ static struct core_fns ppcnbsd_core_fns =
};
void
-_initialize_ppcnbsd_nat ()
+_initialize_ppcnbsd_nat (void)
{
add_core_fns (&ppcnbsd_core_fns);
}
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 45baef2..8210b55 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -191,10 +191,7 @@ static void sym_info (char *, int);
past the specification and past all whitespace following it. */
static struct format_data
-decode_format (string_ptr, oformat, osize)
- char **string_ptr;
- int oformat;
- int osize;
+decode_format (char **string_ptr, int oformat, int osize)
{
struct format_data val;
register char *p = *string_ptr;
@@ -282,11 +279,8 @@ decode_format (string_ptr, oformat, osize)
This is used to pad hex numbers so they line up. */
static void
-print_formatted (val, format, size, stream)
- register value_ptr val;
- register int format;
- int size;
- struct ui_file *stream;
+print_formatted (register value_ptr val, register int format, int size,
+ struct ui_file *stream)
{
struct type *type = check_typedef (VALUE_TYPE (val));
int len = TYPE_LENGTH (type);
@@ -349,12 +343,8 @@ print_formatted (val, format, size, stream)
with a format. */
void
-print_scalar_formatted (valaddr, type, format, size, stream)
- char *valaddr;
- struct type *type;
- int format;
- int size;
- struct ui_file *stream;
+print_scalar_formatted (char *valaddr, struct type *type, int format, int size,
+ struct ui_file *stream)
{
LONGEST val_long;
unsigned int len = TYPE_LENGTH (type);
@@ -526,8 +516,7 @@ print_scalar_formatted (valaddr, type, format, size, stream)
`info lines' uses this. */
void
-set_next_address (addr)
- CORE_ADDR addr;
+set_next_address (CORE_ADDR addr)
{
next_address = addr;
@@ -546,11 +535,8 @@ set_next_address (addr)
settings of the demangle and asm_demangle variables. */
void
-print_address_symbolic (addr, stream, do_demangle, leadin)
- CORE_ADDR addr;
- struct ui_file *stream;
- int do_demangle;
- char *leadin;
+print_address_symbolic (CORE_ADDR addr, struct ui_file *stream, int do_demangle,
+ char *leadin)
{
char *name = NULL;
char *filename = NULL;
@@ -730,10 +716,7 @@ build_address_symbolic (CORE_ADDR addr, /* IN */
/* Print address ADDR on STREAM. USE_LOCAL means the same thing as for
print_longest. */
void
-print_address_numeric (addr, use_local, stream)
- CORE_ADDR addr;
- int use_local;
- struct ui_file *stream;
+print_address_numeric (CORE_ADDR addr, int use_local, struct ui_file *stream)
{
/* Truncate address to the size of a target pointer, avoiding shifts
larger or equal than the width of a CORE_ADDR. The local
@@ -754,9 +737,7 @@ print_address_numeric (addr, use_local, stream)
<SYMBOL + OFFSET> after the number. */
void
-print_address (addr, stream)
- CORE_ADDR addr;
- struct ui_file *stream;
+print_address (CORE_ADDR addr, struct ui_file *stream)
{
print_address_numeric (addr, 1, stream);
print_address_symbolic (addr, stream, asm_demangle, " ");
@@ -768,10 +749,7 @@ print_address (addr, stream)
or not. */
void
-print_address_demangle (addr, stream, do_demangle)
- CORE_ADDR addr;
- struct ui_file *stream;
- int do_demangle;
+print_address_demangle (CORE_ADDR addr, struct ui_file *stream, int do_demangle)
{
if (addr == 0)
{
@@ -803,10 +781,7 @@ static struct type *examine_g_type;
Fetch it from memory and print on gdb_stdout. */
static void
-do_examine (fmt, addr, sect)
- struct format_data fmt;
- CORE_ADDR addr;
- asection *sect;
+do_examine (struct format_data fmt, CORE_ADDR addr, asection *sect)
{
register char format = 0;
register char size;
@@ -887,9 +862,7 @@ do_examine (fmt, addr, sect)
}
static void
-validate_format (fmt, cmdname)
- struct format_data fmt;
- char *cmdname;
+validate_format (struct format_data fmt, char *cmdname)
{
if (fmt.size != 0)
error ("Size letters are meaningless in \"%s\" command.", cmdname);
@@ -907,10 +880,7 @@ validate_format (fmt, cmdname)
*/
static void
-print_command_1 (exp, inspect, voidprint)
- char *exp;
- int inspect;
- int voidprint;
+print_command_1 (char *exp, int inspect, int voidprint)
{
struct expression *expr;
register struct cleanup *old_chain = 0;
@@ -1003,9 +973,7 @@ print_command_1 (exp, inspect, voidprint)
/* ARGSUSED */
static void
-print_command (exp, from_tty)
- char *exp;
- int from_tty;
+print_command (char *exp, int from_tty)
{
print_command_1 (exp, 0, 1);
}
@@ -1013,9 +981,7 @@ print_command (exp, from_tty)
/* Same as print, except in epoch, it gets its own window */
/* ARGSUSED */
static void
-inspect_command (exp, from_tty)
- char *exp;
- int from_tty;
+inspect_command (char *exp, int from_tty)
{
extern int epoch_interface;
@@ -1025,18 +991,14 @@ inspect_command (exp, from_tty)
/* Same as print, except it doesn't print void results. */
/* ARGSUSED */
static void
-call_command (exp, from_tty)
- char *exp;
- int from_tty;
+call_command (char *exp, int from_tty)
{
print_command_1 (exp, 0, 0);
}
/* ARGSUSED */
void
-output_command (exp, from_tty)
- char *exp;
- int from_tty;
+output_command (char *exp, int from_tty)
{
struct expression *expr;
register struct cleanup *old_chain;
@@ -1071,9 +1033,7 @@ output_command (exp, from_tty)
/* ARGSUSED */
static void
-set_command (exp, from_tty)
- char *exp;
- int from_tty;
+set_command (char *exp, int from_tty)
{
struct expression *expr = parse_expression (exp);
register struct cleanup *old_chain =
@@ -1084,9 +1044,7 @@ set_command (exp, from_tty)
/* ARGSUSED */
static void
-sym_info (arg, from_tty)
- char *arg;
- int from_tty;
+sym_info (char *arg, int from_tty)
{
struct minimal_symbol *msymbol;
struct objfile *objfile;
@@ -1131,9 +1089,7 @@ sym_info (arg, from_tty)
/* ARGSUSED */
static void
-address_info (exp, from_tty)
- char *exp;
- int from_tty;
+address_info (char *exp, int from_tty)
{
register struct symbol *sym;
register struct minimal_symbol *msymbol;
@@ -1345,9 +1301,7 @@ address_info (exp, from_tty)
}
void
-x_command (exp, from_tty)
- char *exp;
- int from_tty;
+x_command (char *exp, int from_tty)
{
struct expression *expr;
struct format_data fmt;
@@ -1424,9 +1378,7 @@ x_command (exp, from_tty)
Specify the expression. */
static void
-display_command (exp, from_tty)
- char *exp;
- int from_tty;
+display_command (char *exp, int from_tty)
{
struct format_data fmt;
register struct expression *expr;
@@ -1484,8 +1436,7 @@ display_command (exp, from_tty)
}
static void
-free_display (d)
- struct display *d;
+free_display (struct display *d)
{
free ((PTR) d->exp);
free ((PTR) d);
@@ -1496,7 +1447,7 @@ free_display (d)
the types stored in many expressions. */
void
-clear_displays ()
+clear_displays (void)
{
register struct display *d;
@@ -1511,8 +1462,7 @@ clear_displays ()
/* Delete the auto-display number NUM. */
static void
-delete_display (num)
- int num;
+delete_display (int num)
{
register struct display *d1, *d;
@@ -1544,9 +1494,7 @@ delete_display (num)
Specify the element numbers. */
static void
-undisplay_command (args, from_tty)
- char *args;
- int from_tty;
+undisplay_command (char *args, int from_tty)
{
register char *p = args;
register char *p1;
@@ -1584,8 +1532,7 @@ undisplay_command (args, from_tty)
or if the display is disabled. */
static void
-do_one_display (d)
- struct display *d;
+do_one_display (struct display *d)
{
int within_current_scope;
@@ -1670,7 +1617,7 @@ do_one_display (d)
evaluated in the current scope. */
void
-do_displays ()
+do_displays (void)
{
register struct display *d;
@@ -1682,8 +1629,7 @@ do_displays ()
This is done when there is an error or a signal. */
void
-disable_display (num)
- int num;
+disable_display (int num)
{
register struct display *d;
@@ -1697,7 +1643,7 @@ disable_display (num)
}
void
-disable_current_display ()
+disable_current_display (void)
{
if (current_display_number >= 0)
{
@@ -1709,9 +1655,7 @@ disable_current_display ()
}
static void
-display_info (ignore, from_tty)
- char *ignore;
- int from_tty;
+display_info (char *ignore, int from_tty)
{
register struct display *d;
@@ -1738,9 +1682,7 @@ Num Enb Expression\n");
}
static void
-enable_display (args, from_tty)
- char *args;
- int from_tty;
+enable_display (char *args, int from_tty)
{
register char *p = args;
register char *p1;
@@ -1779,9 +1721,7 @@ enable_display (args, from_tty)
/* ARGSUSED */
static void
-disable_display_command (args, from_tty)
- char *args;
- int from_tty;
+disable_display_command (char *args, int from_tty)
{
register char *p = args;
register char *p1;
@@ -1814,10 +1754,8 @@ disable_display_command (args, from_tty)
specified by a struct symbol. */
void
-print_variable_value (var, frame, stream)
- struct symbol *var;
- struct frame_info *frame;
- struct ui_file *stream;
+print_variable_value (struct symbol *var, struct frame_info *frame,
+ struct ui_file *stream)
{
value_ptr val = read_var_value (var, frame);
@@ -1833,11 +1771,8 @@ print_variable_value (var, frame, stream)
according to the stack frame". At least for VAX, i386, isi. */
void
-print_frame_args (func, fi, num, stream)
- struct symbol *func;
- struct frame_info *fi;
- int num;
- struct ui_file *stream;
+print_frame_args (struct symbol *func, struct frame_info *fi, int num,
+ struct ui_file *stream)
{
struct block *b = NULL;
int nsyms = 0;
@@ -2055,12 +1990,8 @@ print_frame_args (func, fi, num, stream)
the first nameless arg). */
static void
-print_frame_nameless_args (fi, start, num, first, stream)
- struct frame_info *fi;
- long start;
- int num;
- int first;
- struct ui_file *stream;
+print_frame_nameless_args (struct frame_info *fi, long start, int num,
+ int first, struct ui_file *stream)
{
int i;
CORE_ADDR argsaddr;
@@ -2098,9 +2029,7 @@ print_frame_nameless_args (fi, start, num, first, stream)
/* ARGSUSED */
static void
-printf_command (arg, from_tty)
- char *arg;
- int from_tty;
+printf_command (char *arg, int from_tty)
{
register char *f = NULL;
register char *s = arg;
@@ -2382,9 +2311,7 @@ printf_command (arg, from_tty)
/* ARGSUSED */
static void
-disassemble_command (arg, from_tty)
- char *arg;
- int from_tty;
+disassemble_command (char *arg, int from_tty)
{
CORE_ADDR low, high;
char *name;
@@ -2507,9 +2434,7 @@ disassemble_command (arg, from_tty)
on STREAM. Returns length of the instruction, in bytes. */
static int
-print_insn (memaddr, stream)
- CORE_ADDR memaddr;
- struct ui_file *stream;
+print_insn (CORE_ADDR memaddr, struct ui_file *stream)
{
if (TARGET_BYTE_ORDER == BIG_ENDIAN)
TARGET_PRINT_INSN_INFO->endian = BFD_ENDIAN_BIG;
@@ -2525,7 +2450,7 @@ print_insn (memaddr, stream)
void
-_initialize_printcmd ()
+_initialize_printcmd (void)
{
current_display_number = -1;
diff --git a/gdb/proc-api.c b/gdb/proc-api.c
index cf12d42..8a28b00 100644
--- a/gdb/proc-api.c
+++ b/gdb/proc-api.c
@@ -69,10 +69,7 @@ prepare_to_trace (void)
}
static void
-set_procfs_trace_cmd (args, from_tty, c)
- char *args;
- int from_tty;
- struct cmd_list_element *c;
+set_procfs_trace_cmd (char *args, int from_tty, struct cmd_list_element *c)
{
#if 0 /* not sure what I might actually need to do here, if anything */
if (procfs_file)
@@ -81,10 +78,7 @@ set_procfs_trace_cmd (args, from_tty, c)
}
static void
-set_procfs_file_cmd (args, from_tty, c)
- char *args;
- int from_tty;
- struct cmd_list_element *c;
+set_procfs_file_cmd (char *args, int from_tty, struct cmd_list_element *c)
{
/* Just changed the filename for procfs tracing.
If a file was already open, close it. */
@@ -223,12 +217,7 @@ static struct trans ioctl_table[] = {
};
int
-ioctl_with_trace (fd, opcode, ptr, file, line)
- int fd;
- long opcode;
- void *ptr;
- char *file;
- int line;
+ioctl_with_trace (int fd, long opcode, void *ptr, char *file, int line)
{
int i, ret, arg1;
@@ -453,12 +442,7 @@ static struct trans rw_table[] = {
static off_t lseek_offset;
int
-write_with_trace (fd, varg, len, file, line)
- int fd;
- void *varg;
- size_t len;
- char *file;
- int line;
+write_with_trace (int fd, void *varg, size_t len, char *file, int line)
{
int i;
int ret;
@@ -614,12 +598,7 @@ write_with_trace (fd, varg, len, file, line)
}
off_t
-lseek_with_trace (fd, offset, whence, file, line)
- int fd;
- off_t offset;
- int whence;
- char *file;
- int line;
+lseek_with_trace (int fd, off_t offset, int whence, char *file, int line)
{
off_t ret;
@@ -642,11 +621,7 @@ lseek_with_trace (fd, offset, whence, file, line)
#endif /* NEW_PROC_API */
int
-open_with_trace (filename, mode, file, line)
- char *filename;
- int mode;
- char *file;
- int line;
+open_with_trace (char *filename, int mode, char *file, int line)
{
int ret;
@@ -687,10 +662,7 @@ open_with_trace (filename, mode, file, line)
}
int
-close_with_trace (fd, file, line)
- int fd;
- char *file;
- int line;
+close_with_trace (int fd, char *file, int line)
{
int ret;
@@ -716,10 +688,7 @@ close_with_trace (fd, file, line)
}
pid_t
-wait_with_trace (wstat, file, line)
- int *wstat;
- char *file;
- int line;
+wait_with_trace (int *wstat, char *file, int line)
{
int ret, lstat = 0;
@@ -754,10 +723,7 @@ wait_with_trace (wstat, file, line)
}
void
-procfs_note (msg, file, line)
- char *msg;
- char *file;
- int line;
+procfs_note (char *msg, char *file, int line)
{
prepare_to_trace ();
if (procfs_trace)
@@ -772,11 +738,7 @@ procfs_note (msg, file, line)
}
void
-proc_prettyfprint_status (flags, why, what, thread)
- long flags;
- int why;
- int what;
- int thread;
+proc_prettyfprint_status (long flags, int why, int what, int thread)
{
prepare_to_trace ();
if (procfs_trace)
@@ -798,7 +760,7 @@ proc_prettyfprint_status (flags, why, what, thread)
void
-_initialize_proc_api ()
+_initialize_proc_api (void)
{
struct cmd_list_element *c;
diff --git a/gdb/proc-events.c b/gdb/proc-events.c
index 8af9671..c9b221d 100644
--- a/gdb/proc-events.c
+++ b/gdb/proc-events.c
@@ -1396,10 +1396,7 @@ init_syscall_table (void)
*/
void
-proc_prettyfprint_syscall (file, num, verbose)
- FILE *file;
- int num;
- int verbose;
+proc_prettyfprint_syscall (FILE *file, int num, int verbose)
{
if (syscall_table[num])
fprintf (file, "SYS_%s ", syscall_table[num]);
@@ -1408,9 +1405,7 @@ proc_prettyfprint_syscall (file, num, verbose)
}
void
-proc_prettyprint_syscall (num, verbose)
- int num;
- int verbose;
+proc_prettyprint_syscall (int num, int verbose)
{
proc_prettyfprint_syscall (stdout, num, verbose);
}
@@ -1420,10 +1415,7 @@ proc_prettyprint_syscall (num, verbose)
*/
void
-proc_prettyfprint_syscalls (file, sysset, verbose)
- FILE *file;
- sysset_t *sysset;
- int verbose;
+proc_prettyfprint_syscalls (FILE *file, sysset_t *sysset, int verbose)
{
int i;
@@ -1436,9 +1428,7 @@ proc_prettyfprint_syscalls (file, sysset, verbose)
}
void
-proc_prettyprint_syscalls (sysset, verbose)
- sysset_t *sysset;
- int verbose;
+proc_prettyprint_syscalls (sysset_t *sysset, int verbose)
{
proc_prettyfprint_syscalls (stdout, sysset, verbose);
}
@@ -1595,10 +1585,7 @@ static struct trans signal_table[] =
*/
void
-proc_prettyfprint_signal (file, signo, verbose)
- FILE *file;
- int signo;
- int verbose;
+proc_prettyfprint_signal (FILE *file, int signo, int verbose)
{
int i;
@@ -1616,9 +1603,7 @@ proc_prettyfprint_signal (file, signo, verbose)
}
void
-proc_prettyprint_signal (signo, verbose)
- int signo;
- int verbose;
+proc_prettyprint_signal (int signo, int verbose)
{
proc_prettyfprint_signal (stdout, signo, verbose);
}
@@ -1635,10 +1620,7 @@ proc_prettyprint_signal (signo, verbose)
*/
void
-proc_prettyfprint_signalset (file, sigset, verbose)
- FILE *file;
- sigset_t *sigset;
- int verbose;
+proc_prettyfprint_signalset (FILE *file, sigset_t *sigset, int verbose)
{
int i;
@@ -1651,9 +1633,7 @@ proc_prettyfprint_signalset (file, sigset, verbose)
}
void
-proc_prettyprint_signalset (sigset, verbose)
- sigset_t *sigset;
- int verbose;
+proc_prettyprint_signalset (sigset_t *sigset, int verbose)
{
proc_prettyfprint_signalset (stdout, sigset, verbose);
}
@@ -1714,10 +1694,7 @@ static struct trans fault_table[] =
*/
static void
-prettyfprint_faulttable_entry (file, i, verbose)
- FILE *file;
- int i;
- int verbose;
+prettyfprint_faulttable_entry (FILE *file, int i, int verbose)
{
fprintf (file, "%s", fault_table[i].name);
if (verbose)
@@ -1731,10 +1708,7 @@ prettyfprint_faulttable_entry (file, i, verbose)
*/
void
-proc_prettyfprint_fault (file, faultno, verbose)
- FILE *file;
- int faultno;
- int verbose;
+proc_prettyfprint_fault (FILE *file, int faultno, int verbose)
{
int i;
@@ -1750,9 +1724,7 @@ proc_prettyfprint_fault (file, faultno, verbose)
}
void
-proc_prettyprint_fault (faultno, verbose)
- int faultno;
- int verbose;
+proc_prettyprint_fault (int faultno, int verbose)
{
proc_prettyfprint_fault (stdout, faultno, verbose);
}
@@ -1767,10 +1739,7 @@ proc_prettyprint_fault (faultno, verbose)
*/
void
-proc_prettyfprint_faultset (file, fltset, verbose)
- FILE *file;
- fltset_t *fltset;
- int verbose;
+proc_prettyfprint_faultset (FILE *file, fltset_t *fltset, int verbose)
{
int i;
@@ -1783,9 +1752,7 @@ proc_prettyfprint_faultset (file, fltset, verbose)
}
void
-proc_prettyprint_faultset (fltset, verbose)
- fltset_t *fltset;
- int verbose;
+proc_prettyprint_faultset (fltset_t *fltset, int verbose)
{
proc_prettyfprint_faultset (stdout, fltset, verbose);
}
@@ -1800,7 +1767,7 @@ proc_prettyprint_actionset (struct sigaction *actions, int verbose)
}
void
-_initialize_proc_events ()
+_initialize_proc_events (void)
{
init_syscall_table ();
}
diff --git a/gdb/proc-flags.c b/gdb/proc-flags.c
index d2957be..aafd27e 100644
--- a/gdb/proc-flags.c
+++ b/gdb/proc-flags.c
@@ -269,10 +269,7 @@ static struct trans pr_flag_table[] =
};
void
-proc_prettyfprint_flags (file, flags, verbose)
- FILE *file;
- unsigned long flags;
- int verbose;
+proc_prettyfprint_flags (FILE *file, unsigned long flags, int verbose)
{
int i;
@@ -288,9 +285,7 @@ proc_prettyfprint_flags (file, flags, verbose)
}
void
-proc_prettyprint_flags (flags, verbose)
- unsigned long flags;
- int verbose;
+proc_prettyprint_flags (unsigned long flags, int verbose)
{
proc_prettyfprint_flags (stdout, flags, verbose);
}
diff --git a/gdb/proc-why.c b/gdb/proc-why.c
index 958eeb4..0c8eefd 100644
--- a/gdb/proc-why.c
+++ b/gdb/proc-why.c
@@ -105,11 +105,8 @@ static struct trans pr_why_table[] =
};
void
-proc_prettyfprint_why (file, why, what, verbose)
- FILE *file;
- unsigned long why;
- unsigned long what;
- int verbose;
+proc_prettyfprint_why (FILE *file, unsigned long why, unsigned long what,
+ int verbose)
{
int i;
@@ -172,10 +169,7 @@ proc_prettyfprint_why (file, why, what, verbose)
}
void
-proc_prettyprint_why (why, what, verbose)
- unsigned long why;
- unsigned long what;
- int verbose;
+proc_prettyprint_why (unsigned long why, unsigned long what, int verbose)
{
proc_prettyfprint_why (stdout, why, what, verbose);
}
diff --git a/gdb/procfs.c b/gdb/procfs.c
index b6f5534..86f42bf 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -124,7 +124,7 @@ char *procfs_pid_to_str (int);
struct target_ops procfs_ops; /* the target vector */
static void
-init_procfs_ops ()
+init_procfs_ops (void)
{
procfs_ops.to_shortname = "procfs";
procfs_ops.to_longname = "Unix /proc child process";
@@ -328,9 +328,7 @@ static procinfo * procinfo_list;
*/
static procinfo *
-find_procinfo (pid, tid)
- int pid;
- int tid;
+find_procinfo (int pid, int tid)
{
procinfo *pi;
@@ -363,9 +361,7 @@ find_procinfo (pid, tid)
*/
static procinfo *
-find_procinfo_or_die (pid, tid)
- int pid;
- int tid;
+find_procinfo_or_die (int pid, int tid)
{
procinfo *pi = find_procinfo (pid, tid);
@@ -396,9 +392,7 @@ find_procinfo_or_die (pid, tid)
enum { FD_CTL, FD_STATUS, FD_AS };
static int
-open_procinfo_files (pi, which)
- procinfo *pi;
- int which;
+open_procinfo_files (procinfo *pi, int which)
{
#ifdef NEW_PROC_API
char tmp[MAX_PROC_NAME_SIZE];
@@ -553,9 +547,7 @@ open_procinfo_files (pi, which)
*/
static procinfo *
-create_procinfo (pid, tid)
- int pid;
- int tid;
+create_procinfo (int pid, int tid)
{
procinfo *pi, *parent;
@@ -600,8 +592,7 @@ create_procinfo (pid, tid)
*/
static void
-close_procinfo_files (pi)
- procinfo *pi;
+close_procinfo_files (procinfo *pi)
{
if (pi->ctl_fd > 0)
close (pi->ctl_fd);
@@ -621,9 +612,7 @@ close_procinfo_files (pi)
*/
static void
-destroy_one_procinfo (list, pi)
- procinfo **list;
- procinfo *pi;
+destroy_one_procinfo (procinfo **list, procinfo *pi)
{
procinfo *ptr;
@@ -646,8 +635,7 @@ destroy_one_procinfo (list, pi)
}
static void
-destroy_procinfo (pi)
- procinfo *pi;
+destroy_procinfo (procinfo *pi)
{
procinfo *tmp;
@@ -683,10 +671,7 @@ enum { NOKILL, KILL };
*/
static void
-dead_procinfo (pi, msg, kill_p)
- procinfo *pi;
- char *msg;
- int kill_p;
+dead_procinfo (procinfo *pi, char *msg, int kill_p)
{
char procfile[80];
@@ -772,20 +757,14 @@ void proc_warn (procinfo * pi, char *func, int line);
void proc_error (procinfo * pi, char *func, int line);
void
-proc_warn (pi, func, line)
- procinfo *pi;
- char *func;
- int line;
+proc_warn (procinfo *pi, char *func, int line)
{
sprintf (errmsg, "procfs: %s line %d, %s", func, line, pi->pathname);
print_sys_errmsg (errmsg, errno);
}
void
-proc_error (pi, func, line)
- procinfo *pi;
- char *func;
- int line;
+proc_error (procinfo *pi, char *func, int line)
{
sprintf (errmsg, "procfs: %s line %d, %s", func, line, pi->pathname);
perror_with_name (errmsg);
@@ -804,8 +783,7 @@ proc_error (pi, func, line)
*/
int
-proc_get_status (pi)
- procinfo *pi;
+proc_get_status (procinfo *pi)
{
/* Status file descriptor is opened "lazily" */
if (pi->status_fd == 0 &&
@@ -903,8 +881,7 @@ proc_get_status (pi)
*/
long
-proc_flags (pi)
- procinfo *pi;
+proc_flags (procinfo *pi)
{
if (!pi->status_valid)
if (!proc_get_status (pi))
@@ -931,8 +908,7 @@ proc_flags (pi)
*/
int
-proc_why (pi)
- procinfo *pi;
+proc_why (procinfo *pi)
{
if (!pi->status_valid)
if (!proc_get_status (pi))
@@ -952,8 +928,7 @@ proc_why (pi)
*/
int
-proc_what (pi)
- procinfo *pi;
+proc_what (procinfo *pi)
{
if (!pi->status_valid)
if (!proc_get_status (pi))
@@ -974,8 +949,7 @@ proc_what (pi)
*/
int
-proc_nsysarg (pi)
- procinfo *pi;
+proc_nsysarg (procinfo *pi)
{
if (!pi->status_valid)
if (!proc_get_status (pi))
@@ -995,8 +969,7 @@ proc_nsysarg (pi)
*/
long *
-proc_sysargs (pi)
- procinfo *pi;
+proc_sysargs (procinfo *pi)
{
if (!pi->status_valid)
if (!proc_get_status (pi))
@@ -1016,8 +989,7 @@ proc_sysargs (pi)
*/
int
-proc_syscall (pi)
- procinfo *pi;
+proc_syscall (procinfo *pi)
{
if (!pi->status_valid)
if (!proc_get_status (pi))
@@ -1087,10 +1059,7 @@ proc_cursig (struct procinfo *pi)
enum { FLAG_RESET, FLAG_SET };
static int
-proc_modify_flag (pi, flag, mode)
- procinfo *pi;
- long flag;
- long mode;
+proc_modify_flag (procinfo *pi, long flag, long mode)
{
long win = 0; /* default to fail */
@@ -1199,8 +1168,7 @@ proc_modify_flag (pi, flag, mode)
*/
int
-proc_set_run_on_last_close (pi)
- procinfo *pi;
+proc_set_run_on_last_close (procinfo *pi)
{
return proc_modify_flag (pi, PR_RLC, FLAG_SET);
}
@@ -1216,8 +1184,7 @@ proc_set_run_on_last_close (pi)
*/
int
-proc_unset_run_on_last_close (pi)
- procinfo *pi;
+proc_unset_run_on_last_close (procinfo *pi)
{
return proc_modify_flag (pi, PR_RLC, FLAG_RESET);
}
@@ -1234,8 +1201,7 @@ proc_unset_run_on_last_close (pi)
*/
int
-proc_set_kill_on_last_close (pi)
- procinfo *pi;
+proc_set_kill_on_last_close (procinfo *pi)
{
return proc_modify_flag (pi, PR_KLC, FLAG_SET);
}
@@ -1251,8 +1217,7 @@ proc_set_kill_on_last_close (pi)
*/
int
-proc_unset_kill_on_last_close (pi)
- procinfo *pi;
+proc_unset_kill_on_last_close (procinfo *pi)
{
return proc_modify_flag (pi, PR_KLC, FLAG_RESET);
}
@@ -1269,8 +1234,7 @@ proc_unset_kill_on_last_close (pi)
*/
int
-proc_set_inherit_on_fork (pi)
- procinfo *pi;
+proc_set_inherit_on_fork (procinfo *pi)
{
return proc_modify_flag (pi, PR_FORK, FLAG_SET);
}
@@ -1286,8 +1250,7 @@ proc_set_inherit_on_fork (pi)
*/
int
-proc_unset_inherit_on_fork (pi)
- procinfo *pi;
+proc_unset_inherit_on_fork (procinfo *pi)
{
return proc_modify_flag (pi, PR_FORK, FLAG_RESET);
}
@@ -1304,8 +1267,7 @@ proc_unset_inherit_on_fork (pi)
*/
int
-proc_set_async (pi)
- procinfo *pi;
+proc_set_async (procinfo *pi)
{
return proc_modify_flag (pi, PR_ASYNC, FLAG_SET);
}
@@ -1321,8 +1283,7 @@ proc_set_async (pi)
*/
int
-proc_unset_async (pi)
- procinfo *pi;
+proc_unset_async (procinfo *pi)
{
return proc_modify_flag (pi, PR_ASYNC, FLAG_RESET);
}
@@ -1336,8 +1297,7 @@ proc_unset_async (pi)
*/
int
-proc_stop_process (pi)
- procinfo *pi;
+proc_stop_process (procinfo *pi)
{
int win;
@@ -1379,8 +1339,7 @@ proc_stop_process (pi)
*/
int
-proc_wait_for_stop (pi)
- procinfo *pi;
+proc_wait_for_stop (procinfo *pi)
{
int win;
@@ -1444,10 +1403,7 @@ proc_wait_for_stop (pi)
*/
int
-proc_run_process (pi, step, signo)
- procinfo *pi;
- int step;
- int signo;
+proc_run_process (procinfo *pi, int step, int signo)
{
int win;
int runflags;
@@ -1500,9 +1456,7 @@ proc_run_process (pi, step, signo)
*/
int
-proc_set_traced_signals (pi, sigset)
- procinfo *pi;
- sigset_t *sigset;
+proc_set_traced_signals (procinfo *pi, sigset_t *sigset)
{
int win;
@@ -1548,9 +1502,7 @@ proc_set_traced_signals (pi, sigset)
*/
int
-proc_set_traced_faults (pi, fltset)
- procinfo *pi;
- fltset_t *fltset;
+proc_set_traced_faults (procinfo *pi, fltset_t *fltset)
{
int win;
@@ -1594,9 +1546,7 @@ proc_set_traced_faults (pi, fltset)
*/
int
-proc_set_traced_sysentry (pi, sysset)
- procinfo *pi;
- sysset_t *sysset;
+proc_set_traced_sysentry (procinfo *pi, sysset_t *sysset)
{
int win;
@@ -1640,9 +1590,7 @@ proc_set_traced_sysentry (pi, sysset)
*/
int
-proc_set_traced_sysexit (pi, sysset)
- procinfo *pi;
- sysset_t *sysset;
+proc_set_traced_sysexit (procinfo *pi, sysset_t *sysset)
{
int win;
@@ -1686,9 +1634,7 @@ proc_set_traced_sysexit (pi, sysset)
*/
int
-proc_set_held_signals (pi, sighold)
- procinfo *pi;
- sigset_t *sighold;
+proc_set_held_signals (procinfo *pi, sigset_t *sighold)
{
int win;
@@ -1731,9 +1677,7 @@ proc_set_held_signals (pi, sighold)
*/
sigset_t *
-proc_get_pending_signals (pi, save)
- procinfo *pi;
- sigset_t *save;
+proc_get_pending_signals (procinfo *pi, sigset_t *save)
{
sigset_t *ret = NULL;
@@ -1770,9 +1714,7 @@ proc_get_pending_signals (pi, save)
*/
struct sigaction *
-proc_get_signal_actions (pi, save)
- procinfo *pi;
- struct sigaction *save;
+proc_get_signal_actions (procinfo *pi, struct sigaction *save)
{
struct sigaction *ret = NULL;
@@ -1809,9 +1751,7 @@ proc_get_signal_actions (pi, save)
*/
sigset_t *
-proc_get_held_signals (pi, save)
- procinfo *pi;
- sigset_t *save;
+proc_get_held_signals (procinfo *pi, sigset_t *save)
{
sigset_t *ret = NULL;
@@ -1857,9 +1797,7 @@ proc_get_held_signals (pi, save)
*/
sigset_t *
-proc_get_traced_signals (pi, save)
- procinfo *pi;
- sigset_t *save;
+proc_get_traced_signals (procinfo *pi, sigset_t *save)
{
sigset_t *ret = NULL;
@@ -1901,9 +1839,7 @@ proc_get_traced_signals (pi, save)
*/
int
-proc_trace_signal (pi, signo)
- procinfo *pi;
- int signo;
+proc_trace_signal (procinfo *pi, int signo)
{
sigset_t temp;
@@ -1937,9 +1873,7 @@ proc_trace_signal (pi, signo)
*/
int
-proc_ignore_signal (pi, signo)
- procinfo *pi;
- int signo;
+proc_ignore_signal (procinfo *pi, int signo)
{
sigset_t temp;
@@ -1973,9 +1907,7 @@ proc_ignore_signal (pi, signo)
*/
fltset_t *
-proc_get_traced_faults (pi, save)
- procinfo *pi;
- fltset_t *save;
+proc_get_traced_faults (procinfo *pi, fltset_t *save)
{
fltset_t *ret = NULL;
@@ -2017,9 +1949,7 @@ proc_get_traced_faults (pi, save)
*/
sysset_t *
-proc_get_traced_sysentry (pi, save)
- procinfo *pi;
- sysset_t *save;
+proc_get_traced_sysentry (procinfo *pi, sysset_t *save)
{
sysset_t *ret = NULL;
@@ -2061,9 +1991,7 @@ proc_get_traced_sysentry (pi, save)
*/
sysset_t *
-proc_get_traced_sysexit (pi, save)
- procinfo *pi;
- sysset_t *save;
+proc_get_traced_sysexit (procinfo *pi, sysset_t *save)
{
sysset_t * ret = NULL;
@@ -2106,8 +2034,7 @@ proc_get_traced_sysexit (pi, save)
*/
int
-proc_clear_current_fault (pi)
- procinfo *pi;
+proc_clear_current_fault (procinfo *pi)
{
int win;
@@ -2147,9 +2074,7 @@ proc_clear_current_fault (pi)
*/
int
-proc_set_current_signal (pi, signo)
- procinfo *pi;
- int signo;
+proc_set_current_signal (procinfo *pi, int signo)
{
int win;
struct {
@@ -2205,8 +2130,7 @@ proc_set_current_signal (pi, signo)
*/
int
-proc_clear_current_signal (pi)
- procinfo *pi;
+proc_clear_current_signal (procinfo *pi)
{
int win;
@@ -2255,8 +2179,7 @@ proc_clear_current_signal (pi)
*/
gdb_gregset_t *
-proc_get_gregs (pi)
- procinfo *pi;
+proc_get_gregs (procinfo *pi)
{
if (!pi->status_valid || !pi->gregs_valid)
if (!proc_get_status (pi))
@@ -2287,8 +2210,7 @@ proc_get_gregs (pi)
*/
gdb_fpregset_t *
-proc_get_fpregs (pi)
- procinfo *pi;
+proc_get_fpregs (procinfo *pi)
{
#ifdef NEW_PROC_API
if (!pi->status_valid || !pi->fpregs_valid)
@@ -2365,8 +2287,7 @@ proc_get_fpregs (pi)
*/
int
-proc_set_gregs (pi)
- procinfo *pi;
+proc_set_gregs (procinfo *pi)
{
gdb_gregset_t *gregs;
int win;
@@ -2409,8 +2330,7 @@ proc_set_gregs (pi)
*/
int
-proc_set_fpregs (pi)
- procinfo *pi;
+proc_set_fpregs (procinfo *pi)
{
gdb_fpregset_t *fpregs;
int win;
@@ -2472,9 +2392,7 @@ proc_set_fpregs (pi)
*/
int
-proc_kill (pi, signo)
- procinfo *pi;
- int signo;
+proc_kill (procinfo *pi, int signo)
{
int win;
@@ -2514,8 +2432,7 @@ proc_kill (pi, signo)
*/
int
-proc_parent_pid (pi)
- procinfo *pi;
+proc_parent_pid (procinfo *pi)
{
/*
* We should never have to apply this operation to any procinfo
@@ -2541,11 +2458,7 @@ proc_parent_pid (pi)
*/
int
-proc_set_watchpoint (pi, addr, len, wflags)
- procinfo *pi;
- CORE_ADDR addr;
- int len;
- int wflags;
+proc_set_watchpoint (procinfo *pi, CORE_ADDR addr, int len, int wflags)
{
#if !defined (TARGET_HAS_HARDWARE_WATCHPOINTS)
return 0;
@@ -2709,9 +2622,7 @@ proc_iterate_over_mappings (func)
*/
struct ssd *
-proc_get_LDT_entry (pi, key)
- procinfo *pi;
- int key;
+proc_get_LDT_entry (procinfo *pi, int key)
{
static struct ssd *ldt_entry = NULL;
#ifdef NEW_PROC_API
@@ -2805,8 +2716,7 @@ proc_get_LDT_entry (pi, key)
* OSF version
*/
int
-proc_get_nthreads (pi)
- procinfo *pi;
+proc_get_nthreads (procinfo *pi)
{
int nthreads = 0;
@@ -2822,8 +2732,7 @@ proc_get_nthreads (pi)
* Solaris and Unixware version
*/
int
-proc_get_nthreads (pi)
- procinfo *pi;
+proc_get_nthreads (procinfo *pi)
{
if (!pi->status_valid)
if (!proc_get_status (pi))
@@ -2845,8 +2754,7 @@ proc_get_nthreads (pi)
* Default version
*/
int
-proc_get_nthreads (pi)
- procinfo *pi;
+proc_get_nthreads (procinfo *pi)
{
return 0;
}
@@ -2867,8 +2775,7 @@ proc_get_nthreads (pi)
* Solaris and Unixware version
*/
int
-proc_get_current_thread (pi)
- procinfo *pi;
+proc_get_current_thread (procinfo *pi)
{
/*
* Note: this should be applied to the root procinfo for the process,
@@ -2897,8 +2804,7 @@ proc_get_current_thread (pi)
* OSF version
*/
int
-proc_get_current_thread (pi)
- procinfo *pi;
+proc_get_current_thread (procinfo *pi)
{
#if 0 /* FIXME: not ready for prime time? */
return pi->prstatus.pr_tid;
@@ -2912,8 +2818,7 @@ proc_get_current_thread (pi)
* Default version
*/
int
-proc_get_current_thread (pi)
- procinfo *pi;
+proc_get_current_thread (procinfo *pi)
{
return 0;
}
@@ -2933,10 +2838,7 @@ proc_get_current_thread (pi)
*/
int
-proc_delete_dead_threads (parent, thread, ignore)
- procinfo *parent;
- procinfo *thread;
- void *ignore;
+proc_delete_dead_threads (procinfo *parent, procinfo *thread, void *ignore)
{
if (thread && parent) /* sanity */
{
@@ -2952,8 +2854,7 @@ proc_delete_dead_threads (parent, thread, ignore)
* Solaris 2.5 (ioctl) version
*/
int
-proc_update_threads (pi)
- procinfo *pi;
+proc_update_threads (procinfo *pi)
{
gdb_prstatus_t *prstatus;
struct cleanup *old_chain = NULL;
@@ -3008,8 +2909,7 @@ do_closedir_cleanup (void *dir)
}
int
-proc_update_threads (pi)
- procinfo *pi;
+proc_update_threads (procinfo *pi)
{
char pathname[MAX_PROC_NAME_SIZE + 16];
struct dirent *direntry;
@@ -3063,8 +2963,7 @@ proc_update_threads (pi)
* OSF version
*/
int
-proc_update_threads (pi)
- procinfo *pi;
+proc_update_threads (procinfo *pi)
{
int nthreads, i;
tid_t *threads;
@@ -3105,8 +3004,7 @@ proc_update_threads (pi)
* Default version
*/
int
-proc_update_threads (pi)
- procinfo *pi;
+proc_update_threads (procinfo *pi)
{
return 0;
}
@@ -3192,8 +3090,7 @@ static int register_gdb_signals (procinfo *, sigset_t *);
*/
static int
-procfs_debug_inferior (pi)
- procinfo *pi;
+procfs_debug_inferior (procinfo *pi)
{
fltset_t traced_faults;
sigset_t traced_signals;
@@ -3284,9 +3181,7 @@ procfs_debug_inferior (pi)
}
static void
-procfs_attach (args, from_tty)
- char *args;
- int from_tty;
+procfs_attach (char *args, int from_tty)
{
char *exec_file;
int pid;
@@ -3315,9 +3210,7 @@ procfs_attach (args, from_tty)
}
static void
-procfs_detach (args, from_tty)
- char *args;
- int from_tty;
+procfs_detach (char *args, int from_tty)
{
char *exec_file;
int signo = 0;
@@ -3340,8 +3233,7 @@ procfs_detach (args, from_tty)
}
static int
-do_attach (pid)
- int pid;
+do_attach (int pid)
{
procinfo *pi;
int fail;
@@ -3398,8 +3290,7 @@ do_attach (pid)
}
static void
-do_detach (signo)
- int signo;
+do_detach (int signo)
{
procinfo *pi;
@@ -3452,8 +3343,7 @@ do_detach (signo)
*/
static void
-procfs_fetch_registers (regno)
- int regno;
+procfs_fetch_registers (int regno)
{
gdb_fpregset_t *fpregs;
gdb_gregset_t *gregs;
@@ -3506,7 +3396,7 @@ procfs_fetch_registers (regno)
from the program being debugged. */
static void
-procfs_prepare_to_store ()
+procfs_prepare_to_store (void)
{
#ifdef CHILD_PREPARE_TO_STORE
CHILD_PREPARE_TO_STORE ();
@@ -3525,8 +3415,7 @@ procfs_prepare_to_store ()
*/
static void
-procfs_store_registers (regno)
- int regno;
+procfs_store_registers (int regno)
{
gdb_fpregset_t *fpregs;
gdb_gregset_t *gregs;
@@ -3589,9 +3478,7 @@ procfs_store_registers (regno)
*/
static int
-procfs_wait (pid, status)
- int pid;
- struct target_waitstatus *status;
+procfs_wait (int pid, struct target_waitstatus *status)
{
/* First cut: loosely based on original version 2.1 */
procinfo *pi;
@@ -4078,10 +3965,7 @@ procfs_xfer_memory (memaddr, myaddr, len, dowrite, target)
static int
-invalidate_cache (parent, pi, ptr)
- procinfo *parent;
- procinfo *pi;
- void *ptr;
+invalidate_cache (procinfo *parent, procinfo *pi, void *ptr)
{
/*
* About to run the child; invalidate caches and do any other cleanup.
@@ -4133,10 +4017,7 @@ invalidate_cache (parent, pi, ptr)
*/
static int
-make_signal_thread_runnable (process, pi, ptr)
- procinfo *process;
- procinfo *pi;
- void *ptr;
+make_signal_thread_runnable (procinfo *process, procinfo *pi, void *ptr)
{
#ifdef PR_ASLWP
if (proc_flags (pi) & PR_ASLWP)
@@ -4168,10 +4049,7 @@ make_signal_thread_runnable (process, pi, ptr)
*/
static void
-procfs_resume (pid, step, signo)
- int pid;
- int step;
- enum target_signal signo;
+procfs_resume (int pid, int step, enum target_signal signo)
{
procinfo *pi, *thread;
int native_signo;
@@ -4261,9 +4139,7 @@ procfs_resume (pid, step, signo)
*/
static int
-register_gdb_signals (pi, signals)
- procinfo *pi;
- sigset_t *signals;
+register_gdb_signals (procinfo *pi, sigset_t *signals)
{
int signo;
@@ -4285,8 +4161,7 @@ register_gdb_signals (pi, signals)
*/
static void
-procfs_notice_signals (pid)
- int pid;
+procfs_notice_signals (int pid)
{
sigset_t signals;
procinfo *pi = find_procinfo_or_die (PIDGET (pid), 0);
@@ -4305,8 +4180,7 @@ procfs_notice_signals (pid)
*/
static void
-procfs_files_info (ignore)
- struct target_ops *ignore;
+procfs_files_info (struct target_ops *ignore)
{
printf_filtered ("\tUsing the running image of %s %s via /proc.\n",
attach_flag? "attached": "child",
@@ -4320,9 +4194,7 @@ procfs_files_info (ignore)
*/
static void
-procfs_open (args, from_tty)
- char *args;
- int from_tty;
+procfs_open (char *args, int from_tty)
{
error ("Use the \"run\" command to start a Unix child process.");
}
@@ -4341,7 +4213,7 @@ int procfs_suppress_run = 0; /* Non-zero if procfs should pretend not to
static int
-procfs_can_run ()
+procfs_can_run (void)
{
/* This variable is controlled by modules that sit atop procfs that
may layer their own process structure atop that provided here.
@@ -4363,7 +4235,7 @@ procfs_can_run ()
*/
static void
-procfs_stop ()
+procfs_stop (void)
{
extern pid_t inferior_process_group;
@@ -4380,8 +4252,7 @@ procfs_stop ()
*/
static void
-unconditionally_kill_inferior (pi)
- procinfo *pi;
+unconditionally_kill_inferior (procinfo *pi)
{
int parent_pid;
@@ -4443,7 +4314,7 @@ unconditionally_kill_inferior (pi)
*/
static void
-procfs_kill_inferior ()
+procfs_kill_inferior (void)
{
if (inferior_pid != 0) /* ? */
{
@@ -4463,7 +4334,7 @@ procfs_kill_inferior ()
*/
static void
-procfs_mourn_inferior ()
+procfs_mourn_inferior (void)
{
procinfo *pi;
@@ -4488,8 +4359,7 @@ procfs_mourn_inferior ()
*/
static void
-procfs_init_inferior (pid)
- int pid;
+procfs_init_inferior (int pid)
{
procinfo *pi;
sigset_t signals;
@@ -4579,7 +4449,7 @@ procfs_init_inferior (pid)
*/
static void
-procfs_set_exec_trap ()
+procfs_set_exec_trap (void)
{
/* This routine called on the child side (inferior side)
after GDB forks the inferior. It must use only local variables,
@@ -4681,10 +4551,7 @@ procfs_set_exec_trap ()
*/
static void
-procfs_create_inferior (exec_file, allargs, env)
- char *exec_file;
- char *allargs;
- char **env;
+procfs_create_inferior (char *exec_file, char *allargs, char **env)
{
char *shell_file = getenv ("SHELL");
char *tryname;
@@ -4773,10 +4640,7 @@ procfs_create_inferior (exec_file, allargs, env)
*/
static int
-procfs_notice_thread (pi, thread, ptr)
- procinfo *pi;
- procinfo *thread;
- void *ptr;
+procfs_notice_thread (procinfo *pi, procinfo *thread, void *ptr)
{
int gdb_threadid = MERGEPID (pi->pid, thread->tid);
@@ -4794,7 +4658,7 @@ procfs_notice_thread (pi, thread, ptr)
*/
void
-procfs_find_new_threads ()
+procfs_find_new_threads (void)
{
procinfo *pi;
@@ -4814,8 +4678,7 @@ procfs_find_new_threads ()
*/
static int
-procfs_thread_alive (pid)
- int pid;
+procfs_thread_alive (int pid)
{
int proc, thread;
procinfo *pi;
@@ -4845,8 +4708,7 @@ procfs_thread_alive (pid)
*/
char *
-procfs_pid_to_str (pid)
- int pid;
+procfs_pid_to_str (int pid)
{
static char buf[80];
int proc, thread;
@@ -4869,12 +4731,7 @@ procfs_pid_to_str (pid)
*/
int
-procfs_set_watchpoint (pid, addr, len, rwflag, after)
- int pid;
- CORE_ADDR addr;
- int len;
- int rwflag;
- int after;
+procfs_set_watchpoint (int pid, CORE_ADDR addr, int len, int rwflag, int after)
{
#ifndef UNIXWARE
int pflags = 0;
@@ -4928,8 +4785,7 @@ procfs_set_watchpoint (pid, addr, len, rwflag, after)
*/
int
-procfs_stopped_by_watchpoint (pid)
- int pid;
+procfs_stopped_by_watchpoint (int pid)
{
procinfo *pi;
@@ -4964,8 +4820,7 @@ procfs_stopped_by_watchpoint (pid)
*/
struct ssd *
-procfs_find_LDT_entry (pid)
- int pid;
+procfs_find_LDT_entry (int pid)
{
gdb_gregset_t *gregs;
int key;
@@ -4996,9 +4851,7 @@ procfs_find_LDT_entry (pid)
static void
-info_proc_cmd (args, from_tty)
- char *args;
- int from_tty;
+info_proc_cmd (char *args, int from_tty)
{
struct cleanup *old_chain;
procinfo *process = NULL;
@@ -5078,11 +4931,7 @@ info_proc_cmd (args, from_tty)
}
static void
-proc_trace_syscalls (args, from_tty, entry_or_exit, mode)
- char *args;
- int from_tty;
- int entry_or_exit;
- int mode;
+proc_trace_syscalls (char *args, int from_tty, int entry_or_exit, int mode)
{
procinfo *pi;
sysset_t *sysset;
@@ -5125,40 +4974,32 @@ proc_trace_syscalls (args, from_tty, entry_or_exit, mode)
}
static void
-proc_trace_sysentry_cmd (args, from_tty)
- char *args;
- int from_tty;
+proc_trace_sysentry_cmd (char *args, int from_tty)
{
proc_trace_syscalls (args, from_tty, PR_SYSENTRY, FLAG_SET);
}
static void
-proc_trace_sysexit_cmd (args, from_tty)
- char *args;
- int from_tty;
+proc_trace_sysexit_cmd (char *args, int from_tty)
{
proc_trace_syscalls (args, from_tty, PR_SYSEXIT, FLAG_SET);
}
static void
-proc_untrace_sysentry_cmd (args, from_tty)
- char *args;
- int from_tty;
+proc_untrace_sysentry_cmd (char *args, int from_tty)
{
proc_trace_syscalls (args, from_tty, PR_SYSENTRY, FLAG_RESET);
}
static void
-proc_untrace_sysexit_cmd (args, from_tty)
- char *args;
- int from_tty;
+proc_untrace_sysexit_cmd (char *args, int from_tty)
{
proc_trace_syscalls (args, from_tty, PR_SYSEXIT, FLAG_RESET);
}
void
-_initialize_procfs ()
+_initialize_procfs (void)
{
init_procfs_ops ();
add_target (&procfs_ops);
@@ -5190,7 +5031,7 @@ Default is the process being debugged.");
*/
int
-procfs_first_available ()
+procfs_first_available (void)
{
if (procinfo_list)
return procinfo_list->pid;
diff --git a/gdb/ptx4-nat.c b/gdb/ptx4-nat.c
index d1a5248..e721787 100644
--- a/gdb/ptx4-nat.c
+++ b/gdb/ptx4-nat.c
@@ -34,8 +34,7 @@
register values. */
void
-supply_gregset (gregsetp)
- gregset_t *gregsetp;
+supply_gregset (gregset_t *gregsetp)
{
supply_register (EAX_REGNUM, (char *) &(*gregsetp)[EAX]);
supply_register (EDX_REGNUM, (char *) &(*gregsetp)[EDX]);
@@ -50,9 +49,7 @@ supply_gregset (gregsetp)
}
void
-fill_gregset (gregsetp, regno)
- gregset_t *gregsetp;
- int regno;
+fill_gregset (gregset_t *gregsetp, int regno)
{
int regi;
@@ -70,8 +67,7 @@ fill_gregset (gregsetp, regno)
idea of the current floating point register values. */
void
-supply_fpregset (fpregsetp)
- fpregset_t *fpregsetp;
+supply_fpregset (fpregset_t *fpregsetp)
{
supply_fpu_registers ((struct fpusave *) &fpregsetp->fp_reg_set);
supply_fpa_registers ((struct fpasave *) &fpregsetp->f_wregs);
@@ -83,9 +79,7 @@ supply_fpregset (fpregsetp)
them all. */
void
-fill_fpregset (fpregsetp, regno)
- fpregset_t *fpregsetp;
- int regno;
+fill_fpregset (fpregset_t *fpregsetp, int regno)
{
int regi;
char *to;
diff --git a/gdb/remote-adapt.c b/gdb/remote-adapt.c
index b41f3c2..4e6b70b 100644
--- a/gdb/remote-adapt.c
+++ b/gdb/remote-adapt.c
@@ -118,9 +118,7 @@ FILE *adapt_stream;
#define ON 1
#define OFF 0
static void
-rawmode (desc, turnon)
- int desc;
- int turnon;
+rawmode (int desc, int turnon)
{
TERMINAL sg;
@@ -150,7 +148,7 @@ rawmode (desc, turnon)
}
/* Suck up all the input from the adapt */
-slurp_input ()
+slurp_input (void)
{
char buf[8];
@@ -167,7 +165,7 @@ slurp_input ()
/* Read a character from the remote system, doing all the fancy
timeout stuff. */
static int
-readchar ()
+readchar (void)
{
char buf;
@@ -198,8 +196,7 @@ readchar ()
/* Keep discarding input from the remote system, until STRING is found.
Let the user break out immediately. */
static void
-expect (string)
- char *string;
+expect (char *string)
{
char *p = string;
@@ -236,7 +233,7 @@ expect (string)
necessary to prevent getting into states from which we can't
recover. */
static void
-expect_prompt ()
+expect_prompt (void)
{
#if defined (LOG_FILE)
/* This is a convenient place to do this. The idea is to do it often
@@ -250,8 +247,7 @@ expect_prompt ()
/* Get a hex digit from the remote system & return its value.
If ignore_space is nonzero, ignore spaces (not newline, tab, etc). */
static int
-get_hex_digit (ignore_space)
- int ignore_space;
+get_hex_digit (int ignore_space)
{
int ch;
while (1)
@@ -276,8 +272,7 @@ get_hex_digit (ignore_space)
/* Get a byte from adapt_desc and put it in *BYT. Accept any number
leading spaces. */
static void
-get_hex_byte (byt)
- char *byt;
+get_hex_byte (char *byt)
{
int val;
@@ -288,7 +283,7 @@ get_hex_byte (byt)
/* Read a 32-bit hex word from the adapt, preceded by a space */
static long
-get_hex_word ()
+get_hex_word (void)
{
long val;
int j;
@@ -301,9 +296,7 @@ get_hex_word ()
/* Get N 32-bit hex words from remote, each preceded by a space
and put them in registers starting at REGNO. */
static void
-get_hex_regs (n, regno)
- int n;
- int regno;
+get_hex_regs (int n, int regno)
{
long val;
while (n--)
@@ -324,7 +317,7 @@ get_hex_regs (n, regno)
volatile int n_alarms;
void
-adapt_timer ()
+adapt_timer (void)
{
#if 0
if (kiodebug)
@@ -344,9 +337,7 @@ static char *prog_name = NULL;
static int need_artificial_trap = 0;
void
-adapt_kill (arg, from_tty)
- char *arg;
- int from_tty;
+adapt_kill (char *arg, int from_tty)
{
fprintf (adapt_stream, "K");
fprintf (adapt_stream, "\r");
@@ -357,9 +348,7 @@ adapt_kill (arg, from_tty)
* FIXME: Assumes the file to download is a binary coff file.
*/
static void
-adapt_load (args, fromtty)
- char *args;
- int fromtty;
+adapt_load (char *args, int fromtty)
{
FILE *fp;
int n;
@@ -429,10 +418,7 @@ adapt_load (args, fromtty)
/* This is called not only when we first attach, but also when the
user types "run" after having attached. */
void
-adapt_create_inferior (execfile, args, env)
- char *execfile;
- char *args;
- char **env;
+adapt_create_inferior (char *execfile, char *args, char **env)
{
int entry_pt;
@@ -569,8 +555,7 @@ baudtab[] =
};
static int
-damn_b (rate)
- int rate;
+damn_b (int rate)
{
int i;
@@ -588,9 +573,7 @@ damn_b (rate)
static int baudrate = 9600;
static void
-adapt_open (name, from_tty)
- char *name;
- int from_tty;
+adapt_open (char *name, int from_tty)
{
TERMINAL sg;
unsigned int prl;
@@ -701,8 +684,7 @@ the baud rate, and the name of the program to run on the remote system.");
/* Close out all files and local state before this target loses control. */
static void
-adapt_close (quitting)
- int quitting;
+adapt_close (int quitting)
{
/* Clear any break points */
@@ -742,9 +724,7 @@ adapt_close (quitting)
/* Attach to the target that is already loaded and possibly running */
static void
-adapt_attach (args, from_tty)
- char *args;
- int from_tty;
+adapt_attach (char *args, int from_tty)
{
if (from_tty)
@@ -761,9 +741,7 @@ adapt_attach (args, from_tty)
Use this when you want to detach and do something else
with your gdb. */
void
-adapt_detach (args, from_tty)
- char *args;
- int from_tty;
+adapt_detach (char *args, int from_tty)
{
if (adapt_stream)
@@ -780,9 +758,7 @@ adapt_detach (args, from_tty)
/* Tell the remote machine to resume. */
void
-adapt_resume (pid, step, sig)
- int pid, step;
- enum target_signal sig;
+adapt_resume (int pid, int step, enum target_signal sig)
{
if (step)
{
@@ -811,8 +787,7 @@ adapt_resume (pid, step, sig)
storing status in STATUS just as `wait' would. */
int
-adapt_wait (status)
- struct target_waitstatus *status;
+adapt_wait (struct target_waitstatus *status)
{
/* Strings to look for. '?' means match any single character.
Note that with the algorithm we use, the initial character
@@ -909,8 +884,7 @@ adapt_wait (status)
Returns a pointer to a static buffer containing the answer. */
static char *
-get_reg_name (regno)
- int regno;
+get_reg_name (int regno)
{
static char buf[80];
if (regno >= GR96_REGNUM && regno < GR96_REGNUM + 32)
@@ -945,7 +919,7 @@ get_reg_name (regno)
/* Read the remote registers. */
static void
-adapt_fetch_registers ()
+adapt_fetch_registers (void)
{
int reg_index;
int regnum_index;
@@ -1062,8 +1036,7 @@ adapt_fetch_registers ()
/* Fetch register REGNO, or all registers if REGNO is -1.
*/
static void
-adapt_fetch_register (regno)
- int regno;
+adapt_fetch_register (int regno)
{
if (regno == -1)
adapt_fetch_registers ();
@@ -1081,7 +1054,7 @@ adapt_fetch_register (regno)
/* Store the remote registers from the contents of the block REGS. */
static void
-adapt_store_registers ()
+adapt_store_registers (void)
{
int i, j;
@@ -1137,8 +1110,7 @@ adapt_store_registers ()
/* Store register REGNO, or all if REGNO == -1.
Return errno value. */
void
-adapt_store_register (regno)
- int regno;
+adapt_store_register (int regno)
{
/* printf("adapt_store_register() called.\n"); fflush(stdout); /* */
if (regno == -1)
@@ -1166,14 +1138,13 @@ adapt_store_register (regno)
debugged. */
void
-adapt_prepare_to_store ()
+adapt_prepare_to_store (void)
{
/* Do nothing, since we can store individual regs */
}
static CORE_ADDR
-translate_addr (addr)
- CORE_ADDR addr;
+translate_addr (CORE_ADDR addr)
{
#if defined(KERNEL_DEBUGGING)
/* Check for a virtual address in the kernel */
@@ -1196,11 +1167,7 @@ translate_addr (addr)
/* FIXME! Merge these two. */
int
-adapt_xfer_inferior_memory (memaddr, myaddr, len, write)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
- int write;
+adapt_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len, int write)
{
memaddr = translate_addr (memaddr);
@@ -1212,7 +1179,7 @@ adapt_xfer_inferior_memory (memaddr, myaddr, len, write)
}
void
-adapt_files_info ()
+adapt_files_info (void)
{
printf_filtered ("\tAttached to %s at %d baud and running program %s\n",
dev_name, baudrate, prog_name);
@@ -1224,10 +1191,7 @@ adapt_files_info ()
* sb/sh instructions don't work on unaligned addresses, when TU=1.
*/
int
-adapt_write_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+adapt_write_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
int i;
unsigned int cps;
@@ -1258,10 +1222,7 @@ adapt_write_inferior_memory (memaddr, myaddr, len)
/* Read LEN bytes from inferior memory at MEMADDR. Put the result
at debugger address MYADDR. Returns errno value. */
int
-adapt_read_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+adapt_read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
int i;
@@ -1371,7 +1332,7 @@ adapt_remove_breakpoint (addr, save)
/* Clear the adapts notion of what the break points are */
static int
-adapt_clear_breakpoints ()
+adapt_clear_breakpoints (void)
{
if (adapt_stream)
{
@@ -1383,7 +1344,7 @@ adapt_clear_breakpoints ()
num_brkpts = 0;
}
static void
-adapt_mourn ()
+adapt_mourn (void)
{
adapt_clear_breakpoints ();
pop_target (); /* Pop back to no-child state */
@@ -1394,8 +1355,7 @@ adapt_mourn ()
* specified string
*/
static int
-display_until (str)
- char *str;
+display_until (char *str)
{
int i = 0, j, c;
@@ -1429,9 +1389,7 @@ display_until (str)
FIXME: Can't handle commands that take input. */
void
-adapt_com (args, fromtty)
- char *args;
- int fromtty;
+adapt_com (char *args, int fromtty)
{
if (!adapt_stream)
{
@@ -1554,7 +1512,7 @@ init_adapt_ops (void)
} /* init_adapt_ops */
void
-_initialize_remote_adapt ()
+_initialize_remote_adapt (void)
{
init_adapt_ops ();
add_target (&adapt_ops);
diff --git a/gdb/remote-array.c b/gdb/remote-array.c
index fcbddc0..498c218 100644
--- a/gdb/remote-array.c
+++ b/gdb/remote-array.c
@@ -317,8 +317,7 @@ debuglogs (int level, char *pattern,...)
* timeout stuff.
*/
static int
-readchar (timeout)
- int timeout;
+readchar (int timeout)
{
int c;
@@ -356,9 +355,7 @@ readchar (timeout)
* it out. Let the user break out immediately.
*/
static void
-expect (string, discard)
- char *string;
- int discard;
+expect (char *string, int discard)
{
char *p = string;
int c;
@@ -407,8 +404,7 @@ expect (string, discard)
necessary to prevent getting into states from which we can't
recover. */
static void
-expect_prompt (discard)
- int discard;
+expect_prompt (int discard)
{
expect (ARRAY_PROMPT, discard);
}
@@ -417,8 +413,7 @@ expect_prompt (discard)
* junk -- ignore junk characters. Returns a 1 if junk, 0 otherwise
*/
static int
-junk (ch)
- char ch;
+junk (char ch)
{
switch (ch)
{
@@ -443,8 +438,7 @@ junk (ch)
* If ignore is nonzero, ignore spaces, newline & tabs.
*/
static int
-get_hex_digit (ignore)
- int ignore;
+get_hex_digit (int ignore)
{
static int ch;
while (1)
@@ -490,8 +484,7 @@ get_hex_digit (ignore)
* Accept any number leading spaces.
*/
static void
-get_hex_byte (byt)
- char *byt;
+get_hex_byte (char *byt)
{
int val;
@@ -510,7 +503,7 @@ get_hex_byte (byt)
* and put them in registers starting at REGNO.
*/
static int
-get_hex_word ()
+get_hex_word (void)
{
long val, newval;
int i;
@@ -540,10 +533,7 @@ get_hex_word ()
/* This is called not only when we first attach, but also when the
user types "run" after having attached. */
static void
-array_create_inferior (execfile, args, env)
- char *execfile;
- char *args;
- char **env;
+array_create_inferior (char *execfile, char *args, char **env)
{
int entry_pt;
@@ -584,10 +574,7 @@ static int baudrate = 9600;
static char dev_name[100];
static void
-array_open (args, name, from_tty)
- char *args;
- char *name;
- int from_tty;
+array_open (char *args, char *name, int from_tty)
{
char packet[PBUFSIZ];
@@ -659,8 +646,7 @@ array_open (args, name, from_tty)
*/
static void
-array_close (quitting)
- int quitting;
+array_close (int quitting)
{
SERIAL_CLOSE (array_desc);
array_desc = NULL;
@@ -684,8 +670,7 @@ array_close (quitting)
* else with your gdb.
*/
static void
-array_detach (from_tty)
- int from_tty;
+array_detach (int from_tty)
{
debuglogs (1, "array_detach ()");
@@ -699,9 +684,7 @@ array_detach (from_tty)
* array_attach -- attach GDB to the target.
*/
static void
-array_attach (args, from_tty)
- char *args;
- int from_tty;
+array_attach (char *args, int from_tty)
{
if (from_tty)
printf ("Starting remote %s debugging\n", target_shortname);
@@ -717,9 +700,7 @@ array_attach (args, from_tty)
* array_resume -- Tell the remote machine to resume.
*/
static void
-array_resume (pid, step, sig)
- int pid, step;
- enum target_signal sig;
+array_resume (int pid, int step, enum target_signal sig)
{
debuglogs (1, "array_resume (step=%d, sig=%d)", step, sig);
@@ -740,9 +721,7 @@ array_resume (pid, step, sig)
* storing status in status just as `wait' would.
*/
static int
-array_wait (pid, status)
- int pid;
- struct target_waitstatus *status;
+array_wait (int pid, struct target_waitstatus *status)
{
int old_timeout = timeout;
int result, i;
@@ -816,8 +795,7 @@ array_wait (pid, status)
* block regs.
*/
static void
-array_fetch_registers (ignored)
- int ignored;
+array_fetch_registers (int ignored)
{
int regno, i;
char *p;
@@ -852,8 +830,7 @@ array_fetch_registers (ignored)
* protocol based on GDB's remote protocol.
*/
static void
-array_fetch_register (ignored)
- int ignored;
+array_fetch_register (int ignored)
{
array_fetch_registers ();
}
@@ -862,8 +839,7 @@ array_fetch_register (ignored)
* Get all the registers from the targets. They come back in a large array.
*/
static void
-array_store_registers (ignored)
- int ignored;
+array_store_registers (int ignored)
{
int regno;
unsigned long i;
@@ -902,8 +878,7 @@ array_store_registers (ignored)
* protocol based on GDB's remote protocol.
*/
static void
-array_store_register (ignored)
- int ignored;
+array_store_register (int ignored)
{
array_store_registers ();
}
@@ -915,13 +890,13 @@ array_store_register (ignored)
debugged. */
static void
-array_prepare_to_store ()
+array_prepare_to_store (void)
{
/* Do nothing, since we can store individual regs */
}
static void
-array_files_info ()
+array_files_info (void)
{
printf ("\tAttached to %s at %d baud.\n",
dev_name, baudrate);
@@ -932,10 +907,7 @@ array_files_info ()
* memory at MYADDR to inferior's memory at MEMADDR. Returns length moved.
*/
static int
-array_write_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- unsigned char *myaddr;
- int len;
+array_write_inferior_memory (CORE_ADDR memaddr, unsigned char *myaddr, int len)
{
unsigned long i;
int j;
@@ -980,10 +952,7 @@ array_write_inferior_memory (memaddr, myaddr, len)
* length moved.
*/
static int
-array_read_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+array_read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
int j;
char buf[20];
@@ -1067,9 +1036,7 @@ array_xfer_memory (memaddr, myaddr, len, write, target)
}
static void
-array_kill (args, from_tty)
- char *args;
- int from_tty;
+array_kill (char *args, int from_tty)
{
return; /* ignore attempts to kill target system */
}
@@ -1080,7 +1047,7 @@ array_kill (args, from_tty)
instructions. */
static void
-array_mourn_inferior ()
+array_mourn_inferior (void)
{
remove_breakpoints ();
generic_mourn_inferior (); /* Do all the proper things now */
@@ -1095,9 +1062,7 @@ static CORE_ADDR breakaddr[MAX_ARRAY_BREAKPOINTS] =
* array_insert_breakpoint -- add a breakpoint
*/
static int
-array_insert_breakpoint (addr, shadow)
- CORE_ADDR addr;
- char *shadow;
+array_insert_breakpoint (CORE_ADDR addr, char *shadow)
{
int i;
int bp_size = 0;
@@ -1128,9 +1093,7 @@ array_insert_breakpoint (addr, shadow)
* _remove_breakpoint -- Tell the monitor to remove a breakpoint
*/
static int
-array_remove_breakpoint (addr, shadow)
- CORE_ADDR addr;
- char *shadow;
+array_remove_breakpoint (CORE_ADDR addr, char *shadow)
{
int i;
@@ -1153,7 +1116,7 @@ array_remove_breakpoint (addr, shadow)
}
static void
-array_stop ()
+array_stop (void)
{
debuglogs (1, "array_stop()");
printf_monitor ("\003");
@@ -1166,9 +1129,7 @@ array_stop ()
* expect_prompt is seen. FIXME
*/
static void
-monitor_command (args, fromtty)
- char *args;
- int fromtty;
+monitor_command (char *args, int fromtty)
{
debuglogs (1, "monitor_command (args=%s)", args);
@@ -1199,8 +1160,7 @@ monitor_command (args, fromtty)
*
*/
static void
-make_gdb_packet (buf, data)
- char *buf, *data;
+make_gdb_packet (char *buf, char *data)
{
int i;
unsigned char csum = 0;
@@ -1239,8 +1199,7 @@ make_gdb_packet (buf, data)
* successful transmition, or a 0 for a failure.
*/
static int
-array_send_packet (packet)
- char *packet;
+array_send_packet (char *packet)
{
int c, retries, i;
char junk[PBUFSIZ];
@@ -1338,8 +1297,7 @@ array_send_packet (packet)
* packet, or a 0 it the packet wasn't transmitted correctly.
*/
static int
-array_get_packet (packet)
- char *packet;
+array_get_packet (char *packet)
{
int c;
int retries;
@@ -1433,8 +1391,7 @@ array_get_packet (packet)
* ascii2hexword -- convert an ascii number represented by 8 digits to a hex value.
*/
static unsigned long
-ascii2hexword (mem)
- unsigned char *mem;
+ascii2hexword (unsigned char *mem)
{
unsigned long val;
int i;
@@ -1462,9 +1419,7 @@ ascii2hexword (mem)
* digits.
*/
static void
-hexword2ascii (mem, num)
- unsigned char *mem;
- unsigned long num;
+hexword2ascii (unsigned char *mem, unsigned long num)
{
int i;
unsigned char ch;
@@ -1482,8 +1437,7 @@ hexword2ascii (mem, num)
/* Convert hex digit A to a number. */
static int
-from_hex (a)
- int a;
+from_hex (int a)
{
if (a == 0)
return 0;
@@ -1503,8 +1457,7 @@ from_hex (a)
/* Convert number NIB to a hex digit. */
static int
-tohex (nib)
- int nib;
+tohex (int nib)
{
if (nib < 10)
return '0' + nib;
@@ -1517,7 +1470,7 @@ tohex (nib)
* are usually only used by monitors.
*/
void
-_initialize_remote_monitors ()
+_initialize_remote_monitors (void)
{
/* generic monitor command */
add_com ("monitor", class_obscure, monitor_command,
@@ -1529,7 +1482,7 @@ _initialize_remote_monitors ()
* _initialize_array -- do any special init stuff for the target.
*/
void
-_initialize_array ()
+_initialize_array (void)
{
init_array_ops ();
add_target (&array_ops);
diff --git a/gdb/remote-bug.c b/gdb/remote-bug.c
index e3a5a67..7d34615 100644
--- a/gdb/remote-bug.c
+++ b/gdb/remote-bug.c
@@ -111,9 +111,7 @@ static int need_artificial_trap = 0;
*/
static void
-bug_load (args, fromtty)
- char *args;
- int fromtty;
+bug_load (char *args, int fromtty)
{
bfd *abfd;
asection *s;
@@ -170,8 +168,7 @@ bug_load (args, fromtty)
#if 0
static char *
-get_word (p)
- char **p;
+get_word (char **p)
{
char *s = *p;
char *word;
@@ -217,9 +214,7 @@ static char *cpu_check_strings[] =
};
static void
-bug_open (args, from_tty)
- char *args;
- int from_tty;
+bug_open (char *args, int from_tty)
{
if (args == NULL)
args = "";
@@ -245,9 +240,7 @@ bug_open (args, from_tty)
/* Tell the remote machine to resume. */
void
-bug_resume (pid, step, sig)
- int pid, step;
- enum target_signal sig;
+bug_resume (int pid, int step, enum target_signal sig)
{
dcache_flush (gr_get_dcache ());
@@ -279,9 +272,7 @@ static char *wait_strings[] =
};
int
-bug_wait (pid, status)
- int pid;
- struct target_waitstatus *status;
+bug_wait (int pid, struct target_waitstatus *status)
{
int old_timeout = sr_get_timeout ();
int old_immediate_quit = immediate_quit;
@@ -352,8 +343,7 @@ bug_wait (pid, status)
Returns a pointer to a static buffer containing the answer. */
static char *
-get_reg_name (regno)
- int regno;
+get_reg_name (int regno)
{
static char *rn[] =
{
@@ -386,8 +376,7 @@ get_reg_name (regno)
success, -1 on failure. */
static int
-bug_scan (s)
- char *s;
+bug_scan (char *s)
{
int c;
@@ -407,8 +396,7 @@ bug_scan (s)
#endif /* never */
static int
-bug_srec_write_cr (s)
- char *s;
+bug_srec_write_cr (char *s)
{
char *p = s;
@@ -434,8 +422,7 @@ bug_srec_write_cr (s)
/* Store register REGNO, or all if REGNO == -1. */
static void
-bug_fetch_register (regno)
- int regno;
+bug_fetch_register (int regno)
{
sr_check_open ();
@@ -513,8 +500,7 @@ bug_fetch_register (regno)
/* Store register REGNO, or all if REGNO == -1. */
static void
-bug_store_register (regno)
- int regno;
+bug_store_register (int regno)
{
char buffer[1024];
sr_check_open ();
@@ -582,7 +568,7 @@ bug_xfer_memory (memaddr, myaddr, len, write, target)
}
static void
-start_load ()
+start_load (void)
{
char *command;
@@ -616,10 +602,7 @@ static char *srecord_strings[] =
};
static int
-bug_write_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- unsigned char *myaddr;
- int len;
+bug_write_memory (CORE_ADDR memaddr, unsigned char *myaddr, int len)
{
int done;
int checksum;
@@ -743,10 +726,7 @@ bug_write_memory (memaddr, myaddr, len)
/* Read LEN bytes from inferior memory at MEMADDR. Put the result
at debugger address MYADDR. Returns errno value. */
static int
-bug_read_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- unsigned char *myaddr;
- int len;
+bug_read_memory (CORE_ADDR memaddr, unsigned char *myaddr, int len)
{
char request[100];
char *buffer;
@@ -888,7 +868,7 @@ bug_remove_breakpoint (addr, save)
/* Clear the bugs notion of what the break points are */
static int
-bug_clear_breakpoints ()
+bug_clear_breakpoints (void)
{
if (sr_is_open ())
@@ -973,7 +953,7 @@ init_bug_ops (void)
} /* init_bug_ops */
void
-_initialize_remote_bug ()
+_initialize_remote_bug (void)
{
init_bug_ops ();
add_target (&bug_ops);
diff --git a/gdb/remote-e7000.c b/gdb/remote-e7000.c
index dcc1384..6022c4d 100644
--- a/gdb/remote-e7000.c
+++ b/gdb/remote-e7000.c
@@ -148,8 +148,7 @@ static int timeout = 20;
/* Send data to e7000debug. */
static void
-puts_e7000debug (buf)
- char *buf;
+puts_e7000debug (char *buf)
{
if (!e7000_desc)
error ("Use \"target e7000 ...\" first.");
@@ -168,8 +167,7 @@ puts_e7000debug (buf)
}
static void
-putchar_e7000 (x)
- int x;
+putchar_e7000 (int x)
{
char b[1];
@@ -178,15 +176,13 @@ putchar_e7000 (x)
}
static void
-write_e7000 (s)
- char *s;
+write_e7000 (char *s)
{
SERIAL_WRITE (e7000_desc, s, strlen (s));
}
static int
-normal (x)
- int x;
+normal (int x)
{
if (x == '\n')
return '\r';
@@ -198,8 +194,7 @@ normal (x)
returns -1, else returns next char. Discards chars > 127. */
static int
-readchar (timeout)
- int timeout;
+readchar (int timeout)
{
int c;
@@ -230,7 +225,7 @@ readchar (timeout)
#if 0
char *
-tl (x)
+tl (int x)
{
static char b[8][10];
static int p;
@@ -256,8 +251,7 @@ tl (x)
out. Let the user break out immediately. */
static void
-expect (string)
- char *string;
+expect (char *string)
{
char *p = string;
int c;
@@ -327,20 +321,19 @@ expect (string)
into states from which we can't recover. */
static void
-expect_prompt ()
+expect_prompt (void)
{
expect (":");
}
static void
-expect_full_prompt ()
+expect_full_prompt (void)
{
expect ("\r:");
}
static int
-convert_hex_digit (ch)
- int ch;
+convert_hex_digit (int ch)
{
if (ch >= '0' && ch <= '9')
return ch - '0';
@@ -352,8 +345,7 @@ convert_hex_digit (ch)
}
static int
-get_hex (start)
- int *start;
+get_hex (int *start)
{
int value = convert_hex_digit (*start);
int try;
@@ -373,9 +365,7 @@ get_hex (start)
them in registers starting at REGNO. */
static void
-get_hex_regs (n, regno)
- int n;
- int regno;
+get_hex_regs (int n, int regno)
{
long val;
int i;
@@ -396,10 +386,7 @@ get_hex_regs (n, regno)
user types "run" after having attached. */
static void
-e7000_create_inferior (execfile, args, env)
- char *execfile;
- char *args;
- char **env;
+e7000_create_inferior (char *execfile, char *args, char **env)
{
int entry_pt;
@@ -448,8 +435,7 @@ static char *dir = "";
/* Grab the next token and buy some space for it */
static char *
-next (ptr)
- char **ptr;
+next (char **ptr)
{
char *p = *ptr;
char *s;
@@ -472,9 +458,7 @@ next (ptr)
}
static void
-e7000_login_command (args, from_tty)
- char *args;
- int from_tty;
+e7000_login_command (char *args, int from_tty)
{
if (args)
{
@@ -496,9 +480,7 @@ e7000_login_command (args, from_tty)
/* Start an ftp transfer from the E7000 to a host */
static void
-e7000_ftp_command (args, from_tty)
- char *args;
- int from_tty;
+e7000_ftp_command (char *args, int from_tty)
{
/* FIXME: arbitrary limit on machine names and such. */
char buf[200];
@@ -528,10 +510,7 @@ e7000_ftp_command (args, from_tty)
}
static int
-e7000_parse_device (args, dev_name, baudrate)
- char *args;
- char *dev_name;
- int baudrate;
+e7000_parse_device (char *args, char *dev_name, int baudrate)
{
char junk[128];
int n = 0;
@@ -583,8 +562,7 @@ or \t\ttarget e7000 pc\n");
/* Stub for catch_errors. */
static int
-e7000_start_remote (dummy)
- char *dummy;
+e7000_start_remote (char *dummy)
{
int loop;
int sync;
@@ -674,9 +652,7 @@ e7000_start_remote (dummy)
}
static void
-e7000_open (args, from_tty)
- char *args;
- int from_tty;
+e7000_open (char *args, int from_tty)
{
int n;
@@ -711,8 +687,7 @@ e7000_open (args, from_tty)
/* Close out all files and local state before this target loses control. */
static void
-e7000_close (quitting)
- int quitting;
+e7000_close (int quitting)
{
if (e7000_desc)
{
@@ -725,8 +700,7 @@ e7000_close (quitting)
when you want to detach and do something else with your gdb. */
static void
-e7000_detach (from_tty)
- int from_tty;
+e7000_detach (int from_tty)
{
pop_target (); /* calls e7000_close to do the real work */
if (from_tty)
@@ -736,8 +710,7 @@ e7000_detach (from_tty)
/* Tell the remote machine to resume. */
static void
-e7000_resume (pid, step, sig)
- int pid, step, sig;
+e7000_resume (int pid, int step, int sig)
{
if (step)
puts_e7000debug ("S\r");
@@ -807,13 +780,13 @@ char *want_nopc_sh3 = "%16 SR=%22\n\
R4_BANK1-R7_BANK1 %37 %38 %39 %40";
static int
-gch ()
+gch (void)
{
return readchar (timeout);
}
static unsigned int
-gbyte ()
+gbyte (void)
{
int high = convert_hex_digit (gch ());
int low = convert_hex_digit (gch ());
@@ -930,7 +903,7 @@ fetch_regs_from_dump (nextchar, want)
}
static void
-e7000_fetch_registers ()
+e7000_fetch_registers (void)
{
int regno;
char *wanted;
@@ -973,8 +946,7 @@ e7000_fetch_registers ()
errno value. */
static void
-e7000_fetch_register (regno)
- int regno;
+e7000_fetch_register (int regno)
{
e7000_fetch_registers ();
}
@@ -982,7 +954,7 @@ e7000_fetch_register (regno)
/* Store the remote registers from the contents of the block REGS. */
static void
-e7000_store_registers ()
+e7000_store_registers (void)
{
int regno;
@@ -995,8 +967,7 @@ e7000_store_registers ()
/* Store register REGNO, or all if REGNO == 0. Return errno value. */
static void
-e7000_store_register (regno)
- int regno;
+e7000_store_register (int regno)
{
char buf[200];
@@ -1087,21 +1058,19 @@ e7000_store_register (regno)
debugged. */
static void
-e7000_prepare_to_store ()
+e7000_prepare_to_store (void)
{
/* Do nothing, since we can store individual regs */
}
static void
-e7000_files_info ()
+e7000_files_info (void)
{
printf_unfiltered ("\tAttached to %s at %d baud.\n", dev_name, baudrate);
}
static int
-stickbyte (where, what)
- char *where;
- unsigned int what;
+stickbyte (char *where, unsigned int what)
{
static CONST char digs[] = "0123456789ABCDEF";
@@ -1114,10 +1083,7 @@ stickbyte (where, what)
/* Write a small ammount of memory. */
static int
-write_small (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- unsigned char *myaddr;
- int len;
+write_small (CORE_ADDR memaddr, unsigned char *myaddr, int len)
{
int i;
char buf[200];
@@ -1161,10 +1127,7 @@ write_small (memaddr, myaddr, len)
*/
static int
-write_large (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- unsigned char *myaddr;
- int len;
+write_large (CORE_ADDR memaddr, unsigned char *myaddr, int len)
{
int i;
#define maxstride 128
@@ -1258,10 +1221,7 @@ write_large (memaddr, myaddr, len)
then. */
static int
-e7000_write_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- unsigned char *myaddr;
- int len;
+e7000_write_inferior_memory (CORE_ADDR memaddr, unsigned char *myaddr, int len)
{
if (len < 16 || using_tcp || using_pc)
return write_small (memaddr, myaddr, len);
@@ -1279,10 +1239,7 @@ e7000_write_inferior_memory (memaddr, myaddr, len)
*/
static int
-e7000_read_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- unsigned char *myaddr;
- int len;
+e7000_read_inferior_memory (CORE_ADDR memaddr, unsigned char *myaddr, int len)
{
int count;
int c;
@@ -1361,10 +1318,8 @@ e7000_read_inferior_memory (memaddr, myaddr, len)
*/
static int
-e7000_read_inferior_memory_large (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- unsigned char *myaddr;
- int len;
+e7000_read_inferior_memory_large (CORE_ADDR memaddr, unsigned char *myaddr,
+ int len)
{
int count;
int c;
@@ -1426,10 +1381,8 @@ e7000_read_inferior_memory_large (memaddr, myaddr, len)
#if 0
static int
-fast_but_for_the_pause_e7000_read_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+fast_but_for_the_pause_e7000_read_inferior_memory (CORE_ADDR memaddr,
+ char *myaddr, int len)
{
int loop;
int c;
@@ -1532,16 +1485,12 @@ e7000_xfer_inferior_memory (memaddr, myaddr, len, write, target)
}
static void
-e7000_kill (args, from_tty)
- char *args;
- int from_tty;
+e7000_kill (char *args, int from_tty)
{
}
static void
-e7000_load (args, from_tty)
- char *args;
- int from_tty;
+e7000_load (char *args, int from_tty)
{
struct cleanup *old_chain;
asection *section;
@@ -1727,7 +1676,7 @@ e7000_load (args, from_tty)
instructions. */
static void
-e7000_mourn_inferior ()
+e7000_mourn_inferior (void)
{
remove_breakpoints ();
unpush_target (&e7000_ops);
@@ -1747,9 +1696,7 @@ static CORE_ADDR breakaddr[MAX_BREAKPOINTS] =
{0};
static int
-e7000_insert_breakpoint (addr, shadow)
- CORE_ADDR addr;
- unsigned char *shadow;
+e7000_insert_breakpoint (CORE_ADDR addr, unsigned char *shadow)
{
int i;
char buf[200];
@@ -1792,9 +1739,7 @@ e7000_insert_breakpoint (addr, shadow)
}
static int
-e7000_remove_breakpoint (addr, shadow)
- CORE_ADDR addr;
- unsigned char *shadow;
+e7000_remove_breakpoint (CORE_ADDR addr, unsigned char *shadow)
{
int i;
char buf[200];
@@ -1837,9 +1782,7 @@ e7000_remove_breakpoint (addr, shadow)
is placed on the users terminal until the prompt is seen. */
static void
-e7000_command (args, fromtty)
- char *args;
- int fromtty;
+e7000_command (char *args, int fromtty)
{
/* FIXME: arbitrary limit on length of args. */
char buf[200];
@@ -1871,10 +1814,7 @@ e7000_command (args, fromtty)
static void
-e7000_drain_command (args, fromtty)
- char *args;
- int fromtty;
-
+e7000_drain_command (char *args, int fromtty)
{
int c;
@@ -1898,7 +1838,7 @@ e7000_drain_command (args, fromtty)
#define NITEMS 7
static int
-why_stop ()
+why_stop (void)
{
static char *strings[NITEMS] =
{
@@ -1943,8 +1883,7 @@ why_stop ()
otherwise echo them. */
int
-expect_n (strings)
- char **strings;
+expect_n (char **strings)
{
char *(ptr[10]);
int n;
@@ -2028,7 +1967,7 @@ expect_n (strings)
pc, and the simulators never do. */
static void
-sub2_from_pc ()
+sub2_from_pc (void)
{
char buf[4];
char buf2[200];
@@ -2059,9 +1998,7 @@ static char *estrings[] =
STATUS just as `wait' would. */
static int
-e7000_wait (pid, status)
- int pid;
- struct target_waitstatus *status;
+e7000_wait (int pid, struct target_waitstatus *status)
{
int stop_reason;
int regno;
@@ -2189,7 +2126,7 @@ e7000_wait (pid, status)
/* Stop the running program. */
static void
-e7000_stop ()
+e7000_stop (void)
{
/* Sending a ^C is supposed to stop the running program. */
putchar_e7000 (CTRLC);
@@ -2274,7 +2211,7 @@ target e7000 foobar";
};
void
-_initialize_remote_e7000 ()
+_initialize_remote_e7000 (void)
{
init_e7000_ops ();
add_target (&e7000_ops);
diff --git a/gdb/remote-eb.c b/gdb/remote-eb.c
index 7a8d90d..c5c33a7 100644
--- a/gdb/remote-eb.c
+++ b/gdb/remote-eb.c
@@ -65,7 +65,7 @@ FILE *eb_stream;
/* Read a character from the remote system, doing all the fancy
timeout stuff. */
static int
-readchar ()
+readchar (void)
{
char buf;
@@ -96,8 +96,7 @@ readchar ()
/* Keep discarding input from the remote system, until STRING is found.
Let the user break out immediately. */
static void
-expect (string)
- char *string;
+expect (char *string)
{
char *p = string;
@@ -133,7 +132,7 @@ expect (string)
necessary to prevent getting into states from which we can't
recover. */
static void
-expect_prompt ()
+expect_prompt (void)
{
#if defined (LOG_FILE)
/* This is a convenient place to do this. The idea is to do it often
@@ -146,8 +145,7 @@ expect_prompt ()
/* Get a hex digit from the remote system & return its value.
If ignore_space is nonzero, ignore spaces (not newline, tab, etc). */
static int
-get_hex_digit (ignore_space)
- int ignore_space;
+get_hex_digit (int ignore_space)
{
int ch;
while (1)
@@ -172,8 +170,7 @@ get_hex_digit (ignore_space)
/* Get a byte from eb_desc and put it in *BYT. Accept any number
leading spaces. */
static void
-get_hex_byte (byt)
- char *byt;
+get_hex_byte (char *byt)
{
int val;
@@ -185,9 +182,7 @@ get_hex_byte (byt)
/* Get N 32-bit words from remote, each preceded by a space,
and put them in registers starting at REGNO. */
static void
-get_hex_regs (n, regno)
- int n;
- int regno;
+get_hex_regs (int n, int regno)
{
long val;
int i;
@@ -213,7 +208,7 @@ get_hex_regs (n, regno)
volatile int n_alarms;
void
-eb_timer ()
+eb_timer (void)
{
#if 0
if (kiodebug)
@@ -239,10 +234,7 @@ static int need_artificial_trap = 0;
/* This is called not only when we first attach, but also when the
user types "run" after having attached. */
static void
-eb_create_inferior (execfile, args, env)
- char *execfile;
- char *args;
- char **env;
+eb_create_inferior (char *execfile, char *args, char **env)
{
int entry_pt;
@@ -377,8 +369,7 @@ baudtab[] =
};
int
-damn_b (rate)
- int rate;
+damn_b (int rate)
{
int i;
@@ -396,9 +387,7 @@ damn_b (rate)
static int baudrate = 9600;
static char *dev_name;
void
-eb_open (name, from_tty)
- char *name;
- int from_tty;
+eb_open (char *name, int from_tty)
{
TERMINAL sg;
@@ -494,8 +483,7 @@ the baud rate, and the name of the program to run on the remote system.");
/* Close out all files and local state before this target loses control. */
static void
-eb_close (quitting)
- int quitting;
+eb_close (int quitting)
{
/* Due to a bug in Unix, fclose closes not only the stdio stream,
@@ -525,8 +513,7 @@ eb_close (quitting)
Use this when you want to detach and do something else
with your gdb. */
void
-eb_detach (from_tty)
- int from_tty;
+eb_detach (int from_tty)
{
pop_target (); /* calls eb_close to do the real work */
if (from_tty)
@@ -536,9 +523,7 @@ eb_detach (from_tty)
/* Tell the remote machine to resume. */
void
-eb_resume (pid, step, sig)
- int pid, step;
- enum target_signal sig;
+eb_resume (int pid, int step, enum target_signal sig)
{
if (step)
{
@@ -578,8 +563,7 @@ eb_resume (pid, step, sig)
storing status in STATUS just as `wait' would. */
int
-eb_wait (status)
- struct target_waitstatus *status;
+eb_wait (struct target_waitstatus *status)
{
/* Strings to look for. '?' means match any single character.
Note that with the algorithm we use, the initial character
@@ -678,8 +662,7 @@ eb_wait (status)
Returns a pointer to a static buffer containing the answer. */
static char *
-get_reg_name (regno)
- int regno;
+get_reg_name (int regno)
{
static char buf[80];
if (regno >= GR96_REGNUM && regno < GR96_REGNUM + 32)
@@ -704,7 +687,7 @@ get_reg_name (regno)
/* Read the remote registers into the block REGS. */
static void
-eb_fetch_registers ()
+eb_fetch_registers (void)
{
int reg_index;
int regnum_index;
@@ -798,8 +781,7 @@ eb_fetch_registers ()
/* Fetch register REGNO, or all registers if REGNO is -1.
Returns errno value. */
void
-eb_fetch_register (regno)
- int regno;
+eb_fetch_register (int regno)
{
if (regno == -1)
eb_fetch_registers ();
@@ -818,7 +800,7 @@ eb_fetch_register (regno)
/* Store the remote registers from the contents of the block REGS. */
static void
-eb_store_registers ()
+eb_store_registers (void)
{
int i, j;
fprintf (eb_stream, "s gr1,%x\n", read_register (GR1_REGNUM));
@@ -857,8 +839,7 @@ eb_store_registers ()
/* Store register REGNO, or all if REGNO == 0.
Return errno value. */
void
-eb_store_register (regno)
- int regno;
+eb_store_register (int regno)
{
if (regno == -1)
eb_store_registers ();
@@ -885,7 +866,7 @@ eb_store_register (regno)
debugged. */
void
-eb_prepare_to_store ()
+eb_prepare_to_store (void)
{
/* Do nothing, since we can store individual regs */
}
@@ -907,7 +888,7 @@ eb_xfer_inferior_memory (memaddr, myaddr, len, write, target)
}
void
-eb_files_info ()
+eb_files_info (void)
{
printf ("\tAttached to %s at %d baud and running program %s.\n",
dev_name, baudrate, prog_name);
@@ -916,10 +897,7 @@ eb_files_info ()
/* Copy LEN bytes of data from debugger memory at MYADDR
to inferior's memory at MEMADDR. Returns length moved. */
int
-eb_write_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+eb_write_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
int i;
@@ -941,10 +919,7 @@ eb_write_inferior_memory (memaddr, myaddr, len)
/* Read LEN bytes from inferior memory at MEMADDR. Put the result
at debugger address MYADDR. Returns length moved. */
int
-eb_read_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+eb_read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
int i;
@@ -1014,9 +989,7 @@ eb_read_inferior_memory (memaddr, myaddr, len)
}
static void
-eb_kill (args, from_tty)
- char *args;
- int from_tty;
+eb_kill (char *args, int from_tty)
{
return; /* Ignore attempts to kill target system */
}
@@ -1028,7 +1001,7 @@ eb_kill (args, from_tty)
instructions. */
void
-eb_mourn_inferior ()
+eb_mourn_inferior (void)
{
remove_breakpoints ();
unpush_target (&eb_ops);
@@ -1111,7 +1084,7 @@ target amd-eb /dev/ttya 9600 demo",
};
void
-_initialize_remote_eb ()
+_initialize_remote_eb (void)
{
init_eb_ops ();
add_target (&eb_ops);
diff --git a/gdb/remote-es.c b/gdb/remote-es.c
index 6805a7d..a500510 100644
--- a/gdb/remote-es.c
+++ b/gdb/remote-es.c
@@ -249,7 +249,7 @@ static jmp_buf interrupt;
Rely on global variables: old_sigint(), interrupt */
static void
-es1800_request_quit ()
+es1800_request_quit (void)
{
/* restore original signalhandler */
signal (SIGINT, old_sigint);
@@ -262,8 +262,7 @@ es1800_request_quit ()
quit - return to '(esgdb)' prompt or continue */
static void
-es1800_reset (quit)
- char *quit;
+es1800_reset (char *quit)
{
char buf[80];
@@ -290,9 +289,7 @@ es1800_reset (quit)
from_tty - says whether to be verbose or not */
static void
-es1800_open (name, from_tty)
- char *name;
- int from_tty;
+es1800_open (char *name, int from_tty)
{
char buf[PBUFSIZ];
char *p;
@@ -423,8 +420,7 @@ es1800_open (name, from_tty)
quitting - are we quitting gdb now? */
static void
-es1800_close (quitting)
- int quitting;
+es1800_close (int quitting)
{
if (es1800_desc != NULL)
{
@@ -465,9 +461,7 @@ es1800_close (quitting)
from_tty - says whether to be verbose or not */
static void
-es1800_attach (args, from_tty)
- char *args;
- int from_tty;
+es1800_attach (char *args, int from_tty)
{
error ("Cannot attach to pid %s, this feature is not implemented yet.",
args);
@@ -485,9 +479,7 @@ es1800_attach (args, from_tty)
from_tty - says whether to be verbose or not */
static void
-es1800_detach (args, from_tty)
- char *args;
- int from_tty;
+es1800_detach (char *args, int from_tty)
{
if (args)
{
@@ -506,10 +498,7 @@ es1800_detach (args, from_tty)
siggnal - the signal value to be given to the target (0 = no signal) */
static void
-es1800_resume (pid, step, siggnal)
- int pid;
- int step;
- enum target_signal siggnal;
+es1800_resume (int pid, int step, enum target_signal siggnal)
{
char buf[PBUFSIZ];
@@ -533,9 +522,7 @@ es1800_resume (pid, step, siggnal)
status - */
static int
-es1800_wait (pid, status)
- int pid;
- struct target_waitstatus *status;
+es1800_wait (int pid, struct target_waitstatus *status)
{
unsigned char buf[PBUFSIZ];
int old_timeout = timeout;
@@ -608,8 +595,7 @@ es1800_wait (pid, status)
regno - the register to be fetched (fetch all registers if -1) */
static void
-es1800_fetch_register (regno)
- int regno;
+es1800_fetch_register (int regno)
{
char buf[PBUFSIZ];
int k;
@@ -646,7 +632,7 @@ es1800_fetch_register (regno)
Always fetches all registers. */
static void
-es1800_fetch_registers ()
+es1800_fetch_registers (void)
{
char buf[PBUFSIZ];
char SR_buf[PBUFSIZ];
@@ -818,8 +804,7 @@ es1800_fetch_registers ()
FIXME: Return errno value. */
static void
-es1800_store_register (regno)
- int regno;
+es1800_store_register (int regno)
{
static char regtab[18][4] =
@@ -917,7 +902,7 @@ es1800_store_register (regno)
/* Prepare to store registers. */
static void
-es1800_prepare_to_store ()
+es1800_prepare_to_store (void)
{
/* Do nothing, since we can store individual regs */
}
@@ -925,8 +910,7 @@ es1800_prepare_to_store ()
/* Convert hex digit A to a number. */
static int
-fromhex (a)
- int a;
+fromhex (int a)
{
if (a >= '0' && a <= '9')
{
@@ -951,8 +935,7 @@ fromhex (a)
/* Convert number NIB to a hex digit. */
static int
-tohex (nib)
- int nib;
+tohex (int nib)
{
if (nib < 10)
{
@@ -1014,10 +997,7 @@ es1800_xfer_inferior_memory (memaddr, myaddr, len, write, tops)
len - number of bytes */
static void
-es1800_write_bytes (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+es1800_write_bytes (CORE_ADDR memaddr, char *myaddr, int len)
{
char buf[PBUFSIZ];
int i;
@@ -1040,10 +1020,7 @@ es1800_write_bytes (memaddr, myaddr, len)
len - number of bytes */
static void
-es1800_read_bytes (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+es1800_read_bytes (CORE_ADDR memaddr, char *myaddr, int len)
{
static int DB_tab[16] =
{8, 11, 14, 17, 20, 23, 26, 29, 34, 37, 40, 43, 46, 49, 52, 55};
@@ -1111,9 +1088,7 @@ es1800_files_info (tops)
the target_arch transfer vector, if we ever have one... */
static int
-es1800_insert_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+es1800_insert_breakpoint (CORE_ADDR addr, char *contents_cache)
{
int val;
@@ -1137,9 +1112,7 @@ es1800_insert_breakpoint (addr, contents_cache)
BREAKPOINT bytes. */
static int
-es1800_remove_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+es1800_remove_breakpoint (CORE_ADDR addr, char *contents_cache)
{
return (target_write_memory (addr, contents_cache,
@@ -1150,9 +1123,7 @@ es1800_remove_breakpoint (addr, contents_cache)
Primitive datastructures containing the es1800 breakpoint instruction */
static void
-es1800_create_break_insn (ins, vec)
- char *ins;
- int vec;
+es1800_create_break_insn (char *ins, int vec)
{
if (vec == 15)
{
@@ -1168,8 +1139,7 @@ es1800_create_break_insn (ins, vec)
vec - trap vector used for breakpoints */
static int
-verify_break (vec)
- int vec;
+verify_break (int vec)
{
CORE_ADDR memaddress;
char buf[8];
@@ -1197,9 +1167,7 @@ verify_break (vec)
addrp - store the address here */
static void
-get_break_addr (vec, addrp)
- int vec;
- CORE_ADDR *addrp;
+get_break_addr (int vec, CORE_ADDR *addrp)
{
CORE_ADDR memaddress = 0;
int status;
@@ -1236,7 +1204,7 @@ get_break_addr (vec, addrp)
/* Kill an inferior process */
static void
-es1800_kill ()
+es1800_kill (void)
{
if (inferior_pid != 0)
{
@@ -1255,9 +1223,7 @@ es1800_kill ()
FIXME Uses emulator overlay memory for trap routine */
static void
-es1800_load (filename, from_tty)
- char *filename;
- int from_tty;
+es1800_load (char *filename, int from_tty)
{
FILE *instream;
@@ -1363,9 +1329,7 @@ es1800_load (filename, from_tty)
#define NUMCPYBYTES 20
static void
-bfd_copy (from_bfd, to_bfd)
- bfd *from_bfd;
- bfd *to_bfd;
+bfd_copy (bfd *from_bfd, bfd *to_bfd)
{
asection *p, *new;
int i;
@@ -1417,10 +1381,7 @@ bfd_copy (from_bfd, to_bfd)
env - the environment vector to pass */
static void
-es1800_create_inferior (execfile, args, env)
- char *execfile;
- char *args;
- char **env;
+es1800_create_inferior (char *execfile, char *args, char **env)
{
int entry_pt;
int pid;
@@ -1496,7 +1457,7 @@ es1800_create_inferior (execfile, args, env)
/* The process has died, clean up. */
static void
-es1800_mourn_inferior ()
+es1800_mourn_inferior (void)
{
remove_breakpoints ();
unpush_target (&es1800_child_ops);
@@ -1512,9 +1473,7 @@ es1800_mourn_inferior ()
read until string is found (== 0) */
static void
-expect (string, nowait)
- char *string;
- int nowait;
+expect (char *string, int nowait)
{
char c;
char *p = string;
@@ -1552,7 +1511,7 @@ expect (string, nowait)
/* Keep discarding input until we see the prompt. */
static void
-expect_prompt ()
+expect_prompt (void)
{
expect (">", 0);
}
@@ -1565,7 +1524,7 @@ expect_prompt ()
/* read from stdin */
static int
-readchar ()
+readchar (void)
{
char buf[1];
@@ -1586,7 +1545,7 @@ readchar ()
timeout stuff. */
static int
-readchar ()
+readchar (void)
{
int ch;
@@ -1617,9 +1576,7 @@ readchar ()
len - size of buf */
static void
-send_with_reply (string, buf, len)
- char *string, *buf;
- int len;
+send_with_reply (char *string, char *buf, int len)
{
send (string);
SERIAL_WRITE (es1800_desc, "\r", 1);
@@ -1638,8 +1595,7 @@ send_with_reply (string, buf, len)
string - the es1800 command */
static void
-send_command (string)
- char *string;
+send_command (char *string)
{
send (string);
SERIAL_WRITE (es1800_desc, "\r", 1);
@@ -1655,8 +1611,7 @@ send_command (string)
string - the es1800 command */
static void
-send (string)
- char *string;
+send (char *string)
{
if (kiodebug)
{
@@ -1671,9 +1626,7 @@ send (string)
len - size of buf */
static void
-getmessage (buf, len)
- char *buf;
- int len;
+getmessage (char *buf, int len)
{
char *bp;
int c;
@@ -1714,10 +1667,7 @@ getmessage (buf, len)
}
static void
-download (instream, from_tty, format)
- FILE *instream;
- int from_tty;
- int format;
+download (FILE *instream, int from_tty, int format)
{
char c;
char buf[160];
@@ -1773,9 +1723,7 @@ download (instream, from_tty, format)
/*ARGSUSED */
static void
-es1800_transparent (args, from_tty)
- char *args;
- int from_tty;
+es1800_transparent (char *args, int from_tty)
{
int console;
struct sgttyb modebl;
@@ -1931,9 +1879,7 @@ es1800_transparent (args, from_tty)
#endif /* PROVIDE_TRANSPARENT */
static void
-es1800_init_break (args, from_tty)
- char *args;
- int from_tty;
+es1800_init_break (char *args, int from_tty)
{
CORE_ADDR memaddress = 0;
char buf[PBUFSIZ];
@@ -1999,17 +1945,13 @@ es1800_init_break (args, from_tty)
}
static void
-es1800_child_open (arg, from_tty)
- char *arg;
- int from_tty;
+es1800_child_open (char *arg, int from_tty)
{
error ("Use the \"run\" command to start a child process.");
}
static void
-es1800_child_detach (args, from_tty)
- char *args;
- int from_tty;
+es1800_child_detach (char *args, int from_tty)
{
if (args)
{
@@ -2171,7 +2113,7 @@ Specify the serial device it is connected to (e.g. /dev/ttya).";
}
void
-_initialize_es1800 ()
+_initialize_es1800 (void)
{
init_es1800_ops ();
init_es1800_child_ops ();
diff --git a/gdb/remote-est.c b/gdb/remote-est.c
index 97c24c4..23d5541 100644
--- a/gdb/remote-est.c
+++ b/gdb/remote-est.c
@@ -31,11 +31,7 @@
static void est_open (char *args, int from_tty);
static void
-est_supply_register (regname, regnamelen, val, vallen)
- char *regname;
- int regnamelen;
- char *val;
- int vallen;
+est_supply_register (char *regname, int regnamelen, char *val, int vallen)
{
int regno;
@@ -150,15 +146,13 @@ init_est_cmds (void)
} /* init_est_cmds */
static void
-est_open (args, from_tty)
- char *args;
- int from_tty;
+est_open (char *args, int from_tty)
{
monitor_open (args, &est_cmds, from_tty);
}
void
-_initialize_est ()
+_initialize_est (void)
{
init_est_cmds ();
init_monitor_ops (&est_ops);
diff --git a/gdb/remote-hms.c b/gdb/remote-hms.c
index 1bf5920..834f596 100644
--- a/gdb/remote-hms.c
+++ b/gdb/remote-hms.c
@@ -28,11 +28,7 @@
static void hms_open (char *args, int from_tty);
static void
-hms_supply_register (regname, regnamelen, val, vallen)
- char *regname;
- int regnamelen;
- char *val;
- int vallen;
+hms_supply_register (char *regname, int regnamelen, char *val, int vallen)
{
int regno;
@@ -135,9 +131,7 @@ init_hms_cmds (void)
} /* init_hms-cmds */
static void
-hms_open (args, from_tty)
- char *args;
- int from_tty;
+hms_open (char *args, int from_tty)
{
monitor_open (args, &hms_cmds, from_tty);
}
@@ -145,7 +139,7 @@ hms_open (args, from_tty)
int write_dos_tick_delay;
void
-_initialize_remote_hms ()
+_initialize_remote_hms (void)
{
init_hms_cmds ();
init_monitor_ops (&hms_ops);
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c
index 8fb64a3..6a75327 100644
--- a/gdb/remote-mips.c
+++ b/gdb/remote-mips.c
@@ -457,7 +457,7 @@ static int monitor_warnings;
static void
-close_ports ()
+close_ports (void)
{
mips_is_open = 0;
SERIAL_CLOSE (mips_desc);
@@ -507,9 +507,7 @@ mips_error (char *string,...)
^x notation or in hex. */
static void
-fputc_readable (ch, file)
- int ch;
- struct ui_file *file;
+fputc_readable (int ch, struct ui_file *file)
{
if (ch == '\n')
fputc_unfiltered ('\n', file);
@@ -528,9 +526,7 @@ fputc_readable (ch, file)
^x notation or in hex. */
static void
-fputs_readable (string, file)
- char *string;
- struct ui_file *file;
+fputs_readable (char *string, struct ui_file *file)
{
int c;
@@ -544,9 +540,7 @@ fputs_readable (string, file)
*/
int
-mips_expect_timeout (string, timeout)
- char *string;
- int timeout;
+mips_expect_timeout (char *string, int timeout)
{
char *p = string;
@@ -602,8 +596,7 @@ mips_expect_timeout (string, timeout)
*/
int
-mips_expect (string)
- char *string;
+mips_expect (char *string)
{
return mips_expect_timeout (string, 2);
}
@@ -611,9 +604,7 @@ mips_expect (string)
/* Read the required number of characters into the given buffer (which
is assumed to be large enough). The only failure is a timeout. */
int
-mips_getstring (string, n)
- char *string;
- int n;
+mips_getstring (char *string, int n)
{
char *p = string;
int c;
@@ -652,8 +643,7 @@ mips_getstring (string, n)
port. */
static int
-mips_readchar (timeout)
- int timeout;
+mips_readchar (int timeout)
{
int ch;
static int state = 0;
@@ -731,11 +721,7 @@ mips_readchar (timeout)
or -1 for timeout. */
static int
-mips_receive_header (hdr, pgarbage, ch, timeout)
- unsigned char *hdr;
- int *pgarbage;
- int ch;
- int timeout;
+mips_receive_header (unsigned char *hdr, int *pgarbage, int ch, int timeout)
{
int i;
@@ -807,11 +793,7 @@ mips_receive_header (hdr, pgarbage, ch, timeout)
for success, -1 for timeout, -2 for error. */
static int
-mips_receive_trailer (trlr, pgarbage, pch, timeout)
- unsigned char *trlr;
- int *pgarbage;
- int *pch;
- int timeout;
+mips_receive_trailer (unsigned char *trlr, int *pgarbage, int *pch, int timeout)
{
int i;
int ch;
@@ -833,10 +815,7 @@ mips_receive_trailer (trlr, pgarbage, pch, timeout)
DATA points to the packet data. LEN is the length of DATA. */
static int
-mips_cksum (hdr, data, len)
- const unsigned char *hdr;
- const unsigned char *data;
- int len;
+mips_cksum (const unsigned char *hdr, const unsigned char *data, int len)
{
register const unsigned char *p;
register int c;
@@ -861,9 +840,7 @@ mips_cksum (hdr, data, len)
/* Send a packet containing the given ASCII string. */
static void
-mips_send_packet (s, get_ack)
- const char *s;
- int get_ack;
+mips_send_packet (const char *s, int get_ack)
{
/* unsigned */ int len;
unsigned char *packet;
@@ -1028,10 +1005,7 @@ mips_send_packet (s, get_ack)
don't print an error message and return -1. */
static int
-mips_receive_packet (buff, throw_error, timeout)
- char *buff;
- int throw_error;
- int timeout;
+mips_receive_packet (char *buff, int throw_error, int timeout)
{
int ch;
int garbage;
@@ -1307,23 +1281,19 @@ mips_request (int cmd,
}
static void
-mips_initialize_cleanups (arg)
- PTR arg;
+mips_initialize_cleanups (PTR arg)
{
mips_initializing = 0;
}
static void
-mips_exit_cleanups (arg)
- PTR arg;
+mips_exit_cleanups (PTR arg)
{
mips_exiting = 0;
}
static void
-mips_send_command (cmd, prompt)
- const char *cmd;
- int prompt;
+mips_send_command (const char *cmd, int prompt)
{
SERIAL_WRITE (mips_desc, cmd, strlen (cmd));
mips_expect (cmd);
@@ -1334,7 +1304,7 @@ mips_send_command (cmd, prompt)
/* Enter remote (dbx) debug mode: */
static void
-mips_enter_debug ()
+mips_enter_debug (void)
{
/* Reset the sequence numbers, ready for the new debug sequence: */
mips_send_seq = 0;
@@ -1364,7 +1334,7 @@ mips_enter_debug ()
/* Exit remote (dbx) debug mode, returning to the monitor prompt: */
static int
-mips_exit_debug ()
+mips_exit_debug (void)
{
int err;
struct cleanup *old_cleanups = make_cleanup (mips_exit_cleanups, NULL);
@@ -1395,7 +1365,7 @@ mips_exit_debug ()
really connected. */
static void
-mips_initialize ()
+mips_initialize (void)
{
int err;
struct cleanup *old_cleanups = make_cleanup (mips_initialize_cleanups, NULL);
@@ -1528,12 +1498,8 @@ mips_initialize ()
/* Open a connection to the remote board. */
static void
-common_open (ops, name, from_tty, new_monitor, new_monitor_prompt)
- struct target_ops *ops;
- char *name;
- int from_tty;
- enum mips_monitor_type new_monitor;
- char *new_monitor_prompt;
+common_open (struct target_ops *ops, char *name, int from_tty,
+ enum mips_monitor_type new_monitor, char *new_monitor_prompt)
{
char *ptype;
char *serial_port_name;
@@ -1658,9 +1624,7 @@ device is attached to the target board (e.g., /dev/ttya).\n"
}
static void
-mips_open (name, from_tty)
- char *name;
- int from_tty;
+mips_open (char *name, int from_tty)
{
const char *monitor_prompt = NULL;
if (TARGET_ARCHITECTURE != NULL
@@ -1683,25 +1647,19 @@ mips_open (name, from_tty)
}
static void
-pmon_open (name, from_tty)
- char *name;
- int from_tty;
+pmon_open (char *name, int from_tty)
{
common_open (&pmon_ops, name, from_tty, MON_PMON, "PMON> ");
}
static void
-ddb_open (name, from_tty)
- char *name;
- int from_tty;
+ddb_open (char *name, int from_tty)
{
common_open (&ddb_ops, name, from_tty, MON_DDB, "NEC010>");
}
static void
-lsi_open (name, from_tty)
- char *name;
- int from_tty;
+lsi_open (char *name, int from_tty)
{
int i;
@@ -1715,8 +1673,7 @@ lsi_open (name, from_tty)
/* Close a connection to the remote board. */
static void
-mips_close (quitting)
- int quitting;
+mips_close (int quitting)
{
if (mips_is_open)
{
@@ -1730,9 +1687,7 @@ mips_close (quitting)
/* Detach from the remote board. */
static void
-mips_detach (args, from_tty)
- char *args;
- int from_tty;
+mips_detach (char *args, int from_tty)
{
if (args)
error ("Argument given to \"detach\" when remotely debugging.");
@@ -1750,9 +1705,7 @@ mips_detach (args, from_tty)
where PMON does return a reply. */
static void
-mips_resume (pid, step, siggnal)
- int pid, step;
- enum target_signal siggnal;
+mips_resume (int pid, int step, enum target_signal siggnal)
{
int err;
@@ -1766,8 +1719,7 @@ mips_resume (pid, step, siggnal)
/* Return the signal corresponding to SIG, where SIG is the number which
the MIPS protocol uses for the signal. */
enum target_signal
-mips_signal_from_protocol (sig)
- int sig;
+mips_signal_from_protocol (int sig)
{
/* We allow a few more signals than the IDT board actually returns, on
the theory that there is at least *some* hope that perhaps the numbering
@@ -1786,9 +1738,7 @@ mips_signal_from_protocol (sig)
/* Wait until the remote stops, and return a wait status. */
static int
-mips_wait (pid, status)
- int pid;
- struct target_waitstatus *status;
+mips_wait (int pid, struct target_waitstatus *status)
{
int rstatus;
int err;
@@ -1949,8 +1899,7 @@ mips_wait (pid, status)
#define REGNO_OFFSET 96
static int
-mips_map_regno (regno)
- int regno;
+mips_map_regno (int regno)
{
if (regno < 32)
return regno;
@@ -1979,8 +1928,7 @@ mips_map_regno (regno)
/* Fetch the remote registers. */
static void
-mips_fetch_registers (regno)
- int regno;
+mips_fetch_registers (int regno)
{
unsigned LONGEST val;
int err;
@@ -2034,15 +1982,14 @@ mips_fetch_registers (regno)
registers, so this function doesn't have to do anything. */
static void
-mips_prepare_to_store ()
+mips_prepare_to_store (void)
{
}
/* Store remote register(s). */
static void
-mips_store_registers (regno)
- int regno;
+mips_store_registers (int regno)
{
int err;
@@ -2063,8 +2010,7 @@ mips_store_registers (regno)
/* Fetch a word from the target board. */
static unsigned int
-mips_fetch_word (addr)
- CORE_ADDR addr;
+mips_fetch_word (CORE_ADDR addr)
{
unsigned int val;
int err;
@@ -2088,10 +2034,7 @@ mips_fetch_word (addr)
/* FIXME! make sure only 32-bit quantities get stored! */
static int
-mips_store_word (addr, val, old_contents)
- CORE_ADDR addr;
- unsigned int val;
- char *old_contents;
+mips_store_word (CORE_ADDR addr, unsigned int val, char *old_contents)
{
int err;
unsigned int oldcontents;
@@ -2121,12 +2064,8 @@ mips_store_word (addr, val, old_contents)
static int mask_address_p = 1;
static int
-mips_xfer_memory (memaddr, myaddr, len, write, ignore)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
- int write;
- struct target_ops *ignore;
+mips_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
+ struct target_ops *ignore)
{
int i;
CORE_ADDR addr;
@@ -2208,8 +2147,7 @@ mips_xfer_memory (memaddr, myaddr, len, write, ignore)
/* Print info on this target. */
static void
-mips_files_info (ignore)
- struct target_ops *ignore;
+mips_files_info (struct target_ops *ignore)
{
printf_unfiltered ("Debugging a MIPS board over a serial line.\n");
}
@@ -2220,7 +2158,7 @@ mips_files_info (ignore)
right port, we could interrupt the process with a break signal. */
static void
-mips_kill ()
+mips_kill (void)
{
if (!mips_wait_flag)
return;
@@ -2273,10 +2211,7 @@ Give up (and stop debugging it)? "))
/* Start running on the target board. */
static void
-mips_create_inferior (execfile, args, env)
- char *execfile;
- char *args;
- char **env;
+mips_create_inferior (char *execfile, char *args, char **env)
{
CORE_ADDR entry_pt;
@@ -2303,7 +2238,7 @@ Can't pass arguments to remote MIPS board; arguments ignored.");
/* Clean up after a process. Actually nothing to do. */
static void
-mips_mourn_inferior ()
+mips_mourn_inferior (void)
{
if (current_ops != NULL)
unpush_target (current_ops);
@@ -2322,9 +2257,7 @@ mips_mourn_inferior ()
is accomplished via BREAKPOINT_MAX). */
static int
-mips_insert_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+mips_insert_breakpoint (CORE_ADDR addr, char *contents_cache)
{
if (monitor_supports_breakpoints)
return set_breakpoint (addr, MIPS_INSTLEN, BREAK_FETCH);
@@ -2333,9 +2266,7 @@ mips_insert_breakpoint (addr, contents_cache)
}
static int
-mips_remove_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+mips_remove_breakpoint (CORE_ADDR addr, char *contents_cache)
{
if (monitor_supports_breakpoints)
return clear_breakpoint (addr, MIPS_INSTLEN, BREAK_FETCH);
@@ -2355,9 +2286,7 @@ static CORE_ADDR mips_pmon_bp_info[PMON_MAX_BP];
/* NOTE: The code relies on this vector being zero-initialised by the system */
static int
-pmon_insert_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+pmon_insert_breakpoint (CORE_ADDR addr, char *contents_cache)
{
int status;
@@ -2430,9 +2359,7 @@ pmon_insert_breakpoint (addr, contents_cache)
}
static int
-pmon_remove_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+pmon_remove_breakpoint (CORE_ADDR addr, char *contents_cache)
{
if (monitor_supports_breakpoints)
{
@@ -2475,8 +2402,7 @@ pmon_remove_breakpoint (addr, contents_cache)
implements the TARGET_CAN_USE_HARDWARE_WATCHPOINT macro. */
int
-remote_mips_can_use_hardware_watchpoint (cnt)
- int cnt;
+remote_mips_can_use_hardware_watchpoint (int cnt)
{
return cnt < MAX_LSI_BREAKPOINTS && strcmp (target_shortname, "lsi") == 0;
}
@@ -2486,9 +2412,7 @@ remote_mips_can_use_hardware_watchpoint (cnt)
This is used for memory ref breakpoints. */
static unsigned long
-calculate_mask (addr, len)
- CORE_ADDR addr;
- int len;
+calculate_mask (CORE_ADDR addr, int len)
{
unsigned long mask;
int i;
@@ -2511,9 +2435,7 @@ calculate_mask (addr, len)
implement ordinary breakpoints using hardware facilities. */
int
-remote_mips_insert_hw_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+remote_mips_insert_hw_breakpoint (CORE_ADDR addr, char *contents_cache)
{
if (strcmp (target_shortname, "lsi") == 0)
return mips_insert_breakpoint (addr, contents_cache);
@@ -2526,9 +2448,7 @@ remote_mips_insert_hw_breakpoint (addr, contents_cache)
implement ordinary breakpoints using hardware facilities. */
int
-remote_mips_remove_hw_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+remote_mips_remove_hw_breakpoint (CORE_ADDR addr, char *contents_cache)
{
if (strcmp (target_shortname, "lsi") == 0)
return mips_remove_breakpoint (addr, contents_cache);
@@ -2541,10 +2461,7 @@ remote_mips_remove_hw_breakpoint (addr, contents_cache)
watchpoint. */
int
-remote_mips_set_watchpoint (addr, len, type)
- CORE_ADDR addr;
- int len;
- int type;
+remote_mips_set_watchpoint (CORE_ADDR addr, int len, int type)
{
if (set_breakpoint (addr, len, type))
return -1;
@@ -2553,10 +2470,7 @@ remote_mips_set_watchpoint (addr, len, type)
}
int
-remote_mips_remove_watchpoint (addr, len, type)
- CORE_ADDR addr;
- int len;
- int type;
+remote_mips_remove_watchpoint (CORE_ADDR addr, int len, int type)
{
if (clear_breakpoint (addr, len, type))
return -1;
@@ -2574,10 +2488,7 @@ remote_mips_stopped_by_watchpoint (void)
/* Insert a breakpoint. */
static int
-set_breakpoint (addr, len, type)
- CORE_ADDR addr;
- int len;
- enum break_type type;
+set_breakpoint (CORE_ADDR addr, int len, enum break_type type)
{
return common_breakpoint (1, addr, len, type);
}
@@ -2586,10 +2497,7 @@ set_breakpoint (addr, len, type)
/* Clear a breakpoint. */
static int
-clear_breakpoint (addr, len, type)
- CORE_ADDR addr;
- int len;
- enum break_type type;
+clear_breakpoint (CORE_ADDR addr, int len, enum break_type type)
{
return common_breakpoint (0, addr, len, type);
}
@@ -2603,9 +2511,7 @@ clear_breakpoint (addr, len, type)
This is a helper function for common_breakpoint. */
static int
-check_lsi_error (addr, rerrflg)
- CORE_ADDR addr;
- int rerrflg;
+check_lsi_error (CORE_ADDR addr, int rerrflg)
{
struct lsi_error *err;
char *saddr = paddr_nz (addr); /* printable address string */
@@ -2673,11 +2579,7 @@ check_lsi_error (addr, rerrflg)
Return 0 if successful; otherwise 1. */
static int
-common_breakpoint (set, addr, len, type)
- int set;
- CORE_ADDR addr;
- int len;
- enum break_type type;
+common_breakpoint (int set, CORE_ADDR addr, int len, enum break_type type)
{
char buf[DATA_MAXLEN + 1];
char cmd, rcmd;
@@ -2863,10 +2765,7 @@ common_breakpoint (set, addr, len, type)
}
static void
-send_srec (srec, len, addr)
- char *srec;
- int len;
- CORE_ADDR addr;
+send_srec (char *srec, int len, CORE_ADDR addr)
{
while (1)
{
@@ -2895,8 +2794,7 @@ send_srec (srec, len, addr)
/* Download a binary file by converting it to S records. */
static void
-mips_load_srec (args)
- char *args;
+mips_load_srec (char *args)
{
bfd *abfd;
asection *s;
@@ -3014,12 +2912,8 @@ mips_load_srec (args)
*/
static int
-mips_make_srec (buf, type, memaddr, myaddr, len)
- char *buf;
- int type;
- CORE_ADDR memaddr;
- unsigned char *myaddr;
- int len;
+mips_make_srec (char *buf, int type, CORE_ADDR memaddr, unsigned char *myaddr,
+ int len)
{
unsigned char checksum;
int i;
@@ -3086,11 +2980,7 @@ static char encoding[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01
pointer non-NULL). The function returns the number of encoded
characters written into the buffer. */
static int
-pmon_makeb64 (v, p, n, chksum)
- unsigned long v;
- char *p;
- int n;
- int *chksum;
+pmon_makeb64 (unsigned long v, char *p, int n, int *chksum)
{
int count = (n / 6);
@@ -3134,11 +3024,7 @@ pmon_makeb64 (v, p, n, chksum)
/* Shorthand function (that could be in-lined) to output the zero-fill
escape sequence into the data stream. */
static int
-pmon_zeroset (recsize, buff, amount, chksum)
- int recsize;
- char **buff;
- int *amount;
- unsigned int *chksum;
+pmon_zeroset (int recsize, char **buff, int *amount, unsigned int *chksum)
{
int count;
@@ -3150,10 +3036,7 @@ pmon_zeroset (recsize, buff, amount, chksum)
}
static int
-pmon_checkset (recsize, buff, value)
- int recsize;
- char **buff;
- int *value;
+pmon_checkset (int recsize, char **buff, int *value)
{
int count;
@@ -3183,14 +3066,9 @@ pmon_checkset (recsize, buff, value)
is for PMON 5.x on the Cogent Vr4300 board. */
static void
-pmon_make_fastrec (outbuf, inbuf, inptr, inamount, recsize, csum, zerofill)
- char **outbuf;
- unsigned char *inbuf;
- int *inptr;
- int inamount;
- int *recsize;
- unsigned int *csum;
- unsigned int *zerofill;
+pmon_make_fastrec (char **outbuf, unsigned char *inbuf, int *inptr,
+ int inamount, int *recsize, unsigned int *csum,
+ unsigned int *zerofill)
{
int count = 0;
char *p = *outbuf;
@@ -3245,8 +3123,7 @@ pmon_make_fastrec (outbuf, inbuf, inptr, inamount, recsize, csum, zerofill)
}
static int
-pmon_check_ack (mesg)
- char *mesg;
+pmon_check_ack (char *mesg)
{
#if defined(DOETXACK)
int c;
@@ -3269,7 +3146,7 @@ pmon_check_ack (mesg)
which is either a serial port or a UDP socket. */
static void
-pmon_start_download ()
+pmon_start_download (void)
{
if (tftp_in_use)
{
@@ -3301,9 +3178,7 @@ mips_expect_download (char *string)
}
static void
-pmon_end_download (final, bintotal)
- int final;
- int bintotal;
+pmon_end_download (int final, int bintotal)
{
char hexnumber[9]; /* includes '\0' space */
@@ -3366,9 +3241,7 @@ pmon_end_download (final, bintotal)
}
static void
-pmon_download (buffer, length)
- char *buffer;
- int length;
+pmon_download (char *buffer, int length)
{
if (tftp_in_use)
fwrite (buffer, 1, length, tftp_file);
@@ -3377,8 +3250,7 @@ pmon_download (buffer, length)
}
static void
-pmon_load_fast (file)
- char *file;
+pmon_load_fast (char *file)
{
bfd *abfd;
asection *s;
@@ -3525,9 +3397,7 @@ pmon_load_fast (file)
/* mips_load -- download a file. */
static void
-mips_load (file, from_tty)
- char *file;
- int from_tty;
+mips_load (char *file, int from_tty)
{
/* Get the board out of remote debugging mode. */
if (mips_exit_debug ())
@@ -3566,9 +3436,7 @@ mips_load (file, from_tty)
/* Pass the command argument as a packet to PMON verbatim. */
static void
-pmon_command (args, from_tty)
- char *args;
- int from_tty;
+pmon_command (char *args, int from_tty)
{
char buf[DATA_MAXLEN + 1];
int rlen;
@@ -3583,7 +3451,7 @@ pmon_command (args, from_tty)
}
void
-_initialize_remote_mips ()
+_initialize_remote_mips (void)
{
/* Initialize the fields in mips_ops that are common to all four targets. */
mips_ops.to_longname = "Remote MIPS debugging over serial line";
diff --git a/gdb/remote-mm.c b/gdb/remote-mm.c
index 39be798..2c52974 100644
--- a/gdb/remote-mm.c
+++ b/gdb/remote-mm.c
@@ -126,7 +126,7 @@ FILE *mm_stream;
volatile int n_alarms;
static void
-mm_timer ()
+mm_timer (void)
{
#if 0
if (kiodebug)
@@ -148,10 +148,7 @@ static char *prog_name = NULL;
/* This is called not only when we first attach, but also when the
user types "run" after having attached. */
static void
-mm_create_inferior (execfile, args, env)
- char *execfile;
- char *args;
- char **env;
+mm_create_inferior (char *execfile, char *args, char **env)
{
#define MAX_TOKENS 25
#define BUFFER_SIZE 256
@@ -188,7 +185,7 @@ Assuming you are at NYU debuging a kernel, i.e., no need to download.\n\n");
}
/**************************************************** REMOTE_MOURN_INFERIOR */
static void
-mm_mourn ()
+mm_mourn (void)
{
pop_target (); /* Pop back to no-child state */
generic_mourn_inferior ();
@@ -283,8 +280,7 @@ baudtab[] =
};
static int
-damn_b (rate)
- int rate;
+damn_b (int rate)
{
int i;
@@ -305,9 +301,7 @@ damn_b (rate)
static char *dev_name;
int baudrate = 9600;
static void
-mm_open (name, from_tty)
- char *name;
- int from_tty;
+mm_open (char *name, int from_tty)
{
TERMINAL sg;
unsigned int prl;
@@ -457,8 +451,8 @@ mm_open (name, from_tty)
Use this when you want to detach and do something else
with your gdb. */
static void
-mm_close (quitting) /*FIXME: how is quitting used */
- int quitting;
+mm_close ( /*FIXME: how is quitting used */
+ int quitting)
{
if (mm_desc < 0)
error ("Can't close remote connection: not debugging remotely.");
@@ -492,9 +486,7 @@ mm_close (quitting) /*FIXME: how is quitting used */
* Upon exiting the process's execution is stopped.
*/
static void
-mm_attach (args, from_tty)
- char *args;
- int from_tty;
+mm_attach (char *args, int from_tty)
{
if (!mm_stream)
@@ -522,9 +514,7 @@ mm_attach (args, from_tty)
Use this when you want to detach and do something else
with your gdb. Leave remote process running (with no breakpoints set). */
static void
-mm_detach (args, from_tty)
- char *args;
- int from_tty;
+mm_detach (char *args, int from_tty)
{
remove_breakpoints (); /* Just in case there were any left in */
out_msg_buf->go_msg.code = GO;
@@ -538,9 +528,7 @@ mm_detach (args, from_tty)
** Tell the remote machine to resume. */
static void
-mm_resume (pid, step, sig)
- int pid, step;
- enum target_signal sig;
+mm_resume (int pid, int step, enum target_signal sig)
{
if (sig != TARGET_SIGNAL_0)
warning ("Can't send signals to a remote MiniMon system.");
@@ -565,8 +553,7 @@ mm_resume (pid, step, sig)
storing status in STATUS just as `wait' would. */
static int
-mm_wait (status)
- struct target_waitstatus *status;
+mm_wait (struct target_waitstatus *status)
{
int i, result;
int old_timeout = timeout;
@@ -718,8 +705,7 @@ halted:
* If regno==-1 then read all the registers.
*/
static void
-mm_fetch_registers (regno)
- int regno;
+mm_fetch_registers (int regno)
{
INT32 *data_p;
@@ -833,8 +819,7 @@ mm_fetch_registers (regno)
*/
static void
-mm_store_registers (regno)
- int regno;
+mm_store_registers (int regno)
{
int result;
@@ -972,15 +957,14 @@ mm_store_registers (regno)
debugged. */
static void
-mm_prepare_to_store ()
+mm_prepare_to_store (void)
{
/* Do nothing, since we can store individual regs */
}
/******************************************************* REMOTE_XFER_MEMORY */
static CORE_ADDR
-translate_addr (addr)
- CORE_ADDR addr;
+translate_addr (CORE_ADDR addr)
{
#if defined(KERNEL_DEBUGGING)
/* Check for a virtual address in the kernel */
@@ -1003,7 +987,7 @@ translate_addr (addr)
/******************************************************* REMOTE_FILES_INFO */
static void
-mm_files_info ()
+mm_files_info (void)
{
printf ("\tAttached to %s at %d baud and running program %s.\n",
dev_name, baudrate, prog_name);
@@ -1011,9 +995,7 @@ mm_files_info ()
/************************************************* REMOTE_INSERT_BREAKPOINT */
static int
-mm_insert_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+mm_insert_breakpoint (CORE_ADDR addr, char *contents_cache)
{
out_msg_buf->bkpt_set_msg.code = BKPT_SET;
out_msg_buf->bkpt_set_msg.length = 4 * 4;
@@ -1034,9 +1016,7 @@ mm_insert_breakpoint (addr, contents_cache)
/************************************************* REMOTE_DELETE_BREAKPOINT */
static int
-mm_remove_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+mm_remove_breakpoint (CORE_ADDR addr, char *contents_cache)
{
out_msg_buf->bkpt_rm_msg.code = BKPT_RM;
out_msg_buf->bkpt_rm_msg.length = 4 * 3;
@@ -1056,9 +1036,7 @@ mm_remove_breakpoint (addr, contents_cache)
/******************************************************* REMOTE_KILL */
static void
-mm_kill (arg, from_tty)
- char *arg;
- int from_tty;
+mm_kill (char *arg, int from_tty)
{
char buf[4];
@@ -1097,9 +1075,7 @@ mm_kill (arg, from_tty)
* Load a program into the target.
*/
static void
-mm_load (arg_string, from_tty)
- char *arg_string;
- int from_tty;
+mm_load (char *arg_string, int from_tty)
{
dont_repeat ();
@@ -1127,10 +1103,7 @@ mm_load (arg_string, from_tty)
** Copy LEN bytes of data from debugger memory at MYADDR
to inferior's memory at MEMADDR. Returns number of bytes written. */
static int
-mm_write_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+mm_write_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
int i, nwritten;
@@ -1166,10 +1139,7 @@ mm_write_inferior_memory (memaddr, myaddr, len)
** Read LEN bytes from inferior memory at MEMADDR. Put the result
at debugger address MYADDR. Returns number of bytes read. */
static int
-mm_read_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+mm_read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
int i, nread;
@@ -1203,11 +1173,7 @@ mm_read_inferior_memory (memaddr, myaddr, len)
/* FIXME! Merge these two. */
static int
-mm_xfer_inferior_memory (memaddr, myaddr, len, write)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
- int write;
+mm_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len, int write)
{
memaddr = translate_addr (memaddr);
@@ -1232,8 +1198,7 @@ mm_xfer_inferior_memory (memaddr, myaddr, len, write)
*/
int
-msg_send_serial (msg_ptr)
- union msg_t *msg_ptr;
+msg_send_serial (union msg_t *msg_ptr)
{
INT32 message_size;
int byte_count;
@@ -1269,8 +1234,7 @@ msg_send_serial (msg_ptr)
*/
int
-msg_recv_serial (msg_ptr)
- union msg_t *msg_ptr;
+msg_recv_serial (union msg_t *msg_ptr)
{
static INT32 length = 0;
static INT32 byte_count = 0;
@@ -1339,7 +1303,7 @@ msg_recv_serial (msg_ptr)
TERMINAL kbd_tbuf;
int
-kbd_raw ()
+kbd_raw (void)
{
int result;
TERMINAL tbuf;
@@ -1398,7 +1362,7 @@ kbd_raw ()
*/
int
-kbd_restore ()
+kbd_restore (void)
{
int result;
@@ -1421,8 +1385,7 @@ kbd_restore ()
* Returns 0/-1 on success/failure.
*/
static int
-fetch_register (regno)
- int regno;
+fetch_register (int regno)
{
int result;
out_msg_buf->read_req_msg.code = READ_REQ;
@@ -1481,8 +1444,7 @@ fetch_register (regno)
* Returns 0/-1 on success/failure.
*/
static int
-store_register (regno)
- int regno;
+store_register (int regno)
{
int result;
@@ -1548,8 +1510,7 @@ store_register (regno)
* Convert a gdb special register number to a 29000 special register number.
*/
static int
-regnum_to_srnum (regno)
- int regno;
+regnum_to_srnum (int regno)
{
switch (regno)
{
@@ -1616,10 +1577,8 @@ regnum_to_srnum (regno)
* Initialize the target debugger (minimon only).
*/
static void
-init_target_mm (tstart, tend, dstart, dend, entry, ms_size, rs_size, arg_start)
- ADDR32 tstart, tend, dstart, dend, entry;
- INT32 ms_size, rs_size;
- ADDR32 arg_start;
+init_target_mm (ADDR32 tstart, ADDR32 tend, ADDR32 dstart, ADDR32 dend,
+ ADDR32 entry, INT32 ms_size, INT32 rs_size, ADDR32 arg_start)
{
out_msg_buf->init_msg.code = INIT;
out_msg_buf->init_msg.length = sizeof (struct init_msg_t) - 2 * sizeof (INT32);
@@ -1641,8 +1600,7 @@ init_target_mm (tstart, tend, dstart, dend, entry, ms_size, rs_size, arg_start)
* to be called with.
*/
static char *
-msg_str (code)
- INT32 code;
+msg_str (INT32 code)
{
static char cbuf[32];
@@ -1680,8 +1638,7 @@ msg_str (code)
* Selected (not all of them) error codes that we might get.
*/
static char *
-error_msg_str (code)
- INT32 code;
+error_msg_str (INT32 code)
{
static char cbuf[50];
@@ -1780,8 +1737,7 @@ expect_msg (msgcode, msg_buf, from_tty)
* FIXME: Doesn't know anything about I_CACHE/D_CACHE.
*/
static int
-mm_memory_space (addr)
- CORE_ADDR *addr;
+mm_memory_space (CORE_ADDR *addr)
{
ADDR32 tstart = target_config.I_mem_start;
ADDR32 tend = tstart + target_config.I_mem_size;
@@ -1882,15 +1838,14 @@ init_mm_ops (void)
};
void
-_initialize_remote_mm ()
+_initialize_remote_mm (void)
{
init_mm_ops ();
add_target (&mm_ops);
}
#ifdef NO_HIF_SUPPORT
-service_HIF (msg)
- union msg_t *msg;
+service_HIF (union msg_t *msg)
{
return (0); /* Emulate a failure */
}
diff --git a/gdb/remote-nindy.c b/gdb/remote-nindy.c
index fb8b5e2..ed89be3 100644
--- a/gdb/remote-nindy.c
+++ b/gdb/remote-nindy.c
@@ -158,8 +158,7 @@ static void nindy_store_registers (int);
static char *savename;
static void
-nindy_close (quitting)
- int quitting;
+nindy_close (int quitting)
{
if (nindy_serial != NULL)
SERIAL_CLOSE (nindy_serial);
@@ -175,9 +174,8 @@ nindy_close (quitting)
now specified with gdb command-line options (old_protocol,
and initial_brk). */
void
-nindy_open (name, from_tty)
- char *name; /* "/dev/ttyXX", "ttyXX", or "XX": tty to be opened */
- int from_tty;
+nindy_open (char *name, /* "/dev/ttyXX", "ttyXX", or "XX": tty to be opened */
+ int from_tty)
{
char baudrate[1024];
@@ -221,9 +219,7 @@ nindy_open (name, from_tty)
/* User-initiated quit of nindy operations. */
static void
-nindy_detach (name, from_tty)
- char *name;
- int from_tty;
+nindy_detach (char *name, int from_tty)
{
if (name)
error ("Too many arguments");
@@ -231,7 +227,7 @@ nindy_detach (name, from_tty)
}
static void
-nindy_files_info ()
+nindy_files_info (void)
{
/* FIXME: this lies about the baud rate if we autobauded. */
printf_unfiltered ("\tAttached to %s at %d bits per second%s%s.\n", savename,
@@ -264,9 +260,7 @@ non_dle (buf, n)
/* Tell the remote machine to resume. */
void
-nindy_resume (pid, step, siggnal)
- int pid, step;
- enum target_signal siggnal;
+nindy_resume (int pid, int step, enum target_signal siggnal)
{
if (siggnal != TARGET_SIGNAL_0 && siggnal != stop_signal)
warning ("Can't send signals to remote NINDY targets.");
@@ -294,8 +288,7 @@ struct clean_up_tty_args
static struct clean_up_tty_args tty_args;
static void
-clean_up_tty (ptrarg)
- PTR ptrarg;
+clean_up_tty (PTR ptrarg)
{
struct clean_up_tty_args *args = (struct clean_up_tty_args *) ptrarg;
SERIAL_SET_TTY_STATE (args->serial, args->state);
@@ -310,7 +303,7 @@ static void (*old_ctrlz) ();
#endif
static void
-clean_up_int ()
+clean_up_int (void)
{
SERIAL_SET_TTY_STATE (tty_args.serial, tty_args.state);
free (tty_args.state);
@@ -330,9 +323,7 @@ clean_up_int ()
*/
static int
-nindy_wait (pid, status)
- int pid;
- struct target_waitstatus *status;
+nindy_wait (int pid, struct target_waitstatus *status)
{
fd_set fds;
int c;
@@ -441,8 +432,7 @@ struct nindy_regs
};
static void
-nindy_fetch_registers (regno)
- int regno;
+nindy_fetch_registers (int regno)
{
struct nindy_regs nindy_regs;
int regnum;
@@ -462,15 +452,14 @@ nindy_fetch_registers (regno)
}
static void
-nindy_prepare_to_store ()
+nindy_prepare_to_store (void)
{
/* Fetch all regs if they aren't already here. */
read_register_bytes (0, NULL, REGISTER_BYTES);
}
static void
-nindy_store_registers (regno)
- int regno;
+nindy_store_registers (int regno)
{
struct nindy_regs nindy_regs;
int regnum;
@@ -506,10 +495,7 @@ nindy_xfer_inferior_memory (memaddr, myaddr, len, should_write, target)
}
static void
-nindy_create_inferior (execfile, args, env)
- char *execfile;
- char *args;
- char **env;
+nindy_create_inferior (char *execfile, char *args, char **env)
{
int entry_pt;
int pid;
@@ -547,9 +533,7 @@ nindy_create_inferior (execfile, args, env)
}
static void
-reset_command (args, from_tty)
- char *args;
- int from_tty;
+reset_command (char *args, int from_tty)
{
if (nindy_serial == NULL)
{
@@ -563,9 +547,7 @@ reset_command (args, from_tty)
}
void
-nindy_kill (args, from_tty)
- char *args;
- int from_tty;
+nindy_kill (char *args, int from_tty)
{
return; /* Ignore attempts to kill target system */
}
@@ -577,7 +559,7 @@ nindy_kill (args, from_tty)
instructions. */
void
-nindy_mourn_inferior ()
+nindy_mourn_inferior (void)
{
remove_breakpoints ();
unpush_target (&nindy_ops);
@@ -586,17 +568,14 @@ nindy_mourn_inferior ()
/* Pass the args the way catch_errors wants them. */
static int
-nindy_open_stub (arg)
- char *arg;
+nindy_open_stub (char *arg)
{
nindy_open (arg, 1);
return 1;
}
static void
-nindy_load (filename, from_tty)
- char *filename;
- int from_tty;
+nindy_load (char *filename, int from_tty)
{
asection *s;
/* Can't do unix style forking on a VMS system, so we'll use bfd to do
@@ -634,8 +613,7 @@ nindy_load (filename, from_tty)
}
static int
-load_stub (arg)
- char *arg;
+load_stub (char *arg)
{
target_load (arg, 1);
return 1;
@@ -650,7 +628,7 @@ load_stub (arg)
an i960 object file on the host system. */
void
-nindy_before_main_loop ()
+nindy_before_main_loop (void)
{
char ttyname[100];
char *p, *p2;
@@ -774,7 +752,7 @@ specified when you started GDB.";
}
void
-_initialize_nindy ()
+_initialize_nindy (void)
{
init_nindy_ops ();
add_target (&nindy_ops);
diff --git a/gdb/remote-nrom.c b/gdb/remote-nrom.c
index 861b2d8..49e51c3 100644
--- a/gdb/remote-nrom.c
+++ b/gdb/remote-nrom.c
@@ -61,8 +61,7 @@ extern struct target_ops nrom_ops;
don't match. */
static int
-expect (string)
- char *string;
+expect (char *string)
{
char *p = string;
int c;
@@ -93,15 +92,13 @@ expect (string)
}
static void
-nrom_kill ()
+nrom_kill (void)
{
nrom_close (0);
}
static serial_t
-open_socket (name, port)
- char *name;
- int port;
+open_socket (char *name, int port)
{
char sockname[100];
serial_t desc;
@@ -115,7 +112,7 @@ open_socket (name, port)
}
static void
-load_cleanup ()
+load_cleanup (void)
{
SERIAL_CLOSE (load_desc);
load_desc = NULL;
@@ -124,9 +121,7 @@ load_cleanup ()
/* Download a file specified in ARGS to the netROM. */
static void
-nrom_load (args, fromtty)
- char *args;
- int fromtty;
+nrom_load (char *args, int fromtty)
{
int fd, rd_amt, fsize;
bfd *pbfd;
@@ -210,9 +205,7 @@ nrom_load (args, fromtty)
/* Open a connection to the remote NetROM devices. */
static void
-nrom_open (name, from_tty)
- char *name;
- int from_tty;
+nrom_open (char *name, int from_tty)
{
int errn;
@@ -238,8 +231,7 @@ or IP address of the NetROM device you wish to use.");
/* Close out all files and local state before this target loses control. */
static void
-nrom_close (quitting)
- int quitting;
+nrom_close (int quitting)
{
if (load_desc)
SERIAL_CLOSE (load_desc);
@@ -250,9 +242,7 @@ nrom_close (quitting)
/* Pass arguments directly to the NetROM. */
static void
-nrom_passthru (args, fromtty)
- char *args;
- int fromtty;
+nrom_passthru (char *args, int fromtty)
{
char buf[1024];
@@ -262,7 +252,7 @@ nrom_passthru (args, fromtty)
}
static void
-nrom_mourn ()
+nrom_mourn (void)
{
unpush_target (&nrom_ops);
generic_mourn_inferior ();
@@ -341,7 +331,7 @@ init_nrom_ops (void)
};
void
-_initialize_remote_nrom ()
+_initialize_remote_nrom (void)
{
init_nrom_ops ();
add_target (&nrom_ops);
diff --git a/gdb/remote-os9k.c b/gdb/remote-os9k.c
index fd758b5..3e1a1ee 100644
--- a/gdb/remote-os9k.c
+++ b/gdb/remote-os9k.c
@@ -105,8 +105,7 @@ printf_monitor (char *pattern,...)
/* Read a character from the remote system, doing all the fancy timeout stuff */
static int
-readchar (timeout)
- int timeout;
+readchar (int timeout)
{
int c;
@@ -136,9 +135,7 @@ readchar (timeout)
non-zero, then discard non-matching input, else print it out.
Let the user break out immediately. */
static void
-expect (string, discard)
- char *string;
- int discard;
+expect (char *string, int discard)
{
char *p = string;
int c;
@@ -190,8 +187,7 @@ expect (string, discard)
necessary to prevent getting into states from which we can't
recover. */
static void
-expect_prompt (discard)
- int discard;
+expect_prompt (int discard)
{
if (monitor_log)
/* This is a convenient place to do this. The idea is to do it often
@@ -211,8 +207,7 @@ expect_prompt (discard)
/* Get a hex digit from the remote system & return its value.
If ignore_space is nonzero, ignore spaces (not newline, tab, etc). */
static int
-get_hex_digit (ignore_space)
- int ignore_space;
+get_hex_digit (int ignore_space)
{
int ch;
while (1)
@@ -237,8 +232,7 @@ get_hex_digit (ignore_space)
/* Get a byte from monitor and put it in *BYT. Accept any number
leading spaces. */
static void
-get_hex_byte (byt)
- char *byt;
+get_hex_byte (char *byt)
{
int val;
@@ -250,9 +244,7 @@ get_hex_byte (byt)
/* Get N 32-bit words from remote, each preceded by a space,
and put them in registers starting at REGNO. */
static void
-get_hex_regs (n, regno)
- int n;
- int regno;
+get_hex_regs (int n, int regno)
{
long val;
int i;
@@ -278,10 +270,7 @@ get_hex_regs (n, regno)
/* This is called not only when we first attach, but also when the
user types "run" after having attached. */
static void
-rombug_create_inferior (execfile, args, env)
- char *execfile;
- char *args;
- char **env;
+rombug_create_inferior (char *execfile, char *args, char **env)
{
int entry_pt;
@@ -310,9 +299,7 @@ rombug_create_inferior (execfile, args, env)
static char dev_name[100];
static void
-rombug_open (args, from_tty)
- char *args;
- int from_tty;
+rombug_open (char *args, int from_tty)
{
if (args == NULL)
error ("Use `target RomBug DEVICE-NAME' to use a serial port, or \n\
@@ -380,8 +367,7 @@ rombug_open (args, from_tty)
*/
static void
-rombug_close (quitting)
- int quitting;
+rombug_close (int quitting)
{
if (rombug_is_open)
{
@@ -401,9 +387,7 @@ rombug_close (quitting)
}
int
-rombug_link (mod_name, text_reloc)
- char *mod_name;
- CORE_ADDR *text_reloc;
+rombug_link (char *mod_name, CORE_ADDR *text_reloc)
{
int i, j;
unsigned long val;
@@ -431,8 +415,7 @@ rombug_link (mod_name, text_reloc)
Use this when you want to detach and do something else
with your gdb. */
static void
-rombug_detach (from_tty)
- int from_tty;
+rombug_detach (int from_tty)
{
if (attach_flag)
{
@@ -448,9 +431,7 @@ rombug_detach (from_tty)
* Tell the remote machine to resume.
*/
static void
-rombug_resume (pid, step, sig)
- int pid, step;
- enum target_signal sig;
+rombug_resume (int pid, int step, enum target_signal sig)
{
if (monitor_log)
fprintf (log_file, "\nIn Resume (step=%d, sig=%d)\n", step, sig);
@@ -480,9 +461,7 @@ rombug_resume (pid, step, sig)
*/
static int
-rombug_wait (pid, status)
- int pid;
- struct target_waitstatus *status;
+rombug_wait (int pid, struct target_waitstatus *status)
{
int old_timeout = timeout;
struct section_offsets *offs;
@@ -528,8 +507,7 @@ rombug_wait (pid, status)
monitor wants. Lets take advantage of that just as long as possible! */
static char *
-get_reg_name (regno)
- int regno;
+get_reg_name (int regno)
{
static char buf[50];
char *p;
@@ -554,7 +532,7 @@ get_reg_name (regno)
/* read the remote registers into the block regs. */
static void
-rombug_fetch_registers ()
+rombug_fetch_registers (void)
{
int regno, j, i;
long val;
@@ -615,8 +593,7 @@ rombug_fetch_registers ()
/* Fetch register REGNO, or all registers if REGNO is -1.
Returns errno value. */
static void
-rombug_fetch_register (regno)
- int regno;
+rombug_fetch_register (int regno)
{
int val, j;
unsigned char b;
@@ -683,7 +660,7 @@ rombug_fetch_register (regno)
/* Store the remote registers from the contents of the block REGS. */
static void
-rombug_store_registers ()
+rombug_store_registers (void)
{
int regno;
@@ -696,8 +673,7 @@ rombug_store_registers ()
/* Store register REGNO, or all if REGNO == 0.
return errno value. */
static void
-rombug_store_register (regno)
- int regno;
+rombug_store_register (int regno)
{
char *name;
@@ -728,13 +704,13 @@ rombug_store_register (regno)
debugged. */
static void
-rombug_prepare_to_store ()
+rombug_prepare_to_store (void)
{
/* Do nothing, since we can store individual regs */
}
static void
-rombug_files_info ()
+rombug_files_info (void)
{
printf ("\tAttached to %s at %d baud.\n",
dev_name, sr_get_baud_rate ());
@@ -743,10 +719,7 @@ rombug_files_info ()
/* Copy LEN bytes of data from debugger memory at MYADDR
to inferior's memory at MEMADDR. Returns length moved. */
static int
-rombug_write_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- unsigned char *myaddr;
- int len;
+rombug_write_inferior_memory (CORE_ADDR memaddr, unsigned char *myaddr, int len)
{
int i;
char buf[10];
@@ -776,10 +749,7 @@ rombug_write_inferior_memory (memaddr, myaddr, len)
/* Read LEN bytes from inferior memory at MEMADDR. Put the result
at debugger address MYADDR. Returns length moved. */
static int
-rombug_read_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+rombug_read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
int i, j;
@@ -864,9 +834,7 @@ rombug_xfer_inferior_memory (memaddr, myaddr, len, write, target)
}
static void
-rombug_kill (args, from_tty)
- char *args;
- int from_tty;
+rombug_kill (char *args, int from_tty)
{
return; /* ignore attempts to kill target system */
}
@@ -877,7 +845,7 @@ rombug_kill (args, from_tty)
instructions. */
static void
-rombug_mourn_inferior ()
+rombug_mourn_inferior (void)
{
remove_breakpoints ();
generic_mourn_inferior (); /* Do all the proper things now */
@@ -889,9 +857,7 @@ static CORE_ADDR breakaddr[MAX_MONITOR_BREAKPOINTS] =
{0};
static int
-rombug_insert_breakpoint (addr, shadow)
- CORE_ADDR addr;
- char *shadow;
+rombug_insert_breakpoint (CORE_ADDR addr, char *shadow)
{
int i;
CORE_ADDR bp_addr = addr;
@@ -922,9 +888,7 @@ rombug_insert_breakpoint (addr, shadow)
* _remove_breakpoint -- Tell the monitor to remove a breakpoint
*/
static int
-rombug_remove_breakpoint (addr, shadow)
- CORE_ADDR addr;
- char *shadow;
+rombug_remove_breakpoint (CORE_ADDR addr, char *shadow)
{
int i;
@@ -950,8 +914,7 @@ rombug_remove_breakpoint (addr, shadow)
#define DOWNLOAD_LINE_SIZE 100
static void
-rombug_load (arg)
- char *arg;
+rombug_load (char *arg)
{
/* this part comment out for os9* */
#if 0
@@ -1013,9 +976,7 @@ rombug_load (arg)
is seen. */
static void
-rombug_command (args, fromtty)
- char *args;
- int fromtty;
+rombug_command (char *args, int fromtty)
{
if (monitor_desc == NULL)
error ("monitor target not open.");
@@ -1037,16 +998,14 @@ rombug_command (args, fromtty)
static struct ttystate ttystate;
static void
-cleanup_tty ()
+cleanup_tty (void)
{
printf ("\r\n[Exiting connect mode]\r\n");
/*SERIAL_RESTORE(0, &ttystate); */
}
static void
-connect_command (args, fromtty)
- char *args;
- int fromtty;
+connect_command (char *args, int fromtty)
{
fd_set readfds;
int numfds;
@@ -1221,7 +1180,7 @@ Specify the serial device it is connected to (e.g. /dev/ttya).",
}
void
-_initialize_remote_os9k ()
+_initialize_remote_os9k (void)
{
init_rombug_ops ();
add_target (&rombug_ops);
diff --git a/gdb/remote-rdi.c b/gdb/remote-rdi.c
index f41f179..200f842 100644
--- a/gdb/remote-rdi.c
+++ b/gdb/remote-rdi.c
@@ -132,8 +132,7 @@ static struct local_bp_list_entry
/* Stub for catch_errors. */
static int
-arm_rdi_start_remote (dummy)
- char *dummy;
+arm_rdi_start_remote (char *dummy)
{
return 1;
}
@@ -142,34 +141,26 @@ arm_rdi_start_remote (dummy)
these to forward output from the target system and so forth. */
void
-voiddummy ()
+voiddummy (void)
{
fprintf_unfiltered (gdb_stdout, "void dummy\n");
}
static void
-myprint (arg, format, ap)
- PTR arg;
- const char *format;
- va_list ap;
+myprint (PTR arg, const char *format, va_list ap)
{
vfprintf_unfiltered (gdb_stdout, format, ap);
}
static void
-mywritec (arg, c)
- PTR arg;
- int c;
+mywritec (PTR arg, int c)
{
if (isascii (c))
fputc_unfiltered (c, gdb_stdout);
}
static int
-mywrite (arg, buffer, len)
- PTR arg;
- char const *buffer;
- int len;
+mywrite (PTR arg, char const *buffer, int len)
{
int i;
char *e;
@@ -188,8 +179,7 @@ mywrite (arg, buffer, len)
}
static void
-mypause (arg)
- PTR arg;
+mypause (PTR arg)
{
}
@@ -197,17 +187,13 @@ mypause (arg)
being interrupted more carefully */
static int
-myreadc (arg)
- PTR arg;
+myreadc (PTR arg)
{
return fgetc (stdin);
}
static char *
-mygets (arg, buffer, len)
- PTR arg;
- char *buffer;
- int len;
+mygets (PTR arg, char *buffer, int len)
{
return fgets (buffer, len, stdin);
}
@@ -219,9 +205,7 @@ static int closed_already = 1;
for communication. */
static void
-arm_rdi_open (name, from_tty)
- char *name;
- int from_tty;
+arm_rdi_open (char *name, int from_tty)
{
int rslt, i;
unsigned long arg1, arg2;
@@ -365,10 +349,7 @@ device is attached to the remote system (e.g. /dev/ttya).");
user types "run" after having attached. */
static void
-arm_rdi_create_inferior (exec_file, args, env)
- char *exec_file;
- char *args;
- char **env;
+arm_rdi_create_inferior (char *exec_file, char *args, char **env)
{
int len, rslt;
unsigned long arg1, arg2;
@@ -435,9 +416,7 @@ arm_rdi_create_inferior (exec_file, args, env)
die when it hits one. */
static void
-arm_rdi_detach (args, from_tty)
- char *args;
- int from_tty;
+arm_rdi_detach (char *args, int from_tty)
{
pop_target ();
}
@@ -445,8 +424,7 @@ arm_rdi_detach (args, from_tty)
/* Clean up connection to a remote debugger. */
static void
-arm_rdi_close (quitting)
- int quitting;
+arm_rdi_close (int quitting)
{
int rslt;
@@ -467,9 +445,7 @@ arm_rdi_close (quitting)
/* Tell the remote machine to resume. */
static void
-arm_rdi_resume (pid, step, siggnal)
- int pid, step;
- enum target_signal siggnal;
+arm_rdi_resume (int pid, int step, enum target_signal siggnal)
{
int rslt;
PointHandle point;
@@ -511,8 +487,7 @@ arm_rdi_resume (pid, step, siggnal)
packet. */
static void
-arm_rdi_interrupt (signo)
- int signo;
+arm_rdi_interrupt (int signo)
{
}
@@ -520,15 +495,14 @@ static void (*ofunc) ();
/* The user typed ^C twice. */
static void
-arm_rdi_interrupt_twice (signo)
- int signo;
+arm_rdi_interrupt_twice (int signo)
{
}
/* Ask the user what to do when an interrupt is received. */
static void
-interrupt_query ()
+interrupt_query (void)
{
}
@@ -537,9 +511,7 @@ interrupt_query ()
what, if anything, that means in the case of this target). */
static int
-arm_rdi_wait (pid, status)
- int pid;
- struct target_waitstatus *status;
+arm_rdi_wait (int pid, struct target_waitstatus *status)
{
status->kind = (execute_status == RDIError_NoError ?
TARGET_WAITKIND_EXITED : TARGET_WAITKIND_STOPPED);
@@ -554,8 +526,7 @@ arm_rdi_wait (pid, status)
/* ARGSUSED */
static void
-arm_rdi_fetch_registers (regno)
- int regno;
+arm_rdi_fetch_registers (int regno)
{
int rslt, rdi_regmask;
unsigned long rawreg, rawregs[32];
@@ -604,7 +575,7 @@ arm_rdi_fetch_registers (regno)
}
static void
-arm_rdi_prepare_to_store ()
+arm_rdi_prepare_to_store (void)
{
/* Nothing to do. */
}
@@ -613,8 +584,7 @@ arm_rdi_prepare_to_store ()
of REGISTERS. FIXME: ignores errors. */
static void
-arm_rdi_store_registers (regno)
- int regno;
+arm_rdi_store_registers (int regno)
{
int rslt, rdi_regmask;
@@ -688,8 +658,7 @@ arm_rdi_xfer_memory (memaddr, myaddr, len, should_write, target)
/* Display random info collected from the target. */
static void
-arm_rdi_files_info (ignore)
- struct target_ops *ignore;
+arm_rdi_files_info (struct target_ops *ignore)
{
char *file = "nothing";
int rslt;
@@ -724,7 +693,7 @@ arm_rdi_files_info (ignore)
}
static void
-arm_rdi_kill ()
+arm_rdi_kill (void)
{
int rslt;
@@ -736,7 +705,7 @@ arm_rdi_kill ()
}
static void
-arm_rdi_mourn_inferior ()
+arm_rdi_mourn_inferior (void)
{
/* We remove the inserted breakpoints in case the user wants to
issue another target and load commands to rerun his application;
@@ -754,9 +723,7 @@ arm_rdi_mourn_inferior ()
here. */
static int
-arm_rdi_insert_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+arm_rdi_insert_breakpoint (CORE_ADDR addr, char *contents_cache)
{
int rslt;
PointHandle point;
@@ -780,9 +747,7 @@ arm_rdi_insert_breakpoint (addr, contents_cache)
}
static int
-arm_rdi_remove_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+arm_rdi_remove_breakpoint (CORE_ADDR addr, char *contents_cache)
{
int rslt;
PointHandle point;
@@ -818,8 +783,7 @@ arm_rdi_remove_breakpoint (addr, contents_cache)
}
static char *
-rdi_error_message (err)
- int err;
+rdi_error_message (int err)
{
switch (err)
{
@@ -909,8 +873,7 @@ rdi_error_message (err)
/* Convert the ARM error messages to signals that GDB knows about. */
static enum target_signal
-rdi_error_signal (err)
- int err;
+rdi_error_signal (int err)
{
switch (err)
{
@@ -974,7 +937,7 @@ rdi_error_signal (err)
/* Define the target operations structure. */
static void
-init_rdi_ops ()
+init_rdi_ops (void)
{
arm_rdi_ops.to_shortname = "rdi";
arm_rdi_ops.to_longname = "ARM RDI";
@@ -1051,7 +1014,7 @@ rdilogenable_command (char *args, int from_tty)
}
void
-_initialize_remote_rdi ()
+_initialize_remote_rdi (void)
{
init_rdi_ops ();
add_target (&arm_rdi_ops);
@@ -1102,7 +1065,7 @@ as the Angel Monitor.\n",
/* A little dummy to make linking with the library succeed. */
int
-Fail ()
+Fail (void)
{
return 0;
}
diff --git a/gdb/remote-rdp.c b/gdb/remote-rdp.c
index 09365ec..2acd57b 100644
--- a/gdb/remote-rdp.c
+++ b/gdb/remote-rdp.c
@@ -176,7 +176,7 @@ remote_rdp_xfer_inferior_memory (CORE_ADDR memaddr,
/* Stuff for talking to the serial layer. */
static unsigned char
-get_byte ()
+get_byte (void)
{
int c = SERIAL_READCHAR (io, timeout);
@@ -197,7 +197,7 @@ get_byte ()
/* Note that the target always speaks little-endian to us,
even if it's a big endian machine. */
static unsigned int
-get_word ()
+get_word (void)
{
unsigned int val = 0;
unsigned int c;
@@ -211,8 +211,7 @@ get_word ()
}
static void
-put_byte (val)
- char val;
+put_byte (char val)
{
if (remote_debug)
fprintf_unfiltered (gdb_stdlog, "(%02x)\n", val);
@@ -220,8 +219,7 @@ put_byte (val)
}
static void
-put_word (val)
- int val;
+put_word (int val)
{
/* We always send in little endian */
unsigned char b[4];
@@ -249,9 +247,7 @@ put_word (val)
*/
static void
-rdp_init (cold, tty)
- int cold;
- int tty;
+rdp_init (int cold, int tty)
{
int sync = 0;
int type = cold ? RDP_OPEN_TYPE_COLD : RDP_OPEN_TYPE_WARM;
@@ -487,10 +483,7 @@ send_rdp (char *template,...)
static int
-rdp_write (memaddr, buf, len)
- CORE_ADDR memaddr;
- char *buf;
- int len;
+rdp_write (CORE_ADDR memaddr, char *buf, int len)
{
int res;
int val;
@@ -506,10 +499,7 @@ rdp_write (memaddr, buf, len)
static int
-rdp_read (memaddr, buf, len)
- CORE_ADDR memaddr;
- char *buf;
- int len;
+rdp_read (CORE_ADDR memaddr, char *buf, int len)
{
int res;
int val;
@@ -525,9 +515,7 @@ rdp_read (memaddr, buf, len)
}
static void
-rdp_fetch_one_register (mask, buf)
- int mask;
- char *buf;
+rdp_fetch_one_register (int mask, char *buf)
{
int val;
send_rdp ("bbw-SWZ", RDP_CPU_READ, RDP_CPU_READWRITE_MODE_CURRENT, mask, &val);
@@ -535,9 +523,7 @@ rdp_fetch_one_register (mask, buf)
}
static void
-rdp_fetch_one_fpu_register (mask, buf)
- int mask;
- char *buf;
+rdp_fetch_one_fpu_register (int mask, char *buf)
{
#if 0
/* !!! Since the PIE board doesn't work as documented,
@@ -564,9 +550,7 @@ rdp_fetch_one_fpu_register (mask, buf)
static void
-rdp_store_one_register (mask, buf)
- int mask;
- char *buf;
+rdp_store_one_register (int mask, char *buf)
{
int val = extract_unsigned_integer (buf, 4);
@@ -576,9 +560,7 @@ rdp_store_one_register (mask, buf)
static void
-rdp_store_one_fpu_register (mask, buf)
- int mask;
- char *buf;
+rdp_store_one_fpu_register (int mask, char *buf)
{
#if 0
/* See comment in fetch_one_fpu_register */
@@ -616,8 +598,7 @@ rdp_store_one_fpu_register (mask, buf)
/* Convert between GDB requests and the RDP layer. */
static void
-remote_rdp_fetch_register (regno)
- int regno;
+remote_rdp_fetch_register (int regno)
{
if (regno == -1)
{
@@ -647,8 +628,7 @@ remote_rdp_fetch_register (regno)
static void
-remote_rdp_store_register (regno)
- int regno;
+remote_rdp_store_register (int regno)
{
if (regno == -1)
{
@@ -675,14 +655,14 @@ remote_rdp_store_register (regno)
}
static void
-remote_rdp_kill ()
+remote_rdp_kill (void)
{
callback->shutdown (callback);
}
static void
-rdp_info ()
+rdp_info (void)
{
send_rdp ("bw-S-W-Z", RDP_INFO, RDP_INFO_ABOUT_STEP,
&ds.step_info);
@@ -699,7 +679,7 @@ rdp_info ()
static void
-rdp_execute_start ()
+rdp_execute_start (void)
{
/* Start it off, but don't wait for it */
send_rdp ("bb-", RDP_EXEC, RDP_EXEC_TYPE_SYNC);
@@ -707,9 +687,7 @@ rdp_execute_start ()
static void
-rdp_set_command_line (command, args)
- char *command;
- char *args;
+rdp_set_command_line (char *command, char *args)
{
/*
** We could use RDP_INFO_SET_CMDLINE to send this, but EmbeddedICE systems
@@ -730,7 +708,7 @@ rdp_set_command_line (command, args)
}
static void
-rdp_catch_vectors ()
+rdp_catch_vectors (void)
{
/*
** We want the target monitor to intercept the abort vectors
@@ -817,9 +795,7 @@ static int translate_open_mode[] =
};
static int
-exec_swi (swi, args)
- int swi;
- argsin *args;
+exec_swi (int swi, argsin *args)
{
int i;
char c;
@@ -942,7 +918,7 @@ exec_swi (swi, args)
static void
-handle_swi ()
+handle_swi (void)
{
argsin args[3];
char *buf;
@@ -1015,7 +991,7 @@ handle_swi ()
}
static void
-rdp_execute_finish ()
+rdp_execute_finish (void)
{
int running = 1;
@@ -1052,16 +1028,14 @@ rdp_execute_finish ()
static void
-rdp_execute ()
+rdp_execute (void)
{
rdp_execute_start ();
rdp_execute_finish ();
}
static int
-remote_rdp_insert_breakpoint (addr, save)
- CORE_ADDR addr;
- char *save;
+remote_rdp_insert_breakpoint (CORE_ADDR addr, char *save)
{
int res;
if (ds.rdi_level > 0)
@@ -1085,9 +1059,7 @@ remote_rdp_insert_breakpoint (addr, save)
}
static int
-remote_rdp_remove_breakpoint (addr, save)
- CORE_ADDR addr;
- char *save;
+remote_rdp_remove_breakpoint (CORE_ADDR addr, char *save)
{
int res;
if (ds.rdi_level > 0)
@@ -1108,7 +1080,7 @@ remote_rdp_remove_breakpoint (addr, save)
}
static void
-rdp_step ()
+rdp_step (void)
{
if (ds.can_step && 0)
{
@@ -1131,9 +1103,7 @@ rdp_step ()
}
static void
-remote_rdp_open (args, from_tty)
- char *args;
- int from_tty;
+remote_rdp_open (char *args, int from_tty)
{
int not_icebreaker;
@@ -1203,8 +1173,7 @@ remote_rdp_open (args, from_tty)
/* Close out all files and local state before this target loses control. */
static void
-remote_rdp_close (quitting)
- int quitting;
+remote_rdp_close (int quitting)
{
callback->shutdown (callback);
if (io)
@@ -1218,9 +1187,7 @@ remote_rdp_close (quitting)
to the target, or zero for no signal. */
static void
-remote_rdp_resume (pid, step, siggnal)
- int pid, step;
- enum target_signal siggnal;
+remote_rdp_resume (int pid, int step, enum target_signal siggnal)
{
if (step)
rdp_step ();
@@ -1233,9 +1200,7 @@ remote_rdp_resume (pid, step, siggnal)
just as `wait' would. */
static int
-remote_rdp_wait (pid, status)
- int pid;
- struct target_waitstatus *status;
+remote_rdp_wait (int pid, struct target_waitstatus *status)
{
switch (ds.rdi_stopped_status)
{
@@ -1271,7 +1236,7 @@ remote_rdp_wait (pid, status)
debugged. */
static void
-remote_rdp_prepare_to_store ()
+remote_rdp_prepare_to_store (void)
{
/* Do nothing, since we can store individual regs */
}
@@ -1347,9 +1312,7 @@ static struct yn breakinfo[] =
static void
-dump_bits (t, info)
- struct yn *t;
- int info;
+dump_bits (struct yn *t, int info)
{
while (t->name)
{
@@ -1359,8 +1322,7 @@ dump_bits (t, info)
}
static void
-remote_rdp_files_info (target)
- struct target_ops *target;
+remote_rdp_files_info (struct target_ops *target)
{
printf_filtered ("Target capabilities:\n");
dump_bits (stepinfo, ds.step_info);
@@ -1370,10 +1332,7 @@ remote_rdp_files_info (target)
static void
-remote_rdp_create_inferior (exec_file, allargs, env)
- char *exec_file;
- char *allargs;
- char **env;
+remote_rdp_create_inferior (char *exec_file, char *allargs, char **env)
{
CORE_ADDR entry_point;
@@ -1403,16 +1362,14 @@ remote_rdp_create_inferior (exec_file, allargs, env)
/* Accept any stray run/attach commands */
static int
-remote_rdp_can_run ()
+remote_rdp_can_run (void)
{
return 1;
}
/* Attach doesn't need to do anything */
static void
-remote_rdp_attach (args, from_tty)
- char *args;
- int from_tty;
+remote_rdp_attach (char *args, int from_tty)
{
return;
}
@@ -1490,7 +1447,7 @@ init_remote_rdp_ops (void)
}
void
-_initialize_remote_rdp ()
+_initialize_remote_rdp (void)
{
init_remote_rdp_ops ();
add_target (&remote_rdp_ops);
diff --git a/gdb/remote-sds.c b/gdb/remote-sds.c
index 0c1b107..5d49152 100644
--- a/gdb/remote-sds.c
+++ b/gdb/remote-sds.c
@@ -148,8 +148,7 @@ static int message_pending;
/* ARGSUSED */
static void
-sds_close (quitting)
- int quitting;
+sds_close (int quitting)
{
if (sds_desc)
SERIAL_CLOSE (sds_desc);
@@ -159,8 +158,7 @@ sds_close (quitting)
/* Stub for catch_errors. */
static int
-sds_start_remote (dummy)
- PTR dummy;
+sds_start_remote (PTR dummy)
{
char c;
unsigned char buf[200];
@@ -195,9 +193,7 @@ sds_start_remote (dummy)
static DCACHE *sds_dcache;
static void
-sds_open (name, from_tty)
- char *name;
- int from_tty;
+sds_open (char *name, int from_tty)
{
if (name == 0)
error ("To open a remote debug connection, you need to specify what serial\n\
@@ -254,9 +250,7 @@ device is attached to the remote system (e.g. /dev/ttya).");
die when it hits one. */
static void
-sds_detach (args, from_tty)
- char *args;
- int from_tty;
+sds_detach (char *args, int from_tty)
{
char buf[PBUFSIZ];
@@ -277,8 +271,7 @@ sds_detach (args, from_tty)
/* Convert hex digit A to a number. */
static int
-fromhex (a)
- int a;
+fromhex (int a)
{
if (a >= '0' && a <= '9')
return a - '0';
@@ -291,8 +284,7 @@ fromhex (a)
/* Convert number NIB to a hex digit. */
static int
-tohex (nib)
- int nib;
+tohex (int nib)
{
if (nib < 10)
return '0' + nib;
@@ -301,10 +293,7 @@ tohex (nib)
}
static int
-tob64 (inbuf, outbuf, len)
- unsigned char *inbuf;
- char *outbuf;
- int len;
+tob64 (unsigned char *inbuf, char *outbuf, int len)
{
int i, sum;
char *p;
@@ -330,9 +319,7 @@ tob64 (inbuf, outbuf, len)
}
static int
-fromb64 (inbuf, outbuf, len)
- char *inbuf, *outbuf;
- int len;
+fromb64 (char *inbuf, char *outbuf, int len)
{
int i, sum;
@@ -364,9 +351,7 @@ static enum target_signal last_sent_signal = TARGET_SIGNAL_0;
int last_sent_step;
static void
-sds_resume (pid, step, siggnal)
- int pid, step;
- enum target_signal siggnal;
+sds_resume (int pid, int step, enum target_signal siggnal)
{
unsigned char buf[PBUFSIZ];
@@ -385,8 +370,7 @@ sds_resume (pid, step, siggnal)
us a message pending notice. */
static void
-sds_interrupt (signo)
- int signo;
+sds_interrupt (int signo)
{
unsigned char buf[PBUFSIZ];
@@ -405,8 +389,7 @@ static void (*ofunc) ();
/* The user typed ^C twice. */
static void
-sds_interrupt_twice (signo)
- int signo;
+sds_interrupt_twice (int signo)
{
signal (signo, ofunc);
@@ -418,7 +401,7 @@ sds_interrupt_twice (signo)
/* Ask the user what to do when an interrupt is received. */
static void
-interrupt_query ()
+interrupt_query (void)
{
target_terminal_ours ();
@@ -440,9 +423,7 @@ int kill_kludge;
what, if anything, that means in the case of this target). */
static int
-sds_wait (pid, status)
- int pid;
- struct target_waitstatus *status;
+sds_wait (int pid, struct target_waitstatus *status)
{
unsigned char buf[PBUFSIZ];
int retlen;
@@ -492,8 +473,7 @@ static unsigned char sprs[16];
/* ARGSUSED */
static void
-sds_fetch_registers (regno)
- int regno;
+sds_fetch_registers (int regno)
{
unsigned char buf[PBUFSIZ];
int i, retlen;
@@ -530,7 +510,7 @@ sds_fetch_registers (regno)
read out the ones we don't want to change first. */
static void
-sds_prepare_to_store ()
+sds_prepare_to_store (void)
{
/* Make sure the entire registers array is valid. */
read_register_bytes (0, (char *) NULL, REGISTER_BYTES);
@@ -540,8 +520,7 @@ sds_prepare_to_store ()
of REGISTERS. FIXME: ignores errors. */
static void
-sds_store_registers (regno)
- int regno;
+sds_store_registers (int regno)
{
unsigned char *p, buf[PBUFSIZ];
int i;
@@ -582,10 +561,7 @@ sds_store_registers (regno)
Returns number of bytes transferred, or 0 for error. */
static int
-sds_write_bytes (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+sds_write_bytes (CORE_ADDR memaddr, char *myaddr, int len)
{
int max_buf_size; /* Max size of packet output buffer */
int origlen;
@@ -633,10 +609,7 @@ sds_write_bytes (memaddr, myaddr, len)
Returns number of bytes transferred, or 0 for error. */
static int
-sds_read_bytes (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+sds_read_bytes (CORE_ADDR memaddr, char *myaddr, int len)
{
int max_buf_size; /* Max size of packet output buffer */
int origlen, retlen;
@@ -702,8 +675,7 @@ sds_xfer_memory (memaddr, myaddr, len, should_write, target)
static void
-sds_files_info (ignore)
- struct target_ops *ignore;
+sds_files_info (struct target_ops *ignore)
{
puts_filtered ("Debugging over a serial connection, using SDS protocol.\n");
}
@@ -714,8 +686,7 @@ sds_files_info (ignore)
/* Read a single character from the remote end, masking it down to 7 bits. */
static int
-readchar (timeout)
- int timeout;
+readchar (int timeout)
{
int ch;
@@ -741,9 +712,7 @@ readchar (timeout)
because 253, 254, and 255 are special flags in the protocol.) */
static int
-compute_checksum (csum, buf, len)
- int csum, len;
- char *buf;
+compute_checksum (int csum, char *buf, int len)
{
int i;
@@ -758,9 +727,7 @@ compute_checksum (csum, buf, len)
into BUF also. */
static int
-sds_send (buf, len)
- unsigned char *buf;
- int len;
+sds_send (unsigned char *buf, int len)
{
putmessage (buf, len);
@@ -770,9 +737,7 @@ sds_send (buf, len)
/* Send a message to the remote machine. */
static int
-putmessage (buf, len)
- unsigned char *buf;
- int len;
+putmessage (unsigned char *buf, int len)
{
int i, enclen;
unsigned char csum = 0;
@@ -847,8 +812,7 @@ putmessage (buf, len)
into BUF. Returns 0 on any error, 1 on success. */
static int
-read_frame (buf)
- char *buf;
+read_frame (char *buf)
{
char *bp;
int c;
@@ -905,9 +869,7 @@ read_frame (buf)
while the target is executing user code. */
static int
-getmessage (buf, forever)
- unsigned char *buf;
- int forever;
+getmessage (unsigned char *buf, int forever)
{
int c, c2, c3;
int tries;
@@ -1026,23 +988,20 @@ getmessage (buf, forever)
}
static void
-sds_kill ()
+sds_kill (void)
{
/* Don't try to do anything to the target. */
}
static void
-sds_mourn ()
+sds_mourn (void)
{
unpush_target (&sds_ops);
generic_mourn_inferior ();
}
static void
-sds_create_inferior (exec_file, args, env)
- char *exec_file;
- char *args;
- char **env;
+sds_create_inferior (char *exec_file, char *args, char **env)
{
inferior_pid = 42000;
@@ -1054,9 +1013,7 @@ sds_create_inferior (exec_file, args, env)
}
static void
-sds_load (filename, from_tty)
- char *filename;
- int from_tty;
+sds_load (char *filename, int from_tty)
{
generic_load (filename, from_tty);
@@ -1068,9 +1025,7 @@ sds_load (filename, from_tty)
replaced instruction back to the debugger. */
static int
-sds_insert_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+sds_insert_breakpoint (CORE_ADDR addr, char *contents_cache)
{
int i, retlen;
unsigned char *p, buf[PBUFSIZ];
@@ -1092,9 +1047,7 @@ sds_insert_breakpoint (addr, contents_cache)
}
static int
-sds_remove_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+sds_remove_breakpoint (CORE_ADDR addr, char *contents_cache)
{
int i, retlen;
unsigned char *p, buf[PBUFSIZ];
@@ -1115,7 +1068,7 @@ sds_remove_breakpoint (addr, contents_cache)
}
static void
-init_sds_ops ()
+init_sds_ops (void)
{
sds_ops.to_shortname = "sds";
sds_ops.to_longname = "Remote serial target with SDS protocol";
@@ -1150,9 +1103,7 @@ Specify the serial device it is connected to (e.g. /dev/ttya).";
reply message. */
static void
-sds_command (args, from_tty)
- char *args;
- int from_tty;
+sds_command (char *args, int from_tty)
{
char *p;
int i, len, retlen;
@@ -1180,7 +1131,7 @@ sds_command (args, from_tty)
}
void
-_initialize_remote_sds ()
+_initialize_remote_sds (void)
{
init_sds_ops ();
add_target (&sds_ops);
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index 3377fef..c992e9a 100644
--- a/gdb/remote-sim.c
+++ b/gdb/remote-sim.c
@@ -120,9 +120,7 @@ static int program_loaded = 0;
static SIM_DESC gdbsim_desc = 0;
static void
-dump_mem (buf, len)
- char *buf;
- int len;
+dump_mem (char *buf, int len)
{
if (len <= 8)
{
@@ -150,7 +148,7 @@ static int callbacks_initialized = 0;
/* Initialize gdb_callback. */
static void
-init_callbacks ()
+init_callbacks (void)
{
if (!callbacks_initialized)
{
@@ -173,7 +171,7 @@ init_callbacks ()
/* Release callbacks (free resources used by them). */
static void
-end_callbacks ()
+end_callbacks (void)
{
if (callbacks_initialized)
{
@@ -185,10 +183,7 @@ end_callbacks ()
/* GDB version of os_write_stdout callback. */
static int
-gdb_os_write_stdout (p, buf, len)
- host_callback *p;
- const char *buf;
- int len;
+gdb_os_write_stdout (host_callback *p, const char *buf, int len)
{
int i;
char b[2];
@@ -200,8 +195,7 @@ gdb_os_write_stdout (p, buf, len)
/* GDB version of os_flush_stdout callback. */
static void
-gdb_os_flush_stdout (p)
- host_callback *p;
+gdb_os_flush_stdout (host_callback *p)
{
gdb_flush (gdb_stdtarg);
}
@@ -209,10 +203,7 @@ gdb_os_flush_stdout (p)
/* GDB version of os_write_stderr callback. */
static int
-gdb_os_write_stderr (p, buf, len)
- host_callback *p;
- const char *buf;
- int len;
+gdb_os_write_stderr (host_callback *p, const char *buf, int len)
{
int i;
char b[2];
@@ -229,8 +220,7 @@ gdb_os_write_stderr (p, buf, len)
/* GDB version of os_flush_stderr callback. */
static void
-gdb_os_flush_stderr (p)
- host_callback *p;
+gdb_os_flush_stderr (host_callback *p)
{
gdb_flush (gdb_stderr);
}
@@ -285,8 +275,7 @@ gdb_os_error (host_callback * p, const char *format,...)
#endif
static void
-gdbsim_fetch_register (regno)
- int regno;
+gdbsim_fetch_register (int regno)
{
static int warn_user = 1;
if (regno == -1)
@@ -330,8 +319,7 @@ gdbsim_fetch_register (regno)
static void
-gdbsim_store_register (regno)
- int regno;
+gdbsim_store_register (int regno)
{
if (regno == -1)
{
@@ -363,7 +351,7 @@ gdbsim_store_register (regno)
and releasing other resources acquired by the simulated program. */
static void
-gdbsim_kill ()
+gdbsim_kill (void)
{
if (sr_get_debug ())
printf_filtered ("gdbsim_kill\n");
@@ -378,9 +366,7 @@ gdbsim_kill ()
GDB's symbol tables to match. */
static void
-gdbsim_load (prog, fromtty)
- char *prog;
- int fromtty;
+gdbsim_load (char *prog, int fromtty)
{
if (sr_get_debug ())
printf_filtered ("gdbsim_load: prog \"%s\"\n", prog);
@@ -409,10 +395,7 @@ gdbsim_load (prog, fromtty)
user types "run" after having attached. */
static void
-gdbsim_create_inferior (exec_file, args, env)
- char *exec_file;
- char *args;
- char **env;
+gdbsim_create_inferior (char *exec_file, char *args, char **env)
{
int len;
char *arg_buf, **argv;
@@ -461,9 +444,7 @@ gdbsim_create_inferior (exec_file, args, env)
/* Called when selecting the simulator. EG: (gdb) target sim name. */
static void
-gdbsim_open (args, from_tty)
- char *args;
- int from_tty;
+gdbsim_open (char *args, int from_tty)
{
int len;
char *arg_buf;
@@ -544,8 +525,7 @@ gdbsim_open (args, from_tty)
/* Close out all files and local state before this target loses control. */
static void
-gdbsim_close (quitting)
- int quitting;
+gdbsim_close (int quitting)
{
if (sr_get_debug ())
printf_filtered ("gdbsim_close: quitting %d\n", quitting);
@@ -572,9 +552,7 @@ gdbsim_close (quitting)
Use this when you want to detach and do something else with your gdb. */
static void
-gdbsim_detach (args, from_tty)
- char *args;
- int from_tty;
+gdbsim_detach (char *args, int from_tty)
{
if (sr_get_debug ())
printf_filtered ("gdbsim_detach: args \"%s\"\n", args);
@@ -592,9 +570,7 @@ static enum target_signal resume_siggnal;
static int resume_step;
static void
-gdbsim_resume (pid, step, siggnal)
- int pid, step;
- enum target_signal siggnal;
+gdbsim_resume (int pid, int step, enum target_signal siggnal)
{
if (inferior_pid != 42)
error ("The program is not being run.");
@@ -616,7 +592,7 @@ gdbsim_resume (pid, step, siggnal)
For simulators that do not support this operation, just abort */
static void
-gdbsim_stop ()
+gdbsim_stop (void)
{
if (!sim_stop (gdbsim_desc))
{
@@ -628,8 +604,7 @@ gdbsim_stop ()
Taken from gdb/util.c - should be in a library */
static int
-gdb_os_poll_quit (p)
- host_callback *p;
+gdb_os_poll_quit (host_callback *p)
{
if (ui_loop_hook != NULL)
ui_loop_hook (0);
@@ -652,16 +627,13 @@ gdb_os_poll_quit (p)
just as `wait' would. */
static void
-gdbsim_cntrl_c (signo)
- int signo;
+gdbsim_cntrl_c (int signo)
{
gdbsim_stop ();
}
static int
-gdbsim_wait (pid, status)
- int pid;
- struct target_waitstatus *status;
+gdbsim_wait (int pid, struct target_waitstatus *status)
{
static RETSIGTYPE (*prev_sigint) ();
int sigrc = 0;
@@ -733,7 +705,7 @@ gdbsim_wait (pid, status)
debugged. */
static void
-gdbsim_prepare_to_store ()
+gdbsim_prepare_to_store (void)
{
/* Do nothing, since we can store individual regs */
}
@@ -774,8 +746,7 @@ gdbsim_xfer_inferior_memory (memaddr, myaddr, len, write, target)
}
static void
-gdbsim_files_info (target)
- struct target_ops *target;
+gdbsim_files_info (struct target_ops *target)
{
char *file = "nothing";
@@ -796,7 +767,7 @@ gdbsim_files_info (target)
/* Clear the simulator's notion of what the break points are. */
static void
-gdbsim_mourn_inferior ()
+gdbsim_mourn_inferior (void)
{
if (sr_get_debug ())
printf_filtered ("gdbsim_mourn_inferior:\n");
@@ -806,9 +777,7 @@ gdbsim_mourn_inferior ()
}
static int
-gdbsim_insert_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+gdbsim_insert_breakpoint (CORE_ADDR addr, char *contents_cache)
{
#ifdef SIM_HAS_BREAKPOINTS
SIM_RC retcode;
@@ -830,9 +799,7 @@ gdbsim_insert_breakpoint (addr, contents_cache)
}
static int
-gdbsim_remove_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+gdbsim_remove_breakpoint (CORE_ADDR addr, char *contents_cache)
{
#ifdef SIM_HAS_BREAKPOINTS
SIM_RC retcode;
@@ -858,9 +825,7 @@ gdbsim_remove_breakpoint (addr, contents_cache)
simulator must do any command interpretation work. */
void
-simulator_command (args, from_tty)
- char *args;
- int from_tty;
+simulator_command (char *args, int from_tty)
{
if (gdbsim_desc == NULL)
{
@@ -962,7 +927,7 @@ init_gdbsim_ops (void)
}
void
-_initialize_remote_sim ()
+_initialize_remote_sim (void)
{
init_gdbsim_ops ();
add_target (&gdbsim_ops);
diff --git a/gdb/remote-st.c b/gdb/remote-st.c
index e820b28..485f941 100644
--- a/gdb/remote-st.c
+++ b/gdb/remote-st.c
@@ -84,8 +84,7 @@ printf_stdebug (char *pattern,...)
stuff. */
static int
-readchar (timeout)
- int timeout;
+readchar (int timeout)
{
int c;
@@ -113,9 +112,7 @@ readchar (timeout)
non-zero, then discard non-matching input, else print it out.
Let the user break out immediately. */
static void
-expect (string, discard)
- char *string;
- int discard;
+expect (char *string, int discard)
{
char *p = string;
int c;
@@ -160,8 +157,7 @@ expect (string, discard)
necessary to prevent getting into states from which we can't
recover. */
static void
-expect_prompt (discard)
- int discard;
+expect_prompt (int discard)
{
#if defined (LOG_FILE)
/* This is a convenient place to do this. The idea is to do it often
@@ -174,8 +170,7 @@ expect_prompt (discard)
/* Get a hex digit from the remote system & return its value.
If ignore_space is nonzero, ignore spaces (not newline, tab, etc). */
static int
-get_hex_digit (ignore_space)
- int ignore_space;
+get_hex_digit (int ignore_space)
{
int ch;
while (1)
@@ -200,8 +195,7 @@ get_hex_digit (ignore_space)
/* Get a byte from stdebug and put it in *BYT. Accept any number
leading spaces. */
static void
-get_hex_byte (byt)
- char *byt;
+get_hex_byte (char *byt)
{
int val;
@@ -213,9 +207,7 @@ get_hex_byte (byt)
/* Get N 32-bit words from remote, each preceded by a space,
and put them in registers starting at REGNO. */
static void
-get_hex_regs (n, regno)
- int n;
- int regno;
+get_hex_regs (int n, int regno)
{
long val;
int i;
@@ -234,10 +226,7 @@ get_hex_regs (n, regno)
/* This is called not only when we first attach, but also when the
user types "run" after having attached. */
static void
-st2000_create_inferior (execfile, args, env)
- char *execfile;
- char *args;
- char **env;
+st2000_create_inferior (char *execfile, char *args, char **env)
{
int entry_pt;
@@ -276,9 +265,7 @@ static int baudrate = 9600;
static char dev_name[100];
static void
-st2000_open (args, from_tty)
- char *args;
- int from_tty;
+st2000_open (char *args, int from_tty)
{
int n;
char junk[100];
@@ -323,8 +310,7 @@ or target st2000 <host> <port>\n");
/* Close out all files and local state before this target loses control. */
static void
-st2000_close (quitting)
- int quitting;
+st2000_close (int quitting)
{
SERIAL_CLOSE (st2000_desc);
@@ -343,8 +329,7 @@ st2000_close (quitting)
Use this when you want to detach and do something else
with your gdb. */
static void
-st2000_detach (from_tty)
- int from_tty;
+st2000_detach (int from_tty)
{
pop_target (); /* calls st2000_close to do the real work */
if (from_tty)
@@ -354,9 +339,7 @@ st2000_detach (from_tty)
/* Tell the remote machine to resume. */
static void
-st2000_resume (pid, step, sig)
- int pid, step;
- enum target_signal sig;
+st2000_resume (int pid, int step, enum target_signal sig)
{
if (step)
{
@@ -376,8 +359,7 @@ st2000_resume (pid, step, sig)
storing status in STATUS just as `wait' would. */
static int
-st2000_wait (status)
- struct target_waitstatus *status;
+st2000_wait (struct target_waitstatus *status)
{
int old_timeout = timeout;
@@ -401,8 +383,7 @@ st2000_wait (status)
STDEBUG wants. Lets take advantage of that just as long as possible! */
static char *
-get_reg_name (regno)
- int regno;
+get_reg_name (int regno)
{
static char buf[50];
const char *p;
@@ -420,7 +401,7 @@ get_reg_name (regno)
/* Read the remote registers into the block REGS. */
static void
-st2000_fetch_registers ()
+st2000_fetch_registers (void)
{
int regno;
@@ -434,8 +415,7 @@ st2000_fetch_registers ()
/* Fetch register REGNO, or all registers if REGNO is -1.
Returns errno value. */
static void
-st2000_fetch_register (regno)
- int regno;
+st2000_fetch_register (int regno)
{
if (regno == -1)
st2000_fetch_registers ();
@@ -454,7 +434,7 @@ st2000_fetch_register (regno)
/* Store the remote registers from the contents of the block REGS. */
static void
-st2000_store_registers ()
+st2000_store_registers (void)
{
int regno;
@@ -467,8 +447,7 @@ st2000_store_registers ()
/* Store register REGNO, or all if REGNO == 0.
Return errno value. */
static void
-st2000_store_register (regno)
- int regno;
+st2000_store_register (int regno)
{
if (regno == -1)
st2000_store_registers ();
@@ -488,13 +467,13 @@ st2000_store_register (regno)
debugged. */
static void
-st2000_prepare_to_store ()
+st2000_prepare_to_store (void)
{
/* Do nothing, since we can store individual regs */
}
static void
-st2000_files_info ()
+st2000_files_info (void)
{
printf ("\tAttached to %s at %d baud.\n",
dev_name, baudrate);
@@ -503,10 +482,7 @@ st2000_files_info ()
/* Copy LEN bytes of data from debugger memory at MYADDR
to inferior's memory at MEMADDR. Returns length moved. */
static int
-st2000_write_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- unsigned char *myaddr;
- int len;
+st2000_write_inferior_memory (CORE_ADDR memaddr, unsigned char *myaddr, int len)
{
int i;
@@ -521,10 +497,7 @@ st2000_write_inferior_memory (memaddr, myaddr, len)
/* Read LEN bytes from inferior memory at MEMADDR. Put the result
at debugger address MYADDR. Returns length moved. */
static int
-st2000_read_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+st2000_read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
int i;
@@ -591,9 +564,7 @@ st2000_xfer_inferior_memory (memaddr, myaddr, len, write, target)
}
static void
-st2000_kill (args, from_tty)
- char *args;
- int from_tty;
+st2000_kill (char *args, int from_tty)
{
return; /* Ignore attempts to kill target system */
}
@@ -605,7 +576,7 @@ st2000_kill (args, from_tty)
instructions. */
static void
-st2000_mourn_inferior ()
+st2000_mourn_inferior (void)
{
remove_breakpoints ();
unpush_target (&st2000_ops);
@@ -618,9 +589,7 @@ static CORE_ADDR breakaddr[MAX_STDEBUG_BREAKPOINTS] =
{0};
static int
-st2000_insert_breakpoint (addr, shadow)
- CORE_ADDR addr;
- char *shadow;
+st2000_insert_breakpoint (CORE_ADDR addr, char *shadow)
{
int i;
CORE_ADDR bp_addr = addr;
@@ -644,9 +613,7 @@ st2000_insert_breakpoint (addr, shadow)
}
static int
-st2000_remove_breakpoint (addr, shadow)
- CORE_ADDR addr;
- char *shadow;
+st2000_remove_breakpoint (CORE_ADDR addr, char *shadow)
{
int i;
@@ -669,9 +636,7 @@ st2000_remove_breakpoint (addr, shadow)
on the users terminal until the prompt is seen. */
static void
-st2000_command (args, fromtty)
- char *args;
- int fromtty;
+st2000_command (char *args, int fromtty)
{
if (!st2000_desc)
error ("st2000 target not open.");
@@ -689,7 +654,7 @@ st2000_command (args, fromtty)
/*static struct ttystate ttystate; */
static void
-cleanup_tty ()
+cleanup_tty (void)
{
printf ("\r\n[Exiting connect mode]\r\n");
/* SERIAL_RESTORE(0, &ttystate); */
@@ -699,9 +664,7 @@ cleanup_tty ()
/* This all should now be in serial.c */
static void
-connect_command (args, fromtty)
- char *args;
- int fromtty;
+connect_command (char *args, int fromtty)
{
fd_set readfds;
int numfds;
@@ -855,7 +818,7 @@ the speed to connect at in bits per second.";
};
void
-_initialize_remote_st2000 ()
+_initialize_remote_st2000 (void)
{
init_st2000_ops ();
add_target (&st2000_ops);
diff --git a/gdb/remote-udi.c b/gdb/remote-udi.c
index e0e1f70..7127ca6 100644
--- a/gdb/remote-udi.c
+++ b/gdb/remote-udi.c
@@ -124,10 +124,7 @@ static char *prog_name = NULL;
user types "run" after having attached. */
static void
-udi_create_inferior (execfile, args, env)
- char *execfile;
- char *args;
- char **env;
+udi_create_inferior (char *execfile, char *args, char **env)
{
char *args1;
@@ -187,7 +184,7 @@ udi_create_inferior (execfile, args, env)
}
static void
-udi_mourn ()
+udi_mourn (void)
{
#if 0
/* Requiring "target udi" each time you run is a major pain. I suspect
@@ -212,9 +209,7 @@ udi_mourn ()
/* XXX - need cleanups for udiconnect for various failures!!! */
static void
-udi_open (name, from_tty)
- char *name;
- int from_tty;
+udi_open (char *name, int from_tty)
{
unsigned int prl;
char *p;
@@ -304,8 +299,8 @@ udi_open (name, from_tty)
Use this when you want to detach and do something else
with your gdb. */
static void
-udi_close (quitting) /*FIXME: how is quitting used */
- int quitting;
+udi_close ( /*FIXME: how is quitting used */
+ int quitting)
{
if (udi_session_id < 0)
return;
@@ -333,9 +328,7 @@ udi_close (quitting) /*FIXME: how is quitting used */
* Upon exiting the process's execution is stopped.
*/
static void
-udi_attach (args, from_tty)
- char *args;
- int from_tty;
+udi_attach (char *args, int from_tty)
{
UDIResource From;
UDIInt32 PC_adds;
@@ -366,9 +359,7 @@ udi_attach (args, from_tty)
Use this when you want to detach and do something else
with your gdb. Leave remote process running (with no breakpoints set). */
static void
-udi_detach (args, from_tty)
- char *args;
- int from_tty;
+udi_detach (char *args, int from_tty)
{
remove_breakpoints (); /* Just in case there were any left in */
@@ -392,9 +383,7 @@ udi_detach (args, from_tty)
** Tell the remote machine to resume. */
static void
-udi_resume (pid, step, sig)
- int pid, step;
- enum target_signal sig;
+udi_resume (int pid, int step, enum target_signal sig)
{
UDIError tip_error;
UDIUInt32 Steps = 1;
@@ -420,9 +409,7 @@ udi_resume (pid, step, sig)
storing status in STATUS just as `wait' would. */
static int
-udi_wait (pid, status)
- int pid;
- struct target_waitstatus *status;
+udi_wait (int pid, struct target_waitstatus *status)
{
UDIInt32 MaxTime;
UDIPId PId;
@@ -602,7 +589,7 @@ udi_wait (pid, status)
#if 0
/* Handy for debugging */
-udi_pc ()
+udi_pc (void)
{
UDIResource From;
UDIUInt32 *To;
@@ -654,8 +641,7 @@ udi_pc ()
* If regno==-1 then read all the registers.
*/
static void
-udi_fetch_registers (regno)
- int regno;
+udi_fetch_registers (int regno)
{
UDIResource From;
UDIUInt32 *To;
@@ -781,8 +767,7 @@ udi_fetch_registers (regno)
*/
static void
-udi_store_registers (regno)
- int regno;
+udi_store_registers (int regno)
{
UDIUInt32 *From;
UDIResource To;
@@ -907,15 +892,14 @@ udi_store_registers (regno)
debugged. */
static void
-udi_prepare_to_store ()
+udi_prepare_to_store (void)
{
/* Do nothing, since we can store individual regs */
}
/********************************************************** TRANSLATE_ADDR */
static CORE_ADDR
-translate_addr (addr)
- CORE_ADDR addr;
+translate_addr (CORE_ADDR addr)
{
#if defined(ULTRA3) && defined(KERNEL_DEBUGGING)
/* Check for a virtual address in the kernel */
@@ -938,11 +922,7 @@ translate_addr (addr)
/************************************************* UDI_XFER_INFERIOR_MEMORY */
/* FIXME! Merge these two. */
static int
-udi_xfer_inferior_memory (memaddr, myaddr, len, write)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
- int write;
+udi_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len, int write)
{
memaddr = translate_addr (memaddr);
@@ -955,7 +935,7 @@ udi_xfer_inferior_memory (memaddr, myaddr, len, write)
/********************************************************** UDI_FILES_INFO */
static void
-udi_files_info ()
+udi_files_info (void)
{
printf_unfiltered ("\tAttached to UDI socket to %s", udi_config_id);
if (prog_name != NULL)
@@ -965,9 +945,7 @@ udi_files_info ()
/**************************************************** UDI_INSERT_BREAKPOINT */
static int
-udi_insert_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+udi_insert_breakpoint (CORE_ADDR addr, char *contents_cache)
{
int cnt;
UDIError err;
@@ -998,9 +976,7 @@ udi_insert_breakpoint (addr, contents_cache)
/**************************************************** UDI_REMOVE_BREAKPOINT */
static int
-udi_remove_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+udi_remove_breakpoint (CORE_ADDR addr, char *contents_cache)
{
int cnt;
UDIError err;
@@ -1022,9 +998,7 @@ udi_remove_breakpoint (addr, contents_cache)
}
static void
-udi_kill (arg, from_tty)
- char *arg;
- int from_tty;
+udi_kill (char *arg, int from_tty)
{
#if 0
@@ -1076,9 +1050,7 @@ udi_kill (arg, from_tty)
*/
static void
-download (load_arg_string, from_tty)
- char *load_arg_string;
- int from_tty;
+download (char *load_arg_string, int from_tty)
{
#define DEFAULT_MEM_STACK_SIZE 0x6000
#define DEFAULT_REG_STACK_SIZE 0x2000
@@ -1307,9 +1279,7 @@ download (load_arg_string, from_tty)
/* Function to download an image into the remote target. */
static void
-udi_load (args, from_tty)
- char *args;
- int from_tty;
+udi_load (char *args, int from_tty)
{
download (args, from_tty);
@@ -1327,10 +1297,7 @@ udi_load (args, from_tty)
** Copy LEN bytes of data from debugger memory at MYADDR
to inferior's memory at MEMADDR. Returns number of bytes written. */
static int
-udi_write_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+udi_write_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
int nwritten = 0;
UDIUInt32 *From;
@@ -1367,10 +1334,7 @@ udi_write_inferior_memory (memaddr, myaddr, len)
** Read LEN bytes from inferior memory at MEMADDR. Put the result
at debugger address MYADDR. Returns number of bytes read. */
static int
-udi_read_inferior_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+udi_read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
int nread = 0;
UDIResource From;
@@ -1406,8 +1370,7 @@ udi_read_inferior_memory (memaddr, myaddr, len)
/********************************************************************* WARNING
*/
-udi_warning (num)
- int num;
+udi_warning (int num)
{
error ("ERROR while loading program into remote TIP: $d\n", num);
}
@@ -1418,8 +1381,7 @@ udi_warning (num)
* Returns 0/-1 on success/failure.
*/
static void
-fetch_register (regno)
- int regno;
+fetch_register (int regno)
{
UDIResource From;
UDIUInt32 To;
@@ -1483,8 +1445,7 @@ fetch_register (regno)
* Returns 0/-1 on success/failure.
*/
static int
-store_register (regno)
- int regno;
+store_register (int regno)
{
int result;
UDIUInt32 From;
@@ -1566,8 +1527,7 @@ store_register (regno)
* Convert a gdb special register number to a 29000 special register number.
*/
static int
-regnum_to_srnum (regno)
- int regno;
+regnum_to_srnum (int regno)
{
switch (regno)
{
@@ -1636,8 +1596,7 @@ regnum_to_srnum (regno)
* FIXME: Doesn't know anything about I_CACHE/D_CACHE.
*/
static CPUSpace
-udi_memory_space (addr)
- CORE_ADDR addr;
+udi_memory_space (CORE_ADDR addr)
{
UDIUInt32 tstart = IMemStart;
UDIUInt32 tend = tstart + IMemSize;
@@ -1666,19 +1625,18 @@ udi_memory_space (addr)
*/
void
-convert16 ()
+convert16 (void)
{;
}
void
-convert32 ()
+convert32 (void)
{;
}
struct ui_file *EchoFile = 0; /* used for debugging */
int QuietMode = 0; /* used for debugging */
#ifdef NO_HIF_SUPPORT
-service_HIF (msg)
- union msg_t *msg;
+service_HIF (union msg_t *msg)
{
return (0); /* Emulate a failure */
}
@@ -1755,7 +1713,7 @@ To connect using a local connection to the \"tip.exe\" program which is\n\
};
void
-_initialize_remote_udi ()
+_initialize_remote_udi (void)
{
init_udi_ops ();
add_target (&udi_ops);
diff --git a/gdb/remote-utils.c b/gdb/remote-utils.c
index de0cbeb..795ae39 100644
--- a/gdb/remote-utils.c
+++ b/gdb/remote-utils.c
@@ -78,9 +78,7 @@ static void usage (char *, char *);
static void sr_com (char *, int);
static void
-usage (proto, junk)
- char *proto;
- char *junk;
+usage (char *proto, char *junk)
{
if (junk != NULL)
fprintf_unfiltered (gdb_stderr, "Unrecognized arguments: `%s'.\n", junk);
@@ -103,9 +101,7 @@ where DEVICE is the name of a device or HOST:PORT", proto, proto);
}
void
-sr_scan_args (proto, args)
- char *proto;
- char *args;
+sr_scan_args (char *proto, char *args)
{
int n;
char *p, *q;
@@ -149,17 +145,14 @@ sr_scan_args (proto, args)
}
void
-gr_generic_checkin ()
+gr_generic_checkin (void)
{
sr_write_cr ("");
gr_expect_prompt ();
}
void
-gr_open (args, from_tty, gr)
- char *args;
- int from_tty;
- struct gr_settings *gr;
+gr_open (char *args, int from_tty, struct gr_settings *gr)
{
target_preopen (from_tty);
sr_scan_args (gr->ops->to_shortname, args);
@@ -225,7 +218,7 @@ gr_open (args, from_tty, gr)
and doing all the fancy timeout stuff. */
int
-sr_readchar ()
+sr_readchar (void)
{
int buf;
@@ -241,7 +234,7 @@ sr_readchar ()
}
int
-sr_pollchar ()
+sr_pollchar (void)
{
int buf;
@@ -262,8 +255,7 @@ sr_pollchar ()
/* Keep discarding input from the remote system, until STRING is found.
Let the user break out immediately. */
void
-sr_expect (string)
- char *string;
+sr_expect (char *string)
{
char *p = string;
@@ -285,9 +277,7 @@ sr_expect (string)
}
void
-sr_write (a, l)
- char *a;
- int l;
+sr_write (char *a, int l)
{
int i;
@@ -302,8 +292,7 @@ sr_write (a, l)
}
void
-sr_write_cr (s)
- char *s;
+sr_write_cr (char *s)
{
sr_write (s, strlen (s));
sr_write ("\r", 1);
@@ -311,9 +300,7 @@ sr_write_cr (s)
}
int
-sr_timed_read (buf, n)
- char *buf;
- int n;
+sr_timed_read (char *buf, int n)
{
int i;
char c;
@@ -336,8 +323,7 @@ sr_timed_read (buf, n)
ignore_space is nonzero, ignore spaces (not newline, tab, etc). */
int
-sr_get_hex_digit (ignore_space)
- int ignore_space;
+sr_get_hex_digit (int ignore_space)
{
int ch;
@@ -361,8 +347,7 @@ sr_get_hex_digit (ignore_space)
/* Get a byte from the remote and put it in *BYT. Accept any number
leading spaces. */
void
-sr_get_hex_byte (byt)
- char *byt;
+sr_get_hex_byte (char *byt)
{
int val;
@@ -373,7 +358,7 @@ sr_get_hex_byte (byt)
/* Read a 32-bit hex word from the remote, preceded by a space */
long
-sr_get_hex_word ()
+sr_get_hex_word (void)
{
long val;
int j;
@@ -391,9 +376,7 @@ sr_get_hex_word ()
FIXME: Can't handle commands that take input. */
static void
-sr_com (args, fromtty)
- char *args;
- int fromtty;
+sr_com (char *args, int fromtty)
{
sr_check_open ();
@@ -409,8 +392,7 @@ sr_com (args, fromtty)
}
void
-gr_close (quitting)
- int quitting;
+gr_close (int quitting)
{
gr_clear_all_breakpoints ();
@@ -432,9 +414,7 @@ gr_close (quitting)
with your gdb. */
void
-gr_detach (args, from_tty)
- char *args;
- int from_tty;
+gr_detach (char *args, int from_tty)
{
if (args)
error ("Argument given to \"detach\" when remotely debugging.");
@@ -450,8 +430,7 @@ gr_detach (args, from_tty)
}
void
-gr_files_info (ops)
- struct target_ops *ops;
+gr_files_info (struct target_ops *ops)
{
#ifdef __GO32__
printf_filtered ("\tAttached to DOS asynctsr\n");
@@ -471,7 +450,7 @@ gr_files_info (ops)
}
void
-gr_mourn ()
+gr_mourn (void)
{
gr_clear_all_breakpoints ();
unpush_target (gr_get_ops ());
@@ -479,7 +458,7 @@ gr_mourn ()
}
void
-gr_kill ()
+gr_kill (void)
{
return;
}
@@ -487,10 +466,7 @@ gr_kill ()
/* This is called not only when we first attach, but also when the
user types "run" after having attached. */
void
-gr_create_inferior (execfile, args, env)
- char *execfile;
- char *args;
- char **env;
+gr_create_inferior (char *execfile, char *args, char **env)
{
int entry_pt;
@@ -613,13 +589,13 @@ gr_multi_scan (list, passthrough)
debugged. */
void
-gr_prepare_to_store ()
+gr_prepare_to_store (void)
{
/* Do nothing, since we assume we can store individual regs */
}
void
-_initialize_sr_support ()
+_initialize_sr_support (void)
{
/* FIXME-now: if target is open... */
add_show_from_set (add_set_cmd ("remotedevice", no_class,
diff --git a/gdb/remote-vx.c b/gdb/remote-vx.c
index c471373..efd43d7 100644
--- a/gdb/remote-vx.c
+++ b/gdb/remote-vx.c
@@ -111,11 +111,8 @@ static char *find_white_space ();
Returns 0 for success, -1 for failure. */
static int
-net_load (filename, pTextAddr, pDataAddr, pBssAddr)
- char *filename;
- CORE_ADDR *pTextAddr;
- CORE_ADDR *pDataAddr;
- CORE_ADDR *pBssAddr;
+net_load (char *filename, CORE_ADDR *pTextAddr, CORE_ADDR *pDataAddr,
+ CORE_ADDR *pBssAddr)
{
enum clnt_stat status;
struct ldfile ldstruct;
@@ -154,9 +151,7 @@ net_load (filename, pTextAddr, pDataAddr, pBssAddr)
/* returns 0 if successful, errno if RPC failed or VxWorks complains. */
static int
-net_break (addr, procnum)
- int addr;
- u_long procnum;
+net_break (int addr, u_long procnum)
{
enum clnt_stat status;
int break_status;
@@ -183,8 +178,7 @@ net_break (addr, procnum)
/* returns 0 if successful, errno otherwise */
static int
-vx_insert_breakpoint (addr)
- int addr;
+vx_insert_breakpoint (int addr)
{
return net_break (addr, VX_BREAK_ADD);
}
@@ -192,8 +186,7 @@ vx_insert_breakpoint (addr)
/* returns 0 if successful, errno otherwise */
static int
-vx_remove_breakpoint (addr)
- int addr;
+vx_remove_breakpoint (int addr)
{
return net_break (addr, VX_BREAK_DELETE);
}
@@ -206,10 +199,7 @@ vx_remove_breakpoint (addr)
On VxWorks, we ignore exec_file. */
static void
-vx_create_inferior (exec_file, args, env)
- char *exec_file;
- char *args;
- char **env;
+vx_create_inferior (char *exec_file, char *args, char **env)
{
enum clnt_stat status;
arg_array passArgs;
@@ -262,9 +252,7 @@ vx_create_inferior (exec_file, args, env)
argument string ARGSTRING. */
static void
-parse_args (arg_string, arg_struct)
- register char *arg_string;
- arg_array *arg_struct;
+parse_args (register char *arg_string, arg_array *arg_struct)
{
register int arg_count = 0; /* number of arguments */
register int arg_index = 0;
@@ -304,8 +292,7 @@ parse_args (arg_string, arg_struct)
to the first non-white character. */
static char *
-skip_white_space (p)
- register char *p;
+skip_white_space (register char *p)
{
while (*p == ' ' || *p == '\t')
p++;
@@ -317,8 +304,7 @@ skip_white_space (p)
if no whitespace is found. */
static char *
-find_white_space (p)
- register char *p;
+find_white_space (register char *p)
{
register int c;
@@ -344,8 +330,7 @@ find_white_space (p)
Returns -1 if remote wait failed, task status otherwise. */
static int
-net_wait (pEvent)
- RDB_EVENT *pEvent;
+net_wait (RDB_EVENT *pEvent)
{
int pid;
enum clnt_stat status;
@@ -369,7 +354,7 @@ net_wait (pEvent)
Returns -1 if suspend fails on target system, 0 otherwise. */
static int
-net_quit ()
+net_quit (void)
{
int pid;
int quit_status;
@@ -391,10 +376,7 @@ net_quit ()
/* Read a register or registers from the remote system. */
void
-net_read_registers (reg_buf, len, procnum)
- char *reg_buf;
- int len;
- u_long procnum;
+net_read_registers (char *reg_buf, int len, u_long procnum)
{
int status;
Rptrace ptrace_in;
@@ -439,10 +421,7 @@ net_read_registers (reg_buf, len, procnum)
a utility routine used by vx_write_register (). */
void
-net_write_registers (reg_buf, len, procnum)
- char *reg_buf;
- int len;
- u_long procnum;
+net_write_registers (char *reg_buf, int len, u_long procnum)
{
int status;
Rptrace ptrace_in;
@@ -481,7 +460,7 @@ net_write_registers (reg_buf, len, procnum)
read out their current values now. */
static void
-vx_prepare_to_store ()
+vx_prepare_to_store (void)
{
/* Fetch all registers, if any of them are not yet fetched. */
read_register_bytes (0, NULL, REGISTER_BYTES);
@@ -576,7 +555,7 @@ vx_xfer_memory (memaddr, myaddr, len, write, target)
}
static void
-vx_files_info ()
+vx_files_info (void)
{
printf_unfiltered ("\tAttached to host `%s'", vx_host);
printf_unfiltered (", which has %sfloating point", target_has_fp ? "" : "no ");
@@ -584,7 +563,7 @@ vx_files_info ()
}
static void
-vx_run_files_info ()
+vx_run_files_info (void)
{
printf_unfiltered ("\tRunning %s VxWorks process %s",
vx_running ? "child" : "attached",
@@ -595,10 +574,7 @@ vx_run_files_info ()
}
static void
-vx_resume (pid, step, siggnal)
- int pid;
- int step;
- enum target_signal siggnal;
+vx_resume (int pid, int step, enum target_signal siggnal)
{
int status;
Rptrace ptrace_in;
@@ -644,7 +620,7 @@ vx_resume (pid, step, siggnal)
}
static void
-vx_mourn_inferior ()
+vx_mourn_inferior (void)
{
pop_target (); /* Pop back to no-child state */
generic_mourn_inferior ();
@@ -663,10 +639,7 @@ struct find_sect_args
static void find_sect (bfd *, asection *, void *);
static void
-find_sect (abfd, sect, obj)
- bfd *abfd;
- asection *sect;
- PTR obj;
+find_sect (bfd *abfd, asection *sect, PTR obj)
{
struct find_sect_args *args = (struct find_sect_args *) obj;
@@ -687,12 +660,8 @@ find_sect (abfd, sect, obj)
}
static void
-vx_add_symbols (name, from_tty, text_addr, data_addr, bss_addr)
- char *name;
- int from_tty;
- CORE_ADDR text_addr;
- CORE_ADDR data_addr;
- CORE_ADDR bss_addr;
+vx_add_symbols (char *name, int from_tty, CORE_ADDR text_addr,
+ CORE_ADDR data_addr, CORE_ADDR bss_addr)
{
struct section_offsets *offs;
struct objfile *objfile;
@@ -725,9 +694,7 @@ vx_add_symbols (name, from_tty, text_addr, data_addr, bss_addr)
/* This function allows the addition of incrementally linked object files. */
static void
-vx_load_command (arg_string, from_tty)
- char *arg_string;
- int from_tty;
+vx_load_command (char *arg_string, int from_tty)
{
CORE_ADDR text_addr;
CORE_ADDR data_addr;
@@ -771,7 +738,7 @@ Kill the target task? "))
Returns -1 if remote single-step operation fails, else 0. */
static int
-net_step ()
+net_step (void)
{
enum clnt_stat status;
int step_status;
@@ -803,10 +770,8 @@ net_step ()
Returns nonzero (-1) if RPC status to VxWorks is bad, 0 otherwise. */
static int
-net_ptrace_clnt_call (request, pPtraceIn, pPtraceOut)
- enum ptracereq request;
- Rptrace *pPtraceIn;
- Ptrace_return *pPtraceOut;
+net_ptrace_clnt_call (enum ptracereq request, Rptrace *pPtraceIn,
+ Ptrace_return *pPtraceOut)
{
enum clnt_stat status;
@@ -826,8 +791,7 @@ net_ptrace_clnt_call (request, pPtraceIn, pPtraceOut)
Returns -1 if rpc failed, 0 otherwise. */
static int
-net_get_boot_file (pBootFile)
- char **pBootFile;
+net_get_boot_file (char **pBootFile)
{
enum clnt_stat status;
@@ -861,9 +825,8 @@ struct complaint cant_contact_target =
{"Lost contact with VxWorks target", 0, 0};
static int
-vx_lookup_symbol (name, pAddr)
- char *name; /* symbol name */
- CORE_ADDR *pAddr;
+vx_lookup_symbol (char *name, /* symbol name */
+ CORE_ADDR *pAddr)
{
enum clnt_stat status;
SYMBOL_ADDR symbolAddr;
@@ -888,7 +851,7 @@ vx_lookup_symbol (name, pAddr)
Calls error() if rpc fails. */
static int
-net_check_for_fp ()
+net_check_for_fp (void)
{
enum clnt_stat status;
bool_t fp = 0; /* true if fp processor is present on target board */
@@ -904,8 +867,7 @@ net_check_for_fp ()
Calls error () if unable to establish connection. */
static void
-net_connect (host)
- char *host;
+net_connect (char *host)
{
struct sockaddr_in destAddr;
struct hostent *destHost;
@@ -955,8 +917,7 @@ net_connect (host)
*/
static void
-sleep_ms (ms)
- long ms;
+sleep_ms (long ms)
{
struct timeval select_timeout;
int status;
@@ -972,9 +933,7 @@ sleep_ms (ms)
}
static int
-vx_wait (pid_to_wait_for, status)
- int pid_to_wait_for;
- struct target_waitstatus *status;
+vx_wait (int pid_to_wait_for, struct target_waitstatus *status)
{
register int pid;
RDB_EVENT rdbEvent;
@@ -1081,16 +1040,14 @@ vx_wait (pid_to_wait_for, status)
}
static int
-symbol_stub (arg)
- char *arg;
+symbol_stub (char *arg)
{
symbol_file_command (arg, 0);
return 1;
}
static int
-add_symbol_stub (arg)
- char *arg;
+add_symbol_stub (char *arg)
{
struct ldfile *pLoadFile = (struct ldfile *) arg;
@@ -1107,9 +1064,7 @@ add_symbol_stub (arg)
debugging. */
static void
-vx_open (args, from_tty)
- char *args;
- int from_tty;
+vx_open (char *args, int from_tty)
{
extern int close ();
char *bootFile;
@@ -1220,9 +1175,7 @@ vx_open (args, from_tty)
This stops it cold in its tracks and allows us to start tracing it. */
static void
-vx_attach (args, from_tty)
- char *args;
- int from_tty;
+vx_attach (char *args, int from_tty)
{
unsigned long pid;
char *cptr = 0;
@@ -1274,9 +1227,7 @@ vx_attach (args, from_tty)
started via the normal ptrace (PTRACE_TRACEME). */
static void
-vx_detach (args, from_tty)
- char *args;
- int from_tty;
+vx_detach (char *args, int from_tty)
{
Rptrace ptrace_in;
Ptrace_return ptrace_out;
@@ -1313,7 +1264,7 @@ vx_detach (args, from_tty)
/* vx_kill -- takes a running task and wipes it out. */
static void
-vx_kill ()
+vx_kill (void)
{
Rptrace ptrace_in;
Ptrace_return ptrace_out;
@@ -1343,8 +1294,7 @@ vx_kill ()
/* Clean up from the VxWorks process target as it goes away. */
static void
-vx_proc_close (quitting)
- int quitting;
+vx_proc_close (int quitting)
{
inferior_pid = 0; /* No longer have a process. */
if (vx_running)
@@ -1356,12 +1306,8 @@ vx_proc_close (quitting)
Returns RPC status. */
static enum clnt_stat
-net_clnt_call (procNum, inProc, in, outProc, out)
- enum ptracereq procNum;
- xdrproc_t inProc;
- char *in;
- xdrproc_t outProc;
- char *out;
+net_clnt_call (enum ptracereq procNum, xdrproc_t inProc, char *in,
+ xdrproc_t outProc, char *out)
{
enum clnt_stat status;
@@ -1376,8 +1322,7 @@ net_clnt_call (procNum, inProc, in, outProc, out)
/* Clean up before losing control. */
static void
-vx_close (quitting)
- int quitting;
+vx_close (int quitting)
{
if (pClient)
clnt_destroy (pClient); /* The net connection */
@@ -1391,15 +1336,13 @@ vx_close (quitting)
/* A vxprocess target should be started via "run" not "target". */
/*ARGSUSED */
static void
-vx_proc_open (name, from_tty)
- char *name;
- int from_tty;
+vx_proc_open (char *name, int from_tty)
{
error ("Use the \"run\" command to start a VxWorks process.");
}
static void
-init_vx_ops ()
+init_vx_ops (void)
{
vx_ops.to_shortname = "vxworks";
vx_ops.to_longname = "VxWorks target memory via RPC over TCP/IP";
@@ -1420,7 +1363,7 @@ Specify the name of the machine to connect to.";
};
static void
-init_vx_run_ops ()
+init_vx_run_ops (void)
{
vx_run_ops.to_shortname = "vxprocess";
vx_run_ops.to_longname = "VxWorks process";
@@ -1450,7 +1393,7 @@ init_vx_run_ops ()
}
void
-_initialize_vx ()
+_initialize_vx (void)
{
init_vx_ops ();
add_target (&vx_ops);
diff --git a/gdb/remote-vx29k.c b/gdb/remote-vx29k.c
index 39cd8be..7168605 100644
--- a/gdb/remote-vx29k.c
+++ b/gdb/remote-vx29k.c
@@ -72,8 +72,7 @@ extern void net_write_registers ();
it is ignored. FIXME look at regno to improve efficiency. */
void
-vx_read_register (regno)
- int regno;
+vx_read_register (int regno)
{
char am29k_greg_packet[AM29K_GREG_PLEN];
char am29k_fpreg_packet[AM29K_FPREG_PLEN];
@@ -136,8 +135,7 @@ vx_read_register (regno)
it is ignored. FIXME look at regno to improve efficiency. */
void
-vx_write_register (regno)
- int regno;
+vx_write_register (int regno)
{
char am29k_greg_packet[AM29K_GREG_PLEN];
char am29k_fpreg_packet[AM29K_FPREG_PLEN];
diff --git a/gdb/remote-vx68.c b/gdb/remote-vx68.c
index 59c6cdd..6a72e92 100644
--- a/gdb/remote-vx68.c
+++ b/gdb/remote-vx68.c
@@ -77,8 +77,7 @@ extern void net_write_registers ();
it is ignored. FIXME look at regno to improve efficiency. */
void
-vx_read_register (regno)
- int regno;
+vx_read_register (int regno)
{
char mc68k_greg_packet[MC68K_GREG_PLEN];
char mc68k_fpreg_packet[MC68K_FPREG_PLEN];
@@ -126,8 +125,7 @@ vx_read_register (regno)
it is ignored. FIXME look at regno to improve efficiency. */
void
-vx_write_register (regno)
- int regno;
+vx_write_register (int regno)
{
char mc68k_greg_packet[MC68K_GREG_PLEN];
char mc68k_fpreg_packet[MC68K_FPREG_PLEN];
diff --git a/gdb/remote-vx960.c b/gdb/remote-vx960.c
index 70c216b..ff0b21f 100644
--- a/gdb/remote-vx960.c
+++ b/gdb/remote-vx960.c
@@ -76,8 +76,7 @@ extern void net_write_registers ();
it is ignored. FIXME look at regno to improve efficiency. */
void
-vx_read_register (regno)
- int regno;
+vx_read_register (int regno)
{
char i960_greg_packet[I960_GREG_PLEN];
char i960_fpreg_packet[I960_FPREG_PLEN];
@@ -126,8 +125,7 @@ vx_read_register (regno)
it is ignored. FIXME look at regno to improve efficiency. */
void
-vx_write_register (regno)
- int regno;
+vx_write_register (int regno)
{
char i960_greg_packet[I960_GREG_PLEN];
char i960_fpreg_packet[I960_FPREG_PLEN];
diff --git a/gdb/remote-vxmips.c b/gdb/remote-vxmips.c
index a98ac13..b7da27a 100644
--- a/gdb/remote-vxmips.c
+++ b/gdb/remote-vxmips.c
@@ -67,8 +67,7 @@ extern void net_write_registers ();
it is ignored. FIXME look at regno to improve efficiency. */
void
-vx_read_register (regno)
- int regno;
+vx_read_register (int regno)
{
char mips_greg_packet[MIPS_GREG_PLEN];
char mips_fpreg_packet[MIPS_FPREG_PLEN];
@@ -157,8 +156,7 @@ vx_read_register (regno)
REGNO is the register to store, or -1 for all; currently,
it is ignored. FIXME look at regno to improve efficiency. */
-vx_write_register (regno)
- int regno;
+vx_write_register (int regno)
{
char mips_greg_packet[MIPS_GREG_PLEN];
char mips_fpreg_packet[MIPS_FPREG_PLEN];
diff --git a/gdb/remote-vxsparc.c b/gdb/remote-vxsparc.c
index 756fd1f..aeb241c 100644
--- a/gdb/remote-vxsparc.c
+++ b/gdb/remote-vxsparc.c
@@ -76,8 +76,7 @@ extern void net_write_registers ();
it is ignored. FIXME look at regno to improve efficiency. */
void
-vx_read_register (regno)
- int regno;
+vx_read_register (int regno)
{
char sparc_greg_packet[SPARC_GREG_PLEN];
char sparc_fpreg_packet[SPARC_FPREG_PLEN];
@@ -138,8 +137,7 @@ vx_read_register (regno)
it is ignored. FIXME look at regno to improve efficiency. */
void
-vx_write_register (regno)
- int regno;
+vx_write_register (int regno)
{
char sparc_greg_packet[SPARC_GREG_PLEN];
char sparc_fpreg_packet[SPARC_FPREG_PLEN];
diff --git a/gdb/remote.c b/gdb/remote.c
index d43b81d..fff0ff7 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -545,9 +545,7 @@ static const char *packet_support_enums[] =
};
static void
-set_packet_config_cmd (config, c)
- struct packet_config *config;
- struct cmd_list_element *c;
+set_packet_config_cmd (struct packet_config *config, struct cmd_list_element *c)
{
if (config->state == packet_enable)
{
@@ -569,8 +567,7 @@ set_packet_config_cmd (config, c)
}
static void
-show_packet_config_cmd (config)
- struct packet_config *config;
+show_packet_config_cmd (struct packet_config *config)
{
char *support = "internal-error";
switch (config->support)
@@ -628,8 +625,7 @@ add_packet_config_cmd (config, name, title, set_func, show_func,
}
static void
-init_packet_config (config)
- struct packet_config *config;
+init_packet_config (struct packet_config *config)
{
switch (config->detect)
{
@@ -647,18 +643,14 @@ init_packet_config (config)
static struct packet_config remote_protocol_P;
static void
-set_remote_protocol_P_packet_cmd (args, from_tty, c)
- char *args;
- int from_tty;
- struct cmd_list_element *c;
+set_remote_protocol_P_packet_cmd (char *args, int from_tty,
+ struct cmd_list_element *c)
{
set_packet_config_cmd (&remote_protocol_P, c);
}
static void
-show_remote_protocol_P_packet_cmd (args, from_tty)
- char *args;
- int from_tty;
+show_remote_protocol_P_packet_cmd (char *args, int from_tty)
{
show_packet_config_cmd (&remote_protocol_P);
}
@@ -668,18 +660,14 @@ show_remote_protocol_P_packet_cmd (args, from_tty)
static struct packet_config remote_protocol_Z;
static void
-set_remote_protocol_Z_packet_cmd (args, from_tty, c)
- char *args;
- int from_tty;
- struct cmd_list_element *c;
+set_remote_protocol_Z_packet_cmd (char *args, int from_tty,
+ struct cmd_list_element *c)
{
set_packet_config_cmd (&remote_protocol_Z, c);
}
static void
-show_remote_protocol_Z_packet_cmd (args, from_tty)
- char *args;
- int from_tty;
+show_remote_protocol_Z_packet_cmd (char *args, int from_tty)
{
show_packet_config_cmd (&remote_protocol_Z);
}
@@ -747,8 +735,7 @@ static int continue_thread;
*/
static void
-record_currthread (currthread)
- int currthread;
+record_currthread (int currthread)
{
general_thread = currthread;
@@ -770,9 +757,7 @@ record_currthread (currthread)
#define MAGIC_NULL_PID 42000
static void
-set_thread (th, gen)
- int th;
- int gen;
+set_thread (int th, int gen)
{
char *buf = alloca (PBUFSIZ);
int state = gen ? general_thread : continue_thread;
@@ -802,8 +787,7 @@ set_thread (th, gen)
/* Return nonzero if the thread TH is still alive on the remote system. */
static int
-remote_thread_alive (tid)
- int tid;
+remote_thread_alive (int tid)
{
char buf[16];
@@ -932,9 +916,7 @@ static int remote_newthread_step (threadref * ref, void *context);
static const char hexchars[] = "0123456789abcdef";
static int
-ishex (ch, val)
- int ch;
- int *val;
+ishex (int ch, int *val)
{
if ((ch >= 'a') && (ch <= 'f'))
{
@@ -955,8 +937,7 @@ ishex (ch, val)
}
static int
-stubhex (ch)
- int ch;
+stubhex (int ch)
{
if (ch >= 'a' && ch <= 'f')
return ch - 'a' + 10;
@@ -968,9 +949,7 @@ stubhex (ch)
}
static int
-stub_unpack_int (buff, fieldlength)
- char *buff;
- int fieldlength;
+stub_unpack_int (char *buff, int fieldlength)
{
int nibble;
int retval = 0;
@@ -987,9 +966,8 @@ stub_unpack_int (buff, fieldlength)
}
char *
-unpack_varlen_hex (buff, result)
- char *buff; /* packet to parse */
- int *result;
+unpack_varlen_hex (char *buff, /* packet to parse */
+ int *result)
{
int nibble;
int retval = 0;
@@ -1005,27 +983,21 @@ unpack_varlen_hex (buff, result)
}
static char *
-unpack_nibble (buf, val)
- char *buf;
- int *val;
+unpack_nibble (char *buf, int *val)
{
ishex (*buf++, val);
return buf;
}
static char *
-pack_nibble (buf, nibble)
- char *buf;
- int nibble;
+pack_nibble (char *buf, int nibble)
{
*buf++ = hexchars[(nibble & 0x0f)];
return buf;
}
static char *
-pack_hex_byte (pkt, byte)
- char *pkt;
- int byte;
+pack_hex_byte (char *pkt, int byte)
{
*pkt++ = hexchars[(byte >> 4) & 0xf];
*pkt++ = hexchars[(byte & 0xf)];
@@ -1033,18 +1005,14 @@ pack_hex_byte (pkt, byte)
}
static char *
-unpack_byte (buf, value)
- char *buf;
- int *value;
+unpack_byte (char *buf, int *value)
{
*value = stub_unpack_int (buf, 2);
return buf + 2;
}
static char *
-pack_int (buf, value)
- char *buf;
- int value;
+pack_int (char *buf, int value)
{
buf = pack_hex_byte (buf, (value >> 24) & 0xff);
buf = pack_hex_byte (buf, (value >> 16) & 0xff);
@@ -1054,9 +1022,7 @@ pack_int (buf, value)
}
static char *
-unpack_int (buf, value)
- char *buf;
- int *value;
+unpack_int (char *buf, int *value)
{
*value = stub_unpack_int (buf, 8);
return buf + 8;
@@ -1066,9 +1032,7 @@ unpack_int (buf, value)
static char *pack_string (char *pkt, char *string);
static char *
-pack_string (pkt, string)
- char *pkt;
- char *string;
+pack_string (char *pkt, char *string)
{
char ch;
int len;
@@ -1089,10 +1053,7 @@ pack_string (pkt, string)
#endif /* 0 (unused) */
static char *
-unpack_string (src, dest, length)
- char *src;
- char *dest;
- int length;
+unpack_string (char *src, char *dest, int length)
{
while (length--)
*dest++ = *src++;
@@ -1101,9 +1062,7 @@ unpack_string (src, dest, length)
}
static char *
-pack_threadid (pkt, id)
- char *pkt;
- threadref *id;
+pack_threadid (char *pkt, threadref *id)
{
char *limit;
unsigned char *altid;
@@ -1117,9 +1076,7 @@ pack_threadid (pkt, id)
static char *
-unpack_threadid (inbuf, id)
- char *inbuf;
- threadref *id;
+unpack_threadid (char *inbuf, threadref *id)
{
char *altref;
char *limit = inbuf + BUF_THREAD_ID_SIZE;
@@ -1142,9 +1099,7 @@ unpack_threadid (inbuf, id)
function. */
void
-int_to_threadref (id, value)
- threadref *id;
- int value;
+int_to_threadref (threadref *id, int value)
{
unsigned char *scan;
@@ -1161,8 +1116,7 @@ int_to_threadref (id, value)
}
static int
-threadref_to_int (ref)
- threadref *ref;
+threadref_to_int (threadref *ref)
{
int i, value = 0;
unsigned char *scan;
@@ -1176,9 +1130,7 @@ threadref_to_int (ref)
}
static void
-copy_threadref (dest, src)
- threadref *dest;
- threadref *src;
+copy_threadref (threadref *dest, threadref *src)
{
int i;
unsigned char *csrc, *cdest;
@@ -1191,9 +1143,7 @@ copy_threadref (dest, src)
}
static int
-threadmatch (dest, src)
- threadref *dest;
- threadref *src;
+threadmatch (threadref *dest, threadref *src)
{
/* things are broken right now, so just assume we got a match */
#if 0
@@ -1221,10 +1171,7 @@ threadmatch (dest, src)
/* Encoding: 'Q':8,'P':8,mask:32,threadid:64 */
static char *
-pack_threadinfo_request (pkt, mode, id)
- char *pkt;
- int mode;
- threadref *id;
+pack_threadinfo_request (char *pkt, int mode, threadref *id)
{
*pkt++ = 'q'; /* Info Query */
*pkt++ = 'P'; /* process or thread info */
@@ -1247,10 +1194,8 @@ pack_threadinfo_request (pkt, mode, id)
the process */
static int
-remote_unpack_thread_info_response (pkt, expectedref, info)
- char *pkt;
- threadref *expectedref;
- struct gdb_ext_thread_info *info;
+remote_unpack_thread_info_response (char *pkt, threadref *expectedref,
+ struct gdb_ext_thread_info *info)
{
int mask, length;
unsigned int tag;
@@ -1339,10 +1284,8 @@ remote_unpack_thread_info_response (pkt, expectedref, info)
}
static int
-remote_get_threadinfo (threadid, fieldset, info)
- threadref *threadid;
- int fieldset; /* TAG mask */
- struct gdb_ext_thread_info *info;
+remote_get_threadinfo (threadref *threadid, int fieldset, /* TAG mask */
+ struct gdb_ext_thread_info *info)
{
int result;
char *threadinfo_pkt = alloca (PBUFSIZ);
@@ -1359,10 +1302,8 @@ remote_get_threadinfo (threadid, fieldset, info)
representation of a threadid. */
static int
-adapt_remote_get_threadinfo (ref, selection, info)
- gdb_threadref *ref;
- int selection;
- struct gdb_ext_thread_info *info;
+adapt_remote_get_threadinfo (gdb_threadref *ref, int selection,
+ struct gdb_ext_thread_info *info)
{
threadref lclref;
@@ -1373,11 +1314,8 @@ adapt_remote_get_threadinfo (ref, selection, info)
/* Format: i'Q':8,i"L":8,initflag:8,batchsize:16,lastthreadid:32 */
static char *
-pack_threadlist_request (pkt, startflag, threadcount, nextthread)
- char *pkt;
- int startflag;
- int threadcount;
- threadref *nextthread;
+pack_threadlist_request (char *pkt, int startflag, int threadcount,
+ threadref *nextthread)
{
*pkt++ = 'q'; /* info query packet */
*pkt++ = 'L'; /* Process LIST or threadLIST request */
@@ -1391,13 +1329,9 @@ pack_threadlist_request (pkt, startflag, threadcount, nextthread)
/* Encoding: 'q':8,'M':8,count:16,done:8,argthreadid:64,(threadid:64)* */
static int
-parse_threadlist_response (pkt, result_limit, original_echo, resultlist,
- doneflag)
- char *pkt;
- int result_limit;
- threadref *original_echo;
- threadref *resultlist;
- int *doneflag;
+parse_threadlist_response (char *pkt, int result_limit,
+ threadref *original_echo, threadref *resultlist,
+ int *doneflag)
{
char *limit;
int count, resultcount, done;
@@ -1421,15 +1355,8 @@ parse_threadlist_response (pkt, result_limit, original_echo, resultlist,
}
static int
-remote_get_threadlist (startflag, nextthread, result_limit,
- done, result_count, threadlist)
- int startflag;
- threadref *nextthread;
- int result_limit;
- int *done;
- int *result_count;
- threadref *threadlist;
-
+remote_get_threadlist (int startflag, threadref *nextthread, int result_limit,
+ int *done, int *result_count, threadref *threadlist)
{
static threadref echo_nextthread;
char *threadlist_packet = alloca (PBUFSIZ);
@@ -1494,10 +1421,8 @@ remote_get_threadlist (startflag, nextthread, result_limit,
#define MAXTHREADLISTRESULTS 32
static int
-remote_threadlist_iterator (stepfunction, context, looplimit)
- rmt_thread_action stepfunction;
- void *context;
- int looplimit;
+remote_threadlist_iterator (rmt_thread_action stepfunction, void *context,
+ int looplimit)
{
int done, i, result_count;
int startflag = 1;
@@ -1535,9 +1460,7 @@ remote_threadlist_iterator (stepfunction, context, looplimit)
}
static int
-remote_newthread_step (ref, context)
- threadref *ref;
- void *context;
+remote_newthread_step (threadref *ref, void *context)
{
int pid;
@@ -1550,8 +1473,7 @@ remote_newthread_step (ref, context)
#define CRAZY_MAX_THREADS 1000
static int
-remote_current_thread (oldpid)
- int oldpid;
+remote_current_thread (int oldpid)
{
char *buf = alloca (PBUFSIZ);
@@ -1568,7 +1490,7 @@ remote_current_thread (oldpid)
*/
static void
-remote_find_new_threads ()
+remote_find_new_threads (void)
{
remote_threadlist_iterator (remote_newthread_step, 0,
CRAZY_MAX_THREADS);
@@ -1700,7 +1622,7 @@ remote_threads_extra_info (struct thread_info *tp)
/* Restart the remote side; this is an extended protocol operation. */
static void
-extended_remote_restart ()
+extended_remote_restart (void)
{
char *buf = alloca (PBUFSIZ);
@@ -1720,8 +1642,7 @@ extended_remote_restart ()
/* ARGSUSED */
static void
-remote_close (quitting)
- int quitting;
+remote_close (int quitting)
{
if (remote_desc)
SERIAL_CLOSE (remote_desc);
@@ -1731,7 +1652,7 @@ remote_close (quitting)
/* Query the remote side for the text, data and bss offsets. */
static void
-get_offsets ()
+get_offsets (void)
{
char *buf = alloca (PBUFSIZ);
char *ptr;
@@ -1896,10 +1817,8 @@ remote_cisco_section_offsets (bfd_vma text_addr,
*/
void
-remote_cisco_objfile_relocate (text_off, data_off, bss_off)
- bfd_signed_vma text_off;
- bfd_signed_vma data_off;
- bfd_signed_vma bss_off;
+remote_cisco_objfile_relocate (bfd_signed_vma text_off, bfd_signed_vma data_off,
+ bfd_signed_vma bss_off)
{
struct section_offsets *offs;
@@ -1937,8 +1856,7 @@ remote_start_remote_dummy (void *dummy)
}
static int
-remote_start_remote (dummy)
- PTR dummy;
+remote_start_remote (PTR dummy)
{
immediate_quit = 1; /* Allow user to interrupt it */
@@ -1962,18 +1880,14 @@ remote_start_remote (dummy)
NAME is the filename used for communication. */
static void
-remote_open (name, from_tty)
- char *name;
- int from_tty;
+remote_open (char *name, int from_tty)
{
remote_open_1 (name, from_tty, &remote_ops, 0);
}
/* Just like remote_open, but with asynchronous support. */
static void
-remote_async_open (name, from_tty)
- char *name;
- int from_tty;
+remote_async_open (char *name, int from_tty)
{
remote_async_open_1 (name, from_tty, &remote_async_ops, 0);
}
@@ -1982,18 +1896,14 @@ remote_async_open (name, from_tty)
remote gdb protocol. NAME is the filename used for communication. */
static void
-extended_remote_open (name, from_tty)
- char *name;
- int from_tty;
+extended_remote_open (char *name, int from_tty)
{
remote_open_1 (name, from_tty, &extended_remote_ops, 1 /*extended_p */ );
}
/* Just like extended_remote_open, but with asynchronous support. */
static void
-extended_remote_async_open (name, from_tty)
- char *name;
- int from_tty;
+extended_remote_async_open (char *name, int from_tty)
{
remote_async_open_1 (name, from_tty, &extended_async_remote_ops, 1 /*extended_p */ );
}
@@ -2003,11 +1913,8 @@ extended_remote_async_open (name, from_tty)
static DCACHE *remote_dcache;
static void
-remote_open_1 (name, from_tty, target, extended_p)
- char *name;
- int from_tty;
- struct target_ops *target;
- int extended_p;
+remote_open_1 (char *name, int from_tty, struct target_ops *target,
+ int extended_p)
{
if (name == 0)
error ("To open a remote debug connection, you need to specify what\n\
@@ -2094,11 +2001,8 @@ serial device is attached to the remote system\n\
/* Just like remote_open but with asynchronous support. */
static void
-remote_async_open_1 (name, from_tty, target, extended_p)
- char *name;
- int from_tty;
- struct target_ops *target;
- int extended_p;
+remote_async_open_1 (char *name, int from_tty, struct target_ops *target,
+ int extended_p)
{
if (name == 0)
error ("To open a remote debug connection, you need to specify what\n\
@@ -2202,9 +2106,7 @@ serial device is attached to the remote system\n\
die when it hits one. */
static void
-remote_detach (args, from_tty)
- char *args;
- int from_tty;
+remote_detach (char *args, int from_tty)
{
char *buf = alloca (PBUFSIZ);
@@ -2223,9 +2125,7 @@ remote_detach (args, from_tty)
/* Same as remote_detach, but with async support. */
static void
-remote_async_detach (args, from_tty)
- char *args;
- int from_tty;
+remote_async_detach (char *args, int from_tty)
{
char *buf = alloca (PBUFSIZ);
@@ -2248,8 +2148,7 @@ remote_async_detach (args, from_tty)
/* Convert hex digit A to a number. */
int
-fromhex (a)
- int a;
+fromhex (int a)
{
if (a >= '0' && a <= '9')
return a - '0';
@@ -2264,8 +2163,7 @@ fromhex (a)
/* Convert number NIB to a hex digit. */
static int
-tohex (nib)
- int nib;
+tohex (int nib)
{
if (nib < 10)
return '0' + nib;
@@ -2280,9 +2178,7 @@ static enum target_signal last_sent_signal = TARGET_SIGNAL_0;
static int last_sent_step;
static void
-remote_resume (pid, step, siggnal)
- int pid, step;
- enum target_signal siggnal;
+remote_resume (int pid, int step, enum target_signal siggnal)
{
char *buf = alloca (PBUFSIZ);
@@ -2316,9 +2212,7 @@ remote_resume (pid, step, siggnal)
/* Same as remote_resume, but with async support. */
static void
-remote_async_resume (pid, step, siggnal)
- int pid, step;
- enum target_signal siggnal;
+remote_async_resume (int pid, int step, enum target_signal siggnal)
{
char *buf = alloca (PBUFSIZ);
@@ -2370,7 +2264,7 @@ remote_async_resume (pid, step, siggnal)
/* Set up the signal handler for SIGINT, while the target is
executing, ovewriting the 'regular' SIGINT signal handler. */
static void
-initialize_sigint_signal_handler ()
+initialize_sigint_signal_handler (void)
{
sigint_remote_token =
create_async_signal_handler (async_remote_interrupt, NULL);
@@ -2379,8 +2273,7 @@ initialize_sigint_signal_handler ()
/* Signal handler for SIGINT, while the target is executing. */
static void
-handle_remote_sigint (sig)
- int sig;
+handle_remote_sigint (int sig)
{
signal (sig, handle_remote_sigint_twice);
sigint_remote_twice_token =
@@ -2392,8 +2285,7 @@ handle_remote_sigint (sig)
sent once. It will take effect the second time that the user sends
a ^C. */
static void
-handle_remote_sigint_twice (sig)
- int sig;
+handle_remote_sigint_twice (int sig)
{
signal (sig, handle_sigint);
sigint_remote_twice_token =
@@ -2404,8 +2296,7 @@ handle_remote_sigint_twice (sig)
/* Perform the real interruption of the target execution, in response
to a ^C. */
static void
-async_remote_interrupt (arg)
- gdb_client_data arg;
+async_remote_interrupt (gdb_client_data arg)
{
if (remote_debug)
fprintf_unfiltered (gdb_stdlog, "remote_interrupt called\n");
@@ -2416,8 +2307,7 @@ async_remote_interrupt (arg)
/* Perform interrupt, if the first attempt did not succeed. Just give
up on the target alltogether. */
void
-async_remote_interrupt_twice (arg)
- gdb_client_data arg;
+async_remote_interrupt_twice (gdb_client_data arg)
{
if (remote_debug)
fprintf_unfiltered (gdb_stdlog, "remote_interrupt_twice called\n");
@@ -2452,8 +2342,7 @@ static void (*ofunc) (int);
response from the target (it didn't stop when the user requested it),
we ask the user if he'd like to detach from the target. */
static void
-remote_interrupt (signo)
- int signo;
+remote_interrupt (int signo)
{
/* If this doesn't work, try more severe steps. */
signal (signo, remote_interrupt_twice);
@@ -2467,8 +2356,7 @@ remote_interrupt (signo)
/* The user typed ^C twice. */
static void
-remote_interrupt_twice (signo)
- int signo;
+remote_interrupt_twice (int signo)
{
signal (signo, ofunc);
interrupt_query ();
@@ -2479,7 +2367,7 @@ remote_interrupt_twice (signo)
interrupt is requested, either by the command line or the GUI, we
will eventually end up here. */
static void
-remote_stop ()
+remote_stop (void)
{
/* Send a break or a ^C, depending on user preference. */
if (remote_debug)
@@ -2494,7 +2382,7 @@ remote_stop ()
/* Ask the user what to do when an interrupt is received. */
static void
-interrupt_query ()
+interrupt_query (void)
{
target_terminal_ours ();
@@ -2579,9 +2467,7 @@ remote_console_output (char *msg)
remote OS, is the thread-id. */
static int
-remote_wait (pid, status)
- int pid;
- struct target_waitstatus *status;
+remote_wait (int pid, struct target_waitstatus *status)
{
unsigned char *buf = alloca (PBUFSIZ);
int thread_num = -1;
@@ -2796,9 +2682,7 @@ got_status:
/* Async version of remote_wait. */
static int
-remote_async_wait (pid, status)
- int pid;
- struct target_waitstatus *status;
+remote_async_wait (int pid, struct target_waitstatus *status)
{
unsigned char *buf = alloca (PBUFSIZ);
int thread_num = -1;
@@ -3029,8 +2913,7 @@ static int register_bytes_found;
/* ARGSUSED */
static void
-remote_fetch_registers (regno)
- int regno;
+remote_fetch_registers (int regno)
{
char *buf = alloca (PBUFSIZ);
int i;
@@ -3110,7 +2993,7 @@ supply_them:
first. */
static void
-remote_prepare_to_store ()
+remote_prepare_to_store (void)
{
/* Make sure the entire registers array is valid. */
switch (remote_protocol_P.support)
@@ -3155,8 +3038,7 @@ store_register_using_P (int regno)
of REGISTERS. FIXME: ignores errors. */
static void
-remote_store_registers (regno)
- int regno;
+remote_store_registers (int regno)
{
char *buf = alloca (PBUFSIZ);
int i;
@@ -3214,8 +3096,7 @@ remote_store_registers (regno)
/* Return the number of hex digits in num. */
static int
-hexnumlen (num)
- ULONGEST num;
+hexnumlen (ULONGEST num)
{
int i;
@@ -3228,9 +3109,7 @@ hexnumlen (num)
/* Set BUF to the minimum number of hex digits representing NUM. */
static int
-hexnumstr (buf, num)
- char *buf;
- ULONGEST num;
+hexnumstr (char *buf, ULONGEST num)
{
int len = hexnumlen (num);
return hexnumnstr (buf, num, len);
@@ -3240,10 +3119,7 @@ hexnumstr (buf, num)
/* Set BUF to the hex digits representing NUM, padded to WIDTH characters. */
static int
-hexnumnstr (buf, num, width)
- char *buf;
- ULONGEST num;
- int width;
+hexnumnstr (char *buf, ULONGEST num, int width)
{
int i;
@@ -3261,8 +3137,7 @@ hexnumnstr (buf, num, width)
/* Mask all but the least significant REMOTE_ADDRESS_SIZE bits. */
static CORE_ADDR
-remote_address_masked (addr)
- CORE_ADDR addr;
+remote_address_masked (CORE_ADDR addr)
{
if (remote_address_size > 0
&& remote_address_size < (sizeof (ULONGEST) * 8))
@@ -3287,8 +3162,7 @@ remote_address_masked (addr)
X-packet". */
static void
-check_binary_download (addr)
- CORE_ADDR addr;
+check_binary_download (CORE_ADDR addr)
{
switch (remote_protocol_binary_download.support)
{
@@ -3483,10 +3357,7 @@ remote_write_bytes (CORE_ADDR memaddr, char *myaddr, int len)
handling partial reads. */
static int
-remote_read_bytes (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+remote_read_bytes (CORE_ADDR memaddr, char *myaddr, int len)
{
char *buf;
int max_buf_size; /* Max size of packet output buffer */
@@ -3650,8 +3521,7 @@ remote_search (len, data, mask, startaddr, increment, lorange, hirange
#endif /* 0 */
static void
-remote_files_info (ignore)
- struct target_ops *ignore;
+remote_files_info (struct target_ops *ignore)
{
puts_filtered ("Debugging a target over a serial line.\n");
}
@@ -3662,8 +3532,7 @@ remote_files_info (ignore)
/* Read a single character from the remote end, masking it down to 7 bits. */
static int
-readchar (timeout)
- int timeout;
+readchar (int timeout)
{
int ch;
@@ -3705,8 +3574,7 @@ remote_send (char *buf,
string notation. */
static void
-print_packet (buf)
- char *buf;
+print_packet (char *buf)
{
puts_filtered ("\"");
fputstr_filtered (buf, '"', gdb_stdout);
@@ -3714,8 +3582,7 @@ print_packet (buf)
}
int
-putpkt (buf)
- char *buf;
+putpkt (char *buf)
{
return putpkt_binary (buf, strlen (buf));
}
@@ -3726,9 +3593,7 @@ putpkt (buf)
debugging (remote_debug) and want to print the sent packet as a string */
static int
-putpkt_binary (buf, cnt)
- char *buf;
- int cnt;
+putpkt_binary (char *buf, int cnt)
{
int i;
unsigned char csum = 0;
@@ -4069,7 +3934,7 @@ getpkt_sane (char *buf,
}
static void
-remote_kill ()
+remote_kill (void)
{
/* For some mysterious reason, wait_for_inferior calls kill instead of
mourn after it gets TARGET_WAITKIND_SIGNALLED. Work around it. */
@@ -4091,7 +3956,7 @@ remote_kill ()
/* Async version of remote_kill. */
static void
-remote_async_kill ()
+remote_async_kill (void)
{
/* Unregister the file descriptor from the event loop. */
if (target_is_async_p ())
@@ -4116,19 +3981,19 @@ remote_async_kill ()
}
static void
-remote_mourn ()
+remote_mourn (void)
{
remote_mourn_1 (&remote_ops);
}
static void
-remote_async_mourn ()
+remote_async_mourn (void)
{
remote_mourn_1 (&remote_async_ops);
}
static void
-extended_remote_mourn ()
+extended_remote_mourn (void)
{
/* We do _not_ want to mourn the target like this; this will
remove the extended remote target from the target stack,
@@ -4142,8 +4007,7 @@ extended_remote_mourn ()
/* Worker function for remote_mourn. */
static void
-remote_mourn_1 (target)
- struct target_ops *target;
+remote_mourn_1 (struct target_ops *target)
{
unpush_target (target);
generic_mourn_inferior ();
@@ -4157,10 +4021,7 @@ remote_mourn_1 (target)
we're debugging, arguments and an environment. */
static void
-extended_remote_create_inferior (exec_file, args, env)
- char *exec_file;
- char *args;
- char **env;
+extended_remote_create_inferior (char *exec_file, char *args, char **env)
{
/* Rip out the breakpoints; we'll reinsert them after restarting
the remote server. */
@@ -4182,10 +4043,7 @@ extended_remote_create_inferior (exec_file, args, env)
/* Async version of extended_remote_create_inferior. */
static void
-extended_remote_async_create_inferior (exec_file, args, env)
- char *exec_file;
- char *args;
- char **env;
+extended_remote_async_create_inferior (char *exec_file, char *args, char **env)
{
/* Rip out the breakpoints; we'll reinsert them after restarting
the remote server. */
@@ -4248,9 +4106,7 @@ static unsigned char little_break_insn[] = LITTLE_REMOTE_BREAKPOINT;
is accomplished via BREAKPOINT_MAX). */
static int
-remote_insert_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+remote_insert_breakpoint (CORE_ADDR addr, char *contents_cache)
{
#ifdef REMOTE_BREAKPOINT
int val;
@@ -4320,9 +4176,7 @@ remote_insert_breakpoint (addr, contents_cache)
}
static int
-remote_remove_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+remote_remove_breakpoint (CORE_ADDR addr, char *contents_cache)
{
int bp_size;
@@ -4356,10 +4210,7 @@ remote_remove_breakpoint (addr, contents_cache)
#ifdef TARGET_HAS_HARDWARE_WATCHPOINTS
int
-remote_insert_watchpoint (addr, len, type)
- CORE_ADDR addr;
- int len;
- int type;
+remote_insert_watchpoint (CORE_ADDR addr, int len, int type)
{
char *buf = alloca (PBUFSIZ);
char *p;
@@ -4383,10 +4234,7 @@ remote_insert_watchpoint (addr, len, type)
}
int
-remote_remove_watchpoint (addr, len, type)
- CORE_ADDR addr;
- int len;
- int type;
+remote_remove_watchpoint (CORE_ADDR addr, int len, int type)
{
char *buf = alloca (PBUFSIZ);
char *p;
@@ -4406,9 +4254,7 @@ remote_remove_watchpoint (addr, len, type)
}
int
-remote_insert_hw_breakpoint (addr, len)
- CORE_ADDR addr;
- int len;
+remote_insert_hw_breakpoint (CORE_ADDR addr, int len)
{
char *buf = alloca (PBUFSIZ);
char *p = buf;
@@ -4434,9 +4280,7 @@ remote_insert_hw_breakpoint (addr, len)
}
int
-remote_remove_hw_breakpoint (addr, len)
- CORE_ADDR addr;
- int len;
+remote_remove_hw_breakpoint (CORE_ADDR addr, int len)
{
char *buf = alloca (PBUFSIZ);
char *p = buf;
@@ -4470,9 +4314,7 @@ remote_remove_hw_breakpoint (addr, len)
already..." message. Usually a call to pop_target() suffices. */
void
-push_remote_target (name, from_tty)
- char *name;
- int from_tty;
+push_remote_target (char *name, int from_tty)
{
printf_filtered ("Switching to remote protocol\n");
remote_open (name, from_tty);
@@ -4482,11 +4324,8 @@ push_remote_target (name, from_tty)
certain remote_ops overridden. */
void
-open_remote_target (name, from_tty, target, extended_p)
- char *name;
- int from_tty;
- struct target_ops *target;
- int extended_p;
+open_remote_target (char *name, int from_tty, struct target_ops *target,
+ int extended_p)
{
printf_filtered ("Selecting the %sremote protocol\n",
(extended_p ? "extended-" : ""));
@@ -4499,10 +4338,7 @@ static unsigned long crc32_table[256] =
{0, 0};
static unsigned long
-crc32 (buf, len, crc)
- unsigned char *buf;
- int len;
- unsigned int crc;
+crc32 (unsigned char *buf, int len, unsigned int crc)
{
if (!crc32_table[1])
{
@@ -4539,9 +4375,7 @@ crc32 (buf, len, crc)
generic_load()) to make use of this target functionality. */
static void
-compare_sections_command (args, from_tty)
- char *args;
- int from_tty;
+compare_sections_command (char *args, int from_tty)
{
asection *s;
unsigned long host_crc, target_crc;
@@ -4617,11 +4451,7 @@ the loaded file\n");
}
static int
-remote_query (query_type, buf, outbuf, bufsiz)
- int query_type;
- char *buf;
- char *outbuf;
- int *bufsiz;
+remote_query (int query_type, char *buf, char *outbuf, int *bufsiz)
{
int i;
char *buf2 = alloca (PBUFSIZ);
@@ -4749,9 +4579,7 @@ remote_rcmd (char *command,
}
static void
-packet_command (args, from_tty)
- char *args;
- int from_tty;
+packet_command (char *args, int from_tty)
{
char *buf = alloca (PBUFSIZ);
@@ -4796,9 +4624,7 @@ static void init_remote_threadtests (void);
#define SAMPLE_THREAD 0x05060708 /* Truncated 64 bit threadid */
static void
-threadset_test_cmd (cmd, tty)
- char *cmd;
- int tty;
+threadset_test_cmd (char *cmd, int tty)
{
int sample_thread = SAMPLE_THREAD;
@@ -4808,9 +4634,7 @@ threadset_test_cmd (cmd, tty)
static void
-threadalive_test (cmd, tty)
- char *cmd;
- int tty;
+threadalive_test (char *cmd, int tty)
{
int sample_thread = SAMPLE_THREAD;
@@ -4823,9 +4647,7 @@ threadalive_test (cmd, tty)
void output_threadid (char *title, threadref * ref);
void
-output_threadid (title, ref)
- char *title;
- threadref *ref;
+output_threadid (char *title, threadref *ref)
{
char hexid[20];
@@ -4835,9 +4657,7 @@ output_threadid (title, ref)
}
static void
-threadlist_test_cmd (cmd, tty)
- char *cmd;
- int tty;
+threadlist_test_cmd (char *cmd, int tty)
{
int startflag = 1;
threadref nextthread;
@@ -4859,8 +4679,7 @@ threadlist_test_cmd (cmd, tty)
}
void
-display_thread_info (info)
- struct gdb_ext_thread_info *info;
+display_thread_info (struct gdb_ext_thread_info *info)
{
output_threadid ("Threadid: ", &info->threadid);
printf_filtered ("Name: %s\n ", info->shortname);
@@ -4869,8 +4688,7 @@ display_thread_info (info)
}
int
-get_and_display_threadinfo (ref)
- threadref *ref;
+get_and_display_threadinfo (threadref *ref)
{
int result;
int set;
@@ -4884,9 +4702,7 @@ get_and_display_threadinfo (ref)
}
static void
-threadinfo_test_cmd (cmd, tty)
- char *cmd;
- int tty;
+threadinfo_test_cmd (char *cmd, int tty)
{
int athread = SAMPLE_THREAD;
threadref thread;
@@ -4899,18 +4715,14 @@ threadinfo_test_cmd (cmd, tty)
}
static int
-thread_display_step (ref, context)
- threadref *ref;
- void *context;
+thread_display_step (threadref *ref, void *context)
{
/* output_threadid(" threadstep ",ref); *//* simple test */
return get_and_display_threadinfo (ref);
}
static void
-threadlist_update_test_cmd (cmd, tty)
- char *cmd;
- int tty;
+threadlist_update_test_cmd (char *cmd, int tty)
{
printf_filtered ("Remote Threadlist update test\n");
remote_threadlist_iterator (thread_display_step, 0, CRAZY_MAX_THREADS);
@@ -4934,7 +4746,7 @@ init_remote_threadtests (void)
#endif /* 0 */
static void
-init_remote_ops ()
+init_remote_ops (void)
{
remote_ops.to_shortname = "remote";
remote_ops.to_longname = "Remote serial target in gdb-specific protocol";
@@ -4977,7 +4789,7 @@ Specify the serial device it is connected to\n\
remote vector and adding to it. */
static void
-init_extended_remote_ops ()
+init_extended_remote_ops (void)
{
extended_remote_ops = remote_ops;
@@ -5350,7 +5162,7 @@ remote_cisco_wait (int pid, struct target_waitstatus *status)
}
static void
-init_remote_cisco_ops ()
+init_remote_cisco_ops (void)
{
remote_cisco_ops.to_shortname = "cisco";
remote_cisco_ops.to_longname = "Remote serial target in cisco-specific protocol";
@@ -5508,7 +5320,7 @@ set_remote_cmd (char *args, int from_tty)
static void
-build_remote_gdbarch_data ()
+build_remote_gdbarch_data (void)
{
build_remote_packet_sizes ();
@@ -5518,7 +5330,7 @@ build_remote_gdbarch_data ()
}
void
-_initialize_remote ()
+_initialize_remote (void)
{
static struct cmd_list_element *remote_set_cmdlist;
static struct cmd_list_element *remote_show_cmdlist;
diff --git a/gdb/rom68k-rom.c b/gdb/rom68k-rom.c
index 212bdf4..5bb3a18 100644
--- a/gdb/rom68k-rom.c
+++ b/gdb/rom68k-rom.c
@@ -27,11 +27,7 @@
static void rom68k_open (char *args, int from_tty);
static void
-rom68k_supply_register (regname, regnamelen, val, vallen)
- char *regname;
- int regnamelen;
- char *val;
- int vallen;
+rom68k_supply_register (char *regname, int regnamelen, char *val, int vallen)
{
int numregs;
int regno;
@@ -149,15 +145,13 @@ init_rom68k_cmds (void)
} /* init_rom68k_cmds */
static void
-rom68k_open (args, from_tty)
- char *args;
- int from_tty;
+rom68k_open (char *args, int from_tty)
{
monitor_open (args, &rom68k_cmds, from_tty);
}
void
-_initialize_rom68k ()
+_initialize_rom68k (void)
{
init_rom68k_cmds ();
init_monitor_ops (&rom68k_ops);
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index 66cee5a..fbcc204 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -1403,7 +1403,7 @@ rs6000_register_virtual_size (int n)
of data in register N. */
static struct type *
-rs6000_register_virtual_type (n)
+rs6000_register_virtual_type (int n)
{
struct gdbarch_tdep *tdep = TDEP;
const struct reg *reg = tdep->regs + n;
@@ -2099,7 +2099,7 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
/* Initialization code. */
void
-_initialize_rs6000_tdep ()
+_initialize_rs6000_tdep (void)
{
register_gdbarch_init (bfd_arch_rs6000, rs6000_gdbarch_init);
register_gdbarch_init (bfd_arch_powerpc, rs6000_gdbarch_init);
diff --git a/gdb/scm-exp.c b/gdb/scm-exp.c
index 43cb4d8..c2b8c35 100644
--- a/gdb/scm-exp.c
+++ b/gdb/scm-exp.c
@@ -39,10 +39,7 @@ static LONGEST scm_istr2int (char *, int, int);
static void scm_lreadr (int);
static LONGEST
-scm_istr2int (str, len, radix)
- char *str;
- int len;
- int radix;
+scm_istr2int (char *str, int len, int radix)
{
int i = 0;
LONGEST inum = 0;
@@ -107,10 +104,7 @@ scm_istr2int (str, len, radix)
}
static LONGEST
-scm_istring2number (str, len, radix)
- char *str;
- int len;
- int radix;
+scm_istring2number (char *str, int len, int radix)
{
int i = 0;
char ex = 0;
@@ -184,9 +178,7 @@ scm_istring2number (str, len, radix)
}
static void
-scm_read_token (c, weird)
- int c;
- int weird;
+scm_read_token (int c, int weird)
{
while (1)
{
@@ -243,7 +235,7 @@ scm_read_token (c, weird)
}
static int
-scm_skip_ws ()
+scm_skip_ws (void)
{
register int c;
while (1)
@@ -275,8 +267,7 @@ scm_skip_ws ()
}
static void
-scm_lreadparen (skipping)
- int skipping;
+scm_lreadparen (int skipping)
{
for (;;)
{
@@ -291,8 +282,7 @@ scm_lreadparen (skipping)
}
static void
-scm_lreadr (skipping)
- int skipping;
+scm_lreadr (int skipping)
{
int c, j;
struct stoken str;
@@ -487,7 +477,7 @@ handle_immediate:
}
int
-scm_parse ()
+scm_parse (void)
{
char *start;
while (*lexptr == ' ')
diff --git a/gdb/scm-lang.c b/gdb/scm-lang.c
index d38eb4e..ea60622 100644
--- a/gdb/scm-lang.c
+++ b/gdb/scm-lang.c
@@ -45,27 +45,20 @@ extern struct type **CONST_PTR (c_builtin_types[]);
struct type *builtin_type_scm;
void
-scm_printchar (c, stream)
- int c;
- struct ui_file *stream;
+scm_printchar (int c, struct ui_file *stream)
{
fprintf_filtered (stream, "#\\%c", c);
}
static void
-scm_printstr (stream, string, length, width, force_ellipses)
- struct ui_file *stream;
- char *string;
- unsigned int length;
- int width;
- int force_ellipses;
+scm_printstr (struct ui_file *stream, char *string, unsigned int length,
+ int width, int force_ellipses)
{
fprintf_filtered (stream, "\"%s\"", string);
}
int
-is_scmvalue_type (type)
- struct type *type;
+is_scmvalue_type (struct type *type)
{
if (TYPE_CODE (type) == TYPE_CODE_INT
&& TYPE_NAME (type) && strcmp (TYPE_NAME (type), "SCM") == 0)
@@ -79,9 +72,7 @@ is_scmvalue_type (type)
of the 0'th one. */
LONGEST
-scm_get_field (svalue, index)
- LONGEST svalue;
- int index;
+scm_get_field (LONGEST svalue, int index)
{
char buffer[20];
read_memory (SCM2PTR (svalue) + index * TYPE_LENGTH (builtin_type_scm),
@@ -94,10 +85,7 @@ scm_get_field (svalue, index)
or Boolean (CONTEXT == TYPE_CODE_BOOL). */
LONGEST
-scm_unpack (type, valaddr, context)
- struct type *type;
- char *valaddr;
- enum type_code context;
+scm_unpack (struct type *type, char *valaddr, enum type_code context)
{
if (is_scmvalue_type (type))
{
@@ -142,7 +130,7 @@ scm_unpack (type, valaddr, context)
/* True if we're correctly in Guile's eval.c (the evaluator and apply). */
static int
-in_eval_c ()
+in_eval_c (void)
{
if (current_source_symtab && current_source_symtab->filename)
{
@@ -159,8 +147,7 @@ in_eval_c ()
function), then try lookup_symbol for compiled variables. */
static value_ptr
-scm_lookup_name (str)
- char *str;
+scm_lookup_name (char *str)
{
value_ptr args[3];
int len = strlen (str);
@@ -195,9 +182,7 @@ scm_lookup_name (str)
}
value_ptr
-scm_evaluate_string (str, len)
- char *str;
- int len;
+scm_evaluate_string (char *str, int len)
{
value_ptr func;
value_ptr addr = value_allocate_space_in_inferior (len + 1);
@@ -210,11 +195,8 @@ scm_evaluate_string (str, len)
}
static value_ptr
-evaluate_subexp_scm (expect_type, exp, pos, noside)
- struct type *expect_type;
- register struct expression *exp;
- register int *pos;
- enum noside noside;
+evaluate_subexp_scm (struct type *expect_type, register struct expression *exp,
+ register int *pos, enum noside noside)
{
enum exp_opcode op = exp->elts[*pos].opcode;
int len, pc;
@@ -273,7 +255,7 @@ const struct language_defn scm_language_defn =
};
void
-_initialize_scheme_language ()
+_initialize_scheme_language (void)
{
add_language (&scm_language_defn);
builtin_type_scm = init_type (TYPE_CODE_INT,
diff --git a/gdb/scm-valprint.c b/gdb/scm-valprint.c
index 802751f..1c9b835 100644
--- a/gdb/scm-valprint.c
+++ b/gdb/scm-valprint.c
@@ -45,13 +45,8 @@ static int scm_inferior_print (LONGEST, struct ui_file *, int, int,
print VALUE. */
static int
-scm_inferior_print (value, stream, format, deref_ref, recurse, pretty)
- LONGEST value;
- struct ui_file *stream;
- int format;
- int deref_ref;
- int recurse;
- enum val_prettyprint pretty;
+scm_inferior_print (LONGEST value, struct ui_file *stream, int format,
+ int deref_ref, int recurse, enum val_prettyprint pretty)
{
return -1;
}
@@ -96,13 +91,8 @@ static char *scm_isymnames[] =
};
static void
-scm_scmlist_print (svalue, stream, format, deref_ref, recurse, pretty)
- LONGEST svalue;
- struct ui_file *stream;
- int format;
- int deref_ref;
- int recurse;
- enum val_prettyprint pretty;
+scm_scmlist_print (LONGEST svalue, struct ui_file *stream, int format,
+ int deref_ref, int recurse, enum val_prettyprint pretty)
{
unsigned int more = print_max;
if (recurse > 6)
@@ -135,10 +125,7 @@ scm_scmlist_print (svalue, stream, format, deref_ref, recurse, pretty)
}
static void
-scm_ipruk (hdr, ptr, stream)
- char *hdr;
- LONGEST ptr;
- struct ui_file *stream;
+scm_ipruk (char *hdr, LONGEST ptr, struct ui_file *stream)
{
fprintf_filtered (stream, "#<unknown-%s", hdr);
#define SCM_SIZE TYPE_LENGTH (builtin_type_scm)
@@ -149,13 +136,8 @@ scm_ipruk (hdr, ptr, stream)
}
void
-scm_scmval_print (svalue, stream, format, deref_ref, recurse, pretty)
- LONGEST svalue;
- struct ui_file *stream;
- int format;
- int deref_ref;
- int recurse;
- enum val_prettyprint pretty;
+scm_scmval_print (LONGEST svalue, struct ui_file *stream, int format,
+ int deref_ref, int recurse, enum val_prettyprint pretty)
{
taloop:
switch (7 & (int) svalue)
@@ -376,17 +358,9 @@ taloop:
}
int
-scm_val_print (type, valaddr, embedded_offset, address,
- stream, format, deref_ref, recurse, pretty)
- struct type *type;
- char *valaddr;
- int embedded_offset;
- CORE_ADDR address;
- struct ui_file *stream;
- int format;
- int deref_ref;
- int recurse;
- enum val_prettyprint pretty;
+scm_val_print (struct type *type, char *valaddr, int embedded_offset,
+ CORE_ADDR address, struct ui_file *stream, int format,
+ int deref_ref, int recurse, enum val_prettyprint pretty)
{
if (is_scmvalue_type (type))
{
@@ -412,11 +386,8 @@ scm_val_print (type, valaddr, embedded_offset, address,
}
int
-scm_value_print (val, stream, format, pretty)
- value_ptr val;
- struct ui_file *stream;
- int format;
- enum val_prettyprint pretty;
+scm_value_print (value_ptr val, struct ui_file *stream, int format,
+ enum val_prettyprint pretty)
{
return (val_print (VALUE_TYPE (val), VALUE_CONTENTS (val), 0,
VALUE_ADDRESS (val), stream, format, 1, 0, pretty));
diff --git a/gdb/ser-e7kpc.c b/gdb/ser-e7kpc.c
index c7b23aa..726339d 100644
--- a/gdb/ser-e7kpc.c
+++ b/gdb/ser-e7kpc.c
@@ -160,7 +160,7 @@ get_ds_base (void)
#endif /* _MSC_VER */
static int
-e7000pc_init ()
+e7000pc_init (void)
{
int try;
unsigned long dsbase;
@@ -255,12 +255,7 @@ e7000_get (void)
that TIMEOUT == 0 is a poll, and TIMEOUT == -1 means wait forever. */
static int
-dosasync_read (fd, buf, len, timeout)
- int fd;
- char *buf;
- int len;
- int timeout;
-
+dosasync_read (int fd, char *buf, int len, int timeout)
{
long now;
long then;
@@ -301,10 +296,7 @@ dosasync_read (fd, buf, len, timeout)
static int
-dosasync_write (fd, buf, len)
- int fd;
- const char *buf;
- int len;
+dosasync_write (int fd, const char *buf, int len)
{
int i;
char dummy[1000];
@@ -332,9 +324,7 @@ dosasync_write (fd, buf, len)
}
static int
-e7000pc_open (scb, name)
- serial_t scb;
- const char *name;
+e7000pc_open (serial_t scb, const char *name)
{
if (strncasecmp (name, "pc", 2) != 0)
{
@@ -351,23 +341,19 @@ e7000pc_open (scb, name)
}
static int
-e7000pc_noop (scb)
- serial_t scb;
+e7000pc_noop (serial_t scb)
{
return 0;
}
static void
-e7000pc_raw (scb)
- serial_t scb;
+e7000pc_raw (serial_t scb)
{
/* Always in raw mode */
}
static int
-e7000pc_readchar (scb, timeout)
- serial_t scb;
- int timeout;
+e7000pc_readchar (serial_t scb, int timeout)
{
char buf;
@@ -392,8 +378,7 @@ struct e7000pc_ttystate
vector. Someday, they may do something real... */
static serial_ttystate
-e7000pc_get_tty_state (scb)
- serial_t scb;
+e7000pc_get_tty_state (serial_t scb)
{
struct e7000pc_ttystate *state;
@@ -403,18 +388,14 @@ e7000pc_get_tty_state (scb)
}
static int
-e7000pc_set_tty_state (scb, ttystate)
- serial_t scb;
- serial_ttystate ttystate;
+e7000pc_set_tty_state (serial_t scb, serial_ttystate ttystate)
{
return 0;
}
static int
-e7000pc_noflush_set_tty_state (scb, new_ttystate, old_ttystate)
- serial_t scb;
- serial_ttystate new_ttystate;
- serial_ttystate old_ttystate;
+e7000pc_noflush_set_tty_state (serial_t scb, serial_ttystate new_ttystate,
+ serial_ttystate old_ttystate)
{
return 0;
}
@@ -429,18 +410,13 @@ e7000pc_print_tty_state (serial_t scb,
}
static int
-e7000pc_setbaudrate (scb, rate)
- serial_t scb;
- int rate;
+e7000pc_setbaudrate (serial_t scb, int rate)
{
return 0;
}
static int
-e7000pc_write (scb, str, len)
- serial_t scb;
- const char *str;
- int len;
+e7000pc_write (serial_t scb, const char *str, int len)
{
dosasync_write (scb->fd, str, len);
@@ -448,8 +424,7 @@ e7000pc_write (scb, str, len)
}
static void
-e7000pc_close (scb)
- serial_t scb;
+e7000pc_close (serial_t scb)
{
}
@@ -474,14 +449,14 @@ static struct serial_ops e7000pc_ops =
};
void
-_initialize_ser_e7000pc ()
+_initialize_ser_e7000pc (void)
{
serial_add_interface (&e7000pc_ops);
}
#else
void
-_initialize_ser_e7000pc ()
+_initialize_ser_e7000pc (void)
{
}
diff --git a/gdb/ser-go32.c b/gdb/ser-go32.c
index a8f09e7..8a19dd4 100644
--- a/gdb/ser-go32.c
+++ b/gdb/ser-go32.c
@@ -247,8 +247,7 @@ static int dos_baudconv (int rate);
static int
-dos_getc (port)
- volatile struct dos_ttystate *port;
+dos_getc (volatile struct dos_ttystate *port)
{
int c;
@@ -265,9 +264,7 @@ dos_getc (port)
static int
-dos_putc (c, port)
- int c;
- struct dos_ttystate *port;
+dos_putc (int c, struct dos_ttystate *port)
{
if (port->count >= CBSIZE - 1)
return -1;
@@ -279,8 +276,7 @@ dos_putc (c, port)
static void
-dos_comisr (irq)
- int irq;
+dos_comisr (int irq)
{
struct dos_ttystate *port;
unsigned char iir, lsr, c;
@@ -436,8 +432,7 @@ ISR (4) ISR (5) ISR (6) ISR (7)
static void
-dos_unhookirq (intr)
- struct intrupt *intr;
+dos_unhookirq (struct intrupt *intr)
{
unsigned int irq, vec;
unsigned char mask;
@@ -464,9 +459,7 @@ dos_unhookirq (intr)
static int
-dos_open (scb, name)
- serial_t scb;
- const char *name;
+dos_open (serial_t scb, const char *name)
{
struct dos_ttystate *port;
int fd, i;
@@ -570,8 +563,7 @@ ok:
static void
-dos_close (scb)
- serial_t scb;
+dos_close (serial_t scb)
{
struct dos_ttystate *port;
struct intrupt *intrupt;
@@ -625,9 +617,7 @@ dos_raw (serial_t scb ATTRIBUTE_UNUSED)
}
static int
-dos_readchar (scb, timeout)
- serial_t scb;
- int timeout;
+dos_readchar (serial_t scb, int timeout)
{
struct dos_ttystate *port = &ports[scb->fd];
long then;
@@ -646,8 +636,7 @@ dos_readchar (scb, timeout)
static serial_ttystate
-dos_get_tty_state (scb)
- serial_t scb;
+dos_get_tty_state (serial_t scb)
{
struct dos_ttystate *port = &ports[scb->fd];
struct dos_ttystate *state;
@@ -671,9 +660,7 @@ dos_get_tty_state (scb)
}
static int
-dos_set_tty_state (scb, ttystate)
- serial_t scb;
- serial_ttystate ttystate;
+dos_set_tty_state (serial_t scb, serial_ttystate ttystate)
{
struct dos_ttystate *state;
@@ -694,8 +681,7 @@ dos_noflush_set_tty_state (serial_t scb, serial_ttystate new_ttystate,
}
static int
-dos_flush_input (scb)
- serial_t scb;
+dos_flush_input (serial_t scb)
{
struct dos_ttystate *port = &ports[scb->fd];
disable ();
@@ -716,8 +702,7 @@ dos_print_tty_state (serial_t scb ATTRIBUTE_UNUSED,
}
static int
-dos_baudconv (rate)
- int rate;
+dos_baudconv (int rate)
{
long x, err;
@@ -740,9 +725,7 @@ dos_baudconv (rate)
static int
-dos_setbaudrate (scb, rate)
- serial_t scb;
- int rate;
+dos_setbaudrate (serial_t scb, int rate)
{
struct dos_ttystate *port = &ports[scb->fd];
@@ -774,9 +757,7 @@ dos_setbaudrate (scb, rate)
}
static int
-dos_setstopbits (scb, num)
- serial_t scb;
- int num;
+dos_setstopbits (serial_t scb, int num)
{
struct dos_ttystate *port = &ports[scb->fd];
unsigned char cfcr;
@@ -803,10 +784,7 @@ dos_setstopbits (scb, num)
}
static int
-dos_write (scb, str, len)
- serial_t scb;
- const char *str;
- int len;
+dos_write (serial_t scb, const char *str, int len)
{
volatile struct dos_ttystate *port = &ports[scb->fd];
int fifosize = port->fifo ? 16 : 1;
@@ -840,8 +818,7 @@ dos_write (scb, str, len)
static int
-dos_sendbreak (scb)
- serial_t scb;
+dos_sendbreak (serial_t scb)
{
volatile struct dos_ttystate *port = &ports[scb->fd];
unsigned char cfcr;
@@ -914,7 +891,7 @@ dos_info (char *arg ATTRIBUTE_UNUSED, int from_tty ATTRIBUTE_UNUSED)
void
-_initialize_ser_dos ()
+_initialize_ser_dos (void)
{
serial_add_interface (&dos_ops);
diff --git a/gdb/ser-mac.c b/gdb/ser-mac.c
index e5d34b6..7e18e26 100644
--- a/gdb/ser-mac.c
+++ b/gdb/ser-mac.c
@@ -52,9 +52,7 @@ char *mac_input_buffer;
char *mac_output_buffer;
static int
-mac_open (scb, name)
- serial_t scb;
- const char *name;
+mac_open (serial_t scb, const char *name)
{
OSErr err;
@@ -131,15 +129,13 @@ mac_open (scb, name)
}
static int
-mac_noop (scb)
- serial_t scb;
+mac_noop (serial_t scb)
{
return 0;
}
static void
-mac_raw (scb)
- serial_t scb;
+mac_raw (serial_t scb)
{
/* Always effectively in raw mode. */
}
@@ -150,9 +146,7 @@ mac_raw (scb)
dead, or -3 for any other error (see errno in that case). */
static int
-mac_readchar (scb, timeout)
- serial_t scb;
- int timeout;
+mac_readchar (serial_t scb, int timeout)
{
int status, n;
/* time_t */ unsigned long start_time, now;
@@ -204,8 +198,7 @@ mac_readchar (scb, timeout)
vector. Someday, they may do something real... */
static serial_ttystate
-mac_get_tty_state (scb)
- serial_t scb;
+mac_get_tty_state (serial_t scb)
{
struct mac_ttystate *state;
@@ -215,18 +208,14 @@ mac_get_tty_state (scb)
}
static int
-mac_set_tty_state (scb, ttystate)
- serial_t scb;
- serial_ttystate ttystate;
+mac_set_tty_state (serial_t scb, serial_ttystate ttystate)
{
return 0;
}
static int
-mac_noflush_set_tty_state (scb, new_ttystate, old_ttystate)
- serial_t scb;
- serial_ttystate new_ttystate;
- serial_ttystate old_ttystate;
+mac_noflush_set_tty_state (serial_t scb, serial_ttystate new_ttystate,
+ serial_ttystate old_ttystate)
{
return 0;
}
@@ -305,9 +294,7 @@ mac_baud_rate_table[] =
};
static int
-mac_set_baud_rate (scb, rate)
- serial_t scb;
- int rate;
+mac_set_baud_rate (serial_t scb, int rate)
{
int i, bits;
@@ -324,9 +311,7 @@ mac_set_baud_rate (scb, rate)
}
static int
-mac_set_stop_bits (scb, num)
- serial_t scb;
- int num;
+mac_set_stop_bits (serial_t scb, int num)
{
return 0;
}
@@ -334,10 +319,7 @@ mac_set_stop_bits (scb, num)
int first_mac_write = 0;
static int
-mac_write (scb, str, len)
- serial_t scb;
- const char *str;
- int len;
+mac_write (serial_t scb, const char *str, int len)
{
OSErr err;
IOParam pb;
@@ -398,7 +380,7 @@ static struct serial_ops mac_ops =
};
void
-_initialize_ser_mac ()
+_initialize_ser_mac (void)
{
serial_add_interface (&mac_ops);
}
diff --git a/gdb/ser-ocd.c b/gdb/ser-ocd.c
index deb2d3d..9ce7519 100644
--- a/gdb/ser-ocd.c
+++ b/gdb/ser-ocd.c
@@ -34,9 +34,7 @@ static int (*dll_do_command) (const char *, char *);
#endif
static int
-ocd_open (scb, name)
- serial_t scb;
- const char *name;
+ocd_open (serial_t scb, const char *name)
{
#ifdef _WIN32
/* Find the wiggler DLL which talks to the board. */
@@ -62,15 +60,13 @@ ocd_open (scb, name)
}
static int
-ocd_noop (scb)
- serial_t scb;
+ocd_noop (serial_t scb)
{
return 0;
}
static void
-ocd_raw (scb)
- serial_t scb;
+ocd_raw (serial_t scb)
{
/* Always in raw mode */
}
@@ -81,9 +77,7 @@ unsigned char from_wiggler_buffer[WIGGLER_BUFF_SIZE];
unsigned char *wiggler_buffer_ptr; /* curr spot in buffer */
static int
-ocd_readchar (scb, timeout)
- serial_t scb;
- int timeout;
+ocd_readchar (serial_t scb, int timeout)
{
/* Catch attempts at reading past the end of the buffer */
if (wiggler_buffer_ptr >
@@ -102,8 +96,7 @@ struct ocd_ttystate
vector. Someday, they may do something real... */
static serial_ttystate
-ocd_get_tty_state (scb)
- serial_t scb;
+ocd_get_tty_state (serial_t scb)
{
struct ocd_ttystate *state;
@@ -113,18 +106,14 @@ ocd_get_tty_state (scb)
}
static int
-ocd_set_tty_state (scb, ttystate)
- serial_t scb;
- serial_ttystate ttystate;
+ocd_set_tty_state (serial_t scb, serial_ttystate ttystate)
{
return 0;
}
static int
-ocd_noflush_set_tty_state (scb, new_ttystate, old_ttystate)
- serial_t scb;
- serial_ttystate new_ttystate;
- serial_ttystate old_ttystate;
+ocd_noflush_set_tty_state (serial_t scb, serial_ttystate new_ttystate,
+ serial_ttystate old_ttystate)
{
return 0;
}
@@ -139,18 +128,13 @@ ocd_print_tty_state (serial_t scb,
}
static int
-ocd_setbaudrate (scb, rate)
- serial_t scb;
- int rate;
+ocd_setbaudrate (serial_t scb, int rate)
{
return 0;
}
static int
-ocd_write (scb, str, len)
- serial_t scb;
- const char *str;
- int len;
+ocd_write (serial_t scb, const char *str, int len)
{
#ifdef _WIN32
/* send packet to Wigglers.dll and store response so we can give it to
@@ -163,8 +147,7 @@ ocd_write (scb, str, len)
}
static void
-ocd_close (scb)
- serial_t scb;
+ocd_close (serial_t scb)
{
}
@@ -189,7 +172,7 @@ static struct serial_ops ocd_ops =
};
void
-_initialize_ser_ocd_bdm ()
+_initialize_ser_ocd_bdm (void)
{
serial_add_interface (&ocd_ops);
}
diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c
index 919c9fd..5a1ec1d 100644
--- a/gdb/ser-unix.c
+++ b/gdb/ser-unix.c
@@ -778,9 +778,7 @@ hardwire_setbaudrate (serial_t scb, int rate)
}
static int
-hardwire_setstopbits (scb, num)
- serial_t scb;
- int num;
+hardwire_setstopbits (serial_t scb, int num)
{
struct hardwire_ttystate state;
int newbit;
diff --git a/gdb/sh-stub.c b/gdb/sh-stub.c
index ea897c4..b6be51f 100644
--- a/gdb/sh-stub.c
+++ b/gdb/sh-stub.c
@@ -383,7 +383,7 @@ hexToInt (char **ptr, int *intValue)
/* scan for the sequence $<data>#<checksum> */
char *
-getpacket ()
+getpacket (void)
{
unsigned char *buffer = &remcomInBuffer[0];
unsigned char checksum;
@@ -802,7 +802,7 @@ void handle_exception(int exceptionVector)
}
void
-gdb_mode()
+gdb_mode (void)
{
ingdbmode = GDBCOOKIE;
breakpoint();
@@ -1324,7 +1324,7 @@ static __inline__ void code_for_catch_exception(int n)
static void
-exceptions()
+exceptions (void)
{
code_for_catch_exception (CPU_BUS_ERROR_VEC);
code_for_catch_exception (DMA_BUS_ERROR_VEC);
@@ -1492,12 +1492,12 @@ exceptions()
void handleError (char theSSR);
void
-nop ()
+nop (void)
{
}
void
-init_serial()
+init_serial (void)
{
int i;
@@ -1556,7 +1556,7 @@ getDebugChar (void)
}
int
-putDebugCharReady()
+putDebugCharReady (void)
{
return (SSR1 & SCI_TDRE);
}
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c
index 0c04b1e..3079e34 100644
--- a/gdb/sh-tdep.c
+++ b/gdb/sh-tdep.c
@@ -289,9 +289,7 @@ sh_sh4_register_name (int reg_nr)
}
static unsigned char *
-sh_breakpoint_from_pc (pcptr, lenptr)
- CORE_ADDR *pcptr;
- int *lenptr;
+sh_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr)
{
/* 0xc3c3 is trapa #c3, and it works in big and little endian modes */
static unsigned char breakpoint[] = {0xc3, 0xc3};
@@ -375,8 +373,7 @@ sh_breakpoint_from_pc (pcptr, lenptr)
/* Skip the prologue using the debug information. If this fails we'll
fall back on the 'guess' method below. */
static CORE_ADDR
-after_prologue (pc)
- CORE_ADDR pc;
+after_prologue (CORE_ADDR pc)
{
struct symtab_and_line sal;
CORE_ADDR func_addr, func_end;
@@ -405,8 +402,7 @@ after_prologue (pc)
where the prologue ends. Unfortunately this is not always
accurate. */
static CORE_ADDR
-skip_prologue_hard_way (start_pc)
- CORE_ADDR start_pc;
+skip_prologue_hard_way (CORE_ADDR start_pc)
{
CORE_ADDR here, end;
int updated_fp = 0;
@@ -439,8 +435,7 @@ skip_prologue_hard_way (start_pc)
}
static CORE_ADDR
-sh_skip_prologue (pc)
- CORE_ADDR pc;
+sh_skip_prologue (CORE_ADDR pc)
{
CORE_ADDR post_prologue_pc;
@@ -465,17 +460,14 @@ sh_skip_prologue (pc)
The return address is the value saved in the PR register + 4 */
static CORE_ADDR
-sh_saved_pc_after_call (frame)
- struct frame_info *frame;
+sh_saved_pc_after_call (struct frame_info *frame)
{
return (ADDR_BITS_REMOVE(read_register(PR_REGNUM)));
}
/* Should call_function allocate stack space for a struct return? */
static int
-sh_use_struct_convention (gcc_p, type)
- int gcc_p;
- struct type *type;
+sh_use_struct_convention (int gcc_p, struct type *type)
{
return (TYPE_LENGTH (type) > 1);
}
@@ -485,18 +477,14 @@ sh_use_struct_convention (gcc_p, type)
We store structs through a pointer passed in R0 */
static void
-sh_store_struct_return (addr, sp)
- CORE_ADDR addr;
- CORE_ADDR sp;
+sh_store_struct_return (CORE_ADDR addr, CORE_ADDR sp)
{
write_register (STRUCT_RETURN_REGNUM, (addr));
}
/* Disassemble an instruction. */
static int
-gdb_print_insn_sh (memaddr, info)
- bfd_vma memaddr;
- disassemble_info *info;
+gdb_print_insn_sh (bfd_vma memaddr, disassemble_info *info)
{
if (TARGET_BYTE_ORDER == BIG_ENDIAN)
return print_insn_sh (memaddr, info);
@@ -511,8 +499,7 @@ gdb_print_insn_sh (memaddr, info)
For us, the frame address is its stack pointer value, so we look up
the function prologue to determine the caller's sp value, and return it. */
static CORE_ADDR
-sh_frame_chain (frame)
- struct frame_info *frame;
+sh_frame_chain (struct frame_info *frame)
{
if (PC_IN_CALL_DUMMY (frame->pc, frame->frame, frame->frame))
return frame->frame; /* dummy frame same as caller's frame */
@@ -529,9 +516,7 @@ sh_frame_chain (frame)
caller-saves registers for an inner frame. */
static CORE_ADDR
-sh_find_callers_reg (fi, regnum)
- struct frame_info *fi;
- int regnum;
+sh_find_callers_reg (struct frame_info *fi, int regnum)
{
for (; fi; fi = fi->next)
if (PC_IN_CALL_DUMMY (fi->pc, fi->frame, fi->frame))
@@ -556,8 +541,7 @@ sh_find_callers_reg (fi, regnum)
ways in the stack frame. sp is even more special: the address we
return for it IS the sp for the next frame. */
static void
-sh_nofp_frame_init_saved_regs (fi)
- struct frame_info *fi;
+sh_nofp_frame_init_saved_regs (struct frame_info *fi)
{
int where[NUM_REGS];
int rn;
@@ -677,8 +661,7 @@ sh_nofp_frame_init_saved_regs (fi)
}
static void
-sh_fp_frame_init_saved_regs (fi)
- struct frame_info *fi;
+sh_fp_frame_init_saved_regs (struct frame_info *fi)
{
int where[NUM_REGS];
int rn;
@@ -810,9 +793,7 @@ sh_fp_frame_init_saved_regs (fi)
/* Initialize the extra info saved in a FRAME */
static void
-sh_init_extra_frame_info (fromleaf, fi)
- int fromleaf;
- struct frame_info *fi;
+sh_init_extra_frame_info (int fromleaf, struct frame_info *fi)
{
fi->extra_info = (struct frame_extra_info *)
@@ -851,22 +832,19 @@ static sh_extract_struct_value_address (regbuf)
}
static CORE_ADDR
-sh_frame_saved_pc (frame)
- struct frame_info *frame;
+sh_frame_saved_pc (struct frame_info *frame)
{
return ((frame)->extra_info->return_pc);
}
static CORE_ADDR
-sh_frame_args_address (fi)
- struct frame_info *fi;
+sh_frame_args_address (struct frame_info *fi)
{
return (fi)->frame;
}
static CORE_ADDR
-sh_frame_locals_address (fi)
- struct frame_info *fi;
+sh_frame_locals_address (struct frame_info *fi)
{
return (fi)->frame;
}
@@ -874,7 +852,7 @@ sh_frame_locals_address (fi)
/* Discard from the stack the innermost frame,
restoring all saved registers. */
static void
-sh_pop_frame ()
+sh_pop_frame (void)
{
register struct frame_info *frame = get_current_frame ();
register CORE_ADDR fp;
@@ -942,12 +920,8 @@ sh_pop_frame ()
to R7. */
static CORE_ADDR
-sh_push_arguments (nargs, args, sp, struct_return, struct_addr)
- int nargs;
- value_ptr *args;
- CORE_ADDR sp;
- unsigned char struct_return;
- CORE_ADDR struct_addr;
+sh_push_arguments (int nargs, value_ptr *args, CORE_ADDR sp,
+ unsigned char struct_return, CORE_ADDR struct_addr)
{
int stack_offset, stack_alloc;
int argreg;
@@ -1026,9 +1000,7 @@ sh_push_arguments (nargs, args, sp, struct_return, struct_addr)
Needed for targets where we don't actually execute a JSR/BSR instruction */
static CORE_ADDR
-sh_push_return_address (pc, sp)
- CORE_ADDR pc;
- CORE_ADDR sp;
+sh_push_return_address (CORE_ADDR pc, CORE_ADDR sp)
{
write_register (PR_REGNUM, CALL_DUMMY_ADDRESS ());
return sp;
@@ -1050,14 +1022,8 @@ sh_push_return_address (pc, sp)
#if 0
void
-sh_fix_call_dummy (dummy, pc, fun, nargs, args, type, gcc_p)
- char *dummy;
- CORE_ADDR pc;
- CORE_ADDR fun;
- int nargs;
- value_ptr *args;
- struct type *type;
- int gcc_p;
+sh_fix_call_dummy (char *dummy, CORE_ADDR pc, CORE_ADDR fun, int nargs,
+ value_ptr *args, struct type *type, int gcc_p)
{
*(unsigned long *) (dummy + 8) = fun;
}
@@ -1074,10 +1040,7 @@ sh_coerce_float_to_double (struct type *formal, struct type *actual)
containing the (raw) register state a function return value of type
TYPE, and copy that, in virtual format, into VALBUF. */
static void
-sh_extract_return_value (type, regbuf, valbuf)
- struct type *type;
- char *regbuf;
- char *valbuf;
+sh_extract_return_value (struct type *type, char *regbuf, char *valbuf)
{
int len = TYPE_LENGTH (type);
@@ -1117,7 +1080,7 @@ sh3e_sh4_store_return_value (struct type *type, char *valbuf)
/* Print the registers in a form similar to the E7000 */
static void
-sh_generic_show_regs ()
+sh_generic_show_regs (void)
{
printf_filtered ("PC=%s SR=%08lx PR=%08lx MACH=%08lx MACHL=%08lx\n",
paddr (read_register (PC_REGNUM)),
@@ -1151,7 +1114,7 @@ sh_generic_show_regs ()
}
static void
-sh3_show_regs ()
+sh3_show_regs (void)
{
printf_filtered ("PC=%s SR=%08lx PR=%08lx MACH=%08lx MACHL=%08lx\n",
paddr (read_register (PC_REGNUM)),
@@ -1189,7 +1152,7 @@ sh3_show_regs ()
static void
-sh3e_show_regs ()
+sh3e_show_regs (void)
{
printf_filtered ("PC=%s SR=%08lx PR=%08lx MACH=%08lx MACHL=%08lx\n",
paddr (read_register (PC_REGNUM)),
@@ -1248,7 +1211,7 @@ sh3e_show_regs ()
}
static void
-sh3_dsp_show_regs ()
+sh3_dsp_show_regs (void)
{
printf_filtered ("PC=%s SR=%08lx PR=%08lx MACH=%08lx MACHL=%08lx\n",
paddr (read_register (PC_REGNUM)),
@@ -1305,7 +1268,7 @@ sh3_dsp_show_regs ()
}
static void
-sh4_show_regs ()
+sh4_show_regs (void)
{
int pr = read_register (gdbarch_tdep (current_gdbarch)->FPSCR_REGNUM) & 0x80000;
printf_filtered ("PC=%s SR=%08lx PR=%08lx MACH=%08lx MACHL=%08lx\n",
@@ -1369,7 +1332,7 @@ sh4_show_regs ()
}
static void
-sh_dsp_show_regs ()
+sh_dsp_show_regs (void)
{
printf_filtered ("PC=%s SR=%08lx PR=%08lx MACH=%08lx MACHL=%08lx\n",
paddr (read_register (PC_REGNUM)),
@@ -1430,15 +1393,13 @@ void sh_show_regs_command (char *args, int from_tty)
/* Index within `registers' of the first byte of the space for
register N. */
static int
-sh_default_register_byte (reg_nr)
- int reg_nr;
+sh_default_register_byte (int reg_nr)
{
return (reg_nr * 4);
}
static int
-sh_sh4_register_byte (reg_nr)
- int reg_nr;
+sh_sh4_register_byte (int reg_nr)
{
if (reg_nr >= gdbarch_tdep (current_gdbarch)->DR0_REGNUM
&& reg_nr <= gdbarch_tdep (current_gdbarch)->DR14_REGNUM)
@@ -1453,15 +1414,13 @@ sh_sh4_register_byte (reg_nr)
/* Number of bytes of storage in the actual machine representation for
register REG_NR. */
static int
-sh_default_register_raw_size (reg_nr)
- int reg_nr;
+sh_default_register_raw_size (int reg_nr)
{
return 4;
}
static int
-sh_sh4_register_raw_size (reg_nr)
- int reg_nr;
+sh_sh4_register_raw_size (int reg_nr)
{
if (reg_nr >= gdbarch_tdep (current_gdbarch)->DR0_REGNUM
&& reg_nr <= gdbarch_tdep (current_gdbarch)->DR14_REGNUM)
@@ -1476,8 +1435,7 @@ sh_sh4_register_raw_size (reg_nr)
/* Number of bytes of storage in the program's representation
for register N. */
static int
-sh_register_virtual_size (reg_nr)
- int reg_nr;
+sh_register_virtual_size (int reg_nr)
{
return 4;
}
@@ -1486,8 +1444,7 @@ sh_register_virtual_size (reg_nr)
of data in register N. */
static struct type *
-sh_sh3e_register_virtual_type (reg_nr)
- int reg_nr;
+sh_sh3e_register_virtual_type (int reg_nr)
{
if ((reg_nr >= FP0_REGNUM
&& (reg_nr <= gdbarch_tdep (current_gdbarch)->FP15_REGNUM))
@@ -1498,8 +1455,7 @@ sh_sh3e_register_virtual_type (reg_nr)
}
static struct type *
-sh_sh4_register_virtual_type (reg_nr)
- int reg_nr;
+sh_sh4_register_virtual_type (int reg_nr)
{
if ((reg_nr >= FP0_REGNUM
&& (reg_nr <= gdbarch_tdep (current_gdbarch)->FP15_REGNUM))
@@ -1525,8 +1481,7 @@ sh_sh4_build_float_register_type (int high)
}
static struct type *
-sh_default_register_virtual_type (reg_nr)
- int reg_nr;
+sh_default_register_virtual_type (int reg_nr)
{
return builtin_type_int;
}
@@ -1846,9 +1801,7 @@ sh_do_registers_info (int regnum, int fpregs)
static gdbarch_init_ftype sh_gdbarch_init;
static struct gdbarch *
-sh_gdbarch_init (info, arches)
- struct gdbarch_info info;
- struct gdbarch_list *arches;
+sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
{
static LONGEST sh_call_dummy_words[] = {0};
struct gdbarch *gdbarch;
@@ -2129,7 +2082,7 @@ sh_gdbarch_init (info, arches)
}
void
-_initialize_sh_tdep ()
+_initialize_sh_tdep (void)
{
struct cmd_list_element *c;
diff --git a/gdb/sh3-rom.c b/gdb/sh3-rom.c
index 825f8e9..47c147b 100644
--- a/gdb/sh3-rom.c
+++ b/gdb/sh3-rom.c
@@ -32,11 +32,7 @@ static int parallel_in_use;
static void sh3_open (char *args, int from_tty);
static void
-sh3_supply_register (regname, regnamelen, val, vallen)
- char *regname;
- int regnamelen;
- char *val;
- int vallen;
+sh3_supply_register (char *regname, int regnamelen, char *val, int vallen)
{
int numregs;
int regno;
@@ -122,10 +118,7 @@ sh3_supply_register (regname, regnamelen, val, vallen)
}
static void
-sh3_load (desc, file, hashmark)
- serial_t desc;
- char *file;
- int hashmark;
+sh3_load (serial_t desc, char *file, int hashmark)
{
if (parallel_in_use)
{
@@ -249,9 +242,7 @@ init_sh3_cmds (void)
static struct monitor_ops sh3e_cmds;
static void
-sh3_open (args, from_tty)
- char *args;
- int from_tty;
+sh3_open (char *args, int from_tty)
{
char *serial_port_name = args;
char *parallel_port_name = 0;
@@ -291,9 +282,7 @@ sh3_open (args, from_tty)
static void
-sh3e_open (args, from_tty)
- char *args;
- int from_tty;
+sh3e_open (char *args, int from_tty)
{
char *serial_port_name = args;
char *parallel_port_name = 0;
@@ -339,8 +328,7 @@ sh3e_open (args, from_tty)
}
static void
-sh3_close (quitting)
- int quitting;
+sh3_close (int quitting)
{
monitor_close (quitting);
if (parallel_in_use)
@@ -351,7 +339,7 @@ sh3_close (quitting)
}
void
-_initialize_sh3_rom ()
+_initialize_sh3_rom (void)
{
init_sh3_cmds ();
init_monitor_ops (&sh3_ops);
diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c
index 563dbd0..0ddeb26 100644
--- a/gdb/sol-thread.c
+++ b/gdb/sol-thread.c
@@ -192,8 +192,7 @@ static td_err_e (*p_td_thr_setgregs) (const td_thrhandle_t * th_p,
*/
static char *
-td_err_string (errcode)
- td_err_e errcode;
+td_err_string (td_err_e errcode)
{
static struct string_map
td_err_table[] =
@@ -251,8 +250,7 @@ td_err_string (errcode)
*/
static char *
-td_state_string (statecode)
- td_thr_state_e statecode;
+td_state_string (td_thr_state_e statecode)
{
static struct string_map
td_thr_state_table[] =
@@ -302,9 +300,7 @@ td_state_string (statecode)
*/
static int
-thread_to_lwp (thread_id, default_lwp)
- int thread_id;
- int default_lwp;
+thread_to_lwp (int thread_id, int default_lwp)
{
td_thrinfo_t ti;
td_thrhandle_t th;
@@ -360,8 +356,7 @@ thread_to_lwp (thread_id, default_lwp)
*/
static int
-lwp_to_thread (lwp)
- int lwp;
+lwp_to_thread (int lwp)
{
td_thrinfo_t ti;
td_thrhandle_t th;
@@ -426,14 +421,13 @@ lwp_to_thread (lwp)
static struct cleanup *
-save_inferior_pid ()
+save_inferior_pid (void)
{
return make_cleanup (restore_inferior_pid, (void *) inferior_pid);
}
static void
-restore_inferior_pid (pid)
- void *pid;
+restore_inferior_pid (void *pid)
{
inferior_pid = (int) pid;
}
@@ -445,9 +439,7 @@ restore_inferior_pid (pid)
/* ARGSUSED */
static void
-sol_thread_open (arg, from_tty)
- char *arg;
- int from_tty;
+sol_thread_open (char *arg, int from_tty)
{
procfs_ops.to_open (arg, from_tty);
}
@@ -456,9 +448,7 @@ sol_thread_open (arg, from_tty)
and wait for the trace-trap that results from attaching. */
static void
-sol_thread_attach (args, from_tty)
- char *args;
- int from_tty;
+sol_thread_attach (char *args, int from_tty)
{
procfs_ops.to_attach (args, from_tty);
/* Must get symbols from solibs before libthread_db can run! */
@@ -486,9 +476,7 @@ sol_thread_attach (args, from_tty)
started via the normal ptrace (PTRACE_TRACEME). */
static void
-sol_thread_detach (args, from_tty)
- char *args;
- int from_tty;
+sol_thread_detach (char *args, int from_tty)
{
inferior_pid = PIDGET (main_ph.pid);
unpush_target (&sol_thread_ops);
@@ -501,10 +489,7 @@ sol_thread_detach (args, from_tty)
for procfs. */
static void
-sol_thread_resume (pid, step, signo)
- int pid;
- int step;
- enum target_signal signo;
+sol_thread_resume (int pid, int step, enum target_signal signo)
{
struct cleanup *old_chain;
@@ -535,9 +520,7 @@ sol_thread_resume (pid, step, signo)
to a LWP id, and vice versa on the way out. */
static int
-sol_thread_wait (pid, ourstatus)
- int pid;
- struct target_waitstatus *ourstatus;
+sol_thread_wait (int pid, struct target_waitstatus *ourstatus)
{
int rtnval;
int save_pid;
@@ -591,8 +574,7 @@ sol_thread_wait (pid, ourstatus)
}
static void
-sol_thread_fetch_registers (regno)
- int regno;
+sol_thread_fetch_registers (int regno)
{
thread_t thread;
td_thrhandle_t thandle;
@@ -670,8 +652,7 @@ sol_thread_fetch_registers (regno)
}
static void
-sol_thread_store_registers (regno)
- int regno;
+sol_thread_store_registers (int regno)
{
thread_t thread;
td_thrhandle_t thandle;
@@ -765,7 +746,7 @@ sol_thread_store_registers (regno)
debugged. */
static void
-sol_thread_prepare_to_store ()
+sol_thread_prepare_to_store (void)
{
procfs_ops.to_prepare_to_store ();
}
@@ -802,21 +783,19 @@ sol_thread_xfer_memory (memaddr, myaddr, len, dowrite, target)
/* Print status information about what we're accessing. */
static void
-sol_thread_files_info (ignore)
- struct target_ops *ignore;
+sol_thread_files_info (struct target_ops *ignore)
{
procfs_ops.to_files_info (ignore);
}
static void
-sol_thread_kill_inferior ()
+sol_thread_kill_inferior (void)
{
procfs_ops.to_kill ();
}
static void
-sol_thread_notice_signals (pid)
- int pid;
+sol_thread_notice_signals (int pid)
{
procfs_ops.to_notice_signals (PIDGET (pid));
}
@@ -824,10 +803,7 @@ sol_thread_notice_signals (pid)
/* Fork an inferior process, and start debugging it with /proc. */
static void
-sol_thread_create_inferior (exec_file, allargs, env)
- char *exec_file;
- char *allargs;
- char **env;
+sol_thread_create_inferior (char *exec_file, char *allargs, char **env)
{
procfs_ops.to_create_inferior (exec_file, allargs, env);
@@ -860,8 +836,7 @@ sol_thread_create_inferior (exec_file, allargs, env)
static void (*target_new_objfile_chain) (struct objfile *);
void
-sol_thread_new_objfile (objfile)
- struct objfile *objfile;
+sol_thread_new_objfile (struct objfile *objfile)
{
td_err_e val;
@@ -905,7 +880,7 @@ quit:
/* Clean up after the inferior dies. */
static void
-sol_thread_mourn_inferior ()
+sol_thread_mourn_inferior (void)
{
unpush_target (&sol_thread_ops);
procfs_ops.to_mourn_inferior ();
@@ -914,7 +889,7 @@ sol_thread_mourn_inferior ()
/* Mark our target-struct as eligible for stray "run" and "attach" commands. */
static int
-sol_thread_can_run ()
+sol_thread_can_run (void)
{
return procfs_suppress_run;
}
@@ -936,8 +911,7 @@ sol_thread_can_run ()
*/
static int
-sol_thread_alive (pid)
- int pid;
+sol_thread_alive (int pid)
{
if (is_thread (pid)) /* non-kernel thread */
{
@@ -962,7 +936,7 @@ sol_thread_alive (pid)
}
static void
-sol_thread_stop ()
+sol_thread_stop (void)
{
procfs_ops.to_stop ();
}
@@ -1359,8 +1333,7 @@ ps_lgetLDT (gdb_ps_prochandle_t ph, lwpid_t lwpid,
/* Convert a pid to printable form. */
char *
-solaris_pid_to_str (pid)
- int pid;
+solaris_pid_to_str (int pid)
{
static char buf[100];
@@ -1395,9 +1368,7 @@ solaris_pid_to_str (pid)
kernel) thread. */
static int
-sol_find_new_threads_callback (th, ignored)
- const td_thrhandle_t *th;
- void *ignored;
+sol_find_new_threads_callback (const td_thrhandle_t *th, void *ignored)
{
td_err_e retval;
td_thrinfo_t ti;
@@ -1415,7 +1386,7 @@ sol_find_new_threads_callback (th, ignored)
}
static void
-sol_find_new_threads ()
+sol_find_new_threads (void)
{
/* don't do anything if init failed to resolve the libthread_db library */
if (!procfs_suppress_run)
@@ -1433,32 +1404,26 @@ sol_find_new_threads ()
}
static void
-sol_core_open (filename, from_tty)
- char *filename;
- int from_tty;
+sol_core_open (char *filename, int from_tty)
{
orig_core_ops.to_open (filename, from_tty);
}
static void
-sol_core_close (quitting)
- int quitting;
+sol_core_close (int quitting)
{
orig_core_ops.to_close (quitting);
}
static void
-sol_core_detach (args, from_tty)
- char *args;
- int from_tty;
+sol_core_detach (char *args, int from_tty)
{
unpush_target (&core_ops);
orig_core_ops.to_detach (args, from_tty);
}
static void
-sol_core_files_info (t)
- struct target_ops *t;
+sol_core_files_info (struct target_ops *t)
{
orig_core_ops.to_files_info (t);
}
@@ -1468,9 +1433,7 @@ sol_core_files_info (t)
inferior. Print anything interesting that we can think of. */
static int
-info_cb (th, s)
- const td_thrhandle_t *th;
- void *s;
+info_cb (const td_thrhandle_t *th, void *s)
{
td_err_e ret;
td_thrinfo_t ti;
@@ -1540,9 +1503,7 @@ info_cb (th, s)
/* List some state about each Solaris user thread in the inferior. */
static void
-info_solthreads (args, from_tty)
- char *args;
- int from_tty;
+info_solthreads (char *args, int from_tty)
{
p_td_ta_thr_iter (main_ta, info_cb, args,
TD_THR_ANY_STATE, TD_THR_LOWEST_PRIORITY,
@@ -1550,16 +1511,14 @@ info_solthreads (args, from_tty)
}
static int
-ignore (addr, contents)
- CORE_ADDR addr;
- char *contents;
+ignore (CORE_ADDR addr, char *contents)
{
return 0;
}
static void
-init_sol_thread_ops ()
+init_sol_thread_ops (void)
{
sol_thread_ops.to_shortname = "solaris-threads";
sol_thread_ops.to_longname = "Solaris threads and pthread.";
@@ -1607,7 +1566,7 @@ init_sol_thread_ops ()
static void
-init_sol_core_ops ()
+init_sol_core_ops (void)
{
sol_core_ops.to_shortname = "solaris-core";
sol_core_ops.to_longname = "Solaris core threads and pthread.";
@@ -1660,7 +1619,7 @@ init_sol_core_ops ()
int coreops_suppress_target = 1;
void
-_initialize_sol_thread ()
+_initialize_sol_thread (void)
{
void *dlhandle;
diff --git a/gdb/solib.c b/gdb/solib.c
index d5afd5a..b6cfcaa 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -265,8 +265,7 @@ static char *solib_search_path = NULL;
*/
static int
-solib_map_sections (arg)
- PTR arg;
+solib_map_sections (PTR arg)
{
struct so_list *so = (struct so_list *) arg; /* catch_errors bogon */
char *filename;
@@ -374,7 +373,7 @@ solib_map_sections (arg)
/* Allocate the runtime common object file. */
static void
-allocate_rt_common_objfile ()
+allocate_rt_common_objfile (void)
{
struct objfile *objfile;
struct objfile *last_one;
@@ -413,8 +412,7 @@ allocate_rt_common_objfile ()
objfile. */
static void
-solib_add_common_symbols (rtc_symp)
- CORE_ADDR rtc_symp;
+solib_add_common_symbols (CORE_ADDR rtc_symp)
{
struct rtc_symb inferior_rtc_symb;
struct nlist inferior_rtc_nlist;
@@ -500,9 +498,7 @@ static CORE_ADDR bfd_lookup_symbol (bfd *, char *);
*/
static CORE_ADDR
-bfd_lookup_symbol (abfd, symname)
- bfd *abfd;
- char *symname;
+bfd_lookup_symbol (bfd *abfd, char *symname)
{
unsigned int storage_needed;
asymbol *sym;
@@ -590,9 +586,7 @@ static int look_for_base (int, CORE_ADDR);
*/
static int
-look_for_base (fd, baseaddr)
- int fd;
- CORE_ADDR baseaddr;
+look_for_base (int fd, CORE_ADDR baseaddr)
{
bfd *interp_bfd;
CORE_ADDR address = 0;
@@ -689,7 +683,7 @@ look_for_base (fd, baseaddr)
*/
static CORE_ADDR
-elf_locate_base ()
+elf_locate_base (void)
{
sec_ptr dyninfo_sect;
int dyninfo_sect_size;
@@ -819,7 +813,7 @@ elf_locate_base ()
*/
static CORE_ADDR
-locate_base ()
+locate_base (void)
{
#ifndef SVR4_SHARED_LIBS
@@ -885,7 +879,7 @@ locate_base ()
does the reading. */
static CORE_ADDR
-first_link_map_member ()
+first_link_map_member (void)
{
CORE_ADDR lm = 0;
@@ -1028,8 +1022,7 @@ free_so (struct so_list *so)
non-zero iff SONAME matches one of the known main executable names. */
static int
-match_main (soname)
- char *soname;
+match_main (char *soname)
{
char **mainp;
@@ -1063,7 +1056,7 @@ match_main (soname)
we provide values for. */
static struct so_list *
-current_sos ()
+current_sos (void)
{
CORE_ADDR lm;
struct so_list *head = 0;
@@ -1147,8 +1140,7 @@ current_sos ()
/* A small stub to get us past the arg-passing pinhole of catch_errors. */
static int
-symbol_add_stub (arg)
- PTR arg;
+symbol_add_stub (PTR arg)
{
register struct so_list *so = (struct so_list *) arg; /* catch_errs bogon */
struct section_addr_info *sap;
@@ -1475,9 +1467,7 @@ solib_add (char *pattern, int from_tty, struct target_ops *target)
*/
static void
-info_sharedlibrary_command (ignore, from_tty)
- char *ignore;
- int from_tty;
+info_sharedlibrary_command (char *ignore, int from_tty)
{
register struct so_list *so = NULL; /* link map state variable */
int header_done = 0;
@@ -1559,8 +1549,7 @@ info_sharedlibrary_command (ignore, from_tty)
*/
char *
-solib_address (address)
- CORE_ADDR address;
+solib_address (CORE_ADDR address)
{
register struct so_list *so = 0; /* link map state variable */
@@ -1576,7 +1565,7 @@ solib_address (address)
/* Called by free_all_symtabs */
void
-clear_solib ()
+clear_solib (void)
{
/* This function is expected to handle ELF shared libraries. It is
also used on Solaris, which can run either ELF or a.out binaries
@@ -1613,8 +1602,7 @@ clear_solib ()
}
static void
-do_clear_solib (dummy)
- PTR dummy;
+do_clear_solib (PTR dummy)
{
solib_cleanup_queued = 0;
clear_solib ();
@@ -1631,8 +1619,7 @@ static CORE_ADDR interp_plt_sect_low;
static CORE_ADDR interp_plt_sect_high;
int
-in_svr4_dynsym_resolve_code (pc)
- CORE_ADDR pc;
+in_svr4_dynsym_resolve_code (CORE_ADDR pc)
{
return ((pc >= interp_text_sect_low && pc < interp_text_sect_high)
|| (pc >= interp_plt_sect_low && pc < interp_plt_sect_high)
@@ -1660,7 +1647,7 @@ in_svr4_dynsym_resolve_code (pc)
#ifndef SVR4_SHARED_LIBS
static int
-disable_break ()
+disable_break (void)
{
int status = 1;
@@ -1753,7 +1740,7 @@ disable_break ()
*/
static int
-enable_break ()
+enable_break (void)
{
int success = 0;
@@ -1966,7 +1953,7 @@ enable_break ()
*/
void
-solib_create_inferior_hook ()
+solib_create_inferior_hook (void)
{
/* If we are using the BKPT_AT_SYMBOL code, then we don't need the base
yet. In fact, in the case of a SunOS4 executable being run on
@@ -2054,7 +2041,7 @@ solib_create_inferior_hook ()
*/
static void
-special_symbol_handling ()
+special_symbol_handling (void)
{
#ifndef SVR4_SHARED_LIBS
int j;
@@ -2112,9 +2099,7 @@ special_symbol_handling ()
*/
static void
-sharedlibrary_command (args, from_tty)
- char *args;
- int from_tty;
+sharedlibrary_command (char *args, int from_tty)
{
dont_repeat ();
solib_add (args, from_tty, (struct target_ops *) 0);
@@ -2123,7 +2108,7 @@ sharedlibrary_command (args, from_tty)
#endif /* HAVE_LINK_H */
void
-_initialize_solib ()
+_initialize_solib (void)
{
#ifdef HAVE_LINK_H
diff --git a/gdb/somread.c b/gdb/somread.c
index b2aecc0..92d5492 100644
--- a/gdb/somread.c
+++ b/gdb/somread.c
@@ -80,10 +80,8 @@ extern void do_pxdb (bfd *);
*/
static void
-som_symtab_read (abfd, objfile, section_offsets)
- bfd *abfd;
- struct objfile *objfile;
- struct section_offsets *section_offsets;
+som_symtab_read (bfd *abfd, struct objfile *objfile,
+ struct section_offsets *section_offsets)
{
unsigned int number_of_symbols;
int val, dynamic;
@@ -347,9 +345,7 @@ som_symtab_read (abfd, objfile, section_offsets)
capability even for files compiled without -g. */
static void
-som_symfile_read (objfile, mainline)
- struct objfile *objfile;
- int mainline;
+som_symfile_read (struct objfile *objfile, int mainline)
{
bfd *abfd = objfile->obfd;
struct cleanup *back_to;
@@ -410,8 +406,7 @@ som_symfile_read (objfile, mainline)
We reinitialize buildsym, since we may be reading stabs from a SOM file. */
static void
-som_new_init (ignore)
- struct objfile *ignore;
+som_new_init (struct objfile *ignore)
{
stabsread_new_init ();
buildsym_new_init ();
@@ -423,8 +418,7 @@ som_new_init (ignore)
objfile struct from the global list of known objfiles. */
static void
-som_symfile_finish (objfile)
- struct objfile *objfile;
+som_symfile_finish (struct objfile *objfile)
{
if (objfile->sym_stab_info != NULL)
{
@@ -436,8 +430,7 @@ som_symfile_finish (objfile)
/* SOM specific initialization routine for reading symbols. */
static void
-som_symfile_init (objfile)
- struct objfile *objfile;
+som_symfile_init (struct objfile *objfile)
{
/* SOM objects may be reordered, so set OBJF_REORDERED. If we
find this causes a significant slowdown in gdb then we could
@@ -451,9 +444,7 @@ som_symfile_init (objfile)
Plain and simple for now. */
static void
-som_symfile_offsets (objfile, addrs)
- struct objfile *objfile;
- struct section_addr_info *addrs;
+som_symfile_offsets (struct objfile *objfile, struct section_addr_info *addrs)
{
int i;
CORE_ADDR text_addr;
@@ -497,8 +488,7 @@ som_symfile_offsets (objfile, addrs)
with as "loc_indirect" vars.)
Return value = number of import symbols read in. */
int
-init_import_symbols (objfile)
- struct objfile *objfile;
+init_import_symbols (struct objfile *objfile)
{
unsigned int import_list;
unsigned int import_list_size;
@@ -618,8 +608,7 @@ init_import_symbols (objfile)
with as "loc_indirect" vars.)
Return value = number of import symbols read in. */
int
-init_export_symbols (objfile)
- struct objfile *objfile;
+init_export_symbols (struct objfile *objfile)
{
unsigned int export_list;
unsigned int export_list_size;
@@ -759,7 +748,7 @@ static struct sym_fns som_sym_fns =
};
void
-_initialize_somread ()
+_initialize_somread (void)
{
add_symtab_fns (&som_sym_fns);
}
diff --git a/gdb/somsolib.c b/gdb/somsolib.c
index d5d5341..fa65666 100644
--- a/gdb/somsolib.c
+++ b/gdb/somsolib.c
@@ -208,8 +208,7 @@ static void som_sharedlibrary_info_command (char *, int);
static void som_solib_sharedlibrary_command (char *, int);
static LONGEST
-som_solib_sizeof_symbol_table (filename)
- char *filename;
+som_solib_sizeof_symbol_table (char *filename)
{
bfd *abfd;
int desc;
@@ -280,11 +279,8 @@ som_solib_sizeof_symbol_table (filename)
static void
-som_solib_add_solib_objfile (so, name, from_tty, text_addr)
- struct so_list *so;
- char *name;
- int from_tty;
- CORE_ADDR text_addr;
+som_solib_add_solib_objfile (struct so_list *so, char *name, int from_tty,
+ CORE_ADDR text_addr)
{
obj_private_data_t *obj_private;
struct section_addr_info section_addrs;
@@ -321,12 +317,8 @@ som_solib_add_solib_objfile (so, name, from_tty, text_addr)
static void
-som_solib_load_symbols (so, name, from_tty, text_addr, target)
- struct so_list *so;
- char *name;
- int from_tty;
- CORE_ADDR text_addr;
- struct target_ops *target;
+som_solib_load_symbols (struct so_list *so, char *name, int from_tty,
+ CORE_ADDR text_addr, struct target_ops *target)
{
struct section_table *p;
int status;
@@ -397,10 +389,7 @@ som_solib_load_symbols (so, name, from_tty, text_addr, target)
be exceeded. */
void
-som_solib_add (arg_string, from_tty, target)
- char *arg_string;
- int from_tty;
- struct target_ops *target;
+som_solib_add (char *arg_string, int from_tty, struct target_ops *target)
{
struct minimal_symbol *msymbol;
struct so_list *so_list_tail;
@@ -834,7 +823,7 @@ err:
means running until the "_start" is called. */
void
-som_solib_create_inferior_hook ()
+som_solib_create_inferior_hook (void)
{
struct minimal_symbol *msymbol;
unsigned int dld_flags, status, have_endo;
@@ -1026,8 +1015,7 @@ keep_going:
static void
-reset_inferior_pid (saved_inferior_pid)
- int saved_inferior_pid;
+reset_inferior_pid (int saved_inferior_pid)
{
inferior_pid = saved_inferior_pid;
}
@@ -1044,8 +1032,7 @@ reset_inferior_pid (saved_inferior_pid)
GDB may already have been notified of.
*/
void
-som_solib_remove_inferior_hook (pid)
- int pid;
+som_solib_remove_inferior_hook (int pid)
{
CORE_ADDR addr;
struct minimal_symbol *msymbol;
@@ -1095,11 +1082,8 @@ som_solib_remove_inferior_hook (pid)
som_solib_create_inferior_hook.
*/
void
-som_solib_create_catch_load_hook (pid, tempflag, filename, cond_string)
- int pid;
- int tempflag;
- char *filename;
- char *cond_string;
+som_solib_create_catch_load_hook (int pid, int tempflag, char *filename,
+ char *cond_string)
{
create_solib_load_event_breakpoint ("__d_trap", tempflag, filename, cond_string);
}
@@ -1116,18 +1100,14 @@ som_solib_create_catch_load_hook (pid, tempflag, filename, cond_string)
som_solib_create_inferior_hook.
*/
void
-som_solib_create_catch_unload_hook (pid, tempflag, filename, cond_string)
- int pid;
- int tempflag;
- char *filename;
- char *cond_string;
+som_solib_create_catch_unload_hook (int pid, int tempflag, char *filename,
+ char *cond_string)
{
create_solib_unload_event_breakpoint ("__d_trap", tempflag, filename, cond_string);
}
int
-som_solib_have_load_event (pid)
- int pid;
+som_solib_have_load_event (int pid)
{
CORE_ADDR event_kind;
@@ -1136,8 +1116,7 @@ som_solib_have_load_event (pid)
}
int
-som_solib_have_unload_event (pid)
- int pid;
+som_solib_have_unload_event (int pid)
{
CORE_ADDR event_kind;
@@ -1146,8 +1125,7 @@ som_solib_have_unload_event (pid)
}
static char *
-som_solib_library_pathname (pid)
- int pid;
+som_solib_library_pathname (int pid)
{
CORE_ADDR dll_handle_address;
CORE_ADDR dll_pathname_address;
@@ -1177,8 +1155,7 @@ som_solib_library_pathname (pid)
}
char *
-som_solib_loaded_library_pathname (pid)
- int pid;
+som_solib_loaded_library_pathname (int pid)
{
if (!som_solib_have_load_event (pid))
error ("Must have a load event to use this query");
@@ -1187,8 +1164,7 @@ som_solib_loaded_library_pathname (pid)
}
char *
-som_solib_unloaded_library_pathname (pid)
- int pid;
+som_solib_unloaded_library_pathname (int pid)
{
if (!som_solib_have_unload_event (pid))
error ("Must have an unload event to use this query");
@@ -1197,7 +1173,7 @@ som_solib_unloaded_library_pathname (pid)
}
static void
-som_solib_desire_dynamic_linker_symbols ()
+som_solib_desire_dynamic_linker_symbols (void)
{
struct objfile *objfile;
struct unwind_table_entry *u;
@@ -1295,9 +1271,7 @@ som_solib_desire_dynamic_linker_symbols ()
}
int
-som_solib_in_dynamic_linker (pid, pc)
- int pid;
- CORE_ADDR pc;
+som_solib_in_dynamic_linker (int pid, CORE_ADDR pc)
{
struct unwind_table_entry *u_pc;
@@ -1344,8 +1318,7 @@ som_solib_in_dynamic_linker (pid, pc)
ADDR isn't in any known shared library, return zero. */
CORE_ADDR
-som_solib_get_got_by_pc (addr)
- CORE_ADDR addr;
+som_solib_get_got_by_pc (CORE_ADDR addr)
{
struct so_list *so_list = so_list_head;
CORE_ADDR got_value = 0;
@@ -1370,8 +1343,7 @@ som_solib_get_got_by_pc (addr)
/* this function is used in hppa_fix_call_dummy in hppa-tdep.c */
CORE_ADDR
-som_solib_get_solib_by_pc (addr)
- CORE_ADDR addr;
+som_solib_get_solib_by_pc (CORE_ADDR addr)
{
struct so_list *so_list = so_list_head;
@@ -1392,9 +1364,8 @@ som_solib_get_solib_by_pc (addr)
int
-som_solib_section_offsets (objfile, offsets)
- struct objfile *objfile;
- struct section_offsets *offsets;
+som_solib_section_offsets (struct objfile *objfile,
+ struct section_offsets *offsets)
{
struct so_list *so_list = so_list_head;
@@ -1438,9 +1409,7 @@ som_solib_section_offsets (objfile, offsets)
/* Dump information about all the currently loaded shared libraries. */
static void
-som_sharedlibrary_info_command (ignore, from_tty)
- char *ignore;
- int from_tty;
+som_sharedlibrary_info_command (char *ignore, int from_tty)
{
struct so_list *so_list = so_list_head;
@@ -1486,9 +1455,7 @@ som_sharedlibrary_info_command (ignore, from_tty)
}
static void
-som_solib_sharedlibrary_command (args, from_tty)
- char *args;
- int from_tty;
+som_solib_sharedlibrary_command (char *args, int from_tty)
{
dont_repeat ();
som_solib_add (args, from_tty, (struct target_ops *) 0);
@@ -1497,8 +1464,7 @@ som_solib_sharedlibrary_command (args, from_tty)
char *
-som_solib_address (addr)
- CORE_ADDR addr;
+som_solib_address (CORE_ADDR addr)
{
struct so_list *so = so_list_head;
@@ -1520,7 +1486,7 @@ som_solib_address (addr)
void
-som_solib_restart ()
+som_solib_restart (void)
{
struct so_list *sl = so_list_head;
@@ -1569,7 +1535,7 @@ som_solib_restart ()
void
-_initialize_som_solib ()
+_initialize_som_solib (void)
{
add_com ("sharedlibrary", class_files, som_solib_sharedlibrary_command,
"Load shared object library symbols for files matching REGEXP.");
@@ -1604,8 +1570,7 @@ Otherwise, symbols must be loaded manually, using `sharedlibrary'.",
/* Get some HPUX-specific data from a shared lib.
*/
CORE_ADDR
-so_lib_thread_start_addr (so)
- struct so_list *so;
+so_lib_thread_start_addr (struct so_list *so)
{
return so->som_solib.tsd_start_addr;
}
diff --git a/gdb/source.c b/gdb/source.c
index f15badf..49eb3bc 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -130,8 +130,7 @@ static int last_source_error = 0;
before we need to would make things slower than necessary. */
void
-select_source_symtab (s)
- register struct symtab *s;
+select_source_symtab (register struct symtab *s)
{
struct symtabs_and_lines sals;
struct symtab_and_line sal;
@@ -213,9 +212,7 @@ select_source_symtab (s)
}
static void
-show_directories (ignore, from_tty)
- char *ignore;
- int from_tty;
+show_directories (char *ignore, int from_tty)
{
puts_filtered ("Source directories searched: ");
puts_filtered (source_path);
@@ -227,7 +224,7 @@ show_directories (ignore, from_tty)
may be found in a different directory now. */
void
-forget_cached_source_info ()
+forget_cached_source_info (void)
{
register struct symtab *s;
register struct objfile *objfile;
@@ -251,7 +248,7 @@ forget_cached_source_info ()
}
void
-init_source_path ()
+init_source_path (void)
{
char buf[20];
@@ -263,9 +260,7 @@ init_source_path ()
/* Add zero or more directories to the front of the source path. */
void
-directory_command (dirname, from_tty)
- char *dirname;
- int from_tty;
+directory_command (char *dirname, int from_tty)
{
dont_repeat ();
/* FIXME, this goes to "delete dir"... */
@@ -290,9 +285,7 @@ directory_command (dirname, from_tty)
/* Add zero or more directories to the front of an arbitrary path. */
void
-mod_path (dirname, which_path)
- char *dirname;
- char **which_path;
+mod_path (char *dirname, char **which_path)
{
char *old = *which_path;
int prefix = 0;
@@ -472,9 +465,7 @@ mod_path (dirname, which_path)
static void
-source_info (ignore, from_tty)
- char *ignore;
- int from_tty;
+source_info (char *ignore, int from_tty)
{
register struct symtab *s = current_source_symtab;
@@ -519,13 +510,8 @@ source_info (ignore, from_tty)
/* >>>> This should only allow files of certain types,
>>>> eg executable, non-directory */
int
-openp (path, try_cwd_first, string, mode, prot, filename_opened)
- char *path;
- int try_cwd_first;
- char *string;
- int mode;
- int prot;
- char **filename_opened;
+openp (char *path, int try_cwd_first, char *string, int mode, int prot,
+ char **filename_opened)
{
register int fd;
register char *filename;
@@ -653,9 +639,7 @@ done:
Else, this functions returns 0, and FULL_PATHNAME is set to NULL.
*/
int
-source_full_path_of (filename, full_pathname)
- char *filename;
- char **full_pathname;
+source_full_path_of (char *filename, char **full_pathname)
{
int fd;
@@ -675,8 +659,7 @@ source_full_path_of (filename, full_pathname)
negative number for error. */
int
-open_source_file (s)
- struct symtab *s;
+open_source_file (struct symtab *s)
{
char *path = source_path;
char *p;
@@ -753,8 +736,7 @@ open_source_file (s)
if no symtab. */
char *
-symtab_to_filename (s)
- struct symtab *s;
+symtab_to_filename (struct symtab *s)
{
int fd;
@@ -785,9 +767,7 @@ symtab_to_filename (s)
All set S->nlines to the number of such lines. */
void
-find_source_lines (s, desc)
- struct symtab *s;
- int desc;
+find_source_lines (struct symtab *s, int desc)
{
struct stat st;
register char *data, *p, *end;
@@ -890,9 +870,7 @@ find_source_lines (s, desc)
#if 0 /* Currently unused */
int
-source_line_charpos (s, line)
- struct symtab *s;
- int line;
+source_line_charpos (struct symtab *s, int line)
{
if (!s)
return 0;
@@ -906,9 +884,7 @@ source_line_charpos (s, line)
/* Return the line number of character position POS in symtab S. */
int
-source_charpos_line (s, chr)
- register struct symtab *s;
- register int chr;
+source_charpos_line (register struct symtab *s, register int chr)
{
register int line = 0;
register int *lnp;
@@ -936,9 +912,7 @@ source_charpos_line (s, chr)
or to 0 if the file is not found. */
static int
-get_filename_and_charpos (s, fullname)
- struct symtab *s;
- char **fullname;
+get_filename_and_charpos (struct symtab *s, char **fullname)
{
register int desc, linenums_changed = 0;
@@ -969,11 +943,8 @@ get_filename_and_charpos (s, fullname)
Return 1 if successful, 0 if could not find the file. */
int
-identify_source_line (s, line, mid_statement, pc)
- struct symtab *s;
- int line;
- int mid_statement;
- CORE_ADDR pc;
+identify_source_line (struct symtab *s, int line, int mid_statement,
+ CORE_ADDR pc)
{
if (s->line_charpos == 0)
get_filename_and_charpos (s, (char **) NULL);
@@ -999,11 +970,7 @@ identify_source_line (s, line, mid_statement, pc)
static void print_source_lines_base (struct symtab *s, int line, int stopline,
int noerror);
static void
-print_source_lines_base (s, line, stopline, noerror)
- struct symtab *s;
- int line;
- int stopline;
- int noerror;
+print_source_lines_base (struct symtab *s, int line, int stopline, int noerror)
{
register int c;
register int desc;
@@ -1157,9 +1124,7 @@ print_source_lines_base (s, line, stopline, noerror)
window otherwise it is simply printed */
void
-print_source_lines (s, line, stopline, noerror)
- struct symtab *s;
- int line, stopline, noerror;
+print_source_lines (struct symtab *s, int line, int stopline, int noerror)
{
#if defined(TUI)
if (!tui_version ||
@@ -1196,8 +1161,7 @@ extern void tui_vUpdateSourceWindowsWithLine (va_list);
SALS provides the filenames and line numbers. */
static void
-ambiguous_line_spec (sals)
- struct symtabs_and_lines *sals;
+ambiguous_line_spec (struct symtabs_and_lines *sals)
{
int i;
@@ -1207,9 +1171,7 @@ ambiguous_line_spec (sals)
}
static void
-list_command (arg, from_tty)
- char *arg;
- int from_tty;
+list_command (char *arg, int from_tty)
{
struct symtabs_and_lines sals, sals_end;
struct symtab_and_line sal, sal_end;
@@ -1387,9 +1349,7 @@ list_command (arg, from_tty)
/* Print info on range of pc's in a specified line. */
static void
-line_info (arg, from_tty)
- char *arg;
- int from_tty;
+line_info (char *arg, int from_tty)
{
struct symtabs_and_lines sals;
struct symtab_and_line sal;
@@ -1487,9 +1447,7 @@ line_info (arg, from_tty)
/* ARGSUSED */
static void
-forward_search_command (regex, from_tty)
- char *regex;
- int from_tty;
+forward_search_command (char *regex, int from_tty)
{
register int c;
register int desc;
@@ -1609,9 +1567,7 @@ forward_search_command (regex, from_tty)
/* ARGSUSED */
static void
-reverse_search_command (regex, from_tty)
- char *regex;
- int from_tty;
+reverse_search_command (char *regex, int from_tty)
{
register int c;
register int desc;
@@ -1724,7 +1680,7 @@ reverse_search_command (regex, from_tty)
}
void
-_initialize_source ()
+_initialize_source (void)
{
struct cmd_list_element *c;
current_source_symtab = 0;
diff --git a/gdb/sparc-nat.c b/gdb/sparc-nat.c
index a9b661f..c62054a 100644
--- a/gdb/sparc-nat.c
+++ b/gdb/sparc-nat.c
@@ -50,8 +50,7 @@ static void fetch_core_registers (char *, unsigned int, int, CORE_ADDR);
marking them as valid so we won't fetch them again. */
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
struct regs inferior_registers;
struct fp_status inferior_fp_registers;
@@ -144,8 +143,7 @@ fetch_inferior_registers (regno)
Otherwise, REGNO specifies which register (so we can save time). */
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
struct regs inferior_registers;
struct fp_status inferior_fp_registers;
@@ -313,7 +311,7 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, ignore)
}
int
-kernel_u_size ()
+kernel_u_size (void)
{
return (sizeof (struct user));
}
@@ -332,7 +330,7 @@ static struct core_fns sparc_core_fns =
};
void
-_initialize_core_sparc ()
+_initialize_core_sparc (void)
{
add_core_fns (&sparc_core_fns);
}
diff --git a/gdb/sparc-stub.c b/gdb/sparc-stub.c
index ce2aadd..1e6298a 100644
--- a/gdb/sparc-stub.c
+++ b/gdb/sparc-stub.c
@@ -269,8 +269,7 @@ recursive_trap:
/* Convert ch from a hex digit to an int */
static int
-hex(ch)
- unsigned char ch;
+hex (unsigned char ch)
{
if (ch >= 'a' && ch <= 'f')
return ch-'a'+10;
@@ -287,7 +286,7 @@ static char remcomOutBuffer[BUFMAX];
/* scan for the sequence $<data>#<checksum> */
unsigned char *
-getpacket ()
+getpacket (void)
{
unsigned char *buffer = &remcomInBuffer[0];
unsigned char checksum;
@@ -353,8 +352,7 @@ retry:
/* send the packet in buffer. */
static void
-putpacket(buffer)
- unsigned char *buffer;
+putpacket (unsigned char *buffer)
{
unsigned char checksum;
int count;
@@ -394,11 +392,7 @@ static volatile int mem_err = 0;
*/
static unsigned char *
-mem2hex(mem, buf, count, may_fault)
- unsigned char *mem;
- unsigned char *buf;
- int count;
- int may_fault;
+mem2hex (unsigned char *mem, unsigned char *buf, int count, int may_fault)
{
unsigned char ch;
@@ -424,11 +418,7 @@ mem2hex(mem, buf, count, may_fault)
* return a pointer to the character AFTER the last byte written */
static char *
-hex2mem(buf, mem, count, may_fault)
- unsigned char *buf;
- unsigned char *mem;
- int count;
- int may_fault;
+hex2mem (unsigned char *buf, unsigned char *mem, int count, int may_fault)
{
int i;
unsigned char ch;
@@ -473,7 +463,7 @@ static struct hard_trap_info
/* Set up exception handlers for tracing and breakpoints */
void
-set_debug_traps()
+set_debug_traps (void)
{
struct hard_trap_info *ht;
@@ -500,8 +490,7 @@ _fltr_set_mem_err:
");
static void
-set_mem_fault_trap(enable)
- int enable;
+set_mem_fault_trap (int enable)
{
extern void fltr_set_mem_err();
mem_err = 0;
@@ -515,8 +504,7 @@ set_mem_fault_trap(enable)
/* Convert the SPARC hardware trap type code to a unix signal number. */
static int
-computeSignal(tt)
- int tt;
+computeSignal (int tt)
{
struct hard_trap_info *ht;
@@ -564,8 +552,7 @@ hexToInt(char **ptr, int *intValue)
extern void breakinst();
static void
-handle_exception (registers)
- unsigned long *registers;
+handle_exception (unsigned long *registers)
{
int tt; /* Trap type */
int sigval;
@@ -779,7 +766,7 @@ handle_exception (registers)
the debugger. */
void
-breakpoint()
+breakpoint (void)
{
if (!initialized)
return;
diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c
index 0a901b1..50b56ad 100644
--- a/gdb/sparc-tdep.c
+++ b/gdb/sparc-tdep.c
@@ -142,8 +142,7 @@ int bi_endian = 0;
such as sparc86x, instructions are always big-endian. */
static unsigned long
-fetch_instruction (pc)
- CORE_ADDR pc;
+fetch_instruction (CORE_ADDR pc)
{
unsigned long retval;
int i;
@@ -210,9 +209,8 @@ static branch_type isbranch (long, CORE_ADDR, CORE_ADDR *);
set up a simulated single-step, we undo our damage. */
void
-sparc_software_single_step (ignore, insert_breakpoints_p)
- enum target_signal ignore; /* pid, but we don't need it */
- int insert_breakpoints_p;
+sparc_software_single_step (enum target_signal ignore, /* pid, but we don't need it */
+ int insert_breakpoints_p)
{
branch_type br;
CORE_ADDR pc;
@@ -286,9 +284,7 @@ struct frame_extra_info
been stashed, since their exact position within the frame may vary. */
void
-sparc_init_extra_frame_info (fromleaf, fi)
- int fromleaf;
- struct frame_info *fi;
+sparc_init_extra_frame_info (int fromleaf, struct frame_info *fi)
{
char *name;
CORE_ADDR prologue_start, prologue_end;
@@ -427,8 +423,7 @@ sparc_init_extra_frame_info (fromleaf, fi)
}
CORE_ADDR
-sparc_frame_chain (frame)
- struct frame_info *frame;
+sparc_frame_chain (struct frame_info *frame)
{
/* Value that will cause FRAME_CHAIN_VALID to not worry about the chain
value. If it realy is zero, we detect it later in
@@ -437,8 +432,7 @@ sparc_frame_chain (frame)
}
CORE_ADDR
-sparc_extract_struct_value_address (regbuf)
- char *regbuf;
+sparc_extract_struct_value_address (char *regbuf)
{
return extract_address (regbuf + REGISTER_BYTE (O0_REGNUM),
REGISTER_RAW_SIZE (O0_REGNUM));
@@ -447,8 +441,7 @@ sparc_extract_struct_value_address (regbuf)
/* Find the pc saved in frame FRAME. */
CORE_ADDR
-sparc_frame_saved_pc (frame)
- struct frame_info *frame;
+sparc_frame_saved_pc (struct frame_info *frame)
{
char *buf;
CORE_ADDR addr;
@@ -524,9 +517,7 @@ sparc_frame_saved_pc (frame)
difficulty. */
struct frame_info *
-setup_arbitrary_frame (argc, argv)
- int argc;
- CORE_ADDR *argv;
+setup_arbitrary_frame (int argc, CORE_ADDR *argv)
{
struct frame_info *frame;
@@ -556,11 +547,8 @@ static CORE_ADDR examine_prologue (CORE_ADDR, int, struct frame_info *,
CORE_ADDR *);
static CORE_ADDR
-examine_prologue (start_pc, frameless_p, fi, saved_regs)
- CORE_ADDR start_pc;
- int frameless_p;
- struct frame_info *fi;
- CORE_ADDR *saved_regs;
+examine_prologue (CORE_ADDR start_pc, int frameless_p, struct frame_info *fi,
+ CORE_ADDR *saved_regs)
{
int insn;
int dest = -1;
@@ -695,9 +683,7 @@ examine_prologue (start_pc, frameless_p, fi, saved_regs)
}
CORE_ADDR
-sparc_skip_prologue (start_pc, frameless_p)
- CORE_ADDR start_pc;
- int frameless_p;
+sparc_skip_prologue (CORE_ADDR start_pc, int frameless_p)
{
return examine_prologue (start_pc, frameless_p, NULL, NULL);
}
@@ -709,9 +695,7 @@ sparc_skip_prologue (start_pc, frameless_p)
This isn't static as it's used by remote-sa.sparc.c. */
static branch_type
-isbranch (instruction, addr, target)
- long instruction;
- CORE_ADDR addr, *target;
+isbranch (long instruction, CORE_ADDR addr, CORE_ADDR *target)
{
branch_type val = not_branch;
long int offset = 0; /* Must be signed for sign-extend. */
@@ -780,13 +764,9 @@ isbranch (instruction, addr, target)
The argument RAW_BUFFER must point to aligned memory. */
void
-sparc_get_saved_register (raw_buffer, optimized, addrp, frame, regnum, lval)
- char *raw_buffer;
- int *optimized;
- CORE_ADDR *addrp;
- struct frame_info *frame;
- int regnum;
- enum lval_type *lval;
+sparc_get_saved_register (char *raw_buffer, int *optimized, CORE_ADDR *addrp,
+ struct frame_info *frame, int regnum,
+ enum lval_type *lval)
{
struct frame_info *frame1;
CORE_ADDR addr;
@@ -957,7 +937,7 @@ sparc_get_saved_register (raw_buffer, optimized, addrp, frame, regnum, lval)
(DUMMY_STACK_REG_BUF_SIZE + DUMMY_REG_SAVE_OFFSET)
void
-sparc_push_dummy_frame ()
+sparc_push_dummy_frame (void)
{
CORE_ADDR sp, old_sp;
char *register_temp;
@@ -1068,9 +1048,7 @@ sparc_push_dummy_frame ()
static void sparc_frame_find_saved_regs (struct frame_info *, CORE_ADDR *);
static void
-sparc_frame_find_saved_regs (fi, saved_regs_addr)
- struct frame_info *fi;
- CORE_ADDR *saved_regs_addr;
+sparc_frame_find_saved_regs (struct frame_info *fi, CORE_ADDR *saved_regs_addr)
{
register int regnum;
CORE_ADDR frame_addr = FRAME_FP (fi);
@@ -1183,7 +1161,7 @@ sparc_frame_find_saved_regs (fi, saved_regs_addr)
/* Definitely see tm-sparc.h for more doc of the frame format here. */
void
-sparc_pop_frame ()
+sparc_pop_frame (void)
{
register struct frame_info *frame = get_current_frame ();
register CORE_ADDR pc;
@@ -1338,8 +1316,7 @@ sparc_pop_frame ()
a fake insn, step past it. */
CORE_ADDR
-sparc_pc_adjust (pc)
- CORE_ADDR pc;
+sparc_pc_adjust (CORE_ADDR pc)
{
unsigned long insn;
char buf[4];
@@ -1366,8 +1343,7 @@ sparc_pc_adjust (pc)
by hand. */
CORE_ADDR
-sunos4_skip_trampoline_code (pc)
- CORE_ADDR pc;
+sunos4_skip_trampoline_code (CORE_ADDR pc)
{
unsigned long insn1;
char buf[4];
@@ -1439,8 +1415,7 @@ sunos4_skip_trampoline_code (pc)
register values. */
void
-supply_gregset (gregsetp)
- gdb_gregset_t *gregsetp;
+supply_gregset (gdb_gregset_t *gregsetp)
{
prgreg_t *regp = (prgreg_t *) gregsetp;
int regi, offset = 0;
@@ -1561,9 +1536,7 @@ supply_gregset (gregsetp)
}
void
-fill_gregset (gregsetp, regno)
- gdb_gregset_t *gregsetp;
- int regno;
+fill_gregset (gdb_gregset_t *gregsetp, int regno)
{
prgreg_t *regp = (prgreg_t *) gregsetp;
int regi, offset = 0;
@@ -1643,8 +1616,7 @@ fill_gregset (gregsetp, regno)
idea of the current floating point register values. */
void
-supply_fpregset (fpregsetp)
- gdb_fpregset_t *fpregsetp;
+supply_fpregset (gdb_fpregset_t *fpregsetp)
{
register int regi;
char *from;
@@ -1682,9 +1654,7 @@ supply_fpregset (fpregsetp)
/* This will probably need some changes for sparc64. */
void
-fill_fpregset (fpregsetp, regno)
- gdb_fpregset_t *fpregsetp;
- int regno;
+fill_fpregset (gdb_fpregset_t *fpregsetp, int regno)
{
int regi;
char *to;
@@ -1724,8 +1694,7 @@ fill_fpregset (fpregsetp, regno)
This routine returns true on success */
int
-get_longjmp_target (pc)
- CORE_ADDR *pc;
+get_longjmp_target (CORE_ADDR *pc)
{
CORE_ADDR jb_addr;
#define LONGJMP_TARGET_SIZE 4
@@ -1748,8 +1717,7 @@ get_longjmp_target (pc)
related to C++ mangling, it is done for C too. */
char *
-sunpro_static_transform_name (name)
- char *name;
+sunpro_static_transform_name (char *name)
{
char *p;
if (name[0] == '$')
@@ -1776,9 +1744,7 @@ sunpro_static_transform_name (name)
static void dump_ccreg (char *, int);
static void
-dump_ccreg (reg, val)
- char *reg;
- int val;
+dump_ccreg (char *reg, int val)
{
/* page 41 */
printf_unfiltered ("%s:%s,%s,%s,%s", reg,
@@ -1789,8 +1755,7 @@ dump_ccreg (reg, val)
}
static char *
-decode_asi (val)
- int val;
+decode_asi (int val)
{
/* page 72 */
switch (val)
@@ -1833,8 +1798,7 @@ decode_asi (val)
/* FIXME: Would be nice if this did some fancy things for 32 bit sparc. */
void
-sparc_print_register_hook (regno)
- int regno;
+sparc_print_register_hook (int regno)
{
ULONGEST val;
@@ -2005,9 +1969,7 @@ sparc_print_register_hook (regno)
}
int
-gdb_print_insn_sparc (memaddr, info)
- bfd_vma memaddr;
- disassemble_info *info;
+gdb_print_insn_sparc (bfd_vma memaddr, disassemble_info *info)
{
/* It's necessary to override mach again because print_insn messes it up. */
info->mach = TARGET_ARCHITECTURE->mach;
@@ -2019,12 +1981,8 @@ gdb_print_insn_sparc (memaddr, info)
args are also passed in registers o0 - o5. */
CORE_ADDR
-sparc32_push_arguments (nargs, args, sp, struct_return, struct_addr)
- int nargs;
- value_ptr *args;
- CORE_ADDR sp;
- int struct_return;
- CORE_ADDR struct_addr;
+sparc32_push_arguments (int nargs, value_ptr *args, CORE_ADDR sp,
+ int struct_return, CORE_ADDR struct_addr)
{
int i, j, oregnum;
int accumulate_size = 0;
@@ -2092,10 +2050,7 @@ sparc32_push_arguments (nargs, args, sp, struct_return, struct_addr)
into VALBUF. */
void
-sparc32_extract_return_value (type, regbuf, valbuf)
- struct type *type;
- char *regbuf;
- char *valbuf;
+sparc32_extract_return_value (struct type *type, char *regbuf, char *valbuf)
{
int typelen = TYPE_LENGTH (type);
int regsize = REGISTER_RAW_SIZE (O0_REGNUM);
@@ -2118,9 +2073,7 @@ sparc32_extract_return_value (type, regbuf, valbuf)
values are returned in register %o0. */
void
-sparc_store_return_value (type, valbuf)
- struct type *type;
- char *valbuf;
+sparc_store_return_value (struct type *type, char *valbuf)
{
int regno;
char *buffer;
@@ -2171,12 +2124,8 @@ sparclet_store_return_value (struct type *type, char *valbuf)
has already been customized for a different function). */
void
-sparc_fix_call_dummy (dummy, pc, fun, value_type, using_gcc)
- char *dummy;
- CORE_ADDR pc;
- CORE_ADDR fun;
- struct type *value_type;
- int using_gcc;
+sparc_fix_call_dummy (char *dummy, CORE_ADDR pc, CORE_ADDR fun,
+ struct type *value_type, int using_gcc)
{
int i;
@@ -2229,8 +2178,7 @@ sparc_fix_call_dummy (dummy, pc, fun, value_type, using_gcc)
/* Set target byte order based on machine type. */
static int
-sparc_target_architecture_hook (ap)
- const bfd_arch_info_type *ap;
+sparc_target_architecture_hook (const bfd_arch_info_type *ap)
{
int i, j;
@@ -2260,7 +2208,7 @@ static struct gdbarch * sparc_gdbarch_init (struct gdbarch_info info,
struct gdbarch_list *arches);
void
-_initialize_sparc_tdep ()
+_initialize_sparc_tdep (void)
{
/* Hook us into the gdbarch mechanism. */
register_gdbarch_init (bfd_arch_sparc, sparc_gdbarch_init);
@@ -2294,8 +2242,7 @@ sparc64_read_fp (void)
}
void
-sparc64_write_sp (val)
- CORE_ADDR val;
+sparc64_write_sp (CORE_ADDR val)
{
CORE_ADDR oldsp = read_register (SP_REGNUM);
if (oldsp & 1)
@@ -2305,8 +2252,7 @@ sparc64_write_sp (val)
}
void
-sparc64_write_fp (val)
- CORE_ADDR val;
+sparc64_write_fp (CORE_ADDR val)
{
CORE_ADDR oldfp = read_register (FP_REGNUM);
if (oldfp & 1)
@@ -2330,12 +2276,8 @@ sparc64_write_fp (val)
int and float, we will waste every other register of both types. */
CORE_ADDR
-sparc64_push_arguments (nargs, args, sp, struct_return, struct_retaddr)
- int nargs;
- value_ptr *args;
- CORE_ADDR sp;
- int struct_return;
- CORE_ADDR struct_retaddr;
+sparc64_push_arguments (int nargs, value_ptr *args, CORE_ADDR sp,
+ int struct_return, CORE_ADDR struct_retaddr)
{
int i, j, register_counter = 0;
CORE_ADDR tempsp;
@@ -2449,11 +2391,8 @@ sparc64_push_arguments (nargs, args, sp, struct_return, struct_retaddr)
returned in f0-f3). */
void
-sp64_extract_return_value (type, regbuf, valbuf, bitoffset)
- struct type *type;
- char *regbuf;
- char *valbuf;
- int bitoffset;
+sp64_extract_return_value (struct type *type, char *regbuf, char *valbuf,
+ int bitoffset)
{
int typelen = TYPE_LENGTH (type);
int regsize = REGISTER_RAW_SIZE (O0_REGNUM);
diff --git a/gdb/sparcl-stub.c b/gdb/sparcl-stub.c
index 111dfe7..3fcdc0a 100644
--- a/gdb/sparcl-stub.c
+++ b/gdb/sparcl-stub.c
@@ -366,8 +366,7 @@ no_fpreload:
/* Convert ch from a hex digit to an int */
static int
-hex(ch)
- unsigned char ch;
+hex (unsigned char ch)
{
if (ch >= 'a' && ch <= 'f')
return ch-'a'+10;
@@ -384,7 +383,7 @@ static char remcomOutBuffer[BUFMAX];
/* scan for the sequence $<data>#<checksum> */
unsigned char *
-getpacket ()
+getpacket (void)
{
unsigned char *buffer = &remcomInBuffer[0];
unsigned char checksum;
@@ -450,8 +449,7 @@ retry:
/* send the packet in buffer. */
static void
-putpacket(buffer)
- unsigned char *buffer;
+putpacket (unsigned char *buffer)
{
unsigned char checksum;
int count;
@@ -491,11 +489,7 @@ static volatile int mem_err = 0;
*/
static unsigned char *
-mem2hex(mem, buf, count, may_fault)
- unsigned char *mem;
- unsigned char *buf;
- int count;
- int may_fault;
+mem2hex (unsigned char *mem, unsigned char *buf, int count, int may_fault)
{
unsigned char ch;
@@ -521,11 +515,7 @@ mem2hex(mem, buf, count, may_fault)
* return a pointer to the character AFTER the last byte written */
static char *
-hex2mem(buf, mem, count, may_fault)
- unsigned char *buf;
- unsigned char *mem;
- int count;
- int may_fault;
+hex2mem (unsigned char *buf, unsigned char *mem, int count, int may_fault)
{
int i;
unsigned char ch;
@@ -576,7 +566,7 @@ static struct hard_trap_info
/* Set up exception handlers for tracing and breakpoints */
void
-set_debug_traps()
+set_debug_traps (void)
{
struct hard_trap_info *ht;
@@ -608,8 +598,7 @@ _fltr_set_mem_err:
");
static void
-set_mem_fault_trap(enable)
- int enable;
+set_mem_fault_trap (int enable)
{
extern void fltr_set_mem_err();
mem_err = 0;
@@ -632,7 +621,7 @@ _dummy_hw_breakpoint:
");
static void
-get_in_break_mode()
+get_in_break_mode (void)
{
extern void dummy_hw_breakpoint();
@@ -646,8 +635,7 @@ get_in_break_mode()
/* Convert the SPARC hardware trap type code to a unix signal number. */
static int
-computeSignal(tt)
- int tt;
+computeSignal (int tt)
{
struct hard_trap_info *ht;
@@ -693,8 +681,7 @@ hexToInt(char **ptr, int *intValue)
*/
static void
-handle_exception (registers)
- unsigned long *registers;
+handle_exception (unsigned long *registers)
{
int tt; /* Trap type */
int sigval;
@@ -947,7 +934,7 @@ handle_exception (registers)
the debugger. */
void
-breakpoint()
+breakpoint (void)
{
if (!initialized)
return;
diff --git a/gdb/sparcl-tdep.c b/gdb/sparcl-tdep.c
index 2e9e295..20675e2 100644
--- a/gdb/sparcl-tdep.c
+++ b/gdb/sparcl-tdep.c
@@ -91,10 +91,7 @@ static void sparclite_download (char *filename, int from_tty);
#define DDV_MASK 0x1
int
-sparclite_insert_watchpoint (addr, len, type)
- CORE_ADDR addr;
- int len;
- int type;
+sparclite_insert_watchpoint (CORE_ADDR addr, int len, int type)
{
CORE_ADDR dcr;
@@ -157,10 +154,7 @@ sparclite_insert_watchpoint (addr, len, type)
}
int
-sparclite_remove_watchpoint (addr, len, type)
- CORE_ADDR addr;
- int len;
- int type;
+sparclite_remove_watchpoint (CORE_ADDR addr, int len, int type)
{
CORE_ADDR dcr, dda1, dda2;
@@ -179,9 +173,7 @@ sparclite_remove_watchpoint (addr, len, type)
}
int
-sparclite_insert_hw_breakpoint (addr, len)
- CORE_ADDR addr;
- int len;
+sparclite_insert_hw_breakpoint (CORE_ADDR addr, int len)
{
CORE_ADDR dcr;
@@ -204,9 +196,7 @@ sparclite_insert_hw_breakpoint (addr, len)
}
int
-sparclite_remove_hw_breakpoint (addr, shadow)
- CORE_ADDR addr;
- int shadow;
+sparclite_remove_hw_breakpoint (CORE_ADDR addr, int shadow)
{
CORE_ADDR dcr, dia1, dia2;
@@ -225,10 +215,7 @@ sparclite_remove_hw_breakpoint (addr, shadow)
}
int
-sparclite_check_watch_resources (type, cnt, ot)
- int type;
- int cnt;
- int ot;
+sparclite_check_watch_resources (int type, int cnt, int ot)
{
/* Watchpoints not supported on simulator. */
if (strcmp (target_shortname, "sim") == 0)
@@ -254,7 +241,7 @@ sparclite_check_watch_resources (type, cnt, ot)
}
CORE_ADDR
-sparclite_stopped_data_address ()
+sparclite_stopped_data_address (void)
{
CORE_ADDR dsr, dda1, dda2;
@@ -271,8 +258,7 @@ sparclite_stopped_data_address ()
}
static serial_t
-open_tty (name)
- char *name;
+open_tty (char *name)
{
serial_t desc;
@@ -299,9 +285,7 @@ open_tty (name)
/* Read a single character from the remote end, masking it down to 7 bits. */
static int
-readchar (desc, timeout)
- serial_t desc;
- int timeout;
+readchar (serial_t desc, int timeout)
{
int ch;
char s[10];
@@ -327,10 +311,7 @@ readchar (desc, timeout)
}
static void
-debug_serial_write (desc, buf, len)
- serial_t desc;
- char *buf;
- int len;
+debug_serial_write (serial_t desc, char *buf, int len)
{
char s[10];
@@ -348,9 +329,7 @@ debug_serial_write (desc, buf, len)
static int
-send_resp (desc, c)
- serial_t desc;
- char c;
+send_resp (serial_t desc, char c)
{
debug_serial_write (desc, &c, 1);
return readchar (desc, remote_timeout);
@@ -369,10 +348,7 @@ close_tty (void *ignore)
#ifdef HAVE_SOCKETS
static int
-recv_udp_buf (fd, buf, len, timeout)
- int fd, len;
- unsigned char *buf;
- int timeout;
+recv_udp_buf (int fd, unsigned char *buf, int len, int timeout)
{
int cc;
fd_set readfds;
@@ -404,9 +380,7 @@ recv_udp_buf (fd, buf, len, timeout)
}
static int
-send_udp_buf (fd, buf, len)
- int fd, len;
- unsigned char *buf;
+send_udp_buf (int fd, unsigned char *buf, int len)
{
int cc;
@@ -423,9 +397,7 @@ send_udp_buf (fd, buf, len)
#endif /* HAVE_SOCKETS */
static void
-sparclite_open (name, from_tty)
- char *name;
- int from_tty;
+sparclite_open (char *name, int from_tty)
{
struct cleanup *old_chain;
int c;
@@ -542,8 +514,7 @@ or: target sparclite udp host");
}
static void
-sparclite_close (quitting)
- int quitting;
+sparclite_close (int quitting)
{
if (serial_flag)
close_tty (0);
@@ -708,8 +679,7 @@ download (target_name, args, from_tty, write_routine, start_routine)
}
static void
-sparclite_serial_start (entry)
- bfd_vma entry;
+sparclite_serial_start (bfd_vma entry)
{
char buffer[5];
int i;
@@ -724,12 +694,8 @@ sparclite_serial_start (entry)
}
static void
-sparclite_serial_write (from_bfd, from_sec, from_addr, to_addr, len)
- bfd *from_bfd;
- asection *from_sec;
- file_ptr from_addr;
- bfd_vma to_addr;
- int len;
+sparclite_serial_write (bfd *from_bfd, asection *from_sec, file_ptr from_addr,
+ bfd_vma to_addr, int len)
{
char buffer[4 + 4 + WRITESIZE]; /* addr + len + data */
unsigned char checksum;
@@ -759,9 +725,7 @@ sparclite_serial_write (from_bfd, from_sec, from_addr, to_addr, len)
#ifdef HAVE_SOCKETS
static unsigned short
-calc_checksum (buffer, count)
- unsigned char *buffer;
- int count;
+calc_checksum (unsigned char *buffer, int count)
{
unsigned short checksum;
@@ -776,8 +740,7 @@ calc_checksum (buffer, count)
}
static void
-sparclite_udp_start (entry)
- bfd_vma entry;
+sparclite_udp_start (bfd_vma entry)
{
unsigned char buffer[6];
int i;
@@ -797,12 +760,8 @@ sparclite_udp_start (entry)
}
static void
-sparclite_udp_write (from_bfd, from_sec, from_addr, to_addr, len)
- bfd *from_bfd;
- asection *from_sec;
- file_ptr from_addr;
- bfd_vma to_addr;
- int len;
+sparclite_udp_write (bfd *from_bfd, asection *from_sec, file_ptr from_addr,
+ bfd_vma to_addr, int len)
{
unsigned char buffer[2000];
unsigned short checksum;
@@ -873,9 +832,7 @@ sparclite_udp_write (from_bfd, from_sec, from_addr, to_addr, len)
#endif /* HAVE_SOCKETS */
static void
-sparclite_download (filename, from_tty)
- char *filename;
- int from_tty;
+sparclite_download (char *filename, int from_tty)
{
if (!serial_flag)
#ifdef HAVE_SOCKETS
@@ -906,7 +863,7 @@ Specify the device it is connected to (e.g. /dev/ttya).";
}
void
-_initialize_sparcl_tdep ()
+_initialize_sparcl_tdep (void)
{
init_sparclite_ops ();
add_target (&sparclite_ops);
diff --git a/gdb/sparclet-rom.c b/gdb/sparclet-rom.c
index ebb249c..921c6a5 100644
--- a/gdb/sparclet-rom.c
+++ b/gdb/sparclet-rom.c
@@ -97,20 +97,13 @@ static char *sparclet_regnames[] = {
actually do anything, GDB will request the registers individually. */
static void
-sparclet_supply_register (regname, regnamelen, val, vallen)
- char *regname;
- int regnamelen;
- char *val;
- int vallen;
+sparclet_supply_register (char *regname, int regnamelen, char *val, int vallen)
{
return;
}
static void
-sparclet_load (desc, file, hashmark)
- serial_t desc;
- char *file;
- int hashmark;
+sparclet_load (serial_t desc, char *file, int hashmark)
{
bfd *abfd;
asection *s;
@@ -286,15 +279,13 @@ init_sparclet_cmds (void)
};
static void
-sparclet_open (args, from_tty)
- char *args;
- int from_tty;
+sparclet_open (char *args, int from_tty)
{
monitor_open (args, &sparclet_cmds, from_tty);
}
void
-_initialize_sparclet ()
+_initialize_sparclet (void)
{
int i;
init_sparclet_cmds ();
diff --git a/gdb/sparclet-stub.c b/gdb/sparclet-stub.c
index 281ce14..f593df7 100644
--- a/gdb/sparclet-stub.c
+++ b/gdb/sparclet-stub.c
@@ -435,8 +435,7 @@ recursive_trap:
/* Convert ch from a hex digit to an int */
static int
-hex(ch)
- unsigned char ch;
+hex (unsigned char ch)
{
if (ch >= 'a' && ch <= 'f')
return ch-'a'+10;
@@ -453,7 +452,7 @@ static char remcomOutBuffer[BUFMAX];
/* scan for the sequence $<data>#<checksum> */
unsigned char *
-getpacket ()
+getpacket (void)
{
unsigned char *buffer = &remcomInBuffer[0];
unsigned char checksum;
@@ -519,8 +518,7 @@ retry:
/* send the packet in buffer. */
static void
-putpacket(buffer)
- unsigned char *buffer;
+putpacket (unsigned char *buffer)
{
unsigned char checksum;
int count;
@@ -560,11 +558,7 @@ static volatile int mem_err = 0;
*/
static unsigned char *
-mem2hex(mem, buf, count, may_fault)
- unsigned char *mem;
- unsigned char *buf;
- int count;
- int may_fault;
+mem2hex (unsigned char *mem, unsigned char *buf, int count, int may_fault)
{
unsigned char ch;
@@ -590,11 +584,7 @@ mem2hex(mem, buf, count, may_fault)
* return a pointer to the character AFTER the last byte written */
static char *
-hex2mem(buf, mem, count, may_fault)
- unsigned char *buf;
- unsigned char *mem;
- int count;
- int may_fault;
+hex2mem (unsigned char *buf, unsigned char *mem, int count, int may_fault)
{
int i;
unsigned char ch;
@@ -640,7 +630,7 @@ static struct hard_trap_info
/* Set up exception handlers for tracing and breakpoints */
void
-set_debug_traps()
+set_debug_traps (void)
{
struct hard_trap_info *ht;
@@ -667,8 +657,7 @@ _fltr_set_mem_err:
");
static void
-set_mem_fault_trap(enable)
- int enable;
+set_mem_fault_trap (int enable)
{
extern void fltr_set_mem_err();
mem_err = 0;
@@ -691,8 +680,7 @@ _dummy_hw_breakpoint:
");
static void
-set_hw_breakpoint_trap(enable)
- int enable;
+set_hw_breakpoint_trap (int enable)
{
extern void dummy_hw_breakpoint();
@@ -703,7 +691,7 @@ set_hw_breakpoint_trap(enable)
}
static void
-get_in_break_mode()
+get_in_break_mode (void)
{
#if 0
int x;
@@ -727,8 +715,7 @@ get_in_break_mode()
/* Convert the SPARC hardware trap type code to a unix signal number. */
static int
-computeSignal(tt)
- int tt;
+computeSignal (int tt)
{
struct hard_trap_info *ht;
@@ -774,8 +761,7 @@ hexToInt(char **ptr, int *intValue)
*/
static void
-handle_exception (registers)
- unsigned long *registers;
+handle_exception (unsigned long *registers)
{
int tt; /* Trap type */
int sigval;
@@ -1049,7 +1035,7 @@ handle_exception (registers)
the debugger. */
void
-breakpoint()
+breakpoint (void)
{
if (!initialized)
return;
@@ -1061,7 +1047,7 @@ breakpoint()
}
static void
-hw_breakpoint()
+hw_breakpoint (void)
{
asm("
ta 127
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index 09f02ce..beaed00 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -275,8 +275,7 @@ static struct type **os9k_type_vector[] =
static void os9k_init_type_vector (struct type **);
static void
-os9k_init_type_vector (tv)
- struct type **tv;
+os9k_init_type_vector (struct type **tv)
{
unsigned int i;
for (i = 0; i < sizeof (os9k_type_vector) / sizeof (struct type **); i++)
@@ -427,10 +426,8 @@ dbx_alloc_type (typenums, objfile)
and fix their symbols in given symbol vector. */
static void
-patch_block_stabs (symbols, stabs, objfile)
- struct pending *symbols;
- struct pending_stabs *stabs;
- struct objfile *objfile;
+patch_block_stabs (struct pending *symbols, struct pending_stabs *stabs,
+ struct objfile *objfile)
{
int ii;
char *name;
@@ -517,9 +514,7 @@ patch_block_stabs (symbols, stabs, objfile)
Returns 0 for success, -1 for error. */
static int
-read_type_number (pp, typenums)
- register char **pp;
- register int *typenums;
+read_type_number (register char **pp, register int *typenums)
{
int nbits;
if (**pp == '(')
@@ -557,9 +552,7 @@ read_type_number (pp, typenums)
suibstring. */
static char *
-get_substring (p, c)
- char **p;
- int c;
+get_substring (char **p, int c)
{
char *str;
str = *p;
@@ -580,8 +573,7 @@ get_substring (p, c)
eg: for sname="a" and fname="foo__1aFPFs_i" return "FPFs_i" */
static char *
-get_cfront_method_physname (fname)
- char *fname;
+get_cfront_method_physname (char *fname)
{
int len = 0;
/* FIXME would like to make this generic for g++ too, but
@@ -617,11 +609,8 @@ get_cfront_method_physname (fname)
*/
static int
-read_cfront_baseclasses (fip, pp, type, objfile)
- struct field_info *fip;
- struct objfile *objfile;
- char **pp;
- struct type *type;
+read_cfront_baseclasses (struct field_info *fip, char **pp, struct type *type,
+ struct objfile *objfile)
{
static struct complaint msg_unknown =
{"\
@@ -770,11 +759,8 @@ read_cfront_baseclasses (fip, pp, type, objfile)
*/
static int
-read_cfront_member_functions (fip, pp, type, objfile)
- struct field_info *fip;
- char **pp;
- struct type *type;
- struct objfile *objfile;
+read_cfront_member_functions (struct field_info *fip, char **pp,
+ struct type *type, struct objfile *objfile)
{
/* This code extracted from read_member_functions
so as to do the similar thing for our funcs */
@@ -978,10 +964,8 @@ read_cfront_member_functions (fip, pp, type, objfile)
to add information such as methods to classes.
Examples of "p": "sA;;__ct__1AFv foo__1AFv ;;;" */
int
-resolve_cfront_continuation (objfile, sym, p)
- struct objfile *objfile;
- struct symbol *sym;
- char *p;
+resolve_cfront_continuation (struct objfile *objfile, struct symbol *sym,
+ char *p)
{
struct symbol *ref_sym = 0;
char *sname;
@@ -1050,10 +1034,7 @@ resolve_cfront_continuation (objfile, sym, p)
symbol definition. Returns 0 on failure, non-zero on success. */
static int
-resolve_symbol_reference (objfile, sym, p)
- struct objfile *objfile;
- struct symbol *sym;
- char *p;
+resolve_symbol_reference (struct objfile *objfile, struct symbol *sym, char *p)
{
int refnum;
struct symbol *ref_sym = 0;
@@ -1178,7 +1159,7 @@ static int ref_chunk = 0;
table. If the symbol table changes, this cache must be cleared
or we are left holding onto data in invalid obstacks. */
void
-stabsread_clear_cache ()
+stabsread_clear_cache (void)
{
ref_count = 0;
ref_chunk = 0;
@@ -1189,11 +1170,7 @@ stabsread_clear_cache ()
find them, using their reference numbers as our index.
These will be used later when we resolve references. */
void
-ref_add (refnum, sym, stabs, value)
- int refnum;
- struct symbol *sym;
- char *stabs;
- CORE_ADDR value;
+ref_add (int refnum, struct symbol *sym, char *stabs, CORE_ADDR value)
{
if (ref_count == 0)
ref_chunk = 0;
@@ -1215,8 +1192,7 @@ ref_add (refnum, sym, stabs, value)
/* Return defined sym for the reference REFNUM. */
struct symbol *
-ref_search (refnum)
- int refnum;
+ref_search (int refnum)
{
if (refnum < 0 || refnum > ref_count)
return 0;
@@ -1226,8 +1202,7 @@ ref_search (refnum)
/* Return value for the reference REFNUM. */
static CORE_ADDR
-ref_search_value (refnum)
- int refnum;
+ref_search_value (int refnum)
{
if (refnum < 0 || refnum > ref_count)
return 0;
@@ -1238,8 +1213,7 @@ ref_search_value (refnum)
reference number. Move STRING beyond the reference id. */
static int
-process_reference (string)
- char **string;
+process_reference (char **string)
{
char *p;
int refnum = 0;
@@ -1264,8 +1238,7 @@ process_reference (string)
definition for later use. Return the reference number. */
int
-symbol_reference_defined (string)
- char **string;
+symbol_reference_defined (char **string)
{
char *p = *string;
int refnum = 0;
@@ -1290,12 +1263,8 @@ symbol_reference_defined (string)
/* ARGSUSED */
struct symbol *
-define_symbol (valu, string, desc, type, objfile)
- CORE_ADDR valu;
- char *string;
- int desc;
- int type;
- struct objfile *objfile;
+define_symbol (CORE_ADDR valu, char *string, int desc, int type,
+ struct objfile *objfile)
{
register struct symbol *sym;
char *p = (char *) strchr (string, ':');
@@ -2189,10 +2158,7 @@ define_symbol (valu, string, desc, type, objfile)
non-zero on success, zero otherwise. */
static int
-resolve_live_range (objfile, sym, p)
- struct objfile *objfile;
- struct symbol *sym;
- char *p;
+resolve_live_range (struct objfile *objfile, struct symbol *sym, char *p)
{
int refnum;
CORE_ADDR start, end;
@@ -2260,10 +2226,8 @@ resolve_live_range (objfile, sym, p)
in objfile OBJFILE. */
static void
-add_live_range (objfile, sym, start, end)
- struct objfile *objfile;
- struct symbol *sym;
- CORE_ADDR start, end;
+add_live_range (struct objfile *objfile, struct symbol *sym, CORE_ADDR start,
+ CORE_ADDR end)
{
struct range_list *r, *rs;
@@ -2324,9 +2288,7 @@ add_live_range (objfile, sym, start, end)
debugger will be able to read the new symbol tables. */
static struct type *
-error_type (pp, objfile)
- char **pp;
- struct objfile *objfile;
+error_type (char **pp, struct objfile *objfile)
{
complain (&error_type_complaint);
while (1)
@@ -2358,9 +2320,7 @@ error_type (pp, objfile)
deciding whether to call read_type. */
struct type *
-read_type (pp, objfile)
- register char **pp;
- struct objfile *objfile;
+read_type (register char **pp, struct objfile *objfile)
{
register struct type *type = 0;
struct type *type1;
@@ -2790,8 +2750,7 @@ again:
Return the proper type node for a given builtin type number. */
static struct type *
-rs6000_builtin_type (typenum)
- int typenum;
+rs6000_builtin_type (int typenum)
{
/* We recognize types numbered from -NUMBER_RECOGNIZED to -1. */
#define NUMBER_RECOGNIZED 34
@@ -2966,11 +2925,8 @@ rs6000_builtin_type (typenum)
Returns 1 for success, 0 for failure. */
static int
-read_member_functions (fip, pp, type, objfile)
- struct field_info *fip;
- char **pp;
- struct type *type;
- struct objfile *objfile;
+read_member_functions (struct field_info *fip, char **pp, struct type *type,
+ struct objfile *objfile)
{
int nfn_fields = 0;
int length = 0;
@@ -3260,11 +3216,8 @@ read_member_functions (fip, pp, type, objfile)
keep parsing and it's time for error_type(). */
static int
-read_cpp_abbrev (fip, pp, type, objfile)
- struct field_info *fip;
- char **pp;
- struct type *type;
- struct objfile *objfile;
+read_cpp_abbrev (struct field_info *fip, char **pp, struct type *type,
+ struct objfile *objfile)
{
register char *p;
char *name;
@@ -3349,12 +3302,8 @@ read_cpp_abbrev (fip, pp, type, objfile)
}
static void
-read_one_struct_field (fip, pp, p, type, objfile)
- struct field_info *fip;
- char **pp;
- char *p;
- struct type *type;
- struct objfile *objfile;
+read_one_struct_field (struct field_info *fip, char **pp, char *p,
+ struct type *type, struct objfile *objfile)
{
/* The following is code to work around cfront generated stabs.
The stabs contains full mangled name for each field.
@@ -3520,11 +3469,8 @@ read_one_struct_field (fip, pp, p, type, objfile)
Returns 1 for success, 0 for failure. */
static int
-read_struct_fields (fip, pp, type, objfile)
- struct field_info *fip;
- char **pp;
- struct type *type;
- struct objfile *objfile;
+read_struct_fields (struct field_info *fip, char **pp, struct type *type,
+ struct objfile *objfile)
{
register char *p;
struct nextfield *new;
@@ -3620,11 +3566,8 @@ read_struct_fields (fip, pp, type, objfile)
static int
-read_baseclasses (fip, pp, type, objfile)
- struct field_info *fip;
- char **pp;
- struct type *type;
- struct objfile *objfile;
+read_baseclasses (struct field_info *fip, char **pp, struct type *type,
+ struct objfile *objfile)
{
int i;
struct nextfield *new;
@@ -3750,11 +3693,8 @@ read_baseclasses (fip, pp, type, objfile)
so we can look for the vptr base class info. */
static int
-read_tilde_fields (fip, pp, type, objfile)
- struct field_info *fip;
- char **pp;
- struct type *type;
- struct objfile *objfile;
+read_tilde_fields (struct field_info *fip, char **pp, struct type *type,
+ struct objfile *objfile)
{
register char *p;
@@ -3832,9 +3772,7 @@ read_tilde_fields (fip, pp, type, objfile)
}
static int
-attach_fn_fields_to_type (fip, type)
- struct field_info *fip;
- register struct type *type;
+attach_fn_fields_to_type (struct field_info *fip, register struct type *type)
{
register int n;
@@ -3858,11 +3796,8 @@ attach_fn_fields_to_type (fip, type)
*/
static int
-read_cfront_static_fields (fip, pp, type, objfile)
- struct field_info *fip;
- char **pp;
- struct type *type;
- struct objfile *objfile;
+read_cfront_static_fields (struct field_info *fip, char **pp, struct type *type,
+ struct objfile *objfile)
{
struct nextfield *new;
struct type *stype;
@@ -3944,10 +3879,8 @@ read_cfront_static_fields (fip, pp, type, objfile)
once we have collected all the class members. */
static int
-copy_cfront_struct_fields (fip, type, objfile)
- struct field_info *fip;
- struct type *type;
- struct objfile *objfile;
+copy_cfront_struct_fields (struct field_info *fip, struct type *type,
+ struct objfile *objfile)
{
int nfields = TYPE_NFIELDS (type);
int i;
@@ -3991,10 +3924,8 @@ copy_cfront_struct_fields (fip, type, objfile)
for this class's virtual functions. */
static int
-attach_fields_to_type (fip, type, objfile)
- struct field_info *fip;
- register struct type *type;
- struct objfile *objfile;
+attach_fields_to_type (struct field_info *fip, register struct type *type,
+ struct objfile *objfile)
{
register int nfields = 0;
register int non_public_fields = 0;
@@ -4094,10 +4025,7 @@ attach_fields_to_type (fip, type, objfile)
*/
static struct type *
-read_struct_type (pp, type, objfile)
- char **pp;
- struct type *type;
- struct objfile *objfile;
+read_struct_type (char **pp, struct type *type, struct objfile *objfile)
{
struct cleanup *back_to;
struct field_info fi;
@@ -4144,10 +4072,8 @@ read_struct_type (pp, type, objfile)
array. */
static struct type *
-read_array_type (pp, type, objfile)
- register char **pp;
- register struct type *type;
- struct objfile *objfile;
+read_array_type (register char **pp, register struct type *type,
+ struct objfile *objfile)
{
struct type *index_type, *element_type, *range_type;
int lower, upper;
@@ -4211,10 +4137,8 @@ read_array_type (pp, type, objfile)
Also defines the symbols that represent the values of the type. */
static struct type *
-read_enum_type (pp, type, objfile)
- register char **pp;
- register struct type *type;
- struct objfile *objfile;
+read_enum_type (register char **pp, register struct type *type,
+ struct objfile *objfile)
{
register char *p;
char *name;
@@ -4463,10 +4387,7 @@ read_sun_floating_type (pp, typenums, objfile)
If encounter garbage, set *BITS to -1 and return 0. */
static long
-read_huge_number (pp, end, bits)
- char **pp;
- int end;
- int *bits;
+read_huge_number (char **pp, int end, int *bits)
{
char *p = *pp;
int sign = 1;
@@ -4770,10 +4691,7 @@ handle_true_range:
**)-1 if there is an error. */
static struct type **
-read_args (pp, end, objfile)
- char **pp;
- int end;
- struct objfile *objfile;
+read_args (char **pp, int end, struct objfile *objfile)
{
/* FIXME! Remove this arbitrary limit! */
struct type *types[1024], **rval; /* allow for fns of 1023 parameters */
@@ -4827,9 +4745,7 @@ static char *common_block_name;
to remain after this function returns. */
void
-common_block_start (name, objfile)
- char *name;
- struct objfile *objfile;
+common_block_start (char *name, struct objfile *objfile)
{
if (common_block_name != NULL)
{
@@ -4848,8 +4764,7 @@ common_block_start (name, objfile)
/* Process a N_ECOMM symbol. */
void
-common_block_end (objfile)
- struct objfile *objfile;
+common_block_end (struct objfile *objfile)
{
/* Symbols declared since the BCOMM are to have the common block
start address added in when we know it. common_block and
@@ -4912,9 +4827,7 @@ common_block_end (objfile)
the common block name). */
static void
-fix_common_block (sym, valu)
- struct symbol *sym;
- int valu;
+fix_common_block (struct symbol *sym, int valu)
{
struct pending *next = (struct pending *) SYMBOL_TYPE (sym);
for (; next; next = next->next)
@@ -4933,8 +4846,7 @@ fix_common_block (sym, valu)
once this file has been read in. */
void
-add_undefined_type (type)
- struct type *type;
+add_undefined_type (struct type *type)
{
if (undef_types_length == undef_types_allocated)
{
@@ -4956,7 +4868,7 @@ add_undefined_type (type)
yet defined at the time a pointer to it was made.
Fix: Do a full lookup on the struct/union tag. */
void
-cleanup_undefined_types ()
+cleanup_undefined_types (void)
{
struct type **type;
@@ -5027,8 +4939,7 @@ GDB internal error. cleanup_undefined_types with bad type %d.", 0, 0};
to. Get these symbols from the minimal symbol table. */
void
-scan_file_globals (objfile)
- struct objfile *objfile;
+scan_file_globals (struct objfile *objfile)
{
int hash;
struct minimal_symbol *msymbol;
@@ -5186,7 +5097,7 @@ scan_file_globals (objfile)
to a psymtab. */
void
-stabsread_init ()
+stabsread_init (void)
{
}
@@ -5195,7 +5106,7 @@ stabsread_init ()
file, e.g. a shared library). */
void
-stabsread_new_init ()
+stabsread_new_init (void)
{
/* Empty the hash table of global syms looking for values. */
memset (global_sym_chain, 0, sizeof (global_sym_chain));
@@ -5205,7 +5116,7 @@ stabsread_new_init ()
start_symtab() is called. */
void
-start_stabs ()
+start_stabs (void)
{
global_stabs = NULL; /* AIX COFF */
/* Leave FILENUM of 0 free for builtin types and this file's types. */
@@ -5222,7 +5133,7 @@ start_stabs ()
/* Call after end_symtab() */
void
-end_stabs ()
+end_stabs (void)
{
if (type_vector)
{
@@ -5234,8 +5145,7 @@ end_stabs ()
}
void
-finish_global_stabs (objfile)
- struct objfile *objfile;
+finish_global_stabs (struct objfile *objfile)
{
if (global_stabs)
{
@@ -5248,7 +5158,7 @@ finish_global_stabs (objfile)
/* Initializer for this module */
void
-_initialize_stabsread ()
+_initialize_stabsread (void)
{
undef_types_allocated = 20;
undef_types_length = 0;
diff --git a/gdb/stack.c b/gdb/stack.c
index acd16b4..3e81f62 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -146,8 +146,7 @@ static int print_stack_frame_base_stub (char *);
Pass the args the way catch_errors wants them. */
static int show_and_print_stack_frame_stub (void *args);
static int
-show_and_print_stack_frame_stub (args)
- void *args;
+show_and_print_stack_frame_stub (void *args)
{
struct print_stack_frame_args *p = (struct print_stack_frame_args *) args;
@@ -165,8 +164,7 @@ show_and_print_stack_frame_stub (args)
Pass the args the way catch_errors wants them. */
static int print_stack_frame_stub (void *args);
static int
-print_stack_frame_stub (args)
- void *args;
+print_stack_frame_stub (void *args)
{
struct print_stack_frame_args *p = (struct print_stack_frame_args *) args;
@@ -183,8 +181,7 @@ print_stack_frame_stub (args)
/* Pass the args the way catch_errors wants them. */
static int
-print_stack_frame_base_stub (args)
- char *args;
+print_stack_frame_base_stub (char *args)
{
struct print_stack_frame_args *p = (struct print_stack_frame_args *) args;
@@ -196,8 +193,7 @@ print_stack_frame_base_stub (args)
Pass the args the way catch_errors wants them. */
static int print_only_stack_frame_stub (void *);
static int
-print_only_stack_frame_stub (args)
- void *args;
+print_only_stack_frame_stub (void *args)
{
struct print_stack_frame_args *p = (struct print_stack_frame_args *) args;
@@ -216,10 +212,7 @@ print_only_stack_frame_stub (args)
If SOURCE is -1, print ONLY the source line. */
static void
-print_stack_frame_base (fi, level, source)
- struct frame_info *fi;
- int level;
- int source;
+print_stack_frame_base (struct frame_info *fi, int level, int source)
{
struct print_stack_frame_args args;
@@ -242,10 +235,7 @@ print_stack_frame_base (fi, level, source)
If SOURCE is -1, print ONLY the source line. */
void
-show_and_print_stack_frame (fi, level, source)
- struct frame_info *fi;
- int level;
- int source;
+show_and_print_stack_frame (struct frame_info *fi, int level, int source)
{
struct print_stack_frame_args args;
@@ -269,10 +259,7 @@ show_and_print_stack_frame (fi, level, source)
If SOURCE is -1, print ONLY the source line. */
void
-print_stack_frame (fi, level, source)
- struct frame_info *fi;
- int level;
- int source;
+print_stack_frame (struct frame_info *fi, int level, int source)
{
struct print_stack_frame_args args;
@@ -295,10 +282,7 @@ print_stack_frame (fi, level, source)
If SOURCE is -1, print ONLY the source line. */
void
-print_only_stack_frame (fi, level, source)
- struct frame_info *fi;
- int level;
- int source;
+print_only_stack_frame (struct frame_info *fi, int level, int source)
{
struct print_stack_frame_args args;
@@ -322,8 +306,7 @@ static int print_args_stub (PTR);
/* Pass the args the way catch_errors wants them. */
static int
-print_args_stub (args)
- PTR args;
+print_args_stub (PTR args)
{
int numargs;
struct print_args_args *p = (struct print_args_args *) args;
@@ -344,11 +327,7 @@ print_args_stub (args)
LOC_AND_SRC: Print location and source line. */
static void
-print_frame_info_base (fi, level, source, args)
- struct frame_info *fi;
- int level;
- int source;
- int args;
+print_frame_info_base (struct frame_info *fi, int level, int source, int args)
{
struct symtab_and_line sal;
int source_print;
@@ -693,7 +672,7 @@ print_frame (struct frame_info *fi,
#if 0
void
-stack_publish_stopped_with_no_frame ()
+stack_publish_stopped_with_no_frame (void)
{
TUIDO (((TuiOpaqueFuncPtr) tuiUpdateOnEnd));
@@ -704,11 +683,8 @@ stack_publish_stopped_with_no_frame ()
/* Show or print the frame info. If this is the tui, it will be shown in
the source display */
void
-print_frame_info (fi, level, source, args)
- struct frame_info *fi;
- register int level;
- int source;
- int args;
+print_frame_info (struct frame_info *fi, register int level, int source,
+ int args)
{
if (!tui_version)
print_frame_info_base (fi, level, source, args);
@@ -726,8 +702,7 @@ print_frame_info (fi, level, source, args)
/* Show the frame info. If this is the tui, it will be shown in
the source display otherwise, nothing is done */
void
-show_stack_frame (fi)
- struct frame_info *fi;
+show_stack_frame (struct frame_info *fi)
{
TUIDO (((TuiOpaqueFuncPtr) tui_vShowFrameInfo, fi));
}
@@ -738,8 +713,7 @@ show_stack_frame (fi)
this function never returns NULL). */
struct frame_info *
-parse_frame_specification (frame_exp)
- char *frame_exp;
+parse_frame_specification (char *frame_exp)
{
int numargs = 0;
#define MAXARGS 4
@@ -855,9 +829,7 @@ parse_frame_specification (frame_exp)
This means absolutely all information in the frame is printed. */
static void
-frame_info (addr_exp, from_tty)
- char *addr_exp;
- int from_tty;
+frame_info (char *addr_exp, int from_tty)
{
struct frame_info *fi;
struct symtab_and_line sal;
@@ -1064,9 +1036,7 @@ frame_info (addr_exp, from_tty)
static int backtrace_limit;
static void
-set_backtrace_limit_command (count_exp, from_tty)
- char *count_exp;
- int from_tty;
+set_backtrace_limit_command (char *count_exp, int from_tty)
{
int count = parse_and_eval_address (count_exp);
@@ -1077,9 +1047,7 @@ set_backtrace_limit_command (count_exp, from_tty)
}
static void
-backtrace_limit_info (arg, from_tty)
- char *arg;
- int from_tty;
+backtrace_limit_info (char *arg, int from_tty)
{
if (arg)
error ("\"Info backtrace-limit\" takes no arguments.");
@@ -1093,10 +1061,7 @@ backtrace_limit_info (arg, from_tty)
static void backtrace_command_1 (char *count_exp, int show_locals,
int from_tty);
static void
-backtrace_command_1 (count_exp, show_locals, from_tty)
- char *count_exp;
- int show_locals;
- int from_tty;
+backtrace_command_1 (char *count_exp, int show_locals, int from_tty)
{
struct frame_info *fi;
register int count;
@@ -1193,9 +1158,7 @@ backtrace_command_1 (count_exp, show_locals, from_tty)
}
static void
-backtrace_command (arg, from_tty)
- char *arg;
- int from_tty;
+backtrace_command (char *arg, int from_tty)
{
struct cleanup *old_chain = (struct cleanup *) NULL;
char **argv = (char **) NULL;
@@ -1261,9 +1224,7 @@ backtrace_command (arg, from_tty)
static void backtrace_full_command (char *arg, int from_tty);
static void
-backtrace_full_command (arg, from_tty)
- char *arg;
- int from_tty;
+backtrace_full_command (char *arg, int from_tty)
{
backtrace_command_1 (arg, 1, from_tty);
}
@@ -1273,11 +1234,8 @@ backtrace_full_command (arg, from_tty)
Return 1 if any variables were printed; 0 otherwise. */
static int
-print_block_frame_locals (b, fi, num_tabs, stream)
- struct block *b;
- register struct frame_info *fi;
- int num_tabs;
- register struct ui_file *stream;
+print_block_frame_locals (struct block *b, register struct frame_info *fi,
+ int num_tabs, register struct ui_file *stream)
{
int nsyms;
register int i, j;
@@ -1315,10 +1273,8 @@ print_block_frame_locals (b, fi, num_tabs, stream)
/* Same, but print labels. */
static int
-print_block_frame_labels (b, have_default, stream)
- struct block *b;
- int *have_default;
- register struct ui_file *stream;
+print_block_frame_labels (struct block *b, int *have_default,
+ register struct ui_file *stream)
{
int nsyms;
register int i;
@@ -1363,10 +1319,8 @@ print_block_frame_labels (b, have_default, stream)
on the function running in FRAME. */
static void
-print_frame_local_vars (fi, num_tabs, stream)
- register struct frame_info *fi;
- register int num_tabs;
- register struct ui_file *stream;
+print_frame_local_vars (register struct frame_info *fi, register int num_tabs,
+ register struct ui_file *stream)
{
register struct block *block = get_frame_block (fi);
register int values_printed = 0;
@@ -1398,10 +1352,8 @@ print_frame_local_vars (fi, num_tabs, stream)
/* Same, but print labels. */
static void
-print_frame_label_vars (fi, this_level_only, stream)
- register struct frame_info *fi;
- int this_level_only;
- register struct ui_file *stream;
+print_frame_label_vars (register struct frame_info *fi, int this_level_only,
+ register struct ui_file *stream)
{
register struct blockvector *bl;
register struct block *block = get_frame_block (fi);
@@ -1469,9 +1421,7 @@ print_frame_label_vars (fi, this_level_only, stream)
/* ARGSUSED */
void
-locals_info (args, from_tty)
- char *args;
- int from_tty;
+locals_info (char *args, int from_tty)
{
if (!selected_frame)
error ("No frame selected.");
@@ -1479,9 +1429,7 @@ locals_info (args, from_tty)
}
static void
-catch_info (ignore, from_tty)
- char *ignore;
- int from_tty;
+catch_info (char *ignore, int from_tty)
{
struct symtab_and_line *sal;
@@ -1509,9 +1457,8 @@ catch_info (ignore, from_tty)
}
static void
-print_frame_arg_vars (fi, stream)
- register struct frame_info *fi;
- register struct ui_file *stream;
+print_frame_arg_vars (register struct frame_info *fi,
+ register struct ui_file *stream)
{
struct symbol *func = get_frame_function (fi);
register struct block *b;
@@ -1574,9 +1521,7 @@ print_frame_arg_vars (fi, stream)
}
void
-args_info (ignore, from_tty)
- char *ignore;
- int from_tty;
+args_info (char *ignore, int from_tty)
{
if (!selected_frame)
error ("No frame selected.");
@@ -1585,9 +1530,7 @@ args_info (ignore, from_tty)
static void
-args_plus_locals_info (ignore, from_tty)
- char *ignore;
- int from_tty;
+args_plus_locals_info (char *ignore, int from_tty)
{
args_info (ignore, from_tty);
locals_info (ignore, from_tty);
@@ -1598,9 +1541,7 @@ args_plus_locals_info (ignore, from_tty)
LEVEL may be -1 if an actual level number is not known. */
void
-select_frame (fi, level)
- struct frame_info *fi;
- int level;
+select_frame (struct frame_info *fi, int level)
{
register struct symtab *s;
@@ -1636,9 +1577,7 @@ select_frame (fi, level)
/* Select frame FI, noting that its stack level is LEVEL. Also print
the stack frame and show the source if this is the tui version. */
void
-select_and_print_frame (fi, level)
- struct frame_info *fi;
- int level;
+select_and_print_frame (struct frame_info *fi, int level)
{
select_frame (fi, level);
if (fi)
@@ -1653,9 +1592,7 @@ select_and_print_frame (fi, level)
not the TUI */
#if 0
void
-select_and_maybe_print_frame (fi, level)
- struct frame_info *fi;
- int level;
+select_and_maybe_print_frame (struct frame_info *fi, int level)
{
if (!tui_version)
select_frame (fi, level);
@@ -1669,9 +1606,7 @@ select_and_maybe_print_frame (fi, level)
If there is no selected frame, *FRAMEP is set to NULL. */
void
-record_selected_frame (frameaddrp, levelp)
- CORE_ADDR *frameaddrp;
- int *levelp;
+record_selected_frame (CORE_ADDR *frameaddrp, int *levelp)
{
*frameaddrp = selected_frame ? selected_frame->frame : 0;
*levelp = selected_frame_level;
@@ -1681,7 +1616,7 @@ record_selected_frame (frameaddrp, levelp)
Can return zero under various legitimate circumstances. */
struct block *
-get_selected_block ()
+get_selected_block (void)
{
if (!target_has_stack)
return 0;
@@ -1701,9 +1636,8 @@ get_selected_block ()
how much farther the original request asked to go. */
struct frame_info *
-find_relative_frame (frame, level_offset_ptr)
- register struct frame_info *frame;
- register int *level_offset_ptr;
+find_relative_frame (register struct frame_info *frame,
+ register int *level_offset_ptr)
{
register struct frame_info *prev;
register struct frame_info *frame1;
@@ -1742,17 +1676,13 @@ find_relative_frame (frame, level_offset_ptr)
/* ARGSUSED */
#ifdef UI_OUT
void
-select_frame_command_wrapper (level_exp, from_tty)
- char *level_exp;
- int from_tty;
+select_frame_command_wrapper (char *level_exp, int from_tty)
{
select_frame_command (level_exp, from_tty);
}
#endif
static void
-select_frame_command (level_exp, from_tty)
- char *level_exp;
- int from_tty;
+select_frame_command (char *level_exp, int from_tty)
{
register struct frame_info *frame, *frame1;
unsigned int level = 0;
@@ -1784,9 +1714,7 @@ select_frame_command (level_exp, from_tty)
frame. */
void
-frame_command (level_exp, from_tty)
- char *level_exp;
- int from_tty;
+frame_command (char *level_exp, int from_tty)
{
select_frame_command (level_exp, from_tty);
show_and_print_stack_frame (selected_frame, selected_frame_level, 1);
@@ -1795,9 +1723,7 @@ frame_command (level_exp, from_tty)
/* The XDB Compatibility command to print the current frame. */
static void
-current_frame_command (level_exp, from_tty)
- char *level_exp;
- int from_tty;
+current_frame_command (char *level_exp, int from_tty)
{
if (target_has_stack == 0 || selected_frame == 0)
error ("No stack.");
@@ -1809,8 +1735,7 @@ current_frame_command (level_exp, from_tty)
/* ARGSUSED */
static void
-up_silently_base (count_exp)
- char *count_exp;
+up_silently_base (char *count_exp)
{
register struct frame_info *fi;
int count = 1, count1;
@@ -1828,9 +1753,7 @@ up_silently_base (count_exp)
}
static void
-up_silently_command (count_exp, from_tty)
- char *count_exp;
- int from_tty;
+up_silently_command (char *count_exp, int from_tty)
{
up_silently_base (count_exp);
if (tui_version)
@@ -1838,9 +1761,7 @@ up_silently_command (count_exp, from_tty)
}
static void
-up_command (count_exp, from_tty)
- char *count_exp;
- int from_tty;
+up_command (char *count_exp, int from_tty)
{
up_silently_base (count_exp);
show_and_print_stack_frame (selected_frame, selected_frame_level, 1);
@@ -1851,8 +1772,7 @@ up_command (count_exp, from_tty)
/* ARGSUSED */
static void
-down_silently_base (count_exp)
- char *count_exp;
+down_silently_base (char *count_exp)
{
register struct frame_info *frame;
int count = -1, count1;
@@ -1880,9 +1800,7 @@ down_silently_base (count_exp)
/* ARGSUSED */
static void
-down_silently_command (count_exp, from_tty)
- char *count_exp;
- int from_tty;
+down_silently_command (char *count_exp, int from_tty)
{
down_silently_base (count_exp);
if (tui_version)
@@ -1890,9 +1808,7 @@ down_silently_command (count_exp, from_tty)
}
static void
-down_command (count_exp, from_tty)
- char *count_exp;
- int from_tty;
+down_command (char *count_exp, int from_tty)
{
down_silently_base (count_exp);
show_and_print_stack_frame (selected_frame, selected_frame_level, 1);
@@ -1900,17 +1816,13 @@ down_command (count_exp, from_tty)
#ifdef UI_OUT
void
-return_command_wrapper (retval_exp, from_tty)
- char *retval_exp;
- int from_tty;
+return_command_wrapper (char *retval_exp, int from_tty)
{
return_command (retval_exp, from_tty);
}
#endif
static void
-return_command (retval_exp, from_tty)
- char *retval_exp;
- int from_tty;
+return_command (char *retval_exp, int from_tty)
{
struct symbol *thisfun;
CORE_ADDR selected_frame_addr;
@@ -1998,9 +1910,7 @@ struct function_bounds
static void func_command (char *arg, int from_tty);
static void
-func_command (arg, from_tty)
- char *arg;
- int from_tty;
+func_command (char *arg, int from_tty)
{
struct frame_info *fp;
int found = 0;
@@ -2054,7 +1964,7 @@ func_command (arg, from_tty)
/* Gets the language of the current frame. */
enum language
-get_frame_language ()
+get_frame_language (void)
{
register struct symtab *s;
enum language flang; /* The language of the current frame */
@@ -2074,7 +1984,7 @@ get_frame_language ()
}
void
-_initialize_stack ()
+_initialize_stack (void)
{
#if 0
backtrace_limit = 30;
diff --git a/gdb/standalone.c b/gdb/standalone.c
index ebb14d9..1aa76d5 100644
--- a/gdb/standalone.c
+++ b/gdb/standalone.c
@@ -39,7 +39,7 @@
/* Random system calls, mostly no-ops to prevent link problems */
-ioctl (desc, code, arg)
+ioctl (int desc, int code, int arg)
{
}
@@ -47,27 +47,25 @@ int (*signal ()) ()
{
}
-kill ()
+kill (void)
{
}
-getpid ()
+getpid (void)
{
return 0;
}
-sigsetmask ()
+sigsetmask (void)
{
}
-chdir ()
+chdir (void)
{
}
char *
-getcwd (buf, len)
- char *buf;
- unsigned int len;
+getcwd (char *buf, unsigned int len)
{
buf[0] = '/';
buf[1] = 0;
@@ -76,12 +74,12 @@ getcwd (buf, len)
/* Used to check for existence of .gdbinit. Say no. */
-access ()
+access (void)
{
return -1;
}
-exit ()
+exit (void)
{
error ("Fatal error; restarting.");
}
@@ -129,9 +127,7 @@ int sourceleft; /* number of bytes to eof */
int sourcedesc;
-open (filename, modes)
- char *filename;
- int modes;
+open (char *filename, int modes)
{
register char *next;
@@ -162,8 +158,7 @@ open (filename, modes)
return 0;
}
-close (desc)
- int desc;
+close (int desc)
{
sourceptr = 0;
sourcedesc++;
@@ -173,28 +168,23 @@ close (desc)
}
FILE *
-fopen (filename, modes)
- char *filename;
- char *modes;
+fopen (char *filename, char *modes)
{
return (FILE *) open (filename, *modes == 'w');
}
FILE *
-fdopen (desc)
- int desc;
+fdopen (int desc)
{
return (FILE *) desc;
}
-fclose (desc)
- int desc;
+fclose (int desc)
{
close (desc);
}
-fstat (desc, statbuf)
- struct stat *statbuf;
+fstat (int desc, struct stat *statbuf)
{
if (desc != sourcedesc)
{
@@ -204,11 +194,7 @@ fstat (desc, statbuf)
statbuf->st_size = sourcesize;
}
-myread (desc, destptr, size, filename)
- int desc;
- char *destptr;
- int size;
- char *filename;
+myread (int desc, char *destptr, int size, char *filename)
{
int len = min (sourceleft, size);
@@ -224,7 +210,7 @@ myread (desc, destptr, size, filename)
}
int
-fread (bufp, numelts, eltsize, stream)
+fread (int bufp, int numelts, int eltsize, int stream)
{
register int elts = min (numelts, sourceleft / eltsize);
register int len = elts * eltsize;
@@ -241,8 +227,7 @@ fread (bufp, numelts, eltsize, stream)
}
int
-fgetc (desc)
- int desc;
+fgetc (int desc)
{
if (desc == (int) stdin)
@@ -259,9 +244,7 @@ fgetc (desc)
return *sourceptr++;
}
-lseek (desc, pos)
- int desc;
- int pos;
+lseek (int desc, int pos)
{
if (desc != sourcedesc)
@@ -283,30 +266,29 @@ lseek (desc, pos)
/* Output in kdb can go only to the terminal, so the stream
specified may be ignored. */
-printf (a1, a2, a3, a4, a5, a6, a7, a8, a9)
+printf (int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9)
{
char buffer[1024];
sprintf (buffer, a1, a2, a3, a4, a5, a6, a7, a8, a9);
display_string (buffer);
}
-fprintf (ign, a1, a2, a3, a4, a5, a6, a7, a8, a9)
+fprintf (int ign, int a1, int a2, int a3, int a4, int a5, int a6, int a7,
+ int a8, int a9)
{
char buffer[1024];
sprintf (buffer, a1, a2, a3, a4, a5, a6, a7, a8, a9);
display_string (buffer);
}
-fwrite (buf, numelts, size, stream)
- register char *buf;
- int numelts, size;
+fwrite (register char *buf, int numelts, int size, int stream)
{
register int i = numelts * size;
while (i-- > 0)
fputc (*buf++, stream);
}
-fputc (c, ign)
+fputc (int c, int ign)
{
char buf[2];
buf[0] = c;
@@ -318,28 +300,27 @@ fputc (c, ign)
library would cause fflush to be loaded from it too.
In fact there should be no need to call this (I hope). */
-_flsbuf ()
+_flsbuf (void)
{
error ("_flsbuf was actually called.");
}
-fflush (ign)
+fflush (int ign)
{
}
/* Entries into core and inflow, needed only to make things link ok. */
-exec_file_command ()
+exec_file_command (void)
{
}
-core_file_command ()
+core_file_command (void)
{
}
char *
-get_exec_file (err)
- int err;
+get_exec_file (int err)
{
/* Makes one printout look reasonable; value does not matter otherwise. */
return "run";
@@ -347,50 +328,44 @@ get_exec_file (err)
/* Nonzero if there is a core file. */
-have_core_file_p ()
+have_core_file_p (void)
{
return 0;
}
-kill_command ()
+kill_command (void)
{
inferior_pid = 0;
}
-terminal_inferior ()
+terminal_inferior (void)
{
}
-terminal_ours ()
+terminal_ours (void)
{
}
-terminal_init_inferior ()
+terminal_init_inferior (void)
{
}
-write_inferior_register ()
+write_inferior_register (void)
{
}
-read_inferior_register ()
+read_inferior_register (void)
{
}
-read_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+read_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
memcpy (myaddr, memaddr, len);
}
/* Always return 0 indicating success. */
-write_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+write_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
memcpy (memaddr, myaddr, len);
return 0;
@@ -399,8 +374,7 @@ write_memory (memaddr, myaddr, len)
static REGISTER_TYPE saved_regs[NUM_REGS];
REGISTER_TYPE
-read_register (regno)
- int regno;
+read_register (int regno)
{
if (regno < 0 || regno >= NUM_REGS)
error ("Register number %d out of range.", regno);
@@ -408,9 +382,7 @@ read_register (regno)
}
void
-write_register (regno, value)
- int regno;
- REGISTER_TYPE value;
+write_register (int regno, REGISTER_TYPE value)
{
if (regno < 0 || regno >= NUM_REGS)
error ("Register number %d out of range.", regno);
@@ -419,7 +391,7 @@ write_register (regno, value)
/* System calls needed in relation to running the "inferior". */
-vfork ()
+vfork (void)
{
/* Just appear to "succeed". Say the inferior's pid is 1. */
return 1;
@@ -429,26 +401,25 @@ vfork ()
that has just been forked. That code never runs, when standalone,
and these definitions are so it will link without errors. */
-ptrace ()
+ptrace (void)
{
}
-setpgrp ()
+setpgrp (void)
{
}
-execle ()
+execle (void)
{
}
-_exit ()
+_exit (void)
{
}
/* Malloc calls these. */
-malloc_warning (str)
- char *str;
+malloc_warning (char *str)
{
printf ("\n%s.\n\n", str);
}
@@ -457,8 +428,7 @@ char *next_free;
char *memory_limit;
char *
-sbrk (amount)
- int amount;
+sbrk (int amount)
{
if (next_free + amount > memory_limit)
return (char *) -1;
@@ -469,19 +439,18 @@ sbrk (amount)
/* Various ways malloc might ask where end of memory is. */
char *
-ulimit ()
+ulimit (void)
{
return memory_limit;
}
int
-vlimit ()
+vlimit (void)
{
return memory_limit - next_free;
}
-getrlimit (addr)
- struct rlimit *addr;
+getrlimit (struct rlimit *addr)
{
addr->rlim_cur = memory_limit - next_free;
}
@@ -496,7 +465,7 @@ getrlimit (addr)
static int fault_code;
static REGISTER_TYPE gdb_stack;
-resume ()
+resume (void)
{
REGISTER_TYPE restore[NUM_REGS];
@@ -508,8 +477,7 @@ resume ()
/* Control does not drop through here! */
}
-save_frame_pointer (val)
- CORE_ADDR val;
+save_frame_pointer (CORE_ADDR val)
{
gdb_stack = val;
}
@@ -520,7 +488,7 @@ save_frame_pointer (val)
The exact format is machine-dependent and is known only
in the definition of PUSH_REGISTERS. */
-fault ()
+fault (void)
{
/* Transfer all registers and fault code to the stack
in canonical order: registers in order of GDB register number,
@@ -534,7 +502,7 @@ fault ()
/* Control does not reach here */
}
-restore_gdb ()
+restore_gdb (void)
{
CORE_ADDR new_fp = gdb_stack;
/* Switch to GDB's stack */
@@ -546,8 +514,7 @@ restore_gdb ()
arguments to this function, copy them into the standard place
for the program's registers while GDB is running. */
-save_registers (firstreg)
- int firstreg;
+save_registers (int firstreg)
{
memcpy (saved_regs, &firstreg, sizeof saved_regs);
fault_code = (&firstreg)[NUM_REGS];
@@ -560,8 +527,7 @@ save_registers (firstreg)
static int fault_table[] = FAULT_TABLE;
int
-wait (w)
- WAITTYPE *w;
+wait (WAITTYPE *w)
{
WSETSTOP (*w, fault_table[fault_code / FAULT_CODE_UNITS]);
return inferior_pid;
@@ -591,7 +557,7 @@ char heap[HEAP_SIZE] =
int kdb_stack_beg[STACK_SIZE / sizeof (int)];
int kdb_stack_end;
-_initialize_standalone ()
+_initialize_standalone (void)
{
register char *next;
diff --git a/gdb/stop-gdb.c b/gdb/stop-gdb.c
index f4470a8..099137f 100644
--- a/gdb/stop-gdb.c
+++ b/gdb/stop-gdb.c
@@ -41,9 +41,7 @@
#include <servers/netname_defs.h>
void
-main (argc, argv)
- int argc;
- char **argv;
+main (int argc, char **argv)
{
kern_return_t kr;
mach_msg_header_t msg;
diff --git a/gdb/stuff.c b/gdb/stuff.c
index babd29f..33b26f3 100644
--- a/gdb/stuff.c
+++ b/gdb/stuff.c
@@ -94,9 +94,7 @@ main (argc, argv)
/* Read symbol table from file and returns the offset into the file
* where symbol sym_name is located. If error, print message and
* exit. */
-get_offset (file, sym_name)
- char *file;
- char *sym_name;
+get_offset (char *file, char *sym_name)
{
int f;
struct exec file_hdr;
@@ -139,11 +137,8 @@ get_offset (file, sym_name)
return (N_TXTOFF (file_hdr) + core_addr - origin);
}
-find_symbol (sym_name, symbol_table, length, strings)
- char *sym_name;
- struct nlist *symbol_table;
- int length;
- char *strings;
+find_symbol (char *sym_name, struct nlist *symbol_table, int length,
+ char *strings)
{
register struct nlist *sym;
diff --git a/gdb/sun3-nat.c b/gdb/sun3-nat.c
index d608d5f..8f94809 100644
--- a/gdb/sun3-nat.c
+++ b/gdb/sun3-nat.c
@@ -29,8 +29,7 @@
static void fetch_core_registers (char *, unsigned, int, CORE_ADDR);
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
struct regs inferior_registers;
struct fp_status inferior_fp_registers;
@@ -63,8 +62,7 @@ fetch_inferior_registers (regno)
Otherwise, REGNO specifies which register (so we can save time). */
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
struct regs inferior_registers;
struct fp_status inferior_fp_registers;
@@ -151,7 +149,7 @@ static struct core_fns sun3_core_fns =
};
void
-_initialize_core_sun3 ()
+_initialize_core_sun3 (void)
{
add_core_fns (&sun3_core_fns);
}
diff --git a/gdb/sun386-nat.c b/gdb/sun386-nat.c
index c37f4c2..987e82f 100644
--- a/gdb/sun386-nat.c
+++ b/gdb/sun386-nat.c
@@ -45,9 +45,7 @@
void
-core_file_command (filename, from_tty)
- char *filename;
- int from_tty;
+core_file_command (char *filename, int from_tty)
{
int val;
@@ -137,9 +135,7 @@ core_file_command (filename, from_tty)
printf_unfiltered ("No core file now.\n");
}
-i387_to_double (from, to)
- char *from;
- char *to;
+i387_to_double (char *from, char *to)
{
long *lp;
/* push extended mode on 387 stack, then pop in double mode
@@ -167,9 +163,7 @@ i387_to_double (from, to)
asm ("popl %eax"); /* flush saved copy */
}
-double_to_i387 (from, to)
- char *from;
- char *to;
+double_to_i387 (char *from, char *to)
{
/* push double mode on 387 stack, then pop in extended mode
* no errors are possible because every 64-bit pattern
@@ -184,8 +178,7 @@ double_to_i387 (from, to)
}
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
struct regs inferior_registers;
struct fp_state inferior_fp_registers;
@@ -211,8 +204,7 @@ fetch_inferior_registers (regno)
Otherwise, REGNO specifies which register (so we can save time). */
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
struct regs inferior_registers;
struct fp_state inferior_fp_registers;
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 580a08f..e28158a 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -206,9 +206,7 @@ int auto_solib_add = 1;
comparison function takes two "void *" pointers. */
static int
-compare_symbols (s1p, s2p)
- const PTR s1p;
- const PTR s2p;
+compare_symbols (const PTR s1p, const PTR s2p)
{
register struct symbol **s1, **s2;
@@ -241,9 +239,7 @@ compare_symbols (s1p, s2p)
*/
static int
-compare_psymbols (s1p, s2p)
- const PTR s1p;
- const PTR s2p;
+compare_psymbols (const PTR s1p, const PTR s2p)
{
register char *st1 = SYMBOL_NAME (*(struct partial_symbol **) s1p);
register char *st2 = SYMBOL_NAME (*(struct partial_symbol **) s2p);
@@ -275,8 +271,7 @@ compare_psymbols (s1p, s2p)
}
void
-sort_pst_symbols (pst)
- struct partial_symtab *pst;
+sort_pst_symbols (struct partial_symtab *pst)
{
/* Sort the global list; don't sort the static list */
@@ -288,8 +283,7 @@ sort_pst_symbols (pst)
/* Call sort_block_syms to sort alphabetically the symbols of one block. */
void
-sort_block_syms (b)
- register struct block *b;
+sort_block_syms (register struct block *b)
{
qsort (&BLOCK_SYM (b, 0), BLOCK_NSYMS (b),
sizeof (struct symbol *), compare_symbols);
@@ -299,8 +293,7 @@ sort_block_syms (b)
the symbols of each block of one symtab. */
void
-sort_symtab_syms (s)
- register struct symtab *s;
+sort_symtab_syms (register struct symtab *s)
{
register struct blockvector *bv;
int nbl;
@@ -325,10 +318,7 @@ sort_symtab_syms (s)
may be part of a larger string and we are only saving a substring. */
char *
-obsavestring (ptr, size, obstackp)
- char *ptr;
- int size;
- struct obstack *obstackp;
+obsavestring (char *ptr, int size, struct obstack *obstackp)
{
register char *p = (char *) obstack_alloc (obstackp, size + 1);
/* Open-coded memcpy--saves function call time. These strings are usually
@@ -349,9 +339,8 @@ obsavestring (ptr, size, obstackp)
in the obstack pointed to by OBSTACKP. */
char *
-obconcat (obstackp, s1, s2, s3)
- struct obstack *obstackp;
- const char *s1, *s2, *s3;
+obconcat (struct obstack *obstackp, const char *s1, const char *s2,
+ const char *s3)
{
register int len = strlen (s1) + strlen (s2) + strlen (s3) + 1;
register char *val = (char *) obstack_alloc (obstackp, len);
@@ -366,8 +355,7 @@ obconcat (obstackp, s1, s2, s3)
int currently_reading_symtab = 0;
static void
-decrement_reading_symtab (dummy)
- void *dummy;
+decrement_reading_symtab (void *dummy)
{
currently_reading_symtab--;
}
@@ -378,8 +366,7 @@ decrement_reading_symtab (dummy)
case inline. */
struct symtab *
-psymtab_to_symtab (pst)
- register struct partial_symtab *pst;
+psymtab_to_symtab (register struct partial_symtab *pst)
{
/* If it's been looked up before, return it. */
if (pst->symtab)
@@ -400,8 +387,7 @@ psymtab_to_symtab (pst)
/* Initialize entry point information for this objfile. */
void
-init_entry_point_info (objfile)
- struct objfile *objfile;
+init_entry_point_info (struct objfile *objfile)
{
/* Save startup file's range of PC addresses to help blockframe.c
decide where the bottom of the stack is. */
@@ -428,7 +414,7 @@ init_entry_point_info (objfile)
/* Get current entry point address. */
CORE_ADDR
-entry_point_address ()
+entry_point_address (void)
{
return symfile_objfile ? symfile_objfile->ei.entry_point : 0;
}
@@ -443,10 +429,7 @@ entry_point_address ()
lowest-addressed loadable section. */
void
-find_lowest_section (abfd, sect, obj)
- bfd *abfd;
- asection *sect;
- PTR obj;
+find_lowest_section (bfd *abfd, asection *sect, PTR obj)
{
asection **lowest = (asection **) obj;
@@ -514,9 +497,8 @@ free_section_addr_info (struct section_addr_info *sap)
for the objectfile OBJFILE and stuffs ADDR into all of the offsets. */
void
-default_symfile_offsets (objfile, addrs)
- struct objfile *objfile;
- struct section_addr_info *addrs;
+default_symfile_offsets (struct objfile *objfile,
+ struct section_addr_info *addrs)
{
int i;
asection *sect = NULL;
@@ -578,11 +560,8 @@ default_symfile_offsets (objfile, addrs)
the symbol reading (and complaints can be more terse about it). */
void
-syms_from_objfile (objfile, addrs, mainline, verbo)
- struct objfile *objfile;
- struct section_addr_info *addrs;
- int mainline;
- int verbo;
+syms_from_objfile (struct objfile *objfile, struct section_addr_info *addrs,
+ int mainline, int verbo)
{
asection *lower_sect;
asection *sect;
@@ -790,10 +769,7 @@ syms_from_objfile (objfile, addrs, mainline, verbo)
objfile. */
void
-new_symfile_objfile (objfile, mainline, verbo)
- struct objfile *objfile;
- int mainline;
- int verbo;
+new_symfile_objfile (struct objfile *objfile, int mainline, int verbo)
{
/* If this is the main symbol file we have to clean up all users of the
@@ -829,12 +805,8 @@ new_symfile_objfile (objfile, mainline, verbo)
Upon failure, jumps back to command level (never returns). */
struct objfile *
-symbol_file_add (name, from_tty, addrs, mainline, flags)
- char *name;
- int from_tty;
- struct section_addr_info *addrs;
- int mainline;
- int flags;
+symbol_file_add (char *name, int from_tty, struct section_addr_info *addrs,
+ int mainline, int flags)
{
struct objfile *objfile;
struct partial_symtab *psymtab;
@@ -946,9 +918,7 @@ symbol_file_add (name, from_tty, addrs, mainline, flags)
and pass that to symbol_file_add(). This is no longer supported. */
void
-symbol_file_command (args, from_tty)
- char *args;
- int from_tty;
+symbol_file_command (char *args, int from_tty)
{
char **argv;
char *name = NULL;
@@ -1034,7 +1004,7 @@ symbol_file_command (args, from_tty)
FIXME. */
static void
-set_initial_language ()
+set_initial_language (void)
{
struct partial_symtab *pst;
enum language lang = language_unknown;
@@ -1062,8 +1032,7 @@ set_initial_language ()
In case of trouble, error() is called. */
bfd *
-symfile_bfd_open (name)
- char *name;
+symfile_bfd_open (char *name)
{
bfd *sym_bfd;
int desc;
@@ -1122,8 +1091,7 @@ symfile_bfd_open (name)
to handle. */
void
-add_symtab_fns (sf)
- struct sym_fns *sf;
+add_symtab_fns (struct sym_fns *sf)
{
sf->next = symtab_fns;
symtab_fns = sf;
@@ -1136,8 +1104,7 @@ add_symtab_fns (sf)
symbol file. */
static void
-find_sym_fns (objfile)
- struct objfile *objfile;
+find_sym_fns (struct objfile *objfile)
{
struct sym_fns *sf;
enum bfd_flavour our_flavour = bfd_get_flavour (objfile->obfd);
@@ -1162,9 +1129,7 @@ find_sym_fns (objfile)
/* This function runs the load command of our current target. */
static void
-load_command (arg, from_tty)
- char *arg;
- int from_tty;
+load_command (char *arg, int from_tty)
{
if (arg == NULL)
arg = get_exec_file (1);
@@ -1371,9 +1336,8 @@ generic_load (char *args, int from_tty)
function signature). */
void
-report_transfer_performance (data_count, start_time, end_time)
- unsigned long data_count;
- time_t start_time, end_time;
+report_transfer_performance (unsigned long data_count, time_t start_time,
+ time_t end_time)
{
print_transfer_performance (gdb_stdout, data_count, end_time - start_time, 0);
}
@@ -1427,9 +1391,7 @@ print_transfer_performance (struct ui_file *stream,
/* ARGSUSED */
static void
-add_symbol_file_command (args, from_tty)
- char *args;
- int from_tty;
+add_symbol_file_command (char *args, int from_tty)
{
char *filename = NULL;
int flags = OBJF_USERLOADED;
@@ -1585,9 +1547,7 @@ add_symbol_file_command (args, from_tty)
}
static void
-add_shared_symbol_files_command (args, from_tty)
- char *args;
- int from_tty;
+add_shared_symbol_files_command (char *args, int from_tty)
{
#ifdef ADD_SHARED_SYMBOL_FILES
ADD_SHARED_SYMBOL_FILES (args, from_tty);
@@ -1598,7 +1558,7 @@ add_shared_symbol_files_command (args, from_tty)
/* Re-read symbols if a symbol-file has changed. */
void
-reread_symbols ()
+reread_symbols (void)
{
struct objfile *objfile;
long new_modtime;
@@ -1808,9 +1768,7 @@ static filename_language *filename_language_table;
static int fl_table_size, fl_table_next;
static void
-add_filename_language (ext, lang)
- char *ext;
- enum language lang;
+add_filename_language (char *ext, enum language lang)
{
if (fl_table_next >= fl_table_size)
{
@@ -1827,9 +1785,7 @@ add_filename_language (ext, lang)
static char *ext_args;
static void
-set_ext_lang_command (args, from_tty)
- char *args;
- int from_tty;
+set_ext_lang_command (char *args, int from_tty)
{
int i;
char *cp = ext_args;
@@ -1886,9 +1842,7 @@ set_ext_lang_command (args, from_tty)
}
static void
-info_ext_lang_command (args, from_tty)
- char *args;
- int from_tty;
+info_ext_lang_command (char *args, int from_tty)
{
int i;
@@ -1901,7 +1855,7 @@ info_ext_lang_command (args, from_tty)
}
static void
-init_filename_language_table ()
+init_filename_language_table (void)
{
if (fl_table_size == 0) /* protect against repetition */
{
@@ -1932,8 +1886,7 @@ init_filename_language_table ()
}
enum language
-deduce_language_from_filename (filename)
- char *filename;
+deduce_language_from_filename (char *filename)
{
int i;
char *cp;
@@ -1962,9 +1915,7 @@ deduce_language_from_filename (filename)
*/
struct symtab *
-allocate_symtab (filename, objfile)
- char *filename;
- struct objfile *objfile;
+allocate_symtab (char *filename, struct objfile *objfile)
{
register struct symtab *symtab;
@@ -1996,9 +1947,7 @@ allocate_symtab (filename, objfile)
}
struct partial_symtab *
-allocate_psymtab (filename, objfile)
- char *filename;
- struct objfile *objfile;
+allocate_psymtab (char *filename, struct objfile *objfile)
{
struct partial_symtab *psymtab;
@@ -2040,8 +1989,7 @@ allocate_psymtab (filename, objfile)
}
void
-discard_psymtab (pst)
- struct partial_symtab *pst;
+discard_psymtab (struct partial_symtab *pst)
{
struct partial_symtab **prev_pst;
@@ -2070,7 +2018,7 @@ discard_psymtab (pst)
table data. */
void
-clear_symtab_users ()
+clear_symtab_users (void)
{
/* Someday, we should do better than this, by only blowing away
the things that really need to be blown. */
@@ -2126,7 +2074,7 @@ static int clear_symtab_users_queued;
static int clear_symtab_users_done;
static void
-clear_symtab_users_once ()
+clear_symtab_users_once (void)
{
/* Enforce once-per-`do_cleanups'-semantics */
if (clear_symtab_users_queued <= clear_symtab_users_done)
@@ -2140,8 +2088,7 @@ clear_symtab_users_once ()
/* Delete the specified psymtab, and any others that reference it. */
static void
-cashier_psymtab (pst)
- struct partial_symtab *pst;
+cashier_psymtab (struct partial_symtab *pst)
{
struct partial_symtab *ps, *pprev = NULL;
int i;
@@ -2198,8 +2145,7 @@ cashier_psymtab (pst)
all stray pointers into the freed symtab. */
int
-free_named_symtabs (name)
- char *name;
+free_named_symtabs (char *name)
{
#if 0
/* FIXME: With the new method of each objfile having it's own
@@ -2305,14 +2251,10 @@ again2:
FILENAME is the name of the symbol-file we are reading from. */
struct partial_symtab *
-start_psymtab_common (objfile, section_offsets,
- filename, textlow, global_syms, static_syms)
- struct objfile *objfile;
- struct section_offsets *section_offsets;
- char *filename;
- CORE_ADDR textlow;
- struct partial_symbol **global_syms;
- struct partial_symbol **static_syms;
+start_psymtab_common (struct objfile *objfile,
+ struct section_offsets *section_offsets, char *filename,
+ CORE_ADDR textlow, struct partial_symbol **global_syms,
+ struct partial_symbol **static_syms)
{
struct partial_symtab *psymtab;
@@ -2329,17 +2271,11 @@ start_psymtab_common (objfile, section_offsets,
Since one arg is a struct, we pass in a ptr and deref it (sigh). */
void
-add_psymbol_to_list (name, namelength, namespace, class, list, val, coreaddr,
- language, objfile)
- char *name;
- int namelength;
- namespace_enum namespace;
- enum address_class class;
- struct psymbol_allocation_list *list;
- long val; /* Value as a long */
- CORE_ADDR coreaddr; /* Value as a CORE_ADDR */
- enum language language;
- struct objfile *objfile;
+add_psymbol_to_list (char *name, int namelength, namespace_enum namespace,
+ enum address_class class,
+ struct psymbol_allocation_list *list, long val, /* Value as a long */
+ CORE_ADDR coreaddr, /* Value as a CORE_ADDR */
+ enum language language, struct objfile *objfile)
{
register struct partial_symbol *psym;
char *buf = alloca (namelength + 1);
@@ -2384,19 +2320,13 @@ add_psymbol_to_list (name, namelength, namespace, class, list, val, coreaddr,
* name. */
void
-add_psymbol_with_dem_name_to_list (name, namelength, dem_name, dem_namelength,
- namespace, class, list, val, coreaddr, language, objfile)
- char *name;
- int namelength;
- char *dem_name;
- int dem_namelength;
- namespace_enum namespace;
- enum address_class class;
- struct psymbol_allocation_list *list;
- long val; /* Value as a long */
- CORE_ADDR coreaddr; /* Value as a CORE_ADDR */
- enum language language;
- struct objfile *objfile;
+add_psymbol_with_dem_name_to_list (char *name, int namelength, char *dem_name,
+ int dem_namelength, namespace_enum namespace,
+ enum address_class class,
+ struct psymbol_allocation_list *list, long val, /* Value as a long */
+ CORE_ADDR coreaddr, /* Value as a CORE_ADDR */
+ enum language language,
+ struct objfile *objfile)
{
register struct partial_symbol *psym;
char *buf = alloca (namelength + 1);
@@ -2459,9 +2389,7 @@ add_psymbol_with_dem_name_to_list (name, namelength, dem_name, dem_namelength,
/* Initialize storage for partial symbols. */
void
-init_psymbol_list (objfile, total_symbols)
- struct objfile *objfile;
- int total_symbols;
+init_psymbol_list (struct objfile *objfile, int total_symbols)
{
/* Free any previously allocated psymbol lists. */
@@ -2559,8 +2487,7 @@ void (*target_overlay_update) (struct obj_section *) = simple_overlay_update;
SECTION is loaded at an address different from where it will "run". */
int
-section_is_overlay (section)
- asection *section;
+section_is_overlay (asection *section)
{
if (overlay_debugging)
if (section && section->lma != 0 &&
@@ -2574,7 +2501,7 @@ section_is_overlay (section)
Invalidate the mapped state of all overlay sections (mark it as stale). */
static void
-overlay_invalidate_all ()
+overlay_invalidate_all (void)
{
struct objfile *objfile;
struct obj_section *sect;
@@ -2595,8 +2522,7 @@ overlay_invalidate_all ()
section is stale, then call TARGET_OVERLAY_UPDATE to refresh it. */
static int
-overlay_is_mapped (osect)
- struct obj_section *osect;
+overlay_is_mapped (struct obj_section *osect)
{
if (osect == 0 || !section_is_overlay (osect->the_bfd_section))
return 0;
@@ -2629,8 +2555,7 @@ overlay_is_mapped (osect)
Returns true if section is an overlay, and is currently mapped. */
int
-section_is_mapped (section)
- asection *section;
+section_is_mapped (asection *section)
{
struct objfile *objfile;
struct obj_section *osect;
@@ -2648,9 +2573,7 @@ section_is_mapped (section)
If PC falls into the lma range of SECTION, return true, else false. */
CORE_ADDR
-pc_in_unmapped_range (pc, section)
- CORE_ADDR pc;
- asection *section;
+pc_in_unmapped_range (CORE_ADDR pc, asection *section)
{
int size;
@@ -2668,9 +2591,7 @@ pc_in_unmapped_range (pc, section)
If PC falls into the vma range of SECTION, return true, else false. */
CORE_ADDR
-pc_in_mapped_range (pc, section)
- CORE_ADDR pc;
- asection *section;
+pc_in_mapped_range (CORE_ADDR pc, asection *section)
{
int size;
@@ -2689,9 +2610,7 @@ pc_in_mapped_range (pc, section)
May be the same as PC. */
CORE_ADDR
-overlay_unmapped_address (pc, section)
- CORE_ADDR pc;
- asection *section;
+overlay_unmapped_address (CORE_ADDR pc, asection *section)
{
if (overlay_debugging)
if (section && section_is_overlay (section) &&
@@ -2706,9 +2625,7 @@ overlay_unmapped_address (pc, section)
May be the same as PC. */
CORE_ADDR
-overlay_mapped_address (pc, section)
- CORE_ADDR pc;
- asection *section;
+overlay_mapped_address (CORE_ADDR pc, asection *section)
{
if (overlay_debugging)
if (section && section_is_overlay (section) &&
@@ -2724,9 +2641,7 @@ overlay_mapped_address (pc, section)
depending on whether the section is mapped or not. */
CORE_ADDR
-symbol_overlayed_address (address, section)
- CORE_ADDR address;
- asection *section;
+symbol_overlayed_address (CORE_ADDR address, asection *section)
{
if (overlay_debugging)
{
@@ -2755,8 +2670,7 @@ symbol_overlayed_address (address, section)
Else if PC matches an unmapped section's LMA, return that section. */
asection *
-find_pc_overlay (pc)
- CORE_ADDR pc;
+find_pc_overlay (CORE_ADDR pc)
{
struct objfile *objfile;
struct obj_section *osect, *best_match = NULL;
@@ -2783,8 +2697,7 @@ find_pc_overlay (pc)
currently marked as MAPPED, return that section. Else return NULL. */
asection *
-find_pc_mapped_section (pc)
- CORE_ADDR pc;
+find_pc_mapped_section (CORE_ADDR pc)
{
struct objfile *objfile;
struct obj_section *osect;
@@ -2802,9 +2715,7 @@ find_pc_mapped_section (pc)
Print a list of mapped sections and their PC ranges */
void
-list_overlays_command (args, from_tty)
- char *args;
- int from_tty;
+list_overlays_command (char *args, int from_tty)
{
int nmapped = 0;
struct objfile *objfile;
@@ -2843,9 +2754,7 @@ list_overlays_command (args, from_tty)
Mark the named section as mapped (ie. residing at its VMA address). */
void
-map_overlay_command (args, from_tty)
- char *args;
- int from_tty;
+map_overlay_command (char *args, int from_tty)
{
struct objfile *objfile, *objfile2;
struct obj_section *sec, *sec2;
@@ -2896,9 +2805,7 @@ the 'overlay manual' command.");
(ie. resident in its LMA address range, rather than the VMA range). */
void
-unmap_overlay_command (args, from_tty)
- char *args;
- int from_tty;
+unmap_overlay_command (char *args, int from_tty)
{
struct objfile *objfile;
struct obj_section *sec;
@@ -2928,9 +2835,7 @@ the 'overlay manual' command.");
Possibly this should be done via a set/show command. */
static void
-overlay_auto_command (args, from_tty)
- char *args;
- int from_tty;
+overlay_auto_command (char *args, int from_tty)
{
overlay_debugging = -1;
if (info_verbose)
@@ -2942,9 +2847,7 @@ overlay_auto_command (args, from_tty)
Possibly this should be done via a set/show command. */
static void
-overlay_manual_command (args, from_tty)
- char *args;
- int from_tty;
+overlay_manual_command (char *args, int from_tty)
{
overlay_debugging = 1;
if (info_verbose)
@@ -2956,9 +2859,7 @@ overlay_manual_command (args, from_tty)
Possibly this should be done via a set/show command. */
static void
-overlay_off_command (args, from_tty)
- char *args;
- int from_tty;
+overlay_off_command (char *args, int from_tty)
{
overlay_debugging = 0;
if (info_verbose)
@@ -2966,9 +2867,7 @@ overlay_off_command (args, from_tty)
}
static void
-overlay_load_command (args, from_tty)
- char *args;
- int from_tty;
+overlay_load_command (char *args, int from_tty)
{
if (target_overlay_update)
(*target_overlay_update) (NULL);
@@ -2983,9 +2882,7 @@ overlay_load_command (args, from_tty)
struct cmd_list_element *overlaylist;
static void
-overlay_command (args, from_tty)
- char *args;
- int from_tty;
+overlay_command (char *args, int from_tty)
{
printf_unfiltered
("\"overlay\" must be followed by the name of an overlay command.\n");
@@ -3048,7 +2945,7 @@ enum ovly_index
/* Throw away the cached copy of _ovly_table */
static void
-simple_free_overlay_table ()
+simple_free_overlay_table (void)
{
if (cache_ovly_table)
free (cache_ovly_table);
@@ -3060,7 +2957,7 @@ simple_free_overlay_table ()
#if 0
/* Throw away the cached copy of _ovly_region_table */
static void
-simple_free_overlay_region_table ()
+simple_free_overlay_region_table (void)
{
if (cache_ovly_region_table)
free (cache_ovly_region_table);
@@ -3073,10 +2970,7 @@ simple_free_overlay_region_table ()
/* Read an array of ints from the target into a local buffer.
Convert to host order. int LEN is number of ints */
static void
-read_target_long_array (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- unsigned int *myaddr;
- int len;
+read_target_long_array (CORE_ADDR memaddr, unsigned int *myaddr, int len)
{
char *buf = alloca (len * TARGET_LONG_BYTES);
int i;
@@ -3090,7 +2984,7 @@ read_target_long_array (memaddr, myaddr, len)
/* Find and grab a copy of the target _ovly_table
(and _novlys, which is needed for the table's size) */
static int
-simple_read_overlay_table ()
+simple_read_overlay_table (void)
{
struct minimal_symbol *msym;
@@ -3123,7 +3017,7 @@ simple_read_overlay_table ()
/* Find and grab a copy of the target _ovly_region_table
(and _novly_regions, which is needed for the table's size) */
static int
-simple_read_overlay_region_table ()
+simple_read_overlay_region_table (void)
{
struct minimal_symbol *msym;
@@ -3162,8 +3056,7 @@ simple_read_overlay_region_table ()
success, 0 for failure. */
static int
-simple_overlay_update_1 (osect)
- struct obj_section *osect;
+simple_overlay_update_1 (struct obj_section *osect)
{
int i, size;
@@ -3197,8 +3090,7 @@ simple_overlay_update_1 (osect)
re-read the entire cache, and go ahead and update all sections. */
static void
-simple_overlay_update (osect)
- struct obj_section *osect;
+simple_overlay_update (struct obj_section *osect)
{
struct objfile *objfile;
@@ -3243,7 +3135,7 @@ simple_overlay_update (osect)
void
-_initialize_symfile ()
+_initialize_symfile (void)
{
struct cmd_list_element *c;
diff --git a/gdb/symm-nat.c b/gdb/symm-nat.c
index 1ec3a60..9a56a2a 100644
--- a/gdb/symm-nat.c
+++ b/gdb/symm-nat.c
@@ -53,8 +53,7 @@
#include "gdbcore.h"
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
struct pt_regset regs;
int i;
@@ -93,8 +92,7 @@ store_inferior_registers (regno)
}
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
int i;
struct pt_regset regs;
@@ -129,8 +127,7 @@ fetch_inferior_registers (regno)
/* FIXME: This should be merged with i387-tdep.c as well. */
static
-print_fpu_status (ep)
- struct pt_regset ep;
+print_fpu_status (struct pt_regset ep)
{
int i;
int bothstatus;
@@ -199,9 +196,7 @@ print_fpu_status (ep)
}
-print_1167_control_word (pcr)
- unsigned int pcr;
-
+print_1167_control_word (unsigned int pcr)
{
int pcr_tmp;
@@ -355,9 +350,7 @@ print_1167_regs (regs)
}
}
-print_fpa_status (ep)
- struct pt_regset ep;
-
+print_fpa_status (struct pt_regset ep)
{
printf_unfiltered ("WTL 1167:");
@@ -374,7 +367,7 @@ print_fpa_status (ep)
}
#if 0 /* disabled because it doesn't go through the target vector. */
-i386_float_info ()
+i386_float_info (void)
{
char ubuf[UPAGES * NBPG];
struct pt_regset regset;
@@ -408,8 +401,7 @@ static volatile int got_sigchld;
/*ARGSUSED */
/* This will eventually be more interesting. */
void
-sigchld_handler (signo)
- int signo;
+sigchld_handler (int signo)
{
got_sigchld++;
}
@@ -432,9 +424,7 @@ sigchld_handler (signo)
* Thanks to XPT_MPDEBUGGER, we have to mange child_wait().
*/
int
-child_wait (pid, status)
- int pid;
- struct target_waitstatus *status;
+child_wait (int pid, struct target_waitstatus *status)
{
int save_errno, rv, xvaloff, saoff, sa_hand;
struct pt_stop pt;
@@ -595,9 +585,7 @@ child_wait (pid, status)
* the MPDEBUGGER child_wait() works properly. This will go away when
* that is fixed.
*/
-child_wait (pid, ourstatus)
- int pid;
- struct target_waitstatus *ourstatus;
+child_wait (int pid, struct target_waitstatus *ourstatus)
{
int save_errno;
int status;
@@ -630,19 +618,13 @@ child_wait (pid, ourstatus)
It exists so that all calls to ptrace are isolated in this
machine-dependent file. */
int
-call_ptrace (request, pid, addr, data)
- int request, pid;
- PTRACE_ARG3_TYPE addr;
- int data;
+call_ptrace (int request, int pid, PTRACE_ARG3_TYPE addr, int data)
{
return ptrace (request, pid, addr, data);
}
int
-call_mptrace (request, pid, addr, data)
- int request, pid;
- PTRACE_ARG3_TYPE addr;
- int data;
+call_mptrace (int request, int pid, PTRACE_ARG3_TYPE addr, int data)
{
return mptrace (request, pid, addr, data);
}
@@ -655,7 +637,7 @@ call_mptrace (request, pid, addr, data)
#endif
void
-kill_inferior ()
+kill_inferior (void)
{
if (inferior_pid == 0)
return;
@@ -679,10 +661,7 @@ kill_inferior ()
If SIGNAL is nonzero, give it that signal. */
void
-child_resume (pid, step, signal)
- int pid;
- int step;
- enum target_signal signal;
+child_resume (int pid, int step, enum target_signal signal)
{
errno = 0;
@@ -710,8 +689,7 @@ child_resume (pid, step, signal)
#ifdef ATTACH_DETACH
/* Start debugging the process whose number is PID. */
int
-attach (pid)
- int pid;
+attach (int pid)
{
sigset_t set;
int rv;
@@ -731,8 +709,7 @@ attach (pid)
}
void
-detach (signo)
- int signo;
+detach (int signo)
{
int rv;
@@ -854,7 +831,7 @@ child_xfer_memory (memaddr, myaddr, len, write, target)
void
-_initialize_symm_nat ()
+_initialize_symm_nat (void)
{
#ifdef ATTACH_DETACH
/*
diff --git a/gdb/symm-tdep.c b/gdb/symm-tdep.c
index 667fd64..79d9431 100644
--- a/gdb/symm-tdep.c
+++ b/gdb/symm-tdep.c
@@ -35,10 +35,7 @@
#include <fcntl.h>
void
-symmetry_extract_return_value (type, regbuf, valbuf)
- struct type *type;
- char *regbuf;
- char *valbuf;
+symmetry_extract_return_value (struct type *type, char *regbuf, char *valbuf)
{
union
{
diff --git a/gdb/symmisc.c b/gdb/symmisc.c
index 1f46bc7..21bc3d4 100644
--- a/gdb/symmisc.c
+++ b/gdb/symmisc.c
@@ -82,9 +82,7 @@ static void free_symtab_block (struct objfile *, struct block *);
/* Free a struct block <- B and all the symbols defined in that block. */
static void
-free_symtab_block (objfile, b)
- struct objfile *objfile;
- struct block *b;
+free_symtab_block (struct objfile *objfile, struct block *b)
{
register int i, n;
n = BLOCK_NSYMS (b);
@@ -105,8 +103,7 @@ free_symtab_block (objfile, b)
It is s->free_code that says which alternative to use. */
void
-free_symtab (s)
- register struct symtab *s;
+free_symtab (register struct symtab *s)
{
register int i, n;
register struct blockvector *bv;
@@ -155,7 +152,7 @@ free_symtab (s)
}
void
-print_symbol_bcache_statistics ()
+print_symbol_bcache_statistics (void)
{
struct objfile *objfile;
@@ -169,7 +166,7 @@ print_symbol_bcache_statistics ()
}
void
-print_objfile_statistics ()
+print_objfile_statistics (void)
{
struct objfile *objfile;
@@ -208,8 +205,7 @@ print_objfile_statistics ()
}
static void
-dump_objfile (objfile)
- struct objfile *objfile;
+dump_objfile (struct objfile *objfile)
{
struct symtab *symtab;
struct partial_symtab *psymtab;
@@ -265,9 +261,7 @@ dump_objfile (objfile)
/* Print minimal symbols from this objfile. */
static void
-dump_msymbols (objfile, outfile)
- struct objfile *objfile;
- struct ui_file *outfile;
+dump_msymbols (struct objfile *objfile, struct ui_file *outfile)
{
struct minimal_symbol *msymbol;
int index;
@@ -341,10 +335,8 @@ dump_msymbols (objfile, outfile)
}
static void
-dump_psymtab (objfile, psymtab, outfile)
- struct objfile *objfile;
- struct partial_symtab *psymtab;
- struct ui_file *outfile;
+dump_psymtab (struct objfile *objfile, struct partial_symtab *psymtab,
+ struct ui_file *outfile)
{
int i;
@@ -410,10 +402,8 @@ dump_psymtab (objfile, psymtab, outfile)
}
static void
-dump_symtab (objfile, symtab, outfile)
- struct objfile *objfile;
- struct symtab *symtab;
- struct ui_file *outfile;
+dump_symtab (struct objfile *objfile, struct symtab *symtab,
+ struct ui_file *outfile)
{
register int i, j;
int len, blen;
@@ -500,9 +490,7 @@ dump_symtab (objfile, symtab, outfile)
}
void
-maintenance_print_symbols (args, from_tty)
- char *args;
- int from_tty;
+maintenance_print_symbols (char *args, int from_tty)
{
char **argv;
struct ui_file *outfile;
@@ -557,8 +545,7 @@ Arguments missing: an output file name and an optional symbol file name");
1 for success. */
static int
-print_symbol (args)
- PTR args;
+print_symbol (PTR args)
{
struct symbol *symbol = ((struct print_symbol_args *) args)->symbol;
int depth = ((struct print_symbol_args *) args)->depth;
@@ -738,9 +725,7 @@ print_symbol (args)
}
void
-maintenance_print_psymbols (args, from_tty)
- char *args;
- int from_tty;
+maintenance_print_psymbols (char *args, int from_tty)
{
char **argv;
struct ui_file *outfile;
@@ -789,11 +774,8 @@ maintenance_print_psymbols (args, from_tty)
}
static void
-print_partial_symbols (p, count, what, outfile)
- struct partial_symbol **p;
- int count;
- char *what;
- struct ui_file *outfile;
+print_partial_symbols (struct partial_symbol **p, int count, char *what,
+ struct ui_file *outfile)
{
fprintf_filtered (outfile, " %s partial symbols:\n", what);
while (count-- > 0)
@@ -887,9 +869,7 @@ print_partial_symbols (p, count, what, outfile)
}
void
-maintenance_print_msymbols (args, from_tty)
- char *args;
- int from_tty;
+maintenance_print_msymbols (char *args, int from_tty)
{
char **argv;
struct ui_file *outfile;
@@ -938,9 +918,7 @@ maintenance_print_msymbols (args, from_tty)
}
void
-maintenance_print_objfiles (ignore, from_tty)
- char *ignore;
- int from_tty;
+maintenance_print_objfiles (char *ignore, int from_tty)
{
struct objfile *objfile;
@@ -955,9 +933,7 @@ maintenance_print_objfiles (ignore, from_tty)
/* Check consistency of psymtabs and symtabs. */
void
-maintenance_check_symtabs (ignore, from_tty)
- char *ignore;
- int from_tty;
+maintenance_check_symtabs (char *ignore, int from_tty)
{
register struct symbol *sym;
register struct partial_symbol **psym;
@@ -1042,8 +1018,7 @@ maintenance_check_symtabs (ignore, from_tty)
/* Return the nexting depth of a block within other blocks in its symtab. */
static int
-block_depth (block)
- struct block *block;
+block_depth (struct block *block)
{
register int i = 0;
while ((block = BLOCK_SUPERBLOCK (block)) != NULL)
@@ -1059,9 +1034,8 @@ block_depth (block)
be freed in free_objfile(). */
void
-extend_psymbol_list (listp, objfile)
- register struct psymbol_allocation_list *listp;
- struct objfile *objfile;
+extend_psymbol_list (register struct psymbol_allocation_list *listp,
+ struct objfile *objfile)
{
int new_size;
if (listp->size == 0)
@@ -1086,7 +1060,7 @@ extend_psymbol_list (listp, objfile)
/* Do early runtime initializations. */
void
-_initialize_symmisc ()
+_initialize_symmisc (void)
{
std_in = stdin;
std_out = stdout;
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 4e15cbc..e43afd4 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -128,8 +128,7 @@ char no_symtab_msg[] = "No symbol table is loaded. Use the \"file\" command.";
symbols. Remove when loose ends are cleaned up. FIXME -fnf */
static void
-cplusplus_hint (name)
- char *name;
+cplusplus_hint (char *name)
{
while (*name == '\'')
name++;
@@ -142,8 +141,7 @@ cplusplus_hint (name)
in the symtab filename will also work. */
static struct symtab *
-lookup_symtab_1 (name)
- char *name;
+lookup_symtab_1 (char *name)
{
register struct symtab *s;
register struct partial_symtab *ps;
@@ -206,8 +204,7 @@ got_symtab:
of variations if the first lookup doesn't work. */
struct symtab *
-lookup_symtab (name)
- char *name;
+lookup_symtab (char *name)
{
register struct symtab *s;
#if 0
@@ -244,8 +241,7 @@ lookup_symtab (name)
in the psymtab filename will also work. */
struct partial_symtab *
-lookup_partial_symtab (name)
- char *name;
+lookup_partial_symtab (char *name)
{
register struct partial_symtab *pst;
register struct objfile *objfile;
@@ -282,9 +278,7 @@ lookup_partial_symtab (name)
specified by SIGNATURE_ID. Note that this function is g++ specific. */
char *
-gdb_mangle_name (type, method_id, signature_id)
- struct type *type;
- int method_id, signature_id;
+gdb_mangle_name (struct type *type, int method_id, int signature_id)
{
int mangled_name_len;
char *mangled_name;
@@ -383,9 +377,7 @@ gdb_mangle_name (type, method_id, signature_id)
/* Find which partial symtab on contains PC and SECTION. Return 0 if none. */
struct partial_symtab *
-find_pc_sect_psymtab (pc, section)
- CORE_ADDR pc;
- asection *section;
+find_pc_sect_psymtab (CORE_ADDR pc, asection *section)
{
register struct partial_symtab *pst;
register struct objfile *objfile;
@@ -432,8 +424,7 @@ find_pc_sect_psymtab (pc, section)
Backward compatibility, no section */
struct partial_symtab *
-find_pc_psymtab (pc)
- CORE_ADDR pc;
+find_pc_psymtab (CORE_ADDR pc)
{
return find_pc_sect_psymtab (pc, find_pc_mapped_section (pc));
}
@@ -442,10 +433,8 @@ find_pc_psymtab (pc)
Return 0 if none. Check all psymtabs if PSYMTAB is 0. */
struct partial_symbol *
-find_pc_sect_psymbol (psymtab, pc, section)
- struct partial_symtab *psymtab;
- CORE_ADDR pc;
- asection *section;
+find_pc_sect_psymbol (struct partial_symtab *psymtab, CORE_ADDR pc,
+ asection *section)
{
struct partial_symbol *best = NULL, *p, **pp;
CORE_ADDR best_pc;
@@ -516,9 +505,7 @@ find_pc_sect_psymbol (psymtab, pc, section)
Check all psymtabs if PSYMTAB is 0. Backwards compatibility, no section. */
struct partial_symbol *
-find_pc_psymbol (psymtab, pc)
- struct partial_symtab *psymtab;
- CORE_ADDR pc;
+find_pc_psymbol (struct partial_symtab *psymtab, CORE_ADDR pc)
{
return find_pc_sect_psymbol (psymtab, pc, find_pc_mapped_section (pc));
}
@@ -527,9 +514,7 @@ find_pc_psymbol (psymtab, pc)
out of the minimal symbols and stash that in the debug symbol. */
static void
-fixup_section (ginfo, objfile)
- struct general_symbol_info *ginfo;
- struct objfile *objfile;
+fixup_section (struct general_symbol_info *ginfo, struct objfile *objfile)
{
struct minimal_symbol *msym;
msym = lookup_minimal_symbol (ginfo->name, NULL, objfile);
@@ -539,9 +524,7 @@ fixup_section (ginfo, objfile)
}
struct symbol *
-fixup_symbol_section (sym, objfile)
- struct symbol *sym;
- struct objfile *objfile;
+fixup_symbol_section (struct symbol *sym, struct objfile *objfile)
{
if (!sym)
return NULL;
@@ -555,9 +538,7 @@ fixup_symbol_section (sym, objfile)
}
static struct partial_symbol *
-fixup_psymbol_section (psym, objfile)
- struct partial_symbol *psym;
- struct objfile *objfile;
+fixup_psymbol_section (struct partial_symbol *psym, struct objfile *objfile)
{
if (!psym)
return NULL;
@@ -592,12 +573,9 @@ fixup_psymbol_section (psym, objfile)
can probably assume it will never hit the C++ code). */
struct symbol *
-lookup_symbol (name, block, namespace, is_a_field_of_this, symtab)
- const char *name;
- register const struct block *block;
- const namespace_enum namespace;
- int *is_a_field_of_this;
- struct symtab **symtab;
+lookup_symbol (const char *name, register const struct block *block,
+ const namespace_enum namespace, int *is_a_field_of_this,
+ struct symtab **symtab)
{
register struct symbol *sym;
register struct symtab *s = NULL;
@@ -959,11 +937,8 @@ lookup_symbol (name, block, namespace, is_a_field_of_this, symtab)
symbols if GLOBAL, the static symbols if not */
static struct partial_symbol *
-lookup_partial_symbol (pst, name, global, namespace)
- struct partial_symtab *pst;
- const char *name;
- int global;
- namespace_enum namespace;
+lookup_partial_symbol (struct partial_symtab *pst, const char *name, int global,
+ namespace_enum namespace)
{
struct partial_symbol *temp;
struct partial_symbol **start, **psym;
@@ -1054,8 +1029,7 @@ lookup_partial_symbol (pst, name, global, namespace)
struct type *
-lookup_transparent_type (name)
- const char *name;
+lookup_transparent_type (const char *name)
{
register struct symbol *sym;
register struct symtab *s = NULL;
@@ -1163,7 +1137,7 @@ lookup_transparent_type (name)
executables that have no main() ? */
struct partial_symtab *
-find_main_psymtab ()
+find_main_psymtab (void)
{
register struct partial_symtab *pst;
register struct objfile *objfile;
@@ -1190,10 +1164,8 @@ find_main_psymtab ()
tested for a match. */
struct symbol *
-lookup_block_symbol (block, name, namespace)
- register const struct block *block;
- const char *name;
- const namespace_enum namespace;
+lookup_block_symbol (register const struct block *block, const char *name,
+ const namespace_enum namespace)
{
register int bot, top, inc;
register struct symbol *sym;
@@ -1350,9 +1322,7 @@ lookup_block_symbol (block, name, namespace)
If no alias is active, then return SYM. */
static struct symbol *
-find_active_alias (sym, addr)
- struct symbol *sym;
- CORE_ADDR addr;
+find_active_alias (struct symbol *sym, CORE_ADDR addr)
{
struct range_list *r;
struct alias_list *aliases;
@@ -1381,8 +1351,7 @@ find_active_alias (sym, addr)
lexical block, described by a struct block BL. */
struct symbol *
-block_function (bl)
- struct block *bl;
+block_function (struct block *bl)
{
while (BLOCK_FUNCTION (bl) == 0 && BLOCK_SUPERBLOCK (bl) != 0)
bl = BLOCK_SUPERBLOCK (bl);
@@ -1394,9 +1363,7 @@ block_function (bl)
psymtabs and read in another symtab if necessary. */
struct symtab *
-find_pc_sect_symtab (pc, section)
- CORE_ADDR pc;
- asection *section;
+find_pc_sect_symtab (CORE_ADDR pc, asection *section)
{
register struct block *b;
struct blockvector *bv;
@@ -1484,8 +1451,7 @@ find_pc_sect_symtab (pc, section)
read in another symtab if necessary. Backward compatibility, no section */
struct symtab *
-find_pc_symtab (pc)
- CORE_ADDR pc;
+find_pc_symtab (CORE_ADDR pc)
{
return find_pc_sect_symtab (pc, find_pc_mapped_section (pc));
}
@@ -1501,10 +1467,7 @@ find_pc_symtab (pc)
line *0x2345" cause psymtabs to be converted to symtabs). */
struct symbol *
-find_addr_symbol (addr, symtabp, symaddrp)
- CORE_ADDR addr;
- struct symtab **symtabp;
- CORE_ADDR *symaddrp;
+find_addr_symbol (CORE_ADDR addr, struct symtab **symtabp, CORE_ADDR *symaddrp)
{
struct symtab *symtab, *best_symtab;
struct objfile *objfile;
@@ -1602,10 +1565,7 @@ done:
/* If it's worth the effort, we could be using a binary search. */
struct symtab_and_line
-find_pc_sect_line (pc, section, notcurrent)
- CORE_ADDR pc;
- struct sec *section;
- int notcurrent;
+find_pc_sect_line (CORE_ADDR pc, struct sec *section, int notcurrent)
{
struct symtab *s;
register struct linetable *l;
@@ -1828,9 +1788,7 @@ find_pc_sect_line (pc, section, notcurrent)
/* Backward compatibility (no section) */
struct symtab_and_line
-find_pc_line (pc, notcurrent)
- CORE_ADDR pc;
- int notcurrent;
+find_pc_line (CORE_ADDR pc, int notcurrent)
{
asection *section;
@@ -1854,11 +1812,7 @@ static struct symtab *find_line_symtab (struct symtab *, int, int *, int *);
If not found, return NULL. */
static struct symtab *
-find_line_symtab (symtab, line, index, exact_match)
- struct symtab *symtab;
- int line;
- int *index;
- int *exact_match;
+find_line_symtab (struct symtab *symtab, int line, int *index, int *exact_match)
{
int exact;
@@ -1940,10 +1894,7 @@ done:
The source file is specified with a struct symtab. */
int
-find_line_pc (symtab, line, pc)
- struct symtab *symtab;
- int line;
- CORE_ADDR *pc;
+find_line_pc (struct symtab *symtab, int line, CORE_ADDR *pc)
{
struct linetable *l;
int ind;
@@ -1970,9 +1921,8 @@ find_line_pc (symtab, line, pc)
Returns 0 if could not find the specified line. */
int
-find_line_pc_range (sal, startptr, endptr)
- struct symtab_and_line sal;
- CORE_ADDR *startptr, *endptr;
+find_line_pc_range (struct symtab_and_line sal, CORE_ADDR *startptr,
+ CORE_ADDR *endptr)
{
CORE_ADDR startaddr;
struct symtab_and_line found_sal;
@@ -2010,10 +1960,8 @@ find_line_pc_range (sal, startptr, endptr)
Set *EXACT_MATCH nonzero if the value returned is an exact match. */
static int
-find_line_common (l, lineno, exact_match)
- register struct linetable *l;
- register int lineno;
- int *exact_match;
+find_line_common (register struct linetable *l, register int lineno,
+ int *exact_match)
{
register int i;
register int len;
@@ -2056,9 +2004,7 @@ find_line_common (l, lineno, exact_match)
}
int
-find_pc_line_pc_range (pc, startptr, endptr)
- CORE_ADDR pc;
- CORE_ADDR *startptr, *endptr;
+find_pc_line_pc_range (CORE_ADDR pc, CORE_ADDR *startptr, CORE_ADDR *endptr)
{
struct symtab_and_line sal;
sal = find_pc_line (pc, 0);
@@ -2076,9 +2022,7 @@ static struct symtab_and_line
find_function_start_sal (struct symbol *sym, int);
static struct symtab_and_line
-find_function_start_sal (sym, funfirstline)
- struct symbol *sym;
- int funfirstline;
+find_function_start_sal (struct symbol *sym, int funfirstline)
{
CORE_ADDR pc;
struct symtab_and_line sal;
@@ -2128,9 +2072,7 @@ find_function_start_sal (sym, funfirstline)
beginning of the substring of the operator text.
Otherwise, return "". */
char *
-operator_chars (p, end)
- char *p;
- char **end;
+operator_chars (char *p, char **end)
{
*end = "";
if (strncmp (p, "operator", 8))
@@ -2216,8 +2158,7 @@ operator_chars (p, end)
static int total_number_of_methods (struct type *type);
static int
-total_number_of_methods (type)
- struct type *type;
+total_number_of_methods (struct type *type)
{
int n;
int count;
@@ -2241,10 +2182,7 @@ total_number_of_methods (type)
Note that this function is g++ specific. */
static int
-find_methods (t, name, sym_arr)
- struct type *t;
- char *name;
- struct symbol **sym_arr;
+find_methods (struct type *t, char *name, struct symbol **sym_arr)
{
int i1 = 0;
int ibase;
@@ -2364,10 +2302,8 @@ find_methods (t, name, sym_arr)
line spec is `filename:linenum'. */
static void
-build_canonical_line_spec (sal, symname, canonical)
- struct symtab_and_line *sal;
- char *symname;
- char ***canonical;
+build_canonical_line_spec (struct symtab_and_line *sal, char *symname,
+ char ***canonical)
{
char **canonical_arr;
char *canonical_name;
@@ -2476,12 +2412,8 @@ find_toplevel_char (char *s, char c)
can use as appropriate instead of make_symbol_completion_list. */
struct symtabs_and_lines
-decode_line_1 (argptr, funfirstline, default_symtab, default_line, canonical)
- char **argptr;
- int funfirstline;
- struct symtab *default_symtab;
- int default_line;
- char ***canonical;
+decode_line_1 (char **argptr, int funfirstline, struct symtab *default_symtab,
+ int default_line, char ***canonical)
{
struct symtabs_and_lines values;
#ifdef HPPA_COMPILER_BUG
@@ -3286,9 +3218,7 @@ minimal_symbol_found: /* We also jump here from the case for variables
}
struct symtabs_and_lines
-decode_line_spec (string, funfirstline)
- char *string;
- int funfirstline;
+decode_line_spec (char *string, int funfirstline)
{
struct symtabs_and_lines sals;
if (string == 0)
@@ -3437,9 +3367,7 @@ decode_line_2 (sym_arr, nelts, funfirstline, canonical)
NAME is the name to print and *FIRST is nonzero if this is the first
name printed. Set *FIRST to zero. */
static void
-output_source_filename (name, first)
- char *name;
- int *first;
+output_source_filename (char *name, int *first)
{
/* Table of files printed so far. Since a single source file can
result in several partial symbol tables, we need to avoid printing
@@ -3493,9 +3421,7 @@ output_source_filename (name, first)
}
static void
-sources_info (ignore, from_tty)
- char *ignore;
- int from_tty;
+sources_info (char *ignore, int from_tty)
{
register struct symtab *s;
register struct partial_symtab *ps;
@@ -3552,8 +3478,7 @@ file_matches (file, files, nfiles)
/* Free any memory associated with a search. */
void
-free_search_symbols (symbols)
- struct symbol_search *symbols;
+free_search_symbols (struct symbol_search *symbols)
{
struct symbol_search *p;
struct symbol_search *next;
@@ -3876,12 +3801,8 @@ search_symbols (regexp, kind, nfiles, files, matches)
regarding the match to gdb_stdout.
*/
static void
-print_symbol_info (kind, s, sym, block, last)
- namespace_enum kind;
- struct symtab *s;
- struct symbol *sym;
- int block;
- char *last;
+print_symbol_info (namespace_enum kind, struct symtab *s, struct symbol *sym,
+ int block, char *last)
{
if (last == NULL || strcmp (last, s->filename) != 0)
{
@@ -3939,8 +3860,7 @@ print_symbol_info (kind, s, sym, block, last)
for non-debugging symbols to gdb_stdout.
*/
static void
-print_msymbol_info (msymbol)
- struct minimal_symbol *msymbol;
+print_msymbol_info (struct minimal_symbol *msymbol)
{
printf_filtered (" %08lx %s\n",
(unsigned long) SYMBOL_VALUE_ADDRESS (msymbol),
@@ -3953,10 +3873,7 @@ print_msymbol_info (msymbol)
matches.
*/
static void
-symtab_symbol_info (regexp, kind, from_tty)
- char *regexp;
- namespace_enum kind;
- int from_tty;
+symtab_symbol_info (char *regexp, namespace_enum kind, int from_tty)
{
static char *classnames[]
=
@@ -4004,26 +3921,20 @@ symtab_symbol_info (regexp, kind, from_tty)
}
static void
-variables_info (regexp, from_tty)
- char *regexp;
- int from_tty;
+variables_info (char *regexp, int from_tty)
{
symtab_symbol_info (regexp, VARIABLES_NAMESPACE, from_tty);
}
static void
-functions_info (regexp, from_tty)
- char *regexp;
- int from_tty;
+functions_info (char *regexp, int from_tty)
{
symtab_symbol_info (regexp, FUNCTIONS_NAMESPACE, from_tty);
}
static void
-types_info (regexp, from_tty)
- char *regexp;
- int from_tty;
+types_info (char *regexp, int from_tty)
{
symtab_symbol_info (regexp, TYPES_NAMESPACE, from_tty);
}
@@ -4031,8 +3942,7 @@ types_info (regexp, from_tty)
#if 0
/* Tiemann says: "info methods was never implemented." */
static void
-methods_info (regexp)
- char *regexp;
+methods_info (char *regexp)
{
symtab_symbol_info (regexp, METHODS_NAMESPACE, 0, from_tty);
}
@@ -4041,17 +3951,13 @@ methods_info (regexp)
/* Breakpoint all functions matching regular expression. */
#ifdef UI_OUT
void
-rbreak_command_wrapper (regexp, from_tty)
- char *regexp;
- int from_tty;
+rbreak_command_wrapper (char *regexp, int from_tty)
{
rbreak_command (regexp, from_tty);
}
#endif
static void
-rbreak_command (regexp, from_tty)
- char *regexp;
- int from_tty;
+rbreak_command (char *regexp, int from_tty)
{
struct symbol_search *ss;
struct symbol_search *p;
@@ -4094,8 +4000,7 @@ rbreak_command (regexp, from_tty)
or if a and b have the same pc range.
Return zero otherwise. */
int
-contained_in (a, b)
- struct block *a, *b;
+contained_in (struct block *a, struct block *b)
{
if (!a || !b)
return 0;
@@ -4128,12 +4033,8 @@ static char **return_val;
characters. If so, add it to the current completion list. */
static void
-completion_list_add_name (symname, sym_text, sym_text_len, text, word)
- char *symname;
- char *sym_text;
- int sym_text_len;
- char *text;
- char *word;
+completion_list_add_name (char *symname, char *sym_text, int sym_text_len,
+ char *text, char *word)
{
int newsize;
int i;
@@ -4212,9 +4113,7 @@ completion_list_add_name (symname, sym_text, sym_text_len, text, word)
I'm not going to worry about this; hopefully there won't be that many. */
char **
-make_symbol_completion_list (text, word)
- char *text;
- char *word;
+make_symbol_completion_list (char *text, char *word)
{
register struct symbol *sym;
register struct symtab *s;
@@ -4403,9 +4302,7 @@ make_symbol_completion_list (text, word)
*/
int
-in_prologue (pc, func_start)
- CORE_ADDR pc;
- CORE_ADDR func_start;
+in_prologue (CORE_ADDR pc, CORE_ADDR func_start)
{
struct symtab_and_line sal;
CORE_ADDR func_addr, func_end;
@@ -4483,9 +4380,7 @@ static struct symbol **sym_return_val;
characters. If so, add it to the current completion list. */
static void
-overload_list_add_symbol (sym, oload_name)
- struct symbol *sym;
- char *oload_name;
+overload_list_add_symbol (struct symbol *sym, char *oload_name)
{
int newsize;
int i;
@@ -4534,8 +4429,7 @@ overload_list_add_symbol (sym, oload_name)
struct symbol **
-make_symbol_overload_list (fsym)
- struct symbol *fsym;
+make_symbol_overload_list (struct symbol *fsym)
{
register struct symbol *sym;
register struct symtab *s;
@@ -4655,7 +4549,7 @@ make_symbol_overload_list (fsym)
void
-_initialize_symtab ()
+_initialize_symtab (void)
{
add_info ("variables", variables_info,
"All global and static variable names, or those matching REGEXP.");
diff --git a/gdb/target.c b/gdb/target.c
index b99055d..b50ec1c 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -181,9 +181,7 @@ static void setup_target_debug (void);
/* ARGSUSED */
static void
-target_command (arg, from_tty)
- char *arg;
- int from_tty;
+target_command (char *arg, int from_tty)
{
fputs_filtered ("Argument required (target name). Try `help target'\n",
gdb_stdout);
@@ -192,8 +190,7 @@ target_command (arg, from_tty)
/* Add a possible target architecture to the list. */
void
-add_target (t)
- struct target_ops *t;
+add_target (struct target_ops *t)
{
if (!target_structs)
{
@@ -225,7 +222,7 @@ information on the arguments for a particular protocol, type\n\
/* Stub functions */
void
-target_ignore ()
+target_ignore (void)
{
}
@@ -237,42 +234,36 @@ target_load (char *arg, int from_tty)
/* ARGSUSED */
static int
-nomemory (memaddr, myaddr, len, write, t)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
- int write;
- struct target_ops *t;
+nomemory (CORE_ADDR memaddr, char *myaddr, int len, int write,
+ struct target_ops *t)
{
errno = EIO; /* Can't read/write this location */
return 0; /* No bytes handled */
}
static void
-tcomplain ()
+tcomplain (void)
{
error ("You can't do that when your target is `%s'",
current_target.to_shortname);
}
void
-noprocess ()
+noprocess (void)
{
error ("You can't do that without a process to debug.");
}
/* ARGSUSED */
static int
-nosymbol (name, addrp)
- char *name;
- CORE_ADDR *addrp;
+nosymbol (char *name, CORE_ADDR *addrp)
{
return 1; /* Symbol does not exist in target env */
}
/* ARGSUSED */
static void
-nosupport_runtime ()
+nosupport_runtime (void)
{
if (!inferior_pid)
noprocess ();
@@ -283,9 +274,7 @@ nosupport_runtime ()
/* ARGSUSED */
static void
-default_terminal_info (args, from_tty)
- char *args;
- int from_tty;
+default_terminal_info (char *args, int from_tty)
{
printf_unfiltered ("No saved terminal information.\n");
}
@@ -296,8 +285,7 @@ default_terminal_info (args, from_tty)
the target, and the operation should be attempted. */
static void
-kill_or_be_killed (from_tty)
- int from_tty;
+kill_or_be_killed (int from_tty)
{
if (target_has_execution)
{
@@ -319,28 +307,21 @@ kill_or_be_killed (from_tty)
}
static void
-maybe_kill_then_attach (args, from_tty)
- char *args;
- int from_tty;
+maybe_kill_then_attach (char *args, int from_tty)
{
kill_or_be_killed (from_tty);
target_attach (args, from_tty);
}
static void
-maybe_kill_then_create_inferior (exec, args, env)
- char *exec;
- char *args;
- char **env;
+maybe_kill_then_create_inferior (char *exec, char *args, char **env)
{
kill_or_be_killed (0);
target_create_inferior (exec, args, env);
}
static void
-default_clone_and_follow_inferior (child_pid, followed_child)
- int child_pid;
- int *followed_child;
+default_clone_and_follow_inferior (int child_pid, int *followed_child)
{
target_clone_and_follow_inferior (child_pid, followed_child);
}
@@ -349,8 +330,7 @@ default_clone_and_follow_inferior (child_pid, followed_child)
We default entries, at least to stubs that print error messages. */
static void
-cleanup_target (t)
- struct target_ops *t;
+cleanup_target (struct target_ops *t)
{
#define de_fault(field, value) \
@@ -537,7 +517,7 @@ cleanup_target (t)
pushed target vectors. */
static void
-update_current_target ()
+update_current_target (void)
{
struct target_stack_item *item;
struct target_ops *t;
@@ -645,8 +625,7 @@ update_current_target ()
checking them. */
int
-push_target (t)
- struct target_ops *t;
+push_target (struct target_ops *t)
{
struct target_stack_item *cur, *prev, *tmp;
@@ -711,8 +690,7 @@ push_target (t)
Return how many times it was removed (0 or 1). */
int
-unpush_target (t)
- struct target_ops *t;
+unpush_target (struct target_ops *t)
{
struct target_stack_item *cur, *prev;
@@ -745,7 +723,7 @@ unpush_target (t)
}
void
-pop_target ()
+pop_target (void)
{
(current_target.to_close) (0); /* Let it clean up */
if (unpush_target (target_stack->target_ops) == 1)
@@ -767,11 +745,7 @@ pop_target ()
read. */
int
-target_read_string (memaddr, string, len, errnop)
- CORE_ADDR memaddr;
- char **string;
- int len;
- int *errnop;
+target_read_string (CORE_ADDR memaddr, char **string, int len, int *errnop)
{
int tlen, origlen, offset, i;
char buf[4];
@@ -848,19 +822,13 @@ done:
deal with partial reads should call target_read_memory_partial. */
int
-target_read_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+target_read_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
return target_xfer_memory (memaddr, myaddr, len, 0);
}
int
-target_write_memory (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+target_write_memory (CORE_ADDR memaddr, char *myaddr, int len)
{
return target_xfer_memory (memaddr, myaddr, len, 1);
}
@@ -876,11 +844,7 @@ target_write_memory (memaddr, myaddr, len)
Result is 0 or errno value. */
static int
-target_xfer_memory (memaddr, myaddr, len, write)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
- int write;
+target_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write)
{
int curlen;
int res;
@@ -1012,9 +976,7 @@ target_write_memory_partial (CORE_ADDR memaddr, char *buf, int len, int *err)
/* ARGSUSED */
static void
-target_info (args, from_tty)
- char *args;
- int from_tty;
+target_info (char *args, int from_tty)
{
struct target_ops *t;
struct target_stack_item *item;
@@ -1049,8 +1011,7 @@ target_info (args, from_tty)
anything. */
void
-target_preopen (from_tty)
- int from_tty;
+target_preopen (int from_tty)
{
dont_repeat ();
@@ -1073,9 +1034,7 @@ target_preopen (from_tty)
/* Detach a target after doing deferred register stores. */
void
-target_detach (args, from_tty)
- char *args;
- int from_tty;
+target_detach (char *args, int from_tty)
{
/* Handle any optimized stores to the inferior. */
#ifdef DO_DEFERRED_STORES
@@ -1085,9 +1044,7 @@ target_detach (args, from_tty)
}
void
-target_link (modname, t_reloc)
- char *modname;
- CORE_ADDR *t_reloc;
+target_link (char *modname, CORE_ADDR *t_reloc)
{
if (STREQ (current_target.to_shortname, "rombug"))
{
@@ -1114,8 +1071,7 @@ target_async_mask (int mask)
Result is always valid (error() is called for errors). */
static struct target_ops *
-find_default_run_target (do_mesg)
- char *do_mesg;
+find_default_run_target (char *do_mesg)
{
struct target_ops **t;
struct target_ops *runable = NULL;
@@ -1140,9 +1096,7 @@ find_default_run_target (do_mesg)
}
void
-find_default_attach (args, from_tty)
- char *args;
- int from_tty;
+find_default_attach (char *args, int from_tty)
{
struct target_ops *t;
@@ -1152,9 +1106,7 @@ find_default_attach (args, from_tty)
}
void
-find_default_require_attach (args, from_tty)
- char *args;
- int from_tty;
+find_default_require_attach (char *args, int from_tty)
{
struct target_ops *t;
@@ -1164,10 +1116,7 @@ find_default_require_attach (args, from_tty)
}
void
-find_default_require_detach (pid, args, from_tty)
- int pid;
- char *args;
- int from_tty;
+find_default_require_detach (int pid, char *args, int from_tty)
{
struct target_ops *t;
@@ -1177,10 +1126,7 @@ find_default_require_detach (pid, args, from_tty)
}
void
-find_default_create_inferior (exec_file, allargs, env)
- char *exec_file;
- char *allargs;
- char **env;
+find_default_create_inferior (char *exec_file, char *allargs, char **env)
{
struct target_ops *t;
@@ -1190,9 +1136,7 @@ find_default_create_inferior (exec_file, allargs, env)
}
void
-find_default_clone_and_follow_inferior (child_pid, followed_child)
- int child_pid;
- int *followed_child;
+find_default_clone_and_follow_inferior (int child_pid, int *followed_child)
{
struct target_ops *t;
@@ -1202,13 +1146,13 @@ find_default_clone_and_follow_inferior (child_pid, followed_child)
}
static int
-return_zero ()
+return_zero (void)
{
return 0;
}
static int
-return_one ()
+return_one (void)
{
return 1;
}
@@ -1300,7 +1244,7 @@ remove_target_sections (bfd *abfd)
some reason there is more than one, return NULL. */
struct target_ops *
-find_run_target ()
+find_run_target (void)
{
struct target_ops **t;
struct target_ops *runable = NULL;
@@ -1324,7 +1268,7 @@ find_run_target ()
If for some reason there is more than one, return NULL. */
struct target_ops *
-find_core_target ()
+find_core_target (void)
{
struct target_ops **t;
struct target_ops *runable = NULL;
@@ -1350,8 +1294,7 @@ find_core_target ()
*/
struct target_ops *
-find_target_beneath (t)
- struct target_ops *t;
+find_target_beneath (struct target_ops *t)
{
struct target_stack_item *cur;
@@ -1369,7 +1312,7 @@ find_target_beneath (t)
/* The inferior process has died. Long live the inferior! */
void
-generic_mourn_inferior ()
+generic_mourn_inferior (void)
{
extern int show_breakpoint_hit_counts;
@@ -1504,8 +1447,7 @@ static struct {
/* Return the string for a signal. */
char *
-target_signal_to_string (sig)
- enum target_signal sig;
+target_signal_to_string (enum target_signal sig)
{
if ((sig >= TARGET_SIGNAL_FIRST) && (sig <= TARGET_SIGNAL_LAST))
return signals[sig].string;
@@ -1515,8 +1457,7 @@ target_signal_to_string (sig)
/* Return the name for a signal. */
char *
-target_signal_to_name (sig)
- enum target_signal sig;
+target_signal_to_name (enum target_signal sig)
{
if (sig == TARGET_SIGNAL_UNKNOWN)
/* I think the code which prints this will always print it along with
@@ -1527,8 +1468,7 @@ target_signal_to_name (sig)
/* Given a name, return its signal. */
enum target_signal
-target_signal_from_name (name)
- char *name;
+target_signal_from_name (char *name)
{
enum target_signal sig;
@@ -1552,8 +1492,7 @@ target_signal_from_name (name)
/* Convert host signal to our signals. */
enum target_signal
-target_signal_from_host (hostsig)
- int hostsig;
+target_signal_from_host (int hostsig)
{
/* A switch statement would make sense but would require special kludges
to deal with the cases where more than one signal has the same number. */
@@ -2079,9 +2018,7 @@ target_signal_to_host (enum target_signal oursig)
HOSTSTATUS is the waitstatus from wait() or the equivalent; store our
translation of that in OURSTATUS. */
void
-store_waitstatus (ourstatus, hoststatus)
- struct target_waitstatus *ourstatus;
- int hoststatus;
+store_waitstatus (struct target_waitstatus *ourstatus, int hoststatus)
{
#ifdef CHILD_SPECIAL_WAITSTATUS
/* CHILD_SPECIAL_WAITSTATUS should return nonzero and set *OURSTATUS
@@ -2116,8 +2053,7 @@ store_waitstatus (ourstatus, hoststatus)
most systems. Use of symbolic signal names is strongly encouraged. */
enum target_signal
-target_signal_from_command (num)
- int num;
+target_signal_from_command (int num)
{
if (num >= 1 && num <= 15)
return (enum target_signal) num;
@@ -2133,8 +2069,7 @@ int target_activity_fd;
buffer. */
char *
-normal_pid_to_str (pid)
- int pid;
+normal_pid_to_str (int pid)
{
static char buf[30];
@@ -2159,8 +2094,7 @@ normal_pid_to_str (pid)
target_acknowledge_forked_child.
*/
static void
-normal_target_post_startup_inferior (pid)
- int pid;
+normal_target_post_startup_inferior (int pid)
{
/* This space intentionally left blank. */
}
@@ -2169,7 +2103,7 @@ normal_target_post_startup_inferior (pid)
vector. */
static void
-init_dummy_target ()
+init_dummy_target (void)
{
dummy_target.to_shortname = "None";
dummy_target.to_longname = "None";
@@ -2188,9 +2122,7 @@ init_dummy_target ()
static struct target_ops debug_target;
static void
-debug_to_open (args, from_tty)
- char *args;
- int from_tty;
+debug_to_open (char *args, int from_tty)
{
debug_target.to_open (args, from_tty);
@@ -2198,8 +2130,7 @@ debug_to_open (args, from_tty)
}
static void
-debug_to_close (quitting)
- int quitting;
+debug_to_close (int quitting)
{
debug_target.to_close (quitting);
@@ -2207,9 +2138,7 @@ debug_to_close (quitting)
}
static void
-debug_to_attach (args, from_tty)
- char *args;
- int from_tty;
+debug_to_attach (char *args, int from_tty)
{
debug_target.to_attach (args, from_tty);
@@ -2218,8 +2147,7 @@ debug_to_attach (args, from_tty)
static void
-debug_to_post_attach (pid)
- int pid;
+debug_to_post_attach (int pid)
{
debug_target.to_post_attach (pid);
@@ -2227,9 +2155,7 @@ debug_to_post_attach (pid)
}
static void
-debug_to_require_attach (args, from_tty)
- char *args;
- int from_tty;
+debug_to_require_attach (char *args, int from_tty)
{
debug_target.to_require_attach (args, from_tty);
@@ -2238,9 +2164,7 @@ debug_to_require_attach (args, from_tty)
}
static void
-debug_to_detach (args, from_tty)
- char *args;
- int from_tty;
+debug_to_detach (char *args, int from_tty)
{
debug_target.to_detach (args, from_tty);
@@ -2248,10 +2172,7 @@ debug_to_detach (args, from_tty)
}
static void
-debug_to_require_detach (pid, args, from_tty)
- int pid;
- char *args;
- int from_tty;
+debug_to_require_detach (int pid, char *args, int from_tty)
{
debug_target.to_require_detach (pid, args, from_tty);
@@ -2260,10 +2181,7 @@ debug_to_require_detach (pid, args, from_tty)
}
static void
-debug_to_resume (pid, step, siggnal)
- int pid;
- int step;
- enum target_signal siggnal;
+debug_to_resume (int pid, int step, enum target_signal siggnal)
{
debug_target.to_resume (pid, step, siggnal);
@@ -2273,9 +2191,7 @@ debug_to_resume (pid, step, siggnal)
}
static int
-debug_to_wait (pid, status)
- int pid;
- struct target_waitstatus *status;
+debug_to_wait (int pid, struct target_waitstatus *status)
{
int retval;
@@ -2322,9 +2238,7 @@ debug_to_wait (pid, status)
}
static void
-debug_to_post_wait (pid, status)
- int pid;
- int status;
+debug_to_post_wait (int pid, int status)
{
debug_target.to_post_wait (pid, status);
@@ -2333,8 +2247,7 @@ debug_to_post_wait (pid, status)
}
static void
-debug_to_fetch_registers (regno)
- int regno;
+debug_to_fetch_registers (int regno)
{
debug_target.to_fetch_registers (regno);
@@ -2348,8 +2261,7 @@ debug_to_fetch_registers (regno)
}
static void
-debug_to_store_registers (regno)
- int regno;
+debug_to_store_registers (int regno)
{
debug_target.to_store_registers (regno);
@@ -2363,7 +2275,7 @@ debug_to_store_registers (regno)
}
static void
-debug_to_prepare_to_store ()
+debug_to_prepare_to_store (void)
{
debug_target.to_prepare_to_store ();
@@ -2371,12 +2283,8 @@ debug_to_prepare_to_store ()
}
static int
-debug_to_xfer_memory (memaddr, myaddr, len, write, target)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
- int write;
- struct target_ops *target;
+debug_to_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
+ struct target_ops *target)
{
int retval;
@@ -2408,8 +2316,7 @@ debug_to_xfer_memory (memaddr, myaddr, len, write, target)
}
static void
-debug_to_files_info (target)
- struct target_ops *target;
+debug_to_files_info (struct target_ops *target)
{
debug_target.to_files_info (target);
@@ -2417,9 +2324,7 @@ debug_to_files_info (target)
}
static int
-debug_to_insert_breakpoint (addr, save)
- CORE_ADDR addr;
- char *save;
+debug_to_insert_breakpoint (CORE_ADDR addr, char *save)
{
int retval;
@@ -2433,9 +2338,7 @@ debug_to_insert_breakpoint (addr, save)
}
static int
-debug_to_remove_breakpoint (addr, save)
- CORE_ADDR addr;
- char *save;
+debug_to_remove_breakpoint (CORE_ADDR addr, char *save)
{
int retval;
@@ -2449,7 +2352,7 @@ debug_to_remove_breakpoint (addr, save)
}
static void
-debug_to_terminal_init ()
+debug_to_terminal_init (void)
{
debug_target.to_terminal_init ();
@@ -2457,7 +2360,7 @@ debug_to_terminal_init ()
}
static void
-debug_to_terminal_inferior ()
+debug_to_terminal_inferior (void)
{
debug_target.to_terminal_inferior ();
@@ -2465,7 +2368,7 @@ debug_to_terminal_inferior ()
}
static void
-debug_to_terminal_ours_for_output ()
+debug_to_terminal_ours_for_output (void)
{
debug_target.to_terminal_ours_for_output ();
@@ -2473,7 +2376,7 @@ debug_to_terminal_ours_for_output ()
}
static void
-debug_to_terminal_ours ()
+debug_to_terminal_ours (void)
{
debug_target.to_terminal_ours ();
@@ -2481,9 +2384,7 @@ debug_to_terminal_ours ()
}
static void
-debug_to_terminal_info (arg, from_tty)
- char *arg;
- int from_tty;
+debug_to_terminal_info (char *arg, int from_tty)
{
debug_target.to_terminal_info (arg, from_tty);
@@ -2492,7 +2393,7 @@ debug_to_terminal_info (arg, from_tty)
}
static void
-debug_to_kill ()
+debug_to_kill (void)
{
debug_target.to_kill ();
@@ -2500,9 +2401,7 @@ debug_to_kill ()
}
static void
-debug_to_load (args, from_tty)
- char *args;
- int from_tty;
+debug_to_load (char *args, int from_tty)
{
debug_target.to_load (args, from_tty);
@@ -2510,9 +2409,7 @@ debug_to_load (args, from_tty)
}
static int
-debug_to_lookup_symbol (name, addrp)
- char *name;
- CORE_ADDR *addrp;
+debug_to_lookup_symbol (char *name, CORE_ADDR *addrp)
{
int retval;
@@ -2524,10 +2421,7 @@ debug_to_lookup_symbol (name, addrp)
}
static void
-debug_to_create_inferior (exec_file, args, env)
- char *exec_file;
- char *args;
- char **env;
+debug_to_create_inferior (char *exec_file, char *args, char **env)
{
debug_target.to_create_inferior (exec_file, args, env);
@@ -2536,8 +2430,7 @@ debug_to_create_inferior (exec_file, args, env)
}
static void
-debug_to_post_startup_inferior (pid)
- int pid;
+debug_to_post_startup_inferior (int pid)
{
debug_target.to_post_startup_inferior (pid);
@@ -2546,8 +2439,7 @@ debug_to_post_startup_inferior (pid)
}
static void
-debug_to_acknowledge_created_inferior (pid)
- int pid;
+debug_to_acknowledge_created_inferior (int pid)
{
debug_target.to_acknowledge_created_inferior (pid);
@@ -2556,9 +2448,7 @@ debug_to_acknowledge_created_inferior (pid)
}
static void
-debug_to_clone_and_follow_inferior (child_pid, followed_child)
- int child_pid;
- int *followed_child;
+debug_to_clone_and_follow_inferior (int child_pid, int *followed_child)
{
debug_target.to_clone_and_follow_inferior (child_pid, followed_child);
@@ -2568,7 +2458,7 @@ debug_to_clone_and_follow_inferior (child_pid, followed_child)
}
static void
-debug_to_post_follow_inferior_by_clone ()
+debug_to_post_follow_inferior_by_clone (void)
{
debug_target.to_post_follow_inferior_by_clone ();
@@ -2576,8 +2466,7 @@ debug_to_post_follow_inferior_by_clone ()
}
static int
-debug_to_insert_fork_catchpoint (pid)
- int pid;
+debug_to_insert_fork_catchpoint (int pid)
{
int retval;
@@ -2590,8 +2479,7 @@ debug_to_insert_fork_catchpoint (pid)
}
static int
-debug_to_remove_fork_catchpoint (pid)
- int pid;
+debug_to_remove_fork_catchpoint (int pid)
{
int retval;
@@ -2604,8 +2492,7 @@ debug_to_remove_fork_catchpoint (pid)
}
static int
-debug_to_insert_vfork_catchpoint (pid)
- int pid;
+debug_to_insert_vfork_catchpoint (int pid)
{
int retval;
@@ -2618,8 +2505,7 @@ debug_to_insert_vfork_catchpoint (pid)
}
static int
-debug_to_remove_vfork_catchpoint (pid)
- int pid;
+debug_to_remove_vfork_catchpoint (int pid)
{
int retval;
@@ -2632,9 +2518,7 @@ debug_to_remove_vfork_catchpoint (pid)
}
static int
-debug_to_has_forked (pid, child_pid)
- int pid;
- int *child_pid;
+debug_to_has_forked (int pid, int *child_pid)
{
int has_forked;
@@ -2647,9 +2531,7 @@ debug_to_has_forked (pid, child_pid)
}
static int
-debug_to_has_vforked (pid, child_pid)
- int pid;
- int *child_pid;
+debug_to_has_vforked (int pid, int *child_pid)
{
int has_vforked;
@@ -2662,7 +2544,7 @@ debug_to_has_vforked (pid, child_pid)
}
static int
-debug_to_can_follow_vfork_prior_to_exec ()
+debug_to_can_follow_vfork_prior_to_exec (void)
{
int can_immediately_follow_vfork;
@@ -2675,11 +2557,8 @@ debug_to_can_follow_vfork_prior_to_exec ()
}
static void
-debug_to_post_follow_vfork (parent_pid, followed_parent, child_pid, followed_child)
- int parent_pid;
- int followed_parent;
- int child_pid;
- int followed_child;
+debug_to_post_follow_vfork (int parent_pid, int followed_parent, int child_pid,
+ int followed_child)
{
debug_target.to_post_follow_vfork (parent_pid, followed_parent, child_pid, followed_child);
@@ -2689,8 +2568,7 @@ debug_to_post_follow_vfork (parent_pid, followed_parent, child_pid, followed_chi
}
static int
-debug_to_insert_exec_catchpoint (pid)
- int pid;
+debug_to_insert_exec_catchpoint (int pid)
{
int retval;
@@ -2703,8 +2581,7 @@ debug_to_insert_exec_catchpoint (pid)
}
static int
-debug_to_remove_exec_catchpoint (pid)
- int pid;
+debug_to_remove_exec_catchpoint (int pid)
{
int retval;
@@ -2717,9 +2594,7 @@ debug_to_remove_exec_catchpoint (pid)
}
static int
-debug_to_has_execd (pid, execd_pathname)
- int pid;
- char **execd_pathname;
+debug_to_has_execd (int pid, char **execd_pathname)
{
int has_execd;
@@ -2733,7 +2608,7 @@ debug_to_has_execd (pid, execd_pathname)
}
static int
-debug_to_reported_exec_events_per_exec_call ()
+debug_to_reported_exec_events_per_exec_call (void)
{
int reported_exec_events;
@@ -2747,10 +2622,8 @@ debug_to_reported_exec_events_per_exec_call ()
}
static int
-debug_to_has_syscall_event (pid, kind, syscall_id)
- int pid;
- enum target_waitkind *kind;
- int *syscall_id;
+debug_to_has_syscall_event (int pid, enum target_waitkind *kind,
+ int *syscall_id)
{
int has_syscall_event;
char *kind_spelling = "??";
@@ -2779,10 +2652,7 @@ debug_to_has_syscall_event (pid, kind, syscall_id)
}
static int
-debug_to_has_exited (pid, wait_status, exit_status)
- int pid;
- int wait_status;
- int *exit_status;
+debug_to_has_exited (int pid, int wait_status, int *exit_status)
{
int has_exited;
@@ -2795,7 +2665,7 @@ debug_to_has_exited (pid, wait_status, exit_status)
}
static void
-debug_to_mourn_inferior ()
+debug_to_mourn_inferior (void)
{
debug_target.to_mourn_inferior ();
@@ -2803,7 +2673,7 @@ debug_to_mourn_inferior ()
}
static int
-debug_to_can_run ()
+debug_to_can_run (void)
{
int retval;
@@ -2815,8 +2685,7 @@ debug_to_can_run ()
}
static void
-debug_to_notice_signals (pid)
- int pid;
+debug_to_notice_signals (int pid)
{
debug_target.to_notice_signals (pid);
@@ -2824,8 +2693,7 @@ debug_to_notice_signals (pid)
}
static int
-debug_to_thread_alive (pid)
- int pid;
+debug_to_thread_alive (int pid)
{
int retval;
@@ -2838,7 +2706,7 @@ debug_to_thread_alive (pid)
}
static void
-debug_to_find_new_threads ()
+debug_to_find_new_threads (void)
{
debug_target.to_find_new_threads ();
@@ -2846,7 +2714,7 @@ debug_to_find_new_threads ()
}
static void
-debug_to_stop ()
+debug_to_stop (void)
{
debug_target.to_stop ();
@@ -2854,11 +2722,7 @@ debug_to_stop ()
}
static int
-debug_to_query (type, req, resp, siz)
- int type;
- char *req;
- char *resp;
- int *siz;
+debug_to_query (int type, char *req, char *resp, int *siz)
{
int retval;
@@ -2878,9 +2742,7 @@ debug_to_rcmd (char *command,
}
static struct symtab_and_line *
-debug_to_enable_exception_callback (kind, enable)
- enum exception_event_kind kind;
- int enable;
+debug_to_enable_exception_callback (enum exception_event_kind kind, int enable)
{
struct symtab_and_line *result;
result = debug_target.to_enable_exception_callback (kind, enable);
@@ -2891,7 +2753,7 @@ debug_to_enable_exception_callback (kind, enable)
}
static struct exception_event_record *
-debug_to_get_current_exception_event ()
+debug_to_get_current_exception_event (void)
{
struct exception_event_record *result;
result = debug_target.to_get_current_exception_event ();
@@ -2900,8 +2762,7 @@ debug_to_get_current_exception_event ()
}
static char *
-debug_to_pid_to_exec_file (pid)
- int pid;
+debug_to_pid_to_exec_file (int pid)
{
char *exec_file;
@@ -2914,8 +2775,7 @@ debug_to_pid_to_exec_file (pid)
}
static char *
-debug_to_core_file_to_sym_file (core)
- char *core;
+debug_to_core_file_to_sym_file (char *core)
{
char *sym_file;
@@ -2928,7 +2788,7 @@ debug_to_core_file_to_sym_file (core)
}
static void
-setup_target_debug ()
+setup_target_debug (void)
{
memcpy (&debug_target, &current_target, sizeof debug_target);
@@ -3013,7 +2873,7 @@ do_monitor_command (char *cmd,
}
void
-initialize_targets ()
+initialize_targets (void)
{
init_dummy_target ();
push_target (&dummy_target);
diff --git a/gdb/thread.c b/gdb/thread.c
index a08ff17..9ae251e 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -80,7 +80,7 @@ free_thread (struct thread_info *tp)
}
void
-init_thread_list ()
+init_thread_list (void)
{
struct thread_info *tp, *tpnext;
@@ -101,8 +101,7 @@ init_thread_list ()
so that back_ends can initialize their private data. */
struct thread_info *
-add_thread (pid)
- int pid;
+add_thread (int pid)
{
struct thread_info *tp;
@@ -131,8 +130,7 @@ add_thread (pid)
}
void
-delete_thread (pid)
- int pid;
+delete_thread (int pid)
{
struct thread_info *tp, *tpprev;
@@ -154,8 +152,7 @@ delete_thread (pid)
}
static struct thread_info *
-find_thread_id (num)
- int num;
+find_thread_id (int num)
{
struct thread_info *tp;
@@ -168,8 +165,7 @@ find_thread_id (num)
/* Find a thread_info by matching 'pid'. */
struct thread_info *
-find_thread_pid (pid)
- int pid;
+find_thread_pid (int pid)
{
struct thread_info *tp;
@@ -209,8 +205,7 @@ iterate_over_threads (callback, data)
}
int
-valid_thread_id (num)
- int num;
+valid_thread_id (int num)
{
struct thread_info *tp;
@@ -222,8 +217,7 @@ valid_thread_id (num)
}
int
-pid_to_thread_id (pid)
- int pid;
+pid_to_thread_id (int pid)
{
struct thread_info *tp;
@@ -235,8 +229,7 @@ pid_to_thread_id (pid)
}
int
-thread_id_to_pid (num)
- int num;
+thread_id_to_pid (int num)
{
struct thread_info *thread = find_thread_id (num);
if (thread)
@@ -246,8 +239,7 @@ thread_id_to_pid (num)
}
int
-in_thread_list (pid)
- int pid;
+in_thread_list (int pid)
{
struct thread_info *tp;
@@ -292,29 +284,15 @@ gdb_list_thread_ids (/* output object */)
/* Load infrun state for the thread PID. */
void
-load_infrun_state (pid, prev_pc, prev_func_start, prev_func_name,
- trap_expected, step_resume_breakpoint,
- through_sigtramp_breakpoint, step_range_start,
- step_range_end, step_frame_address,
- handling_longjmp, another_trap,
- stepping_through_solib_after_catch,
- stepping_through_solib_catchpoints,
- stepping_through_sigtramp)
- int pid;
- CORE_ADDR *prev_pc;
- CORE_ADDR *prev_func_start;
- char **prev_func_name;
- int *trap_expected;
- struct breakpoint **step_resume_breakpoint;
- struct breakpoint **through_sigtramp_breakpoint;
- CORE_ADDR *step_range_start;
- CORE_ADDR *step_range_end;
- CORE_ADDR *step_frame_address;
- int *handling_longjmp;
- int *another_trap;
- int *stepping_through_solib_after_catch;
- bpstat *stepping_through_solib_catchpoints;
- int *stepping_through_sigtramp;
+load_infrun_state (int pid, CORE_ADDR *prev_pc, CORE_ADDR *prev_func_start,
+ char **prev_func_name, int *trap_expected,
+ struct breakpoint **step_resume_breakpoint,
+ struct breakpoint **through_sigtramp_breakpoint,
+ CORE_ADDR *step_range_start, CORE_ADDR *step_range_end,
+ CORE_ADDR *step_frame_address, int *handling_longjmp,
+ int *another_trap, int *stepping_through_solib_after_catch,
+ bpstat *stepping_through_solib_catchpoints,
+ int *stepping_through_sigtramp)
{
struct thread_info *tp;
@@ -343,29 +321,15 @@ load_infrun_state (pid, prev_pc, prev_func_start, prev_func_name,
/* Save infrun state for the thread PID. */
void
-save_infrun_state (pid, prev_pc, prev_func_start, prev_func_name,
- trap_expected, step_resume_breakpoint,
- through_sigtramp_breakpoint, step_range_start,
- step_range_end, step_frame_address,
- handling_longjmp, another_trap,
- stepping_through_solib_after_catch,
- stepping_through_solib_catchpoints,
- stepping_through_sigtramp)
- int pid;
- CORE_ADDR prev_pc;
- CORE_ADDR prev_func_start;
- char *prev_func_name;
- int trap_expected;
- struct breakpoint *step_resume_breakpoint;
- struct breakpoint *through_sigtramp_breakpoint;
- CORE_ADDR step_range_start;
- CORE_ADDR step_range_end;
- CORE_ADDR step_frame_address;
- int handling_longjmp;
- int another_trap;
- int stepping_through_solib_after_catch;
- bpstat stepping_through_solib_catchpoints;
- int stepping_through_sigtramp;
+save_infrun_state (int pid, CORE_ADDR prev_pc, CORE_ADDR prev_func_start,
+ char *prev_func_name, int trap_expected,
+ struct breakpoint *step_resume_breakpoint,
+ struct breakpoint *through_sigtramp_breakpoint,
+ CORE_ADDR step_range_start, CORE_ADDR step_range_end,
+ CORE_ADDR step_frame_address, int handling_longjmp,
+ int another_trap, int stepping_through_solib_after_catch,
+ bpstat stepping_through_solib_catchpoints,
+ int stepping_through_sigtramp)
{
struct thread_info *tp;
@@ -393,8 +357,7 @@ save_infrun_state (pid, prev_pc, prev_func_start, prev_func_name,
/* Return true if TP is an active thread. */
static int
-thread_alive (tp)
- struct thread_info *tp;
+thread_alive (struct thread_info *tp)
{
if (tp->pid == -1)
return 0;
@@ -407,7 +370,7 @@ thread_alive (tp)
}
static void
-prune_threads ()
+prune_threads (void)
{
struct thread_info *tp, *next;
@@ -427,9 +390,7 @@ prune_threads ()
*/
static void
-info_threads_command (arg, from_tty)
- char *arg;
- int from_tty;
+info_threads_command (char *arg, int from_tty)
{
struct thread_info *tp;
int current_pid;
@@ -499,8 +460,7 @@ info_threads_command (arg, from_tty)
/* Switch from one thread to another. */
static void
-switch_to_thread (pid)
- int pid;
+switch_to_thread (int pid)
{
if (pid == inferior_pid)
return;
@@ -513,8 +473,7 @@ switch_to_thread (pid)
}
static void
-restore_current_thread (pid)
- int pid;
+restore_current_thread (int pid)
{
if (pid != inferior_pid)
{
@@ -555,9 +514,7 @@ make_cleanup_restore_current_thread (int inferior_pid)
*/
static void
-thread_apply_all_command (cmd, from_tty)
- char *cmd;
- int from_tty;
+thread_apply_all_command (char *cmd, int from_tty)
{
struct thread_info *tp;
struct cleanup *old_chain;
@@ -590,9 +547,7 @@ thread_apply_all_command (cmd, from_tty)
}
static void
-thread_apply_command (tidlist, from_tty)
- char *tidlist;
- int from_tty;
+thread_apply_command (char *tidlist, int from_tty)
{
char *cmd;
char *p;
@@ -665,9 +620,7 @@ thread_apply_command (tidlist, from_tty)
if prefix of arg is `apply'. */
static void
-thread_command (tidstr, from_tty)
- char *tidstr;
- int from_tty;
+thread_command (char *tidstr, int from_tty)
{
if (!tidstr)
{
@@ -749,7 +702,7 @@ gdb_thread_select (char *tidstr)
struct cmd_list_element *thread_cmd_list = NULL;
void
-_initialize_thread ()
+_initialize_thread (void)
{
static struct cmd_list_element *thread_apply_list = NULL;
diff --git a/gdb/tic80-tdep.c b/gdb/tic80-tdep.c
index 2fddc6d..2ea2d44 100644
--- a/gdb/tic80-tdep.c
+++ b/gdb/tic80-tdep.c
@@ -35,9 +35,8 @@
an empty frame_saved_regs, so I guess that's better than total failure */
void
-tic80_frame_find_saved_regs (fi, regaddr)
- struct frame_info *fi;
- struct frame_saved_regs *regaddr;
+tic80_frame_find_saved_regs (struct frame_info *fi,
+ struct frame_saved_regs *regaddr)
{
memcpy (regaddr, &fi->fsr, sizeof (struct frame_saved_regs));
}
@@ -46,8 +45,7 @@ tic80_frame_find_saved_regs (fi, regaddr)
Find end of function prologue. */
CORE_ADDR
-tic80_skip_prologue (pc)
- CORE_ADDR pc;
+tic80_skip_prologue (CORE_ADDR pc)
{
CORE_ADDR func_addr, func_end;
struct symtab_and_line sal;
@@ -80,8 +78,7 @@ tic80_skip_prologue (pc)
This information is stored in the "extra" fields of the frame_info. */
static void
-tic80_scan_prologue (fi)
- struct frame_info *fi;
+tic80_scan_prologue (struct frame_info *fi)
{
struct symtab_and_line sal;
CORE_ADDR prologue_start, prologue_end, current_pc;
@@ -169,8 +166,7 @@ tic80_scan_prologue (fi)
examine the prologue. */
void
-tic80_init_extra_frame_info (fi)
- struct frame_info *fi;
+tic80_init_extra_frame_info (struct frame_info *fi)
{
int reg;
@@ -221,9 +217,7 @@ tic80_init_extra_frame_info (fi)
caller-saves registers for an inner frame. */
CORE_ADDR
-tic80_find_callers_reg (fi, regnum)
- struct frame_info *fi;
- int regnum;
+tic80_find_callers_reg (struct frame_info *fi, int regnum)
{
for (; fi; fi = fi->next)
if (PC_IN_CALL_DUMMY (fi->pc, fi->frame, fi->frame))
@@ -241,8 +235,7 @@ tic80_find_callers_reg (fi, regnum)
For c80, we save the frame size when we initialize the frame_info. */
CORE_ADDR
-tic80_frame_chain (fi)
- struct frame_info *fi;
+tic80_frame_chain (struct frame_info *fi)
{
CORE_ADDR fn_start, callers_pc, fp;
@@ -271,8 +264,7 @@ tic80_frame_chain (fi)
restoring all saved registers. */
struct frame_info *
-tic80_pop_frame (frame)
- struct frame_info *frame;
+tic80_pop_frame (struct frame_info *frame)
{
int regnum;
@@ -303,8 +295,7 @@ tic80_pop_frame (frame)
in the stack anywhere, otherwise we get it from the registers. */
CORE_ADDR
-tic80_frame_saved_pc (fi)
- struct frame_info *fi;
+tic80_frame_saved_pc (struct frame_info *fi)
{
if (PC_IN_CALL_DUMMY (fi->pc, fi->frame, fi->frame))
return generic_read_register_dummy (fi->pc, fi->frame, PC_REGNUM);
@@ -318,9 +309,7 @@ tic80_frame_saved_pc (fi)
(ie. when using an empty CALL_DUMMY) */
CORE_ADDR
-tic80_push_return_address (pc, sp)
- CORE_ADDR pc;
- CORE_ADDR sp;
+tic80_push_return_address (CORE_ADDR pc, CORE_ADDR sp)
{
write_register (LR_REGNUM, CALL_DUMMY_ADDRESS ());
return sp;
@@ -365,12 +354,8 @@ tic80_push_return_address (pc, sp)
passed as an implicit first argument, always in R0. */
CORE_ADDR
-tic80_push_arguments (nargs, args, sp, struct_return, struct_addr)
- int nargs;
- value_ptr *args;
- CORE_ADDR sp;
- unsigned char struct_return;
- CORE_ADDR struct_addr;
+tic80_push_arguments (int nargs, value_ptr *args, CORE_ADDR sp,
+ unsigned char struct_return, CORE_ADDR struct_addr)
{
int stack_offset, stack_alloc;
int argreg;
@@ -462,8 +447,7 @@ tic80_push_arguments (nargs, args, sp, struct_return, struct_addr)
we must actually write one of those two as well, depending on PSW. */
void
-tic80_write_sp (val)
- CORE_ADDR val;
+tic80_write_sp (CORE_ADDR val)
{
#if 0
unsigned long psw = read_register (PSW_REGNUM);
@@ -477,7 +461,7 @@ tic80_write_sp (val)
}
void
-_initialize_tic80_tdep ()
+_initialize_tic80_tdep (void)
{
tm_print_insn = print_insn_tic80;
}
diff --git a/gdb/top.c b/gdb/top.c
index cdf292d..442f149 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -503,8 +503,7 @@ static SIGJMP_BUF *catch_return;
/* Return for reason REASON to the nearest containing catch_errors(). */
NORETURN void
-return_to_top_level (reason)
- enum return_reason reason;
+return_to_top_level (enum return_reason reason)
{
quit_flag = 0;
immediate_quit = 0;
@@ -570,11 +569,8 @@ return_to_top_level (reason)
between utils.c and top.c? */
int
-catch_errors (func, args, errstring, mask)
- catch_errors_ftype *func;
- PTR args;
- char *errstring;
- return_mask mask;
+catch_errors (catch_errors_ftype *func, PTR args, char *errstring,
+ return_mask mask)
{
SIGJMP_BUF *saved_catch;
SIGJMP_BUF catch;
@@ -700,8 +696,7 @@ catch_command_errors (catch_command_errors_ftype * command,
#ifdef SIGHUP
static void
-disconnect (signo)
- int signo;
+disconnect (int signo)
{
catch_errors (quit_cover, NULL,
"Could not kill the program being debugged", RETURN_MASK_ALL);
@@ -715,8 +710,7 @@ disconnect (signo)
gdb to use the event loop as the default command loop and we merge
event-top.c into this file, top.c */
/* static */ int
-quit_cover (s)
- PTR s;
+quit_cover (PTR s)
{
caution = 0; /* Throw caution to the wind -- we're exiting.
This prevents asking the user dumb questions. */
@@ -764,8 +758,7 @@ do_restore_instream_cleanup (void *stream)
/* Read commands from STREAM. */
void
-read_command_file (stream)
- FILE *stream;
+read_command_file (FILE *stream)
{
struct cleanup *cleanups;
@@ -789,8 +782,7 @@ do_chdir_cleanup (void *old_dir)
#endif
void
-gdb_init (argv0)
- char *argv0;
+gdb_init (char *argv0)
{
if (pre_init_ui_hook)
pre_init_ui_hook ();
@@ -852,9 +844,7 @@ gdb_init (argv0)
control commands (if/while). */
static struct command_line *
-build_command_line (type, args)
- enum command_control_type type;
- char *args;
+build_command_line (enum command_control_type type, char *args)
{
struct command_line *cmd;
@@ -878,9 +868,7 @@ build_command_line (type, args)
such as "if" and "while". */
static struct command_line *
-get_command_line (type, arg)
- enum command_control_type type;
- char *arg;
+get_command_line (enum command_control_type type, char *arg)
{
struct command_line *cmd;
struct cleanup *old_chain = NULL;
@@ -905,10 +893,8 @@ get_command_line (type, arg)
/* Recursively print a command (including full control structures). */
#ifdef UI_OUT
void
-print_command_lines (uiout, cmd, depth)
- struct ui_out *uiout;
- struct command_line *cmd;
- unsigned int depth;
+print_command_lines (struct ui_out *uiout, struct command_line *cmd,
+ unsigned int depth)
{
struct command_line *list;
@@ -995,10 +981,8 @@ print_command_lines (uiout, cmd, depth)
}
#else
void
-print_command_line (cmd, depth, stream)
- struct command_line *cmd;
- unsigned int depth;
- struct ui_file *stream;
+print_command_line (struct command_line *cmd, unsigned int depth,
+ struct ui_file *stream)
{
unsigned int i;
@@ -1079,8 +1063,7 @@ print_command_line (cmd, depth, stream)
/* Execute the command in CMD. */
enum command_control_type
-execute_control_command (cmd)
- struct command_line *cmd;
+execute_control_command (struct command_line *cmd)
{
struct expression *expr;
struct command_line *current;
@@ -1227,9 +1210,7 @@ execute_control_command (cmd)
loop condition is nonzero. */
static void
-while_command (arg, from_tty)
- char *arg;
- int from_tty;
+while_command (char *arg, int from_tty)
{
struct command_line *command = NULL;
@@ -1247,9 +1228,7 @@ while_command (arg, from_tty)
on the value of the if conditional. */
static void
-if_command (arg, from_tty)
- char *arg;
- int from_tty;
+if_command (char *arg, int from_tty)
{
struct command_line *command = NULL;
@@ -1279,8 +1258,7 @@ arg_cleanup (void *ignore)
$arg0, $arg1 ... $argMAXUSERARGS. */
static struct cleanup *
-setup_user_args (p)
- char *p;
+setup_user_args (char *p)
{
struct user_args *args;
struct cleanup *old_chain;
@@ -1362,8 +1340,7 @@ setup_user_args (p)
or NULL if P contains no arguments. */
static char *
-locate_arg (p)
- char *p;
+locate_arg (char *p)
{
while ((p = strchr (p, '$')))
{
@@ -1378,8 +1355,7 @@ locate_arg (p)
arguments found in line, with the updated copy being placed into nline. */
static char *
-insert_args (line)
- char *line;
+insert_args (char *line)
{
char *p, *save_line, *new_line;
unsigned len, i;
@@ -1439,9 +1415,7 @@ insert_args (line)
}
void
-execute_user_command (c, args)
- struct cmd_list_element *c;
- char *args;
+execute_user_command (struct cmd_list_element *c, char *args)
{
register struct command_line *cmdlines;
struct cleanup *old_chain;
@@ -1475,9 +1449,7 @@ execute_user_command (c, args)
Pass FROM_TTY as second argument to the defining function. */
void
-execute_command (p, from_tty)
- char *p;
- int from_tty;
+execute_command (char *p, int from_tty)
{
register struct cmd_list_element *c;
register enum language flang;
@@ -1580,7 +1552,7 @@ extern void serial_log_command (const char *);
until end of file or error reading instream. */
void
-command_loop ()
+command_loop (void)
{
struct cleanup *old_chain;
char *command;
@@ -1705,7 +1677,7 @@ simplified_command_loop (read_input_func, execute_command_func)
/* Commands call this if they do not want to be repeated by null lines. */
void
-dont_repeat ()
+dont_repeat (void)
{
if (server_command)
return;
@@ -1725,8 +1697,7 @@ dont_repeat ()
A NULL return means end of file. */
char *
-gdb_readline (prompt_arg)
- char *prompt_arg;
+gdb_readline (char *prompt_arg)
{
int c;
char *result;
@@ -1842,18 +1813,14 @@ char *gdb_completer_quote_characters =
but don't want to complete on anything else either. */
/* ARGSUSED */
char **
-noop_completer (text, prefix)
- char *text;
- char *prefix;
+noop_completer (char *text, char *prefix)
{
return NULL;
}
/* Complete on filenames. */
char **
-filename_completer (text, word)
- char *text;
- char *word;
+filename_completer (char *text, char *word)
{
/* From readline. */
extern char *filename_completion_function (char *, int);
@@ -1974,11 +1941,7 @@ extern char *filename_completion_function (char *, int);
free the string. */
static char *
-line_completion_function (text, matches, line_buffer, point)
- char *text;
- int matches;
- char *line_buffer;
- int point;
+line_completion_function (char *text, int matches, char *line_buffer, int point)
{
static char **list = (char **) NULL; /* Cache of completions */
static int index; /* Next cached completion */
@@ -2207,9 +2170,7 @@ line_completion_function (text, matches, line_buffer, point)
/* Line completion interface function for readline. */
static char *
-readline_line_completion_function (text, matches)
- char *text;
- int matches;
+readline_line_completion_function (char *text, int matches)
{
return line_completion_function (text, matches, rl_line_buffer, rl_point);
}
@@ -2219,8 +2180,7 @@ readline_line_completion_function (text, matches)
location after the "word". */
char *
-skip_quoted (str)
- char *str;
+skip_quoted (char *str)
{
char quote_char = '\0';
char *scan;
@@ -2253,8 +2213,7 @@ skip_quoted (str)
#ifdef STOP_SIGNAL
static void
-stop_sig (signo)
- int signo;
+stop_sig (int signo)
{
#if STOP_SIGNAL == SIGTSTP
signal (SIGTSTP, SIG_DFL);
@@ -2274,8 +2233,7 @@ stop_sig (signo)
/* Initialize signal handlers. */
static void
-do_nothing (signo)
- int signo;
+do_nothing (int signo)
{
/* Under System V the default disposition of a signal is reinstated after
the signal is caught and delivered to an application process. On such
@@ -2287,7 +2245,7 @@ do_nothing (signo)
}
static void
-init_signals ()
+init_signals (void)
{
signal (SIGINT, request_quit);
@@ -2333,10 +2291,7 @@ init_signals ()
simple input as the user has requested. */
char *
-command_line_input (prompt_arg, repeat, annotation_suffix)
- char *prompt_arg;
- int repeat;
- char *annotation_suffix;
+command_line_input (char *prompt_arg, int repeat, char *annotation_suffix)
{
static char *linebuffer = 0;
static unsigned linelength = 0;
@@ -2558,9 +2513,7 @@ command_line_input (prompt_arg, repeat, annotation_suffix)
clause for an "if" command. */
static void
-realloc_body_list (command, new_length)
- struct command_line *command;
- int new_length;
+realloc_body_list (struct command_line *command, int new_length)
{
int n;
struct command_line **body_list;
@@ -2585,8 +2538,7 @@ realloc_body_list (command, new_length)
"end", return such an indication to the caller. */
static enum misc_command_type
-read_next_line (command)
- struct command_line **command;
+read_next_line (struct command_line **command)
{
char *p, *p1, *prompt_ptr, control_prompt[256];
int i = 0;
@@ -2683,8 +2635,7 @@ read_next_line (command)
following commands are nested. */
static enum command_control_type
-recurse_read_control_structure (current_cmd)
- struct command_line *current_cmd;
+recurse_read_control_structure (struct command_line *current_cmd)
{
int current_body, i;
enum misc_command_type val;
@@ -2796,9 +2747,7 @@ recurse_read_control_structure (current_cmd)
#define END_MESSAGE "End with a line saying just \"end\"."
struct command_line *
-read_command_lines (prompt_arg, from_tty)
- char *prompt_arg;
- int from_tty;
+read_command_lines (char *prompt_arg, int from_tty)
{
struct command_line *head, *tail, *next;
struct cleanup *old_chain;
@@ -2885,8 +2834,7 @@ read_command_lines (prompt_arg, from_tty)
/* Free a chain of struct command_line's. */
void
-free_command_lines (lptr)
- struct command_line **lptr;
+free_command_lines (struct command_line **lptr)
{
register struct command_line *l = *lptr;
register struct command_line *next;
@@ -2934,10 +2882,7 @@ add_info (name, fun, doc)
/* Add an alias to the list of info subcommands. */
struct cmd_list_element *
-add_info_alias (name, oldname, abbrev_flag)
- char *name;
- char *oldname;
- int abbrev_flag;
+add_info_alias (char *name, char *oldname, int abbrev_flag)
{
return add_alias_cmd (name, oldname, 0, abbrev_flag, &infolist);
}
@@ -2947,9 +2892,7 @@ add_info_alias (name, oldname, abbrev_flag)
/* ARGSUSED */
static void
-info_command (arg, from_tty)
- char *arg;
- int from_tty;
+info_command (char *arg, int from_tty)
{
printf_unfiltered ("\"info\" must be followed by the name of an info command.\n");
help_list (infolist, "info ", -1, gdb_stdout);
@@ -2959,9 +2902,7 @@ info_command (arg, from_tty)
/* ARGSUSED */
static void
-complete_command (arg, from_tty)
- char *arg;
- int from_tty;
+complete_command (char *arg, int from_tty)
{
int i;
int argpoint;
@@ -2986,9 +2927,7 @@ complete_command (arg, from_tty)
/* ARGSUSED */
static void
-show_command (arg, from_tty)
- char *arg;
- int from_tty;
+show_command (char *arg, int from_tty)
{
cmd_show_list (showlist, from_tty, "");
}
@@ -3008,18 +2947,14 @@ add_com (name, class, fun, doc)
/* Add an alias or abbreviation command to the list of commands. */
struct cmd_list_element *
-add_com_alias (name, oldname, class, abbrev_flag)
- char *name;
- char *oldname;
- enum command_class class;
- int abbrev_flag;
+add_com_alias (char *name, char *oldname, enum command_class class,
+ int abbrev_flag)
{
return add_alias_cmd (name, oldname, class, abbrev_flag, &cmdlist);
}
void
-error_no_arg (why)
- char *why;
+error_no_arg (char *why)
{
error ("Argument required (%s).", why);
}
@@ -3034,8 +2969,7 @@ help_command (command, from_tty)
}
static void
-validate_comname (comname)
- char *comname;
+validate_comname (char *comname)
{
register char *p;
@@ -3053,16 +2987,12 @@ validate_comname (comname)
/* This is just a placeholder in the command data structures. */
static void
-user_defined_command (ignore, from_tty)
- char *ignore;
- int from_tty;
+user_defined_command (char *ignore, int from_tty)
{
}
static void
-define_command (comname, from_tty)
- char *comname;
- int from_tty;
+define_command (char *comname, int from_tty)
{
register struct command_line *cmds;
register struct cmd_list_element *c, *newc, *hookc = 0;
@@ -3137,9 +3067,7 @@ define_command (comname, from_tty)
}
static void
-document_command (comname, from_tty)
- char *comname;
- int from_tty;
+document_command (char *comname, int from_tty)
{
struct command_line *doclines;
register struct cmd_list_element *c;
@@ -3182,8 +3110,7 @@ document_command (comname, from_tty)
/* Print the GDB banner. */
void
-print_gdb_version (stream)
- struct ui_file *stream;
+print_gdb_version (struct ui_file *stream)
{
/* From GNU coding standards, first line is meant to be easy for a
program to parse, and is just canonical program name and version
@@ -3227,9 +3154,7 @@ There is absolutely no warranty for GDB. Type \"show warranty\" for details.\n"
/* ARGSUSED */
static void
-show_version (args, from_tty)
- char *args;
- int from_tty;
+show_version (char *args, int from_tty)
{
immediate_quit++;
print_gdb_version (gdb_stdout);
@@ -3254,8 +3179,7 @@ show_version (args, from_tty)
static int gdb_prompt_escape;
static int
-get_prompt_1 (formatted_prompt)
- char *formatted_prompt;
+get_prompt_1 (char *formatted_prompt)
{
char *local_prompt;
@@ -3483,7 +3407,7 @@ get_prompt_1 (formatted_prompt)
}
char *
-get_prompt ()
+get_prompt (void)
{
static char buf[MAX_PROMPT_SIZE];
@@ -3503,8 +3427,7 @@ get_prompt ()
}
void
-set_prompt (s)
- char *s;
+set_prompt (char *s)
{
/* ??rehrauer: I don't know why this fails, since it looks as though
assignments to prompt are wrapped in calls to savestring...
@@ -3522,7 +3445,7 @@ set_prompt (s)
non-zero if we should quit, zero if we shouldn't. */
int
-quit_confirm ()
+quit_confirm (void)
{
if (inferior_pid != 0 && target_has_execution)
{
@@ -3548,9 +3471,7 @@ quit_confirm ()
/* Quit without asking for confirmation. */
void
-quit_force (args, from_tty)
- char *args;
- int from_tty;
+quit_force (char *args, int from_tty)
{
int exit_code = 0;
@@ -3596,9 +3517,7 @@ quit_force (args, from_tty)
/* Handle the quit command. */
void
-quit_command (args, from_tty)
- char *args;
- int from_tty;
+quit_command (char *args, int from_tty)
{
if (!quit_confirm ())
error ("Not confirmed.");
@@ -3609,16 +3528,14 @@ quit_command (args, from_tty)
desires that questions be asked of them on that terminal. */
int
-input_from_terminal_p ()
+input_from_terminal_p (void)
{
return gdb_has_a_terminal () && (instream == stdin) & caution;
}
/* ARGSUSED */
static void
-pwd_command (args, from_tty)
- char *args;
- int from_tty;
+pwd_command (char *args, int from_tty)
{
if (args)
error ("The \"pwd\" command does not take an argument: %s", args);
@@ -3632,9 +3549,7 @@ pwd_command (args, from_tty)
}
void
-cd_command (dir, from_tty)
- char *dir;
- int from_tty;
+cd_command (char *dir, int from_tty)
{
int len;
/* Found something other than leading repetitions of "/..". */
@@ -3741,8 +3656,7 @@ struct source_cleanup_lines_args
};
static void
-source_cleanup_lines (args)
- PTR args;
+source_cleanup_lines (PTR args)
{
struct source_cleanup_lines_args *p =
(struct source_cleanup_lines_args *) args;
@@ -3760,9 +3674,7 @@ do_fclose_cleanup (void *stream)
}
void
-source_command (args, from_tty)
- char *args;
- int from_tty;
+source_command (char *args, int from_tty)
{
FILE *stream;
struct cleanup *old_cleanups;
@@ -3822,9 +3734,7 @@ source_command (args, from_tty)
/* ARGSUSED */
static void
-echo_command (text, from_tty)
- char *text;
- int from_tty;
+echo_command (char *text, int from_tty)
{
char *p = text;
register int c;
@@ -3854,9 +3764,7 @@ echo_command (text, from_tty)
/* ARGSUSED */
static void
-dont_repeat_command (ignored, from_tty)
- char *ignored;
- int from_tty;
+dont_repeat_command (char *ignored, int from_tty)
{
*line = 0; /* Can't call dont_repeat here because we're not
necessarily reading from stdin. */
@@ -3867,9 +3775,7 @@ dont_repeat_command (ignored, from_tty)
/* Number of commands to print in each call to show_commands. */
#define Hist_print 10
static void
-show_commands (args, from_tty)
- char *args;
- int from_tty;
+show_commands (char *args, int from_tty)
{
/* Index for history commands. Relative to history_base. */
int offset;
@@ -3946,10 +3852,7 @@ extern HIST_ENTRY *history_get (int);
/* Called by do_setshow_command. */
/* ARGSUSED */
static void
-set_history_size_command (args, from_tty, c)
- char *args;
- int from_tty;
- struct cmd_list_element *c;
+set_history_size_command (char *args, int from_tty, struct cmd_list_element *c)
{
if (history_size == INT_MAX)
unstifle_history ();
@@ -3964,9 +3867,7 @@ set_history_size_command (args, from_tty, c)
/* ARGSUSED */
static void
-set_history (args, from_tty)
- char *args;
- int from_tty;
+set_history (char *args, int from_tty)
{
printf_unfiltered ("\"set history\" must be followed by the name of a history subcommand.\n");
help_list (sethistlist, "set history ", -1, gdb_stdout);
@@ -3974,9 +3875,7 @@ set_history (args, from_tty)
/* ARGSUSED */
static void
-show_history (args, from_tty)
- char *args;
- int from_tty;
+show_history (char *args, int from_tty)
{
cmd_show_list (showhistlist, from_tty, "");
}
@@ -3986,10 +3885,7 @@ int info_verbose = 0; /* Default verbose msgs off */
/* Called by do_setshow_command. An elaborate joke. */
/* ARGSUSED */
static void
-set_verbose (args, from_tty, c)
- char *args;
- int from_tty;
- struct cmd_list_element *c;
+set_verbose (char *args, int from_tty, struct cmd_list_element *c)
{
char *cmdname = "verbose";
struct cmd_list_element *showcmd;
@@ -4009,8 +3905,7 @@ set_verbose (args, from_tty, c)
}
static void
-float_handler (signo)
- int signo;
+float_handler (int signo)
{
/* This message is based on ANSI C, section 4.7. Note that integer
divide by zero causes this, so "float" is a misnomer. */
@@ -4019,24 +3914,20 @@ float_handler (signo)
}
static void
-set_debug (arg, from_tty)
- char *arg;
- int from_tty;
+set_debug (char *arg, int from_tty)
{
printf_unfiltered ("\"set debug\" must be followed by the name of a print subcommand.\n");
help_list (setdebuglist, "set debug ", -1, gdb_stdout);
}
static void
-show_debug (args, from_tty)
- char *args;
- int from_tty;
+show_debug (char *args, int from_tty)
{
cmd_show_list (showdebuglist, from_tty, "");
}
static void
-init_cmd_lists ()
+init_cmd_lists (void)
{
cmdlist = NULL;
infolist = NULL;
@@ -4068,7 +3959,7 @@ init_cmd_lists ()
*/
void
-init_history ()
+init_history (void)
{
char *tmpenv;
@@ -4099,7 +3990,7 @@ init_history ()
}
static void
-init_main ()
+init_main (void)
{
struct cmd_list_element *c;
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index a7a3888..83dce01 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -164,7 +164,7 @@ extern void _initialize_tracepoint (void);
/* Utility: returns true if "target remote" */
static int
-target_is_remote ()
+target_is_remote (void)
{
if (current_target.to_shortname &&
strcmp (current_target.to_shortname, "remote") == 0)
@@ -175,8 +175,7 @@ target_is_remote ()
/* Utility: generate error from an incoming stub packet. */
static void
-trace_error (buf)
- char *buf;
+trace_error (char *buf)
{
if (*buf++ != 'E')
return; /* not an error msg */
@@ -219,8 +218,7 @@ remote_get_noisy_reply (char *buf,
/* Set tracepoint count to NUM. */
static void
-set_tracepoint_count (num)
- int num;
+set_tracepoint_count (int num)
{
tracepoint_count = num;
set_internalvar (lookup_internalvar ("tpnum"),
@@ -229,8 +227,7 @@ set_tracepoint_count (num)
/* Set traceframe number to NUM. */
static void
-set_traceframe_num (num)
- int num;
+set_traceframe_num (int num)
{
traceframe_number = num;
set_internalvar (lookup_internalvar ("trace_frame"),
@@ -239,8 +236,7 @@ set_traceframe_num (num)
/* Set tracepoint number to NUM. */
static void
-set_tracepoint_num (num)
- int num;
+set_tracepoint_num (int num)
{
tracepoint_number = num;
set_internalvar (lookup_internalvar ("tracepoint"),
@@ -251,8 +247,7 @@ set_tracepoint_num (num)
the traceframe context (line, function, file) */
static void
-set_traceframe_context (trace_pc)
- CORE_ADDR trace_pc;
+set_traceframe_context (CORE_ADDR trace_pc)
{
static struct type *func_string, *file_string;
static struct type *func_range, *file_range;
@@ -339,8 +334,7 @@ set_traceframe_context (trace_pc)
your arguments BEFORE calling this routine! */
static struct tracepoint *
-set_raw_tracepoint (sal)
- struct symtab_and_line sal;
+set_raw_tracepoint (struct symtab_and_line sal)
{
register struct tracepoint *t, *tc;
struct cleanup *old_chain;
@@ -384,9 +378,7 @@ set_raw_tracepoint (sal)
/* Set a tracepoint according to ARG (function, linenum or *address) */
static void
-trace_command (arg, from_tty)
- char *arg;
- int from_tty;
+trace_command (char *arg, int from_tty)
{
char **canonical = (char **) NULL;
struct symtabs_and_lines sals;
@@ -444,8 +436,7 @@ trace_command (arg, from_tty)
/* Tell the user we have just set a tracepoint TP. */
static void
-trace_mention (tp)
- struct tracepoint *tp;
+trace_mention (struct tracepoint *tp)
{
printf_filtered ("Tracepoint %d", tp->number);
@@ -464,9 +455,7 @@ trace_mention (tp)
/* Print information on tracepoint number TPNUM_EXP, or all if omitted. */
static void
-tracepoints_info (tpnum_exp, from_tty)
- char *tpnum_exp;
- int from_tty;
+tracepoints_info (char *tpnum_exp, int from_tty)
{
struct tracepoint *t;
struct action_line *action;
@@ -550,10 +539,8 @@ enum tracepoint_opcode
/* This function implements enable, disable and delete commands. */
static void
-tracepoint_operation (t, from_tty, opcode)
- struct tracepoint *t;
- int from_tty;
- enum tracepoint_opcode opcode;
+tracepoint_operation (struct tracepoint *t, int from_tty,
+ enum tracepoint_opcode opcode)
{
struct tracepoint *t2;
@@ -604,9 +591,7 @@ tracepoint_operation (t, from_tty, opcode)
if OPTIONAL_P is true, then if the argument is missing, the most
recent tracepoint (tracepoint_count) is returned. */
struct tracepoint *
-get_tracepoint_by_number (arg, multi_p, optional_p)
- char **arg;
- int multi_p, optional_p;
+get_tracepoint_by_number (char **arg, int multi_p, int optional_p)
{
struct tracepoint *t;
int tpnum;
@@ -646,10 +631,8 @@ get_tracepoint_by_number (arg, multi_p, optional_p)
/* Utility: parse a list of tracepoint numbers, and call a func for each. */
static void
-map_args_over_tracepoints (args, from_tty, opcode)
- char *args;
- int from_tty;
- enum tracepoint_opcode opcode;
+map_args_over_tracepoints (char *args, int from_tty,
+ enum tracepoint_opcode opcode)
{
struct tracepoint *t, *tmp;
@@ -669,9 +652,7 @@ map_args_over_tracepoints (args, from_tty, opcode)
/* The 'enable trace' command enables tracepoints. Not supported by all targets. */
static void
-enable_trace_command (args, from_tty)
- char *args;
- int from_tty;
+enable_trace_command (char *args, int from_tty)
{
dont_repeat ();
map_args_over_tracepoints (args, from_tty, enable_op);
@@ -679,9 +660,7 @@ enable_trace_command (args, from_tty)
/* The 'disable trace' command enables tracepoints. Not supported by all targets. */
static void
-disable_trace_command (args, from_tty)
- char *args;
- int from_tty;
+disable_trace_command (char *args, int from_tty)
{
dont_repeat ();
map_args_over_tracepoints (args, from_tty, disable_op);
@@ -689,9 +668,7 @@ disable_trace_command (args, from_tty)
/* Remove a tracepoint (or all if no argument) */
static void
-delete_trace_command (args, from_tty)
- char *args;
- int from_tty;
+delete_trace_command (char *args, int from_tty)
{
dont_repeat ();
if (!args || !*args) /* No args implies all tracepoints; */
@@ -710,9 +687,7 @@ delete_trace_command (args, from_tty)
Also accepts special argument "all". */
static void
-trace_pass_command (args, from_tty)
- char *args;
- int from_tty;
+trace_pass_command (char *args, int from_tty)
{
struct tracepoint *t1 = (struct tracepoint *) -1, *t2;
unsigned int count;
@@ -772,34 +747,26 @@ static void read_actions (struct tracepoint *);
which is always an error. */
static void
-end_actions_pseudocommand (args, from_tty)
- char *args;
- int from_tty;
+end_actions_pseudocommand (char *args, int from_tty)
{
error ("This command cannot be used at the top level.");
}
static void
-while_stepping_pseudocommand (args, from_tty)
- char *args;
- int from_tty;
+while_stepping_pseudocommand (char *args, int from_tty)
{
error ("This command can only be used in a tracepoint actions list.");
}
static void
-collect_pseudocommand (args, from_tty)
- char *args;
- int from_tty;
+collect_pseudocommand (char *args, int from_tty)
{
error ("This command can only be used in a tracepoint actions list.");
}
/* Enter a list of actions for a tracepoint. */
static void
-trace_actions_command (args, from_tty)
- char *args;
- int from_tty;
+trace_actions_command (char *args, int from_tty)
{
struct tracepoint *t;
char tmpbuf[128];
@@ -832,8 +799,7 @@ trace_actions_command (args, from_tty)
/* worker function */
static void
-read_actions (t)
- struct tracepoint *t;
+read_actions (struct tracepoint *t)
{
char *line;
char *prompt1 = "> ", *prompt2 = " > ";
@@ -929,9 +895,7 @@ read_actions (t)
/* worker function */
enum actionline_type
-validate_actionline (line, t)
- char **line;
- struct tracepoint *t;
+validate_actionline (char **line, struct tracepoint *t)
{
struct cmd_list_element *c;
struct expression *exp = NULL;
@@ -1049,8 +1013,7 @@ validate_actionline (line, t)
/* worker function */
void
-free_actions (t)
- struct tracepoint *t;
+free_actions (struct tracepoint *t)
{
struct action_line *line, *next;
@@ -1102,9 +1065,7 @@ static int memrange_cmp (const void *, const void *);
/* compare memranges for qsort */
static int
-memrange_cmp (va, vb)
- const void *va;
- const void *vb;
+memrange_cmp (const void *va, const void *vb)
{
const struct memrange *a = va, *b = vb;
@@ -1131,8 +1092,7 @@ memrange_cmp (va, vb)
/* Sort the memrange list using qsort, and merge adjacent memranges */
static void
-memrange_sortmerge (memranges)
- struct collection_list *memranges;
+memrange_sortmerge (struct collection_list *memranges)
{
int a, b;
@@ -1162,9 +1122,7 @@ memrange_sortmerge (memranges)
/* Add a register to a collection list */
static void
-add_register (collection, regno)
- struct collection_list *collection;
- unsigned int regno;
+add_register (struct collection_list *collection, unsigned int regno)
{
if (info_verbose)
printf_filtered ("collect register %d\n", regno);
@@ -1176,11 +1134,8 @@ add_register (collection, regno)
/* Add a memrange to a collection list */
static void
-add_memrange (memranges, type, base, len)
- struct collection_list *memranges;
- int type;
- bfd_signed_vma base;
- unsigned long len;
+add_memrange (struct collection_list *memranges, int type, bfd_signed_vma base,
+ unsigned long len)
{
if (info_verbose)
{
@@ -1209,11 +1164,8 @@ add_memrange (memranges, type, base, len)
/* Add a symbol to a collection list */
static void
-collect_symbol (collect, sym, frame_regno, frame_offset)
- struct collection_list *collect;
- struct symbol *sym;
- long frame_regno;
- long frame_offset;
+collect_symbol (struct collection_list *collect, struct symbol *sym,
+ long frame_regno, long frame_offset)
{
unsigned long len;
unsigned int reg;
@@ -1321,12 +1273,8 @@ collect_symbol (collect, sym, frame_regno, frame_offset)
/* Add all locals (or args) symbols to collection list */
static void
-add_local_symbols (collect, pc, frame_regno, frame_offset, type)
- struct collection_list *collect;
- CORE_ADDR pc;
- long frame_regno;
- long frame_offset;
- int type;
+add_local_symbols (struct collection_list *collect, CORE_ADDR pc,
+ long frame_regno, long frame_offset, int type)
{
struct symbol *sym;
struct block *block;
@@ -1379,8 +1327,7 @@ add_local_symbols (collect, pc, frame_regno, frame_offset, type)
/* worker function */
static void
-clear_collection_list (list)
- struct collection_list *list;
+clear_collection_list (struct collection_list *list)
{
int ndx;
@@ -1396,9 +1343,7 @@ clear_collection_list (list)
/* reduce a collection list to string form (for gdb protocol) */
static char **
-stringify_collection_list (list, string)
- struct collection_list *list;
- char *string;
+stringify_collection_list (struct collection_list *list, char *string)
{
char temp_buf[2048];
char tmp2[40];
@@ -1497,15 +1442,13 @@ stringify_collection_list (list, string)
}
static void
-free_actions_list_cleanup_wrapper (al)
- void *al;
+free_actions_list_cleanup_wrapper (void *al)
{
free_actions_list (al);
}
static void
-free_actions_list (actions_list)
- char **actions_list;
+free_actions_list (char **actions_list)
{
int ndx;
@@ -1520,10 +1463,8 @@ free_actions_list (actions_list)
/* render all actions into gdb protocol */
static void
-encode_actions (t, tdp_actions, stepping_actions)
- struct tracepoint *t;
- char ***tdp_actions;
- char ***stepping_actions;
+encode_actions (struct tracepoint *t, char ***tdp_actions,
+ char ***stepping_actions)
{
static char tdp_buff[2048], step_buff[2048];
char *action_exp;
@@ -1689,9 +1630,7 @@ encode_actions (t, tdp_actions, stepping_actions)
}
static void
-add_aexpr (collect, aexpr)
- struct collection_list *collect;
- struct agent_expr *aexpr;
+add_aexpr (struct collection_list *collect, struct agent_expr *aexpr)
{
if (collect->next_aexpr_elt >= collect->aexpr_listsize)
{
@@ -1758,9 +1697,7 @@ remote_set_transparent_ranges (void)
Tell target to start a new trace experiment. */
static void
-trace_start_command (args, from_tty)
- char *args;
- int from_tty;
+trace_start_command (char *args, int from_tty)
{ /* STUB_COMM MOSTLY_IMPLEMENTED */
struct tracepoint *t;
char buf[2048];
@@ -1860,9 +1797,7 @@ trace_start_command (args, from_tty)
/* tstop command */
static void
-trace_stop_command (args, from_tty)
- char *args;
- int from_tty;
+trace_stop_command (char *args, int from_tty)
{ /* STUB_COMM IS_IMPLEMENTED */
if (target_is_remote ())
{
@@ -1882,9 +1817,7 @@ unsigned long trace_running_p;
/* tstatus command */
static void
-trace_status_command (args, from_tty)
- char *args;
- int from_tty;
+trace_status_command (char *args, int from_tty)
{ /* STUB_COMM IS_IMPLEMENTED */
if (target_is_remote ())
{
@@ -2026,9 +1959,7 @@ finish_tfind_command (char *msg,
/* tfind command */
static void
-trace_find_command (args, from_tty)
- char *args;
- int from_tty;
+trace_find_command (char *args, int from_tty)
{ /* STUB_COMM PART_IMPLEMENTED */
/* this should only be called with a numeric argument */
int frameno = -1;
@@ -2069,36 +2000,28 @@ trace_find_command (args, from_tty)
/* tfind end */
static void
-trace_find_end_command (args, from_tty)
- char *args;
- int from_tty;
+trace_find_end_command (char *args, int from_tty)
{
trace_find_command ("-1", from_tty);
}
/* tfind none */
static void
-trace_find_none_command (args, from_tty)
- char *args;
- int from_tty;
+trace_find_none_command (char *args, int from_tty)
{
trace_find_command ("-1", from_tty);
}
/* tfind start */
static void
-trace_find_start_command (args, from_tty)
- char *args;
- int from_tty;
+trace_find_start_command (char *args, int from_tty)
{
trace_find_command ("0", from_tty);
}
/* tfind pc command */
static void
-trace_find_pc_command (args, from_tty)
- char *args;
- int from_tty;
+trace_find_pc_command (char *args, int from_tty)
{ /* STUB_COMM PART_IMPLEMENTED */
CORE_ADDR pc;
char tmp[40];
@@ -2120,9 +2043,7 @@ trace_find_pc_command (args, from_tty)
/* tfind tracepoint command */
static void
-trace_find_tracepoint_command (args, from_tty)
- char *args;
- int from_tty;
+trace_find_tracepoint_command (char *args, int from_tty)
{ /* STUB_COMM PART_IMPLEMENTED */
int tdp;
@@ -2152,9 +2073,7 @@ trace_find_tracepoint_command (args, from_tty)
corresponding to a source line OTHER THAN THE CURRENT ONE. */
static void
-trace_find_line_command (args, from_tty)
- char *args;
- int from_tty;
+trace_find_line_command (char *args, int from_tty)
{ /* STUB_COMM PART_IMPLEMENTED */
static CORE_ADDR start_pc, end_pc;
struct symtabs_and_lines sals;
@@ -2242,9 +2161,7 @@ trace_find_line_command (args, from_tty)
/* tfind range command */
static void
-trace_find_range_command (args, from_tty)
- char *args;
- int from_tty;
+trace_find_range_command (char *args, int from_tty)
{
static CORE_ADDR start, stop;
char start_str[40], stop_str[40];
@@ -2283,9 +2200,7 @@ trace_find_range_command (args, from_tty)
/* tfind outside command */
static void
-trace_find_outside_command (args, from_tty)
- char *args;
- int from_tty;
+trace_find_outside_command (char *args, int from_tty)
{
CORE_ADDR start, stop;
char start_str[40], stop_str[40];
@@ -2324,9 +2239,7 @@ trace_find_outside_command (args, from_tty)
/* save-tracepoints command */
static void
-tracepoint_save_command (args, from_tty)
- char *args;
- int from_tty;
+tracepoint_save_command (char *args, int from_tty)
{
struct tracepoint *tp;
struct action_line *line;
@@ -2395,9 +2308,7 @@ tracepoint_save_command (args, from_tty)
/* info scope command: list the locals for a scope. */
static void
-scope_info (args, from_tty)
- char *args;
- int from_tty;
+scope_info (char *args, int from_tty)
{
struct symtabs_and_lines sals;
struct symbol *sym;
@@ -2534,17 +2445,14 @@ scope_info (args, from_tty)
/* worker function (cleanup) */
static void
-replace_comma (comma)
- char *comma;
+replace_comma (char *comma)
{
*comma = ',';
}
/* tdump command */
static void
-trace_dump_command (args, from_tty)
- char *args;
- int from_tty;
+trace_dump_command (char *args, int from_tty)
{
struct tracepoint *t;
struct action_line *action;
@@ -2662,10 +2570,7 @@ trace_dump_command (args, from_tty)
static const char hexchars[] = "0123456789abcdef";
static unsigned char *
-mem2hex (mem, buf, count)
- unsigned char *mem;
- unsigned char *buf;
- int count;
+mem2hex (unsigned char *mem, unsigned char *buf, int count)
{
unsigned char ch;
@@ -2683,7 +2588,7 @@ mem2hex (mem, buf, count)
}
int
-get_traceframe_number ()
+get_traceframe_number (void)
{
return traceframe_number;
}
@@ -2691,7 +2596,7 @@ get_traceframe_number ()
/* module initialization */
void
-_initialize_tracepoint ()
+_initialize_tracepoint (void)
{
tracepoint_chain = 0;
tracepoint_count = 0;
diff --git a/gdb/tui/tui-file.c b/gdb/tui/tui-file.c
index 1702db3..34591de 100644
--- a/gdb/tui/tui-file.c
+++ b/gdb/tui/tui-file.c
@@ -66,7 +66,7 @@ static struct ui_file *tui_file_new (void);
static int tui_file_magic;
static struct ui_file *
-tui_file_new ()
+tui_file_new (void)
{
struct tui_stream *tui = xmalloc (sizeof (struct tui_stream));
struct ui_file *file = ui_file_new ();
@@ -81,8 +81,7 @@ tui_file_new ()
}
static void
-tui_file_delete (file)
- struct ui_file *file;
+tui_file_delete (struct ui_file *file)
{
struct tui_stream *tmpstream = ui_file_data (file);
if (tmpstream->ts_magic != &tui_file_magic)
@@ -96,8 +95,7 @@ tui_file_delete (file)
}
struct ui_file *
-tui_fileopen (stream)
- FILE *stream;
+tui_fileopen (FILE *stream)
{
struct ui_file *file = tui_file_new ();
struct tui_stream *tmpstream = ui_file_data (file);
@@ -109,8 +107,7 @@ tui_fileopen (stream)
}
struct ui_file *
-tui_sfileopen (n)
- int n;
+tui_sfileopen (int n)
{
struct ui_file *file = tui_file_new ();
struct tui_stream *tmpstream = ui_file_data (file);
@@ -130,8 +127,7 @@ tui_sfileopen (n)
}
static int
-tui_file_isatty (file)
- struct ui_file *file;
+tui_file_isatty (struct ui_file *file)
{
struct tui_stream *stream = ui_file_data (file);
if (stream->ts_magic != &tui_file_magic)
@@ -143,8 +139,7 @@ tui_file_isatty (file)
}
static void
-tui_file_rewind (file)
- struct ui_file *file;
+tui_file_rewind (struct ui_file *file)
{
struct tui_stream *stream = ui_file_data (file);
if (stream->ts_magic != &tui_file_magic)
@@ -174,9 +169,7 @@ tui_file_put (struct ui_file *file,
/* FIXME: Should be broken up and moved to a TUI specific file. */
void
-tui_file_fputs (linebuffer, file)
- const char *linebuffer;
- struct ui_file *file;
+tui_file_fputs (const char *linebuffer, struct ui_file *file)
{
struct tui_stream *stream = ui_file_data (file);
#if defined(TUI)
@@ -281,8 +274,7 @@ tui_file_adjust_strbuf (int n, struct ui_file *file)
}
static void
-tui_file_flush (file)
- struct ui_file *file;
+tui_file_flush (struct ui_file *file)
{
struct tui_stream *stream = ui_file_data (file);
if (stream->ts_magic != &tui_file_magic)
diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c
index 67c3114..9f83119 100644
--- a/gdb/tui/tui.c
+++ b/gdb/tui/tui.c
@@ -441,7 +441,7 @@ tui_vSelectSourceSymtab (args)
** Function to initialize gdb commands, for tui window manipulation.
*/
void
-_initialize_tui ()
+_initialize_tui (void)
{
#if 0
if (tui_version)
diff --git a/gdb/tui/tuiLayout.c b/gdb/tui/tuiLayout.c
index 8191199..f394205 100644
--- a/gdb/tui/tuiLayout.c
+++ b/gdb/tui/tuiLayout.c
@@ -465,7 +465,7 @@ tuiDefaultWinViewportHeight (type, layout)
** manipulation.
*/
void
-_initialize_tuiLayout ()
+_initialize_tuiLayout (void)
{
if (tui_version)
{
diff --git a/gdb/tui/tuiRegs.c b/gdb/tui/tuiRegs.c
index 1efadd0..b0f55ef 100644
--- a/gdb/tui/tuiRegs.c
+++ b/gdb/tui/tuiRegs.c
@@ -586,7 +586,7 @@ tuiToggleFloatRegs ()
void
-_initialize_tuiRegs ()
+_initialize_tuiRegs (void)
{
if (tui_version && xdb_commands)
{
diff --git a/gdb/tui/tuiStack.c b/gdb/tui/tuiStack.c
index c0f51ef..a8f4ca8 100644
--- a/gdb/tui/tuiStack.c
+++ b/gdb/tui/tuiStack.c
@@ -475,7 +475,7 @@ tui_vShowFrameInfo (args)
** Function to initialize gdb commands, for tui window stack manipulation.
*/
void
-_initialize_tuiStack ()
+_initialize_tuiStack (void)
{
if (tui_version)
{
diff --git a/gdb/tui/tuiWin.c b/gdb/tui/tuiWin.c
index 669576e..fab6d3f 100644
--- a/gdb/tui/tuiWin.c
+++ b/gdb/tui/tuiWin.c
@@ -62,7 +62,7 @@ static void _parseScrollingArgs (char *, TuiWinInfoPtr *, int *);
** Function to initialize gdb commands, for tui window manipulation.
*/
void
-_initialize_tuiWin ()
+_initialize_tuiWin (void)
{
if (tui_version)
{
diff --git a/gdb/typeprint.c b/gdb/typeprint.c
index 249f213..7645d9b 100644
--- a/gdb/typeprint.c
+++ b/gdb/typeprint.c
@@ -57,11 +57,8 @@ static void whatis_exp (char *, int);
If SHOW is negative, we never show the details of elements' types. */
void
-type_print (type, varstring, stream, show)
- struct type *type;
- char *varstring;
- struct ui_file *stream;
- int show;
+type_print (struct type *type, char *varstring, struct ui_file *stream,
+ int show)
{
LA_PRINT_TYPE (type, varstring, stream, show, 0);
}
@@ -70,9 +67,7 @@ type_print (type, varstring, stream, show)
show is passed to type_print. */
static void
-whatis_exp (exp, show)
- char *exp;
- int show;
+whatis_exp (char *exp, int show)
{
struct expression *expr;
register value_ptr val;
@@ -134,9 +129,7 @@ whatis_exp (exp, show)
/* ARGSUSED */
static void
-whatis_command (exp, from_tty)
- char *exp;
- int from_tty;
+whatis_command (char *exp, int from_tty)
{
/* Most of the time users do not want to see all the fields
in a structure. If they do they can use the "ptype" command.
@@ -147,8 +140,7 @@ whatis_command (exp, from_tty)
/* Simple subroutine for ptype_command. */
static struct type *
-ptype_eval (exp)
- struct expression *exp;
+ptype_eval (struct expression *exp)
{
if (exp->elts[0].opcode == OP_TYPE)
{
@@ -164,9 +156,7 @@ ptype_eval (exp)
/* ARGSUSED */
static void
-ptype_command (typename, from_tty)
- char *typename;
- int from_tty;
+ptype_command (char *typename, int from_tty)
{
register struct type *type;
struct expression *expr;
@@ -212,10 +202,7 @@ ptype_command (typename, from_tty)
that come from the inferior in target byte order and target size. */
void
-print_type_scalar (type, val, stream)
- struct type *type;
- LONGEST val;
- struct ui_file *stream;
+print_type_scalar (struct type *type, LONGEST val, struct ui_file *stream)
{
unsigned int i;
unsigned len;
@@ -288,9 +275,7 @@ print_type_scalar (type, val, stream)
and whatis_command(). */
void
-maintenance_print_type (typename, from_tty)
- char *typename;
- int from_tty;
+maintenance_print_type (char *typename, int from_tty)
{
register value_ptr val;
register struct type *type;
@@ -323,7 +308,7 @@ maintenance_print_type (typename, from_tty)
void
-_initialize_typeprint ()
+_initialize_typeprint (void)
{
add_com ("ptype", class_vars, ptype_command,
diff --git a/gdb/ui-file.c b/gdb/ui-file.c
index 2861e03..e91838c 100644
--- a/gdb/ui-file.c
+++ b/gdb/ui-file.c
@@ -50,7 +50,7 @@ struct ui_file
int ui_file_magic;
struct ui_file *
-ui_file_new ()
+ui_file_new (void)
{
struct ui_file *file = xmalloc (sizeof (struct ui_file));
file->magic = &ui_file_magic;
@@ -65,23 +65,20 @@ ui_file_new ()
}
void
-ui_file_delete (file)
- struct ui_file *file;
+ui_file_delete (struct ui_file *file)
{
file->to_delete (file);
free (file);
}
static int
-null_file_isatty (file)
- struct ui_file *file;
+null_file_isatty (struct ui_file *file)
{
return 0;
}
static void
-null_file_rewind (file)
- struct ui_file *file;
+null_file_rewind (struct ui_file *file)
{
return;
}
@@ -95,8 +92,7 @@ null_file_put (struct ui_file *file,
}
static void
-null_file_flush (file)
- struct ui_file *file;
+null_file_flush (struct ui_file *file)
{
return;
}
@@ -130,9 +126,7 @@ null_file_write (struct ui_file *file,
}
static void
-null_file_fputs (buf, file)
- const char *buf;
- struct ui_file *file;
+null_file_fputs (const char *buf, struct ui_file *file)
{
if (file->to_write == null_file_write)
/* Both the write and fputs methods are null. Discard the
@@ -146,15 +140,13 @@ null_file_fputs (buf, file)
}
static void
-null_file_delete (file)
- struct ui_file *file;
+null_file_delete (struct ui_file *file)
{
return;
}
void *
-ui_file_data (file)
- struct ui_file *file;
+ui_file_data (struct ui_file *file)
{
if (file->magic != &ui_file_magic)
internal_error ("ui_file_data: bad magic number");
@@ -162,22 +154,19 @@ ui_file_data (file)
}
void
-gdb_flush (file)
- struct ui_file *file;
+gdb_flush (struct ui_file *file)
{
file->to_flush (file);
}
int
-ui_file_isatty (file)
- struct ui_file *file;
+ui_file_isatty (struct ui_file *file)
{
return file->to_isatty (file);
}
void
-ui_file_rewind (file)
- struct ui_file *file;
+ui_file_rewind (struct ui_file *file)
{
file->to_rewind (file);
}
@@ -199,41 +188,31 @@ ui_file_write (struct ui_file *file,
}
void
-fputs_unfiltered (buf, file)
- const char *buf;
- struct ui_file *file;
+fputs_unfiltered (const char *buf, struct ui_file *file)
{
file->to_fputs (buf, file);
}
void
-set_ui_file_flush (file, flush)
- struct ui_file *file;
- ui_file_flush_ftype *flush;
+set_ui_file_flush (struct ui_file *file, ui_file_flush_ftype *flush)
{
file->to_flush = flush;
}
void
-set_ui_file_isatty (file, isatty)
- struct ui_file *file;
- ui_file_isatty_ftype *isatty;
+set_ui_file_isatty (struct ui_file *file, ui_file_isatty_ftype *isatty)
{
file->to_isatty = isatty;
}
void
-set_ui_file_rewind (file, rewind)
- struct ui_file *file;
- ui_file_rewind_ftype *rewind;
+set_ui_file_rewind (struct ui_file *file, ui_file_rewind_ftype *rewind)
{
file->to_rewind = rewind;
}
void
-set_ui_file_put (file, put)
- struct ui_file *file;
- ui_file_put_ftype *put;
+set_ui_file_put (struct ui_file *file, ui_file_put_ftype *put)
{
file->to_put = put;
}
@@ -246,18 +225,14 @@ set_ui_file_write (struct ui_file *file,
}
void
-set_ui_file_fputs (file, fputs)
- struct ui_file *file;
- ui_file_fputs_ftype *fputs;
+set_ui_file_fputs (struct ui_file *file, ui_file_fputs_ftype *fputs)
{
file->to_fputs = fputs;
}
void
-set_ui_file_data (file, data, delete)
- struct ui_file *file;
- void *data;
- ui_file_delete_ftype *delete;
+set_ui_file_data (struct ui_file *file, void *data,
+ ui_file_delete_ftype *delete)
{
file->to_data = data;
file->to_delete = delete;
@@ -420,9 +395,7 @@ struct stdio_file
};
static struct ui_file *
-stdio_file_new (file, close_p)
- FILE *file;
- int close_p;
+stdio_file_new (FILE *file, int close_p)
{
struct ui_file *ui_file = ui_file_new ();
struct stdio_file *stdio = xmalloc (sizeof (struct stdio_file));
@@ -438,8 +411,7 @@ stdio_file_new (file, close_p)
}
static void
-stdio_file_delete (file)
- struct ui_file *file;
+stdio_file_delete (struct ui_file *file)
{
struct stdio_file *stdio = ui_file_data (file);
if (stdio->magic != &stdio_file_magic)
@@ -452,8 +424,7 @@ stdio_file_delete (file)
}
static void
-stdio_file_flush (file)
- struct ui_file *file;
+stdio_file_flush (struct ui_file *file)
{
struct stdio_file *stdio = ui_file_data (file);
if (stdio->magic != &stdio_file_magic)
@@ -471,9 +442,7 @@ stdio_file_write (struct ui_file *file, const char *buf, long length_buf)
}
static void
-stdio_file_fputs (linebuffer, file)
- const char *linebuffer;
- struct ui_file *file;
+stdio_file_fputs (const char *linebuffer, struct ui_file *file)
{
struct stdio_file *stdio = ui_file_data (file);
if (stdio->magic != &stdio_file_magic)
@@ -482,8 +451,7 @@ stdio_file_fputs (linebuffer, file)
}
static int
-stdio_file_isatty (file)
- struct ui_file *file;
+stdio_file_isatty (struct ui_file *file)
{
struct stdio_file *stdio = ui_file_data (file);
if (stdio->magic != &stdio_file_magic)
@@ -494,16 +462,13 @@ stdio_file_isatty (file)
/* Like fdopen(). Create a ui_file from a previously opened FILE. */
struct ui_file *
-stdio_fileopen (file)
- FILE *file;
+stdio_fileopen (FILE *file)
{
return stdio_file_new (file, 0);
}
struct ui_file *
-gdb_fopen (name, mode)
- char *name;
- char *mode;
+gdb_fopen (char *name, char *mode)
{
FILE *f = fopen (name, mode);
if (f == NULL)
diff --git a/gdb/ui-out.c b/gdb/ui-out.c
index f94cd60..cf56a0d 100644
--- a/gdb/ui-out.c
+++ b/gdb/ui-out.c
@@ -187,10 +187,7 @@ static void init_ui_out_state (struct ui_out *uiout);
/* Mark beginning of a table */
void
-ui_out_table_begin (uiout, nbrofcols, tblid)
- struct ui_out *uiout;
- int nbrofcols;
- char *tblid;
+ui_out_table_begin (struct ui_out *uiout, int nbrofcols, char *tblid)
{
if (uiout->table_flag)
internal_error ("gdb/ui_out.c: tables cannot be nested; table_begin found before \
@@ -208,8 +205,7 @@ previous table_end.");
}
void
-ui_out_table_body (uiout)
- struct ui_out *uiout;
+ui_out_table_body (struct ui_out *uiout)
{
if (!uiout->table_flag)
internal_error ("gdb/ui_out.c: table_body outside a table is not valid; it must be \
@@ -228,8 +224,7 @@ columns.");
}
void
-ui_out_table_end (uiout)
- struct ui_out *uiout;
+ui_out_table_end (struct ui_out *uiout)
{
if (!uiout->table_flag)
internal_error ("gdb/ui_out.c: misplaced table_end or missing table_begin.");
@@ -245,11 +240,8 @@ ui_out_table_end (uiout)
}
void
-ui_out_table_header (uiout, width, alignment, colhdr)
- struct ui_out *uiout;
- int width;
- enum ui_align alignment;
- char *colhdr;
+ui_out_table_header (struct ui_out *uiout, int width, enum ui_align alignment,
+ char *colhdr)
{
if (!uiout->table_flag || uiout->body_flag)
internal_error ("ui_out: table header must be specified after table_begin \
@@ -261,9 +253,7 @@ and before table_body.");
}
void
-ui_out_list_begin (uiout, lstid)
- struct ui_out *uiout;
- char *lstid;
+ui_out_list_begin (struct ui_out *uiout, char *lstid)
{
if (uiout->table_flag && !uiout->body_flag)
internal_error ("ui_out: table header or table_body expected; lists must be \
@@ -281,8 +271,7 @@ nested.");
}
void
-ui_out_list_end (uiout)
- struct ui_out *uiout;
+ui_out_list_end (struct ui_out *uiout)
{
if (!uiout->list_flag)
internal_error ("ui_out: misplaced list_end; there is no list to be closed.");
@@ -293,10 +282,7 @@ ui_out_list_end (uiout)
}
void
-ui_out_field_int (uiout, fldname, value)
- struct ui_out *uiout;
- char *fldname;
- int value;
+ui_out_field_int (struct ui_out *uiout, char *fldname, int value)
{
int fldno;
int width;
@@ -313,10 +299,7 @@ ui_out_field_int (uiout, fldname, value)
}
void
-ui_out_field_core_addr (uiout, fldname, address)
- struct ui_out *uiout;
- char *fldname;
- CORE_ADDR address;
+ui_out_field_core_addr (struct ui_out *uiout, char *fldname, CORE_ADDR address)
{
char addstr[20];
@@ -328,10 +311,7 @@ ui_out_field_core_addr (uiout, fldname, address)
}
void
-ui_out_field_stream (uiout, fldname, buf)
- struct ui_out *uiout;
- char *fldname;
- struct ui_stream *buf;
+ui_out_field_stream (struct ui_out *uiout, char *fldname, struct ui_stream *buf)
{
long length;
char *buffer = ui_file_xstrdup (buf->stream, &length);
@@ -347,9 +327,7 @@ ui_out_field_stream (uiout, fldname, buf)
/* used to ommit a field */
void
-ui_out_field_skip (uiout, fldname)
- struct ui_out *uiout;
- char *fldname;
+ui_out_field_skip (struct ui_out *uiout, char *fldname)
{
int fldno;
int width;
@@ -409,17 +387,13 @@ ui_out_field_fmt (struct ui_out *uiout, char *fldname, char *format,...)
}
void
-ui_out_spaces (uiout, numspaces)
- struct ui_out *uiout;
- int numspaces;
+ui_out_spaces (struct ui_out *uiout, int numspaces)
{
uo_spaces (uiout, numspaces);
}
void
-ui_out_text (uiout, string)
- struct ui_out *uiout;
- char *string;
+ui_out_text (struct ui_out *uiout, char *string)
{
uo_text (uiout, string);
}
@@ -437,8 +411,7 @@ ui_out_message (struct ui_out *uiout, int verbosity, char *format,...)
}
struct ui_stream *
-ui_out_stream_new (uiout)
- struct ui_out *uiout;
+ui_out_stream_new (struct ui_out *uiout)
{
struct ui_stream *tempbuf;
@@ -449,8 +422,7 @@ ui_out_stream_new (uiout)
}
void
-ui_out_stream_delete (buf)
- struct ui_stream *buf;
+ui_out_stream_delete (struct ui_stream *buf)
{
ui_file_delete (buf->stream);
free (buf);
@@ -470,25 +442,20 @@ make_cleanup_ui_out_stream_delete (struct ui_stream *buf)
void
-ui_out_wrap_hint (uiout, identstring)
- struct ui_out *uiout;
- char *identstring;
+ui_out_wrap_hint (struct ui_out *uiout, char *identstring)
{
uo_wrap_hint (uiout, identstring);
}
void
-ui_out_flush (uiout)
- struct ui_out *uiout;
+ui_out_flush (struct ui_out *uiout)
{
uo_flush (uiout);
}
/* set the flags specified by the mask given */
int
-ui_out_set_flags (uiout, mask)
- struct ui_out *uiout;
- int mask;
+ui_out_set_flags (struct ui_out *uiout, int mask)
{
int oldflags = uiout->flags;
@@ -499,9 +466,7 @@ ui_out_set_flags (uiout, mask)
/* clear the flags specified by the mask given */
int
-ui_out_clear_flags (uiout, mask)
- struct ui_out *uiout;
- int mask;
+ui_out_clear_flags (struct ui_out *uiout, int mask)
{
int oldflags = uiout->flags;
@@ -512,9 +477,7 @@ ui_out_clear_flags (uiout, mask)
/* test the flags against the mask given */
int
-ui_out_test_flags (uiout, mask)
- struct ui_out *uiout;
- int mask;
+ui_out_test_flags (struct ui_out *uiout, int mask)
{
return (uiout->flags & mask);
}
@@ -523,8 +486,7 @@ ui_out_test_flags (uiout, mask)
'set verbositylevel' command */
int
-ui_out_get_verblvl (uiout)
- struct ui_out *uiout;
+ui_out_get_verblvl (struct ui_out *uiout)
{
/* FIXME: not implemented yet */
return 0;
@@ -532,54 +494,42 @@ ui_out_get_verblvl (uiout)
#if 0
void
-ui_out_result_begin (uiout, class)
- struct ui_out *uiout;
- char *class;
+ui_out_result_begin (struct ui_out *uiout, char *class)
{
}
void
-ui_out_result_end (uiout)
- struct ui_out *uiout;
+ui_out_result_end (struct ui_out *uiout)
{
}
void
-ui_out_info_begin (uiout, class)
- struct ui_out *uiout;
- char *class;
+ui_out_info_begin (struct ui_out *uiout, char *class)
{
}
void
-ui_out_info_end (uiout)
- struct ui_out *uiout;
+ui_out_info_end (struct ui_out *uiout)
{
}
void
-ui_out_notify_begin (uiout, class)
- struct ui_out *uiout;
- char *class;
+ui_out_notify_begin (struct ui_out *uiout, char *class)
{
}
void
-ui_out_notify_end (uiout)
- struct ui_out *uiout;
+ui_out_notify_end (struct ui_out *uiout)
{
}
void
-ui_out_error_begin (uiout, class)
- struct ui_out *uiout;
- char *class;
+ui_out_error_begin (struct ui_out *uiout, char *class)
{
}
void
-ui_out_error_end (uiout)
- struct ui_out *uiout;
+ui_out_error_end (struct ui_out *uiout)
{
}
#endif
@@ -603,67 +553,45 @@ gdb_query (uiout, qflags, qprompt)
/* default gdb-out hook functions */
static void
-default_table_begin (uiout, nbrofcols, tblid)
- struct ui_out *uiout;
- int nbrofcols;
- char *tblid;
+default_table_begin (struct ui_out *uiout, int nbrofcols, char *tblid)
{
}
static void
-default_table_body (uiout)
- struct ui_out *uiout;
+default_table_body (struct ui_out *uiout)
{
}
static void
-default_table_end (uiout)
- struct ui_out *uiout;
+default_table_end (struct ui_out *uiout)
{
}
static void
-default_table_header (uiout, width, alignment, colhdr)
- struct ui_out *uiout;
- int width;
- enum ui_align alignment;
- char *colhdr;
+default_table_header (struct ui_out *uiout, int width, enum ui_align alignment,
+ char *colhdr)
{
}
static void
-default_list_begin (uiout, list_flag, lstid)
- struct ui_out *uiout;
- int list_flag;
- char *lstid;
+default_list_begin (struct ui_out *uiout, int list_flag, char *lstid)
{
}
static void
-default_list_end (uiout, list_flag)
- struct ui_out *uiout;
- int list_flag;
+default_list_end (struct ui_out *uiout, int list_flag)
{
}
static void
-default_field_int (uiout, fldno, width, align, fldname, value)
- struct ui_out *uiout;
- int fldno;
- int width;
- enum ui_align align;
- char *fldname;
- int value;
+default_field_int (struct ui_out *uiout, int fldno, int width,
+ enum ui_align align, char *fldname, int value)
{
}
static void
-default_field_skip (uiout, fldno, width, align, fldname)
- struct ui_out *uiout;
- int fldno;
- int width;
- enum ui_align align;
- char *fldname;
+default_field_skip (struct ui_out *uiout, int fldno, int width,
+ enum ui_align align, char *fldname)
{
}
@@ -678,50 +606,35 @@ default_field_string (struct ui_out *uiout,
}
static void
-default_field_fmt (uiout, fldno, width, align, fldname, format, args)
- struct ui_out *uiout;
- int fldno;
- int width;
- enum ui_align align;
- char *fldname;
- char *format;
- va_list args;
+default_field_fmt (struct ui_out *uiout, int fldno, int width,
+ enum ui_align align, char *fldname, char *format,
+ va_list args)
{
}
static void
-default_spaces (uiout, numspaces)
- struct ui_out *uiout;
- int numspaces;
+default_spaces (struct ui_out *uiout, int numspaces)
{
}
static void
-default_text (uiout, string)
- struct ui_out *uiout;
- char *string;
+default_text (struct ui_out *uiout, char *string)
{
}
static void
-default_message (uiout, verbosity, format, args)
- struct ui_out *uiout;
- int verbosity;
- char *format;
- va_list args;
+default_message (struct ui_out *uiout, int verbosity, char *format,
+ va_list args)
{
}
static void
-default_wrap_hint (uiout, identstring)
- struct ui_out *uiout;
- char *identstring;
+default_wrap_hint (struct ui_out *uiout, char *identstring)
{
}
static void
-default_flush (uiout)
- struct ui_out *uiout;
+default_flush (struct ui_out *uiout)
{
}
@@ -853,8 +766,7 @@ uo_flush (struct ui_out *uiout)
/* list of column headers manipulation routines */
static void
-clear_header_list (uiout)
- struct ui_out *uiout;
+clear_header_list (struct ui_out *uiout)
{
while (uiout->headerfirst != NULL)
{
@@ -964,8 +876,7 @@ verify_field_alignment (struct ui_out *uiout,
/* access to ui_out format private members */
void
-ui_out_get_field_separator (uiout)
- struct ui_out *uiout;
+ui_out_get_field_separator (struct ui_out *uiout)
{
}
@@ -1001,7 +912,7 @@ ui_out_new (struct ui_out_impl *impl,
/* standard gdb initialization hook */
void
-_initialize_ui_out ()
+_initialize_ui_out (void)
{
/* nothing needs to be done */
}
diff --git a/gdb/ultra3-nat.c b/gdb/ultra3-nat.c
index f70e26a..1ba60ad 100644
--- a/gdb/ultra3-nat.c
+++ b/gdb/ultra3-nat.c
@@ -64,8 +64,7 @@ struct ptrace_user pt_struct;
*/
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
register int i, j, ret_val = 0;
char buf[128];
@@ -142,8 +141,7 @@ fetch_inferior_registers (regno)
*/
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
register unsigned int regaddr;
char buf[80];
@@ -225,8 +223,7 @@ store_inferior_registers (regno)
* NOTE: Assumes AMD's Binary Compatibility Standard for ptrace().
*/
static void
-fetch_register (regno)
- int regno;
+fetch_register (int regno)
{
char buf[128];
int val;
@@ -301,9 +298,7 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
* will cause ptrace() to fail is returned.
*/
CORE_ADDR
-register_addr (regno, blockend)
- int regno;
- CORE_ADDR blockend;
+register_addr (int regno, CORE_ADDR blockend)
{
if ((regno >= LR0_REGNUM) && (regno < LR0_REGNUM + 128))
{
@@ -361,7 +356,7 @@ static struct core_fns ultra3_core_fns =
};
void
-_initialize_core_ultra3 ()
+_initialize_core_ultra3 (void)
{
add_core_fns (&ultra3_core_fns);
}
diff --git a/gdb/ultra3-xdep.c b/gdb/ultra3-xdep.c
index 83aa770..c1b91c4 100644
--- a/gdb/ultra3-xdep.c
+++ b/gdb/ultra3-xdep.c
@@ -43,14 +43,13 @@
/* FIXME: Kludge this for now. It really should be system call. */
int
-getpagesize ()
+getpagesize (void)
{
return (8192);
}
/* FIXME: Fake out the fcntl() call, which we don't have. */
-fcntl (fd, cmd, arg)
- int fd, cmd, arg;
+fcntl (int fd, int cmd, int arg)
{
switch (cmd)
@@ -71,21 +70,19 @@ fcntl (fd, cmd, arg)
static int _SigMask;
#define sigbit(s) (1L << ((s)-1))
-init_SigMask ()
+init_SigMask (void)
{
/* Taken from the sym1 kernel in machdep.c:startup() */
_SigMask = sigbit (SIGTSTP) | sigbit (SIGTTOU) | sigbit (SIGTTIN) |
sigbit (SIGCHLD) | sigbit (SIGTINT);
}
-sigmask (signo)
- int signo;
+sigmask (int signo)
{
return (1 << (signo - 1));
}
-sigsetmask (sigmask)
- unsigned int sigmask;
+sigsetmask (unsigned int sigmask)
{
int i, mask = 1;
int lastmask = _SigMask;
@@ -110,8 +107,7 @@ sigsetmask (sigmask)
return (lastmask);
}
-sigblock (sigmask)
- unsigned int sigmask;
+sigblock (unsigned int sigmask)
{
int i, mask = 1;
int lastmask = _SigMask;
@@ -133,7 +129,7 @@ sigblock (sigmask)
/* Initialization code for this module. */
void
-_initialize_ultra3 ()
+_initialize_ultra3 (void)
{
#ifdef SYM1
init_SigMask ();
diff --git a/gdb/umax-xdep.c b/gdb/umax-xdep.c
index 75e088c..b8a3deb 100644
--- a/gdb/umax-xdep.c
+++ b/gdb/umax-xdep.c
@@ -40,9 +40,7 @@
This code would be in corefile.c if it weren't machine-dependent. */
void
-core_file_command (filename, from_tty)
- char *filename;
- int from_tty;
+core_file_command (char *filename, int from_tty)
{
int val;
diff --git a/gdb/utils.c b/gdb/utils.c
index a1214da..e3e88df 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -189,15 +189,13 @@ make_exec_error_cleanup (make_cleanup_ftype *function, void *arg)
}
static void
-do_freeargv (arg)
- void *arg;
+do_freeargv (void *arg)
{
freeargv ((char **) arg);
}
struct cleanup *
-make_cleanup_freeargv (arg)
- char **arg;
+make_cleanup_freeargv (char **arg)
{
return make_my_cleanup (&cleanup_chain, do_freeargv, arg);
}
@@ -259,44 +257,38 @@ make_my_cleanup (struct cleanup **pmy_chain, make_cleanup_ftype *function,
until we get back to the point OLD_CHAIN in the cleanup_chain. */
void
-do_cleanups (old_chain)
- register struct cleanup *old_chain;
+do_cleanups (register struct cleanup *old_chain)
{
do_my_cleanups (&cleanup_chain, old_chain);
}
void
-do_final_cleanups (old_chain)
- register struct cleanup *old_chain;
+do_final_cleanups (register struct cleanup *old_chain)
{
do_my_cleanups (&final_cleanup_chain, old_chain);
}
void
-do_run_cleanups (old_chain)
- register struct cleanup *old_chain;
+do_run_cleanups (register struct cleanup *old_chain)
{
do_my_cleanups (&run_cleanup_chain, old_chain);
}
void
-do_exec_cleanups (old_chain)
- register struct cleanup *old_chain;
+do_exec_cleanups (register struct cleanup *old_chain)
{
do_my_cleanups (&exec_cleanup_chain, old_chain);
}
void
-do_exec_error_cleanups (old_chain)
- register struct cleanup *old_chain;
+do_exec_error_cleanups (register struct cleanup *old_chain)
{
do_my_cleanups (&exec_error_cleanup_chain, old_chain);
}
void
-do_my_cleanups (pmy_chain, old_chain)
- register struct cleanup **pmy_chain;
- register struct cleanup *old_chain;
+do_my_cleanups (register struct cleanup **pmy_chain,
+ register struct cleanup *old_chain)
{
register struct cleanup *ptr;
while ((ptr = *pmy_chain) != old_chain)
@@ -311,30 +303,26 @@ do_my_cleanups (pmy_chain, old_chain)
until we get back to the point OLD_CHAIN in the cleanup_chain. */
void
-discard_cleanups (old_chain)
- register struct cleanup *old_chain;
+discard_cleanups (register struct cleanup *old_chain)
{
discard_my_cleanups (&cleanup_chain, old_chain);
}
void
-discard_final_cleanups (old_chain)
- register struct cleanup *old_chain;
+discard_final_cleanups (register struct cleanup *old_chain)
{
discard_my_cleanups (&final_cleanup_chain, old_chain);
}
void
-discard_exec_error_cleanups (old_chain)
- register struct cleanup *old_chain;
+discard_exec_error_cleanups (register struct cleanup *old_chain)
{
discard_my_cleanups (&exec_error_cleanup_chain, old_chain);
}
void
-discard_my_cleanups (pmy_chain, old_chain)
- register struct cleanup **pmy_chain;
- register struct cleanup *old_chain;
+discard_my_cleanups (register struct cleanup **pmy_chain,
+ register struct cleanup *old_chain)
{
register struct cleanup *ptr;
while ((ptr = *pmy_chain) != old_chain)
@@ -346,20 +334,19 @@ discard_my_cleanups (pmy_chain, old_chain)
/* Set the cleanup_chain to 0, and return the old cleanup chain. */
struct cleanup *
-save_cleanups ()
+save_cleanups (void)
{
return save_my_cleanups (&cleanup_chain);
}
struct cleanup *
-save_final_cleanups ()
+save_final_cleanups (void)
{
return save_my_cleanups (&final_cleanup_chain);
}
struct cleanup *
-save_my_cleanups (pmy_chain)
- struct cleanup **pmy_chain;
+save_my_cleanups (struct cleanup **pmy_chain)
{
struct cleanup *old_chain = *pmy_chain;
@@ -369,23 +356,19 @@ save_my_cleanups (pmy_chain)
/* Restore the cleanup chain from a previously saved chain. */
void
-restore_cleanups (chain)
- struct cleanup *chain;
+restore_cleanups (struct cleanup *chain)
{
restore_my_cleanups (&cleanup_chain, chain);
}
void
-restore_final_cleanups (chain)
- struct cleanup *chain;
+restore_final_cleanups (struct cleanup *chain)
{
restore_my_cleanups (&final_cleanup_chain, chain);
}
void
-restore_my_cleanups (pmy_chain, chain)
- struct cleanup **pmy_chain;
- struct cleanup *chain;
+restore_my_cleanups (struct cleanup **pmy_chain, struct cleanup *chain)
{
*pmy_chain = chain;
}
@@ -449,7 +432,7 @@ add_continuation (continuation_hook, arg_list)
and do the continuations from there on, instead of using the
global beginning of list as our iteration pointer.*/
void
-do_all_continuations ()
+do_all_continuations (void)
{
struct continuation *continuation_ptr;
struct continuation *saved_continuation;
@@ -474,7 +457,7 @@ do_all_continuations ()
/* Walk down the cmd_continuation list, and get rid of all the
continuations. */
void
-discard_all_continuations ()
+discard_all_continuations (void)
{
struct continuation *continuation_ptr;
@@ -511,7 +494,7 @@ add_intermediate_continuation (continuation_hook, arg_list)
and do the continuations from there on, instead of using the
global beginning of list as our iteration pointer.*/
void
-do_all_intermediate_continuations ()
+do_all_intermediate_continuations (void)
{
struct continuation *continuation_ptr;
struct continuation *saved_continuation;
@@ -536,7 +519,7 @@ do_all_intermediate_continuations ()
/* Walk down the cmd_continuation list, and get rid of all the
continuations. */
void
-discard_all_intermediate_continuations ()
+discard_all_intermediate_continuations (void)
{
struct continuation *continuation_ptr;
@@ -560,7 +543,7 @@ discard_all_intermediate_continuations ()
Is this anything other than a historical accident? */
void
-warning_begin ()
+warning_begin (void)
{
target_terminal_ours ();
wrap_here (""); /* Force out any buffered output */
@@ -599,7 +582,7 @@ warning (const char *string,...)
that the error message can be formatted with a single printf call,
but this is more general. */
void
-error_begin ()
+error_begin (void)
{
if (error_begin_hook)
error_begin_hook ();
@@ -760,8 +743,7 @@ internal_error (char *string, ...)
printable string. */
char *
-safe_strerror (errnum)
- int errnum;
+safe_strerror (int errnum)
{
char *msg;
static char buf[32];
@@ -779,8 +761,7 @@ safe_strerror (errnum)
Then return to command level. */
NORETURN void
-perror_with_name (string)
- char *string;
+perror_with_name (char *string)
{
char *err;
char *combined;
@@ -804,9 +785,7 @@ perror_with_name (string)
as the file name for which the error was encountered. */
void
-print_sys_errmsg (string, errcode)
- char *string;
- int errcode;
+print_sys_errmsg (char *string, int errcode)
{
char *err;
char *combined;
@@ -826,7 +805,7 @@ print_sys_errmsg (string, errcode)
/* Control C eventually causes this to be called, at a convenient time. */
void
-quit ()
+quit (void)
{
serial_t gdb_stdout_serial = serial_fdopen (1);
@@ -881,7 +860,7 @@ quit ()
*/
void
-notice_quit ()
+notice_quit (void)
{
int k = win32pollquit ();
if (k == 1)
@@ -893,7 +872,7 @@ notice_quit ()
#else /* !defined(_MSC_VER) */
void
-notice_quit ()
+notice_quit (void)
{
/* Done by signals */
}
@@ -902,8 +881,7 @@ notice_quit ()
/* Control C comes here */
void
-request_quit (signo)
- int signo;
+request_quit (int signo)
{
quit_flag = 1;
/* Restore the signal handler. Harmless with BSD-style signals, needed
@@ -938,18 +916,13 @@ mcalloc (PTR md, size_t number, size_t size)
}
PTR
-mmalloc (md, size)
- PTR md;
- size_t size;
+mmalloc (PTR md, size_t size)
{
return malloc (size);
}
PTR
-mrealloc (md, ptr, size)
- PTR md;
- PTR ptr;
- size_t size;
+mrealloc (PTR md, PTR ptr, size_t size)
{
if (ptr == 0) /* Guard against old realloc's */
return malloc (size);
@@ -958,9 +931,7 @@ mrealloc (md, ptr, size)
}
void
-mfree (md, ptr)
- PTR md;
- PTR ptr;
+mfree (PTR md, PTR ptr)
{
free (ptr);
}
@@ -977,7 +948,7 @@ init_malloc (void *md)
#else /* Have mmalloc and want corruption checking */
static void
-malloc_botch ()
+malloc_botch (void)
{
fprintf_unfiltered (gdb_stderr, "Memory corruption\n");
abort ();
@@ -1025,8 +996,7 @@ init_malloc (void *md)
memory requested in SIZE. */
NORETURN void
-nomem (size)
- long size;
+nomem (long size)
{
if (size > 0)
{
@@ -1044,9 +1014,7 @@ nomem (size)
byte of zero'd storage, is a religious issue. */
PTR
-xmmalloc (md, size)
- PTR md;
- long size;
+xmmalloc (PTR md, long size)
{
register PTR val;
@@ -1064,10 +1032,7 @@ xmmalloc (md, size)
/* Like mrealloc but get error if no storage available. */
PTR
-xmrealloc (md, ptr, size)
- PTR md;
- PTR ptr;
- long size;
+xmrealloc (PTR md, PTR ptr, long size)
{
register PTR val;
@@ -1090,8 +1055,7 @@ xmrealloc (md, ptr, size)
the caller wanting to allocate zero bytes. */
PTR
-xmalloc (size)
- size_t size;
+xmalloc (size_t size)
{
return (xmmalloc ((PTR) NULL, size));
}
@@ -1110,9 +1074,7 @@ xcalloc (size_t number, size_t size)
/* Like mrealloc but get error if no storage available. */
PTR
-xrealloc (ptr, size)
- PTR ptr;
- size_t size;
+xrealloc (PTR ptr, size_t size)
{
return (xmrealloc ((PTR) NULL, ptr, size));
}
@@ -1122,10 +1084,7 @@ xrealloc (ptr, size)
Used like `read' but keeps going if `read' returns too soon. */
int
-myread (desc, addr, len)
- int desc;
- char *addr;
- int len;
+myread (int desc, char *addr, int len)
{
register int val;
int orglen = len;
@@ -1148,9 +1107,7 @@ myread (desc, addr, len)
Uses malloc to get the space. Returns the address of the copy. */
char *
-savestring (ptr, size)
- const char *ptr;
- int size;
+savestring (const char *ptr, int size)
{
register char *p = (char *) xmalloc (size + 1);
memcpy (p, ptr, size);
@@ -1171,8 +1128,7 @@ msavestring (void *md, const char *ptr, int size)
in <string.h>. FIXME: This should be named "xstrsave", shouldn't it?
Doesn't real strsave return NULL if out of memory? */
char *
-strsave (ptr)
- const char *ptr;
+strsave (const char *ptr)
{
return savestring (ptr, strlen (ptr));
}
@@ -1184,9 +1140,7 @@ mstrsave (void *md, const char *ptr)
}
void
-print_spaces (n, file)
- register int n;
- register struct ui_file *file;
+print_spaces (register int n, register struct ui_file *file)
{
fputs_unfiltered (n_spaces (n), file);
}
@@ -1327,8 +1281,7 @@ query (char *ctlstr,...)
after the zeros. A value of 0 does not mean end of string. */
int
-parse_escape (string_ptr)
- char **string_ptr;
+parse_escape (char **string_ptr)
{
register int c = *(*string_ptr)++;
switch (c)
@@ -1457,31 +1410,21 @@ printchar (c, do_fputs, do_fprintf, stream, quoter)
the language of the program being debugged. */
void
-fputstr_filtered (str, quoter, stream)
- const char *str;
- int quoter;
- struct ui_file *stream;
+fputstr_filtered (const char *str, int quoter, struct ui_file *stream)
{
while (*str)
printchar (*str++, fputs_filtered, fprintf_filtered, stream, quoter);
}
void
-fputstr_unfiltered (str, quoter, stream)
- const char *str;
- int quoter;
- struct ui_file *stream;
+fputstr_unfiltered (const char *str, int quoter, struct ui_file *stream)
{
while (*str)
printchar (*str++, fputs_unfiltered, fprintf_unfiltered, stream, quoter);
}
void
-fputstrn_unfiltered (str, n, quoter, stream)
- const char *str;
- int n;
- int quoter;
- struct ui_file *stream;
+fputstrn_unfiltered (const char *str, int n, int quoter, struct ui_file *stream)
{
int i;
for (i = 0; i < n; i++)
@@ -1524,7 +1467,7 @@ static int wrap_column;
/* Inialize the lines and chars per page */
void
-init_page_info ()
+init_page_info (void)
{
#if defined(TUI)
if (tui_version && m_winPtrNotNull (cmdWin))
@@ -1598,7 +1541,7 @@ init_page_info ()
}
static void
-set_width ()
+set_width (void)
{
if (chars_per_line == 0)
init_page_info ();
@@ -1615,10 +1558,7 @@ set_width ()
/* ARGSUSED */
static void
-set_width_command (args, from_tty, c)
- char *args;
- int from_tty;
- struct cmd_list_element *c;
+set_width_command (char *args, int from_tty, struct cmd_list_element *c)
{
set_width ();
}
@@ -1627,7 +1567,7 @@ set_width_command (args, from_tty, c)
to continue by pressing RETURN. */
static void
-prompt_for_continue ()
+prompt_for_continue (void)
{
char *ignore;
char cont_prompt[120];
@@ -1687,7 +1627,7 @@ prompt_for_continue ()
/* Reinitialize filter; ie. tell it to reset to original values. */
void
-reinitialize_more_filter ()
+reinitialize_more_filter (void)
{
lines_printed = 0;
chars_printed = 0;
@@ -1715,8 +1655,7 @@ reinitialize_more_filter ()
used to force out output from the wrap_buffer. */
void
-wrap_here (indent)
- char *indent;
+wrap_here (char *indent)
{
/* This should have been allocated, but be paranoid anyway. */
if (!wrap_buffer)
@@ -1756,7 +1695,7 @@ wrap_here (indent)
line. Otherwise do nothing. */
void
-begin_line ()
+begin_line (void)
{
if (chars_printed > 0)
{
@@ -1779,10 +1718,8 @@ begin_line ()
routine should not be called when cleanups are not in place. */
static void
-fputs_maybe_filtered (linebuffer, stream, filter)
- const char *linebuffer;
- struct ui_file *stream;
- int filter;
+fputs_maybe_filtered (const char *linebuffer, struct ui_file *stream,
+ int filter)
{
const char *lineptr;
@@ -1883,16 +1820,13 @@ fputs_maybe_filtered (linebuffer, stream, filter)
}
void
-fputs_filtered (linebuffer, stream)
- const char *linebuffer;
- struct ui_file *stream;
+fputs_filtered (const char *linebuffer, struct ui_file *stream)
{
fputs_maybe_filtered (linebuffer, stream, 1);
}
int
-putchar_unfiltered (c)
- int c;
+putchar_unfiltered (int c)
{
char buf = c;
ui_file_write (gdb_stdout, &buf, 1);
@@ -1900,9 +1834,7 @@ putchar_unfiltered (c)
}
int
-fputc_unfiltered (c, stream)
- int c;
- struct ui_file *stream;
+fputc_unfiltered (int c, struct ui_file *stream)
{
char buf = c;
ui_file_write (stream, &buf, 1);
@@ -1910,9 +1842,7 @@ fputc_unfiltered (c, stream)
}
int
-fputc_filtered (c, stream)
- int c;
- struct ui_file *stream;
+fputc_filtered (int c, struct ui_file *stream)
{
char buf[2];
@@ -1926,10 +1856,7 @@ fputc_filtered (c, stream)
characters in printable fashion. */
void
-puts_debug (prefix, string, suffix)
- char *prefix;
- char *string;
- char *suffix;
+puts_debug (char *prefix, char *string, char *suffix)
{
int ch;
@@ -2025,11 +1952,8 @@ puts_debug (prefix, string, suffix)
called when cleanups are not in place. */
static void
-vfprintf_maybe_filtered (stream, format, args, filter)
- struct ui_file *stream;
- const char *format;
- va_list args;
- int filter;
+vfprintf_maybe_filtered (struct ui_file *stream, const char *format,
+ va_list args, int filter)
{
char *linebuffer;
struct cleanup *old_cleanups;
@@ -2047,19 +1971,13 @@ vfprintf_maybe_filtered (stream, format, args, filter)
void
-vfprintf_filtered (stream, format, args)
- struct ui_file *stream;
- const char *format;
- va_list args;
+vfprintf_filtered (struct ui_file *stream, const char *format, va_list args)
{
vfprintf_maybe_filtered (stream, format, args, 1);
}
void
-vfprintf_unfiltered (stream, format, args)
- struct ui_file *stream;
- const char *format;
- va_list args;
+vfprintf_unfiltered (struct ui_file *stream, const char *format, va_list args)
{
char *linebuffer;
struct cleanup *old_cleanups;
@@ -2076,17 +1994,13 @@ vfprintf_unfiltered (stream, format, args)
}
void
-vprintf_filtered (format, args)
- const char *format;
- va_list args;
+vprintf_filtered (const char *format, va_list args)
{
vfprintf_maybe_filtered (gdb_stdout, format, args, 1);
}
void
-vprintf_unfiltered (format, args)
- const char *format;
- va_list args;
+vprintf_unfiltered (const char *format, va_list args)
{
vfprintf_unfiltered (gdb_stdout, format, args);
}
@@ -2162,15 +2076,13 @@ printfi_filtered (int spaces, const char *format,...)
This one doesn't, and had better not! */
void
-puts_filtered (string)
- const char *string;
+puts_filtered (const char *string)
{
fputs_filtered (string, gdb_stdout);
}
void
-puts_unfiltered (string)
- const char *string;
+puts_unfiltered (const char *string)
{
fputs_unfiltered (string, gdb_stdout);
}
@@ -2178,8 +2090,7 @@ puts_unfiltered (string)
/* Return a pointer to N spaces and a null. The pointer is good
until the next call to here. */
char *
-n_spaces (n)
- int n;
+n_spaces (int n)
{
char *t;
static char *spaces = 0;
@@ -2201,9 +2112,7 @@ n_spaces (n)
/* Print N spaces. */
void
-print_spaces_filtered (n, stream)
- int n;
- struct ui_file *stream;
+print_spaces_filtered (int n, struct ui_file *stream)
{
fputs_filtered (n_spaces (n), stream);
}
@@ -2216,11 +2125,8 @@ print_spaces_filtered (n, stream)
demangling is off, the name is printed in its "raw" form. */
void
-fprintf_symbol_filtered (stream, name, lang, arg_mode)
- struct ui_file *stream;
- char *name;
- enum language lang;
- int arg_mode;
+fprintf_symbol_filtered (struct ui_file *stream, char *name, enum language lang,
+ int arg_mode)
{
char *demangled;
@@ -2267,9 +2173,7 @@ fprintf_symbol_filtered (stream, name, lang, arg_mode)
function). */
int
-strcmp_iw (string1, string2)
- const char *string1;
- const char *string2;
+strcmp_iw (const char *string1, const char *string2)
{
while ((*string1 != '\0') && (*string2 != '\0'))
{
@@ -2302,9 +2206,7 @@ strcmp_iw (string1, string2)
** at index 0.
*/
int
-subset_compare (string_to_compare, template_string)
- char *string_to_compare;
- char *template_string;
+subset_compare (char *string_to_compare, char *template_string)
{
int match;
if (template_string != (char *) NULL && string_to_compare != (char *) NULL &&
@@ -2320,25 +2222,21 @@ subset_compare (string_to_compare, template_string)
static void pagination_on_command (char *arg, int from_tty);
static void
-pagination_on_command (arg, from_tty)
- char *arg;
- int from_tty;
+pagination_on_command (char *arg, int from_tty)
{
pagination_enabled = 1;
}
static void pagination_on_command (char *arg, int from_tty);
static void
-pagination_off_command (arg, from_tty)
- char *arg;
- int from_tty;
+pagination_off_command (char *arg, int from_tty)
{
pagination_enabled = 0;
}
void
-initialize_utils ()
+initialize_utils (void)
{
struct cmd_list_element *c;
@@ -2426,12 +2324,8 @@ static unsigned long get_field (unsigned char *,
/* Extract a field which starts at START and is LEN bytes long. DATA and
TOTAL_LEN are the thing we are extracting it from, in byteorder ORDER. */
static unsigned long
-get_field (data, order, total_len, start, len)
- unsigned char *data;
- enum floatformat_byteorders order;
- unsigned int total_len;
- unsigned int start;
- unsigned int len;
+get_field (unsigned char *data, enum floatformat_byteorders order,
+ unsigned int total_len, unsigned int start, unsigned int len)
{
unsigned long result;
unsigned int cur_byte;
@@ -2490,10 +2384,8 @@ get_field (data, order, total_len, start, len)
Store the DOUBLEST in *TO. */
void
-floatformat_to_doublest (fmt, from, to)
- const struct floatformat *fmt;
- char *from;
- DOUBLEST *to;
+floatformat_to_doublest (const struct floatformat *fmt, char *from,
+ DOUBLEST *to)
{
unsigned char *ufrom = (unsigned char *) from;
DOUBLEST dto;
@@ -2604,13 +2496,9 @@ static void put_field (unsigned char *, enum floatformat_byteorders,
/* Set a field which starts at START and is LEN bytes long. DATA and
TOTAL_LEN are the thing we are extracting it from, in byteorder ORDER. */
static void
-put_field (data, order, total_len, start, len, stuff_to_put)
- unsigned char *data;
- enum floatformat_byteorders order;
- unsigned int total_len;
- unsigned int start;
- unsigned int len;
- unsigned long stuff_to_put;
+put_field (unsigned char *data, enum floatformat_byteorders order,
+ unsigned int total_len, unsigned int start, unsigned int len,
+ unsigned long stuff_to_put)
{
unsigned int cur_byte;
int cur_bitshift;
@@ -2673,9 +2561,7 @@ put_field (data, order, total_len, start, len, stuff_to_put)
static long double ldfrexp (long double value, int *eptr);
static long double
-ldfrexp (value, eptr)
- long double value;
- int *eptr;
+ldfrexp (long double value, int *eptr)
{
long double tmp;
int exp;
@@ -2718,10 +2604,8 @@ ldfrexp (value, eptr)
restrictions. */
void
-floatformat_from_doublest (fmt, from, to)
- CONST struct floatformat *fmt;
- DOUBLEST *from;
- char *to;
+floatformat_from_doublest (CONST struct floatformat *fmt, DOUBLEST *from,
+ char *to)
{
DOUBLEST dfrom;
int exponent;
@@ -2830,7 +2714,7 @@ floatformat_from_doublest (fmt, from, to)
#define NUMCELLS 16
#define CELLSIZE 32
static char *
-get_cell ()
+get_cell (void)
{
static char buf[NUMCELLS][CELLSIZE];
static int cell = 0;
diff --git a/gdb/v850-tdep.c b/gdb/v850-tdep.c
index 41a60d3..8820534 100644
--- a/gdb/v850-tdep.c
+++ b/gdb/v850-tdep.c
@@ -95,9 +95,7 @@ static CORE_ADDR v850_scan_prologue (CORE_ADDR pc, struct prologue_info *fs);
/* Should call_function allocate stack space for a struct return? */
int
-v850_use_struct_convention (gcc_p, type)
- int gcc_p;
- struct type *type;
+v850_use_struct_convention (int gcc_p, struct type *type)
{
return (TYPE_NFIELDS (type) > 1 || TYPE_LENGTH (type) > 4);
}
@@ -296,9 +294,7 @@ handle_pushm (int insn, int insn2, struct prologue_info *pi,
be determined till after we have scanned the prologue. */
static CORE_ADDR
-v850_scan_prologue (pc, pi)
- CORE_ADDR pc;
- struct prologue_info *pi;
+v850_scan_prologue (CORE_ADDR pc, struct prologue_info *pi)
{
CORE_ADDR func_addr, prologue_end, current_pc;
struct pifsr *pifsr, *pifsr_tmp;
@@ -554,8 +550,7 @@ v850_scan_prologue (pc, pi)
pointer just prior to calling the target function (see run_stack_dummy). */
void
-v850_init_extra_frame_info (fi)
- struct frame_info *fi;
+v850_init_extra_frame_info (struct frame_info *fi)
{
struct prologue_info pi;
struct pifsr pifsrs[NUM_REGS + 1], *pifsr;
@@ -594,8 +589,7 @@ v850_init_extra_frame_info (fi)
function call was made. */
CORE_ADDR
-v850_frame_chain (fi)
- struct frame_info *fi;
+v850_frame_chain (struct frame_info *fi)
{
struct prologue_info pi;
CORE_ADDR callers_pc, fp;
@@ -631,9 +625,7 @@ v850_frame_chain (fi)
frame. */
CORE_ADDR
-v850_find_callers_reg (fi, regnum)
- struct frame_info *fi;
- int regnum;
+v850_find_callers_reg (struct frame_info *fi, int regnum)
{
for (; fi; fi = fi->next)
if (PC_IN_CALL_DUMMY (fi->pc, fi->frame, fi->frame))
@@ -649,8 +641,7 @@ v850_find_callers_reg (fi, regnum)
Return the address of the first code past the prologue of the function. */
CORE_ADDR
-v850_skip_prologue (pc)
- CORE_ADDR pc;
+v850_skip_prologue (CORE_ADDR pc)
{
CORE_ADDR func_addr, func_end;
@@ -680,8 +671,7 @@ v850_skip_prologue (pc)
command, or the call dummy breakpoint gets hit. */
void
-v850_pop_frame (frame)
- struct frame_info *frame;
+v850_pop_frame (struct frame_info *frame)
{
int regnum;
@@ -715,12 +705,8 @@ v850_pop_frame (frame)
*/
CORE_ADDR
-v850_push_arguments (nargs, args, sp, struct_return, struct_addr)
- int nargs;
- value_ptr *args;
- CORE_ADDR sp;
- unsigned char struct_return;
- CORE_ADDR struct_addr;
+v850_push_arguments (int nargs, value_ptr *args, CORE_ADDR sp,
+ unsigned char struct_return, CORE_ADDR struct_addr)
{
int argreg;
int argnum;
@@ -799,9 +785,7 @@ v850_push_arguments (nargs, args, sp, struct_return, struct_addr)
Needed for targets where we don't actually execute a JSR/BSR instruction */
CORE_ADDR
-v850_push_return_address (pc, sp)
- CORE_ADDR pc;
- CORE_ADDR sp;
+v850_push_return_address (CORE_ADDR pc, CORE_ADDR sp)
{
write_register (RP_REGNUM, CALL_DUMMY_ADDRESS ());
return sp;
@@ -815,8 +799,7 @@ v850_push_return_address (pc, sp)
will be found. */
CORE_ADDR
-v850_frame_saved_pc (fi)
- struct frame_info *fi;
+v850_frame_saved_pc (struct frame_info *fi)
{
if (PC_IN_CALL_DUMMY (fi->pc, fi->frame, fi->frame))
return generic_read_register_dummy (fi->pc, fi->frame, PC_REGNUM);
@@ -833,14 +816,8 @@ v850_frame_saved_pc (fi)
*/
int
-v850_fix_call_dummy (dummy, sp, fun, nargs, args, type, gcc_p)
- char *dummy;
- CORE_ADDR sp;
- CORE_ADDR fun;
- int nargs;
- value_ptr *args;
- struct type *type;
- int gcc_p;
+v850_fix_call_dummy (char *dummy, CORE_ADDR sp, CORE_ADDR fun, int nargs,
+ value_ptr *args, struct type *type, int gcc_p)
{
long offset24;
@@ -856,8 +833,7 @@ v850_fix_call_dummy (dummy, sp, fun, nargs, args, type, gcc_p)
/* Change the register names based on the current machine type. */
static int
-v850_target_architecture_hook (ap)
- const bfd_arch_info_type *ap;
+v850_target_architecture_hook (const bfd_arch_info_type *ap)
{
int i, j;
@@ -878,7 +854,7 @@ v850_target_architecture_hook (ap)
}
void
-_initialize_v850_tdep ()
+_initialize_v850_tdep (void)
{
tm_print_insn = print_insn_v850;
target_architecture_hook = v850_target_architecture_hook;
diff --git a/gdb/v850ice.c b/gdb/v850ice.c
index 58fc820..d41c674 100644
--- a/gdb/v850ice.c
+++ b/gdb/v850ice.c
@@ -192,7 +192,7 @@ static struct target_ops v850ice_ops; /* Forward decl */
/* This function creates a hidden window */
static int
-init_hidden_window ()
+init_hidden_window (void)
{
WNDCLASS class;
@@ -242,11 +242,7 @@ init_hidden_window ()
WM_STATE_CHANGE - tells us that a state change has occured in the ICE
*/
static LRESULT CALLBACK
-v850ice_wndproc (hwnd, message, wParam, lParam)
- HWND hwnd;
- UINT message;
- WPARAM wParam;
- LPARAM lParam;
+v850ice_wndproc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
LRESULT result = FALSE;
@@ -318,9 +314,7 @@ v850ice_wndproc (hwnd, message, wParam, lParam)
/* Code for opening a connection to the ICE. */
static void
-v850ice_open (name, from_tty)
- char *name;
- int from_tty;
+v850ice_open (char *name, int from_tty)
{
HINSTANCE handle;
@@ -381,8 +375,7 @@ v850ice_open (name, from_tty)
/* ARGSUSED */
static void
-v850ice_close (quitting)
- int quitting;
+v850ice_close (int quitting)
{
if (ice_open)
{
@@ -394,16 +387,14 @@ v850ice_close (quitting)
/* Stop the process on the ice. */
static void
-v850ice_stop ()
+v850ice_stop (void)
{
/* This is silly, but it works... */
v850ice_command ("stop", 0);
}
static void
-v850ice_detach (args, from_tty)
- char *args;
- int from_tty;
+v850ice_detach (char *args, int from_tty)
{
if (args)
error ("Argument given to \"detach\" when remotely debugging.");
@@ -416,9 +407,7 @@ v850ice_detach (args, from_tty)
/* Tell the remote machine to resume. */
static void
-v850ice_resume (pid, step, siggnal)
- int pid, step;
- enum target_signal siggnal;
+v850ice_resume (int pid, int step, enum target_signal siggnal)
{
long retval;
char buf[256];
@@ -442,9 +431,7 @@ v850ice_resume (pid, step, siggnal)
means in the case of this target). */
static int
-v850ice_wait (pid, status)
- int pid;
- struct target_waitstatus *status;
+v850ice_wait (int pid, struct target_waitstatus *status)
{
long v850_status;
char buf[256];
@@ -500,9 +487,7 @@ v850ice_wait (pid, status)
}
static int
-convert_register (regno, buf)
- int regno;
- char *buf;
+convert_register (int regno, char *buf)
{
if (regno <= 31)
sprintf (buf, "r%d", regno);
@@ -521,8 +506,7 @@ convert_register (regno, buf)
convert it to target byte-order if necessary. */
static void
-v850ice_fetch_registers (regno)
- int regno;
+v850ice_fetch_registers (int regno)
{
long retval;
char cmd[100];
@@ -561,8 +545,7 @@ v850ice_fetch_registers (regno)
of REGISTERS. */
static void
-v850ice_store_registers (regno)
- int regno;
+v850ice_store_registers (int regno)
{
long retval;
char cmd[100];
@@ -595,7 +578,7 @@ v850ice_store_registers (regno)
register at a time. */
static void
-v850ice_prepare_to_store ()
+v850ice_prepare_to_store (void)
{
}
@@ -722,16 +705,13 @@ v850ice_xfer_memory (memaddr, myaddr, len, should_write, target)
}
static void
-v850ice_files_info (ignore)
- struct target_ops *ignore;
+v850ice_files_info (struct target_ops *ignore)
{
puts_filtered ("Debugging a target via the NEC V850 ICE.\n");
}
static int
-v850ice_insert_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+v850ice_insert_breakpoint (CORE_ADDR addr, char *contents_cache)
{
long retval;
char cmd[100];
@@ -750,9 +730,7 @@ v850ice_insert_breakpoint (addr, contents_cache)
}
static int
-v850ice_remove_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+v850ice_remove_breakpoint (CORE_ADDR addr, char *contents_cache)
{
long retval;
char cmd[100];
@@ -772,21 +750,19 @@ v850ice_remove_breakpoint (addr, contents_cache)
}
static void
-v850ice_kill ()
+v850ice_kill (void)
{
target_mourn_inferior ();
inferior_pid = 0;
}
static void
-v850ice_mourn ()
+v850ice_mourn (void)
{
}
static void
-v850ice_load (filename, from_tty)
- char *filename;
- int from_tty;
+v850ice_load (char *filename, int from_tty)
{
struct MessageIO iob;
char buf[256];
@@ -798,8 +774,7 @@ v850ice_load (filename, from_tty)
}
static int
-ice_file (arg)
- char *arg;
+ice_file (char *arg)
{
char *s;
@@ -835,8 +810,7 @@ ice_file (arg)
}
static int
-ice_cont (c)
- char *c;
+ice_cont (char *c)
{
printf_filtered ("continue (ice)\n");
ReplyMessage ((LRESULT) 1);
@@ -875,8 +849,7 @@ do_gdb (cmd, str, func, count)
static int
-ice_stepi (c)
- char *c;
+ice_stepi (char *c)
{
int count = (int) c;
@@ -885,8 +858,7 @@ ice_stepi (c)
}
static int
-ice_nexti (c)
- char *c;
+ice_nexti (char *c)
{
int count = (int) c;
@@ -895,9 +867,7 @@ ice_nexti (c)
}
static void
-v850ice_command (arg, from_tty)
- char *arg;
- int from_tty;
+v850ice_command (char *arg, int from_tty)
{
struct MessageIO iob;
char buf[256];
@@ -915,8 +885,7 @@ togdb_force_update (void)
}
static void
-view_source (addr)
- CORE_ADDR addr;
+view_source (CORE_ADDR addr)
{
char c[256];
@@ -981,7 +950,7 @@ init_850ice_ops (void)
}
void
-_initialize_v850ice ()
+_initialize_v850ice (void)
{
init_850ice_ops ();
add_target (&v850ice_ops);
diff --git a/gdb/valarith.c b/gdb/valarith.c
index 922bdcc..321cd3e 100644
--- a/gdb/valarith.c
+++ b/gdb/valarith.c
@@ -43,8 +43,7 @@ void _initialize_valarith (void);
value_ptr
-value_add (arg1, arg2)
- value_ptr arg1, arg2;
+value_add (value_ptr arg1, value_ptr arg2)
{
register value_ptr valint, valptr;
register int len;
@@ -90,8 +89,7 @@ value_add (arg1, arg2)
}
value_ptr
-value_sub (arg1, arg2)
- value_ptr arg1, arg2;
+value_sub (value_ptr arg1, value_ptr arg2)
{
struct type *type1, *type2;
COERCE_NUMBER (arg1);
@@ -137,8 +135,7 @@ an integer nor a pointer of the same type.");
verbosity is set, warn about invalid indices (but still use them). */
value_ptr
-value_subscript (array, idx)
- value_ptr array, idx;
+value_subscript (value_ptr array, value_ptr idx)
{
value_ptr bound;
int c_style = current_language->c_style_arrays;
@@ -214,9 +211,7 @@ value_subscript (array, idx)
to doubles, but no longer does. */
static value_ptr
-value_subscripted_rvalue (array, idx, lowerbound)
- value_ptr array, idx;
- int lowerbound;
+value_subscripted_rvalue (value_ptr array, value_ptr idx, int lowerbound)
{
struct type *array_type = check_typedef (VALUE_TYPE (array));
struct type *elt_type = check_typedef (TYPE_TARGET_TYPE (array_type));
@@ -250,9 +245,7 @@ value_subscripted_rvalue (array, idx, lowerbound)
For now, we do not overload the `=' operator. */
int
-binop_user_defined_p (op, arg1, arg2)
- enum exp_opcode op;
- value_ptr arg1, arg2;
+binop_user_defined_p (enum exp_opcode op, value_ptr arg1, value_ptr arg2)
{
struct type *type1, *type2;
if (op == BINOP_ASSIGN || op == BINOP_CONCAT)
@@ -274,9 +267,7 @@ binop_user_defined_p (op, arg1, arg2)
For now, we do not overload the `&' operator. */
int
-unop_user_defined_p (op, arg1)
- enum exp_opcode op;
- value_ptr arg1;
+unop_user_defined_p (enum exp_opcode op, value_ptr arg1)
{
struct type *type1;
if (op == UNOP_ADDR)
@@ -303,10 +294,8 @@ unop_user_defined_p (op, arg1)
unused. */
value_ptr
-value_x_binop (arg1, arg2, op, otherop, noside)
- value_ptr arg1, arg2;
- enum exp_opcode op, otherop;
- enum noside noside;
+value_x_binop (value_ptr arg1, value_ptr arg2, enum exp_opcode op,
+ enum exp_opcode otherop, enum noside noside)
{
value_ptr *argvec;
char *ptr;
@@ -468,10 +457,7 @@ value_x_binop (arg1, arg2, op, otherop, noside)
is legal for GNU C++). */
value_ptr
-value_x_unop (arg1, op, noside)
- value_ptr arg1;
- enum exp_opcode op;
- enum noside noside;
+value_x_unop (value_ptr arg1, enum exp_opcode op, enum noside noside)
{
value_ptr *argvec;
char *ptr, *mangle_ptr;
@@ -571,8 +557,7 @@ value_x_unop (arg1, op, noside)
*/
value_ptr
-value_concat (arg1, arg2)
- value_ptr arg1, arg2;
+value_concat (value_ptr arg1, value_ptr arg2)
{
register value_ptr inval1, inval2, outval = NULL;
int inval1len, inval2len;
@@ -705,9 +690,7 @@ value_concat (arg1, arg2)
use value_add or value_sub if you want to handle those possibilities. */
value_ptr
-value_binop (arg1, arg2, op)
- value_ptr arg1, arg2;
- enum exp_opcode op;
+value_binop (value_ptr arg1, value_ptr arg2, enum exp_opcode op)
{
register value_ptr val;
struct type *type1, *type2;
@@ -1131,8 +1114,7 @@ value_binop (arg1, arg2, op)
/* Simulate the C operator ! -- return 1 if ARG1 contains zero. */
int
-value_logical_not (arg1)
- value_ptr arg1;
+value_logical_not (value_ptr arg1)
{
register int len;
register char *p;
@@ -1160,8 +1142,7 @@ value_logical_not (arg1)
necessarily null terminated) based on their length */
static int
-value_strcmp (arg1, arg2)
- register value_ptr arg1, arg2;
+value_strcmp (register value_ptr arg1, register value_ptr arg2)
{
int len1 = TYPE_LENGTH (VALUE_TYPE (arg1));
int len2 = TYPE_LENGTH (VALUE_TYPE (arg2));
@@ -1191,9 +1172,7 @@ value_strcmp (arg1, arg2)
iff ARG1 and ARG2 have equal contents. */
int
-value_equal (arg1, arg2)
- register value_ptr arg1, arg2;
-
+value_equal (register value_ptr arg1, register value_ptr arg2)
{
register int len;
register char *p1, *p2;
@@ -1252,8 +1231,7 @@ value_equal (arg1, arg2)
iff ARG1's contents are less than ARG2's. */
int
-value_less (arg1, arg2)
- register value_ptr arg1, arg2;
+value_less (register value_ptr arg1, register value_ptr arg2)
{
register enum type_code code1;
register enum type_code code2;
@@ -1295,8 +1273,7 @@ value_less (arg1, arg2)
/* The unary operators - and ~. Both free the argument ARG1. */
value_ptr
-value_neg (arg1)
- register value_ptr arg1;
+value_neg (register value_ptr arg1)
{
register struct type *type;
register struct type *result_type = VALUE_TYPE (arg1);
@@ -1325,8 +1302,7 @@ value_neg (arg1)
}
value_ptr
-value_complement (arg1)
- register value_ptr arg1;
+value_complement (register value_ptr arg1)
{
register struct type *type;
register struct type *result_type = VALUE_TYPE (arg1);
@@ -1354,10 +1330,7 @@ value_complement (arg1)
Return -1 if out of range, -2 other error. */
int
-value_bit_index (type, valaddr, index)
- struct type *type;
- char *valaddr;
- int index;
+value_bit_index (struct type *type, char *valaddr, int index)
{
LONGEST low_bound, high_bound;
LONGEST word;
@@ -1377,8 +1350,7 @@ value_bit_index (type, valaddr, index)
}
value_ptr
-value_in (element, set)
- value_ptr element, set;
+value_in (value_ptr element, value_ptr set)
{
int member;
struct type *settype = check_typedef (VALUE_TYPE (set));
@@ -1400,6 +1372,6 @@ value_in (element, set)
}
void
-_initialize_valarith ()
+_initialize_valarith (void)
{
}
diff --git a/gdb/valops.c b/gdb/valops.c
index 5090d5f..df1e9ee 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -92,8 +92,7 @@ int unwind_on_signal_p = 0;
/* Find the address of function name NAME in the inferior. */
value_ptr
-find_function_in_inferior (name)
- char *name;
+find_function_in_inferior (char *name)
{
register struct symbol *sym;
sym = lookup_symbol (name, 0, VAR_NAMESPACE, 0, NULL);
@@ -133,8 +132,7 @@ find_function_in_inferior (name)
and return a value that is a pointer to the allocated space. */
value_ptr
-value_allocate_space_in_inferior (len)
- int len;
+value_allocate_space_in_inferior (int len)
{
value_ptr blocklen;
register value_ptr val = find_function_in_inferior ("malloc");
@@ -152,8 +150,7 @@ value_allocate_space_in_inferior (len)
}
static CORE_ADDR
-allocate_space_in_inferior (len)
- int len;
+allocate_space_in_inferior (int len)
{
return value_as_long (value_allocate_space_in_inferior (len));
}
@@ -164,9 +161,7 @@ allocate_space_in_inferior (len)
/* In C++, casts may change pointer or object representations. */
value_ptr
-value_cast (type, arg2)
- struct type *type;
- register value_ptr arg2;
+value_cast (struct type *type, register value_ptr arg2)
{
register enum type_code code1;
register enum type_code code2;
@@ -425,9 +420,7 @@ value_cast (type, arg2)
/* Create a value of type TYPE that is zero, and return it. */
value_ptr
-value_zero (type, lv)
- struct type *type;
- enum lval_type lv;
+value_zero (struct type *type, enum lval_type lv)
{
register value_ptr val = allocate_value (type);
@@ -450,10 +443,7 @@ value_zero (type, lv)
adjustments before or after calling it. */
value_ptr
-value_at (type, addr, sect)
- struct type *type;
- CORE_ADDR addr;
- asection *sect;
+value_at (struct type *type, CORE_ADDR addr, asection *sect)
{
register value_ptr val;
@@ -497,10 +487,7 @@ value_at (type, addr, sect)
/* Return a lazy value with type TYPE located at ADDR (cf. value_at). */
value_ptr
-value_at_lazy (type, addr, sect)
- struct type *type;
- CORE_ADDR addr;
- asection *sect;
+value_at_lazy (struct type *type, CORE_ADDR addr, asection *sect)
{
register value_ptr val;
@@ -530,8 +517,7 @@ value_at_lazy (type, addr, sect)
value is ignored. */
int
-value_fetch_lazy (val)
- register value_ptr val;
+value_fetch_lazy (register value_ptr val)
{
CORE_ADDR addr = VALUE_ADDRESS (val) + VALUE_OFFSET (val);
int length = TYPE_LENGTH (VALUE_ENCLOSING_TYPE (val));
@@ -571,8 +557,7 @@ value_fetch_lazy (val)
Return a new value with the location of TOVAL and contents of FROMVAL. */
value_ptr
-value_assign (toval, fromval)
- register value_ptr toval, fromval;
+value_assign (register value_ptr toval, register value_ptr fromval)
{
register struct type *type;
register value_ptr val;
@@ -837,9 +822,7 @@ value_assign (toval, fromval)
/* Extend a value VAL to COUNT repetitions of its type. */
value_ptr
-value_repeat (arg1, count)
- value_ptr arg1;
- int count;
+value_repeat (value_ptr arg1, int count)
{
register value_ptr val;
@@ -860,9 +843,7 @@ value_repeat (arg1, count)
}
value_ptr
-value_of_variable (var, b)
- struct symbol *var;
- struct block *b;
+value_of_variable (struct symbol *var, struct block *b)
{
value_ptr val;
struct frame_info *frame = NULL;
@@ -914,8 +895,7 @@ value_of_variable (var, b)
*/
value_ptr
-value_coerce_array (arg1)
- value_ptr arg1;
+value_coerce_array (value_ptr arg1)
{
register struct type *type = check_typedef (VALUE_TYPE (arg1));
@@ -930,8 +910,7 @@ value_coerce_array (arg1)
to it. */
value_ptr
-value_coerce_function (arg1)
- value_ptr arg1;
+value_coerce_function (value_ptr arg1)
{
value_ptr retval;
@@ -947,8 +926,7 @@ value_coerce_function (arg1)
/* Return a pointer value for the object for which ARG1 is the contents. */
value_ptr
-value_addr (arg1)
- value_ptr arg1;
+value_addr (value_ptr arg1)
{
value_ptr arg2;
@@ -986,8 +964,7 @@ value_addr (arg1)
/* Given a value of a pointer type, apply the C unary * operator to it. */
value_ptr
-value_ind (arg1)
- value_ptr arg1;
+value_ind (value_ptr arg1)
{
struct type *base_type;
value_ptr arg2;
@@ -1038,9 +1015,7 @@ value_ind (arg1)
/* Push one word (the size of object that a register holds). */
CORE_ADDR
-push_word (sp, word)
- CORE_ADDR sp;
- ULONGEST word;
+push_word (CORE_ADDR sp, ULONGEST word)
{
register int len = REGISTER_SIZE;
char buffer[MAX_REGISTER_RAW_SIZE];
@@ -1065,10 +1040,7 @@ push_word (sp, word)
/* Push LEN bytes with data at BUFFER. */
CORE_ADDR
-push_bytes (sp, buffer, len)
- CORE_ADDR sp;
- char *buffer;
- int len;
+push_bytes (CORE_ADDR sp, char *buffer, int len)
{
if (INNER_THAN (1, 2))
{
@@ -1094,9 +1066,7 @@ push_bytes (sp, buffer, len)
it to be an argument to a function. */
static CORE_ADDR
-value_push (sp, arg)
- register CORE_ADDR sp;
- value_ptr arg;
+value_push (register CORE_ADDR sp, value_ptr arg)
{
register int len = TYPE_LENGTH (VALUE_ENCLOSING_TYPE (arg));
register int container_len = len;
@@ -1134,12 +1104,8 @@ value_push (sp, arg)
#endif
CORE_ADDR
-default_push_arguments (nargs, args, sp, struct_return, struct_addr)
- int nargs;
- value_ptr *args;
- CORE_ADDR sp;
- int struct_return;
- CORE_ADDR struct_addr;
+default_push_arguments (int nargs, value_ptr *args, CORE_ADDR sp,
+ int struct_return, CORE_ADDR struct_addr)
{
/* ASSERT ( !struct_return); */
int i;
@@ -1184,10 +1150,7 @@ standard_coerce_float_to_double (struct type *formal, struct type *actual)
IS_PROTOTYPED is non-zero if the function declaration is prototyped. */
static value_ptr
-value_arg_coerce (arg, param_type, is_prototyped)
- value_ptr arg;
- struct type *param_type;
- int is_prototyped;
+value_arg_coerce (value_ptr arg, struct type *param_type, int is_prototyped)
{
register struct type *arg_type = check_typedef (VALUE_TYPE (arg));
register struct type *type
@@ -1263,9 +1226,7 @@ value_arg_coerce (arg, param_type, is_prototyped)
Calls error() if the function is not valid for calling. */
static CORE_ADDR
-find_function_addr (function, retval_type)
- value_ptr function;
- struct type **retval_type;
+find_function_addr (value_ptr function, struct type **retval_type)
{
register struct type *ftype = check_typedef (VALUE_TYPE (function));
register enum type_code code = TYPE_CODE (ftype);
@@ -1339,10 +1300,7 @@ find_function_addr (function, retval_type)
static value_ptr hand_function_call (value_ptr function, int nargs,
value_ptr * args);
static value_ptr
-hand_function_call (function, nargs, args)
- value_ptr function;
- int nargs;
- value_ptr *args;
+hand_function_call (value_ptr function, int nargs, value_ptr *args)
{
register CORE_ADDR sp;
register int i;
@@ -1829,10 +1787,7 @@ the function call).", name);
}
value_ptr
-call_function_by_hand (function, nargs, args)
- value_ptr function;
- int nargs;
- value_ptr *args;
+call_function_by_hand (value_ptr function, int nargs, value_ptr *args)
{
if (CALL_DUMMY_P)
{
@@ -1857,10 +1812,7 @@ call_function_by_hand (function, nargs, args)
don't currently enforce any restriction on their types). */
value_ptr
-value_array (lowbound, highbound, elemvec)
- int lowbound;
- int highbound;
- value_ptr *elemvec;
+value_array (int lowbound, int highbound, value_ptr *elemvec)
{
int nelem;
int idx;
@@ -1932,9 +1884,7 @@ value_array (lowbound, highbound, elemvec)
embedded null bytes. */
value_ptr
-value_string (ptr, len)
- char *ptr;
- int len;
+value_string (char *ptr, int len)
{
value_ptr val;
int lowbound = current_language->string_lower_bound;
@@ -1964,9 +1914,7 @@ value_string (ptr, len)
}
value_ptr
-value_bitstring (ptr, len)
- char *ptr;
- int len;
+value_bitstring (char *ptr, int len)
{
value_ptr val;
struct type *domain_type = create_range_type (NULL, builtin_type_int,
@@ -2070,12 +2018,8 @@ typecmp (staticp, t1, t2)
look for a baseclass named NAME. */
static value_ptr
-search_struct_field (name, arg1, offset, type, looking_for_baseclass)
- char *name;
- register value_ptr arg1;
- int offset;
- register struct type *type;
- int looking_for_baseclass;
+search_struct_field (char *name, register value_ptr arg1, int offset,
+ register struct type *type, int looking_for_baseclass)
{
int i;
int nbases = TYPE_N_BASECLASSES (type);
@@ -2227,13 +2171,8 @@ search_struct_field (name, arg1, offset, type, looking_for_baseclass)
* conventions. */
void
-find_rt_vbase_offset (type, basetype, valaddr, offset, boffset_p, skip_p)
- struct type *type;
- struct type *basetype;
- char *valaddr;
- int offset;
- int *boffset_p;
- int *skip_p;
+find_rt_vbase_offset (struct type *type, struct type *basetype, char *valaddr,
+ int offset, int *boffset_p, int *skip_p)
{
int boffset; /* offset of virtual base */
int index; /* displacement to use in virtual table */
@@ -2308,11 +2247,9 @@ find_rt_vbase_offset (type, basetype, valaddr, offset, boffset_p, skip_p)
else return NULL. */
static value_ptr
-search_struct_method (name, arg1p, args, offset, static_memfuncp, type)
- char *name;
- register value_ptr *arg1p, *args;
- int offset, *static_memfuncp;
- register struct type *type;
+search_struct_method (char *name, register value_ptr *arg1p,
+ register value_ptr *args, int offset,
+ int *static_memfuncp, register struct type *type)
{
int i;
value_ptr v;
@@ -2446,11 +2383,8 @@ search_struct_method (name, arg1p, args, offset, static_memfuncp, type)
ERR is an error message to be printed in case the field is not found. */
value_ptr
-value_struct_elt (argp, args, name, static_memfuncp, err)
- register value_ptr *argp, *args;
- char *name;
- int *static_memfuncp;
- char *err;
+value_struct_elt (register value_ptr *argp, register value_ptr *args,
+ char *name, int *static_memfuncp, char *err)
{
register struct type *t;
value_ptr v;
@@ -2568,15 +2502,9 @@ value_struct_elt (argp, args, name, static_memfuncp, err)
* BOFFSET is the offset of the base subobject where the method is found */
static struct fn_field *
-find_method_list (argp, method, offset, static_memfuncp, type, num_fns, basetype, boffset)
- value_ptr *argp;
- char *method;
- int offset;
- int *static_memfuncp;
- struct type *type;
- int *num_fns;
- struct type **basetype;
- int *boffset;
+find_method_list (value_ptr *argp, char *method, int offset,
+ int *static_memfuncp, struct type *type, int *num_fns,
+ struct type **basetype, int *boffset)
{
int i;
struct fn_field *f;
@@ -2651,14 +2579,9 @@ find_method_list (argp, method, offset, static_memfuncp, type, num_fns, basetype
* BOFFSET is the offset of the base subobject which defines the method */
struct fn_field *
-value_find_oload_method_list (argp, method, offset, static_memfuncp, num_fns, basetype, boffset)
- value_ptr *argp;
- char *method;
- int offset;
- int *static_memfuncp;
- int *num_fns;
- struct type **basetype;
- int *boffset;
+value_find_oload_method_list (value_ptr *argp, char *method, int offset,
+ int *static_memfuncp, int *num_fns,
+ struct type **basetype, int *boffset)
{
struct type *t;
@@ -2718,17 +2641,9 @@ value_find_oload_method_list (argp, method, offset, static_memfuncp, num_fns, ba
*/
int
-find_overload_match (arg_types, nargs, name, method, lax, obj, fsym, valp, symp, staticp)
- struct type **arg_types;
- int nargs;
- char *name;
- int method;
- int lax;
- value_ptr obj;
- struct symbol *fsym;
- value_ptr *valp;
- struct symbol **symp;
- int *staticp;
+find_overload_match (struct type **arg_types, int nargs, char *name, int method,
+ int lax, value_ptr obj, struct symbol *fsym,
+ value_ptr *valp, struct symbol **symp, int *staticp)
{
int nparms;
struct type **parm_types;
@@ -2963,9 +2878,7 @@ find_overload_match (arg_types, nargs, name, method, lax, obj, fsym, valp, symp,
of type TYPE. If TYPE does not have a destructor, or
if NAME is inappropriate for TYPE, an error is signaled. */
int
-destructor_name_p (name, type)
- const char *name;
- const struct type *type;
+destructor_name_p (const char *name, const struct type *type)
{
/* destructors are a special case. */
@@ -2993,9 +2906,7 @@ destructor_name_p (name, type)
target structure/union is defined, otherwise, return 0. */
static int
-check_field_in (type, name)
- register struct type *type;
- const char *name;
+check_field_in (register struct type *type, const char *name)
{
register int i;
@@ -3036,9 +2947,7 @@ check_field_in (type, name)
target structure/union is defined, otherwise, return 0. */
int
-check_field (arg1, name)
- register value_ptr arg1;
- const char *name;
+check_field (register value_ptr arg1, const char *name)
{
register struct type *t;
@@ -3074,10 +2983,9 @@ check_field (arg1, name)
to resolve user expressions of the form "DOMAIN::NAME". */
value_ptr
-value_struct_elt_for_reference (domain, offset, curtype, name, intype)
- struct type *domain, *curtype, *intype;
- int offset;
- char *name;
+value_struct_elt_for_reference (struct type *domain, int offset,
+ struct type *curtype, char *name,
+ struct type *intype)
{
register struct type *t = curtype;
register int i;
@@ -3224,11 +3132,7 @@ value_struct_elt_for_reference (domain, offset, curtype, name, intype)
*/
struct type *
-value_rtti_type (v, full, top, using_enc)
- value_ptr v;
- int *full;
- int *top;
- int *using_enc;
+value_rtti_type (value_ptr v, int *full, int *top, int *using_enc)
{
struct type *known_type;
struct type *rtti_type;
@@ -3438,11 +3342,7 @@ value_rtti_type (v, full, top, using_enc)
and refer to the values computed for the object pointed to. */
struct type *
-value_rtti_target_type (v, full, top, using_enc)
- value_ptr v;
- int *full;
- int *top;
- int *using_enc;
+value_rtti_target_type (value_ptr v, int *full, int *top, int *using_enc)
{
value_ptr target;
@@ -3462,13 +3362,8 @@ value_rtti_target_type (v, full, top, using_enc)
(Pass RTYPE == NULL if they're not available */
value_ptr
-value_full_object (argp, rtype, xfull, xtop, xusing_enc)
- value_ptr argp;
- struct type *rtype;
- int xfull;
- int xtop;
- int xusing_enc;
-
+value_full_object (value_ptr argp, struct type *rtype, int xfull, int xtop,
+ int xusing_enc)
{
struct type *real_type;
int full = 0;
@@ -3526,8 +3421,7 @@ value_full_object (argp, rtype, xfull, xtop, xusing_enc)
inappropriate context. */
value_ptr
-value_of_this (complain)
- int complain;
+value_of_this (int complain)
{
struct symbol *func, *sym;
struct block *b;
@@ -3584,9 +3478,7 @@ value_of_this (complain)
the original ARRAY. */
value_ptr
-value_slice (array, lowbound, length)
- value_ptr array;
- int lowbound, length;
+value_slice (value_ptr array, int lowbound, int length)
{
struct type *slice_range_type, *slice_type, *range_type;
LONGEST lowerbound, upperbound, offset;
@@ -3665,8 +3557,7 @@ value_slice (array, lowbound, length)
value as a fixed-length array. */
value_ptr
-varying_to_slice (varray)
- value_ptr varray;
+varying_to_slice (value_ptr varray)
{
struct type *vtype = check_typedef (VALUE_TYPE (varray));
LONGEST length = unpack_long (TYPE_FIELD_TYPE (vtype, 0),
@@ -3682,10 +3573,7 @@ varying_to_slice (varray)
doubles. FIXME: fmb */
value_ptr
-value_literal_complex (arg1, arg2, type)
- value_ptr arg1;
- value_ptr arg2;
- struct type *type;
+value_literal_complex (value_ptr arg1, value_ptr arg2, struct type *type)
{
register value_ptr val;
struct type *real_type = TYPE_TARGET_TYPE (type);
@@ -3704,9 +3592,7 @@ value_literal_complex (arg1, arg2, type)
/* Cast a value into the appropriate complex data type. */
static value_ptr
-cast_into_complex (type, val)
- struct type *type;
- register value_ptr val;
+cast_into_complex (struct type *type, register value_ptr val)
{
struct type *real_type = TYPE_TARGET_TYPE (type);
if (TYPE_CODE (VALUE_TYPE (val)) == TYPE_CODE_COMPLEX)
@@ -3731,7 +3617,7 @@ cast_into_complex (type, val)
}
void
-_initialize_valops ()
+_initialize_valops (void)
{
#if 0
add_show_from_set
diff --git a/gdb/valprint.c b/gdb/valprint.c
index 7e6308c..d40688a 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -124,17 +124,9 @@ int addressprint; /* Controls printing of machine addresses */
int
-val_print (type, valaddr, embedded_offset, address,
- stream, format, deref_ref, recurse, pretty)
- struct type *type;
- char *valaddr;
- int embedded_offset;
- CORE_ADDR address;
- struct ui_file *stream;
- int format;
- int deref_ref;
- int recurse;
- enum val_prettyprint pretty;
+val_print (struct type *type, char *valaddr, int embedded_offset,
+ CORE_ADDR address, struct ui_file *stream, int format, int deref_ref,
+ int recurse, enum val_prettyprint pretty)
{
struct type *real_type = check_typedef (type);
if (pretty == Val_pretty_default)
@@ -165,11 +157,8 @@ val_print (type, valaddr, embedded_offset, address,
the number of string bytes printed. */
int
-value_print (val, stream, format, pretty)
- value_ptr val;
- struct ui_file *stream;
- int format;
- enum val_prettyprint pretty;
+value_print (value_ptr val, struct ui_file *stream, int format,
+ enum val_prettyprint pretty)
{
if (val == 0)
{
@@ -189,10 +178,8 @@ value_print (val, stream, format, pretty)
value. STREAM is where to print the value. */
void
-val_print_type_code_int (type, valaddr, stream)
- struct type *type;
- char *valaddr;
- struct ui_file *stream;
+val_print_type_code_int (struct type *type, char *valaddr,
+ struct ui_file *stream)
{
if (TYPE_LENGTH (type) > sizeof (LONGEST))
{
@@ -243,11 +230,8 @@ val_print_type_code_int (type, valaddr, stream)
static void print_decimal (struct ui_file * stream, char *sign,
int use_local, ULONGEST val_ulong);
static void
-print_decimal (stream, sign, use_local, val_ulong)
- struct ui_file *stream;
- char *sign;
- int use_local;
- ULONGEST val_ulong;
+print_decimal (struct ui_file *stream, char *sign, int use_local,
+ ULONGEST val_ulong)
{
unsigned long temp[3];
int i = 0;
@@ -280,11 +264,8 @@ print_decimal (stream, sign, use_local, val_ulong)
#endif
void
-print_longest (stream, format, use_local, val_long)
- struct ui_file *stream;
- int format;
- int use_local;
- LONGEST val_long;
+print_longest (struct ui_file *stream, int format, int use_local,
+ LONGEST val_long)
{
#if defined (CC_HAS_LONG_LONG) && !defined (PRINTF_HAS_LONG_LONG)
if (sizeof (long) < sizeof (LONGEST))
@@ -544,8 +525,7 @@ strcat_longest (format, use_local, val_long, buf, buflen)
where the value must not be larger than can fit in an int. */
int
-longest_to_int (arg)
- LONGEST arg;
+longest_to_int (LONGEST arg)
{
/* Let the compiler do the work */
int rtnval = (int) arg;
@@ -566,10 +546,7 @@ longest_to_int (arg)
on STREAM. */
void
-print_floating (valaddr, type, stream)
- char *valaddr;
- struct type *type;
- struct ui_file *stream;
+print_floating (char *valaddr, struct type *type, struct ui_file *stream)
{
DOUBLEST doub;
int inv;
@@ -673,10 +650,8 @@ print_floating (valaddr, type, stream)
}
void
-print_binary_chars (stream, valaddr, len)
- struct ui_file *stream;
- unsigned char *valaddr;
- unsigned len;
+print_binary_chars (struct ui_file *stream, unsigned char *valaddr,
+ unsigned len)
{
#define BITS_IN_BYTES 8
@@ -737,10 +712,7 @@ print_binary_chars (stream, valaddr, len)
* Print it in octal on stream or format it in buf.
*/
void
-print_octal_chars (stream, valaddr, len)
- struct ui_file *stream;
- unsigned char *valaddr;
- unsigned len;
+print_octal_chars (struct ui_file *stream, unsigned char *valaddr, unsigned len)
{
unsigned char *p;
unsigned char octa1, octa2, octa3, carry;
@@ -888,10 +860,8 @@ print_octal_chars (stream, valaddr, len)
* Print it in decimal on stream or format it in buf.
*/
void
-print_decimal_chars (stream, valaddr, len)
- struct ui_file *stream;
- unsigned char *valaddr;
- unsigned len;
+print_decimal_chars (struct ui_file *stream, unsigned char *valaddr,
+ unsigned len)
{
#define TEN 10
#define TWO_TO_FOURTH 16
@@ -1031,10 +1001,7 @@ print_decimal_chars (stream, valaddr, len)
/* VALADDR points to an integer of LEN bytes. Print it in hex on stream. */
static void
-print_hex_chars (stream, valaddr, len)
- struct ui_file *stream;
- unsigned char *valaddr;
- unsigned len;
+print_hex_chars (struct ui_file *stream, unsigned char *valaddr, unsigned len)
{
unsigned char *p;
@@ -1072,17 +1039,10 @@ print_hex_chars (stream, valaddr, len)
*/
void
-val_print_array_elements (type, valaddr, address, stream, format, deref_ref,
- recurse, pretty, i)
- struct type *type;
- char *valaddr;
- CORE_ADDR address;
- struct ui_file *stream;
- int format;
- int deref_ref;
- int recurse;
- enum val_prettyprint pretty;
- unsigned int i;
+val_print_array_elements (struct type *type, char *valaddr, CORE_ADDR address,
+ struct ui_file *stream, int format, int deref_ref,
+ int recurse, enum val_prettyprint pretty,
+ unsigned int i)
{
unsigned int things_printed = 0;
unsigned len;
@@ -1201,11 +1161,7 @@ partial_memory_read (CORE_ADDR memaddr, char *myaddr, int len, int *errnoptr)
/* FIXME: Use target_read_string. */
int
-val_print_string (addr, len, width, stream)
- CORE_ADDR addr;
- int len;
- int width;
- struct ui_file *stream;
+val_print_string (CORE_ADDR addr, int len, int width, struct ui_file *stream)
{
int force_ellipsis = 0; /* Force ellipsis to be printed if nonzero. */
int errcode; /* Errno returned from bad reads. */
@@ -1383,19 +1339,14 @@ val_print_string (addr, len, width, stream)
/* ARGSUSED */
static void
-set_input_radix (args, from_tty, c)
- char *args;
- int from_tty;
- struct cmd_list_element *c;
+set_input_radix (char *args, int from_tty, struct cmd_list_element *c)
{
set_input_radix_1 (from_tty, *(unsigned *) c->var);
}
/* ARGSUSED */
static void
-set_input_radix_1 (from_tty, radix)
- int from_tty;
- unsigned radix;
+set_input_radix_1 (int from_tty, unsigned radix)
{
/* We don't currently disallow any input radix except 0 or 1, which don't
make any mathematical sense. In theory, we can deal with any input
@@ -1419,18 +1370,13 @@ set_input_radix_1 (from_tty, radix)
/* ARGSUSED */
static void
-set_output_radix (args, from_tty, c)
- char *args;
- int from_tty;
- struct cmd_list_element *c;
+set_output_radix (char *args, int from_tty, struct cmd_list_element *c)
{
set_output_radix_1 (from_tty, *(unsigned *) c->var);
}
static void
-set_output_radix_1 (from_tty, radix)
- int from_tty;
- unsigned radix;
+set_output_radix_1 (int from_tty, unsigned radix)
{
/* Validate the radix and disallow ones that we aren't prepared to
handle correctly, leaving the radix unchanged. */
@@ -1466,9 +1412,7 @@ set_output_radix_1 (from_tty, radix)
the 'set input-radix' command. */
static void
-set_radix (arg, from_tty)
- char *arg;
- int from_tty;
+set_radix (char *arg, int from_tty)
{
unsigned radix;
@@ -1486,9 +1430,7 @@ set_radix (arg, from_tty)
/*ARGSUSED */
static void
-show_radix (arg, from_tty)
- char *arg;
- int from_tty;
+show_radix (char *arg, int from_tty)
{
if (from_tty)
{
@@ -1510,9 +1452,7 @@ show_radix (arg, from_tty)
/*ARGSUSED */
static void
-set_print (arg, from_tty)
- char *arg;
- int from_tty;
+set_print (char *arg, int from_tty)
{
printf_unfiltered (
"\"set print\" must be followed by the name of a print subcommand.\n");
@@ -1521,15 +1461,13 @@ set_print (arg, from_tty)
/*ARGSUSED */
static void
-show_print (args, from_tty)
- char *args;
- int from_tty;
+show_print (char *args, int from_tty)
{
cmd_show_list (showprintlist, from_tty, "");
}
void
-_initialize_valprint ()
+_initialize_valprint (void)
{
struct cmd_list_element *c;
diff --git a/gdb/values.c b/gdb/values.c
index 6a345a0..1ed843d 100644
--- a/gdb/values.c
+++ b/gdb/values.c
@@ -76,8 +76,7 @@ static value_ptr all_values;
/* Allocate a value that has the correct length for type TYPE. */
value_ptr
-allocate_value (type)
- struct type *type;
+allocate_value (struct type *type)
{
register value_ptr val;
struct type *atype = check_typedef (type);
@@ -107,9 +106,7 @@ allocate_value (type)
for COUNT repetitions type TYPE. */
value_ptr
-allocate_repeat_value (type, count)
- struct type *type;
- int count;
+allocate_repeat_value (struct type *type, int count)
{
int low_bound = current_language->string_lower_bound; /* ??? */
/* FIXME-type-allocation: need a way to free this type when we are
@@ -127,7 +124,7 @@ allocate_repeat_value (type, count)
mark is obtained (except for those released) are subject to being freed
if a subsequent value_free_to_mark is passed the mark. */
value_ptr
-value_mark ()
+value_mark (void)
{
return all_values;
}
@@ -135,8 +132,7 @@ value_mark ()
/* Free all values allocated since MARK was obtained by value_mark
(except for those released). */
void
-value_free_to_mark (mark)
- value_ptr mark;
+value_free_to_mark (value_ptr mark)
{
value_ptr val, next;
@@ -152,7 +148,7 @@ value_free_to_mark (mark)
Called after each command, successful or not. */
void
-free_all_values ()
+free_all_values (void)
{
register value_ptr val, next;
@@ -169,8 +165,7 @@ free_all_values ()
so it will not be freed automatically. */
void
-release_value (val)
- register value_ptr val;
+release_value (register value_ptr val)
{
register value_ptr v;
@@ -192,8 +187,7 @@ release_value (val)
/* Release all values up to mark */
value_ptr
-value_release_to_mark (mark)
- value_ptr mark;
+value_release_to_mark (value_ptr mark)
{
value_ptr val, next;
@@ -213,8 +207,7 @@ value_release_to_mark (mark)
but it's a different block of storage. */
value_ptr
-value_copy (arg)
- value_ptr arg;
+value_copy (value_ptr arg)
{
register struct type *encl_type = VALUE_ENCLOSING_TYPE (arg);
register value_ptr val = allocate_value (encl_type);
@@ -249,8 +242,7 @@ value_copy (arg)
value history index of this new item. */
int
-record_latest_value (val)
- value_ptr val;
+record_latest_value (value_ptr val)
{
int i;
@@ -291,8 +283,7 @@ record_latest_value (val)
/* Return a copy of the value in the history with sequence number NUM. */
value_ptr
-access_value_history (num)
- int num;
+access_value_history (int num)
{
register struct value_history_chunk *chunk;
register int i;
@@ -330,7 +321,7 @@ access_value_history (num)
because the type pointers become invalid. */
void
-clear_value_history ()
+clear_value_history (void)
{
register struct value_history_chunk *next;
register int i;
@@ -349,9 +340,7 @@ clear_value_history ()
}
static void
-show_values (num_exp, from_tty)
- char *num_exp;
- int from_tty;
+show_values (char *num_exp, int from_tty)
{
register int i;
register value_ptr val;
@@ -408,8 +397,7 @@ static struct internalvar *internalvars;
one is created, with a void value. */
struct internalvar *
-lookup_internalvar (name)
- char *name;
+lookup_internalvar (char *name)
{
register struct internalvar *var;
@@ -427,8 +415,7 @@ lookup_internalvar (name)
}
value_ptr
-value_of_internalvar (var)
- struct internalvar *var;
+value_of_internalvar (struct internalvar *var)
{
register value_ptr val;
@@ -446,10 +433,8 @@ value_of_internalvar (var)
}
void
-set_internalvar_component (var, offset, bitpos, bitsize, newval)
- struct internalvar *var;
- int offset, bitpos, bitsize;
- value_ptr newval;
+set_internalvar_component (struct internalvar *var, int offset, int bitpos,
+ int bitsize, value_ptr newval)
{
register char *addr = VALUE_CONTENTS (var->value) + offset;
@@ -466,9 +451,7 @@ set_internalvar_component (var, offset, bitpos, bitsize, newval)
}
void
-set_internalvar (var, val)
- struct internalvar *var;
- value_ptr val;
+set_internalvar (struct internalvar *var, value_ptr val)
{
value_ptr newval;
@@ -499,8 +482,7 @@ set_internalvar (var, val)
}
char *
-internalvar_name (var)
- struct internalvar *var;
+internalvar_name (struct internalvar *var)
{
return var->name;
}
@@ -509,7 +491,7 @@ internalvar_name (var)
because that makes the values invalid. */
void
-clear_internalvars ()
+clear_internalvars (void)
{
register struct internalvar *var;
@@ -524,9 +506,7 @@ clear_internalvars ()
}
static void
-show_convenience (ignore, from_tty)
- char *ignore;
- int from_tty;
+show_convenience (char *ignore, int from_tty)
{
register struct internalvar *var;
int varseen = 0;
@@ -557,8 +537,7 @@ use \"set\" as in \"set $foo = 5\" to define them.\n");
Does not deallocate the value. */
LONGEST
-value_as_long (val)
- register value_ptr val;
+value_as_long (register value_ptr val)
{
/* This coerces arrays and functions, which is necessary (e.g.
in disassemble_command). It also dereferences references, which
@@ -568,8 +547,7 @@ value_as_long (val)
}
DOUBLEST
-value_as_double (val)
- register value_ptr val;
+value_as_double (register value_ptr val)
{
DOUBLEST foo;
int inv;
@@ -583,8 +561,7 @@ value_as_double (val)
Note that val's type may not actually be a pointer; value_as_long
handles all the cases. */
CORE_ADDR
-value_as_pointer (val)
- value_ptr val;
+value_as_pointer (value_ptr val)
{
/* Assume a CORE_ADDR can fit in a LONGEST (for now). Not sure
whether we want this to be true eventually. */
@@ -642,9 +619,7 @@ value_as_pointer (val)
to an INT (or some size). After all, it is only an offset. */
LONGEST
-unpack_long (type, valaddr)
- struct type *type;
- char *valaddr;
+unpack_long (struct type *type, char *valaddr)
{
register enum type_code code = TYPE_CODE (type);
register int len = TYPE_LENGTH (type);
@@ -696,10 +671,7 @@ unpack_long (type, valaddr)
format, result is in host format. */
DOUBLEST
-unpack_double (type, valaddr, invp)
- struct type *type;
- char *valaddr;
- int *invp;
+unpack_double (struct type *type, char *valaddr, int *invp)
{
enum type_code code;
int len;
@@ -752,9 +724,7 @@ unpack_double (type, valaddr, invp)
to an INT (or some size). After all, it is only an offset. */
CORE_ADDR
-unpack_pointer (type, valaddr)
- struct type *type;
- char *valaddr;
+unpack_pointer (struct type *type, char *valaddr)
{
/* Assume a CORE_ADDR can fit in a LONGEST (for now). Not sure
whether we want this to be true eventually. */
@@ -765,9 +735,7 @@ unpack_pointer (type, valaddr)
/* Get the value of the FIELDN'th field (which must be static) of TYPE. */
value_ptr
-value_static_field (type, fieldno)
- struct type *type;
- int fieldno;
+value_static_field (struct type *type, int fieldno)
{
CORE_ADDR addr;
asection *sect;
@@ -809,11 +777,8 @@ value_static_field (type, fieldno)
FIELDNO says which field. */
value_ptr
-value_primitive_field (arg1, offset, fieldno, arg_type)
- register value_ptr arg1;
- int offset;
- register int fieldno;
- register struct type *arg_type;
+value_primitive_field (register value_ptr arg1, int offset,
+ register int fieldno, register struct type *arg_type)
{
register value_ptr v;
register struct type *type;
@@ -881,9 +846,7 @@ value_primitive_field (arg1, offset, fieldno, arg_type)
FIELDNO says which field. */
value_ptr
-value_field (arg1, fieldno)
- register value_ptr arg1;
- register int fieldno;
+value_field (register value_ptr arg1, register int fieldno)
{
return value_primitive_field (arg1, 0, fieldno, VALUE_TYPE (arg1));
}
@@ -893,12 +856,8 @@ value_field (arg1, fieldno)
J is an index into F which provides the desired method. */
value_ptr
-value_fn_field (arg1p, f, j, type, offset)
- value_ptr *arg1p;
- struct fn_field *f;
- int j;
- struct type *type;
- int offset;
+value_fn_field (value_ptr *arg1p, struct fn_field *f, int j, struct type *type,
+ int offset)
{
register value_ptr v;
register struct type *ftype = TYPE_FN_FIELD_TYPE (f, j);
@@ -940,12 +899,8 @@ value_fn_field (arg1p, f, j, type, offset)
TYPE is the type in which F is located. */
value_ptr
-value_virtual_fn_field (arg1p, f, j, type, offset)
- value_ptr *arg1p;
- struct fn_field *f;
- int j;
- struct type *type;
- int offset;
+value_virtual_fn_field (value_ptr *arg1p, struct fn_field *f, int j,
+ struct type *type, int offset)
{
value_ptr arg1 = *arg1p;
struct type *type1 = check_typedef (VALUE_TYPE (arg1));
@@ -1141,9 +1096,7 @@ value_virtual_fn_field (arg1p, f, j, type, offset)
Consider it gone for 5.1. */
static value_ptr
-value_headof (in_arg, btype, dtype)
- value_ptr in_arg;
- struct type *btype, *dtype;
+value_headof (value_ptr in_arg, struct type *btype, struct type *dtype)
{
/* First collect the vtables we must look at for this object. */
value_ptr arg, vtbl;
@@ -1204,9 +1157,7 @@ value_headof (in_arg, btype, dtype)
could actually be a pointer to. */
value_ptr
-value_from_vtable_info (arg, type)
- value_ptr arg;
- struct type *type;
+value_from_vtable_info (value_ptr arg, struct type *type)
{
/* Take care of preliminaries. */
if (TYPE_VPTR_FIELDNO (type) < 0)
@@ -1221,10 +1172,7 @@ value_from_vtable_info (arg, type)
pointer which is for the base class whose type is BASECLASS. */
static int
-vb_match (type, index, basetype)
- struct type *type;
- int index;
- struct type *basetype;
+vb_match (struct type *type, int index, struct type *basetype)
{
struct type *fieldtype;
char *name = TYPE_FIELD_NAME (type, index);
@@ -1275,11 +1223,8 @@ vb_match (type, index, basetype)
-1 is returned on error. */
int
-baseclass_offset (type, index, valaddr, address)
- struct type *type;
- int index;
- char *valaddr;
- CORE_ADDR address;
+baseclass_offset (struct type *type, int index, char *valaddr,
+ CORE_ADDR address)
{
struct type *basetype = TYPE_BASECLASS (type, index);
@@ -1333,10 +1278,7 @@ baseclass_offset (type, index, valaddr, address)
If the field is signed, we also do sign extension. */
LONGEST
-unpack_field_as_long (type, valaddr, fieldno)
- struct type *type;
- char *valaddr;
- int fieldno;
+unpack_field_as_long (struct type *type, char *valaddr, int fieldno)
{
ULONGEST val;
ULONGEST valmask;
@@ -1381,10 +1323,7 @@ unpack_field_as_long (type, valaddr, fieldno)
indicate which bits (in target bit order) comprise the bitfield. */
void
-modify_field (addr, fieldval, bitpos, bitsize)
- char *addr;
- LONGEST fieldval;
- int bitpos, bitsize;
+modify_field (char *addr, LONGEST fieldval, int bitpos, int bitsize)
{
LONGEST oword;
@@ -1425,9 +1364,7 @@ modify_field (addr, fieldval, bitpos, bitsize)
/* Convert C numbers into newly allocated values */
value_ptr
-value_from_longest (type, num)
- struct type *type;
- register LONGEST num;
+value_from_longest (struct type *type, register LONGEST num)
{
register value_ptr val = allocate_value (type);
register enum type_code code;
@@ -1478,8 +1415,7 @@ value_from_pointer (struct type *type, CORE_ADDR addr)
use inferior memory. String shall NOT contain embedded nulls. */
value_ptr
-value_from_string (ptr)
- char *ptr;
+value_from_string (char *ptr)
{
value_ptr val;
int len = strlen (ptr);
@@ -1499,9 +1435,7 @@ value_from_string (ptr)
}
value_ptr
-value_from_double (type, num)
- struct type *type;
- DOUBLEST num;
+value_from_double (struct type *type, DOUBLEST num)
{
register value_ptr val = allocate_value (type);
struct type *base_type = check_typedef (type);
@@ -1575,9 +1509,7 @@ value_being_returned (valtype, retbuf, struct_return)
handled wrong. */
int
-generic_use_struct_convention (gcc_p, value_type)
- int gcc_p;
- struct type *value_type;
+generic_use_struct_convention (int gcc_p, struct type *value_type)
{
return !((gcc_p == 1)
&& (TYPE_LENGTH (value_type) == 1
@@ -1625,8 +1557,7 @@ using_struct_return (function, funcaddr, value_type, gcc_p)
function wants to return. */
void
-set_return_value (val)
- value_ptr val;
+set_return_value (value_ptr val)
{
struct type *type = check_typedef (VALUE_TYPE (val));
register enum type_code code = TYPE_CODE (type);
@@ -1642,7 +1573,7 @@ set_return_value (val)
}
void
-_initialize_values ()
+_initialize_values (void)
{
add_cmd ("convenience", no_class, show_convenience,
"Debugger convenience (\"$foo\") variables.\n\
diff --git a/gdb/varobj.c b/gdb/varobj.c
index faae5f8..5cc6e88 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -1030,10 +1030,8 @@ varobj_update (struct varobj *var, struct varobj ***changelist)
*/
static int
-delete_variable (resultp, var, only_children_p)
- struct cpstack **resultp;
- struct varobj *var;
- int only_children_p;
+delete_variable (struct cpstack **resultp, struct varobj *var,
+ int only_children_p)
{
int delcount = 0;
@@ -1048,13 +1046,8 @@ delete_variable (resultp, var, only_children_p)
and the parent is not removed we dump core. It must be always
initially called with remove_from_parent_p set */
static void
-delete_variable_1 (resultp, delcountp, var,
- only_children_p, remove_from_parent_p)
- struct cpstack **resultp;
- int *delcountp;
- struct varobj *var;
- int only_children_p;
- int remove_from_parent_p;
+delete_variable_1 (struct cpstack **resultp, int *delcountp, struct varobj *var,
+ int only_children_p, int remove_from_parent_p)
{
struct varobj_child *vc;
struct varobj_child *next;
@@ -1102,8 +1095,7 @@ delete_variable_1 (resultp, delcountp, var,
/* Install the given variable VAR with the object name VAR->OBJ_NAME. */
static int
-install_variable (var)
- struct varobj *var;
+install_variable (struct varobj *var)
{
struct vlist *cv;
struct vlist *newvl;
@@ -1146,8 +1138,7 @@ install_variable (var)
/* Unistall the object VAR. */
static void
-uninstall_variable (var)
- struct varobj *var;
+uninstall_variable (struct varobj *var)
{
struct vlist *cv;
struct vlist *prev;
@@ -1237,10 +1228,7 @@ child_exists (var, name)
/* Create and install a child of the parent of the given name */
static struct varobj *
-create_child (parent, index, name)
- struct varobj *parent;
- int index;
- char *name;
+create_child (struct varobj *parent, int index, char *name)
{
struct varobj *child;
char *childs_name;
@@ -1273,9 +1261,7 @@ create_child (parent, index, name)
/* FIXME: This should be a generic add to list */
/* Save CHILD in the PARENT's data. */
static void
-save_child_in_parent (parent, child)
- struct varobj *parent;
- struct varobj *child;
+save_child_in_parent (struct varobj *parent, struct varobj *child)
{
struct varobj_child *vc;
@@ -1291,9 +1277,7 @@ save_child_in_parent (parent, child)
/* FIXME: This should be a generic remove from list */
/* Remove the CHILD from the PARENT's list of children. */
static void
-remove_child_from_parent (parent, child)
- struct varobj *parent;
- struct varobj *child;
+remove_child_from_parent (struct varobj *parent, struct varobj *child)
{
struct varobj_child *vc, *prev;
@@ -1359,8 +1343,7 @@ new_root_variable (void)
/* Free any allocated memory associated with VAR. */
static void
-free_variable (var)
- struct varobj *var;
+free_variable (struct varobj *var)
{
/* Free the expression if this is a root variable. */
if (var->root->rootvar == var)
@@ -1390,8 +1373,7 @@ make_cleanup_free_variable (struct varobj *var)
and returns the real type of the variable. It also dereferences
pointers and references. */
static struct type *
-get_type (var)
- struct varobj *var;
+get_type (struct varobj *var)
{
struct type *type;
type = var->type;
@@ -1404,8 +1386,7 @@ get_type (var)
/* This returns the type of the variable, dereferencing pointers, too. */
static struct type *
-get_type_deref (var)
- struct varobj *var;
+get_type_deref (struct varobj *var)
{
struct type *type;
@@ -1421,8 +1402,7 @@ get_type_deref (var)
/* This returns the target type (or NULL) of TYPE, also skipping
past typedefs, just like get_type (). */
static struct type *
-get_target_type (type)
- struct type *type;
+get_target_type (struct type *type)
{
if (type != NULL)
{
@@ -1437,8 +1417,7 @@ get_target_type (type)
/* What is the default display for this variable? We assume that
everything is "natural". Any exceptions? */
static enum varobj_display_formats
-variable_default_display (var)
- struct varobj *var;
+variable_default_display (struct varobj *var)
{
return FORMAT_NATURAL;
}
@@ -1447,10 +1426,7 @@ variable_default_display (var)
one is "safe" -- it NEVER longjmps. It determines if the VAR's
value is the same as VAL2. */
static int
-my_value_equal (val1, val2, error2)
- value_ptr val1;
- value_ptr val2;
- int *error2;
+my_value_equal (value_ptr val1, value_ptr val2, int *error2)
{
int r, err1, err2;
@@ -1504,9 +1480,7 @@ my_value_equal (val1, val2, error2)
/* FIXME: The following should be generic for any pointer */
static void
-vpush (pstack, var)
- struct vstack **pstack;
- struct varobj *var;
+vpush (struct vstack **pstack, struct varobj *var)
{
struct vstack *s;
@@ -1518,8 +1492,7 @@ vpush (pstack, var)
/* FIXME: The following should be generic for any pointer */
static struct varobj *
-vpop (pstack)
- struct vstack **pstack;
+vpop (struct vstack **pstack)
{
struct vstack *s;
struct varobj *v;
@@ -1537,9 +1510,7 @@ vpop (pstack)
/* FIXME: The following should be generic for any pointer */
static void
-cppush (pstack, name)
- struct cpstack **pstack;
- char *name;
+cppush (struct cpstack **pstack, char *name)
{
struct cpstack *s;
@@ -1551,8 +1522,7 @@ cppush (pstack, name)
/* FIXME: The following should be generic for any pointer */
static char *
-cppop (pstack)
- struct cpstack **pstack;
+cppop (struct cpstack **pstack)
{
struct cpstack *s;
char *v;
@@ -1576,8 +1546,7 @@ cppop (pstack)
/* Get the language of variable VAR. */
static enum varobj_languages
-variable_language (var)
- struct varobj *var;
+variable_language (struct varobj *var)
{
enum varobj_languages lang;
@@ -1604,25 +1573,21 @@ variable_language (var)
is the number of children that the user will see in the variable
display. */
static int
-number_of_children (var)
- struct varobj *var;
+number_of_children (struct varobj *var)
{
return (*var->root->lang->number_of_children) (var);;
}
/* What is the expression for the root varobj VAR? Returns a malloc'd string. */
static char *
-name_of_variable (var)
- struct varobj *var;
+name_of_variable (struct varobj *var)
{
return (*var->root->lang->name_of_variable) (var);
}
/* What is the name of the INDEX'th child of VAR? Returns a malloc'd string. */
static char *
-name_of_child (var, index)
- struct varobj *var;
- int index;
+name_of_child (struct varobj *var, int index)
{
return (*var->root->lang->name_of_child) (var, index);
}
@@ -1638,9 +1603,7 @@ name_of_child (var, index)
On return, TYPE_CHANGED will be 1 if the type has changed, and
0 otherwise. */
static value_ptr
-value_of_root (var_handle, type_changed)
- struct varobj ** var_handle;
- int *type_changed;
+value_of_root (struct varobj **var_handle, int *type_changed)
{
struct varobj *var;
@@ -1699,9 +1662,7 @@ value_of_root (var_handle, type_changed)
/* What is the value_ptr for the INDEX'th child of PARENT? */
static value_ptr
-value_of_child (parent, index)
- struct varobj *parent;
- int index;
+value_of_child (struct varobj *parent, int index)
{
value_ptr value;
@@ -1716,8 +1677,7 @@ value_of_child (parent, index)
/* What is the type of VAR? */
static struct type *
-type_of_child (var)
- struct varobj *var;
+type_of_child (struct varobj *var)
{
/* If the child had no evaluation errors, var->value
@@ -1732,16 +1692,14 @@ type_of_child (var)
/* Is this variable editable? Use the variable's type to make
this determination. */
static int
-variable_editable (var)
- struct varobj *var;
+variable_editable (struct varobj *var)
{
return (*var->root->lang->variable_editable) (var);
}
/* GDB already has a command called "value_of_variable". Sigh. */
static char *
-my_value_of_variable (var)
- struct varobj *var;
+my_value_of_variable (struct varobj *var)
{
return (*var->root->lang->value_of_variable) (var);
}
@@ -1750,8 +1708,7 @@ my_value_of_variable (var)
some variable's values never change. For example,
struct and unions never change values. */
static int
-type_changeable (var)
- struct varobj *var;
+type_changeable (struct varobj *var)
{
int r;
struct type *type;
@@ -1777,8 +1734,7 @@ type_changeable (var)
/* C */
static int
-c_number_of_children (var)
- struct varobj *var;
+c_number_of_children (struct varobj *var)
{
struct type *type;
struct type *target;
@@ -1838,16 +1794,13 @@ c_number_of_children (var)
}
static char *
-c_name_of_variable (parent)
- struct varobj *parent;
+c_name_of_variable (struct varobj *parent)
{
return savestring (parent->name, strlen (parent->name));
}
static char *
-c_name_of_child (parent, index)
- struct varobj *parent;
- int index;
+c_name_of_child (struct varobj *parent, int index)
{
struct type *type;
struct type *target;
@@ -1901,8 +1854,7 @@ c_name_of_child (parent, index)
}
static value_ptr
-c_value_of_root (var_handle)
- struct varobj **var_handle;
+c_value_of_root (struct varobj **var_handle)
{
value_ptr new_val;
struct varobj *var = *var_handle;
@@ -1963,9 +1915,7 @@ c_value_of_root (var_handle)
}
static value_ptr
-c_value_of_child (parent, index)
- struct varobj *parent;
- int index;
+c_value_of_child (struct varobj *parent, int index)
{
value_ptr value, temp, indval;
struct type *type, *target;
@@ -2024,9 +1974,7 @@ c_value_of_child (parent, index)
}
static struct type *
-c_type_of_child (parent, index)
- struct varobj *parent;
- int index;
+c_type_of_child (struct varobj *parent, int index)
{
struct type *type;
char *name = name_of_child (parent, index);
@@ -2068,8 +2016,7 @@ c_type_of_child (parent, index)
}
static int
-c_variable_editable (var)
- struct varobj *var;
+c_variable_editable (struct varobj *var)
{
switch (TYPE_CODE (get_type (var)))
{
@@ -2089,8 +2036,7 @@ c_variable_editable (var)
}
static char *
-c_value_of_variable (var)
- struct varobj *var;
+c_value_of_variable (struct varobj *var)
{
struct type *type;
value_ptr val;
@@ -2146,8 +2092,7 @@ c_value_of_variable (var)
/* C++ */
static int
-cplus_number_of_children (var)
- struct varobj *var;
+cplus_number_of_children (struct varobj *var)
{
struct type *type;
int children, dont_know;
@@ -2232,16 +2177,13 @@ cplus_class_num_children (type, children)
}
static char *
-cplus_name_of_variable (parent)
- struct varobj *parent;
+cplus_name_of_variable (struct varobj *parent)
{
return c_name_of_variable (parent);
}
static char *
-cplus_name_of_child (parent, index)
- struct varobj *parent;
- int index;
+cplus_name_of_child (struct varobj *parent, int index)
{
char *name;
struct type *type;
@@ -2324,16 +2266,13 @@ cplus_name_of_child (parent, index)
}
static value_ptr
-cplus_value_of_root (var_handle)
- struct varobj **var_handle;
+cplus_value_of_root (struct varobj **var_handle)
{
return c_value_of_root (var_handle);
}
static value_ptr
-cplus_value_of_child (parent, index)
- struct varobj *parent;
- int index;
+cplus_value_of_child (struct varobj *parent, int index)
{
struct type *type;
value_ptr value;
@@ -2388,9 +2327,7 @@ cplus_value_of_child (parent, index)
}
static struct type *
-cplus_type_of_child (parent, index)
- struct varobj *parent;
- int index;
+cplus_type_of_child (struct varobj *parent, int index)
{
struct type *type, *t;
@@ -2423,8 +2360,7 @@ cplus_type_of_child (parent, index)
}
static int
-cplus_variable_editable (var)
- struct varobj *var;
+cplus_variable_editable (struct varobj *var)
{
if (CPLUS_FAKE_CHILD (var))
return 0;
@@ -2433,8 +2369,7 @@ cplus_variable_editable (var)
}
static char *
-cplus_value_of_variable (var)
- struct varobj *var;
+cplus_value_of_variable (struct varobj *var)
{
/* If we have one of our special types, don't print out
@@ -2448,15 +2383,13 @@ cplus_value_of_variable (var)
/* Java */
static int
-java_number_of_children (var)
- struct varobj *var;
+java_number_of_children (struct varobj *var)
{
return cplus_number_of_children (var);
}
static char *
-java_name_of_variable (parent)
- struct varobj *parent;
+java_name_of_variable (struct varobj *parent)
{
char *p, *name;
@@ -2476,9 +2409,7 @@ java_name_of_variable (parent)
}
static char *
-java_name_of_child (parent, index)
- struct varobj *parent;
- int index;
+java_name_of_child (struct varobj *parent, int index)
{
char *name, *p;
@@ -2497,38 +2428,31 @@ java_name_of_child (parent, index)
}
static value_ptr
-java_value_of_root (var_handle)
- struct varobj **var_handle;
+java_value_of_root (struct varobj **var_handle)
{
return cplus_value_of_root (var_handle);
}
static value_ptr
-java_value_of_child (parent, index)
- struct varobj *parent;
- int index;
+java_value_of_child (struct varobj *parent, int index)
{
return cplus_value_of_child (parent, index);
}
static struct type *
-java_type_of_child (parent, index)
- struct varobj *parent;
- int index;
+java_type_of_child (struct varobj *parent, int index)
{
return cplus_type_of_child (parent, index);
}
static int
-java_variable_editable (var)
- struct varobj *var;
+java_variable_editable (struct varobj *var)
{
return cplus_variable_editable (var);
}
static char *
-java_value_of_variable (var)
- struct varobj *var;
+java_value_of_variable (struct varobj *var)
{
return cplus_value_of_variable (var);
}
diff --git a/gdb/vax-tdep.c b/gdb/vax-tdep.c
index c344b43..c263ed2 100644
--- a/gdb/vax-tdep.c
+++ b/gdb/vax-tdep.c
@@ -34,8 +34,7 @@ static unsigned char *print_insn_arg ();
to reach some "real" code. */
CORE_ADDR
-vax_skip_prologue (pc)
- CORE_ADDR pc;
+vax_skip_prologue (CORE_ADDR pc)
{
register int op = (unsigned char) read_memory_integer (pc, 1);
if (op == 0x11)
@@ -64,8 +63,7 @@ vax_skip_prologue (pc)
Can return -1, meaning no way to tell. */
int
-vax_frame_num_args (fi)
- struct frame_info *fi;
+vax_frame_num_args (struct frame_info *fi)
{
return (0xff & read_memory_integer (FRAME_ARGS_ADDRESS (fi), 1));
}
@@ -77,9 +75,7 @@ vax_frame_num_args (fi)
Returns length of the instruction, in bytes. */
static int
-vax_print_insn (memaddr, info)
- CORE_ADDR memaddr;
- disassemble_info *info;
+vax_print_insn (CORE_ADDR memaddr, disassemble_info *info)
{
unsigned char buffer[MAXLEN];
register int i;
@@ -126,11 +122,8 @@ vax_print_insn (memaddr, info)
}
static unsigned char *
-print_insn_arg (d, p, addr, info)
- char *d;
- register char *p;
- CORE_ADDR addr;
- disassemble_info *info;
+print_insn_arg (char *d, register char *p, CORE_ADDR addr,
+ disassemble_info *info)
{
register int regnum = *p & 0xf;
float floatlitbuf;
@@ -300,7 +293,7 @@ print_insn_arg (d, p, addr, info)
}
void
-_initialize_vax_tdep ()
+_initialize_vax_tdep (void)
{
tm_print_insn = vax_print_insn;
}
diff --git a/gdb/w65-tdep.c b/gdb/w65-tdep.c
index e575ff7..4e6fd2d 100644
--- a/gdb/w65-tdep.c
+++ b/gdb/w65-tdep.c
@@ -36,32 +36,29 @@
CORE_ADDR
-w65_frame_saved_pc (frame)
- struct frame_info *frame;
+w65_frame_saved_pc (struct frame_info *frame)
{
return (read_memory_integer (frame->frame + 2, 4) & 0xffffff);
}
CORE_ADDR
-w65_addr_bits_remove (addr)
- CORE_ADDR addr;
+w65_addr_bits_remove (CORE_ADDR addr)
{
return ((addr) & 0xffffff);
}
-read_memory_pointer (x)
- CORE_ADDR x;
+read_memory_pointer (CORE_ADDR x)
{
return read_memory_integer (ADDR_BITS_REMOVE (x), 4);
}
-init_frame_pc ()
+init_frame_pc (void)
{
abort ();
}
void
-w65_push_dummy_frame ()
+w65_push_dummy_frame (void)
{
abort ();
}
@@ -76,9 +73,7 @@ w65_push_dummy_frame ()
it is fairly expensive. */
void
-frame_find_saved_regs (fip, fsrp)
- struct frame_info *fip;
- struct frame_saved_regs *fsrp;
+frame_find_saved_regs (struct frame_info *fip, struct frame_saved_regs *fsrp)
{
int locals;
CORE_ADDR pc;
@@ -89,7 +84,7 @@ frame_find_saved_regs (fip, fsrp)
}
int
-saved_pc_after_call ()
+saved_pc_after_call (void)
{
int sp = read_register (SP_REGNUM);
int val = read_memory_integer (sp + 1, 4);
@@ -97,10 +92,7 @@ saved_pc_after_call ()
}
-extract_return_value (type, regbuf, valbuf)
- struct type *type;
- char *regbuf;
- char *valbuf;
+extract_return_value (struct type *type, char *regbuf, char *valbuf)
{
int b;
int len = TYPE_LENGTH (type);
@@ -115,9 +107,7 @@ extract_return_value (type, regbuf, valbuf)
}
void
-write_return_value (type, valbuf)
- struct type *type;
- char *valbuf;
+write_return_value (struct type *type, char *valbuf)
{
int reg;
int len;
@@ -128,41 +118,37 @@ write_return_value (type, valbuf)
}
void
-store_struct_return (addr, sp)
- CORE_ADDR addr;
- CORE_ADDR sp;
+store_struct_return (CORE_ADDR addr, CORE_ADDR sp)
{
write_register (2, addr);
}
void
-w65_pop_frame ()
+w65_pop_frame (void)
{
}
-init_extra_frame_info ()
+init_extra_frame_info (void)
{
}
-pop_frame ()
+pop_frame (void)
{
}
-w65_frame_chain (thisframe)
- struct frame_info *thisframe;
+w65_frame_chain (struct frame_info *thisframe)
{
return 0xffff & read_memory_integer ((thisframe)->frame, 2);
}
static int
-gb (x)
+gb (int x)
{
return read_memory_integer (x, 1) & 0xff;
}
extern CORE_ADDR
-w65_skip_prologue (pc)
- CORE_ADDR pc;
+w65_skip_prologue (CORE_ADDR pc)
{
CORE_ADDR too_far = pc + 20;
@@ -229,14 +215,14 @@ w65_skip_prologue (pc)
}
-register_raw_size (n)
+register_raw_size (int n)
{
return sim_reg_size (n);
}
void
-print_register_hook (regno)
+print_register_hook (int regno)
{
if (regno == P_REGNUM)
{
@@ -290,7 +276,7 @@ print_register_hook (regno)
}
void
-_initialize_w65_tdep ()
+_initialize_w65_tdep (void)
{
tm_print_insn = print_insn_w65;
}
diff --git a/gdb/w89k-rom.c b/gdb/w89k-rom.c
index 9a73362..e33a3c5 100644
--- a/gdb/w89k-rom.c
+++ b/gdb/w89k-rom.c
@@ -50,11 +50,7 @@ static char *w89k_regnames[NUM_REGS] =
};
static void
-w89k_supply_register (regname, regnamelen, val, vallen)
- char *regname;
- int regnamelen;
- char *val;
- int vallen;
+w89k_supply_register (char *regname, int regnamelen, char *val, int vallen)
{
int numregs;
int regno;
@@ -163,10 +159,7 @@ static int hashmark = 1; /* flag set by "set hash" */
extern struct monitor_ops w89k_cmds; /* fwd decl */
static void
-w89k_load (desc, file, hashmark)
- serial_t desc;
- char *file;
- int hashmark;
+w89k_load (serial_t desc, char *file, int hashmark)
{
bfd *abfd;
asection *s;
@@ -296,15 +289,13 @@ init_w89k_cmds (void)
} /* init_w89k_cmds */
static void
-w89k_open (args, from_tty)
- char *args;
- int from_tty;
+w89k_open (char *args, int from_tty)
{
monitor_open (args, &w89k_cmds, from_tty);
}
void
-_initialize_w89k ()
+_initialize_w89k (void)
{
init_w89k_cmds ();
init_monitor_ops (&w89k_ops);
diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c
index e76485c..e7c1475 100644
--- a/gdb/win32-nat.c
+++ b/gdb/win32-nat.c
@@ -232,7 +232,7 @@ child_add_thread (DWORD id, HANDLE h)
/* Clear out any old thread list and reintialize it to a
pristine state. */
static void
-child_init_thread_list ()
+child_init_thread_list (void)
{
thread_info *th = &thread_head;
@@ -953,9 +953,7 @@ child_wait (int pid, struct target_waitstatus *ourstatus)
/* Attach to process PID, then initialize for debugging it. */
static void
-child_attach (args, from_tty)
- char *args;
- int from_tty;
+child_attach (char *args, int from_tty)
{
BOOL ok;
@@ -1030,10 +1028,7 @@ child_open (char *arg ATTRIBUTE_UNUSED, int from_tty ATTRIBUTE_UNUSED)
ENV is the environment vector to pass. Errors reported with error(). */
static void
-child_create_inferior (exec_file, allargs, env)
- char *exec_file;
- char *allargs;
- char **env;
+child_create_inferior (char *exec_file, char *allargs, char **env)
{
char real_path[MAXPATHLEN];
char *winenv;
@@ -1189,7 +1184,7 @@ child_create_inferior (exec_file, allargs, env)
}
static void
-child_mourn_inferior ()
+child_mourn_inferior (void)
{
(void) child_continue (DBG_CONTINUE, -1);
unpush_target (&child_ops);
@@ -1200,7 +1195,7 @@ child_mourn_inferior ()
^C on the controlling terminal. */
static void
-child_stop ()
+child_stop (void)
{
DEBUG_EVENTS (("gdb: GenerateConsoleCtrlEvent (CTRLC_EVENT, 0)\n"));
CHECK (GenerateConsoleCtrlEvent (CTRL_C_EVENT, current_event.dwProcessId));
@@ -1289,19 +1284,19 @@ child_resume (int pid, int step, enum target_signal sig)
}
static void
-child_prepare_to_store ()
+child_prepare_to_store (void)
{
/* Do nothing, since we can store individual regs */
}
static int
-child_can_run ()
+child_can_run (void)
{
return 1;
}
static void
-child_close ()
+child_close (void)
{
DEBUG_EVENTS (("gdb: child_close, inferior_pid=%d\n", inferior_pid));
}
@@ -1355,7 +1350,7 @@ init_child_ops (void)
}
void
-_initialize_inftarg ()
+_initialize_inftarg (void)
{
init_child_ops ();
diff --git a/gdb/wince.c b/gdb/wince.c
index 91ac5cf..c07ada0 100644
--- a/gdb/wince.c
+++ b/gdb/wince.c
@@ -786,7 +786,7 @@ close_handle (HANDLE h)
to terminate.
*/
static void
-stop_stub ()
+stop_stub (void)
{
if (s < 0)
return;
@@ -1067,7 +1067,7 @@ child_add_thread (DWORD id, HANDLE h)
/* Clear out any old thread list and reintialize it to a
pristine state. */
static void
-child_init_thread_list ()
+child_init_thread_list (void)
{
thread_info *th = &thread_head;
@@ -1515,8 +1515,7 @@ child_wait (int pid, struct target_waitstatus *ourstatus)
/* Print status information about what we're accessing. */
static void
-child_files_info (ignore)
- struct target_ops *ignore;
+child_files_info (struct target_ops *ignore)
{
printf_unfiltered ("\tUsing the running image of child %s.\n",
target_pid_to_str (inferior_pid));
@@ -1524,9 +1523,7 @@ child_files_info (ignore)
/* ARGSUSED */
static void
-child_open (arg, from_tty)
- char *arg;
- int from_tty;
+child_open (char *arg, int from_tty)
{
error ("Use the \"run\" command to start a child process.");
}
@@ -1645,7 +1642,7 @@ upload_to_device (const char *to, const char *from)
/* Initialize the connection to the remote device. */
static void
-wince_initialize ()
+wince_initialize (void)
{
int tmp;
char args[256];
@@ -1784,7 +1781,7 @@ child_create_inferior (char *exec_file, char *args, char **env)
/* Chile has gone bye-bye. */
static void
-child_mourn_inferior ()
+child_mourn_inferior (void)
{
(void) child_continue (DBG_CONTINUE, -1);
unpush_target (&child_ops);
@@ -1857,19 +1854,19 @@ child_resume (int pid, int step, enum target_signal sig)
}
static void
-child_prepare_to_store ()
+child_prepare_to_store (void)
{
/* Do nothing, since we can store individual regs */
}
static int
-child_can_run ()
+child_can_run (void)
{
return 1;
}
static void
-child_close ()
+child_close (void)
{
DEBUG_EVENTS (("gdb: child_close, inferior_pid=%d\n", inferior_pid));
}
@@ -1961,7 +1958,7 @@ set_upload_type (char *ignore, int from_tty)
}
void
-_initialize_inftarg ()
+_initialize_inftarg (void)
{
struct cmd_list_element *set;
init_child_ops ();
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index e76485c..e7c1475 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -232,7 +232,7 @@ child_add_thread (DWORD id, HANDLE h)
/* Clear out any old thread list and reintialize it to a
pristine state. */
static void
-child_init_thread_list ()
+child_init_thread_list (void)
{
thread_info *th = &thread_head;
@@ -953,9 +953,7 @@ child_wait (int pid, struct target_waitstatus *ourstatus)
/* Attach to process PID, then initialize for debugging it. */
static void
-child_attach (args, from_tty)
- char *args;
- int from_tty;
+child_attach (char *args, int from_tty)
{
BOOL ok;
@@ -1030,10 +1028,7 @@ child_open (char *arg ATTRIBUTE_UNUSED, int from_tty ATTRIBUTE_UNUSED)
ENV is the environment vector to pass. Errors reported with error(). */
static void
-child_create_inferior (exec_file, allargs, env)
- char *exec_file;
- char *allargs;
- char **env;
+child_create_inferior (char *exec_file, char *allargs, char **env)
{
char real_path[MAXPATHLEN];
char *winenv;
@@ -1189,7 +1184,7 @@ child_create_inferior (exec_file, allargs, env)
}
static void
-child_mourn_inferior ()
+child_mourn_inferior (void)
{
(void) child_continue (DBG_CONTINUE, -1);
unpush_target (&child_ops);
@@ -1200,7 +1195,7 @@ child_mourn_inferior ()
^C on the controlling terminal. */
static void
-child_stop ()
+child_stop (void)
{
DEBUG_EVENTS (("gdb: GenerateConsoleCtrlEvent (CTRLC_EVENT, 0)\n"));
CHECK (GenerateConsoleCtrlEvent (CTRL_C_EVENT, current_event.dwProcessId));
@@ -1289,19 +1284,19 @@ child_resume (int pid, int step, enum target_signal sig)
}
static void
-child_prepare_to_store ()
+child_prepare_to_store (void)
{
/* Do nothing, since we can store individual regs */
}
static int
-child_can_run ()
+child_can_run (void)
{
return 1;
}
static void
-child_close ()
+child_close (void)
{
DEBUG_EVENTS (("gdb: child_close, inferior_pid=%d\n", inferior_pid));
}
@@ -1355,7 +1350,7 @@ init_child_ops (void)
}
void
-_initialize_inftarg ()
+_initialize_inftarg (void)
{
init_child_ops ();
diff --git a/gdb/wrapper.c b/gdb/wrapper.c
index 4ee8fa2..60b259e 100644
--- a/gdb/wrapper.c
+++ b/gdb/wrapper.c
@@ -57,11 +57,8 @@ static int wrap_value_ind (char *opaque_arg);
static int wrap_parse_and_eval_type (char *);
int
-gdb_parse_exp_1 (stringptr, block, comma, expression)
- char **stringptr;
- struct block *block;
- int comma;
- struct expression **expression;
+gdb_parse_exp_1 (char **stringptr, struct block *block, int comma,
+ struct expression **expression)
{
struct gdb_wrapper_arguments args;
args.args[0].pointer = stringptr;
@@ -81,8 +78,7 @@ gdb_parse_exp_1 (stringptr, block, comma, expression)
}
static int
-wrap_parse_exp_1 (argptr)
- char *argptr;
+wrap_parse_exp_1 (char *argptr)
{
struct gdb_wrapper_arguments *args
= (struct gdb_wrapper_arguments *) argptr;
@@ -93,9 +89,7 @@ wrap_parse_exp_1 (argptr)
}
int
-gdb_evaluate_expression (exp, value)
- struct expression *exp;
- value_ptr *value;
+gdb_evaluate_expression (struct expression *exp, value_ptr *value)
{
struct gdb_wrapper_arguments args;
args.args[0].pointer = exp;
@@ -112,8 +106,7 @@ gdb_evaluate_expression (exp, value)
}
static int
-wrap_evaluate_expression (a)
- char *a;
+wrap_evaluate_expression (char *a)
{
struct gdb_wrapper_arguments *args = (struct gdb_wrapper_arguments *) a;
@@ -123,8 +116,7 @@ wrap_evaluate_expression (a)
}
int
-gdb_value_fetch_lazy (value)
- value_ptr value;
+gdb_value_fetch_lazy (value_ptr value)
{
struct gdb_wrapper_arguments args;
@@ -134,8 +126,7 @@ gdb_value_fetch_lazy (value)
}
static int
-wrap_value_fetch_lazy (a)
- char *a;
+wrap_value_fetch_lazy (char *a)
{
struct gdb_wrapper_arguments *args = (struct gdb_wrapper_arguments *) a;
@@ -144,10 +135,7 @@ wrap_value_fetch_lazy (a)
}
int
-gdb_value_equal (val1, val2, result)
- value_ptr val1;
- value_ptr val2;
- int *result;
+gdb_value_equal (value_ptr val1, value_ptr val2, int *result)
{
struct gdb_wrapper_arguments args;
@@ -166,8 +154,7 @@ gdb_value_equal (val1, val2, result)
}
static int
-wrap_value_equal (a)
- char *a;
+wrap_value_equal (char *a)
{
struct gdb_wrapper_arguments *args = (struct gdb_wrapper_arguments *) a;
value_ptr val1, val2;
@@ -180,10 +167,7 @@ wrap_value_equal (a)
}
int
-gdb_value_subscript (val1, val2, rval)
- value_ptr val1;
- value_ptr val2;
- value_ptr * rval;
+gdb_value_subscript (value_ptr val1, value_ptr val2, value_ptr *rval)
{
struct gdb_wrapper_arguments args;
@@ -202,8 +186,7 @@ gdb_value_subscript (val1, val2, rval)
}
static int
-wrap_value_subscript (a)
- char *a;
+wrap_value_subscript (char *a)
{
struct gdb_wrapper_arguments *args = (struct gdb_wrapper_arguments *) a;
value_ptr val1, val2;
@@ -216,9 +199,7 @@ wrap_value_subscript (a)
}
int
-gdb_value_ind (val, rval)
- value_ptr val;
- value_ptr *rval;
+gdb_value_ind (value_ptr val, value_ptr *rval)
{
struct gdb_wrapper_arguments args;
@@ -236,8 +217,7 @@ gdb_value_ind (val, rval)
}
static int
-wrap_value_ind (opaque_arg)
- char *opaque_arg;
+wrap_value_ind (char *opaque_arg)
{
struct gdb_wrapper_arguments *args = (struct gdb_wrapper_arguments *) opaque_arg;
value_ptr val;
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index 00b99d5..53e5469 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -262,10 +262,7 @@ struct find_targ_sec_arg
static void find_targ_sec (bfd *, asection *, void *);
static void
-find_targ_sec (abfd, sect, obj)
- bfd *abfd;
- asection *sect;
- PTR obj;
+find_targ_sec (bfd *abfd, asection *sect, PTR obj)
{
struct find_targ_sec_arg *args = (struct find_targ_sec_arg *) obj;
struct objfile *objfile = args->objfile;
@@ -284,9 +281,7 @@ find_targ_sec (abfd, sect, obj)
/* Return the section number (SECT_OFF_*) that CS points to. */
static int
-secnum_to_section (secnum, objfile)
- int secnum;
- struct objfile *objfile;
+secnum_to_section (int secnum, struct objfile *objfile)
{
int off = SECT_OFF_TEXT (objfile);
asection *sect = NULL;
@@ -301,9 +296,7 @@ secnum_to_section (secnum, objfile)
/* Return the BFD section that CS points to. */
static asection *
-secnum_to_bfd_section (secnum, objfile)
- int secnum;
- struct objfile *objfile;
+secnum_to_bfd_section (int secnum, struct objfile *objfile)
{
int off = SECT_OFF_TEXT (objfile);
asection *sect = NULL;
@@ -321,9 +314,7 @@ secnum_to_bfd_section (secnum, objfile)
#if 0
static void
-add_stab_to_list (stabname, stabvector)
- char *stabname;
- struct pending_stabs **stabvector;
+add_stab_to_list (char *stabname, struct pending_stabs **stabvector)
{
if (*stabvector == NULL)
{
@@ -403,9 +394,7 @@ add_stab_to_list (stabname, stabvector)
/* compare line table entry addresses. */
static int
-compare_lte (lte1p, lte2p)
- const void *lte1p;
- const void *lte2p;
+compare_lte (const void *lte1p, const void *lte2p)
{
struct linetable_entry *lte1 = (struct linetable_entry *) lte1p;
struct linetable_entry *lte2 = (struct linetable_entry *) lte2p;
@@ -518,8 +507,7 @@ static int inclDepth; /* nested include depth */
static void allocate_include_entry (void);
static void
-record_include_begin (cs)
- struct coff_symbol *cs;
+record_include_begin (struct coff_symbol *cs)
{
if (inclDepth)
{
@@ -542,8 +530,7 @@ record_include_begin (cs)
}
static void
-record_include_end (cs)
- struct coff_symbol *cs;
+record_include_end (struct coff_symbol *cs)
{
InclTable *pTbl;
@@ -564,7 +551,7 @@ record_include_end (cs)
}
static void
-allocate_include_entry ()
+allocate_include_entry (void)
{
if (inclTable == NULL)
{
@@ -593,8 +580,7 @@ static struct partial_symtab *this_symtab_psymtab;
at times) process its lines and create appropriate line vectors. */
static void
-process_linenos (start, end)
- CORE_ADDR start, end;
+process_linenos (CORE_ADDR start, CORE_ADDR end)
{
int offset, ii;
file_ptr max_offset =
@@ -775,7 +761,7 @@ return_after_cleanup:
}
void
-aix_process_linenos ()
+aix_process_linenos (void)
{
/* process line numbers and enter them into line vector */
process_linenos (last_source_start_addr, cur_src_end_addr);
@@ -791,12 +777,9 @@ aix_process_linenos ()
attention to. */
static void
-enter_line_range (subfile, beginoffset, endoffset, startaddr, endaddr,
- firstLine)
- struct subfile *subfile;
- unsigned beginoffset, endoffset; /* offsets to line table */
- CORE_ADDR startaddr, endaddr;
- unsigned *firstLine;
+enter_line_range (struct subfile *subfile, unsigned beginoffset, unsigned endoffset, /* offsets to line table */
+ CORE_ADDR startaddr, /* offsets to line table */
+ CORE_ADDR endaddr, unsigned *firstLine)
{
unsigned int curoffset;
CORE_ADDR addr;
@@ -912,8 +895,7 @@ static char *raw_symbol;
continuations. */
static char *
-xcoff_next_symbol_text (objfile)
- struct objfile *objfile;
+xcoff_next_symbol_text (struct objfile *objfile)
{
struct internal_syment symbol;
static struct complaint msg =
@@ -954,8 +936,7 @@ xcoff_next_symbol_text (objfile)
/* Read symbols for a given partial symbol table. */
static void
-read_xcoff_symtab (pst)
- struct partial_symtab *pst;
+read_xcoff_symtab (struct partial_symtab *pst)
{
struct objfile *objfile = pst->objfile;
bfd *abfd = objfile->obfd;
@@ -1488,9 +1469,7 @@ static struct type *var_symbol_type;
/* process one xcoff symbol. */
static struct symbol *
-process_xcoff_symbol (cs, objfile)
- register struct coff_symbol *cs;
- struct objfile *objfile;
+process_xcoff_symbol (register struct coff_symbol *cs, struct objfile *objfile)
{
struct symbol onesymbol;
register struct symbol *sym = &onesymbol;
@@ -1627,9 +1606,7 @@ process_xcoff_symbol (cs, objfile)
Result is in static storage and is only good for temporary use. */
static char *
-coff_getfilename (aux_entry, objfile)
- union internal_auxent *aux_entry;
- struct objfile *objfile;
+coff_getfilename (union internal_auxent *aux_entry, struct objfile *objfile)
{
static char buffer[BUFSIZ];
@@ -1647,9 +1624,7 @@ coff_getfilename (aux_entry, objfile)
/* Set *SYMBOL to symbol number symno in symtbl. */
static void
-read_symbol (symbol, symno)
- struct internal_syment *symbol;
- int symno;
+read_symbol (struct internal_syment *symbol, int symno)
{
int nsyms =
((struct coff_symfile_info *) this_symtab_psymtab->objfile->sym_private)
@@ -1674,8 +1649,7 @@ read_symbol (symbol, symno)
/* Get value corresponding to symbol number symno in symtbl. */
static CORE_ADDR
-read_symbol_nvalue (symno)
- int symno;
+read_symbol_nvalue (int symno)
{
struct internal_syment symbol[1];
@@ -1688,8 +1662,7 @@ read_symbol_nvalue (symno)
symno is the symbol pointed to by the linetable. */
static int
-read_symbol_lineno (symno)
- int symno;
+read_symbol_lineno (int symno)
{
struct objfile *objfile = this_symtab_psymtab->objfile;
boolean xcoff64 = xcoff_data (objfile->obfd)->xcoff64;
@@ -1758,10 +1731,7 @@ gotit:
* mainline code can read the whole thing for efficiency.
*/
static void
-find_linenos (abfd, asect, vpinfo)
- bfd *abfd;
- sec_ptr asect;
- PTR vpinfo;
+find_linenos (bfd *abfd, sec_ptr asect, PTR vpinfo)
{
struct coff_symfile_info *info;
int size, count;
@@ -1787,8 +1757,7 @@ find_linenos (abfd, asect, vpinfo)
static void xcoff_psymtab_to_symtab_1 (struct partial_symtab *);
static void
-xcoff_psymtab_to_symtab_1 (pst)
- struct partial_symtab *pst;
+xcoff_psymtab_to_symtab_1 (struct partial_symtab *pst)
{
struct cleanup *old_chain;
int i;
@@ -1844,8 +1813,7 @@ static void xcoff_psymtab_to_symtab (struct partial_symtab *);
Be verbose about it if the user wants that. */
static void
-xcoff_psymtab_to_symtab (pst)
- struct partial_symtab *pst;
+xcoff_psymtab_to_symtab (struct partial_symtab *pst)
{
bfd *sym_bfd;
@@ -1888,8 +1856,7 @@ xcoff_psymtab_to_symtab (pst)
}
static void
-xcoff_new_init (objfile)
- struct objfile *objfile;
+xcoff_new_init (struct objfile *objfile)
{
stabsread_new_init ();
buildsym_new_init ();
@@ -1902,8 +1869,7 @@ xcoff_new_init (objfile)
uses BFD's determination to vector to us. */
static void
-xcoff_symfile_init (objfile)
- struct objfile *objfile;
+xcoff_symfile_init (struct objfile *objfile)
{
/* Allocate struct to keep track of the symfile */
objfile->sym_private = xmmalloc (objfile->md,
@@ -1923,8 +1889,7 @@ xcoff_symfile_init (objfile)
objfile struct from the global list of known objfiles. */
static void
-xcoff_symfile_finish (objfile)
- struct objfile *objfile;
+xcoff_symfile_finish (struct objfile *objfile)
{
if (objfile->sym_private != NULL)
{
@@ -1942,10 +1907,7 @@ xcoff_symfile_finish (objfile)
static void
-init_stringtab (abfd, offset, objfile)
- bfd *abfd;
- file_ptr offset;
- struct objfile *objfile;
+init_stringtab (bfd *abfd, file_ptr offset, struct objfile *objfile)
{
long length;
int val;
@@ -2008,13 +1970,9 @@ static struct partial_symtab *xcoff_start_psymtab
(normal). */
static struct partial_symtab *
-xcoff_start_psymtab (objfile, filename, first_symnum, global_syms,
- static_syms)
- struct objfile *objfile;
- char *filename;
- int first_symnum;
- struct partial_symbol **global_syms;
- struct partial_symbol **static_syms;
+xcoff_start_psymtab (struct objfile *objfile, char *filename, int first_symnum,
+ struct partial_symbol **global_syms,
+ struct partial_symbol **static_syms)
{
struct partial_symtab *result =
start_psymtab_common (objfile, objfile->section_offsets,
@@ -2047,15 +2005,10 @@ static struct partial_symtab *xcoff_end_psymtab
are the information for includes and dependencies. */
static struct partial_symtab *
-xcoff_end_psymtab (pst, include_list, num_includes, capping_symbol_number,
- dependency_list, number_dependencies, textlow_not_set)
- struct partial_symtab *pst;
- char **include_list;
- int num_includes;
- int capping_symbol_number;
- struct partial_symtab **dependency_list;
- int number_dependencies;
- int textlow_not_set;
+xcoff_end_psymtab (struct partial_symtab *pst, char **include_list,
+ int num_includes, int capping_symbol_number,
+ struct partial_symtab **dependency_list,
+ int number_dependencies, int textlow_not_set)
{
int i;
struct objfile *objfile = pst->objfile;
@@ -2150,13 +2103,9 @@ static void swap_sym (struct internal_syment *,
the symbol and its auxents. */
static void
-swap_sym (symbol, aux, name, raw, symnump, objfile)
- struct internal_syment *symbol;
- union internal_auxent *aux;
- char **name;
- char **raw;
- unsigned int *symnump;
- struct objfile *objfile;
+swap_sym (struct internal_syment *symbol, union internal_auxent *aux,
+ char **name, char **raw, unsigned int *symnump,
+ struct objfile *objfile)
{
bfd_coff_swap_sym_in (objfile->obfd, *raw, symbol);
if (symbol->n_zeroes)
@@ -2201,8 +2150,7 @@ swap_sym (symbol, aux, name, raw, symnump, objfile)
}
static void
-scan_xcoff_symtab (objfile)
- struct objfile *objfile;
+scan_xcoff_symtab (struct objfile *objfile)
{
CORE_ADDR toc_offset = 0; /* toc offset value in data section. */
char *filestring = NULL;
@@ -2634,8 +2582,7 @@ scan_xcoff_symtab (objfile)
/* Return the toc offset value for a given objfile. */
CORE_ADDR
-get_toc_offset (objfile)
- struct objfile *objfile;
+get_toc_offset (struct objfile *objfile)
{
if (objfile)
return ((struct coff_symfile_info *) objfile->sym_private)->toc_offset;
@@ -2760,9 +2707,7 @@ xcoff_initial_scan (objfile, mainline)
}
static void
-xcoff_symfile_offsets (objfile, addrs)
- struct objfile *objfile;
- struct section_addr_info *addrs;
+xcoff_symfile_offsets (struct objfile *objfile, struct section_addr_info *addrs)
{
asection *sect = NULL;
int i;
@@ -2828,7 +2773,7 @@ static struct sym_fns xcoff_sym_fns =
};
void
-_initialize_xcoffread ()
+_initialize_xcoffread (void)
{
add_symtab_fns (&xcoff_sym_fns);
diff --git a/gdb/xcoffsolib.c b/gdb/xcoffsolib.c
index 3332268..84b46ee 100644
--- a/gdb/xcoffsolib.c
+++ b/gdb/xcoffsolib.c
@@ -45,10 +45,7 @@ extern int current_source_line;
the section list. */
void
-solib_add (arg_string, from_tty, target)
- char *arg_string;
- int from_tty;
- struct target_ops *target;
+solib_add (char *arg_string, int from_tty, struct target_ops *target)
{
char *val;
struct vmap *vp = vmap;
@@ -143,8 +140,7 @@ solib_add (arg_string, from_tty, target)
is not persistent. */
char *
-pc_load_segment_name (addr)
- CORE_ADDR addr;
+pc_load_segment_name (CORE_ADDR addr)
{
static char buffer[BUFSIZ];
struct vmap *vp = vmap;
@@ -168,9 +164,7 @@ pc_load_segment_name (addr)
static void solib_info (char *, int);
static void
-solib_info (args, from_tty)
- char *args;
- int from_tty;
+solib_info (char *args, int from_tty)
{
struct vmap *vp = vmap;
@@ -204,9 +198,7 @@ Text Range Data Range Syms Shared Object Library\n");
}
void
-sharedlibrary_command (args, from_tty)
- char *args;
- int from_tty;
+sharedlibrary_command (char *args, int from_tty)
{
dont_repeat ();
@@ -220,7 +212,7 @@ sharedlibrary_command (args, from_tty)
}
void
-_initialize_solib ()
+_initialize_solib (void)
{
add_com ("sharedlibrary", class_files, sharedlibrary_command,
"Load shared object library symbols for files matching REGEXP.");
diff --git a/gdb/xmodem.c b/gdb/xmodem.c
index 8257ea8..ad694a5 100644
--- a/gdb/xmodem.c
+++ b/gdb/xmodem.c
@@ -36,9 +36,7 @@ static int blknum; /* XMODEM block number */
static int crcflag; /* Sez we are using CRC's instead of cksums */
static int
-readchar (desc, timeout)
- serial_t desc;
- int timeout;
+readchar (serial_t desc, int timeout)
{
int c;
@@ -63,7 +61,7 @@ static unsigned short *crctab;
/* Call this to init the fast CRC-16 calculation table. */
static void
-crcinit ()
+crcinit (void)
{
static int crctab_inited = 0;
int val;
@@ -97,9 +95,7 @@ crcinit ()
/* Calculate a CRC-16 for the LEN byte message pointed at by P. */
static unsigned short
-docrc (p, len)
- unsigned char *p;
- int len;
+docrc (unsigned char *p, int len)
{
unsigned short crc = 0;
@@ -113,8 +109,7 @@ docrc (p, len)
send NAK or CRC request. */
int
-xmodem_init_xfer (desc)
- serial_t desc;
+xmodem_init_xfer (serial_t desc)
{
int c;
int i;
@@ -165,11 +160,7 @@ xmodem_init_xfer (desc)
*/
void
-xmodem_send_packet (desc, packet, len, hashmark)
- serial_t desc;
- unsigned char *packet;
- int len;
- int hashmark;
+xmodem_send_packet (serial_t desc, unsigned char *packet, int len, int hashmark)
{
int i;
int retries;
@@ -255,8 +246,7 @@ xmodem_send_packet (desc, packet, len, hashmark)
/* Finish off the transfer. Send out the EOT, and wait for an ACK. */
void
-xmodem_finish_xfer (desc)
- serial_t desc;
+xmodem_finish_xfer (serial_t desc)
{
int retries;
diff --git a/gdb/z8k-tdep.c b/gdb/z8k-tdep.c
index 67982c0..d70c34d 100644
--- a/gdb/z8k-tdep.c
+++ b/gdb/z8k-tdep.c
@@ -43,8 +43,7 @@ static int read_memory_pointer (CORE_ADDR x);
just use the register SRP_REGNUM itself. */
CORE_ADDR
-z8k_frame_saved_pc (frame)
- struct frame_info *frame;
+z8k_frame_saved_pc (struct frame_info *frame)
{
return read_memory_pointer (frame->frame + (BIG ? 4 : 2));
}
@@ -62,9 +61,7 @@ z8k_frame_saved_pc (frame)
return the pc pointing to the first push */
static CORE_ADDR
-skip_adjust (pc, size)
- CORE_ADDR pc;
- int *size;
+skip_adjust (CORE_ADDR pc, int *size)
{
*size = 0;
@@ -87,10 +84,7 @@ skip_adjust (pc, size)
static CORE_ADDR examine_frame (CORE_ADDR, CORE_ADDR * regs, CORE_ADDR);
static CORE_ADDR
-examine_frame (pc, regs, sp)
- CORE_ADDR pc;
- CORE_ADDR *regs;
- CORE_ADDR sp;
+examine_frame (CORE_ADDR pc, CORE_ADDR *regs, CORE_ADDR sp)
{
int w = read_memory_short (pc);
int offset = 0;
@@ -141,8 +135,7 @@ examine_frame (pc, regs, sp)
}
CORE_ADDR
-z8k_skip_prologue (start_pc)
- CORE_ADDR start_pc;
+z8k_skip_prologue (CORE_ADDR start_pc)
{
CORE_ADDR dummy[NUM_REGS];
@@ -150,8 +143,7 @@ z8k_skip_prologue (start_pc)
}
CORE_ADDR
-z8k_addr_bits_remove (addr)
- CORE_ADDR addr;
+z8k_addr_bits_remove (CORE_ADDR addr)
{
return (addr & PTR_MASK);
}
@@ -163,8 +155,7 @@ read_memory_pointer (CORE_ADDR x)
}
CORE_ADDR
-z8k_frame_chain (thisframe)
- struct frame_info *thisframe;
+z8k_frame_chain (struct frame_info *thisframe)
{
if (thisframe->prev == 0)
{
@@ -178,7 +169,7 @@ z8k_frame_chain (thisframe)
}
void
-init_frame_pc ()
+init_frame_pc (void)
{
abort ();
}
@@ -190,8 +181,7 @@ init_frame_pc ()
the address we return for it IS the sp for the next frame. */
void
-z8k_frame_init_saved_regs (frame_info)
- struct frame_info *frame_info;
+z8k_frame_init_saved_regs (struct frame_info *frame_info)
{
CORE_ADDR pc;
int w;
@@ -205,15 +195,13 @@ z8k_frame_init_saved_regs (frame_info)
}
void
-z8k_push_dummy_frame ()
+z8k_push_dummy_frame (void)
{
abort ();
}
int
-gdb_print_insn_z8k (memaddr, info)
- bfd_vma memaddr;
- disassemble_info *info;
+gdb_print_insn_z8k (bfd_vma memaddr, disassemble_info *info)
{
if (BIG)
return print_insn_z8001 (memaddr, info);
@@ -227,10 +215,7 @@ gdb_print_insn_z8k (memaddr, info)
of the instruction. */
CORE_ADDR
-NEXT_PROLOGUE_INSN (addr, lim, pword1)
- CORE_ADDR addr;
- CORE_ADDR lim;
- short *pword1;
+NEXT_PROLOGUE_INSN (CORE_ADDR addr, CORE_ADDR lim, short *pword1)
{
char buf[2];
if (addr < lim + 8)
@@ -254,9 +239,7 @@ NEXT_PROLOGUE_INSN (addr, lim, pword1)
it is fairly expensive. */
void
-frame_find_saved_regs (fip, fsrp)
- struct frame_info *fip;
- struct frame_saved_regs *fsrp;
+frame_find_saved_regs (struct frame_info *fip, struct frame_saved_regs *fsrp)
{
int locals;
CORE_ADDR pc;
@@ -306,10 +289,7 @@ z8k_saved_pc_after_call (struct frame_info *frame)
void
-extract_return_value (type, regbuf, valbuf)
- struct type *type;
- char *regbuf;
- char *valbuf;
+extract_return_value (struct type *type, char *regbuf, char *valbuf)
{
int b;
int len = TYPE_LENGTH (type);
@@ -325,9 +305,7 @@ extract_return_value (type, regbuf, valbuf)
}
void
-write_return_value (type, valbuf)
- struct type *type;
- char *valbuf;
+write_return_value (struct type *type, char *valbuf)
{
int reg;
int len;
@@ -337,17 +315,14 @@ write_return_value (type, valbuf)
}
void
-store_struct_return (addr, sp)
- CORE_ADDR addr;
- CORE_ADDR sp;
+store_struct_return (CORE_ADDR addr, CORE_ADDR sp)
{
write_register (2, addr);
}
void
-z8k_print_register_hook (regno)
- int regno;
+z8k_print_register_hook (int regno)
{
if ((regno & 1) == 0 && regno < 16)
{
@@ -389,15 +364,14 @@ z8k_print_register_hook (regno)
}
void
-z8k_pop_frame ()
+z8k_pop_frame (void)
{
}
struct cmd_list_element *setmemorylist;
void
-z8k_set_pointer_size (newsize)
- int newsize;
+z8k_set_pointer_size (int newsize)
{
static int oldsize = 0;
@@ -423,32 +397,26 @@ z8k_set_pointer_size (newsize)
}
static void
-segmented_command (args, from_tty)
- char *args;
- int from_tty;
+segmented_command (char *args, int from_tty)
{
z8k_set_pointer_size (32);
}
static void
-unsegmented_command (args, from_tty)
- char *args;
- int from_tty;
+unsegmented_command (char *args, int from_tty)
{
z8k_set_pointer_size (16);
}
static void
-set_memory (args, from_tty)
- char *args;
- int from_tty;
+set_memory (char *args, int from_tty)
{
printf_unfiltered ("\"set memory\" must be followed by the name of a memory subcommand.\n");
help_list (setmemorylist, "set memory ", -1, gdb_stdout);
}
void
-_initialize_z8ktdep ()
+_initialize_z8ktdep (void)
{
tm_print_insn = gdb_print_insn_z8k;