2005-02-10 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2005-02-10 Andrew Cagney <cagney@gnu.org>
2
3 * cli/cli-decode.c (add_setshow_enum_cmd, add_setshow_cmd_full)
4 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
5 (add_setshow_filename_cmd, add_setshow_string_cmd)
6 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Replace
7 print string parameter with fprint_setshow function.
8 * command.h (fprint_setshow_ftype): Define. Update declarations.
9 * cli/cli-setshow.c (do_setshow_command): When fprint_setshow is
10 available, use that.
11 * cli/cli-decode.h (struct cmd_list_element): Add field
12 fprint_setshow.
13 * complaints.c (fprint_setshow_complaints): New function.
14 (_initialize_complaints): Pass to add_setshow_zinteger_cmd.
15 * hppa-tdep.c (_initialize_hppa_tdep): Replace "print" parameter
16 with NULL.
17 * mips-tdep.c (_initialize_mips_tdep): Ditto.
18 * m32r-rom.c (_initialize_m32r_rom): Ditto.
19 * cris-tdep.c (_initialize_cris_tdep): Ditto.
20 * arm-tdep.c (_initialize_arm_tdep): Ditto.
21 * remote-rdi.c (_initialize_remote_rdi): Ditto.
22 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
23 * dwarf2read.c (_initialize_dwarf2_read): Ditto.
24 * frame.c (_initialize_frame): Ditto.
25 * target.c (initialize_targets): Ditto.
26 * maint.c (_initialize_maint_cmds): Ditto.
27 * observer.c (_initialize_observer): Ditto.
28 * infcall.c (_initialize_infcall): Ditto.
29 * breakpoint.c (_initialize_breakpoint): Ditto.
30 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
31 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
32
33 * cli/cli-setshow.c (do_setshow_command): Move code printing the
34 value to the end of the function. Handle MI and non-MI output
35 differently.
36
37 2005-02-09 Andrew Cagney <cagney@gnu.org>
38
39 * cli/cli-decode.c (add_setshow_enum_cmd): Drop set_result and
40 show_result parameters.
41 * mips-tdep.c (_initialize_mips_tdep): Update calls.
42 * command.h: Update declaration.
43 * arm-tdep.c (_initialize_arm_tdep, _initialize_arm_tdep): Update
44 calls.
45
46 * NEWS: Mention removed commands.
47 * m68hc11-tdep.c (show_regs): Delete, unused.
48 (_initialize_m68hc11_tdep): Delete deprecated "regs" command.
49 * gdb-events.sh: Delete deprecated "set eventdebug" and "show
50 eventdebug" commands.
51 * gdb-events.c: Regenerate.
52 * gdbarch.sh: Delete deprecated "set archdebug" and "show
53 archdebug" commands.
54 * gdbarch.c: Regenerate.
55 * cli/cli-cmds.c (init_cli_cmds): Delete deprecated "set
56 remotedebug" and "show remotedebug".
57 * arm-tdep.c (_initialize_arm_tdep): Delete deprecated "set arm
58 disassembly-flavor", "show arm disassembly-flavor", and
59 "othernames" commands.
60 (arm_othernames): Delete unused function.
61
62 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call)
63 (convert_code_addr_to_desc_addr): Convert any function code
64 address to the corresponding function's descriptor.
65 (ppc64_sysv_abi_return_value): have TYPE_CODE_ENUM and
66 TYPE_CODE_INT use the same code paths as TYPE_CODE_INT. When
67 writing, convert any function code address to the corresponding
68 descriptor.
69
70 * config/sh/linux.mt (TDEPFILES): Add symfile-mem.o.
71 * config/powerpc/linux.mt (TDEPFILES): Ditto.
72 * config/pa/linux.mt (TDEPFILES): Ditto.
73 * config/mips/linux.mt (TDEPFILES): Ditto.
74 * config/m68k/linux.mt (TDEPFILES): Ditto.
75 * config/m32r/linux.mt (TDEPFILES): Ditto.
76 * config/ia64/linux.mt (TDEPFILES): Ditto.
77 * config/arm/linux.mt (TDEPFILES): Ditto.
78
79 2005-02-09 Corinna Vinschen <vinschen@redhat.com>
80
81 * symmisc.c: Include gdb_stat.h.
82 (maintenance_print_msymbols): Use inode numbers to compare files.
83
84 2005-02-08 Andrew Cagney <cagney@gnu.org>
85
86 * value.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
87 (METHOD_PTR_TO_VOFFSET): Move from here ...
88 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
89 (METHOD_PTR_TO_VOFFSET): ... to here.
90 * cp-valprint.c, p-valprint.c, eval.c: Include "cp-support.h".
91 * Makefile.in: Update dependencies.
92
93 * exceptions.c: Do not include <setjmp.h>.
94 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP): Delete macros.
95 (catch_exception, catch_exceptions_with_msg, catch_errors)
96 (catch_command_errors): Use TRY_CATCH.
97 (struct catcher): Use EXCEPTIONS_SIGJMP_BUF.
98 (exceptions_state_mc_init): Rename catcher_init.
99 (exceptions_state_mc): Rename catcher_state_machine.
100 (exceptions_state_mc_action_iter)
101 (exceptions_state_mc_action_iter_1): New functions.
102 * exceptions.h: Include <setjmp.h>.
103 (EXCEPTIONS_SIGJMP_BUF, EXCEPTIONS_SIGSETJMP)
104 (EXCEPTIONS_SIGLONGJMP): Define.
105 (exceptions_state_mc_init, exceptions_state_mc_action_iter)
106 (exceptions_state_mc_action_iter_1): Declare.
107 (TRY_CATCH): Define.
108
109 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not set malloc name,
110 no longer needed.
111
112 * ppc-linux-nat.c (ppc_register_u_addr): Hack around 64-bit
113 PT_FPSCR breakage.
114
115 * value.c (struct value): Move to here ...
116 * value.h (struct value): ... from here. Copy comments to
117 corresponding function declarations, re-order.
118
119 2005-02-07 Andrew Cagney <cagney@gnu.org>
120
121 * value.c (set_value_bitpos, set_value_bitsize): Define.
122 * value.h (set_value_bitpos, set_value_bitsize): Declare.
123 * ada-lang.c, valarith.c: Update.
124
125 * cp-valprint.c, c-valprint.c, infcall.c: Use value_contents or
126 value_contents_writeable, include note that there are problems.
127 * breakpoint.c, infcall.c: Use VALUE_LVAL.
128
129 * value.h (set_value_offset): Declare.
130 * value.c (set_value_offset): Declare.
131 * gnu-v2-abi.c, jv-valprint.c, valarith.c, valops.c: Update.
132 * findvar.c: Update.
133
134 * value.h (value_next): Declare.
135 * value.c (value_next): Define.
136 * breakpoint.c: Update.
137
138 * value.h (deprecated_set_value_modifiable)
139 (deprecated_value_modifiable): Declare.
140 * value.c (deprecated_set_value_modifiable): Define.
141 (deprecated_value_modifiable): Define.
142 * ada-lang.c, valops.c, breakpoint.c, tracepoint.c: Update.
143
144 * value.h (deprecated_set_value_type): Declare.
145 * value.c (deprecated_set_value_type): Define.
146 * hpacc-abi.c, gnu-v2-abi.c, cp-valprint.c: Update.
147 * c-valprint.c, jv-lang.c, objc-lang.c, ada-lang.c: Update.
148 * infcall.c, printcmd.c, valops.c, eval.c, p-exp.y: Update.
149 * ax-gdb.c, tracepoint.c: Update.
150
151 * value.h (deprecated_value_lval_hack)
152 (deprecated_value_address_hack)
153 (deprecated_value_internalvar_hack)
154 (deprecated_value_regnum_hack): Declare.
155 (VALUE_LVAL, VALUE_ADDRESS, VALUE_INTERNALVAR)
156 (VALUE_FRAME_ID, VALUE_REGNUM): Use.
157 * value.c (deprecated_value_lval_hack)
158 (deprecated_value_address_hack)
159 (deprecated_value_internalvar_hack)
160 (deprecated_value_regnum_hack): Define.
161
162 * value.h (VALUE_POINTED_TO_OFFSET): Delete.
163 (set_value_pointed_to_offset, value_pointed_to_offset): Declare.
164 * value.c (set_value_pointed_to_offset): Define
165 (value_pointed_to_offset): Define.
166 * valops.c: Update.
167
168 * value.h (VALUE_EMBEDDED_OFFSET): Delete.
169 (value_embedded_offset, set_value_embedded_offset): Declare.
170 * value.c (value_embedded_offset): Define.
171 (set_value_embedded_offset): Define.
172 * valops.c, p-valprint.c, mi/mi-main.c, hpacc-abi.c: Update.
173 * gnu-v3-abi.c, eval.c, c-valprint.c, cp-valprint.c: Update.
174 * cp-abi.h: Update.
175
176 * value.h (VALUE_LAZY): Delete
177 (set_value_lazy): Declare.
178 * value.c (set_value_lazy): Define.
179 * valops.c, valarith.c, jv-valprint.c, jv-lang.c: Update.
180 * gnu-v2-abi.c, findvar.c, dwarf2loc.c, ada-lang.c: Update.
181
182 2005-02-06 Andrew Cagney <cagney@gnu.org>
183
184 * value.h (VALUE_OPTIMIZED_OUT): Delete.
185 (value_optimized_out, set_value_optimized_out): Declare.
186 * value.c (set_value_optimized_out, value_optimized_out): Define.
187 * valprint.c, findvar.c, dwarf2loc.c: Update.
188
189 * value.c (value_contents, value_contents_writeable): New
190 functions.
191 * value.h (VALUE_CONTENTS): Delete macro.
192 (value_contents, value_contents_writeable): Declare.
193 * xstormy16-tdep.c, value.c, valops.c, valarith.c: Update.
194 * stack.c, sparc-tdep.c, sparc64-tdep.c, sh-tdep.c: Update.
195 * sh64-tdep.c, scm-valprint.c, scm-exp.c, s390-tdep.c: Update.
196 * rs6000-tdep.c, p-valprint.c, printcmd.c: Update.
197 * ppc-sysv-tdep.c, mips-tdep.c, mi/mi-main.c: Update.
198 * m88k-tdep.c, m68hc11-tdep.c, m32r-tdep.c: Update.
199 * jv-valprint.c, ia64-tdep.c, hppa-tdep.c: Update.
200 * hpacc-abi.c, f-valprint.c, frv-tdep.c, eval.c: Update.
201 * c-valprint.c, cris-tdep.c, cp-valprint.c: Update.
202 * cli/cli-dump.c, breakpoint.c, avr-tdep.c, arm-tdep.c: Update.
203 * arm-linux-tdep.c, amd64-tdep.c, alpha-tdep.c: Update.
204 * ada-valprint.c, ada-lang.c: Update.
205
206 2005-02-03 Andrew Cagney <cagney@gnu.org>
207
208 * utils.c (xzalloc): New function.
209 * defs.h (XZALLOC): Use xzalloc.
210 (xzalloc): Declare.
211 * value.c (allocate_value): Allocate a zeroed buffer.
212 * mdebugread.c (xzalloc): Delete.
213
214 2005-02-02 Andrew Cagney <cagney@gnu.org>
215
216 * value.h (value_lazy): Declare.
217 * varobj.c, value.c, valops.c, valarith.c, printcmd.c: Update.
218 * cp-valprint.c, breakpoint.c, ada-lang.c: Update.
219
220 * value.h (VALUE_CONTENTS_ALL): Delete.
221 (value_contents_all): Declare.
222 * value.c (value_contents_all): New function.
223 * hpacc-abi.c, cp-valprint.c, valops.c, c-valprint.c: Update.
224 * m68k-tdep.c, i386-tdep.c, infcall.c, valops.c: Update.
225
226 * value.c (value_enclosing_type): New function.
227 * value.h (VALUE_ENCLOSING_TYPE): Delete.
228 (value_enclosing_type): Declare.
229 * xstormy16-tdep.c, vax-tdep.c, m68k-tdep.c, i386-tdep.c: Update.
230 * gnu-v3-abi.c, hpacc-abi.c, infcall.c, valops.c: Update.
231
232 * value.c (value_contents_all_raw)
233 (value_contents_raw): New functions.
234 * value.h (VALUE_CONTENTS_ALL_RAW, VALUE_CONTENTS_RAW): Delete.
235 (value_contents_raw, value_contents_all_raw): Declare functions.
236 (VALUE_CONTENTS, VALUE_CONTENTS_ALL): Update.
237 * std-regs.c, valarith.c, valops.c, eval.c: Update.
238 * tracepoint.c, findvar.c: Update.
239
240 2005-02-01 Orjan Friberg <orjanf@axis.com>
241
242 * regformats/reg-cris.dat: New file with register definitions for CRIS.
243 * regformats/reg-crisv32.dat: Ditto for CRISv32.
244
245 2005-01-31 Andrew Cagney <cagney@gnu.org>
246
247 * configure: Regenerate to track ../gettext.m4.
248
249 2005-01-29 Baurzhan Ismagulov <ibr@radix50.net>
250
251 * MAINTAINERS: Add myself to "Write After Approval".
252
253 * ax-gdb.c, ax-general.c, bcache.c, bfd-target.c, bsd-kvm.c,
254 * buildsym.c, c-lang.c, c-typeprint.c, c-valprint.c, charset.c,
255 * coff-pe-read.c, coffread.c, complaints.c, copying.c: I18n markup.
256
257 2005-01-29 Mark Kettenis <kettenis@gnu.org>
258
259 * configure.ac: Remove extra check for ranlib.
260 * configure: Regenerated.
261
262 2005-01-28 Andrew Cagney <cagney@gnu.org>
263
264 * language.h (struct language_defn): Make la_val_print's buffer
265 parameter a const bfd_byte.
266 * cp-valprint.c (cp_print_value_fields, cp_print_value): Update.
267 * ada-lang.c (ada_aligned_value_addr)
268 (ada_value_primitive_packed_val, ada_which_variant_applies): Update.
269 * valprint.c (val_print_array_elements): Update.
270 * valprint.h (val_print_array_elements): Update.
271 * ada-lang.h (ada_val_print, ada_aligned_value_addr)
272 (ada_value_primitive_packed_val, ada_which_variant_applies): Update.
273 * ada-valprint.c (ada_val_print, struct ada_val_print_args)
274 (ada_val_print_1, ada_print_floating, printable_val_type)
275 (print_record, val_print_packed_array_elements)
276 (print_field_values, print_variant_part): Update.
277 * c-lang.h (c_val_print, cp_print_value_fields): Update.
278 * c-valprint.c (c_val_print): Update.
279 * f-lang.h (f_val_print): Update.
280 * f-valprint.c (f_val_print, f77_print_array_1)
281 (f77_print_array): Update.
282 * jv-lang.h (java_val_print): Update.
283 * jv-valprint.c (java_print_value_fields, java_val_print): Update.
284 * language.c (unk_lang_val_print): Update.
285 * m2-lang.h (m2_val_print): Update.
286 * m2-valprint.c (m2_val_print): Update.
287 * p-lang.h (pascal_val_print): Update.
288 (pascal_object_print_value_fields): Update.
289 * p-valprint.c (pascal_val_print)
290 (pascal_object_print_value_fields, pascal_object_print_value)
291 (pascal_object_print_value): Update.
292 * scm-lang.h (scm_val_print): Update.
293 * scm-valprint.c (scm_val_print): Update.
294 * value.h (val_print): Update.
295
296 * p-lang.h (pascal_object_print_class_member)
297 (pascal_object_print_class_method): Make buffer a const bfd_byte.
298 * p-valprint.c (pascal_object_print_class_method)
299 (pascal_object_print_class_method): Ditto.
300
301 * language.h (struct language_defn): Make la_printstr's buffer
302 parameter a const bfd_byte.
303 * p-lang.h (pascal_printstr): Update function to match.
304 * ada-valprint.c (ada_printstr): Update function to match.
305 * scm-lang.c (scm_printstr): Update function to match.
306 * p-lang.c (pascal_printstr): Update function to match.
307 * ada-lang.h (ada_printstr): Update function to match.
308 * m2-lang.c (m2_printstr): Update function to match.
309 * objc-lang.c (objc_printstr): Update function to match.
310 * c-lang.h (c_printstr): Update function to match.
311 * f-lang.c (f_printstr): Update function to match.
312 * c-lang.c (c_printstr): Update function to match.
313 * language.c (unk_lang_printstr): Update function to match.
314
315 * valprint.c (val_print_type_code_int): Make buffer a const bfd_byte.
316 * valprint.h (val_print_type_code_int): Ditto.
317
318 * objc-lang.h (c_val_print, c_value_print): Delete declarations.
319
320 * cp-valprint.c (cp_print_class_method)
321 (cp_print_class_member): Make buffer a const bfd_byte.
322 * c-lang.h (cp_print_class_member, cp_print_class_method): Ditto.
323
324 * ada-lang.c (value_from_contents_and_address)
325 (to_record_with_fixed_variant_part)
326 (value_tag_from_contents_and_address, ada_to_fixed_type)
327 (to_fixed_variant_branch_type, to_fixed_record_type)
328 (ada_template_to_fixed_record_type, cond_offset_host)
329 (ada_template_to_fixed_record_type_1): Make buffer a const
330 bfd_byte.
331 * ada-lang.h (ada_template_to_fixed_record_type_1)
332 (value_from_contents_and_address, ada_to_fixed_type): Ditto.
333
334 * ada-valprint.c (char_at, printstr): Make buffer a const bfd_byte.
335
336 * gdbtypes.h (print_scalar_formatted): Make buffer a const bfd_byte.
337 * printcmd.c (print_scalar_formatted): Update.
338
339 * value.h (value_bit_index, print_floating)
340 (find_rt_vbase_offset): Make buffer a const bfd_byte.
341 * valprint.c (print_floating): Update.
342 * valarith.c (value_bit_index): Update.
343 * valops.c (find_rt_vbase_offset): Update.
344
345 * valprint.h (print_octal_chars, print_char_chars)
346 (print_hex_chars, print_decimal_chars, print_binary_chars): Make
347 buffer a const bfd_byte.
348 * valprint.c (print_binary_chars, print_octal_chars)
349 (print_decimal_chars, print_hex_chars, print_char_chars): Make
350 "valaddr"buffer a const bfd_byte, ditto for local variables
351 referencing that buffer.
352
353 * m2-valprint.c: Include "c-lang.h".
354 (c_val_print): Delete extern declaration.
355 * scm-valprint.c: Include "c-lang.h".
356 (c_val_print): Delete extern declaration.
357 Makefile.in: Update dependencies.
358
359 * gnu-v2-abi.h (gnuv2_baseclass_offset): Make "valaddr" a const
360 bfd_byte.
361 * cp-abi.h (baseclass_offset): Make "valaddr" a const bfd_byte.
362 (struct cp_abi_ops): Make baseclass_offset's "valaddr" a const
363 bfd_byte.
364 * cp-abi.c (baseclass_offset): Update.
365 * gnu-v2-abi.c (gnuv2_baseclass_offset): Update.
366
367 * gnu-v2-abi.h: New file.
368 * gnu-v2-abi.c: Include "gnu-v2-abi.h".
369 (gnuv2_baseclass_offset): Delete declaration.
370 * hpacc-abi.c: Include "gnu-v2-abi.h".
371 (gnuv2_baseclass_offset): Delete extern declaration.
372 * Makefile.in: Update dependencies.
373
374 * doublest.c (floatformat_is_negative, floatformat_is_nan)
375 (floatformat_mantissa, get_field): Make the buffer a const
376 bfd_byte, simplify.
377
378 2005-01-27 Andrew Cagney <cagney@gnu.org>
379
380 * value.h (struct value): Change type of contents to bfd_byte.
381 (VALUE_CONTENTS_RAW): Simplify.
382
383 * gdbarch.sh (integer_to_address): Change buf parameter to a const
384 bfd_byte, make pure-multi-arch.
385 * gdbarch.h, gdbarch.c: Regenerate.
386 * mips-tdep.c (mips_integer_to_address): Update.
387 * value.c (value_as_address): Update.
388
389 * cli/cli-dump.h (fopen_with_cleanup): Make "filename" const.
390 * cli/cli-dump.c (dump_binary_file, dump_bfd_file): Make string
391 parameters const, change buf to a const bfd_byte.
392 (fopen_with_cleanup, bfd_openw_with_cleanup): Make all string
393 parameters const.
394
395 * corefile.c (write_memory): Update, make a copy of the read-only
396 buffer.
397 * target.c (target_read_memory): Update.
398 (target_write_memory): Update, make a copy of the read-only
399 buffer.
400 * gdbcore.h (write_memory): Change buffer type to bfd_byte, make
401 const.
402 * target.h (target_read_memory, target_write_memory): Change
403 buffer type to bfd_byte; for write_memory, make it const.
404 * symfile-mem.c (do_target_read_memory): New function.
405 (symbol_file_add_from_memory): Pass do_target_read_memory to
406 bfd_elf_bfd_from_remote_memory.
407
408 * value.h: Indent using gdb_indent.sh.
409
410 * configure: Regenerate to track ../gettext.m4 change.
411
412 2005-01-26 Andrew Cagney <cagney@gnu.org>
413
414 * rs6000-tdep.c: Include "reggroups.h".
415 (rs6000_gdbarch_init): Set register_reggroup_p.
416 (rs6000_register_reggroup_p): New function.
417
418 2005-01-26 Orjan Friberg <orjanf@axis.com>
419
420 * cris-tdep.c (enum cris_num_regs, enum cris_regnums)
421 (cris_sigtramp_frame_unwind_cache, cris_register_size): Update for
422 CRISv32.
423 (crisv32_single_step_through_delay, cris_can_use_hardware_watchpoint)
424 (cris_region_ok_for_watchpoint, cris_stopped_data_address)
425 (crisv32_cannot_fetch_register, crisv32_cannot_store_register)
426 (crisv32_register_type, cris_special_register_name)
427 (crisv32_register_name): New functions.
428 (cris_spec_reg_applicable): Recognize more versions.
429 (cris_register_name): Update with call to cris_special_register_name.
430 (find_cris_op): Filter out CRISv32 instructions. Tweaked comment and
431 warning when unable to find step target.
432 (CRISV10_ELF_NGREG, CRISV32_ELF_NGREG, crisv32_elf_gregset_t): Define.
433 (supply_gregset): Add struct gdbarch_tdep. Set pseudo-PC register for
434 CRISv32.
435 (fetch_core_registers): Update for CRISv32.
436 (cris_gdbarch_init): Set pc_regnum, register_type, num_regs,
437 register_name, cannot_store_register, cannot_fetch_register,
438 have_nonsteppable_watchpoint, single_step_through_delay for CRISv32.
439
440 2005-01-26 Nick Roberts <nickrob@snap.net.nz>
441
442 * interps.c (interpreter_exec_cmd): Use condition,
443 e.reason < 0, to raise an error.
444
445 2005-01-25 Andrew Cagney <cagney@gnu.org>
446
447 * ppc-linux-tdep.c: Include "tramp-frame.h"
448 (struct ppc_linux_sigtramp_cache)
449 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
450 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
451 (ppc_linux_sigtramp_cache): Delete.
452 (ppc32_linux_sigaction_cache_init)
453 (ppc64_linux_sigaction_cache_init)
454 (ppc32_linux_sighandler_cache_init)
455 (ppc64_linux_sighandler_cache_init)
456 (ppc32_linux_sigaction_tramp_frame)
457 (ppc64_linux_sigaction_tramp_frame)
458 (ppc32_linux_sighandler_tramp_frame)
459 (ppc64_linux_sighandler_tramp_frame)
460 (ppc_linux_sigtramp_cache, ppc_linux_init_abi): Implement 32 and
461 64-bit, sigaction and siginfo tramp-frame unwinders.
462
463 * ppc-linux-tdep.c (ppc_linux_init_abi): Always set
464 long_double_bit to 8.
465
466 2005-01-24 Andrew Cagney <cagney@gnu.org>
467
468 * infrun.c (handle_inferior_event): Handle back-to-back and nested
469 signals where the step_resume_breakpoint may have already been
470 inserted.
471
472 2005-01-24 Andrew Cagney <cagney@gnu.org>
473
474 * configure: Regenerate, ../gettext.m4 was updated.
475
476 2005-01-23 Mark Kettenis <kettenis@gnu.org>
477
478 * NEWS: Mention new BSD user-level threads support.
479
480 * i386obsd-tdep.c: Update copyright year. Include
481 "bsd-uthread.h".
482 (i386obsd_uthread_reg_offset): New variable.
483 (I386OBSD_UTHREAD_ESP_OFFSET): New define.
484 (i386obsd_supply_uthread, i386obsd_collect_uthread): New
485 functions.
486 (i386obsd_init_abi): Set supply_uthread and collect_uthread.
487 * Makefile.in (i386obsd-tdep.o): Update dependencies.
488 * config/i386/obsd.mt (TDEPFILES): Add bsd-uthread.o.
489
490 2005-01-23 Christopher Faylor <cgf@timesys.com>
491
492 * win32-nat.c: Update copyright year.
493 (child_init_thread_list): Set thread linked list point to NULL so that
494 it won't be reused after clearing.
495
496 2005-01-21 Mark Kettenis <kettenis@gnu.org>
497
498 * acconfig.h (HAVE_STRUCT_REG_R_FS, HAVE_STRUCT_R_GS): Remove
499 undefs.
500 * configure.ac: Use AC_CHECK_MEMBERS to check whether `struct
501 thread' has a td_pcb member and whether `struct reg' has r_fs and
502 r_gs members.
503 * configure, config.in: Regenerate.
504
505 2005-01-21 Mark Kettenis <kettenis@gnu.org>
506
507 * configure.ac: Remove ia64-*-aix* junk.
508 * configure: Regenerate.
509
510 * configure.ac: Use AC_CHECK_DECLS instead of gcc_AC_CHECK_DECLS
511 and BFD_NEED_DECLARATION. Don't check if a declaration of strdup
512 is necessary.
513 * configure, config.in: Regenerate.
514 * utils.c: Adjust for usage of AC_CHECK_DECLS instead of
515 BFD_NEED_DECLARATION. Never provide a prototype for
516 caninicalize_file_name.
517 * gdb_string.h: Adjust for usage of AC_CHECK_DECLS instead of
518 BFD_NEED_DECLARATION.
519
520 * configure.ac (targ_archs): Use standard autoconf check for
521 "struct stat.st_blocks" instead of rolling our own.
522 * configure: Regenerated.
523 * acconfig.h (HAVE_STRUCT_STAT_ST_BLOCKS): Remove undef.
524 * config.in: Regenerated.
525
526 2005-01-21 Mark Kettenis <kettenis@gnu.org>
527
528 * configure.ac: Modernize checks for `long long' and `long double'
529 support.
530 * configure: Regenerated.
531 * acconfig.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG)
532 (PRINT_HAS_LONG_DOUBLE, SCANF_HAS_LONG_DOUBLE): Remove undefs.
533 * config.in: Regenerated.
534
535 2005-01-20 Mark Kettenis <kettenis@gnu.org>
536
537 * acconfig.h (HAVE_STRUCT_SAVE_STATE_T)
538 (HAVE_STRUCT_MEMBER_SS_WIDE): Remove undefs.
539 * configure.ac: Remove checks for HP-UX save_state structure.
540 * configure: Regenerated.
541
542 2005-01-19 Andrew Cagney <cagney@gnu.org>
543
544 * utils.c (quit): Simplify, call fatal.
545 * exceptions.c: Include "serial.h"
546 (print_flush): Mimic flush code found in utils.c:quit.
547 * Makefile.in: Update dependencies.
548
549 2005-01-19 Jim Blandy <jimb@redhat.com>
550
551 * configure.tgt: Set build_rdi_share to "yes" on those targets
552 that use that debugging protocol.
553 Set build_nlm to yes to build NLM stub for Netware targets.
554 * configure.ac: If build_rdi_share is "yes", then configure the
555 rdi-share subdirectory.
556 If build_nlm is "yes", the configure the "nlm" subdirectory.
557 * configure: Regenerated.
558
559 * rdi-share/configure, rdi-share/aclocal.m4: Regenerated using
560 autoconf 2.59 and automake 1.9.3.
561
562 2005-01-19 Andrew Cagney <cagney@gnu.org>
563
564 * exceptions.h (deprecated_throw_reason): Rename throw_reason.
565 * exceptions.c (deprecated_throw_reason): Rename throw_reason.
566 * utils.c (internal_verror, quit): Update.
567 * remote-sds.c (interrupt_query): Update.
568 * remote-mips.c (mips_error, mips_kill): Update.
569 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Update.
570 * remote.c (interrupt_query): Update.
571 * ocd.c (interrupt_query): Update.
572 * nto-procfs.c (interrupt_query): Update.
573 * monitor.c (monitor_interrupt_query): Update.
574 * breakpoint.c (break_command_1): Update.
575
576 * infrun.c: (resume, proceed, wait_for_inferior)
577 (handle_inferior_event, stop_stepping)
578 (prepare_to_wait): Write debug output to gdb_stdlog.
579
580 2005-01-19 Mark Kettenis <kettenis@gnu.org>
581
582 * inf-ptrace.c (inf_ptrace_prepare_to_store)
583 (inf_ptrace_post_startup_inferior)
584 (inf_ptrace_acknowledge_created_inferior)
585 (inf_ptrace_insert_fork_catchpoint)
586 (inf_ptrace_remove_fork_catchpoint)
587 (inf_ptrace_insert_vfork_catchpoint):
588 (inf_ptrace_remove_vfork_catchpoint, inf_ptrace_follow_fork)
589 (inf_ptrace_insert_exec_catchpoint)
590 (inf_ptrace_remove_exec_catchpoint): Remove functions.
591 (inf_ptrace_reported_exec_events_per_exec_call): Tweak comment.
592 (inf_ptrace_target): Don't set to_prepare_to_store,
593 to_post_startup_inferior, to_acknowledge_created_inferior,
594 to_insert_fork_ctachpoint, to_remove_fork_catchpoint,
595 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
596 to_follow_fork, to_insert_exec_catchpoint,
597 to_remove_exec_catchpoint.
598
599 2005-01-18 Andrew Cagney <cagney@gnu.org>
600
601 * target.h (struct target_ops): Change return type of
602 to_insert_fork_catchpoint, to_insert_vfork_catchpoint and
603 to_insert_exec_catchpoint to void.
604 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
605 (child_insert_exec_catchpoint): Change return type to void.
606 * target.c (update_current_target): Update.
607 (debug_to_insert_fork_catchpoint)
608 (debug_to_insert_vfork_catchpoint)
609 (debug_to_insert_exec_catchpoint): Update.
610 * inf-child.c (inf_child_insert_fork_catchpoint)
611 (inf_child_insert_vfork_catchpoint)
612 (inf_child_insert_exec_catchpoint): Update.
613 * breakpoint.c (insert_catchpoint): Update, do not throw an error.
614 * linux-nat.c (child_insert_fork_catchpoint)
615 (child_insert_vfork_catchpoint)
616 (child_insert_exec_catchpoint): Update.
617 * inftarg.c (child_insert_fork_catchpoint)
618 (child_insert_vfork_catchpoint,)
619 (child_insert_exec_catchpoint): Update.
620
621 * remote.c (remote_open_1): Use throw_exception.
622
623 2005-01-17 Michael Snyder <msnyder@redhat.com>
624
625 * mips-linux-tdep.c: Whitespace tweaks.
626
627 2005-01-17 Corinna Vinschen <vinschen@redhat.com>
628
629 * infcmd.c (attach_command): Call CLEAR_SOLIB if available.
630
631 2005-01-17 Andrew Cagney <cagney@gnu.org>
632
633 * top.h (source_error, source_pre_error): Delete declaration.
634 * cli/cli-script.c (source_error_allocated, source_error): Delete.
635 (script_from_file, source_cleanup_lines): Do not manipulate
636 source_error_allocated, error_pre_print and source_error.
637 (struct source_cleanup_lines_args): Delete fields old_pre_error,
638 and old_error_pre_print.
639 * top.c (source_error_allocated, source_error)
640 (source_pre_error): Delete.
641 (command_line_input): Do not set error_pre_print.
642 * event-top.c (command_line_handler): Do not set error_pre_print.
643
644 2005-01-16 Jason Thorpe <thorpej@netbsd.org>
645
646 * MAINTAINERS: Update my email address.
647
648 2005-01-16 Mark Kettenis <kettenis@gnu.org>
649
650 * configure.ac: Provide prerequisite headers when checking
651 <term.h>.
652 * configure: Regenerate.
653
654 * amd64fbsd-tdep.c: Update copyright year. Include "gdb_assert.h"
655 and "bsd-uthread.h".
656 (amd64fbsd_jmp_buf_reg_offset): New variable.
657 (amd64fbsd_supply_uthread, amd64fbsd_collect_uthread): New
658 functions.
659 (amd64fbsd_init_abi): Set supply_uthread and collect_uthread.
660 * i386fbsd-tdep.c: Fix typo.
661 * Makefile.in (amd64fbsd-tdep.o): Update dependencies.
662 * config/i386/fbsd64.mt (TDEPFILES): Add bsd-uthread.o.
663
664 2005-01-16 Andrew Cagney <cagney@gnu.org>
665
666 * cli/cli-script.c: Include "exceptions.h".
667 (struct wrapped_read_command_file_args): Define.
668 (wrapped_read_command_file): New function.
669 (script_from_file): Replace direct call to read_command_file by
670 one wrapped by an exception handler.
671 * exceptions.c (throw_it): Free the old message after creating the
672 new.
673 * Makefile.in: Update dependencies.
674
675 2005-01-16 Mark Kettenis <kettenis@gnu.org>
676
677 * sparc64fbsd-tdep.c: Update copyright year.
678 (sparc64fbsd_collect_gregset, sparc64fbsd_collect_fpregset): New
679 functions.
680 (sparc64fbsd_init_abi): Create register sets with collect
681 functions.
682
683 * sparc64fbsd-nat.c: Include "fbsd-nat.h".
684 (_initialize_sparc64fbsd_nat): Add some extra features to the
685 generic SPARC target.
686 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
687 * config/sparc/fbsd.mh (NATDEPFILES): Add fbsd-nat.o and gcore.o.
688 (NAT_FILE): Set to solib.h.
689 * config/sparc/nm-fbsd.h: Remove file.
690
691 * sparc64-tdep.c (sparc64_store_arguments): Fix typo.
692
693 * sparc-tdep.c (sparc_integral_or_pointer_p): Simplify.
694
695 2005-01-16 Andrew Cagney <cagney@gnu.org>
696
697 * exceptions.c (struct catcher): Delete saved_error_pre_print and
698 saved_quit_pre_print.
699 (catcher_init): Delete parameter errstring, do not override the
700 pre_print strings.
701 (catcher_pop): Do not restore the pre_print strings.
702 (catch_exception, catch_exceptions_with_msg, catch_errors)
703 (catch_command_errors): Update catch_init calls.
704
705 2005-01-16 Mark Kettenis <kettenis@gnu.org>
706
707 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
708 * sparc64fbsd-nat.c: Update copyright year. Include "target.h".
709
710 2005-01-15 Andrew Cagney <cagney@gnu.org>
711
712 * acinclude.m4: Include ../bfd/bfd.m4 instead of
713 ../bfd/acinclude.m4. Include ../gettext.m4.
714 * aclocal.m4, configure: Re-generate.
715
716 * exceptions.c (do_captured_command)
717 (struct captured_command_args): Delete.
718 (catch_command_errors): Simplify by inlining call to catch_errors.
719
720 * exceptions.c (struct catcher): Delete field print_message.
721 (catcher_init): Delete print_message parameter.
722 (catch_exception, catch_exceptions_with_msg, catch_errors): Update.
723 (throw_it): Delete prefix parameter.
724 (throw_verror, throw_vfatal, throw_error): Update.
725
726 2005-01-14 Andrew Cagney <cagney@gnu.org>
727
728 * exceptions.c (print_and_throw): Delete, replaced by throw_it.
729 (throw_reason): Leave the exception's message field blank.
730 (throw_it): New function, create the exception and throw it.
731 (throw_verror, throw_vfatal, throw_error): Call throw_it.
732 (print_any_exception): New function.
733 (catch_errors, catch_exceptions_with_msg): Call
734 print_any_exception.
735 (throw_exception): Move code calling annotate_error and
736 annotate_quit from here ...
737 (print_exception): ... to here.
738
739 * exceptions.c (exception_fprintf, exception_print): Move printing
740 of \n from here ...
741 (print_exception): ... to here.
742 (print_flush): New function.
743 (exception_print, exception_fprintf): Replace duplicated flush and
744 wrap code with call to print_flush.
745 (print_and_throw): Simplify, by using xstrvprintf, print_flush,
746 and print_exception.
747 (do_write): Delete.
748
749 * remote-sds.c (interrupt_query): Call throw_reason instead of
750 throw_exception.
751 * remote-mips.c (mips_error, mips_kill): Ditto
752 * ocd.c (interrupt_query): Ditto.
753 * nto-procfs.c (interrupt_query): Ditto.
754 * monitor.c (monitor_interrupt_query): Ditto.
755
756 2005-01-14 Jeff Johnston <jjohnstn@redhat.com>
757
758 * ia64-linux-nat.c: Include "ia64-tdep.h" to get register definitions.
759
760 2005-01-14 Andrew Cagney <cagney@gnu.org>
761
762 * exceptions.h (catch_exceptions): Delete errstring parameter.
763 (catch_exceptions_with_msg): Ditto.
764 * exceptions.c (catch_exceptions_with_msg): Update.
765 (catch_exceptions): Update.
766 * symfile-mem.c (add_vsyscall_page): Update.
767 * frame.c (get_current_frame): Update.
768 * wrapper.c (gdb_value_struct_elt): Update.
769 * exceptions.c (catch_exceptions): Update.
770 * thread.c (gdb_list_thread_ids, gdb_thread_select): Update.
771 * breakpoint.c (gdb_breakpoint_query, gdb_breakpoint): Update.
772 * remote-fileio.c (remote_fileio_request): Update.
773
774 * exceptions.h (exception_fprintf): Declare.
775 (exception_print): Drop pre_print parameter.
776 * mi/mi-main.c (mi_execute_command): Update exception_print call.
777 * cli/cli-interp.c (safe_execute_command): Update exception_print
778 call.
779 * remote.c (remote_open_1): Instead of passing an error prefix to
780 catch_exceptions, use catch_exceptions and exception_fprintf.
781 (remote_start_remote): Change return type to void.
782 * breakpoint.c (insert_bp_location): Instead of passing an error
783 prefix to catch_exceptions, use catch_exceptions and
784 exception_fprintf.
785 (insert_catchpoint): Change return type to void.
786 (break_command_1): Update exception_print call.
787 * exceptions.c (exception_fprintf): New function.
788 (print_exception): New function.
789 (exception_print): Use print_exception.
790
791 * utils.c (error_output_message): Delete function.
792 * defs.h (error_output_message): Delete declaration.
793
794 * linespec.c (symtab_from_filename, decode_variable): Use
795 throw_error instead of error_silent.
796 * breakpoint.c (do_captured_parse_breakpoint): Change return type
797 to void.
798 (break_command_1): Use catch_exception and check the error return
799 status.
800 * exceptions.c (throw_error): New function.
801 (throw_vsilent): Delete function.
802 * exceptions.h (throw_error): Declare.
803 (throw_vsilent): Delete declaration.
804 * utils.c (error_silent): Delete function.
805 * defs.h (error_silent): Delete declaration.
806
807 * mi/mi-main.c (mi_execute_command): Print the exception.
808 * cli/cli-interp.c (safe_execute_command): Print the exception.
809 * exceptions.h (exception_print): Declare.
810 * exceptions.c (struct catcher): Add field print_message.
811 (catcher_init): Add parameter print_message, store in the catcher
812 struct.
813 (print_and_throw): Only print the message when print_message.
814 (catch_exceptions_with_msg, catch_errors): Pass print_message=1 to
815 catcher_init.
816 (catch_exception): Pass print_message=0 to catcher_init.
817
818 * varobj.c (varobj_create): Add missing \n.
819
820 2005-01-13 Michael Snyder <msnyder@redhat.com>
821
822 * cli/cli-decode.h: Whitespace tweaks.
823 * wince.c: Whitespace tweaks.
824 * uw-thread.c: Whitespace tweaks.
825 * utils.c: Whitespace tweaks.
826 * tracepoint.[ch]: Whitespace tweaks.
827 * solist.h: Whitespace tweaks.
828
829 2005-01-13 Andrew Cagney <cagney@gnu.org>
830
831 * exceptions.h (struct exception): Make message const.
832 * mi/mi-main.c (mi_execute_command): Pass result.message directly
833 to fputstr_unfiltered.
834
835 2005-01-13 Michael Snyder <msnyder@redhat.com>
836
837 * stack.c: Whitespace tweaks.
838 * somsolib.[ch]: Whitespace tweaks.
839 * solib-aix.c: Whitespace tweaks.
840 * solib.c: Whitespace tweaks.
841 * solib-frv.c: Whitespace tweaks.
842 * solib.h: Whitespace tweaks.
843 * solib-irix.c: Whitespace tweaks.
844 * solib-som.c: Whitespace tweaks.
845 * solib-sunos.c: Whitespace tweaks.
846 * solib-svr4.[ch]: Whitespace tweaks.
847 * ser-tcp.c: Whitespace tweaks.
848 * ser-unix.c: Whitespace tweaks.
849 * serial.h: Whitespace tweaks.
850 * scm-valprint.c: Whitespace tweaks.
851 * rs6000-tdep.c: Whitespace tweaks.
852 * rs6000-nat.c: Whitespace tweaks.
853 * remote.c: Whitespace tweaks.
854
855 2005-01-13 Andrew Cagney <cagney@gnu.org>
856
857 * defs.h (error_last_message, error_init): Delete declaration.
858 * utils.c (fatal, vfatal): Call throw_vfatal.
859 (error, verror): Call throw_verror;
860 (do_write, error_stream_1): Delete function.
861 (error_stream): Simplify, call error.
862 (error_last_message, error_init, gdb_lasterr): Delete.
863 (error_silent): Simplify, call throw_vsilent.
864 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dup the message.
865 * main.c (captured_main): Delete call to error_init.
866 * exceptions.c (throw_verror, throw_verror)
867 (throw_vsilent): New functions.
868 (do_write, print_and_throw): New functions.
869 (last_message): New global.
870 (throw_reason): Replace error_last_message with last_message.
871 (catch_exceptions_with_msg): Dup the message.
872 * exceptions.h (throw_verror, throw_vfatal, throw_vsilent):
873 Declare.
874
875 2005-01-13 Michael Snyder <msnyder@redhat.com>
876
877 * remote-st.c: Whitespace tweaks.
878 * remote-sim.c: Whitespace tweaks.
879 * remote-mips.c: Whitespace tweaks.
880 * pa64solib.[ch]: Whitespace tweaks.
881 * mdebugread.c: Whitespace tweaks.
882 * main.c: Whitespace tweaks.
883 * interps.c: Whitespace tweaks.
884 * infrun.c: Whitespace tweaks.
885 * infcmd.c: Whitespace tweaks.
886 * hpux-thread.c: Whitespace tweaks.
887 * hppa-hpux-tdep.c: Whitespace tweaks.
888 * gdbcore.h: Whitespace tweaks.
889 * gdbcmd.h: Whitespace tweaks.
890 * gdb-events[.c, .h, .sh]: Whitespace tweaks.
891 * corefile.c: Whitespace tweaks.
892 * completer.c: Whitespace tweaks.
893 * coff-solib.c: Whitespace tweaks.
894 * coff-solib.h: Whitespace tweaks.
895 * cli-out.c: Whitespace tweaks.
896 * breakpoint.c: Whitespace tweaks.
897 * cli/cli-interp.c: Tweak comments, per coding standard.
898
899 2005-01-13 Andrew Cagney <cagney@gnu.org>
900
901 * breakpoint.c (gdb_breakpoint_query): Update, use
902 catch_exceptions_with_msg.
903 (do_captured_breakpoint): Add uiout parameter.
904 (gdb_breakpoint): Update, use catch_exceptions_with_msg.
905 * mi/mi-main.c (mi_cmd_thread_select): Pass mi_error_message to
906 gdb_thread_select. Return MI_CMD_ERROR instead of
907 MI_CMD_CAUGHT_ERROR.
908 (mi_cmd_thread_list_ids): Ditto for gdb_list_thread_ids.
909 (enum captured_mi_execute_command_actions): Delete
910 EXECUTE_COMMAND_DISPLAY_ERROR.
911 (captured_mi_execute_command): Delete code handling
912 MI_CMD_CAUGHT_ERROR.
913 (mi_execute_command): Don't check for
914 EXECUTE_COMMAND_DISPLAY_ERROR.
915 * mi/mi-cmd-break.c (breakpoint_notify): Update call to
916 gdb_breakpoint_query.
917 (mi_cmd_break_insert): Pass mi_error_message to gdb_breakpoint.
918 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_CAUGHT_ERROR.
919 * gdb.h (gdb_thread_select, gdb_list_thread_ids)
920 (gdb_breakpoint, gdb_breakpoint_query): Add error_message
921 parameter.
922 * thread.c (thread_command): Update call.
923 (gdb_thread_select, gdb_list_thread_ids): Update, call
924 catch_exceptions_with_msg.
925
926 * mi/mi-main.c (mi_execute_command): Use catch_exception,
927 eliminate call to error_last_message.
928 (captured_mi_execute_command): Change return type to void.
929
930 2005-01-12 Andrew Cagney <cagney@gnu.org>
931
932 * exceptions.c (exception_none): New variable.
933 * Makefile.in: Update dependencies.
934 * interps.c: Include "exceptions.h".
935 (interpreter_exec_cmd, interp_exec): Update to return "struct
936 exception"
937 * exceptions.h (no_exception): Declare.
938 * tui/tui-interp.c (tui_exec): Update to return "struct exception"
939 * mi/mi-interp.c: Include "exceptions.h".
940 (mi_cmd_interpreter_exec, mi_interpreter_exec): Update to return
941 'struct exception".
942 * cli/cli-interp.c (cli_interpreter_exec, safe_execute_command)
943 (do_captured_execute_command): Update to use catch_exception.
944 * interps.h: Include "exceptions.h".
945 (interp_exec_ftype, interp_exec): Return "struct exception".
946
947 * exceptions.h (throw_reason): Rename throw_exception.
948 (enum errors, struct exception): Define.
949 (catch_exception_ftype): Define.
950 (catch_exception, throw_exception): Declare.
951 * exceptions.c (throw_exception): Rewrite.
952 (throw_reason): New function.
953 (struct catcher, catcher_state_machine): Replace "reason" with
954 "exception", delete "gdberrmsg".
955 (catch_exception): New function.
956 (catcher_init): Replace "gdberrmsg" parameter with "exception".
957 (catch_errors, catch_exceptions_with_msg): Re-implement passing
958 exception to catcher_init.
959 * utils.c (error_silent, error_stream_1): Use throw_reason.
960 (internal_verror, quit): Ditto.
961 * breakpoint.c (insert_catchpoint, break_command_1): Ditto.
962 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Ditto.
963 * remote.c (remote_open_1, interrupt_query): Ditto.
964
965 2005-01-12 Mark Kettenis <kettenis@gnu.org>
966
967 * i386fbsd-tdep.c: Update copyright year. Include "gdbcore.h",
968 "regcache.h", "gdb_assert.h" and "bsd-uthread.h".
969 (i386fbsd_jmp_buf_reg_offset): New variable.
970 (i386fbsd_supply_uthread, i386fbsd_collect_uthread): New
971 functions.
972 (i386fbsdaout_init_abi): Set supply_uthread and collect_uthread.
973 * Makefile.in (i386fbsd-tdep.o): Update dependency.
974 * config/i386/fbsd.mt (TDEPFILES): Add bsd-uthread.o.
975
976 * bsd-uthread.h: New file.
977 * bsd-uthread.c: New file.
978 * Makefile.in (bsd_uthread_h): New variable.
979 (ALLDEPFILES): Add bsd-uthread.c.
980 (bsd-uthread.o): New dependency.
981
982 * solib.h Update copyright year.
983 (struct so_list): Forward declaration.
984 (solib_read_symbols): New prototype.
985 * solib.c (solib_read_symbols): New function.
986 (solib_add): Call solib_read_symbols to read in symbols.
987 (update_solib_list): Call observer_notify_solib_loaded.
988
989 * i386bsd-nat.c: Update copyright year. Don't include
990 <sys/param.h> and <sys/user.h>.
991 (register_u_addr, kernel_u_size): Remove functions.
992 * config/i386/obsd.mh (NAT_FILE): Remove.
993 * config/i386/obsdaout.mh (NAT_FILE): Set to solib.h.
994 * config/i386/nm-obsd.h: Remove file.
995
996 2005-01-12 Andrew Cagney <cagney@gnu.org>
997
998 * exceptions.c: Include "gdb_string.h".
999 (enum catcher_state, struct catcher): Define.
1000 (current_catcher): New global, replaces catch_return;
1001 (catch_return): Delete.
1002 (throw_exception): Use current_catcher->buf;
1003 (catcher_init, catcher_pop, catcher_state_machine): New functions.
1004 (catcher): Delete.
1005 (struct catch_errors_args): Delete.
1006 (do_catch_errors): Delete.
1007 (catch_exceptions): Replace body with call to
1008 catch_exceptions_with_msg.
1009 (catcher): Delete.
1010 (catch_exceptions_with_msg, catch_errors): Re-implement using
1011 catcher_state_machine.
1012
1013 * exceptions.h (enum return_reason, RETURN_MASK)
1014 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL)
1015 (return_mask, throw_exception, catch_exceptions_ftype)
1016 (catch_exceptions_with_msg, catch_errors_ftype, catch_errors)
1017 (catch_command_errors_ftype, catch_command_errors): Move to
1018 exceptions.h.
1019 * exceptions.c, exceptions.h: New files.
1020 * top.c: Do not include <setjmp.h>.
1021 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, catch_return)
1022 (throw_exception, catcher, catch_exceptions)
1023 (catch_exceptions_with_msg, struct catch_errors_args)
1024 (do_catch_errors, catch_errors, struct captured_command_args)
1025 (do_captured_command, catch_command_errors): Move to exceptions.c.
1026 * wrapper.c, wince.c, win32-nat.c, utils.c: Include "exceptions.h".
1027 * tui/tui-interp.c, top.c, thread.c, symmisc.c: Ditto.
1028 * symfile-mem.c, stack.c, solib.c, rs6000-nat.c: Ditto.
1029 * remote-sds.c, remote-mips.c, remote-fileio.c: Ditto.
1030 * remote-e7000.c, objc-lang.c, ocd.c: Ditto.
1031 * remote.c, nto-procfs.c, monitor.c, mi/mi-main.c: Ditto.
1032 * main.c, m32r-rom.c, infrun.c, inf-loop.c: Ditto.
1033 * hppa-hpux-tdep.c, frame.c, event-top.c, event-loop.c: Ditto.
1034 * corelow.c, corefile.c, cli/cli-interp.c, breakpoint.c: Ditto.
1035 * ada-valprint.c, ada-lang.c: Ditto.
1036 * Makefile.in (HFILES_NO_SRCDIR, COMMON_OBS): Add exceptions.h and
1037 exceptions.o. Update all dependencies.
1038
1039 2005-01-11 Mark Kettenis <kettenis@gnu.org>
1040
1041 * config/i386/nm-fbsd.h: Update copyright year.
1042 Don't include "config/nm-bsd.h".
1043 (KERNEL_U_SIZE): Remove macro.
1044 (kernel_u_size): Remove prototype.
1045
1046 * config/vax/nbsdaout.mh (NAT_FILE): Remove.
1047 * config/vax/nm-nbsdaout.h: Remove file.
1048
1049 2005-01-10 Elena Zannoni <ezannoni@redhat.com>
1050
1051 * MAINTAINERS: Remove self from sh/sh64 maintainership.
1052
1053 2005-01-10 Andrew Cagney <cagney@gnu.org>
1054
1055 * MAINTAINERS: List Andrew Cagney and Kevin Buettner as can commit
1056 changes to PowerPC, and Andrew Cagney as lead PowerPC GNU/Linux
1057 maintainer.
1058
1059 * MAINTAINERS: Hans-Peter Nilsson and Orjan Friberg can commit
1060 changes to CRIS.
1061
1062 * MAINTAINERS: Remove "Maintenance Only". Spell out that CAN
1063 COMMIT means can approve).
1064
1065 2005-01-10 Mark Kettenis <kettenis@gnu.org>
1066
1067 * vax-nat.c: Update copyright year. Include "inf-ptrace.h".
1068 (vax_register_u_offset): Make statuc.
1069 (_initialize_vax_nat): Construct and add target vector.
1070 * config/vax/vax.mh (NATDEPFILES): Remove infptrace.o and
1071 inftarg.o. Add inf-ptrace.o.
1072 * Makefile.in (vax-nat.o): Update dependencies.
1073
1074 * inf-ptrace.h: Update copyright year. Sync comment with
1075 inf-ptrace.c.
1076 (inf_ptrace_trad_target): New prototype.
1077 * inf-ptrace.c: Update copyright year. Include "regcache.h" and
1078 "gdb_assert.h"
1079 (inf_ptrace_target): Add comment.
1080 (inf_ptrace+register_u_offset): New variable.
1081 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
1082 (inf_ptrace_store_register, inf_ptrace_store_registers)
1083 (inf_ptrace_trad_target): New functions.
1084 * Makefile.in (inf-ptrace.o): Update dependencies.
1085
1086 2005-01-09 Mark Kettenis <kettenis@gnu.org>
1087
1088 * configure.ac: Provide prerequisite headers when checking
1089 <link.h>, <sys/proc.h> and <sys/user.h>.
1090 * configure: Regenerate.
1091
1092 2005-01-08 Mark Kettenis <kettenis@gnu.org>
1093
1094 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Set to
1095 tm-ppc-eabi.h instead of the removed tm-nbsd.h.
1096
1097 2005-01-07 Mark Kettenis <kettenis@gnu.org>
1098
1099 * config/ia64/tm-linux.h: Tweak comment. Update copyright year.
1100 Don't include "tm-ia64.h".
1101 * config/ia64/ia64.mt (DEPRECATED_TM_FILE): Remove.
1102 * config/ia64/tm-ia64.h: Remove. Move contents ...
1103 * ia64-tdep.h: ... here. Update copyright year.
1104
1105 2005-01-07 Andrew Cagney <cagney@gnu.org>
1106
1107 * configure.ac: Rename configure.in, require autoconf 2.59.
1108 * configure: Re-generate.
1109
1110 * configure.tgt: Disable arm*-*-*, thumb*-*-*, strongarm*-*-*,
1111 xscale-*-* and i[34567]86-*-netware* code adding rdi-share or nlm
1112 to configdirs.
1113
1114 * configure.in: Replace configdirs with multiple references to
1115 AC_CONFIG_SUBDIRS.
1116 * configure: Re-generate.
1117
1118 2005-01-05 Andreas Schwab <schwab@suse.de>
1119
1120 * ia64-tdep.c: Include "osabi.h".
1121 (native_find_global_pointer): Delete.
1122 (ia64_find_global_pointer): Renamed from
1123 generic_elf_find_global_pointer.
1124 (FIND_GLOBAL_POINTER): Delete. Change all users to call
1125 ia64_find_global_pointer instead.
1126 (ia64_gdbarch_init): Call gdbarch_init_osabi. Remove references
1127 to ia64_linux_sigcontext_register_address and
1128 ia64_linux_write_pc. Don't set tdep->find_global_pointer.
1129 (_initialize_ia64_tdep): Call gdbarch_register instead of
1130 deprecated register_gdbarch_init.
1131 (struct gdbarch_tdep): Remove find_global_pointer field and move
1132 to ...
1133 * ia64-tdep.h (struct gdbarch_tdep): ... here.
1134 (ia64_linux_sigcontext_register_address): Remove declaration.
1135 (ia64_linux_getunwind_table): Likewise.
1136 (ia64_linux_write_pc): Likewise.
1137 * ia64-linux-tdep.c: Include "osabi.h".
1138 (ia64_linux_sigcontext_register_address): Make static.
1139 (ia64_linux_write_pc): Likewise.
1140 (ia64_linux_init_abi): New.
1141 (_initialize_ia64_linux_tdep): New.
1142 * Makefile.in (ia64-tdep.o, ia64-linux-tdep.o): Depend on
1143 $(osabi_h).
1144
1145 2005-01-05 Kevin Buettner <kevinb@redhat.com>
1146
1147 * ia64-tdep.c (ia64_gdbarch_init): Eliminate dependency on
1148 functions in ia64-aix-tdep.c.
1149 * ia64-tdep.h (ia64_aix_sigcontext_register_address): Remove
1150 function defined in ia64-aix-tdep.c.
1151 * ia64-aix-tdep.c: Remove file.
1152 * config/ia64/linux.mt (TDEPFILES): Remove ia64-aix-tdep.o from
1153 this list.
1154 * Makefile.in (ia64-aix-tdep.o): Delete.
1155
1156 2005-01-05 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1157
1158 Committed by Andrew Cagney.
1159 * ada-valprint.c, aix-thread.c, alpha-nat.c: I18n markup.
1160 * alphabsd-nat.c, alphanbsd-tdep.c, amd64-linux-nat.c: I18n markup.
1161 * amd64-tdep.c, amd64bsd-nat.c, amd64fbsd-nat.c: I18n markup.
1162 * arch-utils.c, arm-linux-nat.c, arm-tdep.c: I18n markup.
1163 * armnbsd-nat.c, armnbsd-tdep.c, auxv.c, avr-tdep.c: I18n markup.
1164 * aix-thread.c (_initialize_aix_thread): Get rid of the
1165 deprecated_add_show_from_set call.
1166 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
1167 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1168 * command.h (add_setshow_enum_cmd): Add arguments for returning
1169 new list elements.
1170 * cli/cli-decode.c (add_setshow_enum_cmd): Ditto.
1171 * mips-tdep.c (_initialize_mips_tdep): Modify calls to
1172 add_setshow_enum_cmd.
1173
1174 2005-01-04 Mark Kettenis <kettenis@gnu.org>
1175
1176 * configure.host (ia64-*-aix*): Remove.
1177 * configure.tgt (ia64-*-aix*): Remove.
1178 * config/ia64/aix.mh: Remove file.
1179 * config/ia64/aix.mt: Remove file.
1180 * config/ia64/tm-aix.h: Remove file.
1181 * ia64-aix-nat.c: Remove file.
1182 * Makefile.in (ia64-aix-nat.o): Remove dependency.
1183
1184 * config/m88k/obsd.mh (NATDEPFILES): Really remove inf-child.o.
1185 Add back inf-ptrace.o.
1186
1187 2005-01-04 Andrew Cagney <cagney@gnu.org>
1188
1189 * version.in: Change format from 6.3.50_2005-01-04-cvs to
1190 6.3.50.20050104-cvs.
1191
1192 2005-01-04 Andreas Schwab <schwab@suse.de>
1193
1194 * breakpoint.c (break_command_1): Always free err_msg before
1195 returning when an exception was caught.
1196
1197 2005-01-01 Joel Brobecker <brobecker@gnat.com>
1198
1199 * hppa-tdep.c (prologue_inst_adjust_sp): Fix small confusion
1200 in register number for addil instruction.
1201
1202 For older changes see ChangeLog-2004.
1203 \f
1204 Local Variables:
1205 mode: change-log
1206 left-margin: 8
1207 fill-column: 74
1208 version-control: never
1209 End:
This page took 0.054388 seconds and 4 git commands to generate.