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