* input-file.c (input_file_open): Rearrange to avoid warning.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
942fd9fe
AC
12005-02-20 Andrew Cagney <cagney@gnu.org>
2
3 * symfile-mem.c (symbol_file_add_from_memory): Pass
4 target_read_memory to bfd_elf_bfd_from_remote_memory.
5 (do_target_read_memory): Delete.
6
a6c442d8
MK
72005-02-16 Mark Kettenis <kettenis@gnu.org>
8
9 * value.h (value_contents_equal): New prototype.
10 * value.c (value_contents_equal): New function.
11 * varobj.c: Include "exceptions.h" and "gdb_assert.h". Don't
12 include <math.h>.
13 (varobj_set_value): Initialize error to zero.
14 (varobj_update): Rename error2 to error and initialize it to zero.
15 Slightly change the wording of some comments.
16 (my_value_equal): Reimplement using TRY_CATCH and
17 value_contents_equal.
18
5bf193a2
AC
192005-02-18 Andrew Cagney <cagney@gnu.org>
20
c0d88b1b
AC
21 * cli/cli-decode.c (add_setshow_integer_cmd): New function.
22 * command.h (add_setshow_integer_cmd): Declare.
23 * cli/cli-cmds.c: Update.
24
35096d9d
AC
25 Use add_setshow_uinteger_cmd through out.
26 * printcmd.c, source.c, utils.c, valprint.c: Update.
27
85c07804
AC
28 Use add_setshow_zinteger_cmd through out. Re-sync gdbarch.sh
29 and gdbarch.c.
30 * breakpoint.c, frame.c, gdb-events.sh, gdbarch.sh: Update.
31 * gdbtypes.c, infrun.c, linux-nat.c, maint.c, monitor.c: Update.
32 * pa64solib.c, parse.c, remote-mips.c, ser-go32.c: Update.
33 * serial.c, solib-frv.c, somsolib.c, target.c, top.c: Update.
34 * varobj.c, cli/cli-cmds.c: Update.
35 * gdbarch.c, gdb-events.c: Regenerate.
36
5bf193a2
AC
37 Use add_setshow_boolean_command through out. Delete #ifdef 0'ed
38 code adding set/show boolean commands.
39 * cp-valprint.c, dcache.c, exec.c, gdbtypes.c, infrun.c: Update.
40 * monitor.c, p-valprint.c, pa64solib.c, printcmd.c: Update.
41 * proc-api.c, remote-mips.c, remote.c, solib.c: Update.
42 * somsolib.c, symfile.c, top.c, utils.c, valops.c: Update.
43 * valprint.c, win32-nat.c, wince.c, xcoffsolib.c: Update.
44 * cli/cli-cmds.c: Update.
45
2c5b56ce
AC
462005-02-17 Andrew Cagney <cagney@gnu.org>
47
f397e303
AC
48 * cli/cli-decode.c (add_setshow_filename_cmd): Set the completer
49 to filename_completer.
50 * solib.c (_initialize_solib, reload_shared_libraries): Use
51 add_setshow_filename_cmd.
52 * serial.c (_initialize_serial): Ditto.
53 * remote-utils.c (_initialize_sr_support): Ditto.
54
26c41df3
AC
55 * cli/cli-decode.c (add_setshow_string_noescape_cmd): New function.
56 * command.h (add_setshow_string_noescape_cmd): Declare.
57 * wince.c (_initialize_wince): Use.
58 * symfile.c (_initialize_symfile): Use.
59 (set_ext_lang_command): Update declaration.
60 * corefile.c (_initialize_core): Use.
61
2c5b56ce
AC
62 * cli/cli-decode.c (add_setshow_cmd_full, add_setshow_enum_cmd)
63 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
64 (add_setshow_filename_cmd, add_setshow_string_cmd)
65 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Delete
66 fprint_setshow parameter.
67 * command.h (fprint_setshow_ftype): Delete.
68 (add_setshow_cmd_full, add_setshow_enum_cmd)
69 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
70 (add_setshow_filename_cmd, add_setshow_string_cmd)
71 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Delete
72 fprint_setshow parameter.
73 * aix-thread.c, alpha-tdep.c, arm-tdep.c, breakpoint.c: Update.
74 * complaints.c, cris-tdep.c, dwarf2read.c, frame.c: Update.
75 * hppa-tdep.c, infcall.c, m32r-rom.c, maint.c: Update.
76 * mips-tdep.c, nto-tdep.c, observer.c, remote-rdi.c: Update
77 * remote.c, target.c, cli/cli-logging.c: Update.
78
08546159
AC
792005-02-16 Andrew Cagney <cagney@gnu.org>
80
81 Merge setshow print and show parameters.
82 * command.h (show_value_ftype): Define.
83 (deprecated_show_value_hack): Declare.
84 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
85 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
86 (add_setshow_string_cmd, add_setshow_uinteger_cmd)
87 (add_setshow_zinteger_cmd): Change type of show_func to
88 show_value_ftype.
89 * cli/cli-decode.h (struct cmd_list_element): Replace
90 fprint_setshow with show_value_func.
91 * cli/cli-decode.c (add_setshow_cmd_full): Update show_func
92 parameter. Set show_value_func. Do not set cmd_sfunc.
93 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
94 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
95 (add_setshow_string_cmd, add_setshow_uinteger_cmd)
96 (add_setshow_zinteger_cmd): Update.
97 * complaints.c (complaints_show_value): Replace
98 fprint_setshow_complaints.
99 (_initialize_complaints): Update.
100 * mips-tdep.c (show_mask_address): Update.
101 * arm-tdep.c (show_fp_model): Update.
102 * cli/cli-setshow.c (do_setshow_command): Call show_value_func
103 instead of fprint_setshow. Use deprecated_show_value_hack.
104 (deprecated_show_value_hack): New function.
105 * remote.c (add_packet_config_cmd, show_remote_cmd):
106 (show_remote_protocol_P_packet_cmd)
107 (show_remote_protocol_P_packet_cmd)
108 (show_remote_protocol_Z_access_wp_packet_cmd)
109 (show_remote_protocol_Z_hardware_bp_packet_cmd)
110 (show_remote_protocol_Z_packet_cmd)
111 (show_remote_protocol_Z_read_wp_packet_cmd)
112 (show_remote_protocol_Z_software_bp_packet_cmd)
113 (show_remote_protocol_Z_write_wp_packet_cmd)
114 (show_remote_protocol_binary_download_cmd)
115 (show_remote_protocol_p_packet_cmd)
116 (show_remote_protocol_qPart_auxv_packet_cmd)
117 (show_remote_protocol_qSymbol_packet_cmd)
118 (show_remote_protocol_vcont_packet_cmd): Update.
119
1c7b1e5a
MK
1202005-02-16 Mark Kettenis <kettenis@gnu.org>
121
122 * wrapper.h: Update copyright year. Properly wrap a few
123 prototypes.
124 (struct gdb_wrapper_arguments): Remove forward declaration.
125 * wrapper.c: Update copyright year. Include "ui-out.h".
126 (struct gdb_wrapper_arguments): Remove.
127 (struct captured_value_struct_elt_args): Remove.
128 (wrapper_parse_exp_1, wrap_evaluate_expression)
129 (wrap_value_fetch_lazy, wrap_value_equal, wrap_value_assign)
130 (wrap_value_subscript, wrap_value_ind, wrap_parse_and_eval_type)
131 (do_captured_value_struct_elf): Remove functions.
132 (gdb_parse_exp_1, gdb_evaluate_expression, gdb_value_fetch_lazy)
133 (gdb_value_equal, gdb_value_assign, gdb_value_subscript)
134 (gdb_value_ind, gdb_parse_and_eval_type, gdb_value_struct_elt):
135 Re-implement using TRY_CATCH.
136
7124f6fb
YS
1372005-02-16 Yoshinori Sato <ysato@users.sourceforge.jp>
138
139 * remote-e7000.c: unuse TM_FILE defined macro.
140 (e7000_fetch_registers)
141 (e7000_store_registers)
142 (e7000_wait): delete NUM_REALREGS.
143 * remote-hms.c: move TM_FILE macro.
144 (CCR_REGNO): move define from tm-h8300.h.
145
55e5a6d0
MK
1462005-02-15 Mark Kettenis <kettenis@gnu.org>
147
148 * amd64-linux-tdep.c: Update copyright year.
a348ae87
MK
149 (amd64_linux_sigtramp_start): Use sizeof operator instead of
150 LINUX_SIGTRAMP_LEN.
55e5a6d0 151
77ef991d
JB
1522004-02-15 Joel Brobecker <brobecker@gnat.com>
153
154 From Paul Hilfinger <hilfinger@gnat.com>
155 * dwarf2read.c (new_symbol): Use SYMBOL_SEARCH_NAME rather than
156 SYMBOL_NATURAL_NAME to set type names.
157
1bedd215
AC
1582005-02-15 Andrew Cagney <cagney@gnu.org>
159
160 Mark up add_com, add_info and add_prefix_cmd.
161 * breakpoint.c, cp-support.c, dcache.c, dwarf2read.c: Update.
162 * exec.c, f-valprint.c, frame.c, gcore.c, gnu-nat.c: Update.
163 * go32-nat.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update.
164 * kod.c, language.c, linux-nat.c, m32r-rom.c, macrocmd.c: Update.
165 * maint.c, memattr.c, mips-tdep.c, nto-procfs.c, objc-lang.c: Update.
166 * ocd.c, pa64solib.c, printcmd.c, procfs.c, regcache.c: Update.
167 * remote-e7000.c, remote-m32r-sdi.c, remote-mips.c: Update.
168 * remote-sds.c, remote-sim.c, remote-st.c, remote-utils.c: Update.
169 * remote.c, rs6000-tdep.c, ser-go32.c, serial.c: Update.
170 * sh-tdep.c, solib.c, somsolib.c, source.c, stack.c: Update.
171 * symfile.c, symtab.c, target.c, thread.c, top.c: Update.
172 * tracepoint.c, typeprint.c, utils.c, valprint.c: Update.
173 * win32-nat.c, xcoffsolib.c, cli/cli-cmds.c, cli/cli-dump.c: Update.
174 * cli/cli-logging.c, tui/tui-layout.c, tui/tui-regs.c: Update.
175 * tui/tui-stack.c, tui/tui-win.c: Update.
176
66bf4b3a
AC
1772005-02-14 Andrew Cagney <cagney@gnu.org>
178
3f325092
AC
179 * config/h8300/h8300.mt (DEPRECATED_TM_FILE): Delete.
180 * config/h8300/tm-h8300.h: Delete file.
181
1a966eab
AC
182 Mark up add_cmd.
183 * arch-utils.c, avr-tdep.c, breakpoint.c, corefile.c: Update.
184 * cp-abi.c, cp-namespace.c, cp-support.c, dummy-frame.c: Update.
185 * exec.c, gnu-nat.c, go32-nat.c, hppa-tdep.c, infcmd.c: Update.
186 * infrun.c, interps.c, macrocmd.c, maint.c, memattr.c: Update.
187 * mips-tdep.c, ocd.c, osabi.c, printcmd.c, regcache.c: Update.
188 * reggroups.c, remote-fileio.c, remote-rdi.c, remote.c: Update.
189 * sol-thread.c, source.c, stack.c, symfile-mem.c: Update.
190 * symfile.c, thread.c, tracepoint.c, valprint.c, value.c: Update.
191 * win32-nat.c, cli/cli-cmds.c, cli/cli-dump.c: Update.
192 * cli/cli-logging.c, tui/tui-regs.c: Update.
193
7915a72c
AC
194 Mark up add_setshow functions, replace "PRINT:" comment prefix
195 with "FIXME: i18n:".
196 * aix-thread.c, alpha-tdep.c, arm-tdep.c, breakpoint.c: Update.
197 * cris-tdep.c, dwarf2read.c, frame.c, hppa-tdep.c: Update.
198 * infcall.c, m32r-rom.c, maint.c, mips-tdep.c: Update.
199 * nto-tdep.c, observer.c, remote-rdi.c, remote.c: Update.
200 * target.c, cli/cli-logging.c: Update.
201
66bf4b3a
AC
202 * utils.c (paddress): New function.
203 * defs.h (paddress): Declare.
204 * printcmd.c (deprecated_print_address_numeric): Rename
205 print_address_numeric, call paddress.
206 * valprint.c, ui-out.c, tui/tui-stack.c, tracepoint.c: Update.
207 * symmisc.c, symfile.c stack.c, p-valprint.c, printcmd.c: Update.
208 * maint.c, m32r-rom.c, infcmd.c, f-valprint.c, exec.c: Update.
209 * dwarf2read.c, dve3900-rom.c, defs.h, c-valprint.c: Update.
210 * corefile.c, cli/cli-cmds.c, breakpoint.c, annotate.c: Update.
211 * ada-valprint.c: Update.
212
33e6b12b
RR
2132005-02-13 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
214
215 * MAINTAINERS: Add myself to "Write After Approval".
216
f0bdd87d
YS
2172005-02-12 Yoshinori Sato <ysato@users.sourceforge.jp>
218
219 Restore h8300 support.
220 * configure.tgt: Add h8300-*-*
ba0e80db
YS
221 * h8300-tdep.c: New file. Rewrite new frame code.
222 * config/h8300/h8300.mt: New file. Restored Rev 1.3
223 * config/h8300/tm-h8300.h: New file. Restored Rev 1.21
224
225 * MAINTAINERS: Add myself to "Write After Approval".
f0bdd87d 226
e2e0b3e5
AC
2272005-02-11 Andrew Cagney <cagney@gnu.org>
228
a3f17187
AC
229 Mark up some of printf_filtered and printf_unfiltered.
230 * ada-lang.c, annotate.c, arch-utils.c, breakpoint.c: Update.
231 * corelow.c, cp-namespace.c, cp-support.c, dcache.c: Update.
232 * demangle.c, dsrec.c, dwarf2read.c, dwarfread.c: Update.
233 * event-loop.c, event-top.c, exec.c, f-valprint.c: Update.
234 * gdbtypes.c, inf-loop.c, inf-ptrace.c, inf-ttrace.c: Update.
235 * infcmd.c, inflow.c, infrun.c, inftarg.c, language.c: Update.
236 * linespec.c, linux-nat.c, linux-thread-db.c, maint.c: Update.
237 * mdebugread.c, memattr.c, monitor.c, objc-lang.c: Update.
238 * ocd.c, osabi.c, printcmd.c, procfs.c, regcache.c: Update.
239 * remote.c, solib-som.c, solib.c, somsolib.c, source.c: Update.
240 * stack.c, symfile.c, symmisc.c, target.c, thread.c: Update.
241 * top.c, utils.c, valprint.c, value.c, cli/cli-cmds.c: Update.
242 * cli/cli-dump.c, cli/cli-logging.c, tui/tui-hooks.c: Update.
243 * tui/tui-regs.c, tui/tui-win.c: Update.
244
e2e0b3e5
AC
245 Mark up error_no_arg, query, perror_with_name, complaint, and
246 internal_error.
247 * breakpoint.c, cp-abi.c, cp-namespace.c, cp-support.c: Update.
248 * cris-tdep.c, dbxread.c, dictionary.c, dsrec.c: Update.
249 * dummy-frame.c, dve3900-rom.c, dwarf2-frame.c, dwarf2expr.c: Update.
250 * dwarf2read.c, dwarfread.c, elfread.c, event-loop.c: Update.
251 * exceptions.c, exec.c, f-lang.c, findvar.c, fork-child.c: Update.
252 * frame-unwind.c, frame.c, frv-linux-tdep.c, frv-tdep.c: Update.
253 * gdb_assert.h, gdbarch.c, gdbtypes.c, gnu-nat.c: Update.
254 * go32-nat.c, hppa-tdep.c, hppabsd-nat.c, hpread.c: Update.
255 * i386-linux-nat.c, i386-nat.c, i386-tdep.c, i386bsd-nat.c: Update.
256 * i386fbsd-nat.c, inf-ptrace.c, inf-ttrace.c, infcall.c: Update.
257 * infcmd.c, inflow.c, infptrace.c, infrun.c, inftarg.c: Update.
258 * interps.c, language.c, linespec.c, linux-nat.c: Update.
259 * m32r-linux-nat.c, m68k-tdep.c, m68kbsd-nat.c: Update.
260 * m68klinux-nat.c, m88kbsd-nat.c, macroexp.c, macroscope.c: Update.
261 * macrotab.c, maint.c, mdebugread.c, memattr.c: Update.
262 * mips-linux-tdep.c, mips-tdep.c, mips64obsd-nat.c: Update.
263 * mipsnbsd-nat.c, mn10300-tdep.c, monitor.c, nto-procfs.c: Update.
264 * objc-lang.c, objfiles.c, objfiles.h, ocd.c, osabi.c: Update.
265 * parse.c, ppc-bdm.c, ppc-linux-nat.c, ppc-sysv-tdep.c: Update.
266 * ppcnbsd-nat.c, ppcobsd-nat.c, printcmd.c, procfs.c: Update.
267 * regcache.c, reggroups.c, remote-e7000.c, remote-mips.c: Update.
268 * remote-rdp.c, remote-sds.c, remote-sim.c, remote-st.c: Update.
269 * remote-utils.c, remote.c, rs6000-nat.c, rs6000-tdep.c: Update.
270 * s390-nat.c, s390-tdep.c, sentinel-frame.c, serial.c: Update.
271 * sh-tdep.c, sh3-rom.c, sh64-tdep.c, shnbsd-nat.c: Update.
272 * solib-aix5.c, solib-svr4.c, solib.c, source.c: Update.
273 * sparc-nat.c, stabsread.c, stack.c, symfile.c, symtab.c: Update.
274 * symtab.h, target.c, tracepoint.c, ui-file.c, ui-out.c: Update.
275 * utils.c, valops.c, valprint.c, vax-nat.c, vaxbsd-nat.c: Update.
276 * win32-nat.c, xcoffread.c, xstormy16-tdep.c: Update.
277 * cli/cli-cmds.c, cli/cli-logging.c, cli/cli-script.c: Update.
278 * cli/cli-setshow.c, mi/mi-cmd-break.c, mi/mi-cmds.c: Update.
279 * mi/mi-console.c, mi/mi-getopt.c, mi/mi-out.c: Update.
280 * tui/tui-file.c, tui/tui-interp.c: Update.
8a3fe4f8 281
e2e0b3e5
AC
2822005-02-10 Andrew Cagney <cagney@gnu.org>
283
8a3fe4f8
AC
284 Mark up all error and warning messages.
285 * ada-lang.c, amd64-tdep.c, arch-utils.c, breakpoint.c: Update.
286 * bsd-kvm.c, bsd-uthread.c, coff-solib.h, coffread.c: Update.
287 * core-aout.c, core-regset.c, corefile.c, corelow.c: Update.
288 * cp-abi.c, cp-support.c, cp-valprint.c, cris-tdep.c: Update.
289 * dbxread.c, demangle.c, doublest.c, dsrec.c: Update.
290 * dve3900-rom.c, dwarf2expr.c, dwarf2loc.c: Update.
291 * dwarf2read.c, dwarfread.c, elfread.c, eval.c: Update.
292 * event-top.c, exec.c, expprint.c, f-lang.c: Update.
293 * f-typeprint.c, f-valprint.c, fbsd-nat.c, findvar.c: Update.
294 * frame.c, frv-linux-tdep.c, gcore.c, gdbtypes.c: Update.
295 * gnu-nat.c, gnu-v2-abi.c, gnu-v3-abi.c, go32-nat.c: Update.
296 * hpacc-abi.c, hppa-hpux-nat.c, hppa-hpux-tdep.c: Update.
297 * hppa-linux-nat.c, hppa-linux-tdep.c, hppa-tdep.c: Update.
298 * hpread.c, hpux-thread.c, i386-linux-nat.c: Update.
299 * i386-linux-tdep.c, i386-tdep.c, i386bsd-nat.c: Update.
300 * i386gnu-nat.c, i387-tdep.c, ia64-linux-nat.c: Update.
301 * ia64-tdep.c, inf-child.c, inf-ptrace.c, inf-ttrace.c: Update.
302 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update.
303 * inftarg.c, interps.c, irix5-nat.c, jv-lang.c: Update.
304 * kod-cisco.c, kod.c, language.c, libunwind-frame.c: Update.
305 * linespec.c, linux-nat.c, linux-thread-db.c, m2-lang.c: Update.
306 * m32r-rom.c, m68hc11-tdep.c, m68k-tdep.c: Update.
307 * m68klinux-nat.c, macrocmd.c, macroexp.c, main.c: Update.
308 * maint.c, mdebugread.c, mem-break.c, memattr.c: Update.
309 * mips-linux-tdep.c, mips-tdep.c, mipsread.c, monitor.c: Update.
310 * nlmread.c, nto-procfs.c, objc-lang.c, objfiles.c: Update.
311 * observer.c, ocd.c, p-lang.c, p-typeprint.c: Update.
312 * p-valprint.c, pa64solib.c, parse.c, ppc-linux-tdep.c: Update.
313 * ppcnbsd-tdep.c, printcmd.c, procfs.c, remote-e7000.c: Update.
314 * remote-fileio.c, remote-m32r-sdi.c, remote-rdi.c: Update.
315 * remote-rdp.c, remote-sim.c, remote-st.c: Update.
316 * remote-utils.c, remote-utils.h, remote.c: Update.
317 * rom68k-rom.c, rs6000-nat.c, s390-tdep.c, scm-lang.c: Update.
318 * ser-e7kpc.c, ser-tcp.c, ser-unix.c, sh-tdep.c: Update.
319 * sh3-rom.c, shnbsd-tdep.c, sol-thread.c, solib-aix5.c: Update.
320 * solib-frv.c, solib-irix.c, solib-osf.c, solib-pa64.c: Update.
321 * solib-som.c, solib-sunos.c, solib-svr4.c, solib.c: Update.
322 * somread.c, somsolib.c, source.c, stabsread.c: Update.
323 * stack.c, std-regs.c, symfile-mem.c, symfile.c: Update.
324 * symmisc.c, symtab.c, target.c, thread.c, top.c: Update.
325 * tracepoint.c, trad-frame.c, typeprint.c, utils.c: Update.
326 * uw-thread.c, valarith.c, valops.c, valprint.c: Update.
327 * value.c, varobj.c, version.in, win32-nat.c, wince.c: Update.
328 * xcoffread.c, xcoffsolib.c, cli/cli-cmds.c: Update.
329 * cli/cli-decode.c, cli/cli-dump.c, cli/cli-logging.c: Update.
330 * cli/cli-script.c, cli/cli-setshow.c, mi/mi-cmd-break.c: Update.
331 * mi/mi-cmd-disas.c, mi/mi-cmd-env.c, mi/mi-cmd-file.c: Update.
332 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-getopt.c: Update.
333 * mi/mi-symbol-cmds.c, tui/tui-layout.c, tui/tui-stack.c: Update.
334 * tui/tui-win.c: Update.
335
3517749c
ILT
3362005-02-10 Ian Lance Taylor <ian@airs.com>
337
338 * MAINTAINERS: Update my e-mail address.
339
cf309262
DJ
3402005-02-10 Daniel Jacobowitz <dan@debian.org>
341
342 From Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>:
343 PR exp/1821
344 * cp-valprint.c: Include "language.h".
345 (cp_print_value_fields): Pass the current language to
346 fprintf_symbol_filtered.
347 * Makefile.in (cp-valprint.o): Update dependencies.
348
899506a8
AC
3492005-02-10 Andrew Cagney <cagney@gnu.org>
350
335cca0d
AC
351 * cli/cli-decode.c (add_setshow_enum_cmd, add_setshow_cmd_full)
352 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
353 (add_setshow_filename_cmd, add_setshow_string_cmd)
354 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Replace
355 print string parameter with fprint_setshow function.
356 * command.h (fprint_setshow_ftype): Define. Update declarations.
357 * cli/cli-setshow.c (do_setshow_command): When fprint_setshow is
358 available, use that.
359 * cli/cli-decode.h (struct cmd_list_element): Add field
360 fprint_setshow.
361 * complaints.c (fprint_setshow_complaints): New function.
362 (_initialize_complaints): Pass to add_setshow_zinteger_cmd.
363 * hppa-tdep.c (_initialize_hppa_tdep): Replace "print" parameter
364 with NULL.
365 * mips-tdep.c (_initialize_mips_tdep): Ditto.
366 * m32r-rom.c (_initialize_m32r_rom): Ditto.
367 * cris-tdep.c (_initialize_cris_tdep): Ditto.
368 * arm-tdep.c (_initialize_arm_tdep): Ditto.
369 * remote-rdi.c (_initialize_remote_rdi): Ditto.
370 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
371 * dwarf2read.c (_initialize_dwarf2_read): Ditto.
372 * frame.c (_initialize_frame): Ditto.
373 * target.c (initialize_targets): Ditto.
374 * maint.c (_initialize_maint_cmds): Ditto.
375 * observer.c (_initialize_observer): Ditto.
376 * infcall.c (_initialize_infcall): Ditto.
377 * breakpoint.c (_initialize_breakpoint): Ditto.
378 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
379 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
380
899506a8
AC
381 * cli/cli-setshow.c (do_setshow_command): Move code printing the
382 value to the end of the function. Handle MI and non-MI output
383 differently.
384
59c58d08
AC
3852005-02-09 Andrew Cagney <cagney@gnu.org>
386
7376b4c2
AC
387 * cli/cli-decode.c (add_setshow_enum_cmd): Drop set_result and
388 show_result parameters.
389 * mips-tdep.c (_initialize_mips_tdep): Update calls.
390 * command.h: Update declaration.
391 * arm-tdep.c (_initialize_arm_tdep, _initialize_arm_tdep): Update
392 calls.
393
11dced61
AC
394 * NEWS: Mention removed commands.
395 * m68hc11-tdep.c (show_regs): Delete, unused.
396 (_initialize_m68hc11_tdep): Delete deprecated "regs" command.
397 * gdb-events.sh: Delete deprecated "set eventdebug" and "show
398 eventdebug" commands.
399 * gdb-events.c: Regenerate.
400 * gdbarch.sh: Delete deprecated "set archdebug" and "show
401 archdebug" commands.
402 * gdbarch.c: Regenerate.
403 * cli/cli-cmds.c (init_cli_cmds): Delete deprecated "set
404 remotedebug" and "show remotedebug".
405 * arm-tdep.c (_initialize_arm_tdep): Delete deprecated "set arm
406 disassembly-flavor", "show arm disassembly-flavor", and
407 "othernames" commands.
408 (arm_othernames): Delete unused function.
409
b6e1c027
AC
410 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call)
411 (convert_code_addr_to_desc_addr): Convert any function code
412 address to the corresponding function's descriptor.
413 (ppc64_sysv_abi_return_value): have TYPE_CODE_ENUM and
414 TYPE_CODE_INT use the same code paths as TYPE_CODE_INT. When
415 writing, convert any function code address to the corresponding
416 descriptor.
417
59c58d08
AC
418 * config/sh/linux.mt (TDEPFILES): Add symfile-mem.o.
419 * config/powerpc/linux.mt (TDEPFILES): Ditto.
420 * config/pa/linux.mt (TDEPFILES): Ditto.
421 * config/mips/linux.mt (TDEPFILES): Ditto.
422 * config/m68k/linux.mt (TDEPFILES): Ditto.
423 * config/m32r/linux.mt (TDEPFILES): Ditto.
424 * config/ia64/linux.mt (TDEPFILES): Ditto.
425 * config/arm/linux.mt (TDEPFILES): Ditto.
426
b6e1c027
AC
4272005-02-09 Corinna Vinschen <vinschen@redhat.com>
428
429 * symmisc.c: Include gdb_stat.h.
430 (maintenance_print_msymbols): Use inode numbers to compare files.
431
91294c83
AC
4322005-02-08 Andrew Cagney <cagney@gnu.org>
433
d3cbe7ef
AC
434 * value.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
435 (METHOD_PTR_TO_VOFFSET): Move from here ...
436 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
437 (METHOD_PTR_TO_VOFFSET): ... to here.
438 * cp-valprint.c, p-valprint.c, eval.c: Include "cp-support.h".
439 * Makefile.in: Update dependencies.
440
6941d02a
AC
441 * exceptions.c: Do not include <setjmp.h>.
442 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP): Delete macros.
443 (catch_exception, catch_exceptions_with_msg, catch_errors)
444 (catch_command_errors): Use TRY_CATCH.
445 (struct catcher): Use EXCEPTIONS_SIGJMP_BUF.
446 (exceptions_state_mc_init): Rename catcher_init.
447 (exceptions_state_mc): Rename catcher_state_machine.
448 (exceptions_state_mc_action_iter)
449 (exceptions_state_mc_action_iter_1): New functions.
450 * exceptions.h: Include <setjmp.h>.
451 (EXCEPTIONS_SIGJMP_BUF, EXCEPTIONS_SIGSETJMP)
452 (EXCEPTIONS_SIGLONGJMP): Define.
453 (exceptions_state_mc_init, exceptions_state_mc_action_iter)
454 (exceptions_state_mc_action_iter_1): Declare.
455 (TRY_CATCH): Define.
456
179f02be
AC
457 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not set malloc name,
458 no longer needed.
459
8f135812
AC
460 * ppc-linux-nat.c (ppc_register_u_addr): Hack around 64-bit
461 PT_FPSCR breakage.
462
91294c83
AC
463 * value.c (struct value): Move to here ...
464 * value.h (struct value): ... from here. Copy comments to
465 corresponding function declarations, re-order.
466
dfa52d88
AC
4672005-02-07 Andrew Cagney <cagney@gnu.org>
468
9bbda503
AC
469 * value.c (set_value_bitpos, set_value_bitsize): Define.
470 * value.h (set_value_bitpos, set_value_bitsize): Declare.
471 * ada-lang.c, valarith.c: Update.
472
5086187c
AC
473 * cp-valprint.c, c-valprint.c, infcall.c: Use value_contents or
474 value_contents_writeable, include note that there are problems.
475 * breakpoint.c, infcall.c: Use VALUE_LVAL.
476
f5cf64a7
AC
477 * value.h (set_value_offset): Declare.
478 * value.c (set_value_offset): Declare.
479 * gnu-v2-abi.c, jv-valprint.c, valarith.c, valops.c: Update.
480 * findvar.c: Update.
481
17cf0ecd
AC
482 * value.h (value_next): Declare.
483 * value.c (value_next): Define.
484 * breakpoint.c: Update.
485
88e3b34b
AC
486 * value.h (deprecated_set_value_modifiable)
487 (deprecated_value_modifiable): Declare.
488 * value.c (deprecated_set_value_modifiable): Define.
489 (deprecated_value_modifiable): Define.
490 * ada-lang.c, valops.c, breakpoint.c, tracepoint.c: Update.
491
04624583
AC
492 * value.h (deprecated_set_value_type): Declare.
493 * value.c (deprecated_set_value_type): Define.
494 * hpacc-abi.c, gnu-v2-abi.c, cp-valprint.c: Update.
495 * c-valprint.c, jv-lang.c, objc-lang.c, ada-lang.c: Update.
496 * infcall.c, printcmd.c, valops.c, eval.c, p-exp.y: Update.
497 * ax-gdb.c, tracepoint.c: Update.
498
13bb5560
AC
499 * value.h (deprecated_value_lval_hack)
500 (deprecated_value_address_hack)
7d71e29c 501 (deprecated_value_internalvar_hack)
13bb5560
AC
502 (deprecated_value_regnum_hack): Declare.
503 (VALUE_LVAL, VALUE_ADDRESS, VALUE_INTERNALVAR)
504 (VALUE_FRAME_ID, VALUE_REGNUM): Use.
505 * value.c (deprecated_value_lval_hack)
506 (deprecated_value_address_hack)
7d71e29c 507 (deprecated_value_internalvar_hack)
13bb5560
AC
508 (deprecated_value_regnum_hack): Define.
509
b44d461b
AC
510 * value.h (VALUE_POINTED_TO_OFFSET): Delete.
511 (set_value_pointed_to_offset, value_pointed_to_offset): Declare.
512 * value.c (set_value_pointed_to_offset): Define
513 (value_pointed_to_offset): Define.
514 * valops.c: Update.
515
caadb61d
AC
516 * value.h (VALUE_EMBEDDED_OFFSET): Delete.
517 (value_embedded_offset, set_value_embedded_offset): Declare.
13c3b5f5 518 * value.c (value_embedded_offset): Define.
caadb61d 519 (set_value_embedded_offset): Define.
13c3b5f5
AC
520 * valops.c, p-valprint.c, mi/mi-main.c, hpacc-abi.c: Update.
521 * gnu-v3-abi.c, eval.c, c-valprint.c, cp-valprint.c: Update.
522 * cp-abi.h: Update.
523
dfa52d88
AC
524 * value.h (VALUE_LAZY): Delete
525 (set_value_lazy): Declare.
526 * value.c (set_value_lazy): Define.
527 * valops.c, valarith.c, jv-valprint.c, jv-lang.c: Update.
528 * gnu-v2-abi.c, findvar.c, dwarf2loc.c, ada-lang.c: Update.
529
0fd88904
AC
5302005-02-06 Andrew Cagney <cagney@gnu.org>
531
feb13ab0
AC
532 * value.h (VALUE_OPTIMIZED_OUT): Delete.
533 (value_optimized_out, set_value_optimized_out): Declare.
534 * value.c (set_value_optimized_out, value_optimized_out): Define.
535 * valprint.c, findvar.c, dwarf2loc.c: Update.
536
0fd88904
AC
537 * value.c (value_contents, value_contents_writeable): New
538 functions.
539 * value.h (VALUE_CONTENTS): Delete macro.
540 (value_contents, value_contents_writeable): Declare.
541 * xstormy16-tdep.c, value.c, valops.c, valarith.c: Update.
542 * stack.c, sparc-tdep.c, sparc64-tdep.c, sh-tdep.c: Update.
543 * sh64-tdep.c, scm-valprint.c, scm-exp.c, s390-tdep.c: Update.
544 * rs6000-tdep.c, p-valprint.c, printcmd.c: Update.
545 * ppc-sysv-tdep.c, mips-tdep.c, mi/mi-main.c: Update.
546 * m88k-tdep.c, m68hc11-tdep.c, m32r-tdep.c: Update.
547 * jv-valprint.c, ia64-tdep.c, hppa-tdep.c: Update.
548 * hpacc-abi.c, f-valprint.c, frv-tdep.c, eval.c: Update.
549 * c-valprint.c, cris-tdep.c, cp-valprint.c: Update.
550 * cli/cli-dump.c, breakpoint.c, avr-tdep.c, arm-tdep.c: Update.
551 * arm-linux-tdep.c, amd64-tdep.c, alpha-tdep.c: Update.
552 * ada-valprint.c, ada-lang.c: Update.
553
5b90c7b5
AC
5542005-02-03 Andrew Cagney <cagney@gnu.org>
555
556 * utils.c (xzalloc): New function.
557 * defs.h (XZALLOC): Use xzalloc.
558 (xzalloc): Declare.
559 * value.c (allocate_value): Allocate a zeroed buffer.
560 * mdebugread.c (xzalloc): Delete.
561
4754a64e
AC
5622005-02-02 Andrew Cagney <cagney@gnu.org>
563
d69fe07e
AC
564 * value.h (value_lazy): Declare.
565 * varobj.c, value.c, valops.c, valarith.c, printcmd.c: Update.
566 * cp-valprint.c, breakpoint.c, ada-lang.c: Update.
567
46615f07
AC
568 * value.h (VALUE_CONTENTS_ALL): Delete.
569 (value_contents_all): Declare.
570 * value.c (value_contents_all): New function.
571 * hpacc-abi.c, cp-valprint.c, valops.c, c-valprint.c: Update.
572 * m68k-tdep.c, i386-tdep.c, infcall.c, valops.c: Update.
573
4754a64e
AC
574 * value.c (value_enclosing_type): New function.
575 * value.h (VALUE_ENCLOSING_TYPE): Delete.
576 (value_enclosing_type): Declare.
577 * xstormy16-tdep.c, vax-tdep.c, m68k-tdep.c, i386-tdep.c: Update.
578 * gnu-v3-abi.c, hpacc-abi.c, infcall.c, valops.c: Update.
579
990a07ab
AC
580 * value.c (value_contents_all_raw)
581 (value_contents_raw): New functions.
582 * value.h (VALUE_CONTENTS_ALL_RAW, VALUE_CONTENTS_RAW): Delete.
583 (value_contents_raw, value_contents_all_raw): Declare functions.
584 (VALUE_CONTENTS, VALUE_CONTENTS_ALL): Update.
585 * std-regs.c, valarith.c, valops.c, eval.c: Update.
586 * tracepoint.c, findvar.c: Update.
587
ff2c3e5d
OF
5882005-02-01 Orjan Friberg <orjanf@axis.com>
589
590 * regformats/reg-cris.dat: New file with register definitions for CRIS.
591 * regformats/reg-crisv32.dat: Ditto for CRISv32.
592
c46f8c51
AC
5932005-01-31 Andrew Cagney <cagney@gnu.org>
594
595 * configure: Regenerate to track ../gettext.m4.
596
a80493b8
BI
5972005-01-29 Baurzhan Ismagulov <ibr@radix50.net>
598
599 * MAINTAINERS: Add myself to "Write After Approval".
600
3d263c1d
BI
601 * ax-gdb.c, ax-general.c, bcache.c, bfd-target.c, bsd-kvm.c,
602 * buildsym.c, c-lang.c, c-typeprint.c, c-valprint.c, charset.c,
603 * coff-pe-read.c, coffread.c, complaints.c, copying.c: I18n markup.
604
c21a4eee
MK
6052005-01-29 Mark Kettenis <kettenis@gnu.org>
606
607 * configure.ac: Remove extra check for ranlib.
608 * configure: Regenerated.
609
108d6ead
AC
6102005-01-28 Andrew Cagney <cagney@gnu.org>
611
a2bd3dcd
AC
612 * language.h (struct language_defn): Make la_val_print's buffer
613 parameter a const bfd_byte.
614 * cp-valprint.c (cp_print_value_fields, cp_print_value): Update.
615 * ada-lang.c (ada_aligned_value_addr)
616 (ada_value_primitive_packed_val, ada_which_variant_applies): Update.
617 * valprint.c (val_print_array_elements): Update.
618 * valprint.h (val_print_array_elements): Update.
619 * ada-lang.h (ada_val_print, ada_aligned_value_addr)
620 (ada_value_primitive_packed_val, ada_which_variant_applies): Update.
621 * ada-valprint.c (ada_val_print, struct ada_val_print_args)
622 (ada_val_print_1, ada_print_floating, printable_val_type)
623 (print_record, val_print_packed_array_elements)
624 (print_field_values, print_variant_part): Update.
625 * c-lang.h (c_val_print, cp_print_value_fields): Update.
626 * c-valprint.c (c_val_print): Update.
627 * f-lang.h (f_val_print): Update.
628 * f-valprint.c (f_val_print, f77_print_array_1)
629 (f77_print_array): Update.
630 * jv-lang.h (java_val_print): Update.
631 * jv-valprint.c (java_print_value_fields, java_val_print): Update.
632 * language.c (unk_lang_val_print): Update.
633 * m2-lang.h (m2_val_print): Update.
634 * m2-valprint.c (m2_val_print): Update.
635 * p-lang.h (pascal_val_print): Update.
636 (pascal_object_print_value_fields): Update.
637 * p-valprint.c (pascal_val_print)
638 (pascal_object_print_value_fields, pascal_object_print_value)
639 (pascal_object_print_value): Update.
640 * scm-lang.h (scm_val_print): Update.
641 * scm-valprint.c (scm_val_print): Update.
642 * value.h (val_print): Update.
643
5bcca90b
AC
644 * p-lang.h (pascal_object_print_class_member)
645 (pascal_object_print_class_method): Make buffer a const bfd_byte.
646 * p-valprint.c (pascal_object_print_class_method)
647 (pascal_object_print_class_method): Ditto.
648
ce27fb25
AC
649 * language.h (struct language_defn): Make la_printstr's buffer
650 parameter a const bfd_byte.
651 * p-lang.h (pascal_printstr): Update function to match.
652 * ada-valprint.c (ada_printstr): Update function to match.
653 * scm-lang.c (scm_printstr): Update function to match.
654 * p-lang.c (pascal_printstr): Update function to match.
655 * ada-lang.h (ada_printstr): Update function to match.
656 * m2-lang.c (m2_printstr): Update function to match.
657 * objc-lang.c (objc_printstr): Update function to match.
658 * c-lang.h (c_printstr): Update function to match.
659 * f-lang.c (f_printstr): Update function to match.
660 * c-lang.c (c_printstr): Update function to match.
661 * language.c (unk_lang_printstr): Update function to match.
662
5f547748
AC
663 * valprint.c (val_print_type_code_int): Make buffer a const bfd_byte.
664 * valprint.h (val_print_type_code_int): Ditto.
665
bbb4b9db
AC
666 * objc-lang.h (c_val_print, c_value_print): Delete declarations.
667
9519ccd5
AC
668 * cp-valprint.c (cp_print_class_method)
669 (cp_print_class_member): Make buffer a const bfd_byte.
670 * c-lang.h (cp_print_class_member, cp_print_class_method): Ditto.
671
10a2c479
AC
672 * ada-lang.c (value_from_contents_and_address)
673 (to_record_with_fixed_variant_part)
674 (value_tag_from_contents_and_address, ada_to_fixed_type)
675 (to_fixed_variant_branch_type, to_fixed_record_type)
676 (ada_template_to_fixed_record_type, cond_offset_host)
677 (ada_template_to_fixed_record_type_1): Make buffer a const
678 bfd_byte.
679 * ada-lang.h (ada_template_to_fixed_record_type_1)
680 (value_from_contents_and_address, ada_to_fixed_type): Ditto.
681
d56612af
AC
682 * ada-valprint.c (char_at, printstr): Make buffer a const bfd_byte.
683
366b1cbf 684 * gdbtypes.h (print_scalar_formatted): Make buffer a const bfd_byte.
d56612af 685 * printcmd.c (print_scalar_formatted): Update.
366b1cbf 686
c84141d6
AC
687 * value.h (value_bit_index, print_floating)
688 (find_rt_vbase_offset): Make buffer a const bfd_byte.
689 * valprint.c (print_floating): Update.
690 * valarith.c (value_bit_index): Update.
691 * valops.c (find_rt_vbase_offset): Update.
692
6c403953
AC
693 * valprint.h (print_octal_chars, print_char_chars)
694 (print_hex_chars, print_decimal_chars, print_binary_chars): Make
695 buffer a const bfd_byte.
696 * valprint.c (print_binary_chars, print_octal_chars)
697 (print_decimal_chars, print_hex_chars, print_char_chars): Make
698 "valaddr"buffer a const bfd_byte, ditto for local variables
699 referencing that buffer.
700
a8d6eb4a
AC
701 * m2-valprint.c: Include "c-lang.h".
702 (c_val_print): Delete extern declaration.
703 * scm-valprint.c: Include "c-lang.h".
704 (c_val_print): Delete extern declaration.
705 Makefile.in: Update dependencies.
706
06c4d4dc
AC
707 * gnu-v2-abi.h (gnuv2_baseclass_offset): Make "valaddr" a const
708 bfd_byte.
709 * cp-abi.h (baseclass_offset): Make "valaddr" a const bfd_byte.
710 (struct cp_abi_ops): Make baseclass_offset's "valaddr" a const
711 bfd_byte.
712 * cp-abi.c (baseclass_offset): Update.
713 * gnu-v2-abi.c (gnuv2_baseclass_offset): Update.
714
6b08edad
AC
715 * gnu-v2-abi.h: New file.
716 * gnu-v2-abi.c: Include "gnu-v2-abi.h".
717 (gnuv2_baseclass_offset): Delete declaration.
718 * hpacc-abi.c: Include "gnu-v2-abi.h".
719 (gnuv2_baseclass_offset): Delete extern declaration.
720 * Makefile.in: Update dependencies.
721
108d6ead
AC
722 * doublest.c (floatformat_is_negative, floatformat_is_nan)
723 (floatformat_mantissa, get_field): Make the buffer a const
724 bfd_byte, simplify.
725
a53bf506
AC
7262005-01-27 Andrew Cagney <cagney@gnu.org>
727
8cc2524a
AC
728 * value.h (struct value): Change type of contents to bfd_byte.
729 (VALUE_CONTENTS_RAW): Simplify.
730
79dd2d24
AC
731 * gdbarch.sh (integer_to_address): Change buf parameter to a const
732 bfd_byte, make pure-multi-arch.
733 * gdbarch.h, gdbarch.c: Regenerate.
734 * mips-tdep.c (mips_integer_to_address): Update.
735 * value.c (value_as_address): Update.
736
c26b8e3b
AC
737 * cli/cli-dump.h (fopen_with_cleanup): Make "filename" const.
738 * cli/cli-dump.c (dump_binary_file, dump_bfd_file): Make string
739 parameters const, change buf to a const bfd_byte.
740 (fopen_with_cleanup, bfd_openw_with_cleanup): Make all string
741 parameters const.
742
10e2d419
AC
743 * corefile.c (write_memory): Update, make a copy of the read-only
744 buffer.
745 * target.c (target_read_memory): Update.
746 (target_write_memory): Update, make a copy of the read-only
747 buffer.
748 * gdbcore.h (write_memory): Change buffer type to bfd_byte, make
749 const.
750 * target.h (target_read_memory, target_write_memory): Change
751 buffer type to bfd_byte; for write_memory, make it const.
752 * symfile-mem.c (do_target_read_memory): New function.
753 (symbol_file_add_from_memory): Pass do_target_read_memory to
754 bfd_elf_bfd_from_remote_memory.
755
89f5065b
AC
756 * value.h: Indent using gdb_indent.sh.
757
a53bf506
AC
758 * configure: Regenerate to track ../gettext.m4 change.
759
c44ca51c
AC
7602005-01-26 Andrew Cagney <cagney@gnu.org>
761
762 * rs6000-tdep.c: Include "reggroups.h".
763 (rs6000_gdbarch_init): Set register_reggroup_p.
764 (rs6000_register_reggroup_p): New function.
765
c600d464
OF
7662005-01-26 Orjan Friberg <orjanf@axis.com>
767
768 * cris-tdep.c (enum cris_num_regs, enum cris_regnums)
769 (cris_sigtramp_frame_unwind_cache, cris_register_size): Update for
770 CRISv32.
771 (crisv32_single_step_through_delay, cris_can_use_hardware_watchpoint)
772 (cris_region_ok_for_watchpoint, cris_stopped_data_address)
773 (crisv32_cannot_fetch_register, crisv32_cannot_store_register)
774 (crisv32_register_type, cris_special_register_name)
775 (crisv32_register_name): New functions.
776 (cris_spec_reg_applicable): Recognize more versions.
777 (cris_register_name): Update with call to cris_special_register_name.
778 (find_cris_op): Filter out CRISv32 instructions. Tweaked comment and
779 warning when unable to find step target.
780 (CRISV10_ELF_NGREG, CRISV32_ELF_NGREG, crisv32_elf_gregset_t): Define.
781 (supply_gregset): Add struct gdbarch_tdep. Set pseudo-PC register for
782 CRISv32.
783 (fetch_core_registers): Update for CRISv32.
784 (cris_gdbarch_init): Set pc_regnum, register_type, num_regs,
785 register_name, cannot_store_register, cannot_fetch_register,
786 have_nonsteppable_watchpoint, single_step_through_delay for CRISv32.
787
82c94ed0
NR
7882005-01-26 Nick Roberts <nickrob@snap.net.nz>
789
790 * interps.c (interpreter_exec_cmd): Use condition,
791 e.reason < 0, to raise an error.
792
0598a43c
AC
7932005-01-25 Andrew Cagney <cagney@gnu.org>
794
a8f60bfc
AC
795 * ppc-linux-tdep.c: Include "tramp-frame.h"
796 (struct ppc_linux_sigtramp_cache)
797 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
798 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
799 (ppc_linux_sigtramp_cache): Delete.
800 (ppc32_linux_sigaction_cache_init)
801 (ppc64_linux_sigaction_cache_init)
802 (ppc32_linux_sighandler_cache_init)
803 (ppc64_linux_sighandler_cache_init)
804 (ppc32_linux_sigaction_tramp_frame)
805 (ppc64_linux_sigaction_tramp_frame)
806 (ppc32_linux_sighandler_tramp_frame)
807 (ppc64_linux_sighandler_tramp_frame)
808 (ppc_linux_sigtramp_cache, ppc_linux_init_abi): Implement 32 and
809 64-bit, sigaction and siginfo tramp-frame unwinders.
810
0598a43c
AC
811 * ppc-linux-tdep.c (ppc_linux_init_abi): Always set
812 long_double_bit to 8.
813
9d799f85
AC
8142005-01-24 Andrew Cagney <cagney@gnu.org>
815
816 * infrun.c (handle_inferior_event): Handle back-to-back and nested
817 signals where the step_resume_breakpoint may have already been
818 inserted.
819
45181ed1
AC
8202005-01-24 Andrew Cagney <cagney@gnu.org>
821
822 * configure: Regenerate, ../gettext.m4 was updated.
823
a28109e0
MK
8242005-01-23 Mark Kettenis <kettenis@gnu.org>
825
6fe85783
MK
826 * NEWS: Mention new BSD user-level threads support.
827
a28109e0
MK
828 * i386obsd-tdep.c: Update copyright year. Include
829 "bsd-uthread.h".
830 (i386obsd_uthread_reg_offset): New variable.
831 (I386OBSD_UTHREAD_ESP_OFFSET): New define.
832 (i386obsd_supply_uthread, i386obsd_collect_uthread): New
833 functions.
834 (i386obsd_init_abi): Set supply_uthread and collect_uthread.
835 * Makefile.in (i386obsd-tdep.o): Update dependencies.
836 * config/i386/obsd.mt (TDEPFILES): Add bsd-uthread.o.
837
059198c1
CF
8382005-01-23 Christopher Faylor <cgf@timesys.com>
839
840 * win32-nat.c: Update copyright year.
841 (child_init_thread_list): Set thread linked list point to NULL so that
842 it won't be reused after clearing.
843
5c45e068
MK
8442005-01-21 Mark Kettenis <kettenis@gnu.org>
845
846 * acconfig.h (HAVE_STRUCT_REG_R_FS, HAVE_STRUCT_R_GS): Remove
847 undefs.
848 * configure.ac: Use AC_CHECK_MEMBERS to check whether `struct
849 thread' has a td_pcb member and whether `struct reg' has r_fs and
850 r_gs members.
851 * configure, config.in: Regenerate.
852
666ec76f
MK
8532005-01-21 Mark Kettenis <kettenis@gnu.org>
854
b8667b61
MK
855 * configure.ac: Remove ia64-*-aix* junk.
856 * configure: Regenerate.
857
a3828db0
MK
858 * configure.ac: Use AC_CHECK_DECLS instead of gcc_AC_CHECK_DECLS
859 and BFD_NEED_DECLARATION. Don't check if a declaration of strdup
860 is necessary.
861 * configure, config.in: Regenerate.
862 * utils.c: Adjust for usage of AC_CHECK_DECLS instead of
863 BFD_NEED_DECLARATION. Never provide a prototype for
864 caninicalize_file_name.
865 * gdb_string.h: Adjust for usage of AC_CHECK_DECLS instead of
866 BFD_NEED_DECLARATION.
867
666ec76f
MK
868 * configure.ac (targ_archs): Use standard autoconf check for
869 "struct stat.st_blocks" instead of rolling our own.
870 * configure: Regenerated.
871 * acconfig.h (HAVE_STRUCT_STAT_ST_BLOCKS): Remove undef.
872 * config.in: Regenerated.
873
bc8bcb4b
MK
8742005-01-21 Mark Kettenis <kettenis@gnu.org>
875
876 * configure.ac: Modernize checks for `long long' and `long double'
877 support.
878 * configure: Regenerated.
879 * acconfig.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG)
880 (PRINT_HAS_LONG_DOUBLE, SCANF_HAS_LONG_DOUBLE): Remove undefs.
881 * config.in: Regenerated.
882
30adeb3a
MK
8832005-01-20 Mark Kettenis <kettenis@gnu.org>
884
885 * acconfig.h (HAVE_STRUCT_SAVE_STATE_T)
886 (HAVE_STRUCT_MEMBER_SS_WIDE): Remove undefs.
887 * configure.ac: Remove checks for HP-UX save_state structure.
888 * configure: Regenerated.
889
e06e2353
AC
8902005-01-19 Andrew Cagney <cagney@gnu.org>
891
892 * utils.c (quit): Simplify, call fatal.
893 * exceptions.c: Include "serial.h"
894 (print_flush): Mimic flush code found in utils.c:quit.
895 * Makefile.in: Update dependencies.
896
1c44323f
JB
8972005-01-19 Jim Blandy <jimb@redhat.com>
898
065a1afc
JB
899 * configure.tgt: Set build_rdi_share to "yes" on those targets
900 that use that debugging protocol.
901 Set build_nlm to yes to build NLM stub for Netware targets.
902 * configure.ac: If build_rdi_share is "yes", then configure the
903 rdi-share subdirectory.
904 If build_nlm is "yes", the configure the "nlm" subdirectory.
905 * configure: Regenerated.
906
1c44323f
JB
907 * rdi-share/configure, rdi-share/aclocal.m4: Regenerated using
908 autoconf 2.59 and automake 1.9.3.
909
8a9de0e4
AC
9102005-01-19 Andrew Cagney <cagney@gnu.org>
911
315a522e
AC
912 * exceptions.h (deprecated_throw_reason): Rename throw_reason.
913 * exceptions.c (deprecated_throw_reason): Rename throw_reason.
914 * utils.c (internal_verror, quit): Update.
915 * remote-sds.c (interrupt_query): Update.
916 * remote-mips.c (mips_error, mips_kill): Update.
917 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Update.
918 * remote.c (interrupt_query): Update.
919 * ocd.c (interrupt_query): Update.
920 * nto-procfs.c (interrupt_query): Update.
921 * monitor.c (monitor_interrupt_query): Update.
922 * breakpoint.c (break_command_1): Update.
923
8a9de0e4
AC
924 * infrun.c: (resume, proceed, wait_for_inferior)
925 (handle_inferior_event, stop_stepping)
926 (prepare_to_wait): Write debug output to gdb_stdlog.
927
53283f86
MK
9282005-01-19 Mark Kettenis <kettenis@gnu.org>
929
930 * inf-ptrace.c (inf_ptrace_prepare_to_store)
931 (inf_ptrace_post_startup_inferior)
932 (inf_ptrace_acknowledge_created_inferior)
933 (inf_ptrace_insert_fork_catchpoint)
934 (inf_ptrace_remove_fork_catchpoint)
935 (inf_ptrace_insert_vfork_catchpoint):
936 (inf_ptrace_remove_vfork_catchpoint, inf_ptrace_follow_fork)
937 (inf_ptrace_insert_exec_catchpoint)
938 (inf_ptrace_remove_exec_catchpoint): Remove functions.
939 (inf_ptrace_reported_exec_events_per_exec_call): Tweak comment.
940 (inf_ptrace_target): Don't set to_prepare_to_store,
941 to_post_startup_inferior, to_acknowledge_created_inferior,
942 to_insert_fork_ctachpoint, to_remove_fork_catchpoint,
943 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
944 to_follow_fork, to_insert_exec_catchpoint,
945 to_remove_exec_catchpoint.
946
9ee907e0
AC
9472005-01-18 Andrew Cagney <cagney@gnu.org>
948
fa113d1a
AC
949 * target.h (struct target_ops): Change return type of
950 to_insert_fork_catchpoint, to_insert_vfork_catchpoint and
951 to_insert_exec_catchpoint to void.
952 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
953 (child_insert_exec_catchpoint): Change return type to void.
954 * target.c (update_current_target): Update.
955 (debug_to_insert_fork_catchpoint)
956 (debug_to_insert_vfork_catchpoint)
957 (debug_to_insert_exec_catchpoint): Update.
958 * inf-child.c (inf_child_insert_fork_catchpoint)
959 (inf_child_insert_vfork_catchpoint)
960 (inf_child_insert_exec_catchpoint): Update.
961 * breakpoint.c (insert_catchpoint): Update, do not throw an error.
962 * linux-nat.c (child_insert_fork_catchpoint)
963 (child_insert_vfork_catchpoint)
964 (child_insert_exec_catchpoint): Update.
965 * inftarg.c (child_insert_fork_catchpoint)
966 (child_insert_vfork_catchpoint,)
967 (child_insert_exec_catchpoint): Update.
968
9ee907e0
AC
969 * remote.c (remote_open_1): Use throw_exception.
970
295093a4
MS
9712005-01-17 Michael Snyder <msnyder@redhat.com>
972
973 * mips-linux-tdep.c: Whitespace tweaks.
974
4bcff7eb
CV
9752005-01-17 Corinna Vinschen <vinschen@redhat.com>
976
977 * infcmd.c (attach_command): Call CLEAR_SOLIB if available.
978
637537d0
AC
9792005-01-17 Andrew Cagney <cagney@gnu.org>
980
981 * top.h (source_error, source_pre_error): Delete declaration.
982 * cli/cli-script.c (source_error_allocated, source_error): Delete.
983 (script_from_file, source_cleanup_lines): Do not manipulate
984 source_error_allocated, error_pre_print and source_error.
985 (struct source_cleanup_lines_args): Delete fields old_pre_error,
986 and old_error_pre_print.
987 * top.c (source_error_allocated, source_error)
988 (source_pre_error): Delete.
989 (command_line_input): Do not set error_pre_print.
990 * event-top.c (command_line_handler): Do not set error_pre_print.
991
12b21d12
JT
9922005-01-16 Jason Thorpe <thorpej@netbsd.org>
993
994 * MAINTAINERS: Update my email address.
995
1c02b2a5
MK
9962005-01-16 Mark Kettenis <kettenis@gnu.org>
997
c401b55a
MK
998 * configure.ac: Provide prerequisite headers when checking
999 <term.h>.
1000 * configure: Regenerate.
1001
1c02b2a5
MK
1002 * amd64fbsd-tdep.c: Update copyright year. Include "gdb_assert.h"
1003 and "bsd-uthread.h".
1004 (amd64fbsd_jmp_buf_reg_offset): New variable.
1005 (amd64fbsd_supply_uthread, amd64fbsd_collect_uthread): New
1006 functions.
1007 (amd64fbsd_init_abi): Set supply_uthread and collect_uthread.
1008 * i386fbsd-tdep.c: Fix typo.
1009 * Makefile.in (amd64fbsd-tdep.o): Update dependencies.
1010 * config/i386/fbsd64.mt (TDEPFILES): Add bsd-uthread.o.
1011
17d92a02
AC
10122005-01-16 Andrew Cagney <cagney@gnu.org>
1013
1014 * cli/cli-script.c: Include "exceptions.h".
1015 (struct wrapped_read_command_file_args): Define.
1016 (wrapped_read_command_file): New function.
1017 (script_from_file): Replace direct call to read_command_file by
1018 one wrapped by an exception handler.
1019 * exceptions.c (throw_it): Free the old message after creating the
1020 new.
1021 * Makefile.in: Update dependencies.
1022
80ad1639
MK
10232005-01-16 Mark Kettenis <kettenis@gnu.org>
1024
ae036357
MK
1025 * sparc64fbsd-tdep.c: Update copyright year.
1026 (sparc64fbsd_collect_gregset, sparc64fbsd_collect_fpregset): New
1027 functions.
1028 (sparc64fbsd_init_abi): Create register sets with collect
1029 functions.
1030
ca5807d9
MK
1031 * sparc64fbsd-nat.c: Include "fbsd-nat.h".
1032 (_initialize_sparc64fbsd_nat): Add some extra features to the
1033 generic SPARC target.
1034 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
1035 * config/sparc/fbsd.mh (NATDEPFILES): Add fbsd-nat.o and gcore.o.
1036 (NAT_FILE): Set to solib.h.
1037 * config/sparc/nm-fbsd.h: Remove file.
1038
c4f2d4d7
MK
1039 * sparc64-tdep.c (sparc64_store_arguments): Fix typo.
1040
80ad1639
MK
1041 * sparc-tdep.c (sparc_integral_or_pointer_p): Simplify.
1042
6212a5e9
AC
10432005-01-16 Andrew Cagney <cagney@gnu.org>
1044
1045 * exceptions.c (struct catcher): Delete saved_error_pre_print and
1046 saved_quit_pre_print.
1047 (catcher_init): Delete parameter errstring, do not override the
1048 pre_print strings.
1049 (catcher_pop): Do not restore the pre_print strings.
1050 (catch_exception, catch_exceptions_with_msg, catch_errors)
1051 (catch_command_errors): Update catch_init calls.
1052
936df4b3
MK
10532005-01-16 Mark Kettenis <kettenis@gnu.org>
1054
1055 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
1056 * sparc64fbsd-nat.c: Update copyright year. Include "target.h".
1057
3af1e0e3
AC
10582005-01-15 Andrew Cagney <cagney@gnu.org>
1059
85981d60
AC
1060 * acinclude.m4: Include ../bfd/bfd.m4 instead of
1061 ../bfd/acinclude.m4. Include ../gettext.m4.
1062 * aclocal.m4, configure: Re-generate.
1063
5a14cc1a
AC
1064 * exceptions.c (do_captured_command)
1065 (struct captured_command_args): Delete.
1066 (catch_command_errors): Simplify by inlining call to catch_errors.
1067
3af1e0e3
AC
1068 * exceptions.c (struct catcher): Delete field print_message.
1069 (catcher_init): Delete print_message parameter.
1070 (catch_exception, catch_exceptions_with_msg, catch_errors): Update.
1071 (throw_it): Delete prefix parameter.
1072 (throw_verror, throw_vfatal, throw_error): Update.
1073
d0555901
AC
10742005-01-14 Andrew Cagney <cagney@gnu.org>
1075
e48f5bee
AC
1076 * exceptions.c (print_and_throw): Delete, replaced by throw_it.
1077 (throw_reason): Leave the exception's message field blank.
1078 (throw_it): New function, create the exception and throw it.
1079 (throw_verror, throw_vfatal, throw_error): Call throw_it.
1080 (print_any_exception): New function.
1081 (catch_errors, catch_exceptions_with_msg): Call
1082 print_any_exception.
1083 (throw_exception): Move code calling annotate_error and
1084 annotate_quit from here ...
1085 (print_exception): ... to here.
1086
c6da7a6d
AC
1087 * exceptions.c (exception_fprintf, exception_print): Move printing
1088 of \n from here ...
1089 (print_exception): ... to here.
1090 (print_flush): New function.
1091 (exception_print, exception_fprintf): Replace duplicated flush and
1092 wrap code with call to print_flush.
1093 (print_and_throw): Simplify, by using xstrvprintf, print_flush,
1094 and print_exception.
1095 (do_write): Delete.
1096
d0555901
AC
1097 * remote-sds.c (interrupt_query): Call throw_reason instead of
1098 throw_exception.
1099 * remote-mips.c (mips_error, mips_kill): Ditto
1100 * ocd.c (interrupt_query): Ditto.
1101 * nto-procfs.c (interrupt_query): Ditto.
1102 * monitor.c (monitor_interrupt_query): Ditto.
1103
949df321
JJ
11042005-01-14 Jeff Johnston <jjohnstn@redhat.com>
1105
1106 * ia64-linux-nat.c: Include "ia64-tdep.h" to get register definitions.
1107
bc8332bb
AC
11082005-01-14 Andrew Cagney <cagney@gnu.org>
1109
1c3c7ee7
AC
1110 * exceptions.h (catch_exceptions): Delete errstring parameter.
1111 (catch_exceptions_with_msg): Ditto.
1112 * exceptions.c (catch_exceptions_with_msg): Update.
1113 (catch_exceptions): Update.
1114 * symfile-mem.c (add_vsyscall_page): Update.
1115 * frame.c (get_current_frame): Update.
1116 * wrapper.c (gdb_value_struct_elt): Update.
1117 * exceptions.c (catch_exceptions): Update.
1118 * thread.c (gdb_list_thread_ids, gdb_thread_select): Update.
1119 * breakpoint.c (gdb_breakpoint_query, gdb_breakpoint): Update.
1120 * remote-fileio.c (remote_fileio_request): Update.
1121
9cbc821d
AC
1122 * exceptions.h (exception_fprintf): Declare.
1123 (exception_print): Drop pre_print parameter.
1124 * mi/mi-main.c (mi_execute_command): Update exception_print call.
1125 * cli/cli-interp.c (safe_execute_command): Update exception_print
1126 call.
1127 * remote.c (remote_open_1): Instead of passing an error prefix to
1128 catch_exceptions, use catch_exceptions and exception_fprintf.
1129 (remote_start_remote): Change return type to void.
1130 * breakpoint.c (insert_bp_location): Instead of passing an error
1131 prefix to catch_exceptions, use catch_exceptions and
1132 exception_fprintf.
1133 (insert_catchpoint): Change return type to void.
1134 (break_command_1): Update exception_print call.
1135 * exceptions.c (exception_fprintf): New function.
1136 (print_exception): New function.
1137 (exception_print): Use print_exception.
1138
22e9b0f1
AC
1139 * utils.c (error_output_message): Delete function.
1140 * defs.h (error_output_message): Delete declaration.
1141
05ff989b
AC
1142 * linespec.c (symtab_from_filename, decode_variable): Use
1143 throw_error instead of error_silent.
1144 * breakpoint.c (do_captured_parse_breakpoint): Change return type
1145 to void.
1146 (break_command_1): Use catch_exception and check the error return
1147 status.
1148 * exceptions.c (throw_error): New function.
1149 (throw_vsilent): Delete function.
1150 * exceptions.h (throw_error): Declare.
1151 (throw_vsilent): Delete declaration.
1152 * utils.c (error_silent): Delete function.
1153 * defs.h (error_silent): Delete declaration.
1154
8a076db9
AC
1155 * mi/mi-main.c (mi_execute_command): Print the exception.
1156 * cli/cli-interp.c (safe_execute_command): Print the exception.
1157 * exceptions.h (exception_print): Declare.
1158 * exceptions.c (struct catcher): Add field print_message.
1159 (catcher_init): Add parameter print_message, store in the catcher
1160 struct.
1161 (print_and_throw): Only print the message when print_message.
1162 (catch_exceptions_with_msg, catch_errors): Pass print_message=1 to
1163 catcher_init.
1164 (catch_exception): Pass print_message=0 to catcher_init.
1165
bc8332bb
AC
1166 * varobj.c (varobj_create): Add missing \n.
1167
d183932d
MS
11682005-01-13 Michael Snyder <msnyder@redhat.com>
1169
4e18e2de 1170 * cli/cli-decode.h: Whitespace tweaks.
ca0b4d12 1171 * wince.c: Whitespace tweaks.
887a3a14 1172 * uw-thread.c: Whitespace tweaks.
0a4a0819 1173 * utils.c: Whitespace tweaks.
d183932d
MS
1174 * tracepoint.[ch]: Whitespace tweaks.
1175 * solist.h: Whitespace tweaks.
1176
6b1b7650
AC
11772005-01-13 Andrew Cagney <cagney@gnu.org>
1178
b315da38
AC
1179 * exceptions.h (struct exception): Make message const.
1180 * mi/mi-main.c (mi_execute_command): Pass result.message directly
1181 to fputstr_unfiltered.
1182
79e714b4
AC
11832005-01-13 Michael Snyder <msnyder@redhat.com>
1184
1185 * stack.c: Whitespace tweaks.
1186 * somsolib.[ch]: Whitespace tweaks.
1187 * solib-aix.c: Whitespace tweaks.
1188 * solib.c: Whitespace tweaks.
1189 * solib-frv.c: Whitespace tweaks.
1190 * solib.h: Whitespace tweaks.
1191 * solib-irix.c: Whitespace tweaks.
1192 * solib-som.c: Whitespace tweaks.
1193 * solib-sunos.c: Whitespace tweaks.
1194 * solib-svr4.[ch]: Whitespace tweaks.
1195 * ser-tcp.c: Whitespace tweaks.
1196 * ser-unix.c: Whitespace tweaks.
1197 * serial.h: Whitespace tweaks.
1198 * scm-valprint.c: Whitespace tweaks.
1199 * rs6000-tdep.c: Whitespace tweaks.
1200 * rs6000-nat.c: Whitespace tweaks.
1201 * remote.c: Whitespace tweaks.
1202
12032005-01-13 Andrew Cagney <cagney@gnu.org>
1204
6b1b7650
AC
1205 * defs.h (error_last_message, error_init): Delete declaration.
1206 * utils.c (fatal, vfatal): Call throw_vfatal.
1207 (error, verror): Call throw_verror;
1208 (do_write, error_stream_1): Delete function.
1209 (error_stream): Simplify, call error.
1210 (error_last_message, error_init, gdb_lasterr): Delete.
1211 (error_silent): Simplify, call throw_vsilent.
1212 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dup the message.
1213 * main.c (captured_main): Delete call to error_init.
1214 * exceptions.c (throw_verror, throw_verror)
1215 (throw_vsilent): New functions.
1216 (do_write, print_and_throw): New functions.
1217 (last_message): New global.
1218 (throw_reason): Replace error_last_message with last_message.
1219 (catch_exceptions_with_msg): Dup the message.
1220 * exceptions.h (throw_verror, throw_vfatal, throw_vsilent):
1221 Declare.
1222
4791eb66
MS
12232005-01-13 Michael Snyder <msnyder@redhat.com>
1224
90c065fb 1225 * remote-st.c: Whitespace tweaks.
8a0ce09a 1226 * remote-sim.c: Whitespace tweaks.
1fa79fac 1227 * remote-mips.c: Whitespace tweaks.
beda9597 1228 * pa64solib.[ch]: Whitespace tweaks.
28397f59 1229 * mdebugread.c: Whitespace tweaks.
ba5e7e8d 1230 * main.c: Whitespace tweaks.
907d819a 1231 * interps.c: Whitespace tweaks.
9d1ff73f 1232 * infrun.c: Whitespace tweaks.
1f5d0fc9 1233 * infcmd.c: Whitespace tweaks.
d9788fe8 1234 * hpux-thread.c: Whitespace tweaks.
3b951200 1235 * hppa-hpux-tdep.c: Whitespace tweaks.
3a9a986f 1236 * gdbcore.h: Whitespace tweaks.
d3f17821 1237 * gdbcmd.h: Whitespace tweaks.
30867156 1238 * gdb-events[.c, .h, .sh]: Whitespace tweaks.
de6854b5 1239 * corefile.c: Whitespace tweaks.
03717487 1240 * completer.c: Whitespace tweaks.
9b5c5aad
MS
1241 * coff-solib.c: Whitespace tweaks.
1242 * coff-solib.h: Whitespace tweaks.
30fdc99f 1243 * cli-out.c: Whitespace tweaks.
1272ad14 1244 * breakpoint.c: Whitespace tweaks.
4791eb66
MS
1245 * cli/cli-interp.c: Tweak comments, per coding standard.
1246
f30f06b8
AC
12472005-01-13 Andrew Cagney <cagney@gnu.org>
1248
ce43223b
AC
1249 * breakpoint.c (gdb_breakpoint_query): Update, use
1250 catch_exceptions_with_msg.
1251 (do_captured_breakpoint): Add uiout parameter.
1252 (gdb_breakpoint): Update, use catch_exceptions_with_msg.
1253 * mi/mi-main.c (mi_cmd_thread_select): Pass mi_error_message to
1254 gdb_thread_select. Return MI_CMD_ERROR instead of
1255 MI_CMD_CAUGHT_ERROR.
1256 (mi_cmd_thread_list_ids): Ditto for gdb_list_thread_ids.
1257 (enum captured_mi_execute_command_actions): Delete
1258 EXECUTE_COMMAND_DISPLAY_ERROR.
1259 (captured_mi_execute_command): Delete code handling
1260 MI_CMD_CAUGHT_ERROR.
1261 (mi_execute_command): Don't check for
1262 EXECUTE_COMMAND_DISPLAY_ERROR.
1263 * mi/mi-cmd-break.c (breakpoint_notify): Update call to
1264 gdb_breakpoint_query.
1265 (mi_cmd_break_insert): Pass mi_error_message to gdb_breakpoint.
1266 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_CAUGHT_ERROR.
1267 * gdb.h (gdb_thread_select, gdb_list_thread_ids)
1268 (gdb_breakpoint, gdb_breakpoint_query): Add error_message
1269 parameter.
1270 * thread.c (thread_command): Update call.
1271 (gdb_thread_select, gdb_list_thread_ids): Update, call
1272 catch_exceptions_with_msg.
1273
f30f06b8
AC
1274 * mi/mi-main.c (mi_execute_command): Use catch_exception,
1275 eliminate call to error_last_message.
1276 (captured_mi_execute_command): Change return type to void.
1277
2a78bfb5
AC
12782005-01-12 Andrew Cagney <cagney@gnu.org>
1279
c1043fc2
AC
1280 * exceptions.c (exception_none): New variable.
1281 * Makefile.in: Update dependencies.
1282 * interps.c: Include "exceptions.h".
1283 (interpreter_exec_cmd, interp_exec): Update to return "struct
1284 exception"
1285 * exceptions.h (no_exception): Declare.
1286 * tui/tui-interp.c (tui_exec): Update to return "struct exception"
1287 * mi/mi-interp.c: Include "exceptions.h".
1288 (mi_cmd_interpreter_exec, mi_interpreter_exec): Update to return
1289 'struct exception".
1290 * cli/cli-interp.c (cli_interpreter_exec, safe_execute_command)
1291 (do_captured_execute_command): Update to use catch_exception.
1292 * interps.h: Include "exceptions.h".
1293 (interp_exec_ftype, interp_exec): Return "struct exception".
1294
2a78bfb5
AC
1295 * exceptions.h (throw_reason): Rename throw_exception.
1296 (enum errors, struct exception): Define.
1297 (catch_exception_ftype): Define.
1298 (catch_exception, throw_exception): Declare.
1299 * exceptions.c (throw_exception): Rewrite.
1300 (throw_reason): New function.
1301 (struct catcher, catcher_state_machine): Replace "reason" with
1302 "exception", delete "gdberrmsg".
1303 (catch_exception): New function.
1304 (catcher_init): Replace "gdberrmsg" parameter with "exception".
1305 (catch_errors, catch_exceptions_with_msg): Re-implement passing
1306 exception to catcher_init.
1307 * utils.c (error_silent, error_stream_1): Use throw_reason.
1308 (internal_verror, quit): Ditto.
1309 * breakpoint.c (insert_catchpoint, break_command_1): Ditto.
1310 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Ditto.
1311 * remote.c (remote_open_1, interrupt_query): Ditto.
1312
8b1ca062
MK
13132005-01-12 Mark Kettenis <kettenis@gnu.org>
1314
fa565c2b
MK
1315 * i386fbsd-tdep.c: Update copyright year. Include "gdbcore.h",
1316 "regcache.h", "gdb_assert.h" and "bsd-uthread.h".
1317 (i386fbsd_jmp_buf_reg_offset): New variable.
1318 (i386fbsd_supply_uthread, i386fbsd_collect_uthread): New
1319 functions.
1320 (i386fbsdaout_init_abi): Set supply_uthread and collect_uthread.
1321 * Makefile.in (i386fbsd-tdep.o): Update dependency.
1322 * config/i386/fbsd.mt (TDEPFILES): Add bsd-uthread.o.
1323
82f5c14f
MK
1324 * bsd-uthread.h: New file.
1325 * bsd-uthread.c: New file.
1326 * Makefile.in (bsd_uthread_h): New variable.
1327 (ALLDEPFILES): Add bsd-uthread.c.
1328 (bsd-uthread.o): New dependency.
1329
42a6e6a0
MK
1330 * solib.h Update copyright year.
1331 (struct so_list): Forward declaration.
1332 (solib_read_symbols): New prototype.
1333 * solib.c (solib_read_symbols): New function.
1334 (solib_add): Call solib_read_symbols to read in symbols.
1335 (update_solib_list): Call observer_notify_solib_loaded.
1336
8b1ca062
MK
1337 * i386bsd-nat.c: Update copyright year. Don't include
1338 <sys/param.h> and <sys/user.h>.
1339 (register_u_addr, kernel_u_size): Remove functions.
1340 * config/i386/obsd.mh (NAT_FILE): Remove.
1341 * config/i386/obsdaout.mh (NAT_FILE): Set to solib.h.
1342 * config/i386/nm-obsd.h: Remove file.
1343
60250e8b
AC
13442005-01-12 Andrew Cagney <cagney@gnu.org>
1345
db5f402d
AC
1346 * exceptions.c: Include "gdb_string.h".
1347 (enum catcher_state, struct catcher): Define.
1348 (current_catcher): New global, replaces catch_return;
1349 (catch_return): Delete.
1350 (throw_exception): Use current_catcher->buf;
1351 (catcher_init, catcher_pop, catcher_state_machine): New functions.
1352 (catcher): Delete.
1353 (struct catch_errors_args): Delete.
1354 (do_catch_errors): Delete.
1355 (catch_exceptions): Replace body with call to
1356 catch_exceptions_with_msg.
1357 (catcher): Delete.
1358 (catch_exceptions_with_msg, catch_errors): Re-implement using
1359 catcher_state_machine.
1360
60250e8b
AC
1361 * exceptions.h (enum return_reason, RETURN_MASK)
1362 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL)
1363 (return_mask, throw_exception, catch_exceptions_ftype)
1364 (catch_exceptions_with_msg, catch_errors_ftype, catch_errors)
1365 (catch_command_errors_ftype, catch_command_errors): Move to
1366 exceptions.h.
1367 * exceptions.c, exceptions.h: New files.
1368 * top.c: Do not include <setjmp.h>.
1369 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, catch_return)
1370 (throw_exception, catcher, catch_exceptions)
1371 (catch_exceptions_with_msg, struct catch_errors_args)
1372 (do_catch_errors, catch_errors, struct captured_command_args)
1373 (do_captured_command, catch_command_errors): Move to exceptions.c.
1374 * wrapper.c, wince.c, win32-nat.c, utils.c: Include "exceptions.h".
1375 * tui/tui-interp.c, top.c, thread.c, symmisc.c: Ditto.
1376 * symfile-mem.c, stack.c, solib.c, rs6000-nat.c: Ditto.
1377 * remote-sds.c, remote-mips.c, remote-fileio.c: Ditto.
1378 * remote-e7000.c, objc-lang.c, ocd.c: Ditto.
1379 * remote.c, nto-procfs.c, monitor.c, mi/mi-main.c: Ditto.
1380 * main.c, m32r-rom.c, infrun.c, inf-loop.c: Ditto.
1381 * hppa-hpux-tdep.c, frame.c, event-top.c, event-loop.c: Ditto.
1382 * corelow.c, corefile.c, cli/cli-interp.c, breakpoint.c: Ditto.
1383 * ada-valprint.c, ada-lang.c: Ditto.
1384 * Makefile.in (HFILES_NO_SRCDIR, COMMON_OBS): Add exceptions.h and
1385 exceptions.o. Update all dependencies.
1386
ca14ead7
MK
13872005-01-11 Mark Kettenis <kettenis@gnu.org>
1388
eafc7eea
MK
1389 * config/i386/nm-fbsd.h: Update copyright year.
1390 Don't include "config/nm-bsd.h".
1391 (KERNEL_U_SIZE): Remove macro.
1392 (kernel_u_size): Remove prototype.
1393
ca14ead7
MK
1394 * config/vax/nbsdaout.mh (NAT_FILE): Remove.
1395 * config/vax/nm-nbsdaout.h: Remove file.
1396
4a39d934
EZ
13972005-01-10 Elena Zannoni <ezannoni@redhat.com>
1398
1399 * MAINTAINERS: Remove self from sh/sh64 maintainership.
1400
93f0f986
AC
14012005-01-10 Andrew Cagney <cagney@gnu.org>
1402
c4f9e2bf
AC
1403 * MAINTAINERS: List Andrew Cagney and Kevin Buettner as can commit
1404 changes to PowerPC, and Andrew Cagney as lead PowerPC GNU/Linux
1405 maintainer.
1406
6b71dd74
AC
1407 * MAINTAINERS: Hans-Peter Nilsson and Orjan Friberg can commit
1408 changes to CRIS.
1409
93f0f986
AC
1410 * MAINTAINERS: Remove "Maintenance Only". Spell out that CAN
1411 COMMIT means can approve).
1412
8785ced0
MK
14132005-01-10 Mark Kettenis <kettenis@gnu.org>
1414
2a2de4ce
MK
1415 * vax-nat.c: Update copyright year. Include "inf-ptrace.h".
1416 (vax_register_u_offset): Make statuc.
1417 (_initialize_vax_nat): Construct and add target vector.
1418 * config/vax/vax.mh (NATDEPFILES): Remove infptrace.o and
1419 inftarg.o. Add inf-ptrace.o.
1420 * Makefile.in (vax-nat.o): Update dependencies.
1421
8785ced0
MK
1422 * inf-ptrace.h: Update copyright year. Sync comment with
1423 inf-ptrace.c.
1424 (inf_ptrace_trad_target): New prototype.
1425 * inf-ptrace.c: Update copyright year. Include "regcache.h" and
1426 "gdb_assert.h"
1427 (inf_ptrace_target): Add comment.
1428 (inf_ptrace+register_u_offset): New variable.
1429 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
1430 (inf_ptrace_store_register, inf_ptrace_store_registers)
1431 (inf_ptrace_trad_target): New functions.
1432 * Makefile.in (inf-ptrace.o): Update dependencies.
1433
7cb9022a
MK
14342005-01-09 Mark Kettenis <kettenis@gnu.org>
1435
1436 * configure.ac: Provide prerequisite headers when checking
1437 <link.h>, <sys/proc.h> and <sys/user.h>.
1438 * configure: Regenerate.
1439
c534d641
MK
14402005-01-08 Mark Kettenis <kettenis@gnu.org>
1441
1442 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Set to
1443 tm-ppc-eabi.h instead of the removed tm-nbsd.h.
1444
4b48ac22
MK
14452005-01-07 Mark Kettenis <kettenis@gnu.org>
1446
1447 * config/ia64/tm-linux.h: Tweak comment. Update copyright year.
1448 Don't include "tm-ia64.h".
1449 * config/ia64/ia64.mt (DEPRECATED_TM_FILE): Remove.
1450 * config/ia64/tm-ia64.h: Remove. Move contents ...
1451 * ia64-tdep.h: ... here. Update copyright year.
1452
3ace7edb
AC
14532005-01-07 Andrew Cagney <cagney@gnu.org>
1454
bec39cab
AC
1455 * configure.ac: Rename configure.in, require autoconf 2.59.
1456 * configure: Re-generate.
1457
e14ecb8f
AC
1458 * configure.tgt: Disable arm*-*-*, thumb*-*-*, strongarm*-*-*,
1459 xscale-*-* and i[34567]86-*-netware* code adding rdi-share or nlm
1460 to configdirs.
1461
3ace7edb
AC
1462 * configure.in: Replace configdirs with multiple references to
1463 AC_CONFIG_SUBDIRS.
1464 * configure: Re-generate.
1465
b33e8514
AS
14662005-01-05 Andreas Schwab <schwab@suse.de>
1467
1468 * ia64-tdep.c: Include "osabi.h".
1469 (native_find_global_pointer): Delete.
1470 (ia64_find_global_pointer): Renamed from
1471 generic_elf_find_global_pointer.
1472 (FIND_GLOBAL_POINTER): Delete. Change all users to call
1473 ia64_find_global_pointer instead.
1474 (ia64_gdbarch_init): Call gdbarch_init_osabi. Remove references
1475 to ia64_linux_sigcontext_register_address and
1476 ia64_linux_write_pc. Don't set tdep->find_global_pointer.
1477 (_initialize_ia64_tdep): Call gdbarch_register instead of
1478 deprecated register_gdbarch_init.
1479 (struct gdbarch_tdep): Remove find_global_pointer field and move
1480 to ...
1481 * ia64-tdep.h (struct gdbarch_tdep): ... here.
1482 (ia64_linux_sigcontext_register_address): Remove declaration.
1483 (ia64_linux_getunwind_table): Likewise.
1484 (ia64_linux_write_pc): Likewise.
1485 * ia64-linux-tdep.c: Include "osabi.h".
1486 (ia64_linux_sigcontext_register_address): Make static.
1487 (ia64_linux_write_pc): Likewise.
1488 (ia64_linux_init_abi): New.
1489 (_initialize_ia64_linux_tdep): New.
1490 * Makefile.in (ia64-tdep.o, ia64-linux-tdep.o): Depend on
1491 $(osabi_h).
1492
0ea390ed
KB
14932005-01-05 Kevin Buettner <kevinb@redhat.com>
1494
1495 * ia64-tdep.c (ia64_gdbarch_init): Eliminate dependency on
1496 functions in ia64-aix-tdep.c.
1497 * ia64-tdep.h (ia64_aix_sigcontext_register_address): Remove
1498 function defined in ia64-aix-tdep.c.
1499 * ia64-aix-tdep.c: Remove file.
1500 * config/ia64/linux.mt (TDEPFILES): Remove ia64-aix-tdep.o from
1501 this list.
1502 * Makefile.in (ia64-aix-tdep.o): Delete.
1503
edefbb7c
AC
15042005-01-05 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1505
1506 Committed by Andrew Cagney.
1507 * ada-valprint.c, aix-thread.c, alpha-nat.c: I18n markup.
1508 * alphabsd-nat.c, alphanbsd-tdep.c, amd64-linux-nat.c: I18n markup.
1509 * amd64-tdep.c, amd64bsd-nat.c, amd64fbsd-nat.c: I18n markup.
1510 * arch-utils.c, arm-linux-nat.c, arm-tdep.c: I18n markup.
1511 * armnbsd-nat.c, armnbsd-tdep.c, auxv.c, avr-tdep.c: I18n markup.
1512 * aix-thread.c (_initialize_aix_thread): Get rid of the
1513 deprecated_add_show_from_set call.
1514 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
1515 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1516 * command.h (add_setshow_enum_cmd): Add arguments for returning
1517 new list elements.
1518 * cli/cli-decode.c (add_setshow_enum_cmd): Ditto.
1519 * mips-tdep.c (_initialize_mips_tdep): Modify calls to
1520 add_setshow_enum_cmd.
1521
a260932f
MK
15222005-01-04 Mark Kettenis <kettenis@gnu.org>
1523
34cf1994
MK
1524 * configure.host (ia64-*-aix*): Remove.
1525 * configure.tgt (ia64-*-aix*): Remove.
1526 * config/ia64/aix.mh: Remove file.
1527 * config/ia64/aix.mt: Remove file.
1528 * config/ia64/tm-aix.h: Remove file.
1529 * ia64-aix-nat.c: Remove file.
1530 * Makefile.in (ia64-aix-nat.o): Remove dependency.
1531
a260932f
MK
1532 * config/m88k/obsd.mh (NATDEPFILES): Really remove inf-child.o.
1533 Add back inf-ptrace.o.
1534
5ed102a1
AC
15352005-01-04 Andrew Cagney <cagney@gnu.org>
1536
1537 * version.in: Change format from 6.3.50_2005-01-04-cvs to
1538 6.3.50.20050104-cvs.
1539
3a63c4b7
AS
15402005-01-04 Andreas Schwab <schwab@suse.de>
1541
1542 * breakpoint.c (break_command_1): Always free err_msg before
1543 returning when an exception was caught.
1544
e22b26cb
JB
15452005-01-01 Joel Brobecker <brobecker@gnat.com>
1546
1547 * hppa-tdep.c (prologue_inst_adjust_sp): Fix small confusion
1548 in register number for addil instruction.
1549
151c5df6 1550For older changes see ChangeLog-2004.
c906108c
SS
1551\f
1552Local Variables:
1553mode: change-log
1554left-margin: 8
1555fill-column: 74
1556version-control: never
1557End:
This page took 0.747184 seconds and 4 git commands to generate.