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