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