2005-01-31 Andrew Cagney <cagney@gnu.org>
[binutils-gdb.git] / gdb / ChangeLog
1 2005-01-31 Andrew Cagney <cagney@gnu.org>
2
3 * configure: Regenerate to track ../gettext.m4.
4
5 2005-01-29 Baurzhan Ismagulov <ibr@radix50.net>
6
7 * MAINTAINERS: Add myself to "Write After Approval".
8
9 * ax-gdb.c, ax-general.c, bcache.c, bfd-target.c, bsd-kvm.c,
10 * buildsym.c, c-lang.c, c-typeprint.c, c-valprint.c, charset.c,
11 * coff-pe-read.c, coffread.c, complaints.c, copying.c: I18n markup.
12
13 2005-01-29 Mark Kettenis <kettenis@gnu.org>
14
15 * configure.ac: Remove extra check for ranlib.
16 * configure: Regenerated.
17
18 2005-01-28 Andrew Cagney <cagney@gnu.org>
19
20 * language.h (struct language_defn): Make la_val_print's buffer
21 parameter a const bfd_byte.
22 * cp-valprint.c (cp_print_value_fields, cp_print_value): Update.
23 * ada-lang.c (ada_aligned_value_addr)
24 (ada_value_primitive_packed_val, ada_which_variant_applies): Update.
25 * valprint.c (val_print_array_elements): Update.
26 * valprint.h (val_print_array_elements): Update.
27 * ada-lang.h (ada_val_print, ada_aligned_value_addr)
28 (ada_value_primitive_packed_val, ada_which_variant_applies): Update.
29 * ada-valprint.c (ada_val_print, struct ada_val_print_args)
30 (ada_val_print_1, ada_print_floating, printable_val_type)
31 (print_record, val_print_packed_array_elements)
32 (print_field_values, print_variant_part): Update.
33 * c-lang.h (c_val_print, cp_print_value_fields): Update.
34 * c-valprint.c (c_val_print): Update.
35 * f-lang.h (f_val_print): Update.
36 * f-valprint.c (f_val_print, f77_print_array_1)
37 (f77_print_array): Update.
38 * jv-lang.h (java_val_print): Update.
39 * jv-valprint.c (java_print_value_fields, java_val_print): Update.
40 * language.c (unk_lang_val_print): Update.
41 * m2-lang.h (m2_val_print): Update.
42 * m2-valprint.c (m2_val_print): Update.
43 * p-lang.h (pascal_val_print): Update.
44 (pascal_object_print_value_fields): Update.
45 * p-valprint.c (pascal_val_print)
46 (pascal_object_print_value_fields, pascal_object_print_value)
47 (pascal_object_print_value): Update.
48 * scm-lang.h (scm_val_print): Update.
49 * scm-valprint.c (scm_val_print): Update.
50 * value.h (val_print): Update.
51
52 * p-lang.h (pascal_object_print_class_member)
53 (pascal_object_print_class_method): Make buffer a const bfd_byte.
54 * p-valprint.c (pascal_object_print_class_method)
55 (pascal_object_print_class_method): Ditto.
56
57 * language.h (struct language_defn): Make la_printstr's buffer
58 parameter a const bfd_byte.
59 * p-lang.h (pascal_printstr): Update function to match.
60 * ada-valprint.c (ada_printstr): Update function to match.
61 * scm-lang.c (scm_printstr): Update function to match.
62 * p-lang.c (pascal_printstr): Update function to match.
63 * ada-lang.h (ada_printstr): Update function to match.
64 * m2-lang.c (m2_printstr): Update function to match.
65 * objc-lang.c (objc_printstr): Update function to match.
66 * c-lang.h (c_printstr): Update function to match.
67 * f-lang.c (f_printstr): Update function to match.
68 * c-lang.c (c_printstr): Update function to match.
69 * language.c (unk_lang_printstr): Update function to match.
70
71 * valprint.c (val_print_type_code_int): Make buffer a const bfd_byte.
72 * valprint.h (val_print_type_code_int): Ditto.
73
74 * objc-lang.h (c_val_print, c_value_print): Delete declarations.
75
76 * cp-valprint.c (cp_print_class_method)
77 (cp_print_class_member): Make buffer a const bfd_byte.
78 * c-lang.h (cp_print_class_member, cp_print_class_method): Ditto.
79
80 * ada-lang.c (value_from_contents_and_address)
81 (to_record_with_fixed_variant_part)
82 (value_tag_from_contents_and_address, ada_to_fixed_type)
83 (to_fixed_variant_branch_type, to_fixed_record_type)
84 (ada_template_to_fixed_record_type, cond_offset_host)
85 (ada_template_to_fixed_record_type_1): Make buffer a const
86 bfd_byte.
87 * ada-lang.h (ada_template_to_fixed_record_type_1)
88 (value_from_contents_and_address, ada_to_fixed_type): Ditto.
89
90 * ada-valprint.c (char_at, printstr): Make buffer a const bfd_byte.
91
92 * gdbtypes.h (print_scalar_formatted): Make buffer a const bfd_byte.
93 * printcmd.c (print_scalar_formatted): Update.
94
95 * value.h (value_bit_index, print_floating)
96 (find_rt_vbase_offset): Make buffer a const bfd_byte.
97 * valprint.c (print_floating): Update.
98 * valarith.c (value_bit_index): Update.
99 * valops.c (find_rt_vbase_offset): Update.
100
101 * valprint.h (print_octal_chars, print_char_chars)
102 (print_hex_chars, print_decimal_chars, print_binary_chars): Make
103 buffer a const bfd_byte.
104 * valprint.c (print_binary_chars, print_octal_chars)
105 (print_decimal_chars, print_hex_chars, print_char_chars): Make
106 "valaddr"buffer a const bfd_byte, ditto for local variables
107 referencing that buffer.
108
109 * m2-valprint.c: Include "c-lang.h".
110 (c_val_print): Delete extern declaration.
111 * scm-valprint.c: Include "c-lang.h".
112 (c_val_print): Delete extern declaration.
113 Makefile.in: Update dependencies.
114
115 * gnu-v2-abi.h (gnuv2_baseclass_offset): Make "valaddr" a const
116 bfd_byte.
117 * cp-abi.h (baseclass_offset): Make "valaddr" a const bfd_byte.
118 (struct cp_abi_ops): Make baseclass_offset's "valaddr" a const
119 bfd_byte.
120 * cp-abi.c (baseclass_offset): Update.
121 * gnu-v2-abi.c (gnuv2_baseclass_offset): Update.
122
123 * gnu-v2-abi.h: New file.
124 * gnu-v2-abi.c: Include "gnu-v2-abi.h".
125 (gnuv2_baseclass_offset): Delete declaration.
126 * hpacc-abi.c: Include "gnu-v2-abi.h".
127 (gnuv2_baseclass_offset): Delete extern declaration.
128 * Makefile.in: Update dependencies.
129
130 * doublest.c (floatformat_is_negative, floatformat_is_nan)
131 (floatformat_mantissa, get_field): Make the buffer a const
132 bfd_byte, simplify.
133
134 2005-01-27 Andrew Cagney <cagney@gnu.org>
135
136 * value.h (struct value): Change type of contents to bfd_byte.
137 (VALUE_CONTENTS_RAW): Simplify.
138
139 * gdbarch.sh (integer_to_address): Change buf parameter to a const
140 bfd_byte, make pure-multi-arch.
141 * gdbarch.h, gdbarch.c: Regenerate.
142 * mips-tdep.c (mips_integer_to_address): Update.
143 * value.c (value_as_address): Update.
144
145 * cli/cli-dump.h (fopen_with_cleanup): Make "filename" const.
146 * cli/cli-dump.c (dump_binary_file, dump_bfd_file): Make string
147 parameters const, change buf to a const bfd_byte.
148 (fopen_with_cleanup, bfd_openw_with_cleanup): Make all string
149 parameters const.
150
151 * corefile.c (write_memory): Update, make a copy of the read-only
152 buffer.
153 * target.c (target_read_memory): Update.
154 (target_write_memory): Update, make a copy of the read-only
155 buffer.
156 * gdbcore.h (write_memory): Change buffer type to bfd_byte, make
157 const.
158 * target.h (target_read_memory, target_write_memory): Change
159 buffer type to bfd_byte; for write_memory, make it const.
160 * symfile-mem.c (do_target_read_memory): New function.
161 (symbol_file_add_from_memory): Pass do_target_read_memory to
162 bfd_elf_bfd_from_remote_memory.
163
164 * value.h: Indent using gdb_indent.sh.
165
166 * configure: Regenerate to track ../gettext.m4 change.
167
168 2005-01-26 Andrew Cagney <cagney@gnu.org>
169
170 * rs6000-tdep.c: Include "reggroups.h".
171 (rs6000_gdbarch_init): Set register_reggroup_p.
172 (rs6000_register_reggroup_p): New function.
173
174 2005-01-26 Orjan Friberg <orjanf@axis.com>
175
176 * cris-tdep.c (enum cris_num_regs, enum cris_regnums)
177 (cris_sigtramp_frame_unwind_cache, cris_register_size): Update for
178 CRISv32.
179 (crisv32_single_step_through_delay, cris_can_use_hardware_watchpoint)
180 (cris_region_ok_for_watchpoint, cris_stopped_data_address)
181 (crisv32_cannot_fetch_register, crisv32_cannot_store_register)
182 (crisv32_register_type, cris_special_register_name)
183 (crisv32_register_name): New functions.
184 (cris_spec_reg_applicable): Recognize more versions.
185 (cris_register_name): Update with call to cris_special_register_name.
186 (find_cris_op): Filter out CRISv32 instructions. Tweaked comment and
187 warning when unable to find step target.
188 (CRISV10_ELF_NGREG, CRISV32_ELF_NGREG, crisv32_elf_gregset_t): Define.
189 (supply_gregset): Add struct gdbarch_tdep. Set pseudo-PC register for
190 CRISv32.
191 (fetch_core_registers): Update for CRISv32.
192 (cris_gdbarch_init): Set pc_regnum, register_type, num_regs,
193 register_name, cannot_store_register, cannot_fetch_register,
194 have_nonsteppable_watchpoint, single_step_through_delay for CRISv32.
195
196 2005-01-26 Nick Roberts <nickrob@snap.net.nz>
197
198 * interps.c (interpreter_exec_cmd): Use condition,
199 e.reason < 0, to raise an error.
200
201 2005-01-25 Andrew Cagney <cagney@gnu.org>
202
203 * ppc-linux-tdep.c: Include "tramp-frame.h"
204 (struct ppc_linux_sigtramp_cache)
205 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
206 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
207 (ppc_linux_sigtramp_cache): Delete.
208 (ppc32_linux_sigaction_cache_init)
209 (ppc64_linux_sigaction_cache_init)
210 (ppc32_linux_sighandler_cache_init)
211 (ppc64_linux_sighandler_cache_init)
212 (ppc32_linux_sigaction_tramp_frame)
213 (ppc64_linux_sigaction_tramp_frame)
214 (ppc32_linux_sighandler_tramp_frame)
215 (ppc64_linux_sighandler_tramp_frame)
216 (ppc_linux_sigtramp_cache, ppc_linux_init_abi): Implement 32 and
217 64-bit, sigaction and siginfo tramp-frame unwinders.
218
219 * ppc-linux-tdep.c (ppc_linux_init_abi): Always set
220 long_double_bit to 8.
221
222 2005-01-24 Andrew Cagney <cagney@gnu.org>
223
224 * infrun.c (handle_inferior_event): Handle back-to-back and nested
225 signals where the step_resume_breakpoint may have already been
226 inserted.
227
228 2005-01-24 Andrew Cagney <cagney@gnu.org>
229
230 * configure: Regenerate, ../gettext.m4 was updated.
231
232 2005-01-23 Mark Kettenis <kettenis@gnu.org>
233
234 * NEWS: Mention new BSD user-level threads support.
235
236 * i386obsd-tdep.c: Update copyright year. Include
237 "bsd-uthread.h".
238 (i386obsd_uthread_reg_offset): New variable.
239 (I386OBSD_UTHREAD_ESP_OFFSET): New define.
240 (i386obsd_supply_uthread, i386obsd_collect_uthread): New
241 functions.
242 (i386obsd_init_abi): Set supply_uthread and collect_uthread.
243 * Makefile.in (i386obsd-tdep.o): Update dependencies.
244 * config/i386/obsd.mt (TDEPFILES): Add bsd-uthread.o.
245
246 2005-01-23 Christopher Faylor <cgf@timesys.com>
247
248 * win32-nat.c: Update copyright year.
249 (child_init_thread_list): Set thread linked list point to NULL so that
250 it won't be reused after clearing.
251
252 2005-01-21 Mark Kettenis <kettenis@gnu.org>
253
254 * acconfig.h (HAVE_STRUCT_REG_R_FS, HAVE_STRUCT_R_GS): Remove
255 undefs.
256 * configure.ac: Use AC_CHECK_MEMBERS to check whether `struct
257 thread' has a td_pcb member and whether `struct reg' has r_fs and
258 r_gs members.
259 * configure, config.in: Regenerate.
260
261 2005-01-21 Mark Kettenis <kettenis@gnu.org>
262
263 * configure.ac: Remove ia64-*-aix* junk.
264 * configure: Regenerate.
265
266 * configure.ac: Use AC_CHECK_DECLS instead of gcc_AC_CHECK_DECLS
267 and BFD_NEED_DECLARATION. Don't check if a declaration of strdup
268 is necessary.
269 * configure, config.in: Regenerate.
270 * utils.c: Adjust for usage of AC_CHECK_DECLS instead of
271 BFD_NEED_DECLARATION. Never provide a prototype for
272 caninicalize_file_name.
273 * gdb_string.h: Adjust for usage of AC_CHECK_DECLS instead of
274 BFD_NEED_DECLARATION.
275
276 * configure.ac (targ_archs): Use standard autoconf check for
277 "struct stat.st_blocks" instead of rolling our own.
278 * configure: Regenerated.
279 * acconfig.h (HAVE_STRUCT_STAT_ST_BLOCKS): Remove undef.
280 * config.in: Regenerated.
281
282 2005-01-21 Mark Kettenis <kettenis@gnu.org>
283
284 * configure.ac: Modernize checks for `long long' and `long double'
285 support.
286 * configure: Regenerated.
287 * acconfig.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG)
288 (PRINT_HAS_LONG_DOUBLE, SCANF_HAS_LONG_DOUBLE): Remove undefs.
289 * config.in: Regenerated.
290
291 2005-01-20 Mark Kettenis <kettenis@gnu.org>
292
293 * acconfig.h (HAVE_STRUCT_SAVE_STATE_T)
294 (HAVE_STRUCT_MEMBER_SS_WIDE): Remove undefs.
295 * configure.ac: Remove checks for HP-UX save_state structure.
296 * configure: Regenerated.
297
298 2005-01-19 Andrew Cagney <cagney@gnu.org>
299
300 * utils.c (quit): Simplify, call fatal.
301 * exceptions.c: Include "serial.h"
302 (print_flush): Mimic flush code found in utils.c:quit.
303 * Makefile.in: Update dependencies.
304
305 2005-01-19 Jim Blandy <jimb@redhat.com>
306
307 * configure.tgt: Set build_rdi_share to "yes" on those targets
308 that use that debugging protocol.
309 Set build_nlm to yes to build NLM stub for Netware targets.
310 * configure.ac: If build_rdi_share is "yes", then configure the
311 rdi-share subdirectory.
312 If build_nlm is "yes", the configure the "nlm" subdirectory.
313 * configure: Regenerated.
314
315 * rdi-share/configure, rdi-share/aclocal.m4: Regenerated using
316 autoconf 2.59 and automake 1.9.3.
317
318 2005-01-19 Andrew Cagney <cagney@gnu.org>
319
320 * exceptions.h (deprecated_throw_reason): Rename throw_reason.
321 * exceptions.c (deprecated_throw_reason): Rename throw_reason.
322 * utils.c (internal_verror, quit): Update.
323 * remote-sds.c (interrupt_query): Update.
324 * remote-mips.c (mips_error, mips_kill): Update.
325 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Update.
326 * remote.c (interrupt_query): Update.
327 * ocd.c (interrupt_query): Update.
328 * nto-procfs.c (interrupt_query): Update.
329 * monitor.c (monitor_interrupt_query): Update.
330 * breakpoint.c (break_command_1): Update.
331
332 * infrun.c: (resume, proceed, wait_for_inferior)
333 (handle_inferior_event, stop_stepping)
334 (prepare_to_wait): Write debug output to gdb_stdlog.
335
336 2005-01-19 Mark Kettenis <kettenis@gnu.org>
337
338 * inf-ptrace.c (inf_ptrace_prepare_to_store)
339 (inf_ptrace_post_startup_inferior)
340 (inf_ptrace_acknowledge_created_inferior)
341 (inf_ptrace_insert_fork_catchpoint)
342 (inf_ptrace_remove_fork_catchpoint)
343 (inf_ptrace_insert_vfork_catchpoint):
344 (inf_ptrace_remove_vfork_catchpoint, inf_ptrace_follow_fork)
345 (inf_ptrace_insert_exec_catchpoint)
346 (inf_ptrace_remove_exec_catchpoint): Remove functions.
347 (inf_ptrace_reported_exec_events_per_exec_call): Tweak comment.
348 (inf_ptrace_target): Don't set to_prepare_to_store,
349 to_post_startup_inferior, to_acknowledge_created_inferior,
350 to_insert_fork_ctachpoint, to_remove_fork_catchpoint,
351 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
352 to_follow_fork, to_insert_exec_catchpoint,
353 to_remove_exec_catchpoint.
354
355 2005-01-18 Andrew Cagney <cagney@gnu.org>
356
357 * target.h (struct target_ops): Change return type of
358 to_insert_fork_catchpoint, to_insert_vfork_catchpoint and
359 to_insert_exec_catchpoint to void.
360 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
361 (child_insert_exec_catchpoint): Change return type to void.
362 * target.c (update_current_target): Update.
363 (debug_to_insert_fork_catchpoint)
364 (debug_to_insert_vfork_catchpoint)
365 (debug_to_insert_exec_catchpoint): Update.
366 * inf-child.c (inf_child_insert_fork_catchpoint)
367 (inf_child_insert_vfork_catchpoint)
368 (inf_child_insert_exec_catchpoint): Update.
369 * breakpoint.c (insert_catchpoint): Update, do not throw an error.
370 * linux-nat.c (child_insert_fork_catchpoint)
371 (child_insert_vfork_catchpoint)
372 (child_insert_exec_catchpoint): Update.
373 * inftarg.c (child_insert_fork_catchpoint)
374 (child_insert_vfork_catchpoint,)
375 (child_insert_exec_catchpoint): Update.
376
377 * remote.c (remote_open_1): Use throw_exception.
378
379 2005-01-17 Michael Snyder <msnyder@redhat.com>
380
381 * mips-linux-tdep.c: Whitespace tweaks.
382
383 2005-01-17 Corinna Vinschen <vinschen@redhat.com>
384
385 * infcmd.c (attach_command): Call CLEAR_SOLIB if available.
386
387 2005-01-17 Andrew Cagney <cagney@gnu.org>
388
389 * top.h (source_error, source_pre_error): Delete declaration.
390 * cli/cli-script.c (source_error_allocated, source_error): Delete.
391 (script_from_file, source_cleanup_lines): Do not manipulate
392 source_error_allocated, error_pre_print and source_error.
393 (struct source_cleanup_lines_args): Delete fields old_pre_error,
394 and old_error_pre_print.
395 * top.c (source_error_allocated, source_error)
396 (source_pre_error): Delete.
397 (command_line_input): Do not set error_pre_print.
398 * event-top.c (command_line_handler): Do not set error_pre_print.
399
400 2005-01-16 Jason Thorpe <thorpej@netbsd.org>
401
402 * MAINTAINERS: Update my email address.
403
404 2005-01-16 Mark Kettenis <kettenis@gnu.org>
405
406 * configure.ac: Provide prerequisite headers when checking
407 <term.h>.
408 * configure: Regenerate.
409
410 * amd64fbsd-tdep.c: Update copyright year. Include "gdb_assert.h"
411 and "bsd-uthread.h".
412 (amd64fbsd_jmp_buf_reg_offset): New variable.
413 (amd64fbsd_supply_uthread, amd64fbsd_collect_uthread): New
414 functions.
415 (amd64fbsd_init_abi): Set supply_uthread and collect_uthread.
416 * i386fbsd-tdep.c: Fix typo.
417 * Makefile.in (amd64fbsd-tdep.o): Update dependencies.
418 * config/i386/fbsd64.mt (TDEPFILES): Add bsd-uthread.o.
419
420 2005-01-16 Andrew Cagney <cagney@gnu.org>
421
422 * cli/cli-script.c: Include "exceptions.h".
423 (struct wrapped_read_command_file_args): Define.
424 (wrapped_read_command_file): New function.
425 (script_from_file): Replace direct call to read_command_file by
426 one wrapped by an exception handler.
427 * exceptions.c (throw_it): Free the old message after creating the
428 new.
429 * Makefile.in: Update dependencies.
430
431 2005-01-16 Mark Kettenis <kettenis@gnu.org>
432
433 * sparc64fbsd-tdep.c: Update copyright year.
434 (sparc64fbsd_collect_gregset, sparc64fbsd_collect_fpregset): New
435 functions.
436 (sparc64fbsd_init_abi): Create register sets with collect
437 functions.
438
439 * sparc64fbsd-nat.c: Include "fbsd-nat.h".
440 (_initialize_sparc64fbsd_nat): Add some extra features to the
441 generic SPARC target.
442 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
443 * config/sparc/fbsd.mh (NATDEPFILES): Add fbsd-nat.o and gcore.o.
444 (NAT_FILE): Set to solib.h.
445 * config/sparc/nm-fbsd.h: Remove file.
446
447 * sparc64-tdep.c (sparc64_store_arguments): Fix typo.
448
449 * sparc-tdep.c (sparc_integral_or_pointer_p): Simplify.
450
451 2005-01-16 Andrew Cagney <cagney@gnu.org>
452
453 * exceptions.c (struct catcher): Delete saved_error_pre_print and
454 saved_quit_pre_print.
455 (catcher_init): Delete parameter errstring, do not override the
456 pre_print strings.
457 (catcher_pop): Do not restore the pre_print strings.
458 (catch_exception, catch_exceptions_with_msg, catch_errors)
459 (catch_command_errors): Update catch_init calls.
460
461 2005-01-16 Mark Kettenis <kettenis@gnu.org>
462
463 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
464 * sparc64fbsd-nat.c: Update copyright year. Include "target.h".
465
466 2005-01-15 Andrew Cagney <cagney@gnu.org>
467
468 * acinclude.m4: Include ../bfd/bfd.m4 instead of
469 ../bfd/acinclude.m4. Include ../gettext.m4.
470 * aclocal.m4, configure: Re-generate.
471
472 * exceptions.c (do_captured_command)
473 (struct captured_command_args): Delete.
474 (catch_command_errors): Simplify by inlining call to catch_errors.
475
476 * exceptions.c (struct catcher): Delete field print_message.
477 (catcher_init): Delete print_message parameter.
478 (catch_exception, catch_exceptions_with_msg, catch_errors): Update.
479 (throw_it): Delete prefix parameter.
480 (throw_verror, throw_vfatal, throw_error): Update.
481
482 2005-01-14 Andrew Cagney <cagney@gnu.org>
483
484 * exceptions.c (print_and_throw): Delete, replaced by throw_it.
485 (throw_reason): Leave the exception's message field blank.
486 (throw_it): New function, create the exception and throw it.
487 (throw_verror, throw_vfatal, throw_error): Call throw_it.
488 (print_any_exception): New function.
489 (catch_errors, catch_exceptions_with_msg): Call
490 print_any_exception.
491 (throw_exception): Move code calling annotate_error and
492 annotate_quit from here ...
493 (print_exception): ... to here.
494
495 * exceptions.c (exception_fprintf, exception_print): Move printing
496 of \n from here ...
497 (print_exception): ... to here.
498 (print_flush): New function.
499 (exception_print, exception_fprintf): Replace duplicated flush and
500 wrap code with call to print_flush.
501 (print_and_throw): Simplify, by using xstrvprintf, print_flush,
502 and print_exception.
503 (do_write): Delete.
504
505 * remote-sds.c (interrupt_query): Call throw_reason instead of
506 throw_exception.
507 * remote-mips.c (mips_error, mips_kill): Ditto
508 * ocd.c (interrupt_query): Ditto.
509 * nto-procfs.c (interrupt_query): Ditto.
510 * monitor.c (monitor_interrupt_query): Ditto.
511
512 2005-01-14 Jeff Johnston <jjohnstn@redhat.com>
513
514 * ia64-linux-nat.c: Include "ia64-tdep.h" to get register definitions.
515
516 2005-01-14 Andrew Cagney <cagney@gnu.org>
517
518 * exceptions.h (catch_exceptions): Delete errstring parameter.
519 (catch_exceptions_with_msg): Ditto.
520 * exceptions.c (catch_exceptions_with_msg): Update.
521 (catch_exceptions): Update.
522 * symfile-mem.c (add_vsyscall_page): Update.
523 * frame.c (get_current_frame): Update.
524 * wrapper.c (gdb_value_struct_elt): Update.
525 * exceptions.c (catch_exceptions): Update.
526 * thread.c (gdb_list_thread_ids, gdb_thread_select): Update.
527 * breakpoint.c (gdb_breakpoint_query, gdb_breakpoint): Update.
528 * remote-fileio.c (remote_fileio_request): Update.
529
530 * exceptions.h (exception_fprintf): Declare.
531 (exception_print): Drop pre_print parameter.
532 * mi/mi-main.c (mi_execute_command): Update exception_print call.
533 * cli/cli-interp.c (safe_execute_command): Update exception_print
534 call.
535 * remote.c (remote_open_1): Instead of passing an error prefix to
536 catch_exceptions, use catch_exceptions and exception_fprintf.
537 (remote_start_remote): Change return type to void.
538 * breakpoint.c (insert_bp_location): Instead of passing an error
539 prefix to catch_exceptions, use catch_exceptions and
540 exception_fprintf.
541 (insert_catchpoint): Change return type to void.
542 (break_command_1): Update exception_print call.
543 * exceptions.c (exception_fprintf): New function.
544 (print_exception): New function.
545 (exception_print): Use print_exception.
546
547 * utils.c (error_output_message): Delete function.
548 * defs.h (error_output_message): Delete declaration.
549
550 * linespec.c (symtab_from_filename, decode_variable): Use
551 throw_error instead of error_silent.
552 * breakpoint.c (do_captured_parse_breakpoint): Change return type
553 to void.
554 (break_command_1): Use catch_exception and check the error return
555 status.
556 * exceptions.c (throw_error): New function.
557 (throw_vsilent): Delete function.
558 * exceptions.h (throw_error): Declare.
559 (throw_vsilent): Delete declaration.
560 * utils.c (error_silent): Delete function.
561 * defs.h (error_silent): Delete declaration.
562
563 * mi/mi-main.c (mi_execute_command): Print the exception.
564 * cli/cli-interp.c (safe_execute_command): Print the exception.
565 * exceptions.h (exception_print): Declare.
566 * exceptions.c (struct catcher): Add field print_message.
567 (catcher_init): Add parameter print_message, store in the catcher
568 struct.
569 (print_and_throw): Only print the message when print_message.
570 (catch_exceptions_with_msg, catch_errors): Pass print_message=1 to
571 catcher_init.
572 (catch_exception): Pass print_message=0 to catcher_init.
573
574 * varobj.c (varobj_create): Add missing \n.
575
576 2005-01-13 Michael Snyder <msnyder@redhat.com>
577
578 * cli/cli-decode.h: Whitespace tweaks.
579 * wince.c: Whitespace tweaks.
580 * uw-thread.c: Whitespace tweaks.
581 * utils.c: Whitespace tweaks.
582 * tracepoint.[ch]: Whitespace tweaks.
583 * solist.h: Whitespace tweaks.
584
585 2005-01-13 Andrew Cagney <cagney@gnu.org>
586
587 * exceptions.h (struct exception): Make message const.
588 * mi/mi-main.c (mi_execute_command): Pass result.message directly
589 to fputstr_unfiltered.
590
591 2005-01-13 Michael Snyder <msnyder@redhat.com>
592
593 * stack.c: Whitespace tweaks.
594 * somsolib.[ch]: Whitespace tweaks.
595 * solib-aix.c: Whitespace tweaks.
596 * solib.c: Whitespace tweaks.
597 * solib-frv.c: Whitespace tweaks.
598 * solib.h: Whitespace tweaks.
599 * solib-irix.c: Whitespace tweaks.
600 * solib-som.c: Whitespace tweaks.
601 * solib-sunos.c: Whitespace tweaks.
602 * solib-svr4.[ch]: Whitespace tweaks.
603 * ser-tcp.c: Whitespace tweaks.
604 * ser-unix.c: Whitespace tweaks.
605 * serial.h: Whitespace tweaks.
606 * scm-valprint.c: Whitespace tweaks.
607 * rs6000-tdep.c: Whitespace tweaks.
608 * rs6000-nat.c: Whitespace tweaks.
609 * remote.c: Whitespace tweaks.
610
611 2005-01-13 Andrew Cagney <cagney@gnu.org>
612
613 * defs.h (error_last_message, error_init): Delete declaration.
614 * utils.c (fatal, vfatal): Call throw_vfatal.
615 (error, verror): Call throw_verror;
616 (do_write, error_stream_1): Delete function.
617 (error_stream): Simplify, call error.
618 (error_last_message, error_init, gdb_lasterr): Delete.
619 (error_silent): Simplify, call throw_vsilent.
620 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dup the message.
621 * main.c (captured_main): Delete call to error_init.
622 * exceptions.c (throw_verror, throw_verror)
623 (throw_vsilent): New functions.
624 (do_write, print_and_throw): New functions.
625 (last_message): New global.
626 (throw_reason): Replace error_last_message with last_message.
627 (catch_exceptions_with_msg): Dup the message.
628 * exceptions.h (throw_verror, throw_vfatal, throw_vsilent):
629 Declare.
630
631 2005-01-13 Michael Snyder <msnyder@redhat.com>
632
633 * remote-st.c: Whitespace tweaks.
634 * remote-sim.c: Whitespace tweaks.
635 * remote-mips.c: Whitespace tweaks.
636 * pa64solib.[ch]: Whitespace tweaks.
637 * mdebugread.c: Whitespace tweaks.
638 * main.c: Whitespace tweaks.
639 * interps.c: Whitespace tweaks.
640 * infrun.c: Whitespace tweaks.
641 * infcmd.c: Whitespace tweaks.
642 * hpux-thread.c: Whitespace tweaks.
643 * hppa-hpux-tdep.c: Whitespace tweaks.
644 * gdbcore.h: Whitespace tweaks.
645 * gdbcmd.h: Whitespace tweaks.
646 * gdb-events[.c, .h, .sh]: Whitespace tweaks.
647 * corefile.c: Whitespace tweaks.
648 * completer.c: Whitespace tweaks.
649 * coff-solib.c: Whitespace tweaks.
650 * coff-solib.h: Whitespace tweaks.
651 * cli-out.c: Whitespace tweaks.
652 * breakpoint.c: Whitespace tweaks.
653 * cli/cli-interp.c: Tweak comments, per coding standard.
654
655 2005-01-13 Andrew Cagney <cagney@gnu.org>
656
657 * breakpoint.c (gdb_breakpoint_query): Update, use
658 catch_exceptions_with_msg.
659 (do_captured_breakpoint): Add uiout parameter.
660 (gdb_breakpoint): Update, use catch_exceptions_with_msg.
661 * mi/mi-main.c (mi_cmd_thread_select): Pass mi_error_message to
662 gdb_thread_select. Return MI_CMD_ERROR instead of
663 MI_CMD_CAUGHT_ERROR.
664 (mi_cmd_thread_list_ids): Ditto for gdb_list_thread_ids.
665 (enum captured_mi_execute_command_actions): Delete
666 EXECUTE_COMMAND_DISPLAY_ERROR.
667 (captured_mi_execute_command): Delete code handling
668 MI_CMD_CAUGHT_ERROR.
669 (mi_execute_command): Don't check for
670 EXECUTE_COMMAND_DISPLAY_ERROR.
671 * mi/mi-cmd-break.c (breakpoint_notify): Update call to
672 gdb_breakpoint_query.
673 (mi_cmd_break_insert): Pass mi_error_message to gdb_breakpoint.
674 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_CAUGHT_ERROR.
675 * gdb.h (gdb_thread_select, gdb_list_thread_ids)
676 (gdb_breakpoint, gdb_breakpoint_query): Add error_message
677 parameter.
678 * thread.c (thread_command): Update call.
679 (gdb_thread_select, gdb_list_thread_ids): Update, call
680 catch_exceptions_with_msg.
681
682 * mi/mi-main.c (mi_execute_command): Use catch_exception,
683 eliminate call to error_last_message.
684 (captured_mi_execute_command): Change return type to void.
685
686 2005-01-12 Andrew Cagney <cagney@gnu.org>
687
688 * exceptions.c (exception_none): New variable.
689 * Makefile.in: Update dependencies.
690 * interps.c: Include "exceptions.h".
691 (interpreter_exec_cmd, interp_exec): Update to return "struct
692 exception"
693 * exceptions.h (no_exception): Declare.
694 * tui/tui-interp.c (tui_exec): Update to return "struct exception"
695 * mi/mi-interp.c: Include "exceptions.h".
696 (mi_cmd_interpreter_exec, mi_interpreter_exec): Update to return
697 'struct exception".
698 * cli/cli-interp.c (cli_interpreter_exec, safe_execute_command)
699 (do_captured_execute_command): Update to use catch_exception.
700 * interps.h: Include "exceptions.h".
701 (interp_exec_ftype, interp_exec): Return "struct exception".
702
703 * exceptions.h (throw_reason): Rename throw_exception.
704 (enum errors, struct exception): Define.
705 (catch_exception_ftype): Define.
706 (catch_exception, throw_exception): Declare.
707 * exceptions.c (throw_exception): Rewrite.
708 (throw_reason): New function.
709 (struct catcher, catcher_state_machine): Replace "reason" with
710 "exception", delete "gdberrmsg".
711 (catch_exception): New function.
712 (catcher_init): Replace "gdberrmsg" parameter with "exception".
713 (catch_errors, catch_exceptions_with_msg): Re-implement passing
714 exception to catcher_init.
715 * utils.c (error_silent, error_stream_1): Use throw_reason.
716 (internal_verror, quit): Ditto.
717 * breakpoint.c (insert_catchpoint, break_command_1): Ditto.
718 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Ditto.
719 * remote.c (remote_open_1, interrupt_query): Ditto.
720
721 2005-01-12 Mark Kettenis <kettenis@gnu.org>
722
723 * i386fbsd-tdep.c: Update copyright year. Include "gdbcore.h",
724 "regcache.h", "gdb_assert.h" and "bsd-uthread.h".
725 (i386fbsd_jmp_buf_reg_offset): New variable.
726 (i386fbsd_supply_uthread, i386fbsd_collect_uthread): New
727 functions.
728 (i386fbsdaout_init_abi): Set supply_uthread and collect_uthread.
729 * Makefile.in (i386fbsd-tdep.o): Update dependency.
730 * config/i386/fbsd.mt (TDEPFILES): Add bsd-uthread.o.
731
732 * bsd-uthread.h: New file.
733 * bsd-uthread.c: New file.
734 * Makefile.in (bsd_uthread_h): New variable.
735 (ALLDEPFILES): Add bsd-uthread.c.
736 (bsd-uthread.o): New dependency.
737
738 * solib.h Update copyright year.
739 (struct so_list): Forward declaration.
740 (solib_read_symbols): New prototype.
741 * solib.c (solib_read_symbols): New function.
742 (solib_add): Call solib_read_symbols to read in symbols.
743 (update_solib_list): Call observer_notify_solib_loaded.
744
745 * i386bsd-nat.c: Update copyright year. Don't include
746 <sys/param.h> and <sys/user.h>.
747 (register_u_addr, kernel_u_size): Remove functions.
748 * config/i386/obsd.mh (NAT_FILE): Remove.
749 * config/i386/obsdaout.mh (NAT_FILE): Set to solib.h.
750 * config/i386/nm-obsd.h: Remove file.
751
752 2005-01-12 Andrew Cagney <cagney@gnu.org>
753
754 * exceptions.c: Include "gdb_string.h".
755 (enum catcher_state, struct catcher): Define.
756 (current_catcher): New global, replaces catch_return;
757 (catch_return): Delete.
758 (throw_exception): Use current_catcher->buf;
759 (catcher_init, catcher_pop, catcher_state_machine): New functions.
760 (catcher): Delete.
761 (struct catch_errors_args): Delete.
762 (do_catch_errors): Delete.
763 (catch_exceptions): Replace body with call to
764 catch_exceptions_with_msg.
765 (catcher): Delete.
766 (catch_exceptions_with_msg, catch_errors): Re-implement using
767 catcher_state_machine.
768
769 * exceptions.h (enum return_reason, RETURN_MASK)
770 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL)
771 (return_mask, throw_exception, catch_exceptions_ftype)
772 (catch_exceptions_with_msg, catch_errors_ftype, catch_errors)
773 (catch_command_errors_ftype, catch_command_errors): Move to
774 exceptions.h.
775 * exceptions.c, exceptions.h: New files.
776 * top.c: Do not include <setjmp.h>.
777 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, catch_return)
778 (throw_exception, catcher, catch_exceptions)
779 (catch_exceptions_with_msg, struct catch_errors_args)
780 (do_catch_errors, catch_errors, struct captured_command_args)
781 (do_captured_command, catch_command_errors): Move to exceptions.c.
782 * wrapper.c, wince.c, win32-nat.c, utils.c: Include "exceptions.h".
783 * tui/tui-interp.c, top.c, thread.c, symmisc.c: Ditto.
784 * symfile-mem.c, stack.c, solib.c, rs6000-nat.c: Ditto.
785 * remote-sds.c, remote-mips.c, remote-fileio.c: Ditto.
786 * remote-e7000.c, objc-lang.c, ocd.c: Ditto.
787 * remote.c, nto-procfs.c, monitor.c, mi/mi-main.c: Ditto.
788 * main.c, m32r-rom.c, infrun.c, inf-loop.c: Ditto.
789 * hppa-hpux-tdep.c, frame.c, event-top.c, event-loop.c: Ditto.
790 * corelow.c, corefile.c, cli/cli-interp.c, breakpoint.c: Ditto.
791 * ada-valprint.c, ada-lang.c: Ditto.
792 * Makefile.in (HFILES_NO_SRCDIR, COMMON_OBS): Add exceptions.h and
793 exceptions.o. Update all dependencies.
794
795 2005-01-11 Mark Kettenis <kettenis@gnu.org>
796
797 * config/i386/nm-fbsd.h: Update copyright year.
798 Don't include "config/nm-bsd.h".
799 (KERNEL_U_SIZE): Remove macro.
800 (kernel_u_size): Remove prototype.
801
802 * config/vax/nbsdaout.mh (NAT_FILE): Remove.
803 * config/vax/nm-nbsdaout.h: Remove file.
804
805 2005-01-10 Elena Zannoni <ezannoni@redhat.com>
806
807 * MAINTAINERS: Remove self from sh/sh64 maintainership.
808
809 2005-01-10 Andrew Cagney <cagney@gnu.org>
810
811 * MAINTAINERS: List Andrew Cagney and Kevin Buettner as can commit
812 changes to PowerPC, and Andrew Cagney as lead PowerPC GNU/Linux
813 maintainer.
814
815 * MAINTAINERS: Hans-Peter Nilsson and Orjan Friberg can commit
816 changes to CRIS.
817
818 * MAINTAINERS: Remove "Maintenance Only". Spell out that CAN
819 COMMIT means can approve).
820
821 2005-01-10 Mark Kettenis <kettenis@gnu.org>
822
823 * vax-nat.c: Update copyright year. Include "inf-ptrace.h".
824 (vax_register_u_offset): Make statuc.
825 (_initialize_vax_nat): Construct and add target vector.
826 * config/vax/vax.mh (NATDEPFILES): Remove infptrace.o and
827 inftarg.o. Add inf-ptrace.o.
828 * Makefile.in (vax-nat.o): Update dependencies.
829
830 * inf-ptrace.h: Update copyright year. Sync comment with
831 inf-ptrace.c.
832 (inf_ptrace_trad_target): New prototype.
833 * inf-ptrace.c: Update copyright year. Include "regcache.h" and
834 "gdb_assert.h"
835 (inf_ptrace_target): Add comment.
836 (inf_ptrace+register_u_offset): New variable.
837 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
838 (inf_ptrace_store_register, inf_ptrace_store_registers)
839 (inf_ptrace_trad_target): New functions.
840 * Makefile.in (inf-ptrace.o): Update dependencies.
841
842 2005-01-09 Mark Kettenis <kettenis@gnu.org>
843
844 * configure.ac: Provide prerequisite headers when checking
845 <link.h>, <sys/proc.h> and <sys/user.h>.
846 * configure: Regenerate.
847
848 2005-01-08 Mark Kettenis <kettenis@gnu.org>
849
850 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Set to
851 tm-ppc-eabi.h instead of the removed tm-nbsd.h.
852
853 2005-01-07 Mark Kettenis <kettenis@gnu.org>
854
855 * config/ia64/tm-linux.h: Tweak comment. Update copyright year.
856 Don't include "tm-ia64.h".
857 * config/ia64/ia64.mt (DEPRECATED_TM_FILE): Remove.
858 * config/ia64/tm-ia64.h: Remove. Move contents ...
859 * ia64-tdep.h: ... here. Update copyright year.
860
861 2005-01-07 Andrew Cagney <cagney@gnu.org>
862
863 * configure.ac: Rename configure.in, require autoconf 2.59.
864 * configure: Re-generate.
865
866 * configure.tgt: Disable arm*-*-*, thumb*-*-*, strongarm*-*-*,
867 xscale-*-* and i[34567]86-*-netware* code adding rdi-share or nlm
868 to configdirs.
869
870 * configure.in: Replace configdirs with multiple references to
871 AC_CONFIG_SUBDIRS.
872 * configure: Re-generate.
873
874 2005-01-05 Andreas Schwab <schwab@suse.de>
875
876 * ia64-tdep.c: Include "osabi.h".
877 (native_find_global_pointer): Delete.
878 (ia64_find_global_pointer): Renamed from
879 generic_elf_find_global_pointer.
880 (FIND_GLOBAL_POINTER): Delete. Change all users to call
881 ia64_find_global_pointer instead.
882 (ia64_gdbarch_init): Call gdbarch_init_osabi. Remove references
883 to ia64_linux_sigcontext_register_address and
884 ia64_linux_write_pc. Don't set tdep->find_global_pointer.
885 (_initialize_ia64_tdep): Call gdbarch_register instead of
886 deprecated register_gdbarch_init.
887 (struct gdbarch_tdep): Remove find_global_pointer field and move
888 to ...
889 * ia64-tdep.h (struct gdbarch_tdep): ... here.
890 (ia64_linux_sigcontext_register_address): Remove declaration.
891 (ia64_linux_getunwind_table): Likewise.
892 (ia64_linux_write_pc): Likewise.
893 * ia64-linux-tdep.c: Include "osabi.h".
894 (ia64_linux_sigcontext_register_address): Make static.
895 (ia64_linux_write_pc): Likewise.
896 (ia64_linux_init_abi): New.
897 (_initialize_ia64_linux_tdep): New.
898 * Makefile.in (ia64-tdep.o, ia64-linux-tdep.o): Depend on
899 $(osabi_h).
900
901 2005-01-05 Kevin Buettner <kevinb@redhat.com>
902
903 * ia64-tdep.c (ia64_gdbarch_init): Eliminate dependency on
904 functions in ia64-aix-tdep.c.
905 * ia64-tdep.h (ia64_aix_sigcontext_register_address): Remove
906 function defined in ia64-aix-tdep.c.
907 * ia64-aix-tdep.c: Remove file.
908 * config/ia64/linux.mt (TDEPFILES): Remove ia64-aix-tdep.o from
909 this list.
910 * Makefile.in (ia64-aix-tdep.o): Delete.
911
912 2005-01-05 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
913
914 Committed by Andrew Cagney.
915 * ada-valprint.c, aix-thread.c, alpha-nat.c: I18n markup.
916 * alphabsd-nat.c, alphanbsd-tdep.c, amd64-linux-nat.c: I18n markup.
917 * amd64-tdep.c, amd64bsd-nat.c, amd64fbsd-nat.c: I18n markup.
918 * arch-utils.c, arm-linux-nat.c, arm-tdep.c: I18n markup.
919 * armnbsd-nat.c, armnbsd-tdep.c, auxv.c, avr-tdep.c: I18n markup.
920 * aix-thread.c (_initialize_aix_thread): Get rid of the
921 deprecated_add_show_from_set call.
922 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
923 * arm-tdep.c (_initialize_arm_tdep): Ditto.
924 * command.h (add_setshow_enum_cmd): Add arguments for returning
925 new list elements.
926 * cli/cli-decode.c (add_setshow_enum_cmd): Ditto.
927 * mips-tdep.c (_initialize_mips_tdep): Modify calls to
928 add_setshow_enum_cmd.
929
930 2005-01-04 Mark Kettenis <kettenis@gnu.org>
931
932 * configure.host (ia64-*-aix*): Remove.
933 * configure.tgt (ia64-*-aix*): Remove.
934 * config/ia64/aix.mh: Remove file.
935 * config/ia64/aix.mt: Remove file.
936 * config/ia64/tm-aix.h: Remove file.
937 * ia64-aix-nat.c: Remove file.
938 * Makefile.in (ia64-aix-nat.o): Remove dependency.
939
940 * config/m88k/obsd.mh (NATDEPFILES): Really remove inf-child.o.
941 Add back inf-ptrace.o.
942
943 2005-01-04 Andrew Cagney <cagney@gnu.org>
944
945 * version.in: Change format from 6.3.50_2005-01-04-cvs to
946 6.3.50.20050104-cvs.
947
948 2005-01-04 Andreas Schwab <schwab@suse.de>
949
950 * breakpoint.c (break_command_1): Always free err_msg before
951 returning when an exception was caught.
952
953 2005-01-01 Joel Brobecker <brobecker@gnat.com>
954
955 * hppa-tdep.c (prologue_inst_adjust_sp): Fix small confusion
956 in register number for addil instruction.
957
958 For older changes see ChangeLog-2004.
959 \f
960 Local Variables:
961 mode: change-log
962 left-margin: 8
963 fill-column: 74
964 version-control: never
965 End: