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