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