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