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