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