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