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