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