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