OSDN Git Service

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