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