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