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