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