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