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