PR backtrace/1760
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
2 Jonathan Larmour <jifl@eCosCentric.com>
3
4 PR backtrace/1760
5 * frame.c (backtrace_limit): Change type to int.
6 (get_prev_frame): Update backtrace limit support.
7 (_initialize_frame): Use add_setshow_integer_cmd for backtrace_limit.
8
9 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
10
11 * configure.tgt (powerpc64-*-linux*): Enable gdbserver.
12 * regformats/reg-ppc64.dat: New file.
13
14 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
15
16 From Wu Zhou <woodzltc@cn.ibm.com>:
17 * remote.c (struct gdb_ext_thread_info): Fix a comment typo.
18 (remote_unpack_thread_info_response): Likewise.
19
20 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21
22 * cli/cli-setshow.c (do_setshow_command): Partially revert previous
23 change. Cast to "char **" for var_string.
24
25 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
26
27 * cp-name-parser.y (parse_escape): Revert previous change. Return
28 the input character by default.
29
30 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
31
32 * dwarf2-frame.c (dwarf2_frame_prev_register): Use gdb_byte.
33 * i386-linux-nat.c (fetch_register, store_register, supply_gregset)
34 (fill_gregset): Likewise.
35 * i386-tdep.c (i386_frame_prev_register)
36 (i386_sigtramp_frame_prev_register): Likewise.
37 * linux-nat.c (linux_nat_xfer_memory, linux_nat_make_corefile_notes):
38 Likewise.
39 * linux-thread-db.c (thread_db_xfer_memory): Likewise.
40 * remote.c (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint):
41 Likewise.
42 * target.c (debug_to_insert_hw_breakpoint)
43 (debug_to_remove_hw_breakpoint, update_current_target): Likewise.
44
45 2005-05-28 Hans-Peter Nilsson <hp@axis.com>
46
47 * MAINTAINERS: Change cris-elf state to non-broken.
48 * cp-name-parser.y (parse_escape): Initialize target_char to zero.
49
50 2005-05-27 Orjan Friberg <orjanf@axis.com>
51
52 * cris-tdep.c (crisv32_scan_prologue): Add.
53 (cris_frame_unwind_cache, cris_skip_prologue): Call
54 crisv32_scan_prologue when debugging CRISv32.
55
56 2005-05-27 Orjan Friberg <orjanf@axis.com>
57
58 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
59 (cris_frame_prev_register, cris_sigtramp_frame_prev_register)
60 (cris_return_value): Use gdb_byte for byte buffers.
61 (struct cris_frame_unwind, struct cris_frame_base): Fix formatting.
62
63 2005-05-26 Chris Demetriou <cgd@netbsd.org>
64
65 * MAINTAINERS (Write After Approval): Remove myself.
66
67 2005-05-27 Andrew Cagney <cagney@gnu.org>
68
69 * jv-lang.c (get_java_utf8_name): Add cast.
70 (evaluate_subexp_java): Use gdb_byte for buffers.
71 * jv-valprint.c (java_value_print, java_value_print): Use gdb_byte
72 for buffers.
73 * scm-lang.c (scm_get_field, scm_unpack)
74 (scm_evaluate_string): Use gdb_byte for buffers.
75 (scm_lookup_name): Add cast.
76 * scm-valprint.c (scm_scmval_print, scm_scmval_print): Use
77 gdb_byte for buffers.
78 * tui/tui.h (tui_get_command_dimension): Make parameters unsigned.
79 * tui/tui.c (tui_get_command_dimension): Make parameters unsigned.
80 * value.h (check_field): Change "name" to a string.
81 * valops.c (check_field): Change "name" to a string.
82 * scm-lang.h (scm_parse): Use gdb_byte for buffers.
83 * source.c (get_current_source_symtab_and_line)
84 (set_current_source_symtab_and_line): Initialize all fields of sal
85 structures.
86 * cli/cli-cmds.c (list_command): Use gdb_byte for buffers.
87
88 2005-05-26 Andrew Cagney <cagney@gnu.org>
89
90 * command.h (add_setshow_integer_cmd): Make VAR an integer.
91 * cli/cli-decode.c (add_setshow_integer_cmd): Update to match.
92 * valops.c (value_string): Add a cast.
93 * eval.c (evaluate_subexp_standard): Use gdb_byte for byte buffers.
94 * breakpoint.c (re_enable_breakpoints_in_shlibs): Use gdb_byte for
95 byte buffers.
96 * target.h (struct target_ops): For to_insert_hw_breakpoint and
97 to_remove_hw_breakpoint use gdb_byte for byte buffer parameters.
98 * breakpoint.h (struct bp_location): Make shadow_contents a
99 gdb_byte buffer.
100 * cli/cli-setshow.c (do_setshow_command): Fix cast.
101 * cli/cli-dump.c (restore_section_callback)
102 (restore_binary_file): Use gdb_byte for byte buffers.
103 * proc-service.c (ps_ptwrite, ps_ptread, ps_pdwrite): Fix casts.
104 (ps_xfer_memory): Use gdb_byte for byte buffers.
105 * tracepoint.c (mem2hex): Use gdb_byte for byte buffers, and char
106 for string buffers.
107 * ser-tcp.c (net_open): Make len a socklen_t.
108
109 2005-05-24 Andrew Cagney <cagney@gnu.org>
110
111 * rs6000-tdep.c (ppc_supply_reg, ppc_collect_reg): Use gdb_byte
112 for byte buffers.
113 (rs6000_fetch_pointer_argument): Use get_frame_register_unsigned.
114 (rs6000_software_single_step, sstep_breaks, skip_prologue)
115 (rs6000_push_dummy_call, rs6000_push_dummy_call)
116 (rs6000_push_dummy_call, rs6000_push_dummy_call)
117 (rs6000_register_to_value, e500_pseudo_register_read)
118 (rs6000_store_return_value, e500_pseudo_register_write)
119 (rs6000_frame_prev_register, rs6000_extract_return_value): Ditto.
120 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
121 (ppc_sysv_abi_push_dummy_call, do_ppc_sysv_return_value)
122 (do_ppc_sysv_return_value, ppc_sysv_abi_return_value)
123 (ppc_sysv_abi_broken_return_value)
124 (ppc64_sysv_abi_push_dummy_call, ppc64_sysv_abi_push_dummy_call)
125 (ppc64_sysv_abi_push_dummy_call, ppc64_sysv_abi_return_value)
126 (ppc64_sysv_abi_return_value, ppc64_sysv_abi_return_value): Ditto.
127 * ppc-linux-tdep.c (ppc_linux_in_sigtramp)
128 (ppc_linux_at_sigtramp_return_path)
129 (ppc_linux_skip_trampoline_code)
130 (ppc_linux_memory_remove_breakpoint, ppc_linux_return_value):
131 * rs6000-tdep.c (rs6000_value_to_register)
132 (rs6000_register_to_value): Ditto.
133 * ppc-tdep.h (ppc_sysv_abi_return_value)
134 (ppc64_sysv_abi_return_value, ppc_sysv_abi_broken_return_value)
135 (ppc_linux_memory_remove_breakpoint): Ditto.
136
137 2005-05-24 Ulrich Weigand <uweigand@de.ibm.com>
138
139 * s390-tdep.c (s390_frame_prev_register): Change type of last
140 argument to 'gdb_byte *'.
141 (s390_stub_frame_prev_register): Likewise.
142 (s390_sigtramp_frame_prev_register): Likewise.
143
144 2005-05-24 Kris Warkentin <kewarken@qnx.com>
145
146 * config/i386/nto.mt: Remove remote-nto.o.
147
148 2005-05-24 Orjan Friberg <orjanf@axis.com>
149
150 * config/djgpp/fnchange.lst: Add mappings for
151 gdbserver/linux-cris-low.c and gdbserver/linux-crisv32-low.c.
152
153 2005-05-23 Michael Snyder <msnyder@redhat.com>
154 From Nora Pan <qpan@mvista.com>
155 * linux-nat.c (read_mapping): Don't stumble over entries in
156 mapping that have name but zero inode.
157
158 2005-05-23 Andrew Cagney <cagney@gnu.org>
159
160 * target.h (child_xfer_memory): Use gdb_byte for byte buffer
161 parameters.
162 * inftarg.c (child_xfer_partial): Update.
163 * wince.c (child_xfer_memory): Update.
164 * win32-nat.c (child_xfer_memory): Update.
165 * rs6000-nat.c (child_xfer_memory): Update.
166 * infptrace.c (child_xfer_memory): Update.
167 * dcache.c (struct dcache_block): Use gdb_byte for the byte
168 buffers.
169 (dcache_read_line, dcache_xfer_memory, dcache_poke_byte)
170 (dcache_peek_byte, dcache_write_line): Ditto.
171
172 * auxv.h (target_auxv_read, procfs_xfer_auxv)
173 (target_auxv_parse): Use gdb_byte for byte buffer parameters.
174 * auxv.c (target_auxv_read, procfs_xfer_auxv, target_auxv_parse)
175 (target_auxv_search, fprint_target_auxv): Update.
176
177 2005-05-23 Orjan Friberg <orjanf@axis.com>
178
179 * cris-tdep.c: Tweak values for cris-mode.
180
181 2004-05-23 Joel Brobecker <brobecker@adacore.com>
182
183 * mdebugread.c (record_minimal_symbol): New procedure.
184 (parse_partial_symbols): Use record_minimal_symbol to record
185 the new minimal symbols instead of prim_record_minimal_symbol
186 and prim_record_minimal_symbol_and_info.
187
188 2005-05-22 Mark Kettenis <kettenis@gnu.org>
189
190 * NEWS: Mention OpenBSD/arm as a new native configuration.
191
192 * armnbsd-nat.c: Include "gdb_string.h" and "inf_ptrace.h".
193 Reorder includes. Don't require FETCH_INFERIOR_REGISTERS to be
194 defined.
195 (armnbsd_fetch_registers): Rename from armnbsd_fetch_registers.
196 Make static.
197 (armnbsd_store_registers): Rename from armnbsd_store_registers.
198 Make static.
199 (_initialize_arm_netbsd_nat): Construct and add target vector.
200 * Makefile.in (armnbsd-nat.o): Update dependencies.
201 * config/arm/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
202 intarg.o, add inf-ptrace.o.
203 (NAT_FILE): Set to solib.h.
204 * config/arm/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
205 inftarg.o, add inf-ptrace.o.
206 (NAT_FILE): Remove.
207
208 * arm-tdep.c (arm_extract_return_value, arm_store_return_value):
209 Change type of last argument to `gdb_byte *'.
210
211 * configure.host: Add arm*-*-openbsd*.
212 * configure.tgt: Add arm*-*-openbsd*.
213
214 2005-05-22 Andrew Cagney <cagney@gnu.org>
215
216 * frame.h (frame_register_unwind, frame_unwind_register)
217 (get_frame_register, frame_register, put_frame_register)
218 (get_frame_memory, safe_frame_unwind_memory)
219 (frame_register_read): Use gdb_byte for byte buffer parameters.
220 * trad-frame.h (trad_frame_get_register)
221 (frame_get_prev_register): Ditto.
222 * frame-unwind.h (frame_prev_register_ftype): Ditto.
223 * frame.c (frame_pop, frame_register, frame_unwind_register)
224 (get_frame_register, frame_unwind_register_signed)
225 (frame_unwind_register_unsigned, frame_unwind_unsigned_register)
226 (frame_register_read, get_frame_memory): Update.
227 * trad-frame.c (trad_frame_get_prev_register): Update.
228 (trad_frame_get_register): Update.
229 * gdbcore.h (deprecated_read_memory_nobpt, read_memory): Ditto.
230 * breakpoint.c (deprecated_read_memory_nobpt): Update.
231 * corefile.c (read_memory): Update.
232 * tramp-frame.c (tramp_frame_prev_register): Update.
233 * valops.c (value_assign): Update.
234 * sentinel-frame.c (sentinel_frame_prev_register): Update.
235 * std-regs.c (value_of_builtin_frame_fp_reg)
236 (value_of_builtin_frame_pc_reg): Update.
237 * infcmd.c (default_print_registers_info): Update
238 * dummy-frame.c (dummy_frame_prev_register): Update.
239 * findvar.c (value_of_register, value_from_register): Update.
240 * tui/tui-regs.c (tui_register_format, tui_get_register): Update.
241 * mi/mi-main.c (register_changed_p, get_register): Update.
242
243 2005-05-20 Eli Zaretskii <eliz@gnu.org>
244
245 * configure.ac: Add snprintf and vsnprintf to AC_CHECK_DECLS. Fix
246 bad description of _MSE_INT_H that caused each word in config.in
247 to be enclosed in [].
248 * configure, config.in: Regenerate.
249
250 2005-05-20 Joel Brobecker <brobecker@adacore.com>
251
252 * alpha-tdep.c (fp_register_zero_p): New function.
253 (fp_register_sign_bit): New function.
254 (alpha_next_pc): Add support for floating-point control instructions.
255
256 2005-05-19 Andrew Cagney <cagney@gnu.org>
257
258 * defs.h (extract_signed_integer, extract_unsigned_integer)
259 (extract_long_unsigned_integer, extract_typed_address)
260 (store_signed_integer, store_unsigned_integer)
261 (store_typed_address): Use gdb_byte for byte buffer parameters.
262 (push_bytes, push_word): Delete declaration.
263 * valops.c (push_bytes, push_word): Delete function.
264 * findvar.c (extract_signed_integer, extract_unsigned_integer)
265 (extract_typed_address, store_signed_integer)
266 (store_unsigned_integer): Update.
267
268 * regcache.h (regcache_raw_read, regcache_raw_write)
269 (regcache_raw_read_part, regcache_raw_write_part)
270 (regcache_cooked_read_part, regcache_cooked_write_part)
271 (regcache_cooked_read, regcache_cooked_write)
272 (regcache_raw_supply, regcache_raw_collect)
273 (regcache_cooked_read_ftype, regcache_save, regcache_restore)
274 (deprecated_read_register_gen, deprecated_write_register_gen)
275 (deprecated_read_register_bytes, deprecated_write_register_bytes)
276 (deprecated_grub_regcache_for_registers): Use gdb_byte for byte
277 buffer parameters.
278 * ia64-tdep.c (ia64_extract_return_value): Update.
279 * frame.c (do_frame_register_read): Update.
280 * regcache.c (deprecated_grub_regcache_for_registers)
281 (struct regcache, regcache_save, regcache_restore, regcache_cpy)
282 (do_cooked_read, regcache_xmalloc, register_buffer)
283 (deprecated_read_register_bytes, regcache_raw_read)
284 (regcache_raw_read_signed, regcache_raw_read_unsigned)
285 (deprecated_read_register_gen, regcache_cooked_read)
286 (regcache_cooked_read_signed, regcache_cooked_read_unsigned)
287 (deprecated_write_register_gen, regcache_cooked_write)
288 (deprecated_write_register_bytes, regcache_raw_read_part)
289 (regcache_raw_write_part, regcache_cooked_read_part)
290 (regcache_cooked_write_part, read_register, regcache_raw_supply):
291
292 2005-05-17 Corinna Vinschen <vinschen@redhat.com>
293
294 * MAINTAINERS: Undelete v850.
295 * Makefile.in: Re-add v850-tdep.o dependencies.
296 * configure.tgt: Re-add v850.
297 * v850-tdep.c: Reorder code slightly. Add register number enumerator.
298 (struct v850_frame_cache): New structure.
299 (v850_processor_type_table): Remove. Move functionality into
300 v850_register_name, v850e_register_name and v850_gdbarch_init.
301 (v850_register_name): New function.
302 (v850e_register_name): New function.
303 (struct prologue_info): Remove definition.
304 (v850_register_type): New function.
305 (v850_type_is_scalar): New function.
306 (v850_use_struct_convention): Align to gcc behaviour.
307 (v850_handle_prepare): Renamed from handle_prepare. Change third
308 parameter to struct v850_frame_cache *.
309 (v850_handle_pushm): Renamed from handle_pushm. Change third parameter
310 to struct v850_frame_cache *.
311 (v850_is_save_register): New function to evaluate if a register is
312 caller-save.
313 (v850_analyze_prologue): Replace v850_scan_prologue. Change to support
314 new frame code.
315 (v850_init_extra_frame_info): Remove.
316 (v850_frame_chain): Remove.
317 (v850_find_callers_reg): Remove.
318 (v850_skip_prologue): Make static.
319 (v850_pop_frame): Remove.
320 (v850_frame_align): New function.
321 (v850_push_dummy_call): Replace v850_push_arguments.
322 (v850_push_return_address): Remove.
323 (v850_extract_return_value): New function.
324 (v850_store_return_value): New function.
325 (v850_return_value): New function.
326 (v850_frame_saved_pc): Remove.
327 (v850_breakpoint_from_pc): New function.
328 (v850_alloc_frame_cache): New function.
329 (v850_fix_call_dummy): Remove.
330 (v850_frame_cache): New function.
331 (v850_target_architecture_hook): Remove.
332 (v850_frame_prev_register): New function.
333 (v850_frame_this_id): New function.
334 (v850_frame_unwind): New structure.
335 (v850_frame_sniffer): New function.
336 (v850_unwind_sp): New function.
337 (v850_unwind_pc): New function.
338 (v850_unwind_dummy_id): New function.
339 (v850_frame_base_address): New function.
340 (v850_frame_base): New structure.
341 (v850_gdbarch_init): New function.
342 * config/v850/v850.mt: Undelete. Drop TM_FILE.
343
344 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
345 Dennis Brueni <dennis@slickedit.com>
346
347 * stack.c (print_frame): In MI mode, output a fullname attribute
348 with the stack frame.
349
350 2005-05-16 Mark Kettenis <kettenis@gnu.org>
351
352 * corelow.c (core_xfer_partial): Change type of readbuf and
353 writebuf to `gdb_byte *'.
354 * sparc-nat.c (sparc_xfer_wcookie, sparc_xfer_partial): Change
355 type of readbuf and writebuf to `gdb_byte *'.
356 * bsd-uthread.c (bsd_uthread_xfer_partial): Change type of readbuf
357 and writebuf to `gdb_byte *'.
358 * inf-ptrace.c (inf_ptrace_xfer_partial): Change type of readbuf
359 and writebuf to `gdb_byte *'.
360 * bsd-kvm.c (bsd_kvm_xfer_memory): Replace.
361 (bsd_kvm_xfer_partial): New function.
362 (bsd_kvm_add_target): Set to_xfer_partial instead of
363 to_xfer_memory.
364 * bfd-target.c (target_bfd_xfer_partial): Change type of readbuf
365 and writebuf to `gdb_byte *'.
366 * target.c (deprecated_debug_xfer_memory): Remove prototype.
367 (deprecated_debug_xfer_memory): Change type of second argument to
368 `gdb_byte *'.
369 * remote.c (remote_xfer_memory): Remove prototype.
370 (remote_xfer_memory): Change type of second argument to `gdb_byte
371 *'.
372 (remote_xfer_partial): Change type of readbuf and writebuf to
373 `gdb_byte *'.
374
375 * config/sparc/fbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
376 * config/sparc/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
377 and solib-legacy.o.
378 (NAT_FILE): Remove.
379
380 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
381
382 * s390-tdep.c (s390_return_value): Remove unnecessary casts.
383 (s390_breakpoint_from_pc): Change type of return value and
384 'breakpoint' to const gdb_byte *.
385
386 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
387
388 * s390-tdep.c (s390_pseudo_register_read, s390_pseudo_register_write):
389 Change type of 'buf' argument to gdb_byte *.
390 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
391 (s390_register_to_value): Change type of 'out' to gdb_byte *, change
392 type of 'in' to gdb_byte [].
393 (s390_value_to_register): Change type of 'in' to gdb_byte *, change
394 type of 'out' to gdb_byte [].
395 (s390_return_value): Change type of 'out' and 'in' to gdb_byte *.
396
397 2005-05-16 Andrew Cagney <cagney@gnu.org>
398
399 * target.h (target_read_partial, target_write_partial)
400 (do_xfer_memory, xfer_memory, target_read, target_write)
401 (get_target_memory): For buffers, change "void*" to gdb_byte.
402 (struct target_ops): Ditto for to_xfer_partial and
403 deprecated_xfer_memory.
404 * dcache.h (dcache_xfer_memory): Ditto.
405 * target.c (default_xfer_partial, target_read_partial)
406 (target_write_partial, target_read, target_write)
407 (do_xfer_memory, update_current_target, get_target_memory): Update.
408 (target_read_string): Change buf to a gdb_byte.
409 * dcache.c (dcache_xfer_memory): Update.
410 * exec.c (xfer_memory): Make buffer type to gdb_byte.
411 * mem-break.c (default_memory_insert_breakpoint): Remove cast.
412 * disasm.c (dis_asm_read_memory): Remove cast, use gdb_byte.
413
414 2005-05-16 Mark Kettenis <kettenis@gnu.org>
415
416 * sol-thread.c (ignore): Change last argument to `gdb_byte.'
417
418 * config/i386/fbsd.mt (DEPRECATED_TM_FILE): Remove.
419 * config/i386/fbsd64.mt (DEPRECATED_TM_FILE): Remove.
420 * config/i386/nbsd.mt (DEPRECATED_TM_FILE): Remove.
421 * config/i386/nbsd64.mt (DEPRECATED_TM_FILE): Remove.
422 * config/sparc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
423 * config/sparc/nbsd64.mt (DEPRECATED_TM_FILE): Remove.
424
425 * observer.sh: Quote $DJGPP.
426
427 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
428
429 * Makefile.in (.y.c): Update ylwrap invocation.
430
431 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
432
433 * linux-nat.c (child_follow_fork, linux_handle_extended_wait)
434 (lin_lwp_attach_lwp, linux_nat_attach, wait_lwp, child_wait)
435 (linux_nat_wait, kill_wait_callback): Use my_waitpid.
436 (_initialize_linux_nat, lin_thread_get_thread_signals): Use
437 SA_RESTART.
438
439 2005-05-14 Mark Kettenis <kettenis@gnu.org>
440
441 * configure.tgt (vax-*-openbsd*): Set gdb_target to obsd.
442 * config/vax/obsd.mt (TDEPFILES): New file.
443
444 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset): Use
445 gdb_byte instead of bfd_byte.
446
447 * mips-tdep.c (mips_pseudo_register_read)
448 (mips_pseudo_register_write): Change type of last argument to
449 `gdb_byte *'.
450 (mips_register_to_value, mips_value_to_register): Change type of
451 last argument to `gdb_byte *'. Remove casts that are no longer
452 needed.
453 (mips_fetch_instruction, fetch_mips_16): Use gdb_byte for buf.
454 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
455 (mips_o32_push_dummy_call, mips_o32_return_value): Use `const
456 gdb_byte *' for val and gdb_byte for valbuf. Remove casts that
457 are no longer needed.
458 (mips_eabi_return_value, mips_n32n64_return_value)
459 (mips_o32_return_value, mips_o64_return_value): Change type of
460 readbuf and writebuf arguments to `gdb_byte *'.
461 (mips_read_fp_register_single): Change type of last argument to
462 `gdb_byte *'. Use `gdb_byte *' for raw_buffer.
463 (mips_read_fp_register_double): Change type of last argument to
464 `gdb_byte *'.
465 (mips_print_fp_register): Use `gdb_byte *' for raw_buffer. Remove
466 casts that are no longer needed.
467 (mips_print_register, print_gp_register_row): Use gdb_byte for
468 raw_buffer. Remove casts that are no longer needed.
469 (mips_single_step_through_delay): Use gdb_byte for buf.
470 (mips_breakpoint_from_pc): Change return type to `const gdb_byte
471 *'. Use gdb_byte for mips16_big_breakpoint, big_breakpoint,
472 pmon_big_breakpoint, idt_big_breakpoint, mips16_little_breakpoint,
473 little_breakpoint, pmon_little_breakpoint and
474 idt_little_breakpoint.
475 (mips_integer_to_address): Use `gdb_byte *' for tmp.
476
477 * config/m68k/obsd.mt (DEPRECATED_TM_FILE): Remove.
478 * config/i386/obsd.mt (DEPRECATED_TM_FILE): Remove.
479 * config/i386/obsd64.mt (DEPRECATED_TM_FILE): Remove.
480 * config/pa/obsd.mt (DEPRECATED_TM_FILE): Remove.
481 * config/sparc/obsd.mt (DEPRECATED_TM_FILE): Remove.
482 * config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Remove.
483
484 * sparc-tdep.c (sparc_fetch_instruction, sparc_fetch_wcookie): Use
485 gdb_byte for buf.
486 (sparc32_pseudo_register_read, sparc32_pseudo_register_write):
487 Change type of last argument to `gdb_byte *'. Remove casts that
488 are no longer needed.
489 (sparc32_push_dummy_code, sparc32_store_arguments): Use gdb_byte
490 for buf.
491 (sparc_breakpoint_from_pc): Change return type to `const gdb_byte
492 *'. Use gdb_byte for break_insn.
493 (sparc32_extract_return_value, sparc32_store_return_value): Change
494 type of last argument to `gdb_byte *'. Use gdb_byte for buf.
495 (sparc32_return_value): Change type of readbuf and writebuf
496 arguments to `gdb_byte *'.
497 (sparc_software_single_step): Use gdb_byte for npc_save and
498 nnpc_save.
499 (sparc_supply_rwindow, sparc_collect_rwindow): Use gdb_byte for
500 buf.
501 (sparc32_supply_gregset, sparc32_collect_gregset)
502 (sparc32_supply_fpregset, sparc32_collect_fpregset): Use `gdb_byte
503 *' for regs.
504 * sparc64-tdep.c (sparc64_pseudo_register_read)
505 (sparc64_pseudo_register_write): Change type of last argument to
506 `gdb_byte *'. Remove casts that are no longer needed.
507 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
508 Change type of valbuf argument to `gfd_byte *'.
509 (sparc64_store_arguments): Use `gdb_byte *' for valbuf. use
510 gdb_byte for buf.
511 (sparc64_extract_return_value, sparc64_store_return_value): Change
512 type of last argument to `gdb_byte *'. Use gdb_byte for buf.
513 (sparc64_return_value): Change type of readbuf and writebuf
514 arguments to `gdb_byte *'.
515 (sparc64_supply_gregset, sparc64_collect_gregset)
516 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use `gdb_byte
517 *' for regs.
518
519 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Change return type
520 to `const gdb_byte *'. Use gdb_byte for break_insn.
521 (m68k_register_to_value): Change type of last argument to
522 `gdb_byte *'. Use gdb_byte for from.
523 (m68k_value_to_register): Change type of last argument to
524 `gdb_byte *'. Use gdb_byte for to.
525 (m68k_extract_return_value): Change type of last argument to
526 `gdb_byte *'. Use gdb_byte for buf. Remove unnecessary cast.
527 (m68k_svr4_extract_return_value): Change type of last argument to
528 `gdb_byte *'. Use gdb_byte for buf.
529 (m68k_store_return_value): Change type of last argument to
530 `gdb_byte *'. Remove unnecessary cast.
531 (m68k_svr4_store_return_value): Change type of last argument to
532 `gdb_byte *'. Use gdb_byte for buf.
533 (m68k_return_value, m68k_svr4_return_value): Change type of
534 readbuf and writebuf arguments to `gdb_byte *'.
535 (m68k_push_dummy_call, m68k_unwind_pc, m68k_frame_cache)
536 (m68k_unwind_dummy_id): Use gdb_byte for buf.
537 (m68k_get_longjmp_target): Use `gdb_byte *' for buf.
538 * m68kbsd-tdep.c (m68kbsd_supply_fpregset)
539 (m68kbsd_supply_gregset): Use `gdb_byte *' for regs.
540
541 * m88k-tdep.c (m88k_breakpoint_from_pc): Change return type to
542 `const gdb_byte *'. Use gdb_byte for break_insn.
543 (m88k_return_value): Change type of readbuf and
544 writebuf arguments to `gdb_byte *'. Use gdb_byte for buf.
545 (m88k_supply_gregset): Use `gdb_byte *' for regs.
546
547 * vax-tdep.c (vax_return_value): Change type of readbuf and
548 writebuf arguments to `gdb_byte *'.
549
550 * amd64-tdep.c (amd64_return_value): Change type of readbuf and
551 writebuf arguments to `gdb_byte *'. Remove now redundant casts.
552 * i386-tdep.c (i386_return_value): Change type of readbuf and
553 writebuf arguments to `gdb_byte *'.
554 (i386_pseudo_register_read, i386_pseudo_register_write): Change
555 type of last argument to `gdb_byte *'.
556 (i386_register_to_value, i386_value_to_register): Change type of
557 last argument to `gdb_byte *'. Simplify function a bit.
558 * i387-tdep.h (i387_value_to_register, i387_register_to_value):
559 Change type of last argument to `gdb_byte *'.
560 * i387-tdep.c: Likewise.
561
562 2005-05-13 Andrew Cagney <cagney@gnu.org>
563
564 * gdbarch.sh (pseudo_register_read, pseudo_register_write)
565 (value_to_register, register_to_value, pointer_to_address)
566 (address_to_pointer, return_value, extract_return_value)
567 (store_return_value): Instead of a void pointer, use gdb_byte.
568 * gdbarch.h, gdbarch.c: Regenerate.
569 * inferior.h (unsigned_address_to_pointer)
570 (signed_pointer_to_address, address_to_signed_pointer)
571 (unsigned_pointer_to_address): Update.
572 * arch-utils.h (legacy_return_value):
573 * arch-utils.c (legacy_extract_return_value)
574 (legacy_return_value): Update.
575 * findvar.c (unsigned_pointer_to_address)
576 (signed_pointer_to_address, unsigned_address_to_pointer)
577 (address_to_signed_pointer): Update.
578
579 2005-05-13 Orjan Friberg <orjanf@axis.com>
580
581 * cris-tdep.c (_initialize_cris_tdep): Improve help strings for
582 cris-version, cris-mode, and cris-dwarf2-cfi settings.
583
584 2005-05-13 Orjan Friberg <orjanf@axis.com>
585
586 * cris-tdep.c (usr_cmd_cris_version): Change type to int.
587 (cris_mode_normal, cris_mode_guru, cris_modes, usr_cmd_cris_mode): Add.
588 (struct gdbarch_tdep): Change type of cris_version to int. Add
589 cris_mode.
590 (cris_mode, set_cris_mode): New functions.
591 (crisv32_single_step_through_delay): Read from NRP register instead
592 of ERP register in guru mode.
593 (cris_breakpoint_from_pc): Rename break_insn to break8_insn.
594 Add break15_insn, returned in guru mode.
595 (_initialize_cris_tdep): Add call to add_setshow_enum_cmd for new
596 cris-mode setting.
597 (cris_dump_tdep): Add dump of cris_mode.
598 (cris_gdbarch_init): Add cris_mode to search criteria for architecture.
599 Register the sigtramp frame sniffer only if not in guru mode.
600
601 2005-05-13 Eli Zaretskii <eliz@gnu.org>
602
603 * Makefile.in (go32-nat.o): Add $(top_h) to prerequisites.
604
605 * go32-nat.c: Include top.h. Update copyright years.
606 (init_go32_ops): Override the default value of gdbinit[] with
607 "gdb.ini".
608
609 * cli/cli-cmds.c: Don't define GDBINIT_FILENAME.
610 (init_cli_cmds): Use gdbinit[] instead of a compile-time literal
611 string GDBINIT_FILENAME.
612
613 * top.c (PATH_MAX): Define if not defined.
614 (gdbinit): Declare with a constant size PATH_MAX.
615
616 * config/i386/go32.mh (XM_FILE): Remove.
617
618 * config/i386/xm-go32.h: Remove file.
619
620 2005-05-12 Mark Kettenis <kettenis@gnu.org>
621
622 * sol-thread.c: Include "solib.h".
623 (sol_thread_attach): Use solib_add instead of SOLIB_ADD.
624 * Makefile.in (sol-thread.o): Update dependencies.
625
626 * NEWS: Mention OpenBSD/mips64 as a new native configuration.
627
628 2005-05-12 Eli Zaretskii <eliz@gnu.org>
629
630 * observer.sh (texi) [DJGPP]: If the file name includes a colon,
631 convert it to the /dev/x/ form.
632
633 2005-05-12 Mark Kettenis <kettenis@gnu.org>
634
635 * solib.h (CLEAR_SOLIB, SOLIB_ADD)
636 (SOLIB_CREATE_INFERIOR_HOOK, SOLIB_REMOVE_INFERIOR_HOOK)
637 (SOLIB_IN_DYNAMIC_LINKER, SOLIB_RESTART)
638 (DISABLE_UNSETTABLE_BREAK, PC_SOLIB)
639 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Remove defines and orphaned
640 comments.
641 * breakpoint.c: Include "solib.h".
642 (insert_bp_location) [!DISABLE_UNSETTABLE_BREAK]: Call
643 solib_address.
644 (remove_solib_event_breakpoints, create_solib_event_breakpoint)
645 (disable_breakpoints_in_shlibs)
646 (disable_breakpoints_in_unloaded_shlib)
647 (re_enable_breakpoints_in_shlibs): Compile if SOLIB_ADD isn't
648 defined. If PC_SOLIB isn't defined, call solib_address.
649 (_initialize_breakpoint): Unconditionally install observer.
650 * corelow.c: Include "solib.h".
651 [SOLIB_ADD] (solib_add_stub): Remove prototype.
652 (core_close) [!CLEAR_SOLIB]: Call clear_solib.
653 (solib_add_stub) [!SOLIB_ADD] Call solib_add.
654 (core_open): Unconditionally call solib_add_stub.
655 * fork-child.c: Include "solib.h".
656 (fork_inferior) [!SOLIB_CREATE_INFERIOR_HOOK]: Call
657 solib_create_inferior_hook.
658 * infcmd.c: Include "solib.h".
659 (attach_command) [!SOLIB_ADD]: Call shlib_rescan. Unconditionally
660 call re_enable_breakpoints_in_shlibs.
661 * infrun.c: Include "solib.h".
662 (SOLIB_IN_SYNSYM_RESOLVE_CODE): Don't define if not already
663 defined.
664 (stop_on_solib_events, show_stop_on_solib_events): Include
665 unconditionally.
666 (follow_exec) [!SOLIB_CREATE_INFERIOR_HOOK]: Call
667 solib_create_inferior_hook.
668 (handle_inferior_event) [!SOLIB_ADD]: Call shlib_add.
669 [!IN_SOLIB_DYNSYM_RESOLVE_CODE]: Call in_solib_dynsym_resolve_code.
670 (_initialize_infrun): Unconditionally add "stop_on_solib-events"
671 command.
672 * remote.c: Include "solib.h".
673 (remote_open_1): Unconditionally call no_shared_libraries.
674 [!SOLIB_CREATE_INFERIOR_HOOK] Call solib_create_inferior_hook.
675 * stack.c: Include "solib.h".
676 (print_frame) [!PC_SOLIB] Call shlib_for_pc.
677 * xcoffsolib.c (no_shared_libraries): Remove function.
678 * Makefile.in (SFILES): Add solib.c.
679 (ALLDEPFILES): Remove solib.c.
680 (COMMON_OBS): Add solib.o.
681 (breakpoint.o, corelow.o, fork-chiled.o, infcmd.o, infrun.o)
682 (remote.o, stack.o): Update dependencies.
683
684 2005-05-12 Daniel Jacobowitz <dan@codesourcery.com>
685
686 * cp-names.y: Renamed to ...
687 * cp-name-parser.y: ... this.
688 * Makefile.in (SFILES, YYFILES, YYOBJ): Rename cp-names.y to
689 cp-name-parser.y.
690 (test-cp-names.o): Renamed to test-cp-name-parser.o.
691 (test-cp-names): Renamed to test-cp-name-parser.
692 (clean, local-maintainer-clean): Update.
693 (cp-names.o): Renamed to cp-name-parser.o.
694
695 2005-05-12 Eli Zaretskii <eliz@gnu.org>
696
697 * observer.sh: Use observer.tmp instead of observer.inc-tmp which
698 on 8+3 filesystems overwrites observer.inc. Update copyright year
699 of the resultant file.
700
701 * gnu-v3-abi.c (init_gnuv3_ops): Cast is_gnu_v3_mangled_dtor and
702 is_gnu_v3_mangled_ctor to avoid compiler warnings.
703
704 * config/djgpp/config.sed: Adapt to latest Autoconf.
705
706 * config/djgpp/djconfig.sh: Add -Wpointer-arith and
707 -Wuninitialized to the build warnings.
708
709 2005-05-11 Eli Zaretskii <eliz@gnu.org>
710
711 * config/djgpp/fnchange.lst: Add mappings for inttypes*.m4,
712 ChangeLog-2004, reg-cris*.dat, dw2-intermix.*, semcris*-switch.c.
713 Fix mappings for hilo-hazard-?.s.
714
715 * config/djgpp/README: Update GDB versions and my email address.
716
717 2005-05-09 Andrew Cagney <cagney@gnu.org>
718
719 Use gdb_byte in preference to bfd_byte.
720 * gdbarch.sh: Update.
721 * gdbarch.h, gdbarch.c: Re-generate.
722 * ada-lang.c, ada-lang.h, ada-valprint.c, arch-utils.c: Update.
723 * c-lang.c, c-lang.h, c-valprint.c, cp-valprint.c: Update.
724 * f-lang.c, f-lang.h, f-valprint.c, gdbcore.h, jv-lang.h: Update.
725 * jv-valprint.c, language.c, language.h, m2-lang.c: Update.
726 * m2-lang.h, m2-valprint.c, objc-lang.c, p-lang.c: Update.
727 * p-lang.h, p-valprint.c, regcache.c, scm-lang.c: Update.
728 * scm-lang.h, scm-valprint.c, target.c, target.h: Update.
729 * tramp-frame.c, valarith.c, valops.c, valprint.c: Update.
730 * valprint.h, value.c, value.h: Update.
731
732 2005-05-09 Mark Kettenis <kettenis@gnu.org>
733
734 * vaxbsd-nat.c (vaxbsd_supply_gregset, vaxbsd_collect_gregset):
735 Use `gdb_byte *' for regs.
736 * vax-tdep.c (vax_supply_gregset): Use `gdb_byte *' for regs;
737 (vax_store_arguments, vax_push_dummy_call, vax_return_value): Use
738 gdb_byte for buf.
739 (vax_breakpoint_from_pc): Change return type to `const gdb_byte
740 *'. Use gdb_byte for break_insn.
741 (vax_skip_prologue): Use gdb_byte for op.
742
743 * i387-tdep.c: Remove outdated comments.
744
745 * defs.h: Unconditionally include <sys/types.h>.
746
747 2005-05-08 Daniel Jacobowitz <dan@codesourcery.com>
748
749 * mips-tdep.c (mips_stub_frame_sniffer): Handle .MIPS.stubs
750 section like .plt.
751
752 2005-05-08 Mark Kettenis <kettenis@gnu.org>
753
754 * i386-linux-tdep.c (linux_sigtramp_code, linux_rt_sigtramp_code):
755 Change type to `static const gdb_byte'.
756 (i386_linux_sigtramp_start, i386_linux_rt_sigtramp_start)
757 (i386_linux_sigcontext_addr): Use gdb_byte for buf.
758 * amd64-linux-tdep.c (linux_sigtramp_code): Change type to `static
759 const gdb_byte'.
760 (amd64_linux_sigtramp_start, amd64_linux_sigcontext_addr): Use
761 gdb_byte for buf.
762 * amd64fbsd-tdep.c (amd64fbsd_supply_uthread)
763 (amd64fbsd_collect_uthread): Use gdb_byte for buf.
764
765 * config/ia64/nm-aix.h: Remove file.
766
767 * amd64-tdep.c (amd64_return_value): Use `gdb_byte *' in casts.
768 (amd64_push_arguments): Use gdb_byte instead of bfd_byte. Use
769 gdb_byte for buf.
770 (amd64_push_dummy_call): Use gdb_byte for buf.
771 (amd64_analyze_prologue): Use gdb_byte for proto, buf and op.
772 (amd64_frame_cache, amd64_sigtramp_frame_cache)
773 (amd64_unwind_dummy_id): Use gdb_byte for buf.
774 (amd64_supply_fxsave, amd64_collect_fxsave): Use `gdb_byte *' for
775 regs.
776 * amd64obsd-tdep.c (amd64obsd_supply_regset): Use `gdb_byte *' in
777 casts.
778 (amd64obsd_sigtramp_p): Use gdb_byte for sigreturn and `gdb_byte
779 *' for buf,
780
781 * i386-tdep.c (i386_breakpoint_from_pc): Change return type to
782 `const gdb_byte *'. Use gdb_byte for break_insn.
783 (i386_follow_jump): Use gdb_byte for op.
784 (i386_analyze_struct_return): Use gdb_byte for proto1, proto2, buf
785 and op.
786 (i386_skip_probe): Use gdb_byte for buf and op.
787 (struct i386_insn): Use gdb_byte for insn and mask.
788 (i386_match_insn, i386_analyze_frame_setup)
789 (i386_analyze_register_saves): Use gdb_byte for op.
790 (i386_skip_prologue): Use gdb_byte for pic_pat and op;
791 (i386_unwind_pc, i386_frame_cache, i386_sigtramp_frame_cache)
792 (i386_unwind_dummy_id, i386_get_longjmp_target): Use gdb_byte for
793 buf.
794 (i386_extract_return_value, i386_store_return_value): Use
795 `gdb_byte *' instead of `void *' for valbuf argument. Remove now
796 redundant cast.
797 (i386_pseudo_register_read, i386_pseudo_register_write): Use
798 gdb_byte for mmx_buf.
799 (i386_register_to_value, i386_value_to_register): Use `gdb_byte *'
800 instead of `char *' for buf.
801 (i386_supply_gregset, i386_collect_gregset): Use `gdb_byte *'
802 instead of `char *' for regs.
803 (i386_svr4_sigcontext_addr): Use gdb_byte for buf.
804 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use gdb_byte for
805 sigreturn and `gdb_byte *' for buf.
806 (i386obsd_aout_supply_regset): Use `const gdb_byte *' in cast.
807 (i386obsd_supply_uthread, i386obsd_collect_uthread): Use gdb_byte
808 for buf.
809 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use gdb_byte for buf.
810
811 * defs.h (gdb_byte): New typedef. Tweak comments.
812
813 * target.h (target_link): Remove prototype.
814 * target.c (target_link): Remove function.
815 * symfile.c: Remove comment about rombug.
816
817 2005-05-04 Mark Kettenis <kettenis@gnu.org>
818
819 * config/i386/cygwin.mh (XM_FILE): Remove variable.
820 * config/i386/xm-cygwin.h: Remove file.
821
822 2005-05-03 Ben Elliston <bje@au.ibm.com>
823
824 * infrun.c (handle_inferior_event): Update the comment about users
825 of stepped_after_stopped_by_watchpoint.
826
827 2005-05-02 Corinna Vinschen <vinschen@redhat.com>
828
829 * MAINTAINERS: Remove hint that sh64 doesn't build.
830 * sh64-tdep.c (sh64_push_dummy_call): Cast buf in call to write_memory.
831 (sh64_do_fp_register): make raw_buffer unsigned.
832 (sh64_do_register): Ditto.
833
834 2005-05-02 Mark Kettenis <kettenis@gnu.org>
835
836 * bsd-uthread.c: Include "solib.h".
837 * Makefile.in (bsd-uthread.o): Update dependencies.
838
839 2005-05-01 Daniel Jacobowitz <dan@codesourcery.com>
840
841 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Flush
842 cached frames when changing gdbarch.
843 * gdbarch.c: Regenerated.
844
845 2005-05-01 Andrew Cagney <cagney@gnu.org>
846
847 * MAINTAINERS: Note that cris, m68k, mn10300, sh64, sparc and vax
848 do not build.
849
850 * gdbarch.sh (deprecated_extract_return_value)
851 (breakpoint_from_pc, deprecated_store_return_value)
852 (memory_insert_breakpoint, memory_remove_breakpoint): Change type
853 of buffer to a bfd_byte pointer.
854 * gdbarch.h, gdbarch.c: Re-generate.
855 * mem-break.c (memory_insert_breakpoint)
856 (memory_remove_breakpoint, default_memory_insert_breakpoint)
857 (default_memory_remove_breakpoint): Update.
858 * target.h (memory_insert_breakpoint)
859 (memory_remove_breakpoint, default_memory_insert_breakpoint)
860 (default_memory_remove_breakpoint): Update declarations.
861 (struct target_ops): Update to_insert_breakpoint and
862 to_remove_breakpoint.
863 * target.c (debug_to_remove_breakpoint)
864 (debug_to_insert_breakpoint): Update.
865 * remote-m32r-sdi.c (m32r_remove_breakpoint)
866 (m32r_insert_breakpoint): Update.
867 * m32r-tdep.c (m32r_memory_insert_breakpoint)
868 (m32r_memory_remove_breakpoint): Update.
869 * remote-e7000.c (e7000_insert_breakpoint)
870 (e7000_remove_breakpoint): Update.
871 * remote-rdi.c (arm_rdi_insert_breakpoint)
872 (arm_rdi_remove_breakpoint): Update.
873 * remote-sim.c (gdbsim_insert_breakpoint)
874 (gdbsim_remove_breakpoint): Update.
875 * exec.c (ignore): Update.
876 * rs6000-tdep.c (rs6000_extract_return_value): Update.
877 * ia64-tdep.c (ia64_memory_insert_breakpoint)
878 (ia64_memory_remove_breakpoint): Update.
879 * remote-rdp.c (remote_rdp_insert_breakpoint)
880 (remote_rdp_remove_breakpoint): Update.
881
882 2005-05-01 Mark Kettenis <kettenis@gnu.org>
883
884 * somsolib.c, somsolib.h: Remove files.
885 * Makefile.in (somsolib_h): Remove.
886 (somsolib.o): Remove dependency.
887
888 * fbsd-nat.c: Include <sys/sysctl.h>.
889 (fbsd_pid_to_exec_file): Use KERN_PROC_PATHNAME sysctl if
890 available. Plug memory leak. Fixes PR gdb/1922.
891
892 2005-04-29 Mark Kettenis <kettenis@gnu.org>
893
894 * solist.h (TARGET_SO_FREE_SO, TARGET_SO_CLEAR_SOLIB)
895 (TARGET_SO_SOLIB_CREATE_INFERIOR_HOOK)
896 (TARGET_SO_SPECIAL_SYMBOL_HANDLING, TARGET_SO_CURRENT_SOS)
897 (TARGET_SO_OPEN_SYMBOL_FILE_OBJECT): Remove defines.
898 * solib.c (solib_data): New variable.
899 (solib_init, solib_ops): New functions.
900 (solib_open, solib_map_sections, free_so, update_solib_list)
901 (solib_add, clear_solib, solib_create_inferior_hook)
902 (in_solib_dynsym_resolve_code): Call architecture-dependent code
903 using solib_ops.
904 (_initialize_solib): Register SOLIB_DATA.
905
906 2005-04-29 Kevin Buettner <kevinb@redhat.com>
907
908 * frv-tdep.c (find_func_descr): Verify that entry point can be
909 found in symbol table prior to looking up its function descriptor.
910 * solib-frv.c (find_canonical_descriptor_in_load_object): Add
911 test for non-NULL link map.
912
913 2005-04-29 Corinna Vinschen <vinschen@redhat.com>
914
915 * MAINTAINERS: Revert h8300 state to un-deleted.
916 * Makefile.in: Re-add h8300-tdep.o dependencies.
917 * h8300-tdep.c: Slightly rearrange type definitions and functions.
918 (struct frame_extra_info): Remove.
919 (struct h8300_frame_cache): Replace locals with differently defined
920 uses_fp member.
921 (h8300_unwind_pc): Simplify.
922 (h8300_unwind_sp): New function.
923 (h8300_unwind_dummy_id): Simplify.
924 (h8300_init_frame_cache): New function.
925 (h8300_is_argument_spill): Use reworked defines for opcode scanning.
926 (h8300_skip_prologue): Rewrite.
927 (h8300_alloc_frame_cache): Remove.
928 (h8300_analyze_frame_setup): Remove.
929 (h8300_analyze_register_saves): Remove.
930 (h8300_analyze_prologue): Rewrite.
931 (h8300_frame_cache): Use h8300_init_frame_cache instead of
932 h8300_alloc_frame_cache. Use BINWORD instead of constant 4 to
933 accomodate 16 bit mode. Fix saved_sp and register offset evaluation.
934 (h8300_frame_this_id): Correctly calculate this_id using saved stack
935 pointer instead of base.
936 (h8300_frame_prev_register): Drop needless braces.
937 (h8300_frame_base_address): New function.
938 (h8300_frame_base): New frame_base.
939 (h8300_push_dummy_call): Return correct CFA value.
940 (h8300h_extract_return_value): Fix 8 byte value handling.
941 (h8300_use_struct_convention): New function.
942 (h8300h_use_struct_convention): New function.
943 (h8300h_store_return_value): Fix 8 byte value handling.
944 (h8300_return_value): New function.
945 (h8300h_return_value): New function.
946 (h8300_extract_struct_value_address): Remove deprecated functionality.
947 (h8300_push_dummy_code): Remove.
948 (h8300_gdbarch_init): Replace set_gdbarch_extract_return_value and
949 set_gdbarch_store_return_value calls by set_gdbarch_return_value.
950 Remove calls to set_gdbarch_deprecated_fp_regnum,
951 set_gdbarch_deprecated_extract_struct_value_address,
952 set_gdbarch_deprecated_use_struct_convention and
953 set_gdbarch_push_dummy_code.
954 Add calls to set_gdbarch_unwind_sp and frame_base_set_default.
955 Slightly rearrange code.
956
957 2005-04-28 Jim Blandy <jimb@redhat.com>
958
959 * parse.c (namecopy): Change allocation conventions.
960 (namecopy_size): New variable.
961 (copy_name): Allocate namecopy using xrealloc, instead of assuming
962 it has adequate space allocated to it.
963 (parse_exp_1): Don't try to allocate space for namecopy here.
964
965 2005-04-28 Eli Zaretskii <eliz@gnu.org>
966
967 * cli/cli-cmds.c (edit_command): If symtab->fullname is not yet
968 set, use symtab_to_fullname, instead of trying to do its job. Use
969 xstrprintf instead of malloc and sprintf.
970
971 2005-04-28 Kevin Buettner <kevinb@redhat.com>
972
973 * remote.c (init_remote_state): Eliminate use of
974 deprecated_register_bytes().
975
976 2005-04-28 Andrew Cagney <cagney@gnu.org>
977
978 * valops.c (check_field): Make buffer a bfd_byte.
979 * value.c (unpack_long, unpack_double, unpack_pointer)
980 (unpack_field_as_long, modify_field): Ditto.
981 * value.h: Update declarations.
982
983 2005-04-28 Paul Brook <paul@codesourcery.com>
984
985 * exceptions.c (print_flush): Handle NULL gdb_stdout_serial.
986
987 2005-04-27 Mark Kettenis <kettenis@gnu.org>
988
989 * solib-svr4.c (_initialize_svr4_solib)
990 [SVR4_FETCH_LINK_MAP_OFFSETS]: Don't set non-existent variable
991 svr4_legacy_fetch_link_map_offsets.
992
993 * sh-tdep.c (sh_linux_svr4_fetch_link_map_offsets): Remove function.
994 (sh_gdbarch_init): Remove redundant prototype.
995 * sh-linux-tdep.c: New file.
996 * config/sh/tm-linux.h (sh_linux_svr4_fetch_link_map_offsets):
997 Remove prototype.
998 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
999 * config/sh/linux.mt (TDEPFILES): Add sh64-tdep.o, remove
1000 solib-legacy.o.
1001 * Makefile.in (sh-linux-tdep.o): New.
1002
1003 * solib-svr4.c: Update copyright year. Include "gdb_assert.h".
1004 (SVR4_FETCH_LINK_MAP_OFFSETS): Don't define if not already
1005 defined.
1006 (legacy_fetch_link_map_offsets): Remove prototype.
1007 (fetch_link_map_offsets_gdbarch_data): Remove.
1008 (LM_ADDR, LM_NEXT, IGNORE_FIRST_LINK_MAP_ENTRY)
1009 (first_link_map_member, open_symbol_file_object, svr4_current_sos)
1010 (svr4_fetch_objfile_link_map): Call svr4_fetch_link_map_offsets
1011 instead of SVR4_FETCH_LINK_MAP_OFFSETS.
1012 (solib_svr4_data): New variable.
1013 (struct solib_svr4_ops): New.
1014 (solib_svr4_init): New fynction.
1015 (legacy_fetch_link_map_offsets, init_fetch_link_map_offsets):
1016 Remove functions.
1017 (svr4_fetch_link_map_offsets, svr4_have_link_map_offsets): Rewrite
1018 using the new `struct solib_svr4_ops'.
1019 (_initialize_svr4_solib): Replace registration of per-architecture
1020 data. Add temporary hack to set
1021 svr4_legacy_fetch_link_map_offsets if SVR4_FETCH_LINK_MAP_OFFSETS
1022 is set.
1023 * Makefile.in (solib-svr4.o): Update dependencies.
1024
1025 2005-04-26 Mark Kettenis <kettenis@gnu.org>
1026
1027 * configure.tgt (*-*-freebsd*): Set gdb_osabi to
1028 GDB_OSABI_FREEBSD_ELF. Partial fix for PR gdb/1922.
1029
1030 2005-04-26 Andrew Cagney <cagney@gnu.org>
1031
1032 * remote.c (remote_open_1): Move "ex"'s declaration to where it is
1033 used.
1034 (remote_get_thread_local_address): Use throw_error, include a
1035 printed string.
1036 * linux-thread-db.c (thread_db_get_thread_local_address): Ditto.
1037 * dwarf2loc.c (dwarf_expr_tls_address): Ditto.
1038 * cli/cli-script.c (script_from_file): Mark up throw_error message.
1039 * linespec.c (symtab_from_filename, decode_variable): Ditto.
1040
1041 2005-04-26 Andrew Cagney <cagney@gnu.org>
1042
1043 Rename 'struct exception' to 'struct gdb_exception'.
1044 * wrapper.c: Update.
1045 * varobj.c: Update.
1046 * tui/tui-interp.c: Update.
1047 * remote.c: Update.
1048 * mi/mi-main.c: Update.
1049 * mi/mi-interp.c: Update.
1050 * linux-thread-db.c: Update.
1051 * interps.h: Update.
1052 * interps.c: Update.
1053 * exceptions.h: Update.
1054 * exceptions.c: Update.
1055 * dwarf2loc.c: Update.
1056 * cli/cli-interp.c: Update.
1057 * cli/cli-script.c: Update.
1058 * breakpoint.c: Update.
1059
1060 2005-04-25 Mark Mitchell <mark@codesourcery.com>
1061
1062 * event-loop.c (gdb_select): Program defensively.
1063
1064 * event-loop.c (gdb_assert.h): Include.
1065 (<windows.h>): Include under Windows.
1066 (<io.h>): Likeiwse.
1067 (gdb_select): New function.
1068 (gdb_wait_for_event): Use it.
1069 * Makefile.in (event-loop.o): Depend on $(gdb_assert_h).
1070
1071 2005-04-23 Mark Kettenis <kettenis@gnu.org>
1072
1073 * sparc64-tdep.c: Include "dwarf2-frame.h".
1074 (sparc64_dwarf2_frame_init_reg): New function.
1075 * Makefile.in (sparc64-tdep.o): Update dependencies.
1076
1077 2005-04-22 David S. Miller <davem@davemloft.net>
1078
1079 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Add call to
1080 sparc64_init_abi().
1081
1082 2005-04-22 Mark Kettenis <kettenis@gnu.org>
1083
1084 * ser-base.c: Include "ser-base.h" instead of "ser-unix.h".
1085
1086 2005-04-22 Mark Mitchell <mark@codesourcery.com>
1087
1088 * ser-base.c (<sys/time.h>): Include.
1089
1090 2005-04-22 Mark Kettenis <kettenis@gnu.org>
1091
1092 * ppcobsd-tdep.c (ppcobsd_init_abi): Set return_value.
1093
1094 * sparc-linux-tdep.c: Reorder includes. Tweak a few comments.
1095 (LINUX32_SIGTRAMP_INSN0, LINUX32_SIGTRAMP_INSN1)
1096 (LINUX32_RT_SIGTRAMP_INSN0, LINUX32_RT_SIGTRAMP_INSN1): Remove
1097 macros.
1098 (sparc32_linux_sigframe, sparc32_linux_rt_sigframe): Hardcode
1099 instructions.
1100 * sparc64-linux-tdep.c: Reorder includes. Tweak a few comments.
1101 (LINUX64_RT_SIGTRAMP_INSN0, LINUX64_RT_SIGTRAMP_INSN1): Remove
1102 macros.
1103 (sparc64_linux_rt_sigframe): Hardcode instructions.
1104 * Makefile.in (sparc-linux-tdep.o, sparc64-linux-tdep.o): Update
1105 dependencies.
1106
1107 * sparc-linux-tdep.c: Update copyright year.
1108 (sparc32_linux_init_abi): Set skip_trampoline_code and
1109 solib_svr4_fetch_link_map_offsets. Set TDEP->plt_entry_size.
1110 Don't set software_single_step and don't call
1111 sparc32_sol2_init_abi.
1112 * sparc64-linux-tdep.c: Update copyright year.
1113 (sparc64_linux_init_abi): Set skip_trampoline_code and
1114 solib_svr4_fetch_link_map_offsets. Set TDEP->plt_entry_size.
1115 Don't set software_single_step and don't call
1116 sparc64_sol2_init_abi.
1117
1118 2005-04-22 Eli Zaretskii <eliz@gnu.org>
1119
1120 * remote-st.c (_initialize_remote_st2000): Remove the extraneous
1121 "<command>" string from the call to add_com.
1122
1123 * remote-sim.c (_initialize_remote_sim): Ditto.
1124
1125 * remote-utils.c (_initialize_sr_support): Ditto.
1126
1127 * remote-mips.c (_initialize_remote_mips): Ditto.
1128
1129 2005-04-21 David S. Miller <davem@davemloft.net>
1130
1131 * sparc-linux-tdep.c (sparc32_linux_sigframe_init): New function.
1132 (sparc32_linux_sigframe, sparc32_linux_rt_sigframe): New tramp_frames.
1133 (sparc_linux_sigtramp_start, sparc32_linux_sigtramp_start,
1134 sparc32_linux_rt_sigtramp_start, sparc32_linux_sigtramp_p,
1135 sparc32_linux_sigtramp_frame_cache,
1136 sparc32_linux_sigtramp_frame_this_id,
1137 sparc32_linux_sigtramp_frame_prev_register,
1138 sparc32_linux_sigtramp_frame_unwind,
1139 sparc32_linux_sigtramp_frame_sniffer): Delete.
1140 (sparc32_linux_init_abi): Register new tramp unwinders. Kill
1141 register of old sigtramp sniffer.
1142 * sparc64-linux-tdep.c (sparc64_linux_sigframe_init): New
1143 function.
1144 (sparc64_linux_rt_sigframe): New tramp frame.
1145 (sparc64_linux_sigtramp_start, sparc64_linux_sigtramp_p,
1146 sparc64_linux_sigtramp_frame_cache,
1147 sparc64_linux_sigtramp_frame_this_id,
1148 sparc64_linux_sigtramp_frame_prev_register,
1149 sparc64_linux_sigtramp_frame_unwind,
1150 sparc64_linux_sigtramp_frame_sniffer): Delete.
1151 (sparc64_linux_init_abi): Register new tramp unwinders. Kill
1152 register of old sigtramp sniffer.
1153 Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1154 (sparc-linux-tdep.o): Likewise.
1155
1156 2005-04-21 Mark Kettenis <kettenis@gnu.org>
1157
1158 * ser-base.c: Include "gdb_string.h".
1159 * Makefile.in (ser-base.o): Update dependencies.
1160
1161 2005-04-20 David S. Miller <davem@davemloft.net>
1162
1163 * sparc-linux-tdep.c (sparc32_linux_sigtramp_p): Fix
1164 signal return stub symbol names, __restore and __restore_rt are
1165 the i386 symbol names not the sparc ones.
1166 (sparc32_linux_sigtramp_frame_cache): Document bits/sigcontext.h
1167 as where the offsets were obtained from.
1168 * sparc64-linux-tdep.c (LINUX64_RT_SIGTRAMP_INSN0,
1169 LINUX64_RT_SIGTRAMP_INSN1): New defines.
1170 (sparc64_linux_sigtramp_start, sparc64_linux_sigtramp_p,
1171 sparc64_linux_sigtramp_frame_cache,
1172 sparc64_linux_sigtramp_frame_this_id,
1173 sparc64_linux_sigtramp_frame_prev_register,
1174 sparc64_linux_sigtramp_frame_sniffer): New functions.
1175 (sparc64_linux_sigtramp_frame_unwind): New frame unwinder.
1176 (sparc64_linux_init_abi): Register sigtramp frame sniffer.
1177 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1178
1179 2005-04-20 Mark Mitchell <mark@codesourcery.com>
1180
1181 * configure.ac: On MinGW, define USE_WIN32API and link with
1182 -lws2_32.
1183 * ser-tcp.c (<winsock2.h>): Include, for Windows.
1184 (ETIMEDOUT): Define, for Windows.
1185 (ioctl): Likewise.
1186 (closesocket): Define, for POSIX.
1187 (net_open): Adjust for differences in socket functions between
1188 Windows and UNIX.
1189 (net_close): Likweise.
1190 (net_read_prim): New function.
1191 (net_write_prim): Likewise.
1192 (_initialize_ser_tcp): Initialize winsock. Fill in read_prim and
1193 write_prim.
1194 * ser-unix.h (ser_unix_readcchar): Remove.
1195 (ser_unix_read_prim): Declare.
1196 (ser_unix_write_prim): Likewise.
1197 * ser-unix.c (generic_readchar): Move to ser-base.c.
1198 (ser_unix_wait_for): Likewise.
1199 (do_unix_readchar): Likewise.
1200 (ser_unix_readchar): Likewise.
1201 (_initialize_ser_hardwire): Initialize read_prim and write_prim.
1202 (ser_unix_read_prim): New function.
1203 (ser_unix_write_prim): Likewise.
1204 * ser-base.h (generic_readchar): Declare.
1205 (ser_base_readchar): Likewise.
1206 * ser-base.c (<winsock2.h>): Include, for windows.
1207 (fd_event): Use the read primitive specified by the serial
1208 interface.
1209 (ser_base_wait_for): Moved from ser-unix.c
1210 (do_ser_base_read_char): Likewise.
1211 (generic_readchar): Likewise.
1212 (ser_base_readchar): Likewise.
1213 (ser_base_write): Use the write primitive specified by the serial
1214 interface.
1215 * ser-pipe.c (_initialize_ser_pipe): Use ser_base_readchar, not
1216 ser_unix_readchar. Initialize read_prim and write_prim.
1217 * serial.c (struct serial_ops): Add read_prim and write_prim.
1218 * configure: Regenerate.
1219
1220 2005-04-19 Ben Elliston <bje@au.ibm.com>
1221
1222 * c-lang.c (c_create_fundamental_type): Comment fix.
1223
1224 2005-04-18 Michael Snyder <msnyder@redhat.com>
1225
1226 * mn10300-tdep.c: Assimilate code from mn10300-prologue.c.
1227 * mn10300-prologue.c: Remove.
1228 * mn10300-tdep.h: Add enums from mn10300-prologue.c.
1229 Remove prototypes.
1230 * config/mn10300/mn10300.mt: Remove mn10300-prologue module.
1231
1232 2005-04-18 Michael Snyder <msnyder@redhat.com>
1233
1234 * config/mn10300/mn10300.mt: Add mn10300-prologue module.
1235 * ia64-tdep.c (ia64_get_dyn_info_list): Fix indent.
1236
1237 2005-04-18 Mark Kettenis <kettenis@gnu.org>
1238
1239 * config/nm-bsd.h: Remove file.
1240
1241 * hppabsd-nat.c: Update copyright year. Include "target.h" and
1242 "inf-ptrace.h".
1243 (hppabsd_fetch_registers): Renamed from fetch_inferior_registers;
1244 made static.
1245 (hppabsd_store_registers): Renamed from store_inferior_registers;
1246 made static.
1247 (_initialize_hppabsd_nat): New function and prototype.
1248 * config/pa/obsd.mh (NATDEPFILES): Remove infptrace.o and
1249 inftarg.o. Add inf-ptrace.o.
1250 (NAT_FILE): Remove.
1251 * Makefile.in (hppabsd-nat.o): Update dependencies.
1252
1253 2005-04-17 Mark Kettenis <kettenis@gnu.org>
1254
1255 * pa64solib.c, pa64solib.h: Remove files.
1256 * Makefile.in (pa64solib_h): Remove variable
1257 (pa64solib.o): Remove dependency.
1258
1259 2005-04-16 Mark Kettenis <kettenis@gnu.org>
1260
1261 * ppcobsd-nat.c: Update copyright year. Include "inf-ptrace.h".
1262 (ppcobsd_fetch_registers): Renamed from fetch_inferior_registers;
1263 made static.
1264 (ppcobsd_store_registers): Renamed from store_inferior_registers;
1265 made static.
1266 (_initialize_ppcobsd_nat): Construct and add target vector.
1267 * config/powerpc/obsd.mh (NATDEPFILES): Remove infptrace.o and
1268 inftarg.o. Add inf-ptrace.o.
1269 (NAT_FILE): Remove.
1270 * Makefile.in (ppcobsd-nat.o): Update dependencies.
1271
1272 * ppcobsd-tdep.c: Include "floatformat.h".
1273 (ppcobsd_init_abi): Set long_double_bit and long_double_format.
1274 * Makefile.in (ppcobsd-tdep.o): Update dependencies.
1275
1276 * ppcobsd-tdep.c: Fix typo in comment.
1277 (_initialize_ppcobsd_tdep): Register GDB_OSABI_OPENBSD_ELF for
1278 bfd_arch_rs6000 too.
1279
1280 2005-04-15 Kevin Buettner <kevinb@redhat.com>
1281
1282 * remote.c (remote_get_thread_local_address): Throw a more
1283 meaningful exception when remote target doesn't have support
1284 for the qGetTLSAddr packet.
1285
1286 2005-04-15 Kevin Buettner <kevinb@redhat.com>
1287
1288 * remote.c (remote_protocol_qGetTLSAddr): New static global variable.
1289 (set_remote_protocol_qGetTLSAddr_packet_cmd)
1290 (show_remote_protocol_qGetTLSAddr_packet_cmd)
1291 (remote_get_thread_local_address): New functions.
1292 (init_all_packet_configs): Initialize remote_protocol_qGetTLSAddr
1293 variable.
1294 (init_remote_ops): Initialize ``to_get_thread_local_address'' in
1295 target vector.
1296 (show_remote_cmd): Call show_remote_protocol_qGetTLS_Addr_packet_cmd().
1297 (_initialize_remote): Register the following commands:
1298 "set remote get-thread-local-storage-address-packet" and
1299 "show remote get-thread-local-address-packet".
1300
1301 2005-04-15 Kevin Buettner <kevinb@redhat.com>
1302
1303 * remote.c (add_packet_config_cmd): Delete unused variables.
1304
1305 2005-04-15 Kevin Buettner <kevinb@redhat.com>
1306
1307 * remote.c (show_remote_protocol_vcont_packet_cmd )
1308 (show_remote_protocol_qSymbol_packet_cmd)
1309 (show_remote_protocol_P_packet_cmd)
1310 (show_remote_protocol_Z_software_bp_packet_cmd)
1311 (show_remote_protocol_Z_hardware_bp_packet_cmd)
1312 (show_remote_protocol_Z_write_wp_packet_cmd)
1313 (show_remote_protocol_Z_read_wp_packet_cmd)
1314 (show_remote_protocol_Z_access_wp_packet_cmd)
1315 (show_remote_protocol_binary_download_cmd)
1316 (show_remote_protocol_qPart_auxv_packet_cmd)
1317 (show_remote_protocol_p_packet_cmd ): Delete calls to
1318 deprecated_show_value_hack().
1319
1320 2005-04-15 Corinna VInschen <vinschen@redhat.com>
1321
1322 * MAINTAINERS: Change sh64-elf state to non-broken.
1323 * Makefile.in: Fix dependencies for sh64-tdep.o.
1324 * configure.tgt: Add sh64-*-elf case.
1325 * sh-tdep.c (sh_gdbarch_init): Reactivate bfd_mach_sh5 case.
1326 * sh64-tdep.c: Rework to replace all deprecated mechanisms with
1327 modern methods.
1328 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1329 * config/sh/sh64.mt: Resurrect.
1330
1331 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
1332
1333 * regformats/reg-m32r.dat: New file.
1334
1335 2005-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1336
1337 * arm-tdep.c (fp_model_strings): Add terminating NULL.
1338 (arm_abi_strings, arm_abi_global, arm_abi_string): New
1339 variables.
1340 (arm_extract_return_value, arm_store_return_value): Don't use
1341 arm_get_fp_model.
1342 (arm_get_fp_model, arm_set_fp): Delete.
1343 (arm_update_current_architecture): New function.
1344 (set_fp_model_sfunc): Call arm_update_current_architecture.
1345 (show_fp_model): Update output messages.
1346 (arm_set_abi, arm_show_abi): New functions.
1347 (arm_elf_osabi_sniffer): Only handle ELFOSABI_ARM.
1348 (arm_gdbarch_init): Infer the object's ABI separately from its
1349 OSABI. Search for a matching architecture. Honor the global
1350 ABI and FPU settings. Set floating point format based on the
1351 architecture.
1352 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs):
1353 Delete.
1354 (_initialize_arm_tdep): Don't call gdbarch_register_osabi.
1355 Create "arm set abi" command.
1356 * arm-tdep.h (arm_get_fp_model): Delete prototype.
1357 (enum arm_abi_kind): New type.
1358 (struct gdbarch_tdep): Add arm_abi field.
1359 * arm-linux-tdep.c (arm_linux_init_abi): Only override
1360 tdep->fp_model if it is ARM_FLOAT_AUTO.
1361 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Likewise.
1362 (arm_netbsd_elf_init_abi): Likewise.
1363 * defs.h (enum gdb_osabi): Delete ARM-specific OSABIs.
1364 * osabi.c (gdb_osabi_name): Likewise.
1365
1366 2005-04-11 Daniel Jacobowitz <dan@codesourcery.com>
1367
1368 * config/djgpp/fnchange.lst: Remove entries for gdb.gdbserver.
1369
1370 2005-04-10 Mark Kettenis <kettenis@gnu.org>
1371
1372 * rs6000-tdep.c (ppc_supply_fpregset): Increment offset by 8 for
1373 floating-point registers.
1374 (ppc_collect_fpregset): Likewise. Fix collection of registers.
1375
1376 2005-04-09 Mark Kettenis <kettenis@gnu.org>
1377
1378 * ppcobsd-tdep.c: Update copyright year. Include "trad-frame.h"
1379 and "tramp-frame.h".
1380 (ppcobsd_sigtramp_cache_init): New function.
1381 (ppcobsd_sigtramp): New variable.
1382 (ppcobsd_init_abi): Prepend signal trampoline unwinder.
1383 * Makefile.in (ppcobsd-tdep.o): Update dependencies.
1384
1385 2005-04-08 Andrew Cagney <cagney@gnu.org>
1386
1387 * MAINTAINERS (GDB/MI): Andrew Cagney, Elena Zannoni, and Fernando
1388 Nasser have decided to step back from GDB/MI.
1389
1390 2005-04-08 Daniel Jacobowitz <dan@codesourcery.com>
1391
1392 * config/fnchange.lst: Add testsuite/gdb.gdbserver entries.
1393
1394 2005-04-08 Daniel Jacobowitz <dan@codesourcery.com>
1395
1396 * dwarf2-frame.c (struct dwarf2_frame_cache): New field
1397 undefined_retaddr.
1398 (dwarf2_frame_cache): Initialize undefined_retaddr.
1399 (dwarf2_frame_this_id): Return an invalid frame ID if
1400 undefined_retaddr.
1401
1402 2005-04-05 Jim Blandy <jimb@redhat.com>
1403
1404 Move construction of IA-32 vector types to i386-tdep.c.
1405 * gdbtypes.c (build_builtin_type_vec64i,
1406 build_builtin_type_vec128i): Delete functions.
1407 (builtin_type_vec64i, builtin_type_vec128i): Delete variables.
1408 (build_gdbtypes): Don't initialize them.
1409 (_initialize_gdbtypes): Don't register GDBARCH swap entries for
1410 them.
1411 * gdbtypes.h (builtin_type_vec64i, builtin_type_vec128i): Delete
1412 declarations.
1413 (builtin_type_v2_float, builtin_type_v2_int32,
1414 builtin_type_v4_int16, builtin_type_v8_int8,
1415 builtin_type_v2_double, builtin_type_v4_float,
1416 builtin_type_v2_int64, builtin_type_v4_int32,
1417 builtin_type_v8_int16, builtin_type_v16_int8): Add extern
1418 declarations.
1419 * i386-tdep.c (i386_mmx_type, i386_sse_type): New variables.
1420 (i386_build_mmx_type, i386_build_sse_type): New functions.
1421 (i386_register_type): Call them, rather than referring to
1422 builtin_type_vec64i and builtin_type_vec128i.
1423
1424 2005-04-02 Daniel Jacobowitz <dan@codesourcery.com>
1425
1426 * mips-linux-tdep.c (mips_linux_o32_sigframe_init): Adjust
1427 big-endian correction code to not offset 32-bit registers.
1428 Locate floating point registers correctly.
1429
1430 2005-04-02 Mark Kettenis <kettenis@gnu.org>
1431
1432 * main.c: Update copyright year.
1433 (captured_main): Avoid using strcpy and strcat.
1434
1435 2005-04-01 Michael Snyder <msnyder@redhat.com>
1436
1437 * dummy-frame.c (dummy_frame_sniffer): Optimization: don't bother
1438 computing this_id if there are no dummy frames on the stack.
1439
1440 * mn10300-tdep.c (mn10300_frame_unwind_cache): Use
1441 find_partial_func instead of unwind_pc to identify frame.
1442 (mn10300_push_dummy_call): Handle struct args, struct_return.
1443
1444 * mn10300-prologue.c (set_movm_offsets): Don't test variable
1445 before setting it.
1446 * mn10300-tdep.c (mn10300_skip_prologue): Use analyze_prologue
1447 instead of skip_prologue_using_sal.
1448
1449 2005-03-31 Kevin Buettner <kevinb@redhat.com>
1450
1451 * solib-frv.c (struct lm_info): Add new field ``lm_addr''.
1452 (main_lm_addr): New static global.
1453 (frv_current_sos): Retain the link map address for each entry.
1454 (frv_clear_solib): Clear main_lm_addr.
1455 (frv_fetch_objfile_link_map): New function.
1456 * frv-tdep.c (frv_gdbarch_init): Register TLS load module fetcher.
1457 * frv-tdep.h (frv_fetch_objfile_link_map): Declare.
1458
1459 2005-03-31 Kevin Buettner <kevinb@redhat.com>
1460
1461 * gdbarch.sh (fetch_tls_load_module_address): New architecture method.
1462 * gdbarch.c, gdbarch.h: Regenerate.
1463 * dwarf2loc.c (dwarf_expr_tls_address): Fetch TLS load module
1464 address and pass this address, instead of the objfile address, to
1465 target_get_thread_local_address().
1466 * linux-thread-db.c (thread_db_get_thread_local_address): Change
1467 second parameter from type ``struct objfile *'' to CORE_ADDR. Do
1468 not call svr4_fetch_objfile_link_map() to fetch the load module
1469 address.
1470 * target.h (struct target_ops): Change second parameter of
1471 ``to_get_thread_local_address'' from ``struct objfile *'' to
1472 ``CORE_ADDR''.
1473 * alpha-linux-tdep.c (solib-svr4.h): Include.
1474 (alpha_linux_init_abi): Register TLS load module fetcher.
1475 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1476 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
1477 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1478 * ia64-linux-tdep.c (solib-svr4.h): Include.
1479 (ia64_linux_init_abi): Register TLS load module fetcher.
1480 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
1481 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
1482 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1483 * s390-tdep.c (s390_gdbarch_init): Likewise.
1484 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1485 * sparc64-linux-tdep.c (solib-svr4.h): Include.
1486 (sparc64_linux_init_abi): Register TLS load module fetcher.
1487 * Makefile.in (alpha-linux-tdep.o, ia64-linux-tdep.o)
1488 (sparc-linux-tdep.o): Update dependencies.
1489
1490 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1491
1492 * c-valprint.c (c_value_print): Fix up some formatting. Use
1493 check_typedef.
1494
1495 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1496
1497 * arm-linux-nat.c (store_register, store_regs): Handle
1498 ARM_PS_REGNUM.
1499
1500 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1501
1502 * arm-linux-tdep.c (arm_linux_thumb_be_breakpoint)
1503 (arm_linux_thumb_le_breakpoint): New. Update comments.
1504 (arm_linux_init_abi): Set Thumb breakpoints also.
1505
1506 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1507
1508 * Makefile.in (arm-tdep.o): Update dependencies.
1509 * arm-tdep.c: Include "objfiles.h" and "dwarf2-frame.h".
1510 (arm_gdbarch_init): Register dwarf2_frame_sniffer.
1511
1512 2005-03-28 Joel Brobecker <brobecker@adacore.com>
1513
1514 * irix5-nat.c (supply_fpregset): Fix bug that caused the FSR
1515 register value to be incorrectly written in the regcache.
1516 (fill_fpregset): Fix bug that caused the FSR register value
1517 to be incorrectly read from the regcache.
1518
1519 2005-03-28 Daniel Jacobowitz <dan@codesourcery.com>
1520
1521 * remote-rdi.c (arm_rdi_insert_breakpoint): Don't call
1522 arm_pc_is_thumb_dummy.
1523
1524 2005-03-28 Mark Kettenis <kettenis@gnu.org>
1525
1526 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Handle
1527 StackGhost.
1528
1529 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
1530 Handle StackGhost in 64-bit code.
1531 * sparc64-tdep.c (sparc64_frame_prev_register): Handle StackGhost.
1532
1533 2005-03-27 Christopher Faylor <cgf@timesys.com>
1534
1535 * win32-nat.c (handle_exception): Treat win32 routines which check for
1536 valid addresses as "special" and don't stop when a SEGV is detected.
1537 (get_child_debug_event): Properly flag exception as unhandled.
1538
1539 2005-03-26 Daniel Jacobowitz <dan@codesourcery.com>
1540
1541 * cp-support.c (cp_class_name_from_physname): Rewrite.
1542 (unqualified_name_from_comp): New function, broken out from
1543 method_name_from_physname. Correct handling for typed names
1544 and templates.
1545 (method_name_from_physname): Use unqualified_name_from_comp.
1546 (cp_func_name, remove_params): Move earlier in the file. Add
1547 better comments. Use the component tree to parse the name.
1548 (_initialize_cp_support): Remove stray whitespace.
1549
1550 2005-03-26 Mark Kettenis <kettenis@gnu.org>
1551
1552 * exec.c (bfdsec_to_vmap): Use strcmp instead of DEPRECATED_STREQ.
1553
1554 * inflow.h: Update copyright year. Remove #ifdef SHORT_PGRP code.
1555 Callapse HAVE_TERMIO and HAVE_SGTTY.
1556
1557 * dwarf2-frame.c (execute_cfa_program): Implement
1558 DW_CFA_GNU_window_save.
1559
1560 2005-03-25 Mark Kettenis <kettenis@gnu.org>
1561
1562 * config/sparc/nbsd64.mh (NAT_FILE): Remove.
1563
1564 * config/i386/obsd64.mt (TDEPFILES): Add obsd-uthread.o.
1565
1566 2005-03-25 Daniel Jacobowitz <dan@codesourcery.com>
1567
1568 * arm-tdep.c (target_is_thumb, caller_is_thumb)
1569 (arm_pc_is_thumb_dummy): Remove.
1570 (arm_breakpoint_from_pc): Don't call arm_pc_is_thumb_dummy.
1571
1572 2005-03-25 Anthony Green <green@redhat.com>
1573
1574 * remote.c (remote_store_registers): Fix memset usage.
1575 * std-regs.c (value_of_builtin_frame_reg): Ditto.
1576 (value_of_builtin_frame_fp_reg): Ditto.
1577 (value_of_builtin_frame_reg): Ditto.
1578
1579 2005-03-25 Mark Mitchell <mark@codesourcery.com>
1580
1581 * ser-base.c (ser_unix_write): Rename to ...
1582 (ser_base_write): ... this.
1583 (ser_unix_nop_flush_output): Rename to ...
1584 (ser_base_flush_output): ... this.
1585 (ser_unix_flush_input): Rename to ...
1586 (ser_base_flush_input): ... this.
1587 (ser_unix_nop_send_break): Rename to ...
1588 (ser_base_send_break): ... this.
1589 (ser_unix_nop_drain_output): Rename to ...
1590 (ser_base_drain_output): ... this.
1591 (ser_unix_nop_raw): Rename to ...
1592 (ser_base_raw): ... this.
1593 (ser_unix_nop_get_tty_state): Rename to ...
1594 (ser_base_set_tty_state): ... this.
1595 (ser_unix_nop_noflush_set_tty_state): Rename to ...
1596 (ser_base_noflush_set_tty_state): ... this.
1597 (ser_unix_nop_print_tty_state): Rename to ...
1598 (ser_base_print_tty_state): ... this.
1599 (ser_unix_nop_setbaudrate): Rename to ...
1600 (ser_base_setbaudrate): ... this.
1601 (ser_unix_nop_setstopbits): Rename to ...
1602 (ser_base_setstopbits): ... this.
1603 (ser_unix_async): Rename to ...
1604 (ser_base_async): ... this.
1605 * ser-base.h (ser_unix_write): Rename to ...
1606 (ser_base_write): ... this.
1607 (ser_unix_nop_flush_output): Rename to ...
1608 (ser_base_flush_output): ... this.
1609 (ser_unix_flush_input): Rename to ...
1610 (ser_base_flush_input): ... this.
1611 (ser_unix_nop_send_break): Rename to ...
1612 (ser_base_send_break): ... this.
1613 (ser_unix_nop_drain_output): Rename to ...
1614 (ser_base_drain_output): ... this.
1615 (ser_unix_nop_raw): Rename to ...
1616 (ser_base_raw): ... this.
1617 (ser_unix_nop_get_tty_state): Rename to ...
1618 (ser_base_set_tty_state): ... this.
1619 (ser_unix_nop_noflush_set_tty_state): Rename to ...
1620 (ser_base_noflush_set_tty_state): ... this.
1621 (ser_unix_nop_print_tty_state): Rename to ...
1622 (ser_base_print_tty_state): ... this.
1623 (ser_unix_nop_setbaudrate): Rename to ...
1624 (ser_base_setbaudrate): ... this.
1625 (ser_unix_nop_setstopbits): Rename to ...
1626 (ser_base_setstopbits): ... this.
1627 (ser_unix_async): Rename to ...
1628 (ser_base_async): ... this.
1629 * ser-pipe.c (_initialize_ser_pipe): Update accordingly.
1630 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1631 * ser-unix.c (hardwire_flush_input): Likewise.
1632 (_initializer_ser_hardwire): Likewise.
1633
1634 * Makefile.in (SFILES): Add ser-base.c.
1635 (ser_base_h): New variable.
1636 (ser-base.o): New target.
1637 (ser-pipe.o): Depend on $(ser_base_h).
1638 (ser-tcp.o): Likewise.
1639 (ser-unix.o): Likewise. Do not depend on $(event_loop_h).
1640 * configure.ac (SER_HARDWIRE): Include ser-base.o where
1641 appropriate.
1642 * ser-base.c: New file.
1643 (push_event): Move from ser-unix.c.
1644 (fd_event): Likewise.
1645 (reschedule): Likewise.
1646 (ser_unix_write): Likewise.
1647 (ser_unix_nop_flush_output): Likewise.
1648 (ser_unix_flush_input): Likewise.
1649 (ser_unix_nop_send_break): Likewise.
1650 (ser_unix_nop_drain_output): Likewise.
1651 (ser_unix_nop_raw): Likewise.
1652 (ser_unix_nop_get_tty_state): Likewise.
1653 (ser_unix_nop_set_tty_state): Likewise.
1654 (ser_unix_nop_noflush_set_tty_state): Likewise.
1655 (ser_unix_nop_print_tty_state): Likewise.
1656 (ser_unix_nop_setbaudrate): Likewise.
1657 (ser_unix_nop_setstopbits): Likewise.
1658 (ser_unix_async): Likewise.
1659 * ser-base.h: New file.
1660 * ser-pipe.c (ser-base.h): Include it.
1661 * ser-tcp.c (ser-base.h): Likewise.
1662 * ser-unix.h (ser_unix_nop_flush_output): Remove.
1663 (ser_unix_flush_input): Likewise.
1664 (ser_unix_nop_send_break): Likewise.
1665 (ser_unix_nop_raw): Likewise.
1666 (ser_unix_nop_get_tty_state): Likewise.
1667 (ser_unix_nop_set_tty_state): Likewise.
1668 (ser_unix_nop_print_tty_state): Likewise.
1669 (ser_unix_nop_noflush_set_tty_state): Likewise.
1670 (ser_unix_nop_setbaudrate): Likewise.
1671 (ser_unix_nop_setstopbits): Likewise.
1672 (ser_unix_nop_drain_output): Likewise.
1673 (ser_unix_wait_for): Likewise.
1674 (ser_unix_write): Likewise.
1675 (ser_unix_async): Likewise.
1676 * ser-unix.c (event-loop.h): Do not include it.
1677 (push_event): Move to ser-base.c.
1678 (fd_event): Likewise.
1679 (reschedule): Likewise.
1680 (ser_unix_write): Likewise.
1681 (ser_unix_nop_flush_output): Likewise.
1682 (ser_unix_flush_input): Likewise.
1683 (ser_unix_nop_send_break): Likewise.
1684 (ser_unix_nop_drain_output): Likewise.
1685 (ser_unix_nop_raw): Likewise.
1686 (ser_unix_nop_get_tty_state): Likewise.
1687 (ser_unix_nop_set_tty_state): Likewise.
1688 (ser_unix_nop_noflush_set_tty_state): Likewise.
1689 (ser_unix_nop_print_tty_state): Likewise.
1690 (ser_unix_nop_setbaudrate): Likewise.
1691 (ser_unix_nop_setstopbits): Likewise.
1692 (ser_unix_async): Likewise.
1693 (ser_unix_wait_for): Make it static.
1694 * configure: Regenerated.
1695
1696 2005-03-25 Mark Kettenis <kettenis@gnu.org>
1697
1698 * dwarf2-frame.h: Update copyrigh year.
1699 (enum dwarf2_frame_reg_rule): Add DWARF2_FRAME_REG_RA_OFFSET.
1700 * dwarf2-frame.c: Update copyright year.
1701 (struct dwarf2_frame_cache): Add member `retaddr_reg'.
1702 (dwarf2_frame_cache): Deal with DWARF2_FRAME_REG_RA_OFFSET.
1703 (dwarf2_frame_prev_register): Handle DWARF2_FRAME_REG_RA_OFFSET.
1704
1705 2005-03-23 Martin Hunt <hunt@redhat.com>
1706
1707 * configure.ac: Remove -fwritable-strings from CFLAGS.
1708 * configure: Regenerate.
1709
1710 2005-03-21 Michael Snyder <msnyder@redhat.com>
1711
1712 * mn10300-prologue.c (fix_frame_pointer): Delete.
1713 (set_movm_offsets) Don't return just because movm_args is
1714 zero -- still need to save pc and sp in saved_regs.
1715 (mn10300_analyze_prologue): Don't return prematurely without
1716 calling set_movm_offsets (for pc and sp at minimum).
1717
1718 2005-03-21 Mark Mitchell <mark@codesourcery.com>
1719
1720 * configure.ac (stat.st_blksize): Check for it.
1721 (getuid): Likewise.
1722 (getgid): Likewise.
1723 * configure: Regenerated.
1724 * config.in: Likewise.
1725 * remote-fileio.c (remote_fileio_to_fio_stat): Check
1726 HAVE_STRUCT_STAT_ST_BLKSIZE.
1727
1728 2005-03-21 Christopher Faylor <cgf@timesys.com>
1729
1730 * win32-nat.c (do_initial_child_stuff): Don't clear the thread list
1731 here.
1732 (do_initial_child_stuff): Move clearing of thread list to a place
1733 before a thread ould be created.
1734 (child_attach): Ditto.
1735
1736 2005-03-21 Michael Snyder <msnyder@redhat.com>
1737
1738 * mn10300-tdep.c (mn10300_frame_unwind_cache): Use func addr
1739 instead of pc addr for frame_id. Otherwise "until" won't work.
1740
1741 2005-03-21 Kevin Buettner <kevinb@redhat.com>
1742
1743 * frv-linux-tdep.c (frv_linux_sigcontext_reg_addr): Fix typo in
1744 comment.
1745
1746 2005-03-20 Mark Kettenis <kettenis@gnu.org>
1747
1748 * dwarf2loc.c (dwarf_expr_tls_address): Mark addr as volatile.
1749 * varobj.c (my_value_equal): Mark val2 as volatile.
1750
1751 * cp-names.y: Add prototype for yyparse.
1752
1753 2005-03-19 Daniel Jacobowitz <dan@codesourcery.com>
1754
1755 * dwarf2loc.c (dwarf_expr_tls_address): Initialize ADDR.
1756 * gnu-v3-abi.c (gnuv3_baseclass_offset): Update type of
1757 VALADDR.
1758
1759 2005-03-18 Kevin Buettner <kevinb@redhat.com>
1760
1761 * Makefile.in (dwarf2loc.o, linux-thread-db.o): Add dependencies.
1762 * exceptions.h (TLS_NO_LIBRARY_SUPPORT_ERROR, TLS_GENERIC_ERROR)
1763 (TLS_LOAD_MODULE_NOT_FOUND_ERROR, TLS_NOT_ALLOCATED_YET_ERROR):
1764 New error/exception enums.
1765 * dwarf2loc.c (exceptions.h): Include.
1766 (dwarf_expr_tls_address): Invoke target_get_thread_local_address()
1767 via TRY_CATCH mechanism. Print error messages for TLS related
1768 exceptions.
1769 * linux-thread-db.c (thread_db_get_thread_local_address): Throw
1770 exceptions instead of printing errors.
1771
1772 2005-03-18 Mark Kettenis <kettenis@gnu.org>
1773
1774 * utils.c (safe_strerror): Use xsnprintf instead of sprintf.
1775 (decimal2str, octal2str): Change to return a string allocated by
1776 get_cell. Use xsnprint instead of snprintf.
1777 (paddr_u, paddr_d): Adjust for changed calling convention of
1778 decimal2str.
1779 (phex, phex_nz, hex_string): Use xsnprintf instead of snprintf.
1780 (int_string): Likewise. Adjust for changed calling convention of
1781 decimal2str and octal2str.
1782
1783 2005-03-18 Kevin Buettner <kevinb@redhat.com>
1784
1785 * frv-linux-tdep.c (frv_linux_sigcontext_reg_addr): Update comments.
1786 Adjust incorrectly computed constant for realtime signal frame.
1787
1788 2005-03-18 Mark Kettenis <kettenis@gnu.org>
1789
1790 From Ralf Corsepius <ralf.corsepius@rtems.org>
1791 * configure.tgt: Add m68*-*-rtems*.
1792
1793 2005-03-17 Mark Kettenis <kettenis@gnu.org>
1794
1795 * defs.h (xsnprintf): New prototype.
1796 * utils.c (xsnprintf): New function.
1797
1798 * corelow.c (get_core_register_section): Replace usage of sprintf
1799 and strcpy with xstrprintf and xstrdup.
1800
1801 * mips-tdep.c (mips_single_step_through_delay): Put back check for
1802 breakpoint lost with the introduction of this function.
1803
1804 2005-03-17 Paul Brook <paul@codesourcery.com>
1805
1806 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Fix broken logic.
1807 * s390-tdep.c (s390_dwarf_reg_to_regnum): Ditto.
1808
1809 2005-03-16 Mark Mitchell <mark@codesourcery.com>
1810
1811 * event-top.c (handle_sigquit): Do not define for systems without
1812 SIGQUIT.
1813 (sigquit_token): Likewise.
1814 (async_init_signals): Allow for systems that do not
1815 define SIGQUIT.
1816 * ser-tcp.c (net_open): Allow for systems that do not have SIGPIPE.
1817
1818 2005-03-15 Mark Mitchell <mark@codesourcery.com>
1819
1820 * utils.c (internal_vproblem): Guard call to fork with
1821 HAVE_WORKING_FORK.
1822 * cli/cli-cmds.c (shell_escape): Guard call to vfork with
1823 HAVE_WORKING_VFORK and HAVE_WORKING_FORK.
1824
1825 * remote-fileo.c (remote_fileio_mode_to_host): Accomodate lack of
1826 S_IRGRP and related macros.
1827 (remote_fileio_mode_to_target): Likewise.
1828
1829 2005-03-14 Ben Elliston <bje@au.ibm.com>
1830
1831 * Makefile.in (CLIBS): Link libbfd after libopcodes, as it is a
1832 more primitive library.
1833
1834 2005-03-13 Mark Kettenis <kettenis@gnu.org>
1835
1836 * inf-ttrace.c (inf_ttrace_pid_to_str): Use snprintf instead of
1837 sprintf.
1838 * target.c (normal_pid_to_str): Likewise.
1839 * remote.c (remote_pid_to_str): Use snprint instead of sprintf.
1840 Change capitalization of "thread". Use ptid_get_pid instead of
1841 GETPID.
1842
1843 * cp-abi.c (set_cp_abi_as_auto_default): Use xasprintf instead of
1844 a combination of xmalloc and sprintf.
1845
1846 2005-03-13 Jim Blandy <jimb@redhat.com>
1847
1848 * configure.ac: Use '=', not '=='; the latter is a GNU extension.
1849 * configure: Regenerated.
1850
1851 2005-03-11 Michael Snyder <msnyder@redhat.com>
1852
1853 * mn10300-tdep.c (mn10300_dummy_unwind_dummy_id): Replace
1854 stub fn with real implementatin mn10300_unwind_dummy_id.
1855 (mn10300_push_dummy_call): Implement. Bare bones version,
1856 does not handle structs or floats.
1857
1858 2005-03-11 Jim Blandy <jimb@redhat.com>
1859
1860 Avoid warnings due to the use of -Wuninitialized without -O.
1861 * configure.ac (build_warnings): Include -Wuninitialized only if
1862 CFLAGS is unset at configure time, or CFLAGS is set and includes
1863 some -O option other than -O0.
1864 * configure: Regenerated.
1865
1866 * mips-tdep.c (show_mips_abi): Change calling conventions to match
1867 those expected by add_setshow_enum_cmd. Use 'file' argument as
1868 appropriate.
1869
1870 2005-03-10 Daniel Jacobowitz <dan@codesourcery.com>
1871
1872 * Makefile.in (SFILES): Add cp-names.y.
1873 (libiberty_h, safe_ctype_h): New.
1874 (YYFILES): Add cp-names.c.
1875 (YYOBJ): Add cp-names.o.
1876 (test-cp-names.o, test-cp-names$(EXEEXT), cp-names.o): New rules.
1877 (clean): Remove test-cp-names$(EXEEXT).
1878 (local-maintainer-clean): Remove cp-names.c.
1879 * cp-names.y: New file.
1880 * cp-support.c (find_last_component): Delete.
1881 (d_left, d_right): Define.
1882 (cp_canonicalize_string, mangled_name_to_comp): New functions.
1883 (cp_class_name_from_physname, method_name_from_physname): Rewrite
1884 to use mangled_name_to_comp.
1885 * cp-support.h (cp_canonicalize_string, cp_demangled_name_to_comp)
1886 (cp_comp_to_string): New prototypes.
1887 * config/djgpp/fnchange.lst: Add cp-names.c.
1888
1889 2005-03-10 Bob Rossi <bob@brasko.net>
1890
1891 * main.c (print_gdb_help): Remove the --[no]async help message.
1892
1893 2005-03-10 Mark Kettenis <kettenis@gnu.org>
1894
1895 * proc-api.c: Update copyright year.
1896 (_initialize_proc_api): Revert previous patch, removing spurious
1897 space instead.
1898
1899 2005-03-09 Joel Brobecker <brobecker@adacore.com>
1900
1901 * regcache.c: Fix typo in comment.
1902
1903 2005-03-09 David Lecomber <david@lecomber.net>
1904
1905 * proc-api.c (_initialize_proc_api): Fix invalid multi-line
1906 i18n text.
1907
1908 2005-03-09 Mark Kettenis <kettenis@gnu.org>
1909
1910 * sparc-tdep.c (sparc_frame_cache): Adjust cached frame base
1911 address for 64-bit code.
1912 (sparc_unwind_dummy_id): Likewise.
1913 * sparc64-tdep.c (sparc64_frame_prev_register): Adjust for new
1914 frame base address convention.
1915 (sparc64_push_dummy_call): Likewise.
1916 * sparc64nbsd-tdep.c: Update copyright year.
1917 (sparc64nbsd_sigcontext_frame_cache): Adjust cached frame base
1918 address for 64-bit code.
1919 (sparc64nbsd_init_abi): Tweak comment.
1920 * sparc64obsd-tdep.c: Update copyright year.
1921 (sparc64obsd_frame_cache): Adjust cached frame base address for
1922 64-bit code.
1923 (sparc64obsd_init_abi): Tweak comment.
1924
1925 2005-03-09 Corinna Vinschen <vinschen@redhat.com>
1926
1927 * exceptions.h (TRY_CATCH): Define setjmp/sigsetjmp macro safe.
1928
1929 2005-03-09 Joel Brobecker <brobecker@adacore.com>
1930
1931 * dwarf2read.c (dwarf_decode_lines): Use the complete filename
1932 when creating include psymtabs.
1933
1934 2005-03-08 Mark Mitchell <mark@codesourcery.com>
1935
1936 * environ.h (struct environ): Rename to ...
1937 (struct gdb_environ): ... this.
1938 (make_environ): Update prototype.
1939 (free_environ): Likewise.
1940 (init_environ): Likewise.
1941 (get_in_environ): Likewise.
1942 (set_in_environ): Likewise.
1943 (unset_in_environ): Likewise.
1944 (environ_vector): Likewise.
1945 * environ.c (make_environ): Replace "struct environ" with "struct
1946 gdb_environ".
1947 (free_environ): Likewise.
1948 (init_environ): Likewise.
1949 (environ_vector): Likewise.
1950 (get_in_environ): Likewise.
1951 (set_in_environ): Likewise.
1952 (unset_in_environ): Likewise.
1953 * infcmd.c (inferior_environ): Likewise.
1954 * inferior.h (inferior_environ): Likewise.
1955
1956 2005-03-08 Joel Brobecker <brobecker@adacore.com>
1957
1958 * infcmd.c (run_command_1): New function, extracted from
1959 run_command.
1960 (run_command): Replace implementation by call to run_command_1.
1961 (start_command): Use run_command_1 to insert the temporary
1962 breakpoint and run the program. Remove code that's no longer
1963 needed, as already done at the proper time by run_command_1.
1964
1965 2005-03-08 Daniel Jacobowitz <dan@codesourcery.com>
1966
1967 * symfile.c (clear_symtab_users): Call
1968 clear_current_source_symtab_and_line first.
1969
1970 2005-03-08 Nathan Sidwell <nathan@codesourcery.com>
1971
1972 * ax-gdb.c (gen_expr): Add UNOP_PLUS case.
1973 * c-exp.y (exp): Add unary plus.
1974 * eval.c (evaluate_subexp_standard): Add UNOP_PLUS case.
1975 * valarith.c (value_x_unop): Add UNOP_PLUS case.
1976 (value_pos): New.
1977 * value.h (value_pos): Declare.
1978
1979 * remote.c (MIN_REMOTE_PACKET_SIZE): Set to 20.
1980 (remote_fetch_registers): Allow uppercase hex when resyncing.
1981 (remote_write_bytes): Only call get_memory_write_packet_size once.
1982 Robustify packet size calculation for very small packets. Check
1983 that at least one byte will be written.
1984
1985 * tracepoint.c (target_is_remote): Allow extended-remote.
1986 (struct collection_list): Allow 256 registers, like the comment
1987 said.
1988 (add_memrange): Fix comment.
1989 (read_actions): Turn EOF into 'end'.
1990
1991 2005-03-08 Corinna Vinschen <vinschen@redhat.com>
1992
1993 * Makefile.in: Add dependencies for iq2000-tdep.o.
1994 * configure.tgt: Add iq2000-*-* target.
1995 * iq2000-tdep.c: New file.
1996 * config/iq2000/iq2000.mt: New file.
1997
1998 2005-03-07 Joel Brobecker <brobecker@adacore.com>
1999
2000 * doc/observer.texi (executable_changed): New observer.
2001 * symtab.c: Include "observer.h".
2002 (find_main_name): New function.
2003 (main_name): If name_of_main is unset, then compute it
2004 using find_main_name.
2005 (symtab_observer_executable_changed): New function.
2006 (_initialize_symtab): Attach executable_changed observer.
2007 * exec.c: Include "observer.h".
2008 (exec_file_attach): Emit executable_changed notification.
2009 * symfile.c: Include "observer.h".
2010 (reread_symbols): Send an executable_changed if appropriate.
2011 * Makefile.in (exec.o): Add dependency on observer.h.
2012 (symfile.o): Likewise.
2013 (symtab.o): Likewise.
2014
2015 2005-03-07 Daniel Jacobowitz <dan@codesourcery.com>
2016
2017 * findvar.c (read_var_value): Don't allocate V when it will not
2018 be used. Add missing break for LOC_INDIRECT.
2019
2020 2005-03-06 Mark Kettenis <kettenis@gnu.org>
2021
2022 * sparc64fbsd-tdep.c: Include "solib-svr4.h".
2023 (sparc64fbsd_init_abi): Set skip_trampoline_code and
2024 solib_svr4_fetch_link_map_offsets.
2025 * Makefile.in (sparc64fbsd-tdep.o): Update dependencies.
2026
2027 2005-03-06 Daniel Jacobowitz <dan@codesourcery.com>
2028
2029 * linux-nat.c (child_follow_fork): Call target_terminal_ours before
2030 printing output. Use fprintf_unfiltered. Only print output when
2031 debugging.
2032
2033 2005-03-05 Mark Kettenis <kettenis@gnu.org>
2034
2035 * sparc64-tdep.c (sparc64_store_floating_fields): Constify third
2036 argument.
2037 (sparc64_store_arguments): Constify.
2038
2039 2005-03-05 Mark Kettenis <kettenis@gnu.org>
2040
2041 * alphabsd-nat.c: Update copyright year. Include "inf-ptrace.h".
2042 (alphabsd_fetch_inferior_registers): Rename from
2043 fetch_inferior_registers. Make static.
2044 (alphabsd_store_inferior_registers): Rename from
2045 store_inferior_registers. Make static.
2046 (_initialize_alphabsd_nat): New function.
2047 * Makefile.in (alphabsd-nat.o): Update dependencies.
2048 * config/alpha/fbsd.mh (NATDEPFILES): Remove infptrace.o and
2049 inftarg.o. Add inf-ptrace.o, fbsd-nat.o and gcore.o.
2050 * config/alpha/nbsd.mh (NAT_CLIBS): Remove variable.
2051 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
2052 alphabsd-nat.o.
2053 * config/alpha/nm-fbsd.h: Update copyright year. Don't include
2054 "config/nm-bsd.h" and "elf/common.h".
2055 * config/alpha/nm-nbsd.h: Update copyright year. Don't include
2056 "config/nm-nbsd.h".
2057
2058 * mips64obsd-tdep.c (mips64obsd_init_abi): Don't set
2059 software_single_step.
2060
2061 2005-03-04 Michael Snyder <msnyder@redhat.com>
2062
2063 * mn10300-prologue.c: New file. Prologue analysis.
2064 * mn10300-tdep.c: Move REGNUM values to mn10300-tdep.h.
2065 (mn10300_frame_unwind_cache): Don't call trad_frame_set_id
2066 until after analyze_prologue, and don't call trad_frame_set_base
2067 at all (let analyze_prologue do it).
2068
2069 2005-03-04 Michael Snyder <msnyder@redhat.com>
2070
2071 * trad-frame.c (trad_frame_set_reg_value): New function.
2072 * trad-frame.h (trad_frame_set_reg_value): Export.
2073
2074 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
2075
2076 * Makefile.in (remote.o): Update dependencies.
2077 * remote.c: Include "observer.h".
2078
2079 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
2080
2081 * target.c (target_read_memory_partial): Always initialize
2082 ERR.
2083 (target_write_memory_partial): Likewise.
2084
2085 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
2086
2087 * remote.c (remote_open_1): Call observer_notify_inferior_created.
2088
2089 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
2090
2091 * arm-tdep.c (arm_make_stub_cache, arm_stub_this_id)
2092 (arm_stub_unwind, arm_stub_unwind_sniffer): New.
2093 (arm_gdbarch_init): Add arm_stub_unwind_sniffer.
2094
2095 2005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
2096
2097 * linux-nat.c (linux_supports_tracevforkdone, child_follow_fork):
2098 Use LWP IDs.
2099
2100 2005-02-28 Daniel Jacobowitz <dan@codesourcery.com>
2101
2102 * dwarf2loc.c (loclist_read_variable): Set optimized_out
2103 instead of reporting an error.
2104 * valprint.c (value_check_printable): New function.
2105 (common_val_print): New function. Use value_check_printable.
2106 (value_print): Use value_check_printable.
2107 * value.h (common_val_print): Add prototype.
2108
2109 * c-valprint.c (c_val_print): Use common_val_print.
2110 * cp-valprint.c (cp_print_value_fields): Likewise.
2111 (cp_print_hpacc_virtual_table_entries): Likewise.
2112 * f-valprint.c (f_val_print): Likewise.
2113 * jv-valprint.c (java_value_print, java_print_value_fields):
2114 Likewise.
2115 * scm-valprint.c (scm_value_print): Likewise.
2116 * stack.c (print_frame_args): Likewise.
2117 * varobj.c (c_value_of_variable): Likewise.
2118 * p-valprint.c (pascal_val_print, pascal_value_print): Likewise.
2119 (pascal_object_print_value_fields): Likewise. Update call to
2120 pascal_object_print_static_field.
2121 (pascal_object_print_static_field): Remove TYPE argument. Use
2122 common_val_print.
2123
2124 2005-02-25 Mark Kettenis <kettenis@gnu.org>
2125
2126 Committed by Elena Zannoni <ezannoni@redhat.com>
2127
2128 * dwarf2read.c (dwarf2_build_psymtabs_hard): Adjust
2129 info_ptr before building psymtabs for included files.
2130 (create_all_comp_units): Initailize initial length size of
2131 compilation header to zero.
2132 (read_initial_length): Complain if both 32-bit and 64-bit DWARF
2133 sections are encountered within the same compilation header.
2134 (dwarf_decode_line_header): Pass compilation header in call to
2135 read_initial_length.
2136
2137 2005-02-24 Andrew Cagney <cagney@gnu.org>
2138
2139 Add show_VARIABLE functions, update add_setshow call.
2140 * varobj.c (_initialize_varobj, show_varobjdebug): Add and update.
2141 * valprint.c (_initialize_valprint, show_print_max)
2142 (show_stop_print_at_null, show_repeat_count_threshold)
2143 (show_prettyprint_structs, show_unionprint)
2144 (show_prettyprint_arrays, show_addressprint, show_input_radix)
2145 (show_output_radix): Ditto.
2146 * valops.c (_initialize_valops, show_overload_resolution): Ditto.
2147 * utils.c (initialize_utils, show_chars_per_line)
2148 (show_lines_per_page, show_demangle, show_pagination_enabled)
2149 (show_sevenbit_strings, show_asm_demangle): Ditto
2150 * tui/tui-win.c (_initialize_tui_win, show_tui_border_kind)
2151 (show_tui_border_mode, show_tui_active_border_mode): Ditto.
2152 * top.c (init_main, show_new_async_prompt)
2153 (show_async_command_editing_p, show_write_history_p)
2154 (show_history_size, show_history_filename, show_caution)
2155 (show_annotation_level, init_main): Ditto.
2156 * target.c (initialize_targets, show_targetdebug)
2157 (show_trust_readonly): Ditto.
2158 * symfile.c (_initialize_symfile, show_symbol_reloading)
2159 (show_ext_args, show_download_write_size)
2160 (show_debug_file_directory): Ditto.
2161 * source.c (_initialize_source, show_lines_to_list): Ditto.
2162 * solib.c (_initialize_solib, show_auto_solib_add)
2163 (show_solib_search_path): Ditto.
2164 * p-valprint.c (_initialize_pascal_valprint)
2165 (show_pascal_static_field_print): Ditto.
2166 * printcmd.c (_initialize_printcmd, show_max_symbolic_offset)
2167 (show_print_symbol_filename): Add and update.
2168 * parse.c (_initialize_parse, show_expressiondebug): Dito.
2169 * observer.c (_initialize_observer, show_observer_debug): Dito.
2170 * maint.c (_initialize_maint_cmds, show_watchdog)
2171 (show_maintenance_profile_p): Dito.
2172 * linux-nat.c (_initialize_linux_nat, show_debug_linux_nat): Dito.
2173 * infrun.c (_initialize_infrun, show_debug_infrun)
2174 (show_stop_on_solib_events, show_follow_fork_mode_string)
2175 (show_scheduler_mode, show_step_stop_if_no_debug): Ditto.
2176 * infcall.c (_initialize_infcall, show_coerce_float_to_double_p)
2177 (show_unwind_on_signal_p): Ditto.
2178 * gdbtypes.c (build_gdbtypes, show_opaque_type_resolution)
2179 (_initialize_gdbtypes, show_overload_debug): Ditto.
2180 * gdb-events.c, gdb-events.sh (_initialize_gdb_events)
2181 (show_gdb_events_debug): Ditto.
2182 * gdbarch.c, gdbarch.sh (show_gdbarch_debug)
2183 (_initialize_gdbarch): Ditto.
2184 * frame.c (_initialize_frame, show_backtrace_past_main)
2185 (show_backtrace_past_entry, show_backtrace_limit)
2186 (show_frame_debug): Ditto.
2187 * exec.c (_initialize_exec, show_write_files): Ditto.
2188 * dwarf2read.c (_initialize_dwarf2_read)
2189 (show_dwarf2_max_cache_age): Ditto.
2190 * demangle.c (_initialize_demangler)
2191 (show_demangling_style_names): Ditto.
2192 * dcache.c (_initialize_dcache, show_dcache_enabled_p): Ditto.
2193 * cp-valprint.c (show_static_field_print)
2194 (_initialize_cp_valprint, show_vtblprint, show_objectprint): Ditto.
2195 * corefile.c (_initialize_core, show_gnutarget_string): Ditto.
2196 * cli/cli-logging.c (_initialize_cli_logging)
2197 (show_logging_overwrite, show_logging_redirect)
2198 (show_logging_filename): Ditto.
2199 * cli/cli-cmds.c (show_info_verbose, show_history_expansion_p)
2200 (init_cli_cmds, show_baud_rate, show_remote_debug)
2201 (show_remote_timeout, show_max_user_call_depth): Ditto.
2202 * charset.c (show_host_charset_name, show_target_charset_name)
2203 (initialize_charset): Ditto.
2204 * breakpoint.c (show_can_use_hw_watchpoints)
2205 (show_pending_break_support, _initialize_breakpoint): Ditto.
2206
2207 2005-02-23 Jim Blandy <jimb@redhat.com>
2208
2209 * disasm.c (gdb_disassemble_info): Call disassemble_init_for_target.
2210
2211 2005-02-23 Andrew Cagney <cagney@gnu.org>
2212
2213 * cli/cli-dump.c (dump_bfd_file): Replace magic constant with
2214 SEC_XXX flags.
2215
2216 2005-02-22 Andrew Cagney <cagney@gnu.org>
2217
2218 * configure.ac: Only enaable insight when itcl is present.
2219 * configure: Re-generate.
2220
2221 2005-02-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2222
2223 Committed by Andrew Cagney.
2224 * infptrace.c (store_register): Fix typo.
2225
2226 2005-02-21 Andrew Cagney <cagney@gnu.org>
2227
2228 * command.h (deprecated_add_set_cmd): Rename add_set_cmd.
2229 * cli/cli-decode.h (add_set_cmd): Delete declaration.
2230 * cli/cli-decode.c (deprecated_add_set_cmd): Rename add_set_cmd.
2231 * i386-nat.c (_initialize_i386_nat): Update call.
2232 * valprint.c (_initialize_valprint): Update comment.
2233 * gnu-nat.c (_initialize_gnu_nat): Update call.
2234
2235 2005-02-21 Alan Modra <amodra@bigpond.net.au>
2236
2237 * elfread.c (elf_symtab_read): Discard section syms.
2238
2239 2005-02-21 Andrew Cagney <cagney@gnu.org>
2240
2241 * cli/cli-decode.c (add_set_enum_cmd): Delete function.
2242 (deprecated_add_show_from_set): Delete function.
2243 * command.h (add_set_enum_cmd): Delete declaration.
2244 (deprecated_add_show_from_set): Delete declaration.
2245 * cli/cli-decode.h (add_set_enum_cmd): Delete declaration.
2246 (deprecated_add_show_from_set): Delete declaration.
2247 * arm-tdep.c (_initialize_arm_tdep): Update comment.
2248 * kod.c (kod_set_os): Simplify.
2249 * infrun.c (set_schedlock_func): Simplify.
2250 * cli/cli-dump.c (add_dump_command): Update comment.
2251
2252 Replace string variables with a filename completer with
2253 add_setshow_optional_filename_cmd.
2254 * solib.c, symfile.c: Update.
2255 * cli/cli-setshow.c: Do not tidle expand the file.
2256
2257 Add more uses of add_setshow_string_cmd, add_setshow_integer_cmd,
2258 and add_setshow_string_noescape_cmd.
2259 * cli/cli-setshow.c (deprecated_show_value_hack): Do not print a
2260 NULL command's value.
2261 * kod.c, language.c, ocd.c, remote-e7000.c, remote-mips.c: Update.
2262 * remote-sds.c, remote.c, symfile.c, top.c: Update.
2263
2264 2005-02-20 Andrew Cagney <cagney@gnu.org>
2265
2266 Use add_setshow_enum_cmd through out.
2267 * arch-utils.c, charset.c, demangle.c, i386-tdep.c: Update.
2268 * infrun.c, mips-tdep.c, osabi.c, serial.c, tui/tui-win.c: Update.
2269
2270 * mi/mi-main.c (captured_mi_execute_command): Use
2271 mi_cmd_interpreter_exec.
2272
2273 * cli/cli-decode.c (add_setshow_optional_filename_cmd): New
2274 function.
2275 * cli/cli-setshow.c (deprecated_show_value_hack)
2276 (do_setshow_command): Handle var_optional_filename.
2277 * command.h (enum var_types): Add var_optional_filename.
2278 (add_setshow_optional_filename_cmd): Declare.
2279 * infcmd.c (notice_args_read): Use.
2280
2281 * symfile-mem.c (symbol_file_add_from_memory): Pass
2282 target_read_memory to bfd_elf_bfd_from_remote_memory.
2283 (do_target_read_memory): Delete.
2284
2285 2005-02-16 Mark Kettenis <kettenis@gnu.org>
2286
2287 * value.h (value_contents_equal): New prototype.
2288 * value.c (value_contents_equal): New function.
2289 * varobj.c: Include "exceptions.h" and "gdb_assert.h". Don't
2290 include <math.h>.
2291 (varobj_set_value): Initialize error to zero.
2292 (varobj_update): Rename error2 to error and initialize it to zero.
2293 Slightly change the wording of some comments.
2294 (my_value_equal): Reimplement using TRY_CATCH and
2295 value_contents_equal.
2296
2297 2005-02-18 Andrew Cagney <cagney@gnu.org>
2298
2299 * cli/cli-decode.c (add_setshow_integer_cmd): New function.
2300 * command.h (add_setshow_integer_cmd): Declare.
2301 * cli/cli-cmds.c: Update.
2302
2303 Use add_setshow_uinteger_cmd through out.
2304 * printcmd.c, source.c, utils.c, valprint.c: Update.
2305
2306 Use add_setshow_zinteger_cmd through out. Re-sync gdbarch.sh
2307 and gdbarch.c.
2308 * breakpoint.c, frame.c, gdb-events.sh, gdbarch.sh: Update.
2309 * gdbtypes.c, infrun.c, linux-nat.c, maint.c, monitor.c: Update.
2310 * pa64solib.c, parse.c, remote-mips.c, ser-go32.c: Update.
2311 * serial.c, solib-frv.c, somsolib.c, target.c, top.c: Update.
2312 * varobj.c, cli/cli-cmds.c: Update.
2313 * gdbarch.c, gdb-events.c: Regenerate.
2314
2315 Use add_setshow_boolean_command through out. Delete #ifdef 0'ed
2316 code adding set/show boolean commands.
2317 * cp-valprint.c, dcache.c, exec.c, gdbtypes.c, infrun.c: Update.
2318 * monitor.c, p-valprint.c, pa64solib.c, printcmd.c: Update.
2319 * proc-api.c, remote-mips.c, remote.c, solib.c: Update.
2320 * somsolib.c, symfile.c, top.c, utils.c, valops.c: Update.
2321 * valprint.c, win32-nat.c, wince.c, xcoffsolib.c: Update.
2322 * cli/cli-cmds.c: Update.
2323
2324 2005-02-17 Andrew Cagney <cagney@gnu.org>
2325
2326 * cli/cli-decode.c (add_setshow_filename_cmd): Set the completer
2327 to filename_completer.
2328 * solib.c (_initialize_solib, reload_shared_libraries): Use
2329 add_setshow_filename_cmd.
2330 * serial.c (_initialize_serial): Ditto.
2331 * remote-utils.c (_initialize_sr_support): Ditto.
2332
2333 * cli/cli-decode.c (add_setshow_string_noescape_cmd): New function.
2334 * command.h (add_setshow_string_noescape_cmd): Declare.
2335 * wince.c (_initialize_wince): Use.
2336 * symfile.c (_initialize_symfile): Use.
2337 (set_ext_lang_command): Update declaration.
2338 * corefile.c (_initialize_core): Use.
2339
2340 * cli/cli-decode.c (add_setshow_cmd_full, add_setshow_enum_cmd)
2341 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
2342 (add_setshow_filename_cmd, add_setshow_string_cmd)
2343 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Delete
2344 fprint_setshow parameter.
2345 * command.h (fprint_setshow_ftype): Delete.
2346 (add_setshow_cmd_full, add_setshow_enum_cmd)
2347 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
2348 (add_setshow_filename_cmd, add_setshow_string_cmd)
2349 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Delete
2350 fprint_setshow parameter.
2351 * aix-thread.c, alpha-tdep.c, arm-tdep.c, breakpoint.c: Update.
2352 * complaints.c, cris-tdep.c, dwarf2read.c, frame.c: Update.
2353 * hppa-tdep.c, infcall.c, m32r-rom.c, maint.c: Update.
2354 * mips-tdep.c, nto-tdep.c, observer.c, remote-rdi.c: Update
2355 * remote.c, target.c, cli/cli-logging.c: Update.
2356
2357 2005-02-16 Andrew Cagney <cagney@gnu.org>
2358
2359 Merge setshow print and show parameters.
2360 * command.h (show_value_ftype): Define.
2361 (deprecated_show_value_hack): Declare.
2362 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2363 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2364 (add_setshow_string_cmd, add_setshow_uinteger_cmd)
2365 (add_setshow_zinteger_cmd): Change type of show_func to
2366 show_value_ftype.
2367 * cli/cli-decode.h (struct cmd_list_element): Replace
2368 fprint_setshow with show_value_func.
2369 * cli/cli-decode.c (add_setshow_cmd_full): Update show_func
2370 parameter. Set show_value_func. Do not set cmd_sfunc.
2371 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2372 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2373 (add_setshow_string_cmd, add_setshow_uinteger_cmd)
2374 (add_setshow_zinteger_cmd): Update.
2375 * complaints.c (complaints_show_value): Replace
2376 fprint_setshow_complaints.
2377 (_initialize_complaints): Update.
2378 * mips-tdep.c (show_mask_address): Update.
2379 * arm-tdep.c (show_fp_model): Update.
2380 * cli/cli-setshow.c (do_setshow_command): Call show_value_func
2381 instead of fprint_setshow. Use deprecated_show_value_hack.
2382 (deprecated_show_value_hack): New function.
2383 * remote.c (add_packet_config_cmd, show_remote_cmd):
2384 (show_remote_protocol_P_packet_cmd)
2385 (show_remote_protocol_P_packet_cmd)
2386 (show_remote_protocol_Z_access_wp_packet_cmd)
2387 (show_remote_protocol_Z_hardware_bp_packet_cmd)
2388 (show_remote_protocol_Z_packet_cmd)
2389 (show_remote_protocol_Z_read_wp_packet_cmd)
2390 (show_remote_protocol_Z_software_bp_packet_cmd)
2391 (show_remote_protocol_Z_write_wp_packet_cmd)
2392 (show_remote_protocol_binary_download_cmd)
2393 (show_remote_protocol_p_packet_cmd)
2394 (show_remote_protocol_qPart_auxv_packet_cmd)
2395 (show_remote_protocol_qSymbol_packet_cmd)
2396 (show_remote_protocol_vcont_packet_cmd): Update.
2397
2398 2005-02-16 Mark Kettenis <kettenis@gnu.org>
2399
2400 * wrapper.h: Update copyright year. Properly wrap a few
2401 prototypes.
2402 (struct gdb_wrapper_arguments): Remove forward declaration.
2403 * wrapper.c: Update copyright year. Include "ui-out.h".
2404 (struct gdb_wrapper_arguments): Remove.
2405 (struct captured_value_struct_elt_args): Remove.
2406 (wrapper_parse_exp_1, wrap_evaluate_expression)
2407 (wrap_value_fetch_lazy, wrap_value_equal, wrap_value_assign)
2408 (wrap_value_subscript, wrap_value_ind, wrap_parse_and_eval_type)
2409 (do_captured_value_struct_elf): Remove functions.
2410 (gdb_parse_exp_1, gdb_evaluate_expression, gdb_value_fetch_lazy)
2411 (gdb_value_equal, gdb_value_assign, gdb_value_subscript)
2412 (gdb_value_ind, gdb_parse_and_eval_type, gdb_value_struct_elt):
2413 Re-implement using TRY_CATCH.
2414
2415 2005-02-16 Yoshinori Sato <ysato@users.sourceforge.jp>
2416
2417 * remote-e7000.c: unuse TM_FILE defined macro.
2418 (e7000_fetch_registers)
2419 (e7000_store_registers)
2420 (e7000_wait): delete NUM_REALREGS.
2421 * remote-hms.c: move TM_FILE macro.
2422 (CCR_REGNO): move define from tm-h8300.h.
2423
2424 2005-02-15 Mark Kettenis <kettenis@gnu.org>
2425
2426 * amd64-linux-tdep.c: Update copyright year.
2427 (amd64_linux_sigtramp_start): Use sizeof operator instead of
2428 LINUX_SIGTRAMP_LEN.
2429
2430 2004-02-15 Joel Brobecker <brobecker@gnat.com>
2431
2432 From Paul Hilfinger <hilfinger@gnat.com>
2433 * dwarf2read.c (new_symbol): Use SYMBOL_SEARCH_NAME rather than
2434 SYMBOL_NATURAL_NAME to set type names.
2435
2436 2005-02-15 Andrew Cagney <cagney@gnu.org>
2437
2438 Mark up add_com, add_info and add_prefix_cmd.
2439 * breakpoint.c, cp-support.c, dcache.c, dwarf2read.c: Update.
2440 * exec.c, f-valprint.c, frame.c, gcore.c, gnu-nat.c: Update.
2441 * go32-nat.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update.
2442 * kod.c, language.c, linux-nat.c, m32r-rom.c, macrocmd.c: Update.
2443 * maint.c, memattr.c, mips-tdep.c, nto-procfs.c, objc-lang.c: Update.
2444 * ocd.c, pa64solib.c, printcmd.c, procfs.c, regcache.c: Update.
2445 * remote-e7000.c, remote-m32r-sdi.c, remote-mips.c: Update.
2446 * remote-sds.c, remote-sim.c, remote-st.c, remote-utils.c: Update.
2447 * remote.c, rs6000-tdep.c, ser-go32.c, serial.c: Update.
2448 * sh-tdep.c, solib.c, somsolib.c, source.c, stack.c: Update.
2449 * symfile.c, symtab.c, target.c, thread.c, top.c: Update.
2450 * tracepoint.c, typeprint.c, utils.c, valprint.c: Update.
2451 * win32-nat.c, xcoffsolib.c, cli/cli-cmds.c, cli/cli-dump.c: Update.
2452 * cli/cli-logging.c, tui/tui-layout.c, tui/tui-regs.c: Update.
2453 * tui/tui-stack.c, tui/tui-win.c: Update.
2454
2455 2005-02-14 Andrew Cagney <cagney@gnu.org>
2456
2457 * config/h8300/h8300.mt (DEPRECATED_TM_FILE): Delete.
2458 * config/h8300/tm-h8300.h: Delete file.
2459
2460 Mark up add_cmd.
2461 * arch-utils.c, avr-tdep.c, breakpoint.c, corefile.c: Update.
2462 * cp-abi.c, cp-namespace.c, cp-support.c, dummy-frame.c: Update.
2463 * exec.c, gnu-nat.c, go32-nat.c, hppa-tdep.c, infcmd.c: Update.
2464 * infrun.c, interps.c, macrocmd.c, maint.c, memattr.c: Update.
2465 * mips-tdep.c, ocd.c, osabi.c, printcmd.c, regcache.c: Update.
2466 * reggroups.c, remote-fileio.c, remote-rdi.c, remote.c: Update.
2467 * sol-thread.c, source.c, stack.c, symfile-mem.c: Update.
2468 * symfile.c, thread.c, tracepoint.c, valprint.c, value.c: Update.
2469 * win32-nat.c, cli/cli-cmds.c, cli/cli-dump.c: Update.
2470 * cli/cli-logging.c, tui/tui-regs.c: Update.
2471
2472 Mark up add_setshow functions, replace "PRINT:" comment prefix
2473 with "FIXME: i18n:".
2474 * aix-thread.c, alpha-tdep.c, arm-tdep.c, breakpoint.c: Update.
2475 * cris-tdep.c, dwarf2read.c, frame.c, hppa-tdep.c: Update.
2476 * infcall.c, m32r-rom.c, maint.c, mips-tdep.c: Update.
2477 * nto-tdep.c, observer.c, remote-rdi.c, remote.c: Update.
2478 * target.c, cli/cli-logging.c: Update.
2479
2480 * utils.c (paddress): New function.
2481 * defs.h (paddress): Declare.
2482 * printcmd.c (deprecated_print_address_numeric): Rename
2483 print_address_numeric, call paddress.
2484 * valprint.c, ui-out.c, tui/tui-stack.c, tracepoint.c: Update.
2485 * symmisc.c, symfile.c stack.c, p-valprint.c, printcmd.c: Update.
2486 * maint.c, m32r-rom.c, infcmd.c, f-valprint.c, exec.c: Update.
2487 * dwarf2read.c, dve3900-rom.c, defs.h, c-valprint.c: Update.
2488 * corefile.c, cli/cli-cmds.c, breakpoint.c, annotate.c: Update.
2489 * ada-valprint.c: Update.
2490
2491 2005-02-13 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2492
2493 * MAINTAINERS: Add myself to "Write After Approval".
2494
2495 2005-02-12 Yoshinori Sato <ysato@users.sourceforge.jp>
2496
2497 Restore h8300 support.
2498 * configure.tgt: Add h8300-*-*
2499 * h8300-tdep.c: New file. Rewrite new frame code.
2500 * config/h8300/h8300.mt: New file. Restored Rev 1.3
2501 * config/h8300/tm-h8300.h: New file. Restored Rev 1.21
2502
2503 * MAINTAINERS: Add myself to "Write After Approval".
2504
2505 2005-02-11 Andrew Cagney <cagney@gnu.org>
2506
2507 Mark up some of printf_filtered and printf_unfiltered.
2508 * ada-lang.c, annotate.c, arch-utils.c, breakpoint.c: Update.
2509 * corelow.c, cp-namespace.c, cp-support.c, dcache.c: Update.
2510 * demangle.c, dsrec.c, dwarf2read.c, dwarfread.c: Update.
2511 * event-loop.c, event-top.c, exec.c, f-valprint.c: Update.
2512 * gdbtypes.c, inf-loop.c, inf-ptrace.c, inf-ttrace.c: Update.
2513 * infcmd.c, inflow.c, infrun.c, inftarg.c, language.c: Update.
2514 * linespec.c, linux-nat.c, linux-thread-db.c, maint.c: Update.
2515 * mdebugread.c, memattr.c, monitor.c, objc-lang.c: Update.
2516 * ocd.c, osabi.c, printcmd.c, procfs.c, regcache.c: Update.
2517 * remote.c, solib-som.c, solib.c, somsolib.c, source.c: Update.
2518 * stack.c, symfile.c, symmisc.c, target.c, thread.c: Update.
2519 * top.c, utils.c, valprint.c, value.c, cli/cli-cmds.c: Update.
2520 * cli/cli-dump.c, cli/cli-logging.c, tui/tui-hooks.c: Update.
2521 * tui/tui-regs.c, tui/tui-win.c: Update.
2522
2523 Mark up error_no_arg, query, perror_with_name, complaint, and
2524 internal_error.
2525 * breakpoint.c, cp-abi.c, cp-namespace.c, cp-support.c: Update.
2526 * cris-tdep.c, dbxread.c, dictionary.c, dsrec.c: Update.
2527 * dummy-frame.c, dve3900-rom.c, dwarf2-frame.c, dwarf2expr.c: Update.
2528 * dwarf2read.c, dwarfread.c, elfread.c, event-loop.c: Update.
2529 * exceptions.c, exec.c, f-lang.c, findvar.c, fork-child.c: Update.
2530 * frame-unwind.c, frame.c, frv-linux-tdep.c, frv-tdep.c: Update.
2531 * gdb_assert.h, gdbarch.c, gdbtypes.c, gnu-nat.c: Update.
2532 * go32-nat.c, hppa-tdep.c, hppabsd-nat.c, hpread.c: Update.
2533 * i386-linux-nat.c, i386-nat.c, i386-tdep.c, i386bsd-nat.c: Update.
2534 * i386fbsd-nat.c, inf-ptrace.c, inf-ttrace.c, infcall.c: Update.
2535 * infcmd.c, inflow.c, infptrace.c, infrun.c, inftarg.c: Update.
2536 * interps.c, language.c, linespec.c, linux-nat.c: Update.
2537 * m32r-linux-nat.c, m68k-tdep.c, m68kbsd-nat.c: Update.
2538 * m68klinux-nat.c, m88kbsd-nat.c, macroexp.c, macroscope.c: Update.
2539 * macrotab.c, maint.c, mdebugread.c, memattr.c: Update.
2540 * mips-linux-tdep.c, mips-tdep.c, mips64obsd-nat.c: Update.
2541 * mipsnbsd-nat.c, mn10300-tdep.c, monitor.c, nto-procfs.c: Update.
2542 * objc-lang.c, objfiles.c, objfiles.h, ocd.c, osabi.c: Update.
2543 * parse.c, ppc-bdm.c, ppc-linux-nat.c, ppc-sysv-tdep.c: Update.
2544 * ppcnbsd-nat.c, ppcobsd-nat.c, printcmd.c, procfs.c: Update.
2545 * regcache.c, reggroups.c, remote-e7000.c, remote-mips.c: Update.
2546 * remote-rdp.c, remote-sds.c, remote-sim.c, remote-st.c: Update.
2547 * remote-utils.c, remote.c, rs6000-nat.c, rs6000-tdep.c: Update.
2548 * s390-nat.c, s390-tdep.c, sentinel-frame.c, serial.c: Update.
2549 * sh-tdep.c, sh3-rom.c, sh64-tdep.c, shnbsd-nat.c: Update.
2550 * solib-aix5.c, solib-svr4.c, solib.c, source.c: Update.
2551 * sparc-nat.c, stabsread.c, stack.c, symfile.c, symtab.c: Update.
2552 * symtab.h, target.c, tracepoint.c, ui-file.c, ui-out.c: Update.
2553 * utils.c, valops.c, valprint.c, vax-nat.c, vaxbsd-nat.c: Update.
2554 * win32-nat.c, xcoffread.c, xstormy16-tdep.c: Update.
2555 * cli/cli-cmds.c, cli/cli-logging.c, cli/cli-script.c: Update.
2556 * cli/cli-setshow.c, mi/mi-cmd-break.c, mi/mi-cmds.c: Update.
2557 * mi/mi-console.c, mi/mi-getopt.c, mi/mi-out.c: Update.
2558 * tui/tui-file.c, tui/tui-interp.c: Update.
2559
2560 2005-02-10 Andrew Cagney <cagney@gnu.org>
2561
2562 Mark up all error and warning messages.
2563 * ada-lang.c, amd64-tdep.c, arch-utils.c, breakpoint.c: Update.
2564 * bsd-kvm.c, bsd-uthread.c, coff-solib.h, coffread.c: Update.
2565 * core-aout.c, core-regset.c, corefile.c, corelow.c: Update.
2566 * cp-abi.c, cp-support.c, cp-valprint.c, cris-tdep.c: Update.
2567 * dbxread.c, demangle.c, doublest.c, dsrec.c: Update.
2568 * dve3900-rom.c, dwarf2expr.c, dwarf2loc.c: Update.
2569 * dwarf2read.c, dwarfread.c, elfread.c, eval.c: Update.
2570 * event-top.c, exec.c, expprint.c, f-lang.c: Update.
2571 * f-typeprint.c, f-valprint.c, fbsd-nat.c, findvar.c: Update.
2572 * frame.c, frv-linux-tdep.c, gcore.c, gdbtypes.c: Update.
2573 * gnu-nat.c, gnu-v2-abi.c, gnu-v3-abi.c, go32-nat.c: Update.
2574 * hpacc-abi.c, hppa-hpux-nat.c, hppa-hpux-tdep.c: Update.
2575 * hppa-linux-nat.c, hppa-linux-tdep.c, hppa-tdep.c: Update.
2576 * hpread.c, hpux-thread.c, i386-linux-nat.c: Update.
2577 * i386-linux-tdep.c, i386-tdep.c, i386bsd-nat.c: Update.
2578 * i386gnu-nat.c, i387-tdep.c, ia64-linux-nat.c: Update.
2579 * ia64-tdep.c, inf-child.c, inf-ptrace.c, inf-ttrace.c: Update.
2580 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update.
2581 * inftarg.c, interps.c, irix5-nat.c, jv-lang.c: Update.
2582 * kod-cisco.c, kod.c, language.c, libunwind-frame.c: Update.
2583 * linespec.c, linux-nat.c, linux-thread-db.c, m2-lang.c: Update.
2584 * m32r-rom.c, m68hc11-tdep.c, m68k-tdep.c: Update.
2585 * m68klinux-nat.c, macrocmd.c, macroexp.c, main.c: Update.
2586 * maint.c, mdebugread.c, mem-break.c, memattr.c: Update.
2587 * mips-linux-tdep.c, mips-tdep.c, mipsread.c, monitor.c: Update.
2588 * nlmread.c, nto-procfs.c, objc-lang.c, objfiles.c: Update.
2589 * observer.c, ocd.c, p-lang.c, p-typeprint.c: Update.
2590 * p-valprint.c, pa64solib.c, parse.c, ppc-linux-tdep.c: Update.
2591 * ppcnbsd-tdep.c, printcmd.c, procfs.c, remote-e7000.c: Update.
2592 * remote-fileio.c, remote-m32r-sdi.c, remote-rdi.c: Update.
2593 * remote-rdp.c, remote-sim.c, remote-st.c: Update.
2594 * remote-utils.c, remote-utils.h, remote.c: Update.
2595 * rom68k-rom.c, rs6000-nat.c, s390-tdep.c, scm-lang.c: Update.
2596 * ser-e7kpc.c, ser-tcp.c, ser-unix.c, sh-tdep.c: Update.
2597 * sh3-rom.c, shnbsd-tdep.c, sol-thread.c, solib-aix5.c: Update.
2598 * solib-frv.c, solib-irix.c, solib-osf.c, solib-pa64.c: Update.
2599 * solib-som.c, solib-sunos.c, solib-svr4.c, solib.c: Update.
2600 * somread.c, somsolib.c, source.c, stabsread.c: Update.
2601 * stack.c, std-regs.c, symfile-mem.c, symfile.c: Update.
2602 * symmisc.c, symtab.c, target.c, thread.c, top.c: Update.
2603 * tracepoint.c, trad-frame.c, typeprint.c, utils.c: Update.
2604 * uw-thread.c, valarith.c, valops.c, valprint.c: Update.
2605 * value.c, varobj.c, version.in, win32-nat.c, wince.c: Update.
2606 * xcoffread.c, xcoffsolib.c, cli/cli-cmds.c: Update.
2607 * cli/cli-decode.c, cli/cli-dump.c, cli/cli-logging.c: Update.
2608 * cli/cli-script.c, cli/cli-setshow.c, mi/mi-cmd-break.c: Update.
2609 * mi/mi-cmd-disas.c, mi/mi-cmd-env.c, mi/mi-cmd-file.c: Update.
2610 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-getopt.c: Update.
2611 * mi/mi-symbol-cmds.c, tui/tui-layout.c, tui/tui-stack.c: Update.
2612 * tui/tui-win.c: Update.
2613
2614 2005-02-10 Ian Lance Taylor <ian@airs.com>
2615
2616 * MAINTAINERS: Update my e-mail address.
2617
2618 2005-02-10 Daniel Jacobowitz <dan@debian.org>
2619
2620 From Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>:
2621 PR exp/1821
2622 * cp-valprint.c: Include "language.h".
2623 (cp_print_value_fields): Pass the current language to
2624 fprintf_symbol_filtered.
2625 * Makefile.in (cp-valprint.o): Update dependencies.
2626
2627 2005-02-10 Andrew Cagney <cagney@gnu.org>
2628
2629 * cli/cli-decode.c (add_setshow_enum_cmd, add_setshow_cmd_full)
2630 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
2631 (add_setshow_filename_cmd, add_setshow_string_cmd)
2632 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Replace
2633 print string parameter with fprint_setshow function.
2634 * command.h (fprint_setshow_ftype): Define. Update declarations.
2635 * cli/cli-setshow.c (do_setshow_command): When fprint_setshow is
2636 available, use that.
2637 * cli/cli-decode.h (struct cmd_list_element): Add field
2638 fprint_setshow.
2639 * complaints.c (fprint_setshow_complaints): New function.
2640 (_initialize_complaints): Pass to add_setshow_zinteger_cmd.
2641 * hppa-tdep.c (_initialize_hppa_tdep): Replace "print" parameter
2642 with NULL.
2643 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2644 * m32r-rom.c (_initialize_m32r_rom): Ditto.
2645 * cris-tdep.c (_initialize_cris_tdep): Ditto.
2646 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2647 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2648 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
2649 * dwarf2read.c (_initialize_dwarf2_read): Ditto.
2650 * frame.c (_initialize_frame): Ditto.
2651 * target.c (initialize_targets): Ditto.
2652 * maint.c (_initialize_maint_cmds): Ditto.
2653 * observer.c (_initialize_observer): Ditto.
2654 * infcall.c (_initialize_infcall): Ditto.
2655 * breakpoint.c (_initialize_breakpoint): Ditto.
2656 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
2657 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
2658
2659 * cli/cli-setshow.c (do_setshow_command): Move code printing the
2660 value to the end of the function. Handle MI and non-MI output
2661 differently.
2662
2663 2005-02-09 Andrew Cagney <cagney@gnu.org>
2664
2665 * cli/cli-decode.c (add_setshow_enum_cmd): Drop set_result and
2666 show_result parameters.
2667 * mips-tdep.c (_initialize_mips_tdep): Update calls.
2668 * command.h: Update declaration.
2669 * arm-tdep.c (_initialize_arm_tdep, _initialize_arm_tdep): Update
2670 calls.
2671
2672 * NEWS: Mention removed commands.
2673 * m68hc11-tdep.c (show_regs): Delete, unused.
2674 (_initialize_m68hc11_tdep): Delete deprecated "regs" command.
2675 * gdb-events.sh: Delete deprecated "set eventdebug" and "show
2676 eventdebug" commands.
2677 * gdb-events.c: Regenerate.
2678 * gdbarch.sh: Delete deprecated "set archdebug" and "show
2679 archdebug" commands.
2680 * gdbarch.c: Regenerate.
2681 * cli/cli-cmds.c (init_cli_cmds): Delete deprecated "set
2682 remotedebug" and "show remotedebug".
2683 * arm-tdep.c (_initialize_arm_tdep): Delete deprecated "set arm
2684 disassembly-flavor", "show arm disassembly-flavor", and
2685 "othernames" commands.
2686 (arm_othernames): Delete unused function.
2687
2688 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call)
2689 (convert_code_addr_to_desc_addr): Convert any function code
2690 address to the corresponding function's descriptor.
2691 (ppc64_sysv_abi_return_value): have TYPE_CODE_ENUM and
2692 TYPE_CODE_INT use the same code paths as TYPE_CODE_INT. When
2693 writing, convert any function code address to the corresponding
2694 descriptor.
2695
2696 * config/sh/linux.mt (TDEPFILES): Add symfile-mem.o.
2697 * config/powerpc/linux.mt (TDEPFILES): Ditto.
2698 * config/pa/linux.mt (TDEPFILES): Ditto.
2699 * config/mips/linux.mt (TDEPFILES): Ditto.
2700 * config/m68k/linux.mt (TDEPFILES): Ditto.
2701 * config/m32r/linux.mt (TDEPFILES): Ditto.
2702 * config/ia64/linux.mt (TDEPFILES): Ditto.
2703 * config/arm/linux.mt (TDEPFILES): Ditto.
2704
2705 2005-02-09 Corinna Vinschen <vinschen@redhat.com>
2706
2707 * symmisc.c: Include gdb_stat.h.
2708 (maintenance_print_msymbols): Use inode numbers to compare files.
2709
2710 2005-02-08 Andrew Cagney <cagney@gnu.org>
2711
2712 * value.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
2713 (METHOD_PTR_TO_VOFFSET): Move from here ...
2714 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
2715 (METHOD_PTR_TO_VOFFSET): ... to here.
2716 * cp-valprint.c, p-valprint.c, eval.c: Include "cp-support.h".
2717 * Makefile.in: Update dependencies.
2718
2719 * exceptions.c: Do not include <setjmp.h>.
2720 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP): Delete macros.
2721 (catch_exception, catch_exceptions_with_msg, catch_errors)
2722 (catch_command_errors): Use TRY_CATCH.
2723 (struct catcher): Use EXCEPTIONS_SIGJMP_BUF.
2724 (exceptions_state_mc_init): Rename catcher_init.
2725 (exceptions_state_mc): Rename catcher_state_machine.
2726 (exceptions_state_mc_action_iter)
2727 (exceptions_state_mc_action_iter_1): New functions.
2728 * exceptions.h: Include <setjmp.h>.
2729 (EXCEPTIONS_SIGJMP_BUF, EXCEPTIONS_SIGSETJMP)
2730 (EXCEPTIONS_SIGLONGJMP): Define.
2731 (exceptions_state_mc_init, exceptions_state_mc_action_iter)
2732 (exceptions_state_mc_action_iter_1): Declare.
2733 (TRY_CATCH): Define.
2734
2735 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not set malloc name,
2736 no longer needed.
2737
2738 * ppc-linux-nat.c (ppc_register_u_addr): Hack around 64-bit
2739 PT_FPSCR breakage.
2740
2741 * value.c (struct value): Move to here ...
2742 * value.h (struct value): ... from here. Copy comments to
2743 corresponding function declarations, re-order.
2744
2745 2005-02-07 Andrew Cagney <cagney@gnu.org>
2746
2747 * value.c (set_value_bitpos, set_value_bitsize): Define.
2748 * value.h (set_value_bitpos, set_value_bitsize): Declare.
2749 * ada-lang.c, valarith.c: Update.
2750
2751 * cp-valprint.c, c-valprint.c, infcall.c: Use value_contents or
2752 value_contents_writeable, include note that there are problems.
2753 * breakpoint.c, infcall.c: Use VALUE_LVAL.
2754
2755 * value.h (set_value_offset): Declare.
2756 * value.c (set_value_offset): Declare.
2757 * gnu-v2-abi.c, jv-valprint.c, valarith.c, valops.c: Update.
2758 * findvar.c: Update.
2759
2760 * value.h (value_next): Declare.
2761 * value.c (value_next): Define.
2762 * breakpoint.c: Update.
2763
2764 * value.h (deprecated_set_value_modifiable)
2765 (deprecated_value_modifiable): Declare.
2766 * value.c (deprecated_set_value_modifiable): Define.
2767 (deprecated_value_modifiable): Define.
2768 * ada-lang.c, valops.c, breakpoint.c, tracepoint.c: Update.
2769
2770 * value.h (deprecated_set_value_type): Declare.
2771 * value.c (deprecated_set_value_type): Define.
2772 * hpacc-abi.c, gnu-v2-abi.c, cp-valprint.c: Update.
2773 * c-valprint.c, jv-lang.c, objc-lang.c, ada-lang.c: Update.
2774 * infcall.c, printcmd.c, valops.c, eval.c, p-exp.y: Update.
2775 * ax-gdb.c, tracepoint.c: Update.
2776
2777 * value.h (deprecated_value_lval_hack)
2778 (deprecated_value_address_hack)
2779 (deprecated_value_internalvar_hack)
2780 (deprecated_value_regnum_hack): Declare.
2781 (VALUE_LVAL, VALUE_ADDRESS, VALUE_INTERNALVAR)
2782 (VALUE_FRAME_ID, VALUE_REGNUM): Use.
2783 * value.c (deprecated_value_lval_hack)
2784 (deprecated_value_address_hack)
2785 (deprecated_value_internalvar_hack)
2786 (deprecated_value_regnum_hack): Define.
2787
2788 * value.h (VALUE_POINTED_TO_OFFSET): Delete.
2789 (set_value_pointed_to_offset, value_pointed_to_offset): Declare.
2790 * value.c (set_value_pointed_to_offset): Define
2791 (value_pointed_to_offset): Define.
2792 * valops.c: Update.
2793
2794 * value.h (VALUE_EMBEDDED_OFFSET): Delete.
2795 (value_embedded_offset, set_value_embedded_offset): Declare.
2796 * value.c (value_embedded_offset): Define.
2797 (set_value_embedded_offset): Define.
2798 * valops.c, p-valprint.c, mi/mi-main.c, hpacc-abi.c: Update.
2799 * gnu-v3-abi.c, eval.c, c-valprint.c, cp-valprint.c: Update.
2800 * cp-abi.h: Update.
2801
2802 * value.h (VALUE_LAZY): Delete
2803 (set_value_lazy): Declare.
2804 * value.c (set_value_lazy): Define.
2805 * valops.c, valarith.c, jv-valprint.c, jv-lang.c: Update.
2806 * gnu-v2-abi.c, findvar.c, dwarf2loc.c, ada-lang.c: Update.
2807
2808 2005-02-06 Andrew Cagney <cagney@gnu.org>
2809
2810 * value.h (VALUE_OPTIMIZED_OUT): Delete.
2811 (value_optimized_out, set_value_optimized_out): Declare.
2812 * value.c (set_value_optimized_out, value_optimized_out): Define.
2813 * valprint.c, findvar.c, dwarf2loc.c: Update.
2814
2815 * value.c (value_contents, value_contents_writeable): New
2816 functions.
2817 * value.h (VALUE_CONTENTS): Delete macro.
2818 (value_contents, value_contents_writeable): Declare.
2819 * xstormy16-tdep.c, value.c, valops.c, valarith.c: Update.
2820 * stack.c, sparc-tdep.c, sparc64-tdep.c, sh-tdep.c: Update.
2821 * sh64-tdep.c, scm-valprint.c, scm-exp.c, s390-tdep.c: Update.
2822 * rs6000-tdep.c, p-valprint.c, printcmd.c: Update.
2823 * ppc-sysv-tdep.c, mips-tdep.c, mi/mi-main.c: Update.
2824 * m88k-tdep.c, m68hc11-tdep.c, m32r-tdep.c: Update.
2825 * jv-valprint.c, ia64-tdep.c, hppa-tdep.c: Update.
2826 * hpacc-abi.c, f-valprint.c, frv-tdep.c, eval.c: Update.
2827 * c-valprint.c, cris-tdep.c, cp-valprint.c: Update.
2828 * cli/cli-dump.c, breakpoint.c, avr-tdep.c, arm-tdep.c: Update.
2829 * arm-linux-tdep.c, amd64-tdep.c, alpha-tdep.c: Update.
2830 * ada-valprint.c, ada-lang.c: Update.
2831
2832 2005-02-03 Andrew Cagney <cagney@gnu.org>
2833
2834 * utils.c (xzalloc): New function.
2835 * defs.h (XZALLOC): Use xzalloc.
2836 (xzalloc): Declare.
2837 * value.c (allocate_value): Allocate a zeroed buffer.
2838 * mdebugread.c (xzalloc): Delete.
2839
2840 2005-02-02 Andrew Cagney <cagney@gnu.org>
2841
2842 * value.h (value_lazy): Declare.
2843 * varobj.c, value.c, valops.c, valarith.c, printcmd.c: Update.
2844 * cp-valprint.c, breakpoint.c, ada-lang.c: Update.
2845
2846 * value.h (VALUE_CONTENTS_ALL): Delete.
2847 (value_contents_all): Declare.
2848 * value.c (value_contents_all): New function.
2849 * hpacc-abi.c, cp-valprint.c, valops.c, c-valprint.c: Update.
2850 * m68k-tdep.c, i386-tdep.c, infcall.c, valops.c: Update.
2851
2852 * value.c (value_enclosing_type): New function.
2853 * value.h (VALUE_ENCLOSING_TYPE): Delete.
2854 (value_enclosing_type): Declare.
2855 * xstormy16-tdep.c, vax-tdep.c, m68k-tdep.c, i386-tdep.c: Update.
2856 * gnu-v3-abi.c, hpacc-abi.c, infcall.c, valops.c: Update.
2857
2858 * value.c (value_contents_all_raw)
2859 (value_contents_raw): New functions.
2860 * value.h (VALUE_CONTENTS_ALL_RAW, VALUE_CONTENTS_RAW): Delete.
2861 (value_contents_raw, value_contents_all_raw): Declare functions.
2862 (VALUE_CONTENTS, VALUE_CONTENTS_ALL): Update.
2863 * std-regs.c, valarith.c, valops.c, eval.c: Update.
2864 * tracepoint.c, findvar.c: Update.
2865
2866 2005-02-01 Orjan Friberg <orjanf@axis.com>
2867
2868 * regformats/reg-cris.dat: New file with register definitions for CRIS.
2869 * regformats/reg-crisv32.dat: Ditto for CRISv32.
2870
2871 2005-01-31 Andrew Cagney <cagney@gnu.org>
2872
2873 * configure: Regenerate to track ../gettext.m4.
2874
2875 2005-01-29 Baurzhan Ismagulov <ibr@radix50.net>
2876
2877 * MAINTAINERS: Add myself to "Write After Approval".
2878
2879 * ax-gdb.c, ax-general.c, bcache.c, bfd-target.c, bsd-kvm.c,
2880 * buildsym.c, c-lang.c, c-typeprint.c, c-valprint.c, charset.c,
2881 * coff-pe-read.c, coffread.c, complaints.c, copying.c: I18n markup.
2882
2883 2005-01-29 Mark Kettenis <kettenis@gnu.org>
2884
2885 * configure.ac: Remove extra check for ranlib.
2886 * configure: Regenerated.
2887
2888 2005-01-28 Andrew Cagney <cagney@gnu.org>
2889
2890 * language.h (struct language_defn): Make la_val_print's buffer
2891 parameter a const bfd_byte.
2892 * cp-valprint.c (cp_print_value_fields, cp_print_value): Update.
2893 * ada-lang.c (ada_aligned_value_addr)
2894 (ada_value_primitive_packed_val, ada_which_variant_applies): Update.
2895 * valprint.c (val_print_array_elements): Update.
2896 * valprint.h (val_print_array_elements): Update.
2897 * ada-lang.h (ada_val_print, ada_aligned_value_addr)
2898 (ada_value_primitive_packed_val, ada_which_variant_applies): Update.
2899 * ada-valprint.c (ada_val_print, struct ada_val_print_args)
2900 (ada_val_print_1, ada_print_floating, printable_val_type)
2901 (print_record, val_print_packed_array_elements)
2902 (print_field_values, print_variant_part): Update.
2903 * c-lang.h (c_val_print, cp_print_value_fields): Update.
2904 * c-valprint.c (c_val_print): Update.
2905 * f-lang.h (f_val_print): Update.
2906 * f-valprint.c (f_val_print, f77_print_array_1)
2907 (f77_print_array): Update.
2908 * jv-lang.h (java_val_print): Update.
2909 * jv-valprint.c (java_print_value_fields, java_val_print): Update.
2910 * language.c (unk_lang_val_print): Update.
2911 * m2-lang.h (m2_val_print): Update.
2912 * m2-valprint.c (m2_val_print): Update.
2913 * p-lang.h (pascal_val_print): Update.
2914 (pascal_object_print_value_fields): Update.
2915 * p-valprint.c (pascal_val_print)
2916 (pascal_object_print_value_fields, pascal_object_print_value)
2917 (pascal_object_print_value): Update.
2918 * scm-lang.h (scm_val_print): Update.
2919 * scm-valprint.c (scm_val_print): Update.
2920 * value.h (val_print): Update.
2921
2922 * p-lang.h (pascal_object_print_class_member)
2923 (pascal_object_print_class_method): Make buffer a const bfd_byte.
2924 * p-valprint.c (pascal_object_print_class_method)
2925 (pascal_object_print_class_method): Ditto.
2926
2927 * language.h (struct language_defn): Make la_printstr's buffer
2928 parameter a const bfd_byte.
2929 * p-lang.h (pascal_printstr): Update function to match.
2930 * ada-valprint.c (ada_printstr): Update function to match.
2931 * scm-lang.c (scm_printstr): Update function to match.
2932 * p-lang.c (pascal_printstr): Update function to match.
2933 * ada-lang.h (ada_printstr): Update function to match.
2934 * m2-lang.c (m2_printstr): Update function to match.
2935 * objc-lang.c (objc_printstr): Update function to match.
2936 * c-lang.h (c_printstr): Update function to match.
2937 * f-lang.c (f_printstr): Update function to match.
2938 * c-lang.c (c_printstr): Update function to match.
2939 * language.c (unk_lang_printstr): Update function to match.
2940
2941 * valprint.c (val_print_type_code_int): Make buffer a const bfd_byte.
2942 * valprint.h (val_print_type_code_int): Ditto.
2943
2944 * objc-lang.h (c_val_print, c_value_print): Delete declarations.
2945
2946 * cp-valprint.c (cp_print_class_method)
2947 (cp_print_class_member): Make buffer a const bfd_byte.
2948 * c-lang.h (cp_print_class_member, cp_print_class_method): Ditto.
2949
2950 * ada-lang.c (value_from_contents_and_address)
2951 (to_record_with_fixed_variant_part)
2952 (value_tag_from_contents_and_address, ada_to_fixed_type)
2953 (to_fixed_variant_branch_type, to_fixed_record_type)
2954 (ada_template_to_fixed_record_type, cond_offset_host)
2955 (ada_template_to_fixed_record_type_1): Make buffer a const
2956 bfd_byte.
2957 * ada-lang.h (ada_template_to_fixed_record_type_1)
2958 (value_from_contents_and_address, ada_to_fixed_type): Ditto.
2959
2960 * ada-valprint.c (char_at, printstr): Make buffer a const bfd_byte.
2961
2962 * gdbtypes.h (print_scalar_formatted): Make buffer a const bfd_byte.
2963 * printcmd.c (print_scalar_formatted): Update.
2964
2965 * value.h (value_bit_index, print_floating)
2966 (find_rt_vbase_offset): Make buffer a const bfd_byte.
2967 * valprint.c (print_floating): Update.
2968 * valarith.c (value_bit_index): Update.
2969 * valops.c (find_rt_vbase_offset): Update.
2970
2971 * valprint.h (print_octal_chars, print_char_chars)
2972 (print_hex_chars, print_decimal_chars, print_binary_chars): Make
2973 buffer a const bfd_byte.
2974 * valprint.c (print_binary_chars, print_octal_chars)
2975 (print_decimal_chars, print_hex_chars, print_char_chars): Make
2976 "valaddr"buffer a const bfd_byte, ditto for local variables
2977 referencing that buffer.
2978
2979 * m2-valprint.c: Include "c-lang.h".
2980 (c_val_print): Delete extern declaration.
2981 * scm-valprint.c: Include "c-lang.h".
2982 (c_val_print): Delete extern declaration.
2983 Makefile.in: Update dependencies.
2984
2985 * gnu-v2-abi.h (gnuv2_baseclass_offset): Make "valaddr" a const
2986 bfd_byte.
2987 * cp-abi.h (baseclass_offset): Make "valaddr" a const bfd_byte.
2988 (struct cp_abi_ops): Make baseclass_offset's "valaddr" a const
2989 bfd_byte.
2990 * cp-abi.c (baseclass_offset): Update.
2991 * gnu-v2-abi.c (gnuv2_baseclass_offset): Update.
2992
2993 * gnu-v2-abi.h: New file.
2994 * gnu-v2-abi.c: Include "gnu-v2-abi.h".
2995 (gnuv2_baseclass_offset): Delete declaration.
2996 * hpacc-abi.c: Include "gnu-v2-abi.h".
2997 (gnuv2_baseclass_offset): Delete extern declaration.
2998 * Makefile.in: Update dependencies.
2999
3000 * doublest.c (floatformat_is_negative, floatformat_is_nan)
3001 (floatformat_mantissa, get_field): Make the buffer a const
3002 bfd_byte, simplify.
3003
3004 2005-01-27 Andrew Cagney <cagney@gnu.org>
3005
3006 * value.h (struct value): Change type of contents to bfd_byte.
3007 (VALUE_CONTENTS_RAW): Simplify.
3008
3009 * gdbarch.sh (integer_to_address): Change buf parameter to a const
3010 bfd_byte, make pure-multi-arch.
3011 * gdbarch.h, gdbarch.c: Regenerate.
3012 * mips-tdep.c (mips_integer_to_address): Update.
3013 * value.c (value_as_address): Update.
3014
3015 * cli/cli-dump.h (fopen_with_cleanup): Make "filename" const.
3016 * cli/cli-dump.c (dump_binary_file, dump_bfd_file): Make string
3017 parameters const, change buf to a const bfd_byte.
3018 (fopen_with_cleanup, bfd_openw_with_cleanup): Make all string
3019 parameters const.
3020
3021 * corefile.c (write_memory): Update, make a copy of the read-only
3022 buffer.
3023 * target.c (target_read_memory): Update.
3024 (target_write_memory): Update, make a copy of the read-only
3025 buffer.
3026 * gdbcore.h (write_memory): Change buffer type to bfd_byte, make
3027 const.
3028 * target.h (target_read_memory, target_write_memory): Change
3029 buffer type to bfd_byte; for write_memory, make it const.
3030 * symfile-mem.c (do_target_read_memory): New function.
3031 (symbol_file_add_from_memory): Pass do_target_read_memory to
3032 bfd_elf_bfd_from_remote_memory.
3033
3034 * value.h: Indent using gdb_indent.sh.
3035
3036 * configure: Regenerate to track ../gettext.m4 change.
3037
3038 2005-01-26 Andrew Cagney <cagney@gnu.org>
3039
3040 * rs6000-tdep.c: Include "reggroups.h".
3041 (rs6000_gdbarch_init): Set register_reggroup_p.
3042 (rs6000_register_reggroup_p): New function.
3043
3044 2005-01-26 Orjan Friberg <orjanf@axis.com>
3045
3046 * cris-tdep.c (enum cris_num_regs, enum cris_regnums)
3047 (cris_sigtramp_frame_unwind_cache, cris_register_size): Update for
3048 CRISv32.
3049 (crisv32_single_step_through_delay, cris_can_use_hardware_watchpoint)
3050 (cris_region_ok_for_watchpoint, cris_stopped_data_address)
3051 (crisv32_cannot_fetch_register, crisv32_cannot_store_register)
3052 (crisv32_register_type, cris_special_register_name)
3053 (crisv32_register_name): New functions.
3054 (cris_spec_reg_applicable): Recognize more versions.
3055 (cris_register_name): Update with call to cris_special_register_name.
3056 (find_cris_op): Filter out CRISv32 instructions. Tweaked comment and
3057 warning when unable to find step target.
3058 (CRISV10_ELF_NGREG, CRISV32_ELF_NGREG, crisv32_elf_gregset_t): Define.
3059 (supply_gregset): Add struct gdbarch_tdep. Set pseudo-PC register for
3060 CRISv32.
3061 (fetch_core_registers): Update for CRISv32.
3062 (cris_gdbarch_init): Set pc_regnum, register_type, num_regs,
3063 register_name, cannot_store_register, cannot_fetch_register,
3064 have_nonsteppable_watchpoint, single_step_through_delay for CRISv32.
3065
3066 2005-01-26 Nick Roberts <nickrob@snap.net.nz>
3067
3068 * interps.c (interpreter_exec_cmd): Use condition,
3069 e.reason < 0, to raise an error.
3070
3071 2005-01-25 Andrew Cagney <cagney@gnu.org>
3072
3073 * ppc-linux-tdep.c: Include "tramp-frame.h"
3074 (struct ppc_linux_sigtramp_cache)
3075 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
3076 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
3077 (ppc_linux_sigtramp_cache): Delete.
3078 (ppc32_linux_sigaction_cache_init)
3079 (ppc64_linux_sigaction_cache_init)
3080 (ppc32_linux_sighandler_cache_init)
3081 (ppc64_linux_sighandler_cache_init)
3082 (ppc32_linux_sigaction_tramp_frame)
3083 (ppc64_linux_sigaction_tramp_frame)
3084 (ppc32_linux_sighandler_tramp_frame)
3085 (ppc64_linux_sighandler_tramp_frame)
3086 (ppc_linux_sigtramp_cache, ppc_linux_init_abi): Implement 32 and
3087 64-bit, sigaction and siginfo tramp-frame unwinders.
3088
3089 * ppc-linux-tdep.c (ppc_linux_init_abi): Always set
3090 long_double_bit to 8.
3091
3092 2005-01-24 Andrew Cagney <cagney@gnu.org>
3093
3094 * infrun.c (handle_inferior_event): Handle back-to-back and nested
3095 signals where the step_resume_breakpoint may have already been
3096 inserted.
3097
3098 2005-01-24 Andrew Cagney <cagney@gnu.org>
3099
3100 * configure: Regenerate, ../gettext.m4 was updated.
3101
3102 2005-01-23 Mark Kettenis <kettenis@gnu.org>
3103
3104 * NEWS: Mention new BSD user-level threads support.
3105
3106 * i386obsd-tdep.c: Update copyright year. Include
3107 "bsd-uthread.h".
3108 (i386obsd_uthread_reg_offset): New variable.
3109 (I386OBSD_UTHREAD_ESP_OFFSET): New define.
3110 (i386obsd_supply_uthread, i386obsd_collect_uthread): New
3111 functions.
3112 (i386obsd_init_abi): Set supply_uthread and collect_uthread.
3113 * Makefile.in (i386obsd-tdep.o): Update dependencies.
3114 * config/i386/obsd.mt (TDEPFILES): Add bsd-uthread.o.
3115
3116 2005-01-23 Christopher Faylor <cgf@timesys.com>
3117
3118 * win32-nat.c: Update copyright year.
3119 (child_init_thread_list): Set thread linked list point to NULL so that
3120 it won't be reused after clearing.
3121
3122 2005-01-21 Mark Kettenis <kettenis@gnu.org>
3123
3124 * acconfig.h (HAVE_STRUCT_REG_R_FS, HAVE_STRUCT_R_GS): Remove
3125 undefs.
3126 * configure.ac: Use AC_CHECK_MEMBERS to check whether `struct
3127 thread' has a td_pcb member and whether `struct reg' has r_fs and
3128 r_gs members.
3129 * configure, config.in: Regenerate.
3130
3131 2005-01-21 Mark Kettenis <kettenis@gnu.org>
3132
3133 * configure.ac: Remove ia64-*-aix* junk.
3134 * configure: Regenerate.
3135
3136 * configure.ac: Use AC_CHECK_DECLS instead of gcc_AC_CHECK_DECLS
3137 and BFD_NEED_DECLARATION. Don't check if a declaration of strdup
3138 is necessary.
3139 * configure, config.in: Regenerate.
3140 * utils.c: Adjust for usage of AC_CHECK_DECLS instead of
3141 BFD_NEED_DECLARATION. Never provide a prototype for
3142 caninicalize_file_name.
3143 * gdb_string.h: Adjust for usage of AC_CHECK_DECLS instead of
3144 BFD_NEED_DECLARATION.
3145
3146 * configure.ac (targ_archs): Use standard autoconf check for
3147 "struct stat.st_blocks" instead of rolling our own.
3148 * configure: Regenerated.
3149 * acconfig.h (HAVE_STRUCT_STAT_ST_BLOCKS): Remove undef.
3150 * config.in: Regenerated.
3151
3152 2005-01-21 Mark Kettenis <kettenis@gnu.org>
3153
3154 * configure.ac: Modernize checks for `long long' and `long double'
3155 support.
3156 * configure: Regenerated.
3157 * acconfig.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG)
3158 (PRINT_HAS_LONG_DOUBLE, SCANF_HAS_LONG_DOUBLE): Remove undefs.
3159 * config.in: Regenerated.
3160
3161 2005-01-20 Mark Kettenis <kettenis@gnu.org>
3162
3163 * acconfig.h (HAVE_STRUCT_SAVE_STATE_T)
3164 (HAVE_STRUCT_MEMBER_SS_WIDE): Remove undefs.
3165 * configure.ac: Remove checks for HP-UX save_state structure.
3166 * configure: Regenerated.
3167
3168 2005-01-19 Andrew Cagney <cagney@gnu.org>
3169
3170 * utils.c (quit): Simplify, call fatal.
3171 * exceptions.c: Include "serial.h"
3172 (print_flush): Mimic flush code found in utils.c:quit.
3173 * Makefile.in: Update dependencies.
3174
3175 2005-01-19 Jim Blandy <jimb@redhat.com>
3176
3177 * configure.tgt: Set build_rdi_share to "yes" on those targets
3178 that use that debugging protocol.
3179 Set build_nlm to yes to build NLM stub for Netware targets.
3180 * configure.ac: If build_rdi_share is "yes", then configure the
3181 rdi-share subdirectory.
3182 If build_nlm is "yes", the configure the "nlm" subdirectory.
3183 * configure: Regenerated.
3184
3185 * rdi-share/configure, rdi-share/aclocal.m4: Regenerated using
3186 autoconf 2.59 and automake 1.9.3.
3187
3188 2005-01-19 Andrew Cagney <cagney@gnu.org>
3189
3190 * exceptions.h (deprecated_throw_reason): Rename throw_reason.
3191 * exceptions.c (deprecated_throw_reason): Rename throw_reason.
3192 * utils.c (internal_verror, quit): Update.
3193 * remote-sds.c (interrupt_query): Update.
3194 * remote-mips.c (mips_error, mips_kill): Update.
3195 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Update.
3196 * remote.c (interrupt_query): Update.
3197 * ocd.c (interrupt_query): Update.
3198 * nto-procfs.c (interrupt_query): Update.
3199 * monitor.c (monitor_interrupt_query): Update.
3200 * breakpoint.c (break_command_1): Update.
3201
3202 * infrun.c: (resume, proceed, wait_for_inferior)
3203 (handle_inferior_event, stop_stepping)
3204 (prepare_to_wait): Write debug output to gdb_stdlog.
3205
3206 2005-01-19 Mark Kettenis <kettenis@gnu.org>
3207
3208 * inf-ptrace.c (inf_ptrace_prepare_to_store)
3209 (inf_ptrace_post_startup_inferior)
3210 (inf_ptrace_acknowledge_created_inferior)
3211 (inf_ptrace_insert_fork_catchpoint)
3212 (inf_ptrace_remove_fork_catchpoint)
3213 (inf_ptrace_insert_vfork_catchpoint):
3214 (inf_ptrace_remove_vfork_catchpoint, inf_ptrace_follow_fork)
3215 (inf_ptrace_insert_exec_catchpoint)
3216 (inf_ptrace_remove_exec_catchpoint): Remove functions.
3217 (inf_ptrace_reported_exec_events_per_exec_call): Tweak comment.
3218 (inf_ptrace_target): Don't set to_prepare_to_store,
3219 to_post_startup_inferior, to_acknowledge_created_inferior,
3220 to_insert_fork_ctachpoint, to_remove_fork_catchpoint,
3221 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
3222 to_follow_fork, to_insert_exec_catchpoint,
3223 to_remove_exec_catchpoint.
3224
3225 2005-01-18 Andrew Cagney <cagney@gnu.org>
3226
3227 * target.h (struct target_ops): Change return type of
3228 to_insert_fork_catchpoint, to_insert_vfork_catchpoint and
3229 to_insert_exec_catchpoint to void.
3230 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
3231 (child_insert_exec_catchpoint): Change return type to void.
3232 * target.c (update_current_target): Update.
3233 (debug_to_insert_fork_catchpoint)
3234 (debug_to_insert_vfork_catchpoint)
3235 (debug_to_insert_exec_catchpoint): Update.
3236 * inf-child.c (inf_child_insert_fork_catchpoint)
3237 (inf_child_insert_vfork_catchpoint)
3238 (inf_child_insert_exec_catchpoint): Update.
3239 * breakpoint.c (insert_catchpoint): Update, do not throw an error.
3240 * linux-nat.c (child_insert_fork_catchpoint)
3241 (child_insert_vfork_catchpoint)
3242 (child_insert_exec_catchpoint): Update.
3243 * inftarg.c (child_insert_fork_catchpoint)
3244 (child_insert_vfork_catchpoint,)
3245 (child_insert_exec_catchpoint): Update.
3246
3247 * remote.c (remote_open_1): Use throw_exception.
3248
3249 2005-01-17 Michael Snyder <msnyder@redhat.com>
3250
3251 * mips-linux-tdep.c: Whitespace tweaks.
3252
3253 2005-01-17 Corinna Vinschen <vinschen@redhat.com>
3254
3255 * infcmd.c (attach_command): Call CLEAR_SOLIB if available.
3256
3257 2005-01-17 Andrew Cagney <cagney@gnu.org>
3258
3259 * top.h (source_error, source_pre_error): Delete declaration.
3260 * cli/cli-script.c (source_error_allocated, source_error): Delete.
3261 (script_from_file, source_cleanup_lines): Do not manipulate
3262 source_error_allocated, error_pre_print and source_error.
3263 (struct source_cleanup_lines_args): Delete fields old_pre_error,
3264 and old_error_pre_print.
3265 * top.c (source_error_allocated, source_error)
3266 (source_pre_error): Delete.
3267 (command_line_input): Do not set error_pre_print.
3268 * event-top.c (command_line_handler): Do not set error_pre_print.
3269
3270 2005-01-16 Jason Thorpe <thorpej@netbsd.org>
3271
3272 * MAINTAINERS: Update my email address.
3273
3274 2005-01-16 Mark Kettenis <kettenis@gnu.org>
3275
3276 * configure.ac: Provide prerequisite headers when checking
3277 <term.h>.
3278 * configure: Regenerate.
3279
3280 * amd64fbsd-tdep.c: Update copyright year. Include "gdb_assert.h"
3281 and "bsd-uthread.h".
3282 (amd64fbsd_jmp_buf_reg_offset): New variable.
3283 (amd64fbsd_supply_uthread, amd64fbsd_collect_uthread): New
3284 functions.
3285 (amd64fbsd_init_abi): Set supply_uthread and collect_uthread.
3286 * i386fbsd-tdep.c: Fix typo.
3287 * Makefile.in (amd64fbsd-tdep.o): Update dependencies.
3288 * config/i386/fbsd64.mt (TDEPFILES): Add bsd-uthread.o.
3289
3290 2005-01-16 Andrew Cagney <cagney@gnu.org>
3291
3292 * cli/cli-script.c: Include "exceptions.h".
3293 (struct wrapped_read_command_file_args): Define.
3294 (wrapped_read_command_file): New function.
3295 (script_from_file): Replace direct call to read_command_file by
3296 one wrapped by an exception handler.
3297 * exceptions.c (throw_it): Free the old message after creating the
3298 new.
3299 * Makefile.in: Update dependencies.
3300
3301 2005-01-16 Mark Kettenis <kettenis@gnu.org>
3302
3303 * sparc64fbsd-tdep.c: Update copyright year.
3304 (sparc64fbsd_collect_gregset, sparc64fbsd_collect_fpregset): New
3305 functions.
3306 (sparc64fbsd_init_abi): Create register sets with collect
3307 functions.
3308
3309 * sparc64fbsd-nat.c: Include "fbsd-nat.h".
3310 (_initialize_sparc64fbsd_nat): Add some extra features to the
3311 generic SPARC target.
3312 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
3313 * config/sparc/fbsd.mh (NATDEPFILES): Add fbsd-nat.o and gcore.o.
3314 (NAT_FILE): Set to solib.h.
3315 * config/sparc/nm-fbsd.h: Remove file.
3316
3317 * sparc64-tdep.c (sparc64_store_arguments): Fix typo.
3318
3319 * sparc-tdep.c (sparc_integral_or_pointer_p): Simplify.
3320
3321 2005-01-16 Andrew Cagney <cagney@gnu.org>
3322
3323 * exceptions.c (struct catcher): Delete saved_error_pre_print and
3324 saved_quit_pre_print.
3325 (catcher_init): Delete parameter errstring, do not override the
3326 pre_print strings.
3327 (catcher_pop): Do not restore the pre_print strings.
3328 (catch_exception, catch_exceptions_with_msg, catch_errors)
3329 (catch_command_errors): Update catch_init calls.
3330
3331 2005-01-16 Mark Kettenis <kettenis@gnu.org>
3332
3333 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
3334 * sparc64fbsd-nat.c: Update copyright year. Include "target.h".
3335
3336 2005-01-15 Andrew Cagney <cagney@gnu.org>
3337
3338 * acinclude.m4: Include ../bfd/bfd.m4 instead of
3339 ../bfd/acinclude.m4. Include ../gettext.m4.
3340 * aclocal.m4, configure: Re-generate.
3341
3342 * exceptions.c (do_captured_command)
3343 (struct captured_command_args): Delete.
3344 (catch_command_errors): Simplify by inlining call to catch_errors.
3345
3346 * exceptions.c (struct catcher): Delete field print_message.
3347 (catcher_init): Delete print_message parameter.
3348 (catch_exception, catch_exceptions_with_msg, catch_errors): Update.
3349 (throw_it): Delete prefix parameter.
3350 (throw_verror, throw_vfatal, throw_error): Update.
3351
3352 2005-01-14 Andrew Cagney <cagney@gnu.org>
3353
3354 * exceptions.c (print_and_throw): Delete, replaced by throw_it.
3355 (throw_reason): Leave the exception's message field blank.
3356 (throw_it): New function, create the exception and throw it.
3357 (throw_verror, throw_vfatal, throw_error): Call throw_it.
3358 (print_any_exception): New function.
3359 (catch_errors, catch_exceptions_with_msg): Call
3360 print_any_exception.
3361 (throw_exception): Move code calling annotate_error and
3362 annotate_quit from here ...
3363 (print_exception): ... to here.
3364
3365 * exceptions.c (exception_fprintf, exception_print): Move printing
3366 of \n from here ...
3367 (print_exception): ... to here.
3368 (print_flush): New function.
3369 (exception_print, exception_fprintf): Replace duplicated flush and
3370 wrap code with call to print_flush.
3371 (print_and_throw): Simplify, by using xstrvprintf, print_flush,
3372 and print_exception.
3373 (do_write): Delete.
3374
3375 * remote-sds.c (interrupt_query): Call throw_reason instead of
3376 throw_exception.
3377 * remote-mips.c (mips_error, mips_kill): Ditto
3378 * ocd.c (interrupt_query): Ditto.
3379 * nto-procfs.c (interrupt_query): Ditto.
3380 * monitor.c (monitor_interrupt_query): Ditto.
3381
3382 2005-01-14 Jeff Johnston <jjohnstn@redhat.com>
3383
3384 * ia64-linux-nat.c: Include "ia64-tdep.h" to get register definitions.
3385
3386 2005-01-14 Andrew Cagney <cagney@gnu.org>
3387
3388 * exceptions.h (catch_exceptions): Delete errstring parameter.
3389 (catch_exceptions_with_msg): Ditto.
3390 * exceptions.c (catch_exceptions_with_msg): Update.
3391 (catch_exceptions): Update.
3392 * symfile-mem.c (add_vsyscall_page): Update.
3393 * frame.c (get_current_frame): Update.
3394 * wrapper.c (gdb_value_struct_elt): Update.
3395 * exceptions.c (catch_exceptions): Update.
3396 * thread.c (gdb_list_thread_ids, gdb_thread_select): Update.
3397 * breakpoint.c (gdb_breakpoint_query, gdb_breakpoint): Update.
3398 * remote-fileio.c (remote_fileio_request): Update.
3399
3400 * exceptions.h (exception_fprintf): Declare.
3401 (exception_print): Drop pre_print parameter.
3402 * mi/mi-main.c (mi_execute_command): Update exception_print call.
3403 * cli/cli-interp.c (safe_execute_command): Update exception_print
3404 call.
3405 * remote.c (remote_open_1): Instead of passing an error prefix to
3406 catch_exceptions, use catch_exceptions and exception_fprintf.
3407 (remote_start_remote): Change return type to void.
3408 * breakpoint.c (insert_bp_location): Instead of passing an error
3409 prefix to catch_exceptions, use catch_exceptions and
3410 exception_fprintf.
3411 (insert_catchpoint): Change return type to void.
3412 (break_command_1): Update exception_print call.
3413 * exceptions.c (exception_fprintf): New function.
3414 (print_exception): New function.
3415 (exception_print): Use print_exception.
3416
3417 * utils.c (error_output_message): Delete function.
3418 * defs.h (error_output_message): Delete declaration.
3419
3420 * linespec.c (symtab_from_filename, decode_variable): Use
3421 throw_error instead of error_silent.
3422 * breakpoint.c (do_captured_parse_breakpoint): Change return type
3423 to void.
3424 (break_command_1): Use catch_exception and check the error return
3425 status.
3426 * exceptions.c (throw_error): New function.
3427 (throw_vsilent): Delete function.
3428 * exceptions.h (throw_error): Declare.
3429 (throw_vsilent): Delete declaration.
3430 * utils.c (error_silent): Delete function.
3431 * defs.h (error_silent): Delete declaration.
3432
3433 * mi/mi-main.c (mi_execute_command): Print the exception.
3434 * cli/cli-interp.c (safe_execute_command): Print the exception.
3435 * exceptions.h (exception_print): Declare.
3436 * exceptions.c (struct catcher): Add field print_message.
3437 (catcher_init): Add parameter print_message, store in the catcher
3438 struct.
3439 (print_and_throw): Only print the message when print_message.
3440 (catch_exceptions_with_msg, catch_errors): Pass print_message=1 to
3441 catcher_init.
3442 (catch_exception): Pass print_message=0 to catcher_init.
3443
3444 * varobj.c (varobj_create): Add missing \n.
3445
3446 2005-01-13 Michael Snyder <msnyder@redhat.com>
3447
3448 * cli/cli-decode.h: Whitespace tweaks.
3449 * wince.c: Whitespace tweaks.
3450 * uw-thread.c: Whitespace tweaks.
3451 * utils.c: Whitespace tweaks.
3452 * tracepoint.[ch]: Whitespace tweaks.
3453 * solist.h: Whitespace tweaks.
3454
3455 2005-01-13 Andrew Cagney <cagney@gnu.org>
3456
3457 * exceptions.h (struct exception): Make message const.
3458 * mi/mi-main.c (mi_execute_command): Pass result.message directly
3459 to fputstr_unfiltered.
3460
3461 2005-01-13 Michael Snyder <msnyder@redhat.com>
3462
3463 * stack.c: Whitespace tweaks.
3464 * somsolib.[ch]: Whitespace tweaks.
3465 * solib-aix.c: Whitespace tweaks.
3466 * solib.c: Whitespace tweaks.
3467 * solib-frv.c: Whitespace tweaks.
3468 * solib.h: Whitespace tweaks.
3469 * solib-irix.c: Whitespace tweaks.
3470 * solib-som.c: Whitespace tweaks.
3471 * solib-sunos.c: Whitespace tweaks.
3472 * solib-svr4.[ch]: Whitespace tweaks.
3473 * ser-tcp.c: Whitespace tweaks.
3474 * ser-unix.c: Whitespace tweaks.
3475 * serial.h: Whitespace tweaks.
3476 * scm-valprint.c: Whitespace tweaks.
3477 * rs6000-tdep.c: Whitespace tweaks.
3478 * rs6000-nat.c: Whitespace tweaks.
3479 * remote.c: Whitespace tweaks.
3480
3481 2005-01-13 Andrew Cagney <cagney@gnu.org>
3482
3483 * defs.h (error_last_message, error_init): Delete declaration.
3484 * utils.c (fatal, vfatal): Call throw_vfatal.
3485 (error, verror): Call throw_verror;
3486 (do_write, error_stream_1): Delete function.
3487 (error_stream): Simplify, call error.
3488 (error_last_message, error_init, gdb_lasterr): Delete.
3489 (error_silent): Simplify, call throw_vsilent.
3490 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dup the message.
3491 * main.c (captured_main): Delete call to error_init.
3492 * exceptions.c (throw_verror, throw_verror)
3493 (throw_vsilent): New functions.
3494 (do_write, print_and_throw): New functions.
3495 (last_message): New global.
3496 (throw_reason): Replace error_last_message with last_message.
3497 (catch_exceptions_with_msg): Dup the message.
3498 * exceptions.h (throw_verror, throw_vfatal, throw_vsilent):
3499 Declare.
3500
3501 2005-01-13 Michael Snyder <msnyder@redhat.com>
3502
3503 * remote-st.c: Whitespace tweaks.
3504 * remote-sim.c: Whitespace tweaks.
3505 * remote-mips.c: Whitespace tweaks.
3506 * pa64solib.[ch]: Whitespace tweaks.
3507 * mdebugread.c: Whitespace tweaks.
3508 * main.c: Whitespace tweaks.
3509 * interps.c: Whitespace tweaks.
3510 * infrun.c: Whitespace tweaks.
3511 * infcmd.c: Whitespace tweaks.
3512 * hpux-thread.c: Whitespace tweaks.
3513 * hppa-hpux-tdep.c: Whitespace tweaks.
3514 * gdbcore.h: Whitespace tweaks.
3515 * gdbcmd.h: Whitespace tweaks.
3516 * gdb-events[.c, .h, .sh]: Whitespace tweaks.
3517 * corefile.c: Whitespace tweaks.
3518 * completer.c: Whitespace tweaks.
3519 * coff-solib.c: Whitespace tweaks.
3520 * coff-solib.h: Whitespace tweaks.
3521 * cli-out.c: Whitespace tweaks.
3522 * breakpoint.c: Whitespace tweaks.
3523 * cli/cli-interp.c: Tweak comments, per coding standard.
3524
3525 2005-01-13 Andrew Cagney <cagney@gnu.org>
3526
3527 * breakpoint.c (gdb_breakpoint_query): Update, use
3528 catch_exceptions_with_msg.
3529 (do_captured_breakpoint): Add uiout parameter.
3530 (gdb_breakpoint): Update, use catch_exceptions_with_msg.
3531 * mi/mi-main.c (mi_cmd_thread_select): Pass mi_error_message to
3532 gdb_thread_select. Return MI_CMD_ERROR instead of
3533 MI_CMD_CAUGHT_ERROR.
3534 (mi_cmd_thread_list_ids): Ditto for gdb_list_thread_ids.
3535 (enum captured_mi_execute_command_actions): Delete
3536 EXECUTE_COMMAND_DISPLAY_ERROR.
3537 (captured_mi_execute_command): Delete code handling
3538 MI_CMD_CAUGHT_ERROR.
3539 (mi_execute_command): Don't check for
3540 EXECUTE_COMMAND_DISPLAY_ERROR.
3541 * mi/mi-cmd-break.c (breakpoint_notify): Update call to
3542 gdb_breakpoint_query.
3543 (mi_cmd_break_insert): Pass mi_error_message to gdb_breakpoint.
3544 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_CAUGHT_ERROR.
3545 * gdb.h (gdb_thread_select, gdb_list_thread_ids)
3546 (gdb_breakpoint, gdb_breakpoint_query): Add error_message
3547 parameter.
3548 * thread.c (thread_command): Update call.
3549 (gdb_thread_select, gdb_list_thread_ids): Update, call
3550 catch_exceptions_with_msg.
3551
3552 * mi/mi-main.c (mi_execute_command): Use catch_exception,
3553 eliminate call to error_last_message.
3554 (captured_mi_execute_command): Change return type to void.
3555
3556 2005-01-12 Andrew Cagney <cagney@gnu.org>
3557
3558 * exceptions.c (exception_none): New variable.
3559 * Makefile.in: Update dependencies.
3560 * interps.c: Include "exceptions.h".
3561 (interpreter_exec_cmd, interp_exec): Update to return "struct
3562 exception"
3563 * exceptions.h (no_exception): Declare.
3564 * tui/tui-interp.c (tui_exec): Update to return "struct exception"
3565 * mi/mi-interp.c: Include "exceptions.h".
3566 (mi_cmd_interpreter_exec, mi_interpreter_exec): Update to return
3567 'struct exception".
3568 * cli/cli-interp.c (cli_interpreter_exec, safe_execute_command)
3569 (do_captured_execute_command): Update to use catch_exception.
3570 * interps.h: Include "exceptions.h".
3571 (interp_exec_ftype, interp_exec): Return "struct exception".
3572
3573 * exceptions.h (throw_reason): Rename throw_exception.
3574 (enum errors, struct exception): Define.
3575 (catch_exception_ftype): Define.
3576 (catch_exception, throw_exception): Declare.
3577 * exceptions.c (throw_exception): Rewrite.
3578 (throw_reason): New function.
3579 (struct catcher, catcher_state_machine): Replace "reason" with
3580 "exception", delete "gdberrmsg".
3581 (catch_exception): New function.
3582 (catcher_init): Replace "gdberrmsg" parameter with "exception".
3583 (catch_errors, catch_exceptions_with_msg): Re-implement passing
3584 exception to catcher_init.
3585 * utils.c (error_silent, error_stream_1): Use throw_reason.
3586 (internal_verror, quit): Ditto.
3587 * breakpoint.c (insert_catchpoint, break_command_1): Ditto.
3588 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Ditto.
3589 * remote.c (remote_open_1, interrupt_query): Ditto.
3590
3591 2005-01-12 Mark Kettenis <kettenis@gnu.org>
3592
3593 * i386fbsd-tdep.c: Update copyright year. Include "gdbcore.h",
3594 "regcache.h", "gdb_assert.h" and "bsd-uthread.h".
3595 (i386fbsd_jmp_buf_reg_offset): New variable.
3596 (i386fbsd_supply_uthread, i386fbsd_collect_uthread): New
3597 functions.
3598 (i386fbsdaout_init_abi): Set supply_uthread and collect_uthread.
3599 * Makefile.in (i386fbsd-tdep.o): Update dependency.
3600 * config/i386/fbsd.mt (TDEPFILES): Add bsd-uthread.o.
3601
3602 * bsd-uthread.h: New file.
3603 * bsd-uthread.c: New file.
3604 * Makefile.in (bsd_uthread_h): New variable.
3605 (ALLDEPFILES): Add bsd-uthread.c.
3606 (bsd-uthread.o): New dependency.
3607
3608 * solib.h Update copyright year.
3609 (struct so_list): Forward declaration.
3610 (solib_read_symbols): New prototype.
3611 * solib.c (solib_read_symbols): New function.
3612 (solib_add): Call solib_read_symbols to read in symbols.
3613 (update_solib_list): Call observer_notify_solib_loaded.
3614
3615 * i386bsd-nat.c: Update copyright year. Don't include
3616 <sys/param.h> and <sys/user.h>.
3617 (register_u_addr, kernel_u_size): Remove functions.
3618 * config/i386/obsd.mh (NAT_FILE): Remove.
3619 * config/i386/obsdaout.mh (NAT_FILE): Set to solib.h.
3620 * config/i386/nm-obsd.h: Remove file.
3621
3622 2005-01-12 Andrew Cagney <cagney@gnu.org>
3623
3624 * exceptions.c: Include "gdb_string.h".
3625 (enum catcher_state, struct catcher): Define.
3626 (current_catcher): New global, replaces catch_return;
3627 (catch_return): Delete.
3628 (throw_exception): Use current_catcher->buf;
3629 (catcher_init, catcher_pop, catcher_state_machine): New functions.
3630 (catcher): Delete.
3631 (struct catch_errors_args): Delete.
3632 (do_catch_errors): Delete.
3633 (catch_exceptions): Replace body with call to
3634 catch_exceptions_with_msg.
3635 (catcher): Delete.
3636 (catch_exceptions_with_msg, catch_errors): Re-implement using
3637 catcher_state_machine.
3638
3639 * exceptions.h (enum return_reason, RETURN_MASK)
3640 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL)
3641 (return_mask, throw_exception, catch_exceptions_ftype)
3642 (catch_exceptions_with_msg, catch_errors_ftype, catch_errors)
3643 (catch_command_errors_ftype, catch_command_errors): Move to
3644 exceptions.h.
3645 * exceptions.c, exceptions.h: New files.
3646 * top.c: Do not include <setjmp.h>.
3647 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, catch_return)
3648 (throw_exception, catcher, catch_exceptions)
3649 (catch_exceptions_with_msg, struct catch_errors_args)
3650 (do_catch_errors, catch_errors, struct captured_command_args)
3651 (do_captured_command, catch_command_errors): Move to exceptions.c.
3652 * wrapper.c, wince.c, win32-nat.c, utils.c: Include "exceptions.h".
3653 * tui/tui-interp.c, top.c, thread.c, symmisc.c: Ditto.
3654 * symfile-mem.c, stack.c, solib.c, rs6000-nat.c: Ditto.
3655 * remote-sds.c, remote-mips.c, remote-fileio.c: Ditto.
3656 * remote-e7000.c, objc-lang.c, ocd.c: Ditto.
3657 * remote.c, nto-procfs.c, monitor.c, mi/mi-main.c: Ditto.
3658 * main.c, m32r-rom.c, infrun.c, inf-loop.c: Ditto.
3659 * hppa-hpux-tdep.c, frame.c, event-top.c, event-loop.c: Ditto.
3660 * corelow.c, corefile.c, cli/cli-interp.c, breakpoint.c: Ditto.
3661 * ada-valprint.c, ada-lang.c: Ditto.
3662 * Makefile.in (HFILES_NO_SRCDIR, COMMON_OBS): Add exceptions.h and
3663 exceptions.o. Update all dependencies.
3664
3665 2005-01-11 Mark Kettenis <kettenis@gnu.org>
3666
3667 * config/i386/nm-fbsd.h: Update copyright year.
3668 Don't include "config/nm-bsd.h".
3669 (KERNEL_U_SIZE): Remove macro.
3670 (kernel_u_size): Remove prototype.
3671
3672 * config/vax/nbsdaout.mh (NAT_FILE): Remove.
3673 * config/vax/nm-nbsdaout.h: Remove file.
3674
3675 2005-01-10 Elena Zannoni <ezannoni@redhat.com>
3676
3677 * MAINTAINERS: Remove self from sh/sh64 maintainership.
3678
3679 2005-01-10 Andrew Cagney <cagney@gnu.org>
3680
3681 * MAINTAINERS: List Andrew Cagney and Kevin Buettner as can commit
3682 changes to PowerPC, and Andrew Cagney as lead PowerPC GNU/Linux
3683 maintainer.
3684
3685 * MAINTAINERS: Hans-Peter Nilsson and Orjan Friberg can commit
3686 changes to CRIS.
3687
3688 * MAINTAINERS: Remove "Maintenance Only". Spell out that CAN
3689 COMMIT means can approve).
3690
3691 2005-01-10 Mark Kettenis <kettenis@gnu.org>
3692
3693 * vax-nat.c: Update copyright year. Include "inf-ptrace.h".
3694 (vax_register_u_offset): Make statuc.
3695 (_initialize_vax_nat): Construct and add target vector.
3696 * config/vax/vax.mh (NATDEPFILES): Remove infptrace.o and
3697 inftarg.o. Add inf-ptrace.o.
3698 * Makefile.in (vax-nat.o): Update dependencies.
3699
3700 * inf-ptrace.h: Update copyright year. Sync comment with
3701 inf-ptrace.c.
3702 (inf_ptrace_trad_target): New prototype.
3703 * inf-ptrace.c: Update copyright year. Include "regcache.h" and
3704 "gdb_assert.h"
3705 (inf_ptrace_target): Add comment.
3706 (inf_ptrace+register_u_offset): New variable.
3707 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
3708 (inf_ptrace_store_register, inf_ptrace_store_registers)
3709 (inf_ptrace_trad_target): New functions.
3710 * Makefile.in (inf-ptrace.o): Update dependencies.
3711
3712 2005-01-09 Mark Kettenis <kettenis@gnu.org>
3713
3714 * configure.ac: Provide prerequisite headers when checking
3715 <link.h>, <sys/proc.h> and <sys/user.h>.
3716 * configure: Regenerate.
3717
3718 2005-01-08 Mark Kettenis <kettenis@gnu.org>
3719
3720 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Set to
3721 tm-ppc-eabi.h instead of the removed tm-nbsd.h.
3722
3723 2005-01-07 Mark Kettenis <kettenis@gnu.org>
3724
3725 * config/ia64/tm-linux.h: Tweak comment. Update copyright year.
3726 Don't include "tm-ia64.h".
3727 * config/ia64/ia64.mt (DEPRECATED_TM_FILE): Remove.
3728 * config/ia64/tm-ia64.h: Remove. Move contents ...
3729 * ia64-tdep.h: ... here. Update copyright year.
3730
3731 2005-01-07 Andrew Cagney <cagney@gnu.org>
3732
3733 * configure.ac: Rename configure.in, require autoconf 2.59.
3734 * configure: Re-generate.
3735
3736 * configure.tgt: Disable arm*-*-*, thumb*-*-*, strongarm*-*-*,
3737 xscale-*-* and i[34567]86-*-netware* code adding rdi-share or nlm
3738 to configdirs.
3739
3740 * configure.in: Replace configdirs with multiple references to
3741 AC_CONFIG_SUBDIRS.
3742 * configure: Re-generate.
3743
3744 2005-01-05 Andreas Schwab <schwab@suse.de>
3745
3746 * ia64-tdep.c: Include "osabi.h".
3747 (native_find_global_pointer): Delete.
3748 (ia64_find_global_pointer): Renamed from
3749 generic_elf_find_global_pointer.
3750 (FIND_GLOBAL_POINTER): Delete. Change all users to call
3751 ia64_find_global_pointer instead.
3752 (ia64_gdbarch_init): Call gdbarch_init_osabi. Remove references
3753 to ia64_linux_sigcontext_register_address and
3754 ia64_linux_write_pc. Don't set tdep->find_global_pointer.
3755 (_initialize_ia64_tdep): Call gdbarch_register instead of
3756 deprecated register_gdbarch_init.
3757 (struct gdbarch_tdep): Remove find_global_pointer field and move
3758 to ...
3759 * ia64-tdep.h (struct gdbarch_tdep): ... here.
3760 (ia64_linux_sigcontext_register_address): Remove declaration.
3761 (ia64_linux_getunwind_table): Likewise.
3762 (ia64_linux_write_pc): Likewise.
3763 * ia64-linux-tdep.c: Include "osabi.h".
3764 (ia64_linux_sigcontext_register_address): Make static.
3765 (ia64_linux_write_pc): Likewise.
3766 (ia64_linux_init_abi): New.
3767 (_initialize_ia64_linux_tdep): New.
3768 * Makefile.in (ia64-tdep.o, ia64-linux-tdep.o): Depend on
3769 $(osabi_h).
3770
3771 2005-01-05 Kevin Buettner <kevinb@redhat.com>
3772
3773 * ia64-tdep.c (ia64_gdbarch_init): Eliminate dependency on
3774 functions in ia64-aix-tdep.c.
3775 * ia64-tdep.h (ia64_aix_sigcontext_register_address): Remove
3776 function defined in ia64-aix-tdep.c.
3777 * ia64-aix-tdep.c: Remove file.
3778 * config/ia64/linux.mt (TDEPFILES): Remove ia64-aix-tdep.o from
3779 this list.
3780 * Makefile.in (ia64-aix-tdep.o): Delete.
3781
3782 2005-01-05 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
3783
3784 Committed by Andrew Cagney.
3785 * ada-valprint.c, aix-thread.c, alpha-nat.c: I18n markup.
3786 * alphabsd-nat.c, alphanbsd-tdep.c, amd64-linux-nat.c: I18n markup.
3787 * amd64-tdep.c, amd64bsd-nat.c, amd64fbsd-nat.c: I18n markup.
3788 * arch-utils.c, arm-linux-nat.c, arm-tdep.c: I18n markup.
3789 * armnbsd-nat.c, armnbsd-tdep.c, auxv.c, avr-tdep.c: I18n markup.
3790 * aix-thread.c (_initialize_aix_thread): Get rid of the
3791 deprecated_add_show_from_set call.
3792 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3793 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3794 * command.h (add_setshow_enum_cmd): Add arguments for returning
3795 new list elements.
3796 * cli/cli-decode.c (add_setshow_enum_cmd): Ditto.
3797 * mips-tdep.c (_initialize_mips_tdep): Modify calls to
3798 add_setshow_enum_cmd.
3799
3800 2005-01-04 Mark Kettenis <kettenis@gnu.org>
3801
3802 * configure.host (ia64-*-aix*): Remove.
3803 * configure.tgt (ia64-*-aix*): Remove.
3804 * config/ia64/aix.mh: Remove file.
3805 * config/ia64/aix.mt: Remove file.
3806 * config/ia64/tm-aix.h: Remove file.
3807 * ia64-aix-nat.c: Remove file.
3808 * Makefile.in (ia64-aix-nat.o): Remove dependency.
3809
3810 * config/m88k/obsd.mh (NATDEPFILES): Really remove inf-child.o.
3811 Add back inf-ptrace.o.
3812
3813 2005-01-04 Andrew Cagney <cagney@gnu.org>
3814
3815 * version.in: Change format from 6.3.50_2005-01-04-cvs to
3816 6.3.50.20050104-cvs.
3817
3818 2005-01-04 Andreas Schwab <schwab@suse.de>
3819
3820 * breakpoint.c (break_command_1): Always free err_msg before
3821 returning when an exception was caught.
3822
3823 2005-01-01 Joel Brobecker <brobecker@gnat.com>
3824
3825 * hppa-tdep.c (prologue_inst_adjust_sp): Fix small confusion
3826 in register number for addil instruction.
3827
3828 For older changes see ChangeLog-2004.
3829 \f
3830 Local Variables:
3831 mode: change-log
3832 left-margin: 8
3833 fill-column: 74
3834 version-control: never
3835 End:
This page took 0.130816 seconds and 5 git commands to generate.