1 2003-08-20 Michael Snyder <msnyder@redhat.com>
2 Kevin Buettner <kevinb@redhat.com>
4 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
5 (frv_frame_init_saved_regs): Add declaration.
6 (frame_extra_info): Add new field ``saved_regs''.
7 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
8 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
9 Update frame related code.
10 (frv_extract_struct_value_address): Adjust formatting.
11 * Makefile.in (frv-tdep.o): Update dependencies.
12 * config/frv/tm-frv.h (target_insert_watchpoint)
13 (target_remove_watchpoint, target_insert_hw_breakpoint)
14 (target_remove_hw_breakpoint): Delete these macros.
15 (remote_insert_watchpoint, remote_remove_watchpoint)
16 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
19 2003-08-20 Michael Chastain <mec@shout.net>
21 * defs.h (ENUM_BITFIELD): New macro.
22 * symtab.h (ENUM_BITFIELD): Use it.
23 (BYTE_BITFIELD): Remove old macro, which was already disabled.
25 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
27 * MAINTAINERS (write after approval): Add myself.
29 2003-08-18 Andrew Cagney <cagney@redhat.com>
31 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
32 * gdbarch.h, gdbarch.c: Re-generate.
33 * infcall.c (call_function_by_hand): Adjust the SP by
34 frame_red_zone_size before allocating any stack space.
35 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
36 * x86-64-tdep.c (x86_64_frame_align): New function.
37 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
39 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
40 Remove code adjusting SP so that it skips over the Red Zone.
42 2003-08-18 Mark Kettenis <kettenis@gnu.org>
44 * NEWS (New native configurations): Mention FreeBSD/amd64.
46 2003-08-18 Andrew Cagney <cagney@redhat.com>
48 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
49 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
51 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
53 2003-08-18 Mark Kettenis <kettenis@gnu.org>
55 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
57 2003-08-18 Michal Ludvig <mludvig@suse.cz>
59 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
61 * i386-linux-nat.c: Include "linux-nat.h".
62 (child_post_startup_inferior): New function.
64 2003-08-18 Mark Kettenis <kettenis@gnu.org>
66 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
67 at the start of a frameless function. This probably fixes PR
70 2003-08-17 Michael Chastain <mec@shout.net>
72 * symfile.c (find_sym_fns): Remove special case for apollo target.
74 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
76 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
77 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
78 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
79 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
80 (linux_supports_tracevforkdone): New function.
81 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
83 (child_follow_fork): Handle vfork.
84 (linux_handle_extended_wait): Likewise. Also handle exec.
85 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
86 * NEWS: Mention fork tracing.
88 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
90 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
92 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
94 * Makefile.in (i386-linux-nat.o): Update dependencies.
95 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
96 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
97 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
98 * i386-linux-nat.c: Include "linux-nat.h".
99 (child_post_startup_inferior): New function.
100 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
101 * infptrace.c (kill_inferior): Wrap in #ifdef.
102 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
103 attaching to each LWP.
104 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
105 (init_lin_lwp_ops): Fill in some more operations.
106 * linux-nat.h (linux_enable_event_reporting)
107 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
109 * linux-nat.c (linux_enable_event_reporting): New function.
110 (child_post_attach, linux_child_post_startup_inferior)
111 (child_post_startup_inferior, child_follow_fork)
112 (linux_handle_extended_wait, kill_inferior): New functions.
114 2003-08-16 Andrew Cagney <cagney@redhat.com>
116 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
117 * gdbarch.h, gdbarch.c: Re-generate.
119 2003-08-16 Mark Kettenis <kettenis@gnu.org>
121 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
123 2003-08-16 Andrew Cagney <cagney@redhat.com>
125 * NEWS: Mention that "set prompt-escape-char" was deleted.
126 * top.c (get_prompt_1): Delete function.
128 (init_main): Do not clear "gdb_prompt_escape". Delete "set
129 prompt-escape-char" command.
130 (MAX_PROMPT_SIZE): Delete macro.
131 (get_prompt): Simplify, do not call get_prompt_1.
133 2003-08-16 Andrew Cagney <cagney@redhat.com>
135 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
136 -Werror. -Wformat-nonliteral problems.
138 2003-08-15 J. Brobecker <brobecker@gnat.com>
140 Further multiarching work mostly for hppa64-*-hpux11:
141 * hppa-tdep.h: New file.
142 * hppa-tdep.c: #include hppa-tdep.c.
143 (hppa32_num_regs): Renamed from hppa_num_regs.
144 (hppa64_num_regs): New constant.
145 (hppa64_call_dummy_breakpoint_offset): New constant.
146 (hppa32_call_dummy_length): New constant.
147 (hppa64_call_dummy_length): New constant.
148 (hppa32_stack_align): Make name 32bit explicit.
149 (hppa32_register_virtual_type): Likewise.
150 (hppa32_extract_return_value): Likewise.
151 (hppa32_use_struct_convention): Likewise.
152 (hppa32_store_return_value): Likewise.
153 (hppa64_register_virtual_type): New function.
154 (hppa64_extract_return_value): New function.
155 (hppa64_use_struct_convention): New function.
156 (hppa64_store_return_value): New function.
157 (hppa_frame_locals_address): Remove declaration, function does
159 (hppa_register_byte): Add support for PA64 ABI.
160 (hppa_gdbarch_init): Add support for PA64 ABI.
161 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
162 Make name 32bit explicit.
163 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
164 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
165 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
166 (hppa64_hpux_frame_base_before_sigtramp): New function.
167 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
168 * config/pa/tm-hppa64.h: Remove macros that are no longer
169 necessary now that the gdbarch vector is properly setup.
170 Transform some macros into function calls. Some minor cleanup.
171 * config/pa/tm-hppah.h: Update function calls in macros
172 following the function renaming in hppa-hpux-tdep.c.
173 * Makefile.in (hppa_tdep_h): New variable.
174 (hppa-tdep.o): Add dependency over hppa_tdep_h.
176 2003-08-14 Michael Snyder <msnyder@redhat.com>
178 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
180 2003-08-13 J. Brobecker <brobecker@gnat.com>
182 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
183 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
186 2003-08-13 Michael Snyder <msnyder@redhat.com>
188 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
189 (frv_saved_pc_after_call): Use deprecated ftype.
190 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
191 (frv_remote_translate_xfer_address): Remove.
192 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
194 2003-08-13 J. Brobecker <brobecker@gnat.com>
196 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
197 initialization after the common gdbarch initialization, not before.
199 2003-08-13 J. Brobecker <brobecker@gnat.com>
201 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
202 (ADDR_BITS_REMOVE): Remove, redundant.
204 2003-08-13 J. Brobecker <brobecker@gnat.com>
206 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
207 gdbarch method to clear the 2 low bits of text addresses.
209 2003-08-12 Andrew Cagney <cagney@redhat.com>
211 * Makefile.in (dsrec.o): Update dependencies.
212 * dsrec.c: Include "gdb_assert.h".
213 (make_srec): Use snprintf instead of sprintf, use a literal format
216 2003-08-12 Andrew Cagney <cagney@redhat.com>
218 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
219 FRAME_OBSTACK_ZALLOC.
221 2003-08-12 Kevin Buettner <kevinb@redhat.com>
223 * i386-tdep.c (i386_gdbarch_init): Enable default support for
226 2003-08-10 Mark Kettenis <kettenis@gnu.org>
228 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
229 amd64fbsd_sc_reg_offset): Add extern declarations.
230 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
233 2003-08-11 Ben Elliston <bje@wasabisystems.com>
235 * MAINTAINERS (write after approval): Update my mail address.
237 2003-08-10 Andrew Cagney <cagney@redhat.com>
239 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
241 2003-08-10 Mark Kettenis <kettenis@gnu.org>
243 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
244 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
245 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
246 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
247 i386bsd_sc_reg_offset): Add extern declarations.
248 * i386obsd-nat.c: Include "i386-tdep.h"
249 (_initialize_i386obsd_nat): Remove extern declarations.
250 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
252 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
255 * i386-tdep.c (i386_register_to_value): Use get_frame_register
256 instead of frame_read_register.
257 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
258 instead of frame_read_register. Use I386_ESP_REGNUM instead of
260 (i386_frame_prev_register): Use frame_unwind_register_unsigned
261 instead of frame_unwind_unsigned_register. Use
262 I386_EFLAGS_REGISTER instead of PS_REGNUM.
263 (i386_get_longjmp_target): Use regcache_read_unsigned_register
264 instead of read_register. Use builtin_type_void_data_ptr instead
265 of builtin_type_void_func_ptr when extracting the address of the
267 (i386_extract_return_value, i386_store_return_value,
268 i386_pseudo_register_read, i386_pseudo_register_write): Use
269 register_size instead REGISTER_RAW_SIZE.
271 2003-08-10 Andrew Cagney <cagney@redhat.com>
273 * infcall.c (call_function_by_hand): Use xstrprintf instead of
274 sprintf. Make "name" constant.
276 2003-08-10 Mark Kettenis <kettenis@gnu.org>
278 * i387-tdep.c (i387_register_to_value): Use get_frame_register
279 instead of frame_read_register.
280 (i387_print_float_info): Use get_frame_register and
281 get_frame_register_unsigned instead of frame_register_read.
283 * i386fbsd-nat.c: Include "i386-tdep.h".
284 (child_resume): Make `eflags' an ULONGEST. Use
285 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
286 instead of register_read and register_write.
288 * i386bsd-nat.c (fetch_inferior_registers,
289 store_inferior_registers): Don't use && at the end of a line.
290 (_initialize_i386bsd_nat): Fix typo.
292 * frame.c (_initialize_frame): Add missing backslash.
294 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
295 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
296 and supply_register instead of manipulating the register buffer
299 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
300 * config/i386/nm-i386sol2.h
301 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
303 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
304 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
305 instructions that GCC likes to mingle into the prologue. Fixes
306 gdb/1253 and gdb/1255.
308 2003-08-09 Andrew Cagney <cagney@redhat.com>
311 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
312 * command.h (add_setshow_uinteger_cmd): Declare.
313 * frame.c (set_backtrace_cmd): New function.
314 (show_backtrace_cmd): New function.
315 * frame.c (_initialize_frame): Replace "set/show
316 backtrace-below-main" with "set/show backtrace past-main". Add
317 command "set/show backtrace limit".
318 (backtrace_past_main): Rename "backtrace_below_main".
319 (backtrace_limit): New variable.
320 (get_prev_frame): Update. Check the backtrace_limit.
322 2003-08-09 Andrew Cagney <cagney@redhat.com>
324 * defs.h (xstrprintf): Declare.
325 * utils.c (xstrprintf): New function.
326 * breakpoint.c (insert_breakpoints): Replace sprintf and
327 non-literal format strings, with xstrprintf and cleanups.
328 (delete_breakpoint,breakpoint_re_set): Ditto.
329 (commands_command, insert_breakpoints): Ditto.
330 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
331 (break_at_finish_command_1): Ditto.
333 2003-08-09 Andrew Cagney <cagney@redhat.com>
335 * MAINTAINERS (language support): List Adam Fedor as Objective C
338 2003-08-08 J. Brobecker <brobecker@gnat.com>
340 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
343 2003-08-08 J. Brobecker <brobecker@gnat.com>
345 * config/pa/tm-hppa64.h: Remove lots of macros that are no
346 longer necessary now that hppa64 is partially multiarch'ed.
348 2003-08-08 Andrew Cagney <cagney@redhat.com>
350 * interps.c (interp_set): Check for a NULL "old_interp".
352 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
354 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
355 (install-only): Support DESTDIR.
356 (uninstall): Likewise.
357 (install-gdbtk): Likewise.
359 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
361 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
362 contains something meaningful at all times.
364 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
366 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
368 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
370 * MAINTAINERS (write after approval): Added self.
372 2003-08-07 Andrew Cagney <cagney@redhat.com>
374 * inferior.h (AT_SYMBOL): Define.
375 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
376 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
377 * mips-tdep.c (mips_call_dummy_address): Delete function.
378 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
379 set call_dummy_address.
381 2003-08-07 Andrew Cagney <cagney@redhat.com>
383 * language.c (op_error): Delete function.
384 (binop_type_check): Delete function.
385 * language.h (type_op_error, range_op_error): Delete macros.
386 (op_error): Delete declaration.
388 2003-08-07 Andrew Cagney <cagney@redhat.com>
390 * interps.h (INTERP_MI2, INTERP_MI3): Define.
392 2003-08-07 Michal Ludvig <mludvig@suse.cz>
394 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
395 (x86_64_push_arguments): Skip the red zone.
397 2003-08-05 Andrew Cagney <cagney@redhat.com>
399 * reggroups.c (reggroup_next): Check for the final entry.
401 2003-08-04 Andrew Cagney <cagney@redhat.com>
403 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
404 * cli/cli-script.c (define_command): Call query directly, instead
405 of passing it a buffer.
406 * ocd.c (ocd_error): Pass error a constant format string.
407 * remote-mips.c (mips_error): Use fputs_filtered.
409 * solib-svr4.c (_initialize_svr4_solib): Update
410 register_gdbarch_data call.
411 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
413 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
414 (register_gdbarch_data): Delete "free" parameter. Update
416 * gdbarch.h, gdbarch.c: Re-generate.
417 * reggroups.c (_initialize_reggroup): Update.
418 * gnu-v3-abi.c (init_gnuv3_ops): Update.
419 * frame-base.c (_initialize_frame_base): Update.
420 * frame-unwind.c (_initialize_frame_unwind): Update.
421 * user-regs.c (_initialize_user_regs): Update.
422 * remote.c (_initialize_remote): Update.
423 * regcache.c (_initialize_regcache): Update.
425 * regcache.c (xfree_regcache_descr): Delete function.
426 (_initialize_regcache): Update call to register_gdbarch_data.
427 (init_regcache_descr, init_legacy_regcache_descr): Use
428 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
430 * remote.c (free_remote_state): Delete function.
431 (_initialize_remote): Update register_gdbarch_data.
432 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
433 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
435 2003-08-04 Andrew Cagney <cagney@redhat.com>
437 * reggroups.c (struct reggroup_el): Define.
438 (struct reggroups): Delete field "nr_group". Replace array
439 "group" with a "first" to "last" linked list.
440 (reggroups_init): Update. Allocate using gdbarch's obstack.
441 (reggroups_free): Delete function.
442 (add_group): Update. Add "el" parameter.
443 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
444 (default_groups): Update.
445 (reggroup_next): Replace reggroups.
446 (reggroups_dump): Update.
447 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
448 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
449 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
451 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
453 * Makefile.in (tui-interp.o): Update dependencies.
455 2003-08-04 David Carlton <carlton@kealia.com>
457 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
458 to internal_error call.
459 * source.c (forward_search_command): Add "%s" format argument.
460 (reverse_search_command): Ditto.
461 * top.c (quit_confirm): Ditto.
462 * cli/cli-setshow.c (do_setshow_command): Ditto.
463 * cp-valprint.c (cp_print_class_method): Replace
464 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
465 (cp_print_class_member): Ditto.
466 * event-top.c (command_line_handler): Ditto.
467 * linux-proc.c (linux_info_proc_cmd): Ditto.
468 * p-typeprint.c (pascal_type_print_base): Ditto.
469 * p-valprint.c (pascal_object_print_class_method): Ditto.
470 (pascal_object_print_class_member): Ditto.
471 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
472 * remote.c (remote_cisco_section_offsets): Ditto.
473 * top.c (command_line_input): Ditto.
474 * utils.c (vwarning,error_stream,quit): Ditto.
475 * valprint.c (print_floating,print_binary_chars)
476 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
478 2003-08-04 Andrew Cagney <cagney@redhat.com>
480 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
482 2003-08-02 Andrew Cagney <cagney@redhat.com>
484 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
485 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
488 2003-08-02 Andrew Cagney <cagney@redhat.com>
490 * Makefile.in: Update all dependencies and definitions.
492 2003-08-02 Adam Fedor <fedor@gnu.org>
494 * linespec.c (is_objc_method_format): New function
495 (decode_line_1, locate_first_half): Use it.
498 2003-08-01 Andrew Cagney <cagney@redhat.com>
500 * NEWS: Mention that m32r is multi-arch.
501 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
502 * configure.tgt: Recognize m32r-*-*.
503 * config/m32r/tm-m32r.h: Delete file.
504 * config/m32r/m32r.mt: New file.
505 * m32r-rom.c (m32r_upload_command): Use hostent only when
506 gethostname succeeds, in order to avoid a compilation
508 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
511 2003-08-01 Michael Snyder <msnyder@redhat.com>
513 * sh-tdep.c (sh_frame_align): New gdbarch method.
514 (sh_gdbarch_init): Set up frame_align method.
516 2003-07-31 Michael Snyder <msnyder@redhat.com>
518 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
519 which is already covered by the new frames infrastructure.
521 2003-07-31 Andrew Cagney <cagney@redhat.com>
523 * user-regs.c (struct user_reg): Add "next" link.
524 (struct user_regs): Replace "user" with "first" and "last" links.
525 (append_user_reg): Add pre-allocated "reg" parameter.
526 (builtin_user_regs): Provide initial value for "last".
527 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
528 (user_regs_init): Allocate memory from the gdbarch obstack.
529 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
530 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
532 (usernum_to_user_reg): New function.
533 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
534 (value_of_user_reg): Use usernum_to_user_reg.
535 (user_regs_free): Delete function.
536 (_initialize_user_regs): Update register_gdbarch_data call.
538 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
540 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
542 2003-07-30 Michael Snyder <msnyder@redhat.com>
544 * value.h (value_being_returned): Add a struct_addr argument.
545 * infcall.c (call_function_by_hand): Pass struct_addr to
546 value_being_returned.
547 * infcmd.c (print_return_value): Pass zero as struct_addr.
548 * values.c (value_being_returned): If struct_addr is passed,
549 use it instead of trying to recover it from the inferior.
551 2003-07-30 Kevin Buettner <kevinb@redhat.com>
553 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
554 the prologue analyzer won't need to attempt to extract the pc
555 value from the woefully incomplete dummy frame.
556 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
557 possible. Disable code which modifies the frame.
559 2003-07-28 Andrew Cagney <cagney@redhat.com>
561 * annotate.c (annotate_breakpoints_headers): Restrict annotation
563 (annotate_breakpoints_table, annotate_record): Ditto.
564 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
565 (annotate_field_name_end, annotate_field_value): Ditto.
566 (annotate_field_end, annotate_frame_source_begin): Ditto.
567 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
568 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
569 (annotate_frame_begin, annotate_frame_function_name): Ditto.
570 (annotate_frame_address_end, annotate_frame_address): Ditto.
571 (annotate_frame_args, annotate_frame_end): Ditto.
572 (annotate_frame_where, annotate_arg_begin): Ditto.
573 (annotate_arg_name_end, annotate_arg_value): Ditto.
574 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
575 (annotate_function_call, annotate_signal_name): Ditto.
576 (annotate_signal_string, annotate_signal_name_end): Ditto.
577 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
578 (annotate_value_begin, annotate_value_history_value): Ditto.
579 (annotate_value_history_end, annotate_value_end): Ditto.
580 (annotate_display_begin, annotate_display_number_end): Ditto.
581 (annotate_display_format, annotate_display_expression): Ditto.
582 (annotate_display_expression_end, annotate_display_value): Ditto.
583 (annotate_display_end, annotate_array_section_begin): Ditto.
584 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
585 (annotate_elt, annotate_array_section_end): Ditto.
587 2003-07-28 Andrew Cagney <cagney@redhat.com>
589 * regcache.c (struct regcache_descr): Update comments on
591 (init_legacy_regcache_descr): Don't set nr_raw_registers or
592 sizeof_raw_register_valid_p.
593 (init_regcache_descr): Set nr_raw_registers and
594 sizeof_raw_register_valid_p before calling
595 init_legacy_regcache_descr.
597 2003-07-28 Andrew Cagney <cagney@redhat.com>
599 * mips-tdep.c (print_gp_register_row): Print the GPR's register
602 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
604 * thread.c (info_threads_command): Use get_selected_frame ().
605 Check that there is at least one non-sentinel frame.
607 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
609 * m68hc11-tdep.c (struct frame_extra_info): Remove.
610 (m68hc11_pop_frame): Remove.
611 (m68hc11_frame_saved_pc): Remove.
612 (m68hc11_frame_chain): Remove.
613 (m68hc11_frame_init_saved_regs): Remove.
614 (m68hc11_init_extra_frame_info): Remove.
615 (m68hc11_store_struct_return): Remove.
616 (m68hc11_saved_pc_after_call): Remove.
618 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
620 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
621 frame unwind information.
622 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
623 and adapted for frame unwinding.
624 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
625 (m68hc11_unwind_pc): New function.
626 (m68hc11_frame_unwind_cache): New function to analyze frames.
627 (m68hc11_frame_this_id): New function to create new frame struct.
628 (m68hc11_frame_prev_register): New function to unwind a register from
630 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
631 (m68hc11_frame_p): New function for the above.
632 (m68hc11_frame_base_address): New function to return fp of frame.
633 (m68hc11_frame_args_address): Update for frame.
634 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
635 (m68hc11_unwind_sp): New function.
636 (m68hc11_unwind_dummy_id): New function.
637 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
640 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
642 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
643 (m68hc11_guess_from_prologue): Advance the pc and frame size only
644 when we are beyond the current pc.
646 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
648 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
649 from m68hc11_push_arguments.
650 (m68hc11_push_arguments): Remove.
651 (m68hc11_push_return_address): Remove.
652 (m68hc11_gdbarch_init): Install the above; remove above deprecated
653 handlers; remove deprecated_extra_stack_alignment_needed.
655 2003-07-27 Andrew Cagney <cagney@redhat.com>
657 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
658 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
659 REAL_PC and not the pointer.
660 * hppa-hpux-tdep.c: Include frame.h
662 2003-07-27 Andrew Cagney <cagney@redhat.com>
664 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
665 GDB_MULTI_ACH_PARTIAL.
667 2003-07-27 Andrew Cagney <cagney@redhat.com>
669 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
670 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
671 operator at start and not end of line.
672 (decode_prologue): Ditto.
673 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
674 frame_unwind_register_unsigned instead of
675 frame_unwind_unsigned_register.
676 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
678 (m32r_push_dummy_call): Use register_size instead of
680 (m32r_frame_sniffer): Replace m32r_frame_p.
681 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
682 * m32r-rom.c (report_transfer_performance): Delete extern
684 (m32r_load, m32r_upload_command): Use print_transfer_performance
685 instead of report_transfer_performance.
686 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
689 2003-07-26 Andrew Cagney <cagney@redhat.com>
691 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
692 store_return_value and extract_struct_value_address.
694 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
697 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
698 NULL, default to the section containing PC.
700 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
702 * NEWS: Mention "regs" deprecated for m68hc11 too.
704 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
705 (m68hc11_print_register): New function to print out one register.
706 (m68hc11_print_registers_info): New function to print registers.
707 (show_regs): Deprecate and use the above.
708 (m68hc11_gdbarch_init): Install the print_registers_info.
710 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
712 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
713 that we have a SIGTRAP before returning non-zero.
715 2003-07-23 Michal Ludvig <mludvig@suse.cz>
716 Elena Zannoni <ezannoni@redhat.com>
718 * linespec.c (decode_line_2): Avoid crash if
719 find_function_start_sal() returns empty record.
721 2003-07-23 Andreas Schwab <schwab@suse.de>
723 * ia64-tdep.c (ia64_print_insn): New function.
724 (ia64_gdbarch_init): Set print_insn to it.
725 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
726 deprecated_tm_print_insn_info.
728 2003-07-22 Michael Snyder <msnyder@redhat.com>
730 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
731 handle 8-bit returns (long long).
732 (h8300h_extract_return_value): Ditto.
733 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
735 2003-07-22 Andrew Cagney <cagney@redhat.com>
737 * gdbarch.c Include "gdb_obstack.h".
738 (struct gdbarch): Add an "obstack".
739 (alloc_gdbarch_data): Allocate the gdbarch data using
740 GDBARCH_OBSTACK_CALLOC.
741 (free_gdbarch_data): Delete function.
742 (gdbarch_obstack_zalloc): New function.
743 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
744 Assert that the architecture is not initialized.
745 (gdbarch_alloc): Allocate an obstack, allocate the architecture
746 vector from the obstack.
747 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
748 architecture obstack.
749 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
750 (set_gdbarch_data): Assert that the data is not initialized.
751 (struct gdbarch_data): Delete member "free".
752 (register_gdbarch_data): Do not initialize "free".
753 * gdbarch.h, gdbarch.c: Re-generate.
755 2003-07-22 Andrew Cagney <cagney@redhat.com>
757 * configure.in (build_warnings): Add -Wformat-nonliteral.
758 * configure: Re-generate.
760 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
762 * dwarf2loc.c (locexpr_describe_location): Fix typos.
764 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
766 * findvar.c (read_var_value): Remove case for thread local storage
767 variables. It is now entirely handled by the dwarf2 location
769 * printcmd.c (address_info): Ditto.
770 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
772 (struct symbol): Remove objfile field, which was used by
773 LOC_THREAD_LOCAL_STATIC only.
774 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
775 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
776 usage of objfile pointer.
777 * dwarf2loc.c (locexpr_describe_location): Add case to handle
778 thread local variables.
779 Add include of objfiles.h.
780 * dwarf2expr.c (execute_stack_op): Add comments about thread local
782 * Makefile.in (dwarf2loc.o): Update dependencies.
784 2003-07-22 Andrew Cagney <cagney@redhat.com>
786 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
788 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
789 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
790 (struct value): Add opaque declaration.
791 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
793 2003-07-21 Andrew Cagney <cagney@redhat.com>
795 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
796 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
798 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
800 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
801 regcache_cooked_read_unsigned instead of read_register.
802 (m68hc11_saved_pc_after_call): Likewise.
803 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
804 instead of write_register.
805 (m68hc11_register_type): New function.
806 (m68hc11_register_virtual_type): Remove.
807 (m68hc11_store_return_value): Convert to use the regcache.
808 (m68hc11_extract_struct_value_address): Likewise.
809 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
810 m68hc11_register_type; undeprecate store_return_value and
811 extract_struct_value_address.
813 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
815 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
816 and translate to use regcache.
817 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
819 2003-07-18 Andrew Cagney <cagney@redhat.com>
821 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
822 * gdbarch.h, gdbarch.c: Re-generate.
823 * i386-tdep.c (i386_gdbarch_init): Do not set
824 DWARF2_BUILD_FRAME_INFO.
825 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
827 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
828 DWARF2_BUILD_FRAME_INFO.
830 2003-07-18 Andrew Cagney <cagney@redhat.com>
832 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
833 * disasm.c (gdb_disassemble_info): Initilize di.arch.
835 2003-07-18 Andrew Cagney <cagney@redhat.com>
837 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
838 frame_unwind_address_in_block, instead of frame_pc_unwind.
839 (dwarf2_frame_cache): Ditto.
841 2003-07-18 Andrew Cagney <cagney@redhat.com>
843 * user-regs.h (struct gdbarch): Declare opaque.
844 * ui-out.h (struct ui_file): Declare opaque.
845 * dwarf2-frame.h (struct frame_info): Declare opaque.
847 2003-07-18 Kris Warkentin <kewarken@qnx.com>
849 * nto-procfs.c: Clean ARI hits. Change #include <..> to
851 (procfs_meminfo): Change strerror to safe_strerror.
852 (procfs_can_run): Remove K&R badness.
854 2003-07-17 Michael Snyder <msnyder@redhat.com>
856 * remote-sim.c: Comment typo fix.
858 2003-07-17 Andrew Cagney <cagney@redhat.com>
860 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
862 * sparc-tdep.c (sparc_intreg_size): Make non-static.
863 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
864 GDB_MULTI_ARCH_PARTIAL.
866 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
868 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
869 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
870 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
872 2003-07-16 Theodore A. Roth <troth@openavr.org>
874 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
876 (avr_frame_unwind_cache): Don't unwind FP for main.
878 Save the computed prev_sp.
879 (avr_saved_regs_unwinder): Remove function.
880 (avr_frame_prev_register): Use PC unwind logic from
881 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
883 2003-07-16 Andrew Cagney <cagney@redhat.com>
885 * frame-base.h (frame_base_p_ftype): Delete definition.
886 (frame_base_append_predicate): Delete declaration.
887 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
888 (frame_unwind_append_predicate): Delete declaration.
889 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
890 (append_predicate): Delete parameter "p".
891 (frame_unwind_append_predicate): Delete function.
892 (frame_unwind_append_sniffer): Update call to append_predicate.
893 (frame_unwind_free): Delete function.
894 (_initialize_frame_unwind): Pass NULL as "free" to
895 register_gdbarch_data.
896 (frame_unwind_init): Append the dummy_frame_sniffer.
897 (frame_unwind_find_by_frame): Simplify.
898 * frame-base.c (struct frame_base_table): Delete field "p".
899 (append_predicate): Delete parameter "p".
900 (frame_base_append_predicate): Delete function.
901 (frame_base_append_sniffer): Update call to append_predicate.
902 (frame_base_free): Delete function.
903 (frame_base_find_by_frame): Simplify.
904 (_initialize_frame_base): Pass NULL as "free" to
905 register_gdbarch_data.
906 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
907 (x86_64_sigtramp_frame_sniffer): Replace
908 "x86_64_sigtramp_frame_p".
909 (x86_64_init_abi): Set the frame unwind sniffers.
910 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
911 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
912 (m68k_gdbarch_init): Set the frame unwind sniffers.
913 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
914 "i386_sigtramp_frame_p".
915 (i386_frame_sniffer): Replace "i386_frame_p".
916 (i386_gdbarch_init): Set the frame unwind sniffers.
917 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
918 (avr_gdbarch_init): Set the frame unwind sniffers.
919 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
920 "alpha_sigtramp_frame_p"
921 (alpha_heuristic_frame_sniffer): Replace
922 "alpha_heuristic_frame_p".
923 (alpha_gdbarch_init): Set the frame unwind sniffers.
924 (alpha_dwarf2_init_abi): Ditto.
925 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
926 "alpha_debug_frame_p".
927 (alpha_mdebug_frame_base_sniffer): Replace
928 "alpha_mdebug_frame_base_p".
929 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
930 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
931 (d10v_gdbarch_init): Set the frame unwind sniffer.
932 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
933 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
934 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
935 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
936 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
937 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
939 2003-07-16 Michael Snyder <msnyder@redhat.com>
941 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
942 should go thru sh_dsp_register_sim_regno, else the dsp regs
943 will not get the right values.
945 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
947 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
948 deprecated_store_floating by call to store_typed_floating.
949 (sh_sh4_register_convert_to_raw): Substitute call to
950 deprecated_extract_floating by call to extract_typed_floating.
952 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
954 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
956 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
958 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
959 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
960 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
962 (do_pseudo_register): Remove.
963 (sh_push_dummy_code): New function.
964 (sh64_store_struct_return): Rename from sh_store_struct_return.
965 Only called for sh64 now.
966 (sh_extract_struct_value_address): Regcache'ify.
967 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
968 and accomodate new tasks.
969 (sh64_push_return_address): Rename from sh_push_return_address.
970 Only called for sh64 now.
971 (sh_default_extract_return_value): Rename from sh_extract_return_value.
973 (sh3e_sh4_extract_return_value): Regcache'ify.
974 (sh_default_store_return_value): Ditto.
975 (sh3e_sh4_store_return_value): Ditto.
976 (sh_default_register_byte): Remove.
977 (sh_sh4_register_byte): Remove.
978 (sh_default_register_raw_size): Remove.
979 (sh_sh4_register_raw_size): Remove.
980 (sh_register_virtual_size): Remove.
981 (sh_sh3e_register_virtual_type): Remove.
982 (sh_sh3e_register_type): New function.
983 (sh_sh4_register_virtual_type): Remove.
984 (sh_sh4_register_type): New function.
985 (sh_default_register_virtual_type): Remove.
986 (sh_default_register_type): New function.
987 (do_fv_register_info): Add parameters to accomodate call from
988 sh_print_registers_info.
989 (do_dr_register_info): Ditto.
990 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
991 Add parameters to accomodate call from sh_print_registers_info.
992 (sh_do_fp_register): Ditto.
993 (sh64_do_pseudo_register): Call do_dr_register_info,
994 do_fv_register_info and sh_do_fp_register with default parameters.
995 (sh_do_register): Add parameters to accomodate call from
996 sh_print_registers_info.
997 (sh_print_register): Ditto.
998 (sh_print_registers_info): Rename from sh_do_registers_info.
999 Add parameters to be used as gdbarch_print_registers_info
1000 implementation. Accomodate removed do_pseudo_register function
1002 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1003 function pointer. Call sh_print_register with default parameters.
1004 (sh64_do_registers_info): Call sh_print_registers_info instead of
1005 sh_do_registers_info.
1006 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1007 detection of deprecated vs. non-deprecated functionality.
1008 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1009 function pointer assignments by direct function calls.
1011 2003-07-15 Andrew Cagney <cagney@redhat.com>
1013 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1014 (frame_register_unwind, create_new_frame): Ditto.
1015 (legacy_get_prev_frame, get_frame_type): Ditto.
1016 (get_frame_base_address): Use frame_base_find_by_frame.
1017 (get_frame_locals_address): Use frame_base_find_by_frame.
1018 (get_frame_args_address): Use frame_base_find_by_frame.
1019 * frame-base.h (frame_base_sniffer_ftype): Declare.
1020 (frame_base_append_sniffer): Declare.
1021 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1022 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1023 (frame_base_append_sniffer): New function.
1024 (frame_base_append_predicate): Add a NULL sniffer.
1025 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1026 (struct frame_base_table): Add "sniffer".
1027 (frame_base_free): Free the "sniffer" table.
1028 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1029 (frame_unwind_append_sniffer): Declare.
1030 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1031 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1032 (struct frame_unwind_table): Add "sniffer", delete "middle".
1033 (append_predicate): Add "sniffer" parameter, append the sniffer.
1034 (frame_unwind_init): Update append_predicate call.
1035 (frame_unwind_append_sniffer): New function.
1036 (frame_unwind_append_predicate): Update append_predicate call.
1037 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1039 2003-07-15 Andrew Cagney <cagney@redhat.com>
1041 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1042 before code inhibiting repeated unwind attempts. Add to
1043 commentary on that test's problems.
1044 * blockframe.c (inside_main_func): Look for "main" in the minimal
1046 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1049 2003-07-15 Andrew Cagney <cagney@redhat.com>
1051 * complaints.c (struct explanation): Define.
1052 (struct complaints): Change type of "explanation" to "struct
1054 (symfile_explanations): Convert to a "struct explanation" table.
1055 (vcomplaint): Update.
1057 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1059 * x86-64-linux-nat.c (regmap): Removed.
1060 (supply_gregset, fill_gregset): Call
1061 x86_64_linux_(fill,supply)_gregset functions.
1062 * x86-64-linux-tdep.c (USER_*): New defines.
1063 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1064 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1066 (fetch_core_registers): Ditto.
1067 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1068 * x86-64-linux-tdep.h: New file.
1069 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1071 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1073 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1075 * x86-64-tdep.c (x86_64_store_return_value): Use
1076 regcache_cooked_write_part instead of regcache_cooked_write.
1078 * configure.host: Add x86_64-*-freebsd*.
1079 * configure.tgt: Add x86_64-*-freebsd*.
1080 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1081 * amd64fbsd-nat.c: New file.
1082 * amd64fbsd-tdep.c: New file.
1083 * config/i386/nm-fbsd64.h: New file.
1084 * config/i386/fbsd64.mh: New file.
1085 * config/i386/fbsd64.mt: New file.
1087 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1089 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1090 `sc_regs_offset' and `sc_fpregs_offset'.
1091 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1092 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1093 (alpha_sigtramp_register_address): Rewrite to use new members of
1094 `struct gdbarch_tdep'.
1095 (alpha_gdbarch_init): Initialize new members of struct
1097 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1098 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1099 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1100 (alphafbsd_pc_in_sigtramp): Implement.
1101 (alphafbsd_sigtramp_offset): New function.
1102 (alphafbsd_sigcontext_addr): New function.
1103 (alphafbsd_init_abi): Initialize signal trampoline related members
1104 of `struct gdbarch_tdep'.
1105 (_initialize_alphafbsd_tdep): Add prototype.
1107 2003-07-11 Theodore A. Roth <troth@openavr.org>
1109 * Makefile.in (install-only): Quote sed expression when generating
1112 2003-07-11 Richard Henderson <rth@redhat.com>
1114 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1115 * dwarf2-frame.c: Include complaints.h.
1116 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1117 variable initialization; return NULL on error.
1118 (decode_frame_entry): New.
1120 2003-07-11 Andrew Cagney <cagney@redhat.com>
1122 * frame.h (frame_address_in_block): Delete declaration.
1123 * blockframe.c (frame_address_in_block): Delete function.
1124 (get_frame_block): Use get_frame_address_in_block.
1125 (block_innermost_frame): Ditto.
1126 * stack.c (print_frame, backtrace_command_1): Ditto.
1128 * frame.h (get_frame_address_in_block): Declare.
1129 (frame_unwind_address_in_block): Declare.
1130 * frame.c (frame_unwind_address_in_block): New function.
1131 (get_frame_address_in_block): New function.
1133 2003-07-10 Andrew Cagney <cagney@redhat.com>
1135 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1136 pre-default. Note: re-generate has no effect.
1138 2003-07-10 Andrew Cagney <cagney@redhat.com>
1140 * gdbarch.sh: When a variable, but not a function, compare against
1141 0. Fix problem in previous patch.
1142 * gdbarch.c: Re-generate.
1144 2003-07-10 Andrew Cagney <cagney@redhat.com>
1146 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1147 functions against NULL, not 0.
1148 * gdbarch.c: Re-generate.
1150 2003-07-10 Fred Fish <fnf@ninemoons.com>
1152 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1153 null string instead of a null pointer.
1154 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1156 2003-07-09 Michael Snyder <msnyder@redhat.com>
1158 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1160 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1162 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1163 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1164 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1165 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1166 * x86-64-tdep.c: ... from here.
1168 2003-07-09 Andreas Schwab <schwab@suse.de>
1170 * m68k-tdep.h (enum struct_return): Define.
1171 (struct gdbarch_tdep): Add struct_return.
1172 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1173 bytes are padded to the right, not to the left. Pass struct value
1174 address in register %a1, not on stack.
1175 (m68k_use_struct_convention): New function.
1176 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1177 struct_return in tdep to pcc_struct_return.
1178 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1181 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1183 * somread.c (som_symfile_offsets): Fix compilation error.
1185 2003-07-09 Andrew Cagney <cagney@redhat.com>
1187 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1188 Add comments about the checks.
1190 2003-07-08 Andrew Cagney <cagney@redhat.com>
1192 * Makefile.in: Make dependency section headers consistent.
1193 (config_h): Move to $BUILD headers section.
1194 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1195 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1196 (ada-exp.tab.c): Move to YACC/LEX section.
1197 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1198 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1200 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1202 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1203 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1204 of strerror with safe_strerror, use ISO C function definitions,
1205 and replace instances of sprintf with snprintf.
1207 2003-07-07 Andrew Cagney <cagney@redhat.com>
1209 * frame.c (get_prev_frame): Enable check for identical frames.
1210 Update comments. Update error messages.
1212 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1214 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1216 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1218 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1219 sort_symtab_syms, no longer necessary.
1221 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1223 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1225 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1227 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1228 (mips_register_byte): Likewise.
1230 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1232 * Makefile.in (sparc_tdep_h): New.
1233 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1234 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1235 * sparc-linux-nat.c: Include "sparc-tdep.h".
1236 * sparc-nat.c: Likewise.
1237 * sparc-tdep.c: Likewise.
1238 * sparc64nbsd-nat.c: Likewise.
1239 * sparcnbsd-nat.c: Likewise.
1240 * sparcnbsd-tdep.c: Likewise.
1241 * sparc-tdep.h: New file.
1242 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1243 and sparc_npc_regnum.
1245 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1247 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1248 (mips_linux_cannot_store_register): List supported instead of
1249 unsupported registers.
1251 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1253 * disasm.c (dump_insns): Separate instructions from addresses.
1255 2003-07-07 Andreas Schwab <schwab@suse.de>
1257 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1259 * m68k-tdep.c (NUM_FREGS): Delete.
1260 (SIG_PC_FP_OFFSET): Delete.
1261 (TARGET_M68K): Delete.
1262 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1263 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1264 P_MOVEL_SP, P_MOVEML_SP): Define.
1265 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1267 (m68k_register_raw_size): Delete.
1268 (m68k_register_virtual_size): Delete.
1269 (m68k_register_type): Renamed from m68k_register_virtual_type and
1270 add gdbarch argument.
1271 (m68k_store_struct_return): Delete.
1272 (m68k_deprecated_extract_return_value): Delete.
1273 (m68k_deprecated_extract_struct_value_address): Delete.
1274 (m68k_frame_chain): Delete.
1275 (m68k_frame_saved_pc): Delete.
1276 (m68k_fix_call_dummy): Delete.
1277 (m68k_push_dummy_frame): Delete.
1278 (m68k_pop_frame): Delete.
1279 (m68k_extract_return_value): New function.
1280 (m68k_store_return_value): Rewrite using regcache.
1281 (m68k_extract_struct_value_address): Rewrite using regcache.
1282 (m68k_push_dummy_call): New function.
1283 (struct m68k_frame_cache): Define.
1284 (m68k_alloc_frame_cache): New function.
1285 (m68k_analyze_frame_setup): New function.
1286 (m68k_analyze_register_saves): New function.
1287 (m68k_analyze_prologue): New function.
1288 (m68k_skip_prologue): Rewrite using above functions.
1289 (m68k_unwind_pc): New function.
1290 (m68k_frame_cache): New function.
1291 (m68k_frame_this_id): New function.
1292 (m68k_frame_prev_register): New function.
1293 (m68k_frame_unwind): New variable.
1294 (m68k_frame_p): New function.
1295 (m68k_sigtramp_frame_cache): New function.
1296 (m68k_sigtramp_frame_this_id): New function.
1297 (m68k_sigtramp_frame_prev_register): New function.
1298 (m68k_sigtramp_frame_unwind): New variable.
1299 (m68k_sigtramp_frame_p): New function.
1300 (m68k_frame_base_address): New function.
1301 (m68k_frame_base): New function.
1302 (m68k_unwind_dummy_id): New function.
1303 (fill_gregset): Use regcache_collect.
1304 (fill_fpregset): Likewise.
1305 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1307 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1308 deprecated_init_frame_pc, deprecated_store_struct_return,
1309 deprecated_extract_return_value, deprecated_store_return_value,
1310 deprecated_frame_chain, deprecated_frame_saved_pc,
1311 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1312 deprecated_register_virtual_size,
1313 deprecated_max_register_raw_size,
1314 deprecated_max_register_virtual_size,
1315 deprecated_register_virtual_type, deprecated_register_size,
1316 deprecated_register_byte, deprecated_register_bytes,
1317 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1318 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1319 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1320 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1321 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1322 deprecated_push_dummy_frame, deprecated_pop_frame,
1323 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1324 only if SYSCALL_TRAP is defined. Set extract_return_value,
1325 store_return_value, extract_struct_value_address, register_type,
1326 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1328 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1329 M68K_MAX_REGISTER_SIZE): Define.
1330 (struct m68k_sigtramp_info): Define.
1331 (struct gdbarch_tdep): Add get_sigtramp_info.
1332 * m68klinux-nat.c (fetch_register): Use register_size instead of
1333 REGISTER_RAW_SIZE. Don't put assignment in if.
1334 (store_register): Likewise.
1335 (fetch_inferior_registers): Likewise.
1336 (store_inferior_registers): Likewise.
1337 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1338 (m68k_linux_frame_saved_pc): Delete.
1339 (m68k_linux_sigcontext_reg_offset,
1340 m68k_linux_ucontext_reg_offset): Define.
1341 (m68k_linux_get_sigtramp_info): New function.
1342 (m68k_linux_extract_return_value): Rewrite using regcache.
1343 (m68k_linux_store_return_value): Likewise.
1344 (m68k_linux_extract_struct_value_address): Likewise.
1345 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1346 Don't set deprecated_frame_saved_pc,
1347 deprecated_extract_return_value, deprecated_store_return_value,
1348 deprecated_extract_struct_value_address. Set
1349 extract_return_value, store_return_value,
1350 extract_struct_value_address.
1352 2003-07-07 Andrew Cagney <cagney@redhat.com>
1354 * expprint.c: Include "user-regs.h" instead of "frame.h".
1355 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1356 frame_map_regnum_to_name.
1357 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1358 (frame_map_name_to_regnum): Simplify, call
1359 user_reg_map_name_to_regnum.
1360 (frame_map_regnum_to_name): Simplify, call
1361 user_reg_map_regnum_to_name.
1362 (frame_register_unwind): Update.
1363 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1364 (_initialize_frame_reg): Call user_reg_add_builtin.
1365 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1366 (value_of_register): Use value_of_user_reg.
1367 * eval.c (evaluate_subexp_standard): Update.
1368 * parse.c (write_dollar_variable): Update.
1369 * d10v-tdep.c (d10v_print_registers_info): Update.
1370 * infcmd.c (registers_info): Update.
1371 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1372 (builtin_regs_h): Delete macro.
1373 (user_regs_h): Define.
1374 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1375 (builtin-regs.o): Delete target.
1376 (user-regs.o): Specify dependencies.
1377 (expprint.o): Update dependencies.
1378 (findvar.o): Update dependencies.
1379 (frame.o): Update dependencies.
1380 (std-regs.o): Update dependencies.
1382 2003-07-06 Christopher Faylor <cgf@redhat.com>
1384 * win32-nat.c (solib_symbols_add): Use one variable for all section
1385 address stuff. Pass variable rather than address of variable to
1386 safe_symbol_file_add.
1388 2003-07-06 Andreas Schwab <schwab@suse.de>
1390 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1392 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1394 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1396 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1398 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1400 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1402 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1403 * config/i386/nto.mh: New file.
1404 * config/i386/nm-nto.h: New file.
1405 * configure.host: Add i[3456]86-*-nto*.
1407 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1409 * remote-vx.c (vx_add_symbols): Fix compilation error.
1411 2003-07-03 Andrew Cagney <cagney@redhat.com>
1413 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1414 * gdbarch.h, gdbarch.c: Re-generate.
1415 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1416 (legacy_register_name): Declare.
1417 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1418 (REGISTER_NAME): Define.
1419 * sparc-tdep.c (legacy_register_name): New function.
1420 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1421 (REGISTER_NAME): Define.
1422 (hppa64_register_name): Declare.
1423 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1424 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1425 (hppa64_register_name): New function.
1426 (hppa_register_name): New function.
1427 * arch-utils.c (legacy_register_name): Delete.
1428 * arch-utils.h (legacy_register_name): Delete.
1430 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1432 * cli/cli-interp.c (cli_interpreter_resume): Update the
1433 cli_uiout's stream to gdb_stdout.
1435 2003-07-03 Andrew Cagney <cagney@redhat.com>
1437 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1439 * gdbarch.h, gdbarch.c: Re-generate.
1440 * regcache.c (init_regcache_descr): Use legacy code when either
1441 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1443 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1445 * NEWS: Move "set logging" entry into GDB 6.0 section.
1447 2003-07-02 Jim Blandy <jimb@redhat.com>
1449 * s390-tdep.c (struct frame_extra_info): new member:
1450 'stack_bought_valid'.
1451 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1452 initialize fextra_info->stack_bought.
1453 (s390_frameless_function_invocation): Don't trust the value of
1454 fextra_info_ptr->stack_bought unless
1455 fextra_info->stack_bought_valid is set.
1457 New S390 prologue analyzer.
1458 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1459 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1460 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1461 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1462 compute_x_addr, s390_on_stack, s390_store,
1463 s390_get_signal_frame_info): New functions.
1464 (S390_NUM_SPILL_SLOTS): New macro.
1465 (s390_get_frame_info): Rewritten.
1466 (is_arg_reg): Deleted.
1468 Break out the decoding of S/390 instructions into separate
1469 functions, to make it more legible, and easier to check
1471 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1472 is_rx, is_rxe): New functions.
1473 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1474 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1475 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1476 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1477 enums for opcode values. (Is this an improvement?)
1479 2003-07-02 Andrew Cagney <cagney@redhat.com>
1481 * i386-tdep.c: Revert change committed as part of trad-frame code
1484 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1486 * breakpoint.c (insert_catchpoint): Make static.
1488 2003-07-02 Andreas Schwab <schwab@suse.de>
1490 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1491 former ia64_push_arguments and ia64_push_return_address, and use
1492 regcache functions instead of read/write_register.
1493 (ia64_gdbarch_init): Set push_dummy_call instead of
1494 deprecated_push_arguments and deprecated_push_return_address.
1496 2003-07-01 Andreas Jaeger <aj@suse.de>
1498 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1500 Set %rax only to number of SSE registers used.
1502 2003-07-01 Andrew Cagney <cagney@redhat.com>
1504 * trad-frame.h: Update comments, a -1 .addr is reserved.
1505 (trad_frame_value_p, trad_frame_addr_p): Declare.
1506 (trad_frame_reg_p): Declare.
1507 (trad_frame_set_value): Rename trad_frame_register_value.
1508 (trad_frame_set_unknown): Declare.
1509 * trad-frame.c (trad_frame_realreg_p): New function.
1510 (trad_frame_addr_p, trad_frame_value_p): New function.
1511 (trad_frame_set_unknown): New function.
1512 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1513 (trad_frame_prev_register): Use trad_frame_realreg_p,
1514 trad_frame_addr_p and trad_frame_value_p.
1515 (trad_frame_set_value): Rename trad_frame_register_value.
1516 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1517 and trad_frame_set_value.
1519 2003-06-30 Jim Blandy <jimb@redhat.com>
1521 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1522 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1523 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1524 for 16 registers, and then 32 more bytes.
1525 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1527 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1528 Move up in the file, since it's now used by is_simple_arg.
1529 (is_simple_arg): Don't assume registers are four bytes long.
1530 Exclude all double arguments. Extended floats are not simple
1532 (is_power_of_two): New function.
1533 (pass_by_copy_ref): Call is_power_of_two, and check that the
1534 length fits in a register, rather than listing all the acceptable
1535 sizes. Extended floats are not passed by reference.
1536 (s390_push_arguments): Don't assume registers are four bytes long.
1537 Reserve an argument register to point to the buffer for structures
1538 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1539 S390_STACK_FRAME_OVERHEAD.
1541 2003-06-30 Andreas Schwab <schwab@suse.de>
1543 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1544 format error message.
1546 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1548 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1550 2003-06-30 David Carlton <carlton@kealia.com>
1552 Band-aid for PR c++/1245.
1553 * Makefile.in (cp-support.o): Depend on complaints_h.
1554 * cp-support.c: Include complaints.h. Add declaration for
1555 find_last_component.
1556 (cp_find_first_component): Separate code into
1557 cp_find_first_component_aux.
1558 (cp_find_first_component_aux): Call demangled_name_complaint.
1559 (demangled_name_complaint): New.
1561 2003-06-30 Andrew Cagney <cagney@redhat.com>
1563 * remote.c (remote_write_bytes): Explicitly compute and then use
1564 the payload size. Update comments to reflect. Fixes problem of
1565 GDB not sending small packets as found by Fred Fish.
1567 2003-06-30 Andrew Cagney <cagney@redhat.com>
1569 * remote.c (remote_async_wait): Fix -Wformat problem.
1571 2003-06-29 Andrew Cagney <cagney@redhat.com>
1573 * remote.c (remote_wait): Call error, and not warning, when the
1575 (remote_async_wait): Ditto.
1577 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1579 * sparc-tdep.c (sparc_y_regnum): Make external again.
1581 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1583 * cli/cli-logging.c (pop_output_files): Add void to function
1586 2003-06-29 Andrew Cagney <cagney@redhat.com>
1588 * frame.c (frame_register_unwind): Use unsigned char when dumping
1589 the buffer contents.
1591 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1593 * cli/cli-logging.c: New file.
1594 * cli-out.c (struct ui_out_data): Add original_stream.
1595 (cli_redirect): New function.
1596 (cli_ui_out_impl): Add cli_redirect.
1597 (cli_out_new): Initialize original_stream.
1598 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1599 (uo_redirect, ui_out_redirect): New.
1600 * ui-out.h (struct ui_out_impl): Add redirect member.
1601 (redirect_ftype): New.
1602 (ui_out_redirect): Add prototype.
1603 * Makefile.in: Add rules for cli-logging.c.
1604 * NEWS: Mention "set logging".
1606 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1608 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1610 2003-06-27 Andrew Cagney <cagney@redhat.com>
1612 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1613 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1614 * avr-tdep.c (avr_call_dummy_address): Delete function.
1615 (avr_gdbarch_init): Do not set call_dummy_address.
1617 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1619 * symfile.c (syms_from_objfile): Move variables to inner block.
1620 Move the checks for the non-mainline case a bit earlier to avoid
1621 doing some useless computations.
1623 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1625 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1627 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
1629 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1632 2003-06-26 Michael Chastain <mec@shout.net>
1634 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1635 gdb/testsuite/gdb.c++/pr-1210.exp.
1637 2003-06-26 Andrew Cagney <cagney@redhat.com>
1639 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1640 altivec_expression.h and altivec_registers.h.
1642 2003-06-26 Andrew Cagney <cagney@redhat.com>
1644 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1645 info->mach when MIPS16. Patch suggested by Fred Fish.
1647 2003-06-26 Andrew Cagney <cagney@redhat.com>
1649 * utils.c (internal_vproblem): Print the problem to a reason
1650 buffer and then pass to query. Make the msg variable more local.
1652 2003-06-26 Andrew Cagney <cagney@redhat.com>
1654 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1655 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1656 * gdbarch.h, gdbarch.c: Re-generate.
1657 * frame-base.c (default_frame_args_address): Update. Use
1658 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1660 (default_frame_locals_address): Ditto for
1661 DEPRECATED_FRAME_LOCALS_ADDRESS.
1662 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1663 (vax_frame_num_args): Update.
1664 (vax_gdbarch_init): Update.
1665 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1666 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1667 * mcore-tdep.c (mcore_gdbarch_init): Update.
1668 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1669 * ia64-tdep.c (ia64_gdbarch_init): Update.
1670 * symtab.h (address_class): Update comments.
1671 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1672 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1673 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1674 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1675 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1676 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1677 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1678 * alpha-mdebug-tdep.c: Update.
1679 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1681 2003-06-26 Andreas Jaeger <aj@suse.de>
1683 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1684 of SSE registers so that varargs functions work. Rework handling
1685 of passing arguments on the stack.
1686 (x86_64_store_return_value): Return double and float values in SSE
1689 2003-06-24 Michael Chastain <mec@shout.net>
1691 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1692 the "constructor breakpoints ignored" bug.
1694 2003-06-25 David Carlton <carlton@kealia.com>
1696 * MAINTAINERS: Update e-mail address.
1698 2003-06-24 Jim Blandy <jimb@redhat.com>
1700 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1702 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1704 (ppc_linux_init_abi): Register it as the
1705 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1707 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1708 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1711 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1712 (ppc64_standard_linkage_target): Use it.
1714 2003-06-23 Andrew Cagney <cagney@redhat.com>
1716 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1717 for 0 "int0" and 4 "int32" sized registers.
1718 * gdbtypes.c (builtin_type_int0): Define.
1719 (build_gdbtypes): Initialize builtin_type_int0.
1720 * gdbtypes.h (builtin_type_int0): Declare.
1722 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1724 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1725 as characters are unsigned.
1727 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1730 * dwarfread.c (struct_type): Skip static fields without crashing.
1732 2003-06-22 Andrew Cagney <cagney@redhat.com>
1734 GDB 6.0 branch created.
1736 * PROBLEMS: Update. Empty.
1739 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1741 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1742 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1744 2003-06-22 Andrew Cagney <cagney@redhat.com>
1746 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1747 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1750 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1752 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1755 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1757 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1758 argument of val_print.
1759 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1760 to the address argument of baseclass_offset or target_read_memory.
1761 Do add it to the argument of cp_print_value_fields.
1763 2003-06-21 Andrew Cagney <cagney@redhat.com>
1765 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1766 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1767 instead of 0..NUM_REGS.
1768 (mips_register_reggroup_p): New function.
1769 (mips_pseudo_register_write): New function.
1770 (mips_pseudo_register_read): New function.
1771 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1772 based on the register's type.
1773 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1775 (mips_get_saved_register): Simplify. Assert that REGNO is a
1777 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1778 (mips_register_type): Replace mips_register_virtual_type. Map
1779 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1781 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
1782 that the register is cooked / virtual.
1783 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1784 Only get the extra info when needed.
1785 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1786 (mips32_heuristic_proc_desc): Fetch the cooked register.
1787 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1788 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1789 (mips_print_register): Use gdbarch_register_type, instead of
1790 REGISTER_VIRTUAL_TYPE.
1791 (print_gp_register_row): Use gdbarch_register_type, instead of
1792 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
1793 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1794 Print the pseudo / cooked registers.
1795 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1796 Print the pseudo / cooked registers.
1797 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
1798 REG_NUM is pseudo / cooked.
1799 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1800 (mips_n32n64_xfer_return_value): Ditto.
1801 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1802 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1803 (mips_register_sim_regno): New function.
1804 (mips_gdbarch_init): Set deprecated_register_byte,
1805 register_group_p, pseudo_register_write, pseudo_register_read,
1806 register_sim_regno, and num_pseudo_regs. Set register_type,
1807 instead of register_virtual_type.
1808 * Makefile.in (mips-tdep.o): Update dependencies.
1809 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1810 REGISTER_VIRTUAL_TYPE.
1811 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1812 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1813 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1814 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1815 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1817 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1819 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1820 * cli/cli-cmds.c: Include "gdb_vfork.h".
1821 (shell_escape): Use vfork.
1823 2003-06-21 Andrew Cagney <cagney@redhat.com>
1825 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1826 32 bit floating-point register saves.
1828 * frame.h (deprecated_unwind_get_saved_register): Delete.
1829 * frame.c (deprecated_unwind_get_saved_register): Delete function.
1830 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1831 and deprecated_get_next_frame_hack instead of
1832 deprecated_unwind_get_saved_register.
1834 * mips-tdep.c (mips_dump_tdep): Do not print
1835 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1837 * frame.c (get_frame_register): New function.
1838 (frame_unwind_register_signed): New function.
1839 (get_frame_register_signed): New function.
1840 (frame_unwind_register_unsigned): New function.
1841 (get_frame_register_unsigned): New function.
1842 * frame.h: Add comments on naming schema.
1843 (get_frame_register, frame_unwind_register_signed): Declare.
1844 (get_frame_register_signed, get_frame_register_signed): Declare.
1845 (frame_unwind_register_unsigned): Declare.
1846 (get_frame_register_unsigned): Declare.
1848 2003-06-20 Theodore A. Roth <troth@openavr.org>
1850 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
1852 2003-06-20 Theodore A. Roth <troth@openavr.org>
1854 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
1855 (avr_read_sp): Ditto.
1857 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
1859 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
1860 * config/arm/nm-linux.h: Likewise.
1861 * config/arm/tm-linux.h: Likewise.
1862 * config/ia64/nm-linux.h: Likewise.
1863 * config/ia64/tm-ia64.h: Likewise.
1864 * config/s390/tm-linux.h: Likewise.
1865 * config/s390/tm-s390.h: Likewise.
1866 * s390-nat.c: Likewise.
1867 * s390-tdep.c: Likewise.
1869 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
1870 * config/ia64/linux.mt: Likewise.
1871 * config/m68k/linux.mh: Likewise.
1872 * config/mips/linux.mt: Likewise.
1873 * config/powerpc/linux.mh: Likewise.
1874 * config/sh/linux.mt: Likewise.
1876 2003-06-19 Kris Warkentin <kewarken@qnx.com>
1878 * solib.c (solib_open): Change tests for whether to search
1879 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
1882 2003-06-19 Theodore A. Roth <troth@openavr.org>
1884 * avr-tdep.c (avr_frame_address): Delete function.
1885 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
1886 set_gdbarch_frame_args_address.
1888 2003-06-19 Andrew Cagney <cagney@redhat.com>
1890 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
1891 (REGISTER_CONVERT_FROM_TYPE): Delete.
1892 (mips_register_convert_to_type): Delete declaration.
1893 (mips_register_convert_from_type): Delete declaration.
1894 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
1897 2003-06-19 Michael Snyder <msnyder@redhat.com>
1899 * linux-nat.h: New file.
1900 * linux-nat.c: Include linux-nat.h.
1901 * lin-lwp.c: Include linux-nat.h.
1902 Move struct lwp_info def to linux-nat.h.
1903 * linux-proc.c: Include linux-nat.h.
1904 (linux_make_note_section): Iterate over lwps instead of threads.
1905 (linux_do_thread_registers): Use lwp instead of merged pid.
1906 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
1907 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
1908 Add dependency on linux_nat_h.
1910 2003-06-19 Theodore A. Roth <troth@openavr.org>
1912 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
1914 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1916 * varobj.c (get_type, get_target_type): Use check_typedef.
1918 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1920 * breakpoint.c (insert_catchpoint): Call internal_error.
1922 2003-06-19 Theodore A. Roth <troth@openavr.org>
1924 * avr-tdep.c (avr_push_dummy_code): Delete function.
1925 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
1927 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1929 * arch-utils.c (default_prepare_to_proceed): Remove.
1930 (generic_prepare_to_proceed): Remove.
1931 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
1932 (generic_prepare_to_proceed): Remove prototype.
1933 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
1934 * gdbarch.c: Regenerate.
1935 * gdbarch.h: Regenerate.
1936 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
1937 * hppah-nat.c (hppa_switched_threads): Remove.
1938 * infrun.c (prepare_to_proceed): New static function, copied from
1939 generic_prepare_to_proceed. Remove select_it argument.
1940 (proceed): Call prepare_to_proceed.
1941 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
1943 (ptrace_wait): Don't set the removed variables.
1944 (hppa_switched_threads): Remove.
1945 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
1946 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
1947 (lin_lwp_prepare_to_proceed): Remove prototype.
1948 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
1949 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
1951 2003-06-18 Theodore A. Roth <troth@openavr.org>
1953 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
1955 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
1956 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
1957 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
1958 (AVR_PROLOGUE_*): Enumerate prologue types.
1959 (struct frame_extra_info): Remove.
1960 (struct avr_unwind_cache): Define.
1961 (avr_write_sp): Delete function.
1962 (avr_read_fp): Ditto.
1963 (avr_init_extra_frame_info): Ditto.
1964 (avr_pop_frame): Ditto.
1965 (avr_frame_saved_pc): Ditto.
1966 (avr_saved_pc_after_call): Ditto.
1967 (avr_push_return_address): Ditto.
1968 (avr_frame_chain): Ditto.
1969 (avr_store_struct_return): Ditto.
1970 (avr_push_arguments): Ditto.
1971 (avr_scan_prologue): Update comments. Changed to set up the info for
1972 cache unwinding. Now returns end of prologue PC.
1973 (avr_skip_prologue): Better handling of functions lacking a prologue
1974 by using avr_scan_prologue.
1975 (avr_scan_arg_moves): New function.
1976 (avr_saved_regs_unwinder): Ditto.
1977 (avr_frame_unwind_cache): Ditto.
1978 (avr_unwind_pc): Ditto.
1979 (avr_frame_this_id): Ditto.
1980 (avr_frame_prev_register): Ditto.
1981 (avr_frame_p): Ditto.
1982 (avr_frame_base_address ): Ditto.
1983 (avr_unwind_dummy_id): Ditto.
1984 (avr_push_dummy_code): Ditto.
1985 (push_stack_item): Ditto.
1986 (pop_stack_item): Ditto.
1987 (avr_push_dummy_call): Ditto.
1988 (struct stack_item): Define.
1989 (avr_frame_unwind): Declare structure.
1990 (avr_frame_base): Ditto.
1991 (avr_gdbarch_init): Remove calls to
1992 set_gdbarch_deprecated_init_frame_pc,
1993 set_gdbarch_deprecated_target_read_fp,
1994 set_gdbarch_deprecated_dummy_write_sp,
1995 set_gdbarch_deprecated_fp_regnum,
1996 set_gdbarch_deprecated_push_arguments,
1997 set_gdbarch_deprecated_push_return_address,
1998 set_gdbarch_deprecated_pop_frame,
1999 set_gdbarch_deprecated_store_struct_return,
2000 set_gdbarch_deprecated_frame_init_saved_regs,
2001 set_gdbarch_deprecated_init_extra_frame_info,
2002 set_gdbarch_deprecated_frame_chain,
2003 set_gdbarch_deprecated_frame_saved_pc,
2004 set_gdbarch_deprecated_saved_pc_after_call.
2005 Add calls to set_gdbarch_push_dummy_call,
2006 set_gdbarch_push_dummy_code,
2007 frame_unwind_append_predicate,
2008 frame_base_set_default,
2009 set_gdbarch_unwind_dummy_id,
2010 set_gdbarch_unwind_pc.
2013 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2015 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2016 registers for H8/300S.
2017 (h8300_print_registers_info): Ditto.
2018 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2020 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2022 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2023 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2024 (lin_lwp_wait): Likewise. Update comments.
2025 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2026 (pull_pid_from_list, linux_record_stopped_pid): New.
2028 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2030 * ada-lang.c (scan_discrim_bound): Name first argument.
2031 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2032 declared by ALL_BLOCK_SYMBOLS.
2034 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2036 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2037 ("regcache.h"): Include it.
2038 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2040 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2042 * NEWS: Mention gdbserver detach change and "disconnect" command.
2043 * infcmd.c (disconnect_command): New function.
2044 (_initialize_infcmd): Add ``disconnect'' command.
2045 * remote.c (remote_async_detach): Delete.
2046 (remote_detach): Merge remote_async_detach.
2047 (remote_disconnect): New.
2048 (init_remote_ops): Set to_disconnect.
2049 (init_remote_cisco_ops): Likewise.
2050 (init_remote_async_ops): Likewise. Use remote_detach.
2051 * target.c (cleanup_target): Default to_disconnect.
2052 (update_current_target): Inherit to_disconnect.
2053 (target_disconnect, debug_to_disconnect): New functions.
2054 (setup_target_debug): Set to_disconnect.
2055 * target.h (struct target_ops): Add to_disconnect.
2056 (target_disconnect): Add prototype.
2058 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2060 * breakpoint.c (insert_catchpoint): New function.
2061 (insert_breakpoints): Use catch_exceptions to call
2062 insert_catchpoint. Disable catchpoints if they fail to insert.
2064 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2066 * symfile.c (reread_symbols): Clear sym_private.
2068 2003-06-17 Andrew Cagney <cagney@redhat.com>
2070 * trad-frame.h (struct frame_info): Add opaque declaration.
2071 * remote-fileio.h (struct cmd_list_element): Add opaque
2073 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2076 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2078 * remote.c (remote_prepare_to_store): Replace call to
2079 deprecated_read_register_bytes with multiple regcache_raw_read
2082 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2084 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2085 (nto_find_and_open_solib): Likewise.
2086 (nto_init_solib_absolute_prefix): Likewise.
2087 (_initialize_nto_tdep): Fix indentation.
2089 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2091 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2093 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2095 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2097 2003-06-17 Jim Blandy <jimb@redhat.com>
2099 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2101 2003-06-16 Theodore A. Roth <troth@openavr.org>
2103 * avr-tdep.c (avr_extract_return_value): New function.
2104 (avr_gdbarch_init): Set extract_return_value method.
2106 2003-06-16 Andrew Cagney <cagney@redhat.com>
2108 * frame.h (deprecated_get_next_frame_hack): Declare.
2109 * frame.c (legacy_saved_regs_prev_register): Only require
2110 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2111 there are always saved regs.
2112 (deprecated_generic_get_saved_register): Do not require
2113 DEPRECATED_FRAME_INIT_SAVED_REGS.
2114 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2115 use frame ID unwind instead.
2116 (deprecated_get_next_frame_hack): New function.
2118 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2120 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2121 (h8300_push_dummy_call): ...this function. Some minor optimization.
2122 (h8300_push_return_address): Remove.
2123 (h8300_gdbarch_init): Remove calls to
2124 set_gdbarch_deprecated_dummy_write_sp,
2125 set_gdbarch_deprecated_push_arguments and
2126 set_gdbarch_deprecated_push_return_address.
2127 Add call to set_gdbarch_push_dummy_call.
2129 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2131 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2132 (E_PSEUDO_EXR_REGNUM): Ditto.
2133 (h8300_is_argument_spill): Check for instructions moving argument
2134 registers into safe registers.
2135 (h8300_skip_prologue): Check for stm instruction to push registers
2136 used for register variables onto stack.
2137 (gdb_print_insn_h8300): Remove.
2138 (h8300_examine_prologue): Add a comment.
2139 (h8300_register_name): Take pseudo registers into account.
2140 (h8300s_register_name): Ditto.
2141 (h8300sx_register_name): Ditto.
2142 (h8300_print_register): Ditto.
2143 (h8300_print_registers_info): Define "nice" printing order.
2144 (h8300_saved_pc_after_call): Take pseudo registers into account.
2145 (h8300_register_type): Ditto. Return type used for remote connection
2146 when requesting real CCR or EXR register, return actual type when
2147 requesting pseudo CCR or EXR.
2148 (h8300_pseudo_register_read): New function.
2149 (h8300_pseudo_register_write): Ditto.
2150 (h8300_dbg_reg_to_regnum): Ditto.
2151 (h8300s_dbg_reg_to_regnum): Ditto.
2152 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2153 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2154 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2155 set_gdbarch_print_insn architecture dependent.
2156 Call set_gdbarch_pseudo_register_read and
2157 set_gdbarch_pseudo_register_write.
2158 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2160 2003-06-16 Andrew Cagney <cagney@redhat.com>
2162 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2163 * gdbarch.h, gdbarch.c: Re-generate.
2164 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2165 * s390-tdep.c (s390_gdbarch_init): Update.
2166 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2167 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2168 * mips-tdep.c (mips_gdbarch_init): Update.
2169 * mcore-tdep.c (mcore_gdbarch_init): Update.
2170 * cris-tdep.c (cris_gdbarch_init): Update.
2171 * infcall.c (call_function_by_hand): Update.
2172 * ia64-tdep.c (ia64_push_arguments): Update comment.
2173 * frame.c (legacy_get_prev_frame): Do not assume
2174 SAVE_DUMMY_FRAME_TOS_P.
2175 * dummy-frame.c (find_dummy_frame): Update comment.
2177 2003-06-16 Andrew Cagney <cagney@redhat.com>
2179 * regcache.c (do_cooked_read): Do not use register_valid_p.
2181 2003-06-15 Theodore A. Roth <troth@openavr.org>
2183 * avr-tdep.c (avr_register_type): Remove a blank line.
2184 (avr_scan_prologue): Correct some comments.
2186 2003-06-15 Theodore A. Roth <troth@openavr.org>
2188 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2190 Properly scan prologues generated by gcc with the -mcall-prologues
2192 Add code to scan -mcall-prologues for mega devices.
2194 2003-06-15 Theodore A. Roth <troth@openavr.org>
2196 * avr-tdep.c (avr_register_byte): Delete function.
2197 (avr_register_raw_size): Delete function.
2198 (avr_register_virtual_size): Delete function.
2199 (avr_register_virtual_type): Delete function.
2200 (avr_register_type): New function.
2201 (avr_address_to_pointer): Remove unused code.
2202 (avr_read_fp): Need to read FP as two separate bytes due to change to
2203 avr_register_type() usage.
2204 (avr_gdbarch_init): Don't set deprecated_register_size.
2205 Don't set deprecated_register_bytes.
2206 Don't set deprecated_register_byte.
2207 Don't set deprecated_register_raw_size.
2208 Don't set deprecated_max_register_raw_size.
2209 Don't set deprecated_register_virtual_size.
2210 Don't set deprecated_max_register_virtual_size.
2211 Don't set deprecated_register_virtual_type.
2212 Set register_type method.
2214 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2216 * Makefile.in (linux-nat.o): Add rule.
2217 * linux-nat.c: New file.
2218 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2219 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2220 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2221 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2222 * config/arm/linux.mh (NATDEPFILES): Likewise.
2223 * config/i386/linux.mh (NATDEPFILES): Likewise.
2224 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2225 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2226 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2227 * config/mips/linux.mh (NATDEPFILES): Likewise.
2228 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2229 * config/s390/s390.mh (NATDEPFILES): Likewise.
2230 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2232 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2234 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2235 replace out-of-date comment.
2237 2003-06-15 Andrew Cagney <cagney@redhat.com>
2239 * rdi-share/host.h (Fail): Change to a varargs function.
2240 * remote-rdi.c (Fail): Update.
2242 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2244 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2245 (i386_convert_register_p, i386_register_to_value,
2246 i386_register_from_value): Handle types longer than 8 bytes.
2248 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2250 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2251 Move floating-point code to new function in i387-tdep.c.
2252 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2253 New functions containing code moved here from i386-tdep.c.
2254 * i387-tdep.h: Add opaque declaration for `struct type'.
2255 (i387_register_to_value, i387_value_to_register): New prototypes.
2256 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2257 (x86_64_init_abi): Set convert_register_p, register_to_value and
2258 value_to_register here.
2260 2003-06-14 Andrew Cagney <cagney@redhat.com>
2262 * mips-tdep.c (mips_register_to_value): Make static.
2263 (mips_value_to_register): Make static.
2264 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2265 * ia64-tdep.c (ia64_register_raw_size): Make static.
2266 (ia64_register_virtual_size): Make static.
2267 (ia64_register_byte): Make static.
2268 * i387-tdep.c: Include "i387-tdep.h".
2269 (print_387_control_word): Delete function.
2270 (print_387_status_word): Delete function.
2271 (print_387_status_bits): Delete function.
2272 (print_387_control_bits): Delete function.
2273 * Makefile.in (i387-tdep.o): Update dependencies.
2274 * rdi-share/host.h (Fail): Declare.
2275 * remote-rdi.c (Fail): Update to match declaration.
2277 2003-06-14 Andrew Cagney <cagney@redhat.com>
2279 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2280 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2281 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2282 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2283 * README: Delete reference to remote-array.
2284 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2285 (remote-array.o): Delete target.
2286 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2287 * remote-array.c: Delete file.
2289 2003-06-14 Andrew Cagney <cagney@redhat.com>
2290 Mark Kettenis <kettenis@gnu.org>
2292 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2293 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2294 parameter with "frame".
2295 * gdbarch.h, gdbarch.c: Re-generate.
2296 * frame.h (put_frame_register): Declare.
2297 * frame.c (put_frame_register): New function.
2298 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2299 (legacy_register_to_value): Rewrite, use "frame" to get the
2301 (legacy_value_to_register): Rewrite, use "frame" to find the
2302 register's location before storing.
2303 * arch-utils.h (legacy_convert_register_p): Update.
2304 (legacy_register_to_value, legacy_value_to_register): Update.
2305 * findvar.c (value_from_register): Rewrite, eliminate use of
2306 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2307 "frame" to REGISTER_TO_VALUE.
2308 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2309 lval_reg_frame_relative + lval_register branch of the switch. Do
2310 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2311 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2312 I386_EDI_REGNUM): New defines.
2313 (i386_next_regnum, i386_convert_register_p,
2314 i386_register_to_value, i386_value_to_register): New functions.
2315 (i386_register_convertible, i386_register_convert_to_virtual,
2316 i386_convert_to_raw): Remove functions.
2317 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2318 value_to_register instead of register_convertible,
2319 register_convert_to_virtual and register_convert_to_raw.
2320 * mips-tdep.c (mips_convert_register_p): New function.
2321 (mips_value_to_register): Replace mips_register_convert_from_type.
2322 (mips_register_to_value): Replace mips_register_convert_to_type.
2323 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2325 * alpha-tdep.c (alpha_convert_register_p): Update.
2326 (alpha_value_to_register): Update, store the register.
2327 (alpha_register_to_value): Update, fetch the register.
2329 2003-06-14 Theodore A. Roth <troth@openavr.org>
2331 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2332 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2333 Don't set deprecated_call_dummy_words.
2334 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2335 Don't set remote_translate_xfer_address.
2336 (avr_io_reg_read_command): Remove commented out debug printf.
2339 2003-06-14 Theodore A. Roth <troth@openavr.org>
2341 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2342 causes gdb to seg fault.
2344 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2346 * sparc-nat.c (fetch_inferior_registers): Correct
2347 a reference to "registers".
2349 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2351 * Makefile.in (exc_request_U_h): Define
2352 (exc_request_S_h): Likewise.
2353 (msg_reply_S_h): Likewise.
2354 (msg_U_h): Likewise.
2355 (notify_S_h): Likewise.
2356 (process_reply_S_h): Likewise.
2357 (gnu-nat.o): Depend on gdb_obstack_h
2358 * gnu-nat.c: Include "gdb_obstack.h".
2360 2003-06-13 Andrew Cagney <cagney@redhat.com>
2362 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2363 * gdbarch.h, gdbarch.c: Re-generate.
2365 2003-06-13 Andrew Cagney <cagney@redhat.com>
2367 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2368 when deprecated REGISTER macros can be deleted.
2369 * gdbarch.h, gdbarch.c: Re-generate.
2371 2003-06-13 Jim Blandy <jimb@redhat.com>
2373 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2374 Linux entry point symbols for _dl_debug_state, too.
2376 2003-06-13 Andrew Cagney <cagney@redhat.com>
2378 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2379 available, do not use the FP register, and always save the TOS.
2380 * dummy-frame.c (dummy_frame_this_id): Do not assert
2381 SAVE_DUMMY_FRAME_TOS.
2382 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2383 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2384 (i386_push_dummy_call): Add 8 to the returned SP.
2385 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2386 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2387 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2388 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2389 (x86_64_push_dummy_call): Return "sp + 16".
2390 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2391 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2392 save_dummy_frame_tos.
2394 2003-06-13 Jim Blandy <jimb@redhat.com>
2396 * frv-tdep.c (frv_use_struct_convention): Delete static
2397 declaration for function deleted in my change of 2003-06-12.
2399 2003-06-13 Theodore A. Roth <troth@openavr.org>
2401 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2402 (avr_pointer_to_address): Shift code addrs left 1 bit.
2403 (avr_convert_from_func_ptr_addr): Delete function since operation is
2404 better handled by avr_address_to_pointer and avr_pointer_to_address.
2405 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2407 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2409 From Kelley Cook <kelleycook@wideopenwest.com>:
2410 * configure.host: Accept i[34567]86 variants.
2411 * configure.tgt: Likewise.
2412 * nlm/configure.in: Likewise.
2413 * nlm/configure: Regenerated.
2415 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2417 * arm-tdep.c (solib-svr4.h): Dont' include it.
2418 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2419 * arm-linux-tdep.c: ... here. Make static.
2420 (arm_linux_init_abi): Register it.
2421 (solib-svr4.h): Include it.
2422 * Makefile.in: Update dependencies.
2423 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2424 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2426 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2428 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2429 indicate registers used for return values.
2430 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2431 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2433 (h8300_init_extra_frame_info): Ditto.
2434 (h8300_frame_locals_address): Removed.
2435 (h8300_frame_args_address): Removed.
2436 (h8300_extract_return_value): Use new regcache structure. Only care
2438 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2439 (h8300_store_return_value): Use new regcache structure. Only care
2441 (h8300h_store_return_value): Same function for 32 bit CPUs.
2442 (h8300_store_struct_return): Removed.
2443 (h8300_extract_struct_value_address): Use new regcache structure.
2444 (h8300h_extract_struct_value_address): Removed.
2445 (h8300_push_dummy_code): New function.
2446 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2447 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2448 set_gdbarch_store_return_value architecture dependent.
2449 Call set_gdbarch_push_dummy_code and
2450 set_gdbarch_extract_struct_value_address.
2451 Remove calls to set_gdbarch_frame_args_address,
2452 set_gdbarch_frame_locals_address,
2453 set_gdbarch_deprecated_store_struct_return,
2454 set_gdbarch_deprecated_extract_return_value,
2455 set_gdbarch_deprecated_extract_struct_value_address,
2456 set_gdbarch_deprecated_call_dummy_words and
2457 set_gdbarch_deprecated_sizeof_call_dummy_words.
2459 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2461 * h8300-tdep.c (h8300_register_byte): Remove.
2462 (h8300h_register_byte): Remove.
2463 (h8300_register_virtual_type): Remove. Substitute by...
2464 (h8300_register_type): New function.
2465 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2466 (h8300h_extract_struct_value_address): Ditto.
2467 (h8300_gdbarch_init): Drop calls to
2468 set_gdbarch_deprecated_register_byte and
2469 set_gdbarch_deprecated_register_virtual_type.
2470 Add call to set_gdbarch_register_type.
2472 2003-06-13 Andrew Cagney <cagney@redhat.com>
2474 * gdbarch.sh: Update comments on registers.
2475 (deprecated_register_byte): Rename register_byte.
2476 (deprecated_register_raw_size): Rename register_raw_size.
2477 (deprecated_register_virtual_size): Rename register_virtual_size.
2478 (deprecated_register_virtual_type): Rename register_virtual_type.
2479 * gdbarch.h, gdbarch.c: Re-generate.
2480 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2481 * vax-tdep.c (vax_gdbarch_init): Update.
2482 * v850-tdep.c (v850_gdbarch_init): Update.
2483 * sparc-tdep.c (sparc_gdbarch_init): Update.
2484 * sh-tdep.c (sh_gdbarch_init): Update.
2485 * s390-tdep.c (s390_gdbarch_init): Update.
2486 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2487 * ns32k-tdep.c: Update.
2488 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2489 * mips-tdep.c (mips_gdbarch_init): Update.
2490 * mcore-tdep.c (mcore_gdbarch_init): Update.
2491 * m68k-tdep.c (m68k_gdbarch_init): Update.
2492 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2493 * ia64-tdep.c (ia64_gdbarch_init): Update.
2494 * hppa-tdep.c (hppa_gdbarch_init): Update.
2495 * h8300-tdep.c (h8300_gdbarch_init): Update.
2496 * frv-tdep.c (frv_gdbarch_init): Update.
2497 * cris-tdep.c (cris_gdbarch_init): Update.
2498 * avr-tdep.c (avr_gdbarch_init): Update.
2499 * alpha-tdep.c (alpha_gdbarch_init): Update.
2500 * arm-tdep.c (arm_gdbarch_init): Update.
2502 2003-06-13 Andrew Cagney <cagney@redhat.com>
2504 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2505 mips_o32_use_struct_convention with always_use_struct_convention.
2507 2003-06-12 David Carlton <carlton@kealia.com>
2509 * cp-namespace.c (cp_set_block_scope): Comment out
2510 processing_has_namespace_info branch.
2512 2003-06-12 Jim Blandy <jimb@redhat.com>
2514 Recognize and skip 64-bit PowerPC Linux linkage functions.
2515 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2516 insn_pattern, insns_match_pattern, d_field, ds_field): New
2517 functions, macros, and types for working with PPC instructions.
2518 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2519 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2520 ppc64_skip_trampoline_code): New functions, variables, and macros
2521 for recognizing and skipping linkage functions.
2522 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2523 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2525 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2526 register offsets for both the 32- and 64-bit interfaces.
2528 Actually finish the job started by my change of 2003-05-29.
2529 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2530 other #definition of this.
2531 (ppc_linux_skip_trampoline_code): Remove declaration.
2532 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2534 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2537 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2538 'long' on ppc64-*-linux*.
2540 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2541 isn't #defined, assume the register doesn't exist: act as if
2542 tdep->ppc_mq_regnum were -1.
2544 * configure.host, configure.tgt: Add entries for
2545 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2547 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2550 * arch-utils.c (always_use_struct_convention): New function.
2551 * arch-utils.h (always_use_struct_convention): New prototype.
2552 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2553 (alpha_gdbarch_init): Register always_use_struct_convention,
2554 instead of alpha_use_struct_convention.
2555 * cris-tdep.c (cris_use_struct_convention): Delete.
2556 (cris_gdbarch_init): Register always_use_struct_convention,
2557 instead of cris_use_struct_convention.
2558 * frv-tdep.c (frv_use_struct_convention): Delete.
2559 (frv_gdbarch_init): Register always_use_struct_convention,
2560 instead of frv_use_struct_convention.
2561 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2562 (h8300_gdbarch_init): Register always_use_struct_convention,
2563 instead of h8300_use_struct_convention.
2564 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2565 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2566 instead of mips_o32_use_struct_convention.
2568 2003-06-12 Andrew Cagney <cagney@redhat.com>
2570 * wince.c: Include "mips-tdep.h".
2571 * mips-tdep.h (mips_next_pc): Declare.
2572 * mcore-tdep.c: Make more local functions static.
2573 * Makefile.in (wince.o): Update dependencies.
2575 2003-06-12 David Carlton <carlton@kealia.com>
2577 * symtab.c (lookup_symbol_aux_minsyms): Replace
2578 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2579 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2580 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2581 SYMBOL_NATURAL_NAME.
2583 2003-06-12 Andreas Schwab <schwab@suse.de>
2585 * Makefile.in (tuiDisassem.o): Update dependencies.
2587 2003-06-12 David Carlton <carlton@bactrian.org>
2589 * symtab.h: Delete declaration of make_symbol_overload_list.
2590 Add declaration of lookup_partial_symbol.
2591 * symtab.c (remove_params): Move to cp-support.c.
2592 (overload_list_add_symbol, make_symbol_overload_list)
2593 (sym_return_val_size, sym_return_val_index): Ditto.
2594 (lookup_partial_symbol): Make extern.
2595 * cp-support.h: Add declaration of make_symbol_overload_list.
2596 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2597 symtab.h, and block.h.
2598 (remove_params): Move here from symtab.c.
2599 (overload_list_add_symbol, make_symbol_overload_list)
2600 (sym_return_val_size, sym_return_val_index): Ditto.
2601 * valops.c: Include cp-support.h.
2602 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2603 frame_h, and block_h.
2604 (valops.o): Depend on cp_support_h.
2606 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2608 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2609 substitute by NUM_REGS throughout.
2610 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2611 (h8300s_register_name): New function for H8S registers.
2612 (h8300sx_register_name): Ditto for H8SX registers.
2613 (h8300_print_register): Revise register printing, avoid depending
2615 (h8300_register_byte): Only care for H8/300 registers.
2616 (h8300h_register_byte): New function for any other architecture.
2617 (h8300_register_raw_size): Remove.
2618 (h8300_register_virtual_type): Revise to return actually useful
2620 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2621 (h8300h_extract_struct_value_address): New function for any other
2623 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2624 set_gdbarch_register_name, set_gdbarch_register_byte,
2625 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2626 Remove calls to set_gdbarch_deprecated_register_size,
2627 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2628 set_gdbarch_deprecated_max_register_raw_size,
2629 set_gdbarch_register_virtual_size and
2630 set_gdbarch_deprecated_max_register_virtual_size entirely.
2631 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2632 set_gdbarch_long_double_bit.
2634 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2636 * doublest.c (convert_doublest_to_floatformat): When dealing
2637 with the implied integer bit, only alter mant_bits if we are
2638 processing a full 32 bits of mantissa.
2640 2003-06-11 David Carlton <carlton@bactrian.org>
2642 * dictionary.h: New.
2643 * dictionary.c: New.
2644 * block.h: Add opaque declaration for struct dictionary.
2645 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2647 (BLOCK_DICT): New macro.
2648 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2649 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2651 (ALL_BLOCK_SYMBOLS): Update definition.
2652 * Makefile.in (SFILES): Add dictionary.c.
2653 (dictionary_h): New.
2654 (COMMON_OBS): Add dictionary.o.
2655 (dictionary.o): New.
2656 (ada-lang.o): Depend on dictionary_h.
2657 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2658 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2659 (mi-cmd-stack.o): Ditto.
2660 (gdbtk-cmds.o): Update dependencies.
2661 (gdbtk-stack.o): Ditto.
2662 * ada-lang.c: Include dictionary.h.
2663 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2664 (fill_in_ada_prototype, debug_print_block): Ditto.
2665 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2666 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2668 * mdebugread.c: Include dictionary.h.
2669 (struct parse_stack): Delete 'maxsyms' member.
2670 (parse_symbol): Update calls to new_block. Delete calls to
2671 shrink_block. Use dictionary methods.
2672 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2673 Update calls to new_symtab. Don't maintain maxsyms data.
2674 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2675 (add_symbol): Just call dict_add_symbol.
2676 (new_symtab): Delete 'maxsyms' argument.
2677 (new_symtab): Update calls to new_block.
2678 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2679 (shrink_block): Delete function.
2680 (fixup_sigtramp): Update call to new_block. Add symbol via
2682 * jv-lang.c: Include dictionary.h.
2683 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2684 appropriately. Set class_symtab->free_func. Make sure the
2685 blockvector is big enough to hold two blocks.
2686 (add_class_symtab_symbol): Use dictionary methods.
2687 (free_class_block): New function.
2688 (type_from_class): Replace explicit iteration by
2690 * symtab.h (struct symtab): Replace 'free_ptr' method by
2692 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2694 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2696 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2697 Include dictionary.h.
2698 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2699 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2701 * objfiles.c: Include dictionary.h.
2702 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2703 * buildsym.c: Include dictionary.h.
2704 (finish_block): Use dictionary methods.
2705 (end_symtab): Set free_func to NULL, not free_ptr.
2706 * tracepoint.c: Include dictionary.h.
2707 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2708 (scope_info): Ditto.
2709 * stack.c: Include dictionary.h.
2710 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2711 (print_block_frame_labels, print_frame_arg_vars)
2712 (print_frame_args): Ditto.
2713 * symmisc.c (free_symtab_block): Use dictionary methods.
2714 (dump_symtab): Ditto.
2715 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2716 Include dictionary.h.
2717 * symfile.h: Delete declarations of sort_block_syms,
2719 * symfile.c (sort_block_syms): Delete.
2720 (sort_symtab_syms): Delete.
2721 * symtab.c: Include dictionary.h.
2722 (lookup_block_symbol): Use dictionary iterators.
2723 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2724 (search_symbols, make_symbol_completion_list): Ditto.
2725 (make_symbol_overload_list): Ditto.
2726 * valops.c (value_of_local): Use dict_empty.
2727 Include dictionary.h.
2729 2003-06-11 J. Brobecker <brobecker@gnat.com>
2731 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2733 2003-06-11 David Carlton <carlton@bactrian.org>
2735 * block.h (BLOCK_SHOULD_SORT): Delete.
2736 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2738 * ada-lang.c (ada_add_block_symbols): Ditto.
2739 * symfile.c (sort_block_syms): Delete.
2740 (sort_symtab_syms): Ditto.
2741 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2743 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2744 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2745 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2746 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2747 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2748 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2749 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2751 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2753 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
2756 2003-06-11 Andrew Cagney <cagney@redhat.com>
2758 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2759 REGISTER_CONVERTIBLE.
2760 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2761 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2762 * gdbarch.h, gdbarch.c: Re-generate.
2763 * arch-utils.h (deprecated_register_convertible_not): Rename
2764 generic_register_convertible_not.
2765 * arch-utils.c (deprecated_register_convertible_not): Rename
2766 generic_register_convertible.
2767 (legacy_convert_register_p, legacy_register_to_value): Update.
2768 * sh-tdep.c (sh64_push_arguments): Update.
2769 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2770 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2771 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2772 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2773 * arch-utils.c (legacy_value_to_register): Update.
2774 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2775 (rs6000_register_convert_to_raw): Make parameter "from" const.
2776 * mips-tdep.c (mips_gdbarch_init): Update.
2777 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2778 * infcmd.c (default_print_registers_info): Update.
2779 * ia64-tdep.c (ia64_gdbarch_init): Update.
2780 (ia64_register_convert_to_raw): Make parameter "from" const.
2781 * i386-tdep.c (i386_gdbarch_init): Update.
2782 (i386_register_convert_to_raw): Update.
2784 2003-06-11 Andrew Cagney <cagney@redhat.com>
2786 * remote-fileio.c: Include "remote-fileio.h".
2787 * Makefile.in (remote-fileio.o): Update dependencies.
2788 (remote_fileio_h): Fix typo.
2790 2003-06-11 Andrew Cagney <cagney@redhat.com>
2792 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2793 (xstormy16_save_dummy_frame_tos): Make static.
2794 (_initialize_xstormy16_tdep): Add declaration.
2795 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2796 * v850-tdep.c: Make local functions static.
2797 (_initialize_v850_tdep): Add declaration.
2798 * sparc-tdep.c: Make local functions static.
2799 (_initialize_sparc_tdep): Add declaration.
2800 * sh-tdep.c: Make local functions static.
2801 (_initialize_sh_tdep): Add declaration.
2802 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2803 * s390-tdep.c: Make local functions static.
2804 (_initialize_s390_tdep): Add declaration.
2805 * dbxread.c (find_stab_function_addr): Make static.
2806 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2807 * ocd.c (_initialize_remote_ocd): Add declaration.
2808 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2809 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2810 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2811 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2812 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2813 * remote-array.c (_initialize_array): Add declaration.
2814 (_initialize_remote_monitors): Add declaration.
2815 * remote-mips.c: Make local functions static.
2816 (_initialize_remote_mips): Add declaration.
2817 * mcore-tdep.c: Make all local functions static.
2818 (_initialize_mcore_tdep): Add declaration.
2819 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2820 * abug-rom.c (_initialize_abug_rom): Add declaration.
2821 * rom68k-rom.c (_initialize_rom68k): Add declaration.
2822 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2823 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2824 * remote-est.c (_initialize_est): Add declaration.
2825 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2826 (m68hc11_call_dummy_address): Make static.
2827 * ia64-tdep.c: Make local functions static.
2828 (_initialize_ia64_tdep): Add declaration.
2829 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2830 * monitor.c (monitor_wait_filter): Make static.
2831 (_initialize_remote_monitors): Add declaration.
2832 * remote-hms.c (_initialize_remote_hms): Add declaration.
2833 * remote-e7000.c (fetch_regs_from_dump): Make static.
2834 (expect_n): Make static.
2835 (_initialize_remote_e7000): Add declaration.
2836 * ser-e7kpc.c: Always include "defs.h".
2837 (_initialize_ser_e7000pc): Add declaration.
2838 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2839 * cris-tdep.c: Make all but one function static.
2840 (_initialize_cris_tdep): Add declaration.
2841 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2842 * solib.c (update_solib_list): Make static.
2843 (_initialize_solib): Add declaration.
2844 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2845 (_initialize_avr_tdep): Add declaration.
2846 * remote-rdi.c (voiddummy): Make static.
2847 (_initialize_remote_rdi): Add declaration.
2848 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2849 * remote-rdp.c (send_rdp): Make static.
2850 (_initialize_remote_rdp): Add declaration.
2851 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2853 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
2855 * remote-fileio.c: Make ari happy.
2857 2003-06-10 J. Brobecker <brobecker@gnat.com>
2859 * rs6000-nat.c (child_xfer_memory): Compute the right address when
2860 fetching the trailing bytes of the buffer we are about to write.
2862 2003-06-10 Andrew Cagney <cagney@redhat.com>
2864 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
2865 * Makefile.in (remote-fileio.o): Update dependencies.
2866 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
2867 include <setjmp.h>, or <sys/types.h> conditional on USG.
2868 (remote_fio_jmp_buf): Delete global variable.
2870 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
2871 Martin M. Hunt <hunt@redhat.com>
2873 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
2874 (SFILES): Add remote-fileio.c.
2875 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
2876 dependencies for building remote.o.
2877 * remote-fileio.c: New file implementing the remote File-I/O protocol.
2878 * remote-fileio.h: New header file defining remote File-I/O interface.
2879 * remote.c (remote_write_bytes, remote_read_bytes): Remove
2880 static storage class.
2881 (remote_wait, remote_async_wait): Call remote_fileio_request() on
2883 (_initialize_remote): Call initialize_remote_fileio().
2884 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
2885 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2886 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2887 (captured_main): Initialize new ui_files.
2888 * ui-file.c: Add read and fgets input functions.
2889 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
2890 (null_file_read): New function.
2891 (ui_file_read): New function.
2892 (set_ui_file_read): New function.
2893 (stdio_file_read): New function.
2894 * ui-file.h: New type ui_file_read_ftype.
2895 (set_ui_file_read): Declare.
2896 (ui_file_read): Declare.
2898 2003-06-09 Andrew Cagney <cagney@redhat.com>
2900 * frame.h (deprecated_unwind_get_saved_register): Rename
2901 generic_unwind_get_saved_register, update comments.
2902 * mips-tdep.c (mips_get_saved_register): Update.
2903 * frame.c (deprecated_unwind_get_saved_register): Update.
2905 2003-06-09 Andrew Cagney <cagney@redhat.com>
2907 * vax-tdep.c (vax_frame_locals_address): Delete function.
2908 (vax_gdbarch_init): Do not set frame_locals_address.
2909 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
2910 (m68hc11_gdbarch_init): Do not set frame_locals_address.
2911 * s390-tdep.c (s390_frame_args_address): Delete function.
2912 (s390_gdbarch_init): Do not set frame_args_address or
2913 frame_locals_address.
2914 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
2915 (ns32k_gdbarch_init): Do not set frame_locals_address.
2916 * hppa-tdep.c (hppa_frame_args_address): Delete function.
2917 (hppa_frame_locals_address): Delete function.
2918 (hppa_gdbarch_init): Do not set frame_args_address, or
2919 frame_locals_address.
2920 * arm-tdep.c (arm_frame_args_address): Delete.
2921 (arm_frame_locals_address): Delete.
2922 (arm_gdbarch_init): Do not set frame_args_address, or
2923 frame_locals_address.
2925 2003-06-09 Andrew Cagney <cagney@redhat.com>
2927 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
2928 * gdbarch.h, gdbarch.c: Re-generate.
2929 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
2930 * arch-utils.c (frame_num_args_unknown): Delete function.
2931 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
2932 (frame_info): Use FRAME_NUM_ARGS_P.
2933 * arm-tdep.c (arm_frame_num_args): Delete function.
2934 (arm_gdbarch_init): Do not set frame_num_args.
2935 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
2936 * hppa-tdep.c (hppa_frame_num_args): Delete function.
2937 (hppa_gdbarch_init): Do not set frame_num_args.
2938 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
2939 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2940 frame_num_args to default frame_num_args_unknown.
2941 * v850-tdep.c (v850_gdbarch_init): Ditto.
2942 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2943 * sh-tdep.c (sh_gdbarch_init): Ditto.
2944 * s390-tdep.c (s390_gdbarch_init): Ditto.
2945 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2946 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2947 * mips-tdep.c (mips_gdbarch_init): Ditto.
2948 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2949 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2950 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2951 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2952 * i386-tdep.c (i386_gdbarch_init): Ditto.
2953 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2954 * frv-tdep.c (frv_gdbarch_init): Ditto.
2955 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2956 * cris-tdep.c (cris_gdbarch_init): Ditto.
2957 * avr-tdep.c (avr_gdbarch_init): Ditto.
2958 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2960 2003-06-09 Andrew Cagney <cagney@redhat.com>
2962 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
2963 (print_frame_args): Moved to "stack.c".
2964 * stack.c: Include "gdb_assert.h".
2965 (print_frame_nameless_args): Moved from "printcmd.c", made static.
2966 (print_frame_args): Moved from "printcmd.c".
2967 * frame.h (print_frame_args): Delete declaration.
2968 * Makefile.in (stack.o): Update dependencies.
2970 2003-06-08 Andrew Cagney <cagney@redhat.com>
2972 * frame.c (get_prev_frame): Remove reference to
2973 frame_args_address_correct in comments.
2974 * frame-base.c (default_frame_args_address): Delete code
2975 conditional on FRAME_ARGS_ADDRESS_CORRECT.
2976 * vax-tdep.c (vax_frame_args_address_correct): Delete.
2977 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
2978 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
2979 (vax_frame_args_address_correct): Delete declaration.
2981 2003-06-08 Andrew Cagney <cagney@redhat.com>
2983 * gdbarch.sh (UNWIND_SP): Add.
2984 * gdbarch.h, gdbarch.c: Re-generate.
2985 * frame.c (frame_sp_unwind): New function.
2986 (get_frame_sp): New function.
2987 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
2988 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
2989 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
2991 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
2992 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
2994 2003-06-08 Andrew Cagney <cagney@redhat.com>
2996 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
2999 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3000 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3001 * config/m68k/tm-sun3.h: Update.
3002 * config/m68k/tm-m68klynx.h: Update.
3003 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3005 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3006 trad_frame". Update comments.
3007 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3008 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3009 (trad_frame_register_value, trad_frame_prev_register): Update.
3011 2003-06-08 Andrew Cagney <cagney@redhat.com>
3013 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3014 from GCC's acinclude.m4.
3015 * configure.in: Check for getopt's delcaration.
3016 * aclocal.m4, config.in, configure: Re-generate.
3017 * main.c (error_init): Delete declaration.
3018 * defs.h (error_init): Declare.
3019 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3020 (rs6000_convert_from_func_ptr_addr): Make static.
3021 (_initialize_rs6000_tdep): Add declaration.
3022 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3023 (show_commands, set_verbose, show_history): Delete declaration.
3024 * top.h (set_verbose): Add declaration.
3025 (show_history, set_history, show_commands): Add declaration.
3026 (do_restore_instream_cleanup): Add declaration.
3027 * objc-lang.c (specialcmp): Make static.
3028 (print_object_command): Make static.
3029 (find_objc_msgsend): Make static.
3030 (find_objc_msgcall_submethod_helper): Make static.
3031 (find_objc_msgcall_submethod): Make static.
3032 (_initialize_objc_language): Add declaration.
3033 (find_implementation_from_class): Make static.
3034 (find_implementation): Make static.
3035 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3036 * objc-lang.h (lookup_struct_typedef): Add declaration.
3037 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3038 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3039 (do_restore_user_call_depth): Make static.
3040 (do_restore_instream_cleanup): Delete declaration.
3041 (dont_repeat): Delete declaration.
3042 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3043 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3044 * reggroups.c (_initialize_reggroup): Add declaration.
3045 * cp-support.c (_initialize_cp_support): Add declaration.
3046 * cp-abi.c (_initialize_cp_abi): Add declaration.
3047 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3048 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3049 (_initialize_gnu_v3_abi): Add declaration.
3050 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3051 (_initialize_gnu_v2_abi): Add declaration.
3052 * frame-base.c (_initialize_frame_base): Add declaration.
3053 * doublest.c (floatformat_from_length): Make static.
3054 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3055 * frame.c (create_sentinel_frame): Make static.
3056 (_initialize_frame): Add declaration.
3057 * top.c (do_catch_errors): Make static.
3058 (gdb_rl_operate_and_get_next_completion): Make static.
3059 * typeprint.c: Include "typeprint.h".
3060 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3061 (sentinel_frame_this_id): Make static.
3062 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3063 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3064 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3065 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3066 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3067 * maint.c (maintenance_print_architecture): Make static.
3068 * signals/signals.c (_initialize_signals): Add declaration.
3069 * std-regs.c (_initialize_frame_reg): Add declaration.
3070 * jv-exp.y (push_variable): ISO C definition.
3071 (push_qualified_expression_name): Ditto.
3072 * memattr.c (_initialize_mem): Add declaration.
3073 * remote.c (remote_check_watch_resources): Make static.
3074 (remote_stopped_by_watchpoint): Make static.
3075 (remote_stopped_data_address): Make static.
3076 * d10v-tdep.c (nr_dmap_regs): Make static.
3077 (a0_regnum): Make static.
3078 (d10v_frame_unwind_cache): Make static.
3079 (d10v_frame_p): Make static.
3080 * osabi.c (show_osabi): Make static.
3081 (_initialize_gdb_osabi): Add extern declaration.
3082 * gdbtypes.c (make_qualified_type): Make static.
3083 (safe_parse_type): Make static.
3084 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3085 * macrotab.c (macro_bcache_free): Make static.
3086 * interps.c (interp_set_quiet): Make static.
3087 (interpreter_exec_cmd): Make static.
3088 * stack.h (select_frame_command): New file.
3089 * stack.c: Include "stack.h".
3090 (select_frame_command_wrapper): Delete function.
3091 (select_frame_command): Make global.
3092 * infcall.c: Include "infcall.h".
3093 * linespec.c: Include "linespec.h".
3094 * symfile.c (sections_overlap): Make static.
3095 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3096 * charset.c (_initialize_charset): Add missing prototype.
3097 * regcache.c (init_legacy_regcache_descr): Make static.
3098 (do_regcache_xfree): Make static.
3099 (regcache_xfer_part): Make static.
3100 (_initialize_regcache): Add missing prototype.
3101 * breakpoint.c (parse_breakpoint_sals): Make static.
3102 (breakpoint_sals_to_pc): Make static.
3103 * interps.h (clear_interpreter_hooks): ISO C declaration.
3104 * Makefile.in (stack_h): Define.
3105 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3106 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3108 2003-06-08 Andrew Cagney <cagney@redhat.com>
3110 * Makefile.in (d10v-tdep.o): Update dependencies.
3111 (SFILES): Add trad-frame.c.
3112 (trad_frame_h): Define.
3113 (COMMON_OBS): Add trad-frame.o.
3114 (trad-frame.o): Specify dependencies.
3115 * d10v-tdep.c: Include "trad-frame.h".
3116 (saved_regs_unwinder): Delete function.
3117 (d10v_frame_prev_register): Use trad_frame_prev_register.
3118 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3119 trad_frame", delete "regs" and "prev_sp".
3120 (prologue_find_regs): Use trad-frame.
3121 * trad-frame.h, trad-frame.c: New files.
3123 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3125 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3127 2003-06-07 Adam Fedor <fedor@gnu.org>
3129 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3130 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3131 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3132 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3133 resolve_msgsend_super, resolve_msgsend_super_stret):
3136 2003-06-07 Andrew Cagney <cagney@redhat.com>
3138 * symfile.h: Re-indent, clean up comments.
3140 2003-06-07 Andrew Cagney <cagney@redhat.com>
3142 * inferior.h (deprecated_write_sp): Replace
3143 generic_target_write_sp.
3144 * regcache.c (deprecated_write_sp): Replace
3145 generic_target_write_sp.
3146 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3147 * vax-tdep.c (vax_gdbarch_init): Update.
3148 * v850-tdep.c (v850_gdbarch_init): Update.
3149 * sparc-tdep.c (sparc_gdbarch_init): Update.
3150 * sh-tdep.c (sh_gdbarch_init): Update.
3151 * s390-tdep.c (s390_gdbarch_init): Update.
3152 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3153 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3154 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3155 * mcore-tdep.c (mcore_gdbarch_init): Update.
3156 * m68k-tdep.c (m68k_gdbarch_init): Update.
3157 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3158 * ia64-tdep.c (ia64_gdbarch_init): Update.
3159 * h8300-tdep.c (h8300_gdbarch_init): Update.
3160 * frv-tdep.c (frv_gdbarch_init): Update.
3161 * cris-tdep.c (cris_gdbarch_init): Update.
3162 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3164 2003-06-07 Andrew Cagney <cagney@redhat.com>
3166 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3167 Assert that PC_REGNUM is valid.
3168 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3170 2003-06-07 Andrew Cagney <cagney@redhat.com>
3172 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3173 * gdbarch.h, gdbarch.c: Regenerate.
3174 * mn10300-tdep.c: Include "gdb_assert.h".
3175 (mn10300_read_fp): New function.
3176 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3177 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3178 * ia64-tdep.c: Include "gdb_assert.h".
3179 (ia64_read_fp): New function.
3180 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3181 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3182 * regcache.c (generic_target_read_sp): Delete function.
3183 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3184 * inferior.h (generic_target_read_sp): Delete declaration.
3185 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3186 generic_target_read_sp.
3187 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3188 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3189 * sh-tdep.c (sh_gdbarch_init): Ditto.
3190 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3191 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3193 2003-06-07 Andrew Cagney <cagney@redhat.com>
3195 * gdbarch.sh: Comment each field of startup_gdbarch.
3196 * gdbarch.h, gdbarch.c: Re-generate.
3198 2003-06-07 Andrew Cagney <cagney@redhat.com>
3200 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3201 * gdbarch.h, gdbarch.c: Re-generate.
3202 * regcache.c: Update comments on read_pc et.al.
3203 (generic_target_read_pc): Delete function.
3204 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3205 * inferior.h (generic_target_read_pc): Delete declaration.
3206 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3207 generic_target_read_pc.
3208 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3209 * sh-tdep.c (sh_gdbarch_init): Ditto.
3210 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3211 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3213 2003-06-07 Andrew Cagney <cagney@redhat.com>
3215 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3216 "index" with "special_local_sect". Use strcmp instead of STREQ.
3217 Append period to coments.
3219 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3221 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3222 (elfstab_offset_sections): Likewise.
3223 * gdb-stabs.h (stab_section_info): Likewise.
3224 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3225 * objfiles.c (objfile_relocate): Likewise.
3226 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3227 * remote.c (get_offsets): Likewise.
3228 (remote_cisco_objfile_relocate): Likewise.
3229 * somread.c (som_symfile_offsets): Likewise.
3230 * symfile.c (alloc_section_addr_info): New function.
3231 (build_section_addr_info_from_section_tab): Use it.
3232 (free_section_addr_info): Adjust.
3233 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3234 (syms_from_objfile): Allocate local_addr dynamically.
3235 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3237 (add_symbol_file_command): Allocate sect_opts dynamically.
3238 (reread_symbols): Avoid use of SECT_OFF_MAX.
3239 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3240 (alloc_section_addr_info): Declare it.
3241 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3242 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3244 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3246 2003-06-06 Andrew Cagney <cagney@redhat.com>
3248 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3249 (d10v_frame_unwind_cache): Do not set "return_pc".
3251 2003-06-06 Michael Snyder <msnyder@redhat.com>
3253 * h8300-tdep.c: Make tidy (long lines).
3255 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3257 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3258 to regcache_collect().
3260 2003-06-05 J. Brobecker <brobecker@gnat.com>
3262 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3263 pc_in_sigtramp multiarch method.
3264 (hppa_hpux_som_init_abi): Use it.
3265 (hppa_hpux_elf_init_abi): Likewise.
3266 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3267 macro has been multiarched.
3268 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3269 macro here, as hppa64 isn't multiarched yet.
3271 2003-06-05 Andrew Cagney <cagney@redhat.com>
3273 * Makefile.in (value_h): Add $(frame_h).
3274 * value.h: Include "frame.h".
3275 (struct value): Replace "frame_addr" with "frame_id".
3276 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3277 * values.c (allocate_value): Use VALUE_FRAME_ID.
3278 (value_copy): Use VALUE_FRAME_ID.
3279 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3280 * valops.c (value_assign): Update. Use frame_find_by_id.
3282 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3284 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3287 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3289 * thread-db.c (check_event): For create/death event breakpoints,
3290 loop through all messages to ensure that we read the message
3291 corresponding to the breakpoint we are at.
3293 2003-06-04 Michael Snyder <msnyder@redhat.com>
3295 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3297 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3299 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3300 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3301 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3302 when handling .eh_frame sections.
3304 2003-06-04 J. Brobecker <brobecker@gnat.com>
3306 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3307 prepare_to_proceed procedure instead of the hppa-specific one.
3308 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3310 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3312 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3313 * config.in: Regenerated.
3314 * configure.in: Add test for syscall function and check for
3315 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3316 * configure: Regenerated.
3317 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3319 (kill_lwp): New function that uses tkill syscall or
3320 uses kill, depending on whether threading model is nptl or not.
3321 All callers of kill() changed to use kill_lwp().
3322 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3323 see if all threads have already exited in the nptl model.
3324 (stop_and_resume_callback): New callback function used by the
3325 lin_lwp_wait thread exit handling code.
3326 (stop_wait_callback): Check for threads already having exited and
3327 delete such threads fromt the lwp list when discovered.
3328 (stop_callback): Don't assert retcode of kill call.
3330 Roland McGrath <roland@redhat.com>
3331 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3334 2003-06-03 Richard Henderson <rth@redhat.com>
3336 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3337 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3338 (alpha_sigtramp_frame_prev_register): Likewise.
3339 (alpha_heuristic_frame_prev_register): Likewise.
3340 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3342 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3343 alpha-specific register id names.
3344 (alpha_mdebug_frame_unwind_cache): Likewise.
3345 (alpha_mdebug_frame_prev_register): Likewise.
3347 2003-06-03 Richard Henderson <rth@redhat.com>
3349 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3350 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3351 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3352 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3354 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3355 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3356 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3358 * alpha-linux-tdep.c: Remove unnecessary includes.
3359 * Makefile.in (alpha-linux-tdep.o): Update.
3361 2003-06-03 Richard Henderson <rth@redhat.com>
3363 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3364 (alphabsd_fill_fpreg): Likewise.
3366 2003-06-03 J. Brobecker <brobecker@gnat.com>
3368 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3369 references to struct frame_info fields by calls to the equivalent
3370 accessors. Necessary now that frame_info is opaque.
3372 2003-06-03 J. Brobecker <brobecker@gnat.com>
3374 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3375 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3376 structure, field no longer exists.
3378 2003-06-03 J. Brobecker <brobecker@gnat.com>
3380 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3381 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3383 2003-06-03 J. Brobecker <brobecker@gnat.com>
3385 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3386 references to struct frame_info fields by calls to the equivalent
3387 accessors. Necessary now that frame_info is opaque.
3389 2003-06-03 J. Brobecker <brobecker@gnat.com>
3391 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3392 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3393 structure, field no longer exists.
3395 2003-06-03 Theodore A. Roth <troth@openavr.org>
3397 * remote.c (init_remote_state): Compute sizeof_g_packet by
3398 accumulation of the size of all registers instead of blindly using
3399 DEPRECATED_REGISTER_BYTES.
3401 2003-06-03 Michael Snyder <msnyder@redhat.com>
3403 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3404 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3407 2003-06-03 J. Brobecker <brobecker@gnat.com>
3409 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3410 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3412 2003-06-03 Andrew Cagney <cagney@redhat.com>
3414 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3415 (sparc_convert_to_raw): Delete function.
3416 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3417 register_convert_to_virtual.
3419 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3421 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3422 layer if not dealing with a statically-linked threaded program.
3424 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3426 * solib.c (solib_open): Update comment to reflect actual search order.
3428 2003-06-03 Andrew Cagney <cagney@redhat.com>
3430 * frame.c (get_frame_memory_signed): New function.
3431 (get_frame_memory, get_frame_memory_unsigned): New function.
3432 (get_frame_arch): New function.
3433 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3434 (get_frame_memory, get_frame_unsigned_memory): Declare.
3435 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3436 get_frame_memory_unsigned and get_frame_arch.
3437 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3439 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3441 * MAINTAINERS (write after approval): Add myself.
3443 2003-06-03 Jim Blandy <jimb@redhat.com>
3445 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3446 elements of gregset_t are 64 bits each, but access registers
3447 are still 32 bits, so they're packed two per gregset_t
3448 element. Unpack/pack them properly.
3450 2003-06-02 David Carlton <carlton@bactrian.org>
3452 * linespec.c (find_methods): Break out code into
3453 add_matching_methods and add_constructors.
3454 (add_matching_methods): New.
3455 (add_constructors): Ditto.
3457 2003-06-02 Andrew Cagney <cagney@redhat.com>
3459 * sparc-tdep.c (sparc_print_registers): Delete call to
3460 REGISTER_CONVERTIBLE.
3461 (sparc_gdbarch_init): Do not set register_convertible.
3462 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3463 * frv-tdep.c (frv_gdbarch_init): Ditto.
3464 * cris-tdep.c (cris_gdbarch_init): Ditto.
3466 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3468 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3469 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3470 (syms_from_objfile): Ditto.
3472 2003-06-03 Andreas Schwab <schwab@suse.de>
3474 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3475 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3477 2003-06-02 Richard Henderson <rth@redhat.com>
3479 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3480 a member of all_reggroup.
3482 2003-06-02 Richard Henderson <rth@redhat.com>
3484 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3485 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3486 (alpha_lds, alpha_sts): New.
3487 (alpha_convert_register_p): Change from _register_convertible.
3488 (alpha_register_to_value): Change from _convert_to_virtual;
3489 restructure and fail for type sizes other than 4 or 8.
3490 (alpha_value_to_register): Similarly.
3491 (alpha_extract_return_value): Use alpha_sts.
3492 (alpha_store_return_value): Use alpha_lds.
3493 (alpha_gdbarch_init): Update hooks.
3495 2003-06-02 Richard Henderson <rth@redhat.com>
3497 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3499 (alpha_sigtramp_register_address): Likewise.
3501 2003-06-02 Richard Henderson <rth@redhat.com>
3503 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3504 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3505 * alpha-tdep.h: Declare them.
3507 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3508 Remove zerobuf. Don't error on UNIQUE.
3509 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3510 (ALPHA_REGSET_UNIQUE): Provide default.
3511 (supply_gregset): Use alpha_supply_int_regs.
3512 (fill_gregset): Use alpha_fill_int_regs.
3513 (supply_fpregset): Use alpha_supply_fp_regs.
3514 (fill_fpregset): Use alpha_fill_fp_regs.
3515 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3516 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3517 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3518 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3519 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3520 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3522 2003-06-02 Richard Henderson <rth@redhat.com>
3524 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3526 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3527 (alpha_store_return_value): Likewise.
3529 2003-06-02 David Carlton <carlton@math.stanford.edu>
3531 * block.c (contained_in): Add 'const' to arguments.
3532 (block_function): Ditto.
3533 * block.h: Update declarations for block_function and
3536 2003-06-02 David Carlton <carlton@math.stanford.edu>
3538 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3539 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3540 * p-valprint.c (pascal_val_print): Ditto.
3541 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3543 2003-06-02 Richard Henderson <rth@redhat.com>
3545 * alpha-tdep.c (alpha_push_dummy_call): Use
3546 builtin_type_ieee_double_little instead of builtin_type_double.
3548 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3549 sign-extension of 32-bit values.
3550 (alpha_store_return_value): Similarly.
3552 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3553 (alpha_extract_return_value): Likewise.
3554 (alpha_store_return_value): Likewise.
3556 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3557 (alpha_store_return_value): Error on IEEE Quad floats.
3559 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3560 (alpha_extract_struct_value_address): Likewise.
3561 (alpha_store_return_value): Likewise.
3562 (alpha_store_struct_return): Remove.
3563 (alpha_gdbarch_init): Update hook registration to match.
3565 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3566 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3567 macros where appropriate.
3568 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3569 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3571 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3572 for SP, GP; void_func_ptr for PC; non-language-specific types
3574 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3576 2003-06-02 Richard Henderson <rth@redhat.com>
3578 * top.h (lim_at_start): Declare.
3579 * main.c (captured_main): Set it.
3580 * top.c (lim_at_start): Define.
3581 (command_loop): Use it instead of &environ.
3582 * event-top.c (command_handler): Likewise.
3584 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3586 * mipsnbsd-tdep.c: Update copyright years.
3587 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3589 2003-06-01 Richard Henderson <rth@redhat.com>
3591 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3592 (alpha-linux-tdep.o): Update dependencies.
3593 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3594 * alpha-mdebug-tdep.c: Remove unneeded includes.
3596 2003-06-01 Richard Henderson <rth@redhat.com>
3598 * alpha-tdep.c (alpha_register_reggroup_p): New.
3599 (alpha_gdbarch_init): Register it.
3601 2003-06-02 Andrew Cagney <cagney@redhat.com>
3603 * dwarfread.c: Eliminate "register"
3604 (decode_die_type): Eliminate assignment within "if".
3605 (struct_type, decode_array_element_type): Ditto.
3606 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3607 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3608 (decode_modified_type, completedieinfo): Ditto.
3609 * block.c: Eliminate "register".
3610 (blockvector_for_pc_sect): Eliminate assignment within "if".
3611 * cp-support.h (struct symbol): Opaque declaration.
3612 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3614 2003-06-01 Richard Henderson <rth@redhat.com>
3616 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3617 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3619 2003-06-01 Adam Fedor <fedor@gnu.org>
3621 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3622 * gdbarch.[ch]: Regenerate.
3623 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3624 (hppa_gdbarch_init): Set it in the gdbarch vector.
3625 * i386-tdep.c (i386_fetch_pointer_argument): New
3626 (i386_gdbarch_init): Set it into gdbarch.
3627 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3628 (rs6000_gdbarch_init): Set it in gdbarch.
3629 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3630 (sparc_gdbarch_init): Set it in gdbarch.
3632 2003-06-01 Andrew Cagney <cagney@redhat.com>
3634 * defs.h (extract_address): Delete declaration.
3635 * findvar.c (extract_address): Delete function.
3636 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3637 extract_address with the inline equivalent,
3638 extract_unsigned_integer.
3639 (xstormy16_extract_struct_value_address): Ditto.
3640 (xstormy16_pointer_to_address): Ditto.
3641 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3642 * v850-tdep.c (v850_push_arguments): Ditto.
3643 (v850_extract_return_value): Ditto.
3644 (v850_extract_struct_value_address): Ditto.
3645 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3646 (sparcnbsd_get_longjmp_target_64): Ditto.
3647 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3648 (get_longjmp_target): Ditto.
3649 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3650 (sh64_extract_struct_value_address): Ditto.
3651 (sh_push_arguments): Ditto.
3652 (sh64_push_arguments): Ditto.
3653 * remote-vxsparc.c (vx_read_register): Ditto.
3654 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3655 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3656 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3657 * mipsv4-nat.c (get_longjmp_target): Ditto.
3658 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3659 * mips-nat.c (get_longjmp_target): Ditto.
3660 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3661 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3662 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3663 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3664 * irix5-nat.c (get_longjmp_target): Ditto.
3665 * irix4-nat.c (get_longjmp_target): Ditto.
3666 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3667 (ia64_push_arguments): Ditto.
3668 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3669 * h8300-tdep.c (h8300_push_arguments): Ditto.
3670 (h8300_store_return_value): Ditto.
3671 (h8300_extract_struct_value_address): Ditto.
3672 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3673 (frv_push_arguments): Ditto.
3674 * avr-tdep.c (avr_pointer_to_address): Ditto.
3675 (avr_push_arguments): Ditto.
3676 * arm-tdep.c (arm_push_dummy_call): Ditto.
3677 (arm_get_longjmp_target): Ditto.
3678 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3679 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3680 (alpha_get_longjmp_target): Ditto.
3682 * solib-irix.c (extract_mips_address): Inline extract_address,
3683 replacing it with extract_signed_integer.
3684 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3685 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3686 (first_link_map_member, open_symbol_file_object): Ditto.
3687 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3688 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3689 (LM_NEXT, LM_NAME): Ditto.
3691 2003-06-01 Richard Henderson <rth@redhat.com>
3693 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3694 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3695 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3696 (alpha_cannot_store_register): Likewise.
3697 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3698 * alpha-nat.c (supply_gregset): Likewise.
3699 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
3701 2003-06-01 Andrew Cagney <cagney@redhat.com>
3703 * infcall.c (call_function_by_hand): Update comment on
3704 DEPRECATED_DUMMY_WRITE_SP.
3706 * mips-tdep.c (mips_gdbarch_init): Do not set
3707 deprecated_dummy_write_sp.
3708 (mips_eabi_push_dummy_call): Set the SP register.
3709 (mips_o64_push_dummy_call): Set the SP register.
3710 (mips_o32_push_dummy_call): Set the SP register.
3711 (mips_n32n64_push_dummy_call): Set the SP register.
3713 2003-06-01 Richard Henderson <rth@redhat.com>
3715 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3716 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3717 (supply_gregset): Likewise.
3718 * alpha-tdep.c (alpha_store_return_value): Likewise.
3719 (alpha_get_longjmp_target): Likewise.
3720 (alpha_register_name): Constify array.
3721 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3722 deprecated_register_size, deprecated_register_bytes,
3723 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3724 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3725 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
3727 2003-06-01 Richard Henderson <rth@redhat.com>
3729 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3730 from arg_reg_buffer to regcache to avoid double conversion.
3732 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3734 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3736 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3737 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3739 2003-06-01 Richard Henderson <rth@redhat.com>
3741 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3742 (decode_frame_entry): Set it. Skip FDE augmentation.
3744 2003-06-01 Richard Henderson <rth@redhat.com>
3746 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3747 not overlapping PC_REGNUM.
3749 2003-06-01 Richard Henderson <rth@redhat.com>
3751 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3752 alpha_push_arguments. Don't dump argument register data to
3753 the target stack. Fix float and 128-bit long double semantics.
3754 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3755 (alpha_fix_call_dummy): Remove.
3756 (alpha_call_dummy_words): Remove.
3757 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
3759 2003-06-01 Richard Henderson <rth@redhat.com>
3761 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3763 2003-06-01 Andrew Cagney <cagney@redhat.com>
3765 * mips-tdep.c (is_mips16_addr): New function.
3766 (make_mips16_addr, unmake_mips16_addr): New functions.
3767 (pc_is_mips16, mips_fetch_instruction): Use.
3768 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3769 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3770 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3771 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3773 * config/mips/tm-mips.h: Update copyright.
3774 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3775 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3776 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3777 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3778 (TM_PRINT_INSN_MACH): Delete.
3779 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3781 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3782 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3783 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3784 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3785 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
3786 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
3787 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
3788 mips*-*-riscos* and mips*-*-sysv* onto mips.
3789 * config/mips/mips64.mt: New file.
3790 * config/mips/mips.mt: New file.
3791 * config/mips/littlemips.mt: Delete file.
3792 * config/mips/decstation.mt: Delete file.
3793 * config/mips/vr4300el.mt: Delete file.
3794 * config/mips/vr5000el.mt: Delete file.
3795 * config/mips/vr5000.mt: Delete file.
3796 * config/mips/vr4100.mt: Delete file.
3797 * config/mips/vr4xxxel.mt: Delete file.
3798 * config/mips/vr4300.mt: Delete file.
3799 * config/mips/vr4xxx.mt: Delete file.
3800 * config/mips/bigmips.mt: Delete file.
3801 * config/mips/bigmips64.mt: Delete file.
3802 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3803 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3804 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3805 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3806 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3808 * config/mips/tm-irix3.h: Ditto.
3809 * config/mips/tm-mipsv4.h: Ditto.
3810 * config/mips/tm-embed.h: Ditto.
3811 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3813 * config/mips/tm-vr5000el.h: Delete file.
3814 * config/mips/tm-tx39l.h: Delete file.
3815 * config/mips/tm-vr4300el.h: Delete file.
3816 * config/mips/tm-vr4xxxel.h: Delete file.
3817 * config/mips/tm-vr4300.h: Delete file.
3818 * config/mips/tm-vr4100.h: Delete file.
3819 * config/mips/tm-vr4xxx.h: Delete file.
3820 * config/mips/tm-vr5000.h: Delete file.
3821 * config/mips/tm-embedl64.h: Delete file.
3822 * config/mips/tm-embedl.h: Delete file.
3823 * config/mips/tm-embed64.h: Delete file.
3824 * config/mips/tm-bigmips64.h: Delete file.
3825 * config/mips/tm-bigmips.h: Delete file.
3827 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3830 * shnbsd-nat.c: Include "sh-tdep.h".
3832 From Richard Henderson <rth@redhat.com>:
3833 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3835 2003-05-31 Andrew Cagney <cagney@redhat.com>
3837 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
3838 forward declaration.
3839 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3840 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3841 (mips_find_saved_regs): Use set_reg_offset.
3842 (mips_frame_init_saved_regs): Delete function.
3843 (mips_pop_frame): Call mips_find_saved_regs instead of
3844 DEPRECATED_FRAME_INIT_SAVED_REGS.
3846 2003-05-31 Andrew Cagney <cagney@redhat.com>
3848 * mips-tdep.c (mips_gdbarch_init): Do not set
3849 deprecated_max_register_raw_size, register_virtual_size, and
3850 deprecated_max_register_virtual_size.
3852 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3854 * i386-tdep.c: Include "dwarf2-frame.h".
3855 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
3856 * Makefile.in (i386-tdep.o): Update dependencies.
3858 * dwarf2-frame.c, dwarf2-frame.h: New files.
3859 * Makefile.in (SFILES): Add dwarf2-frame.c.
3860 (dwarf2_frame_h): Define.
3861 (COMMON_OBS): Add dwarf2-frame.o.
3862 (dwarf2-frame.o): Add dependencies.
3864 2003-05-31 Andreas Jaeger <aj@suse.de>
3866 * x86-64-linux-nat.c: Fix comment.
3868 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3870 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
3873 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
3874 have a sigcontext_addr handler.
3875 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
3876 sigcontext_addr handler.
3878 2003-05-31 Andrew Cagney <cagney@redhat.com>
3880 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
3881 (print_fp_register_row): Replace do_fp_register_row.
3882 (mips_print_fp_register): Add "file" and "frame" parameters.
3883 (mips_print_register): Add "file" and "frame" parameters.
3884 (mips_print_registers_info): Replace mips_do_registers_info.
3885 (mips_gdbarch_init): Set print_registers_info instead of
3886 deprecated_do_registers_info.
3887 (mips_read_fp_register_single): Add "frame" parameter.
3888 (mips_read_fp_register_double): Add "frame" parameter.
3890 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3892 * i386-tdep.c (i386_register_name): Check for MMX registers first.
3893 Fixes a bug where GDB would print the wrong register names for
3894 targets without SSE.
3896 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
3897 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3900 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
3901 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
3902 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3905 From Michal Ludvig <mludvig@suse.cz>:
3906 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
3908 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3909 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3910 I386_ST0_REGNUM): Move here from...
3911 * i386-tdep.c: ... here.
3912 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
3913 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3914 registers if possible.
3915 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
3916 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
3918 (i386bsd_sc_reg_offset): New variable.
3919 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
3920 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3922 (i386fbsd_sc_reg_offset): New variable.
3923 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
3925 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
3927 (i386fbsd4_sc_reg_offset): New variable.
3928 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
3929 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3931 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
3932 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
3933 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
3935 (i386nbsd_sc_reg_offset): New variable.
3936 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
3937 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3939 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
3941 (i386obsd_sc_reg_offset): New variable.
3942 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
3943 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3945 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
3946 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
3947 for frame pointer offset in `struct sigcontext'.
3949 2003-05-31 Andrew Cagney <cagney@redhat.com>
3951 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
3952 architecture methods call_dummy_words, sizeof_call_dummy_words,
3953 push_return_address, store_struct_return, and fix_call_dummy. Set
3954 push_dummy_call instead of deprecated_push_arguments.
3955 (mips_store_struct_return): Delete function.
3956 (mips_fix_call_dummy): Delete function.
3957 (mips_push_return_address): Delete function.
3958 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
3959 RA_REGNUM and T9_REGNUM.
3960 (mips_n32n64_push_dummy_call): Ditto for
3961 mips_n32n64_push_arguments.
3962 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
3963 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
3965 2003-05-31 Andrew Cagney <cagney@redhat.com>
3967 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
3968 "dummy_addr" to "bp_addr".
3969 * infcall.c (call_function_by_hand): Pass "funaddr" to
3970 gdbarch_push_dummy_call.
3971 * gdbarch.h, gdbarch.c: Re-generate.
3972 * i386-tdep.c (i386_push_dummy_call): Update.
3973 * arm-tdep.c (arm_push_dummy_call): Update.
3974 * d10v-tdep.c (d10v_push_dummy_call): Update.
3976 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3978 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
3979 variable declarations.
3980 (x86_64_register_number, x86_64_register_name): Remove prototypes.
3981 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
3982 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
3983 x86_64_init_frame_pc, x86_64_init_frame_pc,
3984 x86_64_function_has_prologue): Remove prototypes.
3985 (X86_64_NUM_GREGS): New define.
3986 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
3987 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
3988 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
3989 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
3990 XMM1_REGNUM): Remove defines.
3991 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
3992 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
3993 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
3994 X86_64_XMM1_REGNUM): New defines.
3995 (struct x86_64_register_info): Renamed from `struct
3996 register_info'. Remove `size' member.
3997 (x86_64_register_info_table): Remove variable.
3998 (x86_64_register_info): New variable.
3999 (X86_64_NUM_REGS): New define.
4000 (X86_64_NUM_GREGS): Remove define.
4001 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4002 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4004 (x86_54_dwarf2_reg_to_regnum): Remove function.
4005 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4006 (x86_64_dwarf_reg_to_regnum): New function.
4007 (x86_64_register_name): Rewrite.
4008 (x86_64_register_raw_size): Remove function.
4009 (x86_64_register_byte_table): Remove variable.
4010 (x86_64_register_byte): Remove function.
4011 (x86_64_register_virtual_type): Remove function.
4012 (x86_64_register_type): New function.
4013 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4014 x86_64_register_convert_to_raw): Remove functions.
4015 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4016 (x86_64_use_struct_convention): Make static. Adjust for renamed
4018 (x86_64_frame_init_saved_regs): Remove function.
4019 (x86_64_push_arguments): Make static. Change to accept a regcache
4021 (x86_64_store_return_value, x86_64_extract_return_value): Make
4022 static. Rewrite based on i386 counterparts.
4023 (x86_64_push_dummy_call): New function.
4024 (X86_64_NUM_SAVED_REGS): New define.
4025 (x86_64_register_number): Remove function.
4026 (x86_64_store_struct_return): Remove function.
4027 (x86_64_frameless_function_invocation,
4028 x86_64_function_has_prologue): Remove functions.
4029 (PROLOG_BUFSIZE): Remove define.
4030 (struct x86_64_frame_cache): New structure.
4031 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4032 x86_64_frame_cache, x86_64_frame_this_id,
4033 x86_64_frame_prev_register, x86_64_frame_p,
4034 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4035 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4037 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4039 (x86_64_skip_prologue): Rewrite in terms of
4040 x86_64_analyze_prologue.
4041 (x86_64_frame_base_address): New function.
4042 (x86_64_frame_base): New variable.
4043 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4044 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4045 set deprecated_fp_regnum, deprecated_register_size,
4046 deprecated_register_bytes, register_raw_size, register_byte,
4047 register_virtual_type, register_convertiable,
4048 register_convert_to_virtual, convert_to_raw,
4049 deprecated_get_saved_register, deprecated_target_read_fp,
4050 deprecated_push_arguments, deprecated_push_return_address,
4051 deprecated_pop_frame, deprecated_store_struct_return,
4052 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4053 frameless_function_invocation, deprecated_frame_saved_pc,
4054 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4055 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4056 deprecated_init_frame_pc and virtual_frame_pointer. Call
4057 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4058 and x86_64_frame_p. Call frame_base_set_default to register
4060 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4061 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4062 (_initialize_x86_64_tdep): Remove function.
4063 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4064 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4065 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4067 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4068 (x86_64_linux_sigcontext_addr): Rewrite.
4069 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4070 x86_64_linux_frame_saved_pc): Remove functions.
4071 (x86_64_linux_pc_in_sigtramp): Renamed from
4072 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4074 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4076 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4077 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4078 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4079 (x86_64_regmap): Rename to regmap.
4080 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4082 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4084 (x86_64_fxsave_offset): Remove function.
4085 (supply_fpregset): Simply call x86_64_supply_fxsave.
4086 (fill_fpregset): Simply call x86_64_fill_fxsave.
4087 (fetch_inferior_registers, store_inferior_registers): Avoid
4088 asignment in if-statement.
4089 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4090 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4091 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4092 (fetch_core_registers): Remove function.
4093 (linux_elf_core_fns): Remove.
4094 (offsetoff): Don't define.
4095 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4096 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4097 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4099 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4100 protection against multiple includes instead of NM_X86_64_h. Add
4101 various comments. Include "config/nm-linux.h". Don't include
4103 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4104 GET_THREAD_SIGNALS): Remove defines.
4105 (x86_64_register_u_addr, kernel_u_size,
4106 lin_thread_get_thread_signals): Remove prototypes.
4107 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4108 [HAVE_LINK_H]: Don't include "solib.h".
4109 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4110 * config/i386/tm-x86-64linux.h: Fix comments.
4111 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4112 x86-64-tdep.o): Update dependencies.
4114 2003-05-30 Andrew Cagney <cagney@redhat.com>
4116 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4117 Change parameter type to a "struct regcache *".
4119 * gdbarch.sh: Regardless of the multi-arch level, always define
4120 the macro when not already defined.
4121 * gdbarch.h, gdbarch.c: Re-generate.
4123 2003-05-30 Richard Henderson <rth@redhat.com>
4125 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4126 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4127 (alpha_mdebug_frame_this_id): Likewise.
4128 (alpha_mdebug_frame_prev_register): Likewise.
4129 (alpha_mdebug_frame_base_address): Likewise.
4130 (alpha_mdebug_frame_locals_address): Likewise.
4131 (alpha_mdebug_frame_args_address): Likewise.
4132 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4133 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4134 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4136 (alpha_heuristic_frame_this_id): Make static.
4137 (alpha_heuristic_frame_prev_register): Likewise.
4138 (alpha_heuristic_frame_base_address): Likewise.
4139 * alpha-tdep.h: Update.
4141 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4143 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4144 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4146 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4147 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4148 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4149 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4150 I386_ST0_REGNUM): New defines.
4151 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4152 codestream_get): Remove define.
4153 (codestream_next_addr, condestream_addr, condestream_buf,
4154 codestream_off, codestream_cnt): Remove variables.
4155 (codestream_fill, codestream_seek, codestream_read): Remove
4157 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4159 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4160 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4161 i386_frame_saved_pc, i386_saved_pc_after_call,
4162 i386_frame_num_args, i386_frame_init_saved_regs,
4163 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4164 i386_push_arguments): Remove functions.
4165 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4166 functionality. Use i386_analyze_prologue instead of
4167 i386_get_frame_setup.
4168 (I386_NUM_SAVED_REGS): New define.
4169 (struct i386_frame_cache): New structure.
4170 (i386_alloc_frame_cache, i386_analyze_struct_return,
4171 i386_skip_probe, i386_analyze_frame_setup,
4172 i386_analyze_register_saves, i386_analyze_prologue,
4173 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4174 i386_frame_prev_register, i386_sigtramp_frame_cache,
4175 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4176 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4177 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4179 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4181 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4182 I386_EAX_REGNUM and I386_EDX_REGNUM.
4183 (i386_extract_return_value, i386_store_return_value): Use
4184 I386_ST0_REGNUM where appropriate.
4185 (i386_extract_struct_value_address): Rewrite to use extract_address.
4186 (i386_svr4_pc_in_sigtramp): Add comment.
4187 (i386_svr4_sigcontext_addr): Rewrite.
4188 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4190 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4191 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4192 of new defines. Set push_dummy_call, don't set
4193 deprecated_push_arguments, deprecated_push_return_address,
4194 deprecated_pop_frame. Don't set parm_boundary. Don't set
4195 deprecated_frame_chain, deprecated_frame_saved_pc,
4196 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4197 save_dummy_frame_tos, unwind_pc. Call
4198 frame_unwind_append_predicate and frame_base_set_default. Don't
4199 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4200 Don't set frameless_function_invocation. Don't set
4201 deprecated_register_bytes, deprecated_register_size,
4202 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4203 * i386-linux-tdep.c: Fix formatting in some comments.
4204 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4205 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4206 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4207 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4208 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4209 redundant parentheses.
4210 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4211 (i386_linux_sigcontext_addr): Use it. Rewrite.
4212 (find_minsym_and_objfile): Change name of second argument.
4213 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4214 changed. Use frame_pc_unwind instead of
4215 DEPRECATED_SAVED_PC_AFTER_CALL.
4216 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4217 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4218 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4220 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4222 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4223 (_initialize_i386_cygwin_tdep): New prototype.
4224 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4225 deprecated_frame_chain_valid.
4226 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4227 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4228 Rely on the SVR4 defaults.
4229 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4230 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4232 2003-05-30 Andrew Cagney <cagney@redhat.com>
4234 * infcall.c (call_function_by_hand): Always call
4235 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4237 2003-05-30 Richard Henderson <rth@redhat.com>
4239 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4242 2003-05-29 Jim Blandy <jimb@redhat.com>
4244 Use gdbarch methods for solib stuff on PowerPC Linux.
4245 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4246 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4248 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4249 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4250 giving the same effect as the #definitions above.
4252 2003-05-29 Adam Fedor <fedor@gnu.org>
4254 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4255 (find_implementation_from_class): Replace it with the standard
4256 case i.e. do nothing.
4258 2003-05-29 Richard Henderson <rth@redhat.com>
4260 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4261 (alpha_linux_sigtramp_offset): Use it. Make static.
4262 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4263 update for new frame model.
4264 * alpha-mdebug-tdep.c: New file.
4265 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4266 (alpha_osf1_init_abi): Install it.
4267 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4268 (linked_proc_desc_table): Remove.
4269 (alpha_frame_past_sigtramp_frame): Remove.
4270 (alpha_dynamic_sigtramp_offset): Remove.
4271 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4272 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4273 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4274 (push_sigtramp_desc): Remove.
4275 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4276 (alpha_cannot_store_register): Likewise.
4277 (alpha_sigcontext_addr): Remove.
4278 (alpha_find_saved_regs): Remove.
4279 (alpha_frame_init_saved_regs): Remove.
4280 (alpha_init_frame_pc_first): Remove.
4281 (read_next_frame_reg): Remove.
4282 (alpha_frame_saved_pc): Remove.
4283 (alpha_saved_pc_after_call): Remove.
4284 (temp_proc_desc, temp_saved_regs): Remove.
4285 (alpha_about_to_return): Remove.
4286 (cached_proc_desc): Remove.
4287 (alpha_frame_chain): Remove.
4288 (alpha_print_extra_frame_info): Remove.
4289 (alpha_init_extra_frame_info): Remove.
4290 (alpha_frame_locals_address): Remove.
4291 (alpha_frame_args_address): Remove.
4292 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4293 (alpha_push_dummy_frame): Remove.
4294 (alpha_pop_frame): Remove.
4295 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4296 (alpha_read_insn): New.
4297 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4298 for different insn encodings.
4299 (alpha_in_lenient_prologue): Remove.
4300 (struct alpha_sigtramp_unwind_cache): New.
4301 (alpha_sigtramp_frame_unwind_cache): New.
4302 (alpha_sigtramp_register_address): New.
4303 (alpha_sigtramp_frame_this_id): New.
4304 (alpha_sigtramp_frame_prev_register): New.
4305 (alpha_sigtramp_frame_unwind): New.
4306 (alpha_sigtramp_frame_p): New.
4307 (struct alpha_heuristic_unwind_cache): New.
4308 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4309 don't count nop insns that occur between functions.
4310 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4311 heuristic_proc_desc, but without the mdebug wrapping.
4312 (alpha_heuristic_frame_this_id): New.
4313 (alpha_heuristic_frame_prev_register): New.
4314 (alpha_heuristic_frame_unwind): New.
4315 (alpha_heuristic_frame_p): New.
4316 (alpha_heuristic_frame_base_address): New.
4317 (alpha_heuristic_frame_base): New.
4318 (alpha_unwind_dummy_id): New.
4319 (alpha_unwind_pc): New.
4320 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4321 frame related deprecated initializations; install replacements.
4322 (alpha_dump_tdep): Remove.
4323 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4324 (alpha_read_insn, alpha_after_prologue,
4325 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4326 alpha_heuristic_frame_prev_register,
4327 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4328 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4329 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4330 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4332 2003-05-29 Andrew Cagney <cagney@redhat.com>
4334 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4335 dependant on the availability of ASSERT_FUNCTION.
4336 (ASSERT_FUNCTION): Do not define when there is no function name.
4338 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4340 From Jimi X <jimix@watson.ibm.com>:
4341 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4343 2003-05-28 Jim Blandy <jimb@redhat.com>
4345 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4346 argument to ptrace to int; the system headers should give it the
4347 right type, and pointers don't fit in ints on powerpc64-*-*.
4349 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4351 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4354 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4356 * stabsread.c (dbx_lookup_type): Make static.
4358 (add_undefined_type): Ditto.
4359 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4362 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4364 * hpread.c (hpread_has_name): Make static.
4365 (hpread_psymtab_to_symtab): Ditto.
4366 (file_exists): Ditto.
4367 (hpread_call_pxdb): Ditto.
4368 (hpread_pxdb_needed): Ditto.
4369 (hpread_quick_traverse): Ditto.
4370 (hpread_get_header): Ditto.
4371 (hpread_get_lntt): Ditto.
4372 (hpread_get_slt): Ditto.
4375 2003-05-25 Andreas Schwab <schwab@suse.de>
4377 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4378 stack_align and deprecated_extra_stack_alignment_needed.
4379 (m68k_stack_align): Delete.
4381 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4382 (m68k_register_virtual_size): Likewise.
4383 (altos_skip_prologue): Remove obsolete function.
4384 (isi_frame_num_args): Likewise.
4385 (news_frame_num_args): Likewise.
4386 (m68k_fix_call_dummy): Make static.
4387 (m68k_push_dummy_frame): Likewise.
4388 (m68k_pop_frame): Likewise.
4389 (m68k_skip_prologue): Likewise.
4390 (m68k_frame_init_saved_regs): Likewise.
4391 (m68k_saved_pc_after_call): Likewise.
4392 (m68k_get_longjmp_target): Make multi-arch.
4393 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4394 structure. Register m68k_get_longjmp_target if enabled.
4395 * m68k-tdep.h (struct gdbarch_tdep): Define.
4396 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4398 * Makefile.in (config.status): Also depend on configure.tgt
4400 (m68klinux-tdep.o): Update dependencies.
4401 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4402 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4403 (M68K_LINUX_JB_PC): Define.
4404 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4405 and take additional parameter.
4406 (m68k_linux_sigtramp_saved_pc): Update.
4407 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4408 m68k_linux_pc_in_sigtramp, in_plt_section,
4409 find_solib_trampoline_target.
4410 * config/m68k/tm-linux.h: Don't include any tm headers.
4411 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4412 (JB_ELEMENT_SIZE): Likewise.
4414 (GET_LONGJMP_TARGET): Likewise.
4415 (IN_SIGTRAMP): Likewise.
4416 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4418 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4420 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4421 (sparc32_push_arguments): Re-implement by calling
4422 sparc32_do_push_arguments.
4424 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4426 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4427 SPARC_O1_REGNUM): New defines.
4428 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4429 (sparc32_store_return_value): New function.
4430 (sparc_extract_struct_value_address): Rewrite to operate on a
4432 (sparc_gdbarch_init): Don't set
4433 deprecated_extract_struct_value_address. Set
4434 extract_struct_value_address instead. Don't set
4435 deprecated_extract_return_value and deprecated_store_return_value
4436 for 32-bit targets. Set extract_return_value and
4437 store_return_value instead.
4438 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4439 DEPRECTAED_EXTRACT_RETURN_VALUE,
4440 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4441 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4442 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4443 (sparc_store_return_value): Remove prototype.
4444 (sparc32_store_return_value): New prototype.
4445 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4448 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4450 * sparcnbsd-tdep.c: Include "gdb_string.h".
4452 2003-05-23 Andrew Cagney <cagney@redhat.com>
4454 * p-valprint.c (pascal_val_print): Replace extract_address with
4455 the inline equivalent extract_unsigned_integer.
4456 * jv-valprint.c (java_value_print): Ditto.
4457 * ada-valprint.c (ada_val_print_1): Ditto.
4458 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4460 2003-05-23 Theodore A. Roth <troth@openavr.org>
4462 * blockframe.c (frameless_look_for_prologue): Remove unused
4463 after_prologue variable.
4465 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4467 * blockframe.c (get_pc_function_start): Rewrite to avoid
4468 asignments in if-statements.
4470 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4472 Committed by Elena Zannoni <ezannoni@redhat.com>.
4473 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4474 files, don't relocate absolute symbols (and do use mst_abs).
4476 2003-05-23 Andrew Cagney <cagney@redhat.com>
4478 * objc-lang.c: Include "gdb_assert.h".
4479 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4480 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4481 (gdb_check, gdb_check_fatal): Delete functions.
4482 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4484 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4485 * Makefile.in (objc-lang.o): Update dependencies.
4487 2003-05-22 Ian Lance Taylor <ian@airs.com>
4489 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4490 with fprintf_filtered, not fprintf_unfiltered.
4492 2003-05-22 Andrew Cagney <cagney@redhat.com>
4494 * stack.c (frame_info): Inline extract_address, replacing it with
4495 extract_unsigned_integer.
4496 * findvar.c (unsigned_pointer_to_address): Ditto.
4497 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4498 * dwarf2expr.c (dwarf2_read_address): Ditto.
4499 * frame.c (frame_pc_unwind): Update comment.
4500 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4502 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4504 * infptrace.c (detach): Call print_sys_errmsg rather than
4505 perror_with_name to issue warning message when errno is non-zero
4506 after calling ptrace detach.
4508 2003-05-21 J. Brobecker <brobecker@gnat.com>
4510 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4511 macro definitions from here...
4512 * hppa-tdep.c: ...to there.
4514 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4516 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4517 register_ptrace_addr(). Fix all callers.
4519 2003-05-21 Andreas Schwab <schwab@suse.de>
4521 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4523 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4525 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4526 (_initialize_m68k_linux_tdep): New function.
4527 (m68k_linux_frame_saved_pc): Make static.
4528 (m68k_linux_extract_return_value): Likewise.
4529 (m68k_linux_store_return_value): Likewise.
4530 (m68k_linux_extract_struct_value_address): Likewise.
4531 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4533 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4534 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4535 (DEPRECATED_FRAME_SAVED_PC): Remove.
4537 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4539 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4540 regset numbering rather than our own.
4542 2003-05-19 David Carlton <carlton@bactrian.org>
4544 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4546 2003-05-19 David Carlton <carlton@bactrian.org>
4548 Partial fix for PR c++/827.
4549 * cp-support.h: Include symtab.h.
4550 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4551 * cp-namespace.c: Update contributors.
4552 (cp_lookup_symbol_nonlocal): New.
4553 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4554 (lookup_symbol_file): Ditto.
4555 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4556 * block.h: Declare block_scope, block_using, block_global_block.
4557 * block.c (block_scope): New.
4558 (block_using, block_global_block): Ditto.
4559 * Makefile.in (cp_support_h): Depend on symtab_h.
4560 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4562 2003-05-19 David Carlton <carlton@bactrian.org>
4564 * language.h (struct language_defn): Add 'la_value_of_this'
4565 and 'la_lookup_symbol_nonlocal' members.
4566 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4567 lookup_symbol_static, lookup_symbol_global,
4568 lookup_symbol_aux_block.
4569 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4570 if we should search fields of this and how to do static/global
4572 (lookup_symbol_aux_block): Make extern.
4573 (basic_lookup_symbol_nonlocal): New.
4574 (lookup_symbol_static, lookup_symbol_global): Ditto.
4575 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4576 'la_lookup_symbol_nonlocal' members.
4577 * c-lang.c (c_language_defn, cplus_language_defn)
4578 (asm_language_defn, minimal_language_defn): Ditto.
4579 * jv-lang.c (java_language_defn): Ditto.
4580 * language.c (unknown_language_defn, auto_language_defn)
4581 (local_language_defn): Ditto.
4582 * m2-lang.c (m2_language_defn): Ditto.
4583 * objc-lang.c (objc_language_defn): Ditto.
4584 * scm-lang.c (scm_language_defn): Ditto.
4585 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4586 * p-lang.c (pascal_language_defn): Ditto for both.
4587 * Makefile.in (f-lang.o): Depend on value_h.
4590 2003-05-19 David Carlton <carlton@bactrian.org>
4592 * block.h: Declare block_static_block.
4593 * block.c (block_static_block): New.
4594 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4595 lookup_symbol_aux_local, calling block_static_block instead.
4596 (lookup_symbol_aux_local): Delete 'static_block' argument.
4598 2003-05-19 David Carlton <carlton@bactrian.org>
4600 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4602 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4604 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4605 register numbers mapping.
4607 2003-05-18 Adam Fedor <fedor@gnu.org>
4609 * symtab.c (completion_list_objc_symbol): New function.
4610 (make_symbol_completion_list): Use it to add ObjC symbols
4611 when looking though the list.
4612 (language_search_unquoted_string): New function.
4613 (make_file_symbol_completion_list): Use it.
4615 2003-05-18 Andreas Schwab <schwab@suse.de>
4617 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4619 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4620 as m68k_linux_extract_return_value.
4621 (DEPRECATED_STORE_RETURN_VALUE): Define as
4622 m68k_linux_store_return_value.
4623 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4624 m68k_linux_extract_struct_value_address.
4625 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4626 get_next_frame, get_frame_base, get_frame_pc.
4627 (m68k_linux_frame_saved_pc): Use get_frame_base.
4628 (m68k_linux_extract_return_value): New function.
4629 (m68k_linux_store_return_value): New function.
4630 (m68k_linux_extract_struct_value_address): New function.
4631 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4633 * c-exp.y (typebase): Remove duplicate occurence of
4634 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
4635 of lookup_signed_typename.
4637 2003-05-18 Mark Kettenis <kettenis@gnu.org>
4639 * dwarf2loc.c (find_location_expression): Change type of second
4640 argument to `size_t *'.
4641 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4644 2003-05-18 David Carlton <carlton@bactrian.org>
4646 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4647 'linkage_name'. Add comment.
4648 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4650 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4651 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4652 (lookup_block_symbol): Ditto.
4654 2003-05-16 Andrew Cagney <cagney@redhat.com>
4656 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4657 * gdbarch.h, gdbarch.c: Re-generate.
4658 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4659 * TODO (REGISTER_BYTES): Delete reference.
4660 * alpha-tdep.c (alpha_gdbarch_init): Update.
4661 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4662 * x86-64-tdep.c (x86_64_init_abi): Update.
4663 * vax-tdep.c (vax_gdbarch_init): Update.
4664 * v850-tdep.c (v850_gdbarch_init): Update.
4665 * sparc-tdep.c (sparc_gdbarch_init): Update.
4666 * sh-tdep.c (sh_gdbarch_init): Update.
4667 * s390-tdep.c (s390_gdbarch_init): Update.
4668 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4669 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4670 (ns32k_gdbarch_init_32382): Update.
4671 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4672 * mcore-tdep.c (mcore_gdbarch_init): Update.
4673 * m68k-tdep.c (m68k_gdbarch_init): Update.
4674 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4675 * ia64-tdep.c (ia64_gdbarch_init): Update.
4676 * i386-tdep.c (i386_gdbarch_init): Update.
4677 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4678 * hppa-tdep.c (hppa_gdbarch_init): Update.
4679 * h8300-tdep.c (h8300_gdbarch_init): Update.
4680 * frv-tdep.c (frv_gdbarch_init): Update.
4681 * cris-tdep.c (cris_gdbarch_init): Update.
4682 * avr-tdep.c (avr_gdbarch_init): Update.
4683 * arm-tdep.c (arm_gdbarch_init): Update.
4684 * sparc-tdep.c (sparc_pop_frame): Update.
4685 * rs6000-tdep.c (rs6000_pop_frame): Update.
4686 * remote.c (init_remote_state): Update.
4687 (remote_prepare_to_store): Update.
4688 * remote-vx.c (vx_prepare_to_store): Update.
4689 * remote-sds.c (sds_fetch_registers): Update.
4690 (sds_prepare_to_store): Update.
4691 * remote-array.c: Update.
4692 * regcache.c (init_legacy_regcache_descr): Update.
4693 (init_regcache_descr): Update.
4694 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4695 (mips_o64_extract_return_value): Update.
4696 * irix5-nat.c (fetch_core_registers): Update.
4697 * irix4-nat.c (fetch_core_registers): Update.
4698 * i386-tdep.h: Update.
4699 * hppa-tdep.c (pa_do_registers_info): Update.
4700 (pa_do_strcat_registers_info): Update.
4701 * cris-tdep.c (cris_register_bytes_ok): Update.
4702 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4703 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4704 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4705 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4706 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4707 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4708 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4709 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4710 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4711 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4712 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4713 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4714 (REGISTER_BYTES_OK): Update.
4715 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4716 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4718 2003-05-16 Ian Lance Taylor <ian@airs.com>
4720 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4721 (vax_print_insn, print_insn_arg): Remove static functions.
4722 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4723 print_insn_vax from opcodes library.
4724 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4726 2003-05-15 Andrew Cagney <cagney@redhat.com>
4728 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4729 * target.h (memory_breakpoint_from_pc): Delete declaration.
4730 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4731 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4732 * monitor.c (monitor_insert_breakpoint): Use
4733 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4734 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4735 * gdbarch.h, gdbarch.c: Re-generate.
4736 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4737 (sparc_gdbarch_init): Set breakpoint_from_pc to
4738 sparc_breakpoint_from_pc.
4739 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4740 (BREAKPOINT_FROM_PC): Define.
4741 (sparc_breakpoint_from_pc): Declare.
4742 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4743 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4744 (BREAKPOINT_FROM_PC): Define.
4745 (BREAKPOINT): Delete macro.
4746 * target.h: Update comment.
4747 * s390-tdep.c (s390_gdbarch_init): Update comments.
4748 * remote.c: Update comments.
4749 * remote-mips.c: Update comments.
4750 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4751 * mem-break.c: Update comment.
4752 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4753 (ia64_memory_insert_breakpoint): Update.
4754 * config/sparc/tm-sparc.h: Update comment.
4755 * config/pa/tm-hppa64.h: Update comment.
4756 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4757 (rs6000_breakpoint_from_pc): Update.
4758 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4759 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4760 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4761 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4762 (mips_breakpoint_from_pc): Update.
4763 (mips_dump_tdep): Update.
4765 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4766 * minsyms.c (lookup_minimal_symbol): Inline
4767 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4769 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4770 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4771 * p-lang.c (pascal_printstr): Ditto.
4772 * objc-lang.c (objc_printstr): Ditto.
4773 * m2-lang.c (m2_printstr): Ditto.
4774 * jv-valprint.c (java_print_value_fields): Ditto.
4775 * f-lang.c (f_printstr): Ditto.
4776 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4777 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4778 for repeat_count_threshold.
4779 * Makefile.in (cp-valprint.o): Update dependencies.
4781 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
4783 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4784 (examine_prologue): Support looking through leaf functions, knowing
4785 they start with mov r2,r12. Support skipping over indirect stores
4786 of the input registers. Upon hitting a non-nop branch instruction
4787 or predicated instruction, bail out by setting lim_pc to the current
4788 pc value in the loop. At the end, if the lim_pc value is still
4789 beyond our calculated value and we have trust_limit set,
4790 use the lim_pc value.
4792 2003-05-15 Andrew Cagney <cagney@redhat.com>
4794 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4795 generic_find_dummy_frame.
4796 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4797 (deprecated_generic_find_dummy_frame): Update.
4798 (deprecated_read_register_dummy): Update.
4799 * frame.c (deprecated_generic_get_saved_register): Update.
4801 2003-05-15 Theodore A. Roth <troth@openavr.org>
4803 * avr-tdep.c (avr_breakpoint_from_pc): New function.
4804 (avr_gdbarch_init): Set breakpoint_from_pc method.
4806 2003-05-15 Andrew Cagney <cagney@redhat.com>
4808 * regcache.c (build_regcache): Set deprecated_register_valid
4810 (deprecated_grub_regcache_for_register_valid): Delete function.
4811 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4814 2003-05-15 David Carlton <carlton@bactrian.org>
4816 Committed by Elena Zannoni <ezannoni@redhat.com>
4817 * symtab.c (lookup_symbol_aux): Delete calls to
4818 lookup_symbol_aux_minsyms.
4819 (lookup_symbol_aux_minsyms): Comment out function and
4820 prototype. Delete lookup by mangled name.
4822 2003-05-14 Kevin Buettner <kevinb@redhat.com>
4824 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4825 correctly indicate an empty stack and ``stack_allocated'' to the
4826 indicate the number of elements initially allocated.
4827 (dwarf_expr_grow_stack): Simplify method for computing new
4828 stack size. Don't loop infinitely if ``stack_len'' is zero.
4829 (execute_stack_op): Move ``ctx->in_reg'' initialization
4830 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4831 be used in conjuction with DW_OP_piece. Revise error message
4834 2003-05-14 Theodore A. Roth <troth@openavr.org>
4836 * MAINTAINERS: Update my email address.
4837 * avr-tdep.c: Ditto.
4839 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
4841 * symtab.h (enum domain_enum): Rename from namespace_enum.
4842 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4843 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4844 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4845 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4846 TYPES_NAMESPACE, METHODS_NAMESPACE.
4847 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4848 (struct symbol, struct partial_symbol): Rename field
4849 'namespace_enum namespace' to 'domain_enum domain'.
4850 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
4851 Delete old define kludge for namespace.
4853 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
4854 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
4855 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
4856 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
4857 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
4858 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
4859 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
4860 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
4861 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
4862 occurrences of the above.
4864 2003-05-14 Ian Lance Taylor <ian@airs.com>
4866 * Makefile.in (install-only): Use $(SHELL) when running
4869 2003-05-13 Ian Lance Taylor <ian@airs.com>
4871 * MAINTAINERS (write after approval): Add myself.
4873 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
4874 second and third arguments.
4875 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4876 * ser-unix.c (_initialize_ser_hardwire): Likewise.
4878 2003-05-13 Andrew Cagney <cagney@redhat.com>
4880 * defs.h (store_address): Delete declaration.
4881 findvar.c (store_address): Delete function.
4882 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
4883 store_unsigned_integer.
4884 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
4885 * v850-tdep.c (v850_push_arguments): Ditto.
4886 * sparc-tdep.c (sparc_get_saved_register): Ditto.
4887 * sh-tdep.c (sh64_get_saved_register): Ditto.
4888 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
4889 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
4890 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
4891 (mips_get_saved_register): Ditto.
4892 * ia64-tdep.c (ia64_get_saved_register): Ditto.
4893 (find_func_descr, ia64_push_arguments): Ditto.
4894 * i386-tdep.c (i386_push_arguments): Ditto.
4895 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4896 * frv-tdep.c (frv_push_arguments): Ditto.
4897 * frame.c (legacy_saved_regs_prev_register): Ditto.
4898 (deprecated_generic_get_saved_register): Ditto.
4899 * findvar.c (unsigned_address_to_pointer): Ditto.
4900 * dwarf2read.c (dwarf2_const_value): Ditto.
4901 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4902 * alpha-tdep.c (alpha_push_arguments): Ditto.
4904 2003-05-12 J. Brobecker <brobecker@gnat.com>
4906 * NEWS: Mention that the hppa-hpux port has been partially
4907 multiarched (32bit ABIT only, so far).
4909 2003-05-11 Andrew Cagney <cagney@redhat.com>
4911 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
4912 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
4913 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
4914 sim/testsuite/sim/arm/misaligned2.ms, and
4915 sim/testsuite/sim/arm/misaligned3.ms.
4916 * disasm.h (struct ui_file): Add opaque struct declaration.
4917 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
4918 * frame.h (struct ui_file): Ditto.
4920 2003-05-11 Mark Kettenis <kettenis@gnu.org>
4922 * value.h: Pretty print.
4924 2003-05-10 Mark Kettenis <kettenis@gnu.org>
4926 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
4928 2003-05-08 Andrew Cagney <cagney@redhat.com>
4930 * regcache.h (max_register_size): Delete declaration.
4931 * regcache.c (max_register_size): Delete function.
4932 (struct regcache_descr): Delete field "max_register_size".
4933 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
4934 registers fit in MAX_REGISTER_SIZE.
4935 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
4936 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
4937 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
4938 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
4939 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
4940 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
4941 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
4942 * dve3900-rom.c, hppa-tdep.c: Ditto.
4944 2003-05-08 David Carlton <carlton@math.stanford.edu>
4946 * valops.c (push_word): Fix typo.
4948 2003-05-08 Andrew Cagney <cagney@redhat.com>
4950 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
4951 * gdbarch.h: Re-generate.
4952 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
4953 (legacy_max_register_raw_size): Delete declaration.
4954 * regcache.c (legacy_max_register_raw_size): Delete function.
4955 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
4956 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
4957 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
4958 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
4959 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
4960 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
4961 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
4962 * findvar.c, dwarf2cfi.c: Ditto.
4964 2003-05-08 Andrew Cagney <cagney@redhat.com>
4966 * mips-tdep.c (read_signed_register): New function, moved to here
4968 (read_signed_register_pid): Ditto.
4969 * regcache.c (read_signed_register_pid): Delete function, moved to
4971 (read_signed_register): Ditto.
4972 * regcache.h (read_signed_register): Delete declaration.
4973 (read_signed_register_pid): Delete declaration.
4975 2003-05-08 Andrew Cagney <cagney@redhat.com>
4977 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
4978 * gdbarch.h: Re-generate.
4979 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
4980 (legacy_max_register_virtual_size): Delete declaration.
4981 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
4982 * d10v-tdep.c (d10v_print_registers_info): Ditto.
4983 * tracepoint.c (memrange_sortmerge): Ditto.
4984 * sparc-tdep.c (sparc_print_registers): Ditto.
4985 * regcache.c (legacy_max_register_virtual_size): Delete function.
4987 2002-05-08 J. Brobecker <brobecker@gnat.com>
4989 * fork-child.c (escape_bang_in_quoted_argument): New function.
4990 (fork_inferior): Escape '!' characters in quoted arguments
4993 2003-05-08 J. Brobecker <brobecker@gnat.com>
4995 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
4996 the language of the CU is not currently supported by GDB.
4998 2003-05-08 J. Brobecker <brobecker@gnat.com>
5000 * defs.h (language): Add language_minimal enum value.
5001 * c-lang.c (minimal_language_defn): New language definition.
5002 (_initialize_c_language): Add the new minimal language to the list
5003 of languages known to GDB.
5005 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5007 * frame.c (get_frame_type): Don't attempt to lazily initialize
5008 frame's unwinder for legacy frames.
5010 2003-05-07 Andrew Cagney <cagney@redhat.com>
5012 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5013 and "regcache" parameters.
5014 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5016 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5018 * dwarf2read.c (dwarf_decode_lines): Only use output of
5019 check_cu_functions() when calling record_line(). Do not update
5020 the current address.
5022 2003-05-07 Andrew Cagney <cagney@redhat.com>
5024 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5027 2003-05-07 Jim Blandy <jimb@redhat.com>
5029 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5030 'maint info symtabs' and 'maint info psymtabs'.
5031 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5032 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5033 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5034 Declarations updated.
5035 * maint.c (maintenance_list_command): Delete.
5036 (_initialize_maint_cmds): Update calls to add_cmd.
5037 * gdbcmd.h (maintenancelistlist): Delete declaration.
5038 * cli/cli-cmds.c (maintenancelistlist): Delete.
5039 (init_cmd_lists): Don't initialize it.
5040 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5042 2003-05-07 Andrew Cagney <cagney@redhat.com>
5044 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5046 (d10v_print_registers_info): Update.
5047 (d10v_dmap_register, d10v_imap_register): Delete functions.
5048 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5049 and "imap_register".
5050 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5051 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5052 * arch-utils.c (generic_remote_translate_xfer_address): Add
5053 "regcache" and "gdbarch" parameters.
5054 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5055 parameter. Change class to multi-arch.
5056 * gdbarch.h, gdbarch.c: Re-generate.
5057 * remote.c (remote_xfer_memory): Use
5058 gdbarch_remote_translate_xfer_address.
5060 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5062 * infrun.c (prev_pc): Move declaration ahead of proceed().
5063 (proceed): Refresh prev_pc value before resuming.
5064 (stop_stepping): Remove code to refresh prev_pc.
5066 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5068 * nto-tdep.c: Removed stray comment.
5070 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5072 * i386-nto-tdep.c: Fix old K&R function definitions.
5073 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5074 Also change add_show_from_set() call to add_setshow_cmd().
5075 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5077 2003-05-05 Andrew Cagney <cagney@redhat.com>
5079 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5080 (fprint_dummy_frames): New function.
5081 (maintenance_print_dummy_frames): New function.
5082 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5083 * frame.c (fprint_frame_id): Make global.
5084 * frame.h (fprint_frame_id): Declare.
5085 * Makefile.in (dummy-frame.o): Update dependencies.
5087 2003-05-05 Andrew Cagney <cagney@redhat.com>
5089 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5090 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5091 SIZEOF_CALL_DUMMY_WORDS.
5092 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5093 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5094 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5095 CALL_DUMMY_BREAKPOINT_OFFSET.
5096 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5097 CALL_DUMMY_START_OFFSET.
5098 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5099 * gdbarch.h, gdbarch.c: Re-generate.
5100 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5101 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5102 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5103 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5104 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5105 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5106 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5107 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5108 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5109 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5110 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5111 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5112 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5113 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5114 * config/sparc/tm-sparc.h: Update.
5116 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5118 * configure.tgt: Add i[3456]86-*-nto*.
5119 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5120 * nto-tdep.c: New file. Neutrino target support routines.
5121 * nto-tdep.h: New file. Neutrino target header.
5122 * config/tm-qnxnto.h: New file.
5123 * config/i386/i386nto.mt: New file.
5124 * config/i386/tm-i386nto.h: New file.
5126 2003-05-04 Andrew Cagney <cagney@redhat.com>
5128 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5129 (load_infrun_state): Ditto.
5130 (struct thread_info): Drop "prev_func_name" field.
5131 * thread.c (load_infrun_state): Update.
5132 (save_infrun_state): Update.
5133 * infrun.c (prev_func_name): Delete variable.
5134 (init_wait_for_inferior): Do not clear prev_func_name.
5135 (stop_stepping, keep_going, context_switch): Do not swap
5137 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5138 instead of PC_IN_SIGTRAMP.
5140 2003-05-04 Andrew Cagney <cagney@redhat.com>
5142 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5143 REGISTER_BYTE with register_offset_hack.
5144 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5145 that REGISTER_BYTE is consistent with the regcache.
5146 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5147 * gdbarch.h, gdbarch.c: Regenerate.
5149 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5151 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5152 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5154 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5156 2003-05-03 J. Brobecker <brobecker@gnat.com>
5158 From Thierry Schneider <tpschneider1@yahoo.com>
5159 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5160 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5161 (mi-cmd-symbol.o): Add rule.
5163 2003-05-03 Andrew Cagney <cagney@redhat.com>
5165 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5166 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5167 * gdbarch.h, gdbarch.c: Re-generate.
5168 * d10v-tdep.c (d10v_push_dummy_code): New function.
5169 (d10v_gdbarch_init): Set push_dummy_code.
5170 * infcall.c (legacy_push_dummy_code): New function.
5171 (generic_push_dummy_code): New function.
5172 (push_dummy_code): New function.
5173 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5174 instead of dummy_addr, to push_dummy_call. Move call to
5175 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5177 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5179 2003-05-03 Andrew Cagney <cagney@redhat.com>
5181 * disasm.h (print_insn): Declare.
5182 * disasm.c (init_gdb_disassemble_info): New function.
5183 (gdb_disassembly): Call init_gdb_disassemble_info.
5184 (gdb_print_insn): New function.
5185 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5186 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5187 * mcore-tdep.c: Include "disasm.h"
5188 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5189 * d10v-tdep.c: Include "disasm.h".
5190 (display_trace): Call gdb_print_insn, instead of print_insn.
5191 (print_insn): Delete function.
5192 * printcmd.c: Include "disasm.h".
5193 (print_insn): Delete function.
5194 (print_formatted): Call gdb_print_insn, instead of print_insn.
5195 * Makefile.in (printcmd.o): Update dependencies.
5196 (mcore-tdep.o, d10v-tdep.o): Ditto.
5198 2003-05-02 Andrew Cagney <cagney@redhat.com>
5200 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5201 PC_REGNUM, re-indent.
5202 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5203 PC_REGNUM isn't set.
5205 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5206 * gdbarch.h, gdbarch.c: Re-generate.
5207 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5208 register_virtual_size, pc_regnum, or register_bytes.
5209 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5210 (d10v_register_type): Use D10V_PC_REGNUM.
5211 (d10v_print_registers_info, d10v_read_pc): Ditto.
5212 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5213 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5215 2003-05-02 David Carlton <carlton@bactrian.org>
5217 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5218 the name with mstrsave.
5220 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5222 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5223 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5224 (host_charset_name, target_charset_name): New vars for use by
5226 (host_charset_enum, target_charset_enum): New enums for set/show
5228 (set_charset_sfunc, set_host_charset_sfunc,
5229 set_target_charset_sfunc): New functions.
5230 (set_host_charset, set_target_charset): Make static.
5231 (list_charsets, set_host_charset_command,
5232 set_target_charset_command): Delete functions.
5233 (show_charset_command): Rewrite as....
5234 (show_charset): Hook this up with the set/show command mechanism.
5235 (_initialize_charset): Change names of charsets to match the
5236 set/show enums. Use host_charset_name and target_charset_name.
5237 Use set/show mechanism for charset, host-charset, target-charset
5238 commands. Do not make 'show host-charset' and 'show
5239 target-charset' be aliases of 'show charset'.
5241 * charset.h (set_host_charset, set_target_charset): Don't export,
5242 they are not used outside the file.
5244 2003-05-01 Andrew Cagney <cagney@redhat.com>
5246 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5247 (gdb_disassembly): Make "di" non static, always initialize and
5248 cleanup. Always use dis_asm_read_memory.
5249 (gdb_dis_asm_read_memory): Delete function.
5251 2003-05-01 Andrew Cagney <cagney@redhat.com>
5253 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5254 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5256 2003-04-30 Andrew Cagney <cagney@redhat.com>
5258 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5259 "tm_print_insn_info".
5260 (TARGET_PRINT_INSN_INFO): Delete macro.
5261 (dis_asm_read_memory): Delete function declaration.
5262 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5263 (tm_print_insn_info): Delete variable definition.
5264 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5265 * gdbarch.h, gdbarch.c: Re-generate.
5266 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5267 "deprecated_tm_print_insn_info".
5268 * mcore-tdep.c (mcore_dump_insn): Ditto.
5269 * mips-tdep.c (mips_gdbarch_init): Ditto.
5270 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5271 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5272 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5273 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5274 instead of TARGET_PRINT_INSN_INFO, add comment.
5275 * s390-tdep.c (s390_get_frame_info): Instead of
5276 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5277 (s390_check_function_end, s390_is_sigreturn): Ditto.
5278 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5279 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5280 * disasm.c: Include "gdbcore.h".
5281 (_initialize_disasm): New function, initialize
5282 "deprecated_tm_print_insn_info".
5283 (deprecated_tm_print_insn_info): New variable.
5284 (dis_asm_read_memory): Moved from "corefile.c", made static.
5285 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5286 * Makefile.in (disasm.o): Update dependencies.
5288 2003-04-30 Andrew Cagney <cagney@redhat.com>
5290 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5292 2003-04-29 Adam Fedor <fedor@gnu.org>
5294 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5295 * infcall.c (find_function_addr): Make non-static.
5296 * infcall.h (find_function_addr): Declare.
5297 * Makefile.in (eval.o): Update dependencies.
5299 2003-04-28 Adam Fedor <fedor@gnu.org>
5301 * symtab.c (symbol_find_demangled_name): Check for and demangle
5303 (symbol_init_demangled_name): Init for language_objc as well.
5305 2003-04-28 Andrew Cagney <cagney@redhat.com>
5307 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5308 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5309 * gdbarch.h, gdbarch.c: Re-generate.
5310 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5311 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5312 * inferior.h (deprecated_read_fp): Rename read_fp.
5313 (generic_target_read_fp): Delete declaration.
5314 * regcache.c (generic_target_read_fp): Delete function.
5315 (deprecated_read_fp): Replace read_fp, use
5316 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5317 * d10v-tdep.c (d10v_read_fp): Delete function.
5318 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5320 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5321 deprecated_target_read_fp to generic_target_read_fp.
5322 * sh-tdep.c (sh_gdbarch_init): Ditto.
5323 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5324 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5325 * frv-tdep.c (frv_gdbarch_init): Ditto.
5327 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5328 deprecated_fp_regnum.
5329 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5330 * vax-tdep.c (vax_gdbarch_init): Ditto.
5331 * v850-tdep.c (v850_gdbarch_init): Ditto.
5332 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5333 * sh-tdep.c (sh_gdbarch_init): Ditto.
5334 * s390-tdep.c (s390_gdbarch_init): Ditto.
5335 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5336 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5337 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5338 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5339 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5340 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5341 * i386-tdep.c (i386_gdbarch_init): Ditto.
5342 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5343 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5344 * frv-tdep.c (frv_gdbarch_init): Ditto.
5345 * cris-tdep.c (cris_gdbarch_init): Ditto.
5346 * avr-tdep.c (avr_gdbarch_init): Ditto.
5347 * arm-tdep.c (arm_gdbarch_init): Ditto.
5348 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5350 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5351 * v850-tdep.c (v850_gdbarch_init): Ditto.
5352 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5353 * sh-tdep.c (sh_gdbarch_init): Ditto.
5354 * s390-tdep.c (s390_gdbarch_init): Ditto.
5355 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5356 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5357 * mips-tdep.c (mips_gdbarch_init): Ditto.
5358 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5359 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5360 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5361 * frv-tdep.c (frv_gdbarch_init): Ditto.
5362 * avr-tdep.c (avr_gdbarch_init): Ditto.
5363 * arm-tdep.c (arm_gdbarch_init): Ditto.
5365 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5366 DEPRECATED_FP_REGNUM.
5367 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5368 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5369 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5370 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5371 (sparc32_register_virtual_type): Ditto.
5372 * sh-tdep.c (sh64_frame_chain): Ditto.
5373 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5374 (sh_nofp_frame_init_saved_regs): Ditto.
5375 (sh64_nofp_frame_init_saved_regs): Ditto.
5376 (sh_fp_frame_init_saved_regs): Ditto.
5377 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5378 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5379 * procfs.c (procfs_fetch_registers): Ditto.
5380 (procfs_store_registers): Ditto.
5381 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5382 (store_inferior_registers, fetch_core_registers): Ditto.
5383 (fetch_kcore_registers, clear_regs): Ditto.
5384 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5385 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5386 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5387 * nlm/i386.c (do_status): Ditto.
5388 * mipsv4-nat.c (supply_gregset): Ditto.
5389 * mips-tdep.c: Ditto for comments.
5390 * mips-nat.c (fetch_inferior_registers): Ditto.
5391 (store_inferior_registers, fetch_core_registers): Ditto.
5392 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5393 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5394 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5395 (i386_do_pop_frame, i386_register_type): Ditto.
5396 * hppa-tdep.c (hppa_frame_chain): Ditto.
5397 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5398 (hppa_pop_frame, hppa_read_fp): Ditto.
5399 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5400 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5401 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5402 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5403 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5404 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5405 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5406 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5407 * blockframe.c: Ditto for comments.
5408 * arch-utils.h: Ditto for comments.
5409 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5410 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5411 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5412 * alpha-tdep.h: Ditto for comments.
5413 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5414 (alpha_cannot_store_register): Ditto.
5415 (alpha_push_dummy_frame): Ditto.
5416 * alpha-nat.c (supply_gregset): Ditto.
5418 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5419 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5420 * config/sparc/tm-sparc.h: Update comment.
5422 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5423 deprecated_read_fp instead of TARGET_READ_FP.
5424 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5425 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5426 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5427 deprecated_read_fp instead of read_fp.
5428 * s390-tdep.c (s390_push_arguments): Ditto.
5429 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5430 * frame.h: Ditto in comments.
5431 * frame.c (legacy_get_prev_frame): Ditto.
5432 * dummy-frame.c (dummy_frame_this_id): Ditto.
5433 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5435 2003-04-28 Andrew Cagney <cagney@redhat.com>
5437 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5438 * gdbarch.h, gdbarch.c: Re-generate.
5439 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5440 * vax-tdep.c (_initialize_vax_tdep): Update.
5441 * v850-tdep.c (_initialize_v850_tdep): Update.
5442 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5443 * s390-tdep.c (_initialize_s390_tdep): Update.
5444 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5445 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5446 * mips-tdep.c (_initialize_mips_tdep): Update.
5447 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5448 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5449 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5450 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5451 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5452 * frv-tdep.c (_initialize_frv_tdep): Update.
5453 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5454 (_initialize_cris_tdep): Update.
5455 * arch-utils.c (legacy_print_insn): Update.
5456 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5458 2003-04-26 Adam Fedor <fedor@gnu.org>
5460 * linespec.c (decode_objc): New function to decode ObjC calls
5461 (decode_line_1): Check for ObjC calls (using decode_objc)
5462 * Makefile (linespec.o): Update dependencies.
5464 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5466 * breakpoint.h (struct breakpoint_ops): New.
5467 (struct breakpoint): Add ops member.
5469 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5470 (mention): Use new breakpoint ops member.
5471 (set_raw_breakpoint): Initialize ops field to NULL.
5472 (print_exception_catchpoint, print_one_exception_catchpoint)
5473 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5474 (gnu_v3_exception_catchpoint_ops): New.
5475 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5477 2003-04-25 Adam Fedor <fedor@gnu.org>
5479 * Makefile.in (COMMON_OBS): Add objc-lang.o
5481 2003-04-25 Andrew Cagney <cagney@redhat.com>
5483 * d10v-tdep.c (print_insn): Delete function.
5484 (display_trace): Use TARGET_PRINT_INSN.
5485 (_initialize_d10v_tdep): Do not set tm_print_insn.
5486 (d10v_gdbarch_init): Set print_insn.
5488 2003-04-25 Andrew Cagney <cagney@redhat.com>
5490 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5491 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5492 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5493 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5494 (nr_dmap_regs, a0_regnum): ... new functions.
5495 (d10v_print_registers_info): Use a0_regnum, use register_size.
5496 (d10v_register_byte): Delete function.
5497 (d10v_register_raw_size): Delete function.
5498 (d10v_register_type): Use a0_regnum.
5499 (d10v_print_registers_info): Use a0_regnum.
5500 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5501 (d10v_gdbarch_init): Do not set register_byte or
5502 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5503 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5505 (trace_command): Use XCALLOC.
5506 (print_insn): Delete reference to tm_print_insn.
5507 (saved_regs_unwinder): Use store_unsigned_integer instead of
5509 * frame.h (FRAME_OBSTACK_CALLOC): Define
5511 2003-04-25 David Carlton <carlton@bactrian.org>
5513 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5515 2003-04-24 Adam Fedor <fedor@gnu.org>
5517 * objc-lang.c: Include "valprint.h"
5518 * Makefile.in (objc-lang.o): Update dependencies.
5520 2003-04-24 Adam Fedor <fedor@gnu.org>
5522 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5523 architecture dependant compilation and mark as unimplemented
5524 (until they get put in the gdbarch vector).
5526 2003-04-23 David Carlton <carlton@bactrian.org>
5528 * cp-support.c (cp_find_first_component): Accept 'operator' in
5531 2003-04-23 Andrew Cagney <cagney@redhat.com>
5533 * infcall.c (call_function_by_hand): Eliminate redundant
5534 indentation. Move "saved_async" and "old_cleanups" to where they
5537 2003-04-23 Andrew Cagney <cagney@redhat.com>
5539 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5540 and "buffer". Move the "name" code to where it is needed.
5542 2003-04-23 Andrew Cagney <cagney@redhat.com>
5544 * infcall.c (call_function_by_hand): Move variables "start_sp",
5545 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5546 code to ON_STACK switch branch.
5548 2003-04-23 Andrew Cagney <cagney@redhat.com>
5550 * infcall.c (call_function_by_hand): Make declaration of "i",
5551 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5554 2003-04-23 Andrew Cagney <cagney@redhat.com>
5556 * infcall.c (call_function_by_hand): Delete variable
5557 "n_method_args". Localize "param_type"'s declaration to the loop
5558 that it is used. Reinstate code assigning to said variable -
5559 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5560 Rationalize code using "param_type".
5562 2003-04-22 Andrew Cagney <cagney@redhat.com>
5564 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5565 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5566 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5567 to DEPRECATED_PUSH_RETURN_ADDRESS.
5569 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5571 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5572 on the DWARF2 register number prior to fetching a register.
5574 2003-04-22 J. Brobecker <brobecker@gnat.com>
5576 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5577 Update all the tests using SOFT_FLOAT considering the fact that
5578 this macro was always set to 0.
5579 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5580 considering the fact that this macro was always set to 0.
5581 * hppa-tdep.h (hppa_store_return_value): Likewise.
5582 (hppa_extract_return_value): Likewise.
5584 2003-04-22 J. Brobecker <brobecker@gnat.com>
5586 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5587 the hppa-pro target only.
5589 2003-04-21 J. Brobecker <brobecker@gnat.com>
5591 Ongoing multi-arch conversion effort for HP/UX:
5592 * config/pa/tm-hppa.h: Move all macro that are no longer
5593 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5594 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5596 2003-04-21 J. Brobecker <brobecker@gnat.com>
5598 * config/pa/tm-hppa.h: Obsolete a section that was only used
5601 2003-04-21 J. Brobecker <brobecker@gnat.com>
5603 Ongoing multi-arch conversion for HP/UX.
5604 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5605 if already defined (allows hppa64 to stay non-multiarched for now).
5606 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5608 2003-04-21 Andrew Cagney <cagney@redhat.com>
5610 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5612 2003-04-21 Andrew Cagney <cagney@redhat.com>
5614 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5615 "i386_num_mmx_regs".
5617 2003-04-21 Andrew Cagney <cagney@redhat.com>
5619 * infcall.c: New file.
5620 * infcall.h: New file.
5621 * valarith.c: Include "infcall.h".
5622 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5623 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5624 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5625 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5626 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5627 (SFILES): Add "infcall.c"
5628 (COMMON_OBS): Add "infcall.o".
5629 (infcall.o): Specify dependencies.
5630 * value.h (call_function_by_hand): Delete declaration.
5631 * inferior.h (run_stack_dummy): Delete declaration.
5632 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5633 (run_stack_dummy): Move to "infcall.c", merged into
5634 call_function_by_hand.
5635 * valops.c (call_function_by_hand): Moved to "infcall.c".
5636 (find_function_addr, value_arg_coerce): Ditto.
5637 (unwindonsignal_p, coerce_float_to_double): Ditto.
5638 (_initialize_valops): Move "set/show coerce-float-to-double", and
5639 "set/show unwindonsignal" commands to "infcall.c".
5640 * v850-tdep.c, target.h: Update comments.
5641 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5642 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5643 (sh64_init_extra_frame_info): Update comments.
5644 * mn10300-tdep.c: Update comments.
5645 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5646 * config/sparc/tm-sparc.h: Update comments.
5647 * breakpoint.h: Update comments.
5648 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5649 * arm-tdep.c: Update comment.
5651 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5653 * i386-tdep.c (i386_num_register_names): New variable.
5654 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5655 (MM0_REGNUM): Remove redundant parentheses in define.
5656 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5657 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5658 i386_mxcsr_regnum_p): Remove redundant parentheses.
5659 (i386_register_name): Use i386_num_register_names.
5661 * i386-tdep.c (i386_extract_return_value,
5662 i386_store_return_value): Correct check for availability of
5663 floating-point registers.
5665 * i386-tdep.c (i386_frame_num_args): Remove function.
5666 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5668 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5669 mmx_regnum_to_fp_regnum. Adjust all callers.
5671 * i386-tdep.c (i386_get_longjmp_target): Use
5672 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5673 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5676 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5678 * core-regset.c: Update comments to reflect reality. Re-order
5680 (fetch_core_registers): Use switch instead of if. Remove
5681 redundant prototype.
5683 2003-04-18 Jim Blandy <jimb@redhat.com>
5685 * s390-tdep.c (s390_frame_align): New function.
5686 (s390_gdbarch_init): Register it with the gdbarch object.
5688 2003-04-17 Richard Henderson <rth@redhat.com>
5690 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5692 2003-04-17 Michael Snyder <msnyder@redhat.com>
5693 Karen Bennet <bennet@redhat.com>
5695 Committed by Elena Zannoni <ezannoni@redhat.com>
5696 * gdb_gcore.sh: New script to create a core dump of a process.
5698 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
5700 * values.c (value_being_returned): Don't fetch the return
5701 value if the return type is void.
5703 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5705 * thread-db.c: Reindented.
5707 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5709 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5710 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
5737 2003-04-16 Kevin Buettner <kevinb@redhat.com>
5739 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
5740 the size of ``long double'' to 16, instead of 8.
5742 2003-04-16 Mark Kettenis <kettenis@gnu.org>
5744 * i386-linux-nat.c: Add some whitespace to make things more
5746 (fetch_register, store_register, fetch_inferior_registers,
5747 store_inferior_registers): Get rid of assignment in if-statement.
5748 (store_register): Fix typo in error message.
5750 2003-04-16 Andrew Cagney <cagney@redhat.com>
5752 * utils.c (xmmalloc): Always allocate something, matches
5753 libiberty/xmalloc's semantics.
5754 (xmrealloc, xmcalloc): Ditto.
5756 2003-04-16 Andrew Cagney <cagney@redhat.com>
5758 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5760 (get_frame_type): Initialize unwind and type when needed.
5761 (get_frame_id, frame_register_unwind): Ditto.
5763 2003-04-16 Andrew Cagney <cagney@redhat.com>
5765 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5767 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5768 * sparcl-stub.c: Obsolete file.
5769 * config/sparc/tm-sparclet.h: Obsolete file.
5770 * sparclet-stub.c: Obsolete file.
5771 * sparclet-rom.c: Obsolete file.
5772 * sparcl-tdep.c: Obsolete file.
5773 * config/sparc/tm-sparclite.h: Obsolete file.
5774 * config/sparc/sparclite.mt: Obsolete file.
5775 * config/sparc/sparclet.mt: Obsolete file.
5776 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5777 sparc86x-*-* obsolete.
5779 2003-04-15 David Carlton <carlton@math.stanford.edu>
5781 * Makefile.in (SFILES): Add cp-namespace.c.
5782 (COMMON_OBS): Add cp-namespace.o.
5783 (block.o): Depend on gdb_obstack_h and cp_support_h.
5784 (buildsym.o): Depend on cp_support_h.
5785 (cp-namespace.o): New.
5786 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5787 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5788 (dwarf2read.o): Depend on cp_support_h.
5789 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5790 * dwarf2read.c (process_die): Set processing_has_namespace_info,
5791 processing_current_namespace.
5792 (read_namespace): Update processing_current_namespace; check for
5793 anonymous namespaces.
5794 (dwarf2_name): New function.
5795 (dwarf2_extension): Ditto.
5796 * cp-support.h: Update copyright, contributors.
5797 Add inclusion guards.
5798 Add opaque declaration for structs obstack, block, symbol.
5799 (struct using_direct): New struct.
5800 Add declarations for cp_find_first_component,
5801 cp_entire_prefix_len, processing_has_namespace_info,
5802 processing_current_namespace, cp_is_anonymous,
5803 cp_add_using_directive, cp_initialize_namespace,
5804 cp_finalize_namespace, cp_set_block_scope,
5805 cp_scan_for_anonymous_namespaces.
5806 * cp-namespace.c: New file.
5807 * cp-support.c: Update copyright.
5808 Include ctype.h, gdb_assert.h, gdbcmd.h.
5809 New variable maint_cplus_cmd_list.
5810 (cp_find_first_component): New function.
5811 (cp_entire_prefix_len, maint_cplus_command)
5812 (first_component_command, _initialize_cp_support): Ditto.
5813 * buildsym.c: Include cp-support.h.
5814 New variable using_list.
5815 (add_symbol_to_list): Check for anonymous namespaces.
5816 (finish_block): Set block's scope.
5817 (start_symtab): Initialize C++ namespace support.
5818 (end_symtab): Finalize C++ namespace support.
5819 * block.h: Add opaque declarations for structs
5820 block_namespace_info, using_direct, and obstack.
5821 Add declarations for block_set_scope and block_set_using.
5822 (struct block): Add 'language_specific' member.
5823 (BLOCK_NAMESPACE): New macro.
5824 * block.c: Include gdb_obstack.h and cp-support.h.
5825 (struct block_namespace_info): New struct.
5826 (block_set_scope): New function.
5827 (block_set_using, block_initialize_namespace): Ditto.
5829 2003-04-14 Kevin Buettner <kevinb@redhat.com>
5831 * solib-svr4.c (svr4_have_link_map_offsets): New function.
5832 (locate_base): Return early if there aren't any link map offsets.
5833 (svr4_solib_create_inferior_hook): Warn if shared library support
5836 2003-04-14 David Carlton <carlton@math.stanford.edu>
5838 * symtab.c (symbol_set_names): Add prefix when storing Java names
5839 in hash table. Fix for PR java/1039.
5841 2003-04-14 David Carlton <carlton@math.stanford.edu>
5843 * symtab.c (symbol_set_names): Rename 'name' arg to
5844 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5845 * symtab.h: Change 'name' argument in declaration of
5846 symbol_set_names to 'linkage_name'.
5847 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5849 2003-04-14 Andrew Cagney <cagney@redhat.com>
5851 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
5852 return the fully sign-extended register value.
5853 (get_frame_pointer): Ditto.
5854 (mips_pop_frame): Initialize "proc_desc" after checking for a
5857 2003-04-14 Andrew Cagney <cagney@redhat.com>
5859 * mips-tdep.c (mips_push_dummy_frame): Delete function.
5860 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
5861 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
5862 (mips_push_register): Delete function.
5863 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
5866 2003-04-14 Jim Blandy <jimb@redhat.com>
5868 * symmisc.c: #include "gdb_regex.h".
5869 (maintenance_list_symtabs, maintenance_list_psymtabs): New
5871 * maint.c (maintenance_list_command): New function.
5872 (_initialize_maint_cmds): Register the above as commands.
5873 * symtab.h (maintenance_list_symtabs,
5874 maintenance_list_psymtabs): New declarations.
5875 * cli/cli-cmds.c (maintenancelistlist): New variable.
5876 (init_cmd_lists): Initialize it.
5877 * cli/cli-cmds.h (maintenancelistlist): New declaration.
5878 * gdbcmd.h (maintenancelistlist): New declaration.
5879 * Makefile.in (symmisc.o): Update dependencies.
5881 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
5883 * s390-nat.c: Include asm/types.h for addr_t.
5885 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
5887 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
5888 actually incoming type.
5890 2003-04-13 Andrew Cagney <cagney@redhat.com>
5892 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
5893 get_next_frame and get_frame_saved_regs.
5895 2003-04-13 Andrew Cagney <cagney@redhat.com>
5897 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
5898 of gdbarch_num_regs.
5900 2003-04-13 Andrew Cagney <cagney@redhat.com>
5902 * frame.h: Mention what replaced what in "struct frame_info".
5903 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
5904 deprecated_update_frame_base_hack and
5905 deprecated_update_frame_pc_hack.
5906 * hppa-tdep.c: Ditto.
5908 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5910 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
5911 to read_reg and update its comment. Remove regnum member.
5912 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
5913 Don't call read_reg when setting in_reg. Call read_reg to get
5914 the frame base if it's in a register. Return the register number
5915 on the stack instead of in the context. Remove extra arguments
5917 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
5918 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
5919 the register number on the expression stack.
5920 (needs_frame_read_reg): Remove extra arguments.
5922 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5924 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
5926 (execute_stack_op): All callers updated.
5927 * dwarf2expr.h: Add prototype for dwarf2_read_address.
5928 * dwarf2loc.c (find_location_expression): New function.
5929 (dwarf_expr_frame_base): Call it.
5930 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
5931 (dwarf2_tracepoint_var_ref): New function, broken out from
5932 locexpr_tracepoint_var_ref.
5933 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
5935 (loclist_read_variable, loclist_read_needs_frame): New functions.
5936 (loclist_describe_location, loclist_tracepoint_var_ref): New
5938 (dwarf2_loclist_funcs): New struct location_funcs.
5939 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
5940 (struct dwarf2_locexpr_baton): Add comments.
5941 (dwarf2_loclist_funcs): New extern.
5942 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
5943 base_address and base_known.
5944 (dwarf_loc_buffer): New variable.
5945 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
5946 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
5947 (dwarf2_has_info): Initialize dwarf_loc_offset.
5948 (dwarf2_build_psymtabs): Read in .debug_loc.
5949 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
5951 (psymtab_to_symtab_1): Likewise. Move base address calculation
5953 (dwarf2_get_pc_bounds): ... here. Use the base address from
5955 (dwarf2_symbol_mark_computed): Handle location lists.
5957 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5959 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
5960 if the linkage name demangled successfully.
5962 2003-04-13 Mark Kettenis <kettenis@gnu.org>
5964 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
5965 disassmbly_flavour): Removed.
5967 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
5969 2003-04-13 Mark Kettenis <kettenis@gnu.org>
5971 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
5973 2003-04-12 Andrew Cagney <cagney@redhat.com>
5975 * frame.h (struct frame_info): Move definition from here ...
5976 * frame.c (struct frame_info): ... to here.
5978 2003-04-12 Andrew Cagney <cagney@redhat.com>
5980 * gdbthread.h (save_infrun_state): Delete parameter
5982 (struct thread_info): Delete field "prev_func_start".
5983 (load_infrun_state): Ditto.
5984 * thread.c (load_infrun_state, save_infrun_state): Update.
5985 * infrun.c (prev_func_start): Delete variable.
5986 (context_switch, init_wait_for_inferior): Update.
5987 (stop_stepping, keep_going): Update.
5989 2003-04-12 Andrew Cagney <cagney@redhat.com>
5991 * gdbarch.sh: Add missing opaque declarations.
5992 * gdbarch.h: Regnerate.
5993 * symtab.h: Add missing opaque declarations.
5994 * value.h, target.h, symfile.h, stabsread.h: Ditto.
5995 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
5996 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
5997 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
5998 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
5999 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6000 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6001 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6002 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6003 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6004 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6005 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6006 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6008 2003-04-11 Andrew Cagney <cagney@redhat.com>
6010 * frame.c (get_frame_id): Return this frame's "id".
6011 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6013 (legacy_saved_regs_this_id): Replace function body with
6015 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6016 FRAME_OBSTACK_ZALLOC.
6017 (create_new_frame): Mark the frame ID as valid.
6019 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6021 * Makefile.in (libbfd_h): Added missing setting.
6022 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6023 according to the selected ABI.
6025 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6027 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6029 2003-04-11 Andrew Cagney <cagney@redhat.com>
6031 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6032 SAVED_PC_AFTER_CALL.
6033 * gdbarch.h, gdbarch.c: Regenerate.
6034 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6035 * x86-64-tdep.c (x86_64_init_abi): Update.
6036 * vax-tdep.c (vax_gdbarch_init): Update.
6037 * v850-tdep.c (v850_gdbarch_init): Update.
6038 * sparc-tdep.c (sparc_gdbarch_init): Update.
6039 * sh-tdep.c (sh_gdbarch_init): Update.
6040 * s390-tdep.c (s390_gdbarch_init): Update.
6041 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6042 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6043 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6044 * mips-tdep.c (mips_gdbarch_init): Update.
6045 * mcore-tdep.c (mcore_gdbarch_init): Update.
6046 * m68k-tdep.c (m68k_gdbarch_init): Update.
6047 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6048 * ia64-tdep.c (ia64_gdbarch_init): Update.
6049 (ia64_saved_pc_after_call): Update declaration.
6050 * i386ly-tdep.c (i386lynx_init_abi): Update.
6051 * i386-tdep.c (i386_gdbarch_init): Update.
6052 * hppa-tdep.c (hppa_gdbarch_init): Update.
6053 * h8300-tdep.c (h8300_gdbarch_init): Update.
6054 * frv-tdep.c (frv_gdbarch_init): Update.
6055 * cris-tdep.c (cris_gdbarch_init): Update.
6056 * avr-tdep.c (avr_gdbarch_init): Update.
6057 * arm-tdep.c (arm_gdbarch_init): Update.
6058 * alpha-tdep.c (alpha_gdbarch_init): Update.
6059 * ns32knbsd-nat.c (frame_num_args): Update.
6060 * ns32k-tdep.c (umax_frame_num_args): Update.
6061 * mips-tdep.c (mips_init_frame_pc_first): Update.
6062 * infrun.c (step_over_function): Update.
6063 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6064 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6065 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6066 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6067 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6068 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6069 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6070 * arch-utils.c (init_frame_pc_default): Update.
6071 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6072 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6075 2003-04-11 Andrew Cagney <cagney@redhat.com>
6077 * i387-tdep.c: Update copyright.
6078 (i387_to_double): Delete function.
6079 (double_to_i387): Delete function.
6081 2003-04-10 Andrew Cagney <cagney@redhat.com>
6083 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6084 frame's function's address. Simplify.
6085 (d10v_frame_unwind_cache): Check that the frame's function is
6088 2003-04-10 Jim Blandy <jimb@redhat.com>
6090 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6091 call to set_gdbarch_deprecated_push_arguments.
6093 2003-04-10 Andrew Cagney <cagney@redhat.com>
6095 * frame.c (fprint_frame_id): New function.
6096 (fprint_frame_type, fprint_frame): New function.
6097 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6098 (create_sentinel_frame, get_frame_id): Ditto.
6099 (frame_id_p, frame_id_eq): Ditto.
6100 (frame_id_inner, create_new_frame): Ditto.
6101 (legacy_get_prev_frame, get_prev_frame): Ditto.
6102 (deprecated_update_frame_pc_hack): Ditto.
6103 (frame_register_unwind): Ditto.
6104 (deprecated_update_frame_base_hack): Ditto.
6106 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6108 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6109 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6110 frame_chain function.
6111 * Makefile.in: Add dependencies due to above change.
6113 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6115 * blockframe.c (legacy_frame_chain_valid): Move call to
6116 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6119 2003-04-09 Andrew Cagney <cagney@redhat.com>
6121 * frame.h (struct frame_id): Replace "pc" and "base" with
6122 "stack_addr" and "code_addr". Update comments.
6123 (frame_id_build): Update parameter names and comment.
6124 (struct frame_info): Replace "id_p" and "id" with "this_id".
6125 * dummy-frame.c (dummy_frame_this_id): Update.
6126 * breakpoint.c (print_one_breakpoint): Update.
6127 * frame.c (get_frame_id): Update.
6128 (get_frame_base, frame_id_build): Update.
6129 (create_sentinel_frame, legacy_get_prev_frame): Update.
6130 (deprecated_update_frame_base_hack): Update.
6131 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6132 (frame_id_inner): Ditto.
6134 2003-04-09 Andrew Cagney <cagney@redhat.com>
6136 * defs.h (gdb_print_host_address): Make "addr" parameter a
6138 * utils.c (gdb_print_host_address): Update.
6140 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6142 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6143 register number for R0 is 0.
6145 2003-04-09 J. Brobecker <brobecker@gnat.com>
6147 * frame.h (struct gdbarch): Add opaque structure definition
6148 to avoid a compilation warning on LynxOS 4.0.
6150 2003-04-09 Andrew Cagney <cagney@redhat.com>
6152 * frame.h (struct frame_info): Delete field "pc". Replace
6153 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6155 * frame.c (frame_pc_unwind): Update.
6156 (create_sentinel_frame): Do not set "pc".
6157 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6158 (get_frame_pc): Call frame_pc_unwind.
6159 (deprecated_update_frame_pc_hack): Update.
6160 (create_new_frame): Use "pc" not "->pc".
6162 2003-04-09 Andrew Cagney <cagney@redhat.com>
6164 * frame.c (get_frame_id): Eliminate code updating "frame".
6165 (legacy_get_prev_frame): Ditto.
6166 (get_frame_base): Return id.base directly.
6167 (deprecated_update_frame_base_hack): Update "id.base".
6168 * frame.h (struct frame_info): Delete field "frame".
6170 2003-04-09 Andrew Cagney <cagney@redhat.com>
6172 * NEWS: Mention that the "Sequent family" is obsolete.
6173 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6174 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6175 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6176 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6177 * config/i386/tm-ptx4.h: Obsolete file.
6178 * config/i386/tm-ptx.h: Obsolete file.
6179 * symm-tdep.c: Obsolete file.
6180 * config/i386/symmetry.mt: Obsolete file.
6181 * config/i386/tm-symmetry.h: Obsolete file.
6182 * symm-nat.c: Obsolete file.
6183 * config/i386/nm-symmetry.h: Obsolete file.
6184 * config/i386/xm-symmetry.h: Obsolete file.
6185 * config/i386/symmetry.mh: Obsolete file.
6186 * config/i386/nm-ptx4.h: Obsolete file.
6187 * config/i386/ptx4.mh: Obsolete file.
6188 * config/i386/ptx.mt: Obsolete file.
6189 * config/i386/ptx.mh: Obsolete file.
6190 * config/i386/xm-ptx4.h: Obsolete file.
6191 * config/i386/xm-ptx.h: Obsolete file.
6193 2003-04-09 Andrew Cagney <cagney@redhat.com>
6195 Obsolete mips*-*-mach3*.
6196 * NEWS: Mention that mips*-*-mach3* is obsolete.
6197 * m3-nat.c: Obsolete file.
6198 * config/nm-m3.h: Obsolete file.
6199 * config/mips/tm-mipsm3.h: Obsolete file.
6200 * config/mips/mipsm3.mt: Obsolete file.
6201 * config/mips/mipsm3.mh: Obsolete file.
6202 * config/mips/xm-mipsm3.h: Obsolete file.
6203 * mipsm3-nat.c: Obsolete file.
6204 * configure.host: Obsolete mips-dec-mach3*.
6205 * configure.tgt: Obsolete mips*-*-mach3*.
6207 2003-04-09 Andrew Cagney <cagney@redhat.com>
6209 * doublest.h: Update copyright.
6210 (deprecated_store_floating, deprecated_extract_floating): Rename
6211 store_floating and extract_floating. Update comments.
6212 * doublest.c: Update copyright.
6213 (extract_floating_by_length): Replace extract_floating.
6214 (store_floating_by_length): Replace store_floating.
6215 (deprecated_extract_floating): New function.
6216 (deprecated_store_floating): New function.
6217 (extract_typed_floating): Call extract_floating_by_length.
6218 (store_typed_floating): Call store_floating_by_length.
6219 * x86-64-tdep.c (x86_64_store_return_value): Update.
6220 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6221 (sh64_extract_return_value): Update.
6222 (sh_sh4_register_convert_to_virtual): Update.
6223 (sh_sh64_register_convert_to_virtual): Update.
6224 (sh_sh4_register_convert_to_raw): Update.
6225 (sh_sh64_register_convert_to_raw): Update.
6226 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6227 (rs6000_register_convert_to_raw): Update.
6228 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6229 (ia64_register_convert_to_raw): Update.
6230 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6231 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6232 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6233 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6234 (alpha_register_convert_to_raw): Update.
6236 2003-04-08 Andrew Cagney <cagney@redhat.com>
6238 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6239 * gdbarch.h, gdbarch.c: Re-generate.
6240 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6241 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6242 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6243 conditionally, use frame_pc_unwind as an alternative. Add
6245 * arch-utils.c (init_frame_pc_default): Only call
6246 SAVED_PC_AFTER_CALL when available.
6248 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6250 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6251 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6252 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6253 (start_remote): Ditto.
6254 (handle_inferior_event): Ditto.
6255 (save_inferior_status): Ditto.
6256 (restore_inferior_status): Ditto.
6257 * infcmd.c (attach_command): Ditto.
6258 * fork-child.c (startup_inferior): Ditto.
6259 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6260 * alpha-tdep.c (heuristic_proc_start): Ditto.
6261 * mips-tdep.c (heuristic_proc_start): Ditto.
6262 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6263 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6264 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6265 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6266 * remote-vx.c (vx_create_inferior): Ditto.
6268 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6270 * infrun.c (stop_soon_quietly): Make it an enum, to better
6271 override the default behavior of handle_inferior_event.
6272 (clear_proceed_status): Update uses of stop_soon_quietly to
6273 reflect that it is now an enum.
6274 (start_remote): Ditto.
6275 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6276 is set to handle the new GNU/Linux kernel behavior for
6277 attach/sigstop. Update uses of stop_soon_quietly.
6278 * inferior.h (enum stop_kind): New enum.
6279 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6280 Reset normal handle_inferior_event behavior, afterwards.
6281 * fork-child.c (startup_inferior): Update.
6282 * alpha-tdep.c (heuristic_proc_start): Update.
6283 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6284 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6285 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6286 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6287 * remote-vx.c (vx_create_inferior): Update.
6288 * mips-tdep.c (heuristic_proc_start): Update.
6290 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6292 * disasm.c (dump_insns): Move variables inside loop, or they will
6293 be freed more than once, causing wild memory corruptions.
6294 (gdb_disassembly): Look for the substring "-thread",
6295 instead of "-threads" in the target name, to make sure to find
6296 the 'multi-thread' target. Also, make sure we do the right thing
6297 with the "core" target.
6299 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6301 * mips-tdep.c (mips_print_fp_register): New function, created from
6302 do_fp_register_row(). Registers are now (also) printed as hex.
6303 Only one register is printed per row.
6304 (mips_print_register, do_fp_register_row): Print floating point
6305 registers with mips_print_fp_register().
6307 2003-04-06 Andrew Cagney <cagney@redhat.com>
6309 * valprint.h (inspect_it): Add extern declaration.
6310 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6311 (selectors_info, classes_info): Ditto.
6312 (find_objc_msgcall): Fix indentation.
6313 (objc_printstr): Delete extern declarations.
6315 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6317 2003-04-06 Andrew Cagney <cagney@redhat.com>
6319 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6321 * frame.c (legacy_saved_regs_this_id): Update.
6322 (legacy_get_prev_frame): Update.
6323 * xstormy16-tdep.c: Update comment.
6324 * sparc-tdep.c (sparc_frame_chain): Update comment.
6325 * blockframe.c (legacy_frame_chain_valid): Update.
6327 2003-04-06 Andrew Cagney <cagney@redhat.com>
6329 * valprint.c (val_print_type_code_int): Delete #ifdef
6330 PRINT_TYPELESS_INTEGER code.
6332 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6333 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6334 multi-arch definition.
6335 * gdbarch.h: Re-generate.
6337 2003-04-05 Andrew Cagney <cagney@redhat.com>
6339 Eliminate FRAME_FIND_SAVED_REGS.
6340 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6341 Change FSR parameter to a pointer.
6342 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6343 Assume FSR parameter is a pointer.
6344 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6346 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6347 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6348 saved_regs a pointer.
6349 (hppa_frame_saved_pc): Ditto.
6350 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6351 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6353 (restore_pc_queue): Make fsr a pointer.
6354 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6355 (hppa_frame_chain): Make saved_regs a pointer, call
6356 hppa_frame_init_saved_regs.
6357 * sparc-tdep.c: Include "gdb_assert.h".
6358 (sparc_frame_find_saved_regs): Replace internal_error with
6360 * remote-vxsparc.c (vx_read_register): Delete reference to
6361 FRAME_FIND_SAVED_REGS.
6362 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6363 * gdbarch.h: Regenerate.
6364 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6365 (deprecated_get_frame_saved_regs): Delete declaration.
6366 (struct frame_saved_regs): Delete definition.
6367 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6368 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6369 (hppa_frame_find_saved_regs): Delete declaration.
6370 (FRAME_FIND_SAVED_REGS): Delete macro.
6371 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6372 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6373 FRAME_FIND_SAVED_REGS in comment.
6375 2003-04-05 Andrew Cagney <cagney@redhat.com>
6377 * frame.c (frame_func_unwind, get_frame_func): New functions.
6378 * frame.h (get_frame_func, frame_func_unwind): Declare.
6379 (struct frame_info): Add field "prev_func" for caching the
6380 previous frame's function address.
6381 * arm-tdep.c (arm_frameless_function_invocation): Combine
6382 get_pc_function_start and get_frame_pc into get_frame_func.
6383 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6384 (sh64_nofp_frame_init_saved_regs): Ditto.
6385 * s390-tdep.c (s390_function_start): Ditto.
6386 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6387 (rs6000_frameless_function_invocation): Ditto.
6388 (rs6000_frame_saved_pc): Ditto.
6389 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6390 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6391 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6392 (i386_frame_init_saved_regs): Ditto.
6393 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6394 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6395 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6396 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6397 * blockframe.c (frameless_look_for_prologue): Ditto.
6399 2003-04-05 Andrew Cagney <cagney@redhat.com>
6401 * frame.c (legacy_get_prev_frame): Link prev to next at the
6402 function start. Update comments.
6404 2003-04-05 Andrew Cagney <cagney@redhat.com>
6406 * frame.c (get_frame_id): Update comment.
6407 (legacy_get_prev_frame): Update comment.
6408 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6409 * gdbarch.h: Regenerate.
6410 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6411 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6413 2003-04-05 Andrew Cagney <cagney@redhat.com>
6415 * stack.c (print_frame_info): Use get_frame_pc.
6417 2003-04-04 Andrew Cagney <cagney@redhat.com>
6419 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6420 the frame's type from the unwinder.
6421 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6422 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6423 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6424 (get_frame_base_address): Use get_frame_type.
6425 (get_frame_locals_address, get_frame_args_address): Ditto.
6426 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6427 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6428 (struct frame_info): Add comment explaining why the frame contains
6430 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6431 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6432 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6434 * frame-unwind.h: Include "frame.h".
6435 (struct frame_unwind): Add "type" field.
6436 * Makefile.in (frame_unwind_h): Add $(frame_h).
6438 2003-04-04 Andrew Cagney <cagney@redhat.com>
6440 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6441 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6442 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6444 (d10v_unwind_dummy_id): Use frame_id_build.
6445 * frame.c (find_frame_sal): Use get_frame_pc.
6446 (create_new_frame): Use deprecated_update_frame_pc_hack and
6447 deprecated_update_frame_base_hack.
6448 (create_sentinel_frame): Add comment about ->pc going away.
6449 (get_prev_frame): Add comment about ->pc going away.
6450 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6451 frame_id_build, deprecated_update_frame_pc_hack and
6452 deprecated_update_frame_base_hack.
6453 (select_frame): Use get_frame_pc.
6454 (legacy_saved_regs_this_id): Use frame_id_build.
6456 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6458 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6459 signed integer case.
6460 (classify_argument): Handle enumerations and references.
6462 2003-04-04 Andrew Cagney <cagney@redhat.com>
6464 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6467 2003-04-01 Adam Fedor <fedor@gnu.org>
6469 * gdb/objc-lang.c (selectors_info): Replace calls to
6470 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6471 SYMBOL_NATURAL_NAME.
6472 (classes_info, find_methods): Likewise.
6474 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6476 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6477 ``mach'' to the value determined by bfd_default_set_arch_mach().
6479 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6481 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6482 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6483 (mi-cmd-file.o): Update dependencies.
6485 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6487 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6488 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6490 2003-04-01 Adam Fedor <fedor@gnu.org>
6492 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6493 * language.h (struct language_defn): Add la_demangle.
6494 (language_demangle): Declare.
6495 * language.c (language_demangle): New function.
6496 (unk_lang_demangle): Likewise.
6497 (unknown_language_defn, auto_language_defn, local_language_defn):
6498 Add ukn_lang_demangle.
6499 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6500 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6501 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6502 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6503 * jv-lang.c (java_demangle): New function
6504 (java_language_defn): Use it for la_demangle element.
6505 * objc-lang.c (objc_demangle): Add options argument
6506 (objc_language_defn): Use objc_demangle for la_demangle element.
6507 * maint.c (maintenance_demangle): Replace switch with
6508 call to language_demangle.
6509 * utils.c (fprintf_symbol_filtered): Likewise.
6511 2003-04-01 Andrew Cagney <cagney@redhat.com>
6513 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6514 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6515 PRINT_TYPELESS_INTEGER.
6516 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6517 PUSH_RETURN_ADDRESS.
6519 2003-04-01 Andrew Cagney <cagney@redhat.com>
6521 * Makefile.in (d10v-tdep.o): Update dependencies.
6522 * d10v-tdep.c: Include "frame-base.h".
6523 (d10v_frame_unwind): Make constant.
6524 (d10v_frame_base_address): New function.
6525 (d10v_frame_base): New variable.
6526 (d10v_gdbarch_init): Set frame_base default.
6527 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6529 (d10v_frame_unwind_cache): Set and use "prev_sp".
6530 (d10v_frame_this_id): Use the previous frame's inner most stack
6531 address and this frame's func address for the frame ID. Use
6532 frame_id_build. Don't analyze beyond the current instruction.
6534 2003-04-01 Andrew Cagney <cagney@redhat.com>
6536 * frame.h (get_frame_locals_address, get_frame_args_address):
6537 Refer to the base address, instead of the address of the first
6540 2003-04-01 Andrew Cagney <cagney@redhat.com>
6542 Add frame debug info addresses:
6543 * frame-base.c: New file.
6544 * frame-base.h: New file.
6545 * frame.h (struct frame_base): Add opaque declaration.
6546 (get_frame_base): Update comment.
6547 (get_frame_base_address): Declare.
6548 (get_frame_locals_address): Declare.
6549 (get_frame_args_address): Declare.
6550 (struct frame_info): Add "base" and "base_cache". Update
6551 comments on the unwinder.
6552 * frame.c: Include "frame-base.h".
6553 (get_frame_locals_address): New function.
6554 (get_frame_base_address): New function.
6555 (get_frame_args_address): New function.
6556 * findvar.c (read_var_value): Use get_frame_locals_address and
6557 get_frame_args_address.
6558 * stack.c (frame_info): Use get_frame_locals_address and
6559 get_frame_args_address.
6560 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6561 moved to "frame-base.c".
6562 * printcmd.c (print_frame_nameless_args): Ditto.
6563 * symtab.h (address_class): Update comments.
6564 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6565 get_frame_base_address.
6566 * dwarf2expr.c (execute_stack_op): Ditto.
6567 * Makefile.in (frame_base_h): Define.
6568 (frame.o): Update dependencies.
6569 (frame-base.o): Add dependencies.
6570 (SFILES): Add frame-base.c.
6571 (COMMON_OBS): Add frame-base.o.
6573 2003-04-01 Andrew Cagney <cagney@redhat.com>
6575 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6576 CALL_DUMMY_LENGTH): Ditto.
6577 * gdbarch.c: Re-generate.
6578 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6579 (CALL_DUMMY_LENGTH): Delete macro.
6580 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6581 * arm-tdep.c (arm_gdbarch_init): Ditto.
6582 * avr-tdep.c (avr_gdbarch_init): Ditto.
6583 * cris-tdep.c (cris_gdbarch_init): Ditto.
6584 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6585 * frv-tdep.c (frv_gdbarch_init): Ditto.
6586 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6587 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6588 * i386-tdep.c (i386_gdbarch_init): Ditto.
6589 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6590 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6591 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6592 * mips-tdep.c (mips_gdbarch_init): Ditto.
6593 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6594 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6595 * s390-tdep.c (s390_gdbarch_init): Ditto.
6596 * sh-tdep.c (sh_gdbarch_init): Ditto.
6597 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6598 * v850-tdep.c (v850_gdbarch_init): Ditto.
6599 * vax-tdep.c (vax_gdbarch_init): Ditto.
6600 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6602 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6604 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6606 2003-04-01 Andrew Cagney <cagney@redhat.com>
6608 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6609 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6610 * gdbarch.h, gdbarch.c: Re-generate.
6611 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6612 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6613 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6614 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6615 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6616 * infcmd.c (run_stack_dummy): Simplify assuming
6617 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6618 * infrun.c (handle_inferior_event): Ditto.
6619 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6620 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6621 * arm-tdep.c (arm_gdbarch_init): Ditto.
6622 * avr-tdep.c (avr_gdbarch_init): Ditto.
6623 * cris-tdep.c (cris_gdbarch_init): Ditto.
6624 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6625 * frv-tdep.c (frv_gdbarch_init): Ditto.
6626 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6627 * i386-tdep.c (i386_gdbarch_init): Ditto.
6628 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6629 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6630 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6631 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6632 * mips-tdep.c (mips_gdbarch_init): Ditto.
6633 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6634 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6635 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6636 * s390-tdep.c (s390_gdbarch_init): Ditto.
6637 * sh-tdep.c (sh_gdbarch_init): Ditto.
6638 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6639 * v850-tdep.c (v850_gdbarch_init): Ditto.
6640 * vax-tdep.c (vax_gdbarch_init): Ditto.
6641 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6643 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
6645 * symfile.c (symfile_relocate_debug_section): Update call to
6646 bfd_simple_get_relocated_section_contents.
6648 2003-03-31 Andrew Cagney <cagney@redhat.com>
6650 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6651 * gdbarch.h, gdbarch.c: Regenerate.
6652 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6653 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6655 * frame.h (generic_fix_call_dummy): Delete declaration.
6656 * dummy-frame.h: Update comment.
6657 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6658 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6660 * sh-tdep.c (sh_gdbarch_init): Ditto.
6661 * s390-tdep.c (s390_gdbarch_init): Ditto.
6662 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6663 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6664 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6665 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6666 * i386-tdep.c (i386_gdbarch_init): Ditto.
6667 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6668 * frv-tdep.c (frv_gdbarch_init): Ditto.
6669 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6670 * cris-tdep.c (cris_gdbarch_init): Ditto.
6671 * avr-tdep.c (avr_gdbarch_init): Ditto.
6672 * arm-tdep.c (arm_gdbarch_init): Ditto.
6674 2003-03-31 J. Brobecker <brobecker@gnat.com>
6676 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6677 (INIT_FRAME_AP): Likewise.
6678 (EXTRA_FRAME_INFO): Likewise.
6680 2003-03-31 Andrew Cagney <cagney@redhat.com>
6682 * gdbarch.sh: Include "symfile.h".
6683 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6684 * gdbarch.h, gdbarch.c: Re-generate.
6685 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6686 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6687 call_dummy_address, the default is at entry_point_address.
6688 * v850-tdep.c (v850_gdbarch_init): Ditto.
6689 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6690 * sh-tdep.c (sh_gdbarch_init): Ditto.
6691 * s390-tdep.c (s390_gdbarch_init): Ditto.
6692 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6693 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6694 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6695 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6696 * i386-tdep.c (i386_gdbarch_init): Ditto.
6697 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6698 * frv-tdep.c (frv_gdbarch_init): Ditto.
6699 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6700 * cris-tdep.c (cris_gdbarch_init): Ditto.
6701 * arm-tdep.c (arm_gdbarch_init): Ditto.
6703 2003-03-31 Andrew Cagney <cagney@redhat.com>
6705 * gdbarch.sh (CALL_DUMMY_P): Delete.
6706 * gdbarch.h, gdbarch.c: Re-generate.
6707 * inferior.h (CALL_DUMMY_P): Delete macro.
6708 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6709 * vax-tdep.c (vax_gdbarch_init): Update.
6710 * v850-tdep.c (v850_gdbarch_init): Update.
6711 * sparc-tdep.c (sparc_gdbarch_init): Update.
6712 * sh-tdep.c (sh_gdbarch_init): Update.
6713 * s390-tdep.c (s390_gdbarch_init): Update.
6714 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6715 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6716 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6717 * mips-tdep.c (mips_gdbarch_init): Update.
6718 * mcore-tdep.c (mcore_gdbarch_init): Update.
6719 * m68k-tdep.c (m68k_gdbarch_init): Update.
6720 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6721 * ia64-tdep.c (ia64_gdbarch_init): Update.
6722 * i386-tdep.c (i386_gdbarch_init): Update.
6723 * h8300-tdep.c (h8300_gdbarch_init): Update.
6724 * frv-tdep.c (frv_gdbarch_init): Update.
6725 * d10v-tdep.c (d10v_gdbarch_init): Update.
6726 * cris-tdep.c (cris_gdbarch_init): Update.
6727 * breakpoint.c (deprecated_frame_in_dummy): Update.
6728 * avr-tdep.c (avr_gdbarch_init): Update.
6729 * alpha-tdep.c (alpha_gdbarch_init): Update.
6730 * arm-tdep.c (arm_gdbarch_init): Update.
6731 * dummy-frame.c (dummy_frame_this_id): Update comments.
6732 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6733 * frame.c (legacy_get_prev_frame): Ditto.
6734 * valops.c (call_function_by_hand): Delete function.
6735 (hand_function_call): Rename to call_function_by_hand
6737 2003-03-30 Andrew Cagney <cagney@redhat.com>
6739 2002-11-10 Klee Dienes <kdienes@apple.com>
6740 * value.h (struct value): Update comment.
6742 2003-03-30 Andrew Cagney <cagney@redhat.com>
6744 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6746 (d10v_gdbarch_init): Do not set fp_regnum.
6748 * frame.c (get_frame_base): Force ID initialization.
6749 (get_prev_frame): Move computation of the frame ID from here ...
6750 (get_frame_id): ... to here.
6751 (legacy_get_prev_frame): Mark the frame ID as valid.
6752 * frame.h (struct frame_info): Add field "id_p".
6754 2003-03-30 Mark Kettenis <kettenis@gnu.org>
6756 * i386-tdep.c (i386_store_struct_return): Removed.
6757 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6759 2003-03-30 Andrew Cagney <cagney@redhat.com>
6761 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6762 * gdbarch.h, gdbarch.c: Regenerate.
6763 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6764 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6765 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6766 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6767 * i386-tdep.c (i386_gdbarch_init): Ditto.
6768 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6769 * cris-tdep.c (cris_gdbarch_init): Ditto.
6770 * vax-tdep.c (vax_gdbarch_init): Ditto.
6771 * s390-tdep.c (s390_gdbarch_init): Ditto.
6772 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6773 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6774 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6775 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6776 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6777 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6778 * sparc-tdep.c (sparc_gdbarch_init): Update.
6779 * sh-tdep.c (sh_gdbarch_init): Update.
6780 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6781 * mips-tdep.c (mips_gdbarch_init): Update.
6782 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6783 * ia64-tdep.c (ia64_gdbarch_init): Update.
6784 * frv-tdep.c (frv_gdbarch_init): Update.
6785 * avr-tdep.c (avr_gdbarch_init): Update.
6786 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6787 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
6788 instead of when push_dummy_call is not available.
6790 2003-03-30 Andrew Cagney <cagney@redhat.com>
6792 * infttrace.c: Include "gdbthread.h".
6793 (parent_attach_all): Fix function signature.
6794 (call_ptrace): Update call.
6795 * Makefile.in (infttrace.o): Update dependencies.
6797 2003-03-30 Andrew Cagney <cagney@redhat.com>
6799 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6800 PUSH_RETURN_ADDRESS.
6801 * gdbarch.h, gdbarch.c: Regenerate.
6802 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6803 * x86-64-tdep.c (x86_64_init_abi): Update.
6804 * v850-tdep.c (v850_gdbarch_init): Update.
6805 * sparc-tdep.c (sparc_gdbarch_init): Update.
6806 * sh-tdep.c (sh_gdbarch_init): Update.
6807 * s390-tdep.c (s390_gdbarch_init): Update.
6808 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6809 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6810 * mips-tdep.c (mips_gdbarch_init): Update.
6811 * mcore-tdep.c (mcore_gdbarch_init): Update.
6812 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6813 * ia64-tdep.c (ia64_gdbarch_init): Update.
6814 * i386-tdep.c (i386_gdbarch_init): Update.
6815 * h8300-tdep.c (h8300_gdbarch_init): Update.
6816 * frv-tdep.c (frv_gdbarch_init): Update.
6817 * cris-tdep.c (cris_gdbarch_init): Update.
6818 * avr-tdep.c (avr_gdbarch_init): Update.
6819 * arm-tdep.c (arm_gdbarch_init): Update.
6820 * valops.c (hand_function_call): Update.
6822 2003-03-29 Andrew Cagney <cagney@redhat.com>
6824 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6825 sizeof_call_dummy_words.
6826 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6828 * gdbarch.h: Regenerate.
6830 2003-03-29 Andrew Cagney <cagney@redhat.com>
6832 * infttrace.h: New file.
6833 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6834 (hpread_get_textlow): Detect an uninitialized dn_bufp.
6835 (hpread_read_doc_function_type): Detect an initialized type1.
6836 (hpread_quick_traverse): Initialize mod_name_string.
6837 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6838 (som_solib_get_solib_by_pc): Declare.
6839 (so_lib_thread_start_addr): Declare.
6840 (no_shared_libraries): Declare.
6841 * somread.c (init_import_symbols): Make static. Add forward
6843 * config/pa/nm-hppah.h: Include "infttrace.h" for
6845 (hppa_insert_hw_watchpoint): Declare.
6846 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6847 * hppah-nat.c: Include "gdb_string.h".
6848 (parent_attach_all): Delete extern declaration, moved to
6850 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
6852 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
6853 * Makefile.in (infttrace_h): Define.
6854 (hpread.o): Update dependencies.
6855 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
6856 * hppa-hpux-tdep.c: Include "gdb_string.h".
6857 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
6858 * infrun.c (handle_inferior_event): Always initialize
6859 stepped_after_stopped_by_watchpoint. Add default and remove
6860 fallthrough in switch statement.
6861 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
6863 (hppa_remove_hw_watchpoint): Ditto.
6865 2003-03-29 Andrew Cagney <cagney@redhat.com>
6867 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
6870 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
6872 * arm-tdep.c (arm_push_arguments): Delete.
6873 (struct stack_item): New type.
6874 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
6875 (arm_store_struct_return): Delte.
6876 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
6877 arm_push_arguments or arm_store_struct_return.
6879 2003-03-28 Andrew Cagney <cagney@redhat.com>
6881 * Makefile.in (d10v-tdep.o): Update dependencies.
6882 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
6883 * d10v-tdep.c: Include "remote.h".
6884 (target_resume_hook): Delete extern declaration.
6885 (target_wait_loop_hook): Ditto.
6886 (tdisassemble_command): Eliminate assignment in "if" conditional.
6887 (d10v_ts2_register_sim_regno): Eliminate call to
6888 legacy_register_sim_regno.
6889 (d10v_ts3_register_sim_regno): Ditto.
6891 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
6893 * thread.c: Reindented.
6895 * linux-proc.c: Ditto.
6897 2003-03-28 Bob Rossi <bob_rossi@cox.net>
6899 * MAINTAINERS (write after approval): Add myself.
6901 2003-03-27 Theodore A. Roth <troth@openavr.org>
6903 * objc-exp.y: Add missing semi-colons.
6905 2003-03-27 Andrew Cagney <cagney@redhat.com>
6907 * regcache.c (write_sp): Delete function and references.
6908 * inferior.h (write_sp): Delete declaration.
6909 * valops.c (hand_function_call): Replace write_sp with
6911 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
6912 (sparc_pop_frame): Ditto.
6914 2003-03-27 Andrew Cagney <cagney@redhat.com>
6916 * NEWS: Mention removal of support for hppa*-*-bsd* and
6917 hppa*-*-osf* natives, and hppa*-*-pro* target.
6918 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
6919 * config/pa/xm-pa.h: Obsolete file.
6920 * config/pa/xm-hppab.h: Obsolete file.
6921 * config/pa/nm-hppab.h: Obsolete file.
6922 * config/pa/tm-hppab.h: Obsolete file.
6923 * config/pa/tm-hppao.h: Obsolete file.
6924 * config/pa/nm-hppao.h: Obsolete file.
6925 * config/pa/tm-pro.h: Obsolete file.
6926 * config/pa/hppaosf.mt: Obsolete file.
6927 * config/pa/hppaosf.mh: Obsolete file.
6928 * config/pa/hppapro.mt: Obsolete file.
6929 * config/pa/hppabsd.mt: Obsolete file.
6930 * config/pa/hppabsd.mh: Obsolete file.
6931 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
6932 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
6935 2003-03-27 Andrew Cagney <cagney@redhat.com>
6937 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
6938 push_arguments. Don't set push_return_address or write_sp.
6939 (d10v_push_dummy_call): Replace d10v_push_arguments.
6940 (d10v_push_return_address, d10v_write_sp): Delete function,
6941 handled by push_dummy_call.
6943 2003-03-26 Andrew Cagney <cagney@redhat.com>
6945 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
6946 (push_dummy_call): New pure multi-arch replacement with gdbarch,
6947 regcache and dummy_addr parameters.
6948 * gdbarch.h, gdbarch.c: Re-generate.
6949 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
6950 available; assume it will handle stack alignment and return
6951 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
6952 legacy_push_arguments.
6953 (legacy_push_arguments): Rename default_push_arguments.
6954 * value.h (legacy_push_arguments): Rename default_push_arguments.
6955 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
6956 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6957 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6958 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6959 * config/i386/tm-symmetry.h: Update.
6960 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6961 * x86-64-tdep.c (x86_64_init_abi): Update.
6962 * v850-tdep.c (v850_gdbarch_init): Update.
6963 * sparc-tdep.c (sparc_gdbarch_init): Update.
6964 * sh-tdep.c (sh_gdbarch_init): Update.
6965 * s390-tdep.c (s390_gdbarch_init): Update.
6966 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6967 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6968 * mips-tdep.c (mips_gdbarch_init): Update.
6969 * mcore-tdep.c (mcore_gdbarch_init): Update.
6970 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6971 * ia64-tdep.c (ia64_gdbarch_init): Update.
6972 * i386-tdep.c (i386_gdbarch_init): Update.
6973 * hppa-tdep.c (hppa_gdbarch_init): Update.
6974 * h8300-tdep.c (h8300_gdbarch_init): Update.
6975 * frv-tdep.c (frv_gdbarch_init): Update.
6976 * d10v-tdep.c (d10v_gdbarch_init): Update.
6977 * cris-tdep.c (cris_gdbarch_init): Update.
6978 * avr-tdep.c (avr_gdbarch_init): Update.
6979 * arm-tdep.c (arm_gdbarch_init): Update.
6980 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6981 * alpha-tdep.c (alpha_gdbarch_init): Update.
6983 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6985 * signals/signals.c (do_target_signal_to_host): Correct realtime
6988 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6990 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
6991 (struct sal_chain, map_catch_names): Remove.
6992 (catch_exception_command_1): Don't call
6993 handle_gnu_4_16_catch_command.
6995 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6997 From Mark Dettinger <dettinge@de.ibm.com>:
6998 * dwarf2cfi.c (read_2u): Increment pointer by two.
7000 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7002 * signals/signals.c: Fix typos in last change.
7004 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7006 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7007 not already defined. Use __SIGRTMIN if available.
7008 (target_signal_from_host): Remove SIGRTMIN block.
7009 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7010 the signal is within the realtime range.
7012 2003-03-25 Adam Fedor <fedor@gnu.org>
7014 * Makefile.in (infrun.o): Add $(language_h)
7015 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7016 for language specific trampolines.
7017 * language.h (struct language_defn): Add skip_trampoline.
7018 (skip_language_trampoline): Declare.
7019 * language.c (unk_lang_trampoline, skip_language_trampoline):
7021 (unknown_language_defn, auto_language_defn, local_language_defn):
7022 Add ukn_lang_trampoline.
7023 * ada-lang.c (ada_language_defn): Add NULL for language
7024 specific skip_trampoline.
7025 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7026 scm-lang.c: Likewise.
7027 * objc-lang.c (objc_skip_trampoline): New function.
7028 (objc_language_defn): Add objc_skip_trampoline.
7030 2003-03-25 Andrew Cagney <cagney@redhat.com>
7032 * frame.c (get_prev_frame): Delay validating a frame's ID -
7033 non-NULL, didn't go backwards - until an attempt to unwind it to
7036 2003-03-25 Andrew Cagney <cagney@redhat.com>
7038 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7039 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7040 * gdbarch.h, gdbarch.c: Re-generate.
7041 * config/sparc/tm-sparc.h
7042 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7043 * sparc-tdep.c (sparc_gdbarch_init): Set
7044 deprecated_extra_stack_alignment_needed.
7045 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7046 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7047 extra_stack_alignment_needed.
7048 * v850-tdep.c (v850_gdbarch_init): Ditto.
7049 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7050 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7051 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7052 * cris-tdep.c (cris_gdbarch_init): Ditto.
7053 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7054 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7056 2003-03-25 Andrew Cagney <cagney@redhat.com>
7058 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7059 STORE_STRUCT_RETURN.
7060 * gdbarch.h, gdbarch.c: Regenerate.
7061 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7062 (d10v_push_arguments): Set the struct return register.
7063 (d10v_gdbarch_init): Update.
7064 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7065 * x86-64-tdep.c (x86_64_init_abi): Update.
7066 * vax-tdep.c (vax_gdbarch_init): Update.
7067 * v850-tdep.c (v850_gdbarch_init): Update.
7068 * sparc-tdep.c (sparc_gdbarch_init): Update.
7069 * sh-tdep.c (sh_gdbarch_init): Update.
7070 * s390-tdep.c (s390_gdbarch_init): Update.
7071 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7072 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7073 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7074 * mips-tdep.c (mips_gdbarch_init): Update.
7075 * mcore-tdep.c (mcore_gdbarch_init): Update.
7076 * m68k-tdep.c (m68k_gdbarch_init): Update.
7077 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7078 * ia64-tdep.c (ia64_gdbarch_init): Update.
7079 * i386-tdep.c (i386_gdbarch_init): Update.
7080 * hppa-tdep.c (hppa_gdbarch_init): Update.
7081 * h8300-tdep.c (h8300_gdbarch_init): Update.
7082 * frv-tdep.c (frv_gdbarch_init): Update.
7083 * cris-tdep.c (cris_gdbarch_init): Update.
7084 * avr-tdep.c (avr_gdbarch_init): Update.
7085 * arm-tdep.c (arm_gdbarch_init): Update.
7086 * alpha-tdep.c (alpha_gdbarch_init): Update.
7088 2003-03-25 Andrew Cagney <cagney@redhat.com>
7090 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7091 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7092 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7093 * gdbarch.h, gdbarch.c: Regenerate.
7094 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7095 call_dummy_stack_adjust_p.
7096 * vax-tdep.c (vax_gdbarch_init): Ditto.
7097 * v850-tdep.c (v850_gdbarch_init): Ditto.
7098 * sh-tdep.c (sh_gdbarch_init): Ditto.
7099 * s390-tdep.c (s390_gdbarch_init): Ditto.
7100 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7101 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7102 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7103 * mips-tdep.c (mips_gdbarch_init): Ditto.
7104 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7105 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7106 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7107 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7108 * i386-tdep.c (i386_gdbarch_init): Ditto.
7109 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7110 * frv-tdep.c (frv_gdbarch_init): Ditto.
7111 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7112 * cris-tdep.c (cris_gdbarch_init): Ditto.
7113 * avr-tdep.c (avr_gdbarch_init): Ditto.
7114 * arm-tdep.c (arm_gdbarch_init): Ditto.
7115 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7116 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7117 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7118 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7119 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7120 call_dummy_stack_adjust_p.
7121 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7122 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7123 * sparc-tdep.c (sparc32_push_arguments): Update.
7124 * valops.c (hand_function_call): Update.
7126 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7128 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7129 set_gdbarch_char_signed.
7131 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7134 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7136 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7138 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7139 (_initialize_arm_tdep): Don't set tm_print_insn.
7141 2003-03-24 Adam Fedor <fedor@gnu.org>
7143 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7144 * objc-lang.h: Add multiple inclusion protection.
7145 (start_msglist, add_msglist, end_msglist): Additional declarations.
7147 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7149 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7150 value was renamed to ARM_FLOAT_SOFT_FPA.
7152 2003-03-23 Andrew Cagney <cagney@redhat.com>
7154 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7155 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7156 * gdbarch.h, gdbarch.c: Regenerate.
7157 * valops.c (hand_function_call): Update.
7158 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7159 * frame.c (legacy_saved_regs_this_id): Update.
7160 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7161 * dummy-frame.h: Update.
7162 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7163 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7164 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7165 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7166 * config/m68k/tm-sun3.h: Update.
7167 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7168 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7169 * x86-64-tdep.c (x86_64_init_abi): Update.
7170 * vax-tdep.c (vax_gdbarch_init): Update.
7171 * v850-tdep.c (v850_gdbarch_init): Update.
7172 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7173 * sh-tdep.c (sh_gdbarch_init): Update.
7174 * s390-tdep.c (s390_gdbarch_init): Update.
7175 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7176 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7177 (frame_get_saved_regs): Update.
7178 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7179 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7180 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7181 * mips-tdep.c (mips_gdbarch_init): Update.
7182 * mcore-tdep.c (mcore_gdbarch_init): Update.
7183 * m68k-tdep.c (m68k_gdbarch_init): Update.
7184 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7185 * ia64-tdep.c (ia64_gdbarch_init): Update.
7186 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7187 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7188 (i386_interix_back_one_frame): Update.
7189 * hppa-tdep.c (hppa_gdbarch_init): Update.
7190 (hppa_init_extra_frame_info): Update.
7191 * h8300-tdep.c (h8300_gdbarch_init): Update.
7192 * frv-tdep.c (frv_gdbarch_init): Update.
7193 * cris-tdep.c (cris_gdbarch_init): Update.
7194 * avr-tdep.c (avr_gdbarch_init): Update.
7195 * arm-tdep.c (arm_gdbarch_init): Update.
7196 * alpha-tdep.c (alpha_gdbarch_init): Update.
7198 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7200 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7201 (arm_get_fp_model): Declare.
7202 * arm-tdep.c (fp_model_strings): New string array.
7203 (arm_fp_model, current_fp_model): New variables.
7204 (arm_get_fp_model): New function.
7205 (arm_set_fp): New function.
7206 (set_fp_model_sfunc): New function.
7207 (show_fp_model): New function.
7208 (_initialize_arm_tdep): Add new command to set/show the FPU.
7209 (arm_extract_return_value): Use arm_get_fp_model.
7210 (arm_store_return_value): Likewise.
7211 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7212 to initialize the floating-point data types.
7213 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7216 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7218 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7219 the current setting of each value.
7220 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7221 new_set and new_show. Use add_setshow_cmd_full and
7222 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7223 commands and add new version as subcommands of "set/show arm".
7225 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7227 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7228 (set_arm_command, show_arm_command): New functions.
7229 (_initialize_arm_tdep): Add them.
7230 (num_disassembly_options): Renamed from num_flavor_options.
7231 (valid_disassembly_styles): Renamed from valid_flavors.
7232 (disassembly_style): Renamed from disassembly_flavor.
7233 (set_disassembly_style_sfunc): Renamed from
7234 set_disassembly_flavor_sfunc.
7235 (set_disassembly_style): Renamed from set_disassembly_flavor.
7236 (arm_othernames): Updated.
7237 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7238 command. Add "set/show arm disassembly" commands. Deprecate
7239 "othernames" command.
7241 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7243 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7244 (arm-tdep.o): Depend on elf_arm_h.
7246 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7248 * Makefile.in (coff_internal_h): Define.
7249 (arm-tdep.o): Update dependencies.
7251 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7253 * arm-tdep.c (prologue_cache): Delete.
7254 (check_prologue_cache, save_prologue_cache): Delete.
7255 (arm_scan_prologue): Don't check or update the prologue_cache.
7256 (arm_gdb_arch_init): Don't initialize it.
7257 (_initialize_arm_tdep): Likewise.
7259 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7261 * MAINTAINERS (tui): Maintainer of tui code.
7263 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7265 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7266 (i386-cygwin-tdep.o): Add dependencies.
7267 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7268 * i386-cygwin-tdep.c: New file.
7269 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7270 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7272 2003-03-20 Andrew Cagney <cagney@redhat.com>
7274 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7275 (handle_inferior_event): Remove code calling
7276 DYNAMIC_TRAMPOLINE_NEXTPC.
7278 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7279 already has a full path.
7281 * main.c (gdb_main): Return 1.
7282 (captured_main): Call error to report an invalid interpreter.
7284 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7285 * alpha-osf1-tdep.c: Include "gdb_string.h".
7287 2003-03-19 J. Brobecker <brobecker@gnat.com>
7289 Continuing work to convert the hppa targets to multiarch partial.
7291 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7292 method, now that hppa_push_dummy_frame has a conformant prototype.
7293 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7294 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7295 for the switch to multiarch partial.
7297 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7299 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7300 when iss is issNull.
7302 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7304 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7305 NUM_REGS bounds check.
7307 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7309 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7310 * mips-tdep.c (gdb_assert.h): Include.
7311 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7312 (mips_register_name): Handle integer registers explicitly. Add
7314 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7315 (mips_lsi33k_reg_names): Don't list integer registers; they're
7316 handled by mips_register_name() now.
7317 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7318 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7319 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7320 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7321 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7323 2003-03-18 Andrew Cagney <cagney@redhat.com>
7325 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7327 * gdbtypes.h (print_scalar_formatted): Update declaration.
7328 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7330 2003-03-18 J. Brobecker <brobecker@gnat.com>
7332 * infrun.c (observer.h): Add #include.
7333 (normal_stop): Add call to observer_notify_normal_stop.
7334 * Makefile.in (infrun.o): Add dependency on observer.h.
7336 2003-03-18 J. Brobecker <brobecker@gnat.com>
7338 Continuing work to convert the hppa targets to multiarch partial.
7339 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7340 parameter. Reformat comment.
7341 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7342 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7343 to match new profile.
7345 2003-03-18 J. Brobecker <brobecker@gnat.com>
7347 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7348 appear to be working in any case.
7350 2003-03-18 J. Brobecker <brobecker@gnat.com>
7352 * observer.c (observer_test_first_observer): New static variable.
7353 (observer_test_second_observer): Likewise.
7354 (observer_test_third_observer): Likewise.
7355 (observer_test_first_notification_function): New static function.
7356 (observer_test_second_notification_function): Likewise.
7357 (observer_test_third_notification_function): Likewise.
7359 2003-03-17 J. Brobecker <brobecker@gnat.com>
7361 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7362 * somsolib.c (gdb_assert.h): Likewise.
7363 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7364 (somsolib.o): Likewise.
7366 2003-03-17 Andrew Cagney <cagney@redhat.com>
7368 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7369 BFD. Simplify setting of di.endian.
7371 2003-03-17 Andrew Cagney <cagney@redhat.com>
7373 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7374 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7376 From Elena Zannoni <ezannoni@redhat.com>
7377 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7378 vector and floating-point parameters.
7379 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7381 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7383 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7385 * MAINTAINERS: Remove my name from several maintainership roles.
7387 2003-03-17 Andrew Cagney <cagney@redhat.com>
7389 Fix frame off-by-one bug.
7390 * frame-unwind.h (frame_this_id_ftype): Replace
7391 frame_unwind_id_ftype.
7392 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7393 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7394 with "prev_register".
7395 * frame-unwind.c (frame_unwind_find_by_pc): Return
7396 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7398 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7399 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7400 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7401 (dummy_frame_unwind): Update.
7402 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7403 sentinel_frame_register_unwind.
7404 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7405 (sentinel_frame_unwinder): Update.
7406 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7407 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7408 * frame.c (create_sentinel_frame): Update. Initialize
7409 "prologue_cache" instead of "unwind_cache".
7410 (frame_register_unwind): Call this frame's prev_register with the
7411 next frame and this frame's prologue cache.
7412 (get_prev_frame): Simplify. Always call prev frame's this_id with
7413 this frame and prev frame's prologue cache. Document that this
7414 call is shifted one to the left when compared to the
7415 frame_register_unwind call.
7416 (legacy_saved_regs_prev_register): Replace
7417 frame_saved_regs_register_unwind.
7418 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7419 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7420 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7421 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7422 (d10v_frame_unwind): Update.
7423 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7424 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7425 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7426 "saved_regs" with "this_saved_regs".
7428 2003-03-16 Andrew Cagney <cagney@redhat.com>
7430 * frame.c (frame_pop): Don't call target_store_registers. Fix
7431 problem reported by Mark Kettenis.
7433 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7435 * i386-tdep.c (i386_register_type): Renamed from
7436 i386_register_virtual_type. Adjust function signature.
7437 (i386_gdbarch_init): Set register_type instead of
7438 deprecated_max_register_raw_size,
7439 deprecated_max_register_virtual_size and register_virtual_type.
7441 2003-03-14 Andrew Cagney <cagney@redhat.com>
7443 * frame.c (get_prev_frame): When a legacy frame, always call
7444 legacy_get_prev_frame. Simplify unwind code using assumption that
7445 the unwinder is new.
7446 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7447 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7448 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7450 2003-03-14 Andrew Cagney <cagney@redhat.com>
7452 * frame.c (get_saved_register): Delete function.
7453 * frame.h (get_saved_register): Delete declaration.
7454 * xstormy16-tdep.c: Update comment.
7455 * regcache.h: Update comments.
7456 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7457 get_saved_register and extract_address, use
7458 frame_read_unsigned_register.
7459 (sparc_frame_saved_pc): Ditto.
7460 (sparc_get_saved_register): Instead of get_saved_register, use
7462 (sparc_pop_frame): Ditto.
7463 * findvar.c: Update comments.
7464 (value_of_register): Call frame_register instead of
7466 (value_from_register): Ditto.
7467 * config/sparc/tm-sparc.h: Update comment.
7468 * breakpoint.c: Update comment.
7470 2003-03-14 Andrew Cagney <cagney@redhat.com>
7472 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7474 * gdbarch.h, gdbarch.c: Re-generate.
7475 * frame.h: Update comments.
7476 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7477 * x86-64-tdep.c (x86_64_init_abi): Update.
7478 * sparc-tdep.c (sparc_gdbarch_init): Update.
7479 * sh-tdep.c (sh_gdbarch_init): Update.
7480 * mips-tdep.c (mips_gdbarch_init): Update.
7481 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7482 * cris-tdep.c (cris_gdbarch_init): Update.
7483 * ia64-tdep.c (ia64_gdbarch_init): Update.
7484 * frame.c (frame_register): Update.
7485 (get_saved_register): Update.
7486 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7488 2003-03-13 Andrew Cagney <cagney@redhat.com>
7490 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7491 * gdbarch.h, gdbarch.c: Regenerate.
7492 * valops.c (hand_function_call): Update comment.
7493 * stack.c (return_command): Update comment.
7494 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7495 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7496 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7497 * x86-64-tdep.c (x86_64_init_abi): Update.
7498 * vax-tdep.c (vax_gdbarch_init): Update.
7499 * v850-tdep.c (v850_gdbarch_init): Update.
7500 * sparc-tdep.c (sparc_gdbarch_init): Update.
7501 * sh-tdep.c (sh_gdbarch_init): Update.
7502 * s390-tdep.c (s390_gdbarch_init): Update.
7503 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7504 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7505 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7506 * mips-tdep.c (mips_gdbarch_init): Update.
7507 * mcore-tdep.c (mcore_gdbarch_init): Update.
7508 * m68k-tdep.c (m68k_gdbarch_init): Update.
7509 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7510 * ia64-tdep.c (ia64_gdbarch_init): Update.
7511 * i386-tdep.c (i386_gdbarch_init): Update.
7512 * hppa-tdep.c (hppa_gdbarch_init): Update.
7513 * h8300-tdep.c (h8300_gdbarch_init): Update.
7514 * frv-tdep.c (frv_gdbarch_init): Update.
7515 * cris-tdep.c (cris_gdbarch_init): Update.
7516 * avr-tdep.c (avr_gdbarch_init): Update.
7517 * arm-tdep.c (arm_gdbarch_init): Update.
7518 * alpha-tdep.c (alpha_gdbarch_init): Update.
7520 2003-03-13 Andrew Cagney <cagney@redhat.com>
7522 * frame.c (legacy_frame_p): New function.
7523 (get_prev_frame): Use legacy_frame_p.
7524 * frame.h (legacy_frame_p): Declare.
7526 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7528 * MAINTAINERS (write after approval): Alphabetically
7531 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7533 * MAINTAINERS (write after approval): Add myself.
7535 2003-03-12 Andrew Cagney <cagney@redhat.com>
7537 * frame.c (get_prev_frame): Rename the frame parameter to
7539 (get_next_frame, legacy_get_prev_frame): Ditto.
7541 2003-03-12 Andrew Cagney <cagney@redhat.com>
7543 * frame.c (get_current_frame): Check target_has_registers before
7544 checking target_has_stack.
7545 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7546 instead of deprecated_selected_frame.
7547 * findvar.c (value_of_register): Pass "frame", not
7548 deprecated_selected_frame, to value_of_builtin_reg.
7550 2003-03-12 Andrew Cagney <cagney@redhat.com>
7552 * regcache.c (regcache_cooked_write_signed): New function.
7553 (regcache_cooked_write_unsigned): New function.
7554 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7555 (regcache_cooked_read_signed): Fix regnum in range assertion.
7556 * regcache.h (regcache_cooked_write_signed): Declare.
7557 (regcache_cooked_write_unsigned): Declare.
7559 2003-03-12 Andrew Cagney <cagney@redhat.com>
7561 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7562 * gdbarch.h, gdbarch.c: Re-generate.
7563 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7564 * x86-64-tdep.h: Update.
7565 * x86-64-tdep.c (x86_64_init_abi): Update.
7566 * v850-tdep.c (v850_gdbarch_init): Update.
7567 * sparc-tdep.c (sparc_gdbarch_init): Update.
7568 * sh-tdep.c (sh_gdbarch_init): Update.
7569 * s390-tdep.c (s390_gdbarch_init): Update.
7570 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7571 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7572 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7573 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7574 * mips-tdep.c (mips_gdbarch_init): Update.
7575 * mcore-tdep.c (mcore_gdbarch_init): Update.
7576 * m68k-tdep.c (m68k_gdbarch_init): Update.
7577 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7578 * ia64-tdep.c (ia64_gdbarch_init): Update.
7579 * i386-tdep.c (i386_gdbarch_init): Update.
7580 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7581 * hppa-tdep.c (hppa_gdbarch_init): Update.
7582 * h8300-tdep.c (h8300_gdbarch_init): Update.
7583 * frv-tdep.c (frv_gdbarch_init): Update.
7584 * cris-tdep.c (cris_gdbarch_init): Update.
7585 * avr-tdep.c (avr_gdbarch_init): Update.
7586 * arm-tdep.c (arm_gdbarch_init): Update.
7587 * alpha-tdep.c (alpha_gdbarch_init): Update.
7588 * sh-tdep.c (sh_init_extra_frame_info): Update.
7589 (sh64_init_extra_frame_info): Update.
7590 * ns32knbsd-nat.c (frame_num_args): Update.
7591 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7592 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7593 (xstormy16_frame_chain_valid): Update.
7594 * vax-tdep.c (vax_saved_pc_after_call): Update.
7595 * v850-tdep.c (v850_frame_chain): Update.
7596 (v850_pop_frame): Update.
7597 (v850_init_extra_frame_info): Update.
7598 * sparc-tdep.c (setup_arbitrary_frame): Update.
7599 * ns32k-tdep.c (umax_frame_num_args): Update.
7600 * s390-tdep.c (s390_pop_frame_regular): Update.
7601 * mn10300-tdep.c (mn10300_frame_chain): Update.
7602 (mn10300_pop_frame_regular): Update.
7603 (mn10300_init_extra_frame_info): Update.
7604 * mips-tdep.c (mips_init_frame_pc_first): Update.
7605 (mips_frame_chain): Update.
7606 (mips_pop_frame): Update.
7607 * mcore-tdep.c (mcore_frame_chain): Update.
7608 (mcore_pop_frame): Update.
7609 (mcore_init_extra_frame_info): Update.
7610 * arch-utils.c (init_frame_pc_default): Update.
7611 * m68k-tdep.c (isi_frame_num_args): Update.
7612 (delta68_frame_num_args): Update.
7613 (news_frame_num_args): Update.
7614 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7615 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7616 (alpha_frame_chain): Update.
7617 (alpha_pop_frame): Update.
7618 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7619 (hppa_init_extra_frame_info): Update.
7620 (hppa_frame_chain): Update.
7621 (hppa_frame_chain_valid): Update.
7622 * cris-tdep.c (cris_init_extra_frame_info): Update.
7623 * avr-tdep.c (avr_init_extra_frame_info): Update.
7624 * arm-tdep.c (arm_frame_chain_valid): Update.
7625 (arm_init_extra_frame_info): Update.
7626 (arm_pop_frame): Update.
7627 * frame.c (frame_pc_unwind): Update.
7628 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7629 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7630 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7631 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7632 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7633 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7635 2003-03-12 Andrew Cagney <cagney@redhat.com>
7637 Eliminate the need for POP_FRAME.
7638 * frame.c (do_frame_unwind_register): New function.
7639 (frame_pop): When no POP_FRAME, pop the frame using register
7640 unwind and a scratch regcache.
7641 (frame_saved_regs_pop): Delete function.
7642 (trad_frame_unwinder): Update.
7643 * d10v-tdep.c (d10v_frame_pop): Delete function.
7644 (d10v_frame_unwind): Update.
7645 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7646 (sentinel_frame_unwinder): Update.
7647 * dummy-frame.c (dummy_frame_pop): Delete function.
7648 (dummy_frame_unwind): Update.
7649 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7650 (struct frame_unwind): Update.
7652 2003-03-11 Kevin Buettner <kevinb@redhat.com>
7654 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7655 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7656 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7657 Do range checks on register number obtained from debugging info.
7658 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7659 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7660 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7662 (do_fp_register_row): Fix typo which caused double type to be
7663 used when attempting to unpack a float.
7665 2003-03-11 J. Brobecker <brobecker@gnat.com>
7667 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7669 2003-03-11 Andrew Cagney <cagney@redhat.com>
7671 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7672 frame. Problem found by Corinna Vinschen.
7674 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7676 * doublest.c (floatformat_from_length): Accept also
7677 the real size of 'long double' type.
7679 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
7681 From Klee Dienes <kdienes@apple.com>:
7682 * breakpoint.c (bpstat_copy): Copy the command lines as well
7683 as the old value, to match what is freed in bpstat_clear.
7685 2003-03-10 David Carlton <carlton@math.stanford.edu>
7687 * minsyms.c (add_minsym_to_hash_table): Replace
7688 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7689 (compare_minimal_symbols, compact_minimal_symbols)
7690 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7691 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7692 of DEPRECATED_SYMBOL_MATCHES_NAME.
7693 (lookup_minimal_symbol_solib_trampoline): Ditto.
7695 2003-03-10 Andrew Cagney <cagney@redhat.com>
7697 * regcache.h (regcache_cooked_read_ftype): Define.
7698 (regcache_save, regcache_restore): Add a cooked_read parameter.
7699 * regcache.c (regcache_save, regcache_restore): Update.
7700 (do_cooked_read): New function.
7701 (regcache_cpy): Pass do_cooked_read to regcache_save and
7704 2003-03-10 Andrew Cagney <cagney@redhat.com>
7706 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7707 * gdbarch.h, gdbarch.c: Re-generate.
7708 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7709 * x86-64-tdep.h: Update.
7710 * x86-64-tdep.c (x86_64_init_abi): Update.
7711 * v850-tdep.c (v850_gdbarch_init): Update.
7712 * sparc-tdep.c (sparc_gdbarch_init): Update.
7713 * sh-tdep.c (sh_gdbarch_init): Update.
7714 * s390-tdep.c (s390_gdbarch_init): Update.
7715 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7716 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7717 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7718 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7719 * mips-tdep.c (mips_gdbarch_init): Update.
7720 * mcore-tdep.c (mcore_gdbarch_init): Update.
7721 * m68k-tdep.c (m68k_gdbarch_init): Update.
7722 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7723 * ia64-tdep.c (ia64_gdbarch_init): Update.
7724 * i386-tdep.c (i386_gdbarch_init): Update.
7725 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7726 * hppa-tdep.c (hppa_gdbarch_init): Update.
7727 * h8300-tdep.c (h8300_gdbarch_init): Update.
7728 * frv-tdep.c (frv_gdbarch_init): Update.
7729 * cris-tdep.c (cris_gdbarch_init): Update.
7730 * avr-tdep.c (avr_gdbarch_init): Update.
7731 * arm-tdep.c (arm_gdbarch_init): Update.
7732 * alpha-tdep.c (alpha_gdbarch_init): Update.
7733 * sh-tdep.c (sh_init_extra_frame_info): Update.
7734 (sh64_init_extra_frame_info): Update.
7735 * ns32knbsd-nat.c (frame_num_args): Update.
7736 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7737 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7738 (xstormy16_frame_chain_valid): Update.
7739 * vax-tdep.c (vax_saved_pc_after_call): Update.
7740 * v850-tdep.c (v850_frame_chain): Update.
7741 (v850_pop_frame): Update.
7742 (v850_init_extra_frame_info): Update.
7743 * sparc-tdep.c (setup_arbitrary_frame): Update.
7744 * ns32k-tdep.c (umax_frame_num_args): Update.
7745 * s390-tdep.c (s390_pop_frame_regular): Update.
7746 * mn10300-tdep.c (mn10300_frame_chain): Update.
7747 (mn10300_pop_frame_regular): Update.
7748 (mn10300_init_extra_frame_info): Update.
7749 * mips-tdep.c (mips_init_frame_pc_first): Update.
7750 (mips_frame_chain): Update.
7751 (mips_pop_frame): Update.
7752 * mcore-tdep.c (mcore_frame_chain): Update.
7753 (mcore_pop_frame): Update.
7754 (mcore_init_extra_frame_info): Update.
7755 * arch-utils.c (init_frame_pc_default): Update.
7756 * m68k-tdep.c (isi_frame_num_args): Update.
7757 (delta68_frame_num_args): Update.
7758 (news_frame_num_args): Update.
7759 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7760 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7761 (alpha_frame_chain): Update.
7762 (alpha_pop_frame): Update.
7763 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7764 (hppa_init_extra_frame_info): Update.
7765 (hppa_frame_chain): Update.
7766 (hppa_frame_chain_valid): Update.
7767 * cris-tdep.c (cris_init_extra_frame_info): Update.
7768 * avr-tdep.c (avr_init_extra_frame_info): Update.
7769 * arm-tdep.c (arm_frame_chain_valid): Update.
7770 (arm_init_extra_frame_info): Update.
7771 (arm_pop_frame): Update.
7772 * frame.c (frame_pc_unwind): Update.
7773 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7774 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7775 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7776 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7777 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7778 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7780 2003-03-10 Andrew Cagney <cagney@redhat.com>
7782 * gdbarch.sh (gdbarch_unwind_pc): New method.
7783 * gdbarch.h, gdbarch.c: Regenerate.
7784 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
7785 but use read_pc and FRAME_SAVED_PC as fall backs.
7786 (frame_saved_regs_pc_unwind): Delete function.
7787 (trad_frame_unwinder): Update.
7788 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7789 (struct frame_unwind): Update.
7790 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7791 (dummy_frame_unwind): Update.
7792 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7793 (sentinel_frame_unwinder): Update.
7794 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7795 (d10v_frame_unwind): Update.
7796 (d10v_unwind_pc): New function.
7797 (d10v_gdbarch_init): Set unwind_pc.
7799 2003-03-10 Andrew Cagney <cagney@redhat.com>
7801 * gdbarch.h: Re-generate.
7803 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7805 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7808 2003-03-08 Mark Kettenis <kettenis@gnu.org>
7810 * gdbarch.sh (save_dummy_frame_tos): Add comment.
7812 2003-03-08 Andrew Cagney <cagney@redhat.com>
7814 * cli-out.c: Update copyright.
7815 (cli_out_data): Define typedef. Use instead of ui_out_data.
7817 2003-03-08 Andrew Cagney <cagney@redhat.com>
7819 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7822 2003-03-07 Andrew Cagney <cagney@redhat.com>
7824 * gdbarch.sh: Don't generate two macro definitions when an
7825 undefined macro taking no arguments.
7826 * gdbarch.h: Regenerate.
7828 2002-03-07 Michal Ludvig <mludvig@suse.cz>
7830 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7831 (x86_64_unwind_dummy_id): New functions.
7832 (x86_64_init_abi): Register these two new functions.
7834 2003-03-07 Michal Ludvig <mludvig@suse.cz>
7836 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
7837 (x86_64_skip_prologue): Move prologue detection to
7839 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7841 2003-03-05 Andrew Cagney <cagney@redhat.com>
7843 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7844 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7845 * frame.c (get_prev_frame): Restructure the frame ID unwind code
7846 to use unwind_dummy_id when a dummy frame.
7847 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7849 * gdbarch.h, gdbarch.c: Regneerate.
7851 2003-03-05 Andrew Cagney <cagney@redhat.com>
7853 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
7854 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
7855 Do not use d10v_read_sp or d10v_read_fp when obtaining register
7858 2003-03-05 Andrew Cagney <cagney@redhat.com>
7860 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
7861 (struct d10v_unwind_cache): Delete field "frameless". Replace
7862 "next_addr" with "sp_offset". Add "r11_offset".
7863 (d10v_frame_unwind_cache): Update.
7864 (prologue_find_regs): Update. When "mv r11, sp", save the
7865 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
7866 RN was saved in r11_offset.
7868 2003-03-05 Andrew Cagney <cagney@redhat.com>
7870 * frame.c (deprecated_update_frame_pc_hack): Also update the the
7871 cached PC value in the next frame.
7873 2003-03-05 Andrew Cagney <cagney@redhat.com>
7875 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
7876 "id_unwind_cache" with "id".
7877 (frame_id_unwind): Delete declaration.
7878 * frame.c (frame_id_unwind): Delete function.
7879 (get_prev_frame): Call the frame id unwind method directly. Store
7880 the returned next frame's ID value in NEXT_FRAME. Note that there
7881 is a problem with the wrong unwind ID being called with the wrong
7884 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7886 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
7888 2003-03-05 James Ingham <jingham@apple.com>
7889 Daniel Jacobowitz <drow@mvista.com>
7891 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
7892 (auto_cp_abi): New variable.
7893 (current_cp_abi, num_cp_abis): Make static.
7894 (CP_ABI_MAX): Define.
7895 (cp_abis): Turn into an array.
7896 (value_virtual_fn_field): Fix formatting.
7897 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
7899 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
7900 (list_cp_abis, _initialize_cp_abi): New functions.
7901 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
7902 declarations for cp_abis, num_cp_abis, current_cp_abi, and
7903 switch_to_cp_abi. Update prototype for register_cp_abi.
7904 * Makefile.in (cp-abi.o): Update dependencies.
7905 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
7906 instead of switch_to_cp_abi.
7907 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
7909 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
7911 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
7913 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7915 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
7916 * dwarf2loc.c: Include "regcache.h".
7917 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
7919 * Makefile.in (dwarf2loc.o): Update dependencies.
7921 2003-03-04 Theodore A. Roth <troth@openavr.org>
7923 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
7924 number of io registers reported by remote target is not a multiple of
7927 2003-03-04 David Carlton <carlton@math.stanford.edu>
7929 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
7930 (lookup_symbol_aux_psymtabs): Update call to
7931 lookup_partial_symbol.
7932 (lookup_transparent_type, find_main_psymtab)
7933 (make_symbol_overload_list): Ditto.
7935 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
7937 * MAINTAINERS (Write after approval): Update my email address.
7939 2003-03-03 Andrew Cagney <cagney@redhat.com>
7941 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
7942 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
7943 predicate. Replace MAX_REGISTER_RAW_SIZE.
7944 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
7945 MAX_REGISTER_VIRTUAL_SIZE.
7946 * regcache.c (legacy_max_register_raw_size): New function.
7947 (legacy_max_register_virtual_size): New function.
7948 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
7949 (MAX_REGISTER_RAW_SIZE): Define.
7950 (legacy_max_register_raw_size): Declare.
7951 (legacy_max_register_virtual_size): Declare.
7952 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7953 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
7954 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7955 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7956 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7957 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7958 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7959 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7960 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7961 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7962 * vax-tdep.c (vax_gdbarch_init): Update.
7963 * v850-tdep.c (v850_gdbarch_init): Update.
7964 * sparc-tdep.c (sparc_gdbarch_init): Update.
7965 * sh-tdep.c (sh_gdbarch_init): Update.
7966 * s390-tdep.c (s390_gdbarch_init): Update.
7967 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7968 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7969 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7970 * mips-tdep.c (mips_gdbarch_init): Update.
7971 * mcore-tdep.c (mcore_gdbarch_init): Update.
7972 * m68k-tdep.c (m68k_gdbarch_init): Update.
7973 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7974 * ia64-tdep.c (ia64_gdbarch_init): Update.
7975 * i386-tdep.c (i386_gdbarch_init): Update.
7976 * hppa-tdep.c (hppa_gdbarch_init): Update.
7977 * h8300-tdep.c (h8300_gdbarch_init): Update.
7978 * frv-tdep.c (frv_gdbarch_init): Update.
7979 * cris-tdep.c (cris_gdbarch_init): Update.
7980 * avr-tdep.c (avr_gdbarch_init): Update.
7981 * arm-tdep.c (arm_gdbarch_init): Update.
7982 * alpha-tdep.c (alpha_gdbarch_init): Update.
7983 * d10v-tdep.c (d10v_gdbarch_init): Do not set
7984 max_register_raw_size or max_register_virtual_size.
7986 2003-03-03 David Carlton <carlton@math.stanford.edu>
7988 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
7989 SYMBOL_MATCHES_NAME, add comment.
7990 (SYMBOL_MATCHES_NATURAL_NAME): New.
7991 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
7992 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
7993 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
7994 * symtab.c (lookup_partial_symbol): Use
7995 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
7997 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
7998 SYMBOL_MATCHES_NAME.
8001 2003-03-03 David Carlton <carlton@math.stanford.edu>
8003 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8004 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8005 by regexp matching against SYMBOL_NATURAL_NAME.
8007 2003-03-03 David Carlton <carlton@math.stanford.edu>
8009 * linespec.c (find_method): Extract code into collect_methods.
8010 (collect_methods): New.
8012 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8014 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8017 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8018 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8020 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8022 * arch-utils.c (generic_register_byte): Fix to use the loop index
8023 and not regnum when summing the size of all registers up to regnum.
8025 2003-03-01 Andrew Cagney <cagney@redhat.com>
8027 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8028 FRAME_INIT_SAVED_REGS.
8029 * gdbarch.h, gdbarch.c: Regenerate.
8030 * stack.c (frame_info): Update.
8031 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8032 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8033 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8034 * ns32k-tdep.c (ns32k_pop_frame): Update.
8035 * mips-tdep.c (mips_pop_frame): Update.
8036 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8037 * ia64-tdep.c (ia64_frame_chain): Update.
8038 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8039 (ia64_frameless_function_invocation): Update.
8040 (ia64_init_extra_frame_info): Update.
8041 (ia64_pop_frame_regular): Update.
8042 * frame.h (struct frame_info): Update comment.
8043 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8044 * frame.c (frame_saved_regs_register_unwind): Update.
8045 (frame_saved_regs_register_unwind): Update.
8046 (deprecated_generic_get_saved_register): Update.
8047 * cris-tdep.c: Update comment.
8048 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8050 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8051 * x86-64-tdep.c (x86_64_init_abi): Update.
8052 * vax-tdep.c (vax_gdbarch_init): Update.
8053 * v850-tdep.c (v850_gdbarch_init): Update.
8054 * sparc-tdep.c (sparc_gdbarch_init): Update.
8055 * sh-tdep.c (sh_gdbarch_init): Update.
8056 * s390-tdep.c (s390_gdbarch_init): Update.
8057 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8058 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8059 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8060 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8061 * mips-tdep.c (mips_gdbarch_init): Update.
8062 * mcore-tdep.c (mcore_gdbarch_init): Update.
8063 * m68k-tdep.c (m68k_gdbarch_init): Update.
8064 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8065 * ia64-tdep.c (ia64_gdbarch_init): Update.
8066 * i386-tdep.c (i386_gdbarch_init): Update.
8067 * frv-tdep.c (frv_gdbarch_init): Update.
8068 * avr-tdep.c (avr_gdbarch_init): Update.
8069 * arm-tdep.c (arm_gdbarch_init): Update.
8070 * alpha-tdep.c (alpha_gdbarch_init): Update.
8072 2003-03-01 Andrew Cagney <cagney@redhat.com>
8074 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8075 option enum and switch. When no windows, set the interpreter to
8078 2003-03-01 Andrew Cagney <cagney@redhat.com>
8080 * main.c (captured_main): Replace magic option characters with an
8083 2003-03-01 Andrew Cagney <cagney@redhat.com>
8085 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8086 INIT_EXTRA_FRAME_INFO.
8087 * gdbarch.h, gdbarch.c: Regenerate.
8088 * arm-tdep.c: Update comments.
8089 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8090 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8091 * frame.h, avr-tdep.c: Ditto.
8092 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8093 (create_new_frame, legacy_get_prev_frame): Ditto.
8094 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8095 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8096 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8097 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8098 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8099 * v850-tdep.c (v850_gdbarch_init): Ditto.
8100 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8101 * sh-tdep.c (sh_gdbarch_init): Ditto.
8102 * s390-tdep.c (s390_gdbarch_init): Ditto.
8103 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8104 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8105 * mips-tdep.c (mips_gdbarch_init): Ditto.
8106 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8107 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8108 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8109 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8110 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8111 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8112 * frv-tdep.c (frv_gdbarch_init): Ditto.
8113 * cris-tdep.c (cris_gdbarch_init): Ditto.
8114 * avr-tdep.c (avr_gdbarch_init): Ditto.
8115 * arm-tdep.c (arm_gdbarch_init): Ditto.
8116 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8117 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8119 2003-03-01 Andrew Cagney <cagney@redhat.com>
8121 * gdbarch.sh (register_type): New function with predicate.
8122 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8123 * gdbarch.h, gdbarch.c: Re-generate.
8124 * arch-utils.c (generic_register_byte): Use generic_register_size.
8125 (generic_register_size): When available, use
8126 gdbarch_register_type.
8127 * regcache.c (init_regcache_descr): When available, initialize the
8128 register type array using gdbarch_register_type. If the
8129 architecture supplies gdbarch_register_type, do not use the legacy
8131 * d10v-tdep.c (d10v_register_type): Replace
8132 d10v_register_virtual_type.
8133 (d10v_gdbarch_init): Set register_type instead of
8134 register_virtual_type.
8136 2003-03-01 Andrew Cagney <cagney@redhat.com>
8138 * Makefile.in (ax-gdb.o): Update dependencies.
8139 * ax-gdb.c: Include "regcache.h".
8140 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8141 * findvar.c (value_of_register): Ditto.
8142 * infcmd.c (default_print_registers_info): Ditto.
8144 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8146 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8147 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8149 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8151 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8154 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8156 * Makefile.in (dwarf2loc.o): Update dependencies.
8157 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8158 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8159 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8160 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8161 (locexpr_tracepoint_var_ref): New function.
8162 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8164 2003-02-28 Andrew Cagney <cagney@redhat.com>
8166 * regcache.c (register_size): New function.
8167 * regcache.h (register_size): Declare
8168 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8169 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8171 2003-02-28 David Carlton <carlton@math.stanford.edu>
8173 * linespec.c (decode_compound): Extract code into find_method.
8176 2003-02-28 J. Brobecker <brobecker@gnat.com>
8178 * Makefile.in: Add rules to build and link in observer.o.
8180 2003-02-27 J. Brobecker <brobecker@gnat.com>
8182 * observer.c: Minor comments edits.
8184 2003-02-27 J. Brobecker <brobecker@gnat.com>
8186 * observer.h, observer.c: New file.
8188 2003-02-27 Andrew Cagney <cagney@redhat.com>
8190 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8192 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8194 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8195 (M6812_OP_STS_EXT): Likewise.
8196 (m6811_prologue): Use the above to recognize prologue.
8197 (m6812_prologue): Likewise.
8199 2003-02-27 David Carlton <carlton@math.stanford.edu>
8201 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8203 (compare_psymbols): Ditto.
8204 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8206 2003-02-27 Michael Snyder <msnyder@redhat.com>
8208 * f-lang.c (build_fortran_types): New function.
8209 (_initialize_f_language): Gdbarch-register built-in fortran types.
8210 * doublest.c (extract_floating): Fix warning text.
8212 2003-02-27 Andrew Cagney <cagney@redhat.com>
8214 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8215 predicate. Replaces PUSH_DUMMY_FRAME.
8216 * gdbarch.h, gdbarch.c: Regnerate.
8217 * valops.c (hand_function_call): Update. Call
8218 generic_push_dummy_frame directly.
8219 * vax-tdep.c (vax_gdbarch_init): Update.
8220 * sparc-tdep.c (sparc_gdbarch_init): Update.
8221 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8222 * m68k-tdep.c (m68k_gdbarch_init): Update.
8223 * hppa-tdep.c (hppa_gdbarch_init): Update.
8224 * alpha-tdep.c (alpha_gdbarch_init): Update.
8225 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8226 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8227 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8228 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8229 push_dummy_frame to generic_push_dummy_frame.
8230 * v850-tdep.c (v850_gdbarch_init): Ditto.
8231 * sh-tdep.c (sh_gdbarch_init): Ditto.
8232 * s390-tdep.c (s390_gdbarch_init): Ditto.
8233 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8234 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8235 * mips-tdep.c (mips_gdbarch_init): Ditto.
8236 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8237 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8238 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8239 * i386-tdep.c (i386_gdbarch_init): Ditto.
8240 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8241 * frv-tdep.c (frv_gdbarch_init): Ditto.
8242 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8243 * cris-tdep.c (cris_gdbarch_init): Ditto.
8244 * avr-tdep.c (avr_gdbarch_init): Ditto.
8245 * arm-tdep.c (arm_gdbarch_init): Ditto.
8247 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8249 * mips-tdep.c (show_mips_abi): New function.
8250 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8251 command ``show mips abi''.
8253 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8255 From Elena Zannoni <ezannoni@redhat.com>
8256 * dbxread.c (process_one_symbol): Only record line 0 if one or
8257 more sline entries have been seen for the function.
8259 2003-02-26 Michael Chastain <mec@shout.net>
8261 * configure: Regenerate with autoconf 000227.
8263 2003-02-26 Michael Chastain <mec@shout.net>
8266 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8267 for old libc5/glibc.
8268 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8270 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8272 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8273 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8275 2003-02-26 Michael Chastain <mec@shout.net>
8277 * configure.in: New variable HAVE_UINTPTR_T.
8278 * configure, config.in: Regenerated.
8280 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8283 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8285 2003-02-25 Andrew Cagney <cagney@redhat.com>
8287 * frame.c (get_prev_frame): Add comment on check for
8288 inside_entry_func. Only check for inside_entry_file when not a
8289 dummy and not a sentinel. Check that the new frame is not inner
8292 2003-02-25 Andrew Cagney <cagney@redhat.com>
8294 * frame.c (frame_debug): New variable.
8295 (_initialize_frame): Add "set/show debug frame" command.
8296 (get_prev_frame): When frame_debug, print reason why unwind
8299 2003-02-25 Michael Chastain <mec@shout.net>
8301 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8302 to avoid uintptr_t definition problems.
8304 2003-02-25 David Carlton <carlton@math.stanford.edu>
8306 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8307 (SYMBOL_LINKAGE_NAME): Ditto.
8308 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8309 SYMBOL_LINKAGE_NAME.
8310 (struct general_symbol_info): Expand comment.
8311 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8312 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8313 (SYMBOL_MATCHES_REGEXP): Ditto.
8314 * symtab.c (symbol_natural_name): New function.
8315 * objfiles.h: Replace all uses of SYMBOL_NAME by
8316 DEPRECATED_SYMBOL_NAME.
8317 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8318 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8319 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8320 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8321 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8322 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8323 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8324 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8325 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8326 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8328 * ada-exp.y: Update copyright.
8329 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8330 * cp-valprint.c: Ditto.
8332 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8334 * infptrace.c (detach): Do not flag error if ptrace detach fails
8335 and errno is set to ESRCH.
8337 2003-02-24 Andrew Cagney <cagney@redhat.com>
8339 * infptrace.c (udot_info): Change type of udot_off to long. Use
8340 paddr when printing udot_off's value.
8342 2003-02-24 David Carlton <carlton@math.stanford.edu>
8344 * symtab.c (make_symbol_overload_list): Only read in partial
8345 symtabs containing a matching partial symbol.
8347 2003-02-24 David Carlton <carlton@math.stanford.edu>
8349 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8350 do the comparison, not strcmp.
8351 * symfile.c (compare_psymbols): Ditto.
8352 * defs.h: Declare strcmp_iw_ordered.
8353 * utils.c (strcmp_iw_ordered): New function.
8355 2003-02-24 Jim Blandy <jimb@redhat.com>
8357 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8358 support, shared libs): Remove my name from here, to better reflect
8361 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8363 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8364 (target_ops): Add to_have_continuable_watchpoint.
8365 * target.c (update_current_target): Add INHERIT line for
8366 to_have_continuable_watchpoint.
8367 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8368 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8369 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8370 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8372 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8374 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8377 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8379 * solib.c (solib_open): Call target defined search function after
8380 failing with solib-search-path.
8381 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8382 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8384 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8386 * MAINTAINERS: Add myself to Write After section.
8388 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8390 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8392 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8394 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8395 (m68hc11_add_reggroups): New function.
8396 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8397 (m68hc11_gdbarch_init): Install the reggroups.
8398 (_initialize_m68hc11_tdep): Initialize them.
8400 2003-02-21 James E Wilson <wilson@tuliptree.org>
8402 * MAINTAINERS: Update my email address.
8404 2003-02-21 David Carlton <carlton@math.stanford.edu>
8406 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8408 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8410 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8411 * symtab.h: Add opaque declarations of struct axs_value and
8413 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8414 (struct location_funcs): New type.
8415 (struct symbol): Add "loc" to aux_value.
8416 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8417 * dwarf2read.c: Include "dwarf2expr.h".
8418 (dwarf2_symbol_mark_computed): New function.
8419 (read_func_scope): Use it.
8420 (var_decode_location): New function.
8421 (new_symbol): Use it.
8422 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8424 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8425 (dwarf2expr_h, dwarf2loc_h): New variables.
8426 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8427 (dwarf2expr.o, dwarf2loc.o): New rules.
8428 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8429 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8431 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8432 * m2-exp.y (yylex): Likewise.
8433 * printcmd.c (address_info, print_frame_args): Likewise.
8434 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8435 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8436 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8437 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8438 * symtab.c (lookup_block_symbol): Likewise.
8440 2003-02-20 Adam Fedor <fedor@gnu.org>
8442 * symtab.h: Remove objc_specific struct
8443 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8444 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8445 Have language_objc use cplus_specific struct.
8447 2003-02-20 Tom Tromey <tromey@redhat.com>
8449 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8450 TYPE_NAME, when printing a String value. PR java/1075.
8452 2003-02-20 Adam Fedor <fedor@gnu.org>
8454 * objc-lang.h (find_methods): Remove declaration.
8455 * objc-lang.c (find_methods): Make static.
8457 2003-02-20 Christopher Faylor <cgf@redhat.com>
8459 * win32-nat.c (get_image_name): Check return value from
8461 (child_xfer_memory): Ditto.
8463 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8465 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8466 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8467 '${exec_prefix}' (in addition to the expansion thereof) as
8469 * configure: Rebuilt.
8471 2003-02-20 David Carlton <carlton@math.stanford.edu>
8473 * symtab.c (search_symbols): Revert the search_symbols part of my
8474 2002-12-23 patch. Add comment.
8476 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8478 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8479 * dbxread.c (elfstab_build_psymtabs): Don't call
8480 install_minimal_symbols.
8481 (stabsect_build_psymtabs): Likewise.
8482 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8484 * somread.c (som_symfile_read): Call install_minimal_symbols
8485 and do_cleanups earlier.
8486 * nlmread.c (nlm_symfile_read): Likewise.
8487 * mdebugread.c (elfmdebug_build_psymtabs): Call
8488 install_minimal_symbols and make appropriate cleanups.
8490 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8492 * solib.c (reload_shared_libraries): New function.
8493 (_initialize_solib): Add callbacks for ``set solib-search-path''
8494 and ``set solib-absolute-prefix''.
8496 2003-02-20 David Carlton <carlton@math.stanford.edu>
8498 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8500 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8501 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8502 * ada-typeprint.c (ada_typedef_print): Ditto.
8503 * ax-gdb.c (gen_var_ref): Ditto.
8504 * breakpoint.c (print_one_breakpoint): Ditto.
8505 * buildsym.c (finish_block): Ditto.
8506 * c-valprint.c (c_val_print): Ditto.
8507 * expprint.c (print_subexp): Ditto.
8508 * findvar.c (locate_var_value): Ditto.
8509 * infcmd.c (jump_command): Ditto.
8510 * linespec.c (decode_line_2, decode_compound): Ditto.
8511 * maint.c (maintenance_translate_address): Ditto.
8512 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8513 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8515 * p-valprint.c (pascal_val_print): Ditto.
8516 * stabsread.c (define_symbol): Ditto.
8517 * stack.c (print_frame, frame_info, print_block_frame_locals)
8518 (print_frame_arg_vars, return_command): Ditto.
8519 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8520 * symmisc.c (print_symbol): Ditto.
8521 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8522 (compare_search_syms, print_symbol_info, print_msymbol_info)
8523 (rbreak_command): Ditto.
8524 * tracepoint.c (tracepoints_info): Ditto.
8525 * typeprint.c (typedef_print): Ditto.
8526 * valops.c (value_of_variable, hand_function_call): Ditto.
8527 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8528 * ada-typeprint.c: Update Copyright.
8529 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8530 * tracepoint.c, cli/cli-cmds.c: Ditto.
8532 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8534 * frame.c (generic_unwind_get_saved_register): Make non-static.
8535 * frame.h (generic_unwind_get_saved_register): Declare.
8536 * mips-tdep.c (read_next_frame_reg): Fetch register from
8537 current regcache when frame is NULL.
8538 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8540 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8541 instead of frame_register_unwind().
8543 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8545 * remote-sim.c (gdbsim_insert_breakpoint)
8546 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8549 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8551 * remote.c (_initialize_remote): Add commands "set/show remote
8552 hardware-watchpoint-limit" and "set/show remote
8553 hardware-breakpoint-limit".
8554 (remote_hw_watchpoint_limit): Initialize to -1.
8555 (remote_hw_breakpoint_limit): Ditto.
8556 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8558 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8560 * coff-pe-read.c: New file - support reading of minimal symbols from a
8561 portable executable using the export table.
8562 * coff-pe-read.h: New file.
8563 * coffread.c: Include coff-pe-read.h.
8564 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8565 debugging symbols found.
8566 * Makefile.in (SFILES): Add coff-pe-read.o.
8567 (coff_pe_read_h): Define.
8568 (COMMON_OBS): Add coff-pe-read.o.
8569 (coffread.o): Add coff_pe_read_h dependency.
8570 (coff-pe-read.o): New target.
8572 2003-02-19 David Carlton <carlton@math.stanford.edu>
8574 * Makefile.in (SFILES): Add block.c.
8576 (COMMON_OBS): Add block.o.
8578 (x86-64-tdep.o): Add $(block_h).
8579 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8580 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8581 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8582 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8583 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8584 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8585 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8586 * value.h: Add opaque declaration for struct block.
8587 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8588 * ada-lang.h: Ditto.
8589 * x86-64-tdep.c: #include "block.h"
8590 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8591 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8592 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8593 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8594 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8595 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8596 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8597 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8598 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8599 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8600 * symtab.c (block_function): Ditto.
8601 (contained_in): Ditto.
8602 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8603 block.h. Add opaque declaration for struct block.
8604 * symtab.h: Move block_function and contained_in declarations to
8605 block.h. Add opaque declarations for struct block, struct
8607 (struct block): Move to block.h.
8608 (struct blockvector): Ditto.
8609 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8610 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8611 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8612 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8613 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8615 * block.c: New file.
8616 * block.h: New file.
8618 2003-02-19 Theodore A. Roth <troth@openavr.org>
8620 * avr-tdep.c (avr_extract_return_value): Remove function.
8621 (avr_store_return_value): Remove function.
8622 (avr_extract_struct_value_address): Remove function.
8623 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8625 2003-02-19 Andrew Cagney <ac131313@redhat.com>
8627 * rs6000-tdep.c: Include "gdb_assert.h".
8628 (registers_e500): Add "acc" and "spefscr".
8629 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8630 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8631 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8633 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8635 2003-02-18 Keith Seitz <keiths@redhat.com>
8637 * Makefile.in: Add gdbtk-interps.c.
8639 2003-02-18 Kevin Buettner <kevinb@redhat.com>
8641 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8642 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8644 2003-02-18 Andrew Cagney <cagney@redhat.com>
8646 * symtab.h (struct objfile): Add opaque declaration.
8648 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
8650 From Jim Ingham <jingham@apple.com>:
8651 * dbxread.c (process_one_symbol): Use last_function_start rather
8652 than function_start_offset to find the real beginning of the
8653 current function. The latter is just the text section offset on
8654 some systems, the former is always the real function start.
8656 2003-02-17 Andrew Cagney <cagney@redhat.com>
8658 * configure.in: Revert ${target} != ${host}.
8660 2003-02-17 Andrew Cagney <ac131313@redhat.com>
8662 * configure.in (Makefile): Use the test ${target} != ${host},
8663 instead of the absence of the "nm.h" file, to determine of the
8664 configuration non-native.
8665 * configure: Regenerate.
8667 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
8669 From Brian Ford <ford@vss.fsi.com>
8671 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8672 conditionalize tui_active test.
8673 (lookup_cmd_1): Ditto.
8675 2003-02-14 Mark Kettenis <kettenis@gnu.org>
8677 * configure.in: Add check for _etext.
8678 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8680 * config.in, configure: regenerated.
8682 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
8684 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8686 2003-02-14 Andrew Cagney <ac131313@redhat.com>
8688 * main.c (tui_version): Delete variable.
8689 (captured_main): When --tui, set interpreter_p to "tui" instead of
8690 enabling tui_version.
8691 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8693 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8694 * cli/cli-cmds.c (disassemble_command): Ditto.
8695 * defs.h (tui_version): Delete declaration.
8696 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8697 (tui-interp.o): Add rules.
8698 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8700 2003-02-14 Christopher Faylor <cgf@redhat.com>
8702 * win32-nat.c (register_loaded_dll): Correctly set address range for
8705 2003-02-12 Jason Molenda (jmolenda@apple.com)
8707 * symmisc.c (print_objfile_statistics): Include information about
8708 the number of psymtabs and symtabs in each object file.
8710 2003-02-13 Keith R Seitz <keiths@redhat.com>
8712 * main.h (struct captured_main_args): Add interpreter_p.
8713 * main.c (captured_main): Initialize interpreter_p from context.
8714 * gdb.c (main): Set interpreter_p argument.
8715 * Makefile.in (gdb.o): Add dependency for interps.h.
8717 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8719 * event-top.c (cli_command_loop): Delete declaration.
8720 (_initialize_event_loop): Delete function setting event_loop_hook.
8721 * event-top.h (cli_command_loop): Declare. Update copyright.
8722 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8723 * interps.c (current_interp_command_loop): When event_loop_p, call
8726 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8728 * interps.h (interp_command_loop_ftype): Change return type to
8731 2003-02-12 Michal Ludvig <mludvig@suse.cz>
8733 * x86-64-tdep.c (x86_64_extract_return_value)
8734 (x86_64_store_return_value): Use regcache instead of regbuf.
8735 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8736 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8738 2003-02-11 Andrew Cagney <ac131313@redhat.com>
8740 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8741 * aclocal.m4: Regenerate.
8742 * configure: Regenerate.
8744 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8745 TCL_LD_SEARCH_FLAGS.
8747 2003-02-10 Michal Ludvig <mludvig@suse.cz>
8749 * dwarf2cfi.c: Reindented.
8751 2003-02-09 Andrew Cagney <ac131313@redhat.com>
8753 * interps.c (clear_interpreter_hooks): Convert function definition
8756 2003-02-07 David Carlton <carlton@math.stanford.edu>
8758 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8760 2003-02-07 Kevin Buettner <kevinb@redhat.com>
8762 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8763 (struct type): ...to here.
8764 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8766 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8767 (replace_type): Set length on all type variants for a given type.
8769 2003-02-07 Andrew Cagney <ac131313@redhat.com>
8771 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8773 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8775 2003-02-06 Andrew Cagney <ac131313@redhat.com>
8777 * Makefile.in (symm-nat.o): Update dependencies.
8778 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8779 (lynx-nat.o, ia64-linux-nat.): Ditto.
8780 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8781 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8782 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8784 * Makefile.in (inflow_h): Define.
8785 (procfs.o, inflow.o, procfs.o): Update dependencies.
8786 * inftarg.c (child_stop): Delete extern declaration of
8787 inferior_process_group. Include "inflow.h".
8788 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
8789 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8790 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
8791 (our_process_group, inferior_process_group): Extern declarations.
8793 * procfs.c: Include "gdb_assert.h".
8795 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8796 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8797 * jv-typeprint.c (java_type_print_base): Ditto.
8798 * typeprint.c (typedef_print): Eliminate STREQ.
8799 * cli/cli-script.c (define_command, define_command): Ditto.
8800 * main.c (captured_main): Ditto.
8801 * values.c (lookup_internalvar): Ditto.
8802 * utils.c (safe_strerror, parse_escape): Eliminate assignment
8803 within `if' conditional.
8804 * linespec.c (decode_line_2): Ditto.
8805 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8806 (bfd_openw_with_cleanup): Ditto.
8808 2003-02-07 Mark Kettenis <kettenis@gnu.org>
8810 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8811 legacy_extract_return_value and store_return_value to
8812 legacy_return_value.
8814 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
8816 * win32-nat.c (get_relocated_section_addrs): New function. Find
8817 section load addresses for symbol handling in relocated DLLs.
8818 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8820 2003-02-05 Fred Fish <fnf@intrinsity.com>
8822 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8824 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8826 (angel_RDI_info): Ditto.
8827 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8829 (threads_continue_all_with_signals): Ditto.
8831 2003-02-05 Jim Ingham <jingham@apple.com>
8832 Keith Seitz <keiths@redhat.com>
8833 Elena Zannoni <ezannoni@redhat.com>
8834 Andrew Cagney <ac131313@redhat.com>
8836 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8837 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8838 (SUBDIR_MI_OBS): Add "mi-interp.o".
8839 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8840 (SFILES): Add "interps.c".
8841 (COMMON_OBS): Add "interps.o".
8842 (interps_h, mi_main_h): Define.
8843 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8844 (mi-main.o, main.o, event-top.o): Update dependencies.
8845 * cli/cli-interp.c: New file.
8846 * interps.h, interps.c: New files.
8847 * top.c: (gdb_init): Don't install the default interpreter, handed
8849 * main.c: Include "interps.h".
8850 (interpreter_p): Note that it should malloc'ed.
8851 (captured_command_loop): Call current_interp_command_loop.
8852 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
8853 xfree and xstrdup when updating interpreter_p. Install the
8854 default interpreter. Add hack to stop mi1's copyright notice
8856 * event-top.h (gdb_setup_readline): Declare.
8857 (gdb_disable_readline): Declare.
8858 * event-top.c: Include "interps.h".
8859 (display_gdb_prompt): Call current_interp_display_prompt_p.
8860 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
8861 gdb_stdlog, and gdb_stdtarg.
8862 (_initialize_event_loop): Don't call gdb_setup_readline.
8863 * cli-out.c (cli_out_set_stream): New function.
8864 * cli-out.h (cli_out_set_stream): Declare.
8866 2003-02-06 Mark Kettenis <kettenis@gnu.org>
8868 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
8869 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
8870 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
8871 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
8872 config/i386/i386v42mp.mt: Removed.
8874 2003-02-05 Mark Kettenis <kettenis@gnu.org>
8876 * configure.tgt (*-*-solaris*): Set gdb_osabi to
8879 2003-02-05 Michael Chastain <mec@shout.net>
8881 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
8882 2.12.1 and earlier versions.
8884 2003-02-05 Andrew Cagney <ac131313@redhat.com>
8886 Remove orphaned hosts, targets and files.
8887 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
8888 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
8889 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
8890 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
8891 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
8892 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
8893 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
8894 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
8895 * config/sparc/tm-sp64sim.h: Delete.
8896 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
8898 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
8899 mips*-dec-mach3* targets.
8901 2003-02-04 Michael Chastain <mec@shout.net>
8903 * NEWS: Fix typo: sepcifying -> specifying.
8905 2003-02-04 Michael Chastain <mec@shout.net>
8907 * dwarfread.c: Add documentation on the state of dwarf-1,
8908 looking towards obsoletion.
8910 2003-02-03 Michael Chastain <mec@shout.net>
8912 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
8913 gdb/testsuite/gdb.c++/pr-1023.exp.
8915 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8917 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
8918 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
8920 * utils.c (init_page_info): Delete reference to MPW in comments.
8921 * main.c (captured_main): Delete #ifdef MPW.
8923 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8925 * NEWS: Note that the m32r-*-elf* is obsolete.
8926 * monitor.c (monitor_expect): Obsolete reference to m32r.
8927 * configure.tgt: Mark m32r-*-elf* as obsolete.
8928 * MAINTAINERS: Mark m32k as obsolete.
8929 * m32r-rom.c: Obsolete file.
8930 * config/m32r/m32r.mt: Obsolete file.
8931 * config/m32r/tm-m32r.h: Obsolete file.
8932 * m32r-stub.c: Obsolete file.
8933 * m32r-tdep.c: Obsolete file.
8935 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8937 * NEWS: Mention that the z8k-zilog-none is obsolete.
8938 * MAINTAINERS: Mark z8k as obsolete.
8939 * configure.tgt: Obsolete the z8k-*-coff* target.
8940 * config/z8k/z8k.mt: Obsolete file.
8941 * config/z8k/tm-z8k.h: Obsolete file.
8942 * z8k-tdep.c: Obsolete file.
8944 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8946 * NEWS: Mention that the mn10200-elf is obsolete.
8947 * configure.tgt: Obsolete mn10200-*-* target.
8948 * breakpoint.c (update_breakpoints_after_exec): Update comment to
8949 mention that the mn10200 is obsolete.
8950 * breakpoint.h: Ditto.
8951 * MAINTAINERS: Mark the mn10200-elf as obsolete.
8952 * config/mn10200/mn10200.mt: Obsolete file.
8953 * config/mn10200/tm-mn10200.h: Obsolete file.
8954 * mn10200-tdep.c: Obsolete file.
8956 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8958 * MAINTAINERS: Mark h8500 as obsolete.
8959 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
8960 * findvar.c (value_from_register): Ditto.
8961 * h8500-tdep.c: Mark file as obsolete.
8962 * config/h8500/h8500.mt: Ditto.
8963 * config/h8500/tm-h8500.h: Ditto.
8964 * NEWS: Mention that h8500 is obsolete.
8966 2003-02-04 David Carlton <carlton@math.stanford.edu>
8968 * objfiles.c (allocate_objfile): Always set name. Add comment at
8970 * jv-lang.c (get_dynamics_objfile): Add comment.
8972 2003-02-04 David Carlton <carlton@math.stanford.edu>
8974 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
8975 * printcmd.c (build_address_symbolic): Replace uses of
8976 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
8977 SYMBOL_NAME, and asm_demangle.
8980 2003-02-04 David Carlton <carlton@math.stanford.edu>
8982 * linespec.c (decode_compound): Extract code into
8984 (lookup_prefix_sym): New function.
8986 2003-02-04 David Carlton <carlton@math.stanford.edu>
8988 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
8989 FLOAT_COERCION_BADNESS.
8990 * gdbtypes.c (rank_one_type): Replace all uses of
8991 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
8993 2003-02-04 Jim Blandy <jimb@redhat.com>
8995 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
8996 section, let dwarf_macinfo_section point to it, not
8999 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9001 Pointed out by Anton Blanchard <anton@samba.org>.
9002 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9003 (ppc_linux_at_sigtramp_return_path): Use it.
9005 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9007 * defs.h (streq): Add prototype.
9008 * utils.c (streq): New function.
9010 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9011 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9012 * mdebugread.c (new_symbol): Likewise.
9013 * stabsread.c (define_symbol): Likewise.
9014 * coffread.c (process_coff_symbol): Likewise.
9015 * dwarfread.c (new_symbol): Likewise.
9017 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9018 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9020 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9021 SYMBOL_INIT_DEMANGLED_NAME.
9022 * objfiles.c: Include "hashtab.h".
9023 (allocate_objfile): Call htab_set_functions_ex for the
9024 demangled_names_hash.
9025 (free_objfile): Call htab_delete for the demangled_names_hash.
9026 * objfiles.h (struct htab): Add declaration.
9027 (struct objfile): Add demangled_names_hash.
9028 * symfile.c: Include "hashtab.h".
9029 (reread_symbols): Call htab_delete for the demangled_names_hash.
9030 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9031 SYMBOL_NAME in the bcache.
9032 * symtab.c: Include "hashtab.h". Update comments.
9033 (create_demangled_names_hash, symbol_set_names): New functions.
9034 (symbol_find_demangled_name): New function, broken out from
9035 symbol_init_demangled_names.
9036 (symbol_init_demangled_names): Use it.
9037 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9038 (SYMBOL_SET_NAMES): New macro.
9039 (symbol_set_names): Add prototype.
9041 2003-02-03 Jim Blandy <jimb@redhat.com>
9043 Use a single, consistent representation for an empty minimal
9044 symbol table in an objfile.
9045 * objfiles.c (terminate_minimal_symbol_table): New function.
9046 (allocate_objfile): Call it.
9047 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9048 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9050 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9051 objfile has minimal symbols, compare minimal_symbol_count to zero,
9052 instead of comparing msymbols with NULL.
9053 * objfiles.c (have_minimal_symbols): Same.
9054 * solib-sunos.c (solib_add_common_symbols): Call
9055 terminate_minimal_symbol_table.
9056 * symfile.c (reread_symbols): Same.
9058 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9060 * s390-tdep.c (s390_address_class_type_flags)
9061 (s390_address_class_type_flags_to_name)
9062 (s390_address_class_name_to_type_flags): New functions.
9063 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9064 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9066 2003-02-03 Michael Snyder <msnyder@redhat.com>
9068 * arm-tdep.c: Fix spell-o in comment.
9070 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9072 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9073 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9074 error messages to contain BFD filename.
9076 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9078 Fix PR gdb/742 gdb/743 gdb/877
9079 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9080 (do_mixed_source_and_assembly): Use
9081 make_cleanup_ui_out_tuple_begin_end and
9082 make_cleanup_ui_out_tuple_begin_end.
9083 (do_mixed_source_and_assembly): Ditto.
9084 * thread.c (do_captured_list_thread_ids): Ditto.
9085 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9086 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9087 ui_out_tuple_end): Delete prototypes.
9088 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9089 ui_out_list_end, ui_out_tuple_end): Delete.
9091 From Kevin Buettner <kevinb@redhat.com>:
9092 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9093 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9094 (do_cleanup_table_end): New functions.
9095 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9096 Use cleanups to invoke_ui_out_tuple_end().
9097 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9098 * cli/cli-setshow.c (cmd_show_list): Use
9099 make_cleanup_ui_out_tuple_begin_end.
9101 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9103 * frame.c (frame_unwind_register): New function.
9104 (frame_unwind_unsigned_register): Use.
9105 (frame_unwind_signed_register): Use.
9106 (frame_read_register): New function.
9107 * frame.h (frame_unwind_register): Declare.
9108 (frame_read_register): Declare.
9110 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9111 and frame_unwind_register instead of read_memory, write_register
9112 and deprecated_write_register_bytes.
9114 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9116 * frame.h: Note that namelen can be negative.
9117 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9120 * NEWS: Mention that the d10v's `regs' command is deprecated.
9121 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9122 (d10v_print_registers_info): New function.
9123 (show_regs): Call d10v_print_registers_info.
9124 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9126 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9128 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9129 lost in the previous patch.
9131 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9133 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9134 * stack.c (print_frame_info_base): Output complete FRAME tuple
9135 for synthesized frames.
9137 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9139 * mips-nat.c (zerobuf): Delete.
9140 (fetch_inferior_registers): Alloc local zerobuf.
9141 (fetch_core_registers): Alloc local zerobuf.
9142 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9143 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9144 * thread-db.c (thread_db_store_registers): Ditto.
9145 * sh-tdep.c (sh_do_register): Ditto.
9146 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9147 * remote-sim.c (gdbsim_store_register): Ditto.
9148 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9149 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9150 * monitor.c (monitor_supply_register): Ditto.
9151 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9152 * mips-nat.c (fetch_inferior_registers): Ditto.
9153 * m68klinux-nat.c (fetch_register): Ditto.
9154 * lynx-nat.c (fetch_inferior_registers): Ditto.
9155 (fetch_inferior_registers): Ditto.
9156 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9157 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9158 (hpux_thread_store_registers): Ditto.
9159 * hppah-nat.c (fetch_register): Ditto.
9160 * hppab-nat.c (fetch_register): Ditto.
9161 * hppa-tdep.c (pa_register_look_aside): Ditto.
9162 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9163 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9165 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9167 * gdbarch.sh: Explictly specify all method levels. When a
9168 variable with an empty level, provide a non-multi-arch default.
9169 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9170 * gdbarch.h: Re-generate.
9171 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9172 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9174 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9176 * defs.h (host_pointer_to_address): Delete declaration.
9177 (address_to_host_pointer): Delete declaration.
9178 * utils.c (host_pointer_to_address): Delete function.
9179 (address_to_host_pointer): Delete function.
9180 * procfs.c (procfs_address_to_host_pointer): New function.
9181 * procfs.c (proc_set_watchpoint): Use.
9182 (procfs_can_use_hw_breakpoint): Update comments.
9183 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9184 (som_solib_add): Use.
9185 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9186 * hppa-tdep.c (unwind_command): Use.
9188 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9190 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9193 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9194 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9195 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9196 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9197 (define_symbol): Update.
9198 * symfile.c (generic_load): Remove references to nindy.
9199 * symtab.c: Remove references to nindy.
9201 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9203 * infcmd.c (print_float_info): Delete code conditional on
9205 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9206 * config/m68k/nm-apollo68b.h: Ditto.
9207 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9208 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9209 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9211 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9213 * config/i386/tm-i386os9k.h: Removed.
9215 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9216 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9217 they're identical to i[3456]86-*-sysv* now.
9218 * config/i386/i386v32.mh: Removed.
9219 * config/i386/xm-i386v32.h: Removed.
9220 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9222 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9224 * config/i386/i386dgux.mh: Removed.
9225 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9227 * configure.in: Fix typo.
9228 * configure: Regenerated.
9230 2003-01-31 David Carlton <carlton@math.stanford.edu>
9232 * dwarf2read.c (dwarf2_locate_sections): Set
9233 dwarf_ranges_section.
9235 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9237 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9238 * utils.c: Update comments documenting legitimate uses of PTR.
9240 * utils.c: Re-indent.
9242 * config/djgpp/fnchange.lst: Delete nindy files.
9243 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9244 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9245 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9246 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9247 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9248 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9249 * Makefile.in (init.c): Remove nindy references.
9250 (saber_gdb): Delete rule.
9251 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9252 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9254 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9255 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9256 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9257 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9259 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9260 * saber.suppress: Delete file.
9262 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9264 * dbxread.c (stabs_data): New static variable.
9265 (fill_symbuf): Support an in-memory buffer for stabs data.
9266 (stabs_seek): New function.
9267 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9268 (read_ofile_symtab): Use stabs_seek.
9269 (elfstab_build_psymtabs): Take an asection* instead of
9270 an offset and size. Relocate the stabs data if necessary.
9271 Save the section* for dbx_psymtab_to_symtab.
9272 * dwarf2read.c: Add section variables for each debug section.
9273 (dwarf2_locate_sections): Fill them in.
9274 (dwarf2_read_section): Take an asection* argument.
9275 Relocate the section contents if necessary.
9276 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9277 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9278 it to dwarf2_read_section.
9279 (dwarf2_build_frame_info): Update callers.
9280 * elfread.c (elf_symfile_read): Update call to
9281 elfstab_build_psymtabs.
9282 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9283 (DBX_STAB_SECTION): New macro.
9284 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9285 * symfile.c (symfile_dummy_outputs): New function.
9286 (symfile_relocate_debug_section): New function.
9287 * symfile.h (symfile_relocate_debug_section): Add prototype.
9289 2003-01-31 Richard Henderson <rth@redhat.com>
9291 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9292 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9293 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9294 * alpha-tdep.c (alpha_register_name): Add "unique".
9295 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9296 (ALPHA_UNIQUE_REGNUM): New.
9297 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9299 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9301 * README: Remove reference to Ericsson 1800 monitor.
9302 * Makefile.in (remote-es.o): Delete rule.
9303 (ALLDEPFILES): Delete remote-es.c.
9304 * remote-es.c: Delete file.
9305 * config/m68k/es1800.mt: Delete file.
9306 * config/djgpp/fnchange.lst: Update.
9307 * configure.tgt: Delete m68*-ericsson-* target.
9309 2003-01-31 Adam Fedor <fedor@gnu.org>
9311 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9312 Remove duplicate/shadowing variable of same name.
9314 2003-01-30 Jim Blandy <jimb@redhat.com>
9316 * symfile.c (find_separate_debug_file): Assert that the objfile's
9317 directory name we compute ends with a slash, and then assume that
9318 that's so everywhere we use it.
9320 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9322 * valops.c (value_assign): Flush frame cache after stores to memory
9325 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9327 * Makefile.in (mon960-rom.o): Delete rule.
9328 * mon960-rom.c: Delete file.
9330 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9332 * d10v-tdep.c: Include "frame-unwind.h".
9333 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9335 (next_addr, uses_frame): Delete.
9336 (struct d10v_unwind_cache): Define.
9337 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9338 Use info instead of next_addr and uses_frame globals.
9339 (d10v_frame_init_saved_regs): Delete function.
9340 (d10v_init_extra_frame_info): Delete function.
9341 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9342 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9343 init_frame_pc or frame_saved_pc.
9344 (d10v_pop_frame): Delete function.
9345 (do_d10v_pop_frame): Delete function.
9346 (d10v_frame_chain): Delete function.
9347 (d10v_frame_chain_valid): Delete function.
9348 (d10v_frame_pc_unwind): New function.
9349 (d10v_frame_id_unwind): New function.
9350 (saved_regs_unwinder): New function.
9351 (d10v_frame_register_unwind): New function.
9352 (d10v_frame_pop): New function.
9353 (d10v_frame_unwind): New variable.
9354 (d10v_frame_p): New function.
9355 (d10v_frame_saved_pc): Delete function.
9356 * Makefile.in (d10v-tdep.o): Update dependencies.
9358 2003-01-30 J. Brobecker <brobecker@gnat.com>
9360 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9361 causing some regressions due to a change in the default value
9364 2003-01-29 Richard Henderson <rth@redhat.com>
9365 Elena Zannoni <ezannoni@redhat.com>
9366 Daniel Jacobowitz <drow@mvista.com>
9369 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9371 (RANGES_SECTION): New.
9372 (dwarf_ranges_buffer): New variable.
9373 (struct comp_unit_head): Add member "die".
9374 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9375 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9376 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9377 (dwarf2_locate_sections): Likewise.
9378 (dwarf2_build_psymtabs): Read .debug_ranges.
9379 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9380 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9381 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9382 Look for DW_AT_ranges and return the bounding box.
9384 2003-01-29 Brian Ford <ford@vss.fsi.com>
9386 * win32-nat.c (cygwin_pid): Removed as unused.
9387 (child_attach): Try fall back to Cygwin pid.
9389 2003-01-29 Jim Blandy <jimb@redhat.com>
9391 * objfiles.h (struct objfile): Doc fix.
9393 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9395 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9396 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9397 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9398 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9399 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9400 (FRAME_SAVED_PC): Change to a function with predicate.
9401 * gdbarch.h, gdbarch.c: Re-generate.
9403 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9405 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9407 * complaints.c (complain): Delete function.
9408 * complaints.h (struct deprecated_complaint): Delete definition.
9409 (complain): Delete declaration.
9411 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9413 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9416 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9418 * sentinel-frame.h, sentinel-frame.c: New files.
9419 * Makefile.in (frame.o): Update dependencies.
9420 (SFILES): Add sentinel-frame.c.
9421 (sentinel_frame_h): Define.
9422 (COMMON_OBS): Add sentinel-frame.o.
9423 (sentinel-frame.o): Specify dependencies.
9424 * frame.c: Include "sentinel-frame.h".
9425 (frame_register_unwind): Rewrite assuming that there is always a a
9427 (frame_register, generic_unwind_get_saved_register): Ditto.
9428 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9429 (create_sentinel_frame, unwind_to_current_frame): New functions.
9430 (get_current_frame): Rewrite using create_sentinel_frame and
9431 unwind_to_current_frame. When possible, always create a frame.
9432 (create_new_frame): Set next to the sentinel frame.
9433 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9434 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9435 ID cache when necessary.
9436 (frame_saved_regs_id_unwind): Use frame_relative_level.
9437 (deprecated_generic_get_saved_register): Use frame_relative_level,
9438 get_frame_saved_regs, get_frame_pc, get_frame_base and
9440 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9443 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9445 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9447 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9449 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9450 (maintenance_set_profile_cmd): Use error () instead of warning ().
9452 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9454 * configure.in: Check that -pg works if using --enable-profiling.
9455 Check for monstartup and _mcleanup regardless of --enable-profiling.
9456 * maint.c: Check for monstartup and _mcleanup before using them.
9457 * config.in: Regenerated.
9458 * configure: Regenerated.
9460 2003-01-24 Nick Clifton <nickc@redhat.com>
9464 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9466 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9467 (sh2e_show_regs): New.
9468 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9469 * config/sh/tm-sh.h: Added sh2e to comments.
9471 2003-01-23 Jim Blandy <jimb@redhat.com>
9473 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9474 symbols found)" message here; we haven't checked for a separate
9475 debug info file yet, so we don't know yet.
9476 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9477 we've looked everywhere. Also, there's no need to print a special
9478 message when we're loading the separate debug info file: the one
9479 symbol_file_add prints is fine.
9481 2003-01-23 Alexander Larsson <alexl@redhat.com>
9482 Jim Blandy <jimb@redhat.com>
9484 Add support for executables whose debug info has been separated
9485 out into a separate file, leaving only a link behind.
9486 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9487 and separate_debug_objfile_backlink.
9488 (put_objfile_before): New declaration.
9489 * symfile.c: #include "filenames.h".
9490 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9491 debug info in a separate file, read that, too. Save the addrs
9492 argument, so we can use it again to read the separated debug info;
9493 syms_from_objfile modifies the table we pass it.
9494 (reread_symbols): After re-reading an objfile, call
9495 reread_separate_symbols to refresh its separate debug info
9496 objfile, if it has one.
9497 (reread_separate_symbols, find_separate_debug_file,
9498 get_debug_link_info, separate_debug_file_exists): New functions.
9499 (debug_file_directory): New global var.
9500 (_initialize_symfile): Initialize debug_file_directory, and
9501 provide the new `set debug-file-directory' command to let the user
9503 * objfiles.c (free_objfile): If this objfile has its debug info in
9504 a separate objfile, free that one too. If this is itself a
9505 separate debug info objfile, clear our parent's backlink.
9506 (put_objfile_before): New function.
9507 * utils.c (gnu_debuglink_crc32): New function.
9508 * defs.h (gnu_debuglink_crc32): New declaration.
9509 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9510 * configure.in: Handle --with-separate-debug-dir config option.
9511 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9512 * acconfig.h (DEBUGDIR): New macro.
9513 * configure, aclocal.m4, config.in: Regenerated.
9515 2003-01-22 Jim Blandy <jimb@redhat.com>
9517 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9518 like the old symbol_file_add, but taking new arguments: you can
9519 now pass in either a `struct section_addr_info' list to say where
9520 each section is loaded, or a `struct section_offsets' table. Pass
9521 these new arguments through to syms_from_objfile as appropriate.
9522 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9523 with the appropriate quiescent values for the new arguments.
9525 * symfile.c: #include "gdb_assert.h".
9526 (syms_from_objfile): Add the ability to pass in a section offset
9527 table directly, as an alternative to the section_addr_info table.
9528 Document arguments better.
9529 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9530 * symfile.h (syms_from_objfile): Update declaration.
9531 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9533 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9535 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9537 Original patch by Tom Tromey <tromey@cygnus.com> and
9538 Jason Molenda <jmolenda@apple.com>.
9539 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9540 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9541 * NEWS: Mention profiling.
9542 * configure.in (--enable-gdbtk): Fix typo.
9543 (--enable-profiling): New. Set PROFILE_CFLAGS.
9544 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9546 (profiling_state): New variable.
9547 (mcleanup_wrapper): New function.
9548 (_initialize_maint): Remove NOTYET, fix call to
9549 add_setshow_boolean_cmd for "maint set profile".
9550 * configure: Regenerated.
9552 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9554 * Makefile.in (install-gdbtk): Install PNG images too.
9556 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9558 * exec.c (text_start): Delete global variable.
9559 (exec_file_attach): Make text_start local to the function.
9560 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9561 * valops.c (hand_function_call): Delete code that handles
9562 BEFORE_TEXT_END and AFTER_TEXT_END.
9563 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9564 of CALL_DUMMY_LOCATION.
9565 * gdbarch.c: Regenerate.
9566 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9567 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9568 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9569 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9570 (text_end): Delete extern declaration.
9572 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9574 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9575 * blockframe.c (backtrace_below_main): Move to "frame.c".
9576 (frame_chain_valid): Delete check for backtrace_below_main.
9577 (_initialize_blockframe): Delete initialization, move ``set
9578 backtrace-below-main'' command to "frame.c".
9579 (do_flush_frames_sfunc): Delete function.
9580 * frame.c: Include "command.h" and "gdbcmd.h".
9581 (frame_type_from_pc): New function.
9582 (create_new_frame): Use frame_type_from_pc.
9583 (legacy_get_prev_frame): New function.
9584 (get_prev_frame): Rewrite. When an old style frame, call
9585 legacy_get_prev_frame. Otherwize, unwind the PC first.
9586 (_initialize_frame): Add ``set backtrace-below-main'' command.
9587 * Makefile.in (frame.o): Update dependencies.
9589 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9591 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9592 DEPRECATED_REGISTERS_INFO.
9594 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9596 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9597 Maintainers'. Update `Various Maintainers'.
9599 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9601 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9602 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9603 Suppress actual parameters when `-'.
9604 * gdbarch.h, gdbarch.c: Regenerate.
9606 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9608 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9609 code handling dummy frames.
9611 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9613 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9614 (struct frame_unwind): Add field pop.
9615 * frame.h (frame_pop): Declare.
9616 * frame.c (frame_saved_regs_pop): New function.
9617 (trad_frame_unwinder): Add frame_saved_regs_pop.
9618 (frame_pop): New function.
9619 * dummy-frame.c (dummy_frame_pop): New function.
9620 (discard_innermost_dummy): New function.
9621 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9622 (dummy_frame_unwind): Add dummy_frame_pop.
9623 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9624 * valops.c (hand_function_call): Ditto.
9625 * stack.c (return_command): Ditto.
9627 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9629 * cris-tdep.c: Fix function declaration indentation.
9630 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9631 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9632 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9633 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9634 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9635 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9637 2003-01-18 Michael Chastain <mec@shout.net>
9639 * README (Unpacking and Installation -- quick overview):
9640 Warn against ".../gdb-5.3/gdb/configure".
9642 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9644 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9645 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9646 (struct frame_unwind): Declare opaque.
9647 (dummy_frame_p): Declare function.
9648 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9649 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9650 * dummy-frame.c: Include "frame-unwind.h".
9651 (dummy_frame_p): New function.
9652 (dummy_frame_unwind): New variable.
9653 * frame.c: Include "frame-unwind.h".
9654 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9655 to use the new unwind field.
9656 (set_unwind_by_pc): Delete function.
9657 (create_new_frame, get_prev_frame): Set unwind field using
9658 frame_unwind_find_by_pc.
9659 (trad_frame_unwind, trad_frame_unwinder): New variables.
9660 * frame.h (trad_frame_unwind): Declare variable.
9661 (frame_id_unwind_ftype): Delete declaration.
9662 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9663 (struct frame_unwind): Declare opaque.
9664 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9665 register_unwind with a single unwind pointer.
9666 * frame-unwind.h, frame-unwind.c: New files.
9667 * Makefile.in (SFILES): Add frame-unwind.c.
9668 (frame_unwind_h): Define.
9669 (COMMON_OBS): Add frame-unwind.o.
9670 (frame-unwind.o): Specify dependencies.
9671 (frame.o, dummy-frame.o): Update dependencies.
9673 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9675 * ada-valprint.c: Eliminate PTR.
9676 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9677 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9678 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9679 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9680 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9681 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9682 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
9684 2003-01-17 Andrew Cagney <ac131313@redhat.com>
9686 * main.c (captured_main): Don't use PTR.
9687 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9688 * gdbtypes.c (lookup_primitive_typename): Ditto.
9689 (lookup_struct_elt_type): Ditto.
9690 * f-valprint.c (info_common_command): Ditto.
9691 (list_all_visible_commons): Ditto.
9692 * jv-typeprint.c (java_type_print_base): Ditto.
9694 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9695 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9696 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9697 i386-interix-nat.c and i386-interix-tdep.c. Rename
9698 m68klinux-nat.c and m68klinux-tdep.c. Rename
9699 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9700 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9701 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9702 * main.c (captured_main): Use xfree, not free.
9704 2003-01-16 Andrew Cagney <ac131313@redhat.com>
9706 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9707 ID back using a parameter.
9708 * frame.c (frame_id_unwind): Update call.
9709 (frame_saved_regs_id_unwind): Update.
9710 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9711 * dummy-frame.h (struct frame_id): Add opaque declaration.
9712 (dummy_frame_id_unwind): Update declaration.
9714 2003-01-15 Andrew Cagney <ac131313@redhat.com>
9716 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9718 2003-01-15 Stephen P. Smith <ischis2@cox.net>
9720 * MAINTAINERS (Stephen P. Smith): Updated email address.
9722 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
9725 * breakpoint.c (until_break_command): Add new argument. Use it to
9726 decide whether to stop only at the current frame or not.
9727 * breakpoint.h (until_break_command): Update prototype.
9728 * infcmd.c (until_command): Add new argument to until_break_command
9730 (advance_command): New function.
9731 (_initialize_infcmd): Update help string for 'until' command.
9732 Add new 'advance' command.
9734 2003-01-14 David Carlton <carlton@math.stanford.edu>
9736 * linespec.c (decode_line_1): Normalize comments.
9738 (locate_first_half): Ditto.
9739 (decode_compound): Ditto.
9740 (symtab_from_filename): Ditto.
9741 (decode_all_digits): Ditto.
9742 (decode_dollar): Ditto.
9743 (find_methods): Ditto.
9744 (find_toplevel_char): Ditto.
9746 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9748 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9749 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9750 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9751 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9752 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9753 * language.c, language.h, m32r-tdep.c: Update copyright.
9754 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9755 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9756 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9757 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9758 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9759 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9761 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9763 * stabsread.h (process_later, resolve_cfront_continuation):
9765 Update copyright years.
9766 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9767 Update copyright year.
9768 * dbxread.c(struct cont_elem): Obsolete.
9769 (process_later, process_now): Obsolete functions.
9770 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9771 Update copyright year.
9772 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9773 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9774 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9775 (parse_partial_symbols): Obsolete cfront support.
9777 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9779 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9780 read_cfront_baseclasses, read_cfront_member_functions,
9781 resolve_cfront_continuation,read_cfront_static_fields,
9782 copy_cfront_struct_fields): Obsolete functions.
9783 (define_symbol, read_one_struct_field): Obsolete cfront support.
9784 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9785 Update Copyright year.
9787 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9789 * stack.c (print_frame_info, print_stack_frame_base_stub,
9790 print_stack_frame_base, show_and_print_stack_frame_stub,
9791 show_and_print_stack_frame, print_only_stack_frame_stub,
9792 print_only_stack_frame): Delete functions.
9793 (print_stack_frame_stub): Call print_frame_info instead of
9794 print_frame_info_base.
9795 (print_frame_info_base): Rename to print_frame_info.
9796 (backtrace_command_1): Call print_frame_info, instead of
9797 print_frame_info_base.
9798 (current_frame_command): Call print_stack_frame, instead of
9799 print_only_stack_frame.
9800 (frame_command): Call print_stack_frame, instead of
9801 show_and_print_stack_frame.
9802 (up_command): Ditto.
9803 (down_command): Ditto.
9804 * frame.h (print_only_stack_frame): Delete prototype.
9805 * infrun.c (normal_stop): Call print_stack_frame, instead of
9806 show_and_print_stack_frame.
9807 * thread.c (info_threads_command): Call print_stack_frame, instead
9808 of print_only_stack_frame.
9810 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9812 * README (Graphical interface to GDB): Update URL. Point at
9815 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
9818 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9820 * symtab.c (find_pc_sect_line): Don't consider end-of-function
9823 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9825 * thread-db.c (attach_thread): Prototype.
9826 (struct private_thread_info): Remove lwpid. Add thread handle (th),
9827 thread information (ti), and valid flags (th_valid, ti_valid).
9828 (attach_thread): Move target_pid_to_str call to after the thread
9829 is added to GDB's list. Initialize the cache.
9830 (thread_get_info_callback, thread_db_map_id2thr)
9831 (thread_db_get_info): New functions.
9832 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9833 (thread_db_store_registers, thread_db_thread_alive)
9834 (thread_db_get_thread_local_address): Use them.
9835 (thread_db_pid_to_str): Likewise. Return "Missing" instead
9836 of calling error() for threads in unknown state.
9838 (clear_lwpid_callback): New function.
9839 (thread_db_resume): Use it to clear the cache.
9841 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9843 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9844 (resume_callback): Remove dead code.
9846 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9848 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
9850 * gdbarch.h, gdbarch.c: Regenerate.
9851 * stack.c (frame_info): Only initialize the saved registers when
9852 FRAME_INIT_SAVED_REGS_P.
9853 * frame.c (frame_saved_regs_register_unwind): Assert
9854 FRAME_INIT_SAVED_REGS_P.
9855 (deprecated_generic_get_saved_register): Ditto.
9857 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9859 * source.c (openp): Squelch warning about "filename".
9861 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9863 * source.c (openp): If the file does not exist don't necessarily
9866 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9869 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
9870 (integer_types_same_name_p): New function.
9871 (rank_one_type): Use it.
9872 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
9874 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9876 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
9878 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
9879 * configure.in: Add --with-sysroot.
9880 * configure: Regenerated.
9881 * main.c (gdb_sysroot): New variable.
9882 (captured_main): Initialize gdb_sysroot.
9883 * defs.h (gdb_sysroot): New extern declaration.
9884 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
9886 2003-01-12 Michael Chastain <mec@shout.net>
9888 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
9890 2003-01-12 Michael Chastain <mec@shout.net>
9892 * top.c (print_gdb_version): Bump copyright year to 2003.
9894 2003-01-12 David Carlton <carlton@bactrian.org>
9896 * linespec.c (symtab_from_filename): Rename variable 's' to
9899 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9901 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
9903 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
9905 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9907 * d10v-tdep.c: Include "gdb_assert.h".
9908 (d10v_store_return_value): Rewrite to match current interface.
9909 (d10v_extract_struct_value_address): Ditto.
9910 (d10v_extract_return_value): Ditto.
9911 (d10v_gdbarch_init): Set store_restore_value,
9912 extract_struct_value_address and extract_return_value.
9914 2003-01-12 J. Brobecker <brobecker@gnat.com>
9916 * hpread.c (set_namestring): New procedure replacing the
9917 SET_NAMESTRING macro.
9918 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
9919 by calls to set_namestring.
9921 2003-01-11 J. Brobecker <brobecker@gnat.com>
9923 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
9924 a compilation warning.
9925 (hpread_process_one_debug_symbol): Likewise.
9927 2003-01-10 David Carlton <carlton@math.stanford.edu>
9929 * linespec.c (decode_line_1): Rename variable 's' to
9931 (decode_all_digits): Rename argument 's' to 'file_symtab'.
9932 (decode_dollar): Ditto.
9933 (decode_variable): Ditto.
9934 (symbol_found): Ditto.
9936 2003-01-09 Michael Chastain <mec@shout.net>
9938 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
9940 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
9942 * win32-nat.c (set_process_privilege): New function.
9943 (child_attach): Call set_process_privilege() to enable the
9944 SE_DEBUG_NAME user privilege if available in process token.
9946 2003-01-10 J. Brobecker <brobecker@gnat.com>
9948 * hpread.c (hpread_process_one_debug_symbol): Fix a small
9949 compilation error in the previous revision.
9951 2003-01-09 David Carlton <carlton@math.stanford.edu>
9953 * linespec.c: Update copyright.
9955 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
9957 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
9959 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
9961 2003-01-09 Andrew Cagney <ac131313@redhat.com>
9963 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
9965 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
9966 (frame_saved_regs_zalloc): Update.
9967 (frame_saved_regs_register_unwind): Update.
9968 (create_new_frame): Update.
9969 (get_prev_frame): Update.
9970 (frame_extra_info_zalloc): Update.
9971 (deprecated_get_frame_saved_regs): Update.
9972 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
9973 * cris-tdep.c: Update comment.
9975 * somsolib.h: Fix function indentation.
9976 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
9977 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
9978 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
9979 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
9980 * somsolib.c, inftarg.c: Remove assignment in if conditional.
9982 * infrun.c (follow_fork): Use ISO C definition.
9983 * expprint.c (print_subexp): Use xfree instead of free.
9984 * charset.c: Include "gdb_string.h" instead of <string.h>.
9985 (register_iconv_charsets): Use ISO C definition.
9986 (host_charset, target_charset): Ditto.
9987 * Makefile.in (charset.o): Update dependencies.
9988 (mi-cmd-env.o): Update dependencies.
9990 2003-01-08 Andrew Cagney <cagney@redhat.com>
9992 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
9995 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9997 * gdb_mbuild.sh: Add --keep option. When specified, keep the
9998 build directories. Save edited gdb output in Mbuild.log. If a
9999 build fails, remove any final GDB executable.
10001 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10003 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10004 replacing hex constants with function names and stripping leading
10005 file name directory prefixes.
10007 2003-01-08 Andrew Cagney <cagney@redhat.com>
10009 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10012 2003-01-08 David Carlton <carlton@math.stanford.edu>
10014 * linespec.c (decode_line_1): Move code into decode_variable.
10015 (decode_variable): New function.
10017 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10019 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10021 2003-01-08 Andrew Cagney <cagney@redhat.com>
10023 * cris-tdep.c (cris_frame_init_saved_regs): Use
10024 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10026 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10027 (sh64_nofp_frame_init_saved_regs): Ditto.
10028 (sh_fp_frame_init_saved_regs): Ditto.
10029 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10030 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10031 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10032 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10034 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10036 * minsyms.c (lookup_minimal_symbol): Update comment.
10037 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10038 (lookup_minimal_symbol_solib_trampoline): Likewise.
10040 2003-01-08 Andrew Cagney <cagney@redhat.com>
10042 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10043 frame_relative_level.
10045 * alpha-tdep.c: Use get_frame_extra_info.
10046 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10047 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10048 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10049 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10051 * alpha-tdep.c: Use get_next_frame.
10052 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10053 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10054 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10055 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10056 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10057 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10058 * xstormy16-tdep.c: Ditto.
10060 2003-01-07 Andrew Cagney <cagney@redhat.com>
10062 * alpha-tdep.c: Use get_frame_base.
10063 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10064 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10065 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10066 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10067 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10068 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10069 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10070 * config/sparc/tm-sparc.h: Ditto.
10072 2003-01-07 Andrew Cagney <cagney@redhat.com>
10074 * frame.c (deprecated_get_frame_context): New function.
10075 (deprecated_set_frame_context): New function.
10076 * frame.h (deprecated_get_frame_context): Declare.
10077 (deprecated_set_frame_context): Declare.
10078 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10079 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10081 2003-01-07 Andrew Cagney <cagney@redhat.com>
10083 * frame.c (deprecated_set_frame_next_hack): New function.
10084 (deprecated_set_frame_prev_hack): New function.
10085 * frame.h (deprecated_set_frame_next_hack): Declare.
10086 (deprecated_set_frame_prev_hack): Declare.
10087 * mcore-tdep.c (analyze_dummy_frame): Use
10088 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10089 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10091 2003-01-07 David Carlton <carlton@math.stanford.edu>
10093 * linespec.c (decode_line_1): Move code into decode_dollar.
10094 (decode_dollar): New function.
10096 2003-01-07 Andrew Cagney <cagney@redhat.com>
10098 * arm-tdep.c (arm_init_extra_frame_info): Use
10099 deprecated_update_frame_base_hack.
10100 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10101 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10102 (fix_frame_pointer): Ditto.
10103 (mn10300_analyze_prologue): Ditto.
10105 2003-01-07 Andrew Cagney <cagney@redhat.com>
10107 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10108 extra_info using frame_extra_info_zalloc.
10109 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10110 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10111 (sh64_init_extra_frame_info): Ditto.
10112 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10113 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10114 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10115 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10116 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10117 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10118 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10119 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10120 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10121 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10122 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10123 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10125 * mn10300-tdep.c (analyze_dummy_frame): Use
10126 deprecated_set_frame_extra_info_hack.
10127 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10129 2003-01-07 J. Brobecker <brobecker@gnat.com>
10131 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10132 class is not scText. These do not define "real" procedures.
10133 (parse_partial_symbols): Likewise.
10135 2003-01-06 Michael Snyder <msnyder@redhat.com>
10137 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10139 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10141 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10142 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10143 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10144 deprecated_frame_xmalloc_with_cleanup.
10145 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10146 deprecated_frame_xmalloc.
10147 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10148 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10150 2003-01-06 Andrew Cagney <cagney@redhat.com>
10152 * x86-64-linux-tdep.c: Include "osabi.h".
10153 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10155 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10157 2003-01-06 Andrew Cagney <cagney@redhat.com>
10159 * MAINTAINERS (Target Instruction Set Architectures): Update
10160 arm-elf. Can be built with -Werror, has been multiarched.
10162 * value.h (unpack_long): Make buffer parameter constant.
10163 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10164 * scm-lang.h (scm_parse): Ditto.
10165 * defs.h (extract_typed_address, extract_address): Ditto.
10166 (extract_long_unsigned_integer): Ditto.
10167 * inferior.h (unsigned_pointer_to_address): Ditto.
10168 (signed_pointer_to_address): Ditto.
10169 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10170 * gdbarch.h, gdbarch.c: Regenerate.
10171 * findvar.c (extract_long_unsigned_integer): Update.
10172 (extract_address): Update.
10173 (extract_typed_address): Update.
10174 (unsigned_pointer_to_address): Update.
10175 * values.c (unpack_long): Update.
10176 (unpack_double): Update.
10177 (unpack_pointer): Update.
10178 (unpack_field_as_long): Update.
10179 * d10v-tdep.c (d10v_pointer_to_address): Update.
10180 * avr-tdep.c (avr_pointer_to_address): Update.
10181 * scm-lang.c (scm_unpack): Update.
10182 * findvar.c (signed_pointer_to_address): Update.
10184 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10186 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10187 since it is in i386-tdep.c.
10189 2003-01-06 J. Brobecker <brobecker@gnat.com>
10191 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10192 failure introduced in the previous change.
10194 2003-01-05 Michael Chastain <mec@shout.net>
10196 * README: Remove references to deleted remote-*.c files:
10197 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10198 remote-nrom.c, remote-os9k.c, remote-udi.c.
10200 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10202 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10203 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10204 i386_get_longjmp_target.
10206 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10208 * arm-tdep.c (prologue_cache): Change to a pointer.
10209 (_initialize_arm_tdep): Allocate prologue_cache.
10210 (check_prologue_cache): Update.
10211 (save_prologue_cache): Update.
10212 (arm_gdbarch_init): Update.
10214 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10216 * stabsread.c (update_method_name_from_physname): Call complaint()
10219 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10221 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10222 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10223 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10225 * blockframe.c: Include "gdbcmd.h" and "command.h".
10226 (backtrace_below_main): New variable.
10227 (file_frame_chain_valid, func_frame_chain_valid)
10228 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10229 (generic_func_frame_chain_valid): Remove functions.
10230 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10231 (_initialize_blockframe): New function.
10232 * Makefile.in (blockframe.o): Update dependencies.
10233 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10234 comment. Call frame_chain_valid ().
10235 * frame.h: Remove old prototypes. Add prototype for
10236 frame_chain_valid and update comments to match.
10237 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10238 Remove old comment.
10239 * gdbarch.h: Regenerated.
10240 * gdbarch.c: Regenerated.
10242 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10243 set_gdbarch_frame_chain_valid.
10244 * avr-tdep.c (avr_gdbarch_init): Likewise.
10245 * cris-tdep.c (cris_gdbarch_init): Likewise.
10246 * frv-tdep.c (frv_gdbarch_init): Likewise.
10247 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10248 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10249 (i386_nw_init_abi): Likewise.
10250 (i386_gdbarch_init): Likewise.
10251 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10252 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10253 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10254 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10255 * mips-tdep.c (mips_gdbarch_init): Likewise.
10256 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10257 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10258 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10259 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10260 * s390-tdep.c (s390_gdbarch_init): Likewise.
10261 * sh-tdep.c (sh_gdbarch_init): Likewise.
10262 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10263 * v850-tdep.c (v850_gdbarch_init): Likewise.
10264 * vax-tdep.c (vax_gdbarch_init): Likewise.
10265 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10267 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10268 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10269 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10270 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10271 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10272 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10273 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10274 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10276 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10278 * Makefile.in (acconfig_h): Remove incorrect macro.
10279 (config_h): Define.
10280 (osabi.o): Update dependencies.
10281 * configure.tgt: Set gdb_osabi based on target triplet.
10282 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10283 * configure: Regenerated.
10284 * config.in: Regenerated.
10285 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10286 (GDB_OSABI_DEFAULT): Define if not already defined.
10287 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10288 (set_osabi_string): New variables.
10289 (gdbarch_register_osabi): Add new OS ABI to
10290 gdb_osabi_available_names.
10291 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10292 (set_osabi, show_osabi): New functions.
10293 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10295 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10297 * arch-utils.c (gdbarch_info_init): Set osabi to
10298 GDB_OSABI_UNINITIALIZED.
10299 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10300 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10301 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10302 * gdbarch.c: Regenerated.
10303 * gdbarch.h: Regenerated.
10304 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10306 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10307 * osabi.h (enum gdb_osabi): Move to defs.h.
10308 (gdbarch_init_osabi): Update prototype.
10309 * defs.h (enum gdb_osabi): Moved here.
10310 * Makefile.in: Update dependencies.
10312 * alpha-tdep.h: Don't include "osabi.h".
10313 (struct gdbarch_tdep): Remove osabi member.
10314 * alpha-tdep.c: Include "osabi.h".
10315 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10316 iterate over arches. Update call to gdbarch_init_osabi.
10317 (alpha_dump_tdep): Don't dump osabi.
10318 * alpha-linux-tdep.c: Include "osabi.h".
10319 * alpha-osf1-tdep.c: Include "osabi.h".
10320 * alphafbsd-tdep.c: Include "osabi.h".
10321 * alphanbsd-tdep.c: Include "osabi.h".
10323 * arm-tdep.h: Don't include "osabi.h".
10324 (struct gdbarch_tdep): Remove osabi member.
10325 * arm-tdep.c: Include "osabi.h".
10326 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10327 iterate over arches. Update call to gdbarch_init_osabi.
10328 (arm_dump_tdep): Don't dump osabi.
10329 * arm-linux-tdep.c: Include "osabi.h".
10330 * armnbsd-tdep.c: Include "osabi.h".
10332 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10333 Update call to gdbarch_init_osabi.
10335 * i386-tdep.h: Don't include "osabi.h".
10336 (struct gdbarch_tdep): Remove osabi member.
10337 * i386-tdep.c: Include "osabi.h".
10338 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10339 iterate over arches. Update call to gdbarch_init_osabi.
10340 (i386_dump_tdep): Don't dump osabi.
10341 * i386-linux-tdep.c: Include "osabi.h".
10342 * i386-sol2-tdep.c: Include "osabi.h".
10343 * i386bsd-tdep.c: Include "osabi.h".
10344 * i386gnu-tdep.c: Include "osabi.h".
10345 * i386ly-tdep.c: Include "osabi.h".
10346 * i386nbsd-tdep.c: Include "osabi.h".
10347 * i386obsd-tdep.c: Include "osabi.h".
10349 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10350 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10351 check osabi when iterating over arches. Update call to
10352 gdbarch_init_osabi.
10353 (mips_dump_tdep): Don't dump osabi.
10355 * ns32k-tdep.h: Don't include "osabi.h".
10356 (struct gdbarch_tdep): Remove.
10357 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10358 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10359 allocate tdep. Update call to gdbarch_init_osabi.
10360 (ns32k_dump_tdep): Remove.
10361 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10362 * ns32knbsd-tdep.c: Include "osabi.h".
10364 * ppc-tdep.h: Don't include "osabi.h".
10365 (struct gdbarch_tdep): Remove osabi member.
10366 * rs6000-tdep.c: Include "osabi.h".
10367 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10368 osabi when iterating over arches. Update call to
10369 gdbarch_init_osabi.
10370 (rs6000_dump_tdep): Don't dump osabi.
10371 * ppc-linux-tdep.c: Include "osabi.h".
10372 * ppcnbsd-tdep.c: Include "osabi.h".
10374 * sh-tdep.h: Don't include "osabi.h".
10375 (struct gdbarch_tdep): Remove osabi member.
10376 * sh-tdep.c: Include "osabi.h".
10377 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10378 iterate over arches. Update call to gdbarch_init_osabi.
10379 (sh_dump_tdep): Don't dump osabi.
10380 * shnbsd-tdep.c: Include "osabi.h".
10382 * sparc-tdep.c: Include "osabi.h".
10383 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10384 iterate over arches. Update call to gdbarch_init_osabi.
10385 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10388 * vax-tdep.h: Don't include "osabi.h".
10389 (struct gdbarch_tdep): Remove.
10390 * vax-tdep.c: Include "osabi.h".
10391 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10392 iterate over arches. Don't allocate tdep. Update call
10393 to gdbarch_init_osabi.
10394 (vax_dump_tdep): Remove.
10395 (_initialize_vax_tdep): Update call to gdbarch_register.
10397 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10399 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10401 (breakpoint_re_set_one): Don't fetch the value for a disabled
10404 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10406 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10407 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10408 (COERCE_FLOAT_TO_DOUBLE): Remove.
10409 * gdbarch.c: Regenerate.
10410 * gdbarch.h: Regenerate.
10411 * Makefile.in: Remove value_h from gdbarch_h.
10412 * valops.c (coerce_float_to_double): New variable.
10413 (default_coerce_float_to_double): Remove.
10414 (standard_coerce_float_to_double): Remove.
10415 (value_arg_coerce): Use coerce_float_to_double.
10416 (_initialize_valops): Add "set coerce-float-to-double".
10417 * value.h (default_coerce_float_to_double): Remove prototype.
10418 (standard_coerce_float_to_double): Remove prototype.
10420 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10422 * mdebugread.c (parse_symbol): Likewise.
10423 * stabsread.c (define_symbol): Mark all functions as prototyped.
10425 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10426 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10427 set_gdbarch_coerce_float_to_double.
10428 * arm-tdep.c (arm_gdbarch_init): Likewise.
10429 * frv-tdep.c (frv_gdbarch_init): Likewise.
10430 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10431 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10432 * mips-tdep.c (mips_gdbarch_init): Likewise.
10433 (mips_coerce_float_to_double): Remove.
10434 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10435 (rs6000_coerce_float_to_double): Remove.
10436 * s390-tdep.c (s390_gdbarch_init): Likewise.
10437 * sh-tdep.c (sh_gdbarch_init): Likewise.
10438 (sh_coerce_float_to_double): Remove.
10439 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10440 (sparc_coerce_float_to_double): Remove.
10441 * v850-tdep.c (v850_gdbarch_init): Likewise.
10442 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10443 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10444 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10445 (hppa_coerce_float_to_double): Remove prototype.
10446 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10448 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10450 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10452 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10454 Suggested by Stewart Brown <sb24@avaya.com>:
10455 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10456 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10457 (c_type_print_varspec_suffix): Likewise.
10459 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10461 * configure.in: Don't set and AC_SUBST SUBDIRS.
10462 * configure: Regenerated.
10464 * configure.in: Remove code dealing with shared libraries.
10465 * Makefile.in: Remove HLDFLAGS and HLDENV.
10466 * configure: Regenerated.
10468 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10470 * frame.c (deprecated_frame_xmalloc): New function.
10471 (deprecated_set_frame_saved_regs_hack): New function.
10472 (deprecated_set_frame_extra_info_hack): New function.
10473 * frame.h (deprecated_frame_xmalloc): Declare.
10474 (deprecated_set_frame_saved_regs_hack): Declare.
10475 (deprecated_set_frame_extra_info_hack): Declare.
10477 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10479 * configure.in: Move code that provides the --enable-gdbtk option
10480 right after the code that handles the --enable-tui option, and
10481 polish it somewhat.
10482 * configure: Regenerated.
10484 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10485 AC_CHECK_FUNCS and remove the old check for pread64.
10486 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10487 * acconfig.h (_GNU_SOURCE): Add.
10488 (HAVE_PREAD64): Remove.
10489 * configure, aclocal.m4, config.in: Regenerated.
10491 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10493 * alpha-tdep.c: Use get_frame_saved_regs.
10494 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10495 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10496 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10497 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10498 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10500 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10502 * configure.in: Remove all use of the SUBDIRS variable; add
10503 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10504 code providing the --enable-multi-ice option, and move it right in
10505 front of the code that checks whether gdbserver is supported.
10507 * configure: Regenerated.
10508 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10511 2003-01-03 Andrew Cagney <cagney@redhat.com>
10513 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10514 * avr-tdep.c, cris-tdep.c: Ditto.
10515 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10516 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10518 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10520 * configure.in: Remove --enable-netrom option.
10521 * configure: Regenerated.
10523 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10525 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10526 declaration for `struct re_pattern_buffer' instead.
10527 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10529 2003-01-03 J. Brobecker <brobecker@gnat.com>
10531 * mdebugread.c (parse_symbol): Count until the stEnd matching
10532 the structure name.
10534 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10536 * configure.in: Remove --with-cpu option.
10537 subscripts. Remove evil changequotes here.
10538 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10539 * config.in, configure: Regenerated.
10541 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10542 * configure.in: Cleanup section that sources GDB and BFD configure
10543 subscripts. Remove evil changequotes here.
10544 * config.in, configure: Regenerated.
10546 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10548 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10549 frame accessor methods.
10550 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10551 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10552 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10553 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10554 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10555 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10556 * z8k-tdep.c: Ditto.
10558 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10560 * configure.in: Remove UI_OUT configuration code.
10561 * ada-lang.c: Update assuming UI_OUT is always true.
10562 * Makefile.in (UIOUT_CFLAGS): Remove.
10563 * configure: Regenerated.
10564 * TODO: Remove blurb about elimination of -DUI_OUT.
10566 * configure.in: Move code that provides the --enable-gdbcli,
10567 --enable-gdbmi options right before the code that handles the
10568 --enable-tui option. Polish a bit.
10569 * configure: Regenerated.
10571 * configure.in: Rewrite check for GNU regex and the
10572 --without-included regex option, and move it into the "Checks for
10573 library functions" section. This makes us use the system regex
10574 again by default on systems with version 2 of the GNU C library.
10575 This was apparently broken.
10576 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10577 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10578 * config.in, configure: Regenerated.
10580 * configure.in: Move code that provides the --enable-tui option
10581 before the "Checks for libraries" section. Polish the code
10582 somewhat and set need_curses to yes if we build the TUI. Rewrite
10583 code that looks for a library providing termcap functionality to
10584 match more closely what's done in the Readline library, and move
10585 it into to the "Checks for libraries" section.
10586 * configure: Regenerated.
10587 * Makefile.in (TERMCAP): Remove variable.
10588 * config/i386/go32.mh (TERMCAP): Remove variable.
10590 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10592 * MAINTAINERS: Mention gdb_mbuild.sh.
10593 * gdb_mbuild.sh: Rewrite.
10595 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10597 * configure.in: Fix typo in last change.
10598 * config.in, configure: Regenerated.
10600 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10602 * valarith.c (value_binop): Delete obsolete code and comments.
10603 * configure.host: Ditto.
10604 * buildsym.h (make_blockvector): Ditto.
10605 * buildsym.c (make_blockvector): Ditto.
10606 * defs.h (enum language): Ditto.
10607 (chill_demangle): Ditto.
10608 * elfread.c (elf_symtab_read): Ditto.
10609 * dwarfread.c (CHILL_PRODUCER): Ditto.
10610 (set_cu_language): Ditto.
10611 (handle_producer): Ditto.
10612 * expprint.c (print_subexp): Ditto.
10613 * gdbtypes.c (chill_varying_type): Ditto.
10614 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10615 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10616 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10617 (chill_varying_type): Ditto.
10618 * language.h (_LANG_chill): Ditto.
10619 * language.c (binop_result_type, integral_type): Ditto.
10620 (character_type, string_type, structured_type): Ditto.
10621 (lang_bool_type, binop_type_check): Ditto.
10622 * stabsread.h (os9k_stabs): Ditto.
10623 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10624 (define_symbol, read_type, read_struct_fields): Ditto.
10625 (read_array_type, read_enum_type, read_huge_number): Ditto.
10626 (read_range_type, start_stabs): Ditto.
10627 * symfile.c (init_filename_language_table): Ditto.
10628 (add_psymbol_with_dem_name_to_list): Ditto.
10629 * symtab.c (symbol_init_language_specific): Ditto.
10630 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10631 * symtab.h (struct general_symbol_info): Ditto.
10632 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10633 * typeprint.c (typedef_print): Ditto.
10634 * utils.c (fprintf_symbol_filtered): Ditto.
10635 * valops.c (value_cast, search_struct_field, value_slice): Delete
10637 (varying_to_slice): Delete function.
10638 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10639 (varying_to_slice): Delete declaration.
10640 * MAINTAINERS: Update.
10642 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10644 * configure.in: Reorganize "Checks for library functions section"
10645 a bit. Remove check for `btowc' and `isascii' functions.
10646 * configure: Regenerated.
10648 * acconfig.h (_MSE_INT_H): Remove.
10649 * configure.in: Create "Checks for header files" section, and move
10650 appropriate tests there. Don't check for objlist.h, wchar.h,
10651 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10652 misdetection fix. Also add "Checks for types", "Checks for
10653 compiler characteristics" and "Checks for library functions"
10655 * config.in, configure: Regenerated.
10657 * configure.in: Create "Checks for programs" section, and move
10658 appropriate tests there.
10660 2003-01-01 Mark Kettenis <kettenis@gnu.org>
10662 * configure.in: Create "Checks for libraries" section, and move
10663 appropriate tests there. Cleanup check for wctype in libw. Use
10664 AC_SEARCH_LIBS to see whether we need libsocket.
10665 * configure: Regenerated.
10667 For older changes see ChangeLog-2002
10673 version-control: never