1 2003-08-15 J. Brobecker <brobecker@gnat.com>
3 Further multiarching work mostly for hppa64-*-hpux11:
4 * hppa-tdep.h: New file.
5 * hppa-tdep.c: #include hppa-tdep.c.
6 (hppa32_num_regs): Renamed from hppa_num_regs.
7 (hppa64_num_regs): New constant.
8 (hppa64_call_dummy_breakpoint_offset): New constant.
9 (hppa32_call_dummy_length): New constant.
10 (hppa64_call_dummy_length): New constant.
11 (hppa32_stack_align): Make name 32bit explicit.
12 (hppa32_register_virtual_type): Likewise.
13 (hppa32_extract_return_value): Likewise.
14 (hppa32_use_struct_convention): Likewise.
15 (hppa32_store_return_value): Likewise.
16 (hppa64_register_virtual_type): New function.
17 (hppa64_extract_return_value): New function.
18 (hppa64_use_struct_convention): New function.
19 (hppa64_store_return_value): New function.
20 (hppa_frame_locals_address): Remove declaration, function does
22 (hppa_register_byte): Add support for PA64 ABI.
23 (hppa_gdbarch_init): Add support for PA64 ABI.
24 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
25 Make name 32bit explicit.
26 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
27 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
28 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
29 (hppa64_hpux_frame_base_before_sigtramp): New function.
30 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
31 * config/pa/tm-hppa64.h: Remove macros that are no longer
32 necessary now that the gdbarch vector is properly setup.
33 Transform some macros into function calls. Some minor cleanup.
34 * config/pa/tm-hppah.h: Update function calls in macros
35 following the function renaming in hppa-hpux-tdep.c.
36 * Makefile.in (hppa_tdep_h): New variable.
37 (hppa-tdep.o): Add dependency over hppa_tdep_h.
39 2003-08-14 Michael Snyder <msnyder@redhat.com>
41 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
43 2003-08-13 J. Brobecker <brobecker@gnat.com>
45 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
46 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
49 2003-08-13 Michael Snyder <msnyder@redhat.com>
51 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
52 (frv_saved_pc_after_call): Use deprecated ftype.
53 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
54 (frv_remote_translate_xfer_address): Remove.
55 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
57 2003-08-13 J. Brobecker <brobecker@gnat.com>
59 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
60 initialization after the common gdbarch initialization, not before.
62 2003-08-13 J. Brobecker <brobecker@gnat.com>
64 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
65 (ADDR_BITS_REMOVE): Remove, redundant.
67 2003-08-13 J. Brobecker <brobecker@gnat.com>
69 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
70 gdbarch method to clear the 2 low bits of text addresses.
72 2003-08-12 Andrew Cagney <cagney@redhat.com>
74 * Makefile.in (dsrec.o): Update dependencies.
75 * dsrec.c: Include "gdb_assert.h".
76 (make_srec): Use snprintf instead of sprintf, use a literal format
79 2003-08-12 Andrew Cagney <cagney@redhat.com>
81 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
84 2003-08-12 Kevin Buettner <kevinb@redhat.com>
86 * i386-tdep.c (i386_gdbarch_init): Enable default support for
89 2003-08-10 Mark Kettenis <kettenis@gnu.org>
91 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
92 amd64fbsd_sc_reg_offset): Add extern declarations.
93 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
96 2003-08-11 Ben Elliston <bje@wasabisystems.com>
98 * MAINTAINERS (write after approval): Update my mail address.
100 2003-08-10 Andrew Cagney <cagney@redhat.com>
102 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
104 2003-08-10 Mark Kettenis <kettenis@gnu.org>
106 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
107 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
108 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
109 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
110 i386bsd_sc_reg_offset): Add extern declarations.
111 * i386obsd-nat.c: Include "i386-tdep.h"
112 (_initialize_i386obsd_nat): Remove extern declarations.
113 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
115 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
118 * i386-tdep.c (i386_register_to_value): Use get_frame_register
119 instead of frame_read_register.
120 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
121 instead of frame_read_register. Use I386_ESP_REGNUM instead of
123 (i386_frame_prev_register): Use frame_unwind_register_unsigned
124 instead of frame_unwind_unsigned_register. Use
125 I386_EFLAGS_REGISTER instead of PS_REGNUM.
126 (i386_get_longjmp_target): Use regcache_read_unsigned_register
127 instead of read_register. Use builtin_type_void_data_ptr instead
128 of builtin_type_void_func_ptr when extracting the address of the
130 (i386_extract_return_value, i386_store_return_value,
131 i386_pseudo_register_read, i386_pseudo_register_write): Use
132 register_size instead REGISTER_RAW_SIZE.
134 2003-08-10 Andrew Cagney <cagney@redhat.com>
136 * infcall.c (call_function_by_hand): Use xstrprintf instead of
137 sprintf. Make "name" constant.
139 2003-08-10 Mark Kettenis <kettenis@gnu.org>
141 * i387-tdep.c (i387_register_to_value): Use get_frame_register
142 instead of frame_read_register.
143 (i387_print_float_info): Use get_frame_register and
144 get_frame_register_unsigned instead of frame_register_read.
146 * i386fbsd-nat.c: Include "i386-tdep.h".
147 (child_resume): Make `eflags' an ULONGEST. Use
148 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
149 instead of register_read and register_write.
151 * i386bsd-nat.c (fetch_inferior_registers,
152 store_inferior_registers): Don't use && at the end of a line.
153 (_initialize_i386bsd_nat): Fix typo.
155 * frame.c (_initialize_frame): Add missing backslash.
157 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
158 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
159 and supply_register instead of manipulating the register buffer
162 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
163 * config/i386/nm-i386sol2.h
164 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
166 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
167 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
168 instructions that GCC likes to mingle into the prologue. Fixes
169 gdb/1253 and gdb/1255.
171 2003-08-09 Andrew Cagney <cagney@redhat.com>
174 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
175 * command.h (add_setshow_uinteger_cmd): Declare.
176 * frame.c (set_backtrace_cmd): New function.
177 (show_backtrace_cmd): New function.
178 * frame.c (_initialize_frame): Replace "set/show
179 backtrace-below-main" with "set/show backtrace past-main". Add
180 command "set/show backtrace limit".
181 (backtrace_past_main): Rename "backtrace_below_main".
182 (backtrace_limit): New variable.
183 (get_prev_frame): Update. Check the backtrace_limit.
185 2003-08-09 Andrew Cagney <cagney@redhat.com>
187 * defs.h (xstrprintf): Declare.
188 * utils.c (xstrprintf): New function.
189 * breakpoint.c (insert_breakpoints): Replace sprintf and
190 non-literal format strings, with xstrprintf and cleanups.
191 (delete_breakpoint,breakpoint_re_set): Ditto.
192 (commands_command, insert_breakpoints): Ditto.
193 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
194 (break_at_finish_command_1): Ditto.
196 2003-08-09 Andrew Cagney <cagney@redhat.com>
198 * MAINTAINERS (language support): List Adam Fedor as Objective C
201 2003-08-08 J. Brobecker <brobecker@gnat.com>
203 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
206 2003-08-08 J. Brobecker <brobecker@gnat.com>
208 * config/pa/tm-hppa64.h: Remove lots of macros that are no
209 longer necessary now that hppa64 is partially multiarch'ed.
211 2003-08-08 Andrew Cagney <cagney@redhat.com>
213 * interps.c (interp_set): Check for a NULL "old_interp".
215 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
217 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
218 (install-only): Support DESTDIR.
219 (uninstall): Likewise.
220 (install-gdbtk): Likewise.
222 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
224 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
225 contains something meaningful at all times.
227 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
229 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
231 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
233 * MAINTAINERS (write after approval): Added self.
235 2003-08-07 Andrew Cagney <cagney@redhat.com>
237 * inferior.h (AT_SYMBOL): Define.
238 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
239 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
240 * mips-tdep.c (mips_call_dummy_address): Delete function.
241 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
242 set call_dummy_address.
244 2003-08-07 Andrew Cagney <cagney@redhat.com>
246 * language.c (op_error): Delete function.
247 (binop_type_check): Delete function.
248 * language.h (type_op_error, range_op_error): Delete macros.
249 (op_error): Delete declaration.
251 2003-08-07 Andrew Cagney <cagney@redhat.com>
253 * interps.h (INTERP_MI2, INTERP_MI3): Define.
255 2003-08-07 Michal Ludvig <mludvig@suse.cz>
257 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
258 (x86_64_push_arguments): Skip the red zone.
260 2003-08-05 Andrew Cagney <cagney@redhat.com>
262 * reggroups.c (reggroup_next): Check for the final entry.
264 2003-08-04 Andrew Cagney <cagney@redhat.com>
266 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
267 * cli/cli-script.c (define_command): Call query directly, instead
268 of passing it a buffer.
269 * ocd.c (ocd_error): Pass error a constant format string.
270 * remote-mips.c (mips_error): Use fputs_filtered.
272 * solib-svr4.c (_initialize_svr4_solib): Update
273 register_gdbarch_data call.
274 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
276 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
277 (register_gdbarch_data): Delete "free" parameter. Update
279 * gdbarch.h, gdbarch.c: Re-generate.
280 * reggroups.c (_initialize_reggroup): Update.
281 * gnu-v3-abi.c (init_gnuv3_ops): Update.
282 * frame-base.c (_initialize_frame_base): Update.
283 * frame-unwind.c (_initialize_frame_unwind): Update.
284 * user-regs.c (_initialize_user_regs): Update.
285 * remote.c (_initialize_remote): Update.
286 * regcache.c (_initialize_regcache): Update.
288 * regcache.c (xfree_regcache_descr): Delete function.
289 (_initialize_regcache): Update call to register_gdbarch_data.
290 (init_regcache_descr, init_legacy_regcache_descr): Use
291 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
293 * remote.c (free_remote_state): Delete function.
294 (_initialize_remote): Update register_gdbarch_data.
295 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
296 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
298 2003-08-04 Andrew Cagney <cagney@redhat.com>
300 * reggroups.c (struct reggroup_el): Define.
301 (struct reggroups): Delete field "nr_group". Replace array
302 "group" with a "first" to "last" linked list.
303 (reggroups_init): Update. Allocate using gdbarch's obstack.
304 (reggroups_free): Delete function.
305 (add_group): Update. Add "el" parameter.
306 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
307 (default_groups): Update.
308 (reggroup_next): Replace reggroups.
309 (reggroups_dump): Update.
310 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
311 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
312 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
314 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
316 * Makefile.in (tui-interp.o): Update dependencies.
318 2003-08-04 David Carlton <carlton@kealia.com>
320 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
321 to internal_error call.
322 * source.c (forward_search_command): Add "%s" format argument.
323 (reverse_search_command): Ditto.
324 * top.c (quit_confirm): Ditto.
325 * cli/cli-setshow.c (do_setshow_command): Ditto.
326 * cp-valprint.c (cp_print_class_method): Replace
327 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
328 (cp_print_class_member): Ditto.
329 * event-top.c (command_line_handler): Ditto.
330 * linux-proc.c (linux_info_proc_cmd): Ditto.
331 * p-typeprint.c (pascal_type_print_base): Ditto.
332 * p-valprint.c (pascal_object_print_class_method): Ditto.
333 (pascal_object_print_class_member): Ditto.
334 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
335 * remote.c (remote_cisco_section_offsets): Ditto.
336 * top.c (command_line_input): Ditto.
337 * utils.c (vwarning,error_stream,quit): Ditto.
338 * valprint.c (print_floating,print_binary_chars)
339 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
341 2003-08-04 Andrew Cagney <cagney@redhat.com>
343 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
345 2003-08-02 Andrew Cagney <cagney@redhat.com>
347 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
348 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
351 2003-08-02 Andrew Cagney <cagney@redhat.com>
353 * Makefile.in: Update all dependencies and definitions.
355 2003-08-02 Adam Fedor <fedor@gnu.org>
357 * linespec.c (is_objc_method_format): New function
358 (decode_line_1, locate_first_half): Use it.
361 2003-08-01 Andrew Cagney <cagney@redhat.com>
363 * NEWS: Mention that m32r is multi-arch.
364 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
365 * configure.tgt: Recognize m32r-*-*.
366 * config/m32r/tm-m32r.h: Delete file.
367 * config/m32r/m32r.mt: New file.
368 * m32r-rom.c (m32r_upload_command): Use hostent only when
369 gethostname succeeds, in order to avoid a compilation
371 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
374 2003-08-01 Michael Snyder <msnyder@redhat.com>
376 * sh-tdep.c (sh_frame_align): New gdbarch method.
377 (sh_gdbarch_init): Set up frame_align method.
379 2003-07-31 Michael Snyder <msnyder@redhat.com>
381 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
382 which is already covered by the new frames infrastructure.
384 2003-07-31 Andrew Cagney <cagney@redhat.com>
386 * user-regs.c (struct user_reg): Add "next" link.
387 (struct user_regs): Replace "user" with "first" and "last" links.
388 (append_user_reg): Add pre-allocated "reg" parameter.
389 (builtin_user_regs): Provide initial value for "last".
390 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
391 (user_regs_init): Allocate memory from the gdbarch obstack.
392 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
393 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
395 (usernum_to_user_reg): New function.
396 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
397 (value_of_user_reg): Use usernum_to_user_reg.
398 (user_regs_free): Delete function.
399 (_initialize_user_regs): Update register_gdbarch_data call.
401 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
403 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
405 2003-07-30 Michael Snyder <msnyder@redhat.com>
407 * value.h (value_being_returned): Add a struct_addr argument.
408 * infcall.c (call_function_by_hand): Pass struct_addr to
409 value_being_returned.
410 * infcmd.c (print_return_value): Pass zero as struct_addr.
411 * values.c (value_being_returned): If struct_addr is passed,
412 use it instead of trying to recover it from the inferior.
414 2003-07-30 Kevin Buettner <kevinb@redhat.com>
416 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
417 the prologue analyzer won't need to attempt to extract the pc
418 value from the woefully incomplete dummy frame.
419 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
420 possible. Disable code which modifies the frame.
422 2003-07-28 Andrew Cagney <cagney@redhat.com>
424 * annotate.c (annotate_breakpoints_headers): Restrict annotation
426 (annotate_breakpoints_table, annotate_record): Ditto.
427 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
428 (annotate_field_name_end, annotate_field_value): Ditto.
429 (annotate_field_end, annotate_frame_source_begin): Ditto.
430 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
431 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
432 (annotate_frame_begin, annotate_frame_function_name): Ditto.
433 (annotate_frame_address_end, annotate_frame_address): Ditto.
434 (annotate_frame_args, annotate_frame_end): Ditto.
435 (annotate_frame_where, annotate_arg_begin): Ditto.
436 (annotate_arg_name_end, annotate_arg_value): Ditto.
437 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
438 (annotate_function_call, annotate_signal_name): Ditto.
439 (annotate_signal_string, annotate_signal_name_end): Ditto.
440 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
441 (annotate_value_begin, annotate_value_history_value): Ditto.
442 (annotate_value_history_end, annotate_value_end): Ditto.
443 (annotate_display_begin, annotate_display_number_end): Ditto.
444 (annotate_display_format, annotate_display_expression): Ditto.
445 (annotate_display_expression_end, annotate_display_value): Ditto.
446 (annotate_display_end, annotate_array_section_begin): Ditto.
447 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
448 (annotate_elt, annotate_array_section_end): Ditto.
450 2003-07-28 Andrew Cagney <cagney@redhat.com>
452 * regcache.c (struct regcache_descr): Update comments on
454 (init_legacy_regcache_descr): Don't set nr_raw_registers or
455 sizeof_raw_register_valid_p.
456 (init_regcache_descr): Set nr_raw_registers and
457 sizeof_raw_register_valid_p before calling
458 init_legacy_regcache_descr.
460 2003-07-28 Andrew Cagney <cagney@redhat.com>
462 * mips-tdep.c (print_gp_register_row): Print the GPR's register
465 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
467 * thread.c (info_threads_command): Use get_selected_frame ().
468 Check that there is at least one non-sentinel frame.
470 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
472 * m68hc11-tdep.c (struct frame_extra_info): Remove.
473 (m68hc11_pop_frame): Remove.
474 (m68hc11_frame_saved_pc): Remove.
475 (m68hc11_frame_chain): Remove.
476 (m68hc11_frame_init_saved_regs): Remove.
477 (m68hc11_init_extra_frame_info): Remove.
478 (m68hc11_store_struct_return): Remove.
479 (m68hc11_saved_pc_after_call): Remove.
481 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
483 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
484 frame unwind information.
485 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
486 and adapted for frame unwinding.
487 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
488 (m68hc11_unwind_pc): New function.
489 (m68hc11_frame_unwind_cache): New function to analyze frames.
490 (m68hc11_frame_this_id): New function to create new frame struct.
491 (m68hc11_frame_prev_register): New function to unwind a register from
493 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
494 (m68hc11_frame_p): New function for the above.
495 (m68hc11_frame_base_address): New function to return fp of frame.
496 (m68hc11_frame_args_address): Update for frame.
497 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
498 (m68hc11_unwind_sp): New function.
499 (m68hc11_unwind_dummy_id): New function.
500 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
503 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
505 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
506 (m68hc11_guess_from_prologue): Advance the pc and frame size only
507 when we are beyond the current pc.
509 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
511 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
512 from m68hc11_push_arguments.
513 (m68hc11_push_arguments): Remove.
514 (m68hc11_push_return_address): Remove.
515 (m68hc11_gdbarch_init): Install the above; remove above deprecated
516 handlers; remove deprecated_extra_stack_alignment_needed.
518 2003-07-27 Andrew Cagney <cagney@redhat.com>
520 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
521 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
522 REAL_PC and not the pointer.
523 * hppa-hpux-tdep.c: Include frame.h
525 2003-07-27 Andrew Cagney <cagney@redhat.com>
527 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
528 GDB_MULTI_ACH_PARTIAL.
530 2003-07-27 Andrew Cagney <cagney@redhat.com>
532 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
533 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
534 operator at start and not end of line.
535 (decode_prologue): Ditto.
536 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
537 frame_unwind_register_unsigned instead of
538 frame_unwind_unsigned_register.
539 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
541 (m32r_push_dummy_call): Use register_size instead of
543 (m32r_frame_sniffer): Replace m32r_frame_p.
544 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
545 * m32r-rom.c (report_transfer_performance): Delete extern
547 (m32r_load, m32r_upload_command): Use print_transfer_performance
548 instead of report_transfer_performance.
549 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
552 2003-07-26 Andrew Cagney <cagney@redhat.com>
554 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
555 store_return_value and extract_struct_value_address.
557 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
560 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
561 NULL, default to the section containing PC.
563 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
565 * NEWS: Mention "regs" deprecated for m68hc11 too.
567 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
568 (m68hc11_print_register): New function to print out one register.
569 (m68hc11_print_registers_info): New function to print registers.
570 (show_regs): Deprecate and use the above.
571 (m68hc11_gdbarch_init): Install the print_registers_info.
573 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
575 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
576 that we have a SIGTRAP before returning non-zero.
578 2003-07-23 Michal Ludvig <mludvig@suse.cz>
579 Elena Zannoni <ezannoni@redhat.com>
581 * linespec.c (decode_line_2): Avoid crash if
582 find_function_start_sal() returns empty record.
584 2003-07-23 Andreas Schwab <schwab@suse.de>
586 * ia64-tdep.c (ia64_print_insn): New function.
587 (ia64_gdbarch_init): Set print_insn to it.
588 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
589 deprecated_tm_print_insn_info.
591 2003-07-22 Michael Snyder <msnyder@redhat.com>
593 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
594 handle 8-bit returns (long long).
595 (h8300h_extract_return_value): Ditto.
596 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
598 2003-07-22 Andrew Cagney <cagney@redhat.com>
600 * gdbarch.c Include "gdb_obstack.h".
601 (struct gdbarch): Add an "obstack".
602 (alloc_gdbarch_data): Allocate the gdbarch data using
603 GDBARCH_OBSTACK_CALLOC.
604 (free_gdbarch_data): Delete function.
605 (gdbarch_obstack_zalloc): New function.
606 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
607 Assert that the architecture is not initialized.
608 (gdbarch_alloc): Allocate an obstack, allocate the architecture
609 vector from the obstack.
610 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
611 architecture obstack.
612 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
613 (set_gdbarch_data): Assert that the data is not initialized.
614 (struct gdbarch_data): Delete member "free".
615 (register_gdbarch_data): Do not initialize "free".
616 * gdbarch.h, gdbarch.c: Re-generate.
618 2003-07-22 Andrew Cagney <cagney@redhat.com>
620 * configure.in (build_warnings): Add -Wformat-nonliteral.
621 * configure: Re-generate.
623 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
625 * dwarf2loc.c (locexpr_describe_location): Fix typos.
627 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
629 * findvar.c (read_var_value): Remove case for thread local storage
630 variables. It is now entirely handled by the dwarf2 location
632 * printcmd.c (address_info): Ditto.
633 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
635 (struct symbol): Remove objfile field, which was used by
636 LOC_THREAD_LOCAL_STATIC only.
637 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
638 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
639 usage of objfile pointer.
640 * dwarf2loc.c (locexpr_describe_location): Add case to handle
641 thread local variables.
642 Add include of objfiles.h.
643 * dwarf2expr.c (execute_stack_op): Add comments about thread local
645 * Makefile.in (dwarf2loc.o): Update dependencies.
647 2003-07-22 Andrew Cagney <cagney@redhat.com>
649 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
651 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
652 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
653 (struct value): Add opaque declaration.
654 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
656 2003-07-21 Andrew Cagney <cagney@redhat.com>
658 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
659 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
661 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
663 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
664 regcache_cooked_read_unsigned instead of read_register.
665 (m68hc11_saved_pc_after_call): Likewise.
666 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
667 instead of write_register.
668 (m68hc11_register_type): New function.
669 (m68hc11_register_virtual_type): Remove.
670 (m68hc11_store_return_value): Convert to use the regcache.
671 (m68hc11_extract_struct_value_address): Likewise.
672 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
673 m68hc11_register_type; undeprecate store_return_value and
674 extract_struct_value_address.
676 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
678 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
679 and translate to use regcache.
680 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
682 2003-07-18 Andrew Cagney <cagney@redhat.com>
684 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
685 * gdbarch.h, gdbarch.c: Re-generate.
686 * i386-tdep.c (i386_gdbarch_init): Do not set
687 DWARF2_BUILD_FRAME_INFO.
688 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
690 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
691 DWARF2_BUILD_FRAME_INFO.
693 2003-07-18 Andrew Cagney <cagney@redhat.com>
695 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
696 * disasm.c (gdb_disassemble_info): Initilize di.arch.
698 2003-07-18 Andrew Cagney <cagney@redhat.com>
700 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
701 frame_unwind_address_in_block, instead of frame_pc_unwind.
702 (dwarf2_frame_cache): Ditto.
704 2003-07-18 Andrew Cagney <cagney@redhat.com>
706 * user-regs.h (struct gdbarch): Declare opaque.
707 * ui-out.h (struct ui_file): Declare opaque.
708 * dwarf2-frame.h (struct frame_info): Declare opaque.
710 2003-07-18 Kris Warkentin <kewarken@qnx.com>
712 * nto-procfs.c: Clean ARI hits. Change #include <..> to
714 (procfs_meminfo): Change strerror to safe_strerror.
715 (procfs_can_run): Remove K&R badness.
717 2003-07-17 Michael Snyder <msnyder@redhat.com>
719 * remote-sim.c: Comment typo fix.
721 2003-07-17 Andrew Cagney <cagney@redhat.com>
723 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
725 * sparc-tdep.c (sparc_intreg_size): Make non-static.
726 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
727 GDB_MULTI_ARCH_PARTIAL.
729 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
731 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
732 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
733 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
735 2003-07-16 Theodore A. Roth <troth@openavr.org>
737 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
739 (avr_frame_unwind_cache): Don't unwind FP for main.
741 Save the computed prev_sp.
742 (avr_saved_regs_unwinder): Remove function.
743 (avr_frame_prev_register): Use PC unwind logic from
744 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
746 2003-07-16 Andrew Cagney <cagney@redhat.com>
748 * frame-base.h (frame_base_p_ftype): Delete definition.
749 (frame_base_append_predicate): Delete declaration.
750 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
751 (frame_unwind_append_predicate): Delete declaration.
752 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
753 (append_predicate): Delete parameter "p".
754 (frame_unwind_append_predicate): Delete function.
755 (frame_unwind_append_sniffer): Update call to append_predicate.
756 (frame_unwind_free): Delete function.
757 (_initialize_frame_unwind): Pass NULL as "free" to
758 register_gdbarch_data.
759 (frame_unwind_init): Append the dummy_frame_sniffer.
760 (frame_unwind_find_by_frame): Simplify.
761 * frame-base.c (struct frame_base_table): Delete field "p".
762 (append_predicate): Delete parameter "p".
763 (frame_base_append_predicate): Delete function.
764 (frame_base_append_sniffer): Update call to append_predicate.
765 (frame_base_free): Delete function.
766 (frame_base_find_by_frame): Simplify.
767 (_initialize_frame_base): Pass NULL as "free" to
768 register_gdbarch_data.
769 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
770 (x86_64_sigtramp_frame_sniffer): Replace
771 "x86_64_sigtramp_frame_p".
772 (x86_64_init_abi): Set the frame unwind sniffers.
773 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
774 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
775 (m68k_gdbarch_init): Set the frame unwind sniffers.
776 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
777 "i386_sigtramp_frame_p".
778 (i386_frame_sniffer): Replace "i386_frame_p".
779 (i386_gdbarch_init): Set the frame unwind sniffers.
780 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
781 (avr_gdbarch_init): Set the frame unwind sniffers.
782 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
783 "alpha_sigtramp_frame_p"
784 (alpha_heuristic_frame_sniffer): Replace
785 "alpha_heuristic_frame_p".
786 (alpha_gdbarch_init): Set the frame unwind sniffers.
787 (alpha_dwarf2_init_abi): Ditto.
788 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
789 "alpha_debug_frame_p".
790 (alpha_mdebug_frame_base_sniffer): Replace
791 "alpha_mdebug_frame_base_p".
792 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
793 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
794 (d10v_gdbarch_init): Set the frame unwind sniffer.
795 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
796 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
797 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
798 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
799 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
800 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
802 2003-07-16 Michael Snyder <msnyder@redhat.com>
804 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
805 should go thru sh_dsp_register_sim_regno, else the dsp regs
806 will not get the right values.
808 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
810 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
811 deprecated_store_floating by call to store_typed_floating.
812 (sh_sh4_register_convert_to_raw): Substitute call to
813 deprecated_extract_floating by call to extract_typed_floating.
815 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
817 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
819 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
821 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
822 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
823 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
825 (do_pseudo_register): Remove.
826 (sh_push_dummy_code): New function.
827 (sh64_store_struct_return): Rename from sh_store_struct_return.
828 Only called for sh64 now.
829 (sh_extract_struct_value_address): Regcache'ify.
830 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
831 and accomodate new tasks.
832 (sh64_push_return_address): Rename from sh_push_return_address.
833 Only called for sh64 now.
834 (sh_default_extract_return_value): Rename from sh_extract_return_value.
836 (sh3e_sh4_extract_return_value): Regcache'ify.
837 (sh_default_store_return_value): Ditto.
838 (sh3e_sh4_store_return_value): Ditto.
839 (sh_default_register_byte): Remove.
840 (sh_sh4_register_byte): Remove.
841 (sh_default_register_raw_size): Remove.
842 (sh_sh4_register_raw_size): Remove.
843 (sh_register_virtual_size): Remove.
844 (sh_sh3e_register_virtual_type): Remove.
845 (sh_sh3e_register_type): New function.
846 (sh_sh4_register_virtual_type): Remove.
847 (sh_sh4_register_type): New function.
848 (sh_default_register_virtual_type): Remove.
849 (sh_default_register_type): New function.
850 (do_fv_register_info): Add parameters to accomodate call from
851 sh_print_registers_info.
852 (do_dr_register_info): Ditto.
853 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
854 Add parameters to accomodate call from sh_print_registers_info.
855 (sh_do_fp_register): Ditto.
856 (sh64_do_pseudo_register): Call do_dr_register_info,
857 do_fv_register_info and sh_do_fp_register with default parameters.
858 (sh_do_register): Add parameters to accomodate call from
859 sh_print_registers_info.
860 (sh_print_register): Ditto.
861 (sh_print_registers_info): Rename from sh_do_registers_info.
862 Add parameters to be used as gdbarch_print_registers_info
863 implementation. Accomodate removed do_pseudo_register function
865 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
866 function pointer. Call sh_print_register with default parameters.
867 (sh64_do_registers_info): Call sh_print_registers_info instead of
868 sh_do_registers_info.
869 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
870 detection of deprecated vs. non-deprecated functionality.
871 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
872 function pointer assignments by direct function calls.
874 2003-07-15 Andrew Cagney <cagney@redhat.com>
876 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
877 (frame_register_unwind, create_new_frame): Ditto.
878 (legacy_get_prev_frame, get_frame_type): Ditto.
879 (get_frame_base_address): Use frame_base_find_by_frame.
880 (get_frame_locals_address): Use frame_base_find_by_frame.
881 (get_frame_args_address): Use frame_base_find_by_frame.
882 * frame-base.h (frame_base_sniffer_ftype): Declare.
883 (frame_base_append_sniffer): Declare.
884 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
885 * frame-base.c (append_predicate): Add a "sniffer" parameter.
886 (frame_base_append_sniffer): New function.
887 (frame_base_append_predicate): Add a NULL sniffer.
888 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
889 (struct frame_base_table): Add "sniffer".
890 (frame_base_free): Free the "sniffer" table.
891 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
892 (frame_unwind_append_sniffer): Declare.
893 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
894 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
895 (struct frame_unwind_table): Add "sniffer", delete "middle".
896 (append_predicate): Add "sniffer" parameter, append the sniffer.
897 (frame_unwind_init): Update append_predicate call.
898 (frame_unwind_append_sniffer): New function.
899 (frame_unwind_append_predicate): Update append_predicate call.
900 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
902 2003-07-15 Andrew Cagney <cagney@redhat.com>
904 * frame.c (get_prev_frame): Move disabled inside_entry_func to
905 before code inhibiting repeated unwind attempts. Add to
906 commentary on that test's problems.
907 * blockframe.c (inside_main_func): Look for "main" in the minimal
909 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
912 2003-07-15 Andrew Cagney <cagney@redhat.com>
914 * complaints.c (struct explanation): Define.
915 (struct complaints): Change type of "explanation" to "struct
917 (symfile_explanations): Convert to a "struct explanation" table.
918 (vcomplaint): Update.
920 2003-07-15 Michal Ludvig <mludvig@suse.cz>
922 * x86-64-linux-nat.c (regmap): Removed.
923 (supply_gregset, fill_gregset): Call
924 x86_64_linux_(fill,supply)_gregset functions.
925 * x86-64-linux-tdep.c (USER_*): New defines.
926 (user_to_gdb_regmap, x86_64_core_fns): New structure.
927 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
929 (fetch_core_registers): Ditto.
930 (_initialize_x86_64_linux_tdep): Call add_core_fns().
931 * x86-64-linux-tdep.h: New file.
932 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
934 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
936 2003-07-13 Mark Kettenis <kettenis@gnu.org>
938 * x86-64-tdep.c (x86_64_store_return_value): Use
939 regcache_cooked_write_part instead of regcache_cooked_write.
941 * configure.host: Add x86_64-*-freebsd*.
942 * configure.tgt: Add x86_64-*-freebsd*.
943 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
944 * amd64fbsd-nat.c: New file.
945 * amd64fbsd-tdep.c: New file.
946 * config/i386/nm-fbsd64.h: New file.
947 * config/i386/fbsd64.mh: New file.
948 * config/i386/fbsd64.mt: New file.
950 2003-07-11 Mark Kettenis <kettenis@gnu.org>
952 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
953 `sc_regs_offset' and `sc_fpregs_offset'.
954 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
955 SIGFRAME_FPREGSAVE_OFF): Remove defines.
956 (alpha_sigtramp_register_address): Rewrite to use new members of
957 `struct gdbarch_tdep'.
958 (alpha_gdbarch_init): Initialize new members of struct
960 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
961 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
962 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
963 (alphafbsd_pc_in_sigtramp): Implement.
964 (alphafbsd_sigtramp_offset): New function.
965 (alphafbsd_sigcontext_addr): New function.
966 (alphafbsd_init_abi): Initialize signal trampoline related members
967 of `struct gdbarch_tdep'.
968 (_initialize_alphafbsd_tdep): Add prototype.
970 2003-07-11 Theodore A. Roth <troth@openavr.org>
972 * Makefile.in (install-only): Quote sed expression when generating
975 2003-07-11 Richard Henderson <rth@redhat.com>
977 * Makefile.in (dwarf2-frame.o): Add complaints_h.
978 * dwarf2-frame.c: Include complaints.h.
979 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
980 variable initialization; return NULL on error.
981 (decode_frame_entry): New.
983 2003-07-11 Andrew Cagney <cagney@redhat.com>
985 * frame.h (frame_address_in_block): Delete declaration.
986 * blockframe.c (frame_address_in_block): Delete function.
987 (get_frame_block): Use get_frame_address_in_block.
988 (block_innermost_frame): Ditto.
989 * stack.c (print_frame, backtrace_command_1): Ditto.
991 * frame.h (get_frame_address_in_block): Declare.
992 (frame_unwind_address_in_block): Declare.
993 * frame.c (frame_unwind_address_in_block): New function.
994 (get_frame_address_in_block): New function.
996 2003-07-10 Andrew Cagney <cagney@redhat.com>
998 * gdbarch.sh: Simplify predicate methods. Remove need to provide
999 pre-default. Note: re-generate has no effect.
1001 2003-07-10 Andrew Cagney <cagney@redhat.com>
1003 * gdbarch.sh: When a variable, but not a function, compare against
1004 0. Fix problem in previous patch.
1005 * gdbarch.c: Re-generate.
1007 2003-07-10 Andrew Cagney <cagney@redhat.com>
1009 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1010 functions against NULL, not 0.
1011 * gdbarch.c: Re-generate.
1013 2003-07-10 Fred Fish <fnf@ninemoons.com>
1015 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1016 null string instead of a null pointer.
1017 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1019 2003-07-09 Michael Snyder <msnyder@redhat.com>
1021 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1023 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1025 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1026 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1027 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1028 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1029 * x86-64-tdep.c: ... from here.
1031 2003-07-09 Andreas Schwab <schwab@suse.de>
1033 * m68k-tdep.h (enum struct_return): Define.
1034 (struct gdbarch_tdep): Add struct_return.
1035 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1036 bytes are padded to the right, not to the left. Pass struct value
1037 address in register %a1, not on stack.
1038 (m68k_use_struct_convention): New function.
1039 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1040 struct_return in tdep to pcc_struct_return.
1041 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1044 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1046 * somread.c (som_symfile_offsets): Fix compilation error.
1048 2003-07-09 Andrew Cagney <cagney@redhat.com>
1050 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1051 Add comments about the checks.
1053 2003-07-08 Andrew Cagney <cagney@redhat.com>
1055 * Makefile.in: Make dependency section headers consistent.
1056 (config_h): Move to $BUILD headers section.
1057 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1058 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1059 (ada-exp.tab.c): Move to YACC/LEX section.
1060 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1061 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1063 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1065 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1066 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1067 of strerror with safe_strerror, use ISO C function definitions,
1068 and replace instances of sprintf with snprintf.
1070 2003-07-07 Andrew Cagney <cagney@redhat.com>
1072 * frame.c (get_prev_frame): Enable check for identical frames.
1073 Update comments. Update error messages.
1075 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1077 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1079 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1081 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1082 sort_symtab_syms, no longer necessary.
1084 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1086 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1088 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1090 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1091 (mips_register_byte): Likewise.
1093 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1095 * Makefile.in (sparc_tdep_h): New.
1096 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1097 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1098 * sparc-linux-nat.c: Include "sparc-tdep.h".
1099 * sparc-nat.c: Likewise.
1100 * sparc-tdep.c: Likewise.
1101 * sparc64nbsd-nat.c: Likewise.
1102 * sparcnbsd-nat.c: Likewise.
1103 * sparcnbsd-tdep.c: Likewise.
1104 * sparc-tdep.h: New file.
1105 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1106 and sparc_npc_regnum.
1108 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1110 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1111 (mips_linux_cannot_store_register): List supported instead of
1112 unsupported registers.
1114 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1116 * disasm.c (dump_insns): Separate instructions from addresses.
1118 2003-07-07 Andreas Schwab <schwab@suse.de>
1120 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1122 * m68k-tdep.c (NUM_FREGS): Delete.
1123 (SIG_PC_FP_OFFSET): Delete.
1124 (TARGET_M68K): Delete.
1125 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1126 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1127 P_MOVEL_SP, P_MOVEML_SP): Define.
1128 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1130 (m68k_register_raw_size): Delete.
1131 (m68k_register_virtual_size): Delete.
1132 (m68k_register_type): Renamed from m68k_register_virtual_type and
1133 add gdbarch argument.
1134 (m68k_store_struct_return): Delete.
1135 (m68k_deprecated_extract_return_value): Delete.
1136 (m68k_deprecated_extract_struct_value_address): Delete.
1137 (m68k_frame_chain): Delete.
1138 (m68k_frame_saved_pc): Delete.
1139 (m68k_fix_call_dummy): Delete.
1140 (m68k_push_dummy_frame): Delete.
1141 (m68k_pop_frame): Delete.
1142 (m68k_extract_return_value): New function.
1143 (m68k_store_return_value): Rewrite using regcache.
1144 (m68k_extract_struct_value_address): Rewrite using regcache.
1145 (m68k_push_dummy_call): New function.
1146 (struct m68k_frame_cache): Define.
1147 (m68k_alloc_frame_cache): New function.
1148 (m68k_analyze_frame_setup): New function.
1149 (m68k_analyze_register_saves): New function.
1150 (m68k_analyze_prologue): New function.
1151 (m68k_skip_prologue): Rewrite using above functions.
1152 (m68k_unwind_pc): New function.
1153 (m68k_frame_cache): New function.
1154 (m68k_frame_this_id): New function.
1155 (m68k_frame_prev_register): New function.
1156 (m68k_frame_unwind): New variable.
1157 (m68k_frame_p): New function.
1158 (m68k_sigtramp_frame_cache): New function.
1159 (m68k_sigtramp_frame_this_id): New function.
1160 (m68k_sigtramp_frame_prev_register): New function.
1161 (m68k_sigtramp_frame_unwind): New variable.
1162 (m68k_sigtramp_frame_p): New function.
1163 (m68k_frame_base_address): New function.
1164 (m68k_frame_base): New function.
1165 (m68k_unwind_dummy_id): New function.
1166 (fill_gregset): Use regcache_collect.
1167 (fill_fpregset): Likewise.
1168 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1170 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1171 deprecated_init_frame_pc, deprecated_store_struct_return,
1172 deprecated_extract_return_value, deprecated_store_return_value,
1173 deprecated_frame_chain, deprecated_frame_saved_pc,
1174 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1175 deprecated_register_virtual_size,
1176 deprecated_max_register_raw_size,
1177 deprecated_max_register_virtual_size,
1178 deprecated_register_virtual_type, deprecated_register_size,
1179 deprecated_register_byte, deprecated_register_bytes,
1180 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1181 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1182 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1183 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1184 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1185 deprecated_push_dummy_frame, deprecated_pop_frame,
1186 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1187 only if SYSCALL_TRAP is defined. Set extract_return_value,
1188 store_return_value, extract_struct_value_address, register_type,
1189 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1191 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1192 M68K_MAX_REGISTER_SIZE): Define.
1193 (struct m68k_sigtramp_info): Define.
1194 (struct gdbarch_tdep): Add get_sigtramp_info.
1195 * m68klinux-nat.c (fetch_register): Use register_size instead of
1196 REGISTER_RAW_SIZE. Don't put assignment in if.
1197 (store_register): Likewise.
1198 (fetch_inferior_registers): Likewise.
1199 (store_inferior_registers): Likewise.
1200 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1201 (m68k_linux_frame_saved_pc): Delete.
1202 (m68k_linux_sigcontext_reg_offset,
1203 m68k_linux_ucontext_reg_offset): Define.
1204 (m68k_linux_get_sigtramp_info): New function.
1205 (m68k_linux_extract_return_value): Rewrite using regcache.
1206 (m68k_linux_store_return_value): Likewise.
1207 (m68k_linux_extract_struct_value_address): Likewise.
1208 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1209 Don't set deprecated_frame_saved_pc,
1210 deprecated_extract_return_value, deprecated_store_return_value,
1211 deprecated_extract_struct_value_address. Set
1212 extract_return_value, store_return_value,
1213 extract_struct_value_address.
1215 2003-07-07 Andrew Cagney <cagney@redhat.com>
1217 * expprint.c: Include "user-regs.h" instead of "frame.h".
1218 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1219 frame_map_regnum_to_name.
1220 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1221 (frame_map_name_to_regnum): Simplify, call
1222 user_reg_map_name_to_regnum.
1223 (frame_map_regnum_to_name): Simplify, call
1224 user_reg_map_regnum_to_name.
1225 (frame_register_unwind): Update.
1226 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1227 (_initialize_frame_reg): Call user_reg_add_builtin.
1228 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1229 (value_of_register): Use value_of_user_reg.
1230 * eval.c (evaluate_subexp_standard): Update.
1231 * parse.c (write_dollar_variable): Update.
1232 * d10v-tdep.c (d10v_print_registers_info): Update.
1233 * infcmd.c (registers_info): Update.
1234 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1235 (builtin_regs_h): Delete macro.
1236 (user_regs_h): Define.
1237 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1238 (builtin-regs.o): Delete target.
1239 (user-regs.o): Specify dependencies.
1240 (expprint.o): Update dependencies.
1241 (findvar.o): Update dependencies.
1242 (frame.o): Update dependencies.
1243 (std-regs.o): Update dependencies.
1245 2003-07-06 Christopher Faylor <cgf@redhat.com>
1247 * win32-nat.c (solib_symbols_add): Use one variable for all section
1248 address stuff. Pass variable rather than address of variable to
1249 safe_symbol_file_add.
1251 2003-07-06 Andreas Schwab <schwab@suse.de>
1253 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1255 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1257 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1259 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1261 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1263 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1265 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1266 * config/i386/nto.mh: New file.
1267 * config/i386/nm-nto.h: New file.
1268 * configure.host: Add i[3456]86-*-nto*.
1270 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1272 * remote-vx.c (vx_add_symbols): Fix compilation error.
1274 2003-07-03 Andrew Cagney <cagney@redhat.com>
1276 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1277 * gdbarch.h, gdbarch.c: Re-generate.
1278 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1279 (legacy_register_name): Declare.
1280 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1281 (REGISTER_NAME): Define.
1282 * sparc-tdep.c (legacy_register_name): New function.
1283 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1284 (REGISTER_NAME): Define.
1285 (hppa64_register_name): Declare.
1286 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1287 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1288 (hppa64_register_name): New function.
1289 (hppa_register_name): New function.
1290 * arch-utils.c (legacy_register_name): Delete.
1291 * arch-utils.h (legacy_register_name): Delete.
1293 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1295 * cli/cli-interp.c (cli_interpreter_resume): Update the
1296 cli_uiout's stream to gdb_stdout.
1298 2003-07-03 Andrew Cagney <cagney@redhat.com>
1300 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1302 * gdbarch.h, gdbarch.c: Re-generate.
1303 * regcache.c (init_regcache_descr): Use legacy code when either
1304 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1306 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1308 * NEWS: Move "set logging" entry into GDB 6.0 section.
1310 2003-07-02 Jim Blandy <jimb@redhat.com>
1312 * s390-tdep.c (struct frame_extra_info): new member:
1313 'stack_bought_valid'.
1314 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1315 initialize fextra_info->stack_bought.
1316 (s390_frameless_function_invocation): Don't trust the value of
1317 fextra_info_ptr->stack_bought unless
1318 fextra_info->stack_bought_valid is set.
1320 New S390 prologue analyzer.
1321 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1322 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1323 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1324 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1325 compute_x_addr, s390_on_stack, s390_store,
1326 s390_get_signal_frame_info): New functions.
1327 (S390_NUM_SPILL_SLOTS): New macro.
1328 (s390_get_frame_info): Rewritten.
1329 (is_arg_reg): Deleted.
1331 Break out the decoding of S/390 instructions into separate
1332 functions, to make it more legible, and easier to check
1334 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1335 is_rx, is_rxe): New functions.
1336 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1337 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1338 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1339 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1340 enums for opcode values. (Is this an improvement?)
1342 2003-07-02 Andrew Cagney <cagney@redhat.com>
1344 * i386-tdep.c: Revert change committed as part of trad-frame code
1347 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1349 * breakpoint.c (insert_catchpoint): Make static.
1351 2003-07-02 Andreas Schwab <schwab@suse.de>
1353 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1354 former ia64_push_arguments and ia64_push_return_address, and use
1355 regcache functions instead of read/write_register.
1356 (ia64_gdbarch_init): Set push_dummy_call instead of
1357 deprecated_push_arguments and deprecated_push_return_address.
1359 2003-07-01 Andreas Jaeger <aj@suse.de>
1361 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1363 Set %rax only to number of SSE registers used.
1365 2003-07-01 Andrew Cagney <cagney@redhat.com>
1367 * trad-frame.h: Update comments, a -1 .addr is reserved.
1368 (trad_frame_value_p, trad_frame_addr_p): Declare.
1369 (trad_frame_reg_p): Declare.
1370 (trad_frame_set_value): Rename trad_frame_register_value.
1371 (trad_frame_set_unknown): Declare.
1372 * trad-frame.c (trad_frame_realreg_p): New function.
1373 (trad_frame_addr_p, trad_frame_value_p): New function.
1374 (trad_frame_set_unknown): New function.
1375 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1376 (trad_frame_prev_register): Use trad_frame_realreg_p,
1377 trad_frame_addr_p and trad_frame_value_p.
1378 (trad_frame_set_value): Rename trad_frame_register_value.
1379 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1380 and trad_frame_set_value.
1382 2003-06-30 Jim Blandy <jimb@redhat.com>
1384 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1385 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1386 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1387 for 16 registers, and then 32 more bytes.
1388 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1390 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1391 Move up in the file, since it's now used by is_simple_arg.
1392 (is_simple_arg): Don't assume registers are four bytes long.
1393 Exclude all double arguments. Extended floats are not simple
1395 (is_power_of_two): New function.
1396 (pass_by_copy_ref): Call is_power_of_two, and check that the
1397 length fits in a register, rather than listing all the acceptable
1398 sizes. Extended floats are not passed by reference.
1399 (s390_push_arguments): Don't assume registers are four bytes long.
1400 Reserve an argument register to point to the buffer for structures
1401 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1402 S390_STACK_FRAME_OVERHEAD.
1404 2003-06-30 Andreas Schwab <schwab@suse.de>
1406 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1407 format error message.
1409 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1411 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1413 2003-06-30 David Carlton <carlton@kealia.com>
1415 Band-aid for PR c++/1245.
1416 * Makefile.in (cp-support.o): Depend on complaints_h.
1417 * cp-support.c: Include complaints.h. Add declaration for
1418 find_last_component.
1419 (cp_find_first_component): Separate code into
1420 cp_find_first_component_aux.
1421 (cp_find_first_component_aux): Call demangled_name_complaint.
1422 (demangled_name_complaint): New.
1424 2003-06-30 Andrew Cagney <cagney@redhat.com>
1426 * remote.c (remote_write_bytes): Explicitly compute and then use
1427 the payload size. Update comments to reflect. Fixes problem of
1428 GDB not sending small packets as found by Fred Fish.
1430 2003-06-30 Andrew Cagney <cagney@redhat.com>
1432 * remote.c (remote_async_wait): Fix -Wformat problem.
1434 2003-06-29 Andrew Cagney <cagney@redhat.com>
1436 * remote.c (remote_wait): Call error, and not warning, when the
1438 (remote_async_wait): Ditto.
1440 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1442 * sparc-tdep.c (sparc_y_regnum): Make external again.
1444 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1446 * cli/cli-logging.c (pop_output_files): Add void to function
1449 2003-06-29 Andrew Cagney <cagney@redhat.com>
1451 * frame.c (frame_register_unwind): Use unsigned char when dumping
1452 the buffer contents.
1454 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1456 * cli/cli-logging.c: New file.
1457 * cli-out.c (struct ui_out_data): Add original_stream.
1458 (cli_redirect): New function.
1459 (cli_ui_out_impl): Add cli_redirect.
1460 (cli_out_new): Initialize original_stream.
1461 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1462 (uo_redirect, ui_out_redirect): New.
1463 * ui-out.h (struct ui_out_impl): Add redirect member.
1464 (redirect_ftype): New.
1465 (ui_out_redirect): Add prototype.
1466 * Makefile.in: Add rules for cli-logging.c.
1467 * NEWS: Mention "set logging".
1469 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1471 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1473 2003-06-27 Andrew Cagney <cagney@redhat.com>
1475 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1476 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1477 * avr-tdep.c (avr_call_dummy_address): Delete function.
1478 (avr_gdbarch_init): Do not set call_dummy_address.
1480 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1482 * symfile.c (syms_from_objfile): Move variables to inner block.
1483 Move the checks for the non-mainline case a bit earlier to avoid
1484 doing some useless computations.
1486 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1488 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1490 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
1492 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1495 2003-06-26 Michael Chastain <mec@shout.net>
1497 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1498 gdb/testsuite/gdb.c++/pr-1210.exp.
1500 2003-06-26 Andrew Cagney <cagney@redhat.com>
1502 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1503 altivec_expression.h and altivec_registers.h.
1505 2003-06-26 Andrew Cagney <cagney@redhat.com>
1507 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1508 info->mach when MIPS16. Patch suggested by Fred Fish.
1510 2003-06-26 Andrew Cagney <cagney@redhat.com>
1512 * utils.c (internal_vproblem): Print the problem to a reason
1513 buffer and then pass to query. Make the msg variable more local.
1515 2003-06-26 Andrew Cagney <cagney@redhat.com>
1517 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1518 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1519 * gdbarch.h, gdbarch.c: Re-generate.
1520 * frame-base.c (default_frame_args_address): Update. Use
1521 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1523 (default_frame_locals_address): Ditto for
1524 DEPRECATED_FRAME_LOCALS_ADDRESS.
1525 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1526 (vax_frame_num_args): Update.
1527 (vax_gdbarch_init): Update.
1528 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1529 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1530 * mcore-tdep.c (mcore_gdbarch_init): Update.
1531 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1532 * ia64-tdep.c (ia64_gdbarch_init): Update.
1533 * symtab.h (address_class): Update comments.
1534 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1535 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1536 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1537 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1538 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1539 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1540 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1541 * alpha-mdebug-tdep.c: Update.
1542 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1544 2003-06-26 Andreas Jaeger <aj@suse.de>
1546 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1547 of SSE registers so that varargs functions work. Rework handling
1548 of passing arguments on the stack.
1549 (x86_64_store_return_value): Return double and float values in SSE
1552 2003-06-24 Michael Chastain <mec@shout.net>
1554 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1555 the "constructor breakpoints ignored" bug.
1557 2003-06-25 David Carlton <carlton@kealia.com>
1559 * MAINTAINERS: Update e-mail address.
1561 2003-06-24 Jim Blandy <jimb@redhat.com>
1563 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1565 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1567 (ppc_linux_init_abi): Register it as the
1568 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1570 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1571 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1574 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1575 (ppc64_standard_linkage_target): Use it.
1577 2003-06-23 Andrew Cagney <cagney@redhat.com>
1579 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1580 for 0 "int0" and 4 "int32" sized registers.
1581 * gdbtypes.c (builtin_type_int0): Define.
1582 (build_gdbtypes): Initialize builtin_type_int0.
1583 * gdbtypes.h (builtin_type_int0): Declare.
1585 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1587 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1588 as characters are unsigned.
1590 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1593 * dwarfread.c (struct_type): Skip static fields without crashing.
1595 2003-06-22 Andrew Cagney <cagney@redhat.com>
1597 GDB 6.0 branch created.
1599 * PROBLEMS: Update. Empty.
1602 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1604 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1605 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1607 2003-06-22 Andrew Cagney <cagney@redhat.com>
1609 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1610 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1613 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1615 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1618 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1620 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1621 argument of val_print.
1622 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1623 to the address argument of baseclass_offset or target_read_memory.
1624 Do add it to the argument of cp_print_value_fields.
1626 2003-06-21 Andrew Cagney <cagney@redhat.com>
1628 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1629 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1630 instead of 0..NUM_REGS.
1631 (mips_register_reggroup_p): New function.
1632 (mips_pseudo_register_write): New function.
1633 (mips_pseudo_register_read): New function.
1634 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1635 based on the register's type.
1636 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1638 (mips_get_saved_register): Simplify. Assert that REGNO is a
1640 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1641 (mips_register_type): Replace mips_register_virtual_type. Map
1642 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1644 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
1645 that the register is cooked / virtual.
1646 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1647 Only get the extra info when needed.
1648 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1649 (mips32_heuristic_proc_desc): Fetch the cooked register.
1650 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1651 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1652 (mips_print_register): Use gdbarch_register_type, instead of
1653 REGISTER_VIRTUAL_TYPE.
1654 (print_gp_register_row): Use gdbarch_register_type, instead of
1655 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
1656 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1657 Print the pseudo / cooked registers.
1658 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1659 Print the pseudo / cooked registers.
1660 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
1661 REG_NUM is pseudo / cooked.
1662 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1663 (mips_n32n64_xfer_return_value): Ditto.
1664 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1665 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1666 (mips_register_sim_regno): New function.
1667 (mips_gdbarch_init): Set deprecated_register_byte,
1668 register_group_p, pseudo_register_write, pseudo_register_read,
1669 register_sim_regno, and num_pseudo_regs. Set register_type,
1670 instead of register_virtual_type.
1671 * Makefile.in (mips-tdep.o): Update dependencies.
1672 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1673 REGISTER_VIRTUAL_TYPE.
1674 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1675 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1676 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1677 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1678 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1680 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1682 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1683 * cli/cli-cmds.c: Include "gdb_vfork.h".
1684 (shell_escape): Use vfork.
1686 2003-06-21 Andrew Cagney <cagney@redhat.com>
1688 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1689 32 bit floating-point register saves.
1691 * frame.h (deprecated_unwind_get_saved_register): Delete.
1692 * frame.c (deprecated_unwind_get_saved_register): Delete function.
1693 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1694 and deprecated_get_next_frame_hack instead of
1695 deprecated_unwind_get_saved_register.
1697 * mips-tdep.c (mips_dump_tdep): Do not print
1698 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1700 * frame.c (get_frame_register): New function.
1701 (frame_unwind_register_signed): New function.
1702 (get_frame_register_signed): New function.
1703 (frame_unwind_register_unsigned): New function.
1704 (get_frame_register_unsigned): New function.
1705 * frame.h: Add comments on naming schema.
1706 (get_frame_register, frame_unwind_register_signed): Declare.
1707 (get_frame_register_signed, get_frame_register_signed): Declare.
1708 (frame_unwind_register_unsigned): Declare.
1709 (get_frame_register_unsigned): Declare.
1711 2003-06-20 Theodore A. Roth <troth@openavr.org>
1713 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
1715 2003-06-20 Theodore A. Roth <troth@openavr.org>
1717 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
1718 (avr_read_sp): Ditto.
1720 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
1722 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
1723 * config/arm/nm-linux.h: Likewise.
1724 * config/arm/tm-linux.h: Likewise.
1725 * config/ia64/nm-linux.h: Likewise.
1726 * config/ia64/tm-ia64.h: Likewise.
1727 * config/s390/tm-linux.h: Likewise.
1728 * config/s390/tm-s390.h: Likewise.
1729 * s390-nat.c: Likewise.
1730 * s390-tdep.c: Likewise.
1732 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
1733 * config/ia64/linux.mt: Likewise.
1734 * config/m68k/linux.mh: Likewise.
1735 * config/mips/linux.mt: Likewise.
1736 * config/powerpc/linux.mh: Likewise.
1737 * config/sh/linux.mt: Likewise.
1739 2003-06-19 Kris Warkentin <kewarken@qnx.com>
1741 * solib.c (solib_open): Change tests for whether to search
1742 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
1745 2003-06-19 Theodore A. Roth <troth@openavr.org>
1747 * avr-tdep.c (avr_frame_address): Delete function.
1748 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
1749 set_gdbarch_frame_args_address.
1751 2003-06-19 Andrew Cagney <cagney@redhat.com>
1753 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
1754 (REGISTER_CONVERT_FROM_TYPE): Delete.
1755 (mips_register_convert_to_type): Delete declaration.
1756 (mips_register_convert_from_type): Delete declaration.
1757 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
1760 2003-06-19 Michael Snyder <msnyder@redhat.com>
1762 * linux-nat.h: New file.
1763 * linux-nat.c: Include linux-nat.h.
1764 * lin-lwp.c: Include linux-nat.h.
1765 Move struct lwp_info def to linux-nat.h.
1766 * linux-proc.c: Include linux-nat.h.
1767 (linux_make_note_section): Iterate over lwps instead of threads.
1768 (linux_do_thread_registers): Use lwp instead of merged pid.
1769 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
1770 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
1771 Add dependency on linux_nat_h.
1773 2003-06-19 Theodore A. Roth <troth@openavr.org>
1775 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
1777 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1779 * varobj.c (get_type, get_target_type): Use check_typedef.
1781 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1783 * breakpoint.c (insert_catchpoint): Call internal_error.
1785 2003-06-19 Theodore A. Roth <troth@openavr.org>
1787 * avr-tdep.c (avr_push_dummy_code): Delete function.
1788 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
1790 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1792 * arch-utils.c (default_prepare_to_proceed): Remove.
1793 (generic_prepare_to_proceed): Remove.
1794 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
1795 (generic_prepare_to_proceed): Remove prototype.
1796 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
1797 * gdbarch.c: Regenerate.
1798 * gdbarch.h: Regenerate.
1799 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
1800 * hppah-nat.c (hppa_switched_threads): Remove.
1801 * infrun.c (prepare_to_proceed): New static function, copied from
1802 generic_prepare_to_proceed. Remove select_it argument.
1803 (proceed): Call prepare_to_proceed.
1804 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
1806 (ptrace_wait): Don't set the removed variables.
1807 (hppa_switched_threads): Remove.
1808 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
1809 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
1810 (lin_lwp_prepare_to_proceed): Remove prototype.
1811 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
1812 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
1814 2003-06-18 Theodore A. Roth <troth@openavr.org>
1816 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
1818 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
1819 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
1820 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
1821 (AVR_PROLOGUE_*): Enumerate prologue types.
1822 (struct frame_extra_info): Remove.
1823 (struct avr_unwind_cache): Define.
1824 (avr_write_sp): Delete function.
1825 (avr_read_fp): Ditto.
1826 (avr_init_extra_frame_info): Ditto.
1827 (avr_pop_frame): Ditto.
1828 (avr_frame_saved_pc): Ditto.
1829 (avr_saved_pc_after_call): Ditto.
1830 (avr_push_return_address): Ditto.
1831 (avr_frame_chain): Ditto.
1832 (avr_store_struct_return): Ditto.
1833 (avr_push_arguments): Ditto.
1834 (avr_scan_prologue): Update comments. Changed to set up the info for
1835 cache unwinding. Now returns end of prologue PC.
1836 (avr_skip_prologue): Better handling of functions lacking a prologue
1837 by using avr_scan_prologue.
1838 (avr_scan_arg_moves): New function.
1839 (avr_saved_regs_unwinder): Ditto.
1840 (avr_frame_unwind_cache): Ditto.
1841 (avr_unwind_pc): Ditto.
1842 (avr_frame_this_id): Ditto.
1843 (avr_frame_prev_register): Ditto.
1844 (avr_frame_p): Ditto.
1845 (avr_frame_base_address ): Ditto.
1846 (avr_unwind_dummy_id): Ditto.
1847 (avr_push_dummy_code): Ditto.
1848 (push_stack_item): Ditto.
1849 (pop_stack_item): Ditto.
1850 (avr_push_dummy_call): Ditto.
1851 (struct stack_item): Define.
1852 (avr_frame_unwind): Declare structure.
1853 (avr_frame_base): Ditto.
1854 (avr_gdbarch_init): Remove calls to
1855 set_gdbarch_deprecated_init_frame_pc,
1856 set_gdbarch_deprecated_target_read_fp,
1857 set_gdbarch_deprecated_dummy_write_sp,
1858 set_gdbarch_deprecated_fp_regnum,
1859 set_gdbarch_deprecated_push_arguments,
1860 set_gdbarch_deprecated_push_return_address,
1861 set_gdbarch_deprecated_pop_frame,
1862 set_gdbarch_deprecated_store_struct_return,
1863 set_gdbarch_deprecated_frame_init_saved_regs,
1864 set_gdbarch_deprecated_init_extra_frame_info,
1865 set_gdbarch_deprecated_frame_chain,
1866 set_gdbarch_deprecated_frame_saved_pc,
1867 set_gdbarch_deprecated_saved_pc_after_call.
1868 Add calls to set_gdbarch_push_dummy_call,
1869 set_gdbarch_push_dummy_code,
1870 frame_unwind_append_predicate,
1871 frame_base_set_default,
1872 set_gdbarch_unwind_dummy_id,
1873 set_gdbarch_unwind_pc.
1876 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
1878 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
1879 registers for H8/300S.
1880 (h8300_print_registers_info): Ditto.
1881 (h8300_gdbarch_init): Accommodate register count for H8/300S.
1883 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
1885 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
1886 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1887 (lin_lwp_wait): Likewise. Update comments.
1888 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
1889 (pull_pid_from_list, linux_record_stopped_pid): New.
1891 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
1893 * ada-lang.c (scan_discrim_bound): Name first argument.
1894 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
1895 declared by ALL_BLOCK_SYMBOLS.
1897 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
1899 * ada-tasks.c (find_function_in_inferior): Don't declare it.
1900 ("regcache.h"): Include it.
1901 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
1903 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1905 * NEWS: Mention gdbserver detach change and "disconnect" command.
1906 * infcmd.c (disconnect_command): New function.
1907 (_initialize_infcmd): Add ``disconnect'' command.
1908 * remote.c (remote_async_detach): Delete.
1909 (remote_detach): Merge remote_async_detach.
1910 (remote_disconnect): New.
1911 (init_remote_ops): Set to_disconnect.
1912 (init_remote_cisco_ops): Likewise.
1913 (init_remote_async_ops): Likewise. Use remote_detach.
1914 * target.c (cleanup_target): Default to_disconnect.
1915 (update_current_target): Inherit to_disconnect.
1916 (target_disconnect, debug_to_disconnect): New functions.
1917 (setup_target_debug): Set to_disconnect.
1918 * target.h (struct target_ops): Add to_disconnect.
1919 (target_disconnect): Add prototype.
1921 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1923 * breakpoint.c (insert_catchpoint): New function.
1924 (insert_breakpoints): Use catch_exceptions to call
1925 insert_catchpoint. Disable catchpoints if they fail to insert.
1927 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1929 * symfile.c (reread_symbols): Clear sym_private.
1931 2003-06-17 Andrew Cagney <cagney@redhat.com>
1933 * trad-frame.h (struct frame_info): Add opaque declaration.
1934 * remote-fileio.h (struct cmd_list_element): Add opaque
1936 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
1939 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1941 * remote.c (remote_prepare_to_store): Replace call to
1942 deprecated_read_register_bytes with multiple regcache_raw_read
1945 2003-06-17 Kris Warkentin <kewarken@qnx.com>
1947 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
1948 (nto_find_and_open_solib): Likewise.
1949 (nto_init_solib_absolute_prefix): Likewise.
1950 (_initialize_nto_tdep): Fix indentation.
1952 2003-06-17 Kris Warkentin <kewarken@qnx.com>
1954 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
1956 2003-06-17 Kris Warkentin <kewarken@qnx.com>
1958 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
1960 2003-06-17 Jim Blandy <jimb@redhat.com>
1962 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
1964 2003-06-16 Theodore A. Roth <troth@openavr.org>
1966 * avr-tdep.c (avr_extract_return_value): New function.
1967 (avr_gdbarch_init): Set extract_return_value method.
1969 2003-06-16 Andrew Cagney <cagney@redhat.com>
1971 * frame.h (deprecated_get_next_frame_hack): Declare.
1972 * frame.c (legacy_saved_regs_prev_register): Only require
1973 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
1974 there are always saved regs.
1975 (deprecated_generic_get_saved_register): Do not require
1976 DEPRECATED_FRAME_INIT_SAVED_REGS.
1977 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
1978 use frame ID unwind instead.
1979 (deprecated_get_next_frame_hack): New function.
1981 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
1983 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
1984 (h8300_push_dummy_call): ...this function. Some minor optimization.
1985 (h8300_push_return_address): Remove.
1986 (h8300_gdbarch_init): Remove calls to
1987 set_gdbarch_deprecated_dummy_write_sp,
1988 set_gdbarch_deprecated_push_arguments and
1989 set_gdbarch_deprecated_push_return_address.
1990 Add call to set_gdbarch_push_dummy_call.
1992 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
1994 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
1995 (E_PSEUDO_EXR_REGNUM): Ditto.
1996 (h8300_is_argument_spill): Check for instructions moving argument
1997 registers into safe registers.
1998 (h8300_skip_prologue): Check for stm instruction to push registers
1999 used for register variables onto stack.
2000 (gdb_print_insn_h8300): Remove.
2001 (h8300_examine_prologue): Add a comment.
2002 (h8300_register_name): Take pseudo registers into account.
2003 (h8300s_register_name): Ditto.
2004 (h8300sx_register_name): Ditto.
2005 (h8300_print_register): Ditto.
2006 (h8300_print_registers_info): Define "nice" printing order.
2007 (h8300_saved_pc_after_call): Take pseudo registers into account.
2008 (h8300_register_type): Ditto. Return type used for remote connection
2009 when requesting real CCR or EXR register, return actual type when
2010 requesting pseudo CCR or EXR.
2011 (h8300_pseudo_register_read): New function.
2012 (h8300_pseudo_register_write): Ditto.
2013 (h8300_dbg_reg_to_regnum): Ditto.
2014 (h8300s_dbg_reg_to_regnum): Ditto.
2015 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2016 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2017 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2018 set_gdbarch_print_insn architecture dependent.
2019 Call set_gdbarch_pseudo_register_read and
2020 set_gdbarch_pseudo_register_write.
2021 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2023 2003-06-16 Andrew Cagney <cagney@redhat.com>
2025 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2026 * gdbarch.h, gdbarch.c: Re-generate.
2027 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2028 * s390-tdep.c (s390_gdbarch_init): Update.
2029 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2030 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2031 * mips-tdep.c (mips_gdbarch_init): Update.
2032 * mcore-tdep.c (mcore_gdbarch_init): Update.
2033 * cris-tdep.c (cris_gdbarch_init): Update.
2034 * infcall.c (call_function_by_hand): Update.
2035 * ia64-tdep.c (ia64_push_arguments): Update comment.
2036 * frame.c (legacy_get_prev_frame): Do not assume
2037 SAVE_DUMMY_FRAME_TOS_P.
2038 * dummy-frame.c (find_dummy_frame): Update comment.
2040 2003-06-16 Andrew Cagney <cagney@redhat.com>
2042 * regcache.c (do_cooked_read): Do not use register_valid_p.
2044 2003-06-15 Theodore A. Roth <troth@openavr.org>
2046 * avr-tdep.c (avr_register_type): Remove a blank line.
2047 (avr_scan_prologue): Correct some comments.
2049 2003-06-15 Theodore A. Roth <troth@openavr.org>
2051 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2053 Properly scan prologues generated by gcc with the -mcall-prologues
2055 Add code to scan -mcall-prologues for mega devices.
2057 2003-06-15 Theodore A. Roth <troth@openavr.org>
2059 * avr-tdep.c (avr_register_byte): Delete function.
2060 (avr_register_raw_size): Delete function.
2061 (avr_register_virtual_size): Delete function.
2062 (avr_register_virtual_type): Delete function.
2063 (avr_register_type): New function.
2064 (avr_address_to_pointer): Remove unused code.
2065 (avr_read_fp): Need to read FP as two separate bytes due to change to
2066 avr_register_type() usage.
2067 (avr_gdbarch_init): Don't set deprecated_register_size.
2068 Don't set deprecated_register_bytes.
2069 Don't set deprecated_register_byte.
2070 Don't set deprecated_register_raw_size.
2071 Don't set deprecated_max_register_raw_size.
2072 Don't set deprecated_register_virtual_size.
2073 Don't set deprecated_max_register_virtual_size.
2074 Don't set deprecated_register_virtual_type.
2075 Set register_type method.
2077 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2079 * Makefile.in (linux-nat.o): Add rule.
2080 * linux-nat.c: New file.
2081 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2082 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2083 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2084 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2085 * config/arm/linux.mh (NATDEPFILES): Likewise.
2086 * config/i386/linux.mh (NATDEPFILES): Likewise.
2087 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2088 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2089 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2090 * config/mips/linux.mh (NATDEPFILES): Likewise.
2091 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2092 * config/s390/s390.mh (NATDEPFILES): Likewise.
2093 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2095 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2097 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2098 replace out-of-date comment.
2100 2003-06-15 Andrew Cagney <cagney@redhat.com>
2102 * rdi-share/host.h (Fail): Change to a varargs function.
2103 * remote-rdi.c (Fail): Update.
2105 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2107 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2108 (i386_convert_register_p, i386_register_to_value,
2109 i386_register_from_value): Handle types longer than 8 bytes.
2111 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2113 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2114 Move floating-point code to new function in i387-tdep.c.
2115 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2116 New functions containing code moved here from i386-tdep.c.
2117 * i387-tdep.h: Add opaque declaration for `struct type'.
2118 (i387_register_to_value, i387_value_to_register): New prototypes.
2119 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2120 (x86_64_init_abi): Set convert_register_p, register_to_value and
2121 value_to_register here.
2123 2003-06-14 Andrew Cagney <cagney@redhat.com>
2125 * mips-tdep.c (mips_register_to_value): Make static.
2126 (mips_value_to_register): Make static.
2127 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2128 * ia64-tdep.c (ia64_register_raw_size): Make static.
2129 (ia64_register_virtual_size): Make static.
2130 (ia64_register_byte): Make static.
2131 * i387-tdep.c: Include "i387-tdep.h".
2132 (print_387_control_word): Delete function.
2133 (print_387_status_word): Delete function.
2134 (print_387_status_bits): Delete function.
2135 (print_387_control_bits): Delete function.
2136 * Makefile.in (i387-tdep.o): Update dependencies.
2137 * rdi-share/host.h (Fail): Declare.
2138 * remote-rdi.c (Fail): Update to match declaration.
2140 2003-06-14 Andrew Cagney <cagney@redhat.com>
2142 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2143 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2144 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2145 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2146 * README: Delete reference to remote-array.
2147 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2148 (remote-array.o): Delete target.
2149 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2150 * remote-array.c: Delete file.
2152 2003-06-14 Andrew Cagney <cagney@redhat.com>
2153 Mark Kettenis <kettenis@gnu.org>
2155 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2156 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2157 parameter with "frame".
2158 * gdbarch.h, gdbarch.c: Re-generate.
2159 * frame.h (put_frame_register): Declare.
2160 * frame.c (put_frame_register): New function.
2161 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2162 (legacy_register_to_value): Rewrite, use "frame" to get the
2164 (legacy_value_to_register): Rewrite, use "frame" to find the
2165 register's location before storing.
2166 * arch-utils.h (legacy_convert_register_p): Update.
2167 (legacy_register_to_value, legacy_value_to_register): Update.
2168 * findvar.c (value_from_register): Rewrite, eliminate use of
2169 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2170 "frame" to REGISTER_TO_VALUE.
2171 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2172 lval_reg_frame_relative + lval_register branch of the switch. Do
2173 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2174 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2175 I386_EDI_REGNUM): New defines.
2176 (i386_next_regnum, i386_convert_register_p,
2177 i386_register_to_value, i386_value_to_register): New functions.
2178 (i386_register_convertible, i386_register_convert_to_virtual,
2179 i386_convert_to_raw): Remove functions.
2180 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2181 value_to_register instead of register_convertible,
2182 register_convert_to_virtual and register_convert_to_raw.
2183 * mips-tdep.c (mips_convert_register_p): New function.
2184 (mips_value_to_register): Replace mips_register_convert_from_type.
2185 (mips_register_to_value): Replace mips_register_convert_to_type.
2186 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2188 * alpha-tdep.c (alpha_convert_register_p): Update.
2189 (alpha_value_to_register): Update, store the register.
2190 (alpha_register_to_value): Update, fetch the register.
2192 2003-06-14 Theodore A. Roth <troth@openavr.org>
2194 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2195 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2196 Don't set deprecated_call_dummy_words.
2197 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2198 Don't set remote_translate_xfer_address.
2199 (avr_io_reg_read_command): Remove commented out debug printf.
2202 2003-06-14 Theodore A. Roth <troth@openavr.org>
2204 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2205 causes gdb to seg fault.
2207 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2209 * sparc-nat.c (fetch_inferior_registers): Correct
2210 a reference to "registers".
2212 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2214 * Makefile.in (exc_request_U_h): Define
2215 (exc_request_S_h): Likewise.
2216 (msg_reply_S_h): Likewise.
2217 (msg_U_h): Likewise.
2218 (notify_S_h): Likewise.
2219 (process_reply_S_h): Likewise.
2220 (gnu-nat.o): Depend on gdb_obstack_h
2221 * gnu-nat.c: Include "gdb_obstack.h".
2223 2003-06-13 Andrew Cagney <cagney@redhat.com>
2225 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2226 * gdbarch.h, gdbarch.c: Re-generate.
2228 2003-06-13 Andrew Cagney <cagney@redhat.com>
2230 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2231 when deprecated REGISTER macros can be deleted.
2232 * gdbarch.h, gdbarch.c: Re-generate.
2234 2003-06-13 Jim Blandy <jimb@redhat.com>
2236 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2237 Linux entry point symbols for _dl_debug_state, too.
2239 2003-06-13 Andrew Cagney <cagney@redhat.com>
2241 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2242 available, do not use the FP register, and always save the TOS.
2243 * dummy-frame.c (dummy_frame_this_id): Do not assert
2244 SAVE_DUMMY_FRAME_TOS.
2245 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2246 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2247 (i386_push_dummy_call): Add 8 to the returned SP.
2248 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2249 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2250 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2251 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2252 (x86_64_push_dummy_call): Return "sp + 16".
2253 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2254 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2255 save_dummy_frame_tos.
2257 2003-06-13 Jim Blandy <jimb@redhat.com>
2259 * frv-tdep.c (frv_use_struct_convention): Delete static
2260 declaration for function deleted in my change of 2003-06-12.
2262 2003-06-13 Theodore A. Roth <troth@openavr.org>
2264 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2265 (avr_pointer_to_address): Shift code addrs left 1 bit.
2266 (avr_convert_from_func_ptr_addr): Delete function since operation is
2267 better handled by avr_address_to_pointer and avr_pointer_to_address.
2268 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2270 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2272 From Kelley Cook <kelleycook@wideopenwest.com>:
2273 * configure.host: Accept i[34567]86 variants.
2274 * configure.tgt: Likewise.
2275 * nlm/configure.in: Likewise.
2276 * nlm/configure: Regenerated.
2278 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2280 * arm-tdep.c (solib-svr4.h): Dont' include it.
2281 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2282 * arm-linux-tdep.c: ... here. Make static.
2283 (arm_linux_init_abi): Register it.
2284 (solib-svr4.h): Include it.
2285 * Makefile.in: Update dependencies.
2286 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2287 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2289 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2291 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2292 indicate registers used for return values.
2293 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2294 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2296 (h8300_init_extra_frame_info): Ditto.
2297 (h8300_frame_locals_address): Removed.
2298 (h8300_frame_args_address): Removed.
2299 (h8300_extract_return_value): Use new regcache structure. Only care
2301 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2302 (h8300_store_return_value): Use new regcache structure. Only care
2304 (h8300h_store_return_value): Same function for 32 bit CPUs.
2305 (h8300_store_struct_return): Removed.
2306 (h8300_extract_struct_value_address): Use new regcache structure.
2307 (h8300h_extract_struct_value_address): Removed.
2308 (h8300_push_dummy_code): New function.
2309 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2310 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2311 set_gdbarch_store_return_value architecture dependent.
2312 Call set_gdbarch_push_dummy_code and
2313 set_gdbarch_extract_struct_value_address.
2314 Remove calls to set_gdbarch_frame_args_address,
2315 set_gdbarch_frame_locals_address,
2316 set_gdbarch_deprecated_store_struct_return,
2317 set_gdbarch_deprecated_extract_return_value,
2318 set_gdbarch_deprecated_extract_struct_value_address,
2319 set_gdbarch_deprecated_call_dummy_words and
2320 set_gdbarch_deprecated_sizeof_call_dummy_words.
2322 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2324 * h8300-tdep.c (h8300_register_byte): Remove.
2325 (h8300h_register_byte): Remove.
2326 (h8300_register_virtual_type): Remove. Substitute by...
2327 (h8300_register_type): New function.
2328 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2329 (h8300h_extract_struct_value_address): Ditto.
2330 (h8300_gdbarch_init): Drop calls to
2331 set_gdbarch_deprecated_register_byte and
2332 set_gdbarch_deprecated_register_virtual_type.
2333 Add call to set_gdbarch_register_type.
2335 2003-06-13 Andrew Cagney <cagney@redhat.com>
2337 * gdbarch.sh: Update comments on registers.
2338 (deprecated_register_byte): Rename register_byte.
2339 (deprecated_register_raw_size): Rename register_raw_size.
2340 (deprecated_register_virtual_size): Rename register_virtual_size.
2341 (deprecated_register_virtual_type): Rename register_virtual_type.
2342 * gdbarch.h, gdbarch.c: Re-generate.
2343 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2344 * vax-tdep.c (vax_gdbarch_init): Update.
2345 * v850-tdep.c (v850_gdbarch_init): Update.
2346 * sparc-tdep.c (sparc_gdbarch_init): Update.
2347 * sh-tdep.c (sh_gdbarch_init): Update.
2348 * s390-tdep.c (s390_gdbarch_init): Update.
2349 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2350 * ns32k-tdep.c: Update.
2351 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2352 * mips-tdep.c (mips_gdbarch_init): Update.
2353 * mcore-tdep.c (mcore_gdbarch_init): Update.
2354 * m68k-tdep.c (m68k_gdbarch_init): Update.
2355 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2356 * ia64-tdep.c (ia64_gdbarch_init): Update.
2357 * hppa-tdep.c (hppa_gdbarch_init): Update.
2358 * h8300-tdep.c (h8300_gdbarch_init): Update.
2359 * frv-tdep.c (frv_gdbarch_init): Update.
2360 * cris-tdep.c (cris_gdbarch_init): Update.
2361 * avr-tdep.c (avr_gdbarch_init): Update.
2362 * alpha-tdep.c (alpha_gdbarch_init): Update.
2363 * arm-tdep.c (arm_gdbarch_init): Update.
2365 2003-06-13 Andrew Cagney <cagney@redhat.com>
2367 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2368 mips_o32_use_struct_convention with always_use_struct_convention.
2370 2003-06-12 David Carlton <carlton@kealia.com>
2372 * cp-namespace.c (cp_set_block_scope): Comment out
2373 processing_has_namespace_info branch.
2375 2003-06-12 Jim Blandy <jimb@redhat.com>
2377 Recognize and skip 64-bit PowerPC Linux linkage functions.
2378 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2379 insn_pattern, insns_match_pattern, d_field, ds_field): New
2380 functions, macros, and types for working with PPC instructions.
2381 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2382 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2383 ppc64_skip_trampoline_code): New functions, variables, and macros
2384 for recognizing and skipping linkage functions.
2385 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2386 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2388 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2389 register offsets for both the 32- and 64-bit interfaces.
2391 Actually finish the job started by my change of 2003-05-29.
2392 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2393 other #definition of this.
2394 (ppc_linux_skip_trampoline_code): Remove declaration.
2395 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2397 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2400 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2401 'long' on ppc64-*-linux*.
2403 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2404 isn't #defined, assume the register doesn't exist: act as if
2405 tdep->ppc_mq_regnum were -1.
2407 * configure.host, configure.tgt: Add entries for
2408 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2410 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2413 * arch-utils.c (always_use_struct_convention): New function.
2414 * arch-utils.h (always_use_struct_convention): New prototype.
2415 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2416 (alpha_gdbarch_init): Register always_use_struct_convention,
2417 instead of alpha_use_struct_convention.
2418 * cris-tdep.c (cris_use_struct_convention): Delete.
2419 (cris_gdbarch_init): Register always_use_struct_convention,
2420 instead of cris_use_struct_convention.
2421 * frv-tdep.c (frv_use_struct_convention): Delete.
2422 (frv_gdbarch_init): Register always_use_struct_convention,
2423 instead of frv_use_struct_convention.
2424 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2425 (h8300_gdbarch_init): Register always_use_struct_convention,
2426 instead of h8300_use_struct_convention.
2427 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2428 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2429 instead of mips_o32_use_struct_convention.
2431 2003-06-12 Andrew Cagney <cagney@redhat.com>
2433 * wince.c: Include "mips-tdep.h".
2434 * mips-tdep.h (mips_next_pc): Declare.
2435 * mcore-tdep.c: Make more local functions static.
2436 * Makefile.in (wince.o): Update dependencies.
2438 2003-06-12 David Carlton <carlton@kealia.com>
2440 * symtab.c (lookup_symbol_aux_minsyms): Replace
2441 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2442 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2443 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2444 SYMBOL_NATURAL_NAME.
2446 2003-06-12 Andreas Schwab <schwab@suse.de>
2448 * Makefile.in (tuiDisassem.o): Update dependencies.
2450 2003-06-12 David Carlton <carlton@bactrian.org>
2452 * symtab.h: Delete declaration of make_symbol_overload_list.
2453 Add declaration of lookup_partial_symbol.
2454 * symtab.c (remove_params): Move to cp-support.c.
2455 (overload_list_add_symbol, make_symbol_overload_list)
2456 (sym_return_val_size, sym_return_val_index): Ditto.
2457 (lookup_partial_symbol): Make extern.
2458 * cp-support.h: Add declaration of make_symbol_overload_list.
2459 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2460 symtab.h, and block.h.
2461 (remove_params): Move here from symtab.c.
2462 (overload_list_add_symbol, make_symbol_overload_list)
2463 (sym_return_val_size, sym_return_val_index): Ditto.
2464 * valops.c: Include cp-support.h.
2465 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2466 frame_h, and block_h.
2467 (valops.o): Depend on cp_support_h.
2469 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2471 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2472 substitute by NUM_REGS throughout.
2473 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2474 (h8300s_register_name): New function for H8S registers.
2475 (h8300sx_register_name): Ditto for H8SX registers.
2476 (h8300_print_register): Revise register printing, avoid depending
2478 (h8300_register_byte): Only care for H8/300 registers.
2479 (h8300h_register_byte): New function for any other architecture.
2480 (h8300_register_raw_size): Remove.
2481 (h8300_register_virtual_type): Revise to return actually useful
2483 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2484 (h8300h_extract_struct_value_address): New function for any other
2486 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2487 set_gdbarch_register_name, set_gdbarch_register_byte,
2488 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2489 Remove calls to set_gdbarch_deprecated_register_size,
2490 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2491 set_gdbarch_deprecated_max_register_raw_size,
2492 set_gdbarch_register_virtual_size and
2493 set_gdbarch_deprecated_max_register_virtual_size entirely.
2494 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2495 set_gdbarch_long_double_bit.
2497 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2499 * doublest.c (convert_doublest_to_floatformat): When dealing
2500 with the implied integer bit, only alter mant_bits if we are
2501 processing a full 32 bits of mantissa.
2503 2003-06-11 David Carlton <carlton@bactrian.org>
2505 * dictionary.h: New.
2506 * dictionary.c: New.
2507 * block.h: Add opaque declaration for struct dictionary.
2508 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2510 (BLOCK_DICT): New macro.
2511 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2512 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2514 (ALL_BLOCK_SYMBOLS): Update definition.
2515 * Makefile.in (SFILES): Add dictionary.c.
2516 (dictionary_h): New.
2517 (COMMON_OBS): Add dictionary.o.
2518 (dictionary.o): New.
2519 (ada-lang.o): Depend on dictionary_h.
2520 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2521 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2522 (mi-cmd-stack.o): Ditto.
2523 (gdbtk-cmds.o): Update dependencies.
2524 (gdbtk-stack.o): Ditto.
2525 * ada-lang.c: Include dictionary.h.
2526 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2527 (fill_in_ada_prototype, debug_print_block): Ditto.
2528 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2529 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2531 * mdebugread.c: Include dictionary.h.
2532 (struct parse_stack): Delete 'maxsyms' member.
2533 (parse_symbol): Update calls to new_block. Delete calls to
2534 shrink_block. Use dictionary methods.
2535 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2536 Update calls to new_symtab. Don't maintain maxsyms data.
2537 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2538 (add_symbol): Just call dict_add_symbol.
2539 (new_symtab): Delete 'maxsyms' argument.
2540 (new_symtab): Update calls to new_block.
2541 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2542 (shrink_block): Delete function.
2543 (fixup_sigtramp): Update call to new_block. Add symbol via
2545 * jv-lang.c: Include dictionary.h.
2546 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2547 appropriately. Set class_symtab->free_func. Make sure the
2548 blockvector is big enough to hold two blocks.
2549 (add_class_symtab_symbol): Use dictionary methods.
2550 (free_class_block): New function.
2551 (type_from_class): Replace explicit iteration by
2553 * symtab.h (struct symtab): Replace 'free_ptr' method by
2555 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2557 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2559 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2560 Include dictionary.h.
2561 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2562 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2564 * objfiles.c: Include dictionary.h.
2565 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2566 * buildsym.c: Include dictionary.h.
2567 (finish_block): Use dictionary methods.
2568 (end_symtab): Set free_func to NULL, not free_ptr.
2569 * tracepoint.c: Include dictionary.h.
2570 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2571 (scope_info): Ditto.
2572 * stack.c: Include dictionary.h.
2573 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2574 (print_block_frame_labels, print_frame_arg_vars)
2575 (print_frame_args): Ditto.
2576 * symmisc.c (free_symtab_block): Use dictionary methods.
2577 (dump_symtab): Ditto.
2578 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2579 Include dictionary.h.
2580 * symfile.h: Delete declarations of sort_block_syms,
2582 * symfile.c (sort_block_syms): Delete.
2583 (sort_symtab_syms): Delete.
2584 * symtab.c: Include dictionary.h.
2585 (lookup_block_symbol): Use dictionary iterators.
2586 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2587 (search_symbols, make_symbol_completion_list): Ditto.
2588 (make_symbol_overload_list): Ditto.
2589 * valops.c (value_of_local): Use dict_empty.
2590 Include dictionary.h.
2592 2003-06-11 J. Brobecker <brobecker@gnat.com>
2594 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2596 2003-06-11 David Carlton <carlton@bactrian.org>
2598 * block.h (BLOCK_SHOULD_SORT): Delete.
2599 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2601 * ada-lang.c (ada_add_block_symbols): Ditto.
2602 * symfile.c (sort_block_syms): Delete.
2603 (sort_symtab_syms): Ditto.
2604 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2606 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2607 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2608 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2609 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2610 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2611 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2612 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2614 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2616 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
2619 2003-06-11 Andrew Cagney <cagney@redhat.com>
2621 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2622 REGISTER_CONVERTIBLE.
2623 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2624 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2625 * gdbarch.h, gdbarch.c: Re-generate.
2626 * arch-utils.h (deprecated_register_convertible_not): Rename
2627 generic_register_convertible_not.
2628 * arch-utils.c (deprecated_register_convertible_not): Rename
2629 generic_register_convertible.
2630 (legacy_convert_register_p, legacy_register_to_value): Update.
2631 * sh-tdep.c (sh64_push_arguments): Update.
2632 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2633 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2634 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2635 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2636 * arch-utils.c (legacy_value_to_register): Update.
2637 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2638 (rs6000_register_convert_to_raw): Make parameter "from" const.
2639 * mips-tdep.c (mips_gdbarch_init): Update.
2640 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2641 * infcmd.c (default_print_registers_info): Update.
2642 * ia64-tdep.c (ia64_gdbarch_init): Update.
2643 (ia64_register_convert_to_raw): Make parameter "from" const.
2644 * i386-tdep.c (i386_gdbarch_init): Update.
2645 (i386_register_convert_to_raw): Update.
2647 2003-06-11 Andrew Cagney <cagney@redhat.com>
2649 * remote-fileio.c: Include "remote-fileio.h".
2650 * Makefile.in (remote-fileio.o): Update dependencies.
2651 (remote_fileio_h): Fix typo.
2653 2003-06-11 Andrew Cagney <cagney@redhat.com>
2655 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2656 (xstormy16_save_dummy_frame_tos): Make static.
2657 (_initialize_xstormy16_tdep): Add declaration.
2658 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2659 * v850-tdep.c: Make local functions static.
2660 (_initialize_v850_tdep): Add declaration.
2661 * sparc-tdep.c: Make local functions static.
2662 (_initialize_sparc_tdep): Add declaration.
2663 * sh-tdep.c: Make local functions static.
2664 (_initialize_sh_tdep): Add declaration.
2665 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2666 * s390-tdep.c: Make local functions static.
2667 (_initialize_s390_tdep): Add declaration.
2668 * dbxread.c (find_stab_function_addr): Make static.
2669 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2670 * ocd.c (_initialize_remote_ocd): Add declaration.
2671 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2672 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2673 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2674 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2675 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2676 * remote-array.c (_initialize_array): Add declaration.
2677 (_initialize_remote_monitors): Add declaration.
2678 * remote-mips.c: Make local functions static.
2679 (_initialize_remote_mips): Add declaration.
2680 * mcore-tdep.c: Make all local functions static.
2681 (_initialize_mcore_tdep): Add declaration.
2682 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2683 * abug-rom.c (_initialize_abug_rom): Add declaration.
2684 * rom68k-rom.c (_initialize_rom68k): Add declaration.
2685 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2686 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2687 * remote-est.c (_initialize_est): Add declaration.
2688 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2689 (m68hc11_call_dummy_address): Make static.
2690 * ia64-tdep.c: Make local functions static.
2691 (_initialize_ia64_tdep): Add declaration.
2692 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2693 * monitor.c (monitor_wait_filter): Make static.
2694 (_initialize_remote_monitors): Add declaration.
2695 * remote-hms.c (_initialize_remote_hms): Add declaration.
2696 * remote-e7000.c (fetch_regs_from_dump): Make static.
2697 (expect_n): Make static.
2698 (_initialize_remote_e7000): Add declaration.
2699 * ser-e7kpc.c: Always include "defs.h".
2700 (_initialize_ser_e7000pc): Add declaration.
2701 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2702 * cris-tdep.c: Make all but one function static.
2703 (_initialize_cris_tdep): Add declaration.
2704 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2705 * solib.c (update_solib_list): Make static.
2706 (_initialize_solib): Add declaration.
2707 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2708 (_initialize_avr_tdep): Add declaration.
2709 * remote-rdi.c (voiddummy): Make static.
2710 (_initialize_remote_rdi): Add declaration.
2711 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2712 * remote-rdp.c (send_rdp): Make static.
2713 (_initialize_remote_rdp): Add declaration.
2714 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2716 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
2718 * remote-fileio.c: Make ari happy.
2720 2003-06-10 J. Brobecker <brobecker@gnat.com>
2722 * rs6000-nat.c (child_xfer_memory): Compute the right address when
2723 fetching the trailing bytes of the buffer we are about to write.
2725 2003-06-10 Andrew Cagney <cagney@redhat.com>
2727 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
2728 * Makefile.in (remote-fileio.o): Update dependencies.
2729 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
2730 include <setjmp.h>, or <sys/types.h> conditional on USG.
2731 (remote_fio_jmp_buf): Delete global variable.
2733 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
2734 Martin M. Hunt <hunt@redhat.com>
2736 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
2737 (SFILES): Add remote-fileio.c.
2738 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
2739 dependencies for building remote.o.
2740 * remote-fileio.c: New file implementing the remote File-I/O protocol.
2741 * remote-fileio.h: New header file defining remote File-I/O interface.
2742 * remote.c (remote_write_bytes, remote_read_bytes): Remove
2743 static storage class.
2744 (remote_wait, remote_async_wait): Call remote_fileio_request() on
2746 (_initialize_remote): Call initialize_remote_fileio().
2747 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
2748 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2749 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2750 (captured_main): Initialize new ui_files.
2751 * ui-file.c: Add read and fgets input functions.
2752 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
2753 (null_file_read): New function.
2754 (ui_file_read): New function.
2755 (set_ui_file_read): New function.
2756 (stdio_file_read): New function.
2757 * ui-file.h: New type ui_file_read_ftype.
2758 (set_ui_file_read): Declare.
2759 (ui_file_read): Declare.
2761 2003-06-09 Andrew Cagney <cagney@redhat.com>
2763 * frame.h (deprecated_unwind_get_saved_register): Rename
2764 generic_unwind_get_saved_register, update comments.
2765 * mips-tdep.c (mips_get_saved_register): Update.
2766 * frame.c (deprecated_unwind_get_saved_register): Update.
2768 2003-06-09 Andrew Cagney <cagney@redhat.com>
2770 * vax-tdep.c (vax_frame_locals_address): Delete function.
2771 (vax_gdbarch_init): Do not set frame_locals_address.
2772 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
2773 (m68hc11_gdbarch_init): Do not set frame_locals_address.
2774 * s390-tdep.c (s390_frame_args_address): Delete function.
2775 (s390_gdbarch_init): Do not set frame_args_address or
2776 frame_locals_address.
2777 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
2778 (ns32k_gdbarch_init): Do not set frame_locals_address.
2779 * hppa-tdep.c (hppa_frame_args_address): Delete function.
2780 (hppa_frame_locals_address): Delete function.
2781 (hppa_gdbarch_init): Do not set frame_args_address, or
2782 frame_locals_address.
2783 * arm-tdep.c (arm_frame_args_address): Delete.
2784 (arm_frame_locals_address): Delete.
2785 (arm_gdbarch_init): Do not set frame_args_address, or
2786 frame_locals_address.
2788 2003-06-09 Andrew Cagney <cagney@redhat.com>
2790 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
2791 * gdbarch.h, gdbarch.c: Re-generate.
2792 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
2793 * arch-utils.c (frame_num_args_unknown): Delete function.
2794 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
2795 (frame_info): Use FRAME_NUM_ARGS_P.
2796 * arm-tdep.c (arm_frame_num_args): Delete function.
2797 (arm_gdbarch_init): Do not set frame_num_args.
2798 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
2799 * hppa-tdep.c (hppa_frame_num_args): Delete function.
2800 (hppa_gdbarch_init): Do not set frame_num_args.
2801 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
2802 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2803 frame_num_args to default frame_num_args_unknown.
2804 * v850-tdep.c (v850_gdbarch_init): Ditto.
2805 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2806 * sh-tdep.c (sh_gdbarch_init): Ditto.
2807 * s390-tdep.c (s390_gdbarch_init): Ditto.
2808 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2809 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2810 * mips-tdep.c (mips_gdbarch_init): Ditto.
2811 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2812 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2813 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2814 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2815 * i386-tdep.c (i386_gdbarch_init): Ditto.
2816 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2817 * frv-tdep.c (frv_gdbarch_init): Ditto.
2818 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2819 * cris-tdep.c (cris_gdbarch_init): Ditto.
2820 * avr-tdep.c (avr_gdbarch_init): Ditto.
2821 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2823 2003-06-09 Andrew Cagney <cagney@redhat.com>
2825 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
2826 (print_frame_args): Moved to "stack.c".
2827 * stack.c: Include "gdb_assert.h".
2828 (print_frame_nameless_args): Moved from "printcmd.c", made static.
2829 (print_frame_args): Moved from "printcmd.c".
2830 * frame.h (print_frame_args): Delete declaration.
2831 * Makefile.in (stack.o): Update dependencies.
2833 2003-06-08 Andrew Cagney <cagney@redhat.com>
2835 * frame.c (get_prev_frame): Remove reference to
2836 frame_args_address_correct in comments.
2837 * frame-base.c (default_frame_args_address): Delete code
2838 conditional on FRAME_ARGS_ADDRESS_CORRECT.
2839 * vax-tdep.c (vax_frame_args_address_correct): Delete.
2840 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
2841 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
2842 (vax_frame_args_address_correct): Delete declaration.
2844 2003-06-08 Andrew Cagney <cagney@redhat.com>
2846 * gdbarch.sh (UNWIND_SP): Add.
2847 * gdbarch.h, gdbarch.c: Re-generate.
2848 * frame.c (frame_sp_unwind): New function.
2849 (get_frame_sp): New function.
2850 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
2851 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
2852 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
2854 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
2855 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
2857 2003-06-08 Andrew Cagney <cagney@redhat.com>
2859 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
2862 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
2863 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
2864 * config/m68k/tm-sun3.h: Update.
2865 * config/m68k/tm-m68klynx.h: Update.
2866 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
2868 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
2869 trad_frame". Update comments.
2870 * d10v-tdep.c (struct d10v_unwind_cache): Update.
2871 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
2872 (trad_frame_register_value, trad_frame_prev_register): Update.
2874 2003-06-08 Andrew Cagney <cagney@redhat.com>
2876 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
2877 from GCC's acinclude.m4.
2878 * configure.in: Check for getopt's delcaration.
2879 * aclocal.m4, config.in, configure: Re-generate.
2880 * main.c (error_init): Delete declaration.
2881 * defs.h (error_init): Declare.
2882 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
2883 (rs6000_convert_from_func_ptr_addr): Make static.
2884 (_initialize_rs6000_tdep): Add declaration.
2885 * cli/cli-cmds.c (dont_repeat): Delete declaration.
2886 (show_commands, set_verbose, show_history): Delete declaration.
2887 * top.h (set_verbose): Add declaration.
2888 (show_history, set_history, show_commands): Add declaration.
2889 (do_restore_instream_cleanup): Add declaration.
2890 * objc-lang.c (specialcmp): Make static.
2891 (print_object_command): Make static.
2892 (find_objc_msgsend): Make static.
2893 (find_objc_msgcall_submethod_helper): Make static.
2894 (find_objc_msgcall_submethod): Make static.
2895 (_initialize_objc_language): Add declaration.
2896 (find_implementation_from_class): Make static.
2897 (find_implementation): Make static.
2898 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
2899 * objc-lang.h (lookup_struct_typedef): Add declaration.
2900 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
2901 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
2902 (do_restore_user_call_depth): Make static.
2903 (do_restore_instream_cleanup): Delete declaration.
2904 (dont_repeat): Delete declaration.
2905 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
2906 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
2907 * reggroups.c (_initialize_reggroup): Add declaration.
2908 * cp-support.c (_initialize_cp_support): Add declaration.
2909 * cp-abi.c (_initialize_cp_abi): Add declaration.
2910 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
2911 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
2912 (_initialize_gnu_v3_abi): Add declaration.
2913 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
2914 (_initialize_gnu_v2_abi): Add declaration.
2915 * frame-base.c (_initialize_frame_base): Add declaration.
2916 * doublest.c (floatformat_from_length): Make static.
2917 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
2918 * frame.c (create_sentinel_frame): Make static.
2919 (_initialize_frame): Add declaration.
2920 * top.c (do_catch_errors): Make static.
2921 (gdb_rl_operate_and_get_next_completion): Make static.
2922 * typeprint.c: Include "typeprint.h".
2923 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
2924 (sentinel_frame_this_id): Make static.
2925 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
2926 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
2927 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
2928 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
2929 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
2930 * maint.c (maintenance_print_architecture): Make static.
2931 * signals/signals.c (_initialize_signals): Add declaration.
2932 * std-regs.c (_initialize_frame_reg): Add declaration.
2933 * jv-exp.y (push_variable): ISO C definition.
2934 (push_qualified_expression_name): Ditto.
2935 * memattr.c (_initialize_mem): Add declaration.
2936 * remote.c (remote_check_watch_resources): Make static.
2937 (remote_stopped_by_watchpoint): Make static.
2938 (remote_stopped_data_address): Make static.
2939 * d10v-tdep.c (nr_dmap_regs): Make static.
2940 (a0_regnum): Make static.
2941 (d10v_frame_unwind_cache): Make static.
2942 (d10v_frame_p): Make static.
2943 * osabi.c (show_osabi): Make static.
2944 (_initialize_gdb_osabi): Add extern declaration.
2945 * gdbtypes.c (make_qualified_type): Make static.
2946 (safe_parse_type): Make static.
2947 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
2948 * macrotab.c (macro_bcache_free): Make static.
2949 * interps.c (interp_set_quiet): Make static.
2950 (interpreter_exec_cmd): Make static.
2951 * stack.h (select_frame_command): New file.
2952 * stack.c: Include "stack.h".
2953 (select_frame_command_wrapper): Delete function.
2954 (select_frame_command): Make global.
2955 * infcall.c: Include "infcall.h".
2956 * linespec.c: Include "linespec.h".
2957 * symfile.c (sections_overlap): Make static.
2958 * cp-support.h (cp_initialize_namespace): ISO C declaration.
2959 * charset.c (_initialize_charset): Add missing prototype.
2960 * regcache.c (init_legacy_regcache_descr): Make static.
2961 (do_regcache_xfree): Make static.
2962 (regcache_xfer_part): Make static.
2963 (_initialize_regcache): Add missing prototype.
2964 * breakpoint.c (parse_breakpoint_sals): Make static.
2965 (breakpoint_sals_to_pc): Make static.
2966 * interps.h (clear_interpreter_hooks): ISO C declaration.
2967 * Makefile.in (stack_h): Define.
2968 (stack.o, typeprint.o, mi-main.o): Update dependencies.
2969 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
2971 2003-06-08 Andrew Cagney <cagney@redhat.com>
2973 * Makefile.in (d10v-tdep.o): Update dependencies.
2974 (SFILES): Add trad-frame.c.
2975 (trad_frame_h): Define.
2976 (COMMON_OBS): Add trad-frame.o.
2977 (trad-frame.o): Specify dependencies.
2978 * d10v-tdep.c: Include "trad-frame.h".
2979 (saved_regs_unwinder): Delete function.
2980 (d10v_frame_prev_register): Use trad_frame_prev_register.
2981 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
2982 trad_frame", delete "regs" and "prev_sp".
2983 (prologue_find_regs): Use trad-frame.
2984 * trad-frame.h, trad-frame.c: New files.
2986 2003-06-08 Mark Kettenis <kettenis@gnu.org>
2988 * dwarf2cfi.c, dwarf2cfi.h: Remove.
2990 2003-06-07 Adam Fedor <fedor@gnu.org>
2992 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
2993 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
2994 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
2995 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
2996 resolve_msgsend_super, resolve_msgsend_super_stret):
2999 2003-06-07 Andrew Cagney <cagney@redhat.com>
3001 * symfile.h: Re-indent, clean up comments.
3003 2003-06-07 Andrew Cagney <cagney@redhat.com>
3005 * inferior.h (deprecated_write_sp): Replace
3006 generic_target_write_sp.
3007 * regcache.c (deprecated_write_sp): Replace
3008 generic_target_write_sp.
3009 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3010 * vax-tdep.c (vax_gdbarch_init): Update.
3011 * v850-tdep.c (v850_gdbarch_init): Update.
3012 * sparc-tdep.c (sparc_gdbarch_init): Update.
3013 * sh-tdep.c (sh_gdbarch_init): Update.
3014 * s390-tdep.c (s390_gdbarch_init): Update.
3015 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3016 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3017 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3018 * mcore-tdep.c (mcore_gdbarch_init): Update.
3019 * m68k-tdep.c (m68k_gdbarch_init): Update.
3020 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3021 * ia64-tdep.c (ia64_gdbarch_init): Update.
3022 * h8300-tdep.c (h8300_gdbarch_init): Update.
3023 * frv-tdep.c (frv_gdbarch_init): Update.
3024 * cris-tdep.c (cris_gdbarch_init): Update.
3025 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3027 2003-06-07 Andrew Cagney <cagney@redhat.com>
3029 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3030 Assert that PC_REGNUM is valid.
3031 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3033 2003-06-07 Andrew Cagney <cagney@redhat.com>
3035 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3036 * gdbarch.h, gdbarch.c: Regenerate.
3037 * mn10300-tdep.c: Include "gdb_assert.h".
3038 (mn10300_read_fp): New function.
3039 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3040 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3041 * ia64-tdep.c: Include "gdb_assert.h".
3042 (ia64_read_fp): New function.
3043 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3044 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3045 * regcache.c (generic_target_read_sp): Delete function.
3046 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3047 * inferior.h (generic_target_read_sp): Delete declaration.
3048 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3049 generic_target_read_sp.
3050 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3051 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3052 * sh-tdep.c (sh_gdbarch_init): Ditto.
3053 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3054 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3056 2003-06-07 Andrew Cagney <cagney@redhat.com>
3058 * gdbarch.sh: Comment each field of startup_gdbarch.
3059 * gdbarch.h, gdbarch.c: Re-generate.
3061 2003-06-07 Andrew Cagney <cagney@redhat.com>
3063 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3064 * gdbarch.h, gdbarch.c: Re-generate.
3065 * regcache.c: Update comments on read_pc et.al.
3066 (generic_target_read_pc): Delete function.
3067 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3068 * inferior.h (generic_target_read_pc): Delete declaration.
3069 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3070 generic_target_read_pc.
3071 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3072 * sh-tdep.c (sh_gdbarch_init): Ditto.
3073 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3074 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3076 2003-06-07 Andrew Cagney <cagney@redhat.com>
3078 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3079 "index" with "special_local_sect". Use strcmp instead of STREQ.
3080 Append period to coments.
3082 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3084 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3085 (elfstab_offset_sections): Likewise.
3086 * gdb-stabs.h (stab_section_info): Likewise.
3087 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3088 * objfiles.c (objfile_relocate): Likewise.
3089 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3090 * remote.c (get_offsets): Likewise.
3091 (remote_cisco_objfile_relocate): Likewise.
3092 * somread.c (som_symfile_offsets): Likewise.
3093 * symfile.c (alloc_section_addr_info): New function.
3094 (build_section_addr_info_from_section_tab): Use it.
3095 (free_section_addr_info): Adjust.
3096 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3097 (syms_from_objfile): Allocate local_addr dynamically.
3098 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3100 (add_symbol_file_command): Allocate sect_opts dynamically.
3101 (reread_symbols): Avoid use of SECT_OFF_MAX.
3102 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3103 (alloc_section_addr_info): Declare it.
3104 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3105 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3107 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3109 2003-06-06 Andrew Cagney <cagney@redhat.com>
3111 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3112 (d10v_frame_unwind_cache): Do not set "return_pc".
3114 2003-06-06 Michael Snyder <msnyder@redhat.com>
3116 * h8300-tdep.c: Make tidy (long lines).
3118 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3120 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3121 to regcache_collect().
3123 2003-06-05 J. Brobecker <brobecker@gnat.com>
3125 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3126 pc_in_sigtramp multiarch method.
3127 (hppa_hpux_som_init_abi): Use it.
3128 (hppa_hpux_elf_init_abi): Likewise.
3129 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3130 macro has been multiarched.
3131 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3132 macro here, as hppa64 isn't multiarched yet.
3134 2003-06-05 Andrew Cagney <cagney@redhat.com>
3136 * Makefile.in (value_h): Add $(frame_h).
3137 * value.h: Include "frame.h".
3138 (struct value): Replace "frame_addr" with "frame_id".
3139 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3140 * values.c (allocate_value): Use VALUE_FRAME_ID.
3141 (value_copy): Use VALUE_FRAME_ID.
3142 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3143 * valops.c (value_assign): Update. Use frame_find_by_id.
3145 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3147 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3150 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3152 * thread-db.c (check_event): For create/death event breakpoints,
3153 loop through all messages to ensure that we read the message
3154 corresponding to the breakpoint we are at.
3156 2003-06-04 Michael Snyder <msnyder@redhat.com>
3158 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3160 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3162 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3163 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3164 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3165 when handling .eh_frame sections.
3167 2003-06-04 J. Brobecker <brobecker@gnat.com>
3169 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3170 prepare_to_proceed procedure instead of the hppa-specific one.
3171 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3173 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3175 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3176 * config.in: Regenerated.
3177 * configure.in: Add test for syscall function and check for
3178 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3179 * configure: Regenerated.
3180 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3182 (kill_lwp): New function that uses tkill syscall or
3183 uses kill, depending on whether threading model is nptl or not.
3184 All callers of kill() changed to use kill_lwp().
3185 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3186 see if all threads have already exited in the nptl model.
3187 (stop_and_resume_callback): New callback function used by the
3188 lin_lwp_wait thread exit handling code.
3189 (stop_wait_callback): Check for threads already having exited and
3190 delete such threads fromt the lwp list when discovered.
3191 (stop_callback): Don't assert retcode of kill call.
3193 Roland McGrath <roland@redhat.com>
3194 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3197 2003-06-03 Richard Henderson <rth@redhat.com>
3199 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3200 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3201 (alpha_sigtramp_frame_prev_register): Likewise.
3202 (alpha_heuristic_frame_prev_register): Likewise.
3203 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3205 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3206 alpha-specific register id names.
3207 (alpha_mdebug_frame_unwind_cache): Likewise.
3208 (alpha_mdebug_frame_prev_register): Likewise.
3210 2003-06-03 Richard Henderson <rth@redhat.com>
3212 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3213 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3214 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3215 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3217 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3218 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3219 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3221 * alpha-linux-tdep.c: Remove unnecessary includes.
3222 * Makefile.in (alpha-linux-tdep.o): Update.
3224 2003-06-03 Richard Henderson <rth@redhat.com>
3226 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3227 (alphabsd_fill_fpreg): Likewise.
3229 2003-06-03 J. Brobecker <brobecker@gnat.com>
3231 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3232 references to struct frame_info fields by calls to the equivalent
3233 accessors. Necessary now that frame_info is opaque.
3235 2003-06-03 J. Brobecker <brobecker@gnat.com>
3237 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3238 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3239 structure, field no longer exists.
3241 2003-06-03 J. Brobecker <brobecker@gnat.com>
3243 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3244 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3246 2003-06-03 J. Brobecker <brobecker@gnat.com>
3248 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3249 references to struct frame_info fields by calls to the equivalent
3250 accessors. Necessary now that frame_info is opaque.
3252 2003-06-03 J. Brobecker <brobecker@gnat.com>
3254 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3255 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3256 structure, field no longer exists.
3258 2003-06-03 Theodore A. Roth <troth@openavr.org>
3260 * remote.c (init_remote_state): Compute sizeof_g_packet by
3261 accumulation of the size of all registers instead of blindly using
3262 DEPRECATED_REGISTER_BYTES.
3264 2003-06-03 Michael Snyder <msnyder@redhat.com>
3266 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3267 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3270 2003-06-03 J. Brobecker <brobecker@gnat.com>
3272 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3273 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3275 2003-06-03 Andrew Cagney <cagney@redhat.com>
3277 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3278 (sparc_convert_to_raw): Delete function.
3279 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3280 register_convert_to_virtual.
3282 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3284 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3285 layer if not dealing with a statically-linked threaded program.
3287 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3289 * solib.c (solib_open): Update comment to reflect actual search order.
3291 2003-06-03 Andrew Cagney <cagney@redhat.com>
3293 * frame.c (get_frame_memory_signed): New function.
3294 (get_frame_memory, get_frame_memory_unsigned): New function.
3295 (get_frame_arch): New function.
3296 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3297 (get_frame_memory, get_frame_unsigned_memory): Declare.
3298 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3299 get_frame_memory_unsigned and get_frame_arch.
3300 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3302 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3304 * MAINTAINERS (write after approval): Add myself.
3306 2003-06-03 Jim Blandy <jimb@redhat.com>
3308 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3309 elements of gregset_t are 64 bits each, but access registers
3310 are still 32 bits, so they're packed two per gregset_t
3311 element. Unpack/pack them properly.
3313 2003-06-02 David Carlton <carlton@bactrian.org>
3315 * linespec.c (find_methods): Break out code into
3316 add_matching_methods and add_constructors.
3317 (add_matching_methods): New.
3318 (add_constructors): Ditto.
3320 2003-06-02 Andrew Cagney <cagney@redhat.com>
3322 * sparc-tdep.c (sparc_print_registers): Delete call to
3323 REGISTER_CONVERTIBLE.
3324 (sparc_gdbarch_init): Do not set register_convertible.
3325 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3326 * frv-tdep.c (frv_gdbarch_init): Ditto.
3327 * cris-tdep.c (cris_gdbarch_init): Ditto.
3329 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3331 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3332 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3333 (syms_from_objfile): Ditto.
3335 2003-06-03 Andreas Schwab <schwab@suse.de>
3337 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3338 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3340 2003-06-02 Richard Henderson <rth@redhat.com>
3342 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3343 a member of all_reggroup.
3345 2003-06-02 Richard Henderson <rth@redhat.com>
3347 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3348 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3349 (alpha_lds, alpha_sts): New.
3350 (alpha_convert_register_p): Change from _register_convertible.
3351 (alpha_register_to_value): Change from _convert_to_virtual;
3352 restructure and fail for type sizes other than 4 or 8.
3353 (alpha_value_to_register): Similarly.
3354 (alpha_extract_return_value): Use alpha_sts.
3355 (alpha_store_return_value): Use alpha_lds.
3356 (alpha_gdbarch_init): Update hooks.
3358 2003-06-02 Richard Henderson <rth@redhat.com>
3360 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3362 (alpha_sigtramp_register_address): Likewise.
3364 2003-06-02 Richard Henderson <rth@redhat.com>
3366 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3367 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3368 * alpha-tdep.h: Declare them.
3370 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3371 Remove zerobuf. Don't error on UNIQUE.
3372 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3373 (ALPHA_REGSET_UNIQUE): Provide default.
3374 (supply_gregset): Use alpha_supply_int_regs.
3375 (fill_gregset): Use alpha_fill_int_regs.
3376 (supply_fpregset): Use alpha_supply_fp_regs.
3377 (fill_fpregset): Use alpha_fill_fp_regs.
3378 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3379 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3380 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3381 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3382 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3383 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3385 2003-06-02 Richard Henderson <rth@redhat.com>
3387 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3389 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3390 (alpha_store_return_value): Likewise.
3392 2003-06-02 David Carlton <carlton@math.stanford.edu>
3394 * block.c (contained_in): Add 'const' to arguments.
3395 (block_function): Ditto.
3396 * block.h: Update declarations for block_function and
3399 2003-06-02 David Carlton <carlton@math.stanford.edu>
3401 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3402 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3403 * p-valprint.c (pascal_val_print): Ditto.
3404 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3406 2003-06-02 Richard Henderson <rth@redhat.com>
3408 * alpha-tdep.c (alpha_push_dummy_call): Use
3409 builtin_type_ieee_double_little instead of builtin_type_double.
3411 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3412 sign-extension of 32-bit values.
3413 (alpha_store_return_value): Similarly.
3415 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3416 (alpha_extract_return_value): Likewise.
3417 (alpha_store_return_value): Likewise.
3419 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3420 (alpha_store_return_value): Error on IEEE Quad floats.
3422 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3423 (alpha_extract_struct_value_address): Likewise.
3424 (alpha_store_return_value): Likewise.
3425 (alpha_store_struct_return): Remove.
3426 (alpha_gdbarch_init): Update hook registration to match.
3428 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3429 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3430 macros where appropriate.
3431 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3432 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3434 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3435 for SP, GP; void_func_ptr for PC; non-language-specific types
3437 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3439 2003-06-02 Richard Henderson <rth@redhat.com>
3441 * top.h (lim_at_start): Declare.
3442 * main.c (captured_main): Set it.
3443 * top.c (lim_at_start): Define.
3444 (command_loop): Use it instead of &environ.
3445 * event-top.c (command_handler): Likewise.
3447 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3449 * mipsnbsd-tdep.c: Update copyright years.
3450 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3452 2003-06-01 Richard Henderson <rth@redhat.com>
3454 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3455 (alpha-linux-tdep.o): Update dependencies.
3456 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3457 * alpha-mdebug-tdep.c: Remove unneeded includes.
3459 2003-06-01 Richard Henderson <rth@redhat.com>
3461 * alpha-tdep.c (alpha_register_reggroup_p): New.
3462 (alpha_gdbarch_init): Register it.
3464 2003-06-02 Andrew Cagney <cagney@redhat.com>
3466 * dwarfread.c: Eliminate "register"
3467 (decode_die_type): Eliminate assignment within "if".
3468 (struct_type, decode_array_element_type): Ditto.
3469 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3470 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3471 (decode_modified_type, completedieinfo): Ditto.
3472 * block.c: Eliminate "register".
3473 (blockvector_for_pc_sect): Eliminate assignment within "if".
3474 * cp-support.h (struct symbol): Opaque declaration.
3475 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3477 2003-06-01 Richard Henderson <rth@redhat.com>
3479 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3480 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3482 2003-06-01 Adam Fedor <fedor@gnu.org>
3484 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3485 * gdbarch.[ch]: Regenerate.
3486 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3487 (hppa_gdbarch_init): Set it in the gdbarch vector.
3488 * i386-tdep.c (i386_fetch_pointer_argument): New
3489 (i386_gdbarch_init): Set it into gdbarch.
3490 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3491 (rs6000_gdbarch_init): Set it in gdbarch.
3492 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3493 (sparc_gdbarch_init): Set it in gdbarch.
3495 2003-06-01 Andrew Cagney <cagney@redhat.com>
3497 * defs.h (extract_address): Delete declaration.
3498 * findvar.c (extract_address): Delete function.
3499 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3500 extract_address with the inline equivalent,
3501 extract_unsigned_integer.
3502 (xstormy16_extract_struct_value_address): Ditto.
3503 (xstormy16_pointer_to_address): Ditto.
3504 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3505 * v850-tdep.c (v850_push_arguments): Ditto.
3506 (v850_extract_return_value): Ditto.
3507 (v850_extract_struct_value_address): Ditto.
3508 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3509 (sparcnbsd_get_longjmp_target_64): Ditto.
3510 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3511 (get_longjmp_target): Ditto.
3512 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3513 (sh64_extract_struct_value_address): Ditto.
3514 (sh_push_arguments): Ditto.
3515 (sh64_push_arguments): Ditto.
3516 * remote-vxsparc.c (vx_read_register): Ditto.
3517 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3518 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3519 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3520 * mipsv4-nat.c (get_longjmp_target): Ditto.
3521 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3522 * mips-nat.c (get_longjmp_target): Ditto.
3523 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3524 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3525 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3526 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3527 * irix5-nat.c (get_longjmp_target): Ditto.
3528 * irix4-nat.c (get_longjmp_target): Ditto.
3529 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3530 (ia64_push_arguments): Ditto.
3531 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3532 * h8300-tdep.c (h8300_push_arguments): Ditto.
3533 (h8300_store_return_value): Ditto.
3534 (h8300_extract_struct_value_address): Ditto.
3535 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3536 (frv_push_arguments): Ditto.
3537 * avr-tdep.c (avr_pointer_to_address): Ditto.
3538 (avr_push_arguments): Ditto.
3539 * arm-tdep.c (arm_push_dummy_call): Ditto.
3540 (arm_get_longjmp_target): Ditto.
3541 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3542 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3543 (alpha_get_longjmp_target): Ditto.
3545 * solib-irix.c (extract_mips_address): Inline extract_address,
3546 replacing it with extract_signed_integer.
3547 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3548 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3549 (first_link_map_member, open_symbol_file_object): Ditto.
3550 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3551 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3552 (LM_NEXT, LM_NAME): Ditto.
3554 2003-06-01 Richard Henderson <rth@redhat.com>
3556 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3557 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3558 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3559 (alpha_cannot_store_register): Likewise.
3560 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3561 * alpha-nat.c (supply_gregset): Likewise.
3562 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
3564 2003-06-01 Andrew Cagney <cagney@redhat.com>
3566 * infcall.c (call_function_by_hand): Update comment on
3567 DEPRECATED_DUMMY_WRITE_SP.
3569 * mips-tdep.c (mips_gdbarch_init): Do not set
3570 deprecated_dummy_write_sp.
3571 (mips_eabi_push_dummy_call): Set the SP register.
3572 (mips_o64_push_dummy_call): Set the SP register.
3573 (mips_o32_push_dummy_call): Set the SP register.
3574 (mips_n32n64_push_dummy_call): Set the SP register.
3576 2003-06-01 Richard Henderson <rth@redhat.com>
3578 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3579 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3580 (supply_gregset): Likewise.
3581 * alpha-tdep.c (alpha_store_return_value): Likewise.
3582 (alpha_get_longjmp_target): Likewise.
3583 (alpha_register_name): Constify array.
3584 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3585 deprecated_register_size, deprecated_register_bytes,
3586 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3587 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3588 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
3590 2003-06-01 Richard Henderson <rth@redhat.com>
3592 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3593 from arg_reg_buffer to regcache to avoid double conversion.
3595 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3597 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3599 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3600 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3602 2003-06-01 Richard Henderson <rth@redhat.com>
3604 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3605 (decode_frame_entry): Set it. Skip FDE augmentation.
3607 2003-06-01 Richard Henderson <rth@redhat.com>
3609 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3610 not overlapping PC_REGNUM.
3612 2003-06-01 Richard Henderson <rth@redhat.com>
3614 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3615 alpha_push_arguments. Don't dump argument register data to
3616 the target stack. Fix float and 128-bit long double semantics.
3617 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3618 (alpha_fix_call_dummy): Remove.
3619 (alpha_call_dummy_words): Remove.
3620 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
3622 2003-06-01 Richard Henderson <rth@redhat.com>
3624 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3626 2003-06-01 Andrew Cagney <cagney@redhat.com>
3628 * mips-tdep.c (is_mips16_addr): New function.
3629 (make_mips16_addr, unmake_mips16_addr): New functions.
3630 (pc_is_mips16, mips_fetch_instruction): Use.
3631 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3632 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3633 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3634 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3636 * config/mips/tm-mips.h: Update copyright.
3637 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3638 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3639 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3640 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3641 (TM_PRINT_INSN_MACH): Delete.
3642 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3644 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3645 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3646 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3647 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3648 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
3649 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
3650 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
3651 mips*-*-riscos* and mips*-*-sysv* onto mips.
3652 * config/mips/mips64.mt: New file.
3653 * config/mips/mips.mt: New file.
3654 * config/mips/littlemips.mt: Delete file.
3655 * config/mips/decstation.mt: Delete file.
3656 * config/mips/vr4300el.mt: Delete file.
3657 * config/mips/vr5000el.mt: Delete file.
3658 * config/mips/vr5000.mt: Delete file.
3659 * config/mips/vr4100.mt: Delete file.
3660 * config/mips/vr4xxxel.mt: Delete file.
3661 * config/mips/vr4300.mt: Delete file.
3662 * config/mips/vr4xxx.mt: Delete file.
3663 * config/mips/bigmips.mt: Delete file.
3664 * config/mips/bigmips64.mt: Delete file.
3665 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3666 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3667 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3668 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3669 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3671 * config/mips/tm-irix3.h: Ditto.
3672 * config/mips/tm-mipsv4.h: Ditto.
3673 * config/mips/tm-embed.h: Ditto.
3674 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3676 * config/mips/tm-vr5000el.h: Delete file.
3677 * config/mips/tm-tx39l.h: Delete file.
3678 * config/mips/tm-vr4300el.h: Delete file.
3679 * config/mips/tm-vr4xxxel.h: Delete file.
3680 * config/mips/tm-vr4300.h: Delete file.
3681 * config/mips/tm-vr4100.h: Delete file.
3682 * config/mips/tm-vr4xxx.h: Delete file.
3683 * config/mips/tm-vr5000.h: Delete file.
3684 * config/mips/tm-embedl64.h: Delete file.
3685 * config/mips/tm-embedl.h: Delete file.
3686 * config/mips/tm-embed64.h: Delete file.
3687 * config/mips/tm-bigmips64.h: Delete file.
3688 * config/mips/tm-bigmips.h: Delete file.
3690 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3693 * shnbsd-nat.c: Include "sh-tdep.h".
3695 From Richard Henderson <rth@redhat.com>:
3696 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3698 2003-05-31 Andrew Cagney <cagney@redhat.com>
3700 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
3701 forward declaration.
3702 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3703 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3704 (mips_find_saved_regs): Use set_reg_offset.
3705 (mips_frame_init_saved_regs): Delete function.
3706 (mips_pop_frame): Call mips_find_saved_regs instead of
3707 DEPRECATED_FRAME_INIT_SAVED_REGS.
3709 2003-05-31 Andrew Cagney <cagney@redhat.com>
3711 * mips-tdep.c (mips_gdbarch_init): Do not set
3712 deprecated_max_register_raw_size, register_virtual_size, and
3713 deprecated_max_register_virtual_size.
3715 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3717 * i386-tdep.c: Include "dwarf2-frame.h".
3718 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
3719 * Makefile.in (i386-tdep.o): Update dependencies.
3721 * dwarf2-frame.c, dwarf2-frame.h: New files.
3722 * Makefile.in (SFILES): Add dwarf2-frame.c.
3723 (dwarf2_frame_h): Define.
3724 (COMMON_OBS): Add dwarf2-frame.o.
3725 (dwarf2-frame.o): Add dependencies.
3727 2003-05-31 Andreas Jaeger <aj@suse.de>
3729 * x86-64-linux-nat.c: Fix comment.
3731 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3733 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
3736 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
3737 have a sigcontext_addr handler.
3738 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
3739 sigcontext_addr handler.
3741 2003-05-31 Andrew Cagney <cagney@redhat.com>
3743 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
3744 (print_fp_register_row): Replace do_fp_register_row.
3745 (mips_print_fp_register): Add "file" and "frame" parameters.
3746 (mips_print_register): Add "file" and "frame" parameters.
3747 (mips_print_registers_info): Replace mips_do_registers_info.
3748 (mips_gdbarch_init): Set print_registers_info instead of
3749 deprecated_do_registers_info.
3750 (mips_read_fp_register_single): Add "frame" parameter.
3751 (mips_read_fp_register_double): Add "frame" parameter.
3753 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3755 * i386-tdep.c (i386_register_name): Check for MMX registers first.
3756 Fixes a bug where GDB would print the wrong register names for
3757 targets without SSE.
3759 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
3760 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3763 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
3764 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
3765 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3768 From Michal Ludvig <mludvig@suse.cz>:
3769 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
3771 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3772 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3773 I386_ST0_REGNUM): Move here from...
3774 * i386-tdep.c: ... here.
3775 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
3776 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3777 registers if possible.
3778 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
3779 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
3781 (i386bsd_sc_reg_offset): New variable.
3782 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
3783 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3785 (i386fbsd_sc_reg_offset): New variable.
3786 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
3788 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
3790 (i386fbsd4_sc_reg_offset): New variable.
3791 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
3792 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3794 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
3795 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
3796 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
3798 (i386nbsd_sc_reg_offset): New variable.
3799 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
3800 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3802 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
3804 (i386obsd_sc_reg_offset): New variable.
3805 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
3806 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3808 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
3809 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
3810 for frame pointer offset in `struct sigcontext'.
3812 2003-05-31 Andrew Cagney <cagney@redhat.com>
3814 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
3815 architecture methods call_dummy_words, sizeof_call_dummy_words,
3816 push_return_address, store_struct_return, and fix_call_dummy. Set
3817 push_dummy_call instead of deprecated_push_arguments.
3818 (mips_store_struct_return): Delete function.
3819 (mips_fix_call_dummy): Delete function.
3820 (mips_push_return_address): Delete function.
3821 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
3822 RA_REGNUM and T9_REGNUM.
3823 (mips_n32n64_push_dummy_call): Ditto for
3824 mips_n32n64_push_arguments.
3825 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
3826 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
3828 2003-05-31 Andrew Cagney <cagney@redhat.com>
3830 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
3831 "dummy_addr" to "bp_addr".
3832 * infcall.c (call_function_by_hand): Pass "funaddr" to
3833 gdbarch_push_dummy_call.
3834 * gdbarch.h, gdbarch.c: Re-generate.
3835 * i386-tdep.c (i386_push_dummy_call): Update.
3836 * arm-tdep.c (arm_push_dummy_call): Update.
3837 * d10v-tdep.c (d10v_push_dummy_call): Update.
3839 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3841 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
3842 variable declarations.
3843 (x86_64_register_number, x86_64_register_name): Remove prototypes.
3844 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
3845 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
3846 x86_64_init_frame_pc, x86_64_init_frame_pc,
3847 x86_64_function_has_prologue): Remove prototypes.
3848 (X86_64_NUM_GREGS): New define.
3849 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
3850 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
3851 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
3852 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
3853 XMM1_REGNUM): Remove defines.
3854 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
3855 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
3856 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
3857 X86_64_XMM1_REGNUM): New defines.
3858 (struct x86_64_register_info): Renamed from `struct
3859 register_info'. Remove `size' member.
3860 (x86_64_register_info_table): Remove variable.
3861 (x86_64_register_info): New variable.
3862 (X86_64_NUM_REGS): New define.
3863 (X86_64_NUM_GREGS): Remove define.
3864 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
3865 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
3867 (x86_54_dwarf2_reg_to_regnum): Remove function.
3868 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
3869 (x86_64_dwarf_reg_to_regnum): New function.
3870 (x86_64_register_name): Rewrite.
3871 (x86_64_register_raw_size): Remove function.
3872 (x86_64_register_byte_table): Remove variable.
3873 (x86_64_register_byte): Remove function.
3874 (x86_64_register_virtual_type): Remove function.
3875 (x86_64_register_type): New function.
3876 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
3877 x86_64_register_convert_to_raw): Remove functions.
3878 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
3879 (x86_64_use_struct_convention): Make static. Adjust for renamed
3881 (x86_64_frame_init_saved_regs): Remove function.
3882 (x86_64_push_arguments): Make static. Change to accept a regcache
3884 (x86_64_store_return_value, x86_64_extract_return_value): Make
3885 static. Rewrite based on i386 counterparts.
3886 (x86_64_push_dummy_call): New function.
3887 (X86_64_NUM_SAVED_REGS): New define.
3888 (x86_64_register_number): Remove function.
3889 (x86_64_store_struct_return): Remove function.
3890 (x86_64_frameless_function_invocation,
3891 x86_64_function_has_prologue): Remove functions.
3892 (PROLOG_BUFSIZE): Remove define.
3893 (struct x86_64_frame_cache): New structure.
3894 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
3895 x86_64_frame_cache, x86_64_frame_this_id,
3896 x86_64_frame_prev_register, x86_64_frame_p,
3897 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
3898 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
3900 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
3902 (x86_64_skip_prologue): Rewrite in terms of
3903 x86_64_analyze_prologue.
3904 (x86_64_frame_base_address): New function.
3905 (x86_64_frame_base): New variable.
3906 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
3907 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
3908 set deprecated_fp_regnum, deprecated_register_size,
3909 deprecated_register_bytes, register_raw_size, register_byte,
3910 register_virtual_type, register_convertiable,
3911 register_convert_to_virtual, convert_to_raw,
3912 deprecated_get_saved_register, deprecated_target_read_fp,
3913 deprecated_push_arguments, deprecated_push_return_address,
3914 deprecated_pop_frame, deprecated_store_struct_return,
3915 deprecated_frame_init_saved_regs, deprecated_frame_chain,
3916 frameless_function_invocation, deprecated_frame_saved_pc,
3917 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
3918 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
3919 deprecated_init_frame_pc and virtual_frame_pointer. Call
3920 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
3921 and x86_64_frame_p. Call frame_base_set_default to register
3923 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
3924 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
3925 (_initialize_x86_64_tdep): Remove function.
3926 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
3927 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
3928 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
3930 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
3931 (x86_64_linux_sigcontext_addr): Rewrite.
3932 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
3933 x86_64_linux_frame_saved_pc): Remove functions.
3934 (x86_64_linux_pc_in_sigtramp): Renamed from
3935 x86_64_linux_in_sigtramp. Try harder to recognize a signal
3937 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
3939 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
3940 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3941 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
3942 (x86_64_regmap): Rename to regmap.
3943 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
3945 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
3947 (x86_64_fxsave_offset): Remove function.
3948 (supply_fpregset): Simply call x86_64_supply_fxsave.
3949 (fill_fpregset): Simply call x86_64_fill_fxsave.
3950 (fetch_inferior_registers, store_inferior_registers): Avoid
3951 asignment in if-statement.
3952 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
3953 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
3954 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
3955 (fetch_core_registers): Remove function.
3956 (linux_elf_core_fns): Remove.
3957 (offsetoff): Don't define.
3958 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
3959 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
3960 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
3962 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
3963 protection against multiple includes instead of NM_X86_64_h. Add
3964 various comments. Include "config/nm-linux.h". Don't include
3966 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
3967 GET_THREAD_SIGNALS): Remove defines.
3968 (x86_64_register_u_addr, kernel_u_size,
3969 lin_thread_get_thread_signals): Remove prototypes.
3970 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
3971 [HAVE_LINK_H]: Don't include "solib.h".
3972 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
3973 * config/i386/tm-x86-64linux.h: Fix comments.
3974 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
3975 x86-64-tdep.o): Update dependencies.
3977 2003-05-30 Andrew Cagney <cagney@redhat.com>
3979 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
3980 Change parameter type to a "struct regcache *".
3982 * gdbarch.sh: Regardless of the multi-arch level, always define
3983 the macro when not already defined.
3984 * gdbarch.h, gdbarch.c: Re-generate.
3986 2003-05-30 Richard Henderson <rth@redhat.com>
3988 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
3989 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
3990 (alpha_mdebug_frame_this_id): Likewise.
3991 (alpha_mdebug_frame_prev_register): Likewise.
3992 (alpha_mdebug_frame_base_address): Likewise.
3993 (alpha_mdebug_frame_locals_address): Likewise.
3994 (alpha_mdebug_frame_args_address): Likewise.
3995 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
3996 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
3997 (alpha_heuristic_frame_unwind_cache): Make static; add missing
3999 (alpha_heuristic_frame_this_id): Make static.
4000 (alpha_heuristic_frame_prev_register): Likewise.
4001 (alpha_heuristic_frame_base_address): Likewise.
4002 * alpha-tdep.h: Update.
4004 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4006 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4007 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4009 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4010 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4011 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4012 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4013 I386_ST0_REGNUM): New defines.
4014 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4015 codestream_get): Remove define.
4016 (codestream_next_addr, condestream_addr, condestream_buf,
4017 codestream_off, codestream_cnt): Remove variables.
4018 (codestream_fill, codestream_seek, codestream_read): Remove
4020 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4022 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4023 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4024 i386_frame_saved_pc, i386_saved_pc_after_call,
4025 i386_frame_num_args, i386_frame_init_saved_regs,
4026 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4027 i386_push_arguments): Remove functions.
4028 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4029 functionality. Use i386_analyze_prologue instead of
4030 i386_get_frame_setup.
4031 (I386_NUM_SAVED_REGS): New define.
4032 (struct i386_frame_cache): New structure.
4033 (i386_alloc_frame_cache, i386_analyze_struct_return,
4034 i386_skip_probe, i386_analyze_frame_setup,
4035 i386_analyze_register_saves, i386_analyze_prologue,
4036 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4037 i386_frame_prev_register, i386_sigtramp_frame_cache,
4038 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4039 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4040 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4042 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4044 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4045 I386_EAX_REGNUM and I386_EDX_REGNUM.
4046 (i386_extract_return_value, i386_store_return_value): Use
4047 I386_ST0_REGNUM where appropriate.
4048 (i386_extract_struct_value_address): Rewrite to use extract_address.
4049 (i386_svr4_pc_in_sigtramp): Add comment.
4050 (i386_svr4_sigcontext_addr): Rewrite.
4051 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4053 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4054 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4055 of new defines. Set push_dummy_call, don't set
4056 deprecated_push_arguments, deprecated_push_return_address,
4057 deprecated_pop_frame. Don't set parm_boundary. Don't set
4058 deprecated_frame_chain, deprecated_frame_saved_pc,
4059 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4060 save_dummy_frame_tos, unwind_pc. Call
4061 frame_unwind_append_predicate and frame_base_set_default. Don't
4062 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4063 Don't set frameless_function_invocation. Don't set
4064 deprecated_register_bytes, deprecated_register_size,
4065 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4066 * i386-linux-tdep.c: Fix formatting in some comments.
4067 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4068 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4069 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4070 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4071 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4072 redundant parentheses.
4073 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4074 (i386_linux_sigcontext_addr): Use it. Rewrite.
4075 (find_minsym_and_objfile): Change name of second argument.
4076 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4077 changed. Use frame_pc_unwind instead of
4078 DEPRECATED_SAVED_PC_AFTER_CALL.
4079 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4080 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4081 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4083 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4085 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4086 (_initialize_i386_cygwin_tdep): New prototype.
4087 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4088 deprecated_frame_chain_valid.
4089 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4090 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4091 Rely on the SVR4 defaults.
4092 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4093 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4095 2003-05-30 Andrew Cagney <cagney@redhat.com>
4097 * infcall.c (call_function_by_hand): Always call
4098 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4100 2003-05-30 Richard Henderson <rth@redhat.com>
4102 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4105 2003-05-29 Jim Blandy <jimb@redhat.com>
4107 Use gdbarch methods for solib stuff on PowerPC Linux.
4108 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4109 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4111 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4112 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4113 giving the same effect as the #definitions above.
4115 2003-05-29 Adam Fedor <fedor@gnu.org>
4117 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4118 (find_implementation_from_class): Replace it with the standard
4119 case i.e. do nothing.
4121 2003-05-29 Richard Henderson <rth@redhat.com>
4123 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4124 (alpha_linux_sigtramp_offset): Use it. Make static.
4125 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4126 update for new frame model.
4127 * alpha-mdebug-tdep.c: New file.
4128 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4129 (alpha_osf1_init_abi): Install it.
4130 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4131 (linked_proc_desc_table): Remove.
4132 (alpha_frame_past_sigtramp_frame): Remove.
4133 (alpha_dynamic_sigtramp_offset): Remove.
4134 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4135 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4136 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4137 (push_sigtramp_desc): Remove.
4138 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4139 (alpha_cannot_store_register): Likewise.
4140 (alpha_sigcontext_addr): Remove.
4141 (alpha_find_saved_regs): Remove.
4142 (alpha_frame_init_saved_regs): Remove.
4143 (alpha_init_frame_pc_first): Remove.
4144 (read_next_frame_reg): Remove.
4145 (alpha_frame_saved_pc): Remove.
4146 (alpha_saved_pc_after_call): Remove.
4147 (temp_proc_desc, temp_saved_regs): Remove.
4148 (alpha_about_to_return): Remove.
4149 (cached_proc_desc): Remove.
4150 (alpha_frame_chain): Remove.
4151 (alpha_print_extra_frame_info): Remove.
4152 (alpha_init_extra_frame_info): Remove.
4153 (alpha_frame_locals_address): Remove.
4154 (alpha_frame_args_address): Remove.
4155 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4156 (alpha_push_dummy_frame): Remove.
4157 (alpha_pop_frame): Remove.
4158 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4159 (alpha_read_insn): New.
4160 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4161 for different insn encodings.
4162 (alpha_in_lenient_prologue): Remove.
4163 (struct alpha_sigtramp_unwind_cache): New.
4164 (alpha_sigtramp_frame_unwind_cache): New.
4165 (alpha_sigtramp_register_address): New.
4166 (alpha_sigtramp_frame_this_id): New.
4167 (alpha_sigtramp_frame_prev_register): New.
4168 (alpha_sigtramp_frame_unwind): New.
4169 (alpha_sigtramp_frame_p): New.
4170 (struct alpha_heuristic_unwind_cache): New.
4171 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4172 don't count nop insns that occur between functions.
4173 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4174 heuristic_proc_desc, but without the mdebug wrapping.
4175 (alpha_heuristic_frame_this_id): New.
4176 (alpha_heuristic_frame_prev_register): New.
4177 (alpha_heuristic_frame_unwind): New.
4178 (alpha_heuristic_frame_p): New.
4179 (alpha_heuristic_frame_base_address): New.
4180 (alpha_heuristic_frame_base): New.
4181 (alpha_unwind_dummy_id): New.
4182 (alpha_unwind_pc): New.
4183 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4184 frame related deprecated initializations; install replacements.
4185 (alpha_dump_tdep): Remove.
4186 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4187 (alpha_read_insn, alpha_after_prologue,
4188 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4189 alpha_heuristic_frame_prev_register,
4190 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4191 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4192 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4193 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4195 2003-05-29 Andrew Cagney <cagney@redhat.com>
4197 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4198 dependant on the availability of ASSERT_FUNCTION.
4199 (ASSERT_FUNCTION): Do not define when there is no function name.
4201 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4203 From Jimi X <jimix@watson.ibm.com>:
4204 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4206 2003-05-28 Jim Blandy <jimb@redhat.com>
4208 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4209 argument to ptrace to int; the system headers should give it the
4210 right type, and pointers don't fit in ints on powerpc64-*-*.
4212 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4214 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4217 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4219 * stabsread.c (dbx_lookup_type): Make static.
4221 (add_undefined_type): Ditto.
4222 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4225 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4227 * hpread.c (hpread_has_name): Make static.
4228 (hpread_psymtab_to_symtab): Ditto.
4229 (file_exists): Ditto.
4230 (hpread_call_pxdb): Ditto.
4231 (hpread_pxdb_needed): Ditto.
4232 (hpread_quick_traverse): Ditto.
4233 (hpread_get_header): Ditto.
4234 (hpread_get_lntt): Ditto.
4235 (hpread_get_slt): Ditto.
4238 2003-05-25 Andreas Schwab <schwab@suse.de>
4240 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4241 stack_align and deprecated_extra_stack_alignment_needed.
4242 (m68k_stack_align): Delete.
4244 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4245 (m68k_register_virtual_size): Likewise.
4246 (altos_skip_prologue): Remove obsolete function.
4247 (isi_frame_num_args): Likewise.
4248 (news_frame_num_args): Likewise.
4249 (m68k_fix_call_dummy): Make static.
4250 (m68k_push_dummy_frame): Likewise.
4251 (m68k_pop_frame): Likewise.
4252 (m68k_skip_prologue): Likewise.
4253 (m68k_frame_init_saved_regs): Likewise.
4254 (m68k_saved_pc_after_call): Likewise.
4255 (m68k_get_longjmp_target): Make multi-arch.
4256 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4257 structure. Register m68k_get_longjmp_target if enabled.
4258 * m68k-tdep.h (struct gdbarch_tdep): Define.
4259 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4261 * Makefile.in (config.status): Also depend on configure.tgt
4263 (m68klinux-tdep.o): Update dependencies.
4264 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4265 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4266 (M68K_LINUX_JB_PC): Define.
4267 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4268 and take additional parameter.
4269 (m68k_linux_sigtramp_saved_pc): Update.
4270 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4271 m68k_linux_pc_in_sigtramp, in_plt_section,
4272 find_solib_trampoline_target.
4273 * config/m68k/tm-linux.h: Don't include any tm headers.
4274 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4275 (JB_ELEMENT_SIZE): Likewise.
4277 (GET_LONGJMP_TARGET): Likewise.
4278 (IN_SIGTRAMP): Likewise.
4279 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4281 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4283 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4284 (sparc32_push_arguments): Re-implement by calling
4285 sparc32_do_push_arguments.
4287 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4289 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4290 SPARC_O1_REGNUM): New defines.
4291 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4292 (sparc32_store_return_value): New function.
4293 (sparc_extract_struct_value_address): Rewrite to operate on a
4295 (sparc_gdbarch_init): Don't set
4296 deprecated_extract_struct_value_address. Set
4297 extract_struct_value_address instead. Don't set
4298 deprecated_extract_return_value and deprecated_store_return_value
4299 for 32-bit targets. Set extract_return_value and
4300 store_return_value instead.
4301 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4302 DEPRECTAED_EXTRACT_RETURN_VALUE,
4303 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4304 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4305 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4306 (sparc_store_return_value): Remove prototype.
4307 (sparc32_store_return_value): New prototype.
4308 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4311 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4313 * sparcnbsd-tdep.c: Include "gdb_string.h".
4315 2003-05-23 Andrew Cagney <cagney@redhat.com>
4317 * p-valprint.c (pascal_val_print): Replace extract_address with
4318 the inline equivalent extract_unsigned_integer.
4319 * jv-valprint.c (java_value_print): Ditto.
4320 * ada-valprint.c (ada_val_print_1): Ditto.
4321 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4323 2003-05-23 Theodore A. Roth <troth@openavr.org>
4325 * blockframe.c (frameless_look_for_prologue): Remove unused
4326 after_prologue variable.
4328 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4330 * blockframe.c (get_pc_function_start): Rewrite to avoid
4331 asignments in if-statements.
4333 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4335 Committed by Elena Zannoni <ezannoni@redhat.com>.
4336 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4337 files, don't relocate absolute symbols (and do use mst_abs).
4339 2003-05-23 Andrew Cagney <cagney@redhat.com>
4341 * objc-lang.c: Include "gdb_assert.h".
4342 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4343 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4344 (gdb_check, gdb_check_fatal): Delete functions.
4345 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4347 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4348 * Makefile.in (objc-lang.o): Update dependencies.
4350 2003-05-22 Ian Lance Taylor <ian@airs.com>
4352 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4353 with fprintf_filtered, not fprintf_unfiltered.
4355 2003-05-22 Andrew Cagney <cagney@redhat.com>
4357 * stack.c (frame_info): Inline extract_address, replacing it with
4358 extract_unsigned_integer.
4359 * findvar.c (unsigned_pointer_to_address): Ditto.
4360 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4361 * dwarf2expr.c (dwarf2_read_address): Ditto.
4362 * frame.c (frame_pc_unwind): Update comment.
4363 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4365 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4367 * infptrace.c (detach): Call print_sys_errmsg rather than
4368 perror_with_name to issue warning message when errno is non-zero
4369 after calling ptrace detach.
4371 2003-05-21 J. Brobecker <brobecker@gnat.com>
4373 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4374 macro definitions from here...
4375 * hppa-tdep.c: ...to there.
4377 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4379 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4380 register_ptrace_addr(). Fix all callers.
4382 2003-05-21 Andreas Schwab <schwab@suse.de>
4384 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4386 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4388 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4389 (_initialize_m68k_linux_tdep): New function.
4390 (m68k_linux_frame_saved_pc): Make static.
4391 (m68k_linux_extract_return_value): Likewise.
4392 (m68k_linux_store_return_value): Likewise.
4393 (m68k_linux_extract_struct_value_address): Likewise.
4394 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4396 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4397 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4398 (DEPRECATED_FRAME_SAVED_PC): Remove.
4400 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4402 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4403 regset numbering rather than our own.
4405 2003-05-19 David Carlton <carlton@bactrian.org>
4407 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4409 2003-05-19 David Carlton <carlton@bactrian.org>
4411 Partial fix for PR c++/827.
4412 * cp-support.h: Include symtab.h.
4413 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4414 * cp-namespace.c: Update contributors.
4415 (cp_lookup_symbol_nonlocal): New.
4416 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4417 (lookup_symbol_file): Ditto.
4418 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4419 * block.h: Declare block_scope, block_using, block_global_block.
4420 * block.c (block_scope): New.
4421 (block_using, block_global_block): Ditto.
4422 * Makefile.in (cp_support_h): Depend on symtab_h.
4423 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4425 2003-05-19 David Carlton <carlton@bactrian.org>
4427 * language.h (struct language_defn): Add 'la_value_of_this'
4428 and 'la_lookup_symbol_nonlocal' members.
4429 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4430 lookup_symbol_static, lookup_symbol_global,
4431 lookup_symbol_aux_block.
4432 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4433 if we should search fields of this and how to do static/global
4435 (lookup_symbol_aux_block): Make extern.
4436 (basic_lookup_symbol_nonlocal): New.
4437 (lookup_symbol_static, lookup_symbol_global): Ditto.
4438 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4439 'la_lookup_symbol_nonlocal' members.
4440 * c-lang.c (c_language_defn, cplus_language_defn)
4441 (asm_language_defn, minimal_language_defn): Ditto.
4442 * jv-lang.c (java_language_defn): Ditto.
4443 * language.c (unknown_language_defn, auto_language_defn)
4444 (local_language_defn): Ditto.
4445 * m2-lang.c (m2_language_defn): Ditto.
4446 * objc-lang.c (objc_language_defn): Ditto.
4447 * scm-lang.c (scm_language_defn): Ditto.
4448 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4449 * p-lang.c (pascal_language_defn): Ditto for both.
4450 * Makefile.in (f-lang.o): Depend on value_h.
4453 2003-05-19 David Carlton <carlton@bactrian.org>
4455 * block.h: Declare block_static_block.
4456 * block.c (block_static_block): New.
4457 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4458 lookup_symbol_aux_local, calling block_static_block instead.
4459 (lookup_symbol_aux_local): Delete 'static_block' argument.
4461 2003-05-19 David Carlton <carlton@bactrian.org>
4463 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4465 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4467 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4468 register numbers mapping.
4470 2003-05-18 Adam Fedor <fedor@gnu.org>
4472 * symtab.c (completion_list_objc_symbol): New function.
4473 (make_symbol_completion_list): Use it to add ObjC symbols
4474 when looking though the list.
4475 (language_search_unquoted_string): New function.
4476 (make_file_symbol_completion_list): Use it.
4478 2003-05-18 Andreas Schwab <schwab@suse.de>
4480 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4482 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4483 as m68k_linux_extract_return_value.
4484 (DEPRECATED_STORE_RETURN_VALUE): Define as
4485 m68k_linux_store_return_value.
4486 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4487 m68k_linux_extract_struct_value_address.
4488 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4489 get_next_frame, get_frame_base, get_frame_pc.
4490 (m68k_linux_frame_saved_pc): Use get_frame_base.
4491 (m68k_linux_extract_return_value): New function.
4492 (m68k_linux_store_return_value): New function.
4493 (m68k_linux_extract_struct_value_address): New function.
4494 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4496 * c-exp.y (typebase): Remove duplicate occurence of
4497 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
4498 of lookup_signed_typename.
4500 2003-05-18 Mark Kettenis <kettenis@gnu.org>
4502 * dwarf2loc.c (find_location_expression): Change type of second
4503 argument to `size_t *'.
4504 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4507 2003-05-18 David Carlton <carlton@bactrian.org>
4509 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4510 'linkage_name'. Add comment.
4511 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4513 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4514 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4515 (lookup_block_symbol): Ditto.
4517 2003-05-16 Andrew Cagney <cagney@redhat.com>
4519 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4520 * gdbarch.h, gdbarch.c: Re-generate.
4521 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4522 * TODO (REGISTER_BYTES): Delete reference.
4523 * alpha-tdep.c (alpha_gdbarch_init): Update.
4524 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4525 * x86-64-tdep.c (x86_64_init_abi): Update.
4526 * vax-tdep.c (vax_gdbarch_init): Update.
4527 * v850-tdep.c (v850_gdbarch_init): Update.
4528 * sparc-tdep.c (sparc_gdbarch_init): Update.
4529 * sh-tdep.c (sh_gdbarch_init): Update.
4530 * s390-tdep.c (s390_gdbarch_init): Update.
4531 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4532 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4533 (ns32k_gdbarch_init_32382): Update.
4534 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4535 * mcore-tdep.c (mcore_gdbarch_init): Update.
4536 * m68k-tdep.c (m68k_gdbarch_init): Update.
4537 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4538 * ia64-tdep.c (ia64_gdbarch_init): Update.
4539 * i386-tdep.c (i386_gdbarch_init): Update.
4540 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4541 * hppa-tdep.c (hppa_gdbarch_init): Update.
4542 * h8300-tdep.c (h8300_gdbarch_init): Update.
4543 * frv-tdep.c (frv_gdbarch_init): Update.
4544 * cris-tdep.c (cris_gdbarch_init): Update.
4545 * avr-tdep.c (avr_gdbarch_init): Update.
4546 * arm-tdep.c (arm_gdbarch_init): Update.
4547 * sparc-tdep.c (sparc_pop_frame): Update.
4548 * rs6000-tdep.c (rs6000_pop_frame): Update.
4549 * remote.c (init_remote_state): Update.
4550 (remote_prepare_to_store): Update.
4551 * remote-vx.c (vx_prepare_to_store): Update.
4552 * remote-sds.c (sds_fetch_registers): Update.
4553 (sds_prepare_to_store): Update.
4554 * remote-array.c: Update.
4555 * regcache.c (init_legacy_regcache_descr): Update.
4556 (init_regcache_descr): Update.
4557 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4558 (mips_o64_extract_return_value): Update.
4559 * irix5-nat.c (fetch_core_registers): Update.
4560 * irix4-nat.c (fetch_core_registers): Update.
4561 * i386-tdep.h: Update.
4562 * hppa-tdep.c (pa_do_registers_info): Update.
4563 (pa_do_strcat_registers_info): Update.
4564 * cris-tdep.c (cris_register_bytes_ok): Update.
4565 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4566 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4567 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4568 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4569 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4570 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4571 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4572 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4573 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4574 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4575 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4576 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4577 (REGISTER_BYTES_OK): Update.
4578 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4579 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4581 2003-05-16 Ian Lance Taylor <ian@airs.com>
4583 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4584 (vax_print_insn, print_insn_arg): Remove static functions.
4585 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4586 print_insn_vax from opcodes library.
4587 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4589 2003-05-15 Andrew Cagney <cagney@redhat.com>
4591 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4592 * target.h (memory_breakpoint_from_pc): Delete declaration.
4593 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4594 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4595 * monitor.c (monitor_insert_breakpoint): Use
4596 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4597 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4598 * gdbarch.h, gdbarch.c: Re-generate.
4599 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4600 (sparc_gdbarch_init): Set breakpoint_from_pc to
4601 sparc_breakpoint_from_pc.
4602 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4603 (BREAKPOINT_FROM_PC): Define.
4604 (sparc_breakpoint_from_pc): Declare.
4605 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4606 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4607 (BREAKPOINT_FROM_PC): Define.
4608 (BREAKPOINT): Delete macro.
4609 * target.h: Update comment.
4610 * s390-tdep.c (s390_gdbarch_init): Update comments.
4611 * remote.c: Update comments.
4612 * remote-mips.c: Update comments.
4613 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4614 * mem-break.c: Update comment.
4615 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4616 (ia64_memory_insert_breakpoint): Update.
4617 * config/sparc/tm-sparc.h: Update comment.
4618 * config/pa/tm-hppa64.h: Update comment.
4619 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4620 (rs6000_breakpoint_from_pc): Update.
4621 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4622 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4623 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4624 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4625 (mips_breakpoint_from_pc): Update.
4626 (mips_dump_tdep): Update.
4628 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4629 * minsyms.c (lookup_minimal_symbol): Inline
4630 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4632 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4633 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4634 * p-lang.c (pascal_printstr): Ditto.
4635 * objc-lang.c (objc_printstr): Ditto.
4636 * m2-lang.c (m2_printstr): Ditto.
4637 * jv-valprint.c (java_print_value_fields): Ditto.
4638 * f-lang.c (f_printstr): Ditto.
4639 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4640 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4641 for repeat_count_threshold.
4642 * Makefile.in (cp-valprint.o): Update dependencies.
4644 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
4646 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4647 (examine_prologue): Support looking through leaf functions, knowing
4648 they start with mov r2,r12. Support skipping over indirect stores
4649 of the input registers. Upon hitting a non-nop branch instruction
4650 or predicated instruction, bail out by setting lim_pc to the current
4651 pc value in the loop. At the end, if the lim_pc value is still
4652 beyond our calculated value and we have trust_limit set,
4653 use the lim_pc value.
4655 2003-05-15 Andrew Cagney <cagney@redhat.com>
4657 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4658 generic_find_dummy_frame.
4659 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4660 (deprecated_generic_find_dummy_frame): Update.
4661 (deprecated_read_register_dummy): Update.
4662 * frame.c (deprecated_generic_get_saved_register): Update.
4664 2003-05-15 Theodore A. Roth <troth@openavr.org>
4666 * avr-tdep.c (avr_breakpoint_from_pc): New function.
4667 (avr_gdbarch_init): Set breakpoint_from_pc method.
4669 2003-05-15 Andrew Cagney <cagney@redhat.com>
4671 * regcache.c (build_regcache): Set deprecated_register_valid
4673 (deprecated_grub_regcache_for_register_valid): Delete function.
4674 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4677 2003-05-15 David Carlton <carlton@bactrian.org>
4679 Committed by Elena Zannoni <ezannoni@redhat.com>
4680 * symtab.c (lookup_symbol_aux): Delete calls to
4681 lookup_symbol_aux_minsyms.
4682 (lookup_symbol_aux_minsyms): Comment out function and
4683 prototype. Delete lookup by mangled name.
4685 2003-05-14 Kevin Buettner <kevinb@redhat.com>
4687 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4688 correctly indicate an empty stack and ``stack_allocated'' to the
4689 indicate the number of elements initially allocated.
4690 (dwarf_expr_grow_stack): Simplify method for computing new
4691 stack size. Don't loop infinitely if ``stack_len'' is zero.
4692 (execute_stack_op): Move ``ctx->in_reg'' initialization
4693 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4694 be used in conjuction with DW_OP_piece. Revise error message
4697 2003-05-14 Theodore A. Roth <troth@openavr.org>
4699 * MAINTAINERS: Update my email address.
4700 * avr-tdep.c: Ditto.
4702 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
4704 * symtab.h (enum domain_enum): Rename from namespace_enum.
4705 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4706 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4707 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4708 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4709 TYPES_NAMESPACE, METHODS_NAMESPACE.
4710 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4711 (struct symbol, struct partial_symbol): Rename field
4712 'namespace_enum namespace' to 'domain_enum domain'.
4713 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
4714 Delete old define kludge for namespace.
4716 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
4717 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
4718 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
4719 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
4720 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
4721 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
4722 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
4723 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
4724 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
4725 occurrences of the above.
4727 2003-05-14 Ian Lance Taylor <ian@airs.com>
4729 * Makefile.in (install-only): Use $(SHELL) when running
4732 2003-05-13 Ian Lance Taylor <ian@airs.com>
4734 * MAINTAINERS (write after approval): Add myself.
4736 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
4737 second and third arguments.
4738 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4739 * ser-unix.c (_initialize_ser_hardwire): Likewise.
4741 2003-05-13 Andrew Cagney <cagney@redhat.com>
4743 * defs.h (store_address): Delete declaration.
4744 findvar.c (store_address): Delete function.
4745 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
4746 store_unsigned_integer.
4747 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
4748 * v850-tdep.c (v850_push_arguments): Ditto.
4749 * sparc-tdep.c (sparc_get_saved_register): Ditto.
4750 * sh-tdep.c (sh64_get_saved_register): Ditto.
4751 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
4752 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
4753 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
4754 (mips_get_saved_register): Ditto.
4755 * ia64-tdep.c (ia64_get_saved_register): Ditto.
4756 (find_func_descr, ia64_push_arguments): Ditto.
4757 * i386-tdep.c (i386_push_arguments): Ditto.
4758 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4759 * frv-tdep.c (frv_push_arguments): Ditto.
4760 * frame.c (legacy_saved_regs_prev_register): Ditto.
4761 (deprecated_generic_get_saved_register): Ditto.
4762 * findvar.c (unsigned_address_to_pointer): Ditto.
4763 * dwarf2read.c (dwarf2_const_value): Ditto.
4764 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4765 * alpha-tdep.c (alpha_push_arguments): Ditto.
4767 2003-05-12 J. Brobecker <brobecker@gnat.com>
4769 * NEWS: Mention that the hppa-hpux port has been partially
4770 multiarched (32bit ABIT only, so far).
4772 2003-05-11 Andrew Cagney <cagney@redhat.com>
4774 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
4775 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
4776 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
4777 sim/testsuite/sim/arm/misaligned2.ms, and
4778 sim/testsuite/sim/arm/misaligned3.ms.
4779 * disasm.h (struct ui_file): Add opaque struct declaration.
4780 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
4781 * frame.h (struct ui_file): Ditto.
4783 2003-05-11 Mark Kettenis <kettenis@gnu.org>
4785 * value.h: Pretty print.
4787 2003-05-10 Mark Kettenis <kettenis@gnu.org>
4789 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
4791 2003-05-08 Andrew Cagney <cagney@redhat.com>
4793 * regcache.h (max_register_size): Delete declaration.
4794 * regcache.c (max_register_size): Delete function.
4795 (struct regcache_descr): Delete field "max_register_size".
4796 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
4797 registers fit in MAX_REGISTER_SIZE.
4798 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
4799 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
4800 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
4801 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
4802 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
4803 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
4804 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
4805 * dve3900-rom.c, hppa-tdep.c: Ditto.
4807 2003-05-08 David Carlton <carlton@math.stanford.edu>
4809 * valops.c (push_word): Fix typo.
4811 2003-05-08 Andrew Cagney <cagney@redhat.com>
4813 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
4814 * gdbarch.h: Re-generate.
4815 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
4816 (legacy_max_register_raw_size): Delete declaration.
4817 * regcache.c (legacy_max_register_raw_size): Delete function.
4818 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
4819 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
4820 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
4821 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
4822 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
4823 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
4824 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
4825 * findvar.c, dwarf2cfi.c: Ditto.
4827 2003-05-08 Andrew Cagney <cagney@redhat.com>
4829 * mips-tdep.c (read_signed_register): New function, moved to here
4831 (read_signed_register_pid): Ditto.
4832 * regcache.c (read_signed_register_pid): Delete function, moved to
4834 (read_signed_register): Ditto.
4835 * regcache.h (read_signed_register): Delete declaration.
4836 (read_signed_register_pid): Delete declaration.
4838 2003-05-08 Andrew Cagney <cagney@redhat.com>
4840 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
4841 * gdbarch.h: Re-generate.
4842 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
4843 (legacy_max_register_virtual_size): Delete declaration.
4844 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
4845 * d10v-tdep.c (d10v_print_registers_info): Ditto.
4846 * tracepoint.c (memrange_sortmerge): Ditto.
4847 * sparc-tdep.c (sparc_print_registers): Ditto.
4848 * regcache.c (legacy_max_register_virtual_size): Delete function.
4850 2002-05-08 J. Brobecker <brobecker@gnat.com>
4852 * fork-child.c (escape_bang_in_quoted_argument): New function.
4853 (fork_inferior): Escape '!' characters in quoted arguments
4856 2003-05-08 J. Brobecker <brobecker@gnat.com>
4858 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
4859 the language of the CU is not currently supported by GDB.
4861 2003-05-08 J. Brobecker <brobecker@gnat.com>
4863 * defs.h (language): Add language_minimal enum value.
4864 * c-lang.c (minimal_language_defn): New language definition.
4865 (_initialize_c_language): Add the new minimal language to the list
4866 of languages known to GDB.
4868 2003-05-08 Kevin Buettner <kevinb@redhat.com>
4870 * frame.c (get_frame_type): Don't attempt to lazily initialize
4871 frame's unwinder for legacy frames.
4873 2003-05-07 Andrew Cagney <cagney@redhat.com>
4875 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
4876 and "regcache" parameters.
4877 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
4879 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
4881 * dwarf2read.c (dwarf_decode_lines): Only use output of
4882 check_cu_functions() when calling record_line(). Do not update
4883 the current address.
4885 2003-05-07 Andrew Cagney <cagney@redhat.com>
4887 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
4890 2003-05-07 Jim Blandy <jimb@redhat.com>
4892 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
4893 'maint info symtabs' and 'maint info psymtabs'.
4894 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
4895 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
4896 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
4897 Declarations updated.
4898 * maint.c (maintenance_list_command): Delete.
4899 (_initialize_maint_cmds): Update calls to add_cmd.
4900 * gdbcmd.h (maintenancelistlist): Delete declaration.
4901 * cli/cli-cmds.c (maintenancelistlist): Delete.
4902 (init_cmd_lists): Don't initialize it.
4903 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
4905 2003-05-07 Andrew Cagney <cagney@redhat.com>
4907 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
4909 (d10v_print_registers_info): Update.
4910 (d10v_dmap_register, d10v_imap_register): Delete functions.
4911 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
4912 and "imap_register".
4913 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
4914 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
4915 * arch-utils.c (generic_remote_translate_xfer_address): Add
4916 "regcache" and "gdbarch" parameters.
4917 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
4918 parameter. Change class to multi-arch.
4919 * gdbarch.h, gdbarch.c: Re-generate.
4920 * remote.c (remote_xfer_memory): Use
4921 gdbarch_remote_translate_xfer_address.
4923 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
4925 * infrun.c (prev_pc): Move declaration ahead of proceed().
4926 (proceed): Refresh prev_pc value before resuming.
4927 (stop_stepping): Remove code to refresh prev_pc.
4929 2003-05-06 Kris Warkentin <kewarken@qnx.com>
4931 * nto-tdep.c: Removed stray comment.
4933 2003-05-06 Kris Warkentin <kewarken@qnx.com>
4935 * i386-nto-tdep.c: Fix old K&R function definitions.
4936 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
4937 Also change add_show_from_set() call to add_setshow_cmd().
4938 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
4940 2003-05-05 Andrew Cagney <cagney@redhat.com>
4942 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
4943 (fprint_dummy_frames): New function.
4944 (maintenance_print_dummy_frames): New function.
4945 (_initialize_dummy_frame): Add command "maint print dummy-frames".
4946 * frame.c (fprint_frame_id): Make global.
4947 * frame.h (fprint_frame_id): Declare.
4948 * Makefile.in (dummy-frame.o): Update dependencies.
4950 2003-05-05 Andrew Cagney <cagney@redhat.com>
4952 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
4953 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
4954 SIZEOF_CALL_DUMMY_WORDS.
4955 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
4956 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
4957 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
4958 CALL_DUMMY_BREAKPOINT_OFFSET.
4959 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
4960 CALL_DUMMY_START_OFFSET.
4961 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
4962 * gdbarch.h, gdbarch.c: Re-generate.
4963 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
4964 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
4965 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
4966 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
4967 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
4968 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
4969 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
4970 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
4971 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
4972 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
4973 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
4974 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
4975 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
4976 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
4977 * config/sparc/tm-sparc.h: Update.
4979 2003-05-05 Kris Warkentin <kewarken@qnx.com>
4981 * configure.tgt: Add i[3456]86-*-nto*.
4982 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
4983 * nto-tdep.c: New file. Neutrino target support routines.
4984 * nto-tdep.h: New file. Neutrino target header.
4985 * config/tm-qnxnto.h: New file.
4986 * config/i386/i386nto.mt: New file.
4987 * config/i386/tm-i386nto.h: New file.
4989 2003-05-04 Andrew Cagney <cagney@redhat.com>
4991 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
4992 (load_infrun_state): Ditto.
4993 (struct thread_info): Drop "prev_func_name" field.
4994 * thread.c (load_infrun_state): Update.
4995 (save_infrun_state): Update.
4996 * infrun.c (prev_func_name): Delete variable.
4997 (init_wait_for_inferior): Do not clear prev_func_name.
4998 (stop_stepping, keep_going, context_switch): Do not swap
5000 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5001 instead of PC_IN_SIGTRAMP.
5003 2003-05-04 Andrew Cagney <cagney@redhat.com>
5005 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5006 REGISTER_BYTE with register_offset_hack.
5007 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5008 that REGISTER_BYTE is consistent with the regcache.
5009 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5010 * gdbarch.h, gdbarch.c: Regenerate.
5012 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5014 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5015 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5017 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5019 2003-05-03 J. Brobecker <brobecker@gnat.com>
5021 From Thierry Schneider <tpschneider1@yahoo.com>
5022 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5023 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5024 (mi-cmd-symbol.o): Add rule.
5026 2003-05-03 Andrew Cagney <cagney@redhat.com>
5028 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5029 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5030 * gdbarch.h, gdbarch.c: Re-generate.
5031 * d10v-tdep.c (d10v_push_dummy_code): New function.
5032 (d10v_gdbarch_init): Set push_dummy_code.
5033 * infcall.c (legacy_push_dummy_code): New function.
5034 (generic_push_dummy_code): New function.
5035 (push_dummy_code): New function.
5036 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5037 instead of dummy_addr, to push_dummy_call. Move call to
5038 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5040 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5042 2003-05-03 Andrew Cagney <cagney@redhat.com>
5044 * disasm.h (print_insn): Declare.
5045 * disasm.c (init_gdb_disassemble_info): New function.
5046 (gdb_disassembly): Call init_gdb_disassemble_info.
5047 (gdb_print_insn): New function.
5048 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5049 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5050 * mcore-tdep.c: Include "disasm.h"
5051 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5052 * d10v-tdep.c: Include "disasm.h".
5053 (display_trace): Call gdb_print_insn, instead of print_insn.
5054 (print_insn): Delete function.
5055 * printcmd.c: Include "disasm.h".
5056 (print_insn): Delete function.
5057 (print_formatted): Call gdb_print_insn, instead of print_insn.
5058 * Makefile.in (printcmd.o): Update dependencies.
5059 (mcore-tdep.o, d10v-tdep.o): Ditto.
5061 2003-05-02 Andrew Cagney <cagney@redhat.com>
5063 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5064 PC_REGNUM, re-indent.
5065 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5066 PC_REGNUM isn't set.
5068 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5069 * gdbarch.h, gdbarch.c: Re-generate.
5070 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5071 register_virtual_size, pc_regnum, or register_bytes.
5072 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5073 (d10v_register_type): Use D10V_PC_REGNUM.
5074 (d10v_print_registers_info, d10v_read_pc): Ditto.
5075 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5076 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5078 2003-05-02 David Carlton <carlton@bactrian.org>
5080 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5081 the name with mstrsave.
5083 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5085 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5086 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5087 (host_charset_name, target_charset_name): New vars for use by
5089 (host_charset_enum, target_charset_enum): New enums for set/show
5091 (set_charset_sfunc, set_host_charset_sfunc,
5092 set_target_charset_sfunc): New functions.
5093 (set_host_charset, set_target_charset): Make static.
5094 (list_charsets, set_host_charset_command,
5095 set_target_charset_command): Delete functions.
5096 (show_charset_command): Rewrite as....
5097 (show_charset): Hook this up with the set/show command mechanism.
5098 (_initialize_charset): Change names of charsets to match the
5099 set/show enums. Use host_charset_name and target_charset_name.
5100 Use set/show mechanism for charset, host-charset, target-charset
5101 commands. Do not make 'show host-charset' and 'show
5102 target-charset' be aliases of 'show charset'.
5104 * charset.h (set_host_charset, set_target_charset): Don't export,
5105 they are not used outside the file.
5107 2003-05-01 Andrew Cagney <cagney@redhat.com>
5109 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5110 (gdb_disassembly): Make "di" non static, always initialize and
5111 cleanup. Always use dis_asm_read_memory.
5112 (gdb_dis_asm_read_memory): Delete function.
5114 2003-05-01 Andrew Cagney <cagney@redhat.com>
5116 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5117 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5119 2003-04-30 Andrew Cagney <cagney@redhat.com>
5121 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5122 "tm_print_insn_info".
5123 (TARGET_PRINT_INSN_INFO): Delete macro.
5124 (dis_asm_read_memory): Delete function declaration.
5125 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5126 (tm_print_insn_info): Delete variable definition.
5127 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5128 * gdbarch.h, gdbarch.c: Re-generate.
5129 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5130 "deprecated_tm_print_insn_info".
5131 * mcore-tdep.c (mcore_dump_insn): Ditto.
5132 * mips-tdep.c (mips_gdbarch_init): Ditto.
5133 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5134 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5135 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5136 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5137 instead of TARGET_PRINT_INSN_INFO, add comment.
5138 * s390-tdep.c (s390_get_frame_info): Instead of
5139 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5140 (s390_check_function_end, s390_is_sigreturn): Ditto.
5141 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5142 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5143 * disasm.c: Include "gdbcore.h".
5144 (_initialize_disasm): New function, initialize
5145 "deprecated_tm_print_insn_info".
5146 (deprecated_tm_print_insn_info): New variable.
5147 (dis_asm_read_memory): Moved from "corefile.c", made static.
5148 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5149 * Makefile.in (disasm.o): Update dependencies.
5151 2003-04-30 Andrew Cagney <cagney@redhat.com>
5153 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5155 2003-04-29 Adam Fedor <fedor@gnu.org>
5157 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5158 * infcall.c (find_function_addr): Make non-static.
5159 * infcall.h (find_function_addr): Declare.
5160 * Makefile.in (eval.o): Update dependencies.
5162 2003-04-28 Adam Fedor <fedor@gnu.org>
5164 * symtab.c (symbol_find_demangled_name): Check for and demangle
5166 (symbol_init_demangled_name): Init for language_objc as well.
5168 2003-04-28 Andrew Cagney <cagney@redhat.com>
5170 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5171 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5172 * gdbarch.h, gdbarch.c: Re-generate.
5173 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5174 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5175 * inferior.h (deprecated_read_fp): Rename read_fp.
5176 (generic_target_read_fp): Delete declaration.
5177 * regcache.c (generic_target_read_fp): Delete function.
5178 (deprecated_read_fp): Replace read_fp, use
5179 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5180 * d10v-tdep.c (d10v_read_fp): Delete function.
5181 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5183 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5184 deprecated_target_read_fp to generic_target_read_fp.
5185 * sh-tdep.c (sh_gdbarch_init): Ditto.
5186 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5187 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5188 * frv-tdep.c (frv_gdbarch_init): Ditto.
5190 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5191 deprecated_fp_regnum.
5192 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5193 * vax-tdep.c (vax_gdbarch_init): Ditto.
5194 * v850-tdep.c (v850_gdbarch_init): Ditto.
5195 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5196 * sh-tdep.c (sh_gdbarch_init): Ditto.
5197 * s390-tdep.c (s390_gdbarch_init): Ditto.
5198 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5199 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5200 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5201 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5202 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5203 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5204 * i386-tdep.c (i386_gdbarch_init): Ditto.
5205 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5206 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5207 * frv-tdep.c (frv_gdbarch_init): Ditto.
5208 * cris-tdep.c (cris_gdbarch_init): Ditto.
5209 * avr-tdep.c (avr_gdbarch_init): Ditto.
5210 * arm-tdep.c (arm_gdbarch_init): Ditto.
5211 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5213 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5214 * v850-tdep.c (v850_gdbarch_init): Ditto.
5215 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5216 * sh-tdep.c (sh_gdbarch_init): Ditto.
5217 * s390-tdep.c (s390_gdbarch_init): Ditto.
5218 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5219 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5220 * mips-tdep.c (mips_gdbarch_init): Ditto.
5221 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5222 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5223 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5224 * frv-tdep.c (frv_gdbarch_init): Ditto.
5225 * avr-tdep.c (avr_gdbarch_init): Ditto.
5226 * arm-tdep.c (arm_gdbarch_init): Ditto.
5228 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5229 DEPRECATED_FP_REGNUM.
5230 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5231 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5232 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5233 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5234 (sparc32_register_virtual_type): Ditto.
5235 * sh-tdep.c (sh64_frame_chain): Ditto.
5236 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5237 (sh_nofp_frame_init_saved_regs): Ditto.
5238 (sh64_nofp_frame_init_saved_regs): Ditto.
5239 (sh_fp_frame_init_saved_regs): Ditto.
5240 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5241 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5242 * procfs.c (procfs_fetch_registers): Ditto.
5243 (procfs_store_registers): Ditto.
5244 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5245 (store_inferior_registers, fetch_core_registers): Ditto.
5246 (fetch_kcore_registers, clear_regs): Ditto.
5247 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5248 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5249 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5250 * nlm/i386.c (do_status): Ditto.
5251 * mipsv4-nat.c (supply_gregset): Ditto.
5252 * mips-tdep.c: Ditto for comments.
5253 * mips-nat.c (fetch_inferior_registers): Ditto.
5254 (store_inferior_registers, fetch_core_registers): Ditto.
5255 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5256 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5257 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5258 (i386_do_pop_frame, i386_register_type): Ditto.
5259 * hppa-tdep.c (hppa_frame_chain): Ditto.
5260 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5261 (hppa_pop_frame, hppa_read_fp): Ditto.
5262 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5263 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5264 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5265 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5266 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5267 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5268 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5269 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5270 * blockframe.c: Ditto for comments.
5271 * arch-utils.h: Ditto for comments.
5272 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5273 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5274 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5275 * alpha-tdep.h: Ditto for comments.
5276 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5277 (alpha_cannot_store_register): Ditto.
5278 (alpha_push_dummy_frame): Ditto.
5279 * alpha-nat.c (supply_gregset): Ditto.
5281 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5282 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5283 * config/sparc/tm-sparc.h: Update comment.
5285 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5286 deprecated_read_fp instead of TARGET_READ_FP.
5287 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5288 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5289 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5290 deprecated_read_fp instead of read_fp.
5291 * s390-tdep.c (s390_push_arguments): Ditto.
5292 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5293 * frame.h: Ditto in comments.
5294 * frame.c (legacy_get_prev_frame): Ditto.
5295 * dummy-frame.c (dummy_frame_this_id): Ditto.
5296 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5298 2003-04-28 Andrew Cagney <cagney@redhat.com>
5300 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5301 * gdbarch.h, gdbarch.c: Re-generate.
5302 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5303 * vax-tdep.c (_initialize_vax_tdep): Update.
5304 * v850-tdep.c (_initialize_v850_tdep): Update.
5305 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5306 * s390-tdep.c (_initialize_s390_tdep): Update.
5307 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5308 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5309 * mips-tdep.c (_initialize_mips_tdep): Update.
5310 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5311 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5312 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5313 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5314 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5315 * frv-tdep.c (_initialize_frv_tdep): Update.
5316 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5317 (_initialize_cris_tdep): Update.
5318 * arch-utils.c (legacy_print_insn): Update.
5319 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5321 2003-04-26 Adam Fedor <fedor@gnu.org>
5323 * linespec.c (decode_objc): New function to decode ObjC calls
5324 (decode_line_1): Check for ObjC calls (using decode_objc)
5325 * Makefile (linespec.o): Update dependencies.
5327 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5329 * breakpoint.h (struct breakpoint_ops): New.
5330 (struct breakpoint): Add ops member.
5332 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5333 (mention): Use new breakpoint ops member.
5334 (set_raw_breakpoint): Initialize ops field to NULL.
5335 (print_exception_catchpoint, print_one_exception_catchpoint)
5336 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5337 (gnu_v3_exception_catchpoint_ops): New.
5338 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5340 2003-04-25 Adam Fedor <fedor@gnu.org>
5342 * Makefile.in (COMMON_OBS): Add objc-lang.o
5344 2003-04-25 Andrew Cagney <cagney@redhat.com>
5346 * d10v-tdep.c (print_insn): Delete function.
5347 (display_trace): Use TARGET_PRINT_INSN.
5348 (_initialize_d10v_tdep): Do not set tm_print_insn.
5349 (d10v_gdbarch_init): Set print_insn.
5351 2003-04-25 Andrew Cagney <cagney@redhat.com>
5353 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5354 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5355 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5356 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5357 (nr_dmap_regs, a0_regnum): ... new functions.
5358 (d10v_print_registers_info): Use a0_regnum, use register_size.
5359 (d10v_register_byte): Delete function.
5360 (d10v_register_raw_size): Delete function.
5361 (d10v_register_type): Use a0_regnum.
5362 (d10v_print_registers_info): Use a0_regnum.
5363 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5364 (d10v_gdbarch_init): Do not set register_byte or
5365 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5366 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5368 (trace_command): Use XCALLOC.
5369 (print_insn): Delete reference to tm_print_insn.
5370 (saved_regs_unwinder): Use store_unsigned_integer instead of
5372 * frame.h (FRAME_OBSTACK_CALLOC): Define
5374 2003-04-25 David Carlton <carlton@bactrian.org>
5376 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5378 2003-04-24 Adam Fedor <fedor@gnu.org>
5380 * objc-lang.c: Include "valprint.h"
5381 * Makefile.in (objc-lang.o): Update dependencies.
5383 2003-04-24 Adam Fedor <fedor@gnu.org>
5385 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5386 architecture dependant compilation and mark as unimplemented
5387 (until they get put in the gdbarch vector).
5389 2003-04-23 David Carlton <carlton@bactrian.org>
5391 * cp-support.c (cp_find_first_component): Accept 'operator' in
5394 2003-04-23 Andrew Cagney <cagney@redhat.com>
5396 * infcall.c (call_function_by_hand): Eliminate redundant
5397 indentation. Move "saved_async" and "old_cleanups" to where they
5400 2003-04-23 Andrew Cagney <cagney@redhat.com>
5402 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5403 and "buffer". Move the "name" code to where it is needed.
5405 2003-04-23 Andrew Cagney <cagney@redhat.com>
5407 * infcall.c (call_function_by_hand): Move variables "start_sp",
5408 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5409 code to ON_STACK switch branch.
5411 2003-04-23 Andrew Cagney <cagney@redhat.com>
5413 * infcall.c (call_function_by_hand): Make declaration of "i",
5414 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5417 2003-04-23 Andrew Cagney <cagney@redhat.com>
5419 * infcall.c (call_function_by_hand): Delete variable
5420 "n_method_args". Localize "param_type"'s declaration to the loop
5421 that it is used. Reinstate code assigning to said variable -
5422 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5423 Rationalize code using "param_type".
5425 2003-04-22 Andrew Cagney <cagney@redhat.com>
5427 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5428 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5429 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5430 to DEPRECATED_PUSH_RETURN_ADDRESS.
5432 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5434 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5435 on the DWARF2 register number prior to fetching a register.
5437 2003-04-22 J. Brobecker <brobecker@gnat.com>
5439 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5440 Update all the tests using SOFT_FLOAT considering the fact that
5441 this macro was always set to 0.
5442 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5443 considering the fact that this macro was always set to 0.
5444 * hppa-tdep.h (hppa_store_return_value): Likewise.
5445 (hppa_extract_return_value): Likewise.
5447 2003-04-22 J. Brobecker <brobecker@gnat.com>
5449 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5450 the hppa-pro target only.
5452 2003-04-21 J. Brobecker <brobecker@gnat.com>
5454 Ongoing multi-arch conversion effort for HP/UX:
5455 * config/pa/tm-hppa.h: Move all macro that are no longer
5456 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5457 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5459 2003-04-21 J. Brobecker <brobecker@gnat.com>
5461 * config/pa/tm-hppa.h: Obsolete a section that was only used
5464 2003-04-21 J. Brobecker <brobecker@gnat.com>
5466 Ongoing multi-arch conversion for HP/UX.
5467 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5468 if already defined (allows hppa64 to stay non-multiarched for now).
5469 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5471 2003-04-21 Andrew Cagney <cagney@redhat.com>
5473 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5475 2003-04-21 Andrew Cagney <cagney@redhat.com>
5477 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5478 "i386_num_mmx_regs".
5480 2003-04-21 Andrew Cagney <cagney@redhat.com>
5482 * infcall.c: New file.
5483 * infcall.h: New file.
5484 * valarith.c: Include "infcall.h".
5485 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5486 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5487 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5488 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5489 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5490 (SFILES): Add "infcall.c"
5491 (COMMON_OBS): Add "infcall.o".
5492 (infcall.o): Specify dependencies.
5493 * value.h (call_function_by_hand): Delete declaration.
5494 * inferior.h (run_stack_dummy): Delete declaration.
5495 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5496 (run_stack_dummy): Move to "infcall.c", merged into
5497 call_function_by_hand.
5498 * valops.c (call_function_by_hand): Moved to "infcall.c".
5499 (find_function_addr, value_arg_coerce): Ditto.
5500 (unwindonsignal_p, coerce_float_to_double): Ditto.
5501 (_initialize_valops): Move "set/show coerce-float-to-double", and
5502 "set/show unwindonsignal" commands to "infcall.c".
5503 * v850-tdep.c, target.h: Update comments.
5504 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5505 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5506 (sh64_init_extra_frame_info): Update comments.
5507 * mn10300-tdep.c: Update comments.
5508 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5509 * config/sparc/tm-sparc.h: Update comments.
5510 * breakpoint.h: Update comments.
5511 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5512 * arm-tdep.c: Update comment.
5514 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5516 * i386-tdep.c (i386_num_register_names): New variable.
5517 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5518 (MM0_REGNUM): Remove redundant parentheses in define.
5519 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5520 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5521 i386_mxcsr_regnum_p): Remove redundant parentheses.
5522 (i386_register_name): Use i386_num_register_names.
5524 * i386-tdep.c (i386_extract_return_value,
5525 i386_store_return_value): Correct check for availability of
5526 floating-point registers.
5528 * i386-tdep.c (i386_frame_num_args): Remove function.
5529 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5531 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5532 mmx_regnum_to_fp_regnum. Adjust all callers.
5534 * i386-tdep.c (i386_get_longjmp_target): Use
5535 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5536 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5539 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5541 * core-regset.c: Update comments to reflect reality. Re-order
5543 (fetch_core_registers): Use switch instead of if. Remove
5544 redundant prototype.
5546 2003-04-18 Jim Blandy <jimb@redhat.com>
5548 * s390-tdep.c (s390_frame_align): New function.
5549 (s390_gdbarch_init): Register it with the gdbarch object.
5551 2003-04-17 Richard Henderson <rth@redhat.com>
5553 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5555 2003-04-17 Michael Snyder <msnyder@redhat.com>
5556 Karen Bennet <bennet@redhat.com>
5558 Committed by Elena Zannoni <ezannoni@redhat.com>
5559 * gdb_gcore.sh: New script to create a core dump of a process.
5561 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
5563 * values.c (value_being_returned): Don't fetch the return
5564 value if the return type is void.
5566 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5568 * thread-db.c: Reindented.
5570 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5572 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5573 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
5600 2003-04-16 Kevin Buettner <kevinb@redhat.com>
5602 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
5603 the size of ``long double'' to 16, instead of 8.
5605 2003-04-16 Mark Kettenis <kettenis@gnu.org>
5607 * i386-linux-nat.c: Add some whitespace to make things more
5609 (fetch_register, store_register, fetch_inferior_registers,
5610 store_inferior_registers): Get rid of assignment in if-statement.
5611 (store_register): Fix typo in error message.
5613 2003-04-16 Andrew Cagney <cagney@redhat.com>
5615 * utils.c (xmmalloc): Always allocate something, matches
5616 libiberty/xmalloc's semantics.
5617 (xmrealloc, xmcalloc): Ditto.
5619 2003-04-16 Andrew Cagney <cagney@redhat.com>
5621 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5623 (get_frame_type): Initialize unwind and type when needed.
5624 (get_frame_id, frame_register_unwind): Ditto.
5626 2003-04-16 Andrew Cagney <cagney@redhat.com>
5628 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5630 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5631 * sparcl-stub.c: Obsolete file.
5632 * config/sparc/tm-sparclet.h: Obsolete file.
5633 * sparclet-stub.c: Obsolete file.
5634 * sparclet-rom.c: Obsolete file.
5635 * sparcl-tdep.c: Obsolete file.
5636 * config/sparc/tm-sparclite.h: Obsolete file.
5637 * config/sparc/sparclite.mt: Obsolete file.
5638 * config/sparc/sparclet.mt: Obsolete file.
5639 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5640 sparc86x-*-* obsolete.
5642 2003-04-15 David Carlton <carlton@math.stanford.edu>
5644 * Makefile.in (SFILES): Add cp-namespace.c.
5645 (COMMON_OBS): Add cp-namespace.o.
5646 (block.o): Depend on gdb_obstack_h and cp_support_h.
5647 (buildsym.o): Depend on cp_support_h.
5648 (cp-namespace.o): New.
5649 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5650 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5651 (dwarf2read.o): Depend on cp_support_h.
5652 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5653 * dwarf2read.c (process_die): Set processing_has_namespace_info,
5654 processing_current_namespace.
5655 (read_namespace): Update processing_current_namespace; check for
5656 anonymous namespaces.
5657 (dwarf2_name): New function.
5658 (dwarf2_extension): Ditto.
5659 * cp-support.h: Update copyright, contributors.
5660 Add inclusion guards.
5661 Add opaque declaration for structs obstack, block, symbol.
5662 (struct using_direct): New struct.
5663 Add declarations for cp_find_first_component,
5664 cp_entire_prefix_len, processing_has_namespace_info,
5665 processing_current_namespace, cp_is_anonymous,
5666 cp_add_using_directive, cp_initialize_namespace,
5667 cp_finalize_namespace, cp_set_block_scope,
5668 cp_scan_for_anonymous_namespaces.
5669 * cp-namespace.c: New file.
5670 * cp-support.c: Update copyright.
5671 Include ctype.h, gdb_assert.h, gdbcmd.h.
5672 New variable maint_cplus_cmd_list.
5673 (cp_find_first_component): New function.
5674 (cp_entire_prefix_len, maint_cplus_command)
5675 (first_component_command, _initialize_cp_support): Ditto.
5676 * buildsym.c: Include cp-support.h.
5677 New variable using_list.
5678 (add_symbol_to_list): Check for anonymous namespaces.
5679 (finish_block): Set block's scope.
5680 (start_symtab): Initialize C++ namespace support.
5681 (end_symtab): Finalize C++ namespace support.
5682 * block.h: Add opaque declarations for structs
5683 block_namespace_info, using_direct, and obstack.
5684 Add declarations for block_set_scope and block_set_using.
5685 (struct block): Add 'language_specific' member.
5686 (BLOCK_NAMESPACE): New macro.
5687 * block.c: Include gdb_obstack.h and cp-support.h.
5688 (struct block_namespace_info): New struct.
5689 (block_set_scope): New function.
5690 (block_set_using, block_initialize_namespace): Ditto.
5692 2003-04-14 Kevin Buettner <kevinb@redhat.com>
5694 * solib-svr4.c (svr4_have_link_map_offsets): New function.
5695 (locate_base): Return early if there aren't any link map offsets.
5696 (svr4_solib_create_inferior_hook): Warn if shared library support
5699 2003-04-14 David Carlton <carlton@math.stanford.edu>
5701 * symtab.c (symbol_set_names): Add prefix when storing Java names
5702 in hash table. Fix for PR java/1039.
5704 2003-04-14 David Carlton <carlton@math.stanford.edu>
5706 * symtab.c (symbol_set_names): Rename 'name' arg to
5707 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5708 * symtab.h: Change 'name' argument in declaration of
5709 symbol_set_names to 'linkage_name'.
5710 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5712 2003-04-14 Andrew Cagney <cagney@redhat.com>
5714 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
5715 return the fully sign-extended register value.
5716 (get_frame_pointer): Ditto.
5717 (mips_pop_frame): Initialize "proc_desc" after checking for a
5720 2003-04-14 Andrew Cagney <cagney@redhat.com>
5722 * mips-tdep.c (mips_push_dummy_frame): Delete function.
5723 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
5724 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
5725 (mips_push_register): Delete function.
5726 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
5729 2003-04-14 Jim Blandy <jimb@redhat.com>
5731 * symmisc.c: #include "gdb_regex.h".
5732 (maintenance_list_symtabs, maintenance_list_psymtabs): New
5734 * maint.c (maintenance_list_command): New function.
5735 (_initialize_maint_cmds): Register the above as commands.
5736 * symtab.h (maintenance_list_symtabs,
5737 maintenance_list_psymtabs): New declarations.
5738 * cli/cli-cmds.c (maintenancelistlist): New variable.
5739 (init_cmd_lists): Initialize it.
5740 * cli/cli-cmds.h (maintenancelistlist): New declaration.
5741 * gdbcmd.h (maintenancelistlist): New declaration.
5742 * Makefile.in (symmisc.o): Update dependencies.
5744 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
5746 * s390-nat.c: Include asm/types.h for addr_t.
5748 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
5750 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
5751 actually incoming type.
5753 2003-04-13 Andrew Cagney <cagney@redhat.com>
5755 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
5756 get_next_frame and get_frame_saved_regs.
5758 2003-04-13 Andrew Cagney <cagney@redhat.com>
5760 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
5761 of gdbarch_num_regs.
5763 2003-04-13 Andrew Cagney <cagney@redhat.com>
5765 * frame.h: Mention what replaced what in "struct frame_info".
5766 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
5767 deprecated_update_frame_base_hack and
5768 deprecated_update_frame_pc_hack.
5769 * hppa-tdep.c: Ditto.
5771 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5773 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
5774 to read_reg and update its comment. Remove regnum member.
5775 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
5776 Don't call read_reg when setting in_reg. Call read_reg to get
5777 the frame base if it's in a register. Return the register number
5778 on the stack instead of in the context. Remove extra arguments
5780 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
5781 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
5782 the register number on the expression stack.
5783 (needs_frame_read_reg): Remove extra arguments.
5785 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5787 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
5789 (execute_stack_op): All callers updated.
5790 * dwarf2expr.h: Add prototype for dwarf2_read_address.
5791 * dwarf2loc.c (find_location_expression): New function.
5792 (dwarf_expr_frame_base): Call it.
5793 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
5794 (dwarf2_tracepoint_var_ref): New function, broken out from
5795 locexpr_tracepoint_var_ref.
5796 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
5798 (loclist_read_variable, loclist_read_needs_frame): New functions.
5799 (loclist_describe_location, loclist_tracepoint_var_ref): New
5801 (dwarf2_loclist_funcs): New struct location_funcs.
5802 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
5803 (struct dwarf2_locexpr_baton): Add comments.
5804 (dwarf2_loclist_funcs): New extern.
5805 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
5806 base_address and base_known.
5807 (dwarf_loc_buffer): New variable.
5808 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
5809 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
5810 (dwarf2_has_info): Initialize dwarf_loc_offset.
5811 (dwarf2_build_psymtabs): Read in .debug_loc.
5812 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
5814 (psymtab_to_symtab_1): Likewise. Move base address calculation
5816 (dwarf2_get_pc_bounds): ... here. Use the base address from
5818 (dwarf2_symbol_mark_computed): Handle location lists.
5820 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5822 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
5823 if the linkage name demangled successfully.
5825 2003-04-13 Mark Kettenis <kettenis@gnu.org>
5827 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
5828 disassmbly_flavour): Removed.
5830 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
5832 2003-04-13 Mark Kettenis <kettenis@gnu.org>
5834 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
5836 2003-04-12 Andrew Cagney <cagney@redhat.com>
5838 * frame.h (struct frame_info): Move definition from here ...
5839 * frame.c (struct frame_info): ... to here.
5841 2003-04-12 Andrew Cagney <cagney@redhat.com>
5843 * gdbthread.h (save_infrun_state): Delete parameter
5845 (struct thread_info): Delete field "prev_func_start".
5846 (load_infrun_state): Ditto.
5847 * thread.c (load_infrun_state, save_infrun_state): Update.
5848 * infrun.c (prev_func_start): Delete variable.
5849 (context_switch, init_wait_for_inferior): Update.
5850 (stop_stepping, keep_going): Update.
5852 2003-04-12 Andrew Cagney <cagney@redhat.com>
5854 * gdbarch.sh: Add missing opaque declarations.
5855 * gdbarch.h: Regnerate.
5856 * symtab.h: Add missing opaque declarations.
5857 * value.h, target.h, symfile.h, stabsread.h: Ditto.
5858 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
5859 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
5860 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
5861 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
5862 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
5863 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
5864 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
5865 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
5866 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
5867 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
5868 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
5869 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
5871 2003-04-11 Andrew Cagney <cagney@redhat.com>
5873 * frame.c (get_frame_id): Return this frame's "id".
5874 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
5876 (legacy_saved_regs_this_id): Replace function body with
5878 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
5879 FRAME_OBSTACK_ZALLOC.
5880 (create_new_frame): Mark the frame ID as valid.
5882 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
5884 * Makefile.in (libbfd_h): Added missing setting.
5885 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
5886 according to the selected ABI.
5888 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
5890 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
5892 2003-04-11 Andrew Cagney <cagney@redhat.com>
5894 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
5895 SAVED_PC_AFTER_CALL.
5896 * gdbarch.h, gdbarch.c: Regenerate.
5897 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5898 * x86-64-tdep.c (x86_64_init_abi): Update.
5899 * vax-tdep.c (vax_gdbarch_init): Update.
5900 * v850-tdep.c (v850_gdbarch_init): Update.
5901 * sparc-tdep.c (sparc_gdbarch_init): Update.
5902 * sh-tdep.c (sh_gdbarch_init): Update.
5903 * s390-tdep.c (s390_gdbarch_init): Update.
5904 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5905 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5906 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5907 * mips-tdep.c (mips_gdbarch_init): Update.
5908 * mcore-tdep.c (mcore_gdbarch_init): Update.
5909 * m68k-tdep.c (m68k_gdbarch_init): Update.
5910 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5911 * ia64-tdep.c (ia64_gdbarch_init): Update.
5912 (ia64_saved_pc_after_call): Update declaration.
5913 * i386ly-tdep.c (i386lynx_init_abi): Update.
5914 * i386-tdep.c (i386_gdbarch_init): Update.
5915 * hppa-tdep.c (hppa_gdbarch_init): Update.
5916 * h8300-tdep.c (h8300_gdbarch_init): Update.
5917 * frv-tdep.c (frv_gdbarch_init): Update.
5918 * cris-tdep.c (cris_gdbarch_init): Update.
5919 * avr-tdep.c (avr_gdbarch_init): Update.
5920 * arm-tdep.c (arm_gdbarch_init): Update.
5921 * alpha-tdep.c (alpha_gdbarch_init): Update.
5922 * ns32knbsd-nat.c (frame_num_args): Update.
5923 * ns32k-tdep.c (umax_frame_num_args): Update.
5924 * mips-tdep.c (mips_init_frame_pc_first): Update.
5925 * infrun.c (step_over_function): Update.
5926 * i386-linux-tdep.c (skip_hurd_resolver): Update.
5927 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
5928 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5929 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5930 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5931 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5932 * arm-linux-tdep.c (skip_hurd_resolver): Update.
5933 * arch-utils.c (init_frame_pc_default): Update.
5934 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
5935 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
5938 2003-04-11 Andrew Cagney <cagney@redhat.com>
5940 * i387-tdep.c: Update copyright.
5941 (i387_to_double): Delete function.
5942 (double_to_i387): Delete function.
5944 2003-04-10 Andrew Cagney <cagney@redhat.com>
5946 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
5947 frame's function's address. Simplify.
5948 (d10v_frame_unwind_cache): Check that the frame's function is
5951 2003-04-10 Jim Blandy <jimb@redhat.com>
5953 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
5954 call to set_gdbarch_deprecated_push_arguments.
5956 2003-04-10 Andrew Cagney <cagney@redhat.com>
5958 * frame.c (fprint_frame_id): New function.
5959 (fprint_frame_type, fprint_frame): New function.
5960 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
5961 (create_sentinel_frame, get_frame_id): Ditto.
5962 (frame_id_p, frame_id_eq): Ditto.
5963 (frame_id_inner, create_new_frame): Ditto.
5964 (legacy_get_prev_frame, get_prev_frame): Ditto.
5965 (deprecated_update_frame_pc_hack): Ditto.
5966 (frame_register_unwind): Ditto.
5967 (deprecated_update_frame_base_hack): Ditto.
5969 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
5971 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
5972 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
5973 frame_chain function.
5974 * Makefile.in: Add dependencies due to above change.
5976 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
5978 * blockframe.c (legacy_frame_chain_valid): Move call to
5979 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
5982 2003-04-09 Andrew Cagney <cagney@redhat.com>
5984 * frame.h (struct frame_id): Replace "pc" and "base" with
5985 "stack_addr" and "code_addr". Update comments.
5986 (frame_id_build): Update parameter names and comment.
5987 (struct frame_info): Replace "id_p" and "id" with "this_id".
5988 * dummy-frame.c (dummy_frame_this_id): Update.
5989 * breakpoint.c (print_one_breakpoint): Update.
5990 * frame.c (get_frame_id): Update.
5991 (get_frame_base, frame_id_build): Update.
5992 (create_sentinel_frame, legacy_get_prev_frame): Update.
5993 (deprecated_update_frame_base_hack): Update.
5994 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
5995 (frame_id_inner): Ditto.
5997 2003-04-09 Andrew Cagney <cagney@redhat.com>
5999 * defs.h (gdb_print_host_address): Make "addr" parameter a
6001 * utils.c (gdb_print_host_address): Update.
6003 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6005 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6006 register number for R0 is 0.
6008 2003-04-09 J. Brobecker <brobecker@gnat.com>
6010 * frame.h (struct gdbarch): Add opaque structure definition
6011 to avoid a compilation warning on LynxOS 4.0.
6013 2003-04-09 Andrew Cagney <cagney@redhat.com>
6015 * frame.h (struct frame_info): Delete field "pc". Replace
6016 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6018 * frame.c (frame_pc_unwind): Update.
6019 (create_sentinel_frame): Do not set "pc".
6020 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6021 (get_frame_pc): Call frame_pc_unwind.
6022 (deprecated_update_frame_pc_hack): Update.
6023 (create_new_frame): Use "pc" not "->pc".
6025 2003-04-09 Andrew Cagney <cagney@redhat.com>
6027 * frame.c (get_frame_id): Eliminate code updating "frame".
6028 (legacy_get_prev_frame): Ditto.
6029 (get_frame_base): Return id.base directly.
6030 (deprecated_update_frame_base_hack): Update "id.base".
6031 * frame.h (struct frame_info): Delete field "frame".
6033 2003-04-09 Andrew Cagney <cagney@redhat.com>
6035 * NEWS: Mention that the "Sequent family" is obsolete.
6036 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6037 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6038 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6039 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6040 * config/i386/tm-ptx4.h: Obsolete file.
6041 * config/i386/tm-ptx.h: Obsolete file.
6042 * symm-tdep.c: Obsolete file.
6043 * config/i386/symmetry.mt: Obsolete file.
6044 * config/i386/tm-symmetry.h: Obsolete file.
6045 * symm-nat.c: Obsolete file.
6046 * config/i386/nm-symmetry.h: Obsolete file.
6047 * config/i386/xm-symmetry.h: Obsolete file.
6048 * config/i386/symmetry.mh: Obsolete file.
6049 * config/i386/nm-ptx4.h: Obsolete file.
6050 * config/i386/ptx4.mh: Obsolete file.
6051 * config/i386/ptx.mt: Obsolete file.
6052 * config/i386/ptx.mh: Obsolete file.
6053 * config/i386/xm-ptx4.h: Obsolete file.
6054 * config/i386/xm-ptx.h: Obsolete file.
6056 2003-04-09 Andrew Cagney <cagney@redhat.com>
6058 Obsolete mips*-*-mach3*.
6059 * NEWS: Mention that mips*-*-mach3* is obsolete.
6060 * m3-nat.c: Obsolete file.
6061 * config/nm-m3.h: Obsolete file.
6062 * config/mips/tm-mipsm3.h: Obsolete file.
6063 * config/mips/mipsm3.mt: Obsolete file.
6064 * config/mips/mipsm3.mh: Obsolete file.
6065 * config/mips/xm-mipsm3.h: Obsolete file.
6066 * mipsm3-nat.c: Obsolete file.
6067 * configure.host: Obsolete mips-dec-mach3*.
6068 * configure.tgt: Obsolete mips*-*-mach3*.
6070 2003-04-09 Andrew Cagney <cagney@redhat.com>
6072 * doublest.h: Update copyright.
6073 (deprecated_store_floating, deprecated_extract_floating): Rename
6074 store_floating and extract_floating. Update comments.
6075 * doublest.c: Update copyright.
6076 (extract_floating_by_length): Replace extract_floating.
6077 (store_floating_by_length): Replace store_floating.
6078 (deprecated_extract_floating): New function.
6079 (deprecated_store_floating): New function.
6080 (extract_typed_floating): Call extract_floating_by_length.
6081 (store_typed_floating): Call store_floating_by_length.
6082 * x86-64-tdep.c (x86_64_store_return_value): Update.
6083 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6084 (sh64_extract_return_value): Update.
6085 (sh_sh4_register_convert_to_virtual): Update.
6086 (sh_sh64_register_convert_to_virtual): Update.
6087 (sh_sh4_register_convert_to_raw): Update.
6088 (sh_sh64_register_convert_to_raw): Update.
6089 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6090 (rs6000_register_convert_to_raw): Update.
6091 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6092 (ia64_register_convert_to_raw): Update.
6093 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6094 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6095 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6096 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6097 (alpha_register_convert_to_raw): Update.
6099 2003-04-08 Andrew Cagney <cagney@redhat.com>
6101 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6102 * gdbarch.h, gdbarch.c: Re-generate.
6103 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6104 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6105 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6106 conditionally, use frame_pc_unwind as an alternative. Add
6108 * arch-utils.c (init_frame_pc_default): Only call
6109 SAVED_PC_AFTER_CALL when available.
6111 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6113 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6114 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6115 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6116 (start_remote): Ditto.
6117 (handle_inferior_event): Ditto.
6118 (save_inferior_status): Ditto.
6119 (restore_inferior_status): Ditto.
6120 * infcmd.c (attach_command): Ditto.
6121 * fork-child.c (startup_inferior): Ditto.
6122 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6123 * alpha-tdep.c (heuristic_proc_start): Ditto.
6124 * mips-tdep.c (heuristic_proc_start): Ditto.
6125 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6126 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6127 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6128 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6129 * remote-vx.c (vx_create_inferior): Ditto.
6131 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6133 * infrun.c (stop_soon_quietly): Make it an enum, to better
6134 override the default behavior of handle_inferior_event.
6135 (clear_proceed_status): Update uses of stop_soon_quietly to
6136 reflect that it is now an enum.
6137 (start_remote): Ditto.
6138 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6139 is set to handle the new GNU/Linux kernel behavior for
6140 attach/sigstop. Update uses of stop_soon_quietly.
6141 * inferior.h (enum stop_kind): New enum.
6142 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6143 Reset normal handle_inferior_event behavior, afterwards.
6144 * fork-child.c (startup_inferior): Update.
6145 * alpha-tdep.c (heuristic_proc_start): Update.
6146 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6147 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6148 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6149 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6150 * remote-vx.c (vx_create_inferior): Update.
6151 * mips-tdep.c (heuristic_proc_start): Update.
6153 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6155 * disasm.c (dump_insns): Move variables inside loop, or they will
6156 be freed more than once, causing wild memory corruptions.
6157 (gdb_disassembly): Look for the substring "-thread",
6158 instead of "-threads" in the target name, to make sure to find
6159 the 'multi-thread' target. Also, make sure we do the right thing
6160 with the "core" target.
6162 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6164 * mips-tdep.c (mips_print_fp_register): New function, created from
6165 do_fp_register_row(). Registers are now (also) printed as hex.
6166 Only one register is printed per row.
6167 (mips_print_register, do_fp_register_row): Print floating point
6168 registers with mips_print_fp_register().
6170 2003-04-06 Andrew Cagney <cagney@redhat.com>
6172 * valprint.h (inspect_it): Add extern declaration.
6173 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6174 (selectors_info, classes_info): Ditto.
6175 (find_objc_msgcall): Fix indentation.
6176 (objc_printstr): Delete extern declarations.
6178 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6180 2003-04-06 Andrew Cagney <cagney@redhat.com>
6182 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6184 * frame.c (legacy_saved_regs_this_id): Update.
6185 (legacy_get_prev_frame): Update.
6186 * xstormy16-tdep.c: Update comment.
6187 * sparc-tdep.c (sparc_frame_chain): Update comment.
6188 * blockframe.c (legacy_frame_chain_valid): Update.
6190 2003-04-06 Andrew Cagney <cagney@redhat.com>
6192 * valprint.c (val_print_type_code_int): Delete #ifdef
6193 PRINT_TYPELESS_INTEGER code.
6195 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6196 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6197 multi-arch definition.
6198 * gdbarch.h: Re-generate.
6200 2003-04-05 Andrew Cagney <cagney@redhat.com>
6202 Eliminate FRAME_FIND_SAVED_REGS.
6203 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6204 Change FSR parameter to a pointer.
6205 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6206 Assume FSR parameter is a pointer.
6207 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6209 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6210 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6211 saved_regs a pointer.
6212 (hppa_frame_saved_pc): Ditto.
6213 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6214 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6216 (restore_pc_queue): Make fsr a pointer.
6217 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6218 (hppa_frame_chain): Make saved_regs a pointer, call
6219 hppa_frame_init_saved_regs.
6220 * sparc-tdep.c: Include "gdb_assert.h".
6221 (sparc_frame_find_saved_regs): Replace internal_error with
6223 * remote-vxsparc.c (vx_read_register): Delete reference to
6224 FRAME_FIND_SAVED_REGS.
6225 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6226 * gdbarch.h: Regenerate.
6227 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6228 (deprecated_get_frame_saved_regs): Delete declaration.
6229 (struct frame_saved_regs): Delete definition.
6230 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6231 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6232 (hppa_frame_find_saved_regs): Delete declaration.
6233 (FRAME_FIND_SAVED_REGS): Delete macro.
6234 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6235 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6236 FRAME_FIND_SAVED_REGS in comment.
6238 2003-04-05 Andrew Cagney <cagney@redhat.com>
6240 * frame.c (frame_func_unwind, get_frame_func): New functions.
6241 * frame.h (get_frame_func, frame_func_unwind): Declare.
6242 (struct frame_info): Add field "prev_func" for caching the
6243 previous frame's function address.
6244 * arm-tdep.c (arm_frameless_function_invocation): Combine
6245 get_pc_function_start and get_frame_pc into get_frame_func.
6246 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6247 (sh64_nofp_frame_init_saved_regs): Ditto.
6248 * s390-tdep.c (s390_function_start): Ditto.
6249 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6250 (rs6000_frameless_function_invocation): Ditto.
6251 (rs6000_frame_saved_pc): Ditto.
6252 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6253 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6254 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6255 (i386_frame_init_saved_regs): Ditto.
6256 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6257 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6258 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6259 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6260 * blockframe.c (frameless_look_for_prologue): Ditto.
6262 2003-04-05 Andrew Cagney <cagney@redhat.com>
6264 * frame.c (legacy_get_prev_frame): Link prev to next at the
6265 function start. Update comments.
6267 2003-04-05 Andrew Cagney <cagney@redhat.com>
6269 * frame.c (get_frame_id): Update comment.
6270 (legacy_get_prev_frame): Update comment.
6271 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6272 * gdbarch.h: Regenerate.
6273 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6274 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6276 2003-04-05 Andrew Cagney <cagney@redhat.com>
6278 * stack.c (print_frame_info): Use get_frame_pc.
6280 2003-04-04 Andrew Cagney <cagney@redhat.com>
6282 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6283 the frame's type from the unwinder.
6284 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6285 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6286 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6287 (get_frame_base_address): Use get_frame_type.
6288 (get_frame_locals_address, get_frame_args_address): Ditto.
6289 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6290 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6291 (struct frame_info): Add comment explaining why the frame contains
6293 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6294 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6295 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6297 * frame-unwind.h: Include "frame.h".
6298 (struct frame_unwind): Add "type" field.
6299 * Makefile.in (frame_unwind_h): Add $(frame_h).
6301 2003-04-04 Andrew Cagney <cagney@redhat.com>
6303 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6304 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6305 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6307 (d10v_unwind_dummy_id): Use frame_id_build.
6308 * frame.c (find_frame_sal): Use get_frame_pc.
6309 (create_new_frame): Use deprecated_update_frame_pc_hack and
6310 deprecated_update_frame_base_hack.
6311 (create_sentinel_frame): Add comment about ->pc going away.
6312 (get_prev_frame): Add comment about ->pc going away.
6313 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6314 frame_id_build, deprecated_update_frame_pc_hack and
6315 deprecated_update_frame_base_hack.
6316 (select_frame): Use get_frame_pc.
6317 (legacy_saved_regs_this_id): Use frame_id_build.
6319 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6321 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6322 signed integer case.
6323 (classify_argument): Handle enumerations and references.
6325 2003-04-04 Andrew Cagney <cagney@redhat.com>
6327 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6330 2003-04-01 Adam Fedor <fedor@gnu.org>
6332 * gdb/objc-lang.c (selectors_info): Replace calls to
6333 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6334 SYMBOL_NATURAL_NAME.
6335 (classes_info, find_methods): Likewise.
6337 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6339 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6340 ``mach'' to the value determined by bfd_default_set_arch_mach().
6342 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6344 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6345 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6346 (mi-cmd-file.o): Update dependencies.
6348 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6350 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6351 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6353 2003-04-01 Adam Fedor <fedor@gnu.org>
6355 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6356 * language.h (struct language_defn): Add la_demangle.
6357 (language_demangle): Declare.
6358 * language.c (language_demangle): New function.
6359 (unk_lang_demangle): Likewise.
6360 (unknown_language_defn, auto_language_defn, local_language_defn):
6361 Add ukn_lang_demangle.
6362 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6363 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6364 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6365 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6366 * jv-lang.c (java_demangle): New function
6367 (java_language_defn): Use it for la_demangle element.
6368 * objc-lang.c (objc_demangle): Add options argument
6369 (objc_language_defn): Use objc_demangle for la_demangle element.
6370 * maint.c (maintenance_demangle): Replace switch with
6371 call to language_demangle.
6372 * utils.c (fprintf_symbol_filtered): Likewise.
6374 2003-04-01 Andrew Cagney <cagney@redhat.com>
6376 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6377 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6378 PRINT_TYPELESS_INTEGER.
6379 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6380 PUSH_RETURN_ADDRESS.
6382 2003-04-01 Andrew Cagney <cagney@redhat.com>
6384 * Makefile.in (d10v-tdep.o): Update dependencies.
6385 * d10v-tdep.c: Include "frame-base.h".
6386 (d10v_frame_unwind): Make constant.
6387 (d10v_frame_base_address): New function.
6388 (d10v_frame_base): New variable.
6389 (d10v_gdbarch_init): Set frame_base default.
6390 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6392 (d10v_frame_unwind_cache): Set and use "prev_sp".
6393 (d10v_frame_this_id): Use the previous frame's inner most stack
6394 address and this frame's func address for the frame ID. Use
6395 frame_id_build. Don't analyze beyond the current instruction.
6397 2003-04-01 Andrew Cagney <cagney@redhat.com>
6399 * frame.h (get_frame_locals_address, get_frame_args_address):
6400 Refer to the base address, instead of the address of the first
6403 2003-04-01 Andrew Cagney <cagney@redhat.com>
6405 Add frame debug info addresses:
6406 * frame-base.c: New file.
6407 * frame-base.h: New file.
6408 * frame.h (struct frame_base): Add opaque declaration.
6409 (get_frame_base): Update comment.
6410 (get_frame_base_address): Declare.
6411 (get_frame_locals_address): Declare.
6412 (get_frame_args_address): Declare.
6413 (struct frame_info): Add "base" and "base_cache". Update
6414 comments on the unwinder.
6415 * frame.c: Include "frame-base.h".
6416 (get_frame_locals_address): New function.
6417 (get_frame_base_address): New function.
6418 (get_frame_args_address): New function.
6419 * findvar.c (read_var_value): Use get_frame_locals_address and
6420 get_frame_args_address.
6421 * stack.c (frame_info): Use get_frame_locals_address and
6422 get_frame_args_address.
6423 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6424 moved to "frame-base.c".
6425 * printcmd.c (print_frame_nameless_args): Ditto.
6426 * symtab.h (address_class): Update comments.
6427 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6428 get_frame_base_address.
6429 * dwarf2expr.c (execute_stack_op): Ditto.
6430 * Makefile.in (frame_base_h): Define.
6431 (frame.o): Update dependencies.
6432 (frame-base.o): Add dependencies.
6433 (SFILES): Add frame-base.c.
6434 (COMMON_OBS): Add frame-base.o.
6436 2003-04-01 Andrew Cagney <cagney@redhat.com>
6438 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6439 CALL_DUMMY_LENGTH): Ditto.
6440 * gdbarch.c: Re-generate.
6441 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6442 (CALL_DUMMY_LENGTH): Delete macro.
6443 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6444 * arm-tdep.c (arm_gdbarch_init): Ditto.
6445 * avr-tdep.c (avr_gdbarch_init): Ditto.
6446 * cris-tdep.c (cris_gdbarch_init): Ditto.
6447 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6448 * frv-tdep.c (frv_gdbarch_init): Ditto.
6449 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6450 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6451 * i386-tdep.c (i386_gdbarch_init): Ditto.
6452 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6453 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6454 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6455 * mips-tdep.c (mips_gdbarch_init): Ditto.
6456 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6457 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6458 * s390-tdep.c (s390_gdbarch_init): Ditto.
6459 * sh-tdep.c (sh_gdbarch_init): Ditto.
6460 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6461 * v850-tdep.c (v850_gdbarch_init): Ditto.
6462 * vax-tdep.c (vax_gdbarch_init): Ditto.
6463 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6465 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6467 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6469 2003-04-01 Andrew Cagney <cagney@redhat.com>
6471 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6472 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6473 * gdbarch.h, gdbarch.c: Re-generate.
6474 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6475 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6476 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6477 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6478 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6479 * infcmd.c (run_stack_dummy): Simplify assuming
6480 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6481 * infrun.c (handle_inferior_event): Ditto.
6482 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6483 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6484 * arm-tdep.c (arm_gdbarch_init): Ditto.
6485 * avr-tdep.c (avr_gdbarch_init): Ditto.
6486 * cris-tdep.c (cris_gdbarch_init): Ditto.
6487 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6488 * frv-tdep.c (frv_gdbarch_init): Ditto.
6489 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6490 * i386-tdep.c (i386_gdbarch_init): Ditto.
6491 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6492 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6493 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6494 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6495 * mips-tdep.c (mips_gdbarch_init): Ditto.
6496 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6497 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6498 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6499 * s390-tdep.c (s390_gdbarch_init): Ditto.
6500 * sh-tdep.c (sh_gdbarch_init): Ditto.
6501 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6502 * v850-tdep.c (v850_gdbarch_init): Ditto.
6503 * vax-tdep.c (vax_gdbarch_init): Ditto.
6504 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6506 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
6508 * symfile.c (symfile_relocate_debug_section): Update call to
6509 bfd_simple_get_relocated_section_contents.
6511 2003-03-31 Andrew Cagney <cagney@redhat.com>
6513 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6514 * gdbarch.h, gdbarch.c: Regenerate.
6515 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6516 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6518 * frame.h (generic_fix_call_dummy): Delete declaration.
6519 * dummy-frame.h: Update comment.
6520 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6521 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6523 * sh-tdep.c (sh_gdbarch_init): Ditto.
6524 * s390-tdep.c (s390_gdbarch_init): Ditto.
6525 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6526 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6527 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6528 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6529 * i386-tdep.c (i386_gdbarch_init): Ditto.
6530 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6531 * frv-tdep.c (frv_gdbarch_init): Ditto.
6532 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6533 * cris-tdep.c (cris_gdbarch_init): Ditto.
6534 * avr-tdep.c (avr_gdbarch_init): Ditto.
6535 * arm-tdep.c (arm_gdbarch_init): Ditto.
6537 2003-03-31 J. Brobecker <brobecker@gnat.com>
6539 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6540 (INIT_FRAME_AP): Likewise.
6541 (EXTRA_FRAME_INFO): Likewise.
6543 2003-03-31 Andrew Cagney <cagney@redhat.com>
6545 * gdbarch.sh: Include "symfile.h".
6546 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6547 * gdbarch.h, gdbarch.c: Re-generate.
6548 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6549 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6550 call_dummy_address, the default is at entry_point_address.
6551 * v850-tdep.c (v850_gdbarch_init): Ditto.
6552 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6553 * sh-tdep.c (sh_gdbarch_init): Ditto.
6554 * s390-tdep.c (s390_gdbarch_init): Ditto.
6555 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6556 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6557 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6558 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6559 * i386-tdep.c (i386_gdbarch_init): Ditto.
6560 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6561 * frv-tdep.c (frv_gdbarch_init): Ditto.
6562 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6563 * cris-tdep.c (cris_gdbarch_init): Ditto.
6564 * arm-tdep.c (arm_gdbarch_init): Ditto.
6566 2003-03-31 Andrew Cagney <cagney@redhat.com>
6568 * gdbarch.sh (CALL_DUMMY_P): Delete.
6569 * gdbarch.h, gdbarch.c: Re-generate.
6570 * inferior.h (CALL_DUMMY_P): Delete macro.
6571 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6572 * vax-tdep.c (vax_gdbarch_init): Update.
6573 * v850-tdep.c (v850_gdbarch_init): Update.
6574 * sparc-tdep.c (sparc_gdbarch_init): Update.
6575 * sh-tdep.c (sh_gdbarch_init): Update.
6576 * s390-tdep.c (s390_gdbarch_init): Update.
6577 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6578 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6579 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6580 * mips-tdep.c (mips_gdbarch_init): Update.
6581 * mcore-tdep.c (mcore_gdbarch_init): Update.
6582 * m68k-tdep.c (m68k_gdbarch_init): Update.
6583 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6584 * ia64-tdep.c (ia64_gdbarch_init): Update.
6585 * i386-tdep.c (i386_gdbarch_init): Update.
6586 * h8300-tdep.c (h8300_gdbarch_init): Update.
6587 * frv-tdep.c (frv_gdbarch_init): Update.
6588 * d10v-tdep.c (d10v_gdbarch_init): Update.
6589 * cris-tdep.c (cris_gdbarch_init): Update.
6590 * breakpoint.c (deprecated_frame_in_dummy): Update.
6591 * avr-tdep.c (avr_gdbarch_init): Update.
6592 * alpha-tdep.c (alpha_gdbarch_init): Update.
6593 * arm-tdep.c (arm_gdbarch_init): Update.
6594 * dummy-frame.c (dummy_frame_this_id): Update comments.
6595 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6596 * frame.c (legacy_get_prev_frame): Ditto.
6597 * valops.c (call_function_by_hand): Delete function.
6598 (hand_function_call): Rename to call_function_by_hand
6600 2003-03-30 Andrew Cagney <cagney@redhat.com>
6602 2002-11-10 Klee Dienes <kdienes@apple.com>
6603 * value.h (struct value): Update comment.
6605 2003-03-30 Andrew Cagney <cagney@redhat.com>
6607 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6609 (d10v_gdbarch_init): Do not set fp_regnum.
6611 * frame.c (get_frame_base): Force ID initialization.
6612 (get_prev_frame): Move computation of the frame ID from here ...
6613 (get_frame_id): ... to here.
6614 (legacy_get_prev_frame): Mark the frame ID as valid.
6615 * frame.h (struct frame_info): Add field "id_p".
6617 2003-03-30 Mark Kettenis <kettenis@gnu.org>
6619 * i386-tdep.c (i386_store_struct_return): Removed.
6620 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6622 2003-03-30 Andrew Cagney <cagney@redhat.com>
6624 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6625 * gdbarch.h, gdbarch.c: Regenerate.
6626 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6627 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6628 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6629 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6630 * i386-tdep.c (i386_gdbarch_init): Ditto.
6631 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6632 * cris-tdep.c (cris_gdbarch_init): Ditto.
6633 * vax-tdep.c (vax_gdbarch_init): Ditto.
6634 * s390-tdep.c (s390_gdbarch_init): Ditto.
6635 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6636 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6637 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6638 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6639 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6640 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6641 * sparc-tdep.c (sparc_gdbarch_init): Update.
6642 * sh-tdep.c (sh_gdbarch_init): Update.
6643 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6644 * mips-tdep.c (mips_gdbarch_init): Update.
6645 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6646 * ia64-tdep.c (ia64_gdbarch_init): Update.
6647 * frv-tdep.c (frv_gdbarch_init): Update.
6648 * avr-tdep.c (avr_gdbarch_init): Update.
6649 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6650 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
6651 instead of when push_dummy_call is not available.
6653 2003-03-30 Andrew Cagney <cagney@redhat.com>
6655 * infttrace.c: Include "gdbthread.h".
6656 (parent_attach_all): Fix function signature.
6657 (call_ptrace): Update call.
6658 * Makefile.in (infttrace.o): Update dependencies.
6660 2003-03-30 Andrew Cagney <cagney@redhat.com>
6662 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6663 PUSH_RETURN_ADDRESS.
6664 * gdbarch.h, gdbarch.c: Regenerate.
6665 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6666 * x86-64-tdep.c (x86_64_init_abi): Update.
6667 * v850-tdep.c (v850_gdbarch_init): Update.
6668 * sparc-tdep.c (sparc_gdbarch_init): Update.
6669 * sh-tdep.c (sh_gdbarch_init): Update.
6670 * s390-tdep.c (s390_gdbarch_init): Update.
6671 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6672 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6673 * mips-tdep.c (mips_gdbarch_init): Update.
6674 * mcore-tdep.c (mcore_gdbarch_init): Update.
6675 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6676 * ia64-tdep.c (ia64_gdbarch_init): Update.
6677 * i386-tdep.c (i386_gdbarch_init): Update.
6678 * h8300-tdep.c (h8300_gdbarch_init): Update.
6679 * frv-tdep.c (frv_gdbarch_init): Update.
6680 * cris-tdep.c (cris_gdbarch_init): Update.
6681 * avr-tdep.c (avr_gdbarch_init): Update.
6682 * arm-tdep.c (arm_gdbarch_init): Update.
6683 * valops.c (hand_function_call): Update.
6685 2003-03-29 Andrew Cagney <cagney@redhat.com>
6687 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6688 sizeof_call_dummy_words.
6689 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6691 * gdbarch.h: Regenerate.
6693 2003-03-29 Andrew Cagney <cagney@redhat.com>
6695 * infttrace.h: New file.
6696 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6697 (hpread_get_textlow): Detect an uninitialized dn_bufp.
6698 (hpread_read_doc_function_type): Detect an initialized type1.
6699 (hpread_quick_traverse): Initialize mod_name_string.
6700 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6701 (som_solib_get_solib_by_pc): Declare.
6702 (so_lib_thread_start_addr): Declare.
6703 (no_shared_libraries): Declare.
6704 * somread.c (init_import_symbols): Make static. Add forward
6706 * config/pa/nm-hppah.h: Include "infttrace.h" for
6708 (hppa_insert_hw_watchpoint): Declare.
6709 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6710 * hppah-nat.c: Include "gdb_string.h".
6711 (parent_attach_all): Delete extern declaration, moved to
6713 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
6715 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
6716 * Makefile.in (infttrace_h): Define.
6717 (hpread.o): Update dependencies.
6718 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
6719 * hppa-hpux-tdep.c: Include "gdb_string.h".
6720 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
6721 * infrun.c (handle_inferior_event): Always initialize
6722 stepped_after_stopped_by_watchpoint. Add default and remove
6723 fallthrough in switch statement.
6724 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
6726 (hppa_remove_hw_watchpoint): Ditto.
6728 2003-03-29 Andrew Cagney <cagney@redhat.com>
6730 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
6733 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
6735 * arm-tdep.c (arm_push_arguments): Delete.
6736 (struct stack_item): New type.
6737 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
6738 (arm_store_struct_return): Delte.
6739 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
6740 arm_push_arguments or arm_store_struct_return.
6742 2003-03-28 Andrew Cagney <cagney@redhat.com>
6744 * Makefile.in (d10v-tdep.o): Update dependencies.
6745 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
6746 * d10v-tdep.c: Include "remote.h".
6747 (target_resume_hook): Delete extern declaration.
6748 (target_wait_loop_hook): Ditto.
6749 (tdisassemble_command): Eliminate assignment in "if" conditional.
6750 (d10v_ts2_register_sim_regno): Eliminate call to
6751 legacy_register_sim_regno.
6752 (d10v_ts3_register_sim_regno): Ditto.
6754 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
6756 * thread.c: Reindented.
6758 * linux-proc.c: Ditto.
6760 2003-03-28 Bob Rossi <bob_rossi@cox.net>
6762 * MAINTAINERS (write after approval): Add myself.
6764 2003-03-27 Theodore A. Roth <troth@openavr.org>
6766 * objc-exp.y: Add missing semi-colons.
6768 2003-03-27 Andrew Cagney <cagney@redhat.com>
6770 * regcache.c (write_sp): Delete function and references.
6771 * inferior.h (write_sp): Delete declaration.
6772 * valops.c (hand_function_call): Replace write_sp with
6774 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
6775 (sparc_pop_frame): Ditto.
6777 2003-03-27 Andrew Cagney <cagney@redhat.com>
6779 * NEWS: Mention removal of support for hppa*-*-bsd* and
6780 hppa*-*-osf* natives, and hppa*-*-pro* target.
6781 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
6782 * config/pa/xm-pa.h: Obsolete file.
6783 * config/pa/xm-hppab.h: Obsolete file.
6784 * config/pa/nm-hppab.h: Obsolete file.
6785 * config/pa/tm-hppab.h: Obsolete file.
6786 * config/pa/tm-hppao.h: Obsolete file.
6787 * config/pa/nm-hppao.h: Obsolete file.
6788 * config/pa/tm-pro.h: Obsolete file.
6789 * config/pa/hppaosf.mt: Obsolete file.
6790 * config/pa/hppaosf.mh: Obsolete file.
6791 * config/pa/hppapro.mt: Obsolete file.
6792 * config/pa/hppabsd.mt: Obsolete file.
6793 * config/pa/hppabsd.mh: Obsolete file.
6794 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
6795 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
6798 2003-03-27 Andrew Cagney <cagney@redhat.com>
6800 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
6801 push_arguments. Don't set push_return_address or write_sp.
6802 (d10v_push_dummy_call): Replace d10v_push_arguments.
6803 (d10v_push_return_address, d10v_write_sp): Delete function,
6804 handled by push_dummy_call.
6806 2003-03-26 Andrew Cagney <cagney@redhat.com>
6808 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
6809 (push_dummy_call): New pure multi-arch replacement with gdbarch,
6810 regcache and dummy_addr parameters.
6811 * gdbarch.h, gdbarch.c: Re-generate.
6812 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
6813 available; assume it will handle stack alignment and return
6814 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
6815 legacy_push_arguments.
6816 (legacy_push_arguments): Rename default_push_arguments.
6817 * value.h (legacy_push_arguments): Rename default_push_arguments.
6818 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
6819 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6820 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6821 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6822 * config/i386/tm-symmetry.h: Update.
6823 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6824 * x86-64-tdep.c (x86_64_init_abi): Update.
6825 * v850-tdep.c (v850_gdbarch_init): Update.
6826 * sparc-tdep.c (sparc_gdbarch_init): Update.
6827 * sh-tdep.c (sh_gdbarch_init): Update.
6828 * s390-tdep.c (s390_gdbarch_init): Update.
6829 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6830 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6831 * mips-tdep.c (mips_gdbarch_init): Update.
6832 * mcore-tdep.c (mcore_gdbarch_init): Update.
6833 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6834 * ia64-tdep.c (ia64_gdbarch_init): Update.
6835 * i386-tdep.c (i386_gdbarch_init): Update.
6836 * hppa-tdep.c (hppa_gdbarch_init): Update.
6837 * h8300-tdep.c (h8300_gdbarch_init): Update.
6838 * frv-tdep.c (frv_gdbarch_init): Update.
6839 * d10v-tdep.c (d10v_gdbarch_init): Update.
6840 * cris-tdep.c (cris_gdbarch_init): Update.
6841 * avr-tdep.c (avr_gdbarch_init): Update.
6842 * arm-tdep.c (arm_gdbarch_init): Update.
6843 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6844 * alpha-tdep.c (alpha_gdbarch_init): Update.
6846 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6848 * signals/signals.c (do_target_signal_to_host): Correct realtime
6851 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6853 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
6854 (struct sal_chain, map_catch_names): Remove.
6855 (catch_exception_command_1): Don't call
6856 handle_gnu_4_16_catch_command.
6858 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6860 From Mark Dettinger <dettinge@de.ibm.com>:
6861 * dwarf2cfi.c (read_2u): Increment pointer by two.
6863 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6865 * signals/signals.c: Fix typos in last change.
6867 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6869 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
6870 not already defined. Use __SIGRTMIN if available.
6871 (target_signal_from_host): Remove SIGRTMIN block.
6872 (do_target_signal_to_host): Remove SIGRTMIN block; check that
6873 the signal is within the realtime range.
6875 2003-03-25 Adam Fedor <fedor@gnu.org>
6877 * Makefile.in (infrun.o): Add $(language_h)
6878 * infrun.c (handle_inferior_event): Use skip_language_trampoline
6879 for language specific trampolines.
6880 * language.h (struct language_defn): Add skip_trampoline.
6881 (skip_language_trampoline): Declare.
6882 * language.c (unk_lang_trampoline, skip_language_trampoline):
6884 (unknown_language_defn, auto_language_defn, local_language_defn):
6885 Add ukn_lang_trampoline.
6886 * ada-lang.c (ada_language_defn): Add NULL for language
6887 specific skip_trampoline.
6888 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
6889 scm-lang.c: Likewise.
6890 * objc-lang.c (objc_skip_trampoline): New function.
6891 (objc_language_defn): Add objc_skip_trampoline.
6893 2003-03-25 Andrew Cagney <cagney@redhat.com>
6895 * frame.c (get_prev_frame): Delay validating a frame's ID -
6896 non-NULL, didn't go backwards - until an attempt to unwind it to
6899 2003-03-25 Andrew Cagney <cagney@redhat.com>
6901 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
6902 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
6903 * gdbarch.h, gdbarch.c: Re-generate.
6904 * config/sparc/tm-sparc.h
6905 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
6906 * sparc-tdep.c (sparc_gdbarch_init): Set
6907 deprecated_extra_stack_alignment_needed.
6908 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
6909 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
6910 extra_stack_alignment_needed.
6911 * v850-tdep.c (v850_gdbarch_init): Ditto.
6912 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6913 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6914 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6915 * cris-tdep.c (cris_gdbarch_init): Ditto.
6916 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6917 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6919 2003-03-25 Andrew Cagney <cagney@redhat.com>
6921 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
6922 STORE_STRUCT_RETURN.
6923 * gdbarch.h, gdbarch.c: Regenerate.
6924 * d10v-tdep.c (d10v_store_struct_return): Delete function.
6925 (d10v_push_arguments): Set the struct return register.
6926 (d10v_gdbarch_init): Update.
6927 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6928 * x86-64-tdep.c (x86_64_init_abi): Update.
6929 * vax-tdep.c (vax_gdbarch_init): Update.
6930 * v850-tdep.c (v850_gdbarch_init): Update.
6931 * sparc-tdep.c (sparc_gdbarch_init): Update.
6932 * sh-tdep.c (sh_gdbarch_init): Update.
6933 * s390-tdep.c (s390_gdbarch_init): Update.
6934 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6935 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6936 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6937 * mips-tdep.c (mips_gdbarch_init): Update.
6938 * mcore-tdep.c (mcore_gdbarch_init): Update.
6939 * m68k-tdep.c (m68k_gdbarch_init): Update.
6940 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6941 * ia64-tdep.c (ia64_gdbarch_init): Update.
6942 * i386-tdep.c (i386_gdbarch_init): Update.
6943 * hppa-tdep.c (hppa_gdbarch_init): Update.
6944 * h8300-tdep.c (h8300_gdbarch_init): Update.
6945 * frv-tdep.c (frv_gdbarch_init): Update.
6946 * cris-tdep.c (cris_gdbarch_init): Update.
6947 * avr-tdep.c (avr_gdbarch_init): Update.
6948 * arm-tdep.c (arm_gdbarch_init): Update.
6949 * alpha-tdep.c (alpha_gdbarch_init): Update.
6951 2003-03-25 Andrew Cagney <cagney@redhat.com>
6953 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
6954 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
6955 CALL_DUMMY_STACK_ADJUST with a predicate variable.
6956 * gdbarch.h, gdbarch.c: Regenerate.
6957 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6958 call_dummy_stack_adjust_p.
6959 * vax-tdep.c (vax_gdbarch_init): Ditto.
6960 * v850-tdep.c (v850_gdbarch_init): Ditto.
6961 * sh-tdep.c (sh_gdbarch_init): Ditto.
6962 * s390-tdep.c (s390_gdbarch_init): Ditto.
6963 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6964 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6965 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6966 * mips-tdep.c (mips_gdbarch_init): Ditto.
6967 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6968 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6969 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6970 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6971 * i386-tdep.c (i386_gdbarch_init): Ditto.
6972 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6973 * frv-tdep.c (frv_gdbarch_init): Ditto.
6974 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6975 * cris-tdep.c (cris_gdbarch_init): Ditto.
6976 * avr-tdep.c (avr_gdbarch_init): Ditto.
6977 * arm-tdep.c (arm_gdbarch_init): Ditto.
6978 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6979 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6980 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
6981 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6982 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
6983 call_dummy_stack_adjust_p.
6984 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
6985 (CALL_DUMMY_STACK_ADJUST): Delete macro.
6986 * sparc-tdep.c (sparc32_push_arguments): Update.
6987 * valops.c (hand_function_call): Update.
6989 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
6991 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
6992 set_gdbarch_char_signed.
6994 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
6997 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
6999 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7001 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7002 (_initialize_arm_tdep): Don't set tm_print_insn.
7004 2003-03-24 Adam Fedor <fedor@gnu.org>
7006 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7007 * objc-lang.h: Add multiple inclusion protection.
7008 (start_msglist, add_msglist, end_msglist): Additional declarations.
7010 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7012 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7013 value was renamed to ARM_FLOAT_SOFT_FPA.
7015 2003-03-23 Andrew Cagney <cagney@redhat.com>
7017 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7018 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7019 * gdbarch.h, gdbarch.c: Regenerate.
7020 * valops.c (hand_function_call): Update.
7021 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7022 * frame.c (legacy_saved_regs_this_id): Update.
7023 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7024 * dummy-frame.h: Update.
7025 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7026 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7027 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7028 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7029 * config/m68k/tm-sun3.h: Update.
7030 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7031 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7032 * x86-64-tdep.c (x86_64_init_abi): Update.
7033 * vax-tdep.c (vax_gdbarch_init): Update.
7034 * v850-tdep.c (v850_gdbarch_init): Update.
7035 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7036 * sh-tdep.c (sh_gdbarch_init): Update.
7037 * s390-tdep.c (s390_gdbarch_init): Update.
7038 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7039 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7040 (frame_get_saved_regs): Update.
7041 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7042 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7043 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7044 * mips-tdep.c (mips_gdbarch_init): Update.
7045 * mcore-tdep.c (mcore_gdbarch_init): Update.
7046 * m68k-tdep.c (m68k_gdbarch_init): Update.
7047 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7048 * ia64-tdep.c (ia64_gdbarch_init): Update.
7049 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7050 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7051 (i386_interix_back_one_frame): Update.
7052 * hppa-tdep.c (hppa_gdbarch_init): Update.
7053 (hppa_init_extra_frame_info): Update.
7054 * h8300-tdep.c (h8300_gdbarch_init): Update.
7055 * frv-tdep.c (frv_gdbarch_init): Update.
7056 * cris-tdep.c (cris_gdbarch_init): Update.
7057 * avr-tdep.c (avr_gdbarch_init): Update.
7058 * arm-tdep.c (arm_gdbarch_init): Update.
7059 * alpha-tdep.c (alpha_gdbarch_init): Update.
7061 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7063 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7064 (arm_get_fp_model): Declare.
7065 * arm-tdep.c (fp_model_strings): New string array.
7066 (arm_fp_model, current_fp_model): New variables.
7067 (arm_get_fp_model): New function.
7068 (arm_set_fp): New function.
7069 (set_fp_model_sfunc): New function.
7070 (show_fp_model): New function.
7071 (_initialize_arm_tdep): Add new command to set/show the FPU.
7072 (arm_extract_return_value): Use arm_get_fp_model.
7073 (arm_store_return_value): Likewise.
7074 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7075 to initialize the floating-point data types.
7076 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7079 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7081 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7082 the current setting of each value.
7083 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7084 new_set and new_show. Use add_setshow_cmd_full and
7085 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7086 commands and add new version as subcommands of "set/show arm".
7088 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7090 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7091 (set_arm_command, show_arm_command): New functions.
7092 (_initialize_arm_tdep): Add them.
7093 (num_disassembly_options): Renamed from num_flavor_options.
7094 (valid_disassembly_styles): Renamed from valid_flavors.
7095 (disassembly_style): Renamed from disassembly_flavor.
7096 (set_disassembly_style_sfunc): Renamed from
7097 set_disassembly_flavor_sfunc.
7098 (set_disassembly_style): Renamed from set_disassembly_flavor.
7099 (arm_othernames): Updated.
7100 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7101 command. Add "set/show arm disassembly" commands. Deprecate
7102 "othernames" command.
7104 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7106 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7107 (arm-tdep.o): Depend on elf_arm_h.
7109 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7111 * Makefile.in (coff_internal_h): Define.
7112 (arm-tdep.o): Update dependencies.
7114 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7116 * arm-tdep.c (prologue_cache): Delete.
7117 (check_prologue_cache, save_prologue_cache): Delete.
7118 (arm_scan_prologue): Don't check or update the prologue_cache.
7119 (arm_gdb_arch_init): Don't initialize it.
7120 (_initialize_arm_tdep): Likewise.
7122 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7124 * MAINTAINERS (tui): Maintainer of tui code.
7126 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7128 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7129 (i386-cygwin-tdep.o): Add dependencies.
7130 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7131 * i386-cygwin-tdep.c: New file.
7132 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7133 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7135 2003-03-20 Andrew Cagney <cagney@redhat.com>
7137 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7138 (handle_inferior_event): Remove code calling
7139 DYNAMIC_TRAMPOLINE_NEXTPC.
7141 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7142 already has a full path.
7144 * main.c (gdb_main): Return 1.
7145 (captured_main): Call error to report an invalid interpreter.
7147 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7148 * alpha-osf1-tdep.c: Include "gdb_string.h".
7150 2003-03-19 J. Brobecker <brobecker@gnat.com>
7152 Continuing work to convert the hppa targets to multiarch partial.
7154 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7155 method, now that hppa_push_dummy_frame has a conformant prototype.
7156 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7157 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7158 for the switch to multiarch partial.
7160 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7162 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7163 when iss is issNull.
7165 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7167 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7168 NUM_REGS bounds check.
7170 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7172 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7173 * mips-tdep.c (gdb_assert.h): Include.
7174 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7175 (mips_register_name): Handle integer registers explicitly. Add
7177 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7178 (mips_lsi33k_reg_names): Don't list integer registers; they're
7179 handled by mips_register_name() now.
7180 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7181 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7182 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7183 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7184 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7186 2003-03-18 Andrew Cagney <cagney@redhat.com>
7188 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7190 * gdbtypes.h (print_scalar_formatted): Update declaration.
7191 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7193 2003-03-18 J. Brobecker <brobecker@gnat.com>
7195 * infrun.c (observer.h): Add #include.
7196 (normal_stop): Add call to observer_notify_normal_stop.
7197 * Makefile.in (infrun.o): Add dependency on observer.h.
7199 2003-03-18 J. Brobecker <brobecker@gnat.com>
7201 Continuing work to convert the hppa targets to multiarch partial.
7202 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7203 parameter. Reformat comment.
7204 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7205 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7206 to match new profile.
7208 2003-03-18 J. Brobecker <brobecker@gnat.com>
7210 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7211 appear to be working in any case.
7213 2003-03-18 J. Brobecker <brobecker@gnat.com>
7215 * observer.c (observer_test_first_observer): New static variable.
7216 (observer_test_second_observer): Likewise.
7217 (observer_test_third_observer): Likewise.
7218 (observer_test_first_notification_function): New static function.
7219 (observer_test_second_notification_function): Likewise.
7220 (observer_test_third_notification_function): Likewise.
7222 2003-03-17 J. Brobecker <brobecker@gnat.com>
7224 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7225 * somsolib.c (gdb_assert.h): Likewise.
7226 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7227 (somsolib.o): Likewise.
7229 2003-03-17 Andrew Cagney <cagney@redhat.com>
7231 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7232 BFD. Simplify setting of di.endian.
7234 2003-03-17 Andrew Cagney <cagney@redhat.com>
7236 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7237 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7239 From Elena Zannoni <ezannoni@redhat.com>
7240 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7241 vector and floating-point parameters.
7242 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7244 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7246 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7248 * MAINTAINERS: Remove my name from several maintainership roles.
7250 2003-03-17 Andrew Cagney <cagney@redhat.com>
7252 Fix frame off-by-one bug.
7253 * frame-unwind.h (frame_this_id_ftype): Replace
7254 frame_unwind_id_ftype.
7255 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7256 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7257 with "prev_register".
7258 * frame-unwind.c (frame_unwind_find_by_pc): Return
7259 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7261 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7262 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7263 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7264 (dummy_frame_unwind): Update.
7265 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7266 sentinel_frame_register_unwind.
7267 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7268 (sentinel_frame_unwinder): Update.
7269 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7270 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7271 * frame.c (create_sentinel_frame): Update. Initialize
7272 "prologue_cache" instead of "unwind_cache".
7273 (frame_register_unwind): Call this frame's prev_register with the
7274 next frame and this frame's prologue cache.
7275 (get_prev_frame): Simplify. Always call prev frame's this_id with
7276 this frame and prev frame's prologue cache. Document that this
7277 call is shifted one to the left when compared to the
7278 frame_register_unwind call.
7279 (legacy_saved_regs_prev_register): Replace
7280 frame_saved_regs_register_unwind.
7281 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7282 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7283 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7284 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7285 (d10v_frame_unwind): Update.
7286 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7287 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7288 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7289 "saved_regs" with "this_saved_regs".
7291 2003-03-16 Andrew Cagney <cagney@redhat.com>
7293 * frame.c (frame_pop): Don't call target_store_registers. Fix
7294 problem reported by Mark Kettenis.
7296 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7298 * i386-tdep.c (i386_register_type): Renamed from
7299 i386_register_virtual_type. Adjust function signature.
7300 (i386_gdbarch_init): Set register_type instead of
7301 deprecated_max_register_raw_size,
7302 deprecated_max_register_virtual_size and register_virtual_type.
7304 2003-03-14 Andrew Cagney <cagney@redhat.com>
7306 * frame.c (get_prev_frame): When a legacy frame, always call
7307 legacy_get_prev_frame. Simplify unwind code using assumption that
7308 the unwinder is new.
7309 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7310 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7311 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7313 2003-03-14 Andrew Cagney <cagney@redhat.com>
7315 * frame.c (get_saved_register): Delete function.
7316 * frame.h (get_saved_register): Delete declaration.
7317 * xstormy16-tdep.c: Update comment.
7318 * regcache.h: Update comments.
7319 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7320 get_saved_register and extract_address, use
7321 frame_read_unsigned_register.
7322 (sparc_frame_saved_pc): Ditto.
7323 (sparc_get_saved_register): Instead of get_saved_register, use
7325 (sparc_pop_frame): Ditto.
7326 * findvar.c: Update comments.
7327 (value_of_register): Call frame_register instead of
7329 (value_from_register): Ditto.
7330 * config/sparc/tm-sparc.h: Update comment.
7331 * breakpoint.c: Update comment.
7333 2003-03-14 Andrew Cagney <cagney@redhat.com>
7335 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7337 * gdbarch.h, gdbarch.c: Re-generate.
7338 * frame.h: Update comments.
7339 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7340 * x86-64-tdep.c (x86_64_init_abi): Update.
7341 * sparc-tdep.c (sparc_gdbarch_init): Update.
7342 * sh-tdep.c (sh_gdbarch_init): Update.
7343 * mips-tdep.c (mips_gdbarch_init): Update.
7344 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7345 * cris-tdep.c (cris_gdbarch_init): Update.
7346 * ia64-tdep.c (ia64_gdbarch_init): Update.
7347 * frame.c (frame_register): Update.
7348 (get_saved_register): Update.
7349 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7351 2003-03-13 Andrew Cagney <cagney@redhat.com>
7353 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7354 * gdbarch.h, gdbarch.c: Regenerate.
7355 * valops.c (hand_function_call): Update comment.
7356 * stack.c (return_command): Update comment.
7357 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7358 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7359 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7360 * x86-64-tdep.c (x86_64_init_abi): Update.
7361 * vax-tdep.c (vax_gdbarch_init): Update.
7362 * v850-tdep.c (v850_gdbarch_init): Update.
7363 * sparc-tdep.c (sparc_gdbarch_init): Update.
7364 * sh-tdep.c (sh_gdbarch_init): Update.
7365 * s390-tdep.c (s390_gdbarch_init): Update.
7366 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7367 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7368 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7369 * mips-tdep.c (mips_gdbarch_init): Update.
7370 * mcore-tdep.c (mcore_gdbarch_init): Update.
7371 * m68k-tdep.c (m68k_gdbarch_init): Update.
7372 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7373 * ia64-tdep.c (ia64_gdbarch_init): Update.
7374 * i386-tdep.c (i386_gdbarch_init): Update.
7375 * hppa-tdep.c (hppa_gdbarch_init): Update.
7376 * h8300-tdep.c (h8300_gdbarch_init): Update.
7377 * frv-tdep.c (frv_gdbarch_init): Update.
7378 * cris-tdep.c (cris_gdbarch_init): Update.
7379 * avr-tdep.c (avr_gdbarch_init): Update.
7380 * arm-tdep.c (arm_gdbarch_init): Update.
7381 * alpha-tdep.c (alpha_gdbarch_init): Update.
7383 2003-03-13 Andrew Cagney <cagney@redhat.com>
7385 * frame.c (legacy_frame_p): New function.
7386 (get_prev_frame): Use legacy_frame_p.
7387 * frame.h (legacy_frame_p): Declare.
7389 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7391 * MAINTAINERS (write after approval): Alphabetically
7394 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7396 * MAINTAINERS (write after approval): Add myself.
7398 2003-03-12 Andrew Cagney <cagney@redhat.com>
7400 * frame.c (get_prev_frame): Rename the frame parameter to
7402 (get_next_frame, legacy_get_prev_frame): Ditto.
7404 2003-03-12 Andrew Cagney <cagney@redhat.com>
7406 * frame.c (get_current_frame): Check target_has_registers before
7407 checking target_has_stack.
7408 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7409 instead of deprecated_selected_frame.
7410 * findvar.c (value_of_register): Pass "frame", not
7411 deprecated_selected_frame, to value_of_builtin_reg.
7413 2003-03-12 Andrew Cagney <cagney@redhat.com>
7415 * regcache.c (regcache_cooked_write_signed): New function.
7416 (regcache_cooked_write_unsigned): New function.
7417 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7418 (regcache_cooked_read_signed): Fix regnum in range assertion.
7419 * regcache.h (regcache_cooked_write_signed): Declare.
7420 (regcache_cooked_write_unsigned): Declare.
7422 2003-03-12 Andrew Cagney <cagney@redhat.com>
7424 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7425 * gdbarch.h, gdbarch.c: Re-generate.
7426 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7427 * x86-64-tdep.h: Update.
7428 * x86-64-tdep.c (x86_64_init_abi): Update.
7429 * v850-tdep.c (v850_gdbarch_init): Update.
7430 * sparc-tdep.c (sparc_gdbarch_init): Update.
7431 * sh-tdep.c (sh_gdbarch_init): Update.
7432 * s390-tdep.c (s390_gdbarch_init): Update.
7433 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7434 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7435 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7436 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7437 * mips-tdep.c (mips_gdbarch_init): Update.
7438 * mcore-tdep.c (mcore_gdbarch_init): Update.
7439 * m68k-tdep.c (m68k_gdbarch_init): Update.
7440 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7441 * ia64-tdep.c (ia64_gdbarch_init): Update.
7442 * i386-tdep.c (i386_gdbarch_init): Update.
7443 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7444 * hppa-tdep.c (hppa_gdbarch_init): Update.
7445 * h8300-tdep.c (h8300_gdbarch_init): Update.
7446 * frv-tdep.c (frv_gdbarch_init): Update.
7447 * cris-tdep.c (cris_gdbarch_init): Update.
7448 * avr-tdep.c (avr_gdbarch_init): Update.
7449 * arm-tdep.c (arm_gdbarch_init): Update.
7450 * alpha-tdep.c (alpha_gdbarch_init): Update.
7451 * sh-tdep.c (sh_init_extra_frame_info): Update.
7452 (sh64_init_extra_frame_info): Update.
7453 * ns32knbsd-nat.c (frame_num_args): Update.
7454 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7455 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7456 (xstormy16_frame_chain_valid): Update.
7457 * vax-tdep.c (vax_saved_pc_after_call): Update.
7458 * v850-tdep.c (v850_frame_chain): Update.
7459 (v850_pop_frame): Update.
7460 (v850_init_extra_frame_info): Update.
7461 * sparc-tdep.c (setup_arbitrary_frame): Update.
7462 * ns32k-tdep.c (umax_frame_num_args): Update.
7463 * s390-tdep.c (s390_pop_frame_regular): Update.
7464 * mn10300-tdep.c (mn10300_frame_chain): Update.
7465 (mn10300_pop_frame_regular): Update.
7466 (mn10300_init_extra_frame_info): Update.
7467 * mips-tdep.c (mips_init_frame_pc_first): Update.
7468 (mips_frame_chain): Update.
7469 (mips_pop_frame): Update.
7470 * mcore-tdep.c (mcore_frame_chain): Update.
7471 (mcore_pop_frame): Update.
7472 (mcore_init_extra_frame_info): Update.
7473 * arch-utils.c (init_frame_pc_default): Update.
7474 * m68k-tdep.c (isi_frame_num_args): Update.
7475 (delta68_frame_num_args): Update.
7476 (news_frame_num_args): Update.
7477 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7478 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7479 (alpha_frame_chain): Update.
7480 (alpha_pop_frame): Update.
7481 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7482 (hppa_init_extra_frame_info): Update.
7483 (hppa_frame_chain): Update.
7484 (hppa_frame_chain_valid): Update.
7485 * cris-tdep.c (cris_init_extra_frame_info): Update.
7486 * avr-tdep.c (avr_init_extra_frame_info): Update.
7487 * arm-tdep.c (arm_frame_chain_valid): Update.
7488 (arm_init_extra_frame_info): Update.
7489 (arm_pop_frame): Update.
7490 * frame.c (frame_pc_unwind): Update.
7491 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7492 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7493 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7494 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7495 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7496 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7498 2003-03-12 Andrew Cagney <cagney@redhat.com>
7500 Eliminate the need for POP_FRAME.
7501 * frame.c (do_frame_unwind_register): New function.
7502 (frame_pop): When no POP_FRAME, pop the frame using register
7503 unwind and a scratch regcache.
7504 (frame_saved_regs_pop): Delete function.
7505 (trad_frame_unwinder): Update.
7506 * d10v-tdep.c (d10v_frame_pop): Delete function.
7507 (d10v_frame_unwind): Update.
7508 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7509 (sentinel_frame_unwinder): Update.
7510 * dummy-frame.c (dummy_frame_pop): Delete function.
7511 (dummy_frame_unwind): Update.
7512 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7513 (struct frame_unwind): Update.
7515 2003-03-11 Kevin Buettner <kevinb@redhat.com>
7517 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7518 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7519 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7520 Do range checks on register number obtained from debugging info.
7521 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7522 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7523 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7525 (do_fp_register_row): Fix typo which caused double type to be
7526 used when attempting to unpack a float.
7528 2003-03-11 J. Brobecker <brobecker@gnat.com>
7530 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7532 2003-03-11 Andrew Cagney <cagney@redhat.com>
7534 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7535 frame. Problem found by Corinna Vinschen.
7537 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7539 * doublest.c (floatformat_from_length): Accept also
7540 the real size of 'long double' type.
7542 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
7544 From Klee Dienes <kdienes@apple.com>:
7545 * breakpoint.c (bpstat_copy): Copy the command lines as well
7546 as the old value, to match what is freed in bpstat_clear.
7548 2003-03-10 David Carlton <carlton@math.stanford.edu>
7550 * minsyms.c (add_minsym_to_hash_table): Replace
7551 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7552 (compare_minimal_symbols, compact_minimal_symbols)
7553 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7554 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7555 of DEPRECATED_SYMBOL_MATCHES_NAME.
7556 (lookup_minimal_symbol_solib_trampoline): Ditto.
7558 2003-03-10 Andrew Cagney <cagney@redhat.com>
7560 * regcache.h (regcache_cooked_read_ftype): Define.
7561 (regcache_save, regcache_restore): Add a cooked_read parameter.
7562 * regcache.c (regcache_save, regcache_restore): Update.
7563 (do_cooked_read): New function.
7564 (regcache_cpy): Pass do_cooked_read to regcache_save and
7567 2003-03-10 Andrew Cagney <cagney@redhat.com>
7569 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7570 * gdbarch.h, gdbarch.c: Re-generate.
7571 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7572 * x86-64-tdep.h: Update.
7573 * x86-64-tdep.c (x86_64_init_abi): Update.
7574 * v850-tdep.c (v850_gdbarch_init): Update.
7575 * sparc-tdep.c (sparc_gdbarch_init): Update.
7576 * sh-tdep.c (sh_gdbarch_init): Update.
7577 * s390-tdep.c (s390_gdbarch_init): Update.
7578 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7579 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7580 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7581 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7582 * mips-tdep.c (mips_gdbarch_init): Update.
7583 * mcore-tdep.c (mcore_gdbarch_init): Update.
7584 * m68k-tdep.c (m68k_gdbarch_init): Update.
7585 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7586 * ia64-tdep.c (ia64_gdbarch_init): Update.
7587 * i386-tdep.c (i386_gdbarch_init): Update.
7588 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7589 * hppa-tdep.c (hppa_gdbarch_init): Update.
7590 * h8300-tdep.c (h8300_gdbarch_init): Update.
7591 * frv-tdep.c (frv_gdbarch_init): Update.
7592 * cris-tdep.c (cris_gdbarch_init): Update.
7593 * avr-tdep.c (avr_gdbarch_init): Update.
7594 * arm-tdep.c (arm_gdbarch_init): Update.
7595 * alpha-tdep.c (alpha_gdbarch_init): Update.
7596 * sh-tdep.c (sh_init_extra_frame_info): Update.
7597 (sh64_init_extra_frame_info): Update.
7598 * ns32knbsd-nat.c (frame_num_args): Update.
7599 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7600 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7601 (xstormy16_frame_chain_valid): Update.
7602 * vax-tdep.c (vax_saved_pc_after_call): Update.
7603 * v850-tdep.c (v850_frame_chain): Update.
7604 (v850_pop_frame): Update.
7605 (v850_init_extra_frame_info): Update.
7606 * sparc-tdep.c (setup_arbitrary_frame): Update.
7607 * ns32k-tdep.c (umax_frame_num_args): Update.
7608 * s390-tdep.c (s390_pop_frame_regular): Update.
7609 * mn10300-tdep.c (mn10300_frame_chain): Update.
7610 (mn10300_pop_frame_regular): Update.
7611 (mn10300_init_extra_frame_info): Update.
7612 * mips-tdep.c (mips_init_frame_pc_first): Update.
7613 (mips_frame_chain): Update.
7614 (mips_pop_frame): Update.
7615 * mcore-tdep.c (mcore_frame_chain): Update.
7616 (mcore_pop_frame): Update.
7617 (mcore_init_extra_frame_info): Update.
7618 * arch-utils.c (init_frame_pc_default): Update.
7619 * m68k-tdep.c (isi_frame_num_args): Update.
7620 (delta68_frame_num_args): Update.
7621 (news_frame_num_args): Update.
7622 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7623 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7624 (alpha_frame_chain): Update.
7625 (alpha_pop_frame): Update.
7626 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7627 (hppa_init_extra_frame_info): Update.
7628 (hppa_frame_chain): Update.
7629 (hppa_frame_chain_valid): Update.
7630 * cris-tdep.c (cris_init_extra_frame_info): Update.
7631 * avr-tdep.c (avr_init_extra_frame_info): Update.
7632 * arm-tdep.c (arm_frame_chain_valid): Update.
7633 (arm_init_extra_frame_info): Update.
7634 (arm_pop_frame): Update.
7635 * frame.c (frame_pc_unwind): Update.
7636 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7637 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7638 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7639 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7640 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7641 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7643 2003-03-10 Andrew Cagney <cagney@redhat.com>
7645 * gdbarch.sh (gdbarch_unwind_pc): New method.
7646 * gdbarch.h, gdbarch.c: Regenerate.
7647 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
7648 but use read_pc and FRAME_SAVED_PC as fall backs.
7649 (frame_saved_regs_pc_unwind): Delete function.
7650 (trad_frame_unwinder): Update.
7651 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7652 (struct frame_unwind): Update.
7653 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7654 (dummy_frame_unwind): Update.
7655 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7656 (sentinel_frame_unwinder): Update.
7657 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7658 (d10v_frame_unwind): Update.
7659 (d10v_unwind_pc): New function.
7660 (d10v_gdbarch_init): Set unwind_pc.
7662 2003-03-10 Andrew Cagney <cagney@redhat.com>
7664 * gdbarch.h: Re-generate.
7666 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7668 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7671 2003-03-08 Mark Kettenis <kettenis@gnu.org>
7673 * gdbarch.sh (save_dummy_frame_tos): Add comment.
7675 2003-03-08 Andrew Cagney <cagney@redhat.com>
7677 * cli-out.c: Update copyright.
7678 (cli_out_data): Define typedef. Use instead of ui_out_data.
7680 2003-03-08 Andrew Cagney <cagney@redhat.com>
7682 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7685 2003-03-07 Andrew Cagney <cagney@redhat.com>
7687 * gdbarch.sh: Don't generate two macro definitions when an
7688 undefined macro taking no arguments.
7689 * gdbarch.h: Regenerate.
7691 2002-03-07 Michal Ludvig <mludvig@suse.cz>
7693 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7694 (x86_64_unwind_dummy_id): New functions.
7695 (x86_64_init_abi): Register these two new functions.
7697 2003-03-07 Michal Ludvig <mludvig@suse.cz>
7699 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
7700 (x86_64_skip_prologue): Move prologue detection to
7702 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7704 2003-03-05 Andrew Cagney <cagney@redhat.com>
7706 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7707 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7708 * frame.c (get_prev_frame): Restructure the frame ID unwind code
7709 to use unwind_dummy_id when a dummy frame.
7710 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7712 * gdbarch.h, gdbarch.c: Regneerate.
7714 2003-03-05 Andrew Cagney <cagney@redhat.com>
7716 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
7717 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
7718 Do not use d10v_read_sp or d10v_read_fp when obtaining register
7721 2003-03-05 Andrew Cagney <cagney@redhat.com>
7723 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
7724 (struct d10v_unwind_cache): Delete field "frameless". Replace
7725 "next_addr" with "sp_offset". Add "r11_offset".
7726 (d10v_frame_unwind_cache): Update.
7727 (prologue_find_regs): Update. When "mv r11, sp", save the
7728 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
7729 RN was saved in r11_offset.
7731 2003-03-05 Andrew Cagney <cagney@redhat.com>
7733 * frame.c (deprecated_update_frame_pc_hack): Also update the the
7734 cached PC value in the next frame.
7736 2003-03-05 Andrew Cagney <cagney@redhat.com>
7738 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
7739 "id_unwind_cache" with "id".
7740 (frame_id_unwind): Delete declaration.
7741 * frame.c (frame_id_unwind): Delete function.
7742 (get_prev_frame): Call the frame id unwind method directly. Store
7743 the returned next frame's ID value in NEXT_FRAME. Note that there
7744 is a problem with the wrong unwind ID being called with the wrong
7747 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7749 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
7751 2003-03-05 James Ingham <jingham@apple.com>
7752 Daniel Jacobowitz <drow@mvista.com>
7754 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
7755 (auto_cp_abi): New variable.
7756 (current_cp_abi, num_cp_abis): Make static.
7757 (CP_ABI_MAX): Define.
7758 (cp_abis): Turn into an array.
7759 (value_virtual_fn_field): Fix formatting.
7760 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
7762 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
7763 (list_cp_abis, _initialize_cp_abi): New functions.
7764 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
7765 declarations for cp_abis, num_cp_abis, current_cp_abi, and
7766 switch_to_cp_abi. Update prototype for register_cp_abi.
7767 * Makefile.in (cp-abi.o): Update dependencies.
7768 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
7769 instead of switch_to_cp_abi.
7770 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
7772 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
7774 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
7776 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7778 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
7779 * dwarf2loc.c: Include "regcache.h".
7780 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
7782 * Makefile.in (dwarf2loc.o): Update dependencies.
7784 2003-03-04 Theodore A. Roth <troth@openavr.org>
7786 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
7787 number of io registers reported by remote target is not a multiple of
7790 2003-03-04 David Carlton <carlton@math.stanford.edu>
7792 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
7793 (lookup_symbol_aux_psymtabs): Update call to
7794 lookup_partial_symbol.
7795 (lookup_transparent_type, find_main_psymtab)
7796 (make_symbol_overload_list): Ditto.
7798 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
7800 * MAINTAINERS (Write after approval): Update my email address.
7802 2003-03-03 Andrew Cagney <cagney@redhat.com>
7804 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
7805 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
7806 predicate. Replace MAX_REGISTER_RAW_SIZE.
7807 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
7808 MAX_REGISTER_VIRTUAL_SIZE.
7809 * regcache.c (legacy_max_register_raw_size): New function.
7810 (legacy_max_register_virtual_size): New function.
7811 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
7812 (MAX_REGISTER_RAW_SIZE): Define.
7813 (legacy_max_register_raw_size): Declare.
7814 (legacy_max_register_virtual_size): Declare.
7815 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7816 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
7817 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7818 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7819 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7820 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7821 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7822 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7823 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7824 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7825 * vax-tdep.c (vax_gdbarch_init): Update.
7826 * v850-tdep.c (v850_gdbarch_init): Update.
7827 * sparc-tdep.c (sparc_gdbarch_init): Update.
7828 * sh-tdep.c (sh_gdbarch_init): Update.
7829 * s390-tdep.c (s390_gdbarch_init): Update.
7830 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7831 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7832 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7833 * mips-tdep.c (mips_gdbarch_init): Update.
7834 * mcore-tdep.c (mcore_gdbarch_init): Update.
7835 * m68k-tdep.c (m68k_gdbarch_init): Update.
7836 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7837 * ia64-tdep.c (ia64_gdbarch_init): Update.
7838 * i386-tdep.c (i386_gdbarch_init): Update.
7839 * hppa-tdep.c (hppa_gdbarch_init): Update.
7840 * h8300-tdep.c (h8300_gdbarch_init): Update.
7841 * frv-tdep.c (frv_gdbarch_init): Update.
7842 * cris-tdep.c (cris_gdbarch_init): Update.
7843 * avr-tdep.c (avr_gdbarch_init): Update.
7844 * arm-tdep.c (arm_gdbarch_init): Update.
7845 * alpha-tdep.c (alpha_gdbarch_init): Update.
7846 * d10v-tdep.c (d10v_gdbarch_init): Do not set
7847 max_register_raw_size or max_register_virtual_size.
7849 2003-03-03 David Carlton <carlton@math.stanford.edu>
7851 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
7852 SYMBOL_MATCHES_NAME, add comment.
7853 (SYMBOL_MATCHES_NATURAL_NAME): New.
7854 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
7855 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
7856 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
7857 * symtab.c (lookup_partial_symbol): Use
7858 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
7860 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
7861 SYMBOL_MATCHES_NAME.
7864 2003-03-03 David Carlton <carlton@math.stanford.edu>
7866 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
7867 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
7868 by regexp matching against SYMBOL_NATURAL_NAME.
7870 2003-03-03 David Carlton <carlton@math.stanford.edu>
7872 * linespec.c (find_method): Extract code into collect_methods.
7873 (collect_methods): New.
7875 2003-03-02 Mark Kettenis <kettenis@gnu.org>
7877 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
7880 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
7881 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7883 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
7885 * arch-utils.c (generic_register_byte): Fix to use the loop index
7886 and not regnum when summing the size of all registers up to regnum.
7888 2003-03-01 Andrew Cagney <cagney@redhat.com>
7890 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
7891 FRAME_INIT_SAVED_REGS.
7892 * gdbarch.h, gdbarch.c: Regenerate.
7893 * stack.c (frame_info): Update.
7894 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
7895 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
7896 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
7897 * ns32k-tdep.c (ns32k_pop_frame): Update.
7898 * mips-tdep.c (mips_pop_frame): Update.
7899 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
7900 * ia64-tdep.c (ia64_frame_chain): Update.
7901 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
7902 (ia64_frameless_function_invocation): Update.
7903 (ia64_init_extra_frame_info): Update.
7904 (ia64_pop_frame_regular): Update.
7905 * frame.h (struct frame_info): Update comment.
7906 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
7907 * frame.c (frame_saved_regs_register_unwind): Update.
7908 (frame_saved_regs_register_unwind): Update.
7909 (deprecated_generic_get_saved_register): Update.
7910 * cris-tdep.c: Update comment.
7911 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
7913 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7914 * x86-64-tdep.c (x86_64_init_abi): Update.
7915 * vax-tdep.c (vax_gdbarch_init): Update.
7916 * v850-tdep.c (v850_gdbarch_init): Update.
7917 * sparc-tdep.c (sparc_gdbarch_init): Update.
7918 * sh-tdep.c (sh_gdbarch_init): Update.
7919 * s390-tdep.c (s390_gdbarch_init): Update.
7920 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7921 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7922 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7923 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7924 * mips-tdep.c (mips_gdbarch_init): Update.
7925 * mcore-tdep.c (mcore_gdbarch_init): Update.
7926 * m68k-tdep.c (m68k_gdbarch_init): Update.
7927 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7928 * ia64-tdep.c (ia64_gdbarch_init): Update.
7929 * i386-tdep.c (i386_gdbarch_init): Update.
7930 * frv-tdep.c (frv_gdbarch_init): Update.
7931 * avr-tdep.c (avr_gdbarch_init): Update.
7932 * arm-tdep.c (arm_gdbarch_init): Update.
7933 * alpha-tdep.c (alpha_gdbarch_init): Update.
7935 2003-03-01 Andrew Cagney <cagney@redhat.com>
7937 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
7938 option enum and switch. When no windows, set the interpreter to
7941 2003-03-01 Andrew Cagney <cagney@redhat.com>
7943 * main.c (captured_main): Replace magic option characters with an
7946 2003-03-01 Andrew Cagney <cagney@redhat.com>
7948 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
7949 INIT_EXTRA_FRAME_INFO.
7950 * gdbarch.h, gdbarch.c: Regenerate.
7951 * arm-tdep.c: Update comments.
7952 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
7953 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
7954 * frame.h, avr-tdep.c: Ditto.
7955 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
7956 (create_new_frame, legacy_get_prev_frame): Ditto.
7957 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7958 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7959 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
7960 deprecated_init_extra_frame_info instead of init_extra_frame_info.
7961 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7962 * v850-tdep.c (v850_gdbarch_init): Ditto.
7963 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7964 * sh-tdep.c (sh_gdbarch_init): Ditto.
7965 * s390-tdep.c (s390_gdbarch_init): Ditto.
7966 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
7967 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7968 * mips-tdep.c (mips_gdbarch_init): Ditto.
7969 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7970 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7971 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7972 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
7973 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7974 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7975 * frv-tdep.c (frv_gdbarch_init): Ditto.
7976 * cris-tdep.c (cris_gdbarch_init): Ditto.
7977 * avr-tdep.c (avr_gdbarch_init): Ditto.
7978 * arm-tdep.c (arm_gdbarch_init): Ditto.
7979 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7980 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7982 2003-03-01 Andrew Cagney <cagney@redhat.com>
7984 * gdbarch.sh (register_type): New function with predicate.
7985 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
7986 * gdbarch.h, gdbarch.c: Re-generate.
7987 * arch-utils.c (generic_register_byte): Use generic_register_size.
7988 (generic_register_size): When available, use
7989 gdbarch_register_type.
7990 * regcache.c (init_regcache_descr): When available, initialize the
7991 register type array using gdbarch_register_type. If the
7992 architecture supplies gdbarch_register_type, do not use the legacy
7994 * d10v-tdep.c (d10v_register_type): Replace
7995 d10v_register_virtual_type.
7996 (d10v_gdbarch_init): Set register_type instead of
7997 register_virtual_type.
7999 2003-03-01 Andrew Cagney <cagney@redhat.com>
8001 * Makefile.in (ax-gdb.o): Update dependencies.
8002 * ax-gdb.c: Include "regcache.h".
8003 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8004 * findvar.c (value_of_register): Ditto.
8005 * infcmd.c (default_print_registers_info): Ditto.
8007 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8009 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8010 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8012 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8014 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8017 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8019 * Makefile.in (dwarf2loc.o): Update dependencies.
8020 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8021 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8022 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8023 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8024 (locexpr_tracepoint_var_ref): New function.
8025 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8027 2003-02-28 Andrew Cagney <cagney@redhat.com>
8029 * regcache.c (register_size): New function.
8030 * regcache.h (register_size): Declare
8031 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8032 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8034 2003-02-28 David Carlton <carlton@math.stanford.edu>
8036 * linespec.c (decode_compound): Extract code into find_method.
8039 2003-02-28 J. Brobecker <brobecker@gnat.com>
8041 * Makefile.in: Add rules to build and link in observer.o.
8043 2003-02-27 J. Brobecker <brobecker@gnat.com>
8045 * observer.c: Minor comments edits.
8047 2003-02-27 J. Brobecker <brobecker@gnat.com>
8049 * observer.h, observer.c: New file.
8051 2003-02-27 Andrew Cagney <cagney@redhat.com>
8053 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8055 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8057 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8058 (M6812_OP_STS_EXT): Likewise.
8059 (m6811_prologue): Use the above to recognize prologue.
8060 (m6812_prologue): Likewise.
8062 2003-02-27 David Carlton <carlton@math.stanford.edu>
8064 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8066 (compare_psymbols): Ditto.
8067 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8069 2003-02-27 Michael Snyder <msnyder@redhat.com>
8071 * f-lang.c (build_fortran_types): New function.
8072 (_initialize_f_language): Gdbarch-register built-in fortran types.
8073 * doublest.c (extract_floating): Fix warning text.
8075 2003-02-27 Andrew Cagney <cagney@redhat.com>
8077 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8078 predicate. Replaces PUSH_DUMMY_FRAME.
8079 * gdbarch.h, gdbarch.c: Regnerate.
8080 * valops.c (hand_function_call): Update. Call
8081 generic_push_dummy_frame directly.
8082 * vax-tdep.c (vax_gdbarch_init): Update.
8083 * sparc-tdep.c (sparc_gdbarch_init): Update.
8084 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8085 * m68k-tdep.c (m68k_gdbarch_init): Update.
8086 * hppa-tdep.c (hppa_gdbarch_init): Update.
8087 * alpha-tdep.c (alpha_gdbarch_init): Update.
8088 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8089 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8090 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8091 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8092 push_dummy_frame to generic_push_dummy_frame.
8093 * v850-tdep.c (v850_gdbarch_init): Ditto.
8094 * sh-tdep.c (sh_gdbarch_init): Ditto.
8095 * s390-tdep.c (s390_gdbarch_init): Ditto.
8096 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8097 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8098 * mips-tdep.c (mips_gdbarch_init): Ditto.
8099 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8100 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8101 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8102 * i386-tdep.c (i386_gdbarch_init): Ditto.
8103 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8104 * frv-tdep.c (frv_gdbarch_init): Ditto.
8105 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8106 * cris-tdep.c (cris_gdbarch_init): Ditto.
8107 * avr-tdep.c (avr_gdbarch_init): Ditto.
8108 * arm-tdep.c (arm_gdbarch_init): Ditto.
8110 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8112 * mips-tdep.c (show_mips_abi): New function.
8113 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8114 command ``show mips abi''.
8116 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8118 From Elena Zannoni <ezannoni@redhat.com>
8119 * dbxread.c (process_one_symbol): Only record line 0 if one or
8120 more sline entries have been seen for the function.
8122 2003-02-26 Michael Chastain <mec@shout.net>
8124 * configure: Regenerate with autoconf 000227.
8126 2003-02-26 Michael Chastain <mec@shout.net>
8129 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8130 for old libc5/glibc.
8131 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8133 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8135 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8136 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8138 2003-02-26 Michael Chastain <mec@shout.net>
8140 * configure.in: New variable HAVE_UINTPTR_T.
8141 * configure, config.in: Regenerated.
8143 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8146 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8148 2003-02-25 Andrew Cagney <cagney@redhat.com>
8150 * frame.c (get_prev_frame): Add comment on check for
8151 inside_entry_func. Only check for inside_entry_file when not a
8152 dummy and not a sentinel. Check that the new frame is not inner
8155 2003-02-25 Andrew Cagney <cagney@redhat.com>
8157 * frame.c (frame_debug): New variable.
8158 (_initialize_frame): Add "set/show debug frame" command.
8159 (get_prev_frame): When frame_debug, print reason why unwind
8162 2003-02-25 Michael Chastain <mec@shout.net>
8164 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8165 to avoid uintptr_t definition problems.
8167 2003-02-25 David Carlton <carlton@math.stanford.edu>
8169 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8170 (SYMBOL_LINKAGE_NAME): Ditto.
8171 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8172 SYMBOL_LINKAGE_NAME.
8173 (struct general_symbol_info): Expand comment.
8174 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8175 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8176 (SYMBOL_MATCHES_REGEXP): Ditto.
8177 * symtab.c (symbol_natural_name): New function.
8178 * objfiles.h: Replace all uses of SYMBOL_NAME by
8179 DEPRECATED_SYMBOL_NAME.
8180 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8181 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8182 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8183 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8184 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8185 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8186 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8187 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8188 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8189 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8191 * ada-exp.y: Update copyright.
8192 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8193 * cp-valprint.c: Ditto.
8195 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8197 * infptrace.c (detach): Do not flag error if ptrace detach fails
8198 and errno is set to ESRCH.
8200 2003-02-24 Andrew Cagney <cagney@redhat.com>
8202 * infptrace.c (udot_info): Change type of udot_off to long. Use
8203 paddr when printing udot_off's value.
8205 2003-02-24 David Carlton <carlton@math.stanford.edu>
8207 * symtab.c (make_symbol_overload_list): Only read in partial
8208 symtabs containing a matching partial symbol.
8210 2003-02-24 David Carlton <carlton@math.stanford.edu>
8212 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8213 do the comparison, not strcmp.
8214 * symfile.c (compare_psymbols): Ditto.
8215 * defs.h: Declare strcmp_iw_ordered.
8216 * utils.c (strcmp_iw_ordered): New function.
8218 2003-02-24 Jim Blandy <jimb@redhat.com>
8220 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8221 support, shared libs): Remove my name from here, to better reflect
8224 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8226 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8227 (target_ops): Add to_have_continuable_watchpoint.
8228 * target.c (update_current_target): Add INHERIT line for
8229 to_have_continuable_watchpoint.
8230 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8231 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8232 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8233 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8235 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8237 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8240 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8242 * solib.c (solib_open): Call target defined search function after
8243 failing with solib-search-path.
8244 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8245 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8247 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8249 * MAINTAINERS: Add myself to Write After section.
8251 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8253 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8255 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8257 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8258 (m68hc11_add_reggroups): New function.
8259 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8260 (m68hc11_gdbarch_init): Install the reggroups.
8261 (_initialize_m68hc11_tdep): Initialize them.
8263 2003-02-21 James E Wilson <wilson@tuliptree.org>
8265 * MAINTAINERS: Update my email address.
8267 2003-02-21 David Carlton <carlton@math.stanford.edu>
8269 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8271 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8273 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8274 * symtab.h: Add opaque declarations of struct axs_value and
8276 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8277 (struct location_funcs): New type.
8278 (struct symbol): Add "loc" to aux_value.
8279 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8280 * dwarf2read.c: Include "dwarf2expr.h".
8281 (dwarf2_symbol_mark_computed): New function.
8282 (read_func_scope): Use it.
8283 (var_decode_location): New function.
8284 (new_symbol): Use it.
8285 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8287 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8288 (dwarf2expr_h, dwarf2loc_h): New variables.
8289 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8290 (dwarf2expr.o, dwarf2loc.o): New rules.
8291 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8292 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8294 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8295 * m2-exp.y (yylex): Likewise.
8296 * printcmd.c (address_info, print_frame_args): Likewise.
8297 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8298 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8299 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8300 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8301 * symtab.c (lookup_block_symbol): Likewise.
8303 2003-02-20 Adam Fedor <fedor@gnu.org>
8305 * symtab.h: Remove objc_specific struct
8306 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8307 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8308 Have language_objc use cplus_specific struct.
8310 2003-02-20 Tom Tromey <tromey@redhat.com>
8312 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8313 TYPE_NAME, when printing a String value. PR java/1075.
8315 2003-02-20 Adam Fedor <fedor@gnu.org>
8317 * objc-lang.h (find_methods): Remove declaration.
8318 * objc-lang.c (find_methods): Make static.
8320 2003-02-20 Christopher Faylor <cgf@redhat.com>
8322 * win32-nat.c (get_image_name): Check return value from
8324 (child_xfer_memory): Ditto.
8326 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8328 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8329 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8330 '${exec_prefix}' (in addition to the expansion thereof) as
8332 * configure: Rebuilt.
8334 2003-02-20 David Carlton <carlton@math.stanford.edu>
8336 * symtab.c (search_symbols): Revert the search_symbols part of my
8337 2002-12-23 patch. Add comment.
8339 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8341 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8342 * dbxread.c (elfstab_build_psymtabs): Don't call
8343 install_minimal_symbols.
8344 (stabsect_build_psymtabs): Likewise.
8345 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8347 * somread.c (som_symfile_read): Call install_minimal_symbols
8348 and do_cleanups earlier.
8349 * nlmread.c (nlm_symfile_read): Likewise.
8350 * mdebugread.c (elfmdebug_build_psymtabs): Call
8351 install_minimal_symbols and make appropriate cleanups.
8353 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8355 * solib.c (reload_shared_libraries): New function.
8356 (_initialize_solib): Add callbacks for ``set solib-search-path''
8357 and ``set solib-absolute-prefix''.
8359 2003-02-20 David Carlton <carlton@math.stanford.edu>
8361 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8363 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8364 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8365 * ada-typeprint.c (ada_typedef_print): Ditto.
8366 * ax-gdb.c (gen_var_ref): Ditto.
8367 * breakpoint.c (print_one_breakpoint): Ditto.
8368 * buildsym.c (finish_block): Ditto.
8369 * c-valprint.c (c_val_print): Ditto.
8370 * expprint.c (print_subexp): Ditto.
8371 * findvar.c (locate_var_value): Ditto.
8372 * infcmd.c (jump_command): Ditto.
8373 * linespec.c (decode_line_2, decode_compound): Ditto.
8374 * maint.c (maintenance_translate_address): Ditto.
8375 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8376 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8378 * p-valprint.c (pascal_val_print): Ditto.
8379 * stabsread.c (define_symbol): Ditto.
8380 * stack.c (print_frame, frame_info, print_block_frame_locals)
8381 (print_frame_arg_vars, return_command): Ditto.
8382 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8383 * symmisc.c (print_symbol): Ditto.
8384 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8385 (compare_search_syms, print_symbol_info, print_msymbol_info)
8386 (rbreak_command): Ditto.
8387 * tracepoint.c (tracepoints_info): Ditto.
8388 * typeprint.c (typedef_print): Ditto.
8389 * valops.c (value_of_variable, hand_function_call): Ditto.
8390 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8391 * ada-typeprint.c: Update Copyright.
8392 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8393 * tracepoint.c, cli/cli-cmds.c: Ditto.
8395 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8397 * frame.c (generic_unwind_get_saved_register): Make non-static.
8398 * frame.h (generic_unwind_get_saved_register): Declare.
8399 * mips-tdep.c (read_next_frame_reg): Fetch register from
8400 current regcache when frame is NULL.
8401 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8403 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8404 instead of frame_register_unwind().
8406 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8408 * remote-sim.c (gdbsim_insert_breakpoint)
8409 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8412 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8414 * remote.c (_initialize_remote): Add commands "set/show remote
8415 hardware-watchpoint-limit" and "set/show remote
8416 hardware-breakpoint-limit".
8417 (remote_hw_watchpoint_limit): Initialize to -1.
8418 (remote_hw_breakpoint_limit): Ditto.
8419 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8421 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8423 * coff-pe-read.c: New file - support reading of minimal symbols from a
8424 portable executable using the export table.
8425 * coff-pe-read.h: New file.
8426 * coffread.c: Include coff-pe-read.h.
8427 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8428 debugging symbols found.
8429 * Makefile.in (SFILES): Add coff-pe-read.o.
8430 (coff_pe_read_h): Define.
8431 (COMMON_OBS): Add coff-pe-read.o.
8432 (coffread.o): Add coff_pe_read_h dependency.
8433 (coff-pe-read.o): New target.
8435 2003-02-19 David Carlton <carlton@math.stanford.edu>
8437 * Makefile.in (SFILES): Add block.c.
8439 (COMMON_OBS): Add block.o.
8441 (x86-64-tdep.o): Add $(block_h).
8442 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8443 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8444 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8445 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8446 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8447 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8448 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8449 * value.h: Add opaque declaration for struct block.
8450 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8451 * ada-lang.h: Ditto.
8452 * x86-64-tdep.c: #include "block.h"
8453 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8454 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8455 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8456 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8457 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8458 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8459 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8460 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8461 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8462 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8463 * symtab.c (block_function): Ditto.
8464 (contained_in): Ditto.
8465 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8466 block.h. Add opaque declaration for struct block.
8467 * symtab.h: Move block_function and contained_in declarations to
8468 block.h. Add opaque declarations for struct block, struct
8470 (struct block): Move to block.h.
8471 (struct blockvector): Ditto.
8472 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8473 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8474 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8475 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8476 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8478 * block.c: New file.
8479 * block.h: New file.
8481 2003-02-19 Theodore A. Roth <troth@openavr.org>
8483 * avr-tdep.c (avr_extract_return_value): Remove function.
8484 (avr_store_return_value): Remove function.
8485 (avr_extract_struct_value_address): Remove function.
8486 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8488 2003-02-19 Andrew Cagney <ac131313@redhat.com>
8490 * rs6000-tdep.c: Include "gdb_assert.h".
8491 (registers_e500): Add "acc" and "spefscr".
8492 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8493 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8494 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8496 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8498 2003-02-18 Keith Seitz <keiths@redhat.com>
8500 * Makefile.in: Add gdbtk-interps.c.
8502 2003-02-18 Kevin Buettner <kevinb@redhat.com>
8504 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8505 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8507 2003-02-18 Andrew Cagney <cagney@redhat.com>
8509 * symtab.h (struct objfile): Add opaque declaration.
8511 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
8513 From Jim Ingham <jingham@apple.com>:
8514 * dbxread.c (process_one_symbol): Use last_function_start rather
8515 than function_start_offset to find the real beginning of the
8516 current function. The latter is just the text section offset on
8517 some systems, the former is always the real function start.
8519 2003-02-17 Andrew Cagney <cagney@redhat.com>
8521 * configure.in: Revert ${target} != ${host}.
8523 2003-02-17 Andrew Cagney <ac131313@redhat.com>
8525 * configure.in (Makefile): Use the test ${target} != ${host},
8526 instead of the absence of the "nm.h" file, to determine of the
8527 configuration non-native.
8528 * configure: Regenerate.
8530 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
8532 From Brian Ford <ford@vss.fsi.com>
8534 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8535 conditionalize tui_active test.
8536 (lookup_cmd_1): Ditto.
8538 2003-02-14 Mark Kettenis <kettenis@gnu.org>
8540 * configure.in: Add check for _etext.
8541 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8543 * config.in, configure: regenerated.
8545 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
8547 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8549 2003-02-14 Andrew Cagney <ac131313@redhat.com>
8551 * main.c (tui_version): Delete variable.
8552 (captured_main): When --tui, set interpreter_p to "tui" instead of
8553 enabling tui_version.
8554 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8556 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8557 * cli/cli-cmds.c (disassemble_command): Ditto.
8558 * defs.h (tui_version): Delete declaration.
8559 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8560 (tui-interp.o): Add rules.
8561 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8563 2003-02-14 Christopher Faylor <cgf@redhat.com>
8565 * win32-nat.c (register_loaded_dll): Correctly set address range for
8568 2003-02-12 Jason Molenda (jmolenda@apple.com)
8570 * symmisc.c (print_objfile_statistics): Include information about
8571 the number of psymtabs and symtabs in each object file.
8573 2003-02-13 Keith R Seitz <keiths@redhat.com>
8575 * main.h (struct captured_main_args): Add interpreter_p.
8576 * main.c (captured_main): Initialize interpreter_p from context.
8577 * gdb.c (main): Set interpreter_p argument.
8578 * Makefile.in (gdb.o): Add dependency for interps.h.
8580 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8582 * event-top.c (cli_command_loop): Delete declaration.
8583 (_initialize_event_loop): Delete function setting event_loop_hook.
8584 * event-top.h (cli_command_loop): Declare. Update copyright.
8585 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8586 * interps.c (current_interp_command_loop): When event_loop_p, call
8589 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8591 * interps.h (interp_command_loop_ftype): Change return type to
8594 2003-02-12 Michal Ludvig <mludvig@suse.cz>
8596 * x86-64-tdep.c (x86_64_extract_return_value)
8597 (x86_64_store_return_value): Use regcache instead of regbuf.
8598 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8599 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8601 2003-02-11 Andrew Cagney <ac131313@redhat.com>
8603 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8604 * aclocal.m4: Regenerate.
8605 * configure: Regenerate.
8607 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8608 TCL_LD_SEARCH_FLAGS.
8610 2003-02-10 Michal Ludvig <mludvig@suse.cz>
8612 * dwarf2cfi.c: Reindented.
8614 2003-02-09 Andrew Cagney <ac131313@redhat.com>
8616 * interps.c (clear_interpreter_hooks): Convert function definition
8619 2003-02-07 David Carlton <carlton@math.stanford.edu>
8621 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8623 2003-02-07 Kevin Buettner <kevinb@redhat.com>
8625 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8626 (struct type): ...to here.
8627 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8629 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8630 (replace_type): Set length on all type variants for a given type.
8632 2003-02-07 Andrew Cagney <ac131313@redhat.com>
8634 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8636 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8638 2003-02-06 Andrew Cagney <ac131313@redhat.com>
8640 * Makefile.in (symm-nat.o): Update dependencies.
8641 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8642 (lynx-nat.o, ia64-linux-nat.): Ditto.
8643 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8644 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8645 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8647 * Makefile.in (inflow_h): Define.
8648 (procfs.o, inflow.o, procfs.o): Update dependencies.
8649 * inftarg.c (child_stop): Delete extern declaration of
8650 inferior_process_group. Include "inflow.h".
8651 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
8652 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8653 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
8654 (our_process_group, inferior_process_group): Extern declarations.
8656 * procfs.c: Include "gdb_assert.h".
8658 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8659 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8660 * jv-typeprint.c (java_type_print_base): Ditto.
8661 * typeprint.c (typedef_print): Eliminate STREQ.
8662 * cli/cli-script.c (define_command, define_command): Ditto.
8663 * main.c (captured_main): Ditto.
8664 * values.c (lookup_internalvar): Ditto.
8665 * utils.c (safe_strerror, parse_escape): Eliminate assignment
8666 within `if' conditional.
8667 * linespec.c (decode_line_2): Ditto.
8668 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8669 (bfd_openw_with_cleanup): Ditto.
8671 2003-02-07 Mark Kettenis <kettenis@gnu.org>
8673 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8674 legacy_extract_return_value and store_return_value to
8675 legacy_return_value.
8677 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
8679 * win32-nat.c (get_relocated_section_addrs): New function. Find
8680 section load addresses for symbol handling in relocated DLLs.
8681 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8683 2003-02-05 Fred Fish <fnf@intrinsity.com>
8685 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8687 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8689 (angel_RDI_info): Ditto.
8690 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8692 (threads_continue_all_with_signals): Ditto.
8694 2003-02-05 Jim Ingham <jingham@apple.com>
8695 Keith Seitz <keiths@redhat.com>
8696 Elena Zannoni <ezannoni@redhat.com>
8697 Andrew Cagney <ac131313@redhat.com>
8699 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8700 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8701 (SUBDIR_MI_OBS): Add "mi-interp.o".
8702 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8703 (SFILES): Add "interps.c".
8704 (COMMON_OBS): Add "interps.o".
8705 (interps_h, mi_main_h): Define.
8706 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8707 (mi-main.o, main.o, event-top.o): Update dependencies.
8708 * cli/cli-interp.c: New file.
8709 * interps.h, interps.c: New files.
8710 * top.c: (gdb_init): Don't install the default interpreter, handed
8712 * main.c: Include "interps.h".
8713 (interpreter_p): Note that it should malloc'ed.
8714 (captured_command_loop): Call current_interp_command_loop.
8715 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
8716 xfree and xstrdup when updating interpreter_p. Install the
8717 default interpreter. Add hack to stop mi1's copyright notice
8719 * event-top.h (gdb_setup_readline): Declare.
8720 (gdb_disable_readline): Declare.
8721 * event-top.c: Include "interps.h".
8722 (display_gdb_prompt): Call current_interp_display_prompt_p.
8723 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
8724 gdb_stdlog, and gdb_stdtarg.
8725 (_initialize_event_loop): Don't call gdb_setup_readline.
8726 * cli-out.c (cli_out_set_stream): New function.
8727 * cli-out.h (cli_out_set_stream): Declare.
8729 2003-02-06 Mark Kettenis <kettenis@gnu.org>
8731 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
8732 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
8733 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
8734 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
8735 config/i386/i386v42mp.mt: Removed.
8737 2003-02-05 Mark Kettenis <kettenis@gnu.org>
8739 * configure.tgt (*-*-solaris*): Set gdb_osabi to
8742 2003-02-05 Michael Chastain <mec@shout.net>
8744 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
8745 2.12.1 and earlier versions.
8747 2003-02-05 Andrew Cagney <ac131313@redhat.com>
8749 Remove orphaned hosts, targets and files.
8750 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
8751 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
8752 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
8753 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
8754 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
8755 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
8756 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
8757 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
8758 * config/sparc/tm-sp64sim.h: Delete.
8759 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
8761 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
8762 mips*-dec-mach3* targets.
8764 2003-02-04 Michael Chastain <mec@shout.net>
8766 * NEWS: Fix typo: sepcifying -> specifying.
8768 2003-02-04 Michael Chastain <mec@shout.net>
8770 * dwarfread.c: Add documentation on the state of dwarf-1,
8771 looking towards obsoletion.
8773 2003-02-03 Michael Chastain <mec@shout.net>
8775 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
8776 gdb/testsuite/gdb.c++/pr-1023.exp.
8778 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8780 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
8781 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
8783 * utils.c (init_page_info): Delete reference to MPW in comments.
8784 * main.c (captured_main): Delete #ifdef MPW.
8786 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8788 * NEWS: Note that the m32r-*-elf* is obsolete.
8789 * monitor.c (monitor_expect): Obsolete reference to m32r.
8790 * configure.tgt: Mark m32r-*-elf* as obsolete.
8791 * MAINTAINERS: Mark m32k as obsolete.
8792 * m32r-rom.c: Obsolete file.
8793 * config/m32r/m32r.mt: Obsolete file.
8794 * config/m32r/tm-m32r.h: Obsolete file.
8795 * m32r-stub.c: Obsolete file.
8796 * m32r-tdep.c: Obsolete file.
8798 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8800 * NEWS: Mention that the z8k-zilog-none is obsolete.
8801 * MAINTAINERS: Mark z8k as obsolete.
8802 * configure.tgt: Obsolete the z8k-*-coff* target.
8803 * config/z8k/z8k.mt: Obsolete file.
8804 * config/z8k/tm-z8k.h: Obsolete file.
8805 * z8k-tdep.c: Obsolete file.
8807 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8809 * NEWS: Mention that the mn10200-elf is obsolete.
8810 * configure.tgt: Obsolete mn10200-*-* target.
8811 * breakpoint.c (update_breakpoints_after_exec): Update comment to
8812 mention that the mn10200 is obsolete.
8813 * breakpoint.h: Ditto.
8814 * MAINTAINERS: Mark the mn10200-elf as obsolete.
8815 * config/mn10200/mn10200.mt: Obsolete file.
8816 * config/mn10200/tm-mn10200.h: Obsolete file.
8817 * mn10200-tdep.c: Obsolete file.
8819 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8821 * MAINTAINERS: Mark h8500 as obsolete.
8822 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
8823 * findvar.c (value_from_register): Ditto.
8824 * h8500-tdep.c: Mark file as obsolete.
8825 * config/h8500/h8500.mt: Ditto.
8826 * config/h8500/tm-h8500.h: Ditto.
8827 * NEWS: Mention that h8500 is obsolete.
8829 2003-02-04 David Carlton <carlton@math.stanford.edu>
8831 * objfiles.c (allocate_objfile): Always set name. Add comment at
8833 * jv-lang.c (get_dynamics_objfile): Add comment.
8835 2003-02-04 David Carlton <carlton@math.stanford.edu>
8837 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
8838 * printcmd.c (build_address_symbolic): Replace uses of
8839 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
8840 SYMBOL_NAME, and asm_demangle.
8843 2003-02-04 David Carlton <carlton@math.stanford.edu>
8845 * linespec.c (decode_compound): Extract code into
8847 (lookup_prefix_sym): New function.
8849 2003-02-04 David Carlton <carlton@math.stanford.edu>
8851 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
8852 FLOAT_COERCION_BADNESS.
8853 * gdbtypes.c (rank_one_type): Replace all uses of
8854 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
8856 2003-02-04 Jim Blandy <jimb@redhat.com>
8858 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
8859 section, let dwarf_macinfo_section point to it, not
8862 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
8864 Pointed out by Anton Blanchard <anton@samba.org>.
8865 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
8866 (ppc_linux_at_sigtramp_return_path): Use it.
8868 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
8870 * defs.h (streq): Add prototype.
8871 * utils.c (streq): New function.
8873 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
8874 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
8875 * mdebugread.c (new_symbol): Likewise.
8876 * stabsread.c (define_symbol): Likewise.
8877 * coffread.c (process_coff_symbol): Likewise.
8878 * dwarfread.c (new_symbol): Likewise.
8880 * minsyms.c (prim_record_minimal_symbol_and_info): Use
8881 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
8883 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
8884 SYMBOL_INIT_DEMANGLED_NAME.
8885 * objfiles.c: Include "hashtab.h".
8886 (allocate_objfile): Call htab_set_functions_ex for the
8887 demangled_names_hash.
8888 (free_objfile): Call htab_delete for the demangled_names_hash.
8889 * objfiles.h (struct htab): Add declaration.
8890 (struct objfile): Add demangled_names_hash.
8891 * symfile.c: Include "hashtab.h".
8892 (reread_symbols): Call htab_delete for the demangled_names_hash.
8893 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
8894 SYMBOL_NAME in the bcache.
8895 * symtab.c: Include "hashtab.h". Update comments.
8896 (create_demangled_names_hash, symbol_set_names): New functions.
8897 (symbol_find_demangled_name): New function, broken out from
8898 symbol_init_demangled_names.
8899 (symbol_init_demangled_names): Use it.
8900 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
8901 (SYMBOL_SET_NAMES): New macro.
8902 (symbol_set_names): Add prototype.
8904 2003-02-03 Jim Blandy <jimb@redhat.com>
8906 Use a single, consistent representation for an empty minimal
8907 symbol table in an objfile.
8908 * objfiles.c (terminate_minimal_symbol_table): New function.
8909 (allocate_objfile): Call it.
8910 * objfiles.h (terminate_minimal_symbol_table): New declaration.
8911 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8913 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
8914 objfile has minimal symbols, compare minimal_symbol_count to zero,
8915 instead of comparing msymbols with NULL.
8916 * objfiles.c (have_minimal_symbols): Same.
8917 * solib-sunos.c (solib_add_common_symbols): Call
8918 terminate_minimal_symbol_table.
8919 * symfile.c (reread_symbols): Same.
8921 2003-02-03 Kevin Buettner <kevinb@redhat.com>
8923 * s390-tdep.c (s390_address_class_type_flags)
8924 (s390_address_class_type_flags_to_name)
8925 (s390_address_class_name_to_type_flags): New functions.
8926 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
8927 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
8929 2003-02-03 Michael Snyder <msnyder@redhat.com>
8931 * arm-tdep.c: Fix spell-o in comment.
8933 2003-02-03 Michal Ludvig <mludvig@suse.cz>
8935 * dwarf2cfi.c (pointer_encoding): Added new parameter.
8936 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8937 error messages to contain BFD filename.
8939 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
8941 Fix PR gdb/742 gdb/743 gdb/877
8942 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
8943 (do_mixed_source_and_assembly): Use
8944 make_cleanup_ui_out_tuple_begin_end and
8945 make_cleanup_ui_out_tuple_begin_end.
8946 (do_mixed_source_and_assembly): Ditto.
8947 * thread.c (do_captured_list_thread_ids): Ditto.
8948 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
8949 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
8950 ui_out_tuple_end): Delete prototypes.
8951 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
8952 ui_out_list_end, ui_out_tuple_end): Delete.
8954 From Kevin Buettner <kevinb@redhat.com>:
8955 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
8956 * ui-out.c (make_cleanup_ui_out_table_begin_end)
8957 (do_cleanup_table_end): New functions.
8958 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
8959 Use cleanups to invoke_ui_out_tuple_end().
8960 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
8961 * cli/cli-setshow.c (cmd_show_list): Use
8962 make_cleanup_ui_out_tuple_begin_end.
8964 2003-02-02 Andrew Cagney <ac131313@redhat.com>
8966 * frame.c (frame_unwind_register): New function.
8967 (frame_unwind_unsigned_register): Use.
8968 (frame_unwind_signed_register): Use.
8969 (frame_read_register): New function.
8970 * frame.h (frame_unwind_register): Declare.
8971 (frame_read_register): Declare.
8973 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
8974 and frame_unwind_register instead of read_memory, write_register
8975 and deprecated_write_register_bytes.
8977 2003-02-02 Andrew Cagney <ac131313@redhat.com>
8979 * frame.h: Note that namelen can be negative.
8980 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
8983 * NEWS: Mention that the d10v's `regs' command is deprecated.
8984 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
8985 (d10v_print_registers_info): New function.
8986 (show_regs): Call d10v_print_registers_info.
8987 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
8989 2003-02-02 Mark Kettenis <kettenis@gnu.org>
8991 * stack.c (print_frame_info): Restore call to annotate_frame_begin
8992 lost in the previous patch.
8994 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8996 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
8997 * stack.c (print_frame_info_base): Output complete FRAME tuple
8998 for synthesized frames.
9000 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9002 * mips-nat.c (zerobuf): Delete.
9003 (fetch_inferior_registers): Alloc local zerobuf.
9004 (fetch_core_registers): Alloc local zerobuf.
9005 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9006 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9007 * thread-db.c (thread_db_store_registers): Ditto.
9008 * sh-tdep.c (sh_do_register): Ditto.
9009 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9010 * remote-sim.c (gdbsim_store_register): Ditto.
9011 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9012 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9013 * monitor.c (monitor_supply_register): Ditto.
9014 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9015 * mips-nat.c (fetch_inferior_registers): Ditto.
9016 * m68klinux-nat.c (fetch_register): Ditto.
9017 * lynx-nat.c (fetch_inferior_registers): Ditto.
9018 (fetch_inferior_registers): Ditto.
9019 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9020 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9021 (hpux_thread_store_registers): Ditto.
9022 * hppah-nat.c (fetch_register): Ditto.
9023 * hppab-nat.c (fetch_register): Ditto.
9024 * hppa-tdep.c (pa_register_look_aside): Ditto.
9025 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9026 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9028 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9030 * gdbarch.sh: Explictly specify all method levels. When a
9031 variable with an empty level, provide a non-multi-arch default.
9032 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9033 * gdbarch.h: Re-generate.
9034 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9035 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9037 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9039 * defs.h (host_pointer_to_address): Delete declaration.
9040 (address_to_host_pointer): Delete declaration.
9041 * utils.c (host_pointer_to_address): Delete function.
9042 (address_to_host_pointer): Delete function.
9043 * procfs.c (procfs_address_to_host_pointer): New function.
9044 * procfs.c (proc_set_watchpoint): Use.
9045 (procfs_can_use_hw_breakpoint): Update comments.
9046 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9047 (som_solib_add): Use.
9048 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9049 * hppa-tdep.c (unwind_command): Use.
9051 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9053 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9056 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9057 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9058 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9059 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9060 (define_symbol): Update.
9061 * symfile.c (generic_load): Remove references to nindy.
9062 * symtab.c: Remove references to nindy.
9064 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9066 * infcmd.c (print_float_info): Delete code conditional on
9068 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9069 * config/m68k/nm-apollo68b.h: Ditto.
9070 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9071 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9072 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9074 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9076 * config/i386/tm-i386os9k.h: Removed.
9078 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9079 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9080 they're identical to i[3456]86-*-sysv* now.
9081 * config/i386/i386v32.mh: Removed.
9082 * config/i386/xm-i386v32.h: Removed.
9083 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9085 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9087 * config/i386/i386dgux.mh: Removed.
9088 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9090 * configure.in: Fix typo.
9091 * configure: Regenerated.
9093 2003-01-31 David Carlton <carlton@math.stanford.edu>
9095 * dwarf2read.c (dwarf2_locate_sections): Set
9096 dwarf_ranges_section.
9098 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9100 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9101 * utils.c: Update comments documenting legitimate uses of PTR.
9103 * utils.c: Re-indent.
9105 * config/djgpp/fnchange.lst: Delete nindy files.
9106 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9107 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9108 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9109 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9110 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9111 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9112 * Makefile.in (init.c): Remove nindy references.
9113 (saber_gdb): Delete rule.
9114 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9115 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9117 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9118 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9119 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9120 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9122 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9123 * saber.suppress: Delete file.
9125 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9127 * dbxread.c (stabs_data): New static variable.
9128 (fill_symbuf): Support an in-memory buffer for stabs data.
9129 (stabs_seek): New function.
9130 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9131 (read_ofile_symtab): Use stabs_seek.
9132 (elfstab_build_psymtabs): Take an asection* instead of
9133 an offset and size. Relocate the stabs data if necessary.
9134 Save the section* for dbx_psymtab_to_symtab.
9135 * dwarf2read.c: Add section variables for each debug section.
9136 (dwarf2_locate_sections): Fill them in.
9137 (dwarf2_read_section): Take an asection* argument.
9138 Relocate the section contents if necessary.
9139 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9140 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9141 it to dwarf2_read_section.
9142 (dwarf2_build_frame_info): Update callers.
9143 * elfread.c (elf_symfile_read): Update call to
9144 elfstab_build_psymtabs.
9145 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9146 (DBX_STAB_SECTION): New macro.
9147 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9148 * symfile.c (symfile_dummy_outputs): New function.
9149 (symfile_relocate_debug_section): New function.
9150 * symfile.h (symfile_relocate_debug_section): Add prototype.
9152 2003-01-31 Richard Henderson <rth@redhat.com>
9154 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9155 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9156 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9157 * alpha-tdep.c (alpha_register_name): Add "unique".
9158 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9159 (ALPHA_UNIQUE_REGNUM): New.
9160 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9162 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9164 * README: Remove reference to Ericsson 1800 monitor.
9165 * Makefile.in (remote-es.o): Delete rule.
9166 (ALLDEPFILES): Delete remote-es.c.
9167 * remote-es.c: Delete file.
9168 * config/m68k/es1800.mt: Delete file.
9169 * config/djgpp/fnchange.lst: Update.
9170 * configure.tgt: Delete m68*-ericsson-* target.
9172 2003-01-31 Adam Fedor <fedor@gnu.org>
9174 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9175 Remove duplicate/shadowing variable of same name.
9177 2003-01-30 Jim Blandy <jimb@redhat.com>
9179 * symfile.c (find_separate_debug_file): Assert that the objfile's
9180 directory name we compute ends with a slash, and then assume that
9181 that's so everywhere we use it.
9183 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9185 * valops.c (value_assign): Flush frame cache after stores to memory
9188 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9190 * Makefile.in (mon960-rom.o): Delete rule.
9191 * mon960-rom.c: Delete file.
9193 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9195 * d10v-tdep.c: Include "frame-unwind.h".
9196 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9198 (next_addr, uses_frame): Delete.
9199 (struct d10v_unwind_cache): Define.
9200 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9201 Use info instead of next_addr and uses_frame globals.
9202 (d10v_frame_init_saved_regs): Delete function.
9203 (d10v_init_extra_frame_info): Delete function.
9204 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9205 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9206 init_frame_pc or frame_saved_pc.
9207 (d10v_pop_frame): Delete function.
9208 (do_d10v_pop_frame): Delete function.
9209 (d10v_frame_chain): Delete function.
9210 (d10v_frame_chain_valid): Delete function.
9211 (d10v_frame_pc_unwind): New function.
9212 (d10v_frame_id_unwind): New function.
9213 (saved_regs_unwinder): New function.
9214 (d10v_frame_register_unwind): New function.
9215 (d10v_frame_pop): New function.
9216 (d10v_frame_unwind): New variable.
9217 (d10v_frame_p): New function.
9218 (d10v_frame_saved_pc): Delete function.
9219 * Makefile.in (d10v-tdep.o): Update dependencies.
9221 2003-01-30 J. Brobecker <brobecker@gnat.com>
9223 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9224 causing some regressions due to a change in the default value
9227 2003-01-29 Richard Henderson <rth@redhat.com>
9228 Elena Zannoni <ezannoni@redhat.com>
9229 Daniel Jacobowitz <drow@mvista.com>
9232 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9234 (RANGES_SECTION): New.
9235 (dwarf_ranges_buffer): New variable.
9236 (struct comp_unit_head): Add member "die".
9237 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9238 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9239 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9240 (dwarf2_locate_sections): Likewise.
9241 (dwarf2_build_psymtabs): Read .debug_ranges.
9242 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9243 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9244 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9245 Look for DW_AT_ranges and return the bounding box.
9247 2003-01-29 Brian Ford <ford@vss.fsi.com>
9249 * win32-nat.c (cygwin_pid): Removed as unused.
9250 (child_attach): Try fall back to Cygwin pid.
9252 2003-01-29 Jim Blandy <jimb@redhat.com>
9254 * objfiles.h (struct objfile): Doc fix.
9256 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9258 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9259 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9260 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9261 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9262 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9263 (FRAME_SAVED_PC): Change to a function with predicate.
9264 * gdbarch.h, gdbarch.c: Re-generate.
9266 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9268 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9270 * complaints.c (complain): Delete function.
9271 * complaints.h (struct deprecated_complaint): Delete definition.
9272 (complain): Delete declaration.
9274 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9276 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9279 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9281 * sentinel-frame.h, sentinel-frame.c: New files.
9282 * Makefile.in (frame.o): Update dependencies.
9283 (SFILES): Add sentinel-frame.c.
9284 (sentinel_frame_h): Define.
9285 (COMMON_OBS): Add sentinel-frame.o.
9286 (sentinel-frame.o): Specify dependencies.
9287 * frame.c: Include "sentinel-frame.h".
9288 (frame_register_unwind): Rewrite assuming that there is always a a
9290 (frame_register, generic_unwind_get_saved_register): Ditto.
9291 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9292 (create_sentinel_frame, unwind_to_current_frame): New functions.
9293 (get_current_frame): Rewrite using create_sentinel_frame and
9294 unwind_to_current_frame. When possible, always create a frame.
9295 (create_new_frame): Set next to the sentinel frame.
9296 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9297 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9298 ID cache when necessary.
9299 (frame_saved_regs_id_unwind): Use frame_relative_level.
9300 (deprecated_generic_get_saved_register): Use frame_relative_level,
9301 get_frame_saved_regs, get_frame_pc, get_frame_base and
9303 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9306 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9308 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9310 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9312 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9313 (maintenance_set_profile_cmd): Use error () instead of warning ().
9315 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9317 * configure.in: Check that -pg works if using --enable-profiling.
9318 Check for monstartup and _mcleanup regardless of --enable-profiling.
9319 * maint.c: Check for monstartup and _mcleanup before using them.
9320 * config.in: Regenerated.
9321 * configure: Regenerated.
9323 2003-01-24 Nick Clifton <nickc@redhat.com>
9327 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9329 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9330 (sh2e_show_regs): New.
9331 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9332 * config/sh/tm-sh.h: Added sh2e to comments.
9334 2003-01-23 Jim Blandy <jimb@redhat.com>
9336 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9337 symbols found)" message here; we haven't checked for a separate
9338 debug info file yet, so we don't know yet.
9339 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9340 we've looked everywhere. Also, there's no need to print a special
9341 message when we're loading the separate debug info file: the one
9342 symbol_file_add prints is fine.
9344 2003-01-23 Alexander Larsson <alexl@redhat.com>
9345 Jim Blandy <jimb@redhat.com>
9347 Add support for executables whose debug info has been separated
9348 out into a separate file, leaving only a link behind.
9349 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9350 and separate_debug_objfile_backlink.
9351 (put_objfile_before): New declaration.
9352 * symfile.c: #include "filenames.h".
9353 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9354 debug info in a separate file, read that, too. Save the addrs
9355 argument, so we can use it again to read the separated debug info;
9356 syms_from_objfile modifies the table we pass it.
9357 (reread_symbols): After re-reading an objfile, call
9358 reread_separate_symbols to refresh its separate debug info
9359 objfile, if it has one.
9360 (reread_separate_symbols, find_separate_debug_file,
9361 get_debug_link_info, separate_debug_file_exists): New functions.
9362 (debug_file_directory): New global var.
9363 (_initialize_symfile): Initialize debug_file_directory, and
9364 provide the new `set debug-file-directory' command to let the user
9366 * objfiles.c (free_objfile): If this objfile has its debug info in
9367 a separate objfile, free that one too. If this is itself a
9368 separate debug info objfile, clear our parent's backlink.
9369 (put_objfile_before): New function.
9370 * utils.c (gnu_debuglink_crc32): New function.
9371 * defs.h (gnu_debuglink_crc32): New declaration.
9372 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9373 * configure.in: Handle --with-separate-debug-dir config option.
9374 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9375 * acconfig.h (DEBUGDIR): New macro.
9376 * configure, aclocal.m4, config.in: Regenerated.
9378 2003-01-22 Jim Blandy <jimb@redhat.com>
9380 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9381 like the old symbol_file_add, but taking new arguments: you can
9382 now pass in either a `struct section_addr_info' list to say where
9383 each section is loaded, or a `struct section_offsets' table. Pass
9384 these new arguments through to syms_from_objfile as appropriate.
9385 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9386 with the appropriate quiescent values for the new arguments.
9388 * symfile.c: #include "gdb_assert.h".
9389 (syms_from_objfile): Add the ability to pass in a section offset
9390 table directly, as an alternative to the section_addr_info table.
9391 Document arguments better.
9392 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9393 * symfile.h (syms_from_objfile): Update declaration.
9394 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9396 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9398 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9400 Original patch by Tom Tromey <tromey@cygnus.com> and
9401 Jason Molenda <jmolenda@apple.com>.
9402 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9403 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9404 * NEWS: Mention profiling.
9405 * configure.in (--enable-gdbtk): Fix typo.
9406 (--enable-profiling): New. Set PROFILE_CFLAGS.
9407 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9409 (profiling_state): New variable.
9410 (mcleanup_wrapper): New function.
9411 (_initialize_maint): Remove NOTYET, fix call to
9412 add_setshow_boolean_cmd for "maint set profile".
9413 * configure: Regenerated.
9415 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9417 * Makefile.in (install-gdbtk): Install PNG images too.
9419 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9421 * exec.c (text_start): Delete global variable.
9422 (exec_file_attach): Make text_start local to the function.
9423 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9424 * valops.c (hand_function_call): Delete code that handles
9425 BEFORE_TEXT_END and AFTER_TEXT_END.
9426 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9427 of CALL_DUMMY_LOCATION.
9428 * gdbarch.c: Regenerate.
9429 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9430 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9431 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9432 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9433 (text_end): Delete extern declaration.
9435 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9437 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9438 * blockframe.c (backtrace_below_main): Move to "frame.c".
9439 (frame_chain_valid): Delete check for backtrace_below_main.
9440 (_initialize_blockframe): Delete initialization, move ``set
9441 backtrace-below-main'' command to "frame.c".
9442 (do_flush_frames_sfunc): Delete function.
9443 * frame.c: Include "command.h" and "gdbcmd.h".
9444 (frame_type_from_pc): New function.
9445 (create_new_frame): Use frame_type_from_pc.
9446 (legacy_get_prev_frame): New function.
9447 (get_prev_frame): Rewrite. When an old style frame, call
9448 legacy_get_prev_frame. Otherwize, unwind the PC first.
9449 (_initialize_frame): Add ``set backtrace-below-main'' command.
9450 * Makefile.in (frame.o): Update dependencies.
9452 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9454 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9455 DEPRECATED_REGISTERS_INFO.
9457 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9459 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9460 Maintainers'. Update `Various Maintainers'.
9462 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9464 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9465 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9466 Suppress actual parameters when `-'.
9467 * gdbarch.h, gdbarch.c: Regenerate.
9469 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9471 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9472 code handling dummy frames.
9474 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9476 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9477 (struct frame_unwind): Add field pop.
9478 * frame.h (frame_pop): Declare.
9479 * frame.c (frame_saved_regs_pop): New function.
9480 (trad_frame_unwinder): Add frame_saved_regs_pop.
9481 (frame_pop): New function.
9482 * dummy-frame.c (dummy_frame_pop): New function.
9483 (discard_innermost_dummy): New function.
9484 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9485 (dummy_frame_unwind): Add dummy_frame_pop.
9486 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9487 * valops.c (hand_function_call): Ditto.
9488 * stack.c (return_command): Ditto.
9490 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9492 * cris-tdep.c: Fix function declaration indentation.
9493 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9494 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9495 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9496 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9497 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9498 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9500 2003-01-18 Michael Chastain <mec@shout.net>
9502 * README (Unpacking and Installation -- quick overview):
9503 Warn against ".../gdb-5.3/gdb/configure".
9505 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9507 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9508 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9509 (struct frame_unwind): Declare opaque.
9510 (dummy_frame_p): Declare function.
9511 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9512 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9513 * dummy-frame.c: Include "frame-unwind.h".
9514 (dummy_frame_p): New function.
9515 (dummy_frame_unwind): New variable.
9516 * frame.c: Include "frame-unwind.h".
9517 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9518 to use the new unwind field.
9519 (set_unwind_by_pc): Delete function.
9520 (create_new_frame, get_prev_frame): Set unwind field using
9521 frame_unwind_find_by_pc.
9522 (trad_frame_unwind, trad_frame_unwinder): New variables.
9523 * frame.h (trad_frame_unwind): Declare variable.
9524 (frame_id_unwind_ftype): Delete declaration.
9525 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9526 (struct frame_unwind): Declare opaque.
9527 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9528 register_unwind with a single unwind pointer.
9529 * frame-unwind.h, frame-unwind.c: New files.
9530 * Makefile.in (SFILES): Add frame-unwind.c.
9531 (frame_unwind_h): Define.
9532 (COMMON_OBS): Add frame-unwind.o.
9533 (frame-unwind.o): Specify dependencies.
9534 (frame.o, dummy-frame.o): Update dependencies.
9536 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9538 * ada-valprint.c: Eliminate PTR.
9539 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9540 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9541 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9542 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9543 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9544 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9545 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
9547 2003-01-17 Andrew Cagney <ac131313@redhat.com>
9549 * main.c (captured_main): Don't use PTR.
9550 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9551 * gdbtypes.c (lookup_primitive_typename): Ditto.
9552 (lookup_struct_elt_type): Ditto.
9553 * f-valprint.c (info_common_command): Ditto.
9554 (list_all_visible_commons): Ditto.
9555 * jv-typeprint.c (java_type_print_base): Ditto.
9557 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9558 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9559 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9560 i386-interix-nat.c and i386-interix-tdep.c. Rename
9561 m68klinux-nat.c and m68klinux-tdep.c. Rename
9562 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9563 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9564 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9565 * main.c (captured_main): Use xfree, not free.
9567 2003-01-16 Andrew Cagney <ac131313@redhat.com>
9569 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9570 ID back using a parameter.
9571 * frame.c (frame_id_unwind): Update call.
9572 (frame_saved_regs_id_unwind): Update.
9573 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9574 * dummy-frame.h (struct frame_id): Add opaque declaration.
9575 (dummy_frame_id_unwind): Update declaration.
9577 2003-01-15 Andrew Cagney <ac131313@redhat.com>
9579 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9581 2003-01-15 Stephen P. Smith <ischis2@cox.net>
9583 * MAINTAINERS (Stephen P. Smith): Updated email address.
9585 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
9588 * breakpoint.c (until_break_command): Add new argument. Use it to
9589 decide whether to stop only at the current frame or not.
9590 * breakpoint.h (until_break_command): Update prototype.
9591 * infcmd.c (until_command): Add new argument to until_break_command
9593 (advance_command): New function.
9594 (_initialize_infcmd): Update help string for 'until' command.
9595 Add new 'advance' command.
9597 2003-01-14 David Carlton <carlton@math.stanford.edu>
9599 * linespec.c (decode_line_1): Normalize comments.
9601 (locate_first_half): Ditto.
9602 (decode_compound): Ditto.
9603 (symtab_from_filename): Ditto.
9604 (decode_all_digits): Ditto.
9605 (decode_dollar): Ditto.
9606 (find_methods): Ditto.
9607 (find_toplevel_char): Ditto.
9609 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9611 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9612 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9613 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9614 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9615 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9616 * language.c, language.h, m32r-tdep.c: Update copyright.
9617 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9618 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9619 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9620 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9621 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9622 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9624 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9626 * stabsread.h (process_later, resolve_cfront_continuation):
9628 Update copyright years.
9629 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9630 Update copyright year.
9631 * dbxread.c(struct cont_elem): Obsolete.
9632 (process_later, process_now): Obsolete functions.
9633 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9634 Update copyright year.
9635 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9636 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9637 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9638 (parse_partial_symbols): Obsolete cfront support.
9640 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9642 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9643 read_cfront_baseclasses, read_cfront_member_functions,
9644 resolve_cfront_continuation,read_cfront_static_fields,
9645 copy_cfront_struct_fields): Obsolete functions.
9646 (define_symbol, read_one_struct_field): Obsolete cfront support.
9647 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9648 Update Copyright year.
9650 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9652 * stack.c (print_frame_info, print_stack_frame_base_stub,
9653 print_stack_frame_base, show_and_print_stack_frame_stub,
9654 show_and_print_stack_frame, print_only_stack_frame_stub,
9655 print_only_stack_frame): Delete functions.
9656 (print_stack_frame_stub): Call print_frame_info instead of
9657 print_frame_info_base.
9658 (print_frame_info_base): Rename to print_frame_info.
9659 (backtrace_command_1): Call print_frame_info, instead of
9660 print_frame_info_base.
9661 (current_frame_command): Call print_stack_frame, instead of
9662 print_only_stack_frame.
9663 (frame_command): Call print_stack_frame, instead of
9664 show_and_print_stack_frame.
9665 (up_command): Ditto.
9666 (down_command): Ditto.
9667 * frame.h (print_only_stack_frame): Delete prototype.
9668 * infrun.c (normal_stop): Call print_stack_frame, instead of
9669 show_and_print_stack_frame.
9670 * thread.c (info_threads_command): Call print_stack_frame, instead
9671 of print_only_stack_frame.
9673 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9675 * README (Graphical interface to GDB): Update URL. Point at
9678 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
9681 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9683 * symtab.c (find_pc_sect_line): Don't consider end-of-function
9686 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9688 * thread-db.c (attach_thread): Prototype.
9689 (struct private_thread_info): Remove lwpid. Add thread handle (th),
9690 thread information (ti), and valid flags (th_valid, ti_valid).
9691 (attach_thread): Move target_pid_to_str call to after the thread
9692 is added to GDB's list. Initialize the cache.
9693 (thread_get_info_callback, thread_db_map_id2thr)
9694 (thread_db_get_info): New functions.
9695 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9696 (thread_db_store_registers, thread_db_thread_alive)
9697 (thread_db_get_thread_local_address): Use them.
9698 (thread_db_pid_to_str): Likewise. Return "Missing" instead
9699 of calling error() for threads in unknown state.
9701 (clear_lwpid_callback): New function.
9702 (thread_db_resume): Use it to clear the cache.
9704 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9706 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9707 (resume_callback): Remove dead code.
9709 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9711 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
9713 * gdbarch.h, gdbarch.c: Regenerate.
9714 * stack.c (frame_info): Only initialize the saved registers when
9715 FRAME_INIT_SAVED_REGS_P.
9716 * frame.c (frame_saved_regs_register_unwind): Assert
9717 FRAME_INIT_SAVED_REGS_P.
9718 (deprecated_generic_get_saved_register): Ditto.
9720 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9722 * source.c (openp): Squelch warning about "filename".
9724 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9726 * source.c (openp): If the file does not exist don't necessarily
9729 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9732 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
9733 (integer_types_same_name_p): New function.
9734 (rank_one_type): Use it.
9735 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
9737 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9739 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
9741 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
9742 * configure.in: Add --with-sysroot.
9743 * configure: Regenerated.
9744 * main.c (gdb_sysroot): New variable.
9745 (captured_main): Initialize gdb_sysroot.
9746 * defs.h (gdb_sysroot): New extern declaration.
9747 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
9749 2003-01-12 Michael Chastain <mec@shout.net>
9751 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
9753 2003-01-12 Michael Chastain <mec@shout.net>
9755 * top.c (print_gdb_version): Bump copyright year to 2003.
9757 2003-01-12 David Carlton <carlton@bactrian.org>
9759 * linespec.c (symtab_from_filename): Rename variable 's' to
9762 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9764 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
9766 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
9768 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9770 * d10v-tdep.c: Include "gdb_assert.h".
9771 (d10v_store_return_value): Rewrite to match current interface.
9772 (d10v_extract_struct_value_address): Ditto.
9773 (d10v_extract_return_value): Ditto.
9774 (d10v_gdbarch_init): Set store_restore_value,
9775 extract_struct_value_address and extract_return_value.
9777 2003-01-12 J. Brobecker <brobecker@gnat.com>
9779 * hpread.c (set_namestring): New procedure replacing the
9780 SET_NAMESTRING macro.
9781 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
9782 by calls to set_namestring.
9784 2003-01-11 J. Brobecker <brobecker@gnat.com>
9786 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
9787 a compilation warning.
9788 (hpread_process_one_debug_symbol): Likewise.
9790 2003-01-10 David Carlton <carlton@math.stanford.edu>
9792 * linespec.c (decode_line_1): Rename variable 's' to
9794 (decode_all_digits): Rename argument 's' to 'file_symtab'.
9795 (decode_dollar): Ditto.
9796 (decode_variable): Ditto.
9797 (symbol_found): Ditto.
9799 2003-01-09 Michael Chastain <mec@shout.net>
9801 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
9803 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
9805 * win32-nat.c (set_process_privilege): New function.
9806 (child_attach): Call set_process_privilege() to enable the
9807 SE_DEBUG_NAME user privilege if available in process token.
9809 2003-01-10 J. Brobecker <brobecker@gnat.com>
9811 * hpread.c (hpread_process_one_debug_symbol): Fix a small
9812 compilation error in the previous revision.
9814 2003-01-09 David Carlton <carlton@math.stanford.edu>
9816 * linespec.c: Update copyright.
9818 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
9820 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
9822 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
9824 2003-01-09 Andrew Cagney <ac131313@redhat.com>
9826 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
9828 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
9829 (frame_saved_regs_zalloc): Update.
9830 (frame_saved_regs_register_unwind): Update.
9831 (create_new_frame): Update.
9832 (get_prev_frame): Update.
9833 (frame_extra_info_zalloc): Update.
9834 (deprecated_get_frame_saved_regs): Update.
9835 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
9836 * cris-tdep.c: Update comment.
9838 * somsolib.h: Fix function indentation.
9839 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
9840 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
9841 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
9842 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
9843 * somsolib.c, inftarg.c: Remove assignment in if conditional.
9845 * infrun.c (follow_fork): Use ISO C definition.
9846 * expprint.c (print_subexp): Use xfree instead of free.
9847 * charset.c: Include "gdb_string.h" instead of <string.h>.
9848 (register_iconv_charsets): Use ISO C definition.
9849 (host_charset, target_charset): Ditto.
9850 * Makefile.in (charset.o): Update dependencies.
9851 (mi-cmd-env.o): Update dependencies.
9853 2003-01-08 Andrew Cagney <cagney@redhat.com>
9855 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
9858 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9860 * gdb_mbuild.sh: Add --keep option. When specified, keep the
9861 build directories. Save edited gdb output in Mbuild.log. If a
9862 build fails, remove any final GDB executable.
9864 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9866 * gdb_mbuild.sh: Edit the output of `maint print architecture'
9867 replacing hex constants with function names and stripping leading
9868 file name directory prefixes.
9870 2003-01-08 Andrew Cagney <cagney@redhat.com>
9872 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
9875 2003-01-08 David Carlton <carlton@math.stanford.edu>
9877 * linespec.c (decode_line_1): Move code into decode_variable.
9878 (decode_variable): New function.
9880 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9882 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
9884 2003-01-08 Andrew Cagney <cagney@redhat.com>
9886 * cris-tdep.c (cris_frame_init_saved_regs): Use
9887 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
9889 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9890 (sh64_nofp_frame_init_saved_regs): Ditto.
9891 (sh_fp_frame_init_saved_regs): Ditto.
9892 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
9893 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9894 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9895 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9897 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
9899 * minsyms.c (lookup_minimal_symbol): Update comment.
9900 (lookup_minimal_symbol_text): Update comment. Use the hash table.
9901 (lookup_minimal_symbol_solib_trampoline): Likewise.
9903 2003-01-08 Andrew Cagney <cagney@redhat.com>
9905 * d10v-tdep.c (d10v_init_extra_frame_info): Use
9906 frame_relative_level.
9908 * alpha-tdep.c: Use get_frame_extra_info.
9909 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9910 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
9911 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9912 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
9914 * alpha-tdep.c: Use get_next_frame.
9915 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9916 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
9917 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
9918 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
9919 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
9920 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
9921 * xstormy16-tdep.c: Ditto.
9923 2003-01-07 Andrew Cagney <cagney@redhat.com>
9925 * alpha-tdep.c: Use get_frame_base.
9926 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9927 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
9928 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
9929 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9930 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
9931 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
9932 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
9933 * config/sparc/tm-sparc.h: Ditto.
9935 2003-01-07 Andrew Cagney <cagney@redhat.com>
9937 * frame.c (deprecated_get_frame_context): New function.
9938 (deprecated_set_frame_context): New function.
9939 * frame.h (deprecated_get_frame_context): Declare.
9940 (deprecated_set_frame_context): Declare.
9941 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
9942 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
9944 2003-01-07 Andrew Cagney <cagney@redhat.com>
9946 * frame.c (deprecated_set_frame_next_hack): New function.
9947 (deprecated_set_frame_prev_hack): New function.
9948 * frame.h (deprecated_set_frame_next_hack): Declare.
9949 (deprecated_set_frame_prev_hack): Declare.
9950 * mcore-tdep.c (analyze_dummy_frame): Use
9951 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
9952 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9954 2003-01-07 David Carlton <carlton@math.stanford.edu>
9956 * linespec.c (decode_line_1): Move code into decode_dollar.
9957 (decode_dollar): New function.
9959 2003-01-07 Andrew Cagney <cagney@redhat.com>
9961 * arm-tdep.c (arm_init_extra_frame_info): Use
9962 deprecated_update_frame_base_hack.
9963 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
9964 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9965 (fix_frame_pointer): Ditto.
9966 (mn10300_analyze_prologue): Ditto.
9968 2003-01-07 Andrew Cagney <cagney@redhat.com>
9970 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
9971 extra_info using frame_extra_info_zalloc.
9972 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9973 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
9974 (sh64_init_extra_frame_info): Ditto.
9975 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
9976 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
9977 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9978 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
9979 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
9980 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
9981 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
9982 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
9983 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
9984 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
9985 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9986 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
9988 * mn10300-tdep.c (analyze_dummy_frame): Use
9989 deprecated_set_frame_extra_info_hack.
9990 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9992 2003-01-07 J. Brobecker <brobecker@gnat.com>
9994 * mdebugread.c (parse_symbol): Skip stProc entries which storage
9995 class is not scText. These do not define "real" procedures.
9996 (parse_partial_symbols): Likewise.
9998 2003-01-06 Michael Snyder <msnyder@redhat.com>
10000 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10002 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10004 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10005 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10006 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10007 deprecated_frame_xmalloc_with_cleanup.
10008 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10009 deprecated_frame_xmalloc.
10010 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10011 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10013 2003-01-06 Andrew Cagney <cagney@redhat.com>
10015 * x86-64-linux-tdep.c: Include "osabi.h".
10016 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10018 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10020 2003-01-06 Andrew Cagney <cagney@redhat.com>
10022 * MAINTAINERS (Target Instruction Set Architectures): Update
10023 arm-elf. Can be built with -Werror, has been multiarched.
10025 * value.h (unpack_long): Make buffer parameter constant.
10026 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10027 * scm-lang.h (scm_parse): Ditto.
10028 * defs.h (extract_typed_address, extract_address): Ditto.
10029 (extract_long_unsigned_integer): Ditto.
10030 * inferior.h (unsigned_pointer_to_address): Ditto.
10031 (signed_pointer_to_address): Ditto.
10032 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10033 * gdbarch.h, gdbarch.c: Regenerate.
10034 * findvar.c (extract_long_unsigned_integer): Update.
10035 (extract_address): Update.
10036 (extract_typed_address): Update.
10037 (unsigned_pointer_to_address): Update.
10038 * values.c (unpack_long): Update.
10039 (unpack_double): Update.
10040 (unpack_pointer): Update.
10041 (unpack_field_as_long): Update.
10042 * d10v-tdep.c (d10v_pointer_to_address): Update.
10043 * avr-tdep.c (avr_pointer_to_address): Update.
10044 * scm-lang.c (scm_unpack): Update.
10045 * findvar.c (signed_pointer_to_address): Update.
10047 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10049 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10050 since it is in i386-tdep.c.
10052 2003-01-06 J. Brobecker <brobecker@gnat.com>
10054 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10055 failure introduced in the previous change.
10057 2003-01-05 Michael Chastain <mec@shout.net>
10059 * README: Remove references to deleted remote-*.c files:
10060 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10061 remote-nrom.c, remote-os9k.c, remote-udi.c.
10063 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10065 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10066 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10067 i386_get_longjmp_target.
10069 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10071 * arm-tdep.c (prologue_cache): Change to a pointer.
10072 (_initialize_arm_tdep): Allocate prologue_cache.
10073 (check_prologue_cache): Update.
10074 (save_prologue_cache): Update.
10075 (arm_gdbarch_init): Update.
10077 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10079 * stabsread.c (update_method_name_from_physname): Call complaint()
10082 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10084 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10085 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10086 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10088 * blockframe.c: Include "gdbcmd.h" and "command.h".
10089 (backtrace_below_main): New variable.
10090 (file_frame_chain_valid, func_frame_chain_valid)
10091 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10092 (generic_func_frame_chain_valid): Remove functions.
10093 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10094 (_initialize_blockframe): New function.
10095 * Makefile.in (blockframe.o): Update dependencies.
10096 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10097 comment. Call frame_chain_valid ().
10098 * frame.h: Remove old prototypes. Add prototype for
10099 frame_chain_valid and update comments to match.
10100 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10101 Remove old comment.
10102 * gdbarch.h: Regenerated.
10103 * gdbarch.c: Regenerated.
10105 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10106 set_gdbarch_frame_chain_valid.
10107 * avr-tdep.c (avr_gdbarch_init): Likewise.
10108 * cris-tdep.c (cris_gdbarch_init): Likewise.
10109 * frv-tdep.c (frv_gdbarch_init): Likewise.
10110 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10111 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10112 (i386_nw_init_abi): Likewise.
10113 (i386_gdbarch_init): Likewise.
10114 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10115 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10116 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10117 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10118 * mips-tdep.c (mips_gdbarch_init): Likewise.
10119 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10120 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10121 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10122 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10123 * s390-tdep.c (s390_gdbarch_init): Likewise.
10124 * sh-tdep.c (sh_gdbarch_init): Likewise.
10125 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10126 * v850-tdep.c (v850_gdbarch_init): Likewise.
10127 * vax-tdep.c (vax_gdbarch_init): Likewise.
10128 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10130 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10131 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10132 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10133 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10134 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10135 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10136 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10137 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10139 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10141 * Makefile.in (acconfig_h): Remove incorrect macro.
10142 (config_h): Define.
10143 (osabi.o): Update dependencies.
10144 * configure.tgt: Set gdb_osabi based on target triplet.
10145 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10146 * configure: Regenerated.
10147 * config.in: Regenerated.
10148 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10149 (GDB_OSABI_DEFAULT): Define if not already defined.
10150 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10151 (set_osabi_string): New variables.
10152 (gdbarch_register_osabi): Add new OS ABI to
10153 gdb_osabi_available_names.
10154 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10155 (set_osabi, show_osabi): New functions.
10156 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10158 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10160 * arch-utils.c (gdbarch_info_init): Set osabi to
10161 GDB_OSABI_UNINITIALIZED.
10162 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10163 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10164 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10165 * gdbarch.c: Regenerated.
10166 * gdbarch.h: Regenerated.
10167 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10169 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10170 * osabi.h (enum gdb_osabi): Move to defs.h.
10171 (gdbarch_init_osabi): Update prototype.
10172 * defs.h (enum gdb_osabi): Moved here.
10173 * Makefile.in: Update dependencies.
10175 * alpha-tdep.h: Don't include "osabi.h".
10176 (struct gdbarch_tdep): Remove osabi member.
10177 * alpha-tdep.c: Include "osabi.h".
10178 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10179 iterate over arches. Update call to gdbarch_init_osabi.
10180 (alpha_dump_tdep): Don't dump osabi.
10181 * alpha-linux-tdep.c: Include "osabi.h".
10182 * alpha-osf1-tdep.c: Include "osabi.h".
10183 * alphafbsd-tdep.c: Include "osabi.h".
10184 * alphanbsd-tdep.c: Include "osabi.h".
10186 * arm-tdep.h: Don't include "osabi.h".
10187 (struct gdbarch_tdep): Remove osabi member.
10188 * arm-tdep.c: Include "osabi.h".
10189 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10190 iterate over arches. Update call to gdbarch_init_osabi.
10191 (arm_dump_tdep): Don't dump osabi.
10192 * arm-linux-tdep.c: Include "osabi.h".
10193 * armnbsd-tdep.c: Include "osabi.h".
10195 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10196 Update call to gdbarch_init_osabi.
10198 * i386-tdep.h: Don't include "osabi.h".
10199 (struct gdbarch_tdep): Remove osabi member.
10200 * i386-tdep.c: Include "osabi.h".
10201 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10202 iterate over arches. Update call to gdbarch_init_osabi.
10203 (i386_dump_tdep): Don't dump osabi.
10204 * i386-linux-tdep.c: Include "osabi.h".
10205 * i386-sol2-tdep.c: Include "osabi.h".
10206 * i386bsd-tdep.c: Include "osabi.h".
10207 * i386gnu-tdep.c: Include "osabi.h".
10208 * i386ly-tdep.c: Include "osabi.h".
10209 * i386nbsd-tdep.c: Include "osabi.h".
10210 * i386obsd-tdep.c: Include "osabi.h".
10212 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10213 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10214 check osabi when iterating over arches. Update call to
10215 gdbarch_init_osabi.
10216 (mips_dump_tdep): Don't dump osabi.
10218 * ns32k-tdep.h: Don't include "osabi.h".
10219 (struct gdbarch_tdep): Remove.
10220 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10221 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10222 allocate tdep. Update call to gdbarch_init_osabi.
10223 (ns32k_dump_tdep): Remove.
10224 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10225 * ns32knbsd-tdep.c: Include "osabi.h".
10227 * ppc-tdep.h: Don't include "osabi.h".
10228 (struct gdbarch_tdep): Remove osabi member.
10229 * rs6000-tdep.c: Include "osabi.h".
10230 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10231 osabi when iterating over arches. Update call to
10232 gdbarch_init_osabi.
10233 (rs6000_dump_tdep): Don't dump osabi.
10234 * ppc-linux-tdep.c: Include "osabi.h".
10235 * ppcnbsd-tdep.c: Include "osabi.h".
10237 * sh-tdep.h: Don't include "osabi.h".
10238 (struct gdbarch_tdep): Remove osabi member.
10239 * sh-tdep.c: Include "osabi.h".
10240 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10241 iterate over arches. Update call to gdbarch_init_osabi.
10242 (sh_dump_tdep): Don't dump osabi.
10243 * shnbsd-tdep.c: Include "osabi.h".
10245 * sparc-tdep.c: Include "osabi.h".
10246 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10247 iterate over arches. Update call to gdbarch_init_osabi.
10248 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10251 * vax-tdep.h: Don't include "osabi.h".
10252 (struct gdbarch_tdep): Remove.
10253 * vax-tdep.c: Include "osabi.h".
10254 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10255 iterate over arches. Don't allocate tdep. Update call
10256 to gdbarch_init_osabi.
10257 (vax_dump_tdep): Remove.
10258 (_initialize_vax_tdep): Update call to gdbarch_register.
10260 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10262 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10264 (breakpoint_re_set_one): Don't fetch the value for a disabled
10267 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10269 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10270 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10271 (COERCE_FLOAT_TO_DOUBLE): Remove.
10272 * gdbarch.c: Regenerate.
10273 * gdbarch.h: Regenerate.
10274 * Makefile.in: Remove value_h from gdbarch_h.
10275 * valops.c (coerce_float_to_double): New variable.
10276 (default_coerce_float_to_double): Remove.
10277 (standard_coerce_float_to_double): Remove.
10278 (value_arg_coerce): Use coerce_float_to_double.
10279 (_initialize_valops): Add "set coerce-float-to-double".
10280 * value.h (default_coerce_float_to_double): Remove prototype.
10281 (standard_coerce_float_to_double): Remove prototype.
10283 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10285 * mdebugread.c (parse_symbol): Likewise.
10286 * stabsread.c (define_symbol): Mark all functions as prototyped.
10288 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10289 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10290 set_gdbarch_coerce_float_to_double.
10291 * arm-tdep.c (arm_gdbarch_init): Likewise.
10292 * frv-tdep.c (frv_gdbarch_init): Likewise.
10293 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10294 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10295 * mips-tdep.c (mips_gdbarch_init): Likewise.
10296 (mips_coerce_float_to_double): Remove.
10297 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10298 (rs6000_coerce_float_to_double): Remove.
10299 * s390-tdep.c (s390_gdbarch_init): Likewise.
10300 * sh-tdep.c (sh_gdbarch_init): Likewise.
10301 (sh_coerce_float_to_double): Remove.
10302 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10303 (sparc_coerce_float_to_double): Remove.
10304 * v850-tdep.c (v850_gdbarch_init): Likewise.
10305 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10306 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10307 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10308 (hppa_coerce_float_to_double): Remove prototype.
10309 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10311 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10313 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10315 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10317 Suggested by Stewart Brown <sb24@avaya.com>:
10318 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10319 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10320 (c_type_print_varspec_suffix): Likewise.
10322 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10324 * configure.in: Don't set and AC_SUBST SUBDIRS.
10325 * configure: Regenerated.
10327 * configure.in: Remove code dealing with shared libraries.
10328 * Makefile.in: Remove HLDFLAGS and HLDENV.
10329 * configure: Regenerated.
10331 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10333 * frame.c (deprecated_frame_xmalloc): New function.
10334 (deprecated_set_frame_saved_regs_hack): New function.
10335 (deprecated_set_frame_extra_info_hack): New function.
10336 * frame.h (deprecated_frame_xmalloc): Declare.
10337 (deprecated_set_frame_saved_regs_hack): Declare.
10338 (deprecated_set_frame_extra_info_hack): Declare.
10340 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10342 * configure.in: Move code that provides the --enable-gdbtk option
10343 right after the code that handles the --enable-tui option, and
10344 polish it somewhat.
10345 * configure: Regenerated.
10347 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10348 AC_CHECK_FUNCS and remove the old check for pread64.
10349 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10350 * acconfig.h (_GNU_SOURCE): Add.
10351 (HAVE_PREAD64): Remove.
10352 * configure, aclocal.m4, config.in: Regenerated.
10354 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10356 * alpha-tdep.c: Use get_frame_saved_regs.
10357 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10358 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10359 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10360 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10361 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10363 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10365 * configure.in: Remove all use of the SUBDIRS variable; add
10366 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10367 code providing the --enable-multi-ice option, and move it right in
10368 front of the code that checks whether gdbserver is supported.
10370 * configure: Regenerated.
10371 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10374 2003-01-03 Andrew Cagney <cagney@redhat.com>
10376 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10377 * avr-tdep.c, cris-tdep.c: Ditto.
10378 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10379 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10381 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10383 * configure.in: Remove --enable-netrom option.
10384 * configure: Regenerated.
10386 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10388 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10389 declaration for `struct re_pattern_buffer' instead.
10390 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10392 2003-01-03 J. Brobecker <brobecker@gnat.com>
10394 * mdebugread.c (parse_symbol): Count until the stEnd matching
10395 the structure name.
10397 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10399 * configure.in: Remove --with-cpu option.
10400 subscripts. Remove evil changequotes here.
10401 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10402 * config.in, configure: Regenerated.
10404 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10405 * configure.in: Cleanup section that sources GDB and BFD configure
10406 subscripts. Remove evil changequotes here.
10407 * config.in, configure: Regenerated.
10409 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10411 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10412 frame accessor methods.
10413 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10414 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10415 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10416 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10417 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10418 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10419 * z8k-tdep.c: Ditto.
10421 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10423 * configure.in: Remove UI_OUT configuration code.
10424 * ada-lang.c: Update assuming UI_OUT is always true.
10425 * Makefile.in (UIOUT_CFLAGS): Remove.
10426 * configure: Regenerated.
10427 * TODO: Remove blurb about elimination of -DUI_OUT.
10429 * configure.in: Move code that provides the --enable-gdbcli,
10430 --enable-gdbmi options right before the code that handles the
10431 --enable-tui option. Polish a bit.
10432 * configure: Regenerated.
10434 * configure.in: Rewrite check for GNU regex and the
10435 --without-included regex option, and move it into the "Checks for
10436 library functions" section. This makes us use the system regex
10437 again by default on systems with version 2 of the GNU C library.
10438 This was apparently broken.
10439 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10440 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10441 * config.in, configure: Regenerated.
10443 * configure.in: Move code that provides the --enable-tui option
10444 before the "Checks for libraries" section. Polish the code
10445 somewhat and set need_curses to yes if we build the TUI. Rewrite
10446 code that looks for a library providing termcap functionality to
10447 match more closely what's done in the Readline library, and move
10448 it into to the "Checks for libraries" section.
10449 * configure: Regenerated.
10450 * Makefile.in (TERMCAP): Remove variable.
10451 * config/i386/go32.mh (TERMCAP): Remove variable.
10453 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10455 * MAINTAINERS: Mention gdb_mbuild.sh.
10456 * gdb_mbuild.sh: Rewrite.
10458 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10460 * configure.in: Fix typo in last change.
10461 * config.in, configure: Regenerated.
10463 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10465 * valarith.c (value_binop): Delete obsolete code and comments.
10466 * configure.host: Ditto.
10467 * buildsym.h (make_blockvector): Ditto.
10468 * buildsym.c (make_blockvector): Ditto.
10469 * defs.h (enum language): Ditto.
10470 (chill_demangle): Ditto.
10471 * elfread.c (elf_symtab_read): Ditto.
10472 * dwarfread.c (CHILL_PRODUCER): Ditto.
10473 (set_cu_language): Ditto.
10474 (handle_producer): Ditto.
10475 * expprint.c (print_subexp): Ditto.
10476 * gdbtypes.c (chill_varying_type): Ditto.
10477 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10478 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10479 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10480 (chill_varying_type): Ditto.
10481 * language.h (_LANG_chill): Ditto.
10482 * language.c (binop_result_type, integral_type): Ditto.
10483 (character_type, string_type, structured_type): Ditto.
10484 (lang_bool_type, binop_type_check): Ditto.
10485 * stabsread.h (os9k_stabs): Ditto.
10486 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10487 (define_symbol, read_type, read_struct_fields): Ditto.
10488 (read_array_type, read_enum_type, read_huge_number): Ditto.
10489 (read_range_type, start_stabs): Ditto.
10490 * symfile.c (init_filename_language_table): Ditto.
10491 (add_psymbol_with_dem_name_to_list): Ditto.
10492 * symtab.c (symbol_init_language_specific): Ditto.
10493 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10494 * symtab.h (struct general_symbol_info): Ditto.
10495 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10496 * typeprint.c (typedef_print): Ditto.
10497 * utils.c (fprintf_symbol_filtered): Ditto.
10498 * valops.c (value_cast, search_struct_field, value_slice): Delete
10500 (varying_to_slice): Delete function.
10501 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10502 (varying_to_slice): Delete declaration.
10503 * MAINTAINERS: Update.
10505 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10507 * configure.in: Reorganize "Checks for library functions section"
10508 a bit. Remove check for `btowc' and `isascii' functions.
10509 * configure: Regenerated.
10511 * acconfig.h (_MSE_INT_H): Remove.
10512 * configure.in: Create "Checks for header files" section, and move
10513 appropriate tests there. Don't check for objlist.h, wchar.h,
10514 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10515 misdetection fix. Also add "Checks for types", "Checks for
10516 compiler characteristics" and "Checks for library functions"
10518 * config.in, configure: Regenerated.
10520 * configure.in: Create "Checks for programs" section, and move
10521 appropriate tests there.
10523 2003-01-01 Mark Kettenis <kettenis@gnu.org>
10525 * configure.in: Create "Checks for libraries" section, and move
10526 appropriate tests there. Cleanup check for wctype in libw. Use
10527 AC_SEARCH_LIBS to see whether we need libsocket.
10528 * configure: Regenerated.
10530 For older changes see ChangeLog-2002
10536 version-control: never