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