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