1 2003-08-07 Andrew Cagney <cagney@redhat.com>
3 * language.c (op_error): Delete function.
4 (binop_type_check): Delete function.
5 * language.h (type_op_error, range_op_error): Delete macros.
6 (op_error): Delete declaration.
8 2003-08-07 Andrew Cagney <cagney@redhat.com>
10 * interps.h (INTERP_MI2, INTERP_MI3): Define.
12 2003-08-07 Michal Ludvig <mludvig@suse.cz>
14 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
15 (x86_64_push_arguments): Skip the red zone.
17 2003-08-05 Andrew Cagney <cagney@redhat.com>
19 * reggroups.c (reggroup_next): Check for the final entry.
21 2003-08-04 Andrew Cagney <cagney@redhat.com>
23 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
24 * cli/cli-script.c (define_command): Call query directly, instead
25 of passing it a buffer.
26 * ocd.c (ocd_error): Pass error a constant format string.
27 * remote-mips.c (mips_error): Use fputs_filtered.
29 * solib-svr4.c (_initialize_svr4_solib): Update
30 register_gdbarch_data call.
31 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
33 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
34 (register_gdbarch_data): Delete "free" parameter. Update
36 * gdbarch.h, gdbarch.c: Re-generate.
37 * reggroups.c (_initialize_reggroup): Update.
38 * gnu-v3-abi.c (init_gnuv3_ops): Update.
39 * frame-base.c (_initialize_frame_base): Update.
40 * frame-unwind.c (_initialize_frame_unwind): Update.
41 * user-regs.c (_initialize_user_regs): Update.
42 * remote.c (_initialize_remote): Update.
43 * regcache.c (_initialize_regcache): Update.
45 * regcache.c (xfree_regcache_descr): Delete function.
46 (_initialize_regcache): Update call to register_gdbarch_data.
47 (init_regcache_descr, init_legacy_regcache_descr): Use
48 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
50 * remote.c (free_remote_state): Delete function.
51 (_initialize_remote): Update register_gdbarch_data.
52 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
53 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
55 2003-08-04 Andrew Cagney <cagney@redhat.com>
57 * reggroups.c (struct reggroup_el): Define.
58 (struct reggroups): Delete field "nr_group". Replace array
59 "group" with a "first" to "last" linked list.
60 (reggroups_init): Update. Allocate using gdbarch's obstack.
61 (reggroups_free): Delete function.
62 (add_group): Update. Add "el" parameter.
63 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
64 (default_groups): Update.
65 (reggroup_next): Replace reggroups.
66 (reggroups_dump): Update.
67 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
68 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
69 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
71 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
73 * Makefile.in (tui-interp.o): Update dependencies.
75 2003-08-04 David Carlton <carlton@kealia.com>
77 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
78 to internal_error call.
79 * source.c (forward_search_command): Add "%s" format argument.
80 (reverse_search_command): Ditto.
81 * top.c (quit_confirm): Ditto.
82 * cli/cli-setshow.c (do_setshow_command): Ditto.
83 * cp-valprint.c (cp_print_class_method): Replace
84 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
85 (cp_print_class_member): Ditto.
86 * event-top.c (command_line_handler): Ditto.
87 * linux-proc.c (linux_info_proc_cmd): Ditto.
88 * p-typeprint.c (pascal_type_print_base): Ditto.
89 * p-valprint.c (pascal_object_print_class_method): Ditto.
90 (pascal_object_print_class_member): Ditto.
91 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
92 * remote.c (remote_cisco_section_offsets): Ditto.
93 * top.c (command_line_input): Ditto.
94 * utils.c (vwarning,error_stream,quit): Ditto.
95 * valprint.c (print_floating,print_binary_chars)
96 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
98 2003-08-04 Andrew Cagney <cagney@redhat.com>
100 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
102 2003-08-02 Andrew Cagney <cagney@redhat.com>
104 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
105 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
108 2003-08-02 Andrew Cagney <cagney@redhat.com>
110 * Makefile.in: Update all dependencies and definitions.
112 2003-08-02 Adam Fedor <fedor@gnu.org>
114 * linespec.c (is_objc_method_format): New function
115 (decode_line_1, locate_first_half): Use it.
118 2003-08-01 Andrew Cagney <cagney@redhat.com>
120 * NEWS: Mention that m32r is multi-arch.
121 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
122 * configure.tgt: Recognize m32r-*-*.
123 * config/m32r/tm-m32r.h: Delete file.
124 * config/m32r/m32r.mt: New file.
125 * m32r-rom.c (m32r_upload_command): Use hostent only when
126 gethostname succeeds, in order to avoid a compilation
128 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
131 2003-08-01 Michael Snyder <msnyder@redhat.com>
133 * sh-tdep.c (sh_frame_align): New gdbarch method.
134 (sh_gdbarch_init): Set up frame_align method.
136 2003-07-31 Michael Snyder <msnyder@redhat.com>
138 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
139 which is already covered by the new frames infrastructure.
141 2003-07-31 Andrew Cagney <cagney@redhat.com>
143 * user-regs.c (struct user_reg): Add "next" link.
144 (struct user_regs): Replace "user" with "first" and "last" links.
145 (append_user_reg): Add pre-allocated "reg" parameter.
146 (builtin_user_regs): Provide initial value for "last".
147 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
148 (user_regs_init): Allocate memory from the gdbarch obstack.
149 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
150 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
152 (usernum_to_user_reg): New function.
153 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
154 (value_of_user_reg): Use usernum_to_user_reg.
155 (user_regs_free): Delete function.
156 (_initialize_user_regs): Update register_gdbarch_data call.
158 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
160 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
162 2003-07-30 Michael Snyder <msnyder@redhat.com>
164 * value.h (value_being_returned): Add a struct_addr argument.
165 * infcall.c (call_function_by_hand): Pass struct_addr to
166 value_being_returned.
167 * infcmd.c (print_return_value): Pass zero as struct_addr.
168 * values.c (value_being_returned): If struct_addr is passed,
169 use it instead of trying to recover it from the inferior.
171 2003-07-30 Kevin Buettner <kevinb@redhat.com>
173 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
174 the prologue analyzer won't need to attempt to extract the pc
175 value from the woefully incomplete dummy frame.
176 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
177 possible. Disable code which modifies the frame.
179 2003-07-28 Andrew Cagney <cagney@redhat.com>
181 * annotate.c (annotate_breakpoints_headers): Restrict annotation
183 (annotate_breakpoints_table, annotate_record): Ditto.
184 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
185 (annotate_field_name_end, annotate_field_value): Ditto.
186 (annotate_field_end, annotate_frame_source_begin): Ditto.
187 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
188 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
189 (annotate_frame_begin, annotate_frame_function_name): Ditto.
190 (annotate_frame_address_end, annotate_frame_address): Ditto.
191 (annotate_frame_args, annotate_frame_end): Ditto.
192 (annotate_frame_where, annotate_arg_begin): Ditto.
193 (annotate_arg_name_end, annotate_arg_value): Ditto.
194 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
195 (annotate_function_call, annotate_signal_name): Ditto.
196 (annotate_signal_string, annotate_signal_name_end): Ditto.
197 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
198 (annotate_value_begin, annotate_value_history_value): Ditto.
199 (annotate_value_history_end, annotate_value_end): Ditto.
200 (annotate_display_begin, annotate_display_number_end): Ditto.
201 (annotate_display_format, annotate_display_expression): Ditto.
202 (annotate_display_expression_end, annotate_display_value): Ditto.
203 (annotate_display_end, annotate_array_section_begin): Ditto.
204 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
205 (annotate_elt, annotate_array_section_end): Ditto.
207 2003-07-28 Andrew Cagney <cagney@redhat.com>
209 * regcache.c (struct regcache_descr): Update comments on
211 (init_legacy_regcache_descr): Don't set nr_raw_registers or
212 sizeof_raw_register_valid_p.
213 (init_regcache_descr): Set nr_raw_registers and
214 sizeof_raw_register_valid_p before calling
215 init_legacy_regcache_descr.
217 2003-07-28 Andrew Cagney <cagney@redhat.com>
219 * mips-tdep.c (print_gp_register_row): Print the GPR's register
222 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
224 * thread.c (info_threads_command): Use get_selected_frame ().
225 Check that there is at least one non-sentinel frame.
227 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
229 * m68hc11-tdep.c (struct frame_extra_info): Remove.
230 (m68hc11_pop_frame): Remove.
231 (m68hc11_frame_saved_pc): Remove.
232 (m68hc11_frame_chain): Remove.
233 (m68hc11_frame_init_saved_regs): Remove.
234 (m68hc11_init_extra_frame_info): Remove.
235 (m68hc11_store_struct_return): Remove.
236 (m68hc11_saved_pc_after_call): Remove.
238 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
240 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
241 frame unwind information.
242 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
243 and adapted for frame unwinding.
244 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
245 (m68hc11_unwind_pc): New function.
246 (m68hc11_frame_unwind_cache): New function to analyze frames.
247 (m68hc11_frame_this_id): New function to create new frame struct.
248 (m68hc11_frame_prev_register): New function to unwind a register from
250 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
251 (m68hc11_frame_p): New function for the above.
252 (m68hc11_frame_base_address): New function to return fp of frame.
253 (m68hc11_frame_args_address): Update for frame.
254 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
255 (m68hc11_unwind_sp): New function.
256 (m68hc11_unwind_dummy_id): New function.
257 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
260 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
262 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
263 (m68hc11_guess_from_prologue): Advance the pc and frame size only
264 when we are beyond the current pc.
266 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
268 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
269 from m68hc11_push_arguments.
270 (m68hc11_push_arguments): Remove.
271 (m68hc11_push_return_address): Remove.
272 (m68hc11_gdbarch_init): Install the above; remove above deprecated
273 handlers; remove deprecated_extra_stack_alignment_needed.
275 2003-07-27 Andrew Cagney <cagney@redhat.com>
277 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
278 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
279 REAL_PC and not the pointer.
280 * hppa-hpux-tdep.c: Include frame.h
282 2003-07-27 Andrew Cagney <cagney@redhat.com>
284 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
285 GDB_MULTI_ACH_PARTIAL.
287 2003-07-27 Andrew Cagney <cagney@redhat.com>
289 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
290 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
291 operator at start and not end of line.
292 (decode_prologue): Ditto.
293 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
294 frame_unwind_register_unsigned instead of
295 frame_unwind_unsigned_register.
296 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
298 (m32r_push_dummy_call): Use register_size instead of
300 (m32r_frame_sniffer): Replace m32r_frame_p.
301 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
302 * m32r-rom.c (report_transfer_performance): Delete extern
304 (m32r_load, m32r_upload_command): Use print_transfer_performance
305 instead of report_transfer_performance.
306 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
309 2003-07-26 Andrew Cagney <cagney@redhat.com>
311 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
312 store_return_value and extract_struct_value_address.
314 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
317 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
318 NULL, default to the section containing PC.
320 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
322 * NEWS: Mention "regs" deprecated for m68hc11 too.
324 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
325 (m68hc11_print_register): New function to print out one register.
326 (m68hc11_print_registers_info): New function to print registers.
327 (show_regs): Deprecate and use the above.
328 (m68hc11_gdbarch_init): Install the print_registers_info.
330 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
332 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
333 that we have a SIGTRAP before returning non-zero.
335 2003-07-23 Michal Ludvig <mludvig@suse.cz>
336 Elena Zannoni <ezannoni@redhat.com>
338 * linespec.c (decode_line_2): Avoid crash if
339 find_function_start_sal() returns empty record.
341 2003-07-23 Andreas Schwab <schwab@suse.de>
343 * ia64-tdep.c (ia64_print_insn): New function.
344 (ia64_gdbarch_init): Set print_insn to it.
345 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
346 deprecated_tm_print_insn_info.
348 2003-07-22 Michael Snyder <msnyder@redhat.com>
350 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
351 handle 8-bit returns (long long).
352 (h8300h_extract_return_value): Ditto.
353 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
355 2003-07-22 Andrew Cagney <cagney@redhat.com>
357 * gdbarch.c Include "gdb_obstack.h".
358 (struct gdbarch): Add an "obstack".
359 (alloc_gdbarch_data): Allocate the gdbarch data using
360 GDBARCH_OBSTACK_CALLOC.
361 (free_gdbarch_data): Delete function.
362 (gdbarch_obstack_zalloc): New function.
363 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
364 Assert that the architecture is not initialized.
365 (gdbarch_alloc): Allocate an obstack, allocate the architecture
366 vector from the obstack.
367 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
368 architecture obstack.
369 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
370 (set_gdbarch_data): Assert that the data is not initialized.
371 (struct gdbarch_data): Delete member "free".
372 (register_gdbarch_data): Do not initialize "free".
373 * gdbarch.h, gdbarch.c: Re-generate.
375 2003-07-22 Andrew Cagney <cagney@redhat.com>
377 * configure.in (build_warnings): Add -Wformat-nonliteral.
378 * configure: Re-generate.
380 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
382 * dwarf2loc.c (locexpr_describe_location): Fix typos.
384 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
386 * findvar.c (read_var_value): Remove case for thread local storage
387 variables. It is now entirely handled by the dwarf2 location
389 * printcmd.c (address_info): Ditto.
390 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
392 (struct symbol): Remove objfile field, which was used by
393 LOC_THREAD_LOCAL_STATIC only.
394 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
395 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
396 usage of objfile pointer.
397 * dwarf2loc.c (locexpr_describe_location): Add case to handle
398 thread local variables.
399 Add include of objfiles.h.
400 * dwarf2expr.c (execute_stack_op): Add comments about thread local
402 * Makefile.in (dwarf2loc.o): Update dependencies.
404 2003-07-22 Andrew Cagney <cagney@redhat.com>
406 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
408 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
409 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
410 (struct value): Add opaque declaration.
411 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
413 2003-07-21 Andrew Cagney <cagney@redhat.com>
415 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
416 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
418 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
420 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
421 regcache_cooked_read_unsigned instead of read_register.
422 (m68hc11_saved_pc_after_call): Likewise.
423 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
424 instead of write_register.
425 (m68hc11_register_type): New function.
426 (m68hc11_register_virtual_type): Remove.
427 (m68hc11_store_return_value): Convert to use the regcache.
428 (m68hc11_extract_struct_value_address): Likewise.
429 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
430 m68hc11_register_type; undeprecate store_return_value and
431 extract_struct_value_address.
433 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
435 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
436 and translate to use regcache.
437 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
439 2003-07-18 Andrew Cagney <cagney@redhat.com>
441 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
442 * gdbarch.h, gdbarch.c: Re-generate.
443 * i386-tdep.c (i386_gdbarch_init): Do not set
444 DWARF2_BUILD_FRAME_INFO.
445 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
447 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
448 DWARF2_BUILD_FRAME_INFO.
450 2003-07-18 Andrew Cagney <cagney@redhat.com>
452 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
453 * disasm.c (gdb_disassemble_info): Initilize di.arch.
455 2003-07-18 Andrew Cagney <cagney@redhat.com>
457 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
458 frame_unwind_address_in_block, instead of frame_pc_unwind.
459 (dwarf2_frame_cache): Ditto.
461 2003-07-18 Andrew Cagney <cagney@redhat.com>
463 * user-regs.h (struct gdbarch): Declare opaque.
464 * ui-out.h (struct ui_file): Declare opaque.
465 * dwarf2-frame.h (struct frame_info): Declare opaque.
467 2003-07-18 Kris Warkentin <kewarken@qnx.com>
469 * nto-procfs.c: Clean ARI hits. Change #include <..> to
471 (procfs_meminfo): Change strerror to safe_strerror.
472 (procfs_can_run): Remove K&R badness.
474 2003-07-17 Michael Snyder <msnyder@redhat.com>
476 * remote-sim.c: Comment typo fix.
478 2003-07-17 Andrew Cagney <cagney@redhat.com>
480 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
482 * sparc-tdep.c (sparc_intreg_size): Make non-static.
483 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
484 GDB_MULTI_ARCH_PARTIAL.
486 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
488 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
489 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
490 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
492 2003-07-16 Theodore A. Roth <troth@openavr.org>
494 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
496 (avr_frame_unwind_cache): Don't unwind FP for main.
498 Save the computed prev_sp.
499 (avr_saved_regs_unwinder): Remove function.
500 (avr_frame_prev_register): Use PC unwind logic from
501 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
503 2003-07-16 Andrew Cagney <cagney@redhat.com>
505 * frame-base.h (frame_base_p_ftype): Delete definition.
506 (frame_base_append_predicate): Delete declaration.
507 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
508 (frame_unwind_append_predicate): Delete declaration.
509 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
510 (append_predicate): Delete parameter "p".
511 (frame_unwind_append_predicate): Delete function.
512 (frame_unwind_append_sniffer): Update call to append_predicate.
513 (frame_unwind_free): Delete function.
514 (_initialize_frame_unwind): Pass NULL as "free" to
515 register_gdbarch_data.
516 (frame_unwind_init): Append the dummy_frame_sniffer.
517 (frame_unwind_find_by_frame): Simplify.
518 * frame-base.c (struct frame_base_table): Delete field "p".
519 (append_predicate): Delete parameter "p".
520 (frame_base_append_predicate): Delete function.
521 (frame_base_append_sniffer): Update call to append_predicate.
522 (frame_base_free): Delete function.
523 (frame_base_find_by_frame): Simplify.
524 (_initialize_frame_base): Pass NULL as "free" to
525 register_gdbarch_data.
526 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
527 (x86_64_sigtramp_frame_sniffer): Replace
528 "x86_64_sigtramp_frame_p".
529 (x86_64_init_abi): Set the frame unwind sniffers.
530 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
531 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
532 (m68k_gdbarch_init): Set the frame unwind sniffers.
533 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
534 "i386_sigtramp_frame_p".
535 (i386_frame_sniffer): Replace "i386_frame_p".
536 (i386_gdbarch_init): Set the frame unwind sniffers.
537 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
538 (avr_gdbarch_init): Set the frame unwind sniffers.
539 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
540 "alpha_sigtramp_frame_p"
541 (alpha_heuristic_frame_sniffer): Replace
542 "alpha_heuristic_frame_p".
543 (alpha_gdbarch_init): Set the frame unwind sniffers.
544 (alpha_dwarf2_init_abi): Ditto.
545 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
546 "alpha_debug_frame_p".
547 (alpha_mdebug_frame_base_sniffer): Replace
548 "alpha_mdebug_frame_base_p".
549 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
550 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
551 (d10v_gdbarch_init): Set the frame unwind sniffer.
552 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
553 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
554 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
555 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
556 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
557 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
559 2003-07-16 Michael Snyder <msnyder@redhat.com>
561 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
562 should go thru sh_dsp_register_sim_regno, else the dsp regs
563 will not get the right values.
565 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
567 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
568 deprecated_store_floating by call to store_typed_floating.
569 (sh_sh4_register_convert_to_raw): Substitute call to
570 deprecated_extract_floating by call to extract_typed_floating.
572 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
574 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
576 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
578 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
579 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
580 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
582 (do_pseudo_register): Remove.
583 (sh_push_dummy_code): New function.
584 (sh64_store_struct_return): Rename from sh_store_struct_return.
585 Only called for sh64 now.
586 (sh_extract_struct_value_address): Regcache'ify.
587 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
588 and accomodate new tasks.
589 (sh64_push_return_address): Rename from sh_push_return_address.
590 Only called for sh64 now.
591 (sh_default_extract_return_value): Rename from sh_extract_return_value.
593 (sh3e_sh4_extract_return_value): Regcache'ify.
594 (sh_default_store_return_value): Ditto.
595 (sh3e_sh4_store_return_value): Ditto.
596 (sh_default_register_byte): Remove.
597 (sh_sh4_register_byte): Remove.
598 (sh_default_register_raw_size): Remove.
599 (sh_sh4_register_raw_size): Remove.
600 (sh_register_virtual_size): Remove.
601 (sh_sh3e_register_virtual_type): Remove.
602 (sh_sh3e_register_type): New function.
603 (sh_sh4_register_virtual_type): Remove.
604 (sh_sh4_register_type): New function.
605 (sh_default_register_virtual_type): Remove.
606 (sh_default_register_type): New function.
607 (do_fv_register_info): Add parameters to accomodate call from
608 sh_print_registers_info.
609 (do_dr_register_info): Ditto.
610 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
611 Add parameters to accomodate call from sh_print_registers_info.
612 (sh_do_fp_register): Ditto.
613 (sh64_do_pseudo_register): Call do_dr_register_info,
614 do_fv_register_info and sh_do_fp_register with default parameters.
615 (sh_do_register): Add parameters to accomodate call from
616 sh_print_registers_info.
617 (sh_print_register): Ditto.
618 (sh_print_registers_info): Rename from sh_do_registers_info.
619 Add parameters to be used as gdbarch_print_registers_info
620 implementation. Accomodate removed do_pseudo_register function
622 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
623 function pointer. Call sh_print_register with default parameters.
624 (sh64_do_registers_info): Call sh_print_registers_info instead of
625 sh_do_registers_info.
626 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
627 detection of deprecated vs. non-deprecated functionality.
628 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
629 function pointer assignments by direct function calls.
631 2003-07-15 Andrew Cagney <cagney@redhat.com>
633 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
634 (frame_register_unwind, create_new_frame): Ditto.
635 (legacy_get_prev_frame, get_frame_type): Ditto.
636 (get_frame_base_address): Use frame_base_find_by_frame.
637 (get_frame_locals_address): Use frame_base_find_by_frame.
638 (get_frame_args_address): Use frame_base_find_by_frame.
639 * frame-base.h (frame_base_sniffer_ftype): Declare.
640 (frame_base_append_sniffer): Declare.
641 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
642 * frame-base.c (append_predicate): Add a "sniffer" parameter.
643 (frame_base_append_sniffer): New function.
644 (frame_base_append_predicate): Add a NULL sniffer.
645 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
646 (struct frame_base_table): Add "sniffer".
647 (frame_base_free): Free the "sniffer" table.
648 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
649 (frame_unwind_append_sniffer): Declare.
650 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
651 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
652 (struct frame_unwind_table): Add "sniffer", delete "middle".
653 (append_predicate): Add "sniffer" parameter, append the sniffer.
654 (frame_unwind_init): Update append_predicate call.
655 (frame_unwind_append_sniffer): New function.
656 (frame_unwind_append_predicate): Update append_predicate call.
657 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
659 2003-07-15 Andrew Cagney <cagney@redhat.com>
661 * frame.c (get_prev_frame): Move disabled inside_entry_func to
662 before code inhibiting repeated unwind attempts. Add to
663 commentary on that test's problems.
664 * blockframe.c (inside_main_func): Look for "main" in the minimal
666 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
669 2003-07-15 Andrew Cagney <cagney@redhat.com>
671 * complaints.c (struct explanation): Define.
672 (struct complaints): Change type of "explanation" to "struct
674 (symfile_explanations): Convert to a "struct explanation" table.
675 (vcomplaint): Update.
677 2003-07-15 Michal Ludvig <mludvig@suse.cz>
679 * x86-64-linux-nat.c (regmap): Removed.
680 (supply_gregset, fill_gregset): Call
681 x86_64_linux_(fill,supply)_gregset functions.
682 * x86-64-linux-tdep.c (USER_*): New defines.
683 (user_to_gdb_regmap, x86_64_core_fns): New structure.
684 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
686 (fetch_core_registers): Ditto.
687 (_initialize_x86_64_linux_tdep): Call add_core_fns().
688 * x86-64-linux-tdep.h: New file.
689 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
691 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
693 2003-07-13 Mark Kettenis <kettenis@gnu.org>
695 * x86-64-tdep.c (x86_64_store_return_value): Use
696 regcache_cooked_write_part instead of regcache_cooked_write.
698 * configure.host: Add x86_64-*-freebsd*.
699 * configure.tgt: Add x86_64-*-freebsd*.
700 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
701 * amd64fbsd-nat.c: New file.
702 * amd64fbsd-tdep.c: New file.
703 * config/i386/nm-fbsd64.h: New file.
704 * config/i386/fbsd64.mh: New file.
705 * config/i386/fbsd64.mt: New file.
707 2003-07-11 Mark Kettenis <kettenis@gnu.org>
709 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
710 `sc_regs_offset' and `sc_fpregs_offset'.
711 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
712 SIGFRAME_FPREGSAVE_OFF): Remove defines.
713 (alpha_sigtramp_register_address): Rewrite to use new members of
714 `struct gdbarch_tdep'.
715 (alpha_gdbarch_init): Initialize new members of struct
717 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
718 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
719 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
720 (alphafbsd_pc_in_sigtramp): Implement.
721 (alphafbsd_sigtramp_offset): New function.
722 (alphafbsd_sigcontext_addr): New function.
723 (alphafbsd_init_abi): Initialize signal trampoline related members
724 of `struct gdbarch_tdep'.
725 (_initialize_alphafbsd_tdep): Add prototype.
727 2003-07-11 Theodore A. Roth <troth@openavr.org>
729 * Makefile.in (install-only): Quote sed expression when generating
732 2003-07-11 Richard Henderson <rth@redhat.com>
734 * Makefile.in (dwarf2-frame.o): Add complaints_h.
735 * dwarf2-frame.c: Include complaints.h.
736 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
737 variable initialization; return NULL on error.
738 (decode_frame_entry): New.
740 2003-07-11 Andrew Cagney <cagney@redhat.com>
742 * frame.h (frame_address_in_block): Delete declaration.
743 * blockframe.c (frame_address_in_block): Delete function.
744 (get_frame_block): Use get_frame_address_in_block.
745 (block_innermost_frame): Ditto.
746 * stack.c (print_frame, backtrace_command_1): Ditto.
748 * frame.h (get_frame_address_in_block): Declare.
749 (frame_unwind_address_in_block): Declare.
750 * frame.c (frame_unwind_address_in_block): New function.
751 (get_frame_address_in_block): New function.
753 2003-07-10 Andrew Cagney <cagney@redhat.com>
755 * gdbarch.sh: Simplify predicate methods. Remove need to provide
756 pre-default. Note: re-generate has no effect.
758 2003-07-10 Andrew Cagney <cagney@redhat.com>
760 * gdbarch.sh: When a variable, but not a function, compare against
761 0. Fix problem in previous patch.
762 * gdbarch.c: Re-generate.
764 2003-07-10 Andrew Cagney <cagney@redhat.com>
766 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
767 functions against NULL, not 0.
768 * gdbarch.c: Re-generate.
770 2003-07-10 Fred Fish <fnf@ninemoons.com>
772 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
773 null string instead of a null pointer.
774 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
776 2003-07-09 Michael Snyder <msnyder@redhat.com>
778 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
780 2003-07-09 Mark Kettenis <kettenis@gnu.org>
782 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
783 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
784 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
785 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
786 * x86-64-tdep.c: ... from here.
788 2003-07-09 Andreas Schwab <schwab@suse.de>
790 * m68k-tdep.h (enum struct_return): Define.
791 (struct gdbarch_tdep): Add struct_return.
792 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
793 bytes are padded to the right, not to the left. Pass struct value
794 address in register %a1, not on stack.
795 (m68k_use_struct_convention): New function.
796 (m68k_gdbarch_init): Set use_struct_convention. Initialize
797 struct_return in tdep to pcc_struct_return.
798 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
801 2003-07-09 Joel Brobecker <brobecker@gnat.com>
803 * somread.c (som_symfile_offsets): Fix compilation error.
805 2003-07-09 Andrew Cagney <cagney@redhat.com>
807 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
808 Add comments about the checks.
810 2003-07-08 Andrew Cagney <cagney@redhat.com>
812 * Makefile.in: Make dependency section headers consistent.
813 (config_h): Move to $BUILD headers section.
814 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
815 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
816 (ada-exp.tab.c): Move to YACC/LEX section.
817 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
818 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
820 2003-07-08 Kris Warkentin <kewarken@qnx.com>
822 * nto-procfs.c: Cleaned up a bunch of ARI hits.
823 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
824 of strerror with safe_strerror, use ISO C function definitions,
825 and replace instances of sprintf with snprintf.
827 2003-07-07 Andrew Cagney <cagney@redhat.com>
829 * frame.c (get_prev_frame): Enable check for identical frames.
830 Update comments. Update error messages.
832 2003-07-07 Joel Brobecker <brobecker@gnat.com>
834 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
836 2003-07-07 Joel Brobecker <brobecker@gnat.com>
838 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
839 sort_symtab_syms, no longer necessary.
841 2003-07-07 Joel Brobecker <brobecker@gnat.com>
843 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
845 2003-07-07 Joel Brobecker <brobecker@gnat.com>
847 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
848 (mips_register_byte): Likewise.
850 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
852 * Makefile.in (sparc_tdep_h): New.
853 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
854 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
855 * sparc-linux-nat.c: Include "sparc-tdep.h".
856 * sparc-nat.c: Likewise.
857 * sparc-tdep.c: Likewise.
858 * sparc64nbsd-nat.c: Likewise.
859 * sparcnbsd-nat.c: Likewise.
860 * sparcnbsd-tdep.c: Likewise.
861 * sparc-tdep.h: New file.
862 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
863 and sparc_npc_regnum.
865 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
867 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
868 (mips_linux_cannot_store_register): List supported instead of
869 unsupported registers.
871 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
873 * disasm.c (dump_insns): Separate instructions from addresses.
875 2003-07-07 Andreas Schwab <schwab@suse.de>
877 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
879 * m68k-tdep.c (NUM_FREGS): Delete.
880 (SIG_PC_FP_OFFSET): Delete.
881 (TARGET_M68K): Delete.
882 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
883 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
884 P_MOVEL_SP, P_MOVEML_SP): Define.
885 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
887 (m68k_register_raw_size): Delete.
888 (m68k_register_virtual_size): Delete.
889 (m68k_register_type): Renamed from m68k_register_virtual_type and
890 add gdbarch argument.
891 (m68k_store_struct_return): Delete.
892 (m68k_deprecated_extract_return_value): Delete.
893 (m68k_deprecated_extract_struct_value_address): Delete.
894 (m68k_frame_chain): Delete.
895 (m68k_frame_saved_pc): Delete.
896 (m68k_fix_call_dummy): Delete.
897 (m68k_push_dummy_frame): Delete.
898 (m68k_pop_frame): Delete.
899 (m68k_extract_return_value): New function.
900 (m68k_store_return_value): Rewrite using regcache.
901 (m68k_extract_struct_value_address): Rewrite using regcache.
902 (m68k_push_dummy_call): New function.
903 (struct m68k_frame_cache): Define.
904 (m68k_alloc_frame_cache): New function.
905 (m68k_analyze_frame_setup): New function.
906 (m68k_analyze_register_saves): New function.
907 (m68k_analyze_prologue): New function.
908 (m68k_skip_prologue): Rewrite using above functions.
909 (m68k_unwind_pc): New function.
910 (m68k_frame_cache): New function.
911 (m68k_frame_this_id): New function.
912 (m68k_frame_prev_register): New function.
913 (m68k_frame_unwind): New variable.
914 (m68k_frame_p): New function.
915 (m68k_sigtramp_frame_cache): New function.
916 (m68k_sigtramp_frame_this_id): New function.
917 (m68k_sigtramp_frame_prev_register): New function.
918 (m68k_sigtramp_frame_unwind): New variable.
919 (m68k_sigtramp_frame_p): New function.
920 (m68k_frame_base_address): New function.
921 (m68k_frame_base): New function.
922 (m68k_unwind_dummy_id): New function.
923 (fill_gregset): Use regcache_collect.
924 (fill_fpregset): Likewise.
925 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
927 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
928 deprecated_init_frame_pc, deprecated_store_struct_return,
929 deprecated_extract_return_value, deprecated_store_return_value,
930 deprecated_frame_chain, deprecated_frame_saved_pc,
931 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
932 deprecated_register_virtual_size,
933 deprecated_max_register_raw_size,
934 deprecated_max_register_virtual_size,
935 deprecated_register_virtual_type, deprecated_register_size,
936 deprecated_register_byte, deprecated_register_bytes,
937 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
938 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
939 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
940 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
941 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
942 deprecated_push_dummy_frame, deprecated_pop_frame,
943 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
944 only if SYSCALL_TRAP is defined. Set extract_return_value,
945 store_return_value, extract_struct_value_address, register_type,
946 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
948 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
949 M68K_MAX_REGISTER_SIZE): Define.
950 (struct m68k_sigtramp_info): Define.
951 (struct gdbarch_tdep): Add get_sigtramp_info.
952 * m68klinux-nat.c (fetch_register): Use register_size instead of
953 REGISTER_RAW_SIZE. Don't put assignment in if.
954 (store_register): Likewise.
955 (fetch_inferior_registers): Likewise.
956 (store_inferior_registers): Likewise.
957 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
958 (m68k_linux_frame_saved_pc): Delete.
959 (m68k_linux_sigcontext_reg_offset,
960 m68k_linux_ucontext_reg_offset): Define.
961 (m68k_linux_get_sigtramp_info): New function.
962 (m68k_linux_extract_return_value): Rewrite using regcache.
963 (m68k_linux_store_return_value): Likewise.
964 (m68k_linux_extract_struct_value_address): Likewise.
965 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
966 Don't set deprecated_frame_saved_pc,
967 deprecated_extract_return_value, deprecated_store_return_value,
968 deprecated_extract_struct_value_address. Set
969 extract_return_value, store_return_value,
970 extract_struct_value_address.
972 2003-07-07 Andrew Cagney <cagney@redhat.com>
974 * expprint.c: Include "user-regs.h" instead of "frame.h".
975 (print_subexp): Use user_reg_map_regnum_to_name, instead of
976 frame_map_regnum_to_name.
977 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
978 (frame_map_name_to_regnum): Simplify, call
979 user_reg_map_name_to_regnum.
980 (frame_map_regnum_to_name): Simplify, call
981 user_reg_map_regnum_to_name.
982 (frame_register_unwind): Update.
983 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
984 (_initialize_frame_reg): Call user_reg_add_builtin.
985 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
986 (value_of_register): Use value_of_user_reg.
987 * eval.c (evaluate_subexp_standard): Update.
988 * parse.c (write_dollar_variable): Update.
989 * d10v-tdep.c (d10v_print_registers_info): Update.
990 * infcmd.c (registers_info): Update.
991 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
992 (builtin_regs_h): Delete macro.
993 (user_regs_h): Define.
994 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
995 (builtin-regs.o): Delete target.
996 (user-regs.o): Specify dependencies.
997 (expprint.o): Update dependencies.
998 (findvar.o): Update dependencies.
999 (frame.o): Update dependencies.
1000 (std-regs.o): Update dependencies.
1002 2003-07-06 Christopher Faylor <cgf@redhat.com>
1004 * win32-nat.c (solib_symbols_add): Use one variable for all section
1005 address stuff. Pass variable rather than address of variable to
1006 safe_symbol_file_add.
1008 2003-07-06 Andreas Schwab <schwab@suse.de>
1010 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1012 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1014 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1016 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1018 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1020 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1022 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1023 * config/i386/nto.mh: New file.
1024 * config/i386/nm-nto.h: New file.
1025 * configure.host: Add i[3456]86-*-nto*.
1027 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1029 * remote-vx.c (vx_add_symbols): Fix compilation error.
1031 2003-07-03 Andrew Cagney <cagney@redhat.com>
1033 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1034 * gdbarch.h, gdbarch.c: Re-generate.
1035 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1036 (legacy_register_name): Declare.
1037 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1038 (REGISTER_NAME): Define.
1039 * sparc-tdep.c (legacy_register_name): New function.
1040 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1041 (REGISTER_NAME): Define.
1042 (hppa64_register_name): Declare.
1043 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1044 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1045 (hppa64_register_name): New function.
1046 (hppa_register_name): New function.
1047 * arch-utils.c (legacy_register_name): Delete.
1048 * arch-utils.h (legacy_register_name): Delete.
1050 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1052 * cli/cli-interp.c (cli_interpreter_resume): Update the
1053 cli_uiout's stream to gdb_stdout.
1055 2003-07-03 Andrew Cagney <cagney@redhat.com>
1057 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1059 * gdbarch.h, gdbarch.c: Re-generate.
1060 * regcache.c (init_regcache_descr): Use legacy code when either
1061 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1063 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1065 * NEWS: Move "set logging" entry into GDB 6.0 section.
1067 2003-07-02 Jim Blandy <jimb@redhat.com>
1069 * s390-tdep.c (struct frame_extra_info): new member:
1070 'stack_bought_valid'.
1071 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1072 initialize fextra_info->stack_bought.
1073 (s390_frameless_function_invocation): Don't trust the value of
1074 fextra_info_ptr->stack_bought unless
1075 fextra_info->stack_bought_valid is set.
1077 New S390 prologue analyzer.
1078 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1079 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1080 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1081 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1082 compute_x_addr, s390_on_stack, s390_store,
1083 s390_get_signal_frame_info): New functions.
1084 (S390_NUM_SPILL_SLOTS): New macro.
1085 (s390_get_frame_info): Rewritten.
1086 (is_arg_reg): Deleted.
1088 Break out the decoding of S/390 instructions into separate
1089 functions, to make it more legible, and easier to check
1091 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1092 is_rx, is_rxe): New functions.
1093 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1094 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1095 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1096 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1097 enums for opcode values. (Is this an improvement?)
1099 2003-07-02 Andrew Cagney <cagney@redhat.com>
1101 * i386-tdep.c: Revert change committed as part of trad-frame code
1104 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1106 * breakpoint.c (insert_catchpoint): Make static.
1108 2003-07-02 Andreas Schwab <schwab@suse.de>
1110 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1111 former ia64_push_arguments and ia64_push_return_address, and use
1112 regcache functions instead of read/write_register.
1113 (ia64_gdbarch_init): Set push_dummy_call instead of
1114 deprecated_push_arguments and deprecated_push_return_address.
1116 2003-07-01 Andreas Jaeger <aj@suse.de>
1118 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1120 Set %rax only to number of SSE registers used.
1122 2003-07-01 Andrew Cagney <cagney@redhat.com>
1124 * trad-frame.h: Update comments, a -1 .addr is reserved.
1125 (trad_frame_value_p, trad_frame_addr_p): Declare.
1126 (trad_frame_reg_p): Declare.
1127 (trad_frame_set_value): Rename trad_frame_register_value.
1128 (trad_frame_set_unknown): Declare.
1129 * trad-frame.c (trad_frame_realreg_p): New function.
1130 (trad_frame_addr_p, trad_frame_value_p): New function.
1131 (trad_frame_set_unknown): New function.
1132 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1133 (trad_frame_prev_register): Use trad_frame_realreg_p,
1134 trad_frame_addr_p and trad_frame_value_p.
1135 (trad_frame_set_value): Rename trad_frame_register_value.
1136 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1137 and trad_frame_set_value.
1139 2003-06-30 Jim Blandy <jimb@redhat.com>
1141 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1142 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1143 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1144 for 16 registers, and then 32 more bytes.
1145 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1147 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1148 Move up in the file, since it's now used by is_simple_arg.
1149 (is_simple_arg): Don't assume registers are four bytes long.
1150 Exclude all double arguments. Extended floats are not simple
1152 (is_power_of_two): New function.
1153 (pass_by_copy_ref): Call is_power_of_two, and check that the
1154 length fits in a register, rather than listing all the acceptable
1155 sizes. Extended floats are not passed by reference.
1156 (s390_push_arguments): Don't assume registers are four bytes long.
1157 Reserve an argument register to point to the buffer for structures
1158 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1159 S390_STACK_FRAME_OVERHEAD.
1161 2003-06-30 Andreas Schwab <schwab@suse.de>
1163 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1164 format error message.
1166 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1168 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1170 2003-06-30 David Carlton <carlton@kealia.com>
1172 Band-aid for PR c++/1245.
1173 * Makefile.in (cp-support.o): Depend on complaints_h.
1174 * cp-support.c: Include complaints.h. Add declaration for
1175 find_last_component.
1176 (cp_find_first_component): Separate code into
1177 cp_find_first_component_aux.
1178 (cp_find_first_component_aux): Call demangled_name_complaint.
1179 (demangled_name_complaint): New.
1181 2003-06-30 Andrew Cagney <cagney@redhat.com>
1183 * remote.c (remote_write_bytes): Explicitly compute and then use
1184 the payload size. Update comments to reflect. Fixes problem of
1185 GDB not sending small packets as found by Fred Fish.
1187 2003-06-30 Andrew Cagney <cagney@redhat.com>
1189 * remote.c (remote_async_wait): Fix -Wformat problem.
1191 2003-06-29 Andrew Cagney <cagney@redhat.com>
1193 * remote.c (remote_wait): Call error, and not warning, when the
1195 (remote_async_wait): Ditto.
1197 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1199 * sparc-tdep.c (sparc_y_regnum): Make external again.
1201 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1203 * cli/cli-logging.c (pop_output_files): Add void to function
1206 2003-06-29 Andrew Cagney <cagney@redhat.com>
1208 * frame.c (frame_register_unwind): Use unsigned char when dumping
1209 the buffer contents.
1211 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1213 * cli/cli-logging.c: New file.
1214 * cli-out.c (struct ui_out_data): Add original_stream.
1215 (cli_redirect): New function.
1216 (cli_ui_out_impl): Add cli_redirect.
1217 (cli_out_new): Initialize original_stream.
1218 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1219 (uo_redirect, ui_out_redirect): New.
1220 * ui-out.h (struct ui_out_impl): Add redirect member.
1221 (redirect_ftype): New.
1222 (ui_out_redirect): Add prototype.
1223 * Makefile.in: Add rules for cli-logging.c.
1224 * NEWS: Mention "set logging".
1226 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1228 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1230 2003-06-27 Andrew Cagney <cagney@redhat.com>
1232 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1233 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1234 * avr-tdep.c (avr_call_dummy_address): Delete function.
1235 (avr_gdbarch_init): Do not set call_dummy_address.
1237 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1239 * symfile.c (syms_from_objfile): Move variables to inner block.
1240 Move the checks for the non-mainline case a bit earlier to avoid
1241 doing some useless computations.
1243 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1245 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1247 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
1249 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1252 2003-06-26 Michael Chastain <mec@shout.net>
1254 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1255 gdb/testsuite/gdb.c++/pr-1210.exp.
1257 2003-06-26 Andrew Cagney <cagney@redhat.com>
1259 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1260 altivec_expression.h and altivec_registers.h.
1262 2003-06-26 Andrew Cagney <cagney@redhat.com>
1264 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1265 info->mach when MIPS16. Patch suggested by Fred Fish.
1267 2003-06-26 Andrew Cagney <cagney@redhat.com>
1269 * utils.c (internal_vproblem): Print the problem to a reason
1270 buffer and then pass to query. Make the msg variable more local.
1272 2003-06-26 Andrew Cagney <cagney@redhat.com>
1274 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1275 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1276 * gdbarch.h, gdbarch.c: Re-generate.
1277 * frame-base.c (default_frame_args_address): Update. Use
1278 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1280 (default_frame_locals_address): Ditto for
1281 DEPRECATED_FRAME_LOCALS_ADDRESS.
1282 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1283 (vax_frame_num_args): Update.
1284 (vax_gdbarch_init): Update.
1285 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1286 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1287 * mcore-tdep.c (mcore_gdbarch_init): Update.
1288 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1289 * ia64-tdep.c (ia64_gdbarch_init): Update.
1290 * symtab.h (address_class): Update comments.
1291 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1292 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1293 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1294 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1295 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1296 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1297 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1298 * alpha-mdebug-tdep.c: Update.
1299 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1301 2003-06-26 Andreas Jaeger <aj@suse.de>
1303 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1304 of SSE registers so that varargs functions work. Rework handling
1305 of passing arguments on the stack.
1306 (x86_64_store_return_value): Return double and float values in SSE
1309 2003-06-24 Michael Chastain <mec@shout.net>
1311 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1312 the "constructor breakpoints ignored" bug.
1314 2003-06-25 David Carlton <carlton@kealia.com>
1316 * MAINTAINERS: Update e-mail address.
1318 2003-06-24 Jim Blandy <jimb@redhat.com>
1320 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1322 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1324 (ppc_linux_init_abi): Register it as the
1325 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1327 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1328 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1331 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1332 (ppc64_standard_linkage_target): Use it.
1334 2003-06-23 Andrew Cagney <cagney@redhat.com>
1336 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1337 for 0 "int0" and 4 "int32" sized registers.
1338 * gdbtypes.c (builtin_type_int0): Define.
1339 (build_gdbtypes): Initialize builtin_type_int0.
1340 * gdbtypes.h (builtin_type_int0): Declare.
1342 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1344 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1345 as characters are unsigned.
1347 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1350 * dwarfread.c (struct_type): Skip static fields without crashing.
1352 2003-06-22 Andrew Cagney <cagney@redhat.com>
1354 GDB 6.0 branch created.
1356 * PROBLEMS: Update. Empty.
1359 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1361 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1362 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1364 2003-06-22 Andrew Cagney <cagney@redhat.com>
1366 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1367 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1370 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1372 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1375 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1377 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1378 argument of val_print.
1379 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1380 to the address argument of baseclass_offset or target_read_memory.
1381 Do add it to the argument of cp_print_value_fields.
1383 2003-06-21 Andrew Cagney <cagney@redhat.com>
1385 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1386 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1387 instead of 0..NUM_REGS.
1388 (mips_register_reggroup_p): New function.
1389 (mips_pseudo_register_write): New function.
1390 (mips_pseudo_register_read): New function.
1391 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1392 based on the register's type.
1393 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1395 (mips_get_saved_register): Simplify. Assert that REGNO is a
1397 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1398 (mips_register_type): Replace mips_register_virtual_type. Map
1399 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1401 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
1402 that the register is cooked / virtual.
1403 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1404 Only get the extra info when needed.
1405 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1406 (mips32_heuristic_proc_desc): Fetch the cooked register.
1407 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1408 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1409 (mips_print_register): Use gdbarch_register_type, instead of
1410 REGISTER_VIRTUAL_TYPE.
1411 (print_gp_register_row): Use gdbarch_register_type, instead of
1412 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
1413 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1414 Print the pseudo / cooked registers.
1415 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1416 Print the pseudo / cooked registers.
1417 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
1418 REG_NUM is pseudo / cooked.
1419 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1420 (mips_n32n64_xfer_return_value): Ditto.
1421 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1422 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1423 (mips_register_sim_regno): New function.
1424 (mips_gdbarch_init): Set deprecated_register_byte,
1425 register_group_p, pseudo_register_write, pseudo_register_read,
1426 register_sim_regno, and num_pseudo_regs. Set register_type,
1427 instead of register_virtual_type.
1428 * Makefile.in (mips-tdep.o): Update dependencies.
1429 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1430 REGISTER_VIRTUAL_TYPE.
1431 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1432 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1433 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1434 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1435 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1437 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1439 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1440 * cli/cli-cmds.c: Include "gdb_vfork.h".
1441 (shell_escape): Use vfork.
1443 2003-06-21 Andrew Cagney <cagney@redhat.com>
1445 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1446 32 bit floating-point register saves.
1448 * frame.h (deprecated_unwind_get_saved_register): Delete.
1449 * frame.c (deprecated_unwind_get_saved_register): Delete function.
1450 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1451 and deprecated_get_next_frame_hack instead of
1452 deprecated_unwind_get_saved_register.
1454 * mips-tdep.c (mips_dump_tdep): Do not print
1455 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1457 * frame.c (get_frame_register): New function.
1458 (frame_unwind_register_signed): New function.
1459 (get_frame_register_signed): New function.
1460 (frame_unwind_register_unsigned): New function.
1461 (get_frame_register_unsigned): New function.
1462 * frame.h: Add comments on naming schema.
1463 (get_frame_register, frame_unwind_register_signed): Declare.
1464 (get_frame_register_signed, get_frame_register_signed): Declare.
1465 (frame_unwind_register_unsigned): Declare.
1466 (get_frame_register_unsigned): Declare.
1468 2003-06-20 Theodore A. Roth <troth@openavr.org>
1470 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
1472 2003-06-20 Theodore A. Roth <troth@openavr.org>
1474 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
1475 (avr_read_sp): Ditto.
1477 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
1479 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
1480 * config/arm/nm-linux.h: Likewise.
1481 * config/arm/tm-linux.h: Likewise.
1482 * config/ia64/nm-linux.h: Likewise.
1483 * config/ia64/tm-ia64.h: Likewise.
1484 * config/s390/tm-linux.h: Likewise.
1485 * config/s390/tm-s390.h: Likewise.
1486 * s390-nat.c: Likewise.
1487 * s390-tdep.c: Likewise.
1489 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
1490 * config/ia64/linux.mt: Likewise.
1491 * config/m68k/linux.mh: Likewise.
1492 * config/mips/linux.mt: Likewise.
1493 * config/powerpc/linux.mh: Likewise.
1494 * config/sh/linux.mt: Likewise.
1496 2003-06-19 Kris Warkentin <kewarken@qnx.com>
1498 * solib.c (solib_open): Change tests for whether to search
1499 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
1502 2003-06-19 Theodore A. Roth <troth@openavr.org>
1504 * avr-tdep.c (avr_frame_address): Delete function.
1505 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
1506 set_gdbarch_frame_args_address.
1508 2003-06-19 Andrew Cagney <cagney@redhat.com>
1510 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
1511 (REGISTER_CONVERT_FROM_TYPE): Delete.
1512 (mips_register_convert_to_type): Delete declaration.
1513 (mips_register_convert_from_type): Delete declaration.
1514 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
1517 2003-06-19 Michael Snyder <msnyder@redhat.com>
1519 * linux-nat.h: New file.
1520 * linux-nat.c: Include linux-nat.h.
1521 * lin-lwp.c: Include linux-nat.h.
1522 Move struct lwp_info def to linux-nat.h.
1523 * linux-proc.c: Include linux-nat.h.
1524 (linux_make_note_section): Iterate over lwps instead of threads.
1525 (linux_do_thread_registers): Use lwp instead of merged pid.
1526 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
1527 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
1528 Add dependency on linux_nat_h.
1530 2003-06-19 Theodore A. Roth <troth@openavr.org>
1532 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
1534 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1536 * varobj.c (get_type, get_target_type): Use check_typedef.
1538 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1540 * breakpoint.c (insert_catchpoint): Call internal_error.
1542 2003-06-19 Theodore A. Roth <troth@openavr.org>
1544 * avr-tdep.c (avr_push_dummy_code): Delete function.
1545 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
1547 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1549 * arch-utils.c (default_prepare_to_proceed): Remove.
1550 (generic_prepare_to_proceed): Remove.
1551 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
1552 (generic_prepare_to_proceed): Remove prototype.
1553 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
1554 * gdbarch.c: Regenerate.
1555 * gdbarch.h: Regenerate.
1556 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
1557 * hppah-nat.c (hppa_switched_threads): Remove.
1558 * infrun.c (prepare_to_proceed): New static function, copied from
1559 generic_prepare_to_proceed. Remove select_it argument.
1560 (proceed): Call prepare_to_proceed.
1561 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
1563 (ptrace_wait): Don't set the removed variables.
1564 (hppa_switched_threads): Remove.
1565 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
1566 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
1567 (lin_lwp_prepare_to_proceed): Remove prototype.
1568 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
1569 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
1571 2003-06-18 Theodore A. Roth <troth@openavr.org>
1573 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
1575 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
1576 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
1577 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
1578 (AVR_PROLOGUE_*): Enumerate prologue types.
1579 (struct frame_extra_info): Remove.
1580 (struct avr_unwind_cache): Define.
1581 (avr_write_sp): Delete function.
1582 (avr_read_fp): Ditto.
1583 (avr_init_extra_frame_info): Ditto.
1584 (avr_pop_frame): Ditto.
1585 (avr_frame_saved_pc): Ditto.
1586 (avr_saved_pc_after_call): Ditto.
1587 (avr_push_return_address): Ditto.
1588 (avr_frame_chain): Ditto.
1589 (avr_store_struct_return): Ditto.
1590 (avr_push_arguments): Ditto.
1591 (avr_scan_prologue): Update comments. Changed to set up the info for
1592 cache unwinding. Now returns end of prologue PC.
1593 (avr_skip_prologue): Better handling of functions lacking a prologue
1594 by using avr_scan_prologue.
1595 (avr_scan_arg_moves): New function.
1596 (avr_saved_regs_unwinder): Ditto.
1597 (avr_frame_unwind_cache): Ditto.
1598 (avr_unwind_pc): Ditto.
1599 (avr_frame_this_id): Ditto.
1600 (avr_frame_prev_register): Ditto.
1601 (avr_frame_p): Ditto.
1602 (avr_frame_base_address ): Ditto.
1603 (avr_unwind_dummy_id): Ditto.
1604 (avr_push_dummy_code): Ditto.
1605 (push_stack_item): Ditto.
1606 (pop_stack_item): Ditto.
1607 (avr_push_dummy_call): Ditto.
1608 (struct stack_item): Define.
1609 (avr_frame_unwind): Declare structure.
1610 (avr_frame_base): Ditto.
1611 (avr_gdbarch_init): Remove calls to
1612 set_gdbarch_deprecated_init_frame_pc,
1613 set_gdbarch_deprecated_target_read_fp,
1614 set_gdbarch_deprecated_dummy_write_sp,
1615 set_gdbarch_deprecated_fp_regnum,
1616 set_gdbarch_deprecated_push_arguments,
1617 set_gdbarch_deprecated_push_return_address,
1618 set_gdbarch_deprecated_pop_frame,
1619 set_gdbarch_deprecated_store_struct_return,
1620 set_gdbarch_deprecated_frame_init_saved_regs,
1621 set_gdbarch_deprecated_init_extra_frame_info,
1622 set_gdbarch_deprecated_frame_chain,
1623 set_gdbarch_deprecated_frame_saved_pc,
1624 set_gdbarch_deprecated_saved_pc_after_call.
1625 Add calls to set_gdbarch_push_dummy_call,
1626 set_gdbarch_push_dummy_code,
1627 frame_unwind_append_predicate,
1628 frame_base_set_default,
1629 set_gdbarch_unwind_dummy_id,
1630 set_gdbarch_unwind_pc.
1633 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
1635 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
1636 registers for H8/300S.
1637 (h8300_print_registers_info): Ditto.
1638 (h8300_gdbarch_init): Accommodate register count for H8/300S.
1640 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
1642 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
1643 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1644 (lin_lwp_wait): Likewise. Update comments.
1645 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
1646 (pull_pid_from_list, linux_record_stopped_pid): New.
1648 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
1650 * ada-lang.c (scan_discrim_bound): Name first argument.
1651 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
1652 declared by ALL_BLOCK_SYMBOLS.
1654 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
1656 * ada-tasks.c (find_function_in_inferior): Don't declare it.
1657 ("regcache.h"): Include it.
1658 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
1660 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1662 * NEWS: Mention gdbserver detach change and "disconnect" command.
1663 * infcmd.c (disconnect_command): New function.
1664 (_initialize_infcmd): Add ``disconnect'' command.
1665 * remote.c (remote_async_detach): Delete.
1666 (remote_detach): Merge remote_async_detach.
1667 (remote_disconnect): New.
1668 (init_remote_ops): Set to_disconnect.
1669 (init_remote_cisco_ops): Likewise.
1670 (init_remote_async_ops): Likewise. Use remote_detach.
1671 * target.c (cleanup_target): Default to_disconnect.
1672 (update_current_target): Inherit to_disconnect.
1673 (target_disconnect, debug_to_disconnect): New functions.
1674 (setup_target_debug): Set to_disconnect.
1675 * target.h (struct target_ops): Add to_disconnect.
1676 (target_disconnect): Add prototype.
1678 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1680 * breakpoint.c (insert_catchpoint): New function.
1681 (insert_breakpoints): Use catch_exceptions to call
1682 insert_catchpoint. Disable catchpoints if they fail to insert.
1684 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1686 * symfile.c (reread_symbols): Clear sym_private.
1688 2003-06-17 Andrew Cagney <cagney@redhat.com>
1690 * trad-frame.h (struct frame_info): Add opaque declaration.
1691 * remote-fileio.h (struct cmd_list_element): Add opaque
1693 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
1696 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1698 * remote.c (remote_prepare_to_store): Replace call to
1699 deprecated_read_register_bytes with multiple regcache_raw_read
1702 2003-06-17 Kris Warkentin <kewarken@qnx.com>
1704 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
1705 (nto_find_and_open_solib): Likewise.
1706 (nto_init_solib_absolute_prefix): Likewise.
1707 (_initialize_nto_tdep): Fix indentation.
1709 2003-06-17 Kris Warkentin <kewarken@qnx.com>
1711 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
1713 2003-06-17 Kris Warkentin <kewarken@qnx.com>
1715 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
1717 2003-06-17 Jim Blandy <jimb@redhat.com>
1719 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
1721 2003-06-16 Theodore A. Roth <troth@openavr.org>
1723 * avr-tdep.c (avr_extract_return_value): New function.
1724 (avr_gdbarch_init): Set extract_return_value method.
1726 2003-06-16 Andrew Cagney <cagney@redhat.com>
1728 * frame.h (deprecated_get_next_frame_hack): Declare.
1729 * frame.c (legacy_saved_regs_prev_register): Only require
1730 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
1731 there are always saved regs.
1732 (deprecated_generic_get_saved_register): Do not require
1733 DEPRECATED_FRAME_INIT_SAVED_REGS.
1734 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
1735 use frame ID unwind instead.
1736 (deprecated_get_next_frame_hack): New function.
1738 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
1740 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
1741 (h8300_push_dummy_call): ...this function. Some minor optimization.
1742 (h8300_push_return_address): Remove.
1743 (h8300_gdbarch_init): Remove calls to
1744 set_gdbarch_deprecated_dummy_write_sp,
1745 set_gdbarch_deprecated_push_arguments and
1746 set_gdbarch_deprecated_push_return_address.
1747 Add call to set_gdbarch_push_dummy_call.
1749 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
1751 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
1752 (E_PSEUDO_EXR_REGNUM): Ditto.
1753 (h8300_is_argument_spill): Check for instructions moving argument
1754 registers into safe registers.
1755 (h8300_skip_prologue): Check for stm instruction to push registers
1756 used for register variables onto stack.
1757 (gdb_print_insn_h8300): Remove.
1758 (h8300_examine_prologue): Add a comment.
1759 (h8300_register_name): Take pseudo registers into account.
1760 (h8300s_register_name): Ditto.
1761 (h8300sx_register_name): Ditto.
1762 (h8300_print_register): Ditto.
1763 (h8300_print_registers_info): Define "nice" printing order.
1764 (h8300_saved_pc_after_call): Take pseudo registers into account.
1765 (h8300_register_type): Ditto. Return type used for remote connection
1766 when requesting real CCR or EXR register, return actual type when
1767 requesting pseudo CCR or EXR.
1768 (h8300_pseudo_register_read): New function.
1769 (h8300_pseudo_register_write): Ditto.
1770 (h8300_dbg_reg_to_regnum): Ditto.
1771 (h8300s_dbg_reg_to_regnum): Ditto.
1772 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
1773 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
1774 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
1775 set_gdbarch_print_insn architecture dependent.
1776 Call set_gdbarch_pseudo_register_read and
1777 set_gdbarch_pseudo_register_write.
1778 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
1780 2003-06-16 Andrew Cagney <cagney@redhat.com>
1782 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
1783 * gdbarch.h, gdbarch.c: Re-generate.
1784 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1785 * s390-tdep.c (s390_gdbarch_init): Update.
1786 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1787 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1788 * mips-tdep.c (mips_gdbarch_init): Update.
1789 * mcore-tdep.c (mcore_gdbarch_init): Update.
1790 * cris-tdep.c (cris_gdbarch_init): Update.
1791 * infcall.c (call_function_by_hand): Update.
1792 * ia64-tdep.c (ia64_push_arguments): Update comment.
1793 * frame.c (legacy_get_prev_frame): Do not assume
1794 SAVE_DUMMY_FRAME_TOS_P.
1795 * dummy-frame.c (find_dummy_frame): Update comment.
1797 2003-06-16 Andrew Cagney <cagney@redhat.com>
1799 * regcache.c (do_cooked_read): Do not use register_valid_p.
1801 2003-06-15 Theodore A. Roth <troth@openavr.org>
1803 * avr-tdep.c (avr_register_type): Remove a blank line.
1804 (avr_scan_prologue): Correct some comments.
1806 2003-06-15 Theodore A. Roth <troth@openavr.org>
1808 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
1810 Properly scan prologues generated by gcc with the -mcall-prologues
1812 Add code to scan -mcall-prologues for mega devices.
1814 2003-06-15 Theodore A. Roth <troth@openavr.org>
1816 * avr-tdep.c (avr_register_byte): Delete function.
1817 (avr_register_raw_size): Delete function.
1818 (avr_register_virtual_size): Delete function.
1819 (avr_register_virtual_type): Delete function.
1820 (avr_register_type): New function.
1821 (avr_address_to_pointer): Remove unused code.
1822 (avr_read_fp): Need to read FP as two separate bytes due to change to
1823 avr_register_type() usage.
1824 (avr_gdbarch_init): Don't set deprecated_register_size.
1825 Don't set deprecated_register_bytes.
1826 Don't set deprecated_register_byte.
1827 Don't set deprecated_register_raw_size.
1828 Don't set deprecated_max_register_raw_size.
1829 Don't set deprecated_register_virtual_size.
1830 Don't set deprecated_max_register_virtual_size.
1831 Don't set deprecated_register_virtual_type.
1832 Set register_type method.
1834 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
1836 * Makefile.in (linux-nat.o): Add rule.
1837 * linux-nat.c: New file.
1838 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
1839 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
1840 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
1841 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
1842 * config/arm/linux.mh (NATDEPFILES): Likewise.
1843 * config/i386/linux.mh (NATDEPFILES): Likewise.
1844 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
1845 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1846 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1847 * config/mips/linux.mh (NATDEPFILES): Likewise.
1848 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
1849 * config/s390/s390.mh (NATDEPFILES): Likewise.
1850 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1852 2003-06-15 Mark Kettenis <kettenis@gnu.org>
1854 * i387-tdep.c: Reorder includes, fix some whitespace issues and
1855 replace out-of-date comment.
1857 2003-06-15 Andrew Cagney <cagney@redhat.com>
1859 * rdi-share/host.h (Fail): Change to a varargs function.
1860 * remote-rdi.c (Fail): Update.
1862 2003-06-15 Mark Kettenis <kettenis@gnu.org>
1864 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
1865 (i386_convert_register_p, i386_register_to_value,
1866 i386_register_from_value): Handle types longer than 8 bytes.
1868 2003-06-15 Mark Kettenis <kettenis@gnu.org>
1870 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
1871 Move floating-point code to new function in i387-tdep.c.
1872 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
1873 New functions containing code moved here from i386-tdep.c.
1874 * i387-tdep.h: Add opaque declaration for `struct type'.
1875 (i387_register_to_value, i387_value_to_register): New prototypes.
1876 * x86-64-tdep.c (x86_64_convert_register_p): New function.
1877 (x86_64_init_abi): Set convert_register_p, register_to_value and
1878 value_to_register here.
1880 2003-06-14 Andrew Cagney <cagney@redhat.com>
1882 * mips-tdep.c (mips_register_to_value): Make static.
1883 (mips_value_to_register): Make static.
1884 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
1885 * ia64-tdep.c (ia64_register_raw_size): Make static.
1886 (ia64_register_virtual_size): Make static.
1887 (ia64_register_byte): Make static.
1888 * i387-tdep.c: Include "i387-tdep.h".
1889 (print_387_control_word): Delete function.
1890 (print_387_status_word): Delete function.
1891 (print_387_status_bits): Delete function.
1892 (print_387_control_bits): Delete function.
1893 * Makefile.in (i387-tdep.o): Update dependencies.
1894 * rdi-share/host.h (Fail): Declare.
1895 * remote-rdi.c (Fail): Update to match declaration.
1897 2003-06-14 Andrew Cagney <cagney@redhat.com>
1899 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
1900 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
1901 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
1902 * config/djgpp/fnchange.lst: Delete "remote-array.c".
1903 * README: Delete reference to remote-array.
1904 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
1905 (remote-array.o): Delete target.
1906 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
1907 * remote-array.c: Delete file.
1909 2003-06-14 Andrew Cagney <cagney@redhat.com>
1910 Mark Kettenis <kettenis@gnu.org>
1912 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
1913 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
1914 parameter with "frame".
1915 * gdbarch.h, gdbarch.c: Re-generate.
1916 * frame.h (put_frame_register): Declare.
1917 * frame.c (put_frame_register): New function.
1918 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
1919 (legacy_register_to_value): Rewrite, use "frame" to get the
1921 (legacy_value_to_register): Rewrite, use "frame" to find the
1922 register's location before storing.
1923 * arch-utils.h (legacy_convert_register_p): Update.
1924 (legacy_register_to_value, legacy_value_to_register): Update.
1925 * findvar.c (value_from_register): Rewrite, eliminate use of
1926 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
1927 "frame" to REGISTER_TO_VALUE.
1928 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
1929 lval_reg_frame_relative + lval_register branch of the switch. Do
1930 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
1931 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1932 I386_EDI_REGNUM): New defines.
1933 (i386_next_regnum, i386_convert_register_p,
1934 i386_register_to_value, i386_value_to_register): New functions.
1935 (i386_register_convertible, i386_register_convert_to_virtual,
1936 i386_convert_to_raw): Remove functions.
1937 (i386_gdbarch_init): Set convert_register_p, register_to_value and
1938 value_to_register instead of register_convertible,
1939 register_convert_to_virtual and register_convert_to_raw.
1940 * mips-tdep.c (mips_convert_register_p): New function.
1941 (mips_value_to_register): Replace mips_register_convert_from_type.
1942 (mips_register_to_value): Replace mips_register_convert_to_type.
1943 (mips_gdbarch_init): Set conver_register_p, value_to_register and
1945 * alpha-tdep.c (alpha_convert_register_p): Update.
1946 (alpha_value_to_register): Update, store the register.
1947 (alpha_register_to_value): Update, fetch the register.
1949 2003-06-14 Theodore A. Roth <troth@openavr.org>
1951 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
1952 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
1953 Don't set deprecated_call_dummy_words.
1954 Remove commented out set_gdbarch_believe_pcc_promotion() call.
1955 Don't set remote_translate_xfer_address.
1956 (avr_io_reg_read_command): Remove commented out debug printf.
1959 2003-06-14 Theodore A. Roth <troth@openavr.org>
1961 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
1962 causes gdb to seg fault.
1964 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
1966 * sparc-nat.c (fetch_inferior_registers): Correct
1967 a reference to "registers".
1969 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
1971 * Makefile.in (exc_request_U_h): Define
1972 (exc_request_S_h): Likewise.
1973 (msg_reply_S_h): Likewise.
1974 (msg_U_h): Likewise.
1975 (notify_S_h): Likewise.
1976 (process_reply_S_h): Likewise.
1977 (gnu-nat.o): Depend on gdb_obstack_h
1978 * gnu-nat.c: Include "gdb_obstack.h".
1980 2003-06-13 Andrew Cagney <cagney@redhat.com>
1982 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
1983 * gdbarch.h, gdbarch.c: Re-generate.
1985 2003-06-13 Andrew Cagney <cagney@redhat.com>
1987 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
1988 when deprecated REGISTER macros can be deleted.
1989 * gdbarch.h, gdbarch.c: Re-generate.
1991 2003-06-13 Jim Blandy <jimb@redhat.com>
1993 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
1994 Linux entry point symbols for _dl_debug_state, too.
1996 2003-06-13 Andrew Cagney <cagney@redhat.com>
1998 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
1999 available, do not use the FP register, and always save the TOS.
2000 * dummy-frame.c (dummy_frame_this_id): Do not assert
2001 SAVE_DUMMY_FRAME_TOS.
2002 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2003 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2004 (i386_push_dummy_call): Add 8 to the returned SP.
2005 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2006 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2007 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2008 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2009 (x86_64_push_dummy_call): Return "sp + 16".
2010 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2011 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2012 save_dummy_frame_tos.
2014 2003-06-13 Jim Blandy <jimb@redhat.com>
2016 * frv-tdep.c (frv_use_struct_convention): Delete static
2017 declaration for function deleted in my change of 2003-06-12.
2019 2003-06-13 Theodore A. Roth <troth@openavr.org>
2021 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2022 (avr_pointer_to_address): Shift code addrs left 1 bit.
2023 (avr_convert_from_func_ptr_addr): Delete function since operation is
2024 better handled by avr_address_to_pointer and avr_pointer_to_address.
2025 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2027 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2029 From Kelley Cook <kelleycook@wideopenwest.com>:
2030 * configure.host: Accept i[34567]86 variants.
2031 * configure.tgt: Likewise.
2032 * nlm/configure.in: Likewise.
2033 * nlm/configure: Regenerated.
2035 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2037 * arm-tdep.c (solib-svr4.h): Dont' include it.
2038 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2039 * arm-linux-tdep.c: ... here. Make static.
2040 (arm_linux_init_abi): Register it.
2041 (solib-svr4.h): Include it.
2042 * Makefile.in: Update dependencies.
2043 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2044 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2046 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2048 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2049 indicate registers used for return values.
2050 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2051 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2053 (h8300_init_extra_frame_info): Ditto.
2054 (h8300_frame_locals_address): Removed.
2055 (h8300_frame_args_address): Removed.
2056 (h8300_extract_return_value): Use new regcache structure. Only care
2058 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2059 (h8300_store_return_value): Use new regcache structure. Only care
2061 (h8300h_store_return_value): Same function for 32 bit CPUs.
2062 (h8300_store_struct_return): Removed.
2063 (h8300_extract_struct_value_address): Use new regcache structure.
2064 (h8300h_extract_struct_value_address): Removed.
2065 (h8300_push_dummy_code): New function.
2066 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2067 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2068 set_gdbarch_store_return_value architecture dependent.
2069 Call set_gdbarch_push_dummy_code and
2070 set_gdbarch_extract_struct_value_address.
2071 Remove calls to set_gdbarch_frame_args_address,
2072 set_gdbarch_frame_locals_address,
2073 set_gdbarch_deprecated_store_struct_return,
2074 set_gdbarch_deprecated_extract_return_value,
2075 set_gdbarch_deprecated_extract_struct_value_address,
2076 set_gdbarch_deprecated_call_dummy_words and
2077 set_gdbarch_deprecated_sizeof_call_dummy_words.
2079 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2081 * h8300-tdep.c (h8300_register_byte): Remove.
2082 (h8300h_register_byte): Remove.
2083 (h8300_register_virtual_type): Remove. Substitute by...
2084 (h8300_register_type): New function.
2085 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2086 (h8300h_extract_struct_value_address): Ditto.
2087 (h8300_gdbarch_init): Drop calls to
2088 set_gdbarch_deprecated_register_byte and
2089 set_gdbarch_deprecated_register_virtual_type.
2090 Add call to set_gdbarch_register_type.
2092 2003-06-13 Andrew Cagney <cagney@redhat.com>
2094 * gdbarch.sh: Update comments on registers.
2095 (deprecated_register_byte): Rename register_byte.
2096 (deprecated_register_raw_size): Rename register_raw_size.
2097 (deprecated_register_virtual_size): Rename register_virtual_size.
2098 (deprecated_register_virtual_type): Rename register_virtual_type.
2099 * gdbarch.h, gdbarch.c: Re-generate.
2100 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2101 * vax-tdep.c (vax_gdbarch_init): Update.
2102 * v850-tdep.c (v850_gdbarch_init): Update.
2103 * sparc-tdep.c (sparc_gdbarch_init): Update.
2104 * sh-tdep.c (sh_gdbarch_init): Update.
2105 * s390-tdep.c (s390_gdbarch_init): Update.
2106 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2107 * ns32k-tdep.c: Update.
2108 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2109 * mips-tdep.c (mips_gdbarch_init): Update.
2110 * mcore-tdep.c (mcore_gdbarch_init): Update.
2111 * m68k-tdep.c (m68k_gdbarch_init): Update.
2112 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2113 * ia64-tdep.c (ia64_gdbarch_init): Update.
2114 * hppa-tdep.c (hppa_gdbarch_init): Update.
2115 * h8300-tdep.c (h8300_gdbarch_init): Update.
2116 * frv-tdep.c (frv_gdbarch_init): Update.
2117 * cris-tdep.c (cris_gdbarch_init): Update.
2118 * avr-tdep.c (avr_gdbarch_init): Update.
2119 * alpha-tdep.c (alpha_gdbarch_init): Update.
2120 * arm-tdep.c (arm_gdbarch_init): Update.
2122 2003-06-13 Andrew Cagney <cagney@redhat.com>
2124 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2125 mips_o32_use_struct_convention with always_use_struct_convention.
2127 2003-06-12 David Carlton <carlton@kealia.com>
2129 * cp-namespace.c (cp_set_block_scope): Comment out
2130 processing_has_namespace_info branch.
2132 2003-06-12 Jim Blandy <jimb@redhat.com>
2134 Recognize and skip 64-bit PowerPC Linux linkage functions.
2135 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2136 insn_pattern, insns_match_pattern, d_field, ds_field): New
2137 functions, macros, and types for working with PPC instructions.
2138 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2139 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2140 ppc64_skip_trampoline_code): New functions, variables, and macros
2141 for recognizing and skipping linkage functions.
2142 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2143 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2145 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2146 register offsets for both the 32- and 64-bit interfaces.
2148 Actually finish the job started by my change of 2003-05-29.
2149 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2150 other #definition of this.
2151 (ppc_linux_skip_trampoline_code): Remove declaration.
2152 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2154 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2157 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2158 'long' on ppc64-*-linux*.
2160 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2161 isn't #defined, assume the register doesn't exist: act as if
2162 tdep->ppc_mq_regnum were -1.
2164 * configure.host, configure.tgt: Add entries for
2165 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2167 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2170 * arch-utils.c (always_use_struct_convention): New function.
2171 * arch-utils.h (always_use_struct_convention): New prototype.
2172 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2173 (alpha_gdbarch_init): Register always_use_struct_convention,
2174 instead of alpha_use_struct_convention.
2175 * cris-tdep.c (cris_use_struct_convention): Delete.
2176 (cris_gdbarch_init): Register always_use_struct_convention,
2177 instead of cris_use_struct_convention.
2178 * frv-tdep.c (frv_use_struct_convention): Delete.
2179 (frv_gdbarch_init): Register always_use_struct_convention,
2180 instead of frv_use_struct_convention.
2181 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2182 (h8300_gdbarch_init): Register always_use_struct_convention,
2183 instead of h8300_use_struct_convention.
2184 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2185 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2186 instead of mips_o32_use_struct_convention.
2188 2003-06-12 Andrew Cagney <cagney@redhat.com>
2190 * wince.c: Include "mips-tdep.h".
2191 * mips-tdep.h (mips_next_pc): Declare.
2192 * mcore-tdep.c: Make more local functions static.
2193 * Makefile.in (wince.o): Update dependencies.
2195 2003-06-12 David Carlton <carlton@kealia.com>
2197 * symtab.c (lookup_symbol_aux_minsyms): Replace
2198 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2199 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2200 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2201 SYMBOL_NATURAL_NAME.
2203 2003-06-12 Andreas Schwab <schwab@suse.de>
2205 * Makefile.in (tuiDisassem.o): Update dependencies.
2207 2003-06-12 David Carlton <carlton@bactrian.org>
2209 * symtab.h: Delete declaration of make_symbol_overload_list.
2210 Add declaration of lookup_partial_symbol.
2211 * symtab.c (remove_params): Move to cp-support.c.
2212 (overload_list_add_symbol, make_symbol_overload_list)
2213 (sym_return_val_size, sym_return_val_index): Ditto.
2214 (lookup_partial_symbol): Make extern.
2215 * cp-support.h: Add declaration of make_symbol_overload_list.
2216 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2217 symtab.h, and block.h.
2218 (remove_params): Move here from symtab.c.
2219 (overload_list_add_symbol, make_symbol_overload_list)
2220 (sym_return_val_size, sym_return_val_index): Ditto.
2221 * valops.c: Include cp-support.h.
2222 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2223 frame_h, and block_h.
2224 (valops.o): Depend on cp_support_h.
2226 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2228 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2229 substitute by NUM_REGS throughout.
2230 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2231 (h8300s_register_name): New function for H8S registers.
2232 (h8300sx_register_name): Ditto for H8SX registers.
2233 (h8300_print_register): Revise register printing, avoid depending
2235 (h8300_register_byte): Only care for H8/300 registers.
2236 (h8300h_register_byte): New function for any other architecture.
2237 (h8300_register_raw_size): Remove.
2238 (h8300_register_virtual_type): Revise to return actually useful
2240 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2241 (h8300h_extract_struct_value_address): New function for any other
2243 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2244 set_gdbarch_register_name, set_gdbarch_register_byte,
2245 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2246 Remove calls to set_gdbarch_deprecated_register_size,
2247 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2248 set_gdbarch_deprecated_max_register_raw_size,
2249 set_gdbarch_register_virtual_size and
2250 set_gdbarch_deprecated_max_register_virtual_size entirely.
2251 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2252 set_gdbarch_long_double_bit.
2254 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2256 * doublest.c (convert_doublest_to_floatformat): When dealing
2257 with the implied integer bit, only alter mant_bits if we are
2258 processing a full 32 bits of mantissa.
2260 2003-06-11 David Carlton <carlton@bactrian.org>
2262 * dictionary.h: New.
2263 * dictionary.c: New.
2264 * block.h: Add opaque declaration for struct dictionary.
2265 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2267 (BLOCK_DICT): New macro.
2268 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2269 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2271 (ALL_BLOCK_SYMBOLS): Update definition.
2272 * Makefile.in (SFILES): Add dictionary.c.
2273 (dictionary_h): New.
2274 (COMMON_OBS): Add dictionary.o.
2275 (dictionary.o): New.
2276 (ada-lang.o): Depend on dictionary_h.
2277 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2278 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2279 (mi-cmd-stack.o): Ditto.
2280 (gdbtk-cmds.o): Update dependencies.
2281 (gdbtk-stack.o): Ditto.
2282 * ada-lang.c: Include dictionary.h.
2283 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2284 (fill_in_ada_prototype, debug_print_block): Ditto.
2285 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2286 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2288 * mdebugread.c: Include dictionary.h.
2289 (struct parse_stack): Delete 'maxsyms' member.
2290 (parse_symbol): Update calls to new_block. Delete calls to
2291 shrink_block. Use dictionary methods.
2292 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2293 Update calls to new_symtab. Don't maintain maxsyms data.
2294 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2295 (add_symbol): Just call dict_add_symbol.
2296 (new_symtab): Delete 'maxsyms' argument.
2297 (new_symtab): Update calls to new_block.
2298 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2299 (shrink_block): Delete function.
2300 (fixup_sigtramp): Update call to new_block. Add symbol via
2302 * jv-lang.c: Include dictionary.h.
2303 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2304 appropriately. Set class_symtab->free_func. Make sure the
2305 blockvector is big enough to hold two blocks.
2306 (add_class_symtab_symbol): Use dictionary methods.
2307 (free_class_block): New function.
2308 (type_from_class): Replace explicit iteration by
2310 * symtab.h (struct symtab): Replace 'free_ptr' method by
2312 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2314 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2316 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2317 Include dictionary.h.
2318 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2319 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2321 * objfiles.c: Include dictionary.h.
2322 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2323 * buildsym.c: Include dictionary.h.
2324 (finish_block): Use dictionary methods.
2325 (end_symtab): Set free_func to NULL, not free_ptr.
2326 * tracepoint.c: Include dictionary.h.
2327 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2328 (scope_info): Ditto.
2329 * stack.c: Include dictionary.h.
2330 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2331 (print_block_frame_labels, print_frame_arg_vars)
2332 (print_frame_args): Ditto.
2333 * symmisc.c (free_symtab_block): Use dictionary methods.
2334 (dump_symtab): Ditto.
2335 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2336 Include dictionary.h.
2337 * symfile.h: Delete declarations of sort_block_syms,
2339 * symfile.c (sort_block_syms): Delete.
2340 (sort_symtab_syms): Delete.
2341 * symtab.c: Include dictionary.h.
2342 (lookup_block_symbol): Use dictionary iterators.
2343 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2344 (search_symbols, make_symbol_completion_list): Ditto.
2345 (make_symbol_overload_list): Ditto.
2346 * valops.c (value_of_local): Use dict_empty.
2347 Include dictionary.h.
2349 2003-06-11 J. Brobecker <brobecker@gnat.com>
2351 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2353 2003-06-11 David Carlton <carlton@bactrian.org>
2355 * block.h (BLOCK_SHOULD_SORT): Delete.
2356 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2358 * ada-lang.c (ada_add_block_symbols): Ditto.
2359 * symfile.c (sort_block_syms): Delete.
2360 (sort_symtab_syms): Ditto.
2361 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2363 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2364 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2365 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2366 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2367 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2368 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2369 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2371 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2373 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
2376 2003-06-11 Andrew Cagney <cagney@redhat.com>
2378 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2379 REGISTER_CONVERTIBLE.
2380 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2381 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2382 * gdbarch.h, gdbarch.c: Re-generate.
2383 * arch-utils.h (deprecated_register_convertible_not): Rename
2384 generic_register_convertible_not.
2385 * arch-utils.c (deprecated_register_convertible_not): Rename
2386 generic_register_convertible.
2387 (legacy_convert_register_p, legacy_register_to_value): Update.
2388 * sh-tdep.c (sh64_push_arguments): Update.
2389 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2390 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2391 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2392 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2393 * arch-utils.c (legacy_value_to_register): Update.
2394 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2395 (rs6000_register_convert_to_raw): Make parameter "from" const.
2396 * mips-tdep.c (mips_gdbarch_init): Update.
2397 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2398 * infcmd.c (default_print_registers_info): Update.
2399 * ia64-tdep.c (ia64_gdbarch_init): Update.
2400 (ia64_register_convert_to_raw): Make parameter "from" const.
2401 * i386-tdep.c (i386_gdbarch_init): Update.
2402 (i386_register_convert_to_raw): Update.
2404 2003-06-11 Andrew Cagney <cagney@redhat.com>
2406 * remote-fileio.c: Include "remote-fileio.h".
2407 * Makefile.in (remote-fileio.o): Update dependencies.
2408 (remote_fileio_h): Fix typo.
2410 2003-06-11 Andrew Cagney <cagney@redhat.com>
2412 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2413 (xstormy16_save_dummy_frame_tos): Make static.
2414 (_initialize_xstormy16_tdep): Add declaration.
2415 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2416 * v850-tdep.c: Make local functions static.
2417 (_initialize_v850_tdep): Add declaration.
2418 * sparc-tdep.c: Make local functions static.
2419 (_initialize_sparc_tdep): Add declaration.
2420 * sh-tdep.c: Make local functions static.
2421 (_initialize_sh_tdep): Add declaration.
2422 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2423 * s390-tdep.c: Make local functions static.
2424 (_initialize_s390_tdep): Add declaration.
2425 * dbxread.c (find_stab_function_addr): Make static.
2426 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2427 * ocd.c (_initialize_remote_ocd): Add declaration.
2428 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2429 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2430 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2431 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2432 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2433 * remote-array.c (_initialize_array): Add declaration.
2434 (_initialize_remote_monitors): Add declaration.
2435 * remote-mips.c: Make local functions static.
2436 (_initialize_remote_mips): Add declaration.
2437 * mcore-tdep.c: Make all local functions static.
2438 (_initialize_mcore_tdep): Add declaration.
2439 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2440 * abug-rom.c (_initialize_abug_rom): Add declaration.
2441 * rom68k-rom.c (_initialize_rom68k): Add declaration.
2442 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2443 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2444 * remote-est.c (_initialize_est): Add declaration.
2445 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2446 (m68hc11_call_dummy_address): Make static.
2447 * ia64-tdep.c: Make local functions static.
2448 (_initialize_ia64_tdep): Add declaration.
2449 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2450 * monitor.c (monitor_wait_filter): Make static.
2451 (_initialize_remote_monitors): Add declaration.
2452 * remote-hms.c (_initialize_remote_hms): Add declaration.
2453 * remote-e7000.c (fetch_regs_from_dump): Make static.
2454 (expect_n): Make static.
2455 (_initialize_remote_e7000): Add declaration.
2456 * ser-e7kpc.c: Always include "defs.h".
2457 (_initialize_ser_e7000pc): Add declaration.
2458 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2459 * cris-tdep.c: Make all but one function static.
2460 (_initialize_cris_tdep): Add declaration.
2461 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2462 * solib.c (update_solib_list): Make static.
2463 (_initialize_solib): Add declaration.
2464 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2465 (_initialize_avr_tdep): Add declaration.
2466 * remote-rdi.c (voiddummy): Make static.
2467 (_initialize_remote_rdi): Add declaration.
2468 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2469 * remote-rdp.c (send_rdp): Make static.
2470 (_initialize_remote_rdp): Add declaration.
2471 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2473 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
2475 * remote-fileio.c: Make ari happy.
2477 2003-06-10 J. Brobecker <brobecker@gnat.com>
2479 * rs6000-nat.c (child_xfer_memory): Compute the right address when
2480 fetching the trailing bytes of the buffer we are about to write.
2482 2003-06-10 Andrew Cagney <cagney@redhat.com>
2484 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
2485 * Makefile.in (remote-fileio.o): Update dependencies.
2486 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
2487 include <setjmp.h>, or <sys/types.h> conditional on USG.
2488 (remote_fio_jmp_buf): Delete global variable.
2490 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
2491 Martin M. Hunt <hunt@redhat.com>
2493 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
2494 (SFILES): Add remote-fileio.c.
2495 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
2496 dependencies for building remote.o.
2497 * remote-fileio.c: New file implementing the remote File-I/O protocol.
2498 * remote-fileio.h: New header file defining remote File-I/O interface.
2499 * remote.c (remote_write_bytes, remote_read_bytes): Remove
2500 static storage class.
2501 (remote_wait, remote_async_wait): Call remote_fileio_request() on
2503 (_initialize_remote): Call initialize_remote_fileio().
2504 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
2505 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2506 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2507 (captured_main): Initialize new ui_files.
2508 * ui-file.c: Add read and fgets input functions.
2509 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
2510 (null_file_read): New function.
2511 (ui_file_read): New function.
2512 (set_ui_file_read): New function.
2513 (stdio_file_read): New function.
2514 * ui-file.h: New type ui_file_read_ftype.
2515 (set_ui_file_read): Declare.
2516 (ui_file_read): Declare.
2518 2003-06-09 Andrew Cagney <cagney@redhat.com>
2520 * frame.h (deprecated_unwind_get_saved_register): Rename
2521 generic_unwind_get_saved_register, update comments.
2522 * mips-tdep.c (mips_get_saved_register): Update.
2523 * frame.c (deprecated_unwind_get_saved_register): Update.
2525 2003-06-09 Andrew Cagney <cagney@redhat.com>
2527 * vax-tdep.c (vax_frame_locals_address): Delete function.
2528 (vax_gdbarch_init): Do not set frame_locals_address.
2529 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
2530 (m68hc11_gdbarch_init): Do not set frame_locals_address.
2531 * s390-tdep.c (s390_frame_args_address): Delete function.
2532 (s390_gdbarch_init): Do not set frame_args_address or
2533 frame_locals_address.
2534 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
2535 (ns32k_gdbarch_init): Do not set frame_locals_address.
2536 * hppa-tdep.c (hppa_frame_args_address): Delete function.
2537 (hppa_frame_locals_address): Delete function.
2538 (hppa_gdbarch_init): Do not set frame_args_address, or
2539 frame_locals_address.
2540 * arm-tdep.c (arm_frame_args_address): Delete.
2541 (arm_frame_locals_address): Delete.
2542 (arm_gdbarch_init): Do not set frame_args_address, or
2543 frame_locals_address.
2545 2003-06-09 Andrew Cagney <cagney@redhat.com>
2547 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
2548 * gdbarch.h, gdbarch.c: Re-generate.
2549 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
2550 * arch-utils.c (frame_num_args_unknown): Delete function.
2551 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
2552 (frame_info): Use FRAME_NUM_ARGS_P.
2553 * arm-tdep.c (arm_frame_num_args): Delete function.
2554 (arm_gdbarch_init): Do not set frame_num_args.
2555 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
2556 * hppa-tdep.c (hppa_frame_num_args): Delete function.
2557 (hppa_gdbarch_init): Do not set frame_num_args.
2558 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
2559 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2560 frame_num_args to default frame_num_args_unknown.
2561 * v850-tdep.c (v850_gdbarch_init): Ditto.
2562 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2563 * sh-tdep.c (sh_gdbarch_init): Ditto.
2564 * s390-tdep.c (s390_gdbarch_init): Ditto.
2565 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2566 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2567 * mips-tdep.c (mips_gdbarch_init): Ditto.
2568 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2569 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2570 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2571 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2572 * i386-tdep.c (i386_gdbarch_init): Ditto.
2573 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2574 * frv-tdep.c (frv_gdbarch_init): Ditto.
2575 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2576 * cris-tdep.c (cris_gdbarch_init): Ditto.
2577 * avr-tdep.c (avr_gdbarch_init): Ditto.
2578 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2580 2003-06-09 Andrew Cagney <cagney@redhat.com>
2582 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
2583 (print_frame_args): Moved to "stack.c".
2584 * stack.c: Include "gdb_assert.h".
2585 (print_frame_nameless_args): Moved from "printcmd.c", made static.
2586 (print_frame_args): Moved from "printcmd.c".
2587 * frame.h (print_frame_args): Delete declaration.
2588 * Makefile.in (stack.o): Update dependencies.
2590 2003-06-08 Andrew Cagney <cagney@redhat.com>
2592 * frame.c (get_prev_frame): Remove reference to
2593 frame_args_address_correct in comments.
2594 * frame-base.c (default_frame_args_address): Delete code
2595 conditional on FRAME_ARGS_ADDRESS_CORRECT.
2596 * vax-tdep.c (vax_frame_args_address_correct): Delete.
2597 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
2598 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
2599 (vax_frame_args_address_correct): Delete declaration.
2601 2003-06-08 Andrew Cagney <cagney@redhat.com>
2603 * gdbarch.sh (UNWIND_SP): Add.
2604 * gdbarch.h, gdbarch.c: Re-generate.
2605 * frame.c (frame_sp_unwind): New function.
2606 (get_frame_sp): New function.
2607 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
2608 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
2609 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
2611 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
2612 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
2614 2003-06-08 Andrew Cagney <cagney@redhat.com>
2616 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
2619 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
2620 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
2621 * config/m68k/tm-sun3.h: Update.
2622 * config/m68k/tm-m68klynx.h: Update.
2623 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
2625 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
2626 trad_frame". Update comments.
2627 * d10v-tdep.c (struct d10v_unwind_cache): Update.
2628 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
2629 (trad_frame_register_value, trad_frame_prev_register): Update.
2631 2003-06-08 Andrew Cagney <cagney@redhat.com>
2633 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
2634 from GCC's acinclude.m4.
2635 * configure.in: Check for getopt's delcaration.
2636 * aclocal.m4, config.in, configure: Re-generate.
2637 * main.c (error_init): Delete declaration.
2638 * defs.h (error_init): Declare.
2639 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
2640 (rs6000_convert_from_func_ptr_addr): Make static.
2641 (_initialize_rs6000_tdep): Add declaration.
2642 * cli/cli-cmds.c (dont_repeat): Delete declaration.
2643 (show_commands, set_verbose, show_history): Delete declaration.
2644 * top.h (set_verbose): Add declaration.
2645 (show_history, set_history, show_commands): Add declaration.
2646 (do_restore_instream_cleanup): Add declaration.
2647 * objc-lang.c (specialcmp): Make static.
2648 (print_object_command): Make static.
2649 (find_objc_msgsend): Make static.
2650 (find_objc_msgcall_submethod_helper): Make static.
2651 (find_objc_msgcall_submethod): Make static.
2652 (_initialize_objc_language): Add declaration.
2653 (find_implementation_from_class): Make static.
2654 (find_implementation): Make static.
2655 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
2656 * objc-lang.h (lookup_struct_typedef): Add declaration.
2657 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
2658 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
2659 (do_restore_user_call_depth): Make static.
2660 (do_restore_instream_cleanup): Delete declaration.
2661 (dont_repeat): Delete declaration.
2662 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
2663 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
2664 * reggroups.c (_initialize_reggroup): Add declaration.
2665 * cp-support.c (_initialize_cp_support): Add declaration.
2666 * cp-abi.c (_initialize_cp_abi): Add declaration.
2667 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
2668 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
2669 (_initialize_gnu_v3_abi): Add declaration.
2670 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
2671 (_initialize_gnu_v2_abi): Add declaration.
2672 * frame-base.c (_initialize_frame_base): Add declaration.
2673 * doublest.c (floatformat_from_length): Make static.
2674 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
2675 * frame.c (create_sentinel_frame): Make static.
2676 (_initialize_frame): Add declaration.
2677 * top.c (do_catch_errors): Make static.
2678 (gdb_rl_operate_and_get_next_completion): Make static.
2679 * typeprint.c: Include "typeprint.h".
2680 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
2681 (sentinel_frame_this_id): Make static.
2682 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
2683 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
2684 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
2685 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
2686 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
2687 * maint.c (maintenance_print_architecture): Make static.
2688 * signals/signals.c (_initialize_signals): Add declaration.
2689 * std-regs.c (_initialize_frame_reg): Add declaration.
2690 * jv-exp.y (push_variable): ISO C definition.
2691 (push_qualified_expression_name): Ditto.
2692 * memattr.c (_initialize_mem): Add declaration.
2693 * remote.c (remote_check_watch_resources): Make static.
2694 (remote_stopped_by_watchpoint): Make static.
2695 (remote_stopped_data_address): Make static.
2696 * d10v-tdep.c (nr_dmap_regs): Make static.
2697 (a0_regnum): Make static.
2698 (d10v_frame_unwind_cache): Make static.
2699 (d10v_frame_p): Make static.
2700 * osabi.c (show_osabi): Make static.
2701 (_initialize_gdb_osabi): Add extern declaration.
2702 * gdbtypes.c (make_qualified_type): Make static.
2703 (safe_parse_type): Make static.
2704 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
2705 * macrotab.c (macro_bcache_free): Make static.
2706 * interps.c (interp_set_quiet): Make static.
2707 (interpreter_exec_cmd): Make static.
2708 * stack.h (select_frame_command): New file.
2709 * stack.c: Include "stack.h".
2710 (select_frame_command_wrapper): Delete function.
2711 (select_frame_command): Make global.
2712 * infcall.c: Include "infcall.h".
2713 * linespec.c: Include "linespec.h".
2714 * symfile.c (sections_overlap): Make static.
2715 * cp-support.h (cp_initialize_namespace): ISO C declaration.
2716 * charset.c (_initialize_charset): Add missing prototype.
2717 * regcache.c (init_legacy_regcache_descr): Make static.
2718 (do_regcache_xfree): Make static.
2719 (regcache_xfer_part): Make static.
2720 (_initialize_regcache): Add missing prototype.
2721 * breakpoint.c (parse_breakpoint_sals): Make static.
2722 (breakpoint_sals_to_pc): Make static.
2723 * interps.h (clear_interpreter_hooks): ISO C declaration.
2724 * Makefile.in (stack_h): Define.
2725 (stack.o, typeprint.o, mi-main.o): Update dependencies.
2726 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
2728 2003-06-08 Andrew Cagney <cagney@redhat.com>
2730 * Makefile.in (d10v-tdep.o): Update dependencies.
2731 (SFILES): Add trad-frame.c.
2732 (trad_frame_h): Define.
2733 (COMMON_OBS): Add trad-frame.o.
2734 (trad-frame.o): Specify dependencies.
2735 * d10v-tdep.c: Include "trad-frame.h".
2736 (saved_regs_unwinder): Delete function.
2737 (d10v_frame_prev_register): Use trad_frame_prev_register.
2738 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
2739 trad_frame", delete "regs" and "prev_sp".
2740 (prologue_find_regs): Use trad-frame.
2741 * trad-frame.h, trad-frame.c: New files.
2743 2003-06-08 Mark Kettenis <kettenis@gnu.org>
2745 * dwarf2cfi.c, dwarf2cfi.h: Remove.
2747 2003-06-07 Adam Fedor <fedor@gnu.org>
2749 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
2750 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
2751 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
2752 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
2753 resolve_msgsend_super, resolve_msgsend_super_stret):
2756 2003-06-07 Andrew Cagney <cagney@redhat.com>
2758 * symfile.h: Re-indent, clean up comments.
2760 2003-06-07 Andrew Cagney <cagney@redhat.com>
2762 * inferior.h (deprecated_write_sp): Replace
2763 generic_target_write_sp.
2764 * regcache.c (deprecated_write_sp): Replace
2765 generic_target_write_sp.
2766 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2767 * vax-tdep.c (vax_gdbarch_init): Update.
2768 * v850-tdep.c (v850_gdbarch_init): Update.
2769 * sparc-tdep.c (sparc_gdbarch_init): Update.
2770 * sh-tdep.c (sh_gdbarch_init): Update.
2771 * s390-tdep.c (s390_gdbarch_init): Update.
2772 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2773 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2774 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2775 * mcore-tdep.c (mcore_gdbarch_init): Update.
2776 * m68k-tdep.c (m68k_gdbarch_init): Update.
2777 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2778 * ia64-tdep.c (ia64_gdbarch_init): Update.
2779 * h8300-tdep.c (h8300_gdbarch_init): Update.
2780 * frv-tdep.c (frv_gdbarch_init): Update.
2781 * cris-tdep.c (cris_gdbarch_init): Update.
2782 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
2784 2003-06-07 Andrew Cagney <cagney@redhat.com>
2786 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
2787 Assert that PC_REGNUM is valid.
2788 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
2790 2003-06-07 Andrew Cagney <cagney@redhat.com>
2792 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
2793 * gdbarch.h, gdbarch.c: Regenerate.
2794 * mn10300-tdep.c: Include "gdb_assert.h".
2795 (mn10300_read_fp): New function.
2796 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
2797 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
2798 * ia64-tdep.c: Include "gdb_assert.h".
2799 (ia64_read_fp): New function.
2800 (ia64_gdbarch_init): Set deprecated_target_read_fp to
2801 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
2802 * regcache.c (generic_target_read_sp): Delete function.
2803 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
2804 * inferior.h (generic_target_read_sp): Delete declaration.
2805 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
2806 generic_target_read_sp.
2807 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2808 * sparc-tdep.c (sparc_gdbarch_init): Ditto
2809 * sh-tdep.c (sh_gdbarch_init): Ditto.
2810 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2811 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
2813 2003-06-07 Andrew Cagney <cagney@redhat.com>
2815 * gdbarch.sh: Comment each field of startup_gdbarch.
2816 * gdbarch.h, gdbarch.c: Re-generate.
2818 2003-06-07 Andrew Cagney <cagney@redhat.com>
2820 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
2821 * gdbarch.h, gdbarch.c: Re-generate.
2822 * regcache.c: Update comments on read_pc et.al.
2823 (generic_target_read_pc): Delete function.
2824 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
2825 * inferior.h (generic_target_read_pc): Delete declaration.
2826 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
2827 generic_target_read_pc.
2828 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2829 * sh-tdep.c (sh_gdbarch_init): Ditto.
2830 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2831 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2833 2003-06-07 Andrew Cagney <cagney@redhat.com>
2835 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
2836 "index" with "special_local_sect". Use strcmp instead of STREQ.
2837 Append period to coments.
2839 2003-06-06 Mark Mitchell <mark@codesourcery.com>
2841 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
2842 (elfstab_offset_sections): Likewise.
2843 * gdb-stabs.h (stab_section_info): Likewise.
2844 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
2845 * objfiles.c (objfile_relocate): Likewise.
2846 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
2847 * remote.c (get_offsets): Likewise.
2848 (remote_cisco_objfile_relocate): Likewise.
2849 * somread.c (som_symfile_offsets): Likewise.
2850 * symfile.c (alloc_section_addr_info): New function.
2851 (build_section_addr_info_from_section_tab): Use it.
2852 (free_section_addr_info): Adjust.
2853 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
2854 (syms_from_objfile): Allocate local_addr dynamically.
2855 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
2857 (add_symbol_file_command): Allocate sect_opts dynamically.
2858 (reread_symbols): Avoid use of SECT_OFF_MAX.
2859 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
2860 (alloc_section_addr_info): Declare it.
2861 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
2862 * win32-nat.c (solib_symbols_add): Allocate section_addrs
2864 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
2866 2003-06-06 Andrew Cagney <cagney@redhat.com>
2868 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
2869 (d10v_frame_unwind_cache): Do not set "return_pc".
2871 2003-06-06 Michael Snyder <msnyder@redhat.com>
2873 * h8300-tdep.c: Make tidy (long lines).
2875 2003-06-06 Michal Ludvig <mludvig@suse.cz>
2877 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
2878 to regcache_collect().
2880 2003-06-05 J. Brobecker <brobecker@gnat.com>
2882 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
2883 pc_in_sigtramp multiarch method.
2884 (hppa_hpux_som_init_abi): Use it.
2885 (hppa_hpux_elf_init_abi): Likewise.
2886 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
2887 macro has been multiarched.
2888 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
2889 macro here, as hppa64 isn't multiarched yet.
2891 2003-06-05 Andrew Cagney <cagney@redhat.com>
2893 * Makefile.in (value_h): Add $(frame_h).
2894 * value.h: Include "frame.h".
2895 (struct value): Replace "frame_addr" with "frame_id".
2896 (VALUE_FRAME_ID): Replace VALUE_FRAME.
2897 * values.c (allocate_value): Use VALUE_FRAME_ID.
2898 (value_copy): Use VALUE_FRAME_ID.
2899 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
2900 * valops.c (value_assign): Update. Use frame_find_by_id.
2902 2003-06-05 Michal Ludvig <mludvig@suse.cz>
2904 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
2907 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
2909 * thread-db.c (check_event): For create/death event breakpoints,
2910 loop through all messages to ensure that we read the message
2911 corresponding to the breakpoint we are at.
2913 2003-06-04 Michael Snyder <msnyder@redhat.com>
2915 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
2917 2003-06-04 Mark Kettenis <kettenis@gnu.org>
2919 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
2920 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
2921 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
2922 when handling .eh_frame sections.
2924 2003-06-04 J. Brobecker <brobecker@gnat.com>
2926 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
2927 prepare_to_proceed procedure instead of the hppa-specific one.
2928 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
2930 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
2932 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
2933 * config.in: Regenerated.
2934 * configure.in: Add test for syscall function and check for
2935 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
2936 * configure: Regenerated.
2937 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
2939 (kill_lwp): New function that uses tkill syscall or
2940 uses kill, depending on whether threading model is nptl or not.
2941 All callers of kill() changed to use kill_lwp().
2942 (lin_lwp_wait): Make special check when WIFEXITED occurs to
2943 see if all threads have already exited in the nptl model.
2944 (stop_and_resume_callback): New callback function used by the
2945 lin_lwp_wait thread exit handling code.
2946 (stop_wait_callback): Check for threads already having exited and
2947 delete such threads fromt the lwp list when discovered.
2948 (stop_callback): Don't assert retcode of kill call.
2950 Roland McGrath <roland@redhat.com>
2951 * i386-linux-nat.c (ps_get_thread_area): New function needed by
2954 2003-06-03 Richard Henderson <rth@redhat.com>
2956 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
2957 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
2958 (alpha_sigtramp_frame_prev_register): Likewise.
2959 (alpha_heuristic_frame_prev_register): Likewise.
2960 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
2962 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
2963 alpha-specific register id names.
2964 (alpha_mdebug_frame_unwind_cache): Likewise.
2965 (alpha_mdebug_frame_prev_register): Likewise.
2967 2003-06-03 Richard Henderson <rth@redhat.com>
2969 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
2970 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
2971 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
2972 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
2974 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
2975 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2976 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
2978 * alpha-linux-tdep.c: Remove unnecessary includes.
2979 * Makefile.in (alpha-linux-tdep.o): Update.
2981 2003-06-03 Richard Henderson <rth@redhat.com>
2983 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
2984 (alphabsd_fill_fpreg): Likewise.
2986 2003-06-03 J. Brobecker <brobecker@gnat.com>
2988 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
2989 references to struct frame_info fields by calls to the equivalent
2990 accessors. Necessary now that frame_info is opaque.
2992 2003-06-03 J. Brobecker <brobecker@gnat.com>
2994 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
2995 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
2996 structure, field no longer exists.
2998 2003-06-03 J. Brobecker <brobecker@gnat.com>
3000 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3001 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3003 2003-06-03 J. Brobecker <brobecker@gnat.com>
3005 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3006 references to struct frame_info fields by calls to the equivalent
3007 accessors. Necessary now that frame_info is opaque.
3009 2003-06-03 J. Brobecker <brobecker@gnat.com>
3011 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3012 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3013 structure, field no longer exists.
3015 2003-06-03 Theodore A. Roth <troth@openavr.org>
3017 * remote.c (init_remote_state): Compute sizeof_g_packet by
3018 accumulation of the size of all registers instead of blindly using
3019 DEPRECATED_REGISTER_BYTES.
3021 2003-06-03 Michael Snyder <msnyder@redhat.com>
3023 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3024 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3027 2003-06-03 J. Brobecker <brobecker@gnat.com>
3029 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3030 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3032 2003-06-03 Andrew Cagney <cagney@redhat.com>
3034 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3035 (sparc_convert_to_raw): Delete function.
3036 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3037 register_convert_to_virtual.
3039 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3041 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3042 layer if not dealing with a statically-linked threaded program.
3044 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3046 * solib.c (solib_open): Update comment to reflect actual search order.
3048 2003-06-03 Andrew Cagney <cagney@redhat.com>
3050 * frame.c (get_frame_memory_signed): New function.
3051 (get_frame_memory, get_frame_memory_unsigned): New function.
3052 (get_frame_arch): New function.
3053 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3054 (get_frame_memory, get_frame_unsigned_memory): Declare.
3055 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3056 get_frame_memory_unsigned and get_frame_arch.
3057 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3059 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3061 * MAINTAINERS (write after approval): Add myself.
3063 2003-06-03 Jim Blandy <jimb@redhat.com>
3065 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3066 elements of gregset_t are 64 bits each, but access registers
3067 are still 32 bits, so they're packed two per gregset_t
3068 element. Unpack/pack them properly.
3070 2003-06-02 David Carlton <carlton@bactrian.org>
3072 * linespec.c (find_methods): Break out code into
3073 add_matching_methods and add_constructors.
3074 (add_matching_methods): New.
3075 (add_constructors): Ditto.
3077 2003-06-02 Andrew Cagney <cagney@redhat.com>
3079 * sparc-tdep.c (sparc_print_registers): Delete call to
3080 REGISTER_CONVERTIBLE.
3081 (sparc_gdbarch_init): Do not set register_convertible.
3082 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3083 * frv-tdep.c (frv_gdbarch_init): Ditto.
3084 * cris-tdep.c (cris_gdbarch_init): Ditto.
3086 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3088 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3089 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3090 (syms_from_objfile): Ditto.
3092 2003-06-03 Andreas Schwab <schwab@suse.de>
3094 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3095 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3097 2003-06-02 Richard Henderson <rth@redhat.com>
3099 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3100 a member of all_reggroup.
3102 2003-06-02 Richard Henderson <rth@redhat.com>
3104 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3105 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3106 (alpha_lds, alpha_sts): New.
3107 (alpha_convert_register_p): Change from _register_convertible.
3108 (alpha_register_to_value): Change from _convert_to_virtual;
3109 restructure and fail for type sizes other than 4 or 8.
3110 (alpha_value_to_register): Similarly.
3111 (alpha_extract_return_value): Use alpha_sts.
3112 (alpha_store_return_value): Use alpha_lds.
3113 (alpha_gdbarch_init): Update hooks.
3115 2003-06-02 Richard Henderson <rth@redhat.com>
3117 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3119 (alpha_sigtramp_register_address): Likewise.
3121 2003-06-02 Richard Henderson <rth@redhat.com>
3123 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3124 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3125 * alpha-tdep.h: Declare them.
3127 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3128 Remove zerobuf. Don't error on UNIQUE.
3129 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3130 (ALPHA_REGSET_UNIQUE): Provide default.
3131 (supply_gregset): Use alpha_supply_int_regs.
3132 (fill_gregset): Use alpha_fill_int_regs.
3133 (supply_fpregset): Use alpha_supply_fp_regs.
3134 (fill_fpregset): Use alpha_fill_fp_regs.
3135 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3136 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3137 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3138 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3139 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3140 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3142 2003-06-02 Richard Henderson <rth@redhat.com>
3144 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3146 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3147 (alpha_store_return_value): Likewise.
3149 2003-06-02 David Carlton <carlton@math.stanford.edu>
3151 * block.c (contained_in): Add 'const' to arguments.
3152 (block_function): Ditto.
3153 * block.h: Update declarations for block_function and
3156 2003-06-02 David Carlton <carlton@math.stanford.edu>
3158 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3159 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3160 * p-valprint.c (pascal_val_print): Ditto.
3161 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3163 2003-06-02 Richard Henderson <rth@redhat.com>
3165 * alpha-tdep.c (alpha_push_dummy_call): Use
3166 builtin_type_ieee_double_little instead of builtin_type_double.
3168 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3169 sign-extension of 32-bit values.
3170 (alpha_store_return_value): Similarly.
3172 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3173 (alpha_extract_return_value): Likewise.
3174 (alpha_store_return_value): Likewise.
3176 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3177 (alpha_store_return_value): Error on IEEE Quad floats.
3179 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3180 (alpha_extract_struct_value_address): Likewise.
3181 (alpha_store_return_value): Likewise.
3182 (alpha_store_struct_return): Remove.
3183 (alpha_gdbarch_init): Update hook registration to match.
3185 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3186 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3187 macros where appropriate.
3188 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3189 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3191 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3192 for SP, GP; void_func_ptr for PC; non-language-specific types
3194 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3196 2003-06-02 Richard Henderson <rth@redhat.com>
3198 * top.h (lim_at_start): Declare.
3199 * main.c (captured_main): Set it.
3200 * top.c (lim_at_start): Define.
3201 (command_loop): Use it instead of &environ.
3202 * event-top.c (command_handler): Likewise.
3204 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3206 * mipsnbsd-tdep.c: Update copyright years.
3207 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3209 2003-06-01 Richard Henderson <rth@redhat.com>
3211 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3212 (alpha-linux-tdep.o): Update dependencies.
3213 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3214 * alpha-mdebug-tdep.c: Remove unneeded includes.
3216 2003-06-01 Richard Henderson <rth@redhat.com>
3218 * alpha-tdep.c (alpha_register_reggroup_p): New.
3219 (alpha_gdbarch_init): Register it.
3221 2003-06-02 Andrew Cagney <cagney@redhat.com>
3223 * dwarfread.c: Eliminate "register"
3224 (decode_die_type): Eliminate assignment within "if".
3225 (struct_type, decode_array_element_type): Ditto.
3226 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3227 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3228 (decode_modified_type, completedieinfo): Ditto.
3229 * block.c: Eliminate "register".
3230 (blockvector_for_pc_sect): Eliminate assignment within "if".
3231 * cp-support.h (struct symbol): Opaque declaration.
3232 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3234 2003-06-01 Richard Henderson <rth@redhat.com>
3236 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3237 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3239 2003-06-01 Adam Fedor <fedor@gnu.org>
3241 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3242 * gdbarch.[ch]: Regenerate.
3243 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3244 (hppa_gdbarch_init): Set it in the gdbarch vector.
3245 * i386-tdep.c (i386_fetch_pointer_argument): New
3246 (i386_gdbarch_init): Set it into gdbarch.
3247 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3248 (rs6000_gdbarch_init): Set it in gdbarch.
3249 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3250 (sparc_gdbarch_init): Set it in gdbarch.
3252 2003-06-01 Andrew Cagney <cagney@redhat.com>
3254 * defs.h (extract_address): Delete declaration.
3255 * findvar.c (extract_address): Delete function.
3256 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3257 extract_address with the inline equivalent,
3258 extract_unsigned_integer.
3259 (xstormy16_extract_struct_value_address): Ditto.
3260 (xstormy16_pointer_to_address): Ditto.
3261 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3262 * v850-tdep.c (v850_push_arguments): Ditto.
3263 (v850_extract_return_value): Ditto.
3264 (v850_extract_struct_value_address): Ditto.
3265 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3266 (sparcnbsd_get_longjmp_target_64): Ditto.
3267 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3268 (get_longjmp_target): Ditto.
3269 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3270 (sh64_extract_struct_value_address): Ditto.
3271 (sh_push_arguments): Ditto.
3272 (sh64_push_arguments): Ditto.
3273 * remote-vxsparc.c (vx_read_register): Ditto.
3274 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3275 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3276 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3277 * mipsv4-nat.c (get_longjmp_target): Ditto.
3278 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3279 * mips-nat.c (get_longjmp_target): Ditto.
3280 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3281 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3282 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3283 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3284 * irix5-nat.c (get_longjmp_target): Ditto.
3285 * irix4-nat.c (get_longjmp_target): Ditto.
3286 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3287 (ia64_push_arguments): Ditto.
3288 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3289 * h8300-tdep.c (h8300_push_arguments): Ditto.
3290 (h8300_store_return_value): Ditto.
3291 (h8300_extract_struct_value_address): Ditto.
3292 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3293 (frv_push_arguments): Ditto.
3294 * avr-tdep.c (avr_pointer_to_address): Ditto.
3295 (avr_push_arguments): Ditto.
3296 * arm-tdep.c (arm_push_dummy_call): Ditto.
3297 (arm_get_longjmp_target): Ditto.
3298 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3299 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3300 (alpha_get_longjmp_target): Ditto.
3302 * solib-irix.c (extract_mips_address): Inline extract_address,
3303 replacing it with extract_signed_integer.
3304 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3305 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3306 (first_link_map_member, open_symbol_file_object): Ditto.
3307 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3308 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3309 (LM_NEXT, LM_NAME): Ditto.
3311 2003-06-01 Richard Henderson <rth@redhat.com>
3313 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3314 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3315 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3316 (alpha_cannot_store_register): Likewise.
3317 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3318 * alpha-nat.c (supply_gregset): Likewise.
3319 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
3321 2003-06-01 Andrew Cagney <cagney@redhat.com>
3323 * infcall.c (call_function_by_hand): Update comment on
3324 DEPRECATED_DUMMY_WRITE_SP.
3326 * mips-tdep.c (mips_gdbarch_init): Do not set
3327 deprecated_dummy_write_sp.
3328 (mips_eabi_push_dummy_call): Set the SP register.
3329 (mips_o64_push_dummy_call): Set the SP register.
3330 (mips_o32_push_dummy_call): Set the SP register.
3331 (mips_n32n64_push_dummy_call): Set the SP register.
3333 2003-06-01 Richard Henderson <rth@redhat.com>
3335 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3336 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3337 (supply_gregset): Likewise.
3338 * alpha-tdep.c (alpha_store_return_value): Likewise.
3339 (alpha_get_longjmp_target): Likewise.
3340 (alpha_register_name): Constify array.
3341 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3342 deprecated_register_size, deprecated_register_bytes,
3343 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3344 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3345 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
3347 2003-06-01 Richard Henderson <rth@redhat.com>
3349 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3350 from arg_reg_buffer to regcache to avoid double conversion.
3352 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3354 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3356 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3357 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3359 2003-06-01 Richard Henderson <rth@redhat.com>
3361 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3362 (decode_frame_entry): Set it. Skip FDE augmentation.
3364 2003-06-01 Richard Henderson <rth@redhat.com>
3366 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3367 not overlapping PC_REGNUM.
3369 2003-06-01 Richard Henderson <rth@redhat.com>
3371 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3372 alpha_push_arguments. Don't dump argument register data to
3373 the target stack. Fix float and 128-bit long double semantics.
3374 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3375 (alpha_fix_call_dummy): Remove.
3376 (alpha_call_dummy_words): Remove.
3377 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
3379 2003-06-01 Richard Henderson <rth@redhat.com>
3381 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3383 2003-06-01 Andrew Cagney <cagney@redhat.com>
3385 * mips-tdep.c (is_mips16_addr): New function.
3386 (make_mips16_addr, unmake_mips16_addr): New functions.
3387 (pc_is_mips16, mips_fetch_instruction): Use.
3388 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3389 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3390 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3391 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3393 * config/mips/tm-mips.h: Update copyright.
3394 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3395 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3396 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3397 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3398 (TM_PRINT_INSN_MACH): Delete.
3399 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3401 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3402 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3403 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3404 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3405 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
3406 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
3407 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
3408 mips*-*-riscos* and mips*-*-sysv* onto mips.
3409 * config/mips/mips64.mt: New file.
3410 * config/mips/mips.mt: New file.
3411 * config/mips/littlemips.mt: Delete file.
3412 * config/mips/decstation.mt: Delete file.
3413 * config/mips/vr4300el.mt: Delete file.
3414 * config/mips/vr5000el.mt: Delete file.
3415 * config/mips/vr5000.mt: Delete file.
3416 * config/mips/vr4100.mt: Delete file.
3417 * config/mips/vr4xxxel.mt: Delete file.
3418 * config/mips/vr4300.mt: Delete file.
3419 * config/mips/vr4xxx.mt: Delete file.
3420 * config/mips/bigmips.mt: Delete file.
3421 * config/mips/bigmips64.mt: Delete file.
3422 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3423 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3424 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3425 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3426 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3428 * config/mips/tm-irix3.h: Ditto.
3429 * config/mips/tm-mipsv4.h: Ditto.
3430 * config/mips/tm-embed.h: Ditto.
3431 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3433 * config/mips/tm-vr5000el.h: Delete file.
3434 * config/mips/tm-tx39l.h: Delete file.
3435 * config/mips/tm-vr4300el.h: Delete file.
3436 * config/mips/tm-vr4xxxel.h: Delete file.
3437 * config/mips/tm-vr4300.h: Delete file.
3438 * config/mips/tm-vr4100.h: Delete file.
3439 * config/mips/tm-vr4xxx.h: Delete file.
3440 * config/mips/tm-vr5000.h: Delete file.
3441 * config/mips/tm-embedl64.h: Delete file.
3442 * config/mips/tm-embedl.h: Delete file.
3443 * config/mips/tm-embed64.h: Delete file.
3444 * config/mips/tm-bigmips64.h: Delete file.
3445 * config/mips/tm-bigmips.h: Delete file.
3447 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3450 * shnbsd-nat.c: Include "sh-tdep.h".
3452 From Richard Henderson <rth@redhat.com>:
3453 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3455 2003-05-31 Andrew Cagney <cagney@redhat.com>
3457 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
3458 forward declaration.
3459 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3460 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3461 (mips_find_saved_regs): Use set_reg_offset.
3462 (mips_frame_init_saved_regs): Delete function.
3463 (mips_pop_frame): Call mips_find_saved_regs instead of
3464 DEPRECATED_FRAME_INIT_SAVED_REGS.
3466 2003-05-31 Andrew Cagney <cagney@redhat.com>
3468 * mips-tdep.c (mips_gdbarch_init): Do not set
3469 deprecated_max_register_raw_size, register_virtual_size, and
3470 deprecated_max_register_virtual_size.
3472 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3474 * i386-tdep.c: Include "dwarf2-frame.h".
3475 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
3476 * Makefile.in (i386-tdep.o): Update dependencies.
3478 * dwarf2-frame.c, dwarf2-frame.h: New files.
3479 * Makefile.in (SFILES): Add dwarf2-frame.c.
3480 (dwarf2_frame_h): Define.
3481 (COMMON_OBS): Add dwarf2-frame.o.
3482 (dwarf2-frame.o): Add dependencies.
3484 2003-05-31 Andreas Jaeger <aj@suse.de>
3486 * x86-64-linux-nat.c: Fix comment.
3488 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3490 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
3493 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
3494 have a sigcontext_addr handler.
3495 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
3496 sigcontext_addr handler.
3498 2003-05-31 Andrew Cagney <cagney@redhat.com>
3500 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
3501 (print_fp_register_row): Replace do_fp_register_row.
3502 (mips_print_fp_register): Add "file" and "frame" parameters.
3503 (mips_print_register): Add "file" and "frame" parameters.
3504 (mips_print_registers_info): Replace mips_do_registers_info.
3505 (mips_gdbarch_init): Set print_registers_info instead of
3506 deprecated_do_registers_info.
3507 (mips_read_fp_register_single): Add "frame" parameter.
3508 (mips_read_fp_register_double): Add "frame" parameter.
3510 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3512 * i386-tdep.c (i386_register_name): Check for MMX registers first.
3513 Fixes a bug where GDB would print the wrong register names for
3514 targets without SSE.
3516 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
3517 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3520 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
3521 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
3522 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3525 From Michal Ludvig <mludvig@suse.cz>:
3526 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
3528 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3529 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3530 I386_ST0_REGNUM): Move here from...
3531 * i386-tdep.c: ... here.
3532 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
3533 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3534 registers if possible.
3535 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
3536 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
3538 (i386bsd_sc_reg_offset): New variable.
3539 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
3540 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3542 (i386fbsd_sc_reg_offset): New variable.
3543 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
3545 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
3547 (i386fbsd4_sc_reg_offset): New variable.
3548 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
3549 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3551 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
3552 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
3553 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
3555 (i386nbsd_sc_reg_offset): New variable.
3556 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
3557 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3559 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
3561 (i386obsd_sc_reg_offset): New variable.
3562 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
3563 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3565 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
3566 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
3567 for frame pointer offset in `struct sigcontext'.
3569 2003-05-31 Andrew Cagney <cagney@redhat.com>
3571 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
3572 architecture methods call_dummy_words, sizeof_call_dummy_words,
3573 push_return_address, store_struct_return, and fix_call_dummy. Set
3574 push_dummy_call instead of deprecated_push_arguments.
3575 (mips_store_struct_return): Delete function.
3576 (mips_fix_call_dummy): Delete function.
3577 (mips_push_return_address): Delete function.
3578 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
3579 RA_REGNUM and T9_REGNUM.
3580 (mips_n32n64_push_dummy_call): Ditto for
3581 mips_n32n64_push_arguments.
3582 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
3583 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
3585 2003-05-31 Andrew Cagney <cagney@redhat.com>
3587 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
3588 "dummy_addr" to "bp_addr".
3589 * infcall.c (call_function_by_hand): Pass "funaddr" to
3590 gdbarch_push_dummy_call.
3591 * gdbarch.h, gdbarch.c: Re-generate.
3592 * i386-tdep.c (i386_push_dummy_call): Update.
3593 * arm-tdep.c (arm_push_dummy_call): Update.
3594 * d10v-tdep.c (d10v_push_dummy_call): Update.
3596 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3598 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
3599 variable declarations.
3600 (x86_64_register_number, x86_64_register_name): Remove prototypes.
3601 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
3602 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
3603 x86_64_init_frame_pc, x86_64_init_frame_pc,
3604 x86_64_function_has_prologue): Remove prototypes.
3605 (X86_64_NUM_GREGS): New define.
3606 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
3607 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
3608 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
3609 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
3610 XMM1_REGNUM): Remove defines.
3611 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
3612 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
3613 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
3614 X86_64_XMM1_REGNUM): New defines.
3615 (struct x86_64_register_info): Renamed from `struct
3616 register_info'. Remove `size' member.
3617 (x86_64_register_info_table): Remove variable.
3618 (x86_64_register_info): New variable.
3619 (X86_64_NUM_REGS): New define.
3620 (X86_64_NUM_GREGS): Remove define.
3621 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
3622 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
3624 (x86_54_dwarf2_reg_to_regnum): Remove function.
3625 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
3626 (x86_64_dwarf_reg_to_regnum): New function.
3627 (x86_64_register_name): Rewrite.
3628 (x86_64_register_raw_size): Remove function.
3629 (x86_64_register_byte_table): Remove variable.
3630 (x86_64_register_byte): Remove function.
3631 (x86_64_register_virtual_type): Remove function.
3632 (x86_64_register_type): New function.
3633 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
3634 x86_64_register_convert_to_raw): Remove functions.
3635 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
3636 (x86_64_use_struct_convention): Make static. Adjust for renamed
3638 (x86_64_frame_init_saved_regs): Remove function.
3639 (x86_64_push_arguments): Make static. Change to accept a regcache
3641 (x86_64_store_return_value, x86_64_extract_return_value): Make
3642 static. Rewrite based on i386 counterparts.
3643 (x86_64_push_dummy_call): New function.
3644 (X86_64_NUM_SAVED_REGS): New define.
3645 (x86_64_register_number): Remove function.
3646 (x86_64_store_struct_return): Remove function.
3647 (x86_64_frameless_function_invocation,
3648 x86_64_function_has_prologue): Remove functions.
3649 (PROLOG_BUFSIZE): Remove define.
3650 (struct x86_64_frame_cache): New structure.
3651 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
3652 x86_64_frame_cache, x86_64_frame_this_id,
3653 x86_64_frame_prev_register, x86_64_frame_p,
3654 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
3655 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
3657 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
3659 (x86_64_skip_prologue): Rewrite in terms of
3660 x86_64_analyze_prologue.
3661 (x86_64_frame_base_address): New function.
3662 (x86_64_frame_base): New variable.
3663 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
3664 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
3665 set deprecated_fp_regnum, deprecated_register_size,
3666 deprecated_register_bytes, register_raw_size, register_byte,
3667 register_virtual_type, register_convertiable,
3668 register_convert_to_virtual, convert_to_raw,
3669 deprecated_get_saved_register, deprecated_target_read_fp,
3670 deprecated_push_arguments, deprecated_push_return_address,
3671 deprecated_pop_frame, deprecated_store_struct_return,
3672 deprecated_frame_init_saved_regs, deprecated_frame_chain,
3673 frameless_function_invocation, deprecated_frame_saved_pc,
3674 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
3675 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
3676 deprecated_init_frame_pc and virtual_frame_pointer. Call
3677 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
3678 and x86_64_frame_p. Call frame_base_set_default to register
3680 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
3681 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
3682 (_initialize_x86_64_tdep): Remove function.
3683 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
3684 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
3685 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
3687 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
3688 (x86_64_linux_sigcontext_addr): Rewrite.
3689 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
3690 x86_64_linux_frame_saved_pc): Remove functions.
3691 (x86_64_linux_pc_in_sigtramp): Renamed from
3692 x86_64_linux_in_sigtramp. Try harder to recognize a signal
3694 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
3696 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
3697 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3698 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
3699 (x86_64_regmap): Rename to regmap.
3700 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
3702 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
3704 (x86_64_fxsave_offset): Remove function.
3705 (supply_fpregset): Simply call x86_64_supply_fxsave.
3706 (fill_fpregset): Simply call x86_64_fill_fxsave.
3707 (fetch_inferior_registers, store_inferior_registers): Avoid
3708 asignment in if-statement.
3709 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
3710 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
3711 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
3712 (fetch_core_registers): Remove function.
3713 (linux_elf_core_fns): Remove.
3714 (offsetoff): Don't define.
3715 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
3716 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
3717 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
3719 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
3720 protection against multiple includes instead of NM_X86_64_h. Add
3721 various comments. Include "config/nm-linux.h". Don't include
3723 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
3724 GET_THREAD_SIGNALS): Remove defines.
3725 (x86_64_register_u_addr, kernel_u_size,
3726 lin_thread_get_thread_signals): Remove prototypes.
3727 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
3728 [HAVE_LINK_H]: Don't include "solib.h".
3729 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
3730 * config/i386/tm-x86-64linux.h: Fix comments.
3731 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
3732 x86-64-tdep.o): Update dependencies.
3734 2003-05-30 Andrew Cagney <cagney@redhat.com>
3736 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
3737 Change parameter type to a "struct regcache *".
3739 * gdbarch.sh: Regardless of the multi-arch level, always define
3740 the macro when not already defined.
3741 * gdbarch.h, gdbarch.c: Re-generate.
3743 2003-05-30 Richard Henderson <rth@redhat.com>
3745 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
3746 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
3747 (alpha_mdebug_frame_this_id): Likewise.
3748 (alpha_mdebug_frame_prev_register): Likewise.
3749 (alpha_mdebug_frame_base_address): Likewise.
3750 (alpha_mdebug_frame_locals_address): Likewise.
3751 (alpha_mdebug_frame_args_address): Likewise.
3752 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
3753 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
3754 (alpha_heuristic_frame_unwind_cache): Make static; add missing
3756 (alpha_heuristic_frame_this_id): Make static.
3757 (alpha_heuristic_frame_prev_register): Likewise.
3758 (alpha_heuristic_frame_base_address): Likewise.
3759 * alpha-tdep.h: Update.
3761 2003-05-30 Mark Kettenis <kettenis@gnu.org>
3763 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
3764 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
3766 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
3767 * i386-tdep.c: Mark functions that are 64-bit safe as such.
3768 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3769 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3770 I386_ST0_REGNUM): New defines.
3771 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
3772 codestream_get): Remove define.
3773 (codestream_next_addr, condestream_addr, condestream_buf,
3774 codestream_off, codestream_cnt): Remove variables.
3775 (codestream_fill, codestream_seek, codestream_read): Remove
3777 (i386_follow_jump): Rewrite to avoid usage of removed codestream
3779 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
3780 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
3781 i386_frame_saved_pc, i386_saved_pc_after_call,
3782 i386_frame_num_args, i386_frame_init_saved_regs,
3783 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
3784 i386_push_arguments): Remove functions.
3785 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
3786 functionality. Use i386_analyze_prologue instead of
3787 i386_get_frame_setup.
3788 (I386_NUM_SAVED_REGS): New define.
3789 (struct i386_frame_cache): New structure.
3790 (i386_alloc_frame_cache, i386_analyze_struct_return,
3791 i386_skip_probe, i386_analyze_frame_setup,
3792 i386_analyze_register_saves, i386_analyze_prologue,
3793 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
3794 i386_frame_prev_register, i386_sigtramp_frame_cache,
3795 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
3796 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
3797 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
3799 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
3801 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
3802 I386_EAX_REGNUM and I386_EDX_REGNUM.
3803 (i386_extract_return_value, i386_store_return_value): Use
3804 I386_ST0_REGNUM where appropriate.
3805 (i386_extract_struct_value_address): Rewrite to use extract_address.
3806 (i386_svr4_pc_in_sigtramp): Add comment.
3807 (i386_svr4_sigcontext_addr): Rewrite.
3808 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
3810 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
3811 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
3812 of new defines. Set push_dummy_call, don't set
3813 deprecated_push_arguments, deprecated_push_return_address,
3814 deprecated_pop_frame. Don't set parm_boundary. Don't set
3815 deprecated_frame_chain, deprecated_frame_saved_pc,
3816 deprecated_saved_pc_after_call. Set unwind_dummy_id,
3817 save_dummy_frame_tos, unwind_pc. Call
3818 frame_unwind_append_predicate and frame_base_set_default. Don't
3819 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
3820 Don't set frameless_function_invocation. Don't set
3821 deprecated_register_bytes, deprecated_register_size,
3822 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
3823 * i386-linux-tdep.c: Fix formatting in some comments.
3824 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
3825 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
3826 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
3827 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
3828 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
3829 redundant parentheses.
3830 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
3831 (i386_linux_sigcontext_addr): Use it. Rewrite.
3832 (find_minsym_and_objfile): Change name of second argument.
3833 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
3834 changed. Use frame_pc_unwind instead of
3835 DEPRECATED_SAVED_PC_AFTER_CALL.
3836 (i386_linux_init_abi): Don't set deprecated_register_bytes.
3837 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
3838 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
3840 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
3842 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
3843 (_initialize_i386_cygwin_tdep): New prototype.
3844 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
3845 deprecated_frame_chain_valid.
3846 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
3847 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3848 Rely on the SVR4 defaults.
3849 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
3850 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
3852 2003-05-30 Andrew Cagney <cagney@redhat.com>
3854 * infcall.c (call_function_by_hand): Always call
3855 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
3857 2003-05-30 Richard Henderson <rth@redhat.com>
3859 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
3862 2003-05-29 Jim Blandy <jimb@redhat.com>
3864 Use gdbarch methods for solib stuff on PowerPC Linux.
3865 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
3866 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
3868 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3869 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
3870 giving the same effect as the #definitions above.
3872 2003-05-29 Adam Fedor <fedor@gnu.org>
3874 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
3875 (find_implementation_from_class): Replace it with the standard
3876 case i.e. do nothing.
3878 2003-05-29 Richard Henderson <rth@redhat.com>
3880 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
3881 (alpha_linux_sigtramp_offset): Use it. Make static.
3882 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
3883 update for new frame model.
3884 * alpha-mdebug-tdep.c: New file.
3885 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
3886 (alpha_osf1_init_abi): Install it.
3887 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
3888 (linked_proc_desc_table): Remove.
3889 (alpha_frame_past_sigtramp_frame): Remove.
3890 (alpha_dynamic_sigtramp_offset): Remove.
3891 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
3892 (alpha_proc_desc_is_dyn_sigtramp): Remove.
3893 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
3894 (push_sigtramp_desc): Remove.
3895 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
3896 (alpha_cannot_store_register): Likewise.
3897 (alpha_sigcontext_addr): Remove.
3898 (alpha_find_saved_regs): Remove.
3899 (alpha_frame_init_saved_regs): Remove.
3900 (alpha_init_frame_pc_first): Remove.
3901 (read_next_frame_reg): Remove.
3902 (alpha_frame_saved_pc): Remove.
3903 (alpha_saved_pc_after_call): Remove.
3904 (temp_proc_desc, temp_saved_regs): Remove.
3905 (alpha_about_to_return): Remove.
3906 (cached_proc_desc): Remove.
3907 (alpha_frame_chain): Remove.
3908 (alpha_print_extra_frame_info): Remove.
3909 (alpha_init_extra_frame_info): Remove.
3910 (alpha_frame_locals_address): Remove.
3911 (alpha_frame_args_address): Remove.
3912 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
3913 (alpha_push_dummy_frame): Remove.
3914 (alpha_pop_frame): Remove.
3915 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
3916 (alpha_read_insn): New.
3917 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
3918 for different insn encodings.
3919 (alpha_in_lenient_prologue): Remove.
3920 (struct alpha_sigtramp_unwind_cache): New.
3921 (alpha_sigtramp_frame_unwind_cache): New.
3922 (alpha_sigtramp_register_address): New.
3923 (alpha_sigtramp_frame_this_id): New.
3924 (alpha_sigtramp_frame_prev_register): New.
3925 (alpha_sigtramp_frame_unwind): New.
3926 (alpha_sigtramp_frame_p): New.
3927 (struct alpha_heuristic_unwind_cache): New.
3928 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
3929 don't count nop insns that occur between functions.
3930 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
3931 heuristic_proc_desc, but without the mdebug wrapping.
3932 (alpha_heuristic_frame_this_id): New.
3933 (alpha_heuristic_frame_prev_register): New.
3934 (alpha_heuristic_frame_unwind): New.
3935 (alpha_heuristic_frame_p): New.
3936 (alpha_heuristic_frame_base_address): New.
3937 (alpha_heuristic_frame_base): New.
3938 (alpha_unwind_dummy_id): New.
3939 (alpha_unwind_pc): New.
3940 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
3941 frame related deprecated initializations; install replacements.
3942 (alpha_dump_tdep): Remove.
3943 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
3944 (alpha_read_insn, alpha_after_prologue,
3945 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
3946 alpha_heuristic_frame_prev_register,
3947 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
3948 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3949 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
3950 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
3952 2003-05-29 Andrew Cagney <cagney@redhat.com>
3954 * gdb_assert.h (gdb_assert_fail): Provide different definitions
3955 dependant on the availability of ASSERT_FUNCTION.
3956 (ASSERT_FUNCTION): Do not define when there is no function name.
3958 2003-05-29 Kevin Buettner <kevinb@redhat.com>
3960 From Jimi X <jimix@watson.ibm.com>:
3961 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
3963 2003-05-28 Jim Blandy <jimb@redhat.com>
3965 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
3966 argument to ptrace to int; the system headers should give it the
3967 right type, and pointers don't fit in ints on powerpc64-*-*.
3969 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
3971 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
3974 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
3976 * stabsread.c (dbx_lookup_type): Make static.
3978 (add_undefined_type): Ditto.
3979 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
3982 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
3984 * hpread.c (hpread_has_name): Make static.
3985 (hpread_psymtab_to_symtab): Ditto.
3986 (file_exists): Ditto.
3987 (hpread_call_pxdb): Ditto.
3988 (hpread_pxdb_needed): Ditto.
3989 (hpread_quick_traverse): Ditto.
3990 (hpread_get_header): Ditto.
3991 (hpread_get_lntt): Ditto.
3992 (hpread_get_slt): Ditto.
3995 2003-05-25 Andreas Schwab <schwab@suse.de>
3997 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
3998 stack_align and deprecated_extra_stack_alignment_needed.
3999 (m68k_stack_align): Delete.
4001 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4002 (m68k_register_virtual_size): Likewise.
4003 (altos_skip_prologue): Remove obsolete function.
4004 (isi_frame_num_args): Likewise.
4005 (news_frame_num_args): Likewise.
4006 (m68k_fix_call_dummy): Make static.
4007 (m68k_push_dummy_frame): Likewise.
4008 (m68k_pop_frame): Likewise.
4009 (m68k_skip_prologue): Likewise.
4010 (m68k_frame_init_saved_regs): Likewise.
4011 (m68k_saved_pc_after_call): Likewise.
4012 (m68k_get_longjmp_target): Make multi-arch.
4013 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4014 structure. Register m68k_get_longjmp_target if enabled.
4015 * m68k-tdep.h (struct gdbarch_tdep): Define.
4016 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4018 * Makefile.in (config.status): Also depend on configure.tgt
4020 (m68klinux-tdep.o): Update dependencies.
4021 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4022 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4023 (M68K_LINUX_JB_PC): Define.
4024 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4025 and take additional parameter.
4026 (m68k_linux_sigtramp_saved_pc): Update.
4027 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4028 m68k_linux_pc_in_sigtramp, in_plt_section,
4029 find_solib_trampoline_target.
4030 * config/m68k/tm-linux.h: Don't include any tm headers.
4031 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4032 (JB_ELEMENT_SIZE): Likewise.
4034 (GET_LONGJMP_TARGET): Likewise.
4035 (IN_SIGTRAMP): Likewise.
4036 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4038 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4040 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4041 (sparc32_push_arguments): Re-implement by calling
4042 sparc32_do_push_arguments.
4044 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4046 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4047 SPARC_O1_REGNUM): New defines.
4048 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4049 (sparc32_store_return_value): New function.
4050 (sparc_extract_struct_value_address): Rewrite to operate on a
4052 (sparc_gdbarch_init): Don't set
4053 deprecated_extract_struct_value_address. Set
4054 extract_struct_value_address instead. Don't set
4055 deprecated_extract_return_value and deprecated_store_return_value
4056 for 32-bit targets. Set extract_return_value and
4057 store_return_value instead.
4058 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4059 DEPRECTAED_EXTRACT_RETURN_VALUE,
4060 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4061 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4062 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4063 (sparc_store_return_value): Remove prototype.
4064 (sparc32_store_return_value): New prototype.
4065 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4068 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4070 * sparcnbsd-tdep.c: Include "gdb_string.h".
4072 2003-05-23 Andrew Cagney <cagney@redhat.com>
4074 * p-valprint.c (pascal_val_print): Replace extract_address with
4075 the inline equivalent extract_unsigned_integer.
4076 * jv-valprint.c (java_value_print): Ditto.
4077 * ada-valprint.c (ada_val_print_1): Ditto.
4078 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4080 2003-05-23 Theodore A. Roth <troth@openavr.org>
4082 * blockframe.c (frameless_look_for_prologue): Remove unused
4083 after_prologue variable.
4085 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4087 * blockframe.c (get_pc_function_start): Rewrite to avoid
4088 asignments in if-statements.
4090 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4092 Committed by Elena Zannoni <ezannoni@redhat.com>.
4093 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4094 files, don't relocate absolute symbols (and do use mst_abs).
4096 2003-05-23 Andrew Cagney <cagney@redhat.com>
4098 * objc-lang.c: Include "gdb_assert.h".
4099 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4100 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4101 (gdb_check, gdb_check_fatal): Delete functions.
4102 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4104 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4105 * Makefile.in (objc-lang.o): Update dependencies.
4107 2003-05-22 Ian Lance Taylor <ian@airs.com>
4109 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4110 with fprintf_filtered, not fprintf_unfiltered.
4112 2003-05-22 Andrew Cagney <cagney@redhat.com>
4114 * stack.c (frame_info): Inline extract_address, replacing it with
4115 extract_unsigned_integer.
4116 * findvar.c (unsigned_pointer_to_address): Ditto.
4117 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4118 * dwarf2expr.c (dwarf2_read_address): Ditto.
4119 * frame.c (frame_pc_unwind): Update comment.
4120 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4122 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4124 * infptrace.c (detach): Call print_sys_errmsg rather than
4125 perror_with_name to issue warning message when errno is non-zero
4126 after calling ptrace detach.
4128 2003-05-21 J. Brobecker <brobecker@gnat.com>
4130 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4131 macro definitions from here...
4132 * hppa-tdep.c: ...to there.
4134 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4136 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4137 register_ptrace_addr(). Fix all callers.
4139 2003-05-21 Andreas Schwab <schwab@suse.de>
4141 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4143 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4145 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4146 (_initialize_m68k_linux_tdep): New function.
4147 (m68k_linux_frame_saved_pc): Make static.
4148 (m68k_linux_extract_return_value): Likewise.
4149 (m68k_linux_store_return_value): Likewise.
4150 (m68k_linux_extract_struct_value_address): Likewise.
4151 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4153 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4154 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4155 (DEPRECATED_FRAME_SAVED_PC): Remove.
4157 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4159 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4160 regset numbering rather than our own.
4162 2003-05-19 David Carlton <carlton@bactrian.org>
4164 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4166 2003-05-19 David Carlton <carlton@bactrian.org>
4168 Partial fix for PR c++/827.
4169 * cp-support.h: Include symtab.h.
4170 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4171 * cp-namespace.c: Update contributors.
4172 (cp_lookup_symbol_nonlocal): New.
4173 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4174 (lookup_symbol_file): Ditto.
4175 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4176 * block.h: Declare block_scope, block_using, block_global_block.
4177 * block.c (block_scope): New.
4178 (block_using, block_global_block): Ditto.
4179 * Makefile.in (cp_support_h): Depend on symtab_h.
4180 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4182 2003-05-19 David Carlton <carlton@bactrian.org>
4184 * language.h (struct language_defn): Add 'la_value_of_this'
4185 and 'la_lookup_symbol_nonlocal' members.
4186 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4187 lookup_symbol_static, lookup_symbol_global,
4188 lookup_symbol_aux_block.
4189 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4190 if we should search fields of this and how to do static/global
4192 (lookup_symbol_aux_block): Make extern.
4193 (basic_lookup_symbol_nonlocal): New.
4194 (lookup_symbol_static, lookup_symbol_global): Ditto.
4195 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4196 'la_lookup_symbol_nonlocal' members.
4197 * c-lang.c (c_language_defn, cplus_language_defn)
4198 (asm_language_defn, minimal_language_defn): Ditto.
4199 * jv-lang.c (java_language_defn): Ditto.
4200 * language.c (unknown_language_defn, auto_language_defn)
4201 (local_language_defn): Ditto.
4202 * m2-lang.c (m2_language_defn): Ditto.
4203 * objc-lang.c (objc_language_defn): Ditto.
4204 * scm-lang.c (scm_language_defn): Ditto.
4205 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4206 * p-lang.c (pascal_language_defn): Ditto for both.
4207 * Makefile.in (f-lang.o): Depend on value_h.
4210 2003-05-19 David Carlton <carlton@bactrian.org>
4212 * block.h: Declare block_static_block.
4213 * block.c (block_static_block): New.
4214 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4215 lookup_symbol_aux_local, calling block_static_block instead.
4216 (lookup_symbol_aux_local): Delete 'static_block' argument.
4218 2003-05-19 David Carlton <carlton@bactrian.org>
4220 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4222 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4224 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4225 register numbers mapping.
4227 2003-05-18 Adam Fedor <fedor@gnu.org>
4229 * symtab.c (completion_list_objc_symbol): New function.
4230 (make_symbol_completion_list): Use it to add ObjC symbols
4231 when looking though the list.
4232 (language_search_unquoted_string): New function.
4233 (make_file_symbol_completion_list): Use it.
4235 2003-05-18 Andreas Schwab <schwab@suse.de>
4237 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4239 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4240 as m68k_linux_extract_return_value.
4241 (DEPRECATED_STORE_RETURN_VALUE): Define as
4242 m68k_linux_store_return_value.
4243 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4244 m68k_linux_extract_struct_value_address.
4245 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4246 get_next_frame, get_frame_base, get_frame_pc.
4247 (m68k_linux_frame_saved_pc): Use get_frame_base.
4248 (m68k_linux_extract_return_value): New function.
4249 (m68k_linux_store_return_value): New function.
4250 (m68k_linux_extract_struct_value_address): New function.
4251 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4253 * c-exp.y (typebase): Remove duplicate occurence of
4254 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
4255 of lookup_signed_typename.
4257 2003-05-18 Mark Kettenis <kettenis@gnu.org>
4259 * dwarf2loc.c (find_location_expression): Change type of second
4260 argument to `size_t *'.
4261 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4264 2003-05-18 David Carlton <carlton@bactrian.org>
4266 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4267 'linkage_name'. Add comment.
4268 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4270 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4271 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4272 (lookup_block_symbol): Ditto.
4274 2003-05-16 Andrew Cagney <cagney@redhat.com>
4276 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4277 * gdbarch.h, gdbarch.c: Re-generate.
4278 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4279 * TODO (REGISTER_BYTES): Delete reference.
4280 * alpha-tdep.c (alpha_gdbarch_init): Update.
4281 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4282 * x86-64-tdep.c (x86_64_init_abi): Update.
4283 * vax-tdep.c (vax_gdbarch_init): Update.
4284 * v850-tdep.c (v850_gdbarch_init): Update.
4285 * sparc-tdep.c (sparc_gdbarch_init): Update.
4286 * sh-tdep.c (sh_gdbarch_init): Update.
4287 * s390-tdep.c (s390_gdbarch_init): Update.
4288 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4289 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4290 (ns32k_gdbarch_init_32382): Update.
4291 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4292 * mcore-tdep.c (mcore_gdbarch_init): Update.
4293 * m68k-tdep.c (m68k_gdbarch_init): Update.
4294 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4295 * ia64-tdep.c (ia64_gdbarch_init): Update.
4296 * i386-tdep.c (i386_gdbarch_init): Update.
4297 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4298 * hppa-tdep.c (hppa_gdbarch_init): Update.
4299 * h8300-tdep.c (h8300_gdbarch_init): Update.
4300 * frv-tdep.c (frv_gdbarch_init): Update.
4301 * cris-tdep.c (cris_gdbarch_init): Update.
4302 * avr-tdep.c (avr_gdbarch_init): Update.
4303 * arm-tdep.c (arm_gdbarch_init): Update.
4304 * sparc-tdep.c (sparc_pop_frame): Update.
4305 * rs6000-tdep.c (rs6000_pop_frame): Update.
4306 * remote.c (init_remote_state): Update.
4307 (remote_prepare_to_store): Update.
4308 * remote-vx.c (vx_prepare_to_store): Update.
4309 * remote-sds.c (sds_fetch_registers): Update.
4310 (sds_prepare_to_store): Update.
4311 * remote-array.c: Update.
4312 * regcache.c (init_legacy_regcache_descr): Update.
4313 (init_regcache_descr): Update.
4314 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4315 (mips_o64_extract_return_value): Update.
4316 * irix5-nat.c (fetch_core_registers): Update.
4317 * irix4-nat.c (fetch_core_registers): Update.
4318 * i386-tdep.h: Update.
4319 * hppa-tdep.c (pa_do_registers_info): Update.
4320 (pa_do_strcat_registers_info): Update.
4321 * cris-tdep.c (cris_register_bytes_ok): Update.
4322 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4323 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4324 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4325 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4326 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4327 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4328 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4329 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4330 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4331 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4332 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4333 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4334 (REGISTER_BYTES_OK): Update.
4335 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4336 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4338 2003-05-16 Ian Lance Taylor <ian@airs.com>
4340 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4341 (vax_print_insn, print_insn_arg): Remove static functions.
4342 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4343 print_insn_vax from opcodes library.
4344 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4346 2003-05-15 Andrew Cagney <cagney@redhat.com>
4348 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4349 * target.h (memory_breakpoint_from_pc): Delete declaration.
4350 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4351 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4352 * monitor.c (monitor_insert_breakpoint): Use
4353 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4354 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4355 * gdbarch.h, gdbarch.c: Re-generate.
4356 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4357 (sparc_gdbarch_init): Set breakpoint_from_pc to
4358 sparc_breakpoint_from_pc.
4359 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4360 (BREAKPOINT_FROM_PC): Define.
4361 (sparc_breakpoint_from_pc): Declare.
4362 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4363 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4364 (BREAKPOINT_FROM_PC): Define.
4365 (BREAKPOINT): Delete macro.
4366 * target.h: Update comment.
4367 * s390-tdep.c (s390_gdbarch_init): Update comments.
4368 * remote.c: Update comments.
4369 * remote-mips.c: Update comments.
4370 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4371 * mem-break.c: Update comment.
4372 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4373 (ia64_memory_insert_breakpoint): Update.
4374 * config/sparc/tm-sparc.h: Update comment.
4375 * config/pa/tm-hppa64.h: Update comment.
4376 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4377 (rs6000_breakpoint_from_pc): Update.
4378 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4379 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4380 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4381 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4382 (mips_breakpoint_from_pc): Update.
4383 (mips_dump_tdep): Update.
4385 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4386 * minsyms.c (lookup_minimal_symbol): Inline
4387 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4389 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4390 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4391 * p-lang.c (pascal_printstr): Ditto.
4392 * objc-lang.c (objc_printstr): Ditto.
4393 * m2-lang.c (m2_printstr): Ditto.
4394 * jv-valprint.c (java_print_value_fields): Ditto.
4395 * f-lang.c (f_printstr): Ditto.
4396 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4397 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4398 for repeat_count_threshold.
4399 * Makefile.in (cp-valprint.o): Update dependencies.
4401 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
4403 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4404 (examine_prologue): Support looking through leaf functions, knowing
4405 they start with mov r2,r12. Support skipping over indirect stores
4406 of the input registers. Upon hitting a non-nop branch instruction
4407 or predicated instruction, bail out by setting lim_pc to the current
4408 pc value in the loop. At the end, if the lim_pc value is still
4409 beyond our calculated value and we have trust_limit set,
4410 use the lim_pc value.
4412 2003-05-15 Andrew Cagney <cagney@redhat.com>
4414 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4415 generic_find_dummy_frame.
4416 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4417 (deprecated_generic_find_dummy_frame): Update.
4418 (deprecated_read_register_dummy): Update.
4419 * frame.c (deprecated_generic_get_saved_register): Update.
4421 2003-05-15 Theodore A. Roth <troth@openavr.org>
4423 * avr-tdep.c (avr_breakpoint_from_pc): New function.
4424 (avr_gdbarch_init): Set breakpoint_from_pc method.
4426 2003-05-15 Andrew Cagney <cagney@redhat.com>
4428 * regcache.c (build_regcache): Set deprecated_register_valid
4430 (deprecated_grub_regcache_for_register_valid): Delete function.
4431 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4434 2003-05-15 David Carlton <carlton@bactrian.org>
4436 Committed by Elena Zannoni <ezannoni@redhat.com>
4437 * symtab.c (lookup_symbol_aux): Delete calls to
4438 lookup_symbol_aux_minsyms.
4439 (lookup_symbol_aux_minsyms): Comment out function and
4440 prototype. Delete lookup by mangled name.
4442 2003-05-14 Kevin Buettner <kevinb@redhat.com>
4444 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4445 correctly indicate an empty stack and ``stack_allocated'' to the
4446 indicate the number of elements initially allocated.
4447 (dwarf_expr_grow_stack): Simplify method for computing new
4448 stack size. Don't loop infinitely if ``stack_len'' is zero.
4449 (execute_stack_op): Move ``ctx->in_reg'' initialization
4450 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4451 be used in conjuction with DW_OP_piece. Revise error message
4454 2003-05-14 Theodore A. Roth <troth@openavr.org>
4456 * MAINTAINERS: Update my email address.
4457 * avr-tdep.c: Ditto.
4459 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
4461 * symtab.h (enum domain_enum): Rename from namespace_enum.
4462 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4463 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4464 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4465 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4466 TYPES_NAMESPACE, METHODS_NAMESPACE.
4467 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4468 (struct symbol, struct partial_symbol): Rename field
4469 'namespace_enum namespace' to 'domain_enum domain'.
4470 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
4471 Delete old define kludge for namespace.
4473 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
4474 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
4475 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
4476 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
4477 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
4478 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
4479 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
4480 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
4481 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
4482 occurrences of the above.
4484 2003-05-14 Ian Lance Taylor <ian@airs.com>
4486 * Makefile.in (install-only): Use $(SHELL) when running
4489 2003-05-13 Ian Lance Taylor <ian@airs.com>
4491 * MAINTAINERS (write after approval): Add myself.
4493 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
4494 second and third arguments.
4495 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4496 * ser-unix.c (_initialize_ser_hardwire): Likewise.
4498 2003-05-13 Andrew Cagney <cagney@redhat.com>
4500 * defs.h (store_address): Delete declaration.
4501 findvar.c (store_address): Delete function.
4502 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
4503 store_unsigned_integer.
4504 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
4505 * v850-tdep.c (v850_push_arguments): Ditto.
4506 * sparc-tdep.c (sparc_get_saved_register): Ditto.
4507 * sh-tdep.c (sh64_get_saved_register): Ditto.
4508 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
4509 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
4510 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
4511 (mips_get_saved_register): Ditto.
4512 * ia64-tdep.c (ia64_get_saved_register): Ditto.
4513 (find_func_descr, ia64_push_arguments): Ditto.
4514 * i386-tdep.c (i386_push_arguments): Ditto.
4515 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4516 * frv-tdep.c (frv_push_arguments): Ditto.
4517 * frame.c (legacy_saved_regs_prev_register): Ditto.
4518 (deprecated_generic_get_saved_register): Ditto.
4519 * findvar.c (unsigned_address_to_pointer): Ditto.
4520 * dwarf2read.c (dwarf2_const_value): Ditto.
4521 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4522 * alpha-tdep.c (alpha_push_arguments): Ditto.
4524 2003-05-12 J. Brobecker <brobecker@gnat.com>
4526 * NEWS: Mention that the hppa-hpux port has been partially
4527 multiarched (32bit ABIT only, so far).
4529 2003-05-11 Andrew Cagney <cagney@redhat.com>
4531 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
4532 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
4533 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
4534 sim/testsuite/sim/arm/misaligned2.ms, and
4535 sim/testsuite/sim/arm/misaligned3.ms.
4536 * disasm.h (struct ui_file): Add opaque struct declaration.
4537 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
4538 * frame.h (struct ui_file): Ditto.
4540 2003-05-11 Mark Kettenis <kettenis@gnu.org>
4542 * value.h: Pretty print.
4544 2003-05-10 Mark Kettenis <kettenis@gnu.org>
4546 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
4548 2003-05-08 Andrew Cagney <cagney@redhat.com>
4550 * regcache.h (max_register_size): Delete declaration.
4551 * regcache.c (max_register_size): Delete function.
4552 (struct regcache_descr): Delete field "max_register_size".
4553 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
4554 registers fit in MAX_REGISTER_SIZE.
4555 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
4556 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
4557 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
4558 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
4559 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
4560 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
4561 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
4562 * dve3900-rom.c, hppa-tdep.c: Ditto.
4564 2003-05-08 David Carlton <carlton@math.stanford.edu>
4566 * valops.c (push_word): Fix typo.
4568 2003-05-08 Andrew Cagney <cagney@redhat.com>
4570 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
4571 * gdbarch.h: Re-generate.
4572 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
4573 (legacy_max_register_raw_size): Delete declaration.
4574 * regcache.c (legacy_max_register_raw_size): Delete function.
4575 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
4576 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
4577 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
4578 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
4579 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
4580 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
4581 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
4582 * findvar.c, dwarf2cfi.c: Ditto.
4584 2003-05-08 Andrew Cagney <cagney@redhat.com>
4586 * mips-tdep.c (read_signed_register): New function, moved to here
4588 (read_signed_register_pid): Ditto.
4589 * regcache.c (read_signed_register_pid): Delete function, moved to
4591 (read_signed_register): Ditto.
4592 * regcache.h (read_signed_register): Delete declaration.
4593 (read_signed_register_pid): Delete declaration.
4595 2003-05-08 Andrew Cagney <cagney@redhat.com>
4597 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
4598 * gdbarch.h: Re-generate.
4599 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
4600 (legacy_max_register_virtual_size): Delete declaration.
4601 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
4602 * d10v-tdep.c (d10v_print_registers_info): Ditto.
4603 * tracepoint.c (memrange_sortmerge): Ditto.
4604 * sparc-tdep.c (sparc_print_registers): Ditto.
4605 * regcache.c (legacy_max_register_virtual_size): Delete function.
4607 2002-05-08 J. Brobecker <brobecker@gnat.com>
4609 * fork-child.c (escape_bang_in_quoted_argument): New function.
4610 (fork_inferior): Escape '!' characters in quoted arguments
4613 2003-05-08 J. Brobecker <brobecker@gnat.com>
4615 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
4616 the language of the CU is not currently supported by GDB.
4618 2003-05-08 J. Brobecker <brobecker@gnat.com>
4620 * defs.h (language): Add language_minimal enum value.
4621 * c-lang.c (minimal_language_defn): New language definition.
4622 (_initialize_c_language): Add the new minimal language to the list
4623 of languages known to GDB.
4625 2003-05-08 Kevin Buettner <kevinb@redhat.com>
4627 * frame.c (get_frame_type): Don't attempt to lazily initialize
4628 frame's unwinder for legacy frames.
4630 2003-05-07 Andrew Cagney <cagney@redhat.com>
4632 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
4633 and "regcache" parameters.
4634 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
4636 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
4638 * dwarf2read.c (dwarf_decode_lines): Only use output of
4639 check_cu_functions() when calling record_line(). Do not update
4640 the current address.
4642 2003-05-07 Andrew Cagney <cagney@redhat.com>
4644 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
4647 2003-05-07 Jim Blandy <jimb@redhat.com>
4649 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
4650 'maint info symtabs' and 'maint info psymtabs'.
4651 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
4652 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
4653 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
4654 Declarations updated.
4655 * maint.c (maintenance_list_command): Delete.
4656 (_initialize_maint_cmds): Update calls to add_cmd.
4657 * gdbcmd.h (maintenancelistlist): Delete declaration.
4658 * cli/cli-cmds.c (maintenancelistlist): Delete.
4659 (init_cmd_lists): Don't initialize it.
4660 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
4662 2003-05-07 Andrew Cagney <cagney@redhat.com>
4664 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
4666 (d10v_print_registers_info): Update.
4667 (d10v_dmap_register, d10v_imap_register): Delete functions.
4668 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
4669 and "imap_register".
4670 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
4671 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
4672 * arch-utils.c (generic_remote_translate_xfer_address): Add
4673 "regcache" and "gdbarch" parameters.
4674 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
4675 parameter. Change class to multi-arch.
4676 * gdbarch.h, gdbarch.c: Re-generate.
4677 * remote.c (remote_xfer_memory): Use
4678 gdbarch_remote_translate_xfer_address.
4680 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
4682 * infrun.c (prev_pc): Move declaration ahead of proceed().
4683 (proceed): Refresh prev_pc value before resuming.
4684 (stop_stepping): Remove code to refresh prev_pc.
4686 2003-05-06 Kris Warkentin <kewarken@qnx.com>
4688 * nto-tdep.c: Removed stray comment.
4690 2003-05-06 Kris Warkentin <kewarken@qnx.com>
4692 * i386-nto-tdep.c: Fix old K&R function definitions.
4693 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
4694 Also change add_show_from_set() call to add_setshow_cmd().
4695 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
4697 2003-05-05 Andrew Cagney <cagney@redhat.com>
4699 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
4700 (fprint_dummy_frames): New function.
4701 (maintenance_print_dummy_frames): New function.
4702 (_initialize_dummy_frame): Add command "maint print dummy-frames".
4703 * frame.c (fprint_frame_id): Make global.
4704 * frame.h (fprint_frame_id): Declare.
4705 * Makefile.in (dummy-frame.o): Update dependencies.
4707 2003-05-05 Andrew Cagney <cagney@redhat.com>
4709 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
4710 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
4711 SIZEOF_CALL_DUMMY_WORDS.
4712 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
4713 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
4714 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
4715 CALL_DUMMY_BREAKPOINT_OFFSET.
4716 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
4717 CALL_DUMMY_START_OFFSET.
4718 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
4719 * gdbarch.h, gdbarch.c: Re-generate.
4720 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
4721 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
4722 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
4723 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
4724 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
4725 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
4726 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
4727 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
4728 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
4729 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
4730 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
4731 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
4732 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
4733 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
4734 * config/sparc/tm-sparc.h: Update.
4736 2003-05-05 Kris Warkentin <kewarken@qnx.com>
4738 * configure.tgt: Add i[3456]86-*-nto*.
4739 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
4740 * nto-tdep.c: New file. Neutrino target support routines.
4741 * nto-tdep.h: New file. Neutrino target header.
4742 * config/tm-qnxnto.h: New file.
4743 * config/i386/i386nto.mt: New file.
4744 * config/i386/tm-i386nto.h: New file.
4746 2003-05-04 Andrew Cagney <cagney@redhat.com>
4748 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
4749 (load_infrun_state): Ditto.
4750 (struct thread_info): Drop "prev_func_name" field.
4751 * thread.c (load_infrun_state): Update.
4752 (save_infrun_state): Update.
4753 * infrun.c (prev_func_name): Delete variable.
4754 (init_wait_for_inferior): Do not clear prev_func_name.
4755 (stop_stepping, keep_going, context_switch): Do not swap
4757 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
4758 instead of PC_IN_SIGTRAMP.
4760 2003-05-04 Andrew Cagney <cagney@redhat.com>
4762 * sentinel-frame.c (sentinel_frame_prev_register): Replace
4763 REGISTER_BYTE with register_offset_hack.
4764 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
4765 that REGISTER_BYTE is consistent with the regcache.
4766 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
4767 * gdbarch.h, gdbarch.c: Regenerate.
4769 2003-05-04 Mark Kettenis <kettenis@gnu.org>
4771 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
4772 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
4774 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
4776 2003-05-03 J. Brobecker <brobecker@gnat.com>
4778 From Thierry Schneider <tpschneider1@yahoo.com>
4779 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
4780 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
4781 (mi-cmd-symbol.o): Add rule.
4783 2003-05-03 Andrew Cagney <cagney@redhat.com>
4785 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
4786 comments noteing that it replaces the old FIX_CALL_DUMMY code.
4787 * gdbarch.h, gdbarch.c: Re-generate.
4788 * d10v-tdep.c (d10v_push_dummy_code): New function.
4789 (d10v_gdbarch_init): Set push_dummy_code.
4790 * infcall.c (legacy_push_dummy_code): New function.
4791 (generic_push_dummy_code): New function.
4792 (push_dummy_code): New function.
4793 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
4794 instead of dummy_addr, to push_dummy_call. Move call to
4795 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
4797 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
4799 2003-05-03 Andrew Cagney <cagney@redhat.com>
4801 * disasm.h (print_insn): Declare.
4802 * disasm.c (init_gdb_disassemble_info): New function.
4803 (gdb_disassembly): Call init_gdb_disassemble_info.
4804 (gdb_print_insn): New function.
4805 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
4806 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
4807 * mcore-tdep.c: Include "disasm.h"
4808 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
4809 * d10v-tdep.c: Include "disasm.h".
4810 (display_trace): Call gdb_print_insn, instead of print_insn.
4811 (print_insn): Delete function.
4812 * printcmd.c: Include "disasm.h".
4813 (print_insn): Delete function.
4814 (print_formatted): Call gdb_print_insn, instead of print_insn.
4815 * Makefile.in (printcmd.o): Update dependencies.
4816 (mcore-tdep.o, d10v-tdep.o): Ditto.
4818 2003-05-02 Andrew Cagney <cagney@redhat.com>
4820 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
4821 PC_REGNUM, re-indent.
4822 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
4823 PC_REGNUM isn't set.
4825 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
4826 * gdbarch.h, gdbarch.c: Re-generate.
4827 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
4828 register_virtual_size, pc_regnum, or register_bytes.
4829 (D10V_PC_REGNUM): Rename _PC_REGNUM.
4830 (d10v_register_type): Use D10V_PC_REGNUM.
4831 (d10v_print_registers_info, d10v_read_pc): Ditto.
4832 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
4833 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
4835 2003-05-02 David Carlton <carlton@bactrian.org>
4837 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
4838 the name with mstrsave.
4840 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
4842 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
4843 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
4844 (host_charset_name, target_charset_name): New vars for use by
4846 (host_charset_enum, target_charset_enum): New enums for set/show
4848 (set_charset_sfunc, set_host_charset_sfunc,
4849 set_target_charset_sfunc): New functions.
4850 (set_host_charset, set_target_charset): Make static.
4851 (list_charsets, set_host_charset_command,
4852 set_target_charset_command): Delete functions.
4853 (show_charset_command): Rewrite as....
4854 (show_charset): Hook this up with the set/show command mechanism.
4855 (_initialize_charset): Change names of charsets to match the
4856 set/show enums. Use host_charset_name and target_charset_name.
4857 Use set/show mechanism for charset, host-charset, target-charset
4858 commands. Do not make 'show host-charset' and 'show
4859 target-charset' be aliases of 'show charset'.
4861 * charset.h (set_host_charset, set_target_charset): Don't export,
4862 they are not used outside the file.
4864 2003-05-01 Andrew Cagney <cagney@redhat.com>
4866 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
4867 (gdb_disassembly): Make "di" non static, always initialize and
4868 cleanup. Always use dis_asm_read_memory.
4869 (gdb_dis_asm_read_memory): Delete function.
4871 2003-05-01 Andrew Cagney <cagney@redhat.com>
4873 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
4874 (d10v_gdbarch_init): Set frame_align instead of stack_align.
4876 2003-04-30 Andrew Cagney <cagney@redhat.com>
4878 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
4879 "tm_print_insn_info".
4880 (TARGET_PRINT_INSN_INFO): Delete macro.
4881 (dis_asm_read_memory): Delete function declaration.
4882 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4883 (tm_print_insn_info): Delete variable definition.
4884 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
4885 * gdbarch.h, gdbarch.c: Re-generate.
4886 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
4887 "deprecated_tm_print_insn_info".
4888 * mcore-tdep.c (mcore_dump_insn): Ditto.
4889 * mips-tdep.c (mips_gdbarch_init): Ditto.
4890 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
4891 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
4892 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
4893 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
4894 instead of TARGET_PRINT_INSN_INFO, add comment.
4895 * s390-tdep.c (s390_get_frame_info): Instead of
4896 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
4897 (s390_check_function_end, s390_is_sigreturn): Ditto.
4898 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
4899 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4900 * disasm.c: Include "gdbcore.h".
4901 (_initialize_disasm): New function, initialize
4902 "deprecated_tm_print_insn_info".
4903 (deprecated_tm_print_insn_info): New variable.
4904 (dis_asm_read_memory): Moved from "corefile.c", made static.
4905 (dis_asm_print_address, dis_asm_memory_error): Ditto.
4906 * Makefile.in (disasm.o): Update dependencies.
4908 2003-04-30 Andrew Cagney <cagney@redhat.com>
4910 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
4912 2003-04-29 Adam Fedor <fedor@gnu.org>
4914 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
4915 * infcall.c (find_function_addr): Make non-static.
4916 * infcall.h (find_function_addr): Declare.
4917 * Makefile.in (eval.o): Update dependencies.
4919 2003-04-28 Adam Fedor <fedor@gnu.org>
4921 * symtab.c (symbol_find_demangled_name): Check for and demangle
4923 (symbol_init_demangled_name): Init for language_objc as well.
4925 2003-04-28 Andrew Cagney <cagney@redhat.com>
4927 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
4928 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
4929 * gdbarch.h, gdbarch.c: Re-generate.
4930 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
4931 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
4932 * inferior.h (deprecated_read_fp): Rename read_fp.
4933 (generic_target_read_fp): Delete declaration.
4934 * regcache.c (generic_target_read_fp): Delete function.
4935 (deprecated_read_fp): Replace read_fp, use
4936 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
4937 * d10v-tdep.c (d10v_read_fp): Delete function.
4938 (d10v_gdbarch_init): Do not set deprecated_read_fp.
4940 * sparc-tdep.c (sparc_gdbarch_init): Do not set
4941 deprecated_target_read_fp to generic_target_read_fp.
4942 * sh-tdep.c (sh_gdbarch_init): Ditto.
4943 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4944 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4945 * frv-tdep.c (frv_gdbarch_init): Ditto.
4947 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
4948 deprecated_fp_regnum.
4949 * x86-64-tdep.c (x86_64_init_abi): Ditto.
4950 * vax-tdep.c (vax_gdbarch_init): Ditto.
4951 * v850-tdep.c (v850_gdbarch_init): Ditto.
4952 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4953 * sh-tdep.c (sh_gdbarch_init): Ditto.
4954 * s390-tdep.c (s390_gdbarch_init): Ditto.
4955 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4956 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4957 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4958 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4959 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4960 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4961 * i386-tdep.c (i386_gdbarch_init): Ditto.
4962 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4963 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4964 * frv-tdep.c (frv_gdbarch_init): Ditto.
4965 * cris-tdep.c (cris_gdbarch_init): Ditto.
4966 * avr-tdep.c (avr_gdbarch_init): Ditto.
4967 * arm-tdep.c (arm_gdbarch_init): Ditto.
4968 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4970 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
4971 * v850-tdep.c (v850_gdbarch_init): Ditto.
4972 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4973 * sh-tdep.c (sh_gdbarch_init): Ditto.
4974 * s390-tdep.c (s390_gdbarch_init): Ditto.
4975 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4976 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4977 * mips-tdep.c (mips_gdbarch_init): Ditto.
4978 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4979 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4980 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4981 * frv-tdep.c (frv_gdbarch_init): Ditto.
4982 * avr-tdep.c (avr_gdbarch_init): Ditto.
4983 * arm-tdep.c (arm_gdbarch_init): Ditto.
4985 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
4986 DEPRECATED_FP_REGNUM.
4987 (vax_push_dummy_frame, vax_pop_frame): Ditto.
4988 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
4989 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
4990 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
4991 (sparc32_register_virtual_type): Ditto.
4992 * sh-tdep.c (sh64_frame_chain): Ditto.
4993 (sh64_get_saved_register, sh64_pop_frame): Ditto.
4994 (sh_nofp_frame_init_saved_regs): Ditto.
4995 (sh64_nofp_frame_init_saved_regs): Ditto.
4996 (sh_fp_frame_init_saved_regs): Ditto.
4997 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4998 * remote-e7000.c (fetch_regs_from_dump): Ditto.
4999 * procfs.c (procfs_fetch_registers): Ditto.
5000 (procfs_store_registers): Ditto.
5001 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5002 (store_inferior_registers, fetch_core_registers): Ditto.
5003 (fetch_kcore_registers, clear_regs): Ditto.
5004 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5005 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5006 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5007 * nlm/i386.c (do_status): Ditto.
5008 * mipsv4-nat.c (supply_gregset): Ditto.
5009 * mips-tdep.c: Ditto for comments.
5010 * mips-nat.c (fetch_inferior_registers): Ditto.
5011 (store_inferior_registers, fetch_core_registers): Ditto.
5012 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5013 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5014 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5015 (i386_do_pop_frame, i386_register_type): Ditto.
5016 * hppa-tdep.c (hppa_frame_chain): Ditto.
5017 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5018 (hppa_pop_frame, hppa_read_fp): Ditto.
5019 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5020 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5021 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5022 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5023 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5024 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5025 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5026 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5027 * blockframe.c: Ditto for comments.
5028 * arch-utils.h: Ditto for comments.
5029 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5030 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5031 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5032 * alpha-tdep.h: Ditto for comments.
5033 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5034 (alpha_cannot_store_register): Ditto.
5035 (alpha_push_dummy_frame): Ditto.
5036 * alpha-nat.c (supply_gregset): Ditto.
5038 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5039 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5040 * config/sparc/tm-sparc.h: Update comment.
5042 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5043 deprecated_read_fp instead of TARGET_READ_FP.
5044 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5045 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5046 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5047 deprecated_read_fp instead of read_fp.
5048 * s390-tdep.c (s390_push_arguments): Ditto.
5049 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5050 * frame.h: Ditto in comments.
5051 * frame.c (legacy_get_prev_frame): Ditto.
5052 * dummy-frame.c (dummy_frame_this_id): Ditto.
5053 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5055 2003-04-28 Andrew Cagney <cagney@redhat.com>
5057 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5058 * gdbarch.h, gdbarch.c: Re-generate.
5059 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5060 * vax-tdep.c (_initialize_vax_tdep): Update.
5061 * v850-tdep.c (_initialize_v850_tdep): Update.
5062 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5063 * s390-tdep.c (_initialize_s390_tdep): Update.
5064 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5065 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5066 * mips-tdep.c (_initialize_mips_tdep): Update.
5067 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5068 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5069 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5070 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5071 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5072 * frv-tdep.c (_initialize_frv_tdep): Update.
5073 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5074 (_initialize_cris_tdep): Update.
5075 * arch-utils.c (legacy_print_insn): Update.
5076 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5078 2003-04-26 Adam Fedor <fedor@gnu.org>
5080 * linespec.c (decode_objc): New function to decode ObjC calls
5081 (decode_line_1): Check for ObjC calls (using decode_objc)
5082 * Makefile (linespec.o): Update dependencies.
5084 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5086 * breakpoint.h (struct breakpoint_ops): New.
5087 (struct breakpoint): Add ops member.
5089 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5090 (mention): Use new breakpoint ops member.
5091 (set_raw_breakpoint): Initialize ops field to NULL.
5092 (print_exception_catchpoint, print_one_exception_catchpoint)
5093 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5094 (gnu_v3_exception_catchpoint_ops): New.
5095 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5097 2003-04-25 Adam Fedor <fedor@gnu.org>
5099 * Makefile.in (COMMON_OBS): Add objc-lang.o
5101 2003-04-25 Andrew Cagney <cagney@redhat.com>
5103 * d10v-tdep.c (print_insn): Delete function.
5104 (display_trace): Use TARGET_PRINT_INSN.
5105 (_initialize_d10v_tdep): Do not set tm_print_insn.
5106 (d10v_gdbarch_init): Set print_insn.
5108 2003-04-25 Andrew Cagney <cagney@redhat.com>
5110 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5111 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5112 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5113 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5114 (nr_dmap_regs, a0_regnum): ... new functions.
5115 (d10v_print_registers_info): Use a0_regnum, use register_size.
5116 (d10v_register_byte): Delete function.
5117 (d10v_register_raw_size): Delete function.
5118 (d10v_register_type): Use a0_regnum.
5119 (d10v_print_registers_info): Use a0_regnum.
5120 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5121 (d10v_gdbarch_init): Do not set register_byte or
5122 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5123 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5125 (trace_command): Use XCALLOC.
5126 (print_insn): Delete reference to tm_print_insn.
5127 (saved_regs_unwinder): Use store_unsigned_integer instead of
5129 * frame.h (FRAME_OBSTACK_CALLOC): Define
5131 2003-04-25 David Carlton <carlton@bactrian.org>
5133 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5135 2003-04-24 Adam Fedor <fedor@gnu.org>
5137 * objc-lang.c: Include "valprint.h"
5138 * Makefile.in (objc-lang.o): Update dependencies.
5140 2003-04-24 Adam Fedor <fedor@gnu.org>
5142 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5143 architecture dependant compilation and mark as unimplemented
5144 (until they get put in the gdbarch vector).
5146 2003-04-23 David Carlton <carlton@bactrian.org>
5148 * cp-support.c (cp_find_first_component): Accept 'operator' in
5151 2003-04-23 Andrew Cagney <cagney@redhat.com>
5153 * infcall.c (call_function_by_hand): Eliminate redundant
5154 indentation. Move "saved_async" and "old_cleanups" to where they
5157 2003-04-23 Andrew Cagney <cagney@redhat.com>
5159 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5160 and "buffer". Move the "name" code to where it is needed.
5162 2003-04-23 Andrew Cagney <cagney@redhat.com>
5164 * infcall.c (call_function_by_hand): Move variables "start_sp",
5165 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5166 code to ON_STACK switch branch.
5168 2003-04-23 Andrew Cagney <cagney@redhat.com>
5170 * infcall.c (call_function_by_hand): Make declaration of "i",
5171 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5174 2003-04-23 Andrew Cagney <cagney@redhat.com>
5176 * infcall.c (call_function_by_hand): Delete variable
5177 "n_method_args". Localize "param_type"'s declaration to the loop
5178 that it is used. Reinstate code assigning to said variable -
5179 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5180 Rationalize code using "param_type".
5182 2003-04-22 Andrew Cagney <cagney@redhat.com>
5184 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5185 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5186 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5187 to DEPRECATED_PUSH_RETURN_ADDRESS.
5189 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5191 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5192 on the DWARF2 register number prior to fetching a register.
5194 2003-04-22 J. Brobecker <brobecker@gnat.com>
5196 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5197 Update all the tests using SOFT_FLOAT considering the fact that
5198 this macro was always set to 0.
5199 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5200 considering the fact that this macro was always set to 0.
5201 * hppa-tdep.h (hppa_store_return_value): Likewise.
5202 (hppa_extract_return_value): Likewise.
5204 2003-04-22 J. Brobecker <brobecker@gnat.com>
5206 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5207 the hppa-pro target only.
5209 2003-04-21 J. Brobecker <brobecker@gnat.com>
5211 Ongoing multi-arch conversion effort for HP/UX:
5212 * config/pa/tm-hppa.h: Move all macro that are no longer
5213 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5214 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5216 2003-04-21 J. Brobecker <brobecker@gnat.com>
5218 * config/pa/tm-hppa.h: Obsolete a section that was only used
5221 2003-04-21 J. Brobecker <brobecker@gnat.com>
5223 Ongoing multi-arch conversion for HP/UX.
5224 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5225 if already defined (allows hppa64 to stay non-multiarched for now).
5226 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5228 2003-04-21 Andrew Cagney <cagney@redhat.com>
5230 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5232 2003-04-21 Andrew Cagney <cagney@redhat.com>
5234 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5235 "i386_num_mmx_regs".
5237 2003-04-21 Andrew Cagney <cagney@redhat.com>
5239 * infcall.c: New file.
5240 * infcall.h: New file.
5241 * valarith.c: Include "infcall.h".
5242 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5243 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5244 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5245 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5246 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5247 (SFILES): Add "infcall.c"
5248 (COMMON_OBS): Add "infcall.o".
5249 (infcall.o): Specify dependencies.
5250 * value.h (call_function_by_hand): Delete declaration.
5251 * inferior.h (run_stack_dummy): Delete declaration.
5252 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5253 (run_stack_dummy): Move to "infcall.c", merged into
5254 call_function_by_hand.
5255 * valops.c (call_function_by_hand): Moved to "infcall.c".
5256 (find_function_addr, value_arg_coerce): Ditto.
5257 (unwindonsignal_p, coerce_float_to_double): Ditto.
5258 (_initialize_valops): Move "set/show coerce-float-to-double", and
5259 "set/show unwindonsignal" commands to "infcall.c".
5260 * v850-tdep.c, target.h: Update comments.
5261 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5262 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5263 (sh64_init_extra_frame_info): Update comments.
5264 * mn10300-tdep.c: Update comments.
5265 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5266 * config/sparc/tm-sparc.h: Update comments.
5267 * breakpoint.h: Update comments.
5268 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5269 * arm-tdep.c: Update comment.
5271 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5273 * i386-tdep.c (i386_num_register_names): New variable.
5274 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5275 (MM0_REGNUM): Remove redundant parentheses in define.
5276 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5277 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5278 i386_mxcsr_regnum_p): Remove redundant parentheses.
5279 (i386_register_name): Use i386_num_register_names.
5281 * i386-tdep.c (i386_extract_return_value,
5282 i386_store_return_value): Correct check for availability of
5283 floating-point registers.
5285 * i386-tdep.c (i386_frame_num_args): Remove function.
5286 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5288 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5289 mmx_regnum_to_fp_regnum. Adjust all callers.
5291 * i386-tdep.c (i386_get_longjmp_target): Use
5292 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5293 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5296 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5298 * core-regset.c: Update comments to reflect reality. Re-order
5300 (fetch_core_registers): Use switch instead of if. Remove
5301 redundant prototype.
5303 2003-04-18 Jim Blandy <jimb@redhat.com>
5305 * s390-tdep.c (s390_frame_align): New function.
5306 (s390_gdbarch_init): Register it with the gdbarch object.
5308 2003-04-17 Richard Henderson <rth@redhat.com>
5310 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5312 2003-04-17 Michael Snyder <msnyder@redhat.com>
5313 Karen Bennet <bennet@redhat.com>
5315 Committed by Elena Zannoni <ezannoni@redhat.com>
5316 * gdb_gcore.sh: New script to create a core dump of a process.
5318 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
5320 * values.c (value_being_returned): Don't fetch the return
5321 value if the return type is void.
5323 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5325 * thread-db.c: Reindented.
5327 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5329 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5330 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
5357 2003-04-16 Kevin Buettner <kevinb@redhat.com>
5359 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
5360 the size of ``long double'' to 16, instead of 8.
5362 2003-04-16 Mark Kettenis <kettenis@gnu.org>
5364 * i386-linux-nat.c: Add some whitespace to make things more
5366 (fetch_register, store_register, fetch_inferior_registers,
5367 store_inferior_registers): Get rid of assignment in if-statement.
5368 (store_register): Fix typo in error message.
5370 2003-04-16 Andrew Cagney <cagney@redhat.com>
5372 * utils.c (xmmalloc): Always allocate something, matches
5373 libiberty/xmalloc's semantics.
5374 (xmrealloc, xmcalloc): Ditto.
5376 2003-04-16 Andrew Cagney <cagney@redhat.com>
5378 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5380 (get_frame_type): Initialize unwind and type when needed.
5381 (get_frame_id, frame_register_unwind): Ditto.
5383 2003-04-16 Andrew Cagney <cagney@redhat.com>
5385 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5387 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5388 * sparcl-stub.c: Obsolete file.
5389 * config/sparc/tm-sparclet.h: Obsolete file.
5390 * sparclet-stub.c: Obsolete file.
5391 * sparclet-rom.c: Obsolete file.
5392 * sparcl-tdep.c: Obsolete file.
5393 * config/sparc/tm-sparclite.h: Obsolete file.
5394 * config/sparc/sparclite.mt: Obsolete file.
5395 * config/sparc/sparclet.mt: Obsolete file.
5396 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5397 sparc86x-*-* obsolete.
5399 2003-04-15 David Carlton <carlton@math.stanford.edu>
5401 * Makefile.in (SFILES): Add cp-namespace.c.
5402 (COMMON_OBS): Add cp-namespace.o.
5403 (block.o): Depend on gdb_obstack_h and cp_support_h.
5404 (buildsym.o): Depend on cp_support_h.
5405 (cp-namespace.o): New.
5406 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5407 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5408 (dwarf2read.o): Depend on cp_support_h.
5409 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5410 * dwarf2read.c (process_die): Set processing_has_namespace_info,
5411 processing_current_namespace.
5412 (read_namespace): Update processing_current_namespace; check for
5413 anonymous namespaces.
5414 (dwarf2_name): New function.
5415 (dwarf2_extension): Ditto.
5416 * cp-support.h: Update copyright, contributors.
5417 Add inclusion guards.
5418 Add opaque declaration for structs obstack, block, symbol.
5419 (struct using_direct): New struct.
5420 Add declarations for cp_find_first_component,
5421 cp_entire_prefix_len, processing_has_namespace_info,
5422 processing_current_namespace, cp_is_anonymous,
5423 cp_add_using_directive, cp_initialize_namespace,
5424 cp_finalize_namespace, cp_set_block_scope,
5425 cp_scan_for_anonymous_namespaces.
5426 * cp-namespace.c: New file.
5427 * cp-support.c: Update copyright.
5428 Include ctype.h, gdb_assert.h, gdbcmd.h.
5429 New variable maint_cplus_cmd_list.
5430 (cp_find_first_component): New function.
5431 (cp_entire_prefix_len, maint_cplus_command)
5432 (first_component_command, _initialize_cp_support): Ditto.
5433 * buildsym.c: Include cp-support.h.
5434 New variable using_list.
5435 (add_symbol_to_list): Check for anonymous namespaces.
5436 (finish_block): Set block's scope.
5437 (start_symtab): Initialize C++ namespace support.
5438 (end_symtab): Finalize C++ namespace support.
5439 * block.h: Add opaque declarations for structs
5440 block_namespace_info, using_direct, and obstack.
5441 Add declarations for block_set_scope and block_set_using.
5442 (struct block): Add 'language_specific' member.
5443 (BLOCK_NAMESPACE): New macro.
5444 * block.c: Include gdb_obstack.h and cp-support.h.
5445 (struct block_namespace_info): New struct.
5446 (block_set_scope): New function.
5447 (block_set_using, block_initialize_namespace): Ditto.
5449 2003-04-14 Kevin Buettner <kevinb@redhat.com>
5451 * solib-svr4.c (svr4_have_link_map_offsets): New function.
5452 (locate_base): Return early if there aren't any link map offsets.
5453 (svr4_solib_create_inferior_hook): Warn if shared library support
5456 2003-04-14 David Carlton <carlton@math.stanford.edu>
5458 * symtab.c (symbol_set_names): Add prefix when storing Java names
5459 in hash table. Fix for PR java/1039.
5461 2003-04-14 David Carlton <carlton@math.stanford.edu>
5463 * symtab.c (symbol_set_names): Rename 'name' arg to
5464 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5465 * symtab.h: Change 'name' argument in declaration of
5466 symbol_set_names to 'linkage_name'.
5467 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5469 2003-04-14 Andrew Cagney <cagney@redhat.com>
5471 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
5472 return the fully sign-extended register value.
5473 (get_frame_pointer): Ditto.
5474 (mips_pop_frame): Initialize "proc_desc" after checking for a
5477 2003-04-14 Andrew Cagney <cagney@redhat.com>
5479 * mips-tdep.c (mips_push_dummy_frame): Delete function.
5480 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
5481 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
5482 (mips_push_register): Delete function.
5483 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
5486 2003-04-14 Jim Blandy <jimb@redhat.com>
5488 * symmisc.c: #include "gdb_regex.h".
5489 (maintenance_list_symtabs, maintenance_list_psymtabs): New
5491 * maint.c (maintenance_list_command): New function.
5492 (_initialize_maint_cmds): Register the above as commands.
5493 * symtab.h (maintenance_list_symtabs,
5494 maintenance_list_psymtabs): New declarations.
5495 * cli/cli-cmds.c (maintenancelistlist): New variable.
5496 (init_cmd_lists): Initialize it.
5497 * cli/cli-cmds.h (maintenancelistlist): New declaration.
5498 * gdbcmd.h (maintenancelistlist): New declaration.
5499 * Makefile.in (symmisc.o): Update dependencies.
5501 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
5503 * s390-nat.c: Include asm/types.h for addr_t.
5505 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
5507 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
5508 actually incoming type.
5510 2003-04-13 Andrew Cagney <cagney@redhat.com>
5512 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
5513 get_next_frame and get_frame_saved_regs.
5515 2003-04-13 Andrew Cagney <cagney@redhat.com>
5517 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
5518 of gdbarch_num_regs.
5520 2003-04-13 Andrew Cagney <cagney@redhat.com>
5522 * frame.h: Mention what replaced what in "struct frame_info".
5523 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
5524 deprecated_update_frame_base_hack and
5525 deprecated_update_frame_pc_hack.
5526 * hppa-tdep.c: Ditto.
5528 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5530 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
5531 to read_reg and update its comment. Remove regnum member.
5532 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
5533 Don't call read_reg when setting in_reg. Call read_reg to get
5534 the frame base if it's in a register. Return the register number
5535 on the stack instead of in the context. Remove extra arguments
5537 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
5538 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
5539 the register number on the expression stack.
5540 (needs_frame_read_reg): Remove extra arguments.
5542 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5544 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
5546 (execute_stack_op): All callers updated.
5547 * dwarf2expr.h: Add prototype for dwarf2_read_address.
5548 * dwarf2loc.c (find_location_expression): New function.
5549 (dwarf_expr_frame_base): Call it.
5550 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
5551 (dwarf2_tracepoint_var_ref): New function, broken out from
5552 locexpr_tracepoint_var_ref.
5553 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
5555 (loclist_read_variable, loclist_read_needs_frame): New functions.
5556 (loclist_describe_location, loclist_tracepoint_var_ref): New
5558 (dwarf2_loclist_funcs): New struct location_funcs.
5559 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
5560 (struct dwarf2_locexpr_baton): Add comments.
5561 (dwarf2_loclist_funcs): New extern.
5562 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
5563 base_address and base_known.
5564 (dwarf_loc_buffer): New variable.
5565 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
5566 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
5567 (dwarf2_has_info): Initialize dwarf_loc_offset.
5568 (dwarf2_build_psymtabs): Read in .debug_loc.
5569 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
5571 (psymtab_to_symtab_1): Likewise. Move base address calculation
5573 (dwarf2_get_pc_bounds): ... here. Use the base address from
5575 (dwarf2_symbol_mark_computed): Handle location lists.
5577 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5579 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
5580 if the linkage name demangled successfully.
5582 2003-04-13 Mark Kettenis <kettenis@gnu.org>
5584 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
5585 disassmbly_flavour): Removed.
5587 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
5589 2003-04-13 Mark Kettenis <kettenis@gnu.org>
5591 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
5593 2003-04-12 Andrew Cagney <cagney@redhat.com>
5595 * frame.h (struct frame_info): Move definition from here ...
5596 * frame.c (struct frame_info): ... to here.
5598 2003-04-12 Andrew Cagney <cagney@redhat.com>
5600 * gdbthread.h (save_infrun_state): Delete parameter
5602 (struct thread_info): Delete field "prev_func_start".
5603 (load_infrun_state): Ditto.
5604 * thread.c (load_infrun_state, save_infrun_state): Update.
5605 * infrun.c (prev_func_start): Delete variable.
5606 (context_switch, init_wait_for_inferior): Update.
5607 (stop_stepping, keep_going): Update.
5609 2003-04-12 Andrew Cagney <cagney@redhat.com>
5611 * gdbarch.sh: Add missing opaque declarations.
5612 * gdbarch.h: Regnerate.
5613 * symtab.h: Add missing opaque declarations.
5614 * value.h, target.h, symfile.h, stabsread.h: Ditto.
5615 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
5616 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
5617 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
5618 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
5619 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
5620 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
5621 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
5622 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
5623 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
5624 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
5625 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
5626 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
5628 2003-04-11 Andrew Cagney <cagney@redhat.com>
5630 * frame.c (get_frame_id): Return this frame's "id".
5631 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
5633 (legacy_saved_regs_this_id): Replace function body with
5635 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
5636 FRAME_OBSTACK_ZALLOC.
5637 (create_new_frame): Mark the frame ID as valid.
5639 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
5641 * Makefile.in (libbfd_h): Added missing setting.
5642 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
5643 according to the selected ABI.
5645 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
5647 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
5649 2003-04-11 Andrew Cagney <cagney@redhat.com>
5651 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
5652 SAVED_PC_AFTER_CALL.
5653 * gdbarch.h, gdbarch.c: Regenerate.
5654 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5655 * x86-64-tdep.c (x86_64_init_abi): Update.
5656 * vax-tdep.c (vax_gdbarch_init): Update.
5657 * v850-tdep.c (v850_gdbarch_init): Update.
5658 * sparc-tdep.c (sparc_gdbarch_init): Update.
5659 * sh-tdep.c (sh_gdbarch_init): Update.
5660 * s390-tdep.c (s390_gdbarch_init): Update.
5661 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5662 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5663 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5664 * mips-tdep.c (mips_gdbarch_init): Update.
5665 * mcore-tdep.c (mcore_gdbarch_init): Update.
5666 * m68k-tdep.c (m68k_gdbarch_init): Update.
5667 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5668 * ia64-tdep.c (ia64_gdbarch_init): Update.
5669 (ia64_saved_pc_after_call): Update declaration.
5670 * i386ly-tdep.c (i386lynx_init_abi): Update.
5671 * i386-tdep.c (i386_gdbarch_init): Update.
5672 * hppa-tdep.c (hppa_gdbarch_init): Update.
5673 * h8300-tdep.c (h8300_gdbarch_init): Update.
5674 * frv-tdep.c (frv_gdbarch_init): Update.
5675 * cris-tdep.c (cris_gdbarch_init): Update.
5676 * avr-tdep.c (avr_gdbarch_init): Update.
5677 * arm-tdep.c (arm_gdbarch_init): Update.
5678 * alpha-tdep.c (alpha_gdbarch_init): Update.
5679 * ns32knbsd-nat.c (frame_num_args): Update.
5680 * ns32k-tdep.c (umax_frame_num_args): Update.
5681 * mips-tdep.c (mips_init_frame_pc_first): Update.
5682 * infrun.c (step_over_function): Update.
5683 * i386-linux-tdep.c (skip_hurd_resolver): Update.
5684 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
5685 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5686 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5687 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5688 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5689 * arm-linux-tdep.c (skip_hurd_resolver): Update.
5690 * arch-utils.c (init_frame_pc_default): Update.
5691 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
5692 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
5695 2003-04-11 Andrew Cagney <cagney@redhat.com>
5697 * i387-tdep.c: Update copyright.
5698 (i387_to_double): Delete function.
5699 (double_to_i387): Delete function.
5701 2003-04-10 Andrew Cagney <cagney@redhat.com>
5703 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
5704 frame's function's address. Simplify.
5705 (d10v_frame_unwind_cache): Check that the frame's function is
5708 2003-04-10 Jim Blandy <jimb@redhat.com>
5710 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
5711 call to set_gdbarch_deprecated_push_arguments.
5713 2003-04-10 Andrew Cagney <cagney@redhat.com>
5715 * frame.c (fprint_frame_id): New function.
5716 (fprint_frame_type, fprint_frame): New function.
5717 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
5718 (create_sentinel_frame, get_frame_id): Ditto.
5719 (frame_id_p, frame_id_eq): Ditto.
5720 (frame_id_inner, create_new_frame): Ditto.
5721 (legacy_get_prev_frame, get_prev_frame): Ditto.
5722 (deprecated_update_frame_pc_hack): Ditto.
5723 (frame_register_unwind): Ditto.
5724 (deprecated_update_frame_base_hack): Ditto.
5726 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
5728 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
5729 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
5730 frame_chain function.
5731 * Makefile.in: Add dependencies due to above change.
5733 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
5735 * blockframe.c (legacy_frame_chain_valid): Move call to
5736 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
5739 2003-04-09 Andrew Cagney <cagney@redhat.com>
5741 * frame.h (struct frame_id): Replace "pc" and "base" with
5742 "stack_addr" and "code_addr". Update comments.
5743 (frame_id_build): Update parameter names and comment.
5744 (struct frame_info): Replace "id_p" and "id" with "this_id".
5745 * dummy-frame.c (dummy_frame_this_id): Update.
5746 * breakpoint.c (print_one_breakpoint): Update.
5747 * frame.c (get_frame_id): Update.
5748 (get_frame_base, frame_id_build): Update.
5749 (create_sentinel_frame, legacy_get_prev_frame): Update.
5750 (deprecated_update_frame_base_hack): Update.
5751 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
5752 (frame_id_inner): Ditto.
5754 2003-04-09 Andrew Cagney <cagney@redhat.com>
5756 * defs.h (gdb_print_host_address): Make "addr" parameter a
5758 * utils.c (gdb_print_host_address): Update.
5760 2003-04-09 Kevin Buettner <kevinb@redhat.com>
5762 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
5763 register number for R0 is 0.
5765 2003-04-09 J. Brobecker <brobecker@gnat.com>
5767 * frame.h (struct gdbarch): Add opaque structure definition
5768 to avoid a compilation warning on LynxOS 4.0.
5770 2003-04-09 Andrew Cagney <cagney@redhat.com>
5772 * frame.h (struct frame_info): Delete field "pc". Replace
5773 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
5775 * frame.c (frame_pc_unwind): Update.
5776 (create_sentinel_frame): Do not set "pc".
5777 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
5778 (get_frame_pc): Call frame_pc_unwind.
5779 (deprecated_update_frame_pc_hack): Update.
5780 (create_new_frame): Use "pc" not "->pc".
5782 2003-04-09 Andrew Cagney <cagney@redhat.com>
5784 * frame.c (get_frame_id): Eliminate code updating "frame".
5785 (legacy_get_prev_frame): Ditto.
5786 (get_frame_base): Return id.base directly.
5787 (deprecated_update_frame_base_hack): Update "id.base".
5788 * frame.h (struct frame_info): Delete field "frame".
5790 2003-04-09 Andrew Cagney <cagney@redhat.com>
5792 * NEWS: Mention that the "Sequent family" is obsolete.
5793 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
5794 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5795 * configure.host: Obsolete i[3456]86-sequent-bsd*,
5796 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5797 * config/i386/tm-ptx4.h: Obsolete file.
5798 * config/i386/tm-ptx.h: Obsolete file.
5799 * symm-tdep.c: Obsolete file.
5800 * config/i386/symmetry.mt: Obsolete file.
5801 * config/i386/tm-symmetry.h: Obsolete file.
5802 * symm-nat.c: Obsolete file.
5803 * config/i386/nm-symmetry.h: Obsolete file.
5804 * config/i386/xm-symmetry.h: Obsolete file.
5805 * config/i386/symmetry.mh: Obsolete file.
5806 * config/i386/nm-ptx4.h: Obsolete file.
5807 * config/i386/ptx4.mh: Obsolete file.
5808 * config/i386/ptx.mt: Obsolete file.
5809 * config/i386/ptx.mh: Obsolete file.
5810 * config/i386/xm-ptx4.h: Obsolete file.
5811 * config/i386/xm-ptx.h: Obsolete file.
5813 2003-04-09 Andrew Cagney <cagney@redhat.com>
5815 Obsolete mips*-*-mach3*.
5816 * NEWS: Mention that mips*-*-mach3* is obsolete.
5817 * m3-nat.c: Obsolete file.
5818 * config/nm-m3.h: Obsolete file.
5819 * config/mips/tm-mipsm3.h: Obsolete file.
5820 * config/mips/mipsm3.mt: Obsolete file.
5821 * config/mips/mipsm3.mh: Obsolete file.
5822 * config/mips/xm-mipsm3.h: Obsolete file.
5823 * mipsm3-nat.c: Obsolete file.
5824 * configure.host: Obsolete mips-dec-mach3*.
5825 * configure.tgt: Obsolete mips*-*-mach3*.
5827 2003-04-09 Andrew Cagney <cagney@redhat.com>
5829 * doublest.h: Update copyright.
5830 (deprecated_store_floating, deprecated_extract_floating): Rename
5831 store_floating and extract_floating. Update comments.
5832 * doublest.c: Update copyright.
5833 (extract_floating_by_length): Replace extract_floating.
5834 (store_floating_by_length): Replace store_floating.
5835 (deprecated_extract_floating): New function.
5836 (deprecated_store_floating): New function.
5837 (extract_typed_floating): Call extract_floating_by_length.
5838 (store_typed_floating): Call store_floating_by_length.
5839 * x86-64-tdep.c (x86_64_store_return_value): Update.
5840 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
5841 (sh64_extract_return_value): Update.
5842 (sh_sh4_register_convert_to_virtual): Update.
5843 (sh_sh64_register_convert_to_virtual): Update.
5844 (sh_sh4_register_convert_to_raw): Update.
5845 (sh_sh64_register_convert_to_raw): Update.
5846 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
5847 (rs6000_register_convert_to_raw): Update.
5848 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
5849 (ia64_register_convert_to_raw): Update.
5850 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
5851 (REGISTER_CONVERT_TO_VIRTUAL): Update.
5852 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
5853 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
5854 (alpha_register_convert_to_raw): Update.
5856 2003-04-08 Andrew Cagney <cagney@redhat.com>
5858 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
5859 * gdbarch.h, gdbarch.c: Re-generate.
5860 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
5861 (d10v_gdbarch_init): Do not set saved_pc_after_call.
5862 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
5863 conditionally, use frame_pc_unwind as an alternative. Add
5865 * arch-utils.c (init_frame_pc_default): Only call
5866 SAVED_PC_AFTER_CALL when available.
5868 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
5870 * infrun.c (stop_soon): Rename from stop_soon_quietly.
5871 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
5872 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
5873 (start_remote): Ditto.
5874 (handle_inferior_event): Ditto.
5875 (save_inferior_status): Ditto.
5876 (restore_inferior_status): Ditto.
5877 * infcmd.c (attach_command): Ditto.
5878 * fork-child.c (startup_inferior): Ditto.
5879 * inferior.h (stop_soon): Rename from stop_soon_quietly.
5880 * alpha-tdep.c (heuristic_proc_start): Ditto.
5881 * mips-tdep.c (heuristic_proc_start): Ditto.
5882 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
5883 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
5884 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
5885 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
5886 * remote-vx.c (vx_create_inferior): Ditto.
5888 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
5890 * infrun.c (stop_soon_quietly): Make it an enum, to better
5891 override the default behavior of handle_inferior_event.
5892 (clear_proceed_status): Update uses of stop_soon_quietly to
5893 reflect that it is now an enum.
5894 (start_remote): Ditto.
5895 (handle_inferior_event): Change logic a bit if stop_soon_quietly
5896 is set to handle the new GNU/Linux kernel behavior for
5897 attach/sigstop. Update uses of stop_soon_quietly.
5898 * inferior.h (enum stop_kind): New enum.
5899 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
5900 Reset normal handle_inferior_event behavior, afterwards.
5901 * fork-child.c (startup_inferior): Update.
5902 * alpha-tdep.c (heuristic_proc_start): Update.
5903 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
5904 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
5905 * solib-osf.c (osf_solib_create_inferior_hook): Update.
5906 * solib-irix.c (irix_solib_create_inferior_hook): Update.
5907 * remote-vx.c (vx_create_inferior): Update.
5908 * mips-tdep.c (heuristic_proc_start): Update.
5910 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
5912 * disasm.c (dump_insns): Move variables inside loop, or they will
5913 be freed more than once, causing wild memory corruptions.
5914 (gdb_disassembly): Look for the substring "-thread",
5915 instead of "-threads" in the target name, to make sure to find
5916 the 'multi-thread' target. Also, make sure we do the right thing
5917 with the "core" target.
5919 2003-04-07 Kevin Buettner <kevinb@redhat.com>
5921 * mips-tdep.c (mips_print_fp_register): New function, created from
5922 do_fp_register_row(). Registers are now (also) printed as hex.
5923 Only one register is printed per row.
5924 (mips_print_register, do_fp_register_row): Print floating point
5925 registers with mips_print_fp_register().
5927 2003-04-06 Andrew Cagney <cagney@redhat.com>
5929 * valprint.h (inspect_it): Add extern declaration.
5930 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
5931 (selectors_info, classes_info): Ditto.
5932 (find_objc_msgcall): Fix indentation.
5933 (objc_printstr): Delete extern declarations.
5935 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
5937 2003-04-06 Andrew Cagney <cagney@redhat.com>
5939 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
5941 * frame.c (legacy_saved_regs_this_id): Update.
5942 (legacy_get_prev_frame): Update.
5943 * xstormy16-tdep.c: Update comment.
5944 * sparc-tdep.c (sparc_frame_chain): Update comment.
5945 * blockframe.c (legacy_frame_chain_valid): Update.
5947 2003-04-06 Andrew Cagney <cagney@redhat.com>
5949 * valprint.c (val_print_type_code_int): Delete #ifdef
5950 PRINT_TYPELESS_INTEGER code.
5952 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
5953 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
5954 multi-arch definition.
5955 * gdbarch.h: Re-generate.
5957 2003-04-05 Andrew Cagney <cagney@redhat.com>
5959 Eliminate FRAME_FIND_SAVED_REGS.
5960 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5961 Change FSR parameter to a pointer.
5962 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
5963 Assume FSR parameter is a pointer.
5964 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5966 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
5967 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
5968 saved_regs a pointer.
5969 (hppa_frame_saved_pc): Ditto.
5970 (find_dummy_frame_regs): Make frame_saved_regs a pointer
5971 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
5973 (restore_pc_queue): Make fsr a pointer.
5974 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
5975 (hppa_frame_chain): Make saved_regs a pointer, call
5976 hppa_frame_init_saved_regs.
5977 * sparc-tdep.c: Include "gdb_assert.h".
5978 (sparc_frame_find_saved_regs): Replace internal_error with
5980 * remote-vxsparc.c (vx_read_register): Delete reference to
5981 FRAME_FIND_SAVED_REGS.
5982 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
5983 * gdbarch.h: Regenerate.
5984 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
5985 (deprecated_get_frame_saved_regs): Delete declaration.
5986 (struct frame_saved_regs): Delete definition.
5987 * frame.c (deprecated_get_frame_saved_regs): Delete function.
5988 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
5989 (hppa_frame_find_saved_regs): Delete declaration.
5990 (FRAME_FIND_SAVED_REGS): Delete macro.
5991 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
5992 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
5993 FRAME_FIND_SAVED_REGS in comment.
5995 2003-04-05 Andrew Cagney <cagney@redhat.com>
5997 * frame.c (frame_func_unwind, get_frame_func): New functions.
5998 * frame.h (get_frame_func, frame_func_unwind): Declare.
5999 (struct frame_info): Add field "prev_func" for caching the
6000 previous frame's function address.
6001 * arm-tdep.c (arm_frameless_function_invocation): Combine
6002 get_pc_function_start and get_frame_pc into get_frame_func.
6003 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6004 (sh64_nofp_frame_init_saved_regs): Ditto.
6005 * s390-tdep.c (s390_function_start): Ditto.
6006 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6007 (rs6000_frameless_function_invocation): Ditto.
6008 (rs6000_frame_saved_pc): Ditto.
6009 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6010 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6011 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6012 (i386_frame_init_saved_regs): Ditto.
6013 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6014 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6015 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6016 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6017 * blockframe.c (frameless_look_for_prologue): Ditto.
6019 2003-04-05 Andrew Cagney <cagney@redhat.com>
6021 * frame.c (legacy_get_prev_frame): Link prev to next at the
6022 function start. Update comments.
6024 2003-04-05 Andrew Cagney <cagney@redhat.com>
6026 * frame.c (get_frame_id): Update comment.
6027 (legacy_get_prev_frame): Update comment.
6028 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6029 * gdbarch.h: Regenerate.
6030 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6031 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6033 2003-04-05 Andrew Cagney <cagney@redhat.com>
6035 * stack.c (print_frame_info): Use get_frame_pc.
6037 2003-04-04 Andrew Cagney <cagney@redhat.com>
6039 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6040 the frame's type from the unwinder.
6041 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6042 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6043 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6044 (get_frame_base_address): Use get_frame_type.
6045 (get_frame_locals_address, get_frame_args_address): Ditto.
6046 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6047 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6048 (struct frame_info): Add comment explaining why the frame contains
6050 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6051 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6052 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6054 * frame-unwind.h: Include "frame.h".
6055 (struct frame_unwind): Add "type" field.
6056 * Makefile.in (frame_unwind_h): Add $(frame_h).
6058 2003-04-04 Andrew Cagney <cagney@redhat.com>
6060 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6061 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6062 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6064 (d10v_unwind_dummy_id): Use frame_id_build.
6065 * frame.c (find_frame_sal): Use get_frame_pc.
6066 (create_new_frame): Use deprecated_update_frame_pc_hack and
6067 deprecated_update_frame_base_hack.
6068 (create_sentinel_frame): Add comment about ->pc going away.
6069 (get_prev_frame): Add comment about ->pc going away.
6070 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6071 frame_id_build, deprecated_update_frame_pc_hack and
6072 deprecated_update_frame_base_hack.
6073 (select_frame): Use get_frame_pc.
6074 (legacy_saved_regs_this_id): Use frame_id_build.
6076 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6078 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6079 signed integer case.
6080 (classify_argument): Handle enumerations and references.
6082 2003-04-04 Andrew Cagney <cagney@redhat.com>
6084 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6087 2003-04-01 Adam Fedor <fedor@gnu.org>
6089 * gdb/objc-lang.c (selectors_info): Replace calls to
6090 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6091 SYMBOL_NATURAL_NAME.
6092 (classes_info, find_methods): Likewise.
6094 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6096 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6097 ``mach'' to the value determined by bfd_default_set_arch_mach().
6099 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6101 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6102 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6103 (mi-cmd-file.o): Update dependencies.
6105 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6107 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6108 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6110 2003-04-01 Adam Fedor <fedor@gnu.org>
6112 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6113 * language.h (struct language_defn): Add la_demangle.
6114 (language_demangle): Declare.
6115 * language.c (language_demangle): New function.
6116 (unk_lang_demangle): Likewise.
6117 (unknown_language_defn, auto_language_defn, local_language_defn):
6118 Add ukn_lang_demangle.
6119 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6120 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6121 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6122 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6123 * jv-lang.c (java_demangle): New function
6124 (java_language_defn): Use it for la_demangle element.
6125 * objc-lang.c (objc_demangle): Add options argument
6126 (objc_language_defn): Use objc_demangle for la_demangle element.
6127 * maint.c (maintenance_demangle): Replace switch with
6128 call to language_demangle.
6129 * utils.c (fprintf_symbol_filtered): Likewise.
6131 2003-04-01 Andrew Cagney <cagney@redhat.com>
6133 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6134 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6135 PRINT_TYPELESS_INTEGER.
6136 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6137 PUSH_RETURN_ADDRESS.
6139 2003-04-01 Andrew Cagney <cagney@redhat.com>
6141 * Makefile.in (d10v-tdep.o): Update dependencies.
6142 * d10v-tdep.c: Include "frame-base.h".
6143 (d10v_frame_unwind): Make constant.
6144 (d10v_frame_base_address): New function.
6145 (d10v_frame_base): New variable.
6146 (d10v_gdbarch_init): Set frame_base default.
6147 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6149 (d10v_frame_unwind_cache): Set and use "prev_sp".
6150 (d10v_frame_this_id): Use the previous frame's inner most stack
6151 address and this frame's func address for the frame ID. Use
6152 frame_id_build. Don't analyze beyond the current instruction.
6154 2003-04-01 Andrew Cagney <cagney@redhat.com>
6156 * frame.h (get_frame_locals_address, get_frame_args_address):
6157 Refer to the base address, instead of the address of the first
6160 2003-04-01 Andrew Cagney <cagney@redhat.com>
6162 Add frame debug info addresses:
6163 * frame-base.c: New file.
6164 * frame-base.h: New file.
6165 * frame.h (struct frame_base): Add opaque declaration.
6166 (get_frame_base): Update comment.
6167 (get_frame_base_address): Declare.
6168 (get_frame_locals_address): Declare.
6169 (get_frame_args_address): Declare.
6170 (struct frame_info): Add "base" and "base_cache". Update
6171 comments on the unwinder.
6172 * frame.c: Include "frame-base.h".
6173 (get_frame_locals_address): New function.
6174 (get_frame_base_address): New function.
6175 (get_frame_args_address): New function.
6176 * findvar.c (read_var_value): Use get_frame_locals_address and
6177 get_frame_args_address.
6178 * stack.c (frame_info): Use get_frame_locals_address and
6179 get_frame_args_address.
6180 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6181 moved to "frame-base.c".
6182 * printcmd.c (print_frame_nameless_args): Ditto.
6183 * symtab.h (address_class): Update comments.
6184 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6185 get_frame_base_address.
6186 * dwarf2expr.c (execute_stack_op): Ditto.
6187 * Makefile.in (frame_base_h): Define.
6188 (frame.o): Update dependencies.
6189 (frame-base.o): Add dependencies.
6190 (SFILES): Add frame-base.c.
6191 (COMMON_OBS): Add frame-base.o.
6193 2003-04-01 Andrew Cagney <cagney@redhat.com>
6195 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6196 CALL_DUMMY_LENGTH): Ditto.
6197 * gdbarch.c: Re-generate.
6198 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6199 (CALL_DUMMY_LENGTH): Delete macro.
6200 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6201 * arm-tdep.c (arm_gdbarch_init): Ditto.
6202 * avr-tdep.c (avr_gdbarch_init): Ditto.
6203 * cris-tdep.c (cris_gdbarch_init): Ditto.
6204 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6205 * frv-tdep.c (frv_gdbarch_init): Ditto.
6206 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6207 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6208 * i386-tdep.c (i386_gdbarch_init): Ditto.
6209 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6210 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6211 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6212 * mips-tdep.c (mips_gdbarch_init): Ditto.
6213 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6214 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6215 * s390-tdep.c (s390_gdbarch_init): Ditto.
6216 * sh-tdep.c (sh_gdbarch_init): Ditto.
6217 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6218 * v850-tdep.c (v850_gdbarch_init): Ditto.
6219 * vax-tdep.c (vax_gdbarch_init): Ditto.
6220 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6222 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6224 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6226 2003-04-01 Andrew Cagney <cagney@redhat.com>
6228 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6229 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6230 * gdbarch.h, gdbarch.c: Re-generate.
6231 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6232 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6233 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6234 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6235 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6236 * infcmd.c (run_stack_dummy): Simplify assuming
6237 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6238 * infrun.c (handle_inferior_event): Ditto.
6239 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6240 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6241 * arm-tdep.c (arm_gdbarch_init): Ditto.
6242 * avr-tdep.c (avr_gdbarch_init): Ditto.
6243 * cris-tdep.c (cris_gdbarch_init): Ditto.
6244 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6245 * frv-tdep.c (frv_gdbarch_init): Ditto.
6246 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6247 * i386-tdep.c (i386_gdbarch_init): Ditto.
6248 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6249 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6250 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6251 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6252 * mips-tdep.c (mips_gdbarch_init): Ditto.
6253 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6254 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6255 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6256 * s390-tdep.c (s390_gdbarch_init): Ditto.
6257 * sh-tdep.c (sh_gdbarch_init): Ditto.
6258 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6259 * v850-tdep.c (v850_gdbarch_init): Ditto.
6260 * vax-tdep.c (vax_gdbarch_init): Ditto.
6261 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6263 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
6265 * symfile.c (symfile_relocate_debug_section): Update call to
6266 bfd_simple_get_relocated_section_contents.
6268 2003-03-31 Andrew Cagney <cagney@redhat.com>
6270 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6271 * gdbarch.h, gdbarch.c: Regenerate.
6272 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6273 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6275 * frame.h (generic_fix_call_dummy): Delete declaration.
6276 * dummy-frame.h: Update comment.
6277 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6278 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6280 * sh-tdep.c (sh_gdbarch_init): Ditto.
6281 * s390-tdep.c (s390_gdbarch_init): Ditto.
6282 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6283 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6284 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6285 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6286 * i386-tdep.c (i386_gdbarch_init): Ditto.
6287 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6288 * frv-tdep.c (frv_gdbarch_init): Ditto.
6289 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6290 * cris-tdep.c (cris_gdbarch_init): Ditto.
6291 * avr-tdep.c (avr_gdbarch_init): Ditto.
6292 * arm-tdep.c (arm_gdbarch_init): Ditto.
6294 2003-03-31 J. Brobecker <brobecker@gnat.com>
6296 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6297 (INIT_FRAME_AP): Likewise.
6298 (EXTRA_FRAME_INFO): Likewise.
6300 2003-03-31 Andrew Cagney <cagney@redhat.com>
6302 * gdbarch.sh: Include "symfile.h".
6303 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6304 * gdbarch.h, gdbarch.c: Re-generate.
6305 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6306 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6307 call_dummy_address, the default is at entry_point_address.
6308 * v850-tdep.c (v850_gdbarch_init): Ditto.
6309 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6310 * sh-tdep.c (sh_gdbarch_init): Ditto.
6311 * s390-tdep.c (s390_gdbarch_init): Ditto.
6312 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6313 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6314 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6315 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6316 * i386-tdep.c (i386_gdbarch_init): Ditto.
6317 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6318 * frv-tdep.c (frv_gdbarch_init): Ditto.
6319 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6320 * cris-tdep.c (cris_gdbarch_init): Ditto.
6321 * arm-tdep.c (arm_gdbarch_init): Ditto.
6323 2003-03-31 Andrew Cagney <cagney@redhat.com>
6325 * gdbarch.sh (CALL_DUMMY_P): Delete.
6326 * gdbarch.h, gdbarch.c: Re-generate.
6327 * inferior.h (CALL_DUMMY_P): Delete macro.
6328 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6329 * vax-tdep.c (vax_gdbarch_init): Update.
6330 * v850-tdep.c (v850_gdbarch_init): Update.
6331 * sparc-tdep.c (sparc_gdbarch_init): Update.
6332 * sh-tdep.c (sh_gdbarch_init): Update.
6333 * s390-tdep.c (s390_gdbarch_init): Update.
6334 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6335 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6336 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6337 * mips-tdep.c (mips_gdbarch_init): Update.
6338 * mcore-tdep.c (mcore_gdbarch_init): Update.
6339 * m68k-tdep.c (m68k_gdbarch_init): Update.
6340 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6341 * ia64-tdep.c (ia64_gdbarch_init): Update.
6342 * i386-tdep.c (i386_gdbarch_init): Update.
6343 * h8300-tdep.c (h8300_gdbarch_init): Update.
6344 * frv-tdep.c (frv_gdbarch_init): Update.
6345 * d10v-tdep.c (d10v_gdbarch_init): Update.
6346 * cris-tdep.c (cris_gdbarch_init): Update.
6347 * breakpoint.c (deprecated_frame_in_dummy): Update.
6348 * avr-tdep.c (avr_gdbarch_init): Update.
6349 * alpha-tdep.c (alpha_gdbarch_init): Update.
6350 * arm-tdep.c (arm_gdbarch_init): Update.
6351 * dummy-frame.c (dummy_frame_this_id): Update comments.
6352 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6353 * frame.c (legacy_get_prev_frame): Ditto.
6354 * valops.c (call_function_by_hand): Delete function.
6355 (hand_function_call): Rename to call_function_by_hand
6357 2003-03-30 Andrew Cagney <cagney@redhat.com>
6359 2002-11-10 Klee Dienes <kdienes@apple.com>
6360 * value.h (struct value): Update comment.
6362 2003-03-30 Andrew Cagney <cagney@redhat.com>
6364 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6366 (d10v_gdbarch_init): Do not set fp_regnum.
6368 * frame.c (get_frame_base): Force ID initialization.
6369 (get_prev_frame): Move computation of the frame ID from here ...
6370 (get_frame_id): ... to here.
6371 (legacy_get_prev_frame): Mark the frame ID as valid.
6372 * frame.h (struct frame_info): Add field "id_p".
6374 2003-03-30 Mark Kettenis <kettenis@gnu.org>
6376 * i386-tdep.c (i386_store_struct_return): Removed.
6377 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6379 2003-03-30 Andrew Cagney <cagney@redhat.com>
6381 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6382 * gdbarch.h, gdbarch.c: Regenerate.
6383 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6384 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6385 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6386 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6387 * i386-tdep.c (i386_gdbarch_init): Ditto.
6388 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6389 * cris-tdep.c (cris_gdbarch_init): Ditto.
6390 * vax-tdep.c (vax_gdbarch_init): Ditto.
6391 * s390-tdep.c (s390_gdbarch_init): Ditto.
6392 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6393 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6394 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6395 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6396 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6397 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6398 * sparc-tdep.c (sparc_gdbarch_init): Update.
6399 * sh-tdep.c (sh_gdbarch_init): Update.
6400 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6401 * mips-tdep.c (mips_gdbarch_init): Update.
6402 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6403 * ia64-tdep.c (ia64_gdbarch_init): Update.
6404 * frv-tdep.c (frv_gdbarch_init): Update.
6405 * avr-tdep.c (avr_gdbarch_init): Update.
6406 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6407 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
6408 instead of when push_dummy_call is not available.
6410 2003-03-30 Andrew Cagney <cagney@redhat.com>
6412 * infttrace.c: Include "gdbthread.h".
6413 (parent_attach_all): Fix function signature.
6414 (call_ptrace): Update call.
6415 * Makefile.in (infttrace.o): Update dependencies.
6417 2003-03-30 Andrew Cagney <cagney@redhat.com>
6419 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6420 PUSH_RETURN_ADDRESS.
6421 * gdbarch.h, gdbarch.c: Regenerate.
6422 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6423 * x86-64-tdep.c (x86_64_init_abi): Update.
6424 * v850-tdep.c (v850_gdbarch_init): Update.
6425 * sparc-tdep.c (sparc_gdbarch_init): Update.
6426 * sh-tdep.c (sh_gdbarch_init): Update.
6427 * s390-tdep.c (s390_gdbarch_init): Update.
6428 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6429 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6430 * mips-tdep.c (mips_gdbarch_init): Update.
6431 * mcore-tdep.c (mcore_gdbarch_init): Update.
6432 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6433 * ia64-tdep.c (ia64_gdbarch_init): Update.
6434 * i386-tdep.c (i386_gdbarch_init): Update.
6435 * h8300-tdep.c (h8300_gdbarch_init): Update.
6436 * frv-tdep.c (frv_gdbarch_init): Update.
6437 * cris-tdep.c (cris_gdbarch_init): Update.
6438 * avr-tdep.c (avr_gdbarch_init): Update.
6439 * arm-tdep.c (arm_gdbarch_init): Update.
6440 * valops.c (hand_function_call): Update.
6442 2003-03-29 Andrew Cagney <cagney@redhat.com>
6444 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6445 sizeof_call_dummy_words.
6446 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6448 * gdbarch.h: Regenerate.
6450 2003-03-29 Andrew Cagney <cagney@redhat.com>
6452 * infttrace.h: New file.
6453 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6454 (hpread_get_textlow): Detect an uninitialized dn_bufp.
6455 (hpread_read_doc_function_type): Detect an initialized type1.
6456 (hpread_quick_traverse): Initialize mod_name_string.
6457 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6458 (som_solib_get_solib_by_pc): Declare.
6459 (so_lib_thread_start_addr): Declare.
6460 (no_shared_libraries): Declare.
6461 * somread.c (init_import_symbols): Make static. Add forward
6463 * config/pa/nm-hppah.h: Include "infttrace.h" for
6465 (hppa_insert_hw_watchpoint): Declare.
6466 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6467 * hppah-nat.c: Include "gdb_string.h".
6468 (parent_attach_all): Delete extern declaration, moved to
6470 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
6472 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
6473 * Makefile.in (infttrace_h): Define.
6474 (hpread.o): Update dependencies.
6475 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
6476 * hppa-hpux-tdep.c: Include "gdb_string.h".
6477 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
6478 * infrun.c (handle_inferior_event): Always initialize
6479 stepped_after_stopped_by_watchpoint. Add default and remove
6480 fallthrough in switch statement.
6481 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
6483 (hppa_remove_hw_watchpoint): Ditto.
6485 2003-03-29 Andrew Cagney <cagney@redhat.com>
6487 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
6490 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
6492 * arm-tdep.c (arm_push_arguments): Delete.
6493 (struct stack_item): New type.
6494 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
6495 (arm_store_struct_return): Delte.
6496 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
6497 arm_push_arguments or arm_store_struct_return.
6499 2003-03-28 Andrew Cagney <cagney@redhat.com>
6501 * Makefile.in (d10v-tdep.o): Update dependencies.
6502 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
6503 * d10v-tdep.c: Include "remote.h".
6504 (target_resume_hook): Delete extern declaration.
6505 (target_wait_loop_hook): Ditto.
6506 (tdisassemble_command): Eliminate assignment in "if" conditional.
6507 (d10v_ts2_register_sim_regno): Eliminate call to
6508 legacy_register_sim_regno.
6509 (d10v_ts3_register_sim_regno): Ditto.
6511 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
6513 * thread.c: Reindented.
6515 * linux-proc.c: Ditto.
6517 2003-03-28 Bob Rossi <bob_rossi@cox.net>
6519 * MAINTAINERS (write after approval): Add myself.
6521 2003-03-27 Theodore A. Roth <troth@openavr.org>
6523 * objc-exp.y: Add missing semi-colons.
6525 2003-03-27 Andrew Cagney <cagney@redhat.com>
6527 * regcache.c (write_sp): Delete function and references.
6528 * inferior.h (write_sp): Delete declaration.
6529 * valops.c (hand_function_call): Replace write_sp with
6531 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
6532 (sparc_pop_frame): Ditto.
6534 2003-03-27 Andrew Cagney <cagney@redhat.com>
6536 * NEWS: Mention removal of support for hppa*-*-bsd* and
6537 hppa*-*-osf* natives, and hppa*-*-pro* target.
6538 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
6539 * config/pa/xm-pa.h: Obsolete file.
6540 * config/pa/xm-hppab.h: Obsolete file.
6541 * config/pa/nm-hppab.h: Obsolete file.
6542 * config/pa/tm-hppab.h: Obsolete file.
6543 * config/pa/tm-hppao.h: Obsolete file.
6544 * config/pa/nm-hppao.h: Obsolete file.
6545 * config/pa/tm-pro.h: Obsolete file.
6546 * config/pa/hppaosf.mt: Obsolete file.
6547 * config/pa/hppaosf.mh: Obsolete file.
6548 * config/pa/hppapro.mt: Obsolete file.
6549 * config/pa/hppabsd.mt: Obsolete file.
6550 * config/pa/hppabsd.mh: Obsolete file.
6551 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
6552 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
6555 2003-03-27 Andrew Cagney <cagney@redhat.com>
6557 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
6558 push_arguments. Don't set push_return_address or write_sp.
6559 (d10v_push_dummy_call): Replace d10v_push_arguments.
6560 (d10v_push_return_address, d10v_write_sp): Delete function,
6561 handled by push_dummy_call.
6563 2003-03-26 Andrew Cagney <cagney@redhat.com>
6565 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
6566 (push_dummy_call): New pure multi-arch replacement with gdbarch,
6567 regcache and dummy_addr parameters.
6568 * gdbarch.h, gdbarch.c: Re-generate.
6569 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
6570 available; assume it will handle stack alignment and return
6571 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
6572 legacy_push_arguments.
6573 (legacy_push_arguments): Rename default_push_arguments.
6574 * value.h (legacy_push_arguments): Rename default_push_arguments.
6575 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
6576 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6577 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6578 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6579 * config/i386/tm-symmetry.h: Update.
6580 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6581 * x86-64-tdep.c (x86_64_init_abi): Update.
6582 * v850-tdep.c (v850_gdbarch_init): Update.
6583 * sparc-tdep.c (sparc_gdbarch_init): Update.
6584 * sh-tdep.c (sh_gdbarch_init): Update.
6585 * s390-tdep.c (s390_gdbarch_init): Update.
6586 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6587 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6588 * mips-tdep.c (mips_gdbarch_init): Update.
6589 * mcore-tdep.c (mcore_gdbarch_init): Update.
6590 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6591 * ia64-tdep.c (ia64_gdbarch_init): Update.
6592 * i386-tdep.c (i386_gdbarch_init): Update.
6593 * hppa-tdep.c (hppa_gdbarch_init): Update.
6594 * h8300-tdep.c (h8300_gdbarch_init): Update.
6595 * frv-tdep.c (frv_gdbarch_init): Update.
6596 * d10v-tdep.c (d10v_gdbarch_init): Update.
6597 * cris-tdep.c (cris_gdbarch_init): Update.
6598 * avr-tdep.c (avr_gdbarch_init): Update.
6599 * arm-tdep.c (arm_gdbarch_init): Update.
6600 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6601 * alpha-tdep.c (alpha_gdbarch_init): Update.
6603 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6605 * signals/signals.c (do_target_signal_to_host): Correct realtime
6608 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6610 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
6611 (struct sal_chain, map_catch_names): Remove.
6612 (catch_exception_command_1): Don't call
6613 handle_gnu_4_16_catch_command.
6615 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6617 From Mark Dettinger <dettinge@de.ibm.com>:
6618 * dwarf2cfi.c (read_2u): Increment pointer by two.
6620 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6622 * signals/signals.c: Fix typos in last change.
6624 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6626 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
6627 not already defined. Use __SIGRTMIN if available.
6628 (target_signal_from_host): Remove SIGRTMIN block.
6629 (do_target_signal_to_host): Remove SIGRTMIN block; check that
6630 the signal is within the realtime range.
6632 2003-03-25 Adam Fedor <fedor@gnu.org>
6634 * Makefile.in (infrun.o): Add $(language_h)
6635 * infrun.c (handle_inferior_event): Use skip_language_trampoline
6636 for language specific trampolines.
6637 * language.h (struct language_defn): Add skip_trampoline.
6638 (skip_language_trampoline): Declare.
6639 * language.c (unk_lang_trampoline, skip_language_trampoline):
6641 (unknown_language_defn, auto_language_defn, local_language_defn):
6642 Add ukn_lang_trampoline.
6643 * ada-lang.c (ada_language_defn): Add NULL for language
6644 specific skip_trampoline.
6645 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
6646 scm-lang.c: Likewise.
6647 * objc-lang.c (objc_skip_trampoline): New function.
6648 (objc_language_defn): Add objc_skip_trampoline.
6650 2003-03-25 Andrew Cagney <cagney@redhat.com>
6652 * frame.c (get_prev_frame): Delay validating a frame's ID -
6653 non-NULL, didn't go backwards - until an attempt to unwind it to
6656 2003-03-25 Andrew Cagney <cagney@redhat.com>
6658 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
6659 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
6660 * gdbarch.h, gdbarch.c: Re-generate.
6661 * config/sparc/tm-sparc.h
6662 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
6663 * sparc-tdep.c (sparc_gdbarch_init): Set
6664 deprecated_extra_stack_alignment_needed.
6665 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
6666 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
6667 extra_stack_alignment_needed.
6668 * v850-tdep.c (v850_gdbarch_init): Ditto.
6669 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6670 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6671 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6672 * cris-tdep.c (cris_gdbarch_init): Ditto.
6673 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6674 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6676 2003-03-25 Andrew Cagney <cagney@redhat.com>
6678 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
6679 STORE_STRUCT_RETURN.
6680 * gdbarch.h, gdbarch.c: Regenerate.
6681 * d10v-tdep.c (d10v_store_struct_return): Delete function.
6682 (d10v_push_arguments): Set the struct return register.
6683 (d10v_gdbarch_init): Update.
6684 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6685 * x86-64-tdep.c (x86_64_init_abi): Update.
6686 * vax-tdep.c (vax_gdbarch_init): Update.
6687 * v850-tdep.c (v850_gdbarch_init): Update.
6688 * sparc-tdep.c (sparc_gdbarch_init): Update.
6689 * sh-tdep.c (sh_gdbarch_init): Update.
6690 * s390-tdep.c (s390_gdbarch_init): Update.
6691 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6692 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6693 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6694 * mips-tdep.c (mips_gdbarch_init): Update.
6695 * mcore-tdep.c (mcore_gdbarch_init): Update.
6696 * m68k-tdep.c (m68k_gdbarch_init): Update.
6697 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6698 * ia64-tdep.c (ia64_gdbarch_init): Update.
6699 * i386-tdep.c (i386_gdbarch_init): Update.
6700 * hppa-tdep.c (hppa_gdbarch_init): Update.
6701 * h8300-tdep.c (h8300_gdbarch_init): Update.
6702 * frv-tdep.c (frv_gdbarch_init): Update.
6703 * cris-tdep.c (cris_gdbarch_init): Update.
6704 * avr-tdep.c (avr_gdbarch_init): Update.
6705 * arm-tdep.c (arm_gdbarch_init): Update.
6706 * alpha-tdep.c (alpha_gdbarch_init): Update.
6708 2003-03-25 Andrew Cagney <cagney@redhat.com>
6710 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
6711 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
6712 CALL_DUMMY_STACK_ADJUST with a predicate variable.
6713 * gdbarch.h, gdbarch.c: Regenerate.
6714 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6715 call_dummy_stack_adjust_p.
6716 * vax-tdep.c (vax_gdbarch_init): Ditto.
6717 * v850-tdep.c (v850_gdbarch_init): Ditto.
6718 * sh-tdep.c (sh_gdbarch_init): Ditto.
6719 * s390-tdep.c (s390_gdbarch_init): Ditto.
6720 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6721 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6722 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6723 * mips-tdep.c (mips_gdbarch_init): Ditto.
6724 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6725 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6726 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6727 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6728 * i386-tdep.c (i386_gdbarch_init): Ditto.
6729 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6730 * frv-tdep.c (frv_gdbarch_init): Ditto.
6731 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6732 * cris-tdep.c (cris_gdbarch_init): Ditto.
6733 * avr-tdep.c (avr_gdbarch_init): Ditto.
6734 * arm-tdep.c (arm_gdbarch_init): Ditto.
6735 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6736 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6737 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
6738 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6739 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
6740 call_dummy_stack_adjust_p.
6741 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
6742 (CALL_DUMMY_STACK_ADJUST): Delete macro.
6743 * sparc-tdep.c (sparc32_push_arguments): Update.
6744 * valops.c (hand_function_call): Update.
6746 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
6748 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
6749 set_gdbarch_char_signed.
6751 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
6754 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
6756 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
6758 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
6759 (_initialize_arm_tdep): Don't set tm_print_insn.
6761 2003-03-24 Adam Fedor <fedor@gnu.org>
6763 * Makefile.in (YYOBJ): Add objc-exp.tab.o
6764 * objc-lang.h: Add multiple inclusion protection.
6765 (start_msglist, add_msglist, end_msglist): Additional declarations.
6767 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
6769 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
6770 value was renamed to ARM_FLOAT_SOFT_FPA.
6772 2003-03-23 Andrew Cagney <cagney@redhat.com>
6774 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
6775 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
6776 * gdbarch.h, gdbarch.c: Regenerate.
6777 * valops.c (hand_function_call): Update.
6778 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6779 * frame.c (legacy_saved_regs_this_id): Update.
6780 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
6781 * dummy-frame.h: Update.
6782 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
6783 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6784 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
6785 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
6786 * config/m68k/tm-sun3.h: Update.
6787 * blockframe.c (inside_main_func, frame_chain_valid): Update.
6788 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6789 * x86-64-tdep.c (x86_64_init_abi): Update.
6790 * vax-tdep.c (vax_gdbarch_init): Update.
6791 * v850-tdep.c (v850_gdbarch_init): Update.
6792 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
6793 * sh-tdep.c (sh_gdbarch_init): Update.
6794 * s390-tdep.c (s390_gdbarch_init): Update.
6795 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
6796 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
6797 (frame_get_saved_regs): Update.
6798 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6799 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6800 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6801 * mips-tdep.c (mips_gdbarch_init): Update.
6802 * mcore-tdep.c (mcore_gdbarch_init): Update.
6803 * m68k-tdep.c (m68k_gdbarch_init): Update.
6804 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6805 * ia64-tdep.c (ia64_gdbarch_init): Update.
6806 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
6807 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6808 (i386_interix_back_one_frame): Update.
6809 * hppa-tdep.c (hppa_gdbarch_init): Update.
6810 (hppa_init_extra_frame_info): Update.
6811 * h8300-tdep.c (h8300_gdbarch_init): Update.
6812 * frv-tdep.c (frv_gdbarch_init): Update.
6813 * cris-tdep.c (cris_gdbarch_init): Update.
6814 * avr-tdep.c (avr_gdbarch_init): Update.
6815 * arm-tdep.c (arm_gdbarch_init): Update.
6816 * alpha-tdep.c (alpha_gdbarch_init): Update.
6818 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6820 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
6821 (arm_get_fp_model): Declare.
6822 * arm-tdep.c (fp_model_strings): New string array.
6823 (arm_fp_model, current_fp_model): New variables.
6824 (arm_get_fp_model): New function.
6825 (arm_set_fp): New function.
6826 (set_fp_model_sfunc): New function.
6827 (show_fp_model): New function.
6828 (_initialize_arm_tdep): Add new command to set/show the FPU.
6829 (arm_extract_return_value): Use arm_get_fp_model.
6830 (arm_store_return_value): Likewise.
6831 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
6832 to initialize the floating-point data types.
6833 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
6836 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6838 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
6839 the current setting of each value.
6840 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
6841 new_set and new_show. Use add_setshow_cmd_full and
6842 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
6843 commands and add new version as subcommands of "set/show arm".
6845 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6847 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
6848 (set_arm_command, show_arm_command): New functions.
6849 (_initialize_arm_tdep): Add them.
6850 (num_disassembly_options): Renamed from num_flavor_options.
6851 (valid_disassembly_styles): Renamed from valid_flavors.
6852 (disassembly_style): Renamed from disassembly_flavor.
6853 (set_disassembly_style_sfunc): Renamed from
6854 set_disassembly_flavor_sfunc.
6855 (set_disassembly_style): Renamed from set_disassembly_flavor.
6856 (arm_othernames): Updated.
6857 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
6858 command. Add "set/show arm disassembly" commands. Deprecate
6859 "othernames" command.
6861 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6863 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
6864 (arm-tdep.o): Depend on elf_arm_h.
6866 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6868 * Makefile.in (coff_internal_h): Define.
6869 (arm-tdep.o): Update dependencies.
6871 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6873 * arm-tdep.c (prologue_cache): Delete.
6874 (check_prologue_cache, save_prologue_cache): Delete.
6875 (arm_scan_prologue): Don't check or update the prologue_cache.
6876 (arm_gdb_arch_init): Don't initialize it.
6877 (_initialize_arm_tdep): Likewise.
6879 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
6881 * MAINTAINERS (tui): Maintainer of tui code.
6883 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
6885 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
6886 (i386-cygwin-tdep.o): Add dependencies.
6887 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
6888 * i386-cygwin-tdep.c: New file.
6889 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
6890 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
6892 2003-03-20 Andrew Cagney <cagney@redhat.com>
6894 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
6895 (handle_inferior_event): Remove code calling
6896 DYNAMIC_TRAMPOLINE_NEXTPC.
6898 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
6899 already has a full path.
6901 * main.c (gdb_main): Return 1.
6902 (captured_main): Call error to report an invalid interpreter.
6904 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6905 * alpha-osf1-tdep.c: Include "gdb_string.h".
6907 2003-03-19 J. Brobecker <brobecker@gnat.com>
6909 Continuing work to convert the hppa targets to multiarch partial.
6911 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
6912 method, now that hppa_push_dummy_frame has a conformant prototype.
6913 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
6914 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
6915 for the switch to multiarch partial.
6917 2003-03-19 Kevin Buettner <kevinb@redhat.com>
6919 * mdebugread.c (parse_symbol): For stEnd, we're done counting
6920 when iss is issNull.
6922 2003-03-18 Kevin Buettner <kevinb@redhat.com>
6924 * mips-tdep.c (mips_register_name): Fix fencepost error involving
6925 NUM_REGS bounds check.
6927 2003-03-18 Kevin Buettner <kevinb@redhat.com>
6929 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
6930 * mips-tdep.c (gdb_assert.h): Include.
6931 (mips_generic_reg_names, mips_processor_reg_names): Make static.
6932 (mips_register_name): Handle integer registers explicitly. Add
6934 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
6935 (mips_lsi33k_reg_names): Don't list integer registers; they're
6936 handled by mips_register_name() now.
6937 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
6938 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
6939 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
6940 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
6941 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
6943 2003-03-18 Andrew Cagney <cagney@redhat.com>
6945 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
6947 * gdbtypes.h (print_scalar_formatted): Update declaration.
6948 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
6950 2003-03-18 J. Brobecker <brobecker@gnat.com>
6952 * infrun.c (observer.h): Add #include.
6953 (normal_stop): Add call to observer_notify_normal_stop.
6954 * Makefile.in (infrun.o): Add dependency on observer.h.
6956 2003-03-18 J. Brobecker <brobecker@gnat.com>
6958 Continuing work to convert the hppa targets to multiarch partial.
6959 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
6960 parameter. Reformat comment.
6961 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
6962 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
6963 to match new profile.
6965 2003-03-18 J. Brobecker <brobecker@gnat.com>
6967 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
6968 appear to be working in any case.
6970 2003-03-18 J. Brobecker <brobecker@gnat.com>
6972 * observer.c (observer_test_first_observer): New static variable.
6973 (observer_test_second_observer): Likewise.
6974 (observer_test_third_observer): Likewise.
6975 (observer_test_first_notification_function): New static function.
6976 (observer_test_second_notification_function): Likewise.
6977 (observer_test_third_notification_function): Likewise.
6979 2003-03-17 J. Brobecker <brobecker@gnat.com>
6981 * hppa-tdep.c (gdb_assert.h): Add missing #include.
6982 * somsolib.c (gdb_assert.h): Likewise.
6983 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
6984 (somsolib.o): Likewise.
6986 2003-03-17 Andrew Cagney <cagney@redhat.com>
6988 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
6989 BFD. Simplify setting of di.endian.
6991 2003-03-17 Andrew Cagney <cagney@redhat.com>
6993 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
6994 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
6996 From Elena Zannoni <ezannoni@redhat.com>
6997 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
6998 vector and floating-point parameters.
6999 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7001 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7003 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7005 * MAINTAINERS: Remove my name from several maintainership roles.
7007 2003-03-17 Andrew Cagney <cagney@redhat.com>
7009 Fix frame off-by-one bug.
7010 * frame-unwind.h (frame_this_id_ftype): Replace
7011 frame_unwind_id_ftype.
7012 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7013 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7014 with "prev_register".
7015 * frame-unwind.c (frame_unwind_find_by_pc): Return
7016 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7018 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7019 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7020 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7021 (dummy_frame_unwind): Update.
7022 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7023 sentinel_frame_register_unwind.
7024 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7025 (sentinel_frame_unwinder): Update.
7026 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7027 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7028 * frame.c (create_sentinel_frame): Update. Initialize
7029 "prologue_cache" instead of "unwind_cache".
7030 (frame_register_unwind): Call this frame's prev_register with the
7031 next frame and this frame's prologue cache.
7032 (get_prev_frame): Simplify. Always call prev frame's this_id with
7033 this frame and prev frame's prologue cache. Document that this
7034 call is shifted one to the left when compared to the
7035 frame_register_unwind call.
7036 (legacy_saved_regs_prev_register): Replace
7037 frame_saved_regs_register_unwind.
7038 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7039 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7040 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7041 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7042 (d10v_frame_unwind): Update.
7043 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7044 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7045 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7046 "saved_regs" with "this_saved_regs".
7048 2003-03-16 Andrew Cagney <cagney@redhat.com>
7050 * frame.c (frame_pop): Don't call target_store_registers. Fix
7051 problem reported by Mark Kettenis.
7053 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7055 * i386-tdep.c (i386_register_type): Renamed from
7056 i386_register_virtual_type. Adjust function signature.
7057 (i386_gdbarch_init): Set register_type instead of
7058 deprecated_max_register_raw_size,
7059 deprecated_max_register_virtual_size and register_virtual_type.
7061 2003-03-14 Andrew Cagney <cagney@redhat.com>
7063 * frame.c (get_prev_frame): When a legacy frame, always call
7064 legacy_get_prev_frame. Simplify unwind code using assumption that
7065 the unwinder is new.
7066 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7067 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7068 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7070 2003-03-14 Andrew Cagney <cagney@redhat.com>
7072 * frame.c (get_saved_register): Delete function.
7073 * frame.h (get_saved_register): Delete declaration.
7074 * xstormy16-tdep.c: Update comment.
7075 * regcache.h: Update comments.
7076 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7077 get_saved_register and extract_address, use
7078 frame_read_unsigned_register.
7079 (sparc_frame_saved_pc): Ditto.
7080 (sparc_get_saved_register): Instead of get_saved_register, use
7082 (sparc_pop_frame): Ditto.
7083 * findvar.c: Update comments.
7084 (value_of_register): Call frame_register instead of
7086 (value_from_register): Ditto.
7087 * config/sparc/tm-sparc.h: Update comment.
7088 * breakpoint.c: Update comment.
7090 2003-03-14 Andrew Cagney <cagney@redhat.com>
7092 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7094 * gdbarch.h, gdbarch.c: Re-generate.
7095 * frame.h: Update comments.
7096 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7097 * x86-64-tdep.c (x86_64_init_abi): Update.
7098 * sparc-tdep.c (sparc_gdbarch_init): Update.
7099 * sh-tdep.c (sh_gdbarch_init): Update.
7100 * mips-tdep.c (mips_gdbarch_init): Update.
7101 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7102 * cris-tdep.c (cris_gdbarch_init): Update.
7103 * ia64-tdep.c (ia64_gdbarch_init): Update.
7104 * frame.c (frame_register): Update.
7105 (get_saved_register): Update.
7106 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7108 2003-03-13 Andrew Cagney <cagney@redhat.com>
7110 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7111 * gdbarch.h, gdbarch.c: Regenerate.
7112 * valops.c (hand_function_call): Update comment.
7113 * stack.c (return_command): Update comment.
7114 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7115 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7116 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7117 * x86-64-tdep.c (x86_64_init_abi): Update.
7118 * vax-tdep.c (vax_gdbarch_init): Update.
7119 * v850-tdep.c (v850_gdbarch_init): Update.
7120 * sparc-tdep.c (sparc_gdbarch_init): Update.
7121 * sh-tdep.c (sh_gdbarch_init): Update.
7122 * s390-tdep.c (s390_gdbarch_init): Update.
7123 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7124 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7125 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7126 * mips-tdep.c (mips_gdbarch_init): Update.
7127 * mcore-tdep.c (mcore_gdbarch_init): Update.
7128 * m68k-tdep.c (m68k_gdbarch_init): Update.
7129 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7130 * ia64-tdep.c (ia64_gdbarch_init): Update.
7131 * i386-tdep.c (i386_gdbarch_init): Update.
7132 * hppa-tdep.c (hppa_gdbarch_init): Update.
7133 * h8300-tdep.c (h8300_gdbarch_init): Update.
7134 * frv-tdep.c (frv_gdbarch_init): Update.
7135 * cris-tdep.c (cris_gdbarch_init): Update.
7136 * avr-tdep.c (avr_gdbarch_init): Update.
7137 * arm-tdep.c (arm_gdbarch_init): Update.
7138 * alpha-tdep.c (alpha_gdbarch_init): Update.
7140 2003-03-13 Andrew Cagney <cagney@redhat.com>
7142 * frame.c (legacy_frame_p): New function.
7143 (get_prev_frame): Use legacy_frame_p.
7144 * frame.h (legacy_frame_p): Declare.
7146 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7148 * MAINTAINERS (write after approval): Alphabetically
7151 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7153 * MAINTAINERS (write after approval): Add myself.
7155 2003-03-12 Andrew Cagney <cagney@redhat.com>
7157 * frame.c (get_prev_frame): Rename the frame parameter to
7159 (get_next_frame, legacy_get_prev_frame): Ditto.
7161 2003-03-12 Andrew Cagney <cagney@redhat.com>
7163 * frame.c (get_current_frame): Check target_has_registers before
7164 checking target_has_stack.
7165 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7166 instead of deprecated_selected_frame.
7167 * findvar.c (value_of_register): Pass "frame", not
7168 deprecated_selected_frame, to value_of_builtin_reg.
7170 2003-03-12 Andrew Cagney <cagney@redhat.com>
7172 * regcache.c (regcache_cooked_write_signed): New function.
7173 (regcache_cooked_write_unsigned): New function.
7174 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7175 (regcache_cooked_read_signed): Fix regnum in range assertion.
7176 * regcache.h (regcache_cooked_write_signed): Declare.
7177 (regcache_cooked_write_unsigned): Declare.
7179 2003-03-12 Andrew Cagney <cagney@redhat.com>
7181 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7182 * gdbarch.h, gdbarch.c: Re-generate.
7183 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7184 * x86-64-tdep.h: Update.
7185 * x86-64-tdep.c (x86_64_init_abi): Update.
7186 * v850-tdep.c (v850_gdbarch_init): Update.
7187 * sparc-tdep.c (sparc_gdbarch_init): Update.
7188 * sh-tdep.c (sh_gdbarch_init): Update.
7189 * s390-tdep.c (s390_gdbarch_init): Update.
7190 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7191 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7192 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7193 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7194 * mips-tdep.c (mips_gdbarch_init): Update.
7195 * mcore-tdep.c (mcore_gdbarch_init): Update.
7196 * m68k-tdep.c (m68k_gdbarch_init): Update.
7197 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7198 * ia64-tdep.c (ia64_gdbarch_init): Update.
7199 * i386-tdep.c (i386_gdbarch_init): Update.
7200 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7201 * hppa-tdep.c (hppa_gdbarch_init): Update.
7202 * h8300-tdep.c (h8300_gdbarch_init): Update.
7203 * frv-tdep.c (frv_gdbarch_init): Update.
7204 * cris-tdep.c (cris_gdbarch_init): Update.
7205 * avr-tdep.c (avr_gdbarch_init): Update.
7206 * arm-tdep.c (arm_gdbarch_init): Update.
7207 * alpha-tdep.c (alpha_gdbarch_init): Update.
7208 * sh-tdep.c (sh_init_extra_frame_info): Update.
7209 (sh64_init_extra_frame_info): Update.
7210 * ns32knbsd-nat.c (frame_num_args): Update.
7211 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7212 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7213 (xstormy16_frame_chain_valid): Update.
7214 * vax-tdep.c (vax_saved_pc_after_call): Update.
7215 * v850-tdep.c (v850_frame_chain): Update.
7216 (v850_pop_frame): Update.
7217 (v850_init_extra_frame_info): Update.
7218 * sparc-tdep.c (setup_arbitrary_frame): Update.
7219 * ns32k-tdep.c (umax_frame_num_args): Update.
7220 * s390-tdep.c (s390_pop_frame_regular): Update.
7221 * mn10300-tdep.c (mn10300_frame_chain): Update.
7222 (mn10300_pop_frame_regular): Update.
7223 (mn10300_init_extra_frame_info): Update.
7224 * mips-tdep.c (mips_init_frame_pc_first): Update.
7225 (mips_frame_chain): Update.
7226 (mips_pop_frame): Update.
7227 * mcore-tdep.c (mcore_frame_chain): Update.
7228 (mcore_pop_frame): Update.
7229 (mcore_init_extra_frame_info): Update.
7230 * arch-utils.c (init_frame_pc_default): Update.
7231 * m68k-tdep.c (isi_frame_num_args): Update.
7232 (delta68_frame_num_args): Update.
7233 (news_frame_num_args): Update.
7234 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7235 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7236 (alpha_frame_chain): Update.
7237 (alpha_pop_frame): Update.
7238 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7239 (hppa_init_extra_frame_info): Update.
7240 (hppa_frame_chain): Update.
7241 (hppa_frame_chain_valid): Update.
7242 * cris-tdep.c (cris_init_extra_frame_info): Update.
7243 * avr-tdep.c (avr_init_extra_frame_info): Update.
7244 * arm-tdep.c (arm_frame_chain_valid): Update.
7245 (arm_init_extra_frame_info): Update.
7246 (arm_pop_frame): Update.
7247 * frame.c (frame_pc_unwind): Update.
7248 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7249 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7250 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7251 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7252 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7253 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7255 2003-03-12 Andrew Cagney <cagney@redhat.com>
7257 Eliminate the need for POP_FRAME.
7258 * frame.c (do_frame_unwind_register): New function.
7259 (frame_pop): When no POP_FRAME, pop the frame using register
7260 unwind and a scratch regcache.
7261 (frame_saved_regs_pop): Delete function.
7262 (trad_frame_unwinder): Update.
7263 * d10v-tdep.c (d10v_frame_pop): Delete function.
7264 (d10v_frame_unwind): Update.
7265 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7266 (sentinel_frame_unwinder): Update.
7267 * dummy-frame.c (dummy_frame_pop): Delete function.
7268 (dummy_frame_unwind): Update.
7269 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7270 (struct frame_unwind): Update.
7272 2003-03-11 Kevin Buettner <kevinb@redhat.com>
7274 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7275 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7276 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7277 Do range checks on register number obtained from debugging info.
7278 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7279 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7280 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7282 (do_fp_register_row): Fix typo which caused double type to be
7283 used when attempting to unpack a float.
7285 2003-03-11 J. Brobecker <brobecker@gnat.com>
7287 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7289 2003-03-11 Andrew Cagney <cagney@redhat.com>
7291 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7292 frame. Problem found by Corinna Vinschen.
7294 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7296 * doublest.c (floatformat_from_length): Accept also
7297 the real size of 'long double' type.
7299 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
7301 From Klee Dienes <kdienes@apple.com>:
7302 * breakpoint.c (bpstat_copy): Copy the command lines as well
7303 as the old value, to match what is freed in bpstat_clear.
7305 2003-03-10 David Carlton <carlton@math.stanford.edu>
7307 * minsyms.c (add_minsym_to_hash_table): Replace
7308 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7309 (compare_minimal_symbols, compact_minimal_symbols)
7310 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7311 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7312 of DEPRECATED_SYMBOL_MATCHES_NAME.
7313 (lookup_minimal_symbol_solib_trampoline): Ditto.
7315 2003-03-10 Andrew Cagney <cagney@redhat.com>
7317 * regcache.h (regcache_cooked_read_ftype): Define.
7318 (regcache_save, regcache_restore): Add a cooked_read parameter.
7319 * regcache.c (regcache_save, regcache_restore): Update.
7320 (do_cooked_read): New function.
7321 (regcache_cpy): Pass do_cooked_read to regcache_save and
7324 2003-03-10 Andrew Cagney <cagney@redhat.com>
7326 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7327 * gdbarch.h, gdbarch.c: Re-generate.
7328 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7329 * x86-64-tdep.h: Update.
7330 * x86-64-tdep.c (x86_64_init_abi): Update.
7331 * v850-tdep.c (v850_gdbarch_init): Update.
7332 * sparc-tdep.c (sparc_gdbarch_init): Update.
7333 * sh-tdep.c (sh_gdbarch_init): Update.
7334 * s390-tdep.c (s390_gdbarch_init): Update.
7335 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7336 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7337 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7338 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7339 * mips-tdep.c (mips_gdbarch_init): Update.
7340 * mcore-tdep.c (mcore_gdbarch_init): Update.
7341 * m68k-tdep.c (m68k_gdbarch_init): Update.
7342 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7343 * ia64-tdep.c (ia64_gdbarch_init): Update.
7344 * i386-tdep.c (i386_gdbarch_init): Update.
7345 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7346 * hppa-tdep.c (hppa_gdbarch_init): Update.
7347 * h8300-tdep.c (h8300_gdbarch_init): Update.
7348 * frv-tdep.c (frv_gdbarch_init): Update.
7349 * cris-tdep.c (cris_gdbarch_init): Update.
7350 * avr-tdep.c (avr_gdbarch_init): Update.
7351 * arm-tdep.c (arm_gdbarch_init): Update.
7352 * alpha-tdep.c (alpha_gdbarch_init): Update.
7353 * sh-tdep.c (sh_init_extra_frame_info): Update.
7354 (sh64_init_extra_frame_info): Update.
7355 * ns32knbsd-nat.c (frame_num_args): Update.
7356 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7357 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7358 (xstormy16_frame_chain_valid): Update.
7359 * vax-tdep.c (vax_saved_pc_after_call): Update.
7360 * v850-tdep.c (v850_frame_chain): Update.
7361 (v850_pop_frame): Update.
7362 (v850_init_extra_frame_info): Update.
7363 * sparc-tdep.c (setup_arbitrary_frame): Update.
7364 * ns32k-tdep.c (umax_frame_num_args): Update.
7365 * s390-tdep.c (s390_pop_frame_regular): Update.
7366 * mn10300-tdep.c (mn10300_frame_chain): Update.
7367 (mn10300_pop_frame_regular): Update.
7368 (mn10300_init_extra_frame_info): Update.
7369 * mips-tdep.c (mips_init_frame_pc_first): Update.
7370 (mips_frame_chain): Update.
7371 (mips_pop_frame): Update.
7372 * mcore-tdep.c (mcore_frame_chain): Update.
7373 (mcore_pop_frame): Update.
7374 (mcore_init_extra_frame_info): Update.
7375 * arch-utils.c (init_frame_pc_default): Update.
7376 * m68k-tdep.c (isi_frame_num_args): Update.
7377 (delta68_frame_num_args): Update.
7378 (news_frame_num_args): Update.
7379 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7380 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7381 (alpha_frame_chain): Update.
7382 (alpha_pop_frame): Update.
7383 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7384 (hppa_init_extra_frame_info): Update.
7385 (hppa_frame_chain): Update.
7386 (hppa_frame_chain_valid): Update.
7387 * cris-tdep.c (cris_init_extra_frame_info): Update.
7388 * avr-tdep.c (avr_init_extra_frame_info): Update.
7389 * arm-tdep.c (arm_frame_chain_valid): Update.
7390 (arm_init_extra_frame_info): Update.
7391 (arm_pop_frame): Update.
7392 * frame.c (frame_pc_unwind): Update.
7393 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7394 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7395 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7396 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7397 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7398 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7400 2003-03-10 Andrew Cagney <cagney@redhat.com>
7402 * gdbarch.sh (gdbarch_unwind_pc): New method.
7403 * gdbarch.h, gdbarch.c: Regenerate.
7404 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
7405 but use read_pc and FRAME_SAVED_PC as fall backs.
7406 (frame_saved_regs_pc_unwind): Delete function.
7407 (trad_frame_unwinder): Update.
7408 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7409 (struct frame_unwind): Update.
7410 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7411 (dummy_frame_unwind): Update.
7412 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7413 (sentinel_frame_unwinder): Update.
7414 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7415 (d10v_frame_unwind): Update.
7416 (d10v_unwind_pc): New function.
7417 (d10v_gdbarch_init): Set unwind_pc.
7419 2003-03-10 Andrew Cagney <cagney@redhat.com>
7421 * gdbarch.h: Re-generate.
7423 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7425 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7428 2003-03-08 Mark Kettenis <kettenis@gnu.org>
7430 * gdbarch.sh (save_dummy_frame_tos): Add comment.
7432 2003-03-08 Andrew Cagney <cagney@redhat.com>
7434 * cli-out.c: Update copyright.
7435 (cli_out_data): Define typedef. Use instead of ui_out_data.
7437 2003-03-08 Andrew Cagney <cagney@redhat.com>
7439 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7442 2003-03-07 Andrew Cagney <cagney@redhat.com>
7444 * gdbarch.sh: Don't generate two macro definitions when an
7445 undefined macro taking no arguments.
7446 * gdbarch.h: Regenerate.
7448 2002-03-07 Michal Ludvig <mludvig@suse.cz>
7450 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7451 (x86_64_unwind_dummy_id): New functions.
7452 (x86_64_init_abi): Register these two new functions.
7454 2003-03-07 Michal Ludvig <mludvig@suse.cz>
7456 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
7457 (x86_64_skip_prologue): Move prologue detection to
7459 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7461 2003-03-05 Andrew Cagney <cagney@redhat.com>
7463 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7464 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7465 * frame.c (get_prev_frame): Restructure the frame ID unwind code
7466 to use unwind_dummy_id when a dummy frame.
7467 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7469 * gdbarch.h, gdbarch.c: Regneerate.
7471 2003-03-05 Andrew Cagney <cagney@redhat.com>
7473 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
7474 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
7475 Do not use d10v_read_sp or d10v_read_fp when obtaining register
7478 2003-03-05 Andrew Cagney <cagney@redhat.com>
7480 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
7481 (struct d10v_unwind_cache): Delete field "frameless". Replace
7482 "next_addr" with "sp_offset". Add "r11_offset".
7483 (d10v_frame_unwind_cache): Update.
7484 (prologue_find_regs): Update. When "mv r11, sp", save the
7485 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
7486 RN was saved in r11_offset.
7488 2003-03-05 Andrew Cagney <cagney@redhat.com>
7490 * frame.c (deprecated_update_frame_pc_hack): Also update the the
7491 cached PC value in the next frame.
7493 2003-03-05 Andrew Cagney <cagney@redhat.com>
7495 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
7496 "id_unwind_cache" with "id".
7497 (frame_id_unwind): Delete declaration.
7498 * frame.c (frame_id_unwind): Delete function.
7499 (get_prev_frame): Call the frame id unwind method directly. Store
7500 the returned next frame's ID value in NEXT_FRAME. Note that there
7501 is a problem with the wrong unwind ID being called with the wrong
7504 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7506 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
7508 2003-03-05 James Ingham <jingham@apple.com>
7509 Daniel Jacobowitz <drow@mvista.com>
7511 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
7512 (auto_cp_abi): New variable.
7513 (current_cp_abi, num_cp_abis): Make static.
7514 (CP_ABI_MAX): Define.
7515 (cp_abis): Turn into an array.
7516 (value_virtual_fn_field): Fix formatting.
7517 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
7519 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
7520 (list_cp_abis, _initialize_cp_abi): New functions.
7521 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
7522 declarations for cp_abis, num_cp_abis, current_cp_abi, and
7523 switch_to_cp_abi. Update prototype for register_cp_abi.
7524 * Makefile.in (cp-abi.o): Update dependencies.
7525 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
7526 instead of switch_to_cp_abi.
7527 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
7529 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
7531 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
7533 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7535 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
7536 * dwarf2loc.c: Include "regcache.h".
7537 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
7539 * Makefile.in (dwarf2loc.o): Update dependencies.
7541 2003-03-04 Theodore A. Roth <troth@openavr.org>
7543 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
7544 number of io registers reported by remote target is not a multiple of
7547 2003-03-04 David Carlton <carlton@math.stanford.edu>
7549 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
7550 (lookup_symbol_aux_psymtabs): Update call to
7551 lookup_partial_symbol.
7552 (lookup_transparent_type, find_main_psymtab)
7553 (make_symbol_overload_list): Ditto.
7555 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
7557 * MAINTAINERS (Write after approval): Update my email address.
7559 2003-03-03 Andrew Cagney <cagney@redhat.com>
7561 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
7562 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
7563 predicate. Replace MAX_REGISTER_RAW_SIZE.
7564 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
7565 MAX_REGISTER_VIRTUAL_SIZE.
7566 * regcache.c (legacy_max_register_raw_size): New function.
7567 (legacy_max_register_virtual_size): New function.
7568 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
7569 (MAX_REGISTER_RAW_SIZE): Define.
7570 (legacy_max_register_raw_size): Declare.
7571 (legacy_max_register_virtual_size): Declare.
7572 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7573 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
7574 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7575 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7576 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7577 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7578 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7579 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7580 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7581 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7582 * vax-tdep.c (vax_gdbarch_init): Update.
7583 * v850-tdep.c (v850_gdbarch_init): Update.
7584 * sparc-tdep.c (sparc_gdbarch_init): Update.
7585 * sh-tdep.c (sh_gdbarch_init): Update.
7586 * s390-tdep.c (s390_gdbarch_init): Update.
7587 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7588 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7589 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7590 * mips-tdep.c (mips_gdbarch_init): Update.
7591 * mcore-tdep.c (mcore_gdbarch_init): Update.
7592 * m68k-tdep.c (m68k_gdbarch_init): Update.
7593 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7594 * ia64-tdep.c (ia64_gdbarch_init): Update.
7595 * i386-tdep.c (i386_gdbarch_init): Update.
7596 * hppa-tdep.c (hppa_gdbarch_init): Update.
7597 * h8300-tdep.c (h8300_gdbarch_init): Update.
7598 * frv-tdep.c (frv_gdbarch_init): Update.
7599 * cris-tdep.c (cris_gdbarch_init): Update.
7600 * avr-tdep.c (avr_gdbarch_init): Update.
7601 * arm-tdep.c (arm_gdbarch_init): Update.
7602 * alpha-tdep.c (alpha_gdbarch_init): Update.
7603 * d10v-tdep.c (d10v_gdbarch_init): Do not set
7604 max_register_raw_size or max_register_virtual_size.
7606 2003-03-03 David Carlton <carlton@math.stanford.edu>
7608 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
7609 SYMBOL_MATCHES_NAME, add comment.
7610 (SYMBOL_MATCHES_NATURAL_NAME): New.
7611 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
7612 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
7613 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
7614 * symtab.c (lookup_partial_symbol): Use
7615 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
7617 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
7618 SYMBOL_MATCHES_NAME.
7621 2003-03-03 David Carlton <carlton@math.stanford.edu>
7623 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
7624 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
7625 by regexp matching against SYMBOL_NATURAL_NAME.
7627 2003-03-03 David Carlton <carlton@math.stanford.edu>
7629 * linespec.c (find_method): Extract code into collect_methods.
7630 (collect_methods): New.
7632 2003-03-02 Mark Kettenis <kettenis@gnu.org>
7634 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
7637 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
7638 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7640 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
7642 * arch-utils.c (generic_register_byte): Fix to use the loop index
7643 and not regnum when summing the size of all registers up to regnum.
7645 2003-03-01 Andrew Cagney <cagney@redhat.com>
7647 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
7648 FRAME_INIT_SAVED_REGS.
7649 * gdbarch.h, gdbarch.c: Regenerate.
7650 * stack.c (frame_info): Update.
7651 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
7652 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
7653 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
7654 * ns32k-tdep.c (ns32k_pop_frame): Update.
7655 * mips-tdep.c (mips_pop_frame): Update.
7656 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
7657 * ia64-tdep.c (ia64_frame_chain): Update.
7658 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
7659 (ia64_frameless_function_invocation): Update.
7660 (ia64_init_extra_frame_info): Update.
7661 (ia64_pop_frame_regular): Update.
7662 * frame.h (struct frame_info): Update comment.
7663 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
7664 * frame.c (frame_saved_regs_register_unwind): Update.
7665 (frame_saved_regs_register_unwind): Update.
7666 (deprecated_generic_get_saved_register): Update.
7667 * cris-tdep.c: Update comment.
7668 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
7670 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7671 * x86-64-tdep.c (x86_64_init_abi): Update.
7672 * vax-tdep.c (vax_gdbarch_init): Update.
7673 * v850-tdep.c (v850_gdbarch_init): Update.
7674 * sparc-tdep.c (sparc_gdbarch_init): Update.
7675 * sh-tdep.c (sh_gdbarch_init): Update.
7676 * s390-tdep.c (s390_gdbarch_init): Update.
7677 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7678 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7679 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7680 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7681 * mips-tdep.c (mips_gdbarch_init): Update.
7682 * mcore-tdep.c (mcore_gdbarch_init): Update.
7683 * m68k-tdep.c (m68k_gdbarch_init): Update.
7684 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7685 * ia64-tdep.c (ia64_gdbarch_init): Update.
7686 * i386-tdep.c (i386_gdbarch_init): Update.
7687 * frv-tdep.c (frv_gdbarch_init): Update.
7688 * avr-tdep.c (avr_gdbarch_init): Update.
7689 * arm-tdep.c (arm_gdbarch_init): Update.
7690 * alpha-tdep.c (alpha_gdbarch_init): Update.
7692 2003-03-01 Andrew Cagney <cagney@redhat.com>
7694 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
7695 option enum and switch. When no windows, set the interpreter to
7698 2003-03-01 Andrew Cagney <cagney@redhat.com>
7700 * main.c (captured_main): Replace magic option characters with an
7703 2003-03-01 Andrew Cagney <cagney@redhat.com>
7705 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
7706 INIT_EXTRA_FRAME_INFO.
7707 * gdbarch.h, gdbarch.c: Regenerate.
7708 * arm-tdep.c: Update comments.
7709 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
7710 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
7711 * frame.h, avr-tdep.c: Ditto.
7712 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
7713 (create_new_frame, legacy_get_prev_frame): Ditto.
7714 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7715 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7716 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
7717 deprecated_init_extra_frame_info instead of init_extra_frame_info.
7718 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7719 * v850-tdep.c (v850_gdbarch_init): Ditto.
7720 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7721 * sh-tdep.c (sh_gdbarch_init): Ditto.
7722 * s390-tdep.c (s390_gdbarch_init): Ditto.
7723 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
7724 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7725 * mips-tdep.c (mips_gdbarch_init): Ditto.
7726 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7727 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7728 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7729 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
7730 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7731 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7732 * frv-tdep.c (frv_gdbarch_init): Ditto.
7733 * cris-tdep.c (cris_gdbarch_init): Ditto.
7734 * avr-tdep.c (avr_gdbarch_init): Ditto.
7735 * arm-tdep.c (arm_gdbarch_init): Ditto.
7736 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7737 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7739 2003-03-01 Andrew Cagney <cagney@redhat.com>
7741 * gdbarch.sh (register_type): New function with predicate.
7742 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
7743 * gdbarch.h, gdbarch.c: Re-generate.
7744 * arch-utils.c (generic_register_byte): Use generic_register_size.
7745 (generic_register_size): When available, use
7746 gdbarch_register_type.
7747 * regcache.c (init_regcache_descr): When available, initialize the
7748 register type array using gdbarch_register_type. If the
7749 architecture supplies gdbarch_register_type, do not use the legacy
7751 * d10v-tdep.c (d10v_register_type): Replace
7752 d10v_register_virtual_type.
7753 (d10v_gdbarch_init): Set register_type instead of
7754 register_virtual_type.
7756 2003-03-01 Andrew Cagney <cagney@redhat.com>
7758 * Makefile.in (ax-gdb.o): Update dependencies.
7759 * ax-gdb.c: Include "regcache.h".
7760 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
7761 * findvar.c (value_of_register): Ditto.
7762 * infcmd.c (default_print_registers_info): Ditto.
7764 2003-03-01 Mark Kettenis <kettenis@gnu.org>
7766 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
7767 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7769 2003-03-01 Mark Kettenis <kettenis@gnu.org>
7771 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
7774 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
7776 * Makefile.in (dwarf2loc.o): Update dependencies.
7777 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
7778 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
7779 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
7780 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
7781 (locexpr_tracepoint_var_ref): New function.
7782 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
7784 2003-02-28 Andrew Cagney <cagney@redhat.com>
7786 * regcache.c (register_size): New function.
7787 * regcache.h (register_size): Declare
7788 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
7789 max_register_size instead of MAX_REGISTER_RAW_SIZE.
7791 2003-02-28 David Carlton <carlton@math.stanford.edu>
7793 * linespec.c (decode_compound): Extract code into find_method.
7796 2003-02-28 J. Brobecker <brobecker@gnat.com>
7798 * Makefile.in: Add rules to build and link in observer.o.
7800 2003-02-27 J. Brobecker <brobecker@gnat.com>
7802 * observer.c: Minor comments edits.
7804 2003-02-27 J. Brobecker <brobecker@gnat.com>
7806 * observer.h, observer.c: New file.
7808 2003-02-27 Andrew Cagney <cagney@redhat.com>
7810 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
7812 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
7814 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
7815 (M6812_OP_STS_EXT): Likewise.
7816 (m6811_prologue): Use the above to recognize prologue.
7817 (m6812_prologue): Likewise.
7819 2003-02-27 David Carlton <carlton@math.stanford.edu>
7821 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
7823 (compare_psymbols): Ditto.
7824 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
7826 2003-02-27 Michael Snyder <msnyder@redhat.com>
7828 * f-lang.c (build_fortran_types): New function.
7829 (_initialize_f_language): Gdbarch-register built-in fortran types.
7830 * doublest.c (extract_floating): Fix warning text.
7832 2003-02-27 Andrew Cagney <cagney@redhat.com>
7834 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
7835 predicate. Replaces PUSH_DUMMY_FRAME.
7836 * gdbarch.h, gdbarch.c: Regnerate.
7837 * valops.c (hand_function_call): Update. Call
7838 generic_push_dummy_frame directly.
7839 * vax-tdep.c (vax_gdbarch_init): Update.
7840 * sparc-tdep.c (sparc_gdbarch_init): Update.
7841 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7842 * m68k-tdep.c (m68k_gdbarch_init): Update.
7843 * hppa-tdep.c (hppa_gdbarch_init): Update.
7844 * alpha-tdep.c (alpha_gdbarch_init): Update.
7845 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7846 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7847 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
7848 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
7849 push_dummy_frame to generic_push_dummy_frame.
7850 * v850-tdep.c (v850_gdbarch_init): Ditto.
7851 * sh-tdep.c (sh_gdbarch_init): Ditto.
7852 * s390-tdep.c (s390_gdbarch_init): Ditto.
7853 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7854 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7855 * mips-tdep.c (mips_gdbarch_init): Ditto.
7856 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7857 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7858 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7859 * i386-tdep.c (i386_gdbarch_init): Ditto.
7860 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7861 * frv-tdep.c (frv_gdbarch_init): Ditto.
7862 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7863 * cris-tdep.c (cris_gdbarch_init): Ditto.
7864 * avr-tdep.c (avr_gdbarch_init): Ditto.
7865 * arm-tdep.c (arm_gdbarch_init): Ditto.
7867 2003-02-26 Kevin Buettner <kevinb@redhat.com>
7869 * mips-tdep.c (show_mips_abi): New function.
7870 (_initialize_mips_tdep): Use show_mips_abi() to implement the
7871 command ``show mips abi''.
7873 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
7875 From Elena Zannoni <ezannoni@redhat.com>
7876 * dbxread.c (process_one_symbol): Only record line 0 if one or
7877 more sline entries have been seen for the function.
7879 2003-02-26 Michael Chastain <mec@shout.net>
7881 * configure: Regenerate with autoconf 000227.
7883 2003-02-26 Michael Chastain <mec@shout.net>
7886 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
7887 for old libc5/glibc.
7888 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
7890 2003-02-26 Kris Warkentin <kewarken@qnx.com>
7892 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
7893 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
7895 2003-02-26 Michael Chastain <mec@shout.net>
7897 * configure.in: New variable HAVE_UINTPTR_T.
7898 * configure, config.in: Regenerated.
7900 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
7903 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
7905 2003-02-25 Andrew Cagney <cagney@redhat.com>
7907 * frame.c (get_prev_frame): Add comment on check for
7908 inside_entry_func. Only check for inside_entry_file when not a
7909 dummy and not a sentinel. Check that the new frame is not inner
7912 2003-02-25 Andrew Cagney <cagney@redhat.com>
7914 * frame.c (frame_debug): New variable.
7915 (_initialize_frame): Add "set/show debug frame" command.
7916 (get_prev_frame): When frame_debug, print reason why unwind
7919 2003-02-25 Michael Chastain <mec@shout.net>
7921 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
7922 to avoid uintptr_t definition problems.
7924 2003-02-25 David Carlton <carlton@math.stanford.edu>
7926 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
7927 (SYMBOL_LINKAGE_NAME): Ditto.
7928 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
7929 SYMBOL_LINKAGE_NAME.
7930 (struct general_symbol_info): Expand comment.
7931 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
7932 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
7933 (SYMBOL_MATCHES_REGEXP): Ditto.
7934 * symtab.c (symbol_natural_name): New function.
7935 * objfiles.h: Replace all uses of SYMBOL_NAME by
7936 DEPRECATED_SYMBOL_NAME.
7937 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
7938 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
7939 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
7940 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
7941 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
7942 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
7943 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
7944 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
7945 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
7946 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
7948 * ada-exp.y: Update copyright.
7949 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
7950 * cp-valprint.c: Ditto.
7952 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
7954 * infptrace.c (detach): Do not flag error if ptrace detach fails
7955 and errno is set to ESRCH.
7957 2003-02-24 Andrew Cagney <cagney@redhat.com>
7959 * infptrace.c (udot_info): Change type of udot_off to long. Use
7960 paddr when printing udot_off's value.
7962 2003-02-24 David Carlton <carlton@math.stanford.edu>
7964 * symtab.c (make_symbol_overload_list): Only read in partial
7965 symtabs containing a matching partial symbol.
7967 2003-02-24 David Carlton <carlton@math.stanford.edu>
7969 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
7970 do the comparison, not strcmp.
7971 * symfile.c (compare_psymbols): Ditto.
7972 * defs.h: Declare strcmp_iw_ordered.
7973 * utils.c (strcmp_iw_ordered): New function.
7975 2003-02-24 Jim Blandy <jimb@redhat.com>
7977 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
7978 support, shared libs): Remove my name from here, to better reflect
7981 2003-02-24 Kris Warkentin <kewarken@qnx.com>
7983 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
7984 (target_ops): Add to_have_continuable_watchpoint.
7985 * target.c (update_current_target): Add INHERIT line for
7986 to_have_continuable_watchpoint.
7987 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
7988 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
7989 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
7990 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
7992 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
7994 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
7997 2003-02-24 Kris Warkentin <kewarken@qnx.com>
7999 * solib.c (solib_open): Call target defined search function after
8000 failing with solib-search-path.
8001 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8002 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8004 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8006 * MAINTAINERS: Add myself to Write After section.
8008 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8010 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8012 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8014 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8015 (m68hc11_add_reggroups): New function.
8016 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8017 (m68hc11_gdbarch_init): Install the reggroups.
8018 (_initialize_m68hc11_tdep): Initialize them.
8020 2003-02-21 James E Wilson <wilson@tuliptree.org>
8022 * MAINTAINERS: Update my email address.
8024 2003-02-21 David Carlton <carlton@math.stanford.edu>
8026 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8028 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8030 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8031 * symtab.h: Add opaque declarations of struct axs_value and
8033 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8034 (struct location_funcs): New type.
8035 (struct symbol): Add "loc" to aux_value.
8036 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8037 * dwarf2read.c: Include "dwarf2expr.h".
8038 (dwarf2_symbol_mark_computed): New function.
8039 (read_func_scope): Use it.
8040 (var_decode_location): New function.
8041 (new_symbol): Use it.
8042 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8044 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8045 (dwarf2expr_h, dwarf2loc_h): New variables.
8046 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8047 (dwarf2expr.o, dwarf2loc.o): New rules.
8048 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8049 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8051 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8052 * m2-exp.y (yylex): Likewise.
8053 * printcmd.c (address_info, print_frame_args): Likewise.
8054 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8055 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8056 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8057 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8058 * symtab.c (lookup_block_symbol): Likewise.
8060 2003-02-20 Adam Fedor <fedor@gnu.org>
8062 * symtab.h: Remove objc_specific struct
8063 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8064 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8065 Have language_objc use cplus_specific struct.
8067 2003-02-20 Tom Tromey <tromey@redhat.com>
8069 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8070 TYPE_NAME, when printing a String value. PR java/1075.
8072 2003-02-20 Adam Fedor <fedor@gnu.org>
8074 * objc-lang.h (find_methods): Remove declaration.
8075 * objc-lang.c (find_methods): Make static.
8077 2003-02-20 Christopher Faylor <cgf@redhat.com>
8079 * win32-nat.c (get_image_name): Check return value from
8081 (child_xfer_memory): Ditto.
8083 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8085 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8086 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8087 '${exec_prefix}' (in addition to the expansion thereof) as
8089 * configure: Rebuilt.
8091 2003-02-20 David Carlton <carlton@math.stanford.edu>
8093 * symtab.c (search_symbols): Revert the search_symbols part of my
8094 2002-12-23 patch. Add comment.
8096 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8098 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8099 * dbxread.c (elfstab_build_psymtabs): Don't call
8100 install_minimal_symbols.
8101 (stabsect_build_psymtabs): Likewise.
8102 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8104 * somread.c (som_symfile_read): Call install_minimal_symbols
8105 and do_cleanups earlier.
8106 * nlmread.c (nlm_symfile_read): Likewise.
8107 * mdebugread.c (elfmdebug_build_psymtabs): Call
8108 install_minimal_symbols and make appropriate cleanups.
8110 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8112 * solib.c (reload_shared_libraries): New function.
8113 (_initialize_solib): Add callbacks for ``set solib-search-path''
8114 and ``set solib-absolute-prefix''.
8116 2003-02-20 David Carlton <carlton@math.stanford.edu>
8118 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8120 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8121 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8122 * ada-typeprint.c (ada_typedef_print): Ditto.
8123 * ax-gdb.c (gen_var_ref): Ditto.
8124 * breakpoint.c (print_one_breakpoint): Ditto.
8125 * buildsym.c (finish_block): Ditto.
8126 * c-valprint.c (c_val_print): Ditto.
8127 * expprint.c (print_subexp): Ditto.
8128 * findvar.c (locate_var_value): Ditto.
8129 * infcmd.c (jump_command): Ditto.
8130 * linespec.c (decode_line_2, decode_compound): Ditto.
8131 * maint.c (maintenance_translate_address): Ditto.
8132 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8133 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8135 * p-valprint.c (pascal_val_print): Ditto.
8136 * stabsread.c (define_symbol): Ditto.
8137 * stack.c (print_frame, frame_info, print_block_frame_locals)
8138 (print_frame_arg_vars, return_command): Ditto.
8139 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8140 * symmisc.c (print_symbol): Ditto.
8141 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8142 (compare_search_syms, print_symbol_info, print_msymbol_info)
8143 (rbreak_command): Ditto.
8144 * tracepoint.c (tracepoints_info): Ditto.
8145 * typeprint.c (typedef_print): Ditto.
8146 * valops.c (value_of_variable, hand_function_call): Ditto.
8147 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8148 * ada-typeprint.c: Update Copyright.
8149 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8150 * tracepoint.c, cli/cli-cmds.c: Ditto.
8152 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8154 * frame.c (generic_unwind_get_saved_register): Make non-static.
8155 * frame.h (generic_unwind_get_saved_register): Declare.
8156 * mips-tdep.c (read_next_frame_reg): Fetch register from
8157 current regcache when frame is NULL.
8158 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8160 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8161 instead of frame_register_unwind().
8163 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8165 * remote-sim.c (gdbsim_insert_breakpoint)
8166 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8169 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8171 * remote.c (_initialize_remote): Add commands "set/show remote
8172 hardware-watchpoint-limit" and "set/show remote
8173 hardware-breakpoint-limit".
8174 (remote_hw_watchpoint_limit): Initialize to -1.
8175 (remote_hw_breakpoint_limit): Ditto.
8176 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8178 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8180 * coff-pe-read.c: New file - support reading of minimal symbols from a
8181 portable executable using the export table.
8182 * coff-pe-read.h: New file.
8183 * coffread.c: Include coff-pe-read.h.
8184 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8185 debugging symbols found.
8186 * Makefile.in (SFILES): Add coff-pe-read.o.
8187 (coff_pe_read_h): Define.
8188 (COMMON_OBS): Add coff-pe-read.o.
8189 (coffread.o): Add coff_pe_read_h dependency.
8190 (coff-pe-read.o): New target.
8192 2003-02-19 David Carlton <carlton@math.stanford.edu>
8194 * Makefile.in (SFILES): Add block.c.
8196 (COMMON_OBS): Add block.o.
8198 (x86-64-tdep.o): Add $(block_h).
8199 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8200 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8201 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8202 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8203 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8204 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8205 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8206 * value.h: Add opaque declaration for struct block.
8207 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8208 * ada-lang.h: Ditto.
8209 * x86-64-tdep.c: #include "block.h"
8210 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8211 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8212 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8213 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8214 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8215 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8216 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8217 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8218 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8219 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8220 * symtab.c (block_function): Ditto.
8221 (contained_in): Ditto.
8222 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8223 block.h. Add opaque declaration for struct block.
8224 * symtab.h: Move block_function and contained_in declarations to
8225 block.h. Add opaque declarations for struct block, struct
8227 (struct block): Move to block.h.
8228 (struct blockvector): Ditto.
8229 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8230 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8231 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8232 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8233 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8235 * block.c: New file.
8236 * block.h: New file.
8238 2003-02-19 Theodore A. Roth <troth@openavr.org>
8240 * avr-tdep.c (avr_extract_return_value): Remove function.
8241 (avr_store_return_value): Remove function.
8242 (avr_extract_struct_value_address): Remove function.
8243 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8245 2003-02-19 Andrew Cagney <ac131313@redhat.com>
8247 * rs6000-tdep.c: Include "gdb_assert.h".
8248 (registers_e500): Add "acc" and "spefscr".
8249 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8250 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8251 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8253 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8255 2003-02-18 Keith Seitz <keiths@redhat.com>
8257 * Makefile.in: Add gdbtk-interps.c.
8259 2003-02-18 Kevin Buettner <kevinb@redhat.com>
8261 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8262 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8264 2003-02-18 Andrew Cagney <cagney@redhat.com>
8266 * symtab.h (struct objfile): Add opaque declaration.
8268 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
8270 From Jim Ingham <jingham@apple.com>:
8271 * dbxread.c (process_one_symbol): Use last_function_start rather
8272 than function_start_offset to find the real beginning of the
8273 current function. The latter is just the text section offset on
8274 some systems, the former is always the real function start.
8276 2003-02-17 Andrew Cagney <cagney@redhat.com>
8278 * configure.in: Revert ${target} != ${host}.
8280 2003-02-17 Andrew Cagney <ac131313@redhat.com>
8282 * configure.in (Makefile): Use the test ${target} != ${host},
8283 instead of the absence of the "nm.h" file, to determine of the
8284 configuration non-native.
8285 * configure: Regenerate.
8287 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
8289 From Brian Ford <ford@vss.fsi.com>
8291 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8292 conditionalize tui_active test.
8293 (lookup_cmd_1): Ditto.
8295 2003-02-14 Mark Kettenis <kettenis@gnu.org>
8297 * configure.in: Add check for _etext.
8298 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8300 * config.in, configure: regenerated.
8302 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
8304 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8306 2003-02-14 Andrew Cagney <ac131313@redhat.com>
8308 * main.c (tui_version): Delete variable.
8309 (captured_main): When --tui, set interpreter_p to "tui" instead of
8310 enabling tui_version.
8311 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8313 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8314 * cli/cli-cmds.c (disassemble_command): Ditto.
8315 * defs.h (tui_version): Delete declaration.
8316 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8317 (tui-interp.o): Add rules.
8318 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8320 2003-02-14 Christopher Faylor <cgf@redhat.com>
8322 * win32-nat.c (register_loaded_dll): Correctly set address range for
8325 2003-02-12 Jason Molenda (jmolenda@apple.com)
8327 * symmisc.c (print_objfile_statistics): Include information about
8328 the number of psymtabs and symtabs in each object file.
8330 2003-02-13 Keith R Seitz <keiths@redhat.com>
8332 * main.h (struct captured_main_args): Add interpreter_p.
8333 * main.c (captured_main): Initialize interpreter_p from context.
8334 * gdb.c (main): Set interpreter_p argument.
8335 * Makefile.in (gdb.o): Add dependency for interps.h.
8337 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8339 * event-top.c (cli_command_loop): Delete declaration.
8340 (_initialize_event_loop): Delete function setting event_loop_hook.
8341 * event-top.h (cli_command_loop): Declare. Update copyright.
8342 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8343 * interps.c (current_interp_command_loop): When event_loop_p, call
8346 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8348 * interps.h (interp_command_loop_ftype): Change return type to
8351 2003-02-12 Michal Ludvig <mludvig@suse.cz>
8353 * x86-64-tdep.c (x86_64_extract_return_value)
8354 (x86_64_store_return_value): Use regcache instead of regbuf.
8355 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8356 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8358 2003-02-11 Andrew Cagney <ac131313@redhat.com>
8360 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8361 * aclocal.m4: Regenerate.
8362 * configure: Regenerate.
8364 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8365 TCL_LD_SEARCH_FLAGS.
8367 2003-02-10 Michal Ludvig <mludvig@suse.cz>
8369 * dwarf2cfi.c: Reindented.
8371 2003-02-09 Andrew Cagney <ac131313@redhat.com>
8373 * interps.c (clear_interpreter_hooks): Convert function definition
8376 2003-02-07 David Carlton <carlton@math.stanford.edu>
8378 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8380 2003-02-07 Kevin Buettner <kevinb@redhat.com>
8382 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8383 (struct type): ...to here.
8384 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8386 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8387 (replace_type): Set length on all type variants for a given type.
8389 2003-02-07 Andrew Cagney <ac131313@redhat.com>
8391 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8393 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8395 2003-02-06 Andrew Cagney <ac131313@redhat.com>
8397 * Makefile.in (symm-nat.o): Update dependencies.
8398 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8399 (lynx-nat.o, ia64-linux-nat.): Ditto.
8400 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8401 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8402 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8404 * Makefile.in (inflow_h): Define.
8405 (procfs.o, inflow.o, procfs.o): Update dependencies.
8406 * inftarg.c (child_stop): Delete extern declaration of
8407 inferior_process_group. Include "inflow.h".
8408 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
8409 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8410 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
8411 (our_process_group, inferior_process_group): Extern declarations.
8413 * procfs.c: Include "gdb_assert.h".
8415 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8416 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8417 * jv-typeprint.c (java_type_print_base): Ditto.
8418 * typeprint.c (typedef_print): Eliminate STREQ.
8419 * cli/cli-script.c (define_command, define_command): Ditto.
8420 * main.c (captured_main): Ditto.
8421 * values.c (lookup_internalvar): Ditto.
8422 * utils.c (safe_strerror, parse_escape): Eliminate assignment
8423 within `if' conditional.
8424 * linespec.c (decode_line_2): Ditto.
8425 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8426 (bfd_openw_with_cleanup): Ditto.
8428 2003-02-07 Mark Kettenis <kettenis@gnu.org>
8430 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8431 legacy_extract_return_value and store_return_value to
8432 legacy_return_value.
8434 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
8436 * win32-nat.c (get_relocated_section_addrs): New function. Find
8437 section load addresses for symbol handling in relocated DLLs.
8438 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8440 2003-02-05 Fred Fish <fnf@intrinsity.com>
8442 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8444 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8446 (angel_RDI_info): Ditto.
8447 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8449 (threads_continue_all_with_signals): Ditto.
8451 2003-02-05 Jim Ingham <jingham@apple.com>
8452 Keith Seitz <keiths@redhat.com>
8453 Elena Zannoni <ezannoni@redhat.com>
8454 Andrew Cagney <ac131313@redhat.com>
8456 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8457 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8458 (SUBDIR_MI_OBS): Add "mi-interp.o".
8459 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8460 (SFILES): Add "interps.c".
8461 (COMMON_OBS): Add "interps.o".
8462 (interps_h, mi_main_h): Define.
8463 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8464 (mi-main.o, main.o, event-top.o): Update dependencies.
8465 * cli/cli-interp.c: New file.
8466 * interps.h, interps.c: New files.
8467 * top.c: (gdb_init): Don't install the default interpreter, handed
8469 * main.c: Include "interps.h".
8470 (interpreter_p): Note that it should malloc'ed.
8471 (captured_command_loop): Call current_interp_command_loop.
8472 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
8473 xfree and xstrdup when updating interpreter_p. Install the
8474 default interpreter. Add hack to stop mi1's copyright notice
8476 * event-top.h (gdb_setup_readline): Declare.
8477 (gdb_disable_readline): Declare.
8478 * event-top.c: Include "interps.h".
8479 (display_gdb_prompt): Call current_interp_display_prompt_p.
8480 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
8481 gdb_stdlog, and gdb_stdtarg.
8482 (_initialize_event_loop): Don't call gdb_setup_readline.
8483 * cli-out.c (cli_out_set_stream): New function.
8484 * cli-out.h (cli_out_set_stream): Declare.
8486 2003-02-06 Mark Kettenis <kettenis@gnu.org>
8488 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
8489 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
8490 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
8491 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
8492 config/i386/i386v42mp.mt: Removed.
8494 2003-02-05 Mark Kettenis <kettenis@gnu.org>
8496 * configure.tgt (*-*-solaris*): Set gdb_osabi to
8499 2003-02-05 Michael Chastain <mec@shout.net>
8501 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
8502 2.12.1 and earlier versions.
8504 2003-02-05 Andrew Cagney <ac131313@redhat.com>
8506 Remove orphaned hosts, targets and files.
8507 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
8508 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
8509 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
8510 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
8511 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
8512 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
8513 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
8514 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
8515 * config/sparc/tm-sp64sim.h: Delete.
8516 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
8518 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
8519 mips*-dec-mach3* targets.
8521 2003-02-04 Michael Chastain <mec@shout.net>
8523 * NEWS: Fix typo: sepcifying -> specifying.
8525 2003-02-04 Michael Chastain <mec@shout.net>
8527 * dwarfread.c: Add documentation on the state of dwarf-1,
8528 looking towards obsoletion.
8530 2003-02-03 Michael Chastain <mec@shout.net>
8532 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
8533 gdb/testsuite/gdb.c++/pr-1023.exp.
8535 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8537 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
8538 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
8540 * utils.c (init_page_info): Delete reference to MPW in comments.
8541 * main.c (captured_main): Delete #ifdef MPW.
8543 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8545 * NEWS: Note that the m32r-*-elf* is obsolete.
8546 * monitor.c (monitor_expect): Obsolete reference to m32r.
8547 * configure.tgt: Mark m32r-*-elf* as obsolete.
8548 * MAINTAINERS: Mark m32k as obsolete.
8549 * m32r-rom.c: Obsolete file.
8550 * config/m32r/m32r.mt: Obsolete file.
8551 * config/m32r/tm-m32r.h: Obsolete file.
8552 * m32r-stub.c: Obsolete file.
8553 * m32r-tdep.c: Obsolete file.
8555 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8557 * NEWS: Mention that the z8k-zilog-none is obsolete.
8558 * MAINTAINERS: Mark z8k as obsolete.
8559 * configure.tgt: Obsolete the z8k-*-coff* target.
8560 * config/z8k/z8k.mt: Obsolete file.
8561 * config/z8k/tm-z8k.h: Obsolete file.
8562 * z8k-tdep.c: Obsolete file.
8564 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8566 * NEWS: Mention that the mn10200-elf is obsolete.
8567 * configure.tgt: Obsolete mn10200-*-* target.
8568 * breakpoint.c (update_breakpoints_after_exec): Update comment to
8569 mention that the mn10200 is obsolete.
8570 * breakpoint.h: Ditto.
8571 * MAINTAINERS: Mark the mn10200-elf as obsolete.
8572 * config/mn10200/mn10200.mt: Obsolete file.
8573 * config/mn10200/tm-mn10200.h: Obsolete file.
8574 * mn10200-tdep.c: Obsolete file.
8576 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8578 * MAINTAINERS: Mark h8500 as obsolete.
8579 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
8580 * findvar.c (value_from_register): Ditto.
8581 * h8500-tdep.c: Mark file as obsolete.
8582 * config/h8500/h8500.mt: Ditto.
8583 * config/h8500/tm-h8500.h: Ditto.
8584 * NEWS: Mention that h8500 is obsolete.
8586 2003-02-04 David Carlton <carlton@math.stanford.edu>
8588 * objfiles.c (allocate_objfile): Always set name. Add comment at
8590 * jv-lang.c (get_dynamics_objfile): Add comment.
8592 2003-02-04 David Carlton <carlton@math.stanford.edu>
8594 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
8595 * printcmd.c (build_address_symbolic): Replace uses of
8596 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
8597 SYMBOL_NAME, and asm_demangle.
8600 2003-02-04 David Carlton <carlton@math.stanford.edu>
8602 * linespec.c (decode_compound): Extract code into
8604 (lookup_prefix_sym): New function.
8606 2003-02-04 David Carlton <carlton@math.stanford.edu>
8608 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
8609 FLOAT_COERCION_BADNESS.
8610 * gdbtypes.c (rank_one_type): Replace all uses of
8611 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
8613 2003-02-04 Jim Blandy <jimb@redhat.com>
8615 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
8616 section, let dwarf_macinfo_section point to it, not
8619 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
8621 Pointed out by Anton Blanchard <anton@samba.org>.
8622 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
8623 (ppc_linux_at_sigtramp_return_path): Use it.
8625 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
8627 * defs.h (streq): Add prototype.
8628 * utils.c (streq): New function.
8630 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
8631 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
8632 * mdebugread.c (new_symbol): Likewise.
8633 * stabsread.c (define_symbol): Likewise.
8634 * coffread.c (process_coff_symbol): Likewise.
8635 * dwarfread.c (new_symbol): Likewise.
8637 * minsyms.c (prim_record_minimal_symbol_and_info): Use
8638 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
8640 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
8641 SYMBOL_INIT_DEMANGLED_NAME.
8642 * objfiles.c: Include "hashtab.h".
8643 (allocate_objfile): Call htab_set_functions_ex for the
8644 demangled_names_hash.
8645 (free_objfile): Call htab_delete for the demangled_names_hash.
8646 * objfiles.h (struct htab): Add declaration.
8647 (struct objfile): Add demangled_names_hash.
8648 * symfile.c: Include "hashtab.h".
8649 (reread_symbols): Call htab_delete for the demangled_names_hash.
8650 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
8651 SYMBOL_NAME in the bcache.
8652 * symtab.c: Include "hashtab.h". Update comments.
8653 (create_demangled_names_hash, symbol_set_names): New functions.
8654 (symbol_find_demangled_name): New function, broken out from
8655 symbol_init_demangled_names.
8656 (symbol_init_demangled_names): Use it.
8657 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
8658 (SYMBOL_SET_NAMES): New macro.
8659 (symbol_set_names): Add prototype.
8661 2003-02-03 Jim Blandy <jimb@redhat.com>
8663 Use a single, consistent representation for an empty minimal
8664 symbol table in an objfile.
8665 * objfiles.c (terminate_minimal_symbol_table): New function.
8666 (allocate_objfile): Call it.
8667 * objfiles.h (terminate_minimal_symbol_table): New declaration.
8668 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8670 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
8671 objfile has minimal symbols, compare minimal_symbol_count to zero,
8672 instead of comparing msymbols with NULL.
8673 * objfiles.c (have_minimal_symbols): Same.
8674 * solib-sunos.c (solib_add_common_symbols): Call
8675 terminate_minimal_symbol_table.
8676 * symfile.c (reread_symbols): Same.
8678 2003-02-03 Kevin Buettner <kevinb@redhat.com>
8680 * s390-tdep.c (s390_address_class_type_flags)
8681 (s390_address_class_type_flags_to_name)
8682 (s390_address_class_name_to_type_flags): New functions.
8683 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
8684 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
8686 2003-02-03 Michael Snyder <msnyder@redhat.com>
8688 * arm-tdep.c: Fix spell-o in comment.
8690 2003-02-03 Michal Ludvig <mludvig@suse.cz>
8692 * dwarf2cfi.c (pointer_encoding): Added new parameter.
8693 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8694 error messages to contain BFD filename.
8696 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
8698 Fix PR gdb/742 gdb/743 gdb/877
8699 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
8700 (do_mixed_source_and_assembly): Use
8701 make_cleanup_ui_out_tuple_begin_end and
8702 make_cleanup_ui_out_tuple_begin_end.
8703 (do_mixed_source_and_assembly): Ditto.
8704 * thread.c (do_captured_list_thread_ids): Ditto.
8705 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
8706 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
8707 ui_out_tuple_end): Delete prototypes.
8708 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
8709 ui_out_list_end, ui_out_tuple_end): Delete.
8711 From Kevin Buettner <kevinb@redhat.com>:
8712 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
8713 * ui-out.c (make_cleanup_ui_out_table_begin_end)
8714 (do_cleanup_table_end): New functions.
8715 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
8716 Use cleanups to invoke_ui_out_tuple_end().
8717 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
8718 * cli/cli-setshow.c (cmd_show_list): Use
8719 make_cleanup_ui_out_tuple_begin_end.
8721 2003-02-02 Andrew Cagney <ac131313@redhat.com>
8723 * frame.c (frame_unwind_register): New function.
8724 (frame_unwind_unsigned_register): Use.
8725 (frame_unwind_signed_register): Use.
8726 (frame_read_register): New function.
8727 * frame.h (frame_unwind_register): Declare.
8728 (frame_read_register): Declare.
8730 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
8731 and frame_unwind_register instead of read_memory, write_register
8732 and deprecated_write_register_bytes.
8734 2003-02-02 Andrew Cagney <ac131313@redhat.com>
8736 * frame.h: Note that namelen can be negative.
8737 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
8740 * NEWS: Mention that the d10v's `regs' command is deprecated.
8741 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
8742 (d10v_print_registers_info): New function.
8743 (show_regs): Call d10v_print_registers_info.
8744 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
8746 2003-02-02 Mark Kettenis <kettenis@gnu.org>
8748 * stack.c (print_frame_info): Restore call to annotate_frame_begin
8749 lost in the previous patch.
8751 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8753 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
8754 * stack.c (print_frame_info_base): Output complete FRAME tuple
8755 for synthesized frames.
8757 2003-02-02 Andrew Cagney <ac131313@redhat.com>
8759 * mips-nat.c (zerobuf): Delete.
8760 (fetch_inferior_registers): Alloc local zerobuf.
8761 (fetch_core_registers): Alloc local zerobuf.
8762 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
8763 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
8764 * thread-db.c (thread_db_store_registers): Ditto.
8765 * sh-tdep.c (sh_do_register): Ditto.
8766 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
8767 * remote-sim.c (gdbsim_store_register): Ditto.
8768 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8769 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8770 * monitor.c (monitor_supply_register): Ditto.
8771 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
8772 * mips-nat.c (fetch_inferior_registers): Ditto.
8773 * m68klinux-nat.c (fetch_register): Ditto.
8774 * lynx-nat.c (fetch_inferior_registers): Ditto.
8775 (fetch_inferior_registers): Ditto.
8776 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
8777 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8778 (hpux_thread_store_registers): Ditto.
8779 * hppah-nat.c (fetch_register): Ditto.
8780 * hppab-nat.c (fetch_register): Ditto.
8781 * hppa-tdep.c (pa_register_look_aside): Ditto.
8782 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
8783 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
8785 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8787 * gdbarch.sh: Explictly specify all method levels. When a
8788 variable with an empty level, provide a non-multi-arch default.
8789 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
8790 * gdbarch.h: Re-generate.
8791 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
8792 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
8794 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8796 * defs.h (host_pointer_to_address): Delete declaration.
8797 (address_to_host_pointer): Delete declaration.
8798 * utils.c (host_pointer_to_address): Delete function.
8799 (address_to_host_pointer): Delete function.
8800 * procfs.c (procfs_address_to_host_pointer): New function.
8801 * procfs.c (proc_set_watchpoint): Use.
8802 (procfs_can_use_hw_breakpoint): Update comments.
8803 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
8804 (som_solib_add): Use.
8805 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
8806 * hppa-tdep.c (unwind_command): Use.
8808 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8810 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
8813 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
8814 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
8815 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
8816 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
8817 (define_symbol): Update.
8818 * symfile.c (generic_load): Remove references to nindy.
8819 * symtab.c: Remove references to nindy.
8821 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8823 * infcmd.c (print_float_info): Delete code conditional on
8825 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
8826 * config/m68k/nm-apollo68b.h: Ditto.
8827 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
8828 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
8829 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
8831 2003-02-01 Mark Kettenis <kettenis@gnu.org>
8833 * config/i386/tm-i386os9k.h: Removed.
8835 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
8836 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
8837 they're identical to i[3456]86-*-sysv* now.
8838 * config/i386/i386v32.mh: Removed.
8839 * config/i386/xm-i386v32.h: Removed.
8840 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
8842 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
8844 * config/i386/i386dgux.mh: Removed.
8845 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
8847 * configure.in: Fix typo.
8848 * configure: Regenerated.
8850 2003-01-31 David Carlton <carlton@math.stanford.edu>
8852 * dwarf2read.c (dwarf2_locate_sections): Set
8853 dwarf_ranges_section.
8855 2003-01-31 Andrew Cagney <ac131313@redhat.com>
8857 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
8858 * utils.c: Update comments documenting legitimate uses of PTR.
8860 * utils.c: Re-indent.
8862 * config/djgpp/fnchange.lst: Delete nindy files.
8863 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
8864 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
8865 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
8866 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
8867 * nindy-share/README, nindy-share/Onindy.c: Delete files.
8868 * nindy-tdep.c, nindy-share/Makefile: Delete files.
8869 * Makefile.in (init.c): Remove nindy references.
8870 (saber_gdb): Delete rule.
8871 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
8872 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
8874 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
8875 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
8876 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
8877 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
8879 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
8880 * saber.suppress: Delete file.
8882 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
8884 * dbxread.c (stabs_data): New static variable.
8885 (fill_symbuf): Support an in-memory buffer for stabs data.
8886 (stabs_seek): New function.
8887 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
8888 (read_ofile_symtab): Use stabs_seek.
8889 (elfstab_build_psymtabs): Take an asection* instead of
8890 an offset and size. Relocate the stabs data if necessary.
8891 Save the section* for dbx_psymtab_to_symtab.
8892 * dwarf2read.c: Add section variables for each debug section.
8893 (dwarf2_locate_sections): Fill them in.
8894 (dwarf2_read_section): Take an asection* argument.
8895 Relocate the section contents if necessary.
8896 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
8897 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
8898 it to dwarf2_read_section.
8899 (dwarf2_build_frame_info): Update callers.
8900 * elfread.c (elf_symfile_read): Update call to
8901 elfstab_build_psymtabs.
8902 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
8903 (DBX_STAB_SECTION): New macro.
8904 * stabsread.h (elfstab_build_psymtabs): Update prototype.
8905 * symfile.c (symfile_dummy_outputs): New function.
8906 (symfile_relocate_debug_section): New function.
8907 * symfile.h (symfile_relocate_debug_section): Add prototype.
8909 2003-01-31 Richard Henderson <rth@redhat.com>
8911 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
8912 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
8913 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
8914 * alpha-tdep.c (alpha_register_name): Add "unique".
8915 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
8916 (ALPHA_UNIQUE_REGNUM): New.
8917 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
8919 2003-01-31 Andrew Cagney <ac131313@redhat.com>
8921 * README: Remove reference to Ericsson 1800 monitor.
8922 * Makefile.in (remote-es.o): Delete rule.
8923 (ALLDEPFILES): Delete remote-es.c.
8924 * remote-es.c: Delete file.
8925 * config/m68k/es1800.mt: Delete file.
8926 * config/djgpp/fnchange.lst: Update.
8927 * configure.tgt: Delete m68*-ericsson-* target.
8929 2003-01-31 Adam Fedor <fedor@gnu.org>
8931 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
8932 Remove duplicate/shadowing variable of same name.
8934 2003-01-30 Jim Blandy <jimb@redhat.com>
8936 * symfile.c (find_separate_debug_file): Assert that the objfile's
8937 directory name we compute ends with a slash, and then assume that
8938 that's so everywhere we use it.
8940 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
8942 * valops.c (value_assign): Flush frame cache after stores to memory
8945 2003-01-30 Andrew Cagney <ac131313@redhat.com>
8947 * Makefile.in (mon960-rom.o): Delete rule.
8948 * mon960-rom.c: Delete file.
8950 2003-01-30 Andrew Cagney <ac131313@redhat.com>
8952 * d10v-tdep.c: Include "frame-unwind.h".
8953 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
8955 (next_addr, uses_frame): Delete.
8956 (struct d10v_unwind_cache): Define.
8957 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
8958 Use info instead of next_addr and uses_frame globals.
8959 (d10v_frame_init_saved_regs): Delete function.
8960 (d10v_init_extra_frame_info): Delete function.
8961 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
8962 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
8963 init_frame_pc or frame_saved_pc.
8964 (d10v_pop_frame): Delete function.
8965 (do_d10v_pop_frame): Delete function.
8966 (d10v_frame_chain): Delete function.
8967 (d10v_frame_chain_valid): Delete function.
8968 (d10v_frame_pc_unwind): New function.
8969 (d10v_frame_id_unwind): New function.
8970 (saved_regs_unwinder): New function.
8971 (d10v_frame_register_unwind): New function.
8972 (d10v_frame_pop): New function.
8973 (d10v_frame_unwind): New variable.
8974 (d10v_frame_p): New function.
8975 (d10v_frame_saved_pc): Delete function.
8976 * Makefile.in (d10v-tdep.o): Update dependencies.
8978 2003-01-30 J. Brobecker <brobecker@gnat.com>
8980 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
8981 causing some regressions due to a change in the default value
8984 2003-01-29 Richard Henderson <rth@redhat.com>
8985 Elena Zannoni <ezannoni@redhat.com>
8986 Daniel Jacobowitz <drow@mvista.com>
8989 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
8991 (RANGES_SECTION): New.
8992 (dwarf_ranges_buffer): New variable.
8993 (struct comp_unit_head): Add member "die".
8994 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
8995 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
8996 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
8997 (dwarf2_locate_sections): Likewise.
8998 (dwarf2_build_psymtabs): Read .debug_ranges.
8999 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9000 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9001 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9002 Look for DW_AT_ranges and return the bounding box.
9004 2003-01-29 Brian Ford <ford@vss.fsi.com>
9006 * win32-nat.c (cygwin_pid): Removed as unused.
9007 (child_attach): Try fall back to Cygwin pid.
9009 2003-01-29 Jim Blandy <jimb@redhat.com>
9011 * objfiles.h (struct objfile): Doc fix.
9013 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9015 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9016 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9017 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9018 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9019 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9020 (FRAME_SAVED_PC): Change to a function with predicate.
9021 * gdbarch.h, gdbarch.c: Re-generate.
9023 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9025 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9027 * complaints.c (complain): Delete function.
9028 * complaints.h (struct deprecated_complaint): Delete definition.
9029 (complain): Delete declaration.
9031 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9033 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9036 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9038 * sentinel-frame.h, sentinel-frame.c: New files.
9039 * Makefile.in (frame.o): Update dependencies.
9040 (SFILES): Add sentinel-frame.c.
9041 (sentinel_frame_h): Define.
9042 (COMMON_OBS): Add sentinel-frame.o.
9043 (sentinel-frame.o): Specify dependencies.
9044 * frame.c: Include "sentinel-frame.h".
9045 (frame_register_unwind): Rewrite assuming that there is always a a
9047 (frame_register, generic_unwind_get_saved_register): Ditto.
9048 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9049 (create_sentinel_frame, unwind_to_current_frame): New functions.
9050 (get_current_frame): Rewrite using create_sentinel_frame and
9051 unwind_to_current_frame. When possible, always create a frame.
9052 (create_new_frame): Set next to the sentinel frame.
9053 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9054 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9055 ID cache when necessary.
9056 (frame_saved_regs_id_unwind): Use frame_relative_level.
9057 (deprecated_generic_get_saved_register): Use frame_relative_level,
9058 get_frame_saved_regs, get_frame_pc, get_frame_base and
9060 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9063 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9065 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9067 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9069 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9070 (maintenance_set_profile_cmd): Use error () instead of warning ().
9072 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9074 * configure.in: Check that -pg works if using --enable-profiling.
9075 Check for monstartup and _mcleanup regardless of --enable-profiling.
9076 * maint.c: Check for monstartup and _mcleanup before using them.
9077 * config.in: Regenerated.
9078 * configure: Regenerated.
9080 2003-01-24 Nick Clifton <nickc@redhat.com>
9084 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9086 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9087 (sh2e_show_regs): New.
9088 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9089 * config/sh/tm-sh.h: Added sh2e to comments.
9091 2003-01-23 Jim Blandy <jimb@redhat.com>
9093 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9094 symbols found)" message here; we haven't checked for a separate
9095 debug info file yet, so we don't know yet.
9096 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9097 we've looked everywhere. Also, there's no need to print a special
9098 message when we're loading the separate debug info file: the one
9099 symbol_file_add prints is fine.
9101 2003-01-23 Alexander Larsson <alexl@redhat.com>
9102 Jim Blandy <jimb@redhat.com>
9104 Add support for executables whose debug info has been separated
9105 out into a separate file, leaving only a link behind.
9106 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9107 and separate_debug_objfile_backlink.
9108 (put_objfile_before): New declaration.
9109 * symfile.c: #include "filenames.h".
9110 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9111 debug info in a separate file, read that, too. Save the addrs
9112 argument, so we can use it again to read the separated debug info;
9113 syms_from_objfile modifies the table we pass it.
9114 (reread_symbols): After re-reading an objfile, call
9115 reread_separate_symbols to refresh its separate debug info
9116 objfile, if it has one.
9117 (reread_separate_symbols, find_separate_debug_file,
9118 get_debug_link_info, separate_debug_file_exists): New functions.
9119 (debug_file_directory): New global var.
9120 (_initialize_symfile): Initialize debug_file_directory, and
9121 provide the new `set debug-file-directory' command to let the user
9123 * objfiles.c (free_objfile): If this objfile has its debug info in
9124 a separate objfile, free that one too. If this is itself a
9125 separate debug info objfile, clear our parent's backlink.
9126 (put_objfile_before): New function.
9127 * utils.c (gnu_debuglink_crc32): New function.
9128 * defs.h (gnu_debuglink_crc32): New declaration.
9129 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9130 * configure.in: Handle --with-separate-debug-dir config option.
9131 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9132 * acconfig.h (DEBUGDIR): New macro.
9133 * configure, aclocal.m4, config.in: Regenerated.
9135 2003-01-22 Jim Blandy <jimb@redhat.com>
9137 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9138 like the old symbol_file_add, but taking new arguments: you can
9139 now pass in either a `struct section_addr_info' list to say where
9140 each section is loaded, or a `struct section_offsets' table. Pass
9141 these new arguments through to syms_from_objfile as appropriate.
9142 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9143 with the appropriate quiescent values for the new arguments.
9145 * symfile.c: #include "gdb_assert.h".
9146 (syms_from_objfile): Add the ability to pass in a section offset
9147 table directly, as an alternative to the section_addr_info table.
9148 Document arguments better.
9149 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9150 * symfile.h (syms_from_objfile): Update declaration.
9151 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9153 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9155 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9157 Original patch by Tom Tromey <tromey@cygnus.com> and
9158 Jason Molenda <jmolenda@apple.com>.
9159 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9160 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9161 * NEWS: Mention profiling.
9162 * configure.in (--enable-gdbtk): Fix typo.
9163 (--enable-profiling): New. Set PROFILE_CFLAGS.
9164 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9166 (profiling_state): New variable.
9167 (mcleanup_wrapper): New function.
9168 (_initialize_maint): Remove NOTYET, fix call to
9169 add_setshow_boolean_cmd for "maint set profile".
9170 * configure: Regenerated.
9172 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9174 * Makefile.in (install-gdbtk): Install PNG images too.
9176 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9178 * exec.c (text_start): Delete global variable.
9179 (exec_file_attach): Make text_start local to the function.
9180 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9181 * valops.c (hand_function_call): Delete code that handles
9182 BEFORE_TEXT_END and AFTER_TEXT_END.
9183 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9184 of CALL_DUMMY_LOCATION.
9185 * gdbarch.c: Regenerate.
9186 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9187 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9188 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9189 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9190 (text_end): Delete extern declaration.
9192 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9194 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9195 * blockframe.c (backtrace_below_main): Move to "frame.c".
9196 (frame_chain_valid): Delete check for backtrace_below_main.
9197 (_initialize_blockframe): Delete initialization, move ``set
9198 backtrace-below-main'' command to "frame.c".
9199 (do_flush_frames_sfunc): Delete function.
9200 * frame.c: Include "command.h" and "gdbcmd.h".
9201 (frame_type_from_pc): New function.
9202 (create_new_frame): Use frame_type_from_pc.
9203 (legacy_get_prev_frame): New function.
9204 (get_prev_frame): Rewrite. When an old style frame, call
9205 legacy_get_prev_frame. Otherwize, unwind the PC first.
9206 (_initialize_frame): Add ``set backtrace-below-main'' command.
9207 * Makefile.in (frame.o): Update dependencies.
9209 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9211 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9212 DEPRECATED_REGISTERS_INFO.
9214 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9216 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9217 Maintainers'. Update `Various Maintainers'.
9219 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9221 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9222 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9223 Suppress actual parameters when `-'.
9224 * gdbarch.h, gdbarch.c: Regenerate.
9226 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9228 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9229 code handling dummy frames.
9231 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9233 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9234 (struct frame_unwind): Add field pop.
9235 * frame.h (frame_pop): Declare.
9236 * frame.c (frame_saved_regs_pop): New function.
9237 (trad_frame_unwinder): Add frame_saved_regs_pop.
9238 (frame_pop): New function.
9239 * dummy-frame.c (dummy_frame_pop): New function.
9240 (discard_innermost_dummy): New function.
9241 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9242 (dummy_frame_unwind): Add dummy_frame_pop.
9243 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9244 * valops.c (hand_function_call): Ditto.
9245 * stack.c (return_command): Ditto.
9247 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9249 * cris-tdep.c: Fix function declaration indentation.
9250 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9251 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9252 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9253 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9254 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9255 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9257 2003-01-18 Michael Chastain <mec@shout.net>
9259 * README (Unpacking and Installation -- quick overview):
9260 Warn against ".../gdb-5.3/gdb/configure".
9262 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9264 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9265 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9266 (struct frame_unwind): Declare opaque.
9267 (dummy_frame_p): Declare function.
9268 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9269 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9270 * dummy-frame.c: Include "frame-unwind.h".
9271 (dummy_frame_p): New function.
9272 (dummy_frame_unwind): New variable.
9273 * frame.c: Include "frame-unwind.h".
9274 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9275 to use the new unwind field.
9276 (set_unwind_by_pc): Delete function.
9277 (create_new_frame, get_prev_frame): Set unwind field using
9278 frame_unwind_find_by_pc.
9279 (trad_frame_unwind, trad_frame_unwinder): New variables.
9280 * frame.h (trad_frame_unwind): Declare variable.
9281 (frame_id_unwind_ftype): Delete declaration.
9282 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9283 (struct frame_unwind): Declare opaque.
9284 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9285 register_unwind with a single unwind pointer.
9286 * frame-unwind.h, frame-unwind.c: New files.
9287 * Makefile.in (SFILES): Add frame-unwind.c.
9288 (frame_unwind_h): Define.
9289 (COMMON_OBS): Add frame-unwind.o.
9290 (frame-unwind.o): Specify dependencies.
9291 (frame.o, dummy-frame.o): Update dependencies.
9293 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9295 * ada-valprint.c: Eliminate PTR.
9296 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9297 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9298 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9299 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9300 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9301 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9302 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
9304 2003-01-17 Andrew Cagney <ac131313@redhat.com>
9306 * main.c (captured_main): Don't use PTR.
9307 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9308 * gdbtypes.c (lookup_primitive_typename): Ditto.
9309 (lookup_struct_elt_type): Ditto.
9310 * f-valprint.c (info_common_command): Ditto.
9311 (list_all_visible_commons): Ditto.
9312 * jv-typeprint.c (java_type_print_base): Ditto.
9314 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9315 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9316 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9317 i386-interix-nat.c and i386-interix-tdep.c. Rename
9318 m68klinux-nat.c and m68klinux-tdep.c. Rename
9319 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9320 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9321 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9322 * main.c (captured_main): Use xfree, not free.
9324 2003-01-16 Andrew Cagney <ac131313@redhat.com>
9326 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9327 ID back using a parameter.
9328 * frame.c (frame_id_unwind): Update call.
9329 (frame_saved_regs_id_unwind): Update.
9330 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9331 * dummy-frame.h (struct frame_id): Add opaque declaration.
9332 (dummy_frame_id_unwind): Update declaration.
9334 2003-01-15 Andrew Cagney <ac131313@redhat.com>
9336 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9338 2003-01-15 Stephen P. Smith <ischis2@cox.net>
9340 * MAINTAINERS (Stephen P. Smith): Updated email address.
9342 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
9345 * breakpoint.c (until_break_command): Add new argument. Use it to
9346 decide whether to stop only at the current frame or not.
9347 * breakpoint.h (until_break_command): Update prototype.
9348 * infcmd.c (until_command): Add new argument to until_break_command
9350 (advance_command): New function.
9351 (_initialize_infcmd): Update help string for 'until' command.
9352 Add new 'advance' command.
9354 2003-01-14 David Carlton <carlton@math.stanford.edu>
9356 * linespec.c (decode_line_1): Normalize comments.
9358 (locate_first_half): Ditto.
9359 (decode_compound): Ditto.
9360 (symtab_from_filename): Ditto.
9361 (decode_all_digits): Ditto.
9362 (decode_dollar): Ditto.
9363 (find_methods): Ditto.
9364 (find_toplevel_char): Ditto.
9366 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9368 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9369 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9370 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9371 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9372 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9373 * language.c, language.h, m32r-tdep.c: Update copyright.
9374 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9375 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9376 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9377 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9378 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9379 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9381 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9383 * stabsread.h (process_later, resolve_cfront_continuation):
9385 Update copyright years.
9386 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9387 Update copyright year.
9388 * dbxread.c(struct cont_elem): Obsolete.
9389 (process_later, process_now): Obsolete functions.
9390 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9391 Update copyright year.
9392 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9393 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9394 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9395 (parse_partial_symbols): Obsolete cfront support.
9397 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9399 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9400 read_cfront_baseclasses, read_cfront_member_functions,
9401 resolve_cfront_continuation,read_cfront_static_fields,
9402 copy_cfront_struct_fields): Obsolete functions.
9403 (define_symbol, read_one_struct_field): Obsolete cfront support.
9404 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9405 Update Copyright year.
9407 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9409 * stack.c (print_frame_info, print_stack_frame_base_stub,
9410 print_stack_frame_base, show_and_print_stack_frame_stub,
9411 show_and_print_stack_frame, print_only_stack_frame_stub,
9412 print_only_stack_frame): Delete functions.
9413 (print_stack_frame_stub): Call print_frame_info instead of
9414 print_frame_info_base.
9415 (print_frame_info_base): Rename to print_frame_info.
9416 (backtrace_command_1): Call print_frame_info, instead of
9417 print_frame_info_base.
9418 (current_frame_command): Call print_stack_frame, instead of
9419 print_only_stack_frame.
9420 (frame_command): Call print_stack_frame, instead of
9421 show_and_print_stack_frame.
9422 (up_command): Ditto.
9423 (down_command): Ditto.
9424 * frame.h (print_only_stack_frame): Delete prototype.
9425 * infrun.c (normal_stop): Call print_stack_frame, instead of
9426 show_and_print_stack_frame.
9427 * thread.c (info_threads_command): Call print_stack_frame, instead
9428 of print_only_stack_frame.
9430 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9432 * README (Graphical interface to GDB): Update URL. Point at
9435 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
9438 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9440 * symtab.c (find_pc_sect_line): Don't consider end-of-function
9443 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9445 * thread-db.c (attach_thread): Prototype.
9446 (struct private_thread_info): Remove lwpid. Add thread handle (th),
9447 thread information (ti), and valid flags (th_valid, ti_valid).
9448 (attach_thread): Move target_pid_to_str call to after the thread
9449 is added to GDB's list. Initialize the cache.
9450 (thread_get_info_callback, thread_db_map_id2thr)
9451 (thread_db_get_info): New functions.
9452 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9453 (thread_db_store_registers, thread_db_thread_alive)
9454 (thread_db_get_thread_local_address): Use them.
9455 (thread_db_pid_to_str): Likewise. Return "Missing" instead
9456 of calling error() for threads in unknown state.
9458 (clear_lwpid_callback): New function.
9459 (thread_db_resume): Use it to clear the cache.
9461 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9463 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9464 (resume_callback): Remove dead code.
9466 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9468 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
9470 * gdbarch.h, gdbarch.c: Regenerate.
9471 * stack.c (frame_info): Only initialize the saved registers when
9472 FRAME_INIT_SAVED_REGS_P.
9473 * frame.c (frame_saved_regs_register_unwind): Assert
9474 FRAME_INIT_SAVED_REGS_P.
9475 (deprecated_generic_get_saved_register): Ditto.
9477 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9479 * source.c (openp): Squelch warning about "filename".
9481 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9483 * source.c (openp): If the file does not exist don't necessarily
9486 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9489 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
9490 (integer_types_same_name_p): New function.
9491 (rank_one_type): Use it.
9492 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
9494 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9496 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
9498 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
9499 * configure.in: Add --with-sysroot.
9500 * configure: Regenerated.
9501 * main.c (gdb_sysroot): New variable.
9502 (captured_main): Initialize gdb_sysroot.
9503 * defs.h (gdb_sysroot): New extern declaration.
9504 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
9506 2003-01-12 Michael Chastain <mec@shout.net>
9508 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
9510 2003-01-12 Michael Chastain <mec@shout.net>
9512 * top.c (print_gdb_version): Bump copyright year to 2003.
9514 2003-01-12 David Carlton <carlton@bactrian.org>
9516 * linespec.c (symtab_from_filename): Rename variable 's' to
9519 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9521 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
9523 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
9525 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9527 * d10v-tdep.c: Include "gdb_assert.h".
9528 (d10v_store_return_value): Rewrite to match current interface.
9529 (d10v_extract_struct_value_address): Ditto.
9530 (d10v_extract_return_value): Ditto.
9531 (d10v_gdbarch_init): Set store_restore_value,
9532 extract_struct_value_address and extract_return_value.
9534 2003-01-12 J. Brobecker <brobecker@gnat.com>
9536 * hpread.c (set_namestring): New procedure replacing the
9537 SET_NAMESTRING macro.
9538 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
9539 by calls to set_namestring.
9541 2003-01-11 J. Brobecker <brobecker@gnat.com>
9543 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
9544 a compilation warning.
9545 (hpread_process_one_debug_symbol): Likewise.
9547 2003-01-10 David Carlton <carlton@math.stanford.edu>
9549 * linespec.c (decode_line_1): Rename variable 's' to
9551 (decode_all_digits): Rename argument 's' to 'file_symtab'.
9552 (decode_dollar): Ditto.
9553 (decode_variable): Ditto.
9554 (symbol_found): Ditto.
9556 2003-01-09 Michael Chastain <mec@shout.net>
9558 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
9560 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
9562 * win32-nat.c (set_process_privilege): New function.
9563 (child_attach): Call set_process_privilege() to enable the
9564 SE_DEBUG_NAME user privilege if available in process token.
9566 2003-01-10 J. Brobecker <brobecker@gnat.com>
9568 * hpread.c (hpread_process_one_debug_symbol): Fix a small
9569 compilation error in the previous revision.
9571 2003-01-09 David Carlton <carlton@math.stanford.edu>
9573 * linespec.c: Update copyright.
9575 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
9577 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
9579 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
9581 2003-01-09 Andrew Cagney <ac131313@redhat.com>
9583 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
9585 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
9586 (frame_saved_regs_zalloc): Update.
9587 (frame_saved_regs_register_unwind): Update.
9588 (create_new_frame): Update.
9589 (get_prev_frame): Update.
9590 (frame_extra_info_zalloc): Update.
9591 (deprecated_get_frame_saved_regs): Update.
9592 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
9593 * cris-tdep.c: Update comment.
9595 * somsolib.h: Fix function indentation.
9596 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
9597 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
9598 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
9599 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
9600 * somsolib.c, inftarg.c: Remove assignment in if conditional.
9602 * infrun.c (follow_fork): Use ISO C definition.
9603 * expprint.c (print_subexp): Use xfree instead of free.
9604 * charset.c: Include "gdb_string.h" instead of <string.h>.
9605 (register_iconv_charsets): Use ISO C definition.
9606 (host_charset, target_charset): Ditto.
9607 * Makefile.in (charset.o): Update dependencies.
9608 (mi-cmd-env.o): Update dependencies.
9610 2003-01-08 Andrew Cagney <cagney@redhat.com>
9612 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
9615 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9617 * gdb_mbuild.sh: Add --keep option. When specified, keep the
9618 build directories. Save edited gdb output in Mbuild.log. If a
9619 build fails, remove any final GDB executable.
9621 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9623 * gdb_mbuild.sh: Edit the output of `maint print architecture'
9624 replacing hex constants with function names and stripping leading
9625 file name directory prefixes.
9627 2003-01-08 Andrew Cagney <cagney@redhat.com>
9629 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
9632 2003-01-08 David Carlton <carlton@math.stanford.edu>
9634 * linespec.c (decode_line_1): Move code into decode_variable.
9635 (decode_variable): New function.
9637 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9639 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
9641 2003-01-08 Andrew Cagney <cagney@redhat.com>
9643 * cris-tdep.c (cris_frame_init_saved_regs): Use
9644 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
9646 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9647 (sh64_nofp_frame_init_saved_regs): Ditto.
9648 (sh_fp_frame_init_saved_regs): Ditto.
9649 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
9650 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9651 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9652 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9654 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
9656 * minsyms.c (lookup_minimal_symbol): Update comment.
9657 (lookup_minimal_symbol_text): Update comment. Use the hash table.
9658 (lookup_minimal_symbol_solib_trampoline): Likewise.
9660 2003-01-08 Andrew Cagney <cagney@redhat.com>
9662 * d10v-tdep.c (d10v_init_extra_frame_info): Use
9663 frame_relative_level.
9665 * alpha-tdep.c: Use get_frame_extra_info.
9666 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9667 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
9668 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9669 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
9671 * alpha-tdep.c: Use get_next_frame.
9672 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9673 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
9674 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
9675 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
9676 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
9677 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
9678 * xstormy16-tdep.c: Ditto.
9680 2003-01-07 Andrew Cagney <cagney@redhat.com>
9682 * alpha-tdep.c: Use get_frame_base.
9683 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9684 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
9685 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
9686 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9687 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
9688 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
9689 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
9690 * config/sparc/tm-sparc.h: Ditto.
9692 2003-01-07 Andrew Cagney <cagney@redhat.com>
9694 * frame.c (deprecated_get_frame_context): New function.
9695 (deprecated_set_frame_context): New function.
9696 * frame.h (deprecated_get_frame_context): Declare.
9697 (deprecated_set_frame_context): Declare.
9698 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
9699 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
9701 2003-01-07 Andrew Cagney <cagney@redhat.com>
9703 * frame.c (deprecated_set_frame_next_hack): New function.
9704 (deprecated_set_frame_prev_hack): New function.
9705 * frame.h (deprecated_set_frame_next_hack): Declare.
9706 (deprecated_set_frame_prev_hack): Declare.
9707 * mcore-tdep.c (analyze_dummy_frame): Use
9708 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
9709 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9711 2003-01-07 David Carlton <carlton@math.stanford.edu>
9713 * linespec.c (decode_line_1): Move code into decode_dollar.
9714 (decode_dollar): New function.
9716 2003-01-07 Andrew Cagney <cagney@redhat.com>
9718 * arm-tdep.c (arm_init_extra_frame_info): Use
9719 deprecated_update_frame_base_hack.
9720 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
9721 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9722 (fix_frame_pointer): Ditto.
9723 (mn10300_analyze_prologue): Ditto.
9725 2003-01-07 Andrew Cagney <cagney@redhat.com>
9727 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
9728 extra_info using frame_extra_info_zalloc.
9729 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9730 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
9731 (sh64_init_extra_frame_info): Ditto.
9732 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
9733 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
9734 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9735 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
9736 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
9737 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
9738 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
9739 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
9740 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
9741 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
9742 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9743 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
9745 * mn10300-tdep.c (analyze_dummy_frame): Use
9746 deprecated_set_frame_extra_info_hack.
9747 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9749 2003-01-07 J. Brobecker <brobecker@gnat.com>
9751 * mdebugread.c (parse_symbol): Skip stProc entries which storage
9752 class is not scText. These do not define "real" procedures.
9753 (parse_partial_symbols): Likewise.
9755 2003-01-06 Michael Snyder <msnyder@redhat.com>
9757 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
9759 2003-01-06 Andrew Cagney <ac131313@redhat.com>
9761 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
9762 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
9763 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
9764 deprecated_frame_xmalloc_with_cleanup.
9765 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
9766 deprecated_frame_xmalloc.
9767 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
9768 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
9770 2003-01-06 Andrew Cagney <cagney@redhat.com>
9772 * x86-64-linux-tdep.c: Include "osabi.h".
9773 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
9775 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
9777 2003-01-06 Andrew Cagney <cagney@redhat.com>
9779 * MAINTAINERS (Target Instruction Set Architectures): Update
9780 arm-elf. Can be built with -Werror, has been multiarched.
9782 * value.h (unpack_long): Make buffer parameter constant.
9783 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
9784 * scm-lang.h (scm_parse): Ditto.
9785 * defs.h (extract_typed_address, extract_address): Ditto.
9786 (extract_long_unsigned_integer): Ditto.
9787 * inferior.h (unsigned_pointer_to_address): Ditto.
9788 (signed_pointer_to_address): Ditto.
9789 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
9790 * gdbarch.h, gdbarch.c: Regenerate.
9791 * findvar.c (extract_long_unsigned_integer): Update.
9792 (extract_address): Update.
9793 (extract_typed_address): Update.
9794 (unsigned_pointer_to_address): Update.
9795 * values.c (unpack_long): Update.
9796 (unpack_double): Update.
9797 (unpack_pointer): Update.
9798 (unpack_field_as_long): Update.
9799 * d10v-tdep.c (d10v_pointer_to_address): Update.
9800 * avr-tdep.c (avr_pointer_to_address): Update.
9801 * scm-lang.c (scm_unpack): Update.
9802 * findvar.c (signed_pointer_to_address): Update.
9804 2003-01-06 Michal Ludvig <mludvig@suse.cz>
9806 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
9807 since it is in i386-tdep.c.
9809 2003-01-06 J. Brobecker <brobecker@gnat.com>
9811 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
9812 failure introduced in the previous change.
9814 2003-01-05 Michael Chastain <mec@shout.net>
9816 * README: Remove references to deleted remote-*.c files:
9817 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
9818 remote-nrom.c, remote-os9k.c, remote-udi.c.
9820 2003-01-05 Mark Kettenis <kettenis@gnu.org>
9822 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
9823 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
9824 i386_get_longjmp_target.
9826 2003-01-05 Andrew Cagney <ac131313@redhat.com>
9828 * arm-tdep.c (prologue_cache): Change to a pointer.
9829 (_initialize_arm_tdep): Allocate prologue_cache.
9830 (check_prologue_cache): Update.
9831 (save_prologue_cache): Update.
9832 (arm_gdbarch_init): Update.
9834 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9836 * stabsread.c (update_method_name_from_physname): Call complaint()
9839 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9841 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
9842 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
9843 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
9845 * blockframe.c: Include "gdbcmd.h" and "command.h".
9846 (backtrace_below_main): New variable.
9847 (file_frame_chain_valid, func_frame_chain_valid)
9848 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
9849 (generic_func_frame_chain_valid): Remove functions.
9850 (frame_chain_valid, do_flush_frames_sfunc): New functions.
9851 (_initialize_blockframe): New function.
9852 * Makefile.in (blockframe.o): Update dependencies.
9853 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
9854 comment. Call frame_chain_valid ().
9855 * frame.h: Remove old prototypes. Add prototype for
9856 frame_chain_valid and update comments to match.
9857 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
9859 * gdbarch.h: Regenerated.
9860 * gdbarch.c: Regenerated.
9862 * alpha-tdep.c (alpha_gdbarch_init): Don't call
9863 set_gdbarch_frame_chain_valid.
9864 * avr-tdep.c (avr_gdbarch_init): Likewise.
9865 * cris-tdep.c (cris_gdbarch_init): Likewise.
9866 * frv-tdep.c (frv_gdbarch_init): Likewise.
9867 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
9868 * i386-tdep.c (i386_svr4_init_abi): Likewise.
9869 (i386_nw_init_abi): Likewise.
9870 (i386_gdbarch_init): Likewise.
9871 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
9872 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
9873 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
9874 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
9875 * mips-tdep.c (mips_gdbarch_init): Likewise.
9876 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9877 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
9878 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9879 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9880 * s390-tdep.c (s390_gdbarch_init): Likewise.
9881 * sh-tdep.c (sh_gdbarch_init): Likewise.
9882 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
9883 * v850-tdep.c (v850_gdbarch_init): Likewise.
9884 * vax-tdep.c (vax_gdbarch_init): Likewise.
9885 * x86-64-tdep.c (x86_64_init_abi): Likewise.
9887 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
9888 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
9889 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
9890 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
9891 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
9892 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
9893 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
9894 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
9896 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9898 * Makefile.in (acconfig_h): Remove incorrect macro.
9900 (osabi.o): Update dependencies.
9901 * configure.tgt: Set gdb_osabi based on target triplet.
9902 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
9903 * configure: Regenerated.
9904 * config.in: Regenerated.
9905 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
9906 (GDB_OSABI_DEFAULT): Define if not already defined.
9907 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
9908 (set_osabi_string): New variables.
9909 (gdbarch_register_osabi): Add new OS ABI to
9910 gdb_osabi_available_names.
9911 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
9912 (set_osabi, show_osabi): New functions.
9913 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
9915 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9917 * arch-utils.c (gdbarch_info_init): Set osabi to
9918 GDB_OSABI_UNINITIALIZED.
9919 * gdbarch.sh: Add osabi to struct gdbarch and to struct
9920 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
9921 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
9922 * gdbarch.c: Regenerated.
9923 * gdbarch.h: Regenerated.
9924 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
9926 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
9927 * osabi.h (enum gdb_osabi): Move to defs.h.
9928 (gdbarch_init_osabi): Update prototype.
9929 * defs.h (enum gdb_osabi): Moved here.
9930 * Makefile.in: Update dependencies.
9932 * alpha-tdep.h: Don't include "osabi.h".
9933 (struct gdbarch_tdep): Remove osabi member.
9934 * alpha-tdep.c: Include "osabi.h".
9935 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9936 iterate over arches. Update call to gdbarch_init_osabi.
9937 (alpha_dump_tdep): Don't dump osabi.
9938 * alpha-linux-tdep.c: Include "osabi.h".
9939 * alpha-osf1-tdep.c: Include "osabi.h".
9940 * alphafbsd-tdep.c: Include "osabi.h".
9941 * alphanbsd-tdep.c: Include "osabi.h".
9943 * arm-tdep.h: Don't include "osabi.h".
9944 (struct gdbarch_tdep): Remove osabi member.
9945 * arm-tdep.c: Include "osabi.h".
9946 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9947 iterate over arches. Update call to gdbarch_init_osabi.
9948 (arm_dump_tdep): Don't dump osabi.
9949 * arm-linux-tdep.c: Include "osabi.h".
9950 * armnbsd-tdep.c: Include "osabi.h".
9952 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
9953 Update call to gdbarch_init_osabi.
9955 * i386-tdep.h: Don't include "osabi.h".
9956 (struct gdbarch_tdep): Remove osabi member.
9957 * i386-tdep.c: Include "osabi.h".
9958 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9959 iterate over arches. Update call to gdbarch_init_osabi.
9960 (i386_dump_tdep): Don't dump osabi.
9961 * i386-linux-tdep.c: Include "osabi.h".
9962 * i386-sol2-tdep.c: Include "osabi.h".
9963 * i386bsd-tdep.c: Include "osabi.h".
9964 * i386gnu-tdep.c: Include "osabi.h".
9965 * i386ly-tdep.c: Include "osabi.h".
9966 * i386nbsd-tdep.c: Include "osabi.h".
9967 * i386obsd-tdep.c: Include "osabi.h".
9969 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
9970 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9971 check osabi when iterating over arches. Update call to
9973 (mips_dump_tdep): Don't dump osabi.
9975 * ns32k-tdep.h: Don't include "osabi.h".
9976 (struct gdbarch_tdep): Remove.
9977 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
9978 gdbarch_lookup_osabi. Don't iterate over arches. Don't
9979 allocate tdep. Update call to gdbarch_init_osabi.
9980 (ns32k_dump_tdep): Remove.
9981 (_initialize_ns32k_tdep): Update call to gdbarch_register.
9982 * ns32knbsd-tdep.c: Include "osabi.h".
9984 * ppc-tdep.h: Don't include "osabi.h".
9985 (struct gdbarch_tdep): Remove osabi member.
9986 * rs6000-tdep.c: Include "osabi.h".
9987 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
9988 osabi when iterating over arches. Update call to
9990 (rs6000_dump_tdep): Don't dump osabi.
9991 * ppc-linux-tdep.c: Include "osabi.h".
9992 * ppcnbsd-tdep.c: Include "osabi.h".
9994 * sh-tdep.h: Don't include "osabi.h".
9995 (struct gdbarch_tdep): Remove osabi member.
9996 * sh-tdep.c: Include "osabi.h".
9997 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9998 iterate over arches. Update call to gdbarch_init_osabi.
9999 (sh_dump_tdep): Don't dump osabi.
10000 * shnbsd-tdep.c: Include "osabi.h".
10002 * sparc-tdep.c: Include "osabi.h".
10003 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10004 iterate over arches. Update call to gdbarch_init_osabi.
10005 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10008 * vax-tdep.h: Don't include "osabi.h".
10009 (struct gdbarch_tdep): Remove.
10010 * vax-tdep.c: Include "osabi.h".
10011 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10012 iterate over arches. Don't allocate tdep. Update call
10013 to gdbarch_init_osabi.
10014 (vax_dump_tdep): Remove.
10015 (_initialize_vax_tdep): Update call to gdbarch_register.
10017 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10019 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10021 (breakpoint_re_set_one): Don't fetch the value for a disabled
10024 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10026 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10027 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10028 (COERCE_FLOAT_TO_DOUBLE): Remove.
10029 * gdbarch.c: Regenerate.
10030 * gdbarch.h: Regenerate.
10031 * Makefile.in: Remove value_h from gdbarch_h.
10032 * valops.c (coerce_float_to_double): New variable.
10033 (default_coerce_float_to_double): Remove.
10034 (standard_coerce_float_to_double): Remove.
10035 (value_arg_coerce): Use coerce_float_to_double.
10036 (_initialize_valops): Add "set coerce-float-to-double".
10037 * value.h (default_coerce_float_to_double): Remove prototype.
10038 (standard_coerce_float_to_double): Remove prototype.
10040 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10042 * mdebugread.c (parse_symbol): Likewise.
10043 * stabsread.c (define_symbol): Mark all functions as prototyped.
10045 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10046 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10047 set_gdbarch_coerce_float_to_double.
10048 * arm-tdep.c (arm_gdbarch_init): Likewise.
10049 * frv-tdep.c (frv_gdbarch_init): Likewise.
10050 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10051 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10052 * mips-tdep.c (mips_gdbarch_init): Likewise.
10053 (mips_coerce_float_to_double): Remove.
10054 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10055 (rs6000_coerce_float_to_double): Remove.
10056 * s390-tdep.c (s390_gdbarch_init): Likewise.
10057 * sh-tdep.c (sh_gdbarch_init): Likewise.
10058 (sh_coerce_float_to_double): Remove.
10059 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10060 (sparc_coerce_float_to_double): Remove.
10061 * v850-tdep.c (v850_gdbarch_init): Likewise.
10062 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10063 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10064 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10065 (hppa_coerce_float_to_double): Remove prototype.
10066 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10068 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10070 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10072 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10074 Suggested by Stewart Brown <sb24@avaya.com>:
10075 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10076 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10077 (c_type_print_varspec_suffix): Likewise.
10079 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10081 * configure.in: Don't set and AC_SUBST SUBDIRS.
10082 * configure: Regenerated.
10084 * configure.in: Remove code dealing with shared libraries.
10085 * Makefile.in: Remove HLDFLAGS and HLDENV.
10086 * configure: Regenerated.
10088 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10090 * frame.c (deprecated_frame_xmalloc): New function.
10091 (deprecated_set_frame_saved_regs_hack): New function.
10092 (deprecated_set_frame_extra_info_hack): New function.
10093 * frame.h (deprecated_frame_xmalloc): Declare.
10094 (deprecated_set_frame_saved_regs_hack): Declare.
10095 (deprecated_set_frame_extra_info_hack): Declare.
10097 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10099 * configure.in: Move code that provides the --enable-gdbtk option
10100 right after the code that handles the --enable-tui option, and
10101 polish it somewhat.
10102 * configure: Regenerated.
10104 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10105 AC_CHECK_FUNCS and remove the old check for pread64.
10106 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10107 * acconfig.h (_GNU_SOURCE): Add.
10108 (HAVE_PREAD64): Remove.
10109 * configure, aclocal.m4, config.in: Regenerated.
10111 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10113 * alpha-tdep.c: Use get_frame_saved_regs.
10114 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10115 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10116 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10117 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10118 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10120 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10122 * configure.in: Remove all use of the SUBDIRS variable; add
10123 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10124 code providing the --enable-multi-ice option, and move it right in
10125 front of the code that checks whether gdbserver is supported.
10127 * configure: Regenerated.
10128 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10131 2003-01-03 Andrew Cagney <cagney@redhat.com>
10133 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10134 * avr-tdep.c, cris-tdep.c: Ditto.
10135 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10136 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10138 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10140 * configure.in: Remove --enable-netrom option.
10141 * configure: Regenerated.
10143 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10145 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10146 declaration for `struct re_pattern_buffer' instead.
10147 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10149 2003-01-03 J. Brobecker <brobecker@gnat.com>
10151 * mdebugread.c (parse_symbol): Count until the stEnd matching
10152 the structure name.
10154 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10156 * configure.in: Remove --with-cpu option.
10157 subscripts. Remove evil changequotes here.
10158 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10159 * config.in, configure: Regenerated.
10161 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10162 * configure.in: Cleanup section that sources GDB and BFD configure
10163 subscripts. Remove evil changequotes here.
10164 * config.in, configure: Regenerated.
10166 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10168 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10169 frame accessor methods.
10170 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10171 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10172 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10173 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10174 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10175 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10176 * z8k-tdep.c: Ditto.
10178 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10180 * configure.in: Remove UI_OUT configuration code.
10181 * ada-lang.c: Update assuming UI_OUT is always true.
10182 * Makefile.in (UIOUT_CFLAGS): Remove.
10183 * configure: Regenerated.
10184 * TODO: Remove blurb about elimination of -DUI_OUT.
10186 * configure.in: Move code that provides the --enable-gdbcli,
10187 --enable-gdbmi options right before the code that handles the
10188 --enable-tui option. Polish a bit.
10189 * configure: Regenerated.
10191 * configure.in: Rewrite check for GNU regex and the
10192 --without-included regex option, and move it into the "Checks for
10193 library functions" section. This makes us use the system regex
10194 again by default on systems with version 2 of the GNU C library.
10195 This was apparently broken.
10196 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10197 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10198 * config.in, configure: Regenerated.
10200 * configure.in: Move code that provides the --enable-tui option
10201 before the "Checks for libraries" section. Polish the code
10202 somewhat and set need_curses to yes if we build the TUI. Rewrite
10203 code that looks for a library providing termcap functionality to
10204 match more closely what's done in the Readline library, and move
10205 it into to the "Checks for libraries" section.
10206 * configure: Regenerated.
10207 * Makefile.in (TERMCAP): Remove variable.
10208 * config/i386/go32.mh (TERMCAP): Remove variable.
10210 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10212 * MAINTAINERS: Mention gdb_mbuild.sh.
10213 * gdb_mbuild.sh: Rewrite.
10215 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10217 * configure.in: Fix typo in last change.
10218 * config.in, configure: Regenerated.
10220 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10222 * valarith.c (value_binop): Delete obsolete code and comments.
10223 * configure.host: Ditto.
10224 * buildsym.h (make_blockvector): Ditto.
10225 * buildsym.c (make_blockvector): Ditto.
10226 * defs.h (enum language): Ditto.
10227 (chill_demangle): Ditto.
10228 * elfread.c (elf_symtab_read): Ditto.
10229 * dwarfread.c (CHILL_PRODUCER): Ditto.
10230 (set_cu_language): Ditto.
10231 (handle_producer): Ditto.
10232 * expprint.c (print_subexp): Ditto.
10233 * gdbtypes.c (chill_varying_type): Ditto.
10234 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10235 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10236 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10237 (chill_varying_type): Ditto.
10238 * language.h (_LANG_chill): Ditto.
10239 * language.c (binop_result_type, integral_type): Ditto.
10240 (character_type, string_type, structured_type): Ditto.
10241 (lang_bool_type, binop_type_check): Ditto.
10242 * stabsread.h (os9k_stabs): Ditto.
10243 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10244 (define_symbol, read_type, read_struct_fields): Ditto.
10245 (read_array_type, read_enum_type, read_huge_number): Ditto.
10246 (read_range_type, start_stabs): Ditto.
10247 * symfile.c (init_filename_language_table): Ditto.
10248 (add_psymbol_with_dem_name_to_list): Ditto.
10249 * symtab.c (symbol_init_language_specific): Ditto.
10250 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10251 * symtab.h (struct general_symbol_info): Ditto.
10252 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10253 * typeprint.c (typedef_print): Ditto.
10254 * utils.c (fprintf_symbol_filtered): Ditto.
10255 * valops.c (value_cast, search_struct_field, value_slice): Delete
10257 (varying_to_slice): Delete function.
10258 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10259 (varying_to_slice): Delete declaration.
10260 * MAINTAINERS: Update.
10262 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10264 * configure.in: Reorganize "Checks for library functions section"
10265 a bit. Remove check for `btowc' and `isascii' functions.
10266 * configure: Regenerated.
10268 * acconfig.h (_MSE_INT_H): Remove.
10269 * configure.in: Create "Checks for header files" section, and move
10270 appropriate tests there. Don't check for objlist.h, wchar.h,
10271 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10272 misdetection fix. Also add "Checks for types", "Checks for
10273 compiler characteristics" and "Checks for library functions"
10275 * config.in, configure: Regenerated.
10277 * configure.in: Create "Checks for programs" section, and move
10278 appropriate tests there.
10280 2003-01-01 Mark Kettenis <kettenis@gnu.org>
10282 * configure.in: Create "Checks for libraries" section, and move
10283 appropriate tests there. Cleanup check for wctype in libw. Use
10284 AC_SEARCH_LIBS to see whether we need libsocket.
10285 * configure: Regenerated.
10287 For older changes see ChangeLog-2002
10293 version-control: never