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