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