1 2003-08-04 Andrew Cagney <cagney@redhat.com>
3 * solib-svr4.c (_initialize_svr4_solib): Update
4 register_gdbarch_data call.
5 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
7 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
8 (register_gdbarch_data): Delete "free" parameter. Update
10 * gdbarch.h, gdbarch.c: Re-generate.
11 * reggroups.c (_initialize_reggroup): Update.
12 * gnu-v3-abi.c (init_gnuv3_ops): Update.
13 * frame-base.c (_initialize_frame_base): Update.
14 * frame-unwind.c (_initialize_frame_unwind): Update.
15 * user-regs.c (_initialize_user_regs): Update.
16 * remote.c (_initialize_remote): Update.
17 * regcache.c (_initialize_regcache): Update.
19 * regcache.c (xfree_regcache_descr): Delete function.
20 (_initialize_regcache): Update call to register_gdbarch_data.
21 (init_regcache_descr, init_legacy_regcache_descr): Use
22 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
24 * remote.c (free_remote_state): Delete function.
25 (_initialize_remote): Update register_gdbarch_data.
26 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
27 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
29 2003-08-04 Andrew Cagney <cagney@redhat.com>
31 * reggroups.c (struct reggroup_el): Define.
32 (struct reggroups): Delete field "nr_group". Replace array
33 "group" with a "first" to "last" linked list.
34 (reggroups_init): Update. Allocate using gdbarch's obstack.
35 (reggroups_free): Delete function.
36 (add_group): Update. Add "el" parameter.
37 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
38 (default_groups): Update.
39 (reggroup_next): Replace reggroups.
40 (reggroups_dump): Update.
41 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
42 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
43 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
45 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
47 * Makefile.in (tui-interp.o): Update dependencies.
49 2003-08-04 David Carlton <carlton@kealia.com>
51 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
52 to internal_error call.
53 * source.c (forward_search_command): Add "%s" format argument.
54 (reverse_search_command): Ditto.
55 * top.c (quit_confirm): Ditto.
56 * cli/cli-setshow.c (do_setshow_command): Ditto.
57 * cp-valprint.c (cp_print_class_method): Replace
58 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
59 (cp_print_class_member): Ditto.
60 * event-top.c (command_line_handler): Ditto.
61 * linux-proc.c (linux_info_proc_cmd): Ditto.
62 * p-typeprint.c (pascal_type_print_base): Ditto.
63 * p-valprint.c (pascal_object_print_class_method): Ditto.
64 (pascal_object_print_class_member): Ditto.
65 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
66 * remote.c (remote_cisco_section_offsets): Ditto.
67 * top.c (command_line_input): Ditto.
68 * utils.c (vwarning,error_stream,quit): Ditto.
69 * valprint.c (print_floating,print_binary_chars)
70 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
72 2003-08-04 Andrew Cagney <cagney@redhat.com>
74 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
76 2003-08-02 Andrew Cagney <cagney@redhat.com>
78 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
79 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
82 2003-08-02 Andrew Cagney <cagney@redhat.com>
84 * Makefile.in: Update all dependencies and definitions.
86 2003-08-02 Adam Fedor <fedor@gnu.org>
88 * linespec.c (is_objc_method_format): New function
89 (decode_line_1, locate_first_half): Use it.
92 2003-08-01 Andrew Cagney <cagney@redhat.com>
94 * NEWS: Mention that m32r is multi-arch.
95 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
96 * configure.tgt: Recognize m32r-*-*.
97 * config/m32r/tm-m32r.h: Delete file.
98 * config/m32r/m32r.mt: New file.
99 * m32r-rom.c (m32r_upload_command): Use hostent only when
100 gethostname succeeds, in order to avoid a compilation
102 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
105 2003-08-01 Michael Snyder <msnyder@redhat.com>
107 * sh-tdep.c (sh_frame_align): New gdbarch method.
108 (sh_gdbarch_init): Set up frame_align method.
110 2003-07-31 Michael Snyder <msnyder@redhat.com>
112 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
113 which is already covered by the new frames infrastructure.
115 2003-07-31 Andrew Cagney <cagney@redhat.com>
117 * user-regs.c (struct user_reg): Add "next" link.
118 (struct user_regs): Replace "user" with "first" and "last" links.
119 (append_user_reg): Add pre-allocated "reg" parameter.
120 (builtin_user_regs): Provide initial value for "last".
121 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
122 (user_regs_init): Allocate memory from the gdbarch obstack.
123 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
124 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
126 (usernum_to_user_reg): New function.
127 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
128 (value_of_user_reg): Use usernum_to_user_reg.
129 (user_regs_free): Delete function.
130 (_initialize_user_regs): Update register_gdbarch_data call.
132 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
134 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
136 2003-07-30 Michael Snyder <msnyder@redhat.com>
138 * value.h (value_being_returned): Add a struct_addr argument.
139 * infcall.c (call_function_by_hand): Pass struct_addr to
140 value_being_returned.
141 * infcmd.c (print_return_value): Pass zero as struct_addr.
142 * values.c (value_being_returned): If struct_addr is passed,
143 use it instead of trying to recover it from the inferior.
145 2003-07-30 Kevin Buettner <kevinb@redhat.com>
147 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
148 the prologue analyzer won't need to attempt to extract the pc
149 value from the woefully incomplete dummy frame.
150 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
151 possible. Disable code which modifies the frame.
153 2003-07-28 Andrew Cagney <cagney@redhat.com>
155 * annotate.c (annotate_breakpoints_headers): Restrict annotation
157 (annotate_breakpoints_table, annotate_record): Ditto.
158 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
159 (annotate_field_name_end, annotate_field_value): Ditto.
160 (annotate_field_end, annotate_frame_source_begin): Ditto.
161 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
162 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
163 (annotate_frame_begin, annotate_frame_function_name): Ditto.
164 (annotate_frame_address_end, annotate_frame_address): Ditto.
165 (annotate_frame_args, annotate_frame_end): Ditto.
166 (annotate_frame_where, annotate_arg_begin): Ditto.
167 (annotate_arg_name_end, annotate_arg_value): Ditto.
168 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
169 (annotate_function_call, annotate_signal_name): Ditto.
170 (annotate_signal_string, annotate_signal_name_end): Ditto.
171 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
172 (annotate_value_begin, annotate_value_history_value): Ditto.
173 (annotate_value_history_end, annotate_value_end): Ditto.
174 (annotate_display_begin, annotate_display_number_end): Ditto.
175 (annotate_display_format, annotate_display_expression): Ditto.
176 (annotate_display_expression_end, annotate_display_value): Ditto.
177 (annotate_display_end, annotate_array_section_begin): Ditto.
178 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
179 (annotate_elt, annotate_array_section_end): Ditto.
181 2003-07-28 Andrew Cagney <cagney@redhat.com>
183 * regcache.c (struct regcache_descr): Update comments on
185 (init_legacy_regcache_descr): Don't set nr_raw_registers or
186 sizeof_raw_register_valid_p.
187 (init_regcache_descr): Set nr_raw_registers and
188 sizeof_raw_register_valid_p before calling
189 init_legacy_regcache_descr.
191 2003-07-28 Andrew Cagney <cagney@redhat.com>
193 * mips-tdep.c (print_gp_register_row): Print the GPR's register
196 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
198 * thread.c (info_threads_command): Use get_selected_frame ().
199 Check that there is at least one non-sentinel frame.
201 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
203 * m68hc11-tdep.c (struct frame_extra_info): Remove.
204 (m68hc11_pop_frame): Remove.
205 (m68hc11_frame_saved_pc): Remove.
206 (m68hc11_frame_chain): Remove.
207 (m68hc11_frame_init_saved_regs): Remove.
208 (m68hc11_init_extra_frame_info): Remove.
209 (m68hc11_store_struct_return): Remove.
210 (m68hc11_saved_pc_after_call): Remove.
212 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
214 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
215 frame unwind information.
216 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
217 and adapted for frame unwinding.
218 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
219 (m68hc11_unwind_pc): New function.
220 (m68hc11_frame_unwind_cache): New function to analyze frames.
221 (m68hc11_frame_this_id): New function to create new frame struct.
222 (m68hc11_frame_prev_register): New function to unwind a register from
224 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
225 (m68hc11_frame_p): New function for the above.
226 (m68hc11_frame_base_address): New function to return fp of frame.
227 (m68hc11_frame_args_address): Update for frame.
228 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
229 (m68hc11_unwind_sp): New function.
230 (m68hc11_unwind_dummy_id): New function.
231 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
234 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
236 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
237 (m68hc11_guess_from_prologue): Advance the pc and frame size only
238 when we are beyond the current pc.
240 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
242 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
243 from m68hc11_push_arguments.
244 (m68hc11_push_arguments): Remove.
245 (m68hc11_push_return_address): Remove.
246 (m68hc11_gdbarch_init): Install the above; remove above deprecated
247 handlers; remove deprecated_extra_stack_alignment_needed.
249 2003-07-27 Andrew Cagney <cagney@redhat.com>
251 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
252 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
253 REAL_PC and not the pointer.
254 * hppa-hpux-tdep.c: Include frame.h
256 2003-07-27 Andrew Cagney <cagney@redhat.com>
258 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
259 GDB_MULTI_ACH_PARTIAL.
261 2003-07-27 Andrew Cagney <cagney@redhat.com>
263 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
264 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
265 operator at start and not end of line.
266 (decode_prologue): Ditto.
267 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
268 frame_unwind_register_unsigned instead of
269 frame_unwind_unsigned_register.
270 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
272 (m32r_push_dummy_call): Use register_size instead of
274 (m32r_frame_sniffer): Replace m32r_frame_p.
275 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
276 * m32r-rom.c (report_transfer_performance): Delete extern
278 (m32r_load, m32r_upload_command): Use print_transfer_performance
279 instead of report_transfer_performance.
280 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
283 2003-07-26 Andrew Cagney <cagney@redhat.com>
285 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
286 store_return_value and extract_struct_value_address.
288 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
291 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
292 NULL, default to the section containing PC.
294 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
296 * NEWS: Mention "regs" deprecated for m68hc11 too.
298 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
299 (m68hc11_print_register): New function to print out one register.
300 (m68hc11_print_registers_info): New function to print registers.
301 (show_regs): Deprecate and use the above.
302 (m68hc11_gdbarch_init): Install the print_registers_info.
304 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
306 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
307 that we have a SIGTRAP before returning non-zero.
309 2003-07-23 Michal Ludvig <mludvig@suse.cz>
310 Elena Zannoni <ezannoni@redhat.com>
312 * linespec.c (decode_line_2): Avoid crash if
313 find_function_start_sal() returns empty record.
315 2003-07-23 Andreas Schwab <schwab@suse.de>
317 * ia64-tdep.c (ia64_print_insn): New function.
318 (ia64_gdbarch_init): Set print_insn to it.
319 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
320 deprecated_tm_print_insn_info.
322 2003-07-22 Michael Snyder <msnyder@redhat.com>
324 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
325 handle 8-bit returns (long long).
326 (h8300h_extract_return_value): Ditto.
327 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
329 2003-07-22 Andrew Cagney <cagney@redhat.com>
331 * gdbarch.c Include "gdb_obstack.h".
332 (struct gdbarch): Add an "obstack".
333 (alloc_gdbarch_data): Allocate the gdbarch data using
334 GDBARCH_OBSTACK_CALLOC.
335 (free_gdbarch_data): Delete function.
336 (gdbarch_obstack_zalloc): New function.
337 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
338 Assert that the architecture is not initialized.
339 (gdbarch_alloc): Allocate an obstack, allocate the architecture
340 vector from the obstack.
341 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
342 architecture obstack.
343 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
344 (set_gdbarch_data): Assert that the data is not initialized.
345 (struct gdbarch_data): Delete member "free".
346 (register_gdbarch_data): Do not initialize "free".
347 * gdbarch.h, gdbarch.c: Re-generate.
349 2003-07-22 Andrew Cagney <cagney@redhat.com>
351 * configure.in (build_warnings): Add -Wformat-nonliteral.
352 * configure: Re-generate.
354 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
356 * dwarf2loc.c (locexpr_describe_location): Fix typos.
358 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
360 * findvar.c (read_var_value): Remove case for thread local storage
361 variables. It is now entirely handled by the dwarf2 location
363 * printcmd.c (address_info): Ditto.
364 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
366 (struct symbol): Remove objfile field, which was used by
367 LOC_THREAD_LOCAL_STATIC only.
368 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
369 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
370 usage of objfile pointer.
371 * dwarf2loc.c (locexpr_describe_location): Add case to handle
372 thread local variables.
373 Add include of objfiles.h.
374 * dwarf2expr.c (execute_stack_op): Add comments about thread local
376 * Makefile.in (dwarf2loc.o): Update dependencies.
378 2003-07-22 Andrew Cagney <cagney@redhat.com>
380 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
382 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
383 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
384 (struct value): Add opaque declaration.
385 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
387 2003-07-21 Andrew Cagney <cagney@redhat.com>
389 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
390 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
392 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
394 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
395 regcache_cooked_read_unsigned instead of read_register.
396 (m68hc11_saved_pc_after_call): Likewise.
397 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
398 instead of write_register.
399 (m68hc11_register_type): New function.
400 (m68hc11_register_virtual_type): Remove.
401 (m68hc11_store_return_value): Convert to use the regcache.
402 (m68hc11_extract_struct_value_address): Likewise.
403 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
404 m68hc11_register_type; undeprecate store_return_value and
405 extract_struct_value_address.
407 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
409 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
410 and translate to use regcache.
411 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
413 2003-07-18 Andrew Cagney <cagney@redhat.com>
415 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
416 * gdbarch.h, gdbarch.c: Re-generate.
417 * i386-tdep.c (i386_gdbarch_init): Do not set
418 DWARF2_BUILD_FRAME_INFO.
419 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
421 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
422 DWARF2_BUILD_FRAME_INFO.
424 2003-07-18 Andrew Cagney <cagney@redhat.com>
426 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
427 * disasm.c (gdb_disassemble_info): Initilize di.arch.
429 2003-07-18 Andrew Cagney <cagney@redhat.com>
431 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
432 frame_unwind_address_in_block, instead of frame_pc_unwind.
433 (dwarf2_frame_cache): Ditto.
435 2003-07-18 Andrew Cagney <cagney@redhat.com>
437 * user-regs.h (struct gdbarch): Declare opaque.
438 * ui-out.h (struct ui_file): Declare opaque.
439 * dwarf2-frame.h (struct frame_info): Declare opaque.
441 2003-07-18 Kris Warkentin <kewarken@qnx.com>
443 * nto-procfs.c: Clean ARI hits. Change #include <..> to
445 (procfs_meminfo): Change strerror to safe_strerror.
446 (procfs_can_run): Remove K&R badness.
448 2003-07-17 Michael Snyder <msnyder@redhat.com>
450 * remote-sim.c: Comment typo fix.
452 2003-07-17 Andrew Cagney <cagney@redhat.com>
454 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
456 * sparc-tdep.c (sparc_intreg_size): Make non-static.
457 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
458 GDB_MULTI_ARCH_PARTIAL.
460 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
462 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
463 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
464 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
466 2003-07-16 Theodore A. Roth <troth@openavr.org>
468 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
470 (avr_frame_unwind_cache): Don't unwind FP for main.
472 Save the computed prev_sp.
473 (avr_saved_regs_unwinder): Remove function.
474 (avr_frame_prev_register): Use PC unwind logic from
475 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
477 2003-07-16 Andrew Cagney <cagney@redhat.com>
479 * frame-base.h (frame_base_p_ftype): Delete definition.
480 (frame_base_append_predicate): Delete declaration.
481 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
482 (frame_unwind_append_predicate): Delete declaration.
483 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
484 (append_predicate): Delete parameter "p".
485 (frame_unwind_append_predicate): Delete function.
486 (frame_unwind_append_sniffer): Update call to append_predicate.
487 (frame_unwind_free): Delete function.
488 (_initialize_frame_unwind): Pass NULL as "free" to
489 register_gdbarch_data.
490 (frame_unwind_init): Append the dummy_frame_sniffer.
491 (frame_unwind_find_by_frame): Simplify.
492 * frame-base.c (struct frame_base_table): Delete field "p".
493 (append_predicate): Delete parameter "p".
494 (frame_base_append_predicate): Delete function.
495 (frame_base_append_sniffer): Update call to append_predicate.
496 (frame_base_free): Delete function.
497 (frame_base_find_by_frame): Simplify.
498 (_initialize_frame_base): Pass NULL as "free" to
499 register_gdbarch_data.
500 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
501 (x86_64_sigtramp_frame_sniffer): Replace
502 "x86_64_sigtramp_frame_p".
503 (x86_64_init_abi): Set the frame unwind sniffers.
504 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
505 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
506 (m68k_gdbarch_init): Set the frame unwind sniffers.
507 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
508 "i386_sigtramp_frame_p".
509 (i386_frame_sniffer): Replace "i386_frame_p".
510 (i386_gdbarch_init): Set the frame unwind sniffers.
511 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
512 (avr_gdbarch_init): Set the frame unwind sniffers.
513 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
514 "alpha_sigtramp_frame_p"
515 (alpha_heuristic_frame_sniffer): Replace
516 "alpha_heuristic_frame_p".
517 (alpha_gdbarch_init): Set the frame unwind sniffers.
518 (alpha_dwarf2_init_abi): Ditto.
519 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
520 "alpha_debug_frame_p".
521 (alpha_mdebug_frame_base_sniffer): Replace
522 "alpha_mdebug_frame_base_p".
523 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
524 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
525 (d10v_gdbarch_init): Set the frame unwind sniffer.
526 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
527 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
528 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
529 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
530 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
531 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
533 2003-07-16 Michael Snyder <msnyder@redhat.com>
535 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
536 should go thru sh_dsp_register_sim_regno, else the dsp regs
537 will not get the right values.
539 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
541 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
542 deprecated_store_floating by call to store_typed_floating.
543 (sh_sh4_register_convert_to_raw): Substitute call to
544 deprecated_extract_floating by call to extract_typed_floating.
546 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
548 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
550 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
552 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
553 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
554 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
556 (do_pseudo_register): Remove.
557 (sh_push_dummy_code): New function.
558 (sh64_store_struct_return): Rename from sh_store_struct_return.
559 Only called for sh64 now.
560 (sh_extract_struct_value_address): Regcache'ify.
561 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
562 and accomodate new tasks.
563 (sh64_push_return_address): Rename from sh_push_return_address.
564 Only called for sh64 now.
565 (sh_default_extract_return_value): Rename from sh_extract_return_value.
567 (sh3e_sh4_extract_return_value): Regcache'ify.
568 (sh_default_store_return_value): Ditto.
569 (sh3e_sh4_store_return_value): Ditto.
570 (sh_default_register_byte): Remove.
571 (sh_sh4_register_byte): Remove.
572 (sh_default_register_raw_size): Remove.
573 (sh_sh4_register_raw_size): Remove.
574 (sh_register_virtual_size): Remove.
575 (sh_sh3e_register_virtual_type): Remove.
576 (sh_sh3e_register_type): New function.
577 (sh_sh4_register_virtual_type): Remove.
578 (sh_sh4_register_type): New function.
579 (sh_default_register_virtual_type): Remove.
580 (sh_default_register_type): New function.
581 (do_fv_register_info): Add parameters to accomodate call from
582 sh_print_registers_info.
583 (do_dr_register_info): Ditto.
584 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
585 Add parameters to accomodate call from sh_print_registers_info.
586 (sh_do_fp_register): Ditto.
587 (sh64_do_pseudo_register): Call do_dr_register_info,
588 do_fv_register_info and sh_do_fp_register with default parameters.
589 (sh_do_register): Add parameters to accomodate call from
590 sh_print_registers_info.
591 (sh_print_register): Ditto.
592 (sh_print_registers_info): Rename from sh_do_registers_info.
593 Add parameters to be used as gdbarch_print_registers_info
594 implementation. Accomodate removed do_pseudo_register function
596 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
597 function pointer. Call sh_print_register with default parameters.
598 (sh64_do_registers_info): Call sh_print_registers_info instead of
599 sh_do_registers_info.
600 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
601 detection of deprecated vs. non-deprecated functionality.
602 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
603 function pointer assignments by direct function calls.
605 2003-07-15 Andrew Cagney <cagney@redhat.com>
607 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
608 (frame_register_unwind, create_new_frame): Ditto.
609 (legacy_get_prev_frame, get_frame_type): Ditto.
610 (get_frame_base_address): Use frame_base_find_by_frame.
611 (get_frame_locals_address): Use frame_base_find_by_frame.
612 (get_frame_args_address): Use frame_base_find_by_frame.
613 * frame-base.h (frame_base_sniffer_ftype): Declare.
614 (frame_base_append_sniffer): Declare.
615 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
616 * frame-base.c (append_predicate): Add a "sniffer" parameter.
617 (frame_base_append_sniffer): New function.
618 (frame_base_append_predicate): Add a NULL sniffer.
619 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
620 (struct frame_base_table): Add "sniffer".
621 (frame_base_free): Free the "sniffer" table.
622 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
623 (frame_unwind_append_sniffer): Declare.
624 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
625 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
626 (struct frame_unwind_table): Add "sniffer", delete "middle".
627 (append_predicate): Add "sniffer" parameter, append the sniffer.
628 (frame_unwind_init): Update append_predicate call.
629 (frame_unwind_append_sniffer): New function.
630 (frame_unwind_append_predicate): Update append_predicate call.
631 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
633 2003-07-15 Andrew Cagney <cagney@redhat.com>
635 * frame.c (get_prev_frame): Move disabled inside_entry_func to
636 before code inhibiting repeated unwind attempts. Add to
637 commentary on that test's problems.
638 * blockframe.c (inside_main_func): Look for "main" in the minimal
640 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
643 2003-07-15 Andrew Cagney <cagney@redhat.com>
645 * complaints.c (struct explanation): Define.
646 (struct complaints): Change type of "explanation" to "struct
648 (symfile_explanations): Convert to a "struct explanation" table.
649 (vcomplaint): Update.
651 2003-07-15 Michal Ludvig <mludvig@suse.cz>
653 * x86-64-linux-nat.c (regmap): Removed.
654 (supply_gregset, fill_gregset): Call
655 x86_64_linux_(fill,supply)_gregset functions.
656 * x86-64-linux-tdep.c (USER_*): New defines.
657 (user_to_gdb_regmap, x86_64_core_fns): New structure.
658 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
660 (fetch_core_registers): Ditto.
661 (_initialize_x86_64_linux_tdep): Call add_core_fns().
662 * x86-64-linux-tdep.h: New file.
663 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
665 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
667 2003-07-13 Mark Kettenis <kettenis@gnu.org>
669 * x86-64-tdep.c (x86_64_store_return_value): Use
670 regcache_cooked_write_part instead of regcache_cooked_write.
672 * configure.host: Add x86_64-*-freebsd*.
673 * configure.tgt: Add x86_64-*-freebsd*.
674 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
675 * amd64fbsd-nat.c: New file.
676 * amd64fbsd-tdep.c: New file.
677 * config/i386/nm-fbsd64.h: New file.
678 * config/i386/fbsd64.mh: New file.
679 * config/i386/fbsd64.mt: New file.
681 2003-07-11 Mark Kettenis <kettenis@gnu.org>
683 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
684 `sc_regs_offset' and `sc_fpregs_offset'.
685 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
686 SIGFRAME_FPREGSAVE_OFF): Remove defines.
687 (alpha_sigtramp_register_address): Rewrite to use new members of
688 `struct gdbarch_tdep'.
689 (alpha_gdbarch_init): Initialize new members of struct
691 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
692 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
693 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
694 (alphafbsd_pc_in_sigtramp): Implement.
695 (alphafbsd_sigtramp_offset): New function.
696 (alphafbsd_sigcontext_addr): New function.
697 (alphafbsd_init_abi): Initialize signal trampoline related members
698 of `struct gdbarch_tdep'.
699 (_initialize_alphafbsd_tdep): Add prototype.
701 2003-07-11 Theodore A. Roth <troth@openavr.org>
703 * Makefile.in (install-only): Quote sed expression when generating
706 2003-07-11 Richard Henderson <rth@redhat.com>
708 * Makefile.in (dwarf2-frame.o): Add complaints_h.
709 * dwarf2-frame.c: Include complaints.h.
710 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
711 variable initialization; return NULL on error.
712 (decode_frame_entry): New.
714 2003-07-11 Andrew Cagney <cagney@redhat.com>
716 * frame.h (frame_address_in_block): Delete declaration.
717 * blockframe.c (frame_address_in_block): Delete function.
718 (get_frame_block): Use get_frame_address_in_block.
719 (block_innermost_frame): Ditto.
720 * stack.c (print_frame, backtrace_command_1): Ditto.
722 * frame.h (get_frame_address_in_block): Declare.
723 (frame_unwind_address_in_block): Declare.
724 * frame.c (frame_unwind_address_in_block): New function.
725 (get_frame_address_in_block): New function.
727 2003-07-10 Andrew Cagney <cagney@redhat.com>
729 * gdbarch.sh: Simplify predicate methods. Remove need to provide
730 pre-default. Note: re-generate has no effect.
732 2003-07-10 Andrew Cagney <cagney@redhat.com>
734 * gdbarch.sh: When a variable, but not a function, compare against
735 0. Fix problem in previous patch.
736 * gdbarch.c: Re-generate.
738 2003-07-10 Andrew Cagney <cagney@redhat.com>
740 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
741 functions against NULL, not 0.
742 * gdbarch.c: Re-generate.
744 2003-07-10 Fred Fish <fnf@ninemoons.com>
746 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
747 null string instead of a null pointer.
748 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
750 2003-07-09 Michael Snyder <msnyder@redhat.com>
752 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
754 2003-07-09 Mark Kettenis <kettenis@gnu.org>
756 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
757 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
758 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
759 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
760 * x86-64-tdep.c: ... from here.
762 2003-07-09 Andreas Schwab <schwab@suse.de>
764 * m68k-tdep.h (enum struct_return): Define.
765 (struct gdbarch_tdep): Add struct_return.
766 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
767 bytes are padded to the right, not to the left. Pass struct value
768 address in register %a1, not on stack.
769 (m68k_use_struct_convention): New function.
770 (m68k_gdbarch_init): Set use_struct_convention. Initialize
771 struct_return in tdep to pcc_struct_return.
772 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
775 2003-07-09 Joel Brobecker <brobecker@gnat.com>
777 * somread.c (som_symfile_offsets): Fix compilation error.
779 2003-07-09 Andrew Cagney <cagney@redhat.com>
781 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
782 Add comments about the checks.
784 2003-07-08 Andrew Cagney <cagney@redhat.com>
786 * Makefile.in: Make dependency section headers consistent.
787 (config_h): Move to $BUILD headers section.
788 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
789 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
790 (ada-exp.tab.c): Move to YACC/LEX section.
791 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
792 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
794 2003-07-08 Kris Warkentin <kewarken@qnx.com>
796 * nto-procfs.c: Cleaned up a bunch of ARI hits.
797 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
798 of strerror with safe_strerror, use ISO C function definitions,
799 and replace instances of sprintf with snprintf.
801 2003-07-07 Andrew Cagney <cagney@redhat.com>
803 * frame.c (get_prev_frame): Enable check for identical frames.
804 Update comments. Update error messages.
806 2003-07-07 Joel Brobecker <brobecker@gnat.com>
808 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
810 2003-07-07 Joel Brobecker <brobecker@gnat.com>
812 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
813 sort_symtab_syms, no longer necessary.
815 2003-07-07 Joel Brobecker <brobecker@gnat.com>
817 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
819 2003-07-07 Joel Brobecker <brobecker@gnat.com>
821 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
822 (mips_register_byte): Likewise.
824 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
826 * Makefile.in (sparc_tdep_h): New.
827 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
828 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
829 * sparc-linux-nat.c: Include "sparc-tdep.h".
830 * sparc-nat.c: Likewise.
831 * sparc-tdep.c: Likewise.
832 * sparc64nbsd-nat.c: Likewise.
833 * sparcnbsd-nat.c: Likewise.
834 * sparcnbsd-tdep.c: Likewise.
835 * sparc-tdep.h: New file.
836 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
837 and sparc_npc_regnum.
839 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
841 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
842 (mips_linux_cannot_store_register): List supported instead of
843 unsupported registers.
845 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
847 * disasm.c (dump_insns): Separate instructions from addresses.
849 2003-07-07 Andreas Schwab <schwab@suse.de>
851 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
853 * m68k-tdep.c (NUM_FREGS): Delete.
854 (SIG_PC_FP_OFFSET): Delete.
855 (TARGET_M68K): Delete.
856 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
857 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
858 P_MOVEL_SP, P_MOVEML_SP): Define.
859 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
861 (m68k_register_raw_size): Delete.
862 (m68k_register_virtual_size): Delete.
863 (m68k_register_type): Renamed from m68k_register_virtual_type and
864 add gdbarch argument.
865 (m68k_store_struct_return): Delete.
866 (m68k_deprecated_extract_return_value): Delete.
867 (m68k_deprecated_extract_struct_value_address): Delete.
868 (m68k_frame_chain): Delete.
869 (m68k_frame_saved_pc): Delete.
870 (m68k_fix_call_dummy): Delete.
871 (m68k_push_dummy_frame): Delete.
872 (m68k_pop_frame): Delete.
873 (m68k_extract_return_value): New function.
874 (m68k_store_return_value): Rewrite using regcache.
875 (m68k_extract_struct_value_address): Rewrite using regcache.
876 (m68k_push_dummy_call): New function.
877 (struct m68k_frame_cache): Define.
878 (m68k_alloc_frame_cache): New function.
879 (m68k_analyze_frame_setup): New function.
880 (m68k_analyze_register_saves): New function.
881 (m68k_analyze_prologue): New function.
882 (m68k_skip_prologue): Rewrite using above functions.
883 (m68k_unwind_pc): New function.
884 (m68k_frame_cache): New function.
885 (m68k_frame_this_id): New function.
886 (m68k_frame_prev_register): New function.
887 (m68k_frame_unwind): New variable.
888 (m68k_frame_p): New function.
889 (m68k_sigtramp_frame_cache): New function.
890 (m68k_sigtramp_frame_this_id): New function.
891 (m68k_sigtramp_frame_prev_register): New function.
892 (m68k_sigtramp_frame_unwind): New variable.
893 (m68k_sigtramp_frame_p): New function.
894 (m68k_frame_base_address): New function.
895 (m68k_frame_base): New function.
896 (m68k_unwind_dummy_id): New function.
897 (fill_gregset): Use regcache_collect.
898 (fill_fpregset): Likewise.
899 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
901 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
902 deprecated_init_frame_pc, deprecated_store_struct_return,
903 deprecated_extract_return_value, deprecated_store_return_value,
904 deprecated_frame_chain, deprecated_frame_saved_pc,
905 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
906 deprecated_register_virtual_size,
907 deprecated_max_register_raw_size,
908 deprecated_max_register_virtual_size,
909 deprecated_register_virtual_type, deprecated_register_size,
910 deprecated_register_byte, deprecated_register_bytes,
911 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
912 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
913 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
914 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
915 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
916 deprecated_push_dummy_frame, deprecated_pop_frame,
917 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
918 only if SYSCALL_TRAP is defined. Set extract_return_value,
919 store_return_value, extract_struct_value_address, register_type,
920 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
922 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
923 M68K_MAX_REGISTER_SIZE): Define.
924 (struct m68k_sigtramp_info): Define.
925 (struct gdbarch_tdep): Add get_sigtramp_info.
926 * m68klinux-nat.c (fetch_register): Use register_size instead of
927 REGISTER_RAW_SIZE. Don't put assignment in if.
928 (store_register): Likewise.
929 (fetch_inferior_registers): Likewise.
930 (store_inferior_registers): Likewise.
931 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
932 (m68k_linux_frame_saved_pc): Delete.
933 (m68k_linux_sigcontext_reg_offset,
934 m68k_linux_ucontext_reg_offset): Define.
935 (m68k_linux_get_sigtramp_info): New function.
936 (m68k_linux_extract_return_value): Rewrite using regcache.
937 (m68k_linux_store_return_value): Likewise.
938 (m68k_linux_extract_struct_value_address): Likewise.
939 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
940 Don't set deprecated_frame_saved_pc,
941 deprecated_extract_return_value, deprecated_store_return_value,
942 deprecated_extract_struct_value_address. Set
943 extract_return_value, store_return_value,
944 extract_struct_value_address.
946 2003-07-07 Andrew Cagney <cagney@redhat.com>
948 * expprint.c: Include "user-regs.h" instead of "frame.h".
949 (print_subexp): Use user_reg_map_regnum_to_name, instead of
950 frame_map_regnum_to_name.
951 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
952 (frame_map_name_to_regnum): Simplify, call
953 user_reg_map_name_to_regnum.
954 (frame_map_regnum_to_name): Simplify, call
955 user_reg_map_regnum_to_name.
956 (frame_register_unwind): Update.
957 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
958 (_initialize_frame_reg): Call user_reg_add_builtin.
959 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
960 (value_of_register): Use value_of_user_reg.
961 * eval.c (evaluate_subexp_standard): Update.
962 * parse.c (write_dollar_variable): Update.
963 * d10v-tdep.c (d10v_print_registers_info): Update.
964 * infcmd.c (registers_info): Update.
965 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
966 (builtin_regs_h): Delete macro.
967 (user_regs_h): Define.
968 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
969 (builtin-regs.o): Delete target.
970 (user-regs.o): Specify dependencies.
971 (expprint.o): Update dependencies.
972 (findvar.o): Update dependencies.
973 (frame.o): Update dependencies.
974 (std-regs.o): Update dependencies.
976 2003-07-06 Christopher Faylor <cgf@redhat.com>
978 * win32-nat.c (solib_symbols_add): Use one variable for all section
979 address stuff. Pass variable rather than address of variable to
980 safe_symbol_file_add.
982 2003-07-06 Andreas Schwab <schwab@suse.de>
984 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
986 2003-07-04 Joel Brobecker <brobecker@gnat.com>
988 * rs6000-nat.c (vmap_symtab): Fix compilation error.
990 2003-07-04 Kris Warkentin <kewarken@qnx.com>
992 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
994 2003-07-04 Kris Warkentin <kewarken@qnx.com>
996 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
997 * config/i386/nto.mh: New file.
998 * config/i386/nm-nto.h: New file.
999 * configure.host: Add i[3456]86-*-nto*.
1001 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1003 * remote-vx.c (vx_add_symbols): Fix compilation error.
1005 2003-07-03 Andrew Cagney <cagney@redhat.com>
1007 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1008 * gdbarch.h, gdbarch.c: Re-generate.
1009 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1010 (legacy_register_name): Declare.
1011 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1012 (REGISTER_NAME): Define.
1013 * sparc-tdep.c (legacy_register_name): New function.
1014 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1015 (REGISTER_NAME): Define.
1016 (hppa64_register_name): Declare.
1017 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1018 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1019 (hppa64_register_name): New function.
1020 (hppa_register_name): New function.
1021 * arch-utils.c (legacy_register_name): Delete.
1022 * arch-utils.h (legacy_register_name): Delete.
1024 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1026 * cli/cli-interp.c (cli_interpreter_resume): Update the
1027 cli_uiout's stream to gdb_stdout.
1029 2003-07-03 Andrew Cagney <cagney@redhat.com>
1031 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1033 * gdbarch.h, gdbarch.c: Re-generate.
1034 * regcache.c (init_regcache_descr): Use legacy code when either
1035 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1037 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1039 * NEWS: Move "set logging" entry into GDB 6.0 section.
1041 2003-07-02 Jim Blandy <jimb@redhat.com>
1043 * s390-tdep.c (struct frame_extra_info): new member:
1044 'stack_bought_valid'.
1045 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1046 initialize fextra_info->stack_bought.
1047 (s390_frameless_function_invocation): Don't trust the value of
1048 fextra_info_ptr->stack_bought unless
1049 fextra_info->stack_bought_valid is set.
1051 New S390 prologue analyzer.
1052 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1053 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1054 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1055 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1056 compute_x_addr, s390_on_stack, s390_store,
1057 s390_get_signal_frame_info): New functions.
1058 (S390_NUM_SPILL_SLOTS): New macro.
1059 (s390_get_frame_info): Rewritten.
1060 (is_arg_reg): Deleted.
1062 Break out the decoding of S/390 instructions into separate
1063 functions, to make it more legible, and easier to check
1065 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1066 is_rx, is_rxe): New functions.
1067 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1068 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1069 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1070 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1071 enums for opcode values. (Is this an improvement?)
1073 2003-07-02 Andrew Cagney <cagney@redhat.com>
1075 * i386-tdep.c: Revert change committed as part of trad-frame code
1078 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1080 * breakpoint.c (insert_catchpoint): Make static.
1082 2003-07-02 Andreas Schwab <schwab@suse.de>
1084 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1085 former ia64_push_arguments and ia64_push_return_address, and use
1086 regcache functions instead of read/write_register.
1087 (ia64_gdbarch_init): Set push_dummy_call instead of
1088 deprecated_push_arguments and deprecated_push_return_address.
1090 2003-07-01 Andreas Jaeger <aj@suse.de>
1092 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1094 Set %rax only to number of SSE registers used.
1096 2003-07-01 Andrew Cagney <cagney@redhat.com>
1098 * trad-frame.h: Update comments, a -1 .addr is reserved.
1099 (trad_frame_value_p, trad_frame_addr_p): Declare.
1100 (trad_frame_reg_p): Declare.
1101 (trad_frame_set_value): Rename trad_frame_register_value.
1102 (trad_frame_set_unknown): Declare.
1103 * trad-frame.c (trad_frame_realreg_p): New function.
1104 (trad_frame_addr_p, trad_frame_value_p): New function.
1105 (trad_frame_set_unknown): New function.
1106 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1107 (trad_frame_prev_register): Use trad_frame_realreg_p,
1108 trad_frame_addr_p and trad_frame_value_p.
1109 (trad_frame_set_value): Rename trad_frame_register_value.
1110 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1111 and trad_frame_set_value.
1113 2003-06-30 Jim Blandy <jimb@redhat.com>
1115 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1116 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1117 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1118 for 16 registers, and then 32 more bytes.
1119 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1121 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1122 Move up in the file, since it's now used by is_simple_arg.
1123 (is_simple_arg): Don't assume registers are four bytes long.
1124 Exclude all double arguments. Extended floats are not simple
1126 (is_power_of_two): New function.
1127 (pass_by_copy_ref): Call is_power_of_two, and check that the
1128 length fits in a register, rather than listing all the acceptable
1129 sizes. Extended floats are not passed by reference.
1130 (s390_push_arguments): Don't assume registers are four bytes long.
1131 Reserve an argument register to point to the buffer for structures
1132 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1133 S390_STACK_FRAME_OVERHEAD.
1135 2003-06-30 Andreas Schwab <schwab@suse.de>
1137 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1138 format error message.
1140 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1142 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1144 2003-06-30 David Carlton <carlton@kealia.com>
1146 Band-aid for PR c++/1245.
1147 * Makefile.in (cp-support.o): Depend on complaints_h.
1148 * cp-support.c: Include complaints.h. Add declaration for
1149 find_last_component.
1150 (cp_find_first_component): Separate code into
1151 cp_find_first_component_aux.
1152 (cp_find_first_component_aux): Call demangled_name_complaint.
1153 (demangled_name_complaint): New.
1155 2003-06-30 Andrew Cagney <cagney@redhat.com>
1157 * remote.c (remote_write_bytes): Explicitly compute and then use
1158 the payload size. Update comments to reflect. Fixes problem of
1159 GDB not sending small packets as found by Fred Fish.
1161 2003-06-30 Andrew Cagney <cagney@redhat.com>
1163 * remote.c (remote_async_wait): Fix -Wformat problem.
1165 2003-06-29 Andrew Cagney <cagney@redhat.com>
1167 * remote.c (remote_wait): Call error, and not warning, when the
1169 (remote_async_wait): Ditto.
1171 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1173 * sparc-tdep.c (sparc_y_regnum): Make external again.
1175 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1177 * cli/cli-logging.c (pop_output_files): Add void to function
1180 2003-06-29 Andrew Cagney <cagney@redhat.com>
1182 * frame.c (frame_register_unwind): Use unsigned char when dumping
1183 the buffer contents.
1185 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1187 * cli/cli-logging.c: New file.
1188 * cli-out.c (struct ui_out_data): Add original_stream.
1189 (cli_redirect): New function.
1190 (cli_ui_out_impl): Add cli_redirect.
1191 (cli_out_new): Initialize original_stream.
1192 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1193 (uo_redirect, ui_out_redirect): New.
1194 * ui-out.h (struct ui_out_impl): Add redirect member.
1195 (redirect_ftype): New.
1196 (ui_out_redirect): Add prototype.
1197 * Makefile.in: Add rules for cli-logging.c.
1198 * NEWS: Mention "set logging".
1200 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1202 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1204 2003-06-27 Andrew Cagney <cagney@redhat.com>
1206 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1207 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1208 * avr-tdep.c (avr_call_dummy_address): Delete function.
1209 (avr_gdbarch_init): Do not set call_dummy_address.
1211 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1213 * symfile.c (syms_from_objfile): Move variables to inner block.
1214 Move the checks for the non-mainline case a bit earlier to avoid
1215 doing some useless computations.
1217 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1219 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1221 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
1223 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1226 2003-06-26 Michael Chastain <mec@shout.net>
1228 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1229 gdb/testsuite/gdb.c++/pr-1210.exp.
1231 2003-06-26 Andrew Cagney <cagney@redhat.com>
1233 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1234 altivec_expression.h and altivec_registers.h.
1236 2003-06-26 Andrew Cagney <cagney@redhat.com>
1238 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1239 info->mach when MIPS16. Patch suggested by Fred Fish.
1241 2003-06-26 Andrew Cagney <cagney@redhat.com>
1243 * utils.c (internal_vproblem): Print the problem to a reason
1244 buffer and then pass to query. Make the msg variable more local.
1246 2003-06-26 Andrew Cagney <cagney@redhat.com>
1248 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1249 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1250 * gdbarch.h, gdbarch.c: Re-generate.
1251 * frame-base.c (default_frame_args_address): Update. Use
1252 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1254 (default_frame_locals_address): Ditto for
1255 DEPRECATED_FRAME_LOCALS_ADDRESS.
1256 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1257 (vax_frame_num_args): Update.
1258 (vax_gdbarch_init): Update.
1259 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1260 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1261 * mcore-tdep.c (mcore_gdbarch_init): Update.
1262 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1263 * ia64-tdep.c (ia64_gdbarch_init): Update.
1264 * symtab.h (address_class): Update comments.
1265 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1266 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1267 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1268 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1269 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1270 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1271 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1272 * alpha-mdebug-tdep.c: Update.
1273 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1275 2003-06-26 Andreas Jaeger <aj@suse.de>
1277 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1278 of SSE registers so that varargs functions work. Rework handling
1279 of passing arguments on the stack.
1280 (x86_64_store_return_value): Return double and float values in SSE
1283 2003-06-24 Michael Chastain <mec@shout.net>
1285 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1286 the "constructor breakpoints ignored" bug.
1288 2003-06-25 David Carlton <carlton@kealia.com>
1290 * MAINTAINERS: Update e-mail address.
1292 2003-06-24 Jim Blandy <jimb@redhat.com>
1294 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1296 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1298 (ppc_linux_init_abi): Register it as the
1299 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1301 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1302 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1305 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1306 (ppc64_standard_linkage_target): Use it.
1308 2003-06-23 Andrew Cagney <cagney@redhat.com>
1310 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1311 for 0 "int0" and 4 "int32" sized registers.
1312 * gdbtypes.c (builtin_type_int0): Define.
1313 (build_gdbtypes): Initialize builtin_type_int0.
1314 * gdbtypes.h (builtin_type_int0): Declare.
1316 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1318 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1319 as characters are unsigned.
1321 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1324 * dwarfread.c (struct_type): Skip static fields without crashing.
1326 2003-06-22 Andrew Cagney <cagney@redhat.com>
1328 GDB 6.0 branch created.
1330 * PROBLEMS: Update. Empty.
1333 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1335 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1336 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1338 2003-06-22 Andrew Cagney <cagney@redhat.com>
1340 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1341 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1344 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1346 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1349 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1351 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1352 argument of val_print.
1353 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1354 to the address argument of baseclass_offset or target_read_memory.
1355 Do add it to the argument of cp_print_value_fields.
1357 2003-06-21 Andrew Cagney <cagney@redhat.com>
1359 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1360 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1361 instead of 0..NUM_REGS.
1362 (mips_register_reggroup_p): New function.
1363 (mips_pseudo_register_write): New function.
1364 (mips_pseudo_register_read): New function.
1365 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1366 based on the register's type.
1367 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1369 (mips_get_saved_register): Simplify. Assert that REGNO is a
1371 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1372 (mips_register_type): Replace mips_register_virtual_type. Map
1373 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1375 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
1376 that the register is cooked / virtual.
1377 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1378 Only get the extra info when needed.
1379 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1380 (mips32_heuristic_proc_desc): Fetch the cooked register.
1381 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1382 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1383 (mips_print_register): Use gdbarch_register_type, instead of
1384 REGISTER_VIRTUAL_TYPE.
1385 (print_gp_register_row): Use gdbarch_register_type, instead of
1386 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
1387 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1388 Print the pseudo / cooked registers.
1389 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1390 Print the pseudo / cooked registers.
1391 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
1392 REG_NUM is pseudo / cooked.
1393 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1394 (mips_n32n64_xfer_return_value): Ditto.
1395 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1396 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1397 (mips_register_sim_regno): New function.
1398 (mips_gdbarch_init): Set deprecated_register_byte,
1399 register_group_p, pseudo_register_write, pseudo_register_read,
1400 register_sim_regno, and num_pseudo_regs. Set register_type,
1401 instead of register_virtual_type.
1402 * Makefile.in (mips-tdep.o): Update dependencies.
1403 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1404 REGISTER_VIRTUAL_TYPE.
1405 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1406 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1407 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1408 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1409 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1411 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1413 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1414 * cli/cli-cmds.c: Include "gdb_vfork.h".
1415 (shell_escape): Use vfork.
1417 2003-06-21 Andrew Cagney <cagney@redhat.com>
1419 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1420 32 bit floating-point register saves.
1422 * frame.h (deprecated_unwind_get_saved_register): Delete.
1423 * frame.c (deprecated_unwind_get_saved_register): Delete function.
1424 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1425 and deprecated_get_next_frame_hack instead of
1426 deprecated_unwind_get_saved_register.
1428 * mips-tdep.c (mips_dump_tdep): Do not print
1429 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1431 * frame.c (get_frame_register): New function.
1432 (frame_unwind_register_signed): New function.
1433 (get_frame_register_signed): New function.
1434 (frame_unwind_register_unsigned): New function.
1435 (get_frame_register_unsigned): New function.
1436 * frame.h: Add comments on naming schema.
1437 (get_frame_register, frame_unwind_register_signed): Declare.
1438 (get_frame_register_signed, get_frame_register_signed): Declare.
1439 (frame_unwind_register_unsigned): Declare.
1440 (get_frame_register_unsigned): Declare.
1442 2003-06-20 Theodore A. Roth <troth@openavr.org>
1444 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
1446 2003-06-20 Theodore A. Roth <troth@openavr.org>
1448 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
1449 (avr_read_sp): Ditto.
1451 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
1453 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
1454 * config/arm/nm-linux.h: Likewise.
1455 * config/arm/tm-linux.h: Likewise.
1456 * config/ia64/nm-linux.h: Likewise.
1457 * config/ia64/tm-ia64.h: Likewise.
1458 * config/s390/tm-linux.h: Likewise.
1459 * config/s390/tm-s390.h: Likewise.
1460 * s390-nat.c: Likewise.
1461 * s390-tdep.c: Likewise.
1463 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
1464 * config/ia64/linux.mt: Likewise.
1465 * config/m68k/linux.mh: Likewise.
1466 * config/mips/linux.mt: Likewise.
1467 * config/powerpc/linux.mh: Likewise.
1468 * config/sh/linux.mt: Likewise.
1470 2003-06-19 Kris Warkentin <kewarken@qnx.com>
1472 * solib.c (solib_open): Change tests for whether to search
1473 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
1476 2003-06-19 Theodore A. Roth <troth@openavr.org>
1478 * avr-tdep.c (avr_frame_address): Delete function.
1479 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
1480 set_gdbarch_frame_args_address.
1482 2003-06-19 Andrew Cagney <cagney@redhat.com>
1484 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
1485 (REGISTER_CONVERT_FROM_TYPE): Delete.
1486 (mips_register_convert_to_type): Delete declaration.
1487 (mips_register_convert_from_type): Delete declaration.
1488 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
1491 2003-06-19 Michael Snyder <msnyder@redhat.com>
1493 * linux-nat.h: New file.
1494 * linux-nat.c: Include linux-nat.h.
1495 * lin-lwp.c: Include linux-nat.h.
1496 Move struct lwp_info def to linux-nat.h.
1497 * linux-proc.c: Include linux-nat.h.
1498 (linux_make_note_section): Iterate over lwps instead of threads.
1499 (linux_do_thread_registers): Use lwp instead of merged pid.
1500 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
1501 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
1502 Add dependency on linux_nat_h.
1504 2003-06-19 Theodore A. Roth <troth@openavr.org>
1506 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
1508 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1510 * varobj.c (get_type, get_target_type): Use check_typedef.
1512 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1514 * breakpoint.c (insert_catchpoint): Call internal_error.
1516 2003-06-19 Theodore A. Roth <troth@openavr.org>
1518 * avr-tdep.c (avr_push_dummy_code): Delete function.
1519 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
1521 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1523 * arch-utils.c (default_prepare_to_proceed): Remove.
1524 (generic_prepare_to_proceed): Remove.
1525 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
1526 (generic_prepare_to_proceed): Remove prototype.
1527 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
1528 * gdbarch.c: Regenerate.
1529 * gdbarch.h: Regenerate.
1530 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
1531 * hppah-nat.c (hppa_switched_threads): Remove.
1532 * infrun.c (prepare_to_proceed): New static function, copied from
1533 generic_prepare_to_proceed. Remove select_it argument.
1534 (proceed): Call prepare_to_proceed.
1535 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
1537 (ptrace_wait): Don't set the removed variables.
1538 (hppa_switched_threads): Remove.
1539 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
1540 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
1541 (lin_lwp_prepare_to_proceed): Remove prototype.
1542 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
1543 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
1545 2003-06-18 Theodore A. Roth <troth@openavr.org>
1547 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
1549 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
1550 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
1551 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
1552 (AVR_PROLOGUE_*): Enumerate prologue types.
1553 (struct frame_extra_info): Remove.
1554 (struct avr_unwind_cache): Define.
1555 (avr_write_sp): Delete function.
1556 (avr_read_fp): Ditto.
1557 (avr_init_extra_frame_info): Ditto.
1558 (avr_pop_frame): Ditto.
1559 (avr_frame_saved_pc): Ditto.
1560 (avr_saved_pc_after_call): Ditto.
1561 (avr_push_return_address): Ditto.
1562 (avr_frame_chain): Ditto.
1563 (avr_store_struct_return): Ditto.
1564 (avr_push_arguments): Ditto.
1565 (avr_scan_prologue): Update comments. Changed to set up the info for
1566 cache unwinding. Now returns end of prologue PC.
1567 (avr_skip_prologue): Better handling of functions lacking a prologue
1568 by using avr_scan_prologue.
1569 (avr_scan_arg_moves): New function.
1570 (avr_saved_regs_unwinder): Ditto.
1571 (avr_frame_unwind_cache): Ditto.
1572 (avr_unwind_pc): Ditto.
1573 (avr_frame_this_id): Ditto.
1574 (avr_frame_prev_register): Ditto.
1575 (avr_frame_p): Ditto.
1576 (avr_frame_base_address ): Ditto.
1577 (avr_unwind_dummy_id): Ditto.
1578 (avr_push_dummy_code): Ditto.
1579 (push_stack_item): Ditto.
1580 (pop_stack_item): Ditto.
1581 (avr_push_dummy_call): Ditto.
1582 (struct stack_item): Define.
1583 (avr_frame_unwind): Declare structure.
1584 (avr_frame_base): Ditto.
1585 (avr_gdbarch_init): Remove calls to
1586 set_gdbarch_deprecated_init_frame_pc,
1587 set_gdbarch_deprecated_target_read_fp,
1588 set_gdbarch_deprecated_dummy_write_sp,
1589 set_gdbarch_deprecated_fp_regnum,
1590 set_gdbarch_deprecated_push_arguments,
1591 set_gdbarch_deprecated_push_return_address,
1592 set_gdbarch_deprecated_pop_frame,
1593 set_gdbarch_deprecated_store_struct_return,
1594 set_gdbarch_deprecated_frame_init_saved_regs,
1595 set_gdbarch_deprecated_init_extra_frame_info,
1596 set_gdbarch_deprecated_frame_chain,
1597 set_gdbarch_deprecated_frame_saved_pc,
1598 set_gdbarch_deprecated_saved_pc_after_call.
1599 Add calls to set_gdbarch_push_dummy_call,
1600 set_gdbarch_push_dummy_code,
1601 frame_unwind_append_predicate,
1602 frame_base_set_default,
1603 set_gdbarch_unwind_dummy_id,
1604 set_gdbarch_unwind_pc.
1607 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
1609 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
1610 registers for H8/300S.
1611 (h8300_print_registers_info): Ditto.
1612 (h8300_gdbarch_init): Accommodate register count for H8/300S.
1614 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
1616 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
1617 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1618 (lin_lwp_wait): Likewise. Update comments.
1619 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
1620 (pull_pid_from_list, linux_record_stopped_pid): New.
1622 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
1624 * ada-lang.c (scan_discrim_bound): Name first argument.
1625 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
1626 declared by ALL_BLOCK_SYMBOLS.
1628 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
1630 * ada-tasks.c (find_function_in_inferior): Don't declare it.
1631 ("regcache.h"): Include it.
1632 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
1634 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1636 * NEWS: Mention gdbserver detach change and "disconnect" command.
1637 * infcmd.c (disconnect_command): New function.
1638 (_initialize_infcmd): Add ``disconnect'' command.
1639 * remote.c (remote_async_detach): Delete.
1640 (remote_detach): Merge remote_async_detach.
1641 (remote_disconnect): New.
1642 (init_remote_ops): Set to_disconnect.
1643 (init_remote_cisco_ops): Likewise.
1644 (init_remote_async_ops): Likewise. Use remote_detach.
1645 * target.c (cleanup_target): Default to_disconnect.
1646 (update_current_target): Inherit to_disconnect.
1647 (target_disconnect, debug_to_disconnect): New functions.
1648 (setup_target_debug): Set to_disconnect.
1649 * target.h (struct target_ops): Add to_disconnect.
1650 (target_disconnect): Add prototype.
1652 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1654 * breakpoint.c (insert_catchpoint): New function.
1655 (insert_breakpoints): Use catch_exceptions to call
1656 insert_catchpoint. Disable catchpoints if they fail to insert.
1658 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1660 * symfile.c (reread_symbols): Clear sym_private.
1662 2003-06-17 Andrew Cagney <cagney@redhat.com>
1664 * trad-frame.h (struct frame_info): Add opaque declaration.
1665 * remote-fileio.h (struct cmd_list_element): Add opaque
1667 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
1670 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1672 * remote.c (remote_prepare_to_store): Replace call to
1673 deprecated_read_register_bytes with multiple regcache_raw_read
1676 2003-06-17 Kris Warkentin <kewarken@qnx.com>
1678 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
1679 (nto_find_and_open_solib): Likewise.
1680 (nto_init_solib_absolute_prefix): Likewise.
1681 (_initialize_nto_tdep): Fix indentation.
1683 2003-06-17 Kris Warkentin <kewarken@qnx.com>
1685 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
1687 2003-06-17 Kris Warkentin <kewarken@qnx.com>
1689 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
1691 2003-06-17 Jim Blandy <jimb@redhat.com>
1693 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
1695 2003-06-16 Theodore A. Roth <troth@openavr.org>
1697 * avr-tdep.c (avr_extract_return_value): New function.
1698 (avr_gdbarch_init): Set extract_return_value method.
1700 2003-06-16 Andrew Cagney <cagney@redhat.com>
1702 * frame.h (deprecated_get_next_frame_hack): Declare.
1703 * frame.c (legacy_saved_regs_prev_register): Only require
1704 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
1705 there are always saved regs.
1706 (deprecated_generic_get_saved_register): Do not require
1707 DEPRECATED_FRAME_INIT_SAVED_REGS.
1708 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
1709 use frame ID unwind instead.
1710 (deprecated_get_next_frame_hack): New function.
1712 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
1714 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
1715 (h8300_push_dummy_call): ...this function. Some minor optimization.
1716 (h8300_push_return_address): Remove.
1717 (h8300_gdbarch_init): Remove calls to
1718 set_gdbarch_deprecated_dummy_write_sp,
1719 set_gdbarch_deprecated_push_arguments and
1720 set_gdbarch_deprecated_push_return_address.
1721 Add call to set_gdbarch_push_dummy_call.
1723 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
1725 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
1726 (E_PSEUDO_EXR_REGNUM): Ditto.
1727 (h8300_is_argument_spill): Check for instructions moving argument
1728 registers into safe registers.
1729 (h8300_skip_prologue): Check for stm instruction to push registers
1730 used for register variables onto stack.
1731 (gdb_print_insn_h8300): Remove.
1732 (h8300_examine_prologue): Add a comment.
1733 (h8300_register_name): Take pseudo registers into account.
1734 (h8300s_register_name): Ditto.
1735 (h8300sx_register_name): Ditto.
1736 (h8300_print_register): Ditto.
1737 (h8300_print_registers_info): Define "nice" printing order.
1738 (h8300_saved_pc_after_call): Take pseudo registers into account.
1739 (h8300_register_type): Ditto. Return type used for remote connection
1740 when requesting real CCR or EXR register, return actual type when
1741 requesting pseudo CCR or EXR.
1742 (h8300_pseudo_register_read): New function.
1743 (h8300_pseudo_register_write): Ditto.
1744 (h8300_dbg_reg_to_regnum): Ditto.
1745 (h8300s_dbg_reg_to_regnum): Ditto.
1746 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
1747 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
1748 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
1749 set_gdbarch_print_insn architecture dependent.
1750 Call set_gdbarch_pseudo_register_read and
1751 set_gdbarch_pseudo_register_write.
1752 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
1754 2003-06-16 Andrew Cagney <cagney@redhat.com>
1756 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
1757 * gdbarch.h, gdbarch.c: Re-generate.
1758 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1759 * s390-tdep.c (s390_gdbarch_init): Update.
1760 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1761 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1762 * mips-tdep.c (mips_gdbarch_init): Update.
1763 * mcore-tdep.c (mcore_gdbarch_init): Update.
1764 * cris-tdep.c (cris_gdbarch_init): Update.
1765 * infcall.c (call_function_by_hand): Update.
1766 * ia64-tdep.c (ia64_push_arguments): Update comment.
1767 * frame.c (legacy_get_prev_frame): Do not assume
1768 SAVE_DUMMY_FRAME_TOS_P.
1769 * dummy-frame.c (find_dummy_frame): Update comment.
1771 2003-06-16 Andrew Cagney <cagney@redhat.com>
1773 * regcache.c (do_cooked_read): Do not use register_valid_p.
1775 2003-06-15 Theodore A. Roth <troth@openavr.org>
1777 * avr-tdep.c (avr_register_type): Remove a blank line.
1778 (avr_scan_prologue): Correct some comments.
1780 2003-06-15 Theodore A. Roth <troth@openavr.org>
1782 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
1784 Properly scan prologues generated by gcc with the -mcall-prologues
1786 Add code to scan -mcall-prologues for mega devices.
1788 2003-06-15 Theodore A. Roth <troth@openavr.org>
1790 * avr-tdep.c (avr_register_byte): Delete function.
1791 (avr_register_raw_size): Delete function.
1792 (avr_register_virtual_size): Delete function.
1793 (avr_register_virtual_type): Delete function.
1794 (avr_register_type): New function.
1795 (avr_address_to_pointer): Remove unused code.
1796 (avr_read_fp): Need to read FP as two separate bytes due to change to
1797 avr_register_type() usage.
1798 (avr_gdbarch_init): Don't set deprecated_register_size.
1799 Don't set deprecated_register_bytes.
1800 Don't set deprecated_register_byte.
1801 Don't set deprecated_register_raw_size.
1802 Don't set deprecated_max_register_raw_size.
1803 Don't set deprecated_register_virtual_size.
1804 Don't set deprecated_max_register_virtual_size.
1805 Don't set deprecated_register_virtual_type.
1806 Set register_type method.
1808 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
1810 * Makefile.in (linux-nat.o): Add rule.
1811 * linux-nat.c: New file.
1812 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
1813 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
1814 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
1815 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
1816 * config/arm/linux.mh (NATDEPFILES): Likewise.
1817 * config/i386/linux.mh (NATDEPFILES): Likewise.
1818 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
1819 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1820 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1821 * config/mips/linux.mh (NATDEPFILES): Likewise.
1822 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
1823 * config/s390/s390.mh (NATDEPFILES): Likewise.
1824 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1826 2003-06-15 Mark Kettenis <kettenis@gnu.org>
1828 * i387-tdep.c: Reorder includes, fix some whitespace issues and
1829 replace out-of-date comment.
1831 2003-06-15 Andrew Cagney <cagney@redhat.com>
1833 * rdi-share/host.h (Fail): Change to a varargs function.
1834 * remote-rdi.c (Fail): Update.
1836 2003-06-15 Mark Kettenis <kettenis@gnu.org>
1838 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
1839 (i386_convert_register_p, i386_register_to_value,
1840 i386_register_from_value): Handle types longer than 8 bytes.
1842 2003-06-15 Mark Kettenis <kettenis@gnu.org>
1844 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
1845 Move floating-point code to new function in i387-tdep.c.
1846 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
1847 New functions containing code moved here from i386-tdep.c.
1848 * i387-tdep.h: Add opaque declaration for `struct type'.
1849 (i387_register_to_value, i387_value_to_register): New prototypes.
1850 * x86-64-tdep.c (x86_64_convert_register_p): New function.
1851 (x86_64_init_abi): Set convert_register_p, register_to_value and
1852 value_to_register here.
1854 2003-06-14 Andrew Cagney <cagney@redhat.com>
1856 * mips-tdep.c (mips_register_to_value): Make static.
1857 (mips_value_to_register): Make static.
1858 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
1859 * ia64-tdep.c (ia64_register_raw_size): Make static.
1860 (ia64_register_virtual_size): Make static.
1861 (ia64_register_byte): Make static.
1862 * i387-tdep.c: Include "i387-tdep.h".
1863 (print_387_control_word): Delete function.
1864 (print_387_status_word): Delete function.
1865 (print_387_status_bits): Delete function.
1866 (print_387_control_bits): Delete function.
1867 * Makefile.in (i387-tdep.o): Update dependencies.
1868 * rdi-share/host.h (Fail): Declare.
1869 * remote-rdi.c (Fail): Update to match declaration.
1871 2003-06-14 Andrew Cagney <cagney@redhat.com>
1873 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
1874 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
1875 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
1876 * config/djgpp/fnchange.lst: Delete "remote-array.c".
1877 * README: Delete reference to remote-array.
1878 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
1879 (remote-array.o): Delete target.
1880 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
1881 * remote-array.c: Delete file.
1883 2003-06-14 Andrew Cagney <cagney@redhat.com>
1884 Mark Kettenis <kettenis@gnu.org>
1886 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
1887 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
1888 parameter with "frame".
1889 * gdbarch.h, gdbarch.c: Re-generate.
1890 * frame.h (put_frame_register): Declare.
1891 * frame.c (put_frame_register): New function.
1892 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
1893 (legacy_register_to_value): Rewrite, use "frame" to get the
1895 (legacy_value_to_register): Rewrite, use "frame" to find the
1896 register's location before storing.
1897 * arch-utils.h (legacy_convert_register_p): Update.
1898 (legacy_register_to_value, legacy_value_to_register): Update.
1899 * findvar.c (value_from_register): Rewrite, eliminate use of
1900 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
1901 "frame" to REGISTER_TO_VALUE.
1902 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
1903 lval_reg_frame_relative + lval_register branch of the switch. Do
1904 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
1905 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1906 I386_EDI_REGNUM): New defines.
1907 (i386_next_regnum, i386_convert_register_p,
1908 i386_register_to_value, i386_value_to_register): New functions.
1909 (i386_register_convertible, i386_register_convert_to_virtual,
1910 i386_convert_to_raw): Remove functions.
1911 (i386_gdbarch_init): Set convert_register_p, register_to_value and
1912 value_to_register instead of register_convertible,
1913 register_convert_to_virtual and register_convert_to_raw.
1914 * mips-tdep.c (mips_convert_register_p): New function.
1915 (mips_value_to_register): Replace mips_register_convert_from_type.
1916 (mips_register_to_value): Replace mips_register_convert_to_type.
1917 (mips_gdbarch_init): Set conver_register_p, value_to_register and
1919 * alpha-tdep.c (alpha_convert_register_p): Update.
1920 (alpha_value_to_register): Update, store the register.
1921 (alpha_register_to_value): Update, fetch the register.
1923 2003-06-14 Theodore A. Roth <troth@openavr.org>
1925 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
1926 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
1927 Don't set deprecated_call_dummy_words.
1928 Remove commented out set_gdbarch_believe_pcc_promotion() call.
1929 Don't set remote_translate_xfer_address.
1930 (avr_io_reg_read_command): Remove commented out debug printf.
1933 2003-06-14 Theodore A. Roth <troth@openavr.org>
1935 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
1936 causes gdb to seg fault.
1938 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
1940 * sparc-nat.c (fetch_inferior_registers): Correct
1941 a reference to "registers".
1943 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
1945 * Makefile.in (exc_request_U_h): Define
1946 (exc_request_S_h): Likewise.
1947 (msg_reply_S_h): Likewise.
1948 (msg_U_h): Likewise.
1949 (notify_S_h): Likewise.
1950 (process_reply_S_h): Likewise.
1951 (gnu-nat.o): Depend on gdb_obstack_h
1952 * gnu-nat.c: Include "gdb_obstack.h".
1954 2003-06-13 Andrew Cagney <cagney@redhat.com>
1956 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
1957 * gdbarch.h, gdbarch.c: Re-generate.
1959 2003-06-13 Andrew Cagney <cagney@redhat.com>
1961 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
1962 when deprecated REGISTER macros can be deleted.
1963 * gdbarch.h, gdbarch.c: Re-generate.
1965 2003-06-13 Jim Blandy <jimb@redhat.com>
1967 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
1968 Linux entry point symbols for _dl_debug_state, too.
1970 2003-06-13 Andrew Cagney <cagney@redhat.com>
1972 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
1973 available, do not use the FP register, and always save the TOS.
1974 * dummy-frame.c (dummy_frame_this_id): Do not assert
1975 SAVE_DUMMY_FRAME_TOS.
1976 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
1977 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
1978 (i386_push_dummy_call): Add 8 to the returned SP.
1979 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
1980 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
1981 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
1982 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
1983 (x86_64_push_dummy_call): Return "sp + 16".
1984 (x86_64_init_abi): Do not set save_dummy_frame_tos.
1985 * alpha-tdep.c (alpha_gdbarch_init): Do not set
1986 save_dummy_frame_tos.
1988 2003-06-13 Jim Blandy <jimb@redhat.com>
1990 * frv-tdep.c (frv_use_struct_convention): Delete static
1991 declaration for function deleted in my change of 2003-06-12.
1993 2003-06-13 Theodore A. Roth <troth@openavr.org>
1995 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
1996 (avr_pointer_to_address): Shift code addrs left 1 bit.
1997 (avr_convert_from_func_ptr_addr): Delete function since operation is
1998 better handled by avr_address_to_pointer and avr_pointer_to_address.
1999 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2001 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2003 From Kelley Cook <kelleycook@wideopenwest.com>:
2004 * configure.host: Accept i[34567]86 variants.
2005 * configure.tgt: Likewise.
2006 * nlm/configure.in: Likewise.
2007 * nlm/configure: Regenerated.
2009 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2011 * arm-tdep.c (solib-svr4.h): Dont' include it.
2012 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2013 * arm-linux-tdep.c: ... here. Make static.
2014 (arm_linux_init_abi): Register it.
2015 (solib-svr4.h): Include it.
2016 * Makefile.in: Update dependencies.
2017 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2018 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2020 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2022 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2023 indicate registers used for return values.
2024 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2025 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2027 (h8300_init_extra_frame_info): Ditto.
2028 (h8300_frame_locals_address): Removed.
2029 (h8300_frame_args_address): Removed.
2030 (h8300_extract_return_value): Use new regcache structure. Only care
2032 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2033 (h8300_store_return_value): Use new regcache structure. Only care
2035 (h8300h_store_return_value): Same function for 32 bit CPUs.
2036 (h8300_store_struct_return): Removed.
2037 (h8300_extract_struct_value_address): Use new regcache structure.
2038 (h8300h_extract_struct_value_address): Removed.
2039 (h8300_push_dummy_code): New function.
2040 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2041 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2042 set_gdbarch_store_return_value architecture dependent.
2043 Call set_gdbarch_push_dummy_code and
2044 set_gdbarch_extract_struct_value_address.
2045 Remove calls to set_gdbarch_frame_args_address,
2046 set_gdbarch_frame_locals_address,
2047 set_gdbarch_deprecated_store_struct_return,
2048 set_gdbarch_deprecated_extract_return_value,
2049 set_gdbarch_deprecated_extract_struct_value_address,
2050 set_gdbarch_deprecated_call_dummy_words and
2051 set_gdbarch_deprecated_sizeof_call_dummy_words.
2053 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2055 * h8300-tdep.c (h8300_register_byte): Remove.
2056 (h8300h_register_byte): Remove.
2057 (h8300_register_virtual_type): Remove. Substitute by...
2058 (h8300_register_type): New function.
2059 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2060 (h8300h_extract_struct_value_address): Ditto.
2061 (h8300_gdbarch_init): Drop calls to
2062 set_gdbarch_deprecated_register_byte and
2063 set_gdbarch_deprecated_register_virtual_type.
2064 Add call to set_gdbarch_register_type.
2066 2003-06-13 Andrew Cagney <cagney@redhat.com>
2068 * gdbarch.sh: Update comments on registers.
2069 (deprecated_register_byte): Rename register_byte.
2070 (deprecated_register_raw_size): Rename register_raw_size.
2071 (deprecated_register_virtual_size): Rename register_virtual_size.
2072 (deprecated_register_virtual_type): Rename register_virtual_type.
2073 * gdbarch.h, gdbarch.c: Re-generate.
2074 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2075 * vax-tdep.c (vax_gdbarch_init): Update.
2076 * v850-tdep.c (v850_gdbarch_init): Update.
2077 * sparc-tdep.c (sparc_gdbarch_init): Update.
2078 * sh-tdep.c (sh_gdbarch_init): Update.
2079 * s390-tdep.c (s390_gdbarch_init): Update.
2080 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2081 * ns32k-tdep.c: Update.
2082 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2083 * mips-tdep.c (mips_gdbarch_init): Update.
2084 * mcore-tdep.c (mcore_gdbarch_init): Update.
2085 * m68k-tdep.c (m68k_gdbarch_init): Update.
2086 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2087 * ia64-tdep.c (ia64_gdbarch_init): Update.
2088 * hppa-tdep.c (hppa_gdbarch_init): Update.
2089 * h8300-tdep.c (h8300_gdbarch_init): Update.
2090 * frv-tdep.c (frv_gdbarch_init): Update.
2091 * cris-tdep.c (cris_gdbarch_init): Update.
2092 * avr-tdep.c (avr_gdbarch_init): Update.
2093 * alpha-tdep.c (alpha_gdbarch_init): Update.
2094 * arm-tdep.c (arm_gdbarch_init): Update.
2096 2003-06-13 Andrew Cagney <cagney@redhat.com>
2098 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2099 mips_o32_use_struct_convention with always_use_struct_convention.
2101 2003-06-12 David Carlton <carlton@kealia.com>
2103 * cp-namespace.c (cp_set_block_scope): Comment out
2104 processing_has_namespace_info branch.
2106 2003-06-12 Jim Blandy <jimb@redhat.com>
2108 Recognize and skip 64-bit PowerPC Linux linkage functions.
2109 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2110 insn_pattern, insns_match_pattern, d_field, ds_field): New
2111 functions, macros, and types for working with PPC instructions.
2112 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2113 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2114 ppc64_skip_trampoline_code): New functions, variables, and macros
2115 for recognizing and skipping linkage functions.
2116 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2117 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2119 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2120 register offsets for both the 32- and 64-bit interfaces.
2122 Actually finish the job started by my change of 2003-05-29.
2123 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2124 other #definition of this.
2125 (ppc_linux_skip_trampoline_code): Remove declaration.
2126 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2128 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2131 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2132 'long' on ppc64-*-linux*.
2134 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2135 isn't #defined, assume the register doesn't exist: act as if
2136 tdep->ppc_mq_regnum were -1.
2138 * configure.host, configure.tgt: Add entries for
2139 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2141 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2144 * arch-utils.c (always_use_struct_convention): New function.
2145 * arch-utils.h (always_use_struct_convention): New prototype.
2146 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2147 (alpha_gdbarch_init): Register always_use_struct_convention,
2148 instead of alpha_use_struct_convention.
2149 * cris-tdep.c (cris_use_struct_convention): Delete.
2150 (cris_gdbarch_init): Register always_use_struct_convention,
2151 instead of cris_use_struct_convention.
2152 * frv-tdep.c (frv_use_struct_convention): Delete.
2153 (frv_gdbarch_init): Register always_use_struct_convention,
2154 instead of frv_use_struct_convention.
2155 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2156 (h8300_gdbarch_init): Register always_use_struct_convention,
2157 instead of h8300_use_struct_convention.
2158 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2159 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2160 instead of mips_o32_use_struct_convention.
2162 2003-06-12 Andrew Cagney <cagney@redhat.com>
2164 * wince.c: Include "mips-tdep.h".
2165 * mips-tdep.h (mips_next_pc): Declare.
2166 * mcore-tdep.c: Make more local functions static.
2167 * Makefile.in (wince.o): Update dependencies.
2169 2003-06-12 David Carlton <carlton@kealia.com>
2171 * symtab.c (lookup_symbol_aux_minsyms): Replace
2172 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2173 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2174 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2175 SYMBOL_NATURAL_NAME.
2177 2003-06-12 Andreas Schwab <schwab@suse.de>
2179 * Makefile.in (tuiDisassem.o): Update dependencies.
2181 2003-06-12 David Carlton <carlton@bactrian.org>
2183 * symtab.h: Delete declaration of make_symbol_overload_list.
2184 Add declaration of lookup_partial_symbol.
2185 * symtab.c (remove_params): Move to cp-support.c.
2186 (overload_list_add_symbol, make_symbol_overload_list)
2187 (sym_return_val_size, sym_return_val_index): Ditto.
2188 (lookup_partial_symbol): Make extern.
2189 * cp-support.h: Add declaration of make_symbol_overload_list.
2190 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2191 symtab.h, and block.h.
2192 (remove_params): Move here from symtab.c.
2193 (overload_list_add_symbol, make_symbol_overload_list)
2194 (sym_return_val_size, sym_return_val_index): Ditto.
2195 * valops.c: Include cp-support.h.
2196 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2197 frame_h, and block_h.
2198 (valops.o): Depend on cp_support_h.
2200 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2202 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2203 substitute by NUM_REGS throughout.
2204 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2205 (h8300s_register_name): New function for H8S registers.
2206 (h8300sx_register_name): Ditto for H8SX registers.
2207 (h8300_print_register): Revise register printing, avoid depending
2209 (h8300_register_byte): Only care for H8/300 registers.
2210 (h8300h_register_byte): New function for any other architecture.
2211 (h8300_register_raw_size): Remove.
2212 (h8300_register_virtual_type): Revise to return actually useful
2214 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2215 (h8300h_extract_struct_value_address): New function for any other
2217 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2218 set_gdbarch_register_name, set_gdbarch_register_byte,
2219 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2220 Remove calls to set_gdbarch_deprecated_register_size,
2221 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2222 set_gdbarch_deprecated_max_register_raw_size,
2223 set_gdbarch_register_virtual_size and
2224 set_gdbarch_deprecated_max_register_virtual_size entirely.
2225 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2226 set_gdbarch_long_double_bit.
2228 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2230 * doublest.c (convert_doublest_to_floatformat): When dealing
2231 with the implied integer bit, only alter mant_bits if we are
2232 processing a full 32 bits of mantissa.
2234 2003-06-11 David Carlton <carlton@bactrian.org>
2236 * dictionary.h: New.
2237 * dictionary.c: New.
2238 * block.h: Add opaque declaration for struct dictionary.
2239 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2241 (BLOCK_DICT): New macro.
2242 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2243 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2245 (ALL_BLOCK_SYMBOLS): Update definition.
2246 * Makefile.in (SFILES): Add dictionary.c.
2247 (dictionary_h): New.
2248 (COMMON_OBS): Add dictionary.o.
2249 (dictionary.o): New.
2250 (ada-lang.o): Depend on dictionary_h.
2251 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2252 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2253 (mi-cmd-stack.o): Ditto.
2254 (gdbtk-cmds.o): Update dependencies.
2255 (gdbtk-stack.o): Ditto.
2256 * ada-lang.c: Include dictionary.h.
2257 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2258 (fill_in_ada_prototype, debug_print_block): Ditto.
2259 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2260 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2262 * mdebugread.c: Include dictionary.h.
2263 (struct parse_stack): Delete 'maxsyms' member.
2264 (parse_symbol): Update calls to new_block. Delete calls to
2265 shrink_block. Use dictionary methods.
2266 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2267 Update calls to new_symtab. Don't maintain maxsyms data.
2268 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2269 (add_symbol): Just call dict_add_symbol.
2270 (new_symtab): Delete 'maxsyms' argument.
2271 (new_symtab): Update calls to new_block.
2272 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2273 (shrink_block): Delete function.
2274 (fixup_sigtramp): Update call to new_block. Add symbol via
2276 * jv-lang.c: Include dictionary.h.
2277 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2278 appropriately. Set class_symtab->free_func. Make sure the
2279 blockvector is big enough to hold two blocks.
2280 (add_class_symtab_symbol): Use dictionary methods.
2281 (free_class_block): New function.
2282 (type_from_class): Replace explicit iteration by
2284 * symtab.h (struct symtab): Replace 'free_ptr' method by
2286 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2288 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2290 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2291 Include dictionary.h.
2292 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2293 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2295 * objfiles.c: Include dictionary.h.
2296 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2297 * buildsym.c: Include dictionary.h.
2298 (finish_block): Use dictionary methods.
2299 (end_symtab): Set free_func to NULL, not free_ptr.
2300 * tracepoint.c: Include dictionary.h.
2301 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2302 (scope_info): Ditto.
2303 * stack.c: Include dictionary.h.
2304 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2305 (print_block_frame_labels, print_frame_arg_vars)
2306 (print_frame_args): Ditto.
2307 * symmisc.c (free_symtab_block): Use dictionary methods.
2308 (dump_symtab): Ditto.
2309 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2310 Include dictionary.h.
2311 * symfile.h: Delete declarations of sort_block_syms,
2313 * symfile.c (sort_block_syms): Delete.
2314 (sort_symtab_syms): Delete.
2315 * symtab.c: Include dictionary.h.
2316 (lookup_block_symbol): Use dictionary iterators.
2317 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2318 (search_symbols, make_symbol_completion_list): Ditto.
2319 (make_symbol_overload_list): Ditto.
2320 * valops.c (value_of_local): Use dict_empty.
2321 Include dictionary.h.
2323 2003-06-11 J. Brobecker <brobecker@gnat.com>
2325 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2327 2003-06-11 David Carlton <carlton@bactrian.org>
2329 * block.h (BLOCK_SHOULD_SORT): Delete.
2330 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2332 * ada-lang.c (ada_add_block_symbols): Ditto.
2333 * symfile.c (sort_block_syms): Delete.
2334 (sort_symtab_syms): Ditto.
2335 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2337 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2338 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2339 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2340 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2341 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2342 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2343 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2345 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2347 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
2350 2003-06-11 Andrew Cagney <cagney@redhat.com>
2352 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2353 REGISTER_CONVERTIBLE.
2354 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2355 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2356 * gdbarch.h, gdbarch.c: Re-generate.
2357 * arch-utils.h (deprecated_register_convertible_not): Rename
2358 generic_register_convertible_not.
2359 * arch-utils.c (deprecated_register_convertible_not): Rename
2360 generic_register_convertible.
2361 (legacy_convert_register_p, legacy_register_to_value): Update.
2362 * sh-tdep.c (sh64_push_arguments): Update.
2363 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2364 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2365 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2366 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2367 * arch-utils.c (legacy_value_to_register): Update.
2368 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2369 (rs6000_register_convert_to_raw): Make parameter "from" const.
2370 * mips-tdep.c (mips_gdbarch_init): Update.
2371 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2372 * infcmd.c (default_print_registers_info): Update.
2373 * ia64-tdep.c (ia64_gdbarch_init): Update.
2374 (ia64_register_convert_to_raw): Make parameter "from" const.
2375 * i386-tdep.c (i386_gdbarch_init): Update.
2376 (i386_register_convert_to_raw): Update.
2378 2003-06-11 Andrew Cagney <cagney@redhat.com>
2380 * remote-fileio.c: Include "remote-fileio.h".
2381 * Makefile.in (remote-fileio.o): Update dependencies.
2382 (remote_fileio_h): Fix typo.
2384 2003-06-11 Andrew Cagney <cagney@redhat.com>
2386 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2387 (xstormy16_save_dummy_frame_tos): Make static.
2388 (_initialize_xstormy16_tdep): Add declaration.
2389 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2390 * v850-tdep.c: Make local functions static.
2391 (_initialize_v850_tdep): Add declaration.
2392 * sparc-tdep.c: Make local functions static.
2393 (_initialize_sparc_tdep): Add declaration.
2394 * sh-tdep.c: Make local functions static.
2395 (_initialize_sh_tdep): Add declaration.
2396 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2397 * s390-tdep.c: Make local functions static.
2398 (_initialize_s390_tdep): Add declaration.
2399 * dbxread.c (find_stab_function_addr): Make static.
2400 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2401 * ocd.c (_initialize_remote_ocd): Add declaration.
2402 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2403 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2404 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2405 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2406 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2407 * remote-array.c (_initialize_array): Add declaration.
2408 (_initialize_remote_monitors): Add declaration.
2409 * remote-mips.c: Make local functions static.
2410 (_initialize_remote_mips): Add declaration.
2411 * mcore-tdep.c: Make all local functions static.
2412 (_initialize_mcore_tdep): Add declaration.
2413 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2414 * abug-rom.c (_initialize_abug_rom): Add declaration.
2415 * rom68k-rom.c (_initialize_rom68k): Add declaration.
2416 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2417 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2418 * remote-est.c (_initialize_est): Add declaration.
2419 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2420 (m68hc11_call_dummy_address): Make static.
2421 * ia64-tdep.c: Make local functions static.
2422 (_initialize_ia64_tdep): Add declaration.
2423 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2424 * monitor.c (monitor_wait_filter): Make static.
2425 (_initialize_remote_monitors): Add declaration.
2426 * remote-hms.c (_initialize_remote_hms): Add declaration.
2427 * remote-e7000.c (fetch_regs_from_dump): Make static.
2428 (expect_n): Make static.
2429 (_initialize_remote_e7000): Add declaration.
2430 * ser-e7kpc.c: Always include "defs.h".
2431 (_initialize_ser_e7000pc): Add declaration.
2432 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2433 * cris-tdep.c: Make all but one function static.
2434 (_initialize_cris_tdep): Add declaration.
2435 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2436 * solib.c (update_solib_list): Make static.
2437 (_initialize_solib): Add declaration.
2438 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2439 (_initialize_avr_tdep): Add declaration.
2440 * remote-rdi.c (voiddummy): Make static.
2441 (_initialize_remote_rdi): Add declaration.
2442 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2443 * remote-rdp.c (send_rdp): Make static.
2444 (_initialize_remote_rdp): Add declaration.
2445 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2447 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
2449 * remote-fileio.c: Make ari happy.
2451 2003-06-10 J. Brobecker <brobecker@gnat.com>
2453 * rs6000-nat.c (child_xfer_memory): Compute the right address when
2454 fetching the trailing bytes of the buffer we are about to write.
2456 2003-06-10 Andrew Cagney <cagney@redhat.com>
2458 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
2459 * Makefile.in (remote-fileio.o): Update dependencies.
2460 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
2461 include <setjmp.h>, or <sys/types.h> conditional on USG.
2462 (remote_fio_jmp_buf): Delete global variable.
2464 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
2465 Martin M. Hunt <hunt@redhat.com>
2467 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
2468 (SFILES): Add remote-fileio.c.
2469 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
2470 dependencies for building remote.o.
2471 * remote-fileio.c: New file implementing the remote File-I/O protocol.
2472 * remote-fileio.h: New header file defining remote File-I/O interface.
2473 * remote.c (remote_write_bytes, remote_read_bytes): Remove
2474 static storage class.
2475 (remote_wait, remote_async_wait): Call remote_fileio_request() on
2477 (_initialize_remote): Call initialize_remote_fileio().
2478 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
2479 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2480 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2481 (captured_main): Initialize new ui_files.
2482 * ui-file.c: Add read and fgets input functions.
2483 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
2484 (null_file_read): New function.
2485 (ui_file_read): New function.
2486 (set_ui_file_read): New function.
2487 (stdio_file_read): New function.
2488 * ui-file.h: New type ui_file_read_ftype.
2489 (set_ui_file_read): Declare.
2490 (ui_file_read): Declare.
2492 2003-06-09 Andrew Cagney <cagney@redhat.com>
2494 * frame.h (deprecated_unwind_get_saved_register): Rename
2495 generic_unwind_get_saved_register, update comments.
2496 * mips-tdep.c (mips_get_saved_register): Update.
2497 * frame.c (deprecated_unwind_get_saved_register): Update.
2499 2003-06-09 Andrew Cagney <cagney@redhat.com>
2501 * vax-tdep.c (vax_frame_locals_address): Delete function.
2502 (vax_gdbarch_init): Do not set frame_locals_address.
2503 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
2504 (m68hc11_gdbarch_init): Do not set frame_locals_address.
2505 * s390-tdep.c (s390_frame_args_address): Delete function.
2506 (s390_gdbarch_init): Do not set frame_args_address or
2507 frame_locals_address.
2508 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
2509 (ns32k_gdbarch_init): Do not set frame_locals_address.
2510 * hppa-tdep.c (hppa_frame_args_address): Delete function.
2511 (hppa_frame_locals_address): Delete function.
2512 (hppa_gdbarch_init): Do not set frame_args_address, or
2513 frame_locals_address.
2514 * arm-tdep.c (arm_frame_args_address): Delete.
2515 (arm_frame_locals_address): Delete.
2516 (arm_gdbarch_init): Do not set frame_args_address, or
2517 frame_locals_address.
2519 2003-06-09 Andrew Cagney <cagney@redhat.com>
2521 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
2522 * gdbarch.h, gdbarch.c: Re-generate.
2523 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
2524 * arch-utils.c (frame_num_args_unknown): Delete function.
2525 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
2526 (frame_info): Use FRAME_NUM_ARGS_P.
2527 * arm-tdep.c (arm_frame_num_args): Delete function.
2528 (arm_gdbarch_init): Do not set frame_num_args.
2529 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
2530 * hppa-tdep.c (hppa_frame_num_args): Delete function.
2531 (hppa_gdbarch_init): Do not set frame_num_args.
2532 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
2533 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2534 frame_num_args to default frame_num_args_unknown.
2535 * v850-tdep.c (v850_gdbarch_init): Ditto.
2536 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2537 * sh-tdep.c (sh_gdbarch_init): Ditto.
2538 * s390-tdep.c (s390_gdbarch_init): Ditto.
2539 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2540 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2541 * mips-tdep.c (mips_gdbarch_init): Ditto.
2542 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2543 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2544 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2545 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2546 * i386-tdep.c (i386_gdbarch_init): Ditto.
2547 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2548 * frv-tdep.c (frv_gdbarch_init): Ditto.
2549 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2550 * cris-tdep.c (cris_gdbarch_init): Ditto.
2551 * avr-tdep.c (avr_gdbarch_init): Ditto.
2552 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2554 2003-06-09 Andrew Cagney <cagney@redhat.com>
2556 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
2557 (print_frame_args): Moved to "stack.c".
2558 * stack.c: Include "gdb_assert.h".
2559 (print_frame_nameless_args): Moved from "printcmd.c", made static.
2560 (print_frame_args): Moved from "printcmd.c".
2561 * frame.h (print_frame_args): Delete declaration.
2562 * Makefile.in (stack.o): Update dependencies.
2564 2003-06-08 Andrew Cagney <cagney@redhat.com>
2566 * frame.c (get_prev_frame): Remove reference to
2567 frame_args_address_correct in comments.
2568 * frame-base.c (default_frame_args_address): Delete code
2569 conditional on FRAME_ARGS_ADDRESS_CORRECT.
2570 * vax-tdep.c (vax_frame_args_address_correct): Delete.
2571 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
2572 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
2573 (vax_frame_args_address_correct): Delete declaration.
2575 2003-06-08 Andrew Cagney <cagney@redhat.com>
2577 * gdbarch.sh (UNWIND_SP): Add.
2578 * gdbarch.h, gdbarch.c: Re-generate.
2579 * frame.c (frame_sp_unwind): New function.
2580 (get_frame_sp): New function.
2581 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
2582 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
2583 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
2585 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
2586 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
2588 2003-06-08 Andrew Cagney <cagney@redhat.com>
2590 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
2593 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
2594 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
2595 * config/m68k/tm-sun3.h: Update.
2596 * config/m68k/tm-m68klynx.h: Update.
2597 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
2599 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
2600 trad_frame". Update comments.
2601 * d10v-tdep.c (struct d10v_unwind_cache): Update.
2602 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
2603 (trad_frame_register_value, trad_frame_prev_register): Update.
2605 2003-06-08 Andrew Cagney <cagney@redhat.com>
2607 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
2608 from GCC's acinclude.m4.
2609 * configure.in: Check for getopt's delcaration.
2610 * aclocal.m4, config.in, configure: Re-generate.
2611 * main.c (error_init): Delete declaration.
2612 * defs.h (error_init): Declare.
2613 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
2614 (rs6000_convert_from_func_ptr_addr): Make static.
2615 (_initialize_rs6000_tdep): Add declaration.
2616 * cli/cli-cmds.c (dont_repeat): Delete declaration.
2617 (show_commands, set_verbose, show_history): Delete declaration.
2618 * top.h (set_verbose): Add declaration.
2619 (show_history, set_history, show_commands): Add declaration.
2620 (do_restore_instream_cleanup): Add declaration.
2621 * objc-lang.c (specialcmp): Make static.
2622 (print_object_command): Make static.
2623 (find_objc_msgsend): Make static.
2624 (find_objc_msgcall_submethod_helper): Make static.
2625 (find_objc_msgcall_submethod): Make static.
2626 (_initialize_objc_language): Add declaration.
2627 (find_implementation_from_class): Make static.
2628 (find_implementation): Make static.
2629 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
2630 * objc-lang.h (lookup_struct_typedef): Add declaration.
2631 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
2632 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
2633 (do_restore_user_call_depth): Make static.
2634 (do_restore_instream_cleanup): Delete declaration.
2635 (dont_repeat): Delete declaration.
2636 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
2637 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
2638 * reggroups.c (_initialize_reggroup): Add declaration.
2639 * cp-support.c (_initialize_cp_support): Add declaration.
2640 * cp-abi.c (_initialize_cp_abi): Add declaration.
2641 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
2642 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
2643 (_initialize_gnu_v3_abi): Add declaration.
2644 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
2645 (_initialize_gnu_v2_abi): Add declaration.
2646 * frame-base.c (_initialize_frame_base): Add declaration.
2647 * doublest.c (floatformat_from_length): Make static.
2648 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
2649 * frame.c (create_sentinel_frame): Make static.
2650 (_initialize_frame): Add declaration.
2651 * top.c (do_catch_errors): Make static.
2652 (gdb_rl_operate_and_get_next_completion): Make static.
2653 * typeprint.c: Include "typeprint.h".
2654 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
2655 (sentinel_frame_this_id): Make static.
2656 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
2657 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
2658 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
2659 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
2660 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
2661 * maint.c (maintenance_print_architecture): Make static.
2662 * signals/signals.c (_initialize_signals): Add declaration.
2663 * std-regs.c (_initialize_frame_reg): Add declaration.
2664 * jv-exp.y (push_variable): ISO C definition.
2665 (push_qualified_expression_name): Ditto.
2666 * memattr.c (_initialize_mem): Add declaration.
2667 * remote.c (remote_check_watch_resources): Make static.
2668 (remote_stopped_by_watchpoint): Make static.
2669 (remote_stopped_data_address): Make static.
2670 * d10v-tdep.c (nr_dmap_regs): Make static.
2671 (a0_regnum): Make static.
2672 (d10v_frame_unwind_cache): Make static.
2673 (d10v_frame_p): Make static.
2674 * osabi.c (show_osabi): Make static.
2675 (_initialize_gdb_osabi): Add extern declaration.
2676 * gdbtypes.c (make_qualified_type): Make static.
2677 (safe_parse_type): Make static.
2678 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
2679 * macrotab.c (macro_bcache_free): Make static.
2680 * interps.c (interp_set_quiet): Make static.
2681 (interpreter_exec_cmd): Make static.
2682 * stack.h (select_frame_command): New file.
2683 * stack.c: Include "stack.h".
2684 (select_frame_command_wrapper): Delete function.
2685 (select_frame_command): Make global.
2686 * infcall.c: Include "infcall.h".
2687 * linespec.c: Include "linespec.h".
2688 * symfile.c (sections_overlap): Make static.
2689 * cp-support.h (cp_initialize_namespace): ISO C declaration.
2690 * charset.c (_initialize_charset): Add missing prototype.
2691 * regcache.c (init_legacy_regcache_descr): Make static.
2692 (do_regcache_xfree): Make static.
2693 (regcache_xfer_part): Make static.
2694 (_initialize_regcache): Add missing prototype.
2695 * breakpoint.c (parse_breakpoint_sals): Make static.
2696 (breakpoint_sals_to_pc): Make static.
2697 * interps.h (clear_interpreter_hooks): ISO C declaration.
2698 * Makefile.in (stack_h): Define.
2699 (stack.o, typeprint.o, mi-main.o): Update dependencies.
2700 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
2702 2003-06-08 Andrew Cagney <cagney@redhat.com>
2704 * Makefile.in (d10v-tdep.o): Update dependencies.
2705 (SFILES): Add trad-frame.c.
2706 (trad_frame_h): Define.
2707 (COMMON_OBS): Add trad-frame.o.
2708 (trad-frame.o): Specify dependencies.
2709 * d10v-tdep.c: Include "trad-frame.h".
2710 (saved_regs_unwinder): Delete function.
2711 (d10v_frame_prev_register): Use trad_frame_prev_register.
2712 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
2713 trad_frame", delete "regs" and "prev_sp".
2714 (prologue_find_regs): Use trad-frame.
2715 * trad-frame.h, trad-frame.c: New files.
2717 2003-06-08 Mark Kettenis <kettenis@gnu.org>
2719 * dwarf2cfi.c, dwarf2cfi.h: Remove.
2721 2003-06-07 Adam Fedor <fedor@gnu.org>
2723 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
2724 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
2725 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
2726 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
2727 resolve_msgsend_super, resolve_msgsend_super_stret):
2730 2003-06-07 Andrew Cagney <cagney@redhat.com>
2732 * symfile.h: Re-indent, clean up comments.
2734 2003-06-07 Andrew Cagney <cagney@redhat.com>
2736 * inferior.h (deprecated_write_sp): Replace
2737 generic_target_write_sp.
2738 * regcache.c (deprecated_write_sp): Replace
2739 generic_target_write_sp.
2740 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2741 * vax-tdep.c (vax_gdbarch_init): Update.
2742 * v850-tdep.c (v850_gdbarch_init): Update.
2743 * sparc-tdep.c (sparc_gdbarch_init): Update.
2744 * sh-tdep.c (sh_gdbarch_init): Update.
2745 * s390-tdep.c (s390_gdbarch_init): Update.
2746 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2747 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2748 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2749 * mcore-tdep.c (mcore_gdbarch_init): Update.
2750 * m68k-tdep.c (m68k_gdbarch_init): Update.
2751 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2752 * ia64-tdep.c (ia64_gdbarch_init): Update.
2753 * h8300-tdep.c (h8300_gdbarch_init): Update.
2754 * frv-tdep.c (frv_gdbarch_init): Update.
2755 * cris-tdep.c (cris_gdbarch_init): Update.
2756 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
2758 2003-06-07 Andrew Cagney <cagney@redhat.com>
2760 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
2761 Assert that PC_REGNUM is valid.
2762 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
2764 2003-06-07 Andrew Cagney <cagney@redhat.com>
2766 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
2767 * gdbarch.h, gdbarch.c: Regenerate.
2768 * mn10300-tdep.c: Include "gdb_assert.h".
2769 (mn10300_read_fp): New function.
2770 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
2771 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
2772 * ia64-tdep.c: Include "gdb_assert.h".
2773 (ia64_read_fp): New function.
2774 (ia64_gdbarch_init): Set deprecated_target_read_fp to
2775 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
2776 * regcache.c (generic_target_read_sp): Delete function.
2777 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
2778 * inferior.h (generic_target_read_sp): Delete declaration.
2779 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
2780 generic_target_read_sp.
2781 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2782 * sparc-tdep.c (sparc_gdbarch_init): Ditto
2783 * sh-tdep.c (sh_gdbarch_init): Ditto.
2784 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2785 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
2787 2003-06-07 Andrew Cagney <cagney@redhat.com>
2789 * gdbarch.sh: Comment each field of startup_gdbarch.
2790 * gdbarch.h, gdbarch.c: Re-generate.
2792 2003-06-07 Andrew Cagney <cagney@redhat.com>
2794 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
2795 * gdbarch.h, gdbarch.c: Re-generate.
2796 * regcache.c: Update comments on read_pc et.al.
2797 (generic_target_read_pc): Delete function.
2798 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
2799 * inferior.h (generic_target_read_pc): Delete declaration.
2800 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
2801 generic_target_read_pc.
2802 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2803 * sh-tdep.c (sh_gdbarch_init): Ditto.
2804 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2805 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2807 2003-06-07 Andrew Cagney <cagney@redhat.com>
2809 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
2810 "index" with "special_local_sect". Use strcmp instead of STREQ.
2811 Append period to coments.
2813 2003-06-06 Mark Mitchell <mark@codesourcery.com>
2815 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
2816 (elfstab_offset_sections): Likewise.
2817 * gdb-stabs.h (stab_section_info): Likewise.
2818 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
2819 * objfiles.c (objfile_relocate): Likewise.
2820 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
2821 * remote.c (get_offsets): Likewise.
2822 (remote_cisco_objfile_relocate): Likewise.
2823 * somread.c (som_symfile_offsets): Likewise.
2824 * symfile.c (alloc_section_addr_info): New function.
2825 (build_section_addr_info_from_section_tab): Use it.
2826 (free_section_addr_info): Adjust.
2827 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
2828 (syms_from_objfile): Allocate local_addr dynamically.
2829 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
2831 (add_symbol_file_command): Allocate sect_opts dynamically.
2832 (reread_symbols): Avoid use of SECT_OFF_MAX.
2833 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
2834 (alloc_section_addr_info): Declare it.
2835 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
2836 * win32-nat.c (solib_symbols_add): Allocate section_addrs
2838 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
2840 2003-06-06 Andrew Cagney <cagney@redhat.com>
2842 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
2843 (d10v_frame_unwind_cache): Do not set "return_pc".
2845 2003-06-06 Michael Snyder <msnyder@redhat.com>
2847 * h8300-tdep.c: Make tidy (long lines).
2849 2003-06-06 Michal Ludvig <mludvig@suse.cz>
2851 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
2852 to regcache_collect().
2854 2003-06-05 J. Brobecker <brobecker@gnat.com>
2856 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
2857 pc_in_sigtramp multiarch method.
2858 (hppa_hpux_som_init_abi): Use it.
2859 (hppa_hpux_elf_init_abi): Likewise.
2860 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
2861 macro has been multiarched.
2862 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
2863 macro here, as hppa64 isn't multiarched yet.
2865 2003-06-05 Andrew Cagney <cagney@redhat.com>
2867 * Makefile.in (value_h): Add $(frame_h).
2868 * value.h: Include "frame.h".
2869 (struct value): Replace "frame_addr" with "frame_id".
2870 (VALUE_FRAME_ID): Replace VALUE_FRAME.
2871 * values.c (allocate_value): Use VALUE_FRAME_ID.
2872 (value_copy): Use VALUE_FRAME_ID.
2873 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
2874 * valops.c (value_assign): Update. Use frame_find_by_id.
2876 2003-06-05 Michal Ludvig <mludvig@suse.cz>
2878 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
2881 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
2883 * thread-db.c (check_event): For create/death event breakpoints,
2884 loop through all messages to ensure that we read the message
2885 corresponding to the breakpoint we are at.
2887 2003-06-04 Michael Snyder <msnyder@redhat.com>
2889 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
2891 2003-06-04 Mark Kettenis <kettenis@gnu.org>
2893 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
2894 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
2895 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
2896 when handling .eh_frame sections.
2898 2003-06-04 J. Brobecker <brobecker@gnat.com>
2900 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
2901 prepare_to_proceed procedure instead of the hppa-specific one.
2902 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
2904 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
2906 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
2907 * config.in: Regenerated.
2908 * configure.in: Add test for syscall function and check for
2909 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
2910 * configure: Regenerated.
2911 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
2913 (kill_lwp): New function that uses tkill syscall or
2914 uses kill, depending on whether threading model is nptl or not.
2915 All callers of kill() changed to use kill_lwp().
2916 (lin_lwp_wait): Make special check when WIFEXITED occurs to
2917 see if all threads have already exited in the nptl model.
2918 (stop_and_resume_callback): New callback function used by the
2919 lin_lwp_wait thread exit handling code.
2920 (stop_wait_callback): Check for threads already having exited and
2921 delete such threads fromt the lwp list when discovered.
2922 (stop_callback): Don't assert retcode of kill call.
2924 Roland McGrath <roland@redhat.com>
2925 * i386-linux-nat.c (ps_get_thread_area): New function needed by
2928 2003-06-03 Richard Henderson <rth@redhat.com>
2930 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
2931 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
2932 (alpha_sigtramp_frame_prev_register): Likewise.
2933 (alpha_heuristic_frame_prev_register): Likewise.
2934 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
2936 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
2937 alpha-specific register id names.
2938 (alpha_mdebug_frame_unwind_cache): Likewise.
2939 (alpha_mdebug_frame_prev_register): Likewise.
2941 2003-06-03 Richard Henderson <rth@redhat.com>
2943 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
2944 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
2945 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
2946 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
2948 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
2949 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2950 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
2952 * alpha-linux-tdep.c: Remove unnecessary includes.
2953 * Makefile.in (alpha-linux-tdep.o): Update.
2955 2003-06-03 Richard Henderson <rth@redhat.com>
2957 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
2958 (alphabsd_fill_fpreg): Likewise.
2960 2003-06-03 J. Brobecker <brobecker@gnat.com>
2962 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
2963 references to struct frame_info fields by calls to the equivalent
2964 accessors. Necessary now that frame_info is opaque.
2966 2003-06-03 J. Brobecker <brobecker@gnat.com>
2968 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
2969 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
2970 structure, field no longer exists.
2972 2003-06-03 J. Brobecker <brobecker@gnat.com>
2974 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2975 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
2977 2003-06-03 J. Brobecker <brobecker@gnat.com>
2979 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
2980 references to struct frame_info fields by calls to the equivalent
2981 accessors. Necessary now that frame_info is opaque.
2983 2003-06-03 J. Brobecker <brobecker@gnat.com>
2985 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
2986 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
2987 structure, field no longer exists.
2989 2003-06-03 Theodore A. Roth <troth@openavr.org>
2991 * remote.c (init_remote_state): Compute sizeof_g_packet by
2992 accumulation of the size of all registers instead of blindly using
2993 DEPRECATED_REGISTER_BYTES.
2995 2003-06-03 Michael Snyder <msnyder@redhat.com>
2997 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
2998 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3001 2003-06-03 J. Brobecker <brobecker@gnat.com>
3003 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3004 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3006 2003-06-03 Andrew Cagney <cagney@redhat.com>
3008 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3009 (sparc_convert_to_raw): Delete function.
3010 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3011 register_convert_to_virtual.
3013 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3015 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3016 layer if not dealing with a statically-linked threaded program.
3018 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3020 * solib.c (solib_open): Update comment to reflect actual search order.
3022 2003-06-03 Andrew Cagney <cagney@redhat.com>
3024 * frame.c (get_frame_memory_signed): New function.
3025 (get_frame_memory, get_frame_memory_unsigned): New function.
3026 (get_frame_arch): New function.
3027 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3028 (get_frame_memory, get_frame_unsigned_memory): Declare.
3029 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3030 get_frame_memory_unsigned and get_frame_arch.
3031 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3033 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3035 * MAINTAINERS (write after approval): Add myself.
3037 2003-06-03 Jim Blandy <jimb@redhat.com>
3039 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3040 elements of gregset_t are 64 bits each, but access registers
3041 are still 32 bits, so they're packed two per gregset_t
3042 element. Unpack/pack them properly.
3044 2003-06-02 David Carlton <carlton@bactrian.org>
3046 * linespec.c (find_methods): Break out code into
3047 add_matching_methods and add_constructors.
3048 (add_matching_methods): New.
3049 (add_constructors): Ditto.
3051 2003-06-02 Andrew Cagney <cagney@redhat.com>
3053 * sparc-tdep.c (sparc_print_registers): Delete call to
3054 REGISTER_CONVERTIBLE.
3055 (sparc_gdbarch_init): Do not set register_convertible.
3056 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3057 * frv-tdep.c (frv_gdbarch_init): Ditto.
3058 * cris-tdep.c (cris_gdbarch_init): Ditto.
3060 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3062 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3063 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3064 (syms_from_objfile): Ditto.
3066 2003-06-03 Andreas Schwab <schwab@suse.de>
3068 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3069 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3071 2003-06-02 Richard Henderson <rth@redhat.com>
3073 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3074 a member of all_reggroup.
3076 2003-06-02 Richard Henderson <rth@redhat.com>
3078 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3079 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3080 (alpha_lds, alpha_sts): New.
3081 (alpha_convert_register_p): Change from _register_convertible.
3082 (alpha_register_to_value): Change from _convert_to_virtual;
3083 restructure and fail for type sizes other than 4 or 8.
3084 (alpha_value_to_register): Similarly.
3085 (alpha_extract_return_value): Use alpha_sts.
3086 (alpha_store_return_value): Use alpha_lds.
3087 (alpha_gdbarch_init): Update hooks.
3089 2003-06-02 Richard Henderson <rth@redhat.com>
3091 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3093 (alpha_sigtramp_register_address): Likewise.
3095 2003-06-02 Richard Henderson <rth@redhat.com>
3097 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3098 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3099 * alpha-tdep.h: Declare them.
3101 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3102 Remove zerobuf. Don't error on UNIQUE.
3103 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3104 (ALPHA_REGSET_UNIQUE): Provide default.
3105 (supply_gregset): Use alpha_supply_int_regs.
3106 (fill_gregset): Use alpha_fill_int_regs.
3107 (supply_fpregset): Use alpha_supply_fp_regs.
3108 (fill_fpregset): Use alpha_fill_fp_regs.
3109 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3110 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3111 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3112 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3113 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3114 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3116 2003-06-02 Richard Henderson <rth@redhat.com>
3118 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3120 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3121 (alpha_store_return_value): Likewise.
3123 2003-06-02 David Carlton <carlton@math.stanford.edu>
3125 * block.c (contained_in): Add 'const' to arguments.
3126 (block_function): Ditto.
3127 * block.h: Update declarations for block_function and
3130 2003-06-02 David Carlton <carlton@math.stanford.edu>
3132 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3133 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3134 * p-valprint.c (pascal_val_print): Ditto.
3135 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3137 2003-06-02 Richard Henderson <rth@redhat.com>
3139 * alpha-tdep.c (alpha_push_dummy_call): Use
3140 builtin_type_ieee_double_little instead of builtin_type_double.
3142 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3143 sign-extension of 32-bit values.
3144 (alpha_store_return_value): Similarly.
3146 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3147 (alpha_extract_return_value): Likewise.
3148 (alpha_store_return_value): Likewise.
3150 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3151 (alpha_store_return_value): Error on IEEE Quad floats.
3153 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3154 (alpha_extract_struct_value_address): Likewise.
3155 (alpha_store_return_value): Likewise.
3156 (alpha_store_struct_return): Remove.
3157 (alpha_gdbarch_init): Update hook registration to match.
3159 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3160 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3161 macros where appropriate.
3162 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3163 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3165 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3166 for SP, GP; void_func_ptr for PC; non-language-specific types
3168 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3170 2003-06-02 Richard Henderson <rth@redhat.com>
3172 * top.h (lim_at_start): Declare.
3173 * main.c (captured_main): Set it.
3174 * top.c (lim_at_start): Define.
3175 (command_loop): Use it instead of &environ.
3176 * event-top.c (command_handler): Likewise.
3178 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3180 * mipsnbsd-tdep.c: Update copyright years.
3181 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3183 2003-06-01 Richard Henderson <rth@redhat.com>
3185 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3186 (alpha-linux-tdep.o): Update dependencies.
3187 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3188 * alpha-mdebug-tdep.c: Remove unneeded includes.
3190 2003-06-01 Richard Henderson <rth@redhat.com>
3192 * alpha-tdep.c (alpha_register_reggroup_p): New.
3193 (alpha_gdbarch_init): Register it.
3195 2003-06-02 Andrew Cagney <cagney@redhat.com>
3197 * dwarfread.c: Eliminate "register"
3198 (decode_die_type): Eliminate assignment within "if".
3199 (struct_type, decode_array_element_type): Ditto.
3200 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3201 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3202 (decode_modified_type, completedieinfo): Ditto.
3203 * block.c: Eliminate "register".
3204 (blockvector_for_pc_sect): Eliminate assignment within "if".
3205 * cp-support.h (struct symbol): Opaque declaration.
3206 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3208 2003-06-01 Richard Henderson <rth@redhat.com>
3210 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3211 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3213 2003-06-01 Adam Fedor <fedor@gnu.org>
3215 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3216 * gdbarch.[ch]: Regenerate.
3217 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3218 (hppa_gdbarch_init): Set it in the gdbarch vector.
3219 * i386-tdep.c (i386_fetch_pointer_argument): New
3220 (i386_gdbarch_init): Set it into gdbarch.
3221 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3222 (rs6000_gdbarch_init): Set it in gdbarch.
3223 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3224 (sparc_gdbarch_init): Set it in gdbarch.
3226 2003-06-01 Andrew Cagney <cagney@redhat.com>
3228 * defs.h (extract_address): Delete declaration.
3229 * findvar.c (extract_address): Delete function.
3230 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3231 extract_address with the inline equivalent,
3232 extract_unsigned_integer.
3233 (xstormy16_extract_struct_value_address): Ditto.
3234 (xstormy16_pointer_to_address): Ditto.
3235 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3236 * v850-tdep.c (v850_push_arguments): Ditto.
3237 (v850_extract_return_value): Ditto.
3238 (v850_extract_struct_value_address): Ditto.
3239 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3240 (sparcnbsd_get_longjmp_target_64): Ditto.
3241 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3242 (get_longjmp_target): Ditto.
3243 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3244 (sh64_extract_struct_value_address): Ditto.
3245 (sh_push_arguments): Ditto.
3246 (sh64_push_arguments): Ditto.
3247 * remote-vxsparc.c (vx_read_register): Ditto.
3248 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3249 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3250 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3251 * mipsv4-nat.c (get_longjmp_target): Ditto.
3252 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3253 * mips-nat.c (get_longjmp_target): Ditto.
3254 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3255 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3256 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3257 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3258 * irix5-nat.c (get_longjmp_target): Ditto.
3259 * irix4-nat.c (get_longjmp_target): Ditto.
3260 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3261 (ia64_push_arguments): Ditto.
3262 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3263 * h8300-tdep.c (h8300_push_arguments): Ditto.
3264 (h8300_store_return_value): Ditto.
3265 (h8300_extract_struct_value_address): Ditto.
3266 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3267 (frv_push_arguments): Ditto.
3268 * avr-tdep.c (avr_pointer_to_address): Ditto.
3269 (avr_push_arguments): Ditto.
3270 * arm-tdep.c (arm_push_dummy_call): Ditto.
3271 (arm_get_longjmp_target): Ditto.
3272 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3273 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3274 (alpha_get_longjmp_target): Ditto.
3276 * solib-irix.c (extract_mips_address): Inline extract_address,
3277 replacing it with extract_signed_integer.
3278 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3279 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3280 (first_link_map_member, open_symbol_file_object): Ditto.
3281 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3282 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3283 (LM_NEXT, LM_NAME): Ditto.
3285 2003-06-01 Richard Henderson <rth@redhat.com>
3287 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3288 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3289 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3290 (alpha_cannot_store_register): Likewise.
3291 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3292 * alpha-nat.c (supply_gregset): Likewise.
3293 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
3295 2003-06-01 Andrew Cagney <cagney@redhat.com>
3297 * infcall.c (call_function_by_hand): Update comment on
3298 DEPRECATED_DUMMY_WRITE_SP.
3300 * mips-tdep.c (mips_gdbarch_init): Do not set
3301 deprecated_dummy_write_sp.
3302 (mips_eabi_push_dummy_call): Set the SP register.
3303 (mips_o64_push_dummy_call): Set the SP register.
3304 (mips_o32_push_dummy_call): Set the SP register.
3305 (mips_n32n64_push_dummy_call): Set the SP register.
3307 2003-06-01 Richard Henderson <rth@redhat.com>
3309 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3310 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3311 (supply_gregset): Likewise.
3312 * alpha-tdep.c (alpha_store_return_value): Likewise.
3313 (alpha_get_longjmp_target): Likewise.
3314 (alpha_register_name): Constify array.
3315 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3316 deprecated_register_size, deprecated_register_bytes,
3317 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3318 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3319 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
3321 2003-06-01 Richard Henderson <rth@redhat.com>
3323 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3324 from arg_reg_buffer to regcache to avoid double conversion.
3326 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3328 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3330 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3331 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3333 2003-06-01 Richard Henderson <rth@redhat.com>
3335 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3336 (decode_frame_entry): Set it. Skip FDE augmentation.
3338 2003-06-01 Richard Henderson <rth@redhat.com>
3340 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3341 not overlapping PC_REGNUM.
3343 2003-06-01 Richard Henderson <rth@redhat.com>
3345 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3346 alpha_push_arguments. Don't dump argument register data to
3347 the target stack. Fix float and 128-bit long double semantics.
3348 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3349 (alpha_fix_call_dummy): Remove.
3350 (alpha_call_dummy_words): Remove.
3351 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
3353 2003-06-01 Richard Henderson <rth@redhat.com>
3355 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3357 2003-06-01 Andrew Cagney <cagney@redhat.com>
3359 * mips-tdep.c (is_mips16_addr): New function.
3360 (make_mips16_addr, unmake_mips16_addr): New functions.
3361 (pc_is_mips16, mips_fetch_instruction): Use.
3362 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3363 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3364 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3365 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3367 * config/mips/tm-mips.h: Update copyright.
3368 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3369 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3370 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3371 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3372 (TM_PRINT_INSN_MACH): Delete.
3373 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3375 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3376 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3377 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3378 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3379 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
3380 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
3381 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
3382 mips*-*-riscos* and mips*-*-sysv* onto mips.
3383 * config/mips/mips64.mt: New file.
3384 * config/mips/mips.mt: New file.
3385 * config/mips/littlemips.mt: Delete file.
3386 * config/mips/decstation.mt: Delete file.
3387 * config/mips/vr4300el.mt: Delete file.
3388 * config/mips/vr5000el.mt: Delete file.
3389 * config/mips/vr5000.mt: Delete file.
3390 * config/mips/vr4100.mt: Delete file.
3391 * config/mips/vr4xxxel.mt: Delete file.
3392 * config/mips/vr4300.mt: Delete file.
3393 * config/mips/vr4xxx.mt: Delete file.
3394 * config/mips/bigmips.mt: Delete file.
3395 * config/mips/bigmips64.mt: Delete file.
3396 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3397 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3398 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3399 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3400 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3402 * config/mips/tm-irix3.h: Ditto.
3403 * config/mips/tm-mipsv4.h: Ditto.
3404 * config/mips/tm-embed.h: Ditto.
3405 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3407 * config/mips/tm-vr5000el.h: Delete file.
3408 * config/mips/tm-tx39l.h: Delete file.
3409 * config/mips/tm-vr4300el.h: Delete file.
3410 * config/mips/tm-vr4xxxel.h: Delete file.
3411 * config/mips/tm-vr4300.h: Delete file.
3412 * config/mips/tm-vr4100.h: Delete file.
3413 * config/mips/tm-vr4xxx.h: Delete file.
3414 * config/mips/tm-vr5000.h: Delete file.
3415 * config/mips/tm-embedl64.h: Delete file.
3416 * config/mips/tm-embedl.h: Delete file.
3417 * config/mips/tm-embed64.h: Delete file.
3418 * config/mips/tm-bigmips64.h: Delete file.
3419 * config/mips/tm-bigmips.h: Delete file.
3421 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3424 * shnbsd-nat.c: Include "sh-tdep.h".
3426 From Richard Henderson <rth@redhat.com>:
3427 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3429 2003-05-31 Andrew Cagney <cagney@redhat.com>
3431 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
3432 forward declaration.
3433 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3434 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3435 (mips_find_saved_regs): Use set_reg_offset.
3436 (mips_frame_init_saved_regs): Delete function.
3437 (mips_pop_frame): Call mips_find_saved_regs instead of
3438 DEPRECATED_FRAME_INIT_SAVED_REGS.
3440 2003-05-31 Andrew Cagney <cagney@redhat.com>
3442 * mips-tdep.c (mips_gdbarch_init): Do not set
3443 deprecated_max_register_raw_size, register_virtual_size, and
3444 deprecated_max_register_virtual_size.
3446 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3448 * i386-tdep.c: Include "dwarf2-frame.h".
3449 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
3450 * Makefile.in (i386-tdep.o): Update dependencies.
3452 * dwarf2-frame.c, dwarf2-frame.h: New files.
3453 * Makefile.in (SFILES): Add dwarf2-frame.c.
3454 (dwarf2_frame_h): Define.
3455 (COMMON_OBS): Add dwarf2-frame.o.
3456 (dwarf2-frame.o): Add dependencies.
3458 2003-05-31 Andreas Jaeger <aj@suse.de>
3460 * x86-64-linux-nat.c: Fix comment.
3462 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3464 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
3467 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
3468 have a sigcontext_addr handler.
3469 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
3470 sigcontext_addr handler.
3472 2003-05-31 Andrew Cagney <cagney@redhat.com>
3474 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
3475 (print_fp_register_row): Replace do_fp_register_row.
3476 (mips_print_fp_register): Add "file" and "frame" parameters.
3477 (mips_print_register): Add "file" and "frame" parameters.
3478 (mips_print_registers_info): Replace mips_do_registers_info.
3479 (mips_gdbarch_init): Set print_registers_info instead of
3480 deprecated_do_registers_info.
3481 (mips_read_fp_register_single): Add "frame" parameter.
3482 (mips_read_fp_register_double): Add "frame" parameter.
3484 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3486 * i386-tdep.c (i386_register_name): Check for MMX registers first.
3487 Fixes a bug where GDB would print the wrong register names for
3488 targets without SSE.
3490 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
3491 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3494 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
3495 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
3496 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3499 From Michal Ludvig <mludvig@suse.cz>:
3500 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
3502 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3503 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3504 I386_ST0_REGNUM): Move here from...
3505 * i386-tdep.c: ... here.
3506 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
3507 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3508 registers if possible.
3509 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
3510 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
3512 (i386bsd_sc_reg_offset): New variable.
3513 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
3514 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3516 (i386fbsd_sc_reg_offset): New variable.
3517 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
3519 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
3521 (i386fbsd4_sc_reg_offset): New variable.
3522 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
3523 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3525 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
3526 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
3527 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
3529 (i386nbsd_sc_reg_offset): New variable.
3530 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
3531 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3533 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
3535 (i386obsd_sc_reg_offset): New variable.
3536 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
3537 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3539 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
3540 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
3541 for frame pointer offset in `struct sigcontext'.
3543 2003-05-31 Andrew Cagney <cagney@redhat.com>
3545 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
3546 architecture methods call_dummy_words, sizeof_call_dummy_words,
3547 push_return_address, store_struct_return, and fix_call_dummy. Set
3548 push_dummy_call instead of deprecated_push_arguments.
3549 (mips_store_struct_return): Delete function.
3550 (mips_fix_call_dummy): Delete function.
3551 (mips_push_return_address): Delete function.
3552 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
3553 RA_REGNUM and T9_REGNUM.
3554 (mips_n32n64_push_dummy_call): Ditto for
3555 mips_n32n64_push_arguments.
3556 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
3557 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
3559 2003-05-31 Andrew Cagney <cagney@redhat.com>
3561 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
3562 "dummy_addr" to "bp_addr".
3563 * infcall.c (call_function_by_hand): Pass "funaddr" to
3564 gdbarch_push_dummy_call.
3565 * gdbarch.h, gdbarch.c: Re-generate.
3566 * i386-tdep.c (i386_push_dummy_call): Update.
3567 * arm-tdep.c (arm_push_dummy_call): Update.
3568 * d10v-tdep.c (d10v_push_dummy_call): Update.
3570 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3572 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
3573 variable declarations.
3574 (x86_64_register_number, x86_64_register_name): Remove prototypes.
3575 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
3576 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
3577 x86_64_init_frame_pc, x86_64_init_frame_pc,
3578 x86_64_function_has_prologue): Remove prototypes.
3579 (X86_64_NUM_GREGS): New define.
3580 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
3581 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
3582 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
3583 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
3584 XMM1_REGNUM): Remove defines.
3585 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
3586 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
3587 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
3588 X86_64_XMM1_REGNUM): New defines.
3589 (struct x86_64_register_info): Renamed from `struct
3590 register_info'. Remove `size' member.
3591 (x86_64_register_info_table): Remove variable.
3592 (x86_64_register_info): New variable.
3593 (X86_64_NUM_REGS): New define.
3594 (X86_64_NUM_GREGS): Remove define.
3595 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
3596 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
3598 (x86_54_dwarf2_reg_to_regnum): Remove function.
3599 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
3600 (x86_64_dwarf_reg_to_regnum): New function.
3601 (x86_64_register_name): Rewrite.
3602 (x86_64_register_raw_size): Remove function.
3603 (x86_64_register_byte_table): Remove variable.
3604 (x86_64_register_byte): Remove function.
3605 (x86_64_register_virtual_type): Remove function.
3606 (x86_64_register_type): New function.
3607 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
3608 x86_64_register_convert_to_raw): Remove functions.
3609 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
3610 (x86_64_use_struct_convention): Make static. Adjust for renamed
3612 (x86_64_frame_init_saved_regs): Remove function.
3613 (x86_64_push_arguments): Make static. Change to accept a regcache
3615 (x86_64_store_return_value, x86_64_extract_return_value): Make
3616 static. Rewrite based on i386 counterparts.
3617 (x86_64_push_dummy_call): New function.
3618 (X86_64_NUM_SAVED_REGS): New define.
3619 (x86_64_register_number): Remove function.
3620 (x86_64_store_struct_return): Remove function.
3621 (x86_64_frameless_function_invocation,
3622 x86_64_function_has_prologue): Remove functions.
3623 (PROLOG_BUFSIZE): Remove define.
3624 (struct x86_64_frame_cache): New structure.
3625 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
3626 x86_64_frame_cache, x86_64_frame_this_id,
3627 x86_64_frame_prev_register, x86_64_frame_p,
3628 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
3629 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
3631 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
3633 (x86_64_skip_prologue): Rewrite in terms of
3634 x86_64_analyze_prologue.
3635 (x86_64_frame_base_address): New function.
3636 (x86_64_frame_base): New variable.
3637 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
3638 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
3639 set deprecated_fp_regnum, deprecated_register_size,
3640 deprecated_register_bytes, register_raw_size, register_byte,
3641 register_virtual_type, register_convertiable,
3642 register_convert_to_virtual, convert_to_raw,
3643 deprecated_get_saved_register, deprecated_target_read_fp,
3644 deprecated_push_arguments, deprecated_push_return_address,
3645 deprecated_pop_frame, deprecated_store_struct_return,
3646 deprecated_frame_init_saved_regs, deprecated_frame_chain,
3647 frameless_function_invocation, deprecated_frame_saved_pc,
3648 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
3649 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
3650 deprecated_init_frame_pc and virtual_frame_pointer. Call
3651 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
3652 and x86_64_frame_p. Call frame_base_set_default to register
3654 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
3655 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
3656 (_initialize_x86_64_tdep): Remove function.
3657 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
3658 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
3659 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
3661 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
3662 (x86_64_linux_sigcontext_addr): Rewrite.
3663 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
3664 x86_64_linux_frame_saved_pc): Remove functions.
3665 (x86_64_linux_pc_in_sigtramp): Renamed from
3666 x86_64_linux_in_sigtramp. Try harder to recognize a signal
3668 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
3670 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
3671 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3672 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
3673 (x86_64_regmap): Rename to regmap.
3674 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
3676 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
3678 (x86_64_fxsave_offset): Remove function.
3679 (supply_fpregset): Simply call x86_64_supply_fxsave.
3680 (fill_fpregset): Simply call x86_64_fill_fxsave.
3681 (fetch_inferior_registers, store_inferior_registers): Avoid
3682 asignment in if-statement.
3683 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
3684 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
3685 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
3686 (fetch_core_registers): Remove function.
3687 (linux_elf_core_fns): Remove.
3688 (offsetoff): Don't define.
3689 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
3690 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
3691 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
3693 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
3694 protection against multiple includes instead of NM_X86_64_h. Add
3695 various comments. Include "config/nm-linux.h". Don't include
3697 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
3698 GET_THREAD_SIGNALS): Remove defines.
3699 (x86_64_register_u_addr, kernel_u_size,
3700 lin_thread_get_thread_signals): Remove prototypes.
3701 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
3702 [HAVE_LINK_H]: Don't include "solib.h".
3703 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
3704 * config/i386/tm-x86-64linux.h: Fix comments.
3705 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
3706 x86-64-tdep.o): Update dependencies.
3708 2003-05-30 Andrew Cagney <cagney@redhat.com>
3710 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
3711 Change parameter type to a "struct regcache *".
3713 * gdbarch.sh: Regardless of the multi-arch level, always define
3714 the macro when not already defined.
3715 * gdbarch.h, gdbarch.c: Re-generate.
3717 2003-05-30 Richard Henderson <rth@redhat.com>
3719 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
3720 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
3721 (alpha_mdebug_frame_this_id): Likewise.
3722 (alpha_mdebug_frame_prev_register): Likewise.
3723 (alpha_mdebug_frame_base_address): Likewise.
3724 (alpha_mdebug_frame_locals_address): Likewise.
3725 (alpha_mdebug_frame_args_address): Likewise.
3726 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
3727 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
3728 (alpha_heuristic_frame_unwind_cache): Make static; add missing
3730 (alpha_heuristic_frame_this_id): Make static.
3731 (alpha_heuristic_frame_prev_register): Likewise.
3732 (alpha_heuristic_frame_base_address): Likewise.
3733 * alpha-tdep.h: Update.
3735 2003-05-30 Mark Kettenis <kettenis@gnu.org>
3737 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
3738 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
3740 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
3741 * i386-tdep.c: Mark functions that are 64-bit safe as such.
3742 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3743 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3744 I386_ST0_REGNUM): New defines.
3745 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
3746 codestream_get): Remove define.
3747 (codestream_next_addr, condestream_addr, condestream_buf,
3748 codestream_off, codestream_cnt): Remove variables.
3749 (codestream_fill, codestream_seek, codestream_read): Remove
3751 (i386_follow_jump): Rewrite to avoid usage of removed codestream
3753 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
3754 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
3755 i386_frame_saved_pc, i386_saved_pc_after_call,
3756 i386_frame_num_args, i386_frame_init_saved_regs,
3757 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
3758 i386_push_arguments): Remove functions.
3759 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
3760 functionality. Use i386_analyze_prologue instead of
3761 i386_get_frame_setup.
3762 (I386_NUM_SAVED_REGS): New define.
3763 (struct i386_frame_cache): New structure.
3764 (i386_alloc_frame_cache, i386_analyze_struct_return,
3765 i386_skip_probe, i386_analyze_frame_setup,
3766 i386_analyze_register_saves, i386_analyze_prologue,
3767 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
3768 i386_frame_prev_register, i386_sigtramp_frame_cache,
3769 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
3770 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
3771 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
3773 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
3775 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
3776 I386_EAX_REGNUM and I386_EDX_REGNUM.
3777 (i386_extract_return_value, i386_store_return_value): Use
3778 I386_ST0_REGNUM where appropriate.
3779 (i386_extract_struct_value_address): Rewrite to use extract_address.
3780 (i386_svr4_pc_in_sigtramp): Add comment.
3781 (i386_svr4_sigcontext_addr): Rewrite.
3782 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
3784 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
3785 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
3786 of new defines. Set push_dummy_call, don't set
3787 deprecated_push_arguments, deprecated_push_return_address,
3788 deprecated_pop_frame. Don't set parm_boundary. Don't set
3789 deprecated_frame_chain, deprecated_frame_saved_pc,
3790 deprecated_saved_pc_after_call. Set unwind_dummy_id,
3791 save_dummy_frame_tos, unwind_pc. Call
3792 frame_unwind_append_predicate and frame_base_set_default. Don't
3793 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
3794 Don't set frameless_function_invocation. Don't set
3795 deprecated_register_bytes, deprecated_register_size,
3796 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
3797 * i386-linux-tdep.c: Fix formatting in some comments.
3798 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
3799 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
3800 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
3801 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
3802 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
3803 redundant parentheses.
3804 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
3805 (i386_linux_sigcontext_addr): Use it. Rewrite.
3806 (find_minsym_and_objfile): Change name of second argument.
3807 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
3808 changed. Use frame_pc_unwind instead of
3809 DEPRECATED_SAVED_PC_AFTER_CALL.
3810 (i386_linux_init_abi): Don't set deprecated_register_bytes.
3811 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
3812 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
3814 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
3816 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
3817 (_initialize_i386_cygwin_tdep): New prototype.
3818 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
3819 deprecated_frame_chain_valid.
3820 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
3821 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3822 Rely on the SVR4 defaults.
3823 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
3824 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
3826 2003-05-30 Andrew Cagney <cagney@redhat.com>
3828 * infcall.c (call_function_by_hand): Always call
3829 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
3831 2003-05-30 Richard Henderson <rth@redhat.com>
3833 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
3836 2003-05-29 Jim Blandy <jimb@redhat.com>
3838 Use gdbarch methods for solib stuff on PowerPC Linux.
3839 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
3840 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
3842 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3843 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
3844 giving the same effect as the #definitions above.
3846 2003-05-29 Adam Fedor <fedor@gnu.org>
3848 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
3849 (find_implementation_from_class): Replace it with the standard
3850 case i.e. do nothing.
3852 2003-05-29 Richard Henderson <rth@redhat.com>
3854 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
3855 (alpha_linux_sigtramp_offset): Use it. Make static.
3856 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
3857 update for new frame model.
3858 * alpha-mdebug-tdep.c: New file.
3859 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
3860 (alpha_osf1_init_abi): Install it.
3861 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
3862 (linked_proc_desc_table): Remove.
3863 (alpha_frame_past_sigtramp_frame): Remove.
3864 (alpha_dynamic_sigtramp_offset): Remove.
3865 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
3866 (alpha_proc_desc_is_dyn_sigtramp): Remove.
3867 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
3868 (push_sigtramp_desc): Remove.
3869 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
3870 (alpha_cannot_store_register): Likewise.
3871 (alpha_sigcontext_addr): Remove.
3872 (alpha_find_saved_regs): Remove.
3873 (alpha_frame_init_saved_regs): Remove.
3874 (alpha_init_frame_pc_first): Remove.
3875 (read_next_frame_reg): Remove.
3876 (alpha_frame_saved_pc): Remove.
3877 (alpha_saved_pc_after_call): Remove.
3878 (temp_proc_desc, temp_saved_regs): Remove.
3879 (alpha_about_to_return): Remove.
3880 (cached_proc_desc): Remove.
3881 (alpha_frame_chain): Remove.
3882 (alpha_print_extra_frame_info): Remove.
3883 (alpha_init_extra_frame_info): Remove.
3884 (alpha_frame_locals_address): Remove.
3885 (alpha_frame_args_address): Remove.
3886 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
3887 (alpha_push_dummy_frame): Remove.
3888 (alpha_pop_frame): Remove.
3889 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
3890 (alpha_read_insn): New.
3891 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
3892 for different insn encodings.
3893 (alpha_in_lenient_prologue): Remove.
3894 (struct alpha_sigtramp_unwind_cache): New.
3895 (alpha_sigtramp_frame_unwind_cache): New.
3896 (alpha_sigtramp_register_address): New.
3897 (alpha_sigtramp_frame_this_id): New.
3898 (alpha_sigtramp_frame_prev_register): New.
3899 (alpha_sigtramp_frame_unwind): New.
3900 (alpha_sigtramp_frame_p): New.
3901 (struct alpha_heuristic_unwind_cache): New.
3902 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
3903 don't count nop insns that occur between functions.
3904 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
3905 heuristic_proc_desc, but without the mdebug wrapping.
3906 (alpha_heuristic_frame_this_id): New.
3907 (alpha_heuristic_frame_prev_register): New.
3908 (alpha_heuristic_frame_unwind): New.
3909 (alpha_heuristic_frame_p): New.
3910 (alpha_heuristic_frame_base_address): New.
3911 (alpha_heuristic_frame_base): New.
3912 (alpha_unwind_dummy_id): New.
3913 (alpha_unwind_pc): New.
3914 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
3915 frame related deprecated initializations; install replacements.
3916 (alpha_dump_tdep): Remove.
3917 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
3918 (alpha_read_insn, alpha_after_prologue,
3919 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
3920 alpha_heuristic_frame_prev_register,
3921 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
3922 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3923 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
3924 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
3926 2003-05-29 Andrew Cagney <cagney@redhat.com>
3928 * gdb_assert.h (gdb_assert_fail): Provide different definitions
3929 dependant on the availability of ASSERT_FUNCTION.
3930 (ASSERT_FUNCTION): Do not define when there is no function name.
3932 2003-05-29 Kevin Buettner <kevinb@redhat.com>
3934 From Jimi X <jimix@watson.ibm.com>:
3935 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
3937 2003-05-28 Jim Blandy <jimb@redhat.com>
3939 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
3940 argument to ptrace to int; the system headers should give it the
3941 right type, and pointers don't fit in ints on powerpc64-*-*.
3943 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
3945 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
3948 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
3950 * stabsread.c (dbx_lookup_type): Make static.
3952 (add_undefined_type): Ditto.
3953 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
3956 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
3958 * hpread.c (hpread_has_name): Make static.
3959 (hpread_psymtab_to_symtab): Ditto.
3960 (file_exists): Ditto.
3961 (hpread_call_pxdb): Ditto.
3962 (hpread_pxdb_needed): Ditto.
3963 (hpread_quick_traverse): Ditto.
3964 (hpread_get_header): Ditto.
3965 (hpread_get_lntt): Ditto.
3966 (hpread_get_slt): Ditto.
3969 2003-05-25 Andreas Schwab <schwab@suse.de>
3971 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
3972 stack_align and deprecated_extra_stack_alignment_needed.
3973 (m68k_stack_align): Delete.
3975 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
3976 (m68k_register_virtual_size): Likewise.
3977 (altos_skip_prologue): Remove obsolete function.
3978 (isi_frame_num_args): Likewise.
3979 (news_frame_num_args): Likewise.
3980 (m68k_fix_call_dummy): Make static.
3981 (m68k_push_dummy_frame): Likewise.
3982 (m68k_pop_frame): Likewise.
3983 (m68k_skip_prologue): Likewise.
3984 (m68k_frame_init_saved_regs): Likewise.
3985 (m68k_saved_pc_after_call): Likewise.
3986 (m68k_get_longjmp_target): Make multi-arch.
3987 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
3988 structure. Register m68k_get_longjmp_target if enabled.
3989 * m68k-tdep.h (struct gdbarch_tdep): Define.
3990 * config/m68k/tm-m68k.h: Don't include "regcache.h".
3992 * Makefile.in (config.status): Also depend on configure.tgt
3994 (m68klinux-tdep.o): Update dependencies.
3995 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
3996 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
3997 (M68K_LINUX_JB_PC): Define.
3998 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
3999 and take additional parameter.
4000 (m68k_linux_sigtramp_saved_pc): Update.
4001 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4002 m68k_linux_pc_in_sigtramp, in_plt_section,
4003 find_solib_trampoline_target.
4004 * config/m68k/tm-linux.h: Don't include any tm headers.
4005 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4006 (JB_ELEMENT_SIZE): Likewise.
4008 (GET_LONGJMP_TARGET): Likewise.
4009 (IN_SIGTRAMP): Likewise.
4010 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4012 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4014 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4015 (sparc32_push_arguments): Re-implement by calling
4016 sparc32_do_push_arguments.
4018 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4020 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4021 SPARC_O1_REGNUM): New defines.
4022 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4023 (sparc32_store_return_value): New function.
4024 (sparc_extract_struct_value_address): Rewrite to operate on a
4026 (sparc_gdbarch_init): Don't set
4027 deprecated_extract_struct_value_address. Set
4028 extract_struct_value_address instead. Don't set
4029 deprecated_extract_return_value and deprecated_store_return_value
4030 for 32-bit targets. Set extract_return_value and
4031 store_return_value instead.
4032 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4033 DEPRECTAED_EXTRACT_RETURN_VALUE,
4034 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4035 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4036 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4037 (sparc_store_return_value): Remove prototype.
4038 (sparc32_store_return_value): New prototype.
4039 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4042 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4044 * sparcnbsd-tdep.c: Include "gdb_string.h".
4046 2003-05-23 Andrew Cagney <cagney@redhat.com>
4048 * p-valprint.c (pascal_val_print): Replace extract_address with
4049 the inline equivalent extract_unsigned_integer.
4050 * jv-valprint.c (java_value_print): Ditto.
4051 * ada-valprint.c (ada_val_print_1): Ditto.
4052 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4054 2003-05-23 Theodore A. Roth <troth@openavr.org>
4056 * blockframe.c (frameless_look_for_prologue): Remove unused
4057 after_prologue variable.
4059 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4061 * blockframe.c (get_pc_function_start): Rewrite to avoid
4062 asignments in if-statements.
4064 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4066 Committed by Elena Zannoni <ezannoni@redhat.com>.
4067 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4068 files, don't relocate absolute symbols (and do use mst_abs).
4070 2003-05-23 Andrew Cagney <cagney@redhat.com>
4072 * objc-lang.c: Include "gdb_assert.h".
4073 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4074 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4075 (gdb_check, gdb_check_fatal): Delete functions.
4076 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4078 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4079 * Makefile.in (objc-lang.o): Update dependencies.
4081 2003-05-22 Ian Lance Taylor <ian@airs.com>
4083 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4084 with fprintf_filtered, not fprintf_unfiltered.
4086 2003-05-22 Andrew Cagney <cagney@redhat.com>
4088 * stack.c (frame_info): Inline extract_address, replacing it with
4089 extract_unsigned_integer.
4090 * findvar.c (unsigned_pointer_to_address): Ditto.
4091 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4092 * dwarf2expr.c (dwarf2_read_address): Ditto.
4093 * frame.c (frame_pc_unwind): Update comment.
4094 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4096 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4098 * infptrace.c (detach): Call print_sys_errmsg rather than
4099 perror_with_name to issue warning message when errno is non-zero
4100 after calling ptrace detach.
4102 2003-05-21 J. Brobecker <brobecker@gnat.com>
4104 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4105 macro definitions from here...
4106 * hppa-tdep.c: ...to there.
4108 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4110 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4111 register_ptrace_addr(). Fix all callers.
4113 2003-05-21 Andreas Schwab <schwab@suse.de>
4115 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4117 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4119 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4120 (_initialize_m68k_linux_tdep): New function.
4121 (m68k_linux_frame_saved_pc): Make static.
4122 (m68k_linux_extract_return_value): Likewise.
4123 (m68k_linux_store_return_value): Likewise.
4124 (m68k_linux_extract_struct_value_address): Likewise.
4125 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4127 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4128 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4129 (DEPRECATED_FRAME_SAVED_PC): Remove.
4131 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4133 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4134 regset numbering rather than our own.
4136 2003-05-19 David Carlton <carlton@bactrian.org>
4138 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4140 2003-05-19 David Carlton <carlton@bactrian.org>
4142 Partial fix for PR c++/827.
4143 * cp-support.h: Include symtab.h.
4144 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4145 * cp-namespace.c: Update contributors.
4146 (cp_lookup_symbol_nonlocal): New.
4147 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4148 (lookup_symbol_file): Ditto.
4149 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4150 * block.h: Declare block_scope, block_using, block_global_block.
4151 * block.c (block_scope): New.
4152 (block_using, block_global_block): Ditto.
4153 * Makefile.in (cp_support_h): Depend on symtab_h.
4154 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4156 2003-05-19 David Carlton <carlton@bactrian.org>
4158 * language.h (struct language_defn): Add 'la_value_of_this'
4159 and 'la_lookup_symbol_nonlocal' members.
4160 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4161 lookup_symbol_static, lookup_symbol_global,
4162 lookup_symbol_aux_block.
4163 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4164 if we should search fields of this and how to do static/global
4166 (lookup_symbol_aux_block): Make extern.
4167 (basic_lookup_symbol_nonlocal): New.
4168 (lookup_symbol_static, lookup_symbol_global): Ditto.
4169 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4170 'la_lookup_symbol_nonlocal' members.
4171 * c-lang.c (c_language_defn, cplus_language_defn)
4172 (asm_language_defn, minimal_language_defn): Ditto.
4173 * jv-lang.c (java_language_defn): Ditto.
4174 * language.c (unknown_language_defn, auto_language_defn)
4175 (local_language_defn): Ditto.
4176 * m2-lang.c (m2_language_defn): Ditto.
4177 * objc-lang.c (objc_language_defn): Ditto.
4178 * scm-lang.c (scm_language_defn): Ditto.
4179 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4180 * p-lang.c (pascal_language_defn): Ditto for both.
4181 * Makefile.in (f-lang.o): Depend on value_h.
4184 2003-05-19 David Carlton <carlton@bactrian.org>
4186 * block.h: Declare block_static_block.
4187 * block.c (block_static_block): New.
4188 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4189 lookup_symbol_aux_local, calling block_static_block instead.
4190 (lookup_symbol_aux_local): Delete 'static_block' argument.
4192 2003-05-19 David Carlton <carlton@bactrian.org>
4194 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4196 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4198 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4199 register numbers mapping.
4201 2003-05-18 Adam Fedor <fedor@gnu.org>
4203 * symtab.c (completion_list_objc_symbol): New function.
4204 (make_symbol_completion_list): Use it to add ObjC symbols
4205 when looking though the list.
4206 (language_search_unquoted_string): New function.
4207 (make_file_symbol_completion_list): Use it.
4209 2003-05-18 Andreas Schwab <schwab@suse.de>
4211 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4213 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4214 as m68k_linux_extract_return_value.
4215 (DEPRECATED_STORE_RETURN_VALUE): Define as
4216 m68k_linux_store_return_value.
4217 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4218 m68k_linux_extract_struct_value_address.
4219 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4220 get_next_frame, get_frame_base, get_frame_pc.
4221 (m68k_linux_frame_saved_pc): Use get_frame_base.
4222 (m68k_linux_extract_return_value): New function.
4223 (m68k_linux_store_return_value): New function.
4224 (m68k_linux_extract_struct_value_address): New function.
4225 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4227 * c-exp.y (typebase): Remove duplicate occurence of
4228 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
4229 of lookup_signed_typename.
4231 2003-05-18 Mark Kettenis <kettenis@gnu.org>
4233 * dwarf2loc.c (find_location_expression): Change type of second
4234 argument to `size_t *'.
4235 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4238 2003-05-18 David Carlton <carlton@bactrian.org>
4240 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4241 'linkage_name'. Add comment.
4242 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4244 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4245 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4246 (lookup_block_symbol): Ditto.
4248 2003-05-16 Andrew Cagney <cagney@redhat.com>
4250 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4251 * gdbarch.h, gdbarch.c: Re-generate.
4252 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4253 * TODO (REGISTER_BYTES): Delete reference.
4254 * alpha-tdep.c (alpha_gdbarch_init): Update.
4255 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4256 * x86-64-tdep.c (x86_64_init_abi): Update.
4257 * vax-tdep.c (vax_gdbarch_init): Update.
4258 * v850-tdep.c (v850_gdbarch_init): Update.
4259 * sparc-tdep.c (sparc_gdbarch_init): Update.
4260 * sh-tdep.c (sh_gdbarch_init): Update.
4261 * s390-tdep.c (s390_gdbarch_init): Update.
4262 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4263 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4264 (ns32k_gdbarch_init_32382): Update.
4265 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4266 * mcore-tdep.c (mcore_gdbarch_init): Update.
4267 * m68k-tdep.c (m68k_gdbarch_init): Update.
4268 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4269 * ia64-tdep.c (ia64_gdbarch_init): Update.
4270 * i386-tdep.c (i386_gdbarch_init): Update.
4271 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4272 * hppa-tdep.c (hppa_gdbarch_init): Update.
4273 * h8300-tdep.c (h8300_gdbarch_init): Update.
4274 * frv-tdep.c (frv_gdbarch_init): Update.
4275 * cris-tdep.c (cris_gdbarch_init): Update.
4276 * avr-tdep.c (avr_gdbarch_init): Update.
4277 * arm-tdep.c (arm_gdbarch_init): Update.
4278 * sparc-tdep.c (sparc_pop_frame): Update.
4279 * rs6000-tdep.c (rs6000_pop_frame): Update.
4280 * remote.c (init_remote_state): Update.
4281 (remote_prepare_to_store): Update.
4282 * remote-vx.c (vx_prepare_to_store): Update.
4283 * remote-sds.c (sds_fetch_registers): Update.
4284 (sds_prepare_to_store): Update.
4285 * remote-array.c: Update.
4286 * regcache.c (init_legacy_regcache_descr): Update.
4287 (init_regcache_descr): Update.
4288 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4289 (mips_o64_extract_return_value): Update.
4290 * irix5-nat.c (fetch_core_registers): Update.
4291 * irix4-nat.c (fetch_core_registers): Update.
4292 * i386-tdep.h: Update.
4293 * hppa-tdep.c (pa_do_registers_info): Update.
4294 (pa_do_strcat_registers_info): Update.
4295 * cris-tdep.c (cris_register_bytes_ok): Update.
4296 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4297 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4298 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4299 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4300 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4301 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4302 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4303 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4304 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4305 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4306 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4307 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4308 (REGISTER_BYTES_OK): Update.
4309 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4310 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4312 2003-05-16 Ian Lance Taylor <ian@airs.com>
4314 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4315 (vax_print_insn, print_insn_arg): Remove static functions.
4316 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4317 print_insn_vax from opcodes library.
4318 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4320 2003-05-15 Andrew Cagney <cagney@redhat.com>
4322 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4323 * target.h (memory_breakpoint_from_pc): Delete declaration.
4324 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4325 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4326 * monitor.c (monitor_insert_breakpoint): Use
4327 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4328 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4329 * gdbarch.h, gdbarch.c: Re-generate.
4330 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4331 (sparc_gdbarch_init): Set breakpoint_from_pc to
4332 sparc_breakpoint_from_pc.
4333 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4334 (BREAKPOINT_FROM_PC): Define.
4335 (sparc_breakpoint_from_pc): Declare.
4336 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4337 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4338 (BREAKPOINT_FROM_PC): Define.
4339 (BREAKPOINT): Delete macro.
4340 * target.h: Update comment.
4341 * s390-tdep.c (s390_gdbarch_init): Update comments.
4342 * remote.c: Update comments.
4343 * remote-mips.c: Update comments.
4344 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4345 * mem-break.c: Update comment.
4346 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4347 (ia64_memory_insert_breakpoint): Update.
4348 * config/sparc/tm-sparc.h: Update comment.
4349 * config/pa/tm-hppa64.h: Update comment.
4350 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4351 (rs6000_breakpoint_from_pc): Update.
4352 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4353 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4354 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4355 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4356 (mips_breakpoint_from_pc): Update.
4357 (mips_dump_tdep): Update.
4359 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4360 * minsyms.c (lookup_minimal_symbol): Inline
4361 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4363 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4364 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4365 * p-lang.c (pascal_printstr): Ditto.
4366 * objc-lang.c (objc_printstr): Ditto.
4367 * m2-lang.c (m2_printstr): Ditto.
4368 * jv-valprint.c (java_print_value_fields): Ditto.
4369 * f-lang.c (f_printstr): Ditto.
4370 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4371 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4372 for repeat_count_threshold.
4373 * Makefile.in (cp-valprint.o): Update dependencies.
4375 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
4377 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4378 (examine_prologue): Support looking through leaf functions, knowing
4379 they start with mov r2,r12. Support skipping over indirect stores
4380 of the input registers. Upon hitting a non-nop branch instruction
4381 or predicated instruction, bail out by setting lim_pc to the current
4382 pc value in the loop. At the end, if the lim_pc value is still
4383 beyond our calculated value and we have trust_limit set,
4384 use the lim_pc value.
4386 2003-05-15 Andrew Cagney <cagney@redhat.com>
4388 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4389 generic_find_dummy_frame.
4390 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4391 (deprecated_generic_find_dummy_frame): Update.
4392 (deprecated_read_register_dummy): Update.
4393 * frame.c (deprecated_generic_get_saved_register): Update.
4395 2003-05-15 Theodore A. Roth <troth@openavr.org>
4397 * avr-tdep.c (avr_breakpoint_from_pc): New function.
4398 (avr_gdbarch_init): Set breakpoint_from_pc method.
4400 2003-05-15 Andrew Cagney <cagney@redhat.com>
4402 * regcache.c (build_regcache): Set deprecated_register_valid
4404 (deprecated_grub_regcache_for_register_valid): Delete function.
4405 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4408 2003-05-15 David Carlton <carlton@bactrian.org>
4410 Committed by Elena Zannoni <ezannoni@redhat.com>
4411 * symtab.c (lookup_symbol_aux): Delete calls to
4412 lookup_symbol_aux_minsyms.
4413 (lookup_symbol_aux_minsyms): Comment out function and
4414 prototype. Delete lookup by mangled name.
4416 2003-05-14 Kevin Buettner <kevinb@redhat.com>
4418 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4419 correctly indicate an empty stack and ``stack_allocated'' to the
4420 indicate the number of elements initially allocated.
4421 (dwarf_expr_grow_stack): Simplify method for computing new
4422 stack size. Don't loop infinitely if ``stack_len'' is zero.
4423 (execute_stack_op): Move ``ctx->in_reg'' initialization
4424 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4425 be used in conjuction with DW_OP_piece. Revise error message
4428 2003-05-14 Theodore A. Roth <troth@openavr.org>
4430 * MAINTAINERS: Update my email address.
4431 * avr-tdep.c: Ditto.
4433 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
4435 * symtab.h (enum domain_enum): Rename from namespace_enum.
4436 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4437 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4438 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4439 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4440 TYPES_NAMESPACE, METHODS_NAMESPACE.
4441 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4442 (struct symbol, struct partial_symbol): Rename field
4443 'namespace_enum namespace' to 'domain_enum domain'.
4444 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
4445 Delete old define kludge for namespace.
4447 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
4448 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
4449 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
4450 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
4451 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
4452 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
4453 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
4454 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
4455 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
4456 occurrences of the above.
4458 2003-05-14 Ian Lance Taylor <ian@airs.com>
4460 * Makefile.in (install-only): Use $(SHELL) when running
4463 2003-05-13 Ian Lance Taylor <ian@airs.com>
4465 * MAINTAINERS (write after approval): Add myself.
4467 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
4468 second and third arguments.
4469 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4470 * ser-unix.c (_initialize_ser_hardwire): Likewise.
4472 2003-05-13 Andrew Cagney <cagney@redhat.com>
4474 * defs.h (store_address): Delete declaration.
4475 findvar.c (store_address): Delete function.
4476 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
4477 store_unsigned_integer.
4478 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
4479 * v850-tdep.c (v850_push_arguments): Ditto.
4480 * sparc-tdep.c (sparc_get_saved_register): Ditto.
4481 * sh-tdep.c (sh64_get_saved_register): Ditto.
4482 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
4483 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
4484 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
4485 (mips_get_saved_register): Ditto.
4486 * ia64-tdep.c (ia64_get_saved_register): Ditto.
4487 (find_func_descr, ia64_push_arguments): Ditto.
4488 * i386-tdep.c (i386_push_arguments): Ditto.
4489 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4490 * frv-tdep.c (frv_push_arguments): Ditto.
4491 * frame.c (legacy_saved_regs_prev_register): Ditto.
4492 (deprecated_generic_get_saved_register): Ditto.
4493 * findvar.c (unsigned_address_to_pointer): Ditto.
4494 * dwarf2read.c (dwarf2_const_value): Ditto.
4495 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4496 * alpha-tdep.c (alpha_push_arguments): Ditto.
4498 2003-05-12 J. Brobecker <brobecker@gnat.com>
4500 * NEWS: Mention that the hppa-hpux port has been partially
4501 multiarched (32bit ABIT only, so far).
4503 2003-05-11 Andrew Cagney <cagney@redhat.com>
4505 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
4506 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
4507 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
4508 sim/testsuite/sim/arm/misaligned2.ms, and
4509 sim/testsuite/sim/arm/misaligned3.ms.
4510 * disasm.h (struct ui_file): Add opaque struct declaration.
4511 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
4512 * frame.h (struct ui_file): Ditto.
4514 2003-05-11 Mark Kettenis <kettenis@gnu.org>
4516 * value.h: Pretty print.
4518 2003-05-10 Mark Kettenis <kettenis@gnu.org>
4520 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
4522 2003-05-08 Andrew Cagney <cagney@redhat.com>
4524 * regcache.h (max_register_size): Delete declaration.
4525 * regcache.c (max_register_size): Delete function.
4526 (struct regcache_descr): Delete field "max_register_size".
4527 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
4528 registers fit in MAX_REGISTER_SIZE.
4529 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
4530 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
4531 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
4532 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
4533 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
4534 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
4535 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
4536 * dve3900-rom.c, hppa-tdep.c: Ditto.
4538 2003-05-08 David Carlton <carlton@math.stanford.edu>
4540 * valops.c (push_word): Fix typo.
4542 2003-05-08 Andrew Cagney <cagney@redhat.com>
4544 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
4545 * gdbarch.h: Re-generate.
4546 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
4547 (legacy_max_register_raw_size): Delete declaration.
4548 * regcache.c (legacy_max_register_raw_size): Delete function.
4549 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
4550 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
4551 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
4552 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
4553 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
4554 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
4555 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
4556 * findvar.c, dwarf2cfi.c: Ditto.
4558 2003-05-08 Andrew Cagney <cagney@redhat.com>
4560 * mips-tdep.c (read_signed_register): New function, moved to here
4562 (read_signed_register_pid): Ditto.
4563 * regcache.c (read_signed_register_pid): Delete function, moved to
4565 (read_signed_register): Ditto.
4566 * regcache.h (read_signed_register): Delete declaration.
4567 (read_signed_register_pid): Delete declaration.
4569 2003-05-08 Andrew Cagney <cagney@redhat.com>
4571 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
4572 * gdbarch.h: Re-generate.
4573 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
4574 (legacy_max_register_virtual_size): Delete declaration.
4575 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
4576 * d10v-tdep.c (d10v_print_registers_info): Ditto.
4577 * tracepoint.c (memrange_sortmerge): Ditto.
4578 * sparc-tdep.c (sparc_print_registers): Ditto.
4579 * regcache.c (legacy_max_register_virtual_size): Delete function.
4581 2002-05-08 J. Brobecker <brobecker@gnat.com>
4583 * fork-child.c (escape_bang_in_quoted_argument): New function.
4584 (fork_inferior): Escape '!' characters in quoted arguments
4587 2003-05-08 J. Brobecker <brobecker@gnat.com>
4589 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
4590 the language of the CU is not currently supported by GDB.
4592 2003-05-08 J. Brobecker <brobecker@gnat.com>
4594 * defs.h (language): Add language_minimal enum value.
4595 * c-lang.c (minimal_language_defn): New language definition.
4596 (_initialize_c_language): Add the new minimal language to the list
4597 of languages known to GDB.
4599 2003-05-08 Kevin Buettner <kevinb@redhat.com>
4601 * frame.c (get_frame_type): Don't attempt to lazily initialize
4602 frame's unwinder for legacy frames.
4604 2003-05-07 Andrew Cagney <cagney@redhat.com>
4606 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
4607 and "regcache" parameters.
4608 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
4610 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
4612 * dwarf2read.c (dwarf_decode_lines): Only use output of
4613 check_cu_functions() when calling record_line(). Do not update
4614 the current address.
4616 2003-05-07 Andrew Cagney <cagney@redhat.com>
4618 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
4621 2003-05-07 Jim Blandy <jimb@redhat.com>
4623 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
4624 'maint info symtabs' and 'maint info psymtabs'.
4625 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
4626 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
4627 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
4628 Declarations updated.
4629 * maint.c (maintenance_list_command): Delete.
4630 (_initialize_maint_cmds): Update calls to add_cmd.
4631 * gdbcmd.h (maintenancelistlist): Delete declaration.
4632 * cli/cli-cmds.c (maintenancelistlist): Delete.
4633 (init_cmd_lists): Don't initialize it.
4634 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
4636 2003-05-07 Andrew Cagney <cagney@redhat.com>
4638 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
4640 (d10v_print_registers_info): Update.
4641 (d10v_dmap_register, d10v_imap_register): Delete functions.
4642 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
4643 and "imap_register".
4644 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
4645 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
4646 * arch-utils.c (generic_remote_translate_xfer_address): Add
4647 "regcache" and "gdbarch" parameters.
4648 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
4649 parameter. Change class to multi-arch.
4650 * gdbarch.h, gdbarch.c: Re-generate.
4651 * remote.c (remote_xfer_memory): Use
4652 gdbarch_remote_translate_xfer_address.
4654 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
4656 * infrun.c (prev_pc): Move declaration ahead of proceed().
4657 (proceed): Refresh prev_pc value before resuming.
4658 (stop_stepping): Remove code to refresh prev_pc.
4660 2003-05-06 Kris Warkentin <kewarken@qnx.com>
4662 * nto-tdep.c: Removed stray comment.
4664 2003-05-06 Kris Warkentin <kewarken@qnx.com>
4666 * i386-nto-tdep.c: Fix old K&R function definitions.
4667 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
4668 Also change add_show_from_set() call to add_setshow_cmd().
4669 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
4671 2003-05-05 Andrew Cagney <cagney@redhat.com>
4673 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
4674 (fprint_dummy_frames): New function.
4675 (maintenance_print_dummy_frames): New function.
4676 (_initialize_dummy_frame): Add command "maint print dummy-frames".
4677 * frame.c (fprint_frame_id): Make global.
4678 * frame.h (fprint_frame_id): Declare.
4679 * Makefile.in (dummy-frame.o): Update dependencies.
4681 2003-05-05 Andrew Cagney <cagney@redhat.com>
4683 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
4684 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
4685 SIZEOF_CALL_DUMMY_WORDS.
4686 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
4687 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
4688 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
4689 CALL_DUMMY_BREAKPOINT_OFFSET.
4690 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
4691 CALL_DUMMY_START_OFFSET.
4692 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
4693 * gdbarch.h, gdbarch.c: Re-generate.
4694 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
4695 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
4696 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
4697 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
4698 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
4699 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
4700 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
4701 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
4702 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
4703 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
4704 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
4705 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
4706 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
4707 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
4708 * config/sparc/tm-sparc.h: Update.
4710 2003-05-05 Kris Warkentin <kewarken@qnx.com>
4712 * configure.tgt: Add i[3456]86-*-nto*.
4713 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
4714 * nto-tdep.c: New file. Neutrino target support routines.
4715 * nto-tdep.h: New file. Neutrino target header.
4716 * config/tm-qnxnto.h: New file.
4717 * config/i386/i386nto.mt: New file.
4718 * config/i386/tm-i386nto.h: New file.
4720 2003-05-04 Andrew Cagney <cagney@redhat.com>
4722 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
4723 (load_infrun_state): Ditto.
4724 (struct thread_info): Drop "prev_func_name" field.
4725 * thread.c (load_infrun_state): Update.
4726 (save_infrun_state): Update.
4727 * infrun.c (prev_func_name): Delete variable.
4728 (init_wait_for_inferior): Do not clear prev_func_name.
4729 (stop_stepping, keep_going, context_switch): Do not swap
4731 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
4732 instead of PC_IN_SIGTRAMP.
4734 2003-05-04 Andrew Cagney <cagney@redhat.com>
4736 * sentinel-frame.c (sentinel_frame_prev_register): Replace
4737 REGISTER_BYTE with register_offset_hack.
4738 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
4739 that REGISTER_BYTE is consistent with the regcache.
4740 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
4741 * gdbarch.h, gdbarch.c: Regenerate.
4743 2003-05-04 Mark Kettenis <kettenis@gnu.org>
4745 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
4746 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
4748 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
4750 2003-05-03 J. Brobecker <brobecker@gnat.com>
4752 From Thierry Schneider <tpschneider1@yahoo.com>
4753 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
4754 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
4755 (mi-cmd-symbol.o): Add rule.
4757 2003-05-03 Andrew Cagney <cagney@redhat.com>
4759 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
4760 comments noteing that it replaces the old FIX_CALL_DUMMY code.
4761 * gdbarch.h, gdbarch.c: Re-generate.
4762 * d10v-tdep.c (d10v_push_dummy_code): New function.
4763 (d10v_gdbarch_init): Set push_dummy_code.
4764 * infcall.c (legacy_push_dummy_code): New function.
4765 (generic_push_dummy_code): New function.
4766 (push_dummy_code): New function.
4767 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
4768 instead of dummy_addr, to push_dummy_call. Move call to
4769 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
4771 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
4773 2003-05-03 Andrew Cagney <cagney@redhat.com>
4775 * disasm.h (print_insn): Declare.
4776 * disasm.c (init_gdb_disassemble_info): New function.
4777 (gdb_disassembly): Call init_gdb_disassemble_info.
4778 (gdb_print_insn): New function.
4779 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
4780 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
4781 * mcore-tdep.c: Include "disasm.h"
4782 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
4783 * d10v-tdep.c: Include "disasm.h".
4784 (display_trace): Call gdb_print_insn, instead of print_insn.
4785 (print_insn): Delete function.
4786 * printcmd.c: Include "disasm.h".
4787 (print_insn): Delete function.
4788 (print_formatted): Call gdb_print_insn, instead of print_insn.
4789 * Makefile.in (printcmd.o): Update dependencies.
4790 (mcore-tdep.o, d10v-tdep.o): Ditto.
4792 2003-05-02 Andrew Cagney <cagney@redhat.com>
4794 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
4795 PC_REGNUM, re-indent.
4796 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
4797 PC_REGNUM isn't set.
4799 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
4800 * gdbarch.h, gdbarch.c: Re-generate.
4801 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
4802 register_virtual_size, pc_regnum, or register_bytes.
4803 (D10V_PC_REGNUM): Rename _PC_REGNUM.
4804 (d10v_register_type): Use D10V_PC_REGNUM.
4805 (d10v_print_registers_info, d10v_read_pc): Ditto.
4806 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
4807 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
4809 2003-05-02 David Carlton <carlton@bactrian.org>
4811 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
4812 the name with mstrsave.
4814 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
4816 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
4817 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
4818 (host_charset_name, target_charset_name): New vars for use by
4820 (host_charset_enum, target_charset_enum): New enums for set/show
4822 (set_charset_sfunc, set_host_charset_sfunc,
4823 set_target_charset_sfunc): New functions.
4824 (set_host_charset, set_target_charset): Make static.
4825 (list_charsets, set_host_charset_command,
4826 set_target_charset_command): Delete functions.
4827 (show_charset_command): Rewrite as....
4828 (show_charset): Hook this up with the set/show command mechanism.
4829 (_initialize_charset): Change names of charsets to match the
4830 set/show enums. Use host_charset_name and target_charset_name.
4831 Use set/show mechanism for charset, host-charset, target-charset
4832 commands. Do not make 'show host-charset' and 'show
4833 target-charset' be aliases of 'show charset'.
4835 * charset.h (set_host_charset, set_target_charset): Don't export,
4836 they are not used outside the file.
4838 2003-05-01 Andrew Cagney <cagney@redhat.com>
4840 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
4841 (gdb_disassembly): Make "di" non static, always initialize and
4842 cleanup. Always use dis_asm_read_memory.
4843 (gdb_dis_asm_read_memory): Delete function.
4845 2003-05-01 Andrew Cagney <cagney@redhat.com>
4847 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
4848 (d10v_gdbarch_init): Set frame_align instead of stack_align.
4850 2003-04-30 Andrew Cagney <cagney@redhat.com>
4852 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
4853 "tm_print_insn_info".
4854 (TARGET_PRINT_INSN_INFO): Delete macro.
4855 (dis_asm_read_memory): Delete function declaration.
4856 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4857 (tm_print_insn_info): Delete variable definition.
4858 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
4859 * gdbarch.h, gdbarch.c: Re-generate.
4860 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
4861 "deprecated_tm_print_insn_info".
4862 * mcore-tdep.c (mcore_dump_insn): Ditto.
4863 * mips-tdep.c (mips_gdbarch_init): Ditto.
4864 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
4865 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
4866 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
4867 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
4868 instead of TARGET_PRINT_INSN_INFO, add comment.
4869 * s390-tdep.c (s390_get_frame_info): Instead of
4870 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
4871 (s390_check_function_end, s390_is_sigreturn): Ditto.
4872 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
4873 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4874 * disasm.c: Include "gdbcore.h".
4875 (_initialize_disasm): New function, initialize
4876 "deprecated_tm_print_insn_info".
4877 (deprecated_tm_print_insn_info): New variable.
4878 (dis_asm_read_memory): Moved from "corefile.c", made static.
4879 (dis_asm_print_address, dis_asm_memory_error): Ditto.
4880 * Makefile.in (disasm.o): Update dependencies.
4882 2003-04-30 Andrew Cagney <cagney@redhat.com>
4884 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
4886 2003-04-29 Adam Fedor <fedor@gnu.org>
4888 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
4889 * infcall.c (find_function_addr): Make non-static.
4890 * infcall.h (find_function_addr): Declare.
4891 * Makefile.in (eval.o): Update dependencies.
4893 2003-04-28 Adam Fedor <fedor@gnu.org>
4895 * symtab.c (symbol_find_demangled_name): Check for and demangle
4897 (symbol_init_demangled_name): Init for language_objc as well.
4899 2003-04-28 Andrew Cagney <cagney@redhat.com>
4901 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
4902 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
4903 * gdbarch.h, gdbarch.c: Re-generate.
4904 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
4905 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
4906 * inferior.h (deprecated_read_fp): Rename read_fp.
4907 (generic_target_read_fp): Delete declaration.
4908 * regcache.c (generic_target_read_fp): Delete function.
4909 (deprecated_read_fp): Replace read_fp, use
4910 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
4911 * d10v-tdep.c (d10v_read_fp): Delete function.
4912 (d10v_gdbarch_init): Do not set deprecated_read_fp.
4914 * sparc-tdep.c (sparc_gdbarch_init): Do not set
4915 deprecated_target_read_fp to generic_target_read_fp.
4916 * sh-tdep.c (sh_gdbarch_init): Ditto.
4917 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4918 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4919 * frv-tdep.c (frv_gdbarch_init): Ditto.
4921 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
4922 deprecated_fp_regnum.
4923 * x86-64-tdep.c (x86_64_init_abi): Ditto.
4924 * vax-tdep.c (vax_gdbarch_init): Ditto.
4925 * v850-tdep.c (v850_gdbarch_init): Ditto.
4926 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4927 * sh-tdep.c (sh_gdbarch_init): Ditto.
4928 * s390-tdep.c (s390_gdbarch_init): Ditto.
4929 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4930 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4931 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4932 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4933 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4934 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4935 * i386-tdep.c (i386_gdbarch_init): Ditto.
4936 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4937 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4938 * frv-tdep.c (frv_gdbarch_init): Ditto.
4939 * cris-tdep.c (cris_gdbarch_init): Ditto.
4940 * avr-tdep.c (avr_gdbarch_init): Ditto.
4941 * arm-tdep.c (arm_gdbarch_init): Ditto.
4942 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4944 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
4945 * v850-tdep.c (v850_gdbarch_init): Ditto.
4946 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4947 * sh-tdep.c (sh_gdbarch_init): Ditto.
4948 * s390-tdep.c (s390_gdbarch_init): Ditto.
4949 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4950 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4951 * mips-tdep.c (mips_gdbarch_init): Ditto.
4952 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4953 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4954 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4955 * frv-tdep.c (frv_gdbarch_init): Ditto.
4956 * avr-tdep.c (avr_gdbarch_init): Ditto.
4957 * arm-tdep.c (arm_gdbarch_init): Ditto.
4959 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
4960 DEPRECATED_FP_REGNUM.
4961 (vax_push_dummy_frame, vax_pop_frame): Ditto.
4962 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
4963 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
4964 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
4965 (sparc32_register_virtual_type): Ditto.
4966 * sh-tdep.c (sh64_frame_chain): Ditto.
4967 (sh64_get_saved_register, sh64_pop_frame): Ditto.
4968 (sh_nofp_frame_init_saved_regs): Ditto.
4969 (sh64_nofp_frame_init_saved_regs): Ditto.
4970 (sh_fp_frame_init_saved_regs): Ditto.
4971 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4972 * remote-e7000.c (fetch_regs_from_dump): Ditto.
4973 * procfs.c (procfs_fetch_registers): Ditto.
4974 (procfs_store_registers): Ditto.
4975 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
4976 (store_inferior_registers, fetch_core_registers): Ditto.
4977 (fetch_kcore_registers, clear_regs): Ditto.
4978 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
4979 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
4980 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
4981 * nlm/i386.c (do_status): Ditto.
4982 * mipsv4-nat.c (supply_gregset): Ditto.
4983 * mips-tdep.c: Ditto for comments.
4984 * mips-nat.c (fetch_inferior_registers): Ditto.
4985 (store_inferior_registers, fetch_core_registers): Ditto.
4986 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
4987 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
4988 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
4989 (i386_do_pop_frame, i386_register_type): Ditto.
4990 * hppa-tdep.c (hppa_frame_chain): Ditto.
4991 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
4992 (hppa_pop_frame, hppa_read_fp): Ditto.
4993 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
4994 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
4995 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
4996 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
4997 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
4998 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
4999 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5000 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5001 * blockframe.c: Ditto for comments.
5002 * arch-utils.h: Ditto for comments.
5003 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5004 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5005 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5006 * alpha-tdep.h: Ditto for comments.
5007 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5008 (alpha_cannot_store_register): Ditto.
5009 (alpha_push_dummy_frame): Ditto.
5010 * alpha-nat.c (supply_gregset): Ditto.
5012 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5013 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5014 * config/sparc/tm-sparc.h: Update comment.
5016 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5017 deprecated_read_fp instead of TARGET_READ_FP.
5018 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5019 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5020 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5021 deprecated_read_fp instead of read_fp.
5022 * s390-tdep.c (s390_push_arguments): Ditto.
5023 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5024 * frame.h: Ditto in comments.
5025 * frame.c (legacy_get_prev_frame): Ditto.
5026 * dummy-frame.c (dummy_frame_this_id): Ditto.
5027 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5029 2003-04-28 Andrew Cagney <cagney@redhat.com>
5031 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5032 * gdbarch.h, gdbarch.c: Re-generate.
5033 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5034 * vax-tdep.c (_initialize_vax_tdep): Update.
5035 * v850-tdep.c (_initialize_v850_tdep): Update.
5036 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5037 * s390-tdep.c (_initialize_s390_tdep): Update.
5038 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5039 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5040 * mips-tdep.c (_initialize_mips_tdep): Update.
5041 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5042 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5043 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5044 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5045 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5046 * frv-tdep.c (_initialize_frv_tdep): Update.
5047 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5048 (_initialize_cris_tdep): Update.
5049 * arch-utils.c (legacy_print_insn): Update.
5050 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5052 2003-04-26 Adam Fedor <fedor@gnu.org>
5054 * linespec.c (decode_objc): New function to decode ObjC calls
5055 (decode_line_1): Check for ObjC calls (using decode_objc)
5056 * Makefile (linespec.o): Update dependencies.
5058 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5060 * breakpoint.h (struct breakpoint_ops): New.
5061 (struct breakpoint): Add ops member.
5063 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5064 (mention): Use new breakpoint ops member.
5065 (set_raw_breakpoint): Initialize ops field to NULL.
5066 (print_exception_catchpoint, print_one_exception_catchpoint)
5067 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5068 (gnu_v3_exception_catchpoint_ops): New.
5069 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5071 2003-04-25 Adam Fedor <fedor@gnu.org>
5073 * Makefile.in (COMMON_OBS): Add objc-lang.o
5075 2003-04-25 Andrew Cagney <cagney@redhat.com>
5077 * d10v-tdep.c (print_insn): Delete function.
5078 (display_trace): Use TARGET_PRINT_INSN.
5079 (_initialize_d10v_tdep): Do not set tm_print_insn.
5080 (d10v_gdbarch_init): Set print_insn.
5082 2003-04-25 Andrew Cagney <cagney@redhat.com>
5084 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5085 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5086 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5087 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5088 (nr_dmap_regs, a0_regnum): ... new functions.
5089 (d10v_print_registers_info): Use a0_regnum, use register_size.
5090 (d10v_register_byte): Delete function.
5091 (d10v_register_raw_size): Delete function.
5092 (d10v_register_type): Use a0_regnum.
5093 (d10v_print_registers_info): Use a0_regnum.
5094 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5095 (d10v_gdbarch_init): Do not set register_byte or
5096 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5097 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5099 (trace_command): Use XCALLOC.
5100 (print_insn): Delete reference to tm_print_insn.
5101 (saved_regs_unwinder): Use store_unsigned_integer instead of
5103 * frame.h (FRAME_OBSTACK_CALLOC): Define
5105 2003-04-25 David Carlton <carlton@bactrian.org>
5107 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5109 2003-04-24 Adam Fedor <fedor@gnu.org>
5111 * objc-lang.c: Include "valprint.h"
5112 * Makefile.in (objc-lang.o): Update dependencies.
5114 2003-04-24 Adam Fedor <fedor@gnu.org>
5116 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5117 architecture dependant compilation and mark as unimplemented
5118 (until they get put in the gdbarch vector).
5120 2003-04-23 David Carlton <carlton@bactrian.org>
5122 * cp-support.c (cp_find_first_component): Accept 'operator' in
5125 2003-04-23 Andrew Cagney <cagney@redhat.com>
5127 * infcall.c (call_function_by_hand): Eliminate redundant
5128 indentation. Move "saved_async" and "old_cleanups" to where they
5131 2003-04-23 Andrew Cagney <cagney@redhat.com>
5133 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5134 and "buffer". Move the "name" code to where it is needed.
5136 2003-04-23 Andrew Cagney <cagney@redhat.com>
5138 * infcall.c (call_function_by_hand): Move variables "start_sp",
5139 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5140 code to ON_STACK switch branch.
5142 2003-04-23 Andrew Cagney <cagney@redhat.com>
5144 * infcall.c (call_function_by_hand): Make declaration of "i",
5145 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5148 2003-04-23 Andrew Cagney <cagney@redhat.com>
5150 * infcall.c (call_function_by_hand): Delete variable
5151 "n_method_args". Localize "param_type"'s declaration to the loop
5152 that it is used. Reinstate code assigning to said variable -
5153 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5154 Rationalize code using "param_type".
5156 2003-04-22 Andrew Cagney <cagney@redhat.com>
5158 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5159 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5160 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5161 to DEPRECATED_PUSH_RETURN_ADDRESS.
5163 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5165 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5166 on the DWARF2 register number prior to fetching a register.
5168 2003-04-22 J. Brobecker <brobecker@gnat.com>
5170 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5171 Update all the tests using SOFT_FLOAT considering the fact that
5172 this macro was always set to 0.
5173 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5174 considering the fact that this macro was always set to 0.
5175 * hppa-tdep.h (hppa_store_return_value): Likewise.
5176 (hppa_extract_return_value): Likewise.
5178 2003-04-22 J. Brobecker <brobecker@gnat.com>
5180 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5181 the hppa-pro target only.
5183 2003-04-21 J. Brobecker <brobecker@gnat.com>
5185 Ongoing multi-arch conversion effort for HP/UX:
5186 * config/pa/tm-hppa.h: Move all macro that are no longer
5187 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5188 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5190 2003-04-21 J. Brobecker <brobecker@gnat.com>
5192 * config/pa/tm-hppa.h: Obsolete a section that was only used
5195 2003-04-21 J. Brobecker <brobecker@gnat.com>
5197 Ongoing multi-arch conversion for HP/UX.
5198 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5199 if already defined (allows hppa64 to stay non-multiarched for now).
5200 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5202 2003-04-21 Andrew Cagney <cagney@redhat.com>
5204 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5206 2003-04-21 Andrew Cagney <cagney@redhat.com>
5208 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5209 "i386_num_mmx_regs".
5211 2003-04-21 Andrew Cagney <cagney@redhat.com>
5213 * infcall.c: New file.
5214 * infcall.h: New file.
5215 * valarith.c: Include "infcall.h".
5216 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5217 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5218 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5219 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5220 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5221 (SFILES): Add "infcall.c"
5222 (COMMON_OBS): Add "infcall.o".
5223 (infcall.o): Specify dependencies.
5224 * value.h (call_function_by_hand): Delete declaration.
5225 * inferior.h (run_stack_dummy): Delete declaration.
5226 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5227 (run_stack_dummy): Move to "infcall.c", merged into
5228 call_function_by_hand.
5229 * valops.c (call_function_by_hand): Moved to "infcall.c".
5230 (find_function_addr, value_arg_coerce): Ditto.
5231 (unwindonsignal_p, coerce_float_to_double): Ditto.
5232 (_initialize_valops): Move "set/show coerce-float-to-double", and
5233 "set/show unwindonsignal" commands to "infcall.c".
5234 * v850-tdep.c, target.h: Update comments.
5235 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5236 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5237 (sh64_init_extra_frame_info): Update comments.
5238 * mn10300-tdep.c: Update comments.
5239 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5240 * config/sparc/tm-sparc.h: Update comments.
5241 * breakpoint.h: Update comments.
5242 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5243 * arm-tdep.c: Update comment.
5245 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5247 * i386-tdep.c (i386_num_register_names): New variable.
5248 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5249 (MM0_REGNUM): Remove redundant parentheses in define.
5250 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5251 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5252 i386_mxcsr_regnum_p): Remove redundant parentheses.
5253 (i386_register_name): Use i386_num_register_names.
5255 * i386-tdep.c (i386_extract_return_value,
5256 i386_store_return_value): Correct check for availability of
5257 floating-point registers.
5259 * i386-tdep.c (i386_frame_num_args): Remove function.
5260 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5262 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5263 mmx_regnum_to_fp_regnum. Adjust all callers.
5265 * i386-tdep.c (i386_get_longjmp_target): Use
5266 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5267 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5270 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5272 * core-regset.c: Update comments to reflect reality. Re-order
5274 (fetch_core_registers): Use switch instead of if. Remove
5275 redundant prototype.
5277 2003-04-18 Jim Blandy <jimb@redhat.com>
5279 * s390-tdep.c (s390_frame_align): New function.
5280 (s390_gdbarch_init): Register it with the gdbarch object.
5282 2003-04-17 Richard Henderson <rth@redhat.com>
5284 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5286 2003-04-17 Michael Snyder <msnyder@redhat.com>
5287 Karen Bennet <bennet@redhat.com>
5289 Committed by Elena Zannoni <ezannoni@redhat.com>
5290 * gdb_gcore.sh: New script to create a core dump of a process.
5292 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
5294 * values.c (value_being_returned): Don't fetch the return
5295 value if the return type is void.
5297 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5299 * thread-db.c: Reindented.
5301 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5303 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5304 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
5331 2003-04-16 Kevin Buettner <kevinb@redhat.com>
5333 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
5334 the size of ``long double'' to 16, instead of 8.
5336 2003-04-16 Mark Kettenis <kettenis@gnu.org>
5338 * i386-linux-nat.c: Add some whitespace to make things more
5340 (fetch_register, store_register, fetch_inferior_registers,
5341 store_inferior_registers): Get rid of assignment in if-statement.
5342 (store_register): Fix typo in error message.
5344 2003-04-16 Andrew Cagney <cagney@redhat.com>
5346 * utils.c (xmmalloc): Always allocate something, matches
5347 libiberty/xmalloc's semantics.
5348 (xmrealloc, xmcalloc): Ditto.
5350 2003-04-16 Andrew Cagney <cagney@redhat.com>
5352 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5354 (get_frame_type): Initialize unwind and type when needed.
5355 (get_frame_id, frame_register_unwind): Ditto.
5357 2003-04-16 Andrew Cagney <cagney@redhat.com>
5359 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5361 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5362 * sparcl-stub.c: Obsolete file.
5363 * config/sparc/tm-sparclet.h: Obsolete file.
5364 * sparclet-stub.c: Obsolete file.
5365 * sparclet-rom.c: Obsolete file.
5366 * sparcl-tdep.c: Obsolete file.
5367 * config/sparc/tm-sparclite.h: Obsolete file.
5368 * config/sparc/sparclite.mt: Obsolete file.
5369 * config/sparc/sparclet.mt: Obsolete file.
5370 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5371 sparc86x-*-* obsolete.
5373 2003-04-15 David Carlton <carlton@math.stanford.edu>
5375 * Makefile.in (SFILES): Add cp-namespace.c.
5376 (COMMON_OBS): Add cp-namespace.o.
5377 (block.o): Depend on gdb_obstack_h and cp_support_h.
5378 (buildsym.o): Depend on cp_support_h.
5379 (cp-namespace.o): New.
5380 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5381 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5382 (dwarf2read.o): Depend on cp_support_h.
5383 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5384 * dwarf2read.c (process_die): Set processing_has_namespace_info,
5385 processing_current_namespace.
5386 (read_namespace): Update processing_current_namespace; check for
5387 anonymous namespaces.
5388 (dwarf2_name): New function.
5389 (dwarf2_extension): Ditto.
5390 * cp-support.h: Update copyright, contributors.
5391 Add inclusion guards.
5392 Add opaque declaration for structs obstack, block, symbol.
5393 (struct using_direct): New struct.
5394 Add declarations for cp_find_first_component,
5395 cp_entire_prefix_len, processing_has_namespace_info,
5396 processing_current_namespace, cp_is_anonymous,
5397 cp_add_using_directive, cp_initialize_namespace,
5398 cp_finalize_namespace, cp_set_block_scope,
5399 cp_scan_for_anonymous_namespaces.
5400 * cp-namespace.c: New file.
5401 * cp-support.c: Update copyright.
5402 Include ctype.h, gdb_assert.h, gdbcmd.h.
5403 New variable maint_cplus_cmd_list.
5404 (cp_find_first_component): New function.
5405 (cp_entire_prefix_len, maint_cplus_command)
5406 (first_component_command, _initialize_cp_support): Ditto.
5407 * buildsym.c: Include cp-support.h.
5408 New variable using_list.
5409 (add_symbol_to_list): Check for anonymous namespaces.
5410 (finish_block): Set block's scope.
5411 (start_symtab): Initialize C++ namespace support.
5412 (end_symtab): Finalize C++ namespace support.
5413 * block.h: Add opaque declarations for structs
5414 block_namespace_info, using_direct, and obstack.
5415 Add declarations for block_set_scope and block_set_using.
5416 (struct block): Add 'language_specific' member.
5417 (BLOCK_NAMESPACE): New macro.
5418 * block.c: Include gdb_obstack.h and cp-support.h.
5419 (struct block_namespace_info): New struct.
5420 (block_set_scope): New function.
5421 (block_set_using, block_initialize_namespace): Ditto.
5423 2003-04-14 Kevin Buettner <kevinb@redhat.com>
5425 * solib-svr4.c (svr4_have_link_map_offsets): New function.
5426 (locate_base): Return early if there aren't any link map offsets.
5427 (svr4_solib_create_inferior_hook): Warn if shared library support
5430 2003-04-14 David Carlton <carlton@math.stanford.edu>
5432 * symtab.c (symbol_set_names): Add prefix when storing Java names
5433 in hash table. Fix for PR java/1039.
5435 2003-04-14 David Carlton <carlton@math.stanford.edu>
5437 * symtab.c (symbol_set_names): Rename 'name' arg to
5438 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5439 * symtab.h: Change 'name' argument in declaration of
5440 symbol_set_names to 'linkage_name'.
5441 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5443 2003-04-14 Andrew Cagney <cagney@redhat.com>
5445 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
5446 return the fully sign-extended register value.
5447 (get_frame_pointer): Ditto.
5448 (mips_pop_frame): Initialize "proc_desc" after checking for a
5451 2003-04-14 Andrew Cagney <cagney@redhat.com>
5453 * mips-tdep.c (mips_push_dummy_frame): Delete function.
5454 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
5455 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
5456 (mips_push_register): Delete function.
5457 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
5460 2003-04-14 Jim Blandy <jimb@redhat.com>
5462 * symmisc.c: #include "gdb_regex.h".
5463 (maintenance_list_symtabs, maintenance_list_psymtabs): New
5465 * maint.c (maintenance_list_command): New function.
5466 (_initialize_maint_cmds): Register the above as commands.
5467 * symtab.h (maintenance_list_symtabs,
5468 maintenance_list_psymtabs): New declarations.
5469 * cli/cli-cmds.c (maintenancelistlist): New variable.
5470 (init_cmd_lists): Initialize it.
5471 * cli/cli-cmds.h (maintenancelistlist): New declaration.
5472 * gdbcmd.h (maintenancelistlist): New declaration.
5473 * Makefile.in (symmisc.o): Update dependencies.
5475 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
5477 * s390-nat.c: Include asm/types.h for addr_t.
5479 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
5481 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
5482 actually incoming type.
5484 2003-04-13 Andrew Cagney <cagney@redhat.com>
5486 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
5487 get_next_frame and get_frame_saved_regs.
5489 2003-04-13 Andrew Cagney <cagney@redhat.com>
5491 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
5492 of gdbarch_num_regs.
5494 2003-04-13 Andrew Cagney <cagney@redhat.com>
5496 * frame.h: Mention what replaced what in "struct frame_info".
5497 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
5498 deprecated_update_frame_base_hack and
5499 deprecated_update_frame_pc_hack.
5500 * hppa-tdep.c: Ditto.
5502 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5504 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
5505 to read_reg and update its comment. Remove regnum member.
5506 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
5507 Don't call read_reg when setting in_reg. Call read_reg to get
5508 the frame base if it's in a register. Return the register number
5509 on the stack instead of in the context. Remove extra arguments
5511 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
5512 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
5513 the register number on the expression stack.
5514 (needs_frame_read_reg): Remove extra arguments.
5516 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5518 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
5520 (execute_stack_op): All callers updated.
5521 * dwarf2expr.h: Add prototype for dwarf2_read_address.
5522 * dwarf2loc.c (find_location_expression): New function.
5523 (dwarf_expr_frame_base): Call it.
5524 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
5525 (dwarf2_tracepoint_var_ref): New function, broken out from
5526 locexpr_tracepoint_var_ref.
5527 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
5529 (loclist_read_variable, loclist_read_needs_frame): New functions.
5530 (loclist_describe_location, loclist_tracepoint_var_ref): New
5532 (dwarf2_loclist_funcs): New struct location_funcs.
5533 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
5534 (struct dwarf2_locexpr_baton): Add comments.
5535 (dwarf2_loclist_funcs): New extern.
5536 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
5537 base_address and base_known.
5538 (dwarf_loc_buffer): New variable.
5539 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
5540 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
5541 (dwarf2_has_info): Initialize dwarf_loc_offset.
5542 (dwarf2_build_psymtabs): Read in .debug_loc.
5543 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
5545 (psymtab_to_symtab_1): Likewise. Move base address calculation
5547 (dwarf2_get_pc_bounds): ... here. Use the base address from
5549 (dwarf2_symbol_mark_computed): Handle location lists.
5551 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5553 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
5554 if the linkage name demangled successfully.
5556 2003-04-13 Mark Kettenis <kettenis@gnu.org>
5558 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
5559 disassmbly_flavour): Removed.
5561 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
5563 2003-04-13 Mark Kettenis <kettenis@gnu.org>
5565 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
5567 2003-04-12 Andrew Cagney <cagney@redhat.com>
5569 * frame.h (struct frame_info): Move definition from here ...
5570 * frame.c (struct frame_info): ... to here.
5572 2003-04-12 Andrew Cagney <cagney@redhat.com>
5574 * gdbthread.h (save_infrun_state): Delete parameter
5576 (struct thread_info): Delete field "prev_func_start".
5577 (load_infrun_state): Ditto.
5578 * thread.c (load_infrun_state, save_infrun_state): Update.
5579 * infrun.c (prev_func_start): Delete variable.
5580 (context_switch, init_wait_for_inferior): Update.
5581 (stop_stepping, keep_going): Update.
5583 2003-04-12 Andrew Cagney <cagney@redhat.com>
5585 * gdbarch.sh: Add missing opaque declarations.
5586 * gdbarch.h: Regnerate.
5587 * symtab.h: Add missing opaque declarations.
5588 * value.h, target.h, symfile.h, stabsread.h: Ditto.
5589 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
5590 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
5591 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
5592 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
5593 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
5594 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
5595 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
5596 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
5597 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
5598 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
5599 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
5600 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
5602 2003-04-11 Andrew Cagney <cagney@redhat.com>
5604 * frame.c (get_frame_id): Return this frame's "id".
5605 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
5607 (legacy_saved_regs_this_id): Replace function body with
5609 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
5610 FRAME_OBSTACK_ZALLOC.
5611 (create_new_frame): Mark the frame ID as valid.
5613 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
5615 * Makefile.in (libbfd_h): Added missing setting.
5616 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
5617 according to the selected ABI.
5619 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
5621 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
5623 2003-04-11 Andrew Cagney <cagney@redhat.com>
5625 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
5626 SAVED_PC_AFTER_CALL.
5627 * gdbarch.h, gdbarch.c: Regenerate.
5628 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5629 * x86-64-tdep.c (x86_64_init_abi): Update.
5630 * vax-tdep.c (vax_gdbarch_init): Update.
5631 * v850-tdep.c (v850_gdbarch_init): Update.
5632 * sparc-tdep.c (sparc_gdbarch_init): Update.
5633 * sh-tdep.c (sh_gdbarch_init): Update.
5634 * s390-tdep.c (s390_gdbarch_init): Update.
5635 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5636 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5637 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5638 * mips-tdep.c (mips_gdbarch_init): Update.
5639 * mcore-tdep.c (mcore_gdbarch_init): Update.
5640 * m68k-tdep.c (m68k_gdbarch_init): Update.
5641 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5642 * ia64-tdep.c (ia64_gdbarch_init): Update.
5643 (ia64_saved_pc_after_call): Update declaration.
5644 * i386ly-tdep.c (i386lynx_init_abi): Update.
5645 * i386-tdep.c (i386_gdbarch_init): Update.
5646 * hppa-tdep.c (hppa_gdbarch_init): Update.
5647 * h8300-tdep.c (h8300_gdbarch_init): Update.
5648 * frv-tdep.c (frv_gdbarch_init): Update.
5649 * cris-tdep.c (cris_gdbarch_init): Update.
5650 * avr-tdep.c (avr_gdbarch_init): Update.
5651 * arm-tdep.c (arm_gdbarch_init): Update.
5652 * alpha-tdep.c (alpha_gdbarch_init): Update.
5653 * ns32knbsd-nat.c (frame_num_args): Update.
5654 * ns32k-tdep.c (umax_frame_num_args): Update.
5655 * mips-tdep.c (mips_init_frame_pc_first): Update.
5656 * infrun.c (step_over_function): Update.
5657 * i386-linux-tdep.c (skip_hurd_resolver): Update.
5658 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
5659 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5660 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5661 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5662 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5663 * arm-linux-tdep.c (skip_hurd_resolver): Update.
5664 * arch-utils.c (init_frame_pc_default): Update.
5665 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
5666 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
5669 2003-04-11 Andrew Cagney <cagney@redhat.com>
5671 * i387-tdep.c: Update copyright.
5672 (i387_to_double): Delete function.
5673 (double_to_i387): Delete function.
5675 2003-04-10 Andrew Cagney <cagney@redhat.com>
5677 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
5678 frame's function's address. Simplify.
5679 (d10v_frame_unwind_cache): Check that the frame's function is
5682 2003-04-10 Jim Blandy <jimb@redhat.com>
5684 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
5685 call to set_gdbarch_deprecated_push_arguments.
5687 2003-04-10 Andrew Cagney <cagney@redhat.com>
5689 * frame.c (fprint_frame_id): New function.
5690 (fprint_frame_type, fprint_frame): New function.
5691 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
5692 (create_sentinel_frame, get_frame_id): Ditto.
5693 (frame_id_p, frame_id_eq): Ditto.
5694 (frame_id_inner, create_new_frame): Ditto.
5695 (legacy_get_prev_frame, get_prev_frame): Ditto.
5696 (deprecated_update_frame_pc_hack): Ditto.
5697 (frame_register_unwind): Ditto.
5698 (deprecated_update_frame_base_hack): Ditto.
5700 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
5702 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
5703 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
5704 frame_chain function.
5705 * Makefile.in: Add dependencies due to above change.
5707 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
5709 * blockframe.c (legacy_frame_chain_valid): Move call to
5710 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
5713 2003-04-09 Andrew Cagney <cagney@redhat.com>
5715 * frame.h (struct frame_id): Replace "pc" and "base" with
5716 "stack_addr" and "code_addr". Update comments.
5717 (frame_id_build): Update parameter names and comment.
5718 (struct frame_info): Replace "id_p" and "id" with "this_id".
5719 * dummy-frame.c (dummy_frame_this_id): Update.
5720 * breakpoint.c (print_one_breakpoint): Update.
5721 * frame.c (get_frame_id): Update.
5722 (get_frame_base, frame_id_build): Update.
5723 (create_sentinel_frame, legacy_get_prev_frame): Update.
5724 (deprecated_update_frame_base_hack): Update.
5725 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
5726 (frame_id_inner): Ditto.
5728 2003-04-09 Andrew Cagney <cagney@redhat.com>
5730 * defs.h (gdb_print_host_address): Make "addr" parameter a
5732 * utils.c (gdb_print_host_address): Update.
5734 2003-04-09 Kevin Buettner <kevinb@redhat.com>
5736 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
5737 register number for R0 is 0.
5739 2003-04-09 J. Brobecker <brobecker@gnat.com>
5741 * frame.h (struct gdbarch): Add opaque structure definition
5742 to avoid a compilation warning on LynxOS 4.0.
5744 2003-04-09 Andrew Cagney <cagney@redhat.com>
5746 * frame.h (struct frame_info): Delete field "pc". Replace
5747 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
5749 * frame.c (frame_pc_unwind): Update.
5750 (create_sentinel_frame): Do not set "pc".
5751 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
5752 (get_frame_pc): Call frame_pc_unwind.
5753 (deprecated_update_frame_pc_hack): Update.
5754 (create_new_frame): Use "pc" not "->pc".
5756 2003-04-09 Andrew Cagney <cagney@redhat.com>
5758 * frame.c (get_frame_id): Eliminate code updating "frame".
5759 (legacy_get_prev_frame): Ditto.
5760 (get_frame_base): Return id.base directly.
5761 (deprecated_update_frame_base_hack): Update "id.base".
5762 * frame.h (struct frame_info): Delete field "frame".
5764 2003-04-09 Andrew Cagney <cagney@redhat.com>
5766 * NEWS: Mention that the "Sequent family" is obsolete.
5767 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
5768 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5769 * configure.host: Obsolete i[3456]86-sequent-bsd*,
5770 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5771 * config/i386/tm-ptx4.h: Obsolete file.
5772 * config/i386/tm-ptx.h: Obsolete file.
5773 * symm-tdep.c: Obsolete file.
5774 * config/i386/symmetry.mt: Obsolete file.
5775 * config/i386/tm-symmetry.h: Obsolete file.
5776 * symm-nat.c: Obsolete file.
5777 * config/i386/nm-symmetry.h: Obsolete file.
5778 * config/i386/xm-symmetry.h: Obsolete file.
5779 * config/i386/symmetry.mh: Obsolete file.
5780 * config/i386/nm-ptx4.h: Obsolete file.
5781 * config/i386/ptx4.mh: Obsolete file.
5782 * config/i386/ptx.mt: Obsolete file.
5783 * config/i386/ptx.mh: Obsolete file.
5784 * config/i386/xm-ptx4.h: Obsolete file.
5785 * config/i386/xm-ptx.h: Obsolete file.
5787 2003-04-09 Andrew Cagney <cagney@redhat.com>
5789 Obsolete mips*-*-mach3*.
5790 * NEWS: Mention that mips*-*-mach3* is obsolete.
5791 * m3-nat.c: Obsolete file.
5792 * config/nm-m3.h: Obsolete file.
5793 * config/mips/tm-mipsm3.h: Obsolete file.
5794 * config/mips/mipsm3.mt: Obsolete file.
5795 * config/mips/mipsm3.mh: Obsolete file.
5796 * config/mips/xm-mipsm3.h: Obsolete file.
5797 * mipsm3-nat.c: Obsolete file.
5798 * configure.host: Obsolete mips-dec-mach3*.
5799 * configure.tgt: Obsolete mips*-*-mach3*.
5801 2003-04-09 Andrew Cagney <cagney@redhat.com>
5803 * doublest.h: Update copyright.
5804 (deprecated_store_floating, deprecated_extract_floating): Rename
5805 store_floating and extract_floating. Update comments.
5806 * doublest.c: Update copyright.
5807 (extract_floating_by_length): Replace extract_floating.
5808 (store_floating_by_length): Replace store_floating.
5809 (deprecated_extract_floating): New function.
5810 (deprecated_store_floating): New function.
5811 (extract_typed_floating): Call extract_floating_by_length.
5812 (store_typed_floating): Call store_floating_by_length.
5813 * x86-64-tdep.c (x86_64_store_return_value): Update.
5814 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
5815 (sh64_extract_return_value): Update.
5816 (sh_sh4_register_convert_to_virtual): Update.
5817 (sh_sh64_register_convert_to_virtual): Update.
5818 (sh_sh4_register_convert_to_raw): Update.
5819 (sh_sh64_register_convert_to_raw): Update.
5820 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
5821 (rs6000_register_convert_to_raw): Update.
5822 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
5823 (ia64_register_convert_to_raw): Update.
5824 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
5825 (REGISTER_CONVERT_TO_VIRTUAL): Update.
5826 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
5827 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
5828 (alpha_register_convert_to_raw): Update.
5830 2003-04-08 Andrew Cagney <cagney@redhat.com>
5832 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
5833 * gdbarch.h, gdbarch.c: Re-generate.
5834 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
5835 (d10v_gdbarch_init): Do not set saved_pc_after_call.
5836 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
5837 conditionally, use frame_pc_unwind as an alternative. Add
5839 * arch-utils.c (init_frame_pc_default): Only call
5840 SAVED_PC_AFTER_CALL when available.
5842 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
5844 * infrun.c (stop_soon): Rename from stop_soon_quietly.
5845 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
5846 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
5847 (start_remote): Ditto.
5848 (handle_inferior_event): Ditto.
5849 (save_inferior_status): Ditto.
5850 (restore_inferior_status): Ditto.
5851 * infcmd.c (attach_command): Ditto.
5852 * fork-child.c (startup_inferior): Ditto.
5853 * inferior.h (stop_soon): Rename from stop_soon_quietly.
5854 * alpha-tdep.c (heuristic_proc_start): Ditto.
5855 * mips-tdep.c (heuristic_proc_start): Ditto.
5856 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
5857 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
5858 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
5859 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
5860 * remote-vx.c (vx_create_inferior): Ditto.
5862 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
5864 * infrun.c (stop_soon_quietly): Make it an enum, to better
5865 override the default behavior of handle_inferior_event.
5866 (clear_proceed_status): Update uses of stop_soon_quietly to
5867 reflect that it is now an enum.
5868 (start_remote): Ditto.
5869 (handle_inferior_event): Change logic a bit if stop_soon_quietly
5870 is set to handle the new GNU/Linux kernel behavior for
5871 attach/sigstop. Update uses of stop_soon_quietly.
5872 * inferior.h (enum stop_kind): New enum.
5873 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
5874 Reset normal handle_inferior_event behavior, afterwards.
5875 * fork-child.c (startup_inferior): Update.
5876 * alpha-tdep.c (heuristic_proc_start): Update.
5877 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
5878 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
5879 * solib-osf.c (osf_solib_create_inferior_hook): Update.
5880 * solib-irix.c (irix_solib_create_inferior_hook): Update.
5881 * remote-vx.c (vx_create_inferior): Update.
5882 * mips-tdep.c (heuristic_proc_start): Update.
5884 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
5886 * disasm.c (dump_insns): Move variables inside loop, or they will
5887 be freed more than once, causing wild memory corruptions.
5888 (gdb_disassembly): Look for the substring "-thread",
5889 instead of "-threads" in the target name, to make sure to find
5890 the 'multi-thread' target. Also, make sure we do the right thing
5891 with the "core" target.
5893 2003-04-07 Kevin Buettner <kevinb@redhat.com>
5895 * mips-tdep.c (mips_print_fp_register): New function, created from
5896 do_fp_register_row(). Registers are now (also) printed as hex.
5897 Only one register is printed per row.
5898 (mips_print_register, do_fp_register_row): Print floating point
5899 registers with mips_print_fp_register().
5901 2003-04-06 Andrew Cagney <cagney@redhat.com>
5903 * valprint.h (inspect_it): Add extern declaration.
5904 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
5905 (selectors_info, classes_info): Ditto.
5906 (find_objc_msgcall): Fix indentation.
5907 (objc_printstr): Delete extern declarations.
5909 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
5911 2003-04-06 Andrew Cagney <cagney@redhat.com>
5913 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
5915 * frame.c (legacy_saved_regs_this_id): Update.
5916 (legacy_get_prev_frame): Update.
5917 * xstormy16-tdep.c: Update comment.
5918 * sparc-tdep.c (sparc_frame_chain): Update comment.
5919 * blockframe.c (legacy_frame_chain_valid): Update.
5921 2003-04-06 Andrew Cagney <cagney@redhat.com>
5923 * valprint.c (val_print_type_code_int): Delete #ifdef
5924 PRINT_TYPELESS_INTEGER code.
5926 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
5927 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
5928 multi-arch definition.
5929 * gdbarch.h: Re-generate.
5931 2003-04-05 Andrew Cagney <cagney@redhat.com>
5933 Eliminate FRAME_FIND_SAVED_REGS.
5934 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5935 Change FSR parameter to a pointer.
5936 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
5937 Assume FSR parameter is a pointer.
5938 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5940 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
5941 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
5942 saved_regs a pointer.
5943 (hppa_frame_saved_pc): Ditto.
5944 (find_dummy_frame_regs): Make frame_saved_regs a pointer
5945 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
5947 (restore_pc_queue): Make fsr a pointer.
5948 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
5949 (hppa_frame_chain): Make saved_regs a pointer, call
5950 hppa_frame_init_saved_regs.
5951 * sparc-tdep.c: Include "gdb_assert.h".
5952 (sparc_frame_find_saved_regs): Replace internal_error with
5954 * remote-vxsparc.c (vx_read_register): Delete reference to
5955 FRAME_FIND_SAVED_REGS.
5956 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
5957 * gdbarch.h: Regenerate.
5958 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
5959 (deprecated_get_frame_saved_regs): Delete declaration.
5960 (struct frame_saved_regs): Delete definition.
5961 * frame.c (deprecated_get_frame_saved_regs): Delete function.
5962 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
5963 (hppa_frame_find_saved_regs): Delete declaration.
5964 (FRAME_FIND_SAVED_REGS): Delete macro.
5965 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
5966 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
5967 FRAME_FIND_SAVED_REGS in comment.
5969 2003-04-05 Andrew Cagney <cagney@redhat.com>
5971 * frame.c (frame_func_unwind, get_frame_func): New functions.
5972 * frame.h (get_frame_func, frame_func_unwind): Declare.
5973 (struct frame_info): Add field "prev_func" for caching the
5974 previous frame's function address.
5975 * arm-tdep.c (arm_frameless_function_invocation): Combine
5976 get_pc_function_start and get_frame_pc into get_frame_func.
5977 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
5978 (sh64_nofp_frame_init_saved_regs): Ditto.
5979 * s390-tdep.c (s390_function_start): Ditto.
5980 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
5981 (rs6000_frameless_function_invocation): Ditto.
5982 (rs6000_frame_saved_pc): Ditto.
5983 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
5984 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
5985 * i386-tdep.c (i386_frameless_signal_p): Ditto.
5986 (i386_frame_init_saved_regs): Ditto.
5987 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
5988 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
5989 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
5990 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5991 * blockframe.c (frameless_look_for_prologue): Ditto.
5993 2003-04-05 Andrew Cagney <cagney@redhat.com>
5995 * frame.c (legacy_get_prev_frame): Link prev to next at the
5996 function start. Update comments.
5998 2003-04-05 Andrew Cagney <cagney@redhat.com>
6000 * frame.c (get_frame_id): Update comment.
6001 (legacy_get_prev_frame): Update comment.
6002 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6003 * gdbarch.h: Regenerate.
6004 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6005 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6007 2003-04-05 Andrew Cagney <cagney@redhat.com>
6009 * stack.c (print_frame_info): Use get_frame_pc.
6011 2003-04-04 Andrew Cagney <cagney@redhat.com>
6013 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6014 the frame's type from the unwinder.
6015 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6016 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6017 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6018 (get_frame_base_address): Use get_frame_type.
6019 (get_frame_locals_address, get_frame_args_address): Ditto.
6020 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6021 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6022 (struct frame_info): Add comment explaining why the frame contains
6024 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6025 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6026 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6028 * frame-unwind.h: Include "frame.h".
6029 (struct frame_unwind): Add "type" field.
6030 * Makefile.in (frame_unwind_h): Add $(frame_h).
6032 2003-04-04 Andrew Cagney <cagney@redhat.com>
6034 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6035 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6036 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6038 (d10v_unwind_dummy_id): Use frame_id_build.
6039 * frame.c (find_frame_sal): Use get_frame_pc.
6040 (create_new_frame): Use deprecated_update_frame_pc_hack and
6041 deprecated_update_frame_base_hack.
6042 (create_sentinel_frame): Add comment about ->pc going away.
6043 (get_prev_frame): Add comment about ->pc going away.
6044 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6045 frame_id_build, deprecated_update_frame_pc_hack and
6046 deprecated_update_frame_base_hack.
6047 (select_frame): Use get_frame_pc.
6048 (legacy_saved_regs_this_id): Use frame_id_build.
6050 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6052 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6053 signed integer case.
6054 (classify_argument): Handle enumerations and references.
6056 2003-04-04 Andrew Cagney <cagney@redhat.com>
6058 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6061 2003-04-01 Adam Fedor <fedor@gnu.org>
6063 * gdb/objc-lang.c (selectors_info): Replace calls to
6064 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6065 SYMBOL_NATURAL_NAME.
6066 (classes_info, find_methods): Likewise.
6068 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6070 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6071 ``mach'' to the value determined by bfd_default_set_arch_mach().
6073 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6075 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6076 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6077 (mi-cmd-file.o): Update dependencies.
6079 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6081 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6082 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6084 2003-04-01 Adam Fedor <fedor@gnu.org>
6086 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6087 * language.h (struct language_defn): Add la_demangle.
6088 (language_demangle): Declare.
6089 * language.c (language_demangle): New function.
6090 (unk_lang_demangle): Likewise.
6091 (unknown_language_defn, auto_language_defn, local_language_defn):
6092 Add ukn_lang_demangle.
6093 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6094 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6095 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6096 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6097 * jv-lang.c (java_demangle): New function
6098 (java_language_defn): Use it for la_demangle element.
6099 * objc-lang.c (objc_demangle): Add options argument
6100 (objc_language_defn): Use objc_demangle for la_demangle element.
6101 * maint.c (maintenance_demangle): Replace switch with
6102 call to language_demangle.
6103 * utils.c (fprintf_symbol_filtered): Likewise.
6105 2003-04-01 Andrew Cagney <cagney@redhat.com>
6107 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6108 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6109 PRINT_TYPELESS_INTEGER.
6110 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6111 PUSH_RETURN_ADDRESS.
6113 2003-04-01 Andrew Cagney <cagney@redhat.com>
6115 * Makefile.in (d10v-tdep.o): Update dependencies.
6116 * d10v-tdep.c: Include "frame-base.h".
6117 (d10v_frame_unwind): Make constant.
6118 (d10v_frame_base_address): New function.
6119 (d10v_frame_base): New variable.
6120 (d10v_gdbarch_init): Set frame_base default.
6121 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6123 (d10v_frame_unwind_cache): Set and use "prev_sp".
6124 (d10v_frame_this_id): Use the previous frame's inner most stack
6125 address and this frame's func address for the frame ID. Use
6126 frame_id_build. Don't analyze beyond the current instruction.
6128 2003-04-01 Andrew Cagney <cagney@redhat.com>
6130 * frame.h (get_frame_locals_address, get_frame_args_address):
6131 Refer to the base address, instead of the address of the first
6134 2003-04-01 Andrew Cagney <cagney@redhat.com>
6136 Add frame debug info addresses:
6137 * frame-base.c: New file.
6138 * frame-base.h: New file.
6139 * frame.h (struct frame_base): Add opaque declaration.
6140 (get_frame_base): Update comment.
6141 (get_frame_base_address): Declare.
6142 (get_frame_locals_address): Declare.
6143 (get_frame_args_address): Declare.
6144 (struct frame_info): Add "base" and "base_cache". Update
6145 comments on the unwinder.
6146 * frame.c: Include "frame-base.h".
6147 (get_frame_locals_address): New function.
6148 (get_frame_base_address): New function.
6149 (get_frame_args_address): New function.
6150 * findvar.c (read_var_value): Use get_frame_locals_address and
6151 get_frame_args_address.
6152 * stack.c (frame_info): Use get_frame_locals_address and
6153 get_frame_args_address.
6154 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6155 moved to "frame-base.c".
6156 * printcmd.c (print_frame_nameless_args): Ditto.
6157 * symtab.h (address_class): Update comments.
6158 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6159 get_frame_base_address.
6160 * dwarf2expr.c (execute_stack_op): Ditto.
6161 * Makefile.in (frame_base_h): Define.
6162 (frame.o): Update dependencies.
6163 (frame-base.o): Add dependencies.
6164 (SFILES): Add frame-base.c.
6165 (COMMON_OBS): Add frame-base.o.
6167 2003-04-01 Andrew Cagney <cagney@redhat.com>
6169 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6170 CALL_DUMMY_LENGTH): Ditto.
6171 * gdbarch.c: Re-generate.
6172 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6173 (CALL_DUMMY_LENGTH): Delete macro.
6174 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6175 * arm-tdep.c (arm_gdbarch_init): Ditto.
6176 * avr-tdep.c (avr_gdbarch_init): Ditto.
6177 * cris-tdep.c (cris_gdbarch_init): Ditto.
6178 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6179 * frv-tdep.c (frv_gdbarch_init): Ditto.
6180 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6181 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6182 * i386-tdep.c (i386_gdbarch_init): Ditto.
6183 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6184 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6185 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6186 * mips-tdep.c (mips_gdbarch_init): Ditto.
6187 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6188 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6189 * s390-tdep.c (s390_gdbarch_init): Ditto.
6190 * sh-tdep.c (sh_gdbarch_init): Ditto.
6191 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6192 * v850-tdep.c (v850_gdbarch_init): Ditto.
6193 * vax-tdep.c (vax_gdbarch_init): Ditto.
6194 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6196 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6198 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6200 2003-04-01 Andrew Cagney <cagney@redhat.com>
6202 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6203 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6204 * gdbarch.h, gdbarch.c: Re-generate.
6205 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6206 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6207 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6208 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6209 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6210 * infcmd.c (run_stack_dummy): Simplify assuming
6211 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6212 * infrun.c (handle_inferior_event): Ditto.
6213 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6214 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6215 * arm-tdep.c (arm_gdbarch_init): Ditto.
6216 * avr-tdep.c (avr_gdbarch_init): Ditto.
6217 * cris-tdep.c (cris_gdbarch_init): Ditto.
6218 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6219 * frv-tdep.c (frv_gdbarch_init): Ditto.
6220 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6221 * i386-tdep.c (i386_gdbarch_init): Ditto.
6222 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6223 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6224 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6225 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6226 * mips-tdep.c (mips_gdbarch_init): Ditto.
6227 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6228 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6229 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6230 * s390-tdep.c (s390_gdbarch_init): Ditto.
6231 * sh-tdep.c (sh_gdbarch_init): Ditto.
6232 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6233 * v850-tdep.c (v850_gdbarch_init): Ditto.
6234 * vax-tdep.c (vax_gdbarch_init): Ditto.
6235 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6237 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
6239 * symfile.c (symfile_relocate_debug_section): Update call to
6240 bfd_simple_get_relocated_section_contents.
6242 2003-03-31 Andrew Cagney <cagney@redhat.com>
6244 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6245 * gdbarch.h, gdbarch.c: Regenerate.
6246 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6247 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6249 * frame.h (generic_fix_call_dummy): Delete declaration.
6250 * dummy-frame.h: Update comment.
6251 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6252 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6254 * sh-tdep.c (sh_gdbarch_init): Ditto.
6255 * s390-tdep.c (s390_gdbarch_init): Ditto.
6256 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6257 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6258 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6259 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6260 * i386-tdep.c (i386_gdbarch_init): Ditto.
6261 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6262 * frv-tdep.c (frv_gdbarch_init): Ditto.
6263 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6264 * cris-tdep.c (cris_gdbarch_init): Ditto.
6265 * avr-tdep.c (avr_gdbarch_init): Ditto.
6266 * arm-tdep.c (arm_gdbarch_init): Ditto.
6268 2003-03-31 J. Brobecker <brobecker@gnat.com>
6270 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6271 (INIT_FRAME_AP): Likewise.
6272 (EXTRA_FRAME_INFO): Likewise.
6274 2003-03-31 Andrew Cagney <cagney@redhat.com>
6276 * gdbarch.sh: Include "symfile.h".
6277 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6278 * gdbarch.h, gdbarch.c: Re-generate.
6279 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6280 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6281 call_dummy_address, the default is at entry_point_address.
6282 * v850-tdep.c (v850_gdbarch_init): Ditto.
6283 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6284 * sh-tdep.c (sh_gdbarch_init): Ditto.
6285 * s390-tdep.c (s390_gdbarch_init): Ditto.
6286 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6287 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6288 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6289 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6290 * i386-tdep.c (i386_gdbarch_init): Ditto.
6291 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6292 * frv-tdep.c (frv_gdbarch_init): Ditto.
6293 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6294 * cris-tdep.c (cris_gdbarch_init): Ditto.
6295 * arm-tdep.c (arm_gdbarch_init): Ditto.
6297 2003-03-31 Andrew Cagney <cagney@redhat.com>
6299 * gdbarch.sh (CALL_DUMMY_P): Delete.
6300 * gdbarch.h, gdbarch.c: Re-generate.
6301 * inferior.h (CALL_DUMMY_P): Delete macro.
6302 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6303 * vax-tdep.c (vax_gdbarch_init): Update.
6304 * v850-tdep.c (v850_gdbarch_init): Update.
6305 * sparc-tdep.c (sparc_gdbarch_init): Update.
6306 * sh-tdep.c (sh_gdbarch_init): Update.
6307 * s390-tdep.c (s390_gdbarch_init): Update.
6308 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6309 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6310 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6311 * mips-tdep.c (mips_gdbarch_init): Update.
6312 * mcore-tdep.c (mcore_gdbarch_init): Update.
6313 * m68k-tdep.c (m68k_gdbarch_init): Update.
6314 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6315 * ia64-tdep.c (ia64_gdbarch_init): Update.
6316 * i386-tdep.c (i386_gdbarch_init): Update.
6317 * h8300-tdep.c (h8300_gdbarch_init): Update.
6318 * frv-tdep.c (frv_gdbarch_init): Update.
6319 * d10v-tdep.c (d10v_gdbarch_init): Update.
6320 * cris-tdep.c (cris_gdbarch_init): Update.
6321 * breakpoint.c (deprecated_frame_in_dummy): Update.
6322 * avr-tdep.c (avr_gdbarch_init): Update.
6323 * alpha-tdep.c (alpha_gdbarch_init): Update.
6324 * arm-tdep.c (arm_gdbarch_init): Update.
6325 * dummy-frame.c (dummy_frame_this_id): Update comments.
6326 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6327 * frame.c (legacy_get_prev_frame): Ditto.
6328 * valops.c (call_function_by_hand): Delete function.
6329 (hand_function_call): Rename to call_function_by_hand
6331 2003-03-30 Andrew Cagney <cagney@redhat.com>
6333 2002-11-10 Klee Dienes <kdienes@apple.com>
6334 * value.h (struct value): Update comment.
6336 2003-03-30 Andrew Cagney <cagney@redhat.com>
6338 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6340 (d10v_gdbarch_init): Do not set fp_regnum.
6342 * frame.c (get_frame_base): Force ID initialization.
6343 (get_prev_frame): Move computation of the frame ID from here ...
6344 (get_frame_id): ... to here.
6345 (legacy_get_prev_frame): Mark the frame ID as valid.
6346 * frame.h (struct frame_info): Add field "id_p".
6348 2003-03-30 Mark Kettenis <kettenis@gnu.org>
6350 * i386-tdep.c (i386_store_struct_return): Removed.
6351 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6353 2003-03-30 Andrew Cagney <cagney@redhat.com>
6355 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6356 * gdbarch.h, gdbarch.c: Regenerate.
6357 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6358 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6359 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6360 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6361 * i386-tdep.c (i386_gdbarch_init): Ditto.
6362 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6363 * cris-tdep.c (cris_gdbarch_init): Ditto.
6364 * vax-tdep.c (vax_gdbarch_init): Ditto.
6365 * s390-tdep.c (s390_gdbarch_init): Ditto.
6366 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6367 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6368 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6369 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6370 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6371 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6372 * sparc-tdep.c (sparc_gdbarch_init): Update.
6373 * sh-tdep.c (sh_gdbarch_init): Update.
6374 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6375 * mips-tdep.c (mips_gdbarch_init): Update.
6376 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6377 * ia64-tdep.c (ia64_gdbarch_init): Update.
6378 * frv-tdep.c (frv_gdbarch_init): Update.
6379 * avr-tdep.c (avr_gdbarch_init): Update.
6380 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6381 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
6382 instead of when push_dummy_call is not available.
6384 2003-03-30 Andrew Cagney <cagney@redhat.com>
6386 * infttrace.c: Include "gdbthread.h".
6387 (parent_attach_all): Fix function signature.
6388 (call_ptrace): Update call.
6389 * Makefile.in (infttrace.o): Update dependencies.
6391 2003-03-30 Andrew Cagney <cagney@redhat.com>
6393 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6394 PUSH_RETURN_ADDRESS.
6395 * gdbarch.h, gdbarch.c: Regenerate.
6396 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6397 * x86-64-tdep.c (x86_64_init_abi): Update.
6398 * v850-tdep.c (v850_gdbarch_init): Update.
6399 * sparc-tdep.c (sparc_gdbarch_init): Update.
6400 * sh-tdep.c (sh_gdbarch_init): Update.
6401 * s390-tdep.c (s390_gdbarch_init): Update.
6402 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6403 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6404 * mips-tdep.c (mips_gdbarch_init): Update.
6405 * mcore-tdep.c (mcore_gdbarch_init): Update.
6406 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6407 * ia64-tdep.c (ia64_gdbarch_init): Update.
6408 * i386-tdep.c (i386_gdbarch_init): Update.
6409 * h8300-tdep.c (h8300_gdbarch_init): Update.
6410 * frv-tdep.c (frv_gdbarch_init): Update.
6411 * cris-tdep.c (cris_gdbarch_init): Update.
6412 * avr-tdep.c (avr_gdbarch_init): Update.
6413 * arm-tdep.c (arm_gdbarch_init): Update.
6414 * valops.c (hand_function_call): Update.
6416 2003-03-29 Andrew Cagney <cagney@redhat.com>
6418 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6419 sizeof_call_dummy_words.
6420 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6422 * gdbarch.h: Regenerate.
6424 2003-03-29 Andrew Cagney <cagney@redhat.com>
6426 * infttrace.h: New file.
6427 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6428 (hpread_get_textlow): Detect an uninitialized dn_bufp.
6429 (hpread_read_doc_function_type): Detect an initialized type1.
6430 (hpread_quick_traverse): Initialize mod_name_string.
6431 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6432 (som_solib_get_solib_by_pc): Declare.
6433 (so_lib_thread_start_addr): Declare.
6434 (no_shared_libraries): Declare.
6435 * somread.c (init_import_symbols): Make static. Add forward
6437 * config/pa/nm-hppah.h: Include "infttrace.h" for
6439 (hppa_insert_hw_watchpoint): Declare.
6440 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6441 * hppah-nat.c: Include "gdb_string.h".
6442 (parent_attach_all): Delete extern declaration, moved to
6444 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
6446 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
6447 * Makefile.in (infttrace_h): Define.
6448 (hpread.o): Update dependencies.
6449 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
6450 * hppa-hpux-tdep.c: Include "gdb_string.h".
6451 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
6452 * infrun.c (handle_inferior_event): Always initialize
6453 stepped_after_stopped_by_watchpoint. Add default and remove
6454 fallthrough in switch statement.
6455 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
6457 (hppa_remove_hw_watchpoint): Ditto.
6459 2003-03-29 Andrew Cagney <cagney@redhat.com>
6461 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
6464 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
6466 * arm-tdep.c (arm_push_arguments): Delete.
6467 (struct stack_item): New type.
6468 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
6469 (arm_store_struct_return): Delte.
6470 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
6471 arm_push_arguments or arm_store_struct_return.
6473 2003-03-28 Andrew Cagney <cagney@redhat.com>
6475 * Makefile.in (d10v-tdep.o): Update dependencies.
6476 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
6477 * d10v-tdep.c: Include "remote.h".
6478 (target_resume_hook): Delete extern declaration.
6479 (target_wait_loop_hook): Ditto.
6480 (tdisassemble_command): Eliminate assignment in "if" conditional.
6481 (d10v_ts2_register_sim_regno): Eliminate call to
6482 legacy_register_sim_regno.
6483 (d10v_ts3_register_sim_regno): Ditto.
6485 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
6487 * thread.c: Reindented.
6489 * linux-proc.c: Ditto.
6491 2003-03-28 Bob Rossi <bob_rossi@cox.net>
6493 * MAINTAINERS (write after approval): Add myself.
6495 2003-03-27 Theodore A. Roth <troth@openavr.org>
6497 * objc-exp.y: Add missing semi-colons.
6499 2003-03-27 Andrew Cagney <cagney@redhat.com>
6501 * regcache.c (write_sp): Delete function and references.
6502 * inferior.h (write_sp): Delete declaration.
6503 * valops.c (hand_function_call): Replace write_sp with
6505 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
6506 (sparc_pop_frame): Ditto.
6508 2003-03-27 Andrew Cagney <cagney@redhat.com>
6510 * NEWS: Mention removal of support for hppa*-*-bsd* and
6511 hppa*-*-osf* natives, and hppa*-*-pro* target.
6512 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
6513 * config/pa/xm-pa.h: Obsolete file.
6514 * config/pa/xm-hppab.h: Obsolete file.
6515 * config/pa/nm-hppab.h: Obsolete file.
6516 * config/pa/tm-hppab.h: Obsolete file.
6517 * config/pa/tm-hppao.h: Obsolete file.
6518 * config/pa/nm-hppao.h: Obsolete file.
6519 * config/pa/tm-pro.h: Obsolete file.
6520 * config/pa/hppaosf.mt: Obsolete file.
6521 * config/pa/hppaosf.mh: Obsolete file.
6522 * config/pa/hppapro.mt: Obsolete file.
6523 * config/pa/hppabsd.mt: Obsolete file.
6524 * config/pa/hppabsd.mh: Obsolete file.
6525 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
6526 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
6529 2003-03-27 Andrew Cagney <cagney@redhat.com>
6531 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
6532 push_arguments. Don't set push_return_address or write_sp.
6533 (d10v_push_dummy_call): Replace d10v_push_arguments.
6534 (d10v_push_return_address, d10v_write_sp): Delete function,
6535 handled by push_dummy_call.
6537 2003-03-26 Andrew Cagney <cagney@redhat.com>
6539 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
6540 (push_dummy_call): New pure multi-arch replacement with gdbarch,
6541 regcache and dummy_addr parameters.
6542 * gdbarch.h, gdbarch.c: Re-generate.
6543 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
6544 available; assume it will handle stack alignment and return
6545 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
6546 legacy_push_arguments.
6547 (legacy_push_arguments): Rename default_push_arguments.
6548 * value.h (legacy_push_arguments): Rename default_push_arguments.
6549 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
6550 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6551 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6552 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6553 * config/i386/tm-symmetry.h: Update.
6554 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6555 * x86-64-tdep.c (x86_64_init_abi): Update.
6556 * v850-tdep.c (v850_gdbarch_init): Update.
6557 * sparc-tdep.c (sparc_gdbarch_init): Update.
6558 * sh-tdep.c (sh_gdbarch_init): Update.
6559 * s390-tdep.c (s390_gdbarch_init): Update.
6560 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6561 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6562 * mips-tdep.c (mips_gdbarch_init): Update.
6563 * mcore-tdep.c (mcore_gdbarch_init): Update.
6564 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6565 * ia64-tdep.c (ia64_gdbarch_init): Update.
6566 * i386-tdep.c (i386_gdbarch_init): Update.
6567 * hppa-tdep.c (hppa_gdbarch_init): Update.
6568 * h8300-tdep.c (h8300_gdbarch_init): Update.
6569 * frv-tdep.c (frv_gdbarch_init): Update.
6570 * d10v-tdep.c (d10v_gdbarch_init): Update.
6571 * cris-tdep.c (cris_gdbarch_init): Update.
6572 * avr-tdep.c (avr_gdbarch_init): Update.
6573 * arm-tdep.c (arm_gdbarch_init): Update.
6574 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6575 * alpha-tdep.c (alpha_gdbarch_init): Update.
6577 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6579 * signals/signals.c (do_target_signal_to_host): Correct realtime
6582 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6584 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
6585 (struct sal_chain, map_catch_names): Remove.
6586 (catch_exception_command_1): Don't call
6587 handle_gnu_4_16_catch_command.
6589 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6591 From Mark Dettinger <dettinge@de.ibm.com>:
6592 * dwarf2cfi.c (read_2u): Increment pointer by two.
6594 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6596 * signals/signals.c: Fix typos in last change.
6598 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6600 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
6601 not already defined. Use __SIGRTMIN if available.
6602 (target_signal_from_host): Remove SIGRTMIN block.
6603 (do_target_signal_to_host): Remove SIGRTMIN block; check that
6604 the signal is within the realtime range.
6606 2003-03-25 Adam Fedor <fedor@gnu.org>
6608 * Makefile.in (infrun.o): Add $(language_h)
6609 * infrun.c (handle_inferior_event): Use skip_language_trampoline
6610 for language specific trampolines.
6611 * language.h (struct language_defn): Add skip_trampoline.
6612 (skip_language_trampoline): Declare.
6613 * language.c (unk_lang_trampoline, skip_language_trampoline):
6615 (unknown_language_defn, auto_language_defn, local_language_defn):
6616 Add ukn_lang_trampoline.
6617 * ada-lang.c (ada_language_defn): Add NULL for language
6618 specific skip_trampoline.
6619 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
6620 scm-lang.c: Likewise.
6621 * objc-lang.c (objc_skip_trampoline): New function.
6622 (objc_language_defn): Add objc_skip_trampoline.
6624 2003-03-25 Andrew Cagney <cagney@redhat.com>
6626 * frame.c (get_prev_frame): Delay validating a frame's ID -
6627 non-NULL, didn't go backwards - until an attempt to unwind it to
6630 2003-03-25 Andrew Cagney <cagney@redhat.com>
6632 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
6633 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
6634 * gdbarch.h, gdbarch.c: Re-generate.
6635 * config/sparc/tm-sparc.h
6636 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
6637 * sparc-tdep.c (sparc_gdbarch_init): Set
6638 deprecated_extra_stack_alignment_needed.
6639 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
6640 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
6641 extra_stack_alignment_needed.
6642 * v850-tdep.c (v850_gdbarch_init): Ditto.
6643 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6644 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6645 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6646 * cris-tdep.c (cris_gdbarch_init): Ditto.
6647 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6648 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6650 2003-03-25 Andrew Cagney <cagney@redhat.com>
6652 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
6653 STORE_STRUCT_RETURN.
6654 * gdbarch.h, gdbarch.c: Regenerate.
6655 * d10v-tdep.c (d10v_store_struct_return): Delete function.
6656 (d10v_push_arguments): Set the struct return register.
6657 (d10v_gdbarch_init): Update.
6658 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6659 * x86-64-tdep.c (x86_64_init_abi): Update.
6660 * vax-tdep.c (vax_gdbarch_init): Update.
6661 * v850-tdep.c (v850_gdbarch_init): Update.
6662 * sparc-tdep.c (sparc_gdbarch_init): Update.
6663 * sh-tdep.c (sh_gdbarch_init): Update.
6664 * s390-tdep.c (s390_gdbarch_init): Update.
6665 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6666 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6667 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6668 * mips-tdep.c (mips_gdbarch_init): Update.
6669 * mcore-tdep.c (mcore_gdbarch_init): Update.
6670 * m68k-tdep.c (m68k_gdbarch_init): Update.
6671 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6672 * ia64-tdep.c (ia64_gdbarch_init): Update.
6673 * i386-tdep.c (i386_gdbarch_init): Update.
6674 * hppa-tdep.c (hppa_gdbarch_init): Update.
6675 * h8300-tdep.c (h8300_gdbarch_init): Update.
6676 * frv-tdep.c (frv_gdbarch_init): Update.
6677 * cris-tdep.c (cris_gdbarch_init): Update.
6678 * avr-tdep.c (avr_gdbarch_init): Update.
6679 * arm-tdep.c (arm_gdbarch_init): Update.
6680 * alpha-tdep.c (alpha_gdbarch_init): Update.
6682 2003-03-25 Andrew Cagney <cagney@redhat.com>
6684 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
6685 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
6686 CALL_DUMMY_STACK_ADJUST with a predicate variable.
6687 * gdbarch.h, gdbarch.c: Regenerate.
6688 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6689 call_dummy_stack_adjust_p.
6690 * vax-tdep.c (vax_gdbarch_init): Ditto.
6691 * v850-tdep.c (v850_gdbarch_init): Ditto.
6692 * sh-tdep.c (sh_gdbarch_init): Ditto.
6693 * s390-tdep.c (s390_gdbarch_init): Ditto.
6694 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6695 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6696 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6697 * mips-tdep.c (mips_gdbarch_init): Ditto.
6698 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6699 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6700 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6701 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6702 * i386-tdep.c (i386_gdbarch_init): Ditto.
6703 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6704 * frv-tdep.c (frv_gdbarch_init): Ditto.
6705 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6706 * cris-tdep.c (cris_gdbarch_init): Ditto.
6707 * avr-tdep.c (avr_gdbarch_init): Ditto.
6708 * arm-tdep.c (arm_gdbarch_init): Ditto.
6709 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6710 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6711 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
6712 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6713 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
6714 call_dummy_stack_adjust_p.
6715 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
6716 (CALL_DUMMY_STACK_ADJUST): Delete macro.
6717 * sparc-tdep.c (sparc32_push_arguments): Update.
6718 * valops.c (hand_function_call): Update.
6720 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
6722 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
6723 set_gdbarch_char_signed.
6725 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
6728 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
6730 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
6732 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
6733 (_initialize_arm_tdep): Don't set tm_print_insn.
6735 2003-03-24 Adam Fedor <fedor@gnu.org>
6737 * Makefile.in (YYOBJ): Add objc-exp.tab.o
6738 * objc-lang.h: Add multiple inclusion protection.
6739 (start_msglist, add_msglist, end_msglist): Additional declarations.
6741 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
6743 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
6744 value was renamed to ARM_FLOAT_SOFT_FPA.
6746 2003-03-23 Andrew Cagney <cagney@redhat.com>
6748 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
6749 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
6750 * gdbarch.h, gdbarch.c: Regenerate.
6751 * valops.c (hand_function_call): Update.
6752 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6753 * frame.c (legacy_saved_regs_this_id): Update.
6754 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
6755 * dummy-frame.h: Update.
6756 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
6757 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6758 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
6759 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
6760 * config/m68k/tm-sun3.h: Update.
6761 * blockframe.c (inside_main_func, frame_chain_valid): Update.
6762 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6763 * x86-64-tdep.c (x86_64_init_abi): Update.
6764 * vax-tdep.c (vax_gdbarch_init): Update.
6765 * v850-tdep.c (v850_gdbarch_init): Update.
6766 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
6767 * sh-tdep.c (sh_gdbarch_init): Update.
6768 * s390-tdep.c (s390_gdbarch_init): Update.
6769 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
6770 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
6771 (frame_get_saved_regs): Update.
6772 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6773 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6774 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6775 * mips-tdep.c (mips_gdbarch_init): Update.
6776 * mcore-tdep.c (mcore_gdbarch_init): Update.
6777 * m68k-tdep.c (m68k_gdbarch_init): Update.
6778 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6779 * ia64-tdep.c (ia64_gdbarch_init): Update.
6780 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
6781 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6782 (i386_interix_back_one_frame): Update.
6783 * hppa-tdep.c (hppa_gdbarch_init): Update.
6784 (hppa_init_extra_frame_info): Update.
6785 * h8300-tdep.c (h8300_gdbarch_init): Update.
6786 * frv-tdep.c (frv_gdbarch_init): Update.
6787 * cris-tdep.c (cris_gdbarch_init): Update.
6788 * avr-tdep.c (avr_gdbarch_init): Update.
6789 * arm-tdep.c (arm_gdbarch_init): Update.
6790 * alpha-tdep.c (alpha_gdbarch_init): Update.
6792 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6794 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
6795 (arm_get_fp_model): Declare.
6796 * arm-tdep.c (fp_model_strings): New string array.
6797 (arm_fp_model, current_fp_model): New variables.
6798 (arm_get_fp_model): New function.
6799 (arm_set_fp): New function.
6800 (set_fp_model_sfunc): New function.
6801 (show_fp_model): New function.
6802 (_initialize_arm_tdep): Add new command to set/show the FPU.
6803 (arm_extract_return_value): Use arm_get_fp_model.
6804 (arm_store_return_value): Likewise.
6805 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
6806 to initialize the floating-point data types.
6807 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
6810 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6812 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
6813 the current setting of each value.
6814 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
6815 new_set and new_show. Use add_setshow_cmd_full and
6816 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
6817 commands and add new version as subcommands of "set/show arm".
6819 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6821 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
6822 (set_arm_command, show_arm_command): New functions.
6823 (_initialize_arm_tdep): Add them.
6824 (num_disassembly_options): Renamed from num_flavor_options.
6825 (valid_disassembly_styles): Renamed from valid_flavors.
6826 (disassembly_style): Renamed from disassembly_flavor.
6827 (set_disassembly_style_sfunc): Renamed from
6828 set_disassembly_flavor_sfunc.
6829 (set_disassembly_style): Renamed from set_disassembly_flavor.
6830 (arm_othernames): Updated.
6831 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
6832 command. Add "set/show arm disassembly" commands. Deprecate
6833 "othernames" command.
6835 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6837 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
6838 (arm-tdep.o): Depend on elf_arm_h.
6840 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6842 * Makefile.in (coff_internal_h): Define.
6843 (arm-tdep.o): Update dependencies.
6845 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6847 * arm-tdep.c (prologue_cache): Delete.
6848 (check_prologue_cache, save_prologue_cache): Delete.
6849 (arm_scan_prologue): Don't check or update the prologue_cache.
6850 (arm_gdb_arch_init): Don't initialize it.
6851 (_initialize_arm_tdep): Likewise.
6853 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
6855 * MAINTAINERS (tui): Maintainer of tui code.
6857 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
6859 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
6860 (i386-cygwin-tdep.o): Add dependencies.
6861 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
6862 * i386-cygwin-tdep.c: New file.
6863 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
6864 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
6866 2003-03-20 Andrew Cagney <cagney@redhat.com>
6868 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
6869 (handle_inferior_event): Remove code calling
6870 DYNAMIC_TRAMPOLINE_NEXTPC.
6872 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
6873 already has a full path.
6875 * main.c (gdb_main): Return 1.
6876 (captured_main): Call error to report an invalid interpreter.
6878 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6879 * alpha-osf1-tdep.c: Include "gdb_string.h".
6881 2003-03-19 J. Brobecker <brobecker@gnat.com>
6883 Continuing work to convert the hppa targets to multiarch partial.
6885 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
6886 method, now that hppa_push_dummy_frame has a conformant prototype.
6887 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
6888 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
6889 for the switch to multiarch partial.
6891 2003-03-19 Kevin Buettner <kevinb@redhat.com>
6893 * mdebugread.c (parse_symbol): For stEnd, we're done counting
6894 when iss is issNull.
6896 2003-03-18 Kevin Buettner <kevinb@redhat.com>
6898 * mips-tdep.c (mips_register_name): Fix fencepost error involving
6899 NUM_REGS bounds check.
6901 2003-03-18 Kevin Buettner <kevinb@redhat.com>
6903 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
6904 * mips-tdep.c (gdb_assert.h): Include.
6905 (mips_generic_reg_names, mips_processor_reg_names): Make static.
6906 (mips_register_name): Handle integer registers explicitly. Add
6908 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
6909 (mips_lsi33k_reg_names): Don't list integer registers; they're
6910 handled by mips_register_name() now.
6911 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
6912 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
6913 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
6914 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
6915 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
6917 2003-03-18 Andrew Cagney <cagney@redhat.com>
6919 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
6921 * gdbtypes.h (print_scalar_formatted): Update declaration.
6922 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
6924 2003-03-18 J. Brobecker <brobecker@gnat.com>
6926 * infrun.c (observer.h): Add #include.
6927 (normal_stop): Add call to observer_notify_normal_stop.
6928 * Makefile.in (infrun.o): Add dependency on observer.h.
6930 2003-03-18 J. Brobecker <brobecker@gnat.com>
6932 Continuing work to convert the hppa targets to multiarch partial.
6933 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
6934 parameter. Reformat comment.
6935 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
6936 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
6937 to match new profile.
6939 2003-03-18 J. Brobecker <brobecker@gnat.com>
6941 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
6942 appear to be working in any case.
6944 2003-03-18 J. Brobecker <brobecker@gnat.com>
6946 * observer.c (observer_test_first_observer): New static variable.
6947 (observer_test_second_observer): Likewise.
6948 (observer_test_third_observer): Likewise.
6949 (observer_test_first_notification_function): New static function.
6950 (observer_test_second_notification_function): Likewise.
6951 (observer_test_third_notification_function): Likewise.
6953 2003-03-17 J. Brobecker <brobecker@gnat.com>
6955 * hppa-tdep.c (gdb_assert.h): Add missing #include.
6956 * somsolib.c (gdb_assert.h): Likewise.
6957 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
6958 (somsolib.o): Likewise.
6960 2003-03-17 Andrew Cagney <cagney@redhat.com>
6962 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
6963 BFD. Simplify setting of di.endian.
6965 2003-03-17 Andrew Cagney <cagney@redhat.com>
6967 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
6968 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
6970 From Elena Zannoni <ezannoni@redhat.com>
6971 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
6972 vector and floating-point parameters.
6973 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
6975 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
6977 2003-03-17 Fernando Nasser <fnasser@redhat.com>
6979 * MAINTAINERS: Remove my name from several maintainership roles.
6981 2003-03-17 Andrew Cagney <cagney@redhat.com>
6983 Fix frame off-by-one bug.
6984 * frame-unwind.h (frame_this_id_ftype): Replace
6985 frame_unwind_id_ftype.
6986 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
6987 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
6988 with "prev_register".
6989 * frame-unwind.c (frame_unwind_find_by_pc): Return
6990 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
6992 * dummy-frame.c (cached_find_dummy_frame): Delete function.
6993 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
6994 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
6995 (dummy_frame_unwind): Update.
6996 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6997 sentinel_frame_register_unwind.
6998 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
6999 (sentinel_frame_unwinder): Update.
7000 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7001 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7002 * frame.c (create_sentinel_frame): Update. Initialize
7003 "prologue_cache" instead of "unwind_cache".
7004 (frame_register_unwind): Call this frame's prev_register with the
7005 next frame and this frame's prologue cache.
7006 (get_prev_frame): Simplify. Always call prev frame's this_id with
7007 this frame and prev frame's prologue cache. Document that this
7008 call is shifted one to the left when compared to the
7009 frame_register_unwind call.
7010 (legacy_saved_regs_prev_register): Replace
7011 frame_saved_regs_register_unwind.
7012 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7013 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7014 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7015 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7016 (d10v_frame_unwind): Update.
7017 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7018 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7019 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7020 "saved_regs" with "this_saved_regs".
7022 2003-03-16 Andrew Cagney <cagney@redhat.com>
7024 * frame.c (frame_pop): Don't call target_store_registers. Fix
7025 problem reported by Mark Kettenis.
7027 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7029 * i386-tdep.c (i386_register_type): Renamed from
7030 i386_register_virtual_type. Adjust function signature.
7031 (i386_gdbarch_init): Set register_type instead of
7032 deprecated_max_register_raw_size,
7033 deprecated_max_register_virtual_size and register_virtual_type.
7035 2003-03-14 Andrew Cagney <cagney@redhat.com>
7037 * frame.c (get_prev_frame): When a legacy frame, always call
7038 legacy_get_prev_frame. Simplify unwind code using assumption that
7039 the unwinder is new.
7040 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7041 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7042 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7044 2003-03-14 Andrew Cagney <cagney@redhat.com>
7046 * frame.c (get_saved_register): Delete function.
7047 * frame.h (get_saved_register): Delete declaration.
7048 * xstormy16-tdep.c: Update comment.
7049 * regcache.h: Update comments.
7050 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7051 get_saved_register and extract_address, use
7052 frame_read_unsigned_register.
7053 (sparc_frame_saved_pc): Ditto.
7054 (sparc_get_saved_register): Instead of get_saved_register, use
7056 (sparc_pop_frame): Ditto.
7057 * findvar.c: Update comments.
7058 (value_of_register): Call frame_register instead of
7060 (value_from_register): Ditto.
7061 * config/sparc/tm-sparc.h: Update comment.
7062 * breakpoint.c: Update comment.
7064 2003-03-14 Andrew Cagney <cagney@redhat.com>
7066 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7068 * gdbarch.h, gdbarch.c: Re-generate.
7069 * frame.h: Update comments.
7070 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7071 * x86-64-tdep.c (x86_64_init_abi): Update.
7072 * sparc-tdep.c (sparc_gdbarch_init): Update.
7073 * sh-tdep.c (sh_gdbarch_init): Update.
7074 * mips-tdep.c (mips_gdbarch_init): Update.
7075 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7076 * cris-tdep.c (cris_gdbarch_init): Update.
7077 * ia64-tdep.c (ia64_gdbarch_init): Update.
7078 * frame.c (frame_register): Update.
7079 (get_saved_register): Update.
7080 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7082 2003-03-13 Andrew Cagney <cagney@redhat.com>
7084 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7085 * gdbarch.h, gdbarch.c: Regenerate.
7086 * valops.c (hand_function_call): Update comment.
7087 * stack.c (return_command): Update comment.
7088 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7089 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7090 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7091 * x86-64-tdep.c (x86_64_init_abi): Update.
7092 * vax-tdep.c (vax_gdbarch_init): Update.
7093 * v850-tdep.c (v850_gdbarch_init): Update.
7094 * sparc-tdep.c (sparc_gdbarch_init): Update.
7095 * sh-tdep.c (sh_gdbarch_init): Update.
7096 * s390-tdep.c (s390_gdbarch_init): Update.
7097 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7098 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7099 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7100 * mips-tdep.c (mips_gdbarch_init): Update.
7101 * mcore-tdep.c (mcore_gdbarch_init): Update.
7102 * m68k-tdep.c (m68k_gdbarch_init): Update.
7103 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7104 * ia64-tdep.c (ia64_gdbarch_init): Update.
7105 * i386-tdep.c (i386_gdbarch_init): Update.
7106 * hppa-tdep.c (hppa_gdbarch_init): Update.
7107 * h8300-tdep.c (h8300_gdbarch_init): Update.
7108 * frv-tdep.c (frv_gdbarch_init): Update.
7109 * cris-tdep.c (cris_gdbarch_init): Update.
7110 * avr-tdep.c (avr_gdbarch_init): Update.
7111 * arm-tdep.c (arm_gdbarch_init): Update.
7112 * alpha-tdep.c (alpha_gdbarch_init): Update.
7114 2003-03-13 Andrew Cagney <cagney@redhat.com>
7116 * frame.c (legacy_frame_p): New function.
7117 (get_prev_frame): Use legacy_frame_p.
7118 * frame.h (legacy_frame_p): Declare.
7120 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7122 * MAINTAINERS (write after approval): Alphabetically
7125 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7127 * MAINTAINERS (write after approval): Add myself.
7129 2003-03-12 Andrew Cagney <cagney@redhat.com>
7131 * frame.c (get_prev_frame): Rename the frame parameter to
7133 (get_next_frame, legacy_get_prev_frame): Ditto.
7135 2003-03-12 Andrew Cagney <cagney@redhat.com>
7137 * frame.c (get_current_frame): Check target_has_registers before
7138 checking target_has_stack.
7139 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7140 instead of deprecated_selected_frame.
7141 * findvar.c (value_of_register): Pass "frame", not
7142 deprecated_selected_frame, to value_of_builtin_reg.
7144 2003-03-12 Andrew Cagney <cagney@redhat.com>
7146 * regcache.c (regcache_cooked_write_signed): New function.
7147 (regcache_cooked_write_unsigned): New function.
7148 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7149 (regcache_cooked_read_signed): Fix regnum in range assertion.
7150 * regcache.h (regcache_cooked_write_signed): Declare.
7151 (regcache_cooked_write_unsigned): Declare.
7153 2003-03-12 Andrew Cagney <cagney@redhat.com>
7155 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7156 * gdbarch.h, gdbarch.c: Re-generate.
7157 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7158 * x86-64-tdep.h: Update.
7159 * x86-64-tdep.c (x86_64_init_abi): Update.
7160 * v850-tdep.c (v850_gdbarch_init): Update.
7161 * sparc-tdep.c (sparc_gdbarch_init): Update.
7162 * sh-tdep.c (sh_gdbarch_init): Update.
7163 * s390-tdep.c (s390_gdbarch_init): Update.
7164 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7165 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7166 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7167 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7168 * mips-tdep.c (mips_gdbarch_init): Update.
7169 * mcore-tdep.c (mcore_gdbarch_init): Update.
7170 * m68k-tdep.c (m68k_gdbarch_init): Update.
7171 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7172 * ia64-tdep.c (ia64_gdbarch_init): Update.
7173 * i386-tdep.c (i386_gdbarch_init): Update.
7174 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7175 * hppa-tdep.c (hppa_gdbarch_init): Update.
7176 * h8300-tdep.c (h8300_gdbarch_init): Update.
7177 * frv-tdep.c (frv_gdbarch_init): Update.
7178 * cris-tdep.c (cris_gdbarch_init): Update.
7179 * avr-tdep.c (avr_gdbarch_init): Update.
7180 * arm-tdep.c (arm_gdbarch_init): Update.
7181 * alpha-tdep.c (alpha_gdbarch_init): Update.
7182 * sh-tdep.c (sh_init_extra_frame_info): Update.
7183 (sh64_init_extra_frame_info): Update.
7184 * ns32knbsd-nat.c (frame_num_args): Update.
7185 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7186 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7187 (xstormy16_frame_chain_valid): Update.
7188 * vax-tdep.c (vax_saved_pc_after_call): Update.
7189 * v850-tdep.c (v850_frame_chain): Update.
7190 (v850_pop_frame): Update.
7191 (v850_init_extra_frame_info): Update.
7192 * sparc-tdep.c (setup_arbitrary_frame): Update.
7193 * ns32k-tdep.c (umax_frame_num_args): Update.
7194 * s390-tdep.c (s390_pop_frame_regular): Update.
7195 * mn10300-tdep.c (mn10300_frame_chain): Update.
7196 (mn10300_pop_frame_regular): Update.
7197 (mn10300_init_extra_frame_info): Update.
7198 * mips-tdep.c (mips_init_frame_pc_first): Update.
7199 (mips_frame_chain): Update.
7200 (mips_pop_frame): Update.
7201 * mcore-tdep.c (mcore_frame_chain): Update.
7202 (mcore_pop_frame): Update.
7203 (mcore_init_extra_frame_info): Update.
7204 * arch-utils.c (init_frame_pc_default): Update.
7205 * m68k-tdep.c (isi_frame_num_args): Update.
7206 (delta68_frame_num_args): Update.
7207 (news_frame_num_args): Update.
7208 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7209 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7210 (alpha_frame_chain): Update.
7211 (alpha_pop_frame): Update.
7212 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7213 (hppa_init_extra_frame_info): Update.
7214 (hppa_frame_chain): Update.
7215 (hppa_frame_chain_valid): Update.
7216 * cris-tdep.c (cris_init_extra_frame_info): Update.
7217 * avr-tdep.c (avr_init_extra_frame_info): Update.
7218 * arm-tdep.c (arm_frame_chain_valid): Update.
7219 (arm_init_extra_frame_info): Update.
7220 (arm_pop_frame): Update.
7221 * frame.c (frame_pc_unwind): Update.
7222 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7223 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7224 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7225 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7226 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7227 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7229 2003-03-12 Andrew Cagney <cagney@redhat.com>
7231 Eliminate the need for POP_FRAME.
7232 * frame.c (do_frame_unwind_register): New function.
7233 (frame_pop): When no POP_FRAME, pop the frame using register
7234 unwind and a scratch regcache.
7235 (frame_saved_regs_pop): Delete function.
7236 (trad_frame_unwinder): Update.
7237 * d10v-tdep.c (d10v_frame_pop): Delete function.
7238 (d10v_frame_unwind): Update.
7239 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7240 (sentinel_frame_unwinder): Update.
7241 * dummy-frame.c (dummy_frame_pop): Delete function.
7242 (dummy_frame_unwind): Update.
7243 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7244 (struct frame_unwind): Update.
7246 2003-03-11 Kevin Buettner <kevinb@redhat.com>
7248 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7249 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7250 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7251 Do range checks on register number obtained from debugging info.
7252 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7253 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7254 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7256 (do_fp_register_row): Fix typo which caused double type to be
7257 used when attempting to unpack a float.
7259 2003-03-11 J. Brobecker <brobecker@gnat.com>
7261 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7263 2003-03-11 Andrew Cagney <cagney@redhat.com>
7265 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7266 frame. Problem found by Corinna Vinschen.
7268 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7270 * doublest.c (floatformat_from_length): Accept also
7271 the real size of 'long double' type.
7273 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
7275 From Klee Dienes <kdienes@apple.com>:
7276 * breakpoint.c (bpstat_copy): Copy the command lines as well
7277 as the old value, to match what is freed in bpstat_clear.
7279 2003-03-10 David Carlton <carlton@math.stanford.edu>
7281 * minsyms.c (add_minsym_to_hash_table): Replace
7282 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7283 (compare_minimal_symbols, compact_minimal_symbols)
7284 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7285 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7286 of DEPRECATED_SYMBOL_MATCHES_NAME.
7287 (lookup_minimal_symbol_solib_trampoline): Ditto.
7289 2003-03-10 Andrew Cagney <cagney@redhat.com>
7291 * regcache.h (regcache_cooked_read_ftype): Define.
7292 (regcache_save, regcache_restore): Add a cooked_read parameter.
7293 * regcache.c (regcache_save, regcache_restore): Update.
7294 (do_cooked_read): New function.
7295 (regcache_cpy): Pass do_cooked_read to regcache_save and
7298 2003-03-10 Andrew Cagney <cagney@redhat.com>
7300 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7301 * gdbarch.h, gdbarch.c: Re-generate.
7302 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7303 * x86-64-tdep.h: Update.
7304 * x86-64-tdep.c (x86_64_init_abi): Update.
7305 * v850-tdep.c (v850_gdbarch_init): Update.
7306 * sparc-tdep.c (sparc_gdbarch_init): Update.
7307 * sh-tdep.c (sh_gdbarch_init): Update.
7308 * s390-tdep.c (s390_gdbarch_init): Update.
7309 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7310 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7311 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7312 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7313 * mips-tdep.c (mips_gdbarch_init): Update.
7314 * mcore-tdep.c (mcore_gdbarch_init): Update.
7315 * m68k-tdep.c (m68k_gdbarch_init): Update.
7316 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7317 * ia64-tdep.c (ia64_gdbarch_init): Update.
7318 * i386-tdep.c (i386_gdbarch_init): Update.
7319 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7320 * hppa-tdep.c (hppa_gdbarch_init): Update.
7321 * h8300-tdep.c (h8300_gdbarch_init): Update.
7322 * frv-tdep.c (frv_gdbarch_init): Update.
7323 * cris-tdep.c (cris_gdbarch_init): Update.
7324 * avr-tdep.c (avr_gdbarch_init): Update.
7325 * arm-tdep.c (arm_gdbarch_init): Update.
7326 * alpha-tdep.c (alpha_gdbarch_init): Update.
7327 * sh-tdep.c (sh_init_extra_frame_info): Update.
7328 (sh64_init_extra_frame_info): Update.
7329 * ns32knbsd-nat.c (frame_num_args): Update.
7330 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7331 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7332 (xstormy16_frame_chain_valid): Update.
7333 * vax-tdep.c (vax_saved_pc_after_call): Update.
7334 * v850-tdep.c (v850_frame_chain): Update.
7335 (v850_pop_frame): Update.
7336 (v850_init_extra_frame_info): Update.
7337 * sparc-tdep.c (setup_arbitrary_frame): Update.
7338 * ns32k-tdep.c (umax_frame_num_args): Update.
7339 * s390-tdep.c (s390_pop_frame_regular): Update.
7340 * mn10300-tdep.c (mn10300_frame_chain): Update.
7341 (mn10300_pop_frame_regular): Update.
7342 (mn10300_init_extra_frame_info): Update.
7343 * mips-tdep.c (mips_init_frame_pc_first): Update.
7344 (mips_frame_chain): Update.
7345 (mips_pop_frame): Update.
7346 * mcore-tdep.c (mcore_frame_chain): Update.
7347 (mcore_pop_frame): Update.
7348 (mcore_init_extra_frame_info): Update.
7349 * arch-utils.c (init_frame_pc_default): Update.
7350 * m68k-tdep.c (isi_frame_num_args): Update.
7351 (delta68_frame_num_args): Update.
7352 (news_frame_num_args): Update.
7353 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7354 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7355 (alpha_frame_chain): Update.
7356 (alpha_pop_frame): Update.
7357 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7358 (hppa_init_extra_frame_info): Update.
7359 (hppa_frame_chain): Update.
7360 (hppa_frame_chain_valid): Update.
7361 * cris-tdep.c (cris_init_extra_frame_info): Update.
7362 * avr-tdep.c (avr_init_extra_frame_info): Update.
7363 * arm-tdep.c (arm_frame_chain_valid): Update.
7364 (arm_init_extra_frame_info): Update.
7365 (arm_pop_frame): Update.
7366 * frame.c (frame_pc_unwind): Update.
7367 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7368 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7369 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7370 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7371 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7372 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7374 2003-03-10 Andrew Cagney <cagney@redhat.com>
7376 * gdbarch.sh (gdbarch_unwind_pc): New method.
7377 * gdbarch.h, gdbarch.c: Regenerate.
7378 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
7379 but use read_pc and FRAME_SAVED_PC as fall backs.
7380 (frame_saved_regs_pc_unwind): Delete function.
7381 (trad_frame_unwinder): Update.
7382 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7383 (struct frame_unwind): Update.
7384 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7385 (dummy_frame_unwind): Update.
7386 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7387 (sentinel_frame_unwinder): Update.
7388 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7389 (d10v_frame_unwind): Update.
7390 (d10v_unwind_pc): New function.
7391 (d10v_gdbarch_init): Set unwind_pc.
7393 2003-03-10 Andrew Cagney <cagney@redhat.com>
7395 * gdbarch.h: Re-generate.
7397 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7399 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7402 2003-03-08 Mark Kettenis <kettenis@gnu.org>
7404 * gdbarch.sh (save_dummy_frame_tos): Add comment.
7406 2003-03-08 Andrew Cagney <cagney@redhat.com>
7408 * cli-out.c: Update copyright.
7409 (cli_out_data): Define typedef. Use instead of ui_out_data.
7411 2003-03-08 Andrew Cagney <cagney@redhat.com>
7413 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7416 2003-03-07 Andrew Cagney <cagney@redhat.com>
7418 * gdbarch.sh: Don't generate two macro definitions when an
7419 undefined macro taking no arguments.
7420 * gdbarch.h: Regenerate.
7422 2002-03-07 Michal Ludvig <mludvig@suse.cz>
7424 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7425 (x86_64_unwind_dummy_id): New functions.
7426 (x86_64_init_abi): Register these two new functions.
7428 2003-03-07 Michal Ludvig <mludvig@suse.cz>
7430 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
7431 (x86_64_skip_prologue): Move prologue detection to
7433 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7435 2003-03-05 Andrew Cagney <cagney@redhat.com>
7437 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7438 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7439 * frame.c (get_prev_frame): Restructure the frame ID unwind code
7440 to use unwind_dummy_id when a dummy frame.
7441 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7443 * gdbarch.h, gdbarch.c: Regneerate.
7445 2003-03-05 Andrew Cagney <cagney@redhat.com>
7447 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
7448 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
7449 Do not use d10v_read_sp or d10v_read_fp when obtaining register
7452 2003-03-05 Andrew Cagney <cagney@redhat.com>
7454 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
7455 (struct d10v_unwind_cache): Delete field "frameless". Replace
7456 "next_addr" with "sp_offset". Add "r11_offset".
7457 (d10v_frame_unwind_cache): Update.
7458 (prologue_find_regs): Update. When "mv r11, sp", save the
7459 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
7460 RN was saved in r11_offset.
7462 2003-03-05 Andrew Cagney <cagney@redhat.com>
7464 * frame.c (deprecated_update_frame_pc_hack): Also update the the
7465 cached PC value in the next frame.
7467 2003-03-05 Andrew Cagney <cagney@redhat.com>
7469 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
7470 "id_unwind_cache" with "id".
7471 (frame_id_unwind): Delete declaration.
7472 * frame.c (frame_id_unwind): Delete function.
7473 (get_prev_frame): Call the frame id unwind method directly. Store
7474 the returned next frame's ID value in NEXT_FRAME. Note that there
7475 is a problem with the wrong unwind ID being called with the wrong
7478 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7480 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
7482 2003-03-05 James Ingham <jingham@apple.com>
7483 Daniel Jacobowitz <drow@mvista.com>
7485 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
7486 (auto_cp_abi): New variable.
7487 (current_cp_abi, num_cp_abis): Make static.
7488 (CP_ABI_MAX): Define.
7489 (cp_abis): Turn into an array.
7490 (value_virtual_fn_field): Fix formatting.
7491 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
7493 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
7494 (list_cp_abis, _initialize_cp_abi): New functions.
7495 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
7496 declarations for cp_abis, num_cp_abis, current_cp_abi, and
7497 switch_to_cp_abi. Update prototype for register_cp_abi.
7498 * Makefile.in (cp-abi.o): Update dependencies.
7499 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
7500 instead of switch_to_cp_abi.
7501 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
7503 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
7505 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
7507 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7509 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
7510 * dwarf2loc.c: Include "regcache.h".
7511 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
7513 * Makefile.in (dwarf2loc.o): Update dependencies.
7515 2003-03-04 Theodore A. Roth <troth@openavr.org>
7517 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
7518 number of io registers reported by remote target is not a multiple of
7521 2003-03-04 David Carlton <carlton@math.stanford.edu>
7523 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
7524 (lookup_symbol_aux_psymtabs): Update call to
7525 lookup_partial_symbol.
7526 (lookup_transparent_type, find_main_psymtab)
7527 (make_symbol_overload_list): Ditto.
7529 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
7531 * MAINTAINERS (Write after approval): Update my email address.
7533 2003-03-03 Andrew Cagney <cagney@redhat.com>
7535 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
7536 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
7537 predicate. Replace MAX_REGISTER_RAW_SIZE.
7538 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
7539 MAX_REGISTER_VIRTUAL_SIZE.
7540 * regcache.c (legacy_max_register_raw_size): New function.
7541 (legacy_max_register_virtual_size): New function.
7542 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
7543 (MAX_REGISTER_RAW_SIZE): Define.
7544 (legacy_max_register_raw_size): Declare.
7545 (legacy_max_register_virtual_size): Declare.
7546 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7547 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
7548 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7549 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7550 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7551 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7552 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7553 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7554 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7555 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7556 * vax-tdep.c (vax_gdbarch_init): Update.
7557 * v850-tdep.c (v850_gdbarch_init): Update.
7558 * sparc-tdep.c (sparc_gdbarch_init): Update.
7559 * sh-tdep.c (sh_gdbarch_init): Update.
7560 * s390-tdep.c (s390_gdbarch_init): Update.
7561 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7562 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7563 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7564 * mips-tdep.c (mips_gdbarch_init): Update.
7565 * mcore-tdep.c (mcore_gdbarch_init): Update.
7566 * m68k-tdep.c (m68k_gdbarch_init): Update.
7567 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7568 * ia64-tdep.c (ia64_gdbarch_init): Update.
7569 * i386-tdep.c (i386_gdbarch_init): Update.
7570 * hppa-tdep.c (hppa_gdbarch_init): Update.
7571 * h8300-tdep.c (h8300_gdbarch_init): Update.
7572 * frv-tdep.c (frv_gdbarch_init): Update.
7573 * cris-tdep.c (cris_gdbarch_init): Update.
7574 * avr-tdep.c (avr_gdbarch_init): Update.
7575 * arm-tdep.c (arm_gdbarch_init): Update.
7576 * alpha-tdep.c (alpha_gdbarch_init): Update.
7577 * d10v-tdep.c (d10v_gdbarch_init): Do not set
7578 max_register_raw_size or max_register_virtual_size.
7580 2003-03-03 David Carlton <carlton@math.stanford.edu>
7582 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
7583 SYMBOL_MATCHES_NAME, add comment.
7584 (SYMBOL_MATCHES_NATURAL_NAME): New.
7585 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
7586 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
7587 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
7588 * symtab.c (lookup_partial_symbol): Use
7589 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
7591 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
7592 SYMBOL_MATCHES_NAME.
7595 2003-03-03 David Carlton <carlton@math.stanford.edu>
7597 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
7598 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
7599 by regexp matching against SYMBOL_NATURAL_NAME.
7601 2003-03-03 David Carlton <carlton@math.stanford.edu>
7603 * linespec.c (find_method): Extract code into collect_methods.
7604 (collect_methods): New.
7606 2003-03-02 Mark Kettenis <kettenis@gnu.org>
7608 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
7611 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
7612 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7614 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
7616 * arch-utils.c (generic_register_byte): Fix to use the loop index
7617 and not regnum when summing the size of all registers up to regnum.
7619 2003-03-01 Andrew Cagney <cagney@redhat.com>
7621 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
7622 FRAME_INIT_SAVED_REGS.
7623 * gdbarch.h, gdbarch.c: Regenerate.
7624 * stack.c (frame_info): Update.
7625 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
7626 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
7627 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
7628 * ns32k-tdep.c (ns32k_pop_frame): Update.
7629 * mips-tdep.c (mips_pop_frame): Update.
7630 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
7631 * ia64-tdep.c (ia64_frame_chain): Update.
7632 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
7633 (ia64_frameless_function_invocation): Update.
7634 (ia64_init_extra_frame_info): Update.
7635 (ia64_pop_frame_regular): Update.
7636 * frame.h (struct frame_info): Update comment.
7637 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
7638 * frame.c (frame_saved_regs_register_unwind): Update.
7639 (frame_saved_regs_register_unwind): Update.
7640 (deprecated_generic_get_saved_register): Update.
7641 * cris-tdep.c: Update comment.
7642 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
7644 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7645 * x86-64-tdep.c (x86_64_init_abi): Update.
7646 * vax-tdep.c (vax_gdbarch_init): Update.
7647 * v850-tdep.c (v850_gdbarch_init): Update.
7648 * sparc-tdep.c (sparc_gdbarch_init): Update.
7649 * sh-tdep.c (sh_gdbarch_init): Update.
7650 * s390-tdep.c (s390_gdbarch_init): Update.
7651 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7652 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7653 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7654 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7655 * mips-tdep.c (mips_gdbarch_init): Update.
7656 * mcore-tdep.c (mcore_gdbarch_init): Update.
7657 * m68k-tdep.c (m68k_gdbarch_init): Update.
7658 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7659 * ia64-tdep.c (ia64_gdbarch_init): Update.
7660 * i386-tdep.c (i386_gdbarch_init): Update.
7661 * frv-tdep.c (frv_gdbarch_init): Update.
7662 * avr-tdep.c (avr_gdbarch_init): Update.
7663 * arm-tdep.c (arm_gdbarch_init): Update.
7664 * alpha-tdep.c (alpha_gdbarch_init): Update.
7666 2003-03-01 Andrew Cagney <cagney@redhat.com>
7668 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
7669 option enum and switch. When no windows, set the interpreter to
7672 2003-03-01 Andrew Cagney <cagney@redhat.com>
7674 * main.c (captured_main): Replace magic option characters with an
7677 2003-03-01 Andrew Cagney <cagney@redhat.com>
7679 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
7680 INIT_EXTRA_FRAME_INFO.
7681 * gdbarch.h, gdbarch.c: Regenerate.
7682 * arm-tdep.c: Update comments.
7683 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
7684 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
7685 * frame.h, avr-tdep.c: Ditto.
7686 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
7687 (create_new_frame, legacy_get_prev_frame): Ditto.
7688 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7689 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7690 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
7691 deprecated_init_extra_frame_info instead of init_extra_frame_info.
7692 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7693 * v850-tdep.c (v850_gdbarch_init): Ditto.
7694 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7695 * sh-tdep.c (sh_gdbarch_init): Ditto.
7696 * s390-tdep.c (s390_gdbarch_init): Ditto.
7697 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
7698 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7699 * mips-tdep.c (mips_gdbarch_init): Ditto.
7700 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7701 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7702 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7703 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
7704 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7705 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7706 * frv-tdep.c (frv_gdbarch_init): Ditto.
7707 * cris-tdep.c (cris_gdbarch_init): Ditto.
7708 * avr-tdep.c (avr_gdbarch_init): Ditto.
7709 * arm-tdep.c (arm_gdbarch_init): Ditto.
7710 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7711 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7713 2003-03-01 Andrew Cagney <cagney@redhat.com>
7715 * gdbarch.sh (register_type): New function with predicate.
7716 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
7717 * gdbarch.h, gdbarch.c: Re-generate.
7718 * arch-utils.c (generic_register_byte): Use generic_register_size.
7719 (generic_register_size): When available, use
7720 gdbarch_register_type.
7721 * regcache.c (init_regcache_descr): When available, initialize the
7722 register type array using gdbarch_register_type. If the
7723 architecture supplies gdbarch_register_type, do not use the legacy
7725 * d10v-tdep.c (d10v_register_type): Replace
7726 d10v_register_virtual_type.
7727 (d10v_gdbarch_init): Set register_type instead of
7728 register_virtual_type.
7730 2003-03-01 Andrew Cagney <cagney@redhat.com>
7732 * Makefile.in (ax-gdb.o): Update dependencies.
7733 * ax-gdb.c: Include "regcache.h".
7734 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
7735 * findvar.c (value_of_register): Ditto.
7736 * infcmd.c (default_print_registers_info): Ditto.
7738 2003-03-01 Mark Kettenis <kettenis@gnu.org>
7740 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
7741 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7743 2003-03-01 Mark Kettenis <kettenis@gnu.org>
7745 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
7748 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
7750 * Makefile.in (dwarf2loc.o): Update dependencies.
7751 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
7752 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
7753 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
7754 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
7755 (locexpr_tracepoint_var_ref): New function.
7756 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
7758 2003-02-28 Andrew Cagney <cagney@redhat.com>
7760 * regcache.c (register_size): New function.
7761 * regcache.h (register_size): Declare
7762 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
7763 max_register_size instead of MAX_REGISTER_RAW_SIZE.
7765 2003-02-28 David Carlton <carlton@math.stanford.edu>
7767 * linespec.c (decode_compound): Extract code into find_method.
7770 2003-02-28 J. Brobecker <brobecker@gnat.com>
7772 * Makefile.in: Add rules to build and link in observer.o.
7774 2003-02-27 J. Brobecker <brobecker@gnat.com>
7776 * observer.c: Minor comments edits.
7778 2003-02-27 J. Brobecker <brobecker@gnat.com>
7780 * observer.h, observer.c: New file.
7782 2003-02-27 Andrew Cagney <cagney@redhat.com>
7784 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
7786 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
7788 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
7789 (M6812_OP_STS_EXT): Likewise.
7790 (m6811_prologue): Use the above to recognize prologue.
7791 (m6812_prologue): Likewise.
7793 2003-02-27 David Carlton <carlton@math.stanford.edu>
7795 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
7797 (compare_psymbols): Ditto.
7798 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
7800 2003-02-27 Michael Snyder <msnyder@redhat.com>
7802 * f-lang.c (build_fortran_types): New function.
7803 (_initialize_f_language): Gdbarch-register built-in fortran types.
7804 * doublest.c (extract_floating): Fix warning text.
7806 2003-02-27 Andrew Cagney <cagney@redhat.com>
7808 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
7809 predicate. Replaces PUSH_DUMMY_FRAME.
7810 * gdbarch.h, gdbarch.c: Regnerate.
7811 * valops.c (hand_function_call): Update. Call
7812 generic_push_dummy_frame directly.
7813 * vax-tdep.c (vax_gdbarch_init): Update.
7814 * sparc-tdep.c (sparc_gdbarch_init): Update.
7815 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7816 * m68k-tdep.c (m68k_gdbarch_init): Update.
7817 * hppa-tdep.c (hppa_gdbarch_init): Update.
7818 * alpha-tdep.c (alpha_gdbarch_init): Update.
7819 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7820 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7821 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
7822 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
7823 push_dummy_frame to generic_push_dummy_frame.
7824 * v850-tdep.c (v850_gdbarch_init): Ditto.
7825 * sh-tdep.c (sh_gdbarch_init): Ditto.
7826 * s390-tdep.c (s390_gdbarch_init): Ditto.
7827 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7828 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7829 * mips-tdep.c (mips_gdbarch_init): Ditto.
7830 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7831 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7832 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7833 * i386-tdep.c (i386_gdbarch_init): Ditto.
7834 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7835 * frv-tdep.c (frv_gdbarch_init): Ditto.
7836 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7837 * cris-tdep.c (cris_gdbarch_init): Ditto.
7838 * avr-tdep.c (avr_gdbarch_init): Ditto.
7839 * arm-tdep.c (arm_gdbarch_init): Ditto.
7841 2003-02-26 Kevin Buettner <kevinb@redhat.com>
7843 * mips-tdep.c (show_mips_abi): New function.
7844 (_initialize_mips_tdep): Use show_mips_abi() to implement the
7845 command ``show mips abi''.
7847 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
7849 From Elena Zannoni <ezannoni@redhat.com>
7850 * dbxread.c (process_one_symbol): Only record line 0 if one or
7851 more sline entries have been seen for the function.
7853 2003-02-26 Michael Chastain <mec@shout.net>
7855 * configure: Regenerate with autoconf 000227.
7857 2003-02-26 Michael Chastain <mec@shout.net>
7860 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
7861 for old libc5/glibc.
7862 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
7864 2003-02-26 Kris Warkentin <kewarken@qnx.com>
7866 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
7867 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
7869 2003-02-26 Michael Chastain <mec@shout.net>
7871 * configure.in: New variable HAVE_UINTPTR_T.
7872 * configure, config.in: Regenerated.
7874 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
7877 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
7879 2003-02-25 Andrew Cagney <cagney@redhat.com>
7881 * frame.c (get_prev_frame): Add comment on check for
7882 inside_entry_func. Only check for inside_entry_file when not a
7883 dummy and not a sentinel. Check that the new frame is not inner
7886 2003-02-25 Andrew Cagney <cagney@redhat.com>
7888 * frame.c (frame_debug): New variable.
7889 (_initialize_frame): Add "set/show debug frame" command.
7890 (get_prev_frame): When frame_debug, print reason why unwind
7893 2003-02-25 Michael Chastain <mec@shout.net>
7895 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
7896 to avoid uintptr_t definition problems.
7898 2003-02-25 David Carlton <carlton@math.stanford.edu>
7900 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
7901 (SYMBOL_LINKAGE_NAME): Ditto.
7902 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
7903 SYMBOL_LINKAGE_NAME.
7904 (struct general_symbol_info): Expand comment.
7905 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
7906 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
7907 (SYMBOL_MATCHES_REGEXP): Ditto.
7908 * symtab.c (symbol_natural_name): New function.
7909 * objfiles.h: Replace all uses of SYMBOL_NAME by
7910 DEPRECATED_SYMBOL_NAME.
7911 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
7912 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
7913 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
7914 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
7915 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
7916 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
7917 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
7918 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
7919 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
7920 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
7922 * ada-exp.y: Update copyright.
7923 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
7924 * cp-valprint.c: Ditto.
7926 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
7928 * infptrace.c (detach): Do not flag error if ptrace detach fails
7929 and errno is set to ESRCH.
7931 2003-02-24 Andrew Cagney <cagney@redhat.com>
7933 * infptrace.c (udot_info): Change type of udot_off to long. Use
7934 paddr when printing udot_off's value.
7936 2003-02-24 David Carlton <carlton@math.stanford.edu>
7938 * symtab.c (make_symbol_overload_list): Only read in partial
7939 symtabs containing a matching partial symbol.
7941 2003-02-24 David Carlton <carlton@math.stanford.edu>
7943 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
7944 do the comparison, not strcmp.
7945 * symfile.c (compare_psymbols): Ditto.
7946 * defs.h: Declare strcmp_iw_ordered.
7947 * utils.c (strcmp_iw_ordered): New function.
7949 2003-02-24 Jim Blandy <jimb@redhat.com>
7951 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
7952 support, shared libs): Remove my name from here, to better reflect
7955 2003-02-24 Kris Warkentin <kewarken@qnx.com>
7957 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
7958 (target_ops): Add to_have_continuable_watchpoint.
7959 * target.c (update_current_target): Add INHERIT line for
7960 to_have_continuable_watchpoint.
7961 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
7962 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
7963 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
7964 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
7966 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
7968 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
7971 2003-02-24 Kris Warkentin <kewarken@qnx.com>
7973 * solib.c (solib_open): Call target defined search function after
7974 failing with solib-search-path.
7975 * solist.h (target_so_ops): Add find_and_open_solib function hook and
7976 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
7978 2003-02-24 Kris Warkentin <kewarken@qnx.com>
7980 * MAINTAINERS: Add myself to Write After section.
7982 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
7984 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
7986 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
7988 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
7989 (m68hc11_add_reggroups): New function.
7990 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
7991 (m68hc11_gdbarch_init): Install the reggroups.
7992 (_initialize_m68hc11_tdep): Initialize them.
7994 2003-02-21 James E Wilson <wilson@tuliptree.org>
7996 * MAINTAINERS: Update my email address.
7998 2003-02-21 David Carlton <carlton@math.stanford.edu>
8000 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8002 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8004 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8005 * symtab.h: Add opaque declarations of struct axs_value and
8007 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8008 (struct location_funcs): New type.
8009 (struct symbol): Add "loc" to aux_value.
8010 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8011 * dwarf2read.c: Include "dwarf2expr.h".
8012 (dwarf2_symbol_mark_computed): New function.
8013 (read_func_scope): Use it.
8014 (var_decode_location): New function.
8015 (new_symbol): Use it.
8016 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8018 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8019 (dwarf2expr_h, dwarf2loc_h): New variables.
8020 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8021 (dwarf2expr.o, dwarf2loc.o): New rules.
8022 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8023 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8025 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8026 * m2-exp.y (yylex): Likewise.
8027 * printcmd.c (address_info, print_frame_args): Likewise.
8028 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8029 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8030 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8031 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8032 * symtab.c (lookup_block_symbol): Likewise.
8034 2003-02-20 Adam Fedor <fedor@gnu.org>
8036 * symtab.h: Remove objc_specific struct
8037 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8038 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8039 Have language_objc use cplus_specific struct.
8041 2003-02-20 Tom Tromey <tromey@redhat.com>
8043 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8044 TYPE_NAME, when printing a String value. PR java/1075.
8046 2003-02-20 Adam Fedor <fedor@gnu.org>
8048 * objc-lang.h (find_methods): Remove declaration.
8049 * objc-lang.c (find_methods): Make static.
8051 2003-02-20 Christopher Faylor <cgf@redhat.com>
8053 * win32-nat.c (get_image_name): Check return value from
8055 (child_xfer_memory): Ditto.
8057 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8059 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8060 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8061 '${exec_prefix}' (in addition to the expansion thereof) as
8063 * configure: Rebuilt.
8065 2003-02-20 David Carlton <carlton@math.stanford.edu>
8067 * symtab.c (search_symbols): Revert the search_symbols part of my
8068 2002-12-23 patch. Add comment.
8070 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8072 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8073 * dbxread.c (elfstab_build_psymtabs): Don't call
8074 install_minimal_symbols.
8075 (stabsect_build_psymtabs): Likewise.
8076 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8078 * somread.c (som_symfile_read): Call install_minimal_symbols
8079 and do_cleanups earlier.
8080 * nlmread.c (nlm_symfile_read): Likewise.
8081 * mdebugread.c (elfmdebug_build_psymtabs): Call
8082 install_minimal_symbols and make appropriate cleanups.
8084 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8086 * solib.c (reload_shared_libraries): New function.
8087 (_initialize_solib): Add callbacks for ``set solib-search-path''
8088 and ``set solib-absolute-prefix''.
8090 2003-02-20 David Carlton <carlton@math.stanford.edu>
8092 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8094 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8095 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8096 * ada-typeprint.c (ada_typedef_print): Ditto.
8097 * ax-gdb.c (gen_var_ref): Ditto.
8098 * breakpoint.c (print_one_breakpoint): Ditto.
8099 * buildsym.c (finish_block): Ditto.
8100 * c-valprint.c (c_val_print): Ditto.
8101 * expprint.c (print_subexp): Ditto.
8102 * findvar.c (locate_var_value): Ditto.
8103 * infcmd.c (jump_command): Ditto.
8104 * linespec.c (decode_line_2, decode_compound): Ditto.
8105 * maint.c (maintenance_translate_address): Ditto.
8106 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8107 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8109 * p-valprint.c (pascal_val_print): Ditto.
8110 * stabsread.c (define_symbol): Ditto.
8111 * stack.c (print_frame, frame_info, print_block_frame_locals)
8112 (print_frame_arg_vars, return_command): Ditto.
8113 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8114 * symmisc.c (print_symbol): Ditto.
8115 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8116 (compare_search_syms, print_symbol_info, print_msymbol_info)
8117 (rbreak_command): Ditto.
8118 * tracepoint.c (tracepoints_info): Ditto.
8119 * typeprint.c (typedef_print): Ditto.
8120 * valops.c (value_of_variable, hand_function_call): Ditto.
8121 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8122 * ada-typeprint.c: Update Copyright.
8123 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8124 * tracepoint.c, cli/cli-cmds.c: Ditto.
8126 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8128 * frame.c (generic_unwind_get_saved_register): Make non-static.
8129 * frame.h (generic_unwind_get_saved_register): Declare.
8130 * mips-tdep.c (read_next_frame_reg): Fetch register from
8131 current regcache when frame is NULL.
8132 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8134 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8135 instead of frame_register_unwind().
8137 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8139 * remote-sim.c (gdbsim_insert_breakpoint)
8140 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8143 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8145 * remote.c (_initialize_remote): Add commands "set/show remote
8146 hardware-watchpoint-limit" and "set/show remote
8147 hardware-breakpoint-limit".
8148 (remote_hw_watchpoint_limit): Initialize to -1.
8149 (remote_hw_breakpoint_limit): Ditto.
8150 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8152 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8154 * coff-pe-read.c: New file - support reading of minimal symbols from a
8155 portable executable using the export table.
8156 * coff-pe-read.h: New file.
8157 * coffread.c: Include coff-pe-read.h.
8158 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8159 debugging symbols found.
8160 * Makefile.in (SFILES): Add coff-pe-read.o.
8161 (coff_pe_read_h): Define.
8162 (COMMON_OBS): Add coff-pe-read.o.
8163 (coffread.o): Add coff_pe_read_h dependency.
8164 (coff-pe-read.o): New target.
8166 2003-02-19 David Carlton <carlton@math.stanford.edu>
8168 * Makefile.in (SFILES): Add block.c.
8170 (COMMON_OBS): Add block.o.
8172 (x86-64-tdep.o): Add $(block_h).
8173 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8174 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8175 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8176 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8177 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8178 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8179 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8180 * value.h: Add opaque declaration for struct block.
8181 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8182 * ada-lang.h: Ditto.
8183 * x86-64-tdep.c: #include "block.h"
8184 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8185 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8186 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8187 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8188 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8189 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8190 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8191 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8192 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8193 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8194 * symtab.c (block_function): Ditto.
8195 (contained_in): Ditto.
8196 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8197 block.h. Add opaque declaration for struct block.
8198 * symtab.h: Move block_function and contained_in declarations to
8199 block.h. Add opaque declarations for struct block, struct
8201 (struct block): Move to block.h.
8202 (struct blockvector): Ditto.
8203 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8204 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8205 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8206 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8207 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8209 * block.c: New file.
8210 * block.h: New file.
8212 2003-02-19 Theodore A. Roth <troth@openavr.org>
8214 * avr-tdep.c (avr_extract_return_value): Remove function.
8215 (avr_store_return_value): Remove function.
8216 (avr_extract_struct_value_address): Remove function.
8217 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8219 2003-02-19 Andrew Cagney <ac131313@redhat.com>
8221 * rs6000-tdep.c: Include "gdb_assert.h".
8222 (registers_e500): Add "acc" and "spefscr".
8223 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8224 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8225 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8227 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8229 2003-02-18 Keith Seitz <keiths@redhat.com>
8231 * Makefile.in: Add gdbtk-interps.c.
8233 2003-02-18 Kevin Buettner <kevinb@redhat.com>
8235 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8236 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8238 2003-02-18 Andrew Cagney <cagney@redhat.com>
8240 * symtab.h (struct objfile): Add opaque declaration.
8242 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
8244 From Jim Ingham <jingham@apple.com>:
8245 * dbxread.c (process_one_symbol): Use last_function_start rather
8246 than function_start_offset to find the real beginning of the
8247 current function. The latter is just the text section offset on
8248 some systems, the former is always the real function start.
8250 2003-02-17 Andrew Cagney <cagney@redhat.com>
8252 * configure.in: Revert ${target} != ${host}.
8254 2003-02-17 Andrew Cagney <ac131313@redhat.com>
8256 * configure.in (Makefile): Use the test ${target} != ${host},
8257 instead of the absence of the "nm.h" file, to determine of the
8258 configuration non-native.
8259 * configure: Regenerate.
8261 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
8263 From Brian Ford <ford@vss.fsi.com>
8265 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8266 conditionalize tui_active test.
8267 (lookup_cmd_1): Ditto.
8269 2003-02-14 Mark Kettenis <kettenis@gnu.org>
8271 * configure.in: Add check for _etext.
8272 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8274 * config.in, configure: regenerated.
8276 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
8278 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8280 2003-02-14 Andrew Cagney <ac131313@redhat.com>
8282 * main.c (tui_version): Delete variable.
8283 (captured_main): When --tui, set interpreter_p to "tui" instead of
8284 enabling tui_version.
8285 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8287 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8288 * cli/cli-cmds.c (disassemble_command): Ditto.
8289 * defs.h (tui_version): Delete declaration.
8290 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8291 (tui-interp.o): Add rules.
8292 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8294 2003-02-14 Christopher Faylor <cgf@redhat.com>
8296 * win32-nat.c (register_loaded_dll): Correctly set address range for
8299 2003-02-12 Jason Molenda (jmolenda@apple.com)
8301 * symmisc.c (print_objfile_statistics): Include information about
8302 the number of psymtabs and symtabs in each object file.
8304 2003-02-13 Keith R Seitz <keiths@redhat.com>
8306 * main.h (struct captured_main_args): Add interpreter_p.
8307 * main.c (captured_main): Initialize interpreter_p from context.
8308 * gdb.c (main): Set interpreter_p argument.
8309 * Makefile.in (gdb.o): Add dependency for interps.h.
8311 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8313 * event-top.c (cli_command_loop): Delete declaration.
8314 (_initialize_event_loop): Delete function setting event_loop_hook.
8315 * event-top.h (cli_command_loop): Declare. Update copyright.
8316 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8317 * interps.c (current_interp_command_loop): When event_loop_p, call
8320 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8322 * interps.h (interp_command_loop_ftype): Change return type to
8325 2003-02-12 Michal Ludvig <mludvig@suse.cz>
8327 * x86-64-tdep.c (x86_64_extract_return_value)
8328 (x86_64_store_return_value): Use regcache instead of regbuf.
8329 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8330 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8332 2003-02-11 Andrew Cagney <ac131313@redhat.com>
8334 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8335 * aclocal.m4: Regenerate.
8336 * configure: Regenerate.
8338 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8339 TCL_LD_SEARCH_FLAGS.
8341 2003-02-10 Michal Ludvig <mludvig@suse.cz>
8343 * dwarf2cfi.c: Reindented.
8345 2003-02-09 Andrew Cagney <ac131313@redhat.com>
8347 * interps.c (clear_interpreter_hooks): Convert function definition
8350 2003-02-07 David Carlton <carlton@math.stanford.edu>
8352 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8354 2003-02-07 Kevin Buettner <kevinb@redhat.com>
8356 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8357 (struct type): ...to here.
8358 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8360 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8361 (replace_type): Set length on all type variants for a given type.
8363 2003-02-07 Andrew Cagney <ac131313@redhat.com>
8365 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8367 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8369 2003-02-06 Andrew Cagney <ac131313@redhat.com>
8371 * Makefile.in (symm-nat.o): Update dependencies.
8372 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8373 (lynx-nat.o, ia64-linux-nat.): Ditto.
8374 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8375 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8376 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8378 * Makefile.in (inflow_h): Define.
8379 (procfs.o, inflow.o, procfs.o): Update dependencies.
8380 * inftarg.c (child_stop): Delete extern declaration of
8381 inferior_process_group. Include "inflow.h".
8382 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
8383 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8384 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
8385 (our_process_group, inferior_process_group): Extern declarations.
8387 * procfs.c: Include "gdb_assert.h".
8389 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8390 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8391 * jv-typeprint.c (java_type_print_base): Ditto.
8392 * typeprint.c (typedef_print): Eliminate STREQ.
8393 * cli/cli-script.c (define_command, define_command): Ditto.
8394 * main.c (captured_main): Ditto.
8395 * values.c (lookup_internalvar): Ditto.
8396 * utils.c (safe_strerror, parse_escape): Eliminate assignment
8397 within `if' conditional.
8398 * linespec.c (decode_line_2): Ditto.
8399 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8400 (bfd_openw_with_cleanup): Ditto.
8402 2003-02-07 Mark Kettenis <kettenis@gnu.org>
8404 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8405 legacy_extract_return_value and store_return_value to
8406 legacy_return_value.
8408 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
8410 * win32-nat.c (get_relocated_section_addrs): New function. Find
8411 section load addresses for symbol handling in relocated DLLs.
8412 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8414 2003-02-05 Fred Fish <fnf@intrinsity.com>
8416 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8418 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8420 (angel_RDI_info): Ditto.
8421 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8423 (threads_continue_all_with_signals): Ditto.
8425 2003-02-05 Jim Ingham <jingham@apple.com>
8426 Keith Seitz <keiths@redhat.com>
8427 Elena Zannoni <ezannoni@redhat.com>
8428 Andrew Cagney <ac131313@redhat.com>
8430 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8431 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8432 (SUBDIR_MI_OBS): Add "mi-interp.o".
8433 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8434 (SFILES): Add "interps.c".
8435 (COMMON_OBS): Add "interps.o".
8436 (interps_h, mi_main_h): Define.
8437 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8438 (mi-main.o, main.o, event-top.o): Update dependencies.
8439 * cli/cli-interp.c: New file.
8440 * interps.h, interps.c: New files.
8441 * top.c: (gdb_init): Don't install the default interpreter, handed
8443 * main.c: Include "interps.h".
8444 (interpreter_p): Note that it should malloc'ed.
8445 (captured_command_loop): Call current_interp_command_loop.
8446 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
8447 xfree and xstrdup when updating interpreter_p. Install the
8448 default interpreter. Add hack to stop mi1's copyright notice
8450 * event-top.h (gdb_setup_readline): Declare.
8451 (gdb_disable_readline): Declare.
8452 * event-top.c: Include "interps.h".
8453 (display_gdb_prompt): Call current_interp_display_prompt_p.
8454 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
8455 gdb_stdlog, and gdb_stdtarg.
8456 (_initialize_event_loop): Don't call gdb_setup_readline.
8457 * cli-out.c (cli_out_set_stream): New function.
8458 * cli-out.h (cli_out_set_stream): Declare.
8460 2003-02-06 Mark Kettenis <kettenis@gnu.org>
8462 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
8463 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
8464 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
8465 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
8466 config/i386/i386v42mp.mt: Removed.
8468 2003-02-05 Mark Kettenis <kettenis@gnu.org>
8470 * configure.tgt (*-*-solaris*): Set gdb_osabi to
8473 2003-02-05 Michael Chastain <mec@shout.net>
8475 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
8476 2.12.1 and earlier versions.
8478 2003-02-05 Andrew Cagney <ac131313@redhat.com>
8480 Remove orphaned hosts, targets and files.
8481 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
8482 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
8483 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
8484 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
8485 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
8486 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
8487 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
8488 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
8489 * config/sparc/tm-sp64sim.h: Delete.
8490 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
8492 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
8493 mips*-dec-mach3* targets.
8495 2003-02-04 Michael Chastain <mec@shout.net>
8497 * NEWS: Fix typo: sepcifying -> specifying.
8499 2003-02-04 Michael Chastain <mec@shout.net>
8501 * dwarfread.c: Add documentation on the state of dwarf-1,
8502 looking towards obsoletion.
8504 2003-02-03 Michael Chastain <mec@shout.net>
8506 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
8507 gdb/testsuite/gdb.c++/pr-1023.exp.
8509 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8511 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
8512 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
8514 * utils.c (init_page_info): Delete reference to MPW in comments.
8515 * main.c (captured_main): Delete #ifdef MPW.
8517 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8519 * NEWS: Note that the m32r-*-elf* is obsolete.
8520 * monitor.c (monitor_expect): Obsolete reference to m32r.
8521 * configure.tgt: Mark m32r-*-elf* as obsolete.
8522 * MAINTAINERS: Mark m32k as obsolete.
8523 * m32r-rom.c: Obsolete file.
8524 * config/m32r/m32r.mt: Obsolete file.
8525 * config/m32r/tm-m32r.h: Obsolete file.
8526 * m32r-stub.c: Obsolete file.
8527 * m32r-tdep.c: Obsolete file.
8529 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8531 * NEWS: Mention that the z8k-zilog-none is obsolete.
8532 * MAINTAINERS: Mark z8k as obsolete.
8533 * configure.tgt: Obsolete the z8k-*-coff* target.
8534 * config/z8k/z8k.mt: Obsolete file.
8535 * config/z8k/tm-z8k.h: Obsolete file.
8536 * z8k-tdep.c: Obsolete file.
8538 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8540 * NEWS: Mention that the mn10200-elf is obsolete.
8541 * configure.tgt: Obsolete mn10200-*-* target.
8542 * breakpoint.c (update_breakpoints_after_exec): Update comment to
8543 mention that the mn10200 is obsolete.
8544 * breakpoint.h: Ditto.
8545 * MAINTAINERS: Mark the mn10200-elf as obsolete.
8546 * config/mn10200/mn10200.mt: Obsolete file.
8547 * config/mn10200/tm-mn10200.h: Obsolete file.
8548 * mn10200-tdep.c: Obsolete file.
8550 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8552 * MAINTAINERS: Mark h8500 as obsolete.
8553 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
8554 * findvar.c (value_from_register): Ditto.
8555 * h8500-tdep.c: Mark file as obsolete.
8556 * config/h8500/h8500.mt: Ditto.
8557 * config/h8500/tm-h8500.h: Ditto.
8558 * NEWS: Mention that h8500 is obsolete.
8560 2003-02-04 David Carlton <carlton@math.stanford.edu>
8562 * objfiles.c (allocate_objfile): Always set name. Add comment at
8564 * jv-lang.c (get_dynamics_objfile): Add comment.
8566 2003-02-04 David Carlton <carlton@math.stanford.edu>
8568 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
8569 * printcmd.c (build_address_symbolic): Replace uses of
8570 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
8571 SYMBOL_NAME, and asm_demangle.
8574 2003-02-04 David Carlton <carlton@math.stanford.edu>
8576 * linespec.c (decode_compound): Extract code into
8578 (lookup_prefix_sym): New function.
8580 2003-02-04 David Carlton <carlton@math.stanford.edu>
8582 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
8583 FLOAT_COERCION_BADNESS.
8584 * gdbtypes.c (rank_one_type): Replace all uses of
8585 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
8587 2003-02-04 Jim Blandy <jimb@redhat.com>
8589 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
8590 section, let dwarf_macinfo_section point to it, not
8593 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
8595 Pointed out by Anton Blanchard <anton@samba.org>.
8596 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
8597 (ppc_linux_at_sigtramp_return_path): Use it.
8599 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
8601 * defs.h (streq): Add prototype.
8602 * utils.c (streq): New function.
8604 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
8605 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
8606 * mdebugread.c (new_symbol): Likewise.
8607 * stabsread.c (define_symbol): Likewise.
8608 * coffread.c (process_coff_symbol): Likewise.
8609 * dwarfread.c (new_symbol): Likewise.
8611 * minsyms.c (prim_record_minimal_symbol_and_info): Use
8612 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
8614 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
8615 SYMBOL_INIT_DEMANGLED_NAME.
8616 * objfiles.c: Include "hashtab.h".
8617 (allocate_objfile): Call htab_set_functions_ex for the
8618 demangled_names_hash.
8619 (free_objfile): Call htab_delete for the demangled_names_hash.
8620 * objfiles.h (struct htab): Add declaration.
8621 (struct objfile): Add demangled_names_hash.
8622 * symfile.c: Include "hashtab.h".
8623 (reread_symbols): Call htab_delete for the demangled_names_hash.
8624 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
8625 SYMBOL_NAME in the bcache.
8626 * symtab.c: Include "hashtab.h". Update comments.
8627 (create_demangled_names_hash, symbol_set_names): New functions.
8628 (symbol_find_demangled_name): New function, broken out from
8629 symbol_init_demangled_names.
8630 (symbol_init_demangled_names): Use it.
8631 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
8632 (SYMBOL_SET_NAMES): New macro.
8633 (symbol_set_names): Add prototype.
8635 2003-02-03 Jim Blandy <jimb@redhat.com>
8637 Use a single, consistent representation for an empty minimal
8638 symbol table in an objfile.
8639 * objfiles.c (terminate_minimal_symbol_table): New function.
8640 (allocate_objfile): Call it.
8641 * objfiles.h (terminate_minimal_symbol_table): New declaration.
8642 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8644 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
8645 objfile has minimal symbols, compare minimal_symbol_count to zero,
8646 instead of comparing msymbols with NULL.
8647 * objfiles.c (have_minimal_symbols): Same.
8648 * solib-sunos.c (solib_add_common_symbols): Call
8649 terminate_minimal_symbol_table.
8650 * symfile.c (reread_symbols): Same.
8652 2003-02-03 Kevin Buettner <kevinb@redhat.com>
8654 * s390-tdep.c (s390_address_class_type_flags)
8655 (s390_address_class_type_flags_to_name)
8656 (s390_address_class_name_to_type_flags): New functions.
8657 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
8658 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
8660 2003-02-03 Michael Snyder <msnyder@redhat.com>
8662 * arm-tdep.c: Fix spell-o in comment.
8664 2003-02-03 Michal Ludvig <mludvig@suse.cz>
8666 * dwarf2cfi.c (pointer_encoding): Added new parameter.
8667 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8668 error messages to contain BFD filename.
8670 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
8672 Fix PR gdb/742 gdb/743 gdb/877
8673 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
8674 (do_mixed_source_and_assembly): Use
8675 make_cleanup_ui_out_tuple_begin_end and
8676 make_cleanup_ui_out_tuple_begin_end.
8677 (do_mixed_source_and_assembly): Ditto.
8678 * thread.c (do_captured_list_thread_ids): Ditto.
8679 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
8680 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
8681 ui_out_tuple_end): Delete prototypes.
8682 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
8683 ui_out_list_end, ui_out_tuple_end): Delete.
8685 From Kevin Buettner <kevinb@redhat.com>:
8686 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
8687 * ui-out.c (make_cleanup_ui_out_table_begin_end)
8688 (do_cleanup_table_end): New functions.
8689 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
8690 Use cleanups to invoke_ui_out_tuple_end().
8691 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
8692 * cli/cli-setshow.c (cmd_show_list): Use
8693 make_cleanup_ui_out_tuple_begin_end.
8695 2003-02-02 Andrew Cagney <ac131313@redhat.com>
8697 * frame.c (frame_unwind_register): New function.
8698 (frame_unwind_unsigned_register): Use.
8699 (frame_unwind_signed_register): Use.
8700 (frame_read_register): New function.
8701 * frame.h (frame_unwind_register): Declare.
8702 (frame_read_register): Declare.
8704 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
8705 and frame_unwind_register instead of read_memory, write_register
8706 and deprecated_write_register_bytes.
8708 2003-02-02 Andrew Cagney <ac131313@redhat.com>
8710 * frame.h: Note that namelen can be negative.
8711 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
8714 * NEWS: Mention that the d10v's `regs' command is deprecated.
8715 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
8716 (d10v_print_registers_info): New function.
8717 (show_regs): Call d10v_print_registers_info.
8718 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
8720 2003-02-02 Mark Kettenis <kettenis@gnu.org>
8722 * stack.c (print_frame_info): Restore call to annotate_frame_begin
8723 lost in the previous patch.
8725 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8727 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
8728 * stack.c (print_frame_info_base): Output complete FRAME tuple
8729 for synthesized frames.
8731 2003-02-02 Andrew Cagney <ac131313@redhat.com>
8733 * mips-nat.c (zerobuf): Delete.
8734 (fetch_inferior_registers): Alloc local zerobuf.
8735 (fetch_core_registers): Alloc local zerobuf.
8736 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
8737 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
8738 * thread-db.c (thread_db_store_registers): Ditto.
8739 * sh-tdep.c (sh_do_register): Ditto.
8740 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
8741 * remote-sim.c (gdbsim_store_register): Ditto.
8742 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8743 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8744 * monitor.c (monitor_supply_register): Ditto.
8745 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
8746 * mips-nat.c (fetch_inferior_registers): Ditto.
8747 * m68klinux-nat.c (fetch_register): Ditto.
8748 * lynx-nat.c (fetch_inferior_registers): Ditto.
8749 (fetch_inferior_registers): Ditto.
8750 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
8751 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8752 (hpux_thread_store_registers): Ditto.
8753 * hppah-nat.c (fetch_register): Ditto.
8754 * hppab-nat.c (fetch_register): Ditto.
8755 * hppa-tdep.c (pa_register_look_aside): Ditto.
8756 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
8757 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
8759 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8761 * gdbarch.sh: Explictly specify all method levels. When a
8762 variable with an empty level, provide a non-multi-arch default.
8763 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
8764 * gdbarch.h: Re-generate.
8765 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
8766 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
8768 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8770 * defs.h (host_pointer_to_address): Delete declaration.
8771 (address_to_host_pointer): Delete declaration.
8772 * utils.c (host_pointer_to_address): Delete function.
8773 (address_to_host_pointer): Delete function.
8774 * procfs.c (procfs_address_to_host_pointer): New function.
8775 * procfs.c (proc_set_watchpoint): Use.
8776 (procfs_can_use_hw_breakpoint): Update comments.
8777 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
8778 (som_solib_add): Use.
8779 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
8780 * hppa-tdep.c (unwind_command): Use.
8782 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8784 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
8787 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
8788 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
8789 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
8790 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
8791 (define_symbol): Update.
8792 * symfile.c (generic_load): Remove references to nindy.
8793 * symtab.c: Remove references to nindy.
8795 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8797 * infcmd.c (print_float_info): Delete code conditional on
8799 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
8800 * config/m68k/nm-apollo68b.h: Ditto.
8801 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
8802 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
8803 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
8805 2003-02-01 Mark Kettenis <kettenis@gnu.org>
8807 * config/i386/tm-i386os9k.h: Removed.
8809 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
8810 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
8811 they're identical to i[3456]86-*-sysv* now.
8812 * config/i386/i386v32.mh: Removed.
8813 * config/i386/xm-i386v32.h: Removed.
8814 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
8816 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
8818 * config/i386/i386dgux.mh: Removed.
8819 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
8821 * configure.in: Fix typo.
8822 * configure: Regenerated.
8824 2003-01-31 David Carlton <carlton@math.stanford.edu>
8826 * dwarf2read.c (dwarf2_locate_sections): Set
8827 dwarf_ranges_section.
8829 2003-01-31 Andrew Cagney <ac131313@redhat.com>
8831 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
8832 * utils.c: Update comments documenting legitimate uses of PTR.
8834 * utils.c: Re-indent.
8836 * config/djgpp/fnchange.lst: Delete nindy files.
8837 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
8838 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
8839 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
8840 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
8841 * nindy-share/README, nindy-share/Onindy.c: Delete files.
8842 * nindy-tdep.c, nindy-share/Makefile: Delete files.
8843 * Makefile.in (init.c): Remove nindy references.
8844 (saber_gdb): Delete rule.
8845 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
8846 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
8848 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
8849 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
8850 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
8851 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
8853 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
8854 * saber.suppress: Delete file.
8856 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
8858 * dbxread.c (stabs_data): New static variable.
8859 (fill_symbuf): Support an in-memory buffer for stabs data.
8860 (stabs_seek): New function.
8861 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
8862 (read_ofile_symtab): Use stabs_seek.
8863 (elfstab_build_psymtabs): Take an asection* instead of
8864 an offset and size. Relocate the stabs data if necessary.
8865 Save the section* for dbx_psymtab_to_symtab.
8866 * dwarf2read.c: Add section variables for each debug section.
8867 (dwarf2_locate_sections): Fill them in.
8868 (dwarf2_read_section): Take an asection* argument.
8869 Relocate the section contents if necessary.
8870 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
8871 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
8872 it to dwarf2_read_section.
8873 (dwarf2_build_frame_info): Update callers.
8874 * elfread.c (elf_symfile_read): Update call to
8875 elfstab_build_psymtabs.
8876 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
8877 (DBX_STAB_SECTION): New macro.
8878 * stabsread.h (elfstab_build_psymtabs): Update prototype.
8879 * symfile.c (symfile_dummy_outputs): New function.
8880 (symfile_relocate_debug_section): New function.
8881 * symfile.h (symfile_relocate_debug_section): Add prototype.
8883 2003-01-31 Richard Henderson <rth@redhat.com>
8885 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
8886 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
8887 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
8888 * alpha-tdep.c (alpha_register_name): Add "unique".
8889 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
8890 (ALPHA_UNIQUE_REGNUM): New.
8891 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
8893 2003-01-31 Andrew Cagney <ac131313@redhat.com>
8895 * README: Remove reference to Ericsson 1800 monitor.
8896 * Makefile.in (remote-es.o): Delete rule.
8897 (ALLDEPFILES): Delete remote-es.c.
8898 * remote-es.c: Delete file.
8899 * config/m68k/es1800.mt: Delete file.
8900 * config/djgpp/fnchange.lst: Update.
8901 * configure.tgt: Delete m68*-ericsson-* target.
8903 2003-01-31 Adam Fedor <fedor@gnu.org>
8905 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
8906 Remove duplicate/shadowing variable of same name.
8908 2003-01-30 Jim Blandy <jimb@redhat.com>
8910 * symfile.c (find_separate_debug_file): Assert that the objfile's
8911 directory name we compute ends with a slash, and then assume that
8912 that's so everywhere we use it.
8914 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
8916 * valops.c (value_assign): Flush frame cache after stores to memory
8919 2003-01-30 Andrew Cagney <ac131313@redhat.com>
8921 * Makefile.in (mon960-rom.o): Delete rule.
8922 * mon960-rom.c: Delete file.
8924 2003-01-30 Andrew Cagney <ac131313@redhat.com>
8926 * d10v-tdep.c: Include "frame-unwind.h".
8927 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
8929 (next_addr, uses_frame): Delete.
8930 (struct d10v_unwind_cache): Define.
8931 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
8932 Use info instead of next_addr and uses_frame globals.
8933 (d10v_frame_init_saved_regs): Delete function.
8934 (d10v_init_extra_frame_info): Delete function.
8935 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
8936 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
8937 init_frame_pc or frame_saved_pc.
8938 (d10v_pop_frame): Delete function.
8939 (do_d10v_pop_frame): Delete function.
8940 (d10v_frame_chain): Delete function.
8941 (d10v_frame_chain_valid): Delete function.
8942 (d10v_frame_pc_unwind): New function.
8943 (d10v_frame_id_unwind): New function.
8944 (saved_regs_unwinder): New function.
8945 (d10v_frame_register_unwind): New function.
8946 (d10v_frame_pop): New function.
8947 (d10v_frame_unwind): New variable.
8948 (d10v_frame_p): New function.
8949 (d10v_frame_saved_pc): Delete function.
8950 * Makefile.in (d10v-tdep.o): Update dependencies.
8952 2003-01-30 J. Brobecker <brobecker@gnat.com>
8954 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
8955 causing some regressions due to a change in the default value
8958 2003-01-29 Richard Henderson <rth@redhat.com>
8959 Elena Zannoni <ezannoni@redhat.com>
8960 Daniel Jacobowitz <drow@mvista.com>
8963 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
8965 (RANGES_SECTION): New.
8966 (dwarf_ranges_buffer): New variable.
8967 (struct comp_unit_head): Add member "die".
8968 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
8969 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
8970 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
8971 (dwarf2_locate_sections): Likewise.
8972 (dwarf2_build_psymtabs): Read .debug_ranges.
8973 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
8974 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
8975 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
8976 Look for DW_AT_ranges and return the bounding box.
8978 2003-01-29 Brian Ford <ford@vss.fsi.com>
8980 * win32-nat.c (cygwin_pid): Removed as unused.
8981 (child_attach): Try fall back to Cygwin pid.
8983 2003-01-29 Jim Blandy <jimb@redhat.com>
8985 * objfiles.h (struct objfile): Doc fix.
8987 2003-01-29 Andrew Cagney <ac131313@redhat.com>
8989 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
8990 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
8991 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
8992 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
8993 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
8994 (FRAME_SAVED_PC): Change to a function with predicate.
8995 * gdbarch.h, gdbarch.c: Re-generate.
8997 2003-01-28 Andrew Cagney <ac131313@redhat.com>
8999 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9001 * complaints.c (complain): Delete function.
9002 * complaints.h (struct deprecated_complaint): Delete definition.
9003 (complain): Delete declaration.
9005 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9007 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9010 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9012 * sentinel-frame.h, sentinel-frame.c: New files.
9013 * Makefile.in (frame.o): Update dependencies.
9014 (SFILES): Add sentinel-frame.c.
9015 (sentinel_frame_h): Define.
9016 (COMMON_OBS): Add sentinel-frame.o.
9017 (sentinel-frame.o): Specify dependencies.
9018 * frame.c: Include "sentinel-frame.h".
9019 (frame_register_unwind): Rewrite assuming that there is always a a
9021 (frame_register, generic_unwind_get_saved_register): Ditto.
9022 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9023 (create_sentinel_frame, unwind_to_current_frame): New functions.
9024 (get_current_frame): Rewrite using create_sentinel_frame and
9025 unwind_to_current_frame. When possible, always create a frame.
9026 (create_new_frame): Set next to the sentinel frame.
9027 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9028 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9029 ID cache when necessary.
9030 (frame_saved_regs_id_unwind): Use frame_relative_level.
9031 (deprecated_generic_get_saved_register): Use frame_relative_level,
9032 get_frame_saved_regs, get_frame_pc, get_frame_base and
9034 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9037 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9039 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9041 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9043 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9044 (maintenance_set_profile_cmd): Use error () instead of warning ().
9046 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9048 * configure.in: Check that -pg works if using --enable-profiling.
9049 Check for monstartup and _mcleanup regardless of --enable-profiling.
9050 * maint.c: Check for monstartup and _mcleanup before using them.
9051 * config.in: Regenerated.
9052 * configure: Regenerated.
9054 2003-01-24 Nick Clifton <nickc@redhat.com>
9058 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9060 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9061 (sh2e_show_regs): New.
9062 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9063 * config/sh/tm-sh.h: Added sh2e to comments.
9065 2003-01-23 Jim Blandy <jimb@redhat.com>
9067 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9068 symbols found)" message here; we haven't checked for a separate
9069 debug info file yet, so we don't know yet.
9070 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9071 we've looked everywhere. Also, there's no need to print a special
9072 message when we're loading the separate debug info file: the one
9073 symbol_file_add prints is fine.
9075 2003-01-23 Alexander Larsson <alexl@redhat.com>
9076 Jim Blandy <jimb@redhat.com>
9078 Add support for executables whose debug info has been separated
9079 out into a separate file, leaving only a link behind.
9080 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9081 and separate_debug_objfile_backlink.
9082 (put_objfile_before): New declaration.
9083 * symfile.c: #include "filenames.h".
9084 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9085 debug info in a separate file, read that, too. Save the addrs
9086 argument, so we can use it again to read the separated debug info;
9087 syms_from_objfile modifies the table we pass it.
9088 (reread_symbols): After re-reading an objfile, call
9089 reread_separate_symbols to refresh its separate debug info
9090 objfile, if it has one.
9091 (reread_separate_symbols, find_separate_debug_file,
9092 get_debug_link_info, separate_debug_file_exists): New functions.
9093 (debug_file_directory): New global var.
9094 (_initialize_symfile): Initialize debug_file_directory, and
9095 provide the new `set debug-file-directory' command to let the user
9097 * objfiles.c (free_objfile): If this objfile has its debug info in
9098 a separate objfile, free that one too. If this is itself a
9099 separate debug info objfile, clear our parent's backlink.
9100 (put_objfile_before): New function.
9101 * utils.c (gnu_debuglink_crc32): New function.
9102 * defs.h (gnu_debuglink_crc32): New declaration.
9103 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9104 * configure.in: Handle --with-separate-debug-dir config option.
9105 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9106 * acconfig.h (DEBUGDIR): New macro.
9107 * configure, aclocal.m4, config.in: Regenerated.
9109 2003-01-22 Jim Blandy <jimb@redhat.com>
9111 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9112 like the old symbol_file_add, but taking new arguments: you can
9113 now pass in either a `struct section_addr_info' list to say where
9114 each section is loaded, or a `struct section_offsets' table. Pass
9115 these new arguments through to syms_from_objfile as appropriate.
9116 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9117 with the appropriate quiescent values for the new arguments.
9119 * symfile.c: #include "gdb_assert.h".
9120 (syms_from_objfile): Add the ability to pass in a section offset
9121 table directly, as an alternative to the section_addr_info table.
9122 Document arguments better.
9123 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9124 * symfile.h (syms_from_objfile): Update declaration.
9125 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9127 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9129 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9131 Original patch by Tom Tromey <tromey@cygnus.com> and
9132 Jason Molenda <jmolenda@apple.com>.
9133 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9134 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9135 * NEWS: Mention profiling.
9136 * configure.in (--enable-gdbtk): Fix typo.
9137 (--enable-profiling): New. Set PROFILE_CFLAGS.
9138 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9140 (profiling_state): New variable.
9141 (mcleanup_wrapper): New function.
9142 (_initialize_maint): Remove NOTYET, fix call to
9143 add_setshow_boolean_cmd for "maint set profile".
9144 * configure: Regenerated.
9146 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9148 * Makefile.in (install-gdbtk): Install PNG images too.
9150 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9152 * exec.c (text_start): Delete global variable.
9153 (exec_file_attach): Make text_start local to the function.
9154 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9155 * valops.c (hand_function_call): Delete code that handles
9156 BEFORE_TEXT_END and AFTER_TEXT_END.
9157 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9158 of CALL_DUMMY_LOCATION.
9159 * gdbarch.c: Regenerate.
9160 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9161 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9162 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9163 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9164 (text_end): Delete extern declaration.
9166 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9168 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9169 * blockframe.c (backtrace_below_main): Move to "frame.c".
9170 (frame_chain_valid): Delete check for backtrace_below_main.
9171 (_initialize_blockframe): Delete initialization, move ``set
9172 backtrace-below-main'' command to "frame.c".
9173 (do_flush_frames_sfunc): Delete function.
9174 * frame.c: Include "command.h" and "gdbcmd.h".
9175 (frame_type_from_pc): New function.
9176 (create_new_frame): Use frame_type_from_pc.
9177 (legacy_get_prev_frame): New function.
9178 (get_prev_frame): Rewrite. When an old style frame, call
9179 legacy_get_prev_frame. Otherwize, unwind the PC first.
9180 (_initialize_frame): Add ``set backtrace-below-main'' command.
9181 * Makefile.in (frame.o): Update dependencies.
9183 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9185 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9186 DEPRECATED_REGISTERS_INFO.
9188 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9190 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9191 Maintainers'. Update `Various Maintainers'.
9193 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9195 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9196 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9197 Suppress actual parameters when `-'.
9198 * gdbarch.h, gdbarch.c: Regenerate.
9200 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9202 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9203 code handling dummy frames.
9205 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9207 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9208 (struct frame_unwind): Add field pop.
9209 * frame.h (frame_pop): Declare.
9210 * frame.c (frame_saved_regs_pop): New function.
9211 (trad_frame_unwinder): Add frame_saved_regs_pop.
9212 (frame_pop): New function.
9213 * dummy-frame.c (dummy_frame_pop): New function.
9214 (discard_innermost_dummy): New function.
9215 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9216 (dummy_frame_unwind): Add dummy_frame_pop.
9217 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9218 * valops.c (hand_function_call): Ditto.
9219 * stack.c (return_command): Ditto.
9221 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9223 * cris-tdep.c: Fix function declaration indentation.
9224 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9225 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9226 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9227 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9228 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9229 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9231 2003-01-18 Michael Chastain <mec@shout.net>
9233 * README (Unpacking and Installation -- quick overview):
9234 Warn against ".../gdb-5.3/gdb/configure".
9236 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9238 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9239 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9240 (struct frame_unwind): Declare opaque.
9241 (dummy_frame_p): Declare function.
9242 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9243 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9244 * dummy-frame.c: Include "frame-unwind.h".
9245 (dummy_frame_p): New function.
9246 (dummy_frame_unwind): New variable.
9247 * frame.c: Include "frame-unwind.h".
9248 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9249 to use the new unwind field.
9250 (set_unwind_by_pc): Delete function.
9251 (create_new_frame, get_prev_frame): Set unwind field using
9252 frame_unwind_find_by_pc.
9253 (trad_frame_unwind, trad_frame_unwinder): New variables.
9254 * frame.h (trad_frame_unwind): Declare variable.
9255 (frame_id_unwind_ftype): Delete declaration.
9256 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9257 (struct frame_unwind): Declare opaque.
9258 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9259 register_unwind with a single unwind pointer.
9260 * frame-unwind.h, frame-unwind.c: New files.
9261 * Makefile.in (SFILES): Add frame-unwind.c.
9262 (frame_unwind_h): Define.
9263 (COMMON_OBS): Add frame-unwind.o.
9264 (frame-unwind.o): Specify dependencies.
9265 (frame.o, dummy-frame.o): Update dependencies.
9267 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9269 * ada-valprint.c: Eliminate PTR.
9270 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9271 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9272 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9273 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9274 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9275 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9276 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
9278 2003-01-17 Andrew Cagney <ac131313@redhat.com>
9280 * main.c (captured_main): Don't use PTR.
9281 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9282 * gdbtypes.c (lookup_primitive_typename): Ditto.
9283 (lookup_struct_elt_type): Ditto.
9284 * f-valprint.c (info_common_command): Ditto.
9285 (list_all_visible_commons): Ditto.
9286 * jv-typeprint.c (java_type_print_base): Ditto.
9288 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9289 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9290 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9291 i386-interix-nat.c and i386-interix-tdep.c. Rename
9292 m68klinux-nat.c and m68klinux-tdep.c. Rename
9293 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9294 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9295 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9296 * main.c (captured_main): Use xfree, not free.
9298 2003-01-16 Andrew Cagney <ac131313@redhat.com>
9300 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9301 ID back using a parameter.
9302 * frame.c (frame_id_unwind): Update call.
9303 (frame_saved_regs_id_unwind): Update.
9304 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9305 * dummy-frame.h (struct frame_id): Add opaque declaration.
9306 (dummy_frame_id_unwind): Update declaration.
9308 2003-01-15 Andrew Cagney <ac131313@redhat.com>
9310 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9312 2003-01-15 Stephen P. Smith <ischis2@cox.net>
9314 * MAINTAINERS (Stephen P. Smith): Updated email address.
9316 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
9319 * breakpoint.c (until_break_command): Add new argument. Use it to
9320 decide whether to stop only at the current frame or not.
9321 * breakpoint.h (until_break_command): Update prototype.
9322 * infcmd.c (until_command): Add new argument to until_break_command
9324 (advance_command): New function.
9325 (_initialize_infcmd): Update help string for 'until' command.
9326 Add new 'advance' command.
9328 2003-01-14 David Carlton <carlton@math.stanford.edu>
9330 * linespec.c (decode_line_1): Normalize comments.
9332 (locate_first_half): Ditto.
9333 (decode_compound): Ditto.
9334 (symtab_from_filename): Ditto.
9335 (decode_all_digits): Ditto.
9336 (decode_dollar): Ditto.
9337 (find_methods): Ditto.
9338 (find_toplevel_char): Ditto.
9340 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9342 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9343 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9344 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9345 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9346 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9347 * language.c, language.h, m32r-tdep.c: Update copyright.
9348 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9349 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9350 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9351 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9352 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9353 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9355 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9357 * stabsread.h (process_later, resolve_cfront_continuation):
9359 Update copyright years.
9360 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9361 Update copyright year.
9362 * dbxread.c(struct cont_elem): Obsolete.
9363 (process_later, process_now): Obsolete functions.
9364 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9365 Update copyright year.
9366 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9367 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9368 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9369 (parse_partial_symbols): Obsolete cfront support.
9371 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9373 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9374 read_cfront_baseclasses, read_cfront_member_functions,
9375 resolve_cfront_continuation,read_cfront_static_fields,
9376 copy_cfront_struct_fields): Obsolete functions.
9377 (define_symbol, read_one_struct_field): Obsolete cfront support.
9378 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9379 Update Copyright year.
9381 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9383 * stack.c (print_frame_info, print_stack_frame_base_stub,
9384 print_stack_frame_base, show_and_print_stack_frame_stub,
9385 show_and_print_stack_frame, print_only_stack_frame_stub,
9386 print_only_stack_frame): Delete functions.
9387 (print_stack_frame_stub): Call print_frame_info instead of
9388 print_frame_info_base.
9389 (print_frame_info_base): Rename to print_frame_info.
9390 (backtrace_command_1): Call print_frame_info, instead of
9391 print_frame_info_base.
9392 (current_frame_command): Call print_stack_frame, instead of
9393 print_only_stack_frame.
9394 (frame_command): Call print_stack_frame, instead of
9395 show_and_print_stack_frame.
9396 (up_command): Ditto.
9397 (down_command): Ditto.
9398 * frame.h (print_only_stack_frame): Delete prototype.
9399 * infrun.c (normal_stop): Call print_stack_frame, instead of
9400 show_and_print_stack_frame.
9401 * thread.c (info_threads_command): Call print_stack_frame, instead
9402 of print_only_stack_frame.
9404 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9406 * README (Graphical interface to GDB): Update URL. Point at
9409 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
9412 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9414 * symtab.c (find_pc_sect_line): Don't consider end-of-function
9417 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9419 * thread-db.c (attach_thread): Prototype.
9420 (struct private_thread_info): Remove lwpid. Add thread handle (th),
9421 thread information (ti), and valid flags (th_valid, ti_valid).
9422 (attach_thread): Move target_pid_to_str call to after the thread
9423 is added to GDB's list. Initialize the cache.
9424 (thread_get_info_callback, thread_db_map_id2thr)
9425 (thread_db_get_info): New functions.
9426 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9427 (thread_db_store_registers, thread_db_thread_alive)
9428 (thread_db_get_thread_local_address): Use them.
9429 (thread_db_pid_to_str): Likewise. Return "Missing" instead
9430 of calling error() for threads in unknown state.
9432 (clear_lwpid_callback): New function.
9433 (thread_db_resume): Use it to clear the cache.
9435 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9437 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9438 (resume_callback): Remove dead code.
9440 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9442 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
9444 * gdbarch.h, gdbarch.c: Regenerate.
9445 * stack.c (frame_info): Only initialize the saved registers when
9446 FRAME_INIT_SAVED_REGS_P.
9447 * frame.c (frame_saved_regs_register_unwind): Assert
9448 FRAME_INIT_SAVED_REGS_P.
9449 (deprecated_generic_get_saved_register): Ditto.
9451 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9453 * source.c (openp): Squelch warning about "filename".
9455 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9457 * source.c (openp): If the file does not exist don't necessarily
9460 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9463 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
9464 (integer_types_same_name_p): New function.
9465 (rank_one_type): Use it.
9466 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
9468 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9470 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
9472 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
9473 * configure.in: Add --with-sysroot.
9474 * configure: Regenerated.
9475 * main.c (gdb_sysroot): New variable.
9476 (captured_main): Initialize gdb_sysroot.
9477 * defs.h (gdb_sysroot): New extern declaration.
9478 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
9480 2003-01-12 Michael Chastain <mec@shout.net>
9482 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
9484 2003-01-12 Michael Chastain <mec@shout.net>
9486 * top.c (print_gdb_version): Bump copyright year to 2003.
9488 2003-01-12 David Carlton <carlton@bactrian.org>
9490 * linespec.c (symtab_from_filename): Rename variable 's' to
9493 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9495 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
9497 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
9499 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9501 * d10v-tdep.c: Include "gdb_assert.h".
9502 (d10v_store_return_value): Rewrite to match current interface.
9503 (d10v_extract_struct_value_address): Ditto.
9504 (d10v_extract_return_value): Ditto.
9505 (d10v_gdbarch_init): Set store_restore_value,
9506 extract_struct_value_address and extract_return_value.
9508 2003-01-12 J. Brobecker <brobecker@gnat.com>
9510 * hpread.c (set_namestring): New procedure replacing the
9511 SET_NAMESTRING macro.
9512 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
9513 by calls to set_namestring.
9515 2003-01-11 J. Brobecker <brobecker@gnat.com>
9517 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
9518 a compilation warning.
9519 (hpread_process_one_debug_symbol): Likewise.
9521 2003-01-10 David Carlton <carlton@math.stanford.edu>
9523 * linespec.c (decode_line_1): Rename variable 's' to
9525 (decode_all_digits): Rename argument 's' to 'file_symtab'.
9526 (decode_dollar): Ditto.
9527 (decode_variable): Ditto.
9528 (symbol_found): Ditto.
9530 2003-01-09 Michael Chastain <mec@shout.net>
9532 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
9534 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
9536 * win32-nat.c (set_process_privilege): New function.
9537 (child_attach): Call set_process_privilege() to enable the
9538 SE_DEBUG_NAME user privilege if available in process token.
9540 2003-01-10 J. Brobecker <brobecker@gnat.com>
9542 * hpread.c (hpread_process_one_debug_symbol): Fix a small
9543 compilation error in the previous revision.
9545 2003-01-09 David Carlton <carlton@math.stanford.edu>
9547 * linespec.c: Update copyright.
9549 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
9551 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
9553 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
9555 2003-01-09 Andrew Cagney <ac131313@redhat.com>
9557 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
9559 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
9560 (frame_saved_regs_zalloc): Update.
9561 (frame_saved_regs_register_unwind): Update.
9562 (create_new_frame): Update.
9563 (get_prev_frame): Update.
9564 (frame_extra_info_zalloc): Update.
9565 (deprecated_get_frame_saved_regs): Update.
9566 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
9567 * cris-tdep.c: Update comment.
9569 * somsolib.h: Fix function indentation.
9570 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
9571 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
9572 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
9573 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
9574 * somsolib.c, inftarg.c: Remove assignment in if conditional.
9576 * infrun.c (follow_fork): Use ISO C definition.
9577 * expprint.c (print_subexp): Use xfree instead of free.
9578 * charset.c: Include "gdb_string.h" instead of <string.h>.
9579 (register_iconv_charsets): Use ISO C definition.
9580 (host_charset, target_charset): Ditto.
9581 * Makefile.in (charset.o): Update dependencies.
9582 (mi-cmd-env.o): Update dependencies.
9584 2003-01-08 Andrew Cagney <cagney@redhat.com>
9586 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
9589 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9591 * gdb_mbuild.sh: Add --keep option. When specified, keep the
9592 build directories. Save edited gdb output in Mbuild.log. If a
9593 build fails, remove any final GDB executable.
9595 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9597 * gdb_mbuild.sh: Edit the output of `maint print architecture'
9598 replacing hex constants with function names and stripping leading
9599 file name directory prefixes.
9601 2003-01-08 Andrew Cagney <cagney@redhat.com>
9603 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
9606 2003-01-08 David Carlton <carlton@math.stanford.edu>
9608 * linespec.c (decode_line_1): Move code into decode_variable.
9609 (decode_variable): New function.
9611 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9613 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
9615 2003-01-08 Andrew Cagney <cagney@redhat.com>
9617 * cris-tdep.c (cris_frame_init_saved_regs): Use
9618 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
9620 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9621 (sh64_nofp_frame_init_saved_regs): Ditto.
9622 (sh_fp_frame_init_saved_regs): Ditto.
9623 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
9624 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9625 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9626 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9628 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
9630 * minsyms.c (lookup_minimal_symbol): Update comment.
9631 (lookup_minimal_symbol_text): Update comment. Use the hash table.
9632 (lookup_minimal_symbol_solib_trampoline): Likewise.
9634 2003-01-08 Andrew Cagney <cagney@redhat.com>
9636 * d10v-tdep.c (d10v_init_extra_frame_info): Use
9637 frame_relative_level.
9639 * alpha-tdep.c: Use get_frame_extra_info.
9640 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9641 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
9642 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9643 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
9645 * alpha-tdep.c: Use get_next_frame.
9646 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9647 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
9648 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
9649 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
9650 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
9651 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
9652 * xstormy16-tdep.c: Ditto.
9654 2003-01-07 Andrew Cagney <cagney@redhat.com>
9656 * alpha-tdep.c: Use get_frame_base.
9657 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9658 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
9659 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
9660 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9661 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
9662 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
9663 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
9664 * config/sparc/tm-sparc.h: Ditto.
9666 2003-01-07 Andrew Cagney <cagney@redhat.com>
9668 * frame.c (deprecated_get_frame_context): New function.
9669 (deprecated_set_frame_context): New function.
9670 * frame.h (deprecated_get_frame_context): Declare.
9671 (deprecated_set_frame_context): Declare.
9672 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
9673 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
9675 2003-01-07 Andrew Cagney <cagney@redhat.com>
9677 * frame.c (deprecated_set_frame_next_hack): New function.
9678 (deprecated_set_frame_prev_hack): New function.
9679 * frame.h (deprecated_set_frame_next_hack): Declare.
9680 (deprecated_set_frame_prev_hack): Declare.
9681 * mcore-tdep.c (analyze_dummy_frame): Use
9682 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
9683 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9685 2003-01-07 David Carlton <carlton@math.stanford.edu>
9687 * linespec.c (decode_line_1): Move code into decode_dollar.
9688 (decode_dollar): New function.
9690 2003-01-07 Andrew Cagney <cagney@redhat.com>
9692 * arm-tdep.c (arm_init_extra_frame_info): Use
9693 deprecated_update_frame_base_hack.
9694 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
9695 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9696 (fix_frame_pointer): Ditto.
9697 (mn10300_analyze_prologue): Ditto.
9699 2003-01-07 Andrew Cagney <cagney@redhat.com>
9701 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
9702 extra_info using frame_extra_info_zalloc.
9703 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9704 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
9705 (sh64_init_extra_frame_info): Ditto.
9706 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
9707 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
9708 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9709 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
9710 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
9711 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
9712 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
9713 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
9714 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
9715 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
9716 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9717 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
9719 * mn10300-tdep.c (analyze_dummy_frame): Use
9720 deprecated_set_frame_extra_info_hack.
9721 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9723 2003-01-07 J. Brobecker <brobecker@gnat.com>
9725 * mdebugread.c (parse_symbol): Skip stProc entries which storage
9726 class is not scText. These do not define "real" procedures.
9727 (parse_partial_symbols): Likewise.
9729 2003-01-06 Michael Snyder <msnyder@redhat.com>
9731 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
9733 2003-01-06 Andrew Cagney <ac131313@redhat.com>
9735 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
9736 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
9737 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
9738 deprecated_frame_xmalloc_with_cleanup.
9739 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
9740 deprecated_frame_xmalloc.
9741 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
9742 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
9744 2003-01-06 Andrew Cagney <cagney@redhat.com>
9746 * x86-64-linux-tdep.c: Include "osabi.h".
9747 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
9749 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
9751 2003-01-06 Andrew Cagney <cagney@redhat.com>
9753 * MAINTAINERS (Target Instruction Set Architectures): Update
9754 arm-elf. Can be built with -Werror, has been multiarched.
9756 * value.h (unpack_long): Make buffer parameter constant.
9757 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
9758 * scm-lang.h (scm_parse): Ditto.
9759 * defs.h (extract_typed_address, extract_address): Ditto.
9760 (extract_long_unsigned_integer): Ditto.
9761 * inferior.h (unsigned_pointer_to_address): Ditto.
9762 (signed_pointer_to_address): Ditto.
9763 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
9764 * gdbarch.h, gdbarch.c: Regenerate.
9765 * findvar.c (extract_long_unsigned_integer): Update.
9766 (extract_address): Update.
9767 (extract_typed_address): Update.
9768 (unsigned_pointer_to_address): Update.
9769 * values.c (unpack_long): Update.
9770 (unpack_double): Update.
9771 (unpack_pointer): Update.
9772 (unpack_field_as_long): Update.
9773 * d10v-tdep.c (d10v_pointer_to_address): Update.
9774 * avr-tdep.c (avr_pointer_to_address): Update.
9775 * scm-lang.c (scm_unpack): Update.
9776 * findvar.c (signed_pointer_to_address): Update.
9778 2003-01-06 Michal Ludvig <mludvig@suse.cz>
9780 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
9781 since it is in i386-tdep.c.
9783 2003-01-06 J. Brobecker <brobecker@gnat.com>
9785 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
9786 failure introduced in the previous change.
9788 2003-01-05 Michael Chastain <mec@shout.net>
9790 * README: Remove references to deleted remote-*.c files:
9791 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
9792 remote-nrom.c, remote-os9k.c, remote-udi.c.
9794 2003-01-05 Mark Kettenis <kettenis@gnu.org>
9796 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
9797 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
9798 i386_get_longjmp_target.
9800 2003-01-05 Andrew Cagney <ac131313@redhat.com>
9802 * arm-tdep.c (prologue_cache): Change to a pointer.
9803 (_initialize_arm_tdep): Allocate prologue_cache.
9804 (check_prologue_cache): Update.
9805 (save_prologue_cache): Update.
9806 (arm_gdbarch_init): Update.
9808 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9810 * stabsread.c (update_method_name_from_physname): Call complaint()
9813 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9815 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
9816 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
9817 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
9819 * blockframe.c: Include "gdbcmd.h" and "command.h".
9820 (backtrace_below_main): New variable.
9821 (file_frame_chain_valid, func_frame_chain_valid)
9822 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
9823 (generic_func_frame_chain_valid): Remove functions.
9824 (frame_chain_valid, do_flush_frames_sfunc): New functions.
9825 (_initialize_blockframe): New function.
9826 * Makefile.in (blockframe.o): Update dependencies.
9827 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
9828 comment. Call frame_chain_valid ().
9829 * frame.h: Remove old prototypes. Add prototype for
9830 frame_chain_valid and update comments to match.
9831 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
9833 * gdbarch.h: Regenerated.
9834 * gdbarch.c: Regenerated.
9836 * alpha-tdep.c (alpha_gdbarch_init): Don't call
9837 set_gdbarch_frame_chain_valid.
9838 * avr-tdep.c (avr_gdbarch_init): Likewise.
9839 * cris-tdep.c (cris_gdbarch_init): Likewise.
9840 * frv-tdep.c (frv_gdbarch_init): Likewise.
9841 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
9842 * i386-tdep.c (i386_svr4_init_abi): Likewise.
9843 (i386_nw_init_abi): Likewise.
9844 (i386_gdbarch_init): Likewise.
9845 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
9846 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
9847 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
9848 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
9849 * mips-tdep.c (mips_gdbarch_init): Likewise.
9850 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9851 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
9852 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9853 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9854 * s390-tdep.c (s390_gdbarch_init): Likewise.
9855 * sh-tdep.c (sh_gdbarch_init): Likewise.
9856 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
9857 * v850-tdep.c (v850_gdbarch_init): Likewise.
9858 * vax-tdep.c (vax_gdbarch_init): Likewise.
9859 * x86-64-tdep.c (x86_64_init_abi): Likewise.
9861 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
9862 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
9863 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
9864 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
9865 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
9866 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
9867 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
9868 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
9870 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9872 * Makefile.in (acconfig_h): Remove incorrect macro.
9874 (osabi.o): Update dependencies.
9875 * configure.tgt: Set gdb_osabi based on target triplet.
9876 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
9877 * configure: Regenerated.
9878 * config.in: Regenerated.
9879 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
9880 (GDB_OSABI_DEFAULT): Define if not already defined.
9881 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
9882 (set_osabi_string): New variables.
9883 (gdbarch_register_osabi): Add new OS ABI to
9884 gdb_osabi_available_names.
9885 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
9886 (set_osabi, show_osabi): New functions.
9887 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
9889 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9891 * arch-utils.c (gdbarch_info_init): Set osabi to
9892 GDB_OSABI_UNINITIALIZED.
9893 * gdbarch.sh: Add osabi to struct gdbarch and to struct
9894 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
9895 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
9896 * gdbarch.c: Regenerated.
9897 * gdbarch.h: Regenerated.
9898 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
9900 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
9901 * osabi.h (enum gdb_osabi): Move to defs.h.
9902 (gdbarch_init_osabi): Update prototype.
9903 * defs.h (enum gdb_osabi): Moved here.
9904 * Makefile.in: Update dependencies.
9906 * alpha-tdep.h: Don't include "osabi.h".
9907 (struct gdbarch_tdep): Remove osabi member.
9908 * alpha-tdep.c: Include "osabi.h".
9909 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9910 iterate over arches. Update call to gdbarch_init_osabi.
9911 (alpha_dump_tdep): Don't dump osabi.
9912 * alpha-linux-tdep.c: Include "osabi.h".
9913 * alpha-osf1-tdep.c: Include "osabi.h".
9914 * alphafbsd-tdep.c: Include "osabi.h".
9915 * alphanbsd-tdep.c: Include "osabi.h".
9917 * arm-tdep.h: Don't include "osabi.h".
9918 (struct gdbarch_tdep): Remove osabi member.
9919 * arm-tdep.c: Include "osabi.h".
9920 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9921 iterate over arches. Update call to gdbarch_init_osabi.
9922 (arm_dump_tdep): Don't dump osabi.
9923 * arm-linux-tdep.c: Include "osabi.h".
9924 * armnbsd-tdep.c: Include "osabi.h".
9926 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
9927 Update call to gdbarch_init_osabi.
9929 * i386-tdep.h: Don't include "osabi.h".
9930 (struct gdbarch_tdep): Remove osabi member.
9931 * i386-tdep.c: Include "osabi.h".
9932 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9933 iterate over arches. Update call to gdbarch_init_osabi.
9934 (i386_dump_tdep): Don't dump osabi.
9935 * i386-linux-tdep.c: Include "osabi.h".
9936 * i386-sol2-tdep.c: Include "osabi.h".
9937 * i386bsd-tdep.c: Include "osabi.h".
9938 * i386gnu-tdep.c: Include "osabi.h".
9939 * i386ly-tdep.c: Include "osabi.h".
9940 * i386nbsd-tdep.c: Include "osabi.h".
9941 * i386obsd-tdep.c: Include "osabi.h".
9943 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
9944 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9945 check osabi when iterating over arches. Update call to
9947 (mips_dump_tdep): Don't dump osabi.
9949 * ns32k-tdep.h: Don't include "osabi.h".
9950 (struct gdbarch_tdep): Remove.
9951 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
9952 gdbarch_lookup_osabi. Don't iterate over arches. Don't
9953 allocate tdep. Update call to gdbarch_init_osabi.
9954 (ns32k_dump_tdep): Remove.
9955 (_initialize_ns32k_tdep): Update call to gdbarch_register.
9956 * ns32knbsd-tdep.c: Include "osabi.h".
9958 * ppc-tdep.h: Don't include "osabi.h".
9959 (struct gdbarch_tdep): Remove osabi member.
9960 * rs6000-tdep.c: Include "osabi.h".
9961 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
9962 osabi when iterating over arches. Update call to
9964 (rs6000_dump_tdep): Don't dump osabi.
9965 * ppc-linux-tdep.c: Include "osabi.h".
9966 * ppcnbsd-tdep.c: Include "osabi.h".
9968 * sh-tdep.h: Don't include "osabi.h".
9969 (struct gdbarch_tdep): Remove osabi member.
9970 * sh-tdep.c: Include "osabi.h".
9971 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9972 iterate over arches. Update call to gdbarch_init_osabi.
9973 (sh_dump_tdep): Don't dump osabi.
9974 * shnbsd-tdep.c: Include "osabi.h".
9976 * sparc-tdep.c: Include "osabi.h".
9977 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9978 iterate over arches. Update call to gdbarch_init_osabi.
9979 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
9982 * vax-tdep.h: Don't include "osabi.h".
9983 (struct gdbarch_tdep): Remove.
9984 * vax-tdep.c: Include "osabi.h".
9985 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9986 iterate over arches. Don't allocate tdep. Update call
9987 to gdbarch_init_osabi.
9988 (vax_dump_tdep): Remove.
9989 (_initialize_vax_tdep): Update call to gdbarch_register.
9991 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9993 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
9995 (breakpoint_re_set_one): Don't fetch the value for a disabled
9998 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10000 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10001 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10002 (COERCE_FLOAT_TO_DOUBLE): Remove.
10003 * gdbarch.c: Regenerate.
10004 * gdbarch.h: Regenerate.
10005 * Makefile.in: Remove value_h from gdbarch_h.
10006 * valops.c (coerce_float_to_double): New variable.
10007 (default_coerce_float_to_double): Remove.
10008 (standard_coerce_float_to_double): Remove.
10009 (value_arg_coerce): Use coerce_float_to_double.
10010 (_initialize_valops): Add "set coerce-float-to-double".
10011 * value.h (default_coerce_float_to_double): Remove prototype.
10012 (standard_coerce_float_to_double): Remove prototype.
10014 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10016 * mdebugread.c (parse_symbol): Likewise.
10017 * stabsread.c (define_symbol): Mark all functions as prototyped.
10019 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10020 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10021 set_gdbarch_coerce_float_to_double.
10022 * arm-tdep.c (arm_gdbarch_init): Likewise.
10023 * frv-tdep.c (frv_gdbarch_init): Likewise.
10024 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10025 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10026 * mips-tdep.c (mips_gdbarch_init): Likewise.
10027 (mips_coerce_float_to_double): Remove.
10028 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10029 (rs6000_coerce_float_to_double): Remove.
10030 * s390-tdep.c (s390_gdbarch_init): Likewise.
10031 * sh-tdep.c (sh_gdbarch_init): Likewise.
10032 (sh_coerce_float_to_double): Remove.
10033 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10034 (sparc_coerce_float_to_double): Remove.
10035 * v850-tdep.c (v850_gdbarch_init): Likewise.
10036 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10037 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10038 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10039 (hppa_coerce_float_to_double): Remove prototype.
10040 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10042 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10044 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10046 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10048 Suggested by Stewart Brown <sb24@avaya.com>:
10049 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10050 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10051 (c_type_print_varspec_suffix): Likewise.
10053 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10055 * configure.in: Don't set and AC_SUBST SUBDIRS.
10056 * configure: Regenerated.
10058 * configure.in: Remove code dealing with shared libraries.
10059 * Makefile.in: Remove HLDFLAGS and HLDENV.
10060 * configure: Regenerated.
10062 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10064 * frame.c (deprecated_frame_xmalloc): New function.
10065 (deprecated_set_frame_saved_regs_hack): New function.
10066 (deprecated_set_frame_extra_info_hack): New function.
10067 * frame.h (deprecated_frame_xmalloc): Declare.
10068 (deprecated_set_frame_saved_regs_hack): Declare.
10069 (deprecated_set_frame_extra_info_hack): Declare.
10071 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10073 * configure.in: Move code that provides the --enable-gdbtk option
10074 right after the code that handles the --enable-tui option, and
10075 polish it somewhat.
10076 * configure: Regenerated.
10078 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10079 AC_CHECK_FUNCS and remove the old check for pread64.
10080 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10081 * acconfig.h (_GNU_SOURCE): Add.
10082 (HAVE_PREAD64): Remove.
10083 * configure, aclocal.m4, config.in: Regenerated.
10085 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10087 * alpha-tdep.c: Use get_frame_saved_regs.
10088 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10089 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10090 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10091 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10092 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10094 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10096 * configure.in: Remove all use of the SUBDIRS variable; add
10097 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10098 code providing the --enable-multi-ice option, and move it right in
10099 front of the code that checks whether gdbserver is supported.
10101 * configure: Regenerated.
10102 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10105 2003-01-03 Andrew Cagney <cagney@redhat.com>
10107 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10108 * avr-tdep.c, cris-tdep.c: Ditto.
10109 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10110 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10112 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10114 * configure.in: Remove --enable-netrom option.
10115 * configure: Regenerated.
10117 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10119 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10120 declaration for `struct re_pattern_buffer' instead.
10121 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10123 2003-01-03 J. Brobecker <brobecker@gnat.com>
10125 * mdebugread.c (parse_symbol): Count until the stEnd matching
10126 the structure name.
10128 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10130 * configure.in: Remove --with-cpu option.
10131 subscripts. Remove evil changequotes here.
10132 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10133 * config.in, configure: Regenerated.
10135 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10136 * configure.in: Cleanup section that sources GDB and BFD configure
10137 subscripts. Remove evil changequotes here.
10138 * config.in, configure: Regenerated.
10140 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10142 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10143 frame accessor methods.
10144 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10145 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10146 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10147 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10148 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10149 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10150 * z8k-tdep.c: Ditto.
10152 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10154 * configure.in: Remove UI_OUT configuration code.
10155 * ada-lang.c: Update assuming UI_OUT is always true.
10156 * Makefile.in (UIOUT_CFLAGS): Remove.
10157 * configure: Regenerated.
10158 * TODO: Remove blurb about elimination of -DUI_OUT.
10160 * configure.in: Move code that provides the --enable-gdbcli,
10161 --enable-gdbmi options right before the code that handles the
10162 --enable-tui option. Polish a bit.
10163 * configure: Regenerated.
10165 * configure.in: Rewrite check for GNU regex and the
10166 --without-included regex option, and move it into the "Checks for
10167 library functions" section. This makes us use the system regex
10168 again by default on systems with version 2 of the GNU C library.
10169 This was apparently broken.
10170 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10171 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10172 * config.in, configure: Regenerated.
10174 * configure.in: Move code that provides the --enable-tui option
10175 before the "Checks for libraries" section. Polish the code
10176 somewhat and set need_curses to yes if we build the TUI. Rewrite
10177 code that looks for a library providing termcap functionality to
10178 match more closely what's done in the Readline library, and move
10179 it into to the "Checks for libraries" section.
10180 * configure: Regenerated.
10181 * Makefile.in (TERMCAP): Remove variable.
10182 * config/i386/go32.mh (TERMCAP): Remove variable.
10184 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10186 * MAINTAINERS: Mention gdb_mbuild.sh.
10187 * gdb_mbuild.sh: Rewrite.
10189 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10191 * configure.in: Fix typo in last change.
10192 * config.in, configure: Regenerated.
10194 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10196 * valarith.c (value_binop): Delete obsolete code and comments.
10197 * configure.host: Ditto.
10198 * buildsym.h (make_blockvector): Ditto.
10199 * buildsym.c (make_blockvector): Ditto.
10200 * defs.h (enum language): Ditto.
10201 (chill_demangle): Ditto.
10202 * elfread.c (elf_symtab_read): Ditto.
10203 * dwarfread.c (CHILL_PRODUCER): Ditto.
10204 (set_cu_language): Ditto.
10205 (handle_producer): Ditto.
10206 * expprint.c (print_subexp): Ditto.
10207 * gdbtypes.c (chill_varying_type): Ditto.
10208 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10209 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10210 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10211 (chill_varying_type): Ditto.
10212 * language.h (_LANG_chill): Ditto.
10213 * language.c (binop_result_type, integral_type): Ditto.
10214 (character_type, string_type, structured_type): Ditto.
10215 (lang_bool_type, binop_type_check): Ditto.
10216 * stabsread.h (os9k_stabs): Ditto.
10217 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10218 (define_symbol, read_type, read_struct_fields): Ditto.
10219 (read_array_type, read_enum_type, read_huge_number): Ditto.
10220 (read_range_type, start_stabs): Ditto.
10221 * symfile.c (init_filename_language_table): Ditto.
10222 (add_psymbol_with_dem_name_to_list): Ditto.
10223 * symtab.c (symbol_init_language_specific): Ditto.
10224 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10225 * symtab.h (struct general_symbol_info): Ditto.
10226 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10227 * typeprint.c (typedef_print): Ditto.
10228 * utils.c (fprintf_symbol_filtered): Ditto.
10229 * valops.c (value_cast, search_struct_field, value_slice): Delete
10231 (varying_to_slice): Delete function.
10232 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10233 (varying_to_slice): Delete declaration.
10234 * MAINTAINERS: Update.
10236 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10238 * configure.in: Reorganize "Checks for library functions section"
10239 a bit. Remove check for `btowc' and `isascii' functions.
10240 * configure: Regenerated.
10242 * acconfig.h (_MSE_INT_H): Remove.
10243 * configure.in: Create "Checks for header files" section, and move
10244 appropriate tests there. Don't check for objlist.h, wchar.h,
10245 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10246 misdetection fix. Also add "Checks for types", "Checks for
10247 compiler characteristics" and "Checks for library functions"
10249 * config.in, configure: Regenerated.
10251 * configure.in: Create "Checks for programs" section, and move
10252 appropriate tests there.
10254 2003-01-01 Mark Kettenis <kettenis@gnu.org>
10256 * configure.in: Create "Checks for libraries" section, and move
10257 appropriate tests there. Cleanup check for wctype in libw. Use
10258 AC_SEARCH_LIBS to see whether we need libsocket.
10259 * configure: Regenerated.
10261 For older changes see ChangeLog-2002
10267 version-control: never