1 2003-07-06 Christopher Faylor <cgf@redhat.com>
3 * win32-nat.c (solib_symbols_add): Use one variable for all section
4 address stuff. Pass variable rather than address of variable to
7 2003-07-06 Andreas Schwab <schwab@suse.de>
9 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
11 2003-07-04 Joel Brobecker <brobecker@gnat.com>
13 * rs6000-nat.c (vmap_symtab): Fix compilation error.
15 2003-07-04 Kris Warkentin <kewarken@qnx.com>
17 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
19 2003-07-04 Kris Warkentin <kewarken@qnx.com>
21 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
22 * config/i386/nto.mh: New file.
23 * config/i386/nm-nto.h: New file.
24 * configure.host: Add i[3456]86-*-nto*.
26 2003-07-03 Joel Brobecker <brobecker@gnat.com>
28 * remote-vx.c (vx_add_symbols): Fix compilation error.
30 2003-07-03 Andrew Cagney <cagney@redhat.com>
32 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
33 * gdbarch.h, gdbarch.c: Re-generate.
34 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
35 (legacy_register_name): Declare.
36 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
37 (REGISTER_NAME): Define.
38 * sparc-tdep.c (legacy_register_name): New function.
39 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
40 (REGISTER_NAME): Define.
41 (hppa64_register_name): Declare.
42 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
43 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
44 (hppa64_register_name): New function.
45 (hppa_register_name): New function.
46 * arch-utils.c (legacy_register_name): Delete.
47 * arch-utils.h (legacy_register_name): Delete.
49 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
51 * cli/cli-interp.c (cli_interpreter_resume): Update the
52 cli_uiout's stream to gdb_stdout.
54 2003-07-03 Andrew Cagney <cagney@redhat.com>
56 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
58 * gdbarch.h, gdbarch.c: Re-generate.
59 * regcache.c (init_regcache_descr): Use legacy code when either
60 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
62 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
64 * NEWS: Move "set logging" entry into GDB 6.0 section.
66 2003-07-02 Jim Blandy <jimb@redhat.com>
68 * s390-tdep.c (struct frame_extra_info): new member:
70 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
71 initialize fextra_info->stack_bought.
72 (s390_frameless_function_invocation): Don't trust the value of
73 fextra_info_ptr->stack_bought unless
74 fextra_info->stack_bought_valid is set.
76 New S390 prologue analyzer.
77 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
78 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
79 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
80 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
81 compute_x_addr, s390_on_stack, s390_store,
82 s390_get_signal_frame_info): New functions.
83 (S390_NUM_SPILL_SLOTS): New macro.
84 (s390_get_frame_info): Rewritten.
85 (is_arg_reg): Deleted.
87 Break out the decoding of S/390 instructions into separate
88 functions, to make it more legible, and easier to check
90 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
91 is_rx, is_rxe): New functions.
92 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
93 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
94 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
95 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
96 enums for opcode values. (Is this an improvement?)
98 2003-07-02 Andrew Cagney <cagney@redhat.com>
100 * i386-tdep.c: Revert change committed as part of trad-frame code
103 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
105 * breakpoint.c (insert_catchpoint): Make static.
107 2003-07-02 Andreas Schwab <schwab@suse.de>
109 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
110 former ia64_push_arguments and ia64_push_return_address, and use
111 regcache functions instead of read/write_register.
112 (ia64_gdbarch_init): Set push_dummy_call instead of
113 deprecated_push_arguments and deprecated_push_return_address.
115 2003-07-01 Andreas Jaeger <aj@suse.de>
117 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
119 Set %rax only to number of SSE registers used.
121 2003-07-01 Andrew Cagney <cagney@redhat.com>
123 * trad-frame.h: Update comments, a -1 .addr is reserved.
124 (trad_frame_value_p, trad_frame_addr_p): Declare.
125 (trad_frame_reg_p): Declare.
126 (trad_frame_set_value): Rename trad_frame_register_value.
127 (trad_frame_set_unknown): Declare.
128 * trad-frame.c (trad_frame_realreg_p): New function.
129 (trad_frame_addr_p, trad_frame_value_p): New function.
130 (trad_frame_set_unknown): New function.
131 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
132 (trad_frame_prev_register): Use trad_frame_realreg_p,
133 trad_frame_addr_p and trad_frame_value_p.
134 (trad_frame_set_value): Rename trad_frame_register_value.
135 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
136 and trad_frame_set_value.
138 2003-06-30 Jim Blandy <jimb@redhat.com>
140 Patch from IBM (authors unspecified, probably Ulrich Weigand and
141 Gerhard Tonn) for argument passing on the S/390 and S/390x:
142 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
143 for 16 registers, and then 32 more bytes.
144 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
146 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
147 Move up in the file, since it's now used by is_simple_arg.
148 (is_simple_arg): Don't assume registers are four bytes long.
149 Exclude all double arguments. Extended floats are not simple
151 (is_power_of_two): New function.
152 (pass_by_copy_ref): Call is_power_of_two, and check that the
153 length fits in a register, rather than listing all the acceptable
154 sizes. Extended floats are not passed by reference.
155 (s390_push_arguments): Don't assume registers are four bytes long.
156 Reserve an argument register to point to the buffer for structures
157 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
158 S390_STACK_FRAME_OVERHEAD.
160 2003-06-30 Andreas Schwab <schwab@suse.de>
162 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
163 format error message.
165 2003-06-30 Joel Brobecker <brobecker@gnat.com>
167 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
169 2003-06-30 David Carlton <carlton@kealia.com>
171 Band-aid for PR c++/1245.
172 * Makefile.in (cp-support.o): Depend on complaints_h.
173 * cp-support.c: Include complaints.h. Add declaration for
175 (cp_find_first_component): Separate code into
176 cp_find_first_component_aux.
177 (cp_find_first_component_aux): Call demangled_name_complaint.
178 (demangled_name_complaint): New.
180 2003-06-30 Andrew Cagney <cagney@redhat.com>
182 * remote.c (remote_write_bytes): Explicitly compute and then use
183 the payload size. Update comments to reflect. Fixes problem of
184 GDB not sending small packets as found by Fred Fish.
186 2003-06-30 Andrew Cagney <cagney@redhat.com>
188 * remote.c (remote_async_wait): Fix -Wformat problem.
190 2003-06-29 Andrew Cagney <cagney@redhat.com>
192 * remote.c (remote_wait): Call error, and not warning, when the
194 (remote_async_wait): Ditto.
196 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
198 * sparc-tdep.c (sparc_y_regnum): Make external again.
200 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
202 * cli/cli-logging.c (pop_output_files): Add void to function
205 2003-06-29 Andrew Cagney <cagney@redhat.com>
207 * frame.c (frame_register_unwind): Use unsigned char when dumping
210 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
212 * cli/cli-logging.c: New file.
213 * cli-out.c (struct ui_out_data): Add original_stream.
214 (cli_redirect): New function.
215 (cli_ui_out_impl): Add cli_redirect.
216 (cli_out_new): Initialize original_stream.
217 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
218 (uo_redirect, ui_out_redirect): New.
219 * ui-out.h (struct ui_out_impl): Add redirect member.
220 (redirect_ftype): New.
221 (ui_out_redirect): Add prototype.
222 * Makefile.in: Add rules for cli-logging.c.
223 * NEWS: Mention "set logging".
225 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
227 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
229 2003-06-27 Andrew Cagney <cagney@redhat.com>
231 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
232 (m68hc11_gdbarch_init): Do not set call_dummy_address.
233 * avr-tdep.c (avr_call_dummy_address): Delete function.
234 (avr_gdbarch_init): Do not set call_dummy_address.
236 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
238 * symfile.c (syms_from_objfile): Move variables to inner block.
239 Move the checks for the non-mainline case a bit earlier to avoid
240 doing some useless computations.
242 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
244 * dwarfread.c (decode_modified_type): Gag new compiler warning.
246 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
248 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
251 2003-06-26 Michael Chastain <mec@shout.net>
253 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
254 gdb/testsuite/gdb.c++/pr-1210.exp.
256 2003-06-26 Andrew Cagney <cagney@redhat.com>
258 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
259 altivec_expression.h and altivec_registers.h.
261 2003-06-26 Andrew Cagney <cagney@redhat.com>
263 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
264 info->mach when MIPS16. Patch suggested by Fred Fish.
266 2003-06-26 Andrew Cagney <cagney@redhat.com>
268 * utils.c (internal_vproblem): Print the problem to a reason
269 buffer and then pass to query. Make the msg variable more local.
271 2003-06-26 Andrew Cagney <cagney@redhat.com>
273 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
274 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
275 * gdbarch.h, gdbarch.c: Re-generate.
276 * frame-base.c (default_frame_args_address): Update. Use
277 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
279 (default_frame_locals_address): Ditto for
280 DEPRECATED_FRAME_LOCALS_ADDRESS.
281 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
282 (vax_frame_num_args): Update.
283 (vax_gdbarch_init): Update.
284 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
285 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
286 * mcore-tdep.c (mcore_gdbarch_init): Update.
287 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
288 * ia64-tdep.c (ia64_gdbarch_init): Update.
289 * symtab.h (address_class): Update comments.
290 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
291 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
292 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
293 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
294 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
295 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
296 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
297 * alpha-mdebug-tdep.c: Update.
298 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
300 2003-06-26 Andreas Jaeger <aj@suse.de>
302 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
303 of SSE registers so that varargs functions work. Rework handling
304 of passing arguments on the stack.
305 (x86_64_store_return_value): Return double and float values in SSE
308 2003-06-24 Michael Chastain <mec@shout.net>
310 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
311 the "constructor breakpoints ignored" bug.
313 2003-06-25 David Carlton <carlton@kealia.com>
315 * MAINTAINERS: Update e-mail address.
317 2003-06-24 Jim Blandy <jimb@redhat.com>
319 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
321 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
323 (ppc_linux_init_abi): Register it as the
324 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
326 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
327 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
330 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
331 (ppc64_standard_linkage_target): Use it.
333 2003-06-23 Andrew Cagney <cagney@redhat.com>
335 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
336 for 0 "int0" and 4 "int32" sized registers.
337 * gdbtypes.c (builtin_type_int0): Define.
338 (build_gdbtypes): Initialize builtin_type_int0.
339 * gdbtypes.h (builtin_type_int0): Declare.
341 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
343 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
344 as characters are unsigned.
346 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
349 * dwarfread.c (struct_type): Skip static fields without crashing.
351 2003-06-22 Andrew Cagney <cagney@redhat.com>
353 GDB 6.0 branch created.
355 * PROBLEMS: Update. Empty.
358 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
360 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
361 Suggested by Nick Hibma <n_hibma@webweaving.org>.
363 2003-06-22 Andrew Cagney <cagney@redhat.com>
365 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
366 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
369 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
371 * cli/cli-cmds.c (shell_escape): Silence warnings from old
374 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
376 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
377 argument of val_print.
378 * cp-valprint.c (cp_print_value): Don't add the offset parameter
379 to the address argument of baseclass_offset or target_read_memory.
380 Do add it to the argument of cp_print_value_fields.
382 2003-06-21 Andrew Cagney <cagney@redhat.com>
384 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
385 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
386 instead of 0..NUM_REGS.
387 (mips_register_reggroup_p): New function.
388 (mips_pseudo_register_write): New function.
389 (mips_pseudo_register_read): New function.
390 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
391 based on the register's type.
392 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
394 (mips_get_saved_register): Simplify. Assert that REGNO is a
396 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
397 (mips_register_type): Replace mips_register_virtual_type. Map
398 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
400 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
401 that the register is cooked / virtual.
402 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
403 Only get the extra info when needed.
404 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
405 (mips32_heuristic_proc_desc): Fetch the cooked register.
406 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
407 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
408 (mips_print_register): Use gdbarch_register_type, instead of
409 REGISTER_VIRTUAL_TYPE.
410 (print_gp_register_row): Use gdbarch_register_type, instead of
411 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
412 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
413 Print the pseudo / cooked registers.
414 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
415 Print the pseudo / cooked registers.
416 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
417 REG_NUM is pseudo / cooked.
418 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
419 (mips_n32n64_xfer_return_value): Ditto.
420 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
421 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
422 (mips_register_sim_regno): New function.
423 (mips_gdbarch_init): Set deprecated_register_byte,
424 register_group_p, pseudo_register_write, pseudo_register_read,
425 register_sim_regno, and num_pseudo_regs. Set register_type,
426 instead of register_virtual_type.
427 * Makefile.in (mips-tdep.o): Update dependencies.
428 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
429 REGISTER_VIRTUAL_TYPE.
430 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
431 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
432 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
433 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
434 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
436 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
438 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
439 * cli/cli-cmds.c: Include "gdb_vfork.h".
440 (shell_escape): Use vfork.
442 2003-06-21 Andrew Cagney <cagney@redhat.com>
444 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
445 32 bit floating-point register saves.
447 * frame.h (deprecated_unwind_get_saved_register): Delete.
448 * frame.c (deprecated_unwind_get_saved_register): Delete function.
449 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
450 and deprecated_get_next_frame_hack instead of
451 deprecated_unwind_get_saved_register.
453 * mips-tdep.c (mips_dump_tdep): Do not print
454 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
456 * frame.c (get_frame_register): New function.
457 (frame_unwind_register_signed): New function.
458 (get_frame_register_signed): New function.
459 (frame_unwind_register_unsigned): New function.
460 (get_frame_register_unsigned): New function.
461 * frame.h: Add comments on naming schema.
462 (get_frame_register, frame_unwind_register_signed): Declare.
463 (get_frame_register_signed, get_frame_register_signed): Declare.
464 (frame_unwind_register_unsigned): Declare.
465 (get_frame_register_unsigned): Declare.
467 2003-06-20 Theodore A. Roth <troth@openavr.org>
469 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
471 2003-06-20 Theodore A. Roth <troth@openavr.org>
473 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
474 (avr_read_sp): Ditto.
476 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
478 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
479 * config/arm/nm-linux.h: Likewise.
480 * config/arm/tm-linux.h: Likewise.
481 * config/ia64/nm-linux.h: Likewise.
482 * config/ia64/tm-ia64.h: Likewise.
483 * config/s390/tm-linux.h: Likewise.
484 * config/s390/tm-s390.h: Likewise.
485 * s390-nat.c: Likewise.
486 * s390-tdep.c: Likewise.
488 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
489 * config/ia64/linux.mt: Likewise.
490 * config/m68k/linux.mh: Likewise.
491 * config/mips/linux.mt: Likewise.
492 * config/powerpc/linux.mh: Likewise.
493 * config/sh/linux.mt: Likewise.
495 2003-06-19 Kris Warkentin <kewarken@qnx.com>
497 * solib.c (solib_open): Change tests for whether to search
498 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
501 2003-06-19 Theodore A. Roth <troth@openavr.org>
503 * avr-tdep.c (avr_frame_address): Delete function.
504 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
505 set_gdbarch_frame_args_address.
507 2003-06-19 Andrew Cagney <cagney@redhat.com>
509 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
510 (REGISTER_CONVERT_FROM_TYPE): Delete.
511 (mips_register_convert_to_type): Delete declaration.
512 (mips_register_convert_from_type): Delete declaration.
513 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
516 2003-06-19 Michael Snyder <msnyder@redhat.com>
518 * linux-nat.h: New file.
519 * linux-nat.c: Include linux-nat.h.
520 * lin-lwp.c: Include linux-nat.h.
521 Move struct lwp_info def to linux-nat.h.
522 * linux-proc.c: Include linux-nat.h.
523 (linux_make_note_section): Iterate over lwps instead of threads.
524 (linux_do_thread_registers): Use lwp instead of merged pid.
525 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
526 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
527 Add dependency on linux_nat_h.
529 2003-06-19 Theodore A. Roth <troth@openavr.org>
531 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
533 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
535 * varobj.c (get_type, get_target_type): Use check_typedef.
537 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
539 * breakpoint.c (insert_catchpoint): Call internal_error.
541 2003-06-19 Theodore A. Roth <troth@openavr.org>
543 * avr-tdep.c (avr_push_dummy_code): Delete function.
544 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
546 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
548 * arch-utils.c (default_prepare_to_proceed): Remove.
549 (generic_prepare_to_proceed): Remove.
550 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
551 (generic_prepare_to_proceed): Remove prototype.
552 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
553 * gdbarch.c: Regenerate.
554 * gdbarch.h: Regenerate.
555 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
556 * hppah-nat.c (hppa_switched_threads): Remove.
557 * infrun.c (prepare_to_proceed): New static function, copied from
558 generic_prepare_to_proceed. Remove select_it argument.
559 (proceed): Call prepare_to_proceed.
560 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
562 (ptrace_wait): Don't set the removed variables.
563 (hppa_switched_threads): Remove.
564 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
565 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
566 (lin_lwp_prepare_to_proceed): Remove prototype.
567 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
568 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
570 2003-06-18 Theodore A. Roth <troth@openavr.org>
572 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
574 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
575 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
576 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
577 (AVR_PROLOGUE_*): Enumerate prologue types.
578 (struct frame_extra_info): Remove.
579 (struct avr_unwind_cache): Define.
580 (avr_write_sp): Delete function.
581 (avr_read_fp): Ditto.
582 (avr_init_extra_frame_info): Ditto.
583 (avr_pop_frame): Ditto.
584 (avr_frame_saved_pc): Ditto.
585 (avr_saved_pc_after_call): Ditto.
586 (avr_push_return_address): Ditto.
587 (avr_frame_chain): Ditto.
588 (avr_store_struct_return): Ditto.
589 (avr_push_arguments): Ditto.
590 (avr_scan_prologue): Update comments. Changed to set up the info for
591 cache unwinding. Now returns end of prologue PC.
592 (avr_skip_prologue): Better handling of functions lacking a prologue
593 by using avr_scan_prologue.
594 (avr_scan_arg_moves): New function.
595 (avr_saved_regs_unwinder): Ditto.
596 (avr_frame_unwind_cache): Ditto.
597 (avr_unwind_pc): Ditto.
598 (avr_frame_this_id): Ditto.
599 (avr_frame_prev_register): Ditto.
600 (avr_frame_p): Ditto.
601 (avr_frame_base_address ): Ditto.
602 (avr_unwind_dummy_id): Ditto.
603 (avr_push_dummy_code): Ditto.
604 (push_stack_item): Ditto.
605 (pop_stack_item): Ditto.
606 (avr_push_dummy_call): Ditto.
607 (struct stack_item): Define.
608 (avr_frame_unwind): Declare structure.
609 (avr_frame_base): Ditto.
610 (avr_gdbarch_init): Remove calls to
611 set_gdbarch_deprecated_init_frame_pc,
612 set_gdbarch_deprecated_target_read_fp,
613 set_gdbarch_deprecated_dummy_write_sp,
614 set_gdbarch_deprecated_fp_regnum,
615 set_gdbarch_deprecated_push_arguments,
616 set_gdbarch_deprecated_push_return_address,
617 set_gdbarch_deprecated_pop_frame,
618 set_gdbarch_deprecated_store_struct_return,
619 set_gdbarch_deprecated_frame_init_saved_regs,
620 set_gdbarch_deprecated_init_extra_frame_info,
621 set_gdbarch_deprecated_frame_chain,
622 set_gdbarch_deprecated_frame_saved_pc,
623 set_gdbarch_deprecated_saved_pc_after_call.
624 Add calls to set_gdbarch_push_dummy_call,
625 set_gdbarch_push_dummy_code,
626 frame_unwind_append_predicate,
627 frame_base_set_default,
628 set_gdbarch_unwind_dummy_id,
629 set_gdbarch_unwind_pc.
632 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
634 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
635 registers for H8/300S.
636 (h8300_print_registers_info): Ditto.
637 (h8300_gdbarch_init): Accommodate register count for H8/300S.
639 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
641 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
642 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
643 (lin_lwp_wait): Likewise. Update comments.
644 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
645 (pull_pid_from_list, linux_record_stopped_pid): New.
647 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
649 * ada-lang.c (scan_discrim_bound): Name first argument.
650 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
651 declared by ALL_BLOCK_SYMBOLS.
653 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
655 * ada-tasks.c (find_function_in_inferior): Don't declare it.
656 ("regcache.h"): Include it.
657 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
659 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
661 * NEWS: Mention gdbserver detach change and "disconnect" command.
662 * infcmd.c (disconnect_command): New function.
663 (_initialize_infcmd): Add ``disconnect'' command.
664 * remote.c (remote_async_detach): Delete.
665 (remote_detach): Merge remote_async_detach.
666 (remote_disconnect): New.
667 (init_remote_ops): Set to_disconnect.
668 (init_remote_cisco_ops): Likewise.
669 (init_remote_async_ops): Likewise. Use remote_detach.
670 * target.c (cleanup_target): Default to_disconnect.
671 (update_current_target): Inherit to_disconnect.
672 (target_disconnect, debug_to_disconnect): New functions.
673 (setup_target_debug): Set to_disconnect.
674 * target.h (struct target_ops): Add to_disconnect.
675 (target_disconnect): Add prototype.
677 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
679 * breakpoint.c (insert_catchpoint): New function.
680 (insert_breakpoints): Use catch_exceptions to call
681 insert_catchpoint. Disable catchpoints if they fail to insert.
683 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
685 * symfile.c (reread_symbols): Clear sym_private.
687 2003-06-17 Andrew Cagney <cagney@redhat.com>
689 * trad-frame.h (struct frame_info): Add opaque declaration.
690 * remote-fileio.h (struct cmd_list_element): Add opaque
692 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
695 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
697 * remote.c (remote_prepare_to_store): Replace call to
698 deprecated_read_register_bytes with multiple regcache_raw_read
701 2003-06-17 Kris Warkentin <kewarken@qnx.com>
703 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
704 (nto_find_and_open_solib): Likewise.
705 (nto_init_solib_absolute_prefix): Likewise.
706 (_initialize_nto_tdep): Fix indentation.
708 2003-06-17 Kris Warkentin <kewarken@qnx.com>
710 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
712 2003-06-17 Kris Warkentin <kewarken@qnx.com>
714 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
716 2003-06-17 Jim Blandy <jimb@redhat.com>
718 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
720 2003-06-16 Theodore A. Roth <troth@openavr.org>
722 * avr-tdep.c (avr_extract_return_value): New function.
723 (avr_gdbarch_init): Set extract_return_value method.
725 2003-06-16 Andrew Cagney <cagney@redhat.com>
727 * frame.h (deprecated_get_next_frame_hack): Declare.
728 * frame.c (legacy_saved_regs_prev_register): Only require
729 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
730 there are always saved regs.
731 (deprecated_generic_get_saved_register): Do not require
732 DEPRECATED_FRAME_INIT_SAVED_REGS.
733 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
734 use frame ID unwind instead.
735 (deprecated_get_next_frame_hack): New function.
737 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
739 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
740 (h8300_push_dummy_call): ...this function. Some minor optimization.
741 (h8300_push_return_address): Remove.
742 (h8300_gdbarch_init): Remove calls to
743 set_gdbarch_deprecated_dummy_write_sp,
744 set_gdbarch_deprecated_push_arguments and
745 set_gdbarch_deprecated_push_return_address.
746 Add call to set_gdbarch_push_dummy_call.
748 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
750 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
751 (E_PSEUDO_EXR_REGNUM): Ditto.
752 (h8300_is_argument_spill): Check for instructions moving argument
753 registers into safe registers.
754 (h8300_skip_prologue): Check for stm instruction to push registers
755 used for register variables onto stack.
756 (gdb_print_insn_h8300): Remove.
757 (h8300_examine_prologue): Add a comment.
758 (h8300_register_name): Take pseudo registers into account.
759 (h8300s_register_name): Ditto.
760 (h8300sx_register_name): Ditto.
761 (h8300_print_register): Ditto.
762 (h8300_print_registers_info): Define "nice" printing order.
763 (h8300_saved_pc_after_call): Take pseudo registers into account.
764 (h8300_register_type): Ditto. Return type used for remote connection
765 when requesting real CCR or EXR register, return actual type when
766 requesting pseudo CCR or EXR.
767 (h8300_pseudo_register_read): New function.
768 (h8300_pseudo_register_write): Ditto.
769 (h8300_dbg_reg_to_regnum): Ditto.
770 (h8300s_dbg_reg_to_regnum): Ditto.
771 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
772 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
773 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
774 set_gdbarch_print_insn architecture dependent.
775 Call set_gdbarch_pseudo_register_read and
776 set_gdbarch_pseudo_register_write.
777 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
779 2003-06-16 Andrew Cagney <cagney@redhat.com>
781 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
782 * gdbarch.h, gdbarch.c: Re-generate.
783 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
784 * s390-tdep.c (s390_gdbarch_init): Update.
785 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
786 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
787 * mips-tdep.c (mips_gdbarch_init): Update.
788 * mcore-tdep.c (mcore_gdbarch_init): Update.
789 * cris-tdep.c (cris_gdbarch_init): Update.
790 * infcall.c (call_function_by_hand): Update.
791 * ia64-tdep.c (ia64_push_arguments): Update comment.
792 * frame.c (legacy_get_prev_frame): Do not assume
793 SAVE_DUMMY_FRAME_TOS_P.
794 * dummy-frame.c (find_dummy_frame): Update comment.
796 2003-06-16 Andrew Cagney <cagney@redhat.com>
798 * regcache.c (do_cooked_read): Do not use register_valid_p.
800 2003-06-15 Theodore A. Roth <troth@openavr.org>
802 * avr-tdep.c (avr_register_type): Remove a blank line.
803 (avr_scan_prologue): Correct some comments.
805 2003-06-15 Theodore A. Roth <troth@openavr.org>
807 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
809 Properly scan prologues generated by gcc with the -mcall-prologues
811 Add code to scan -mcall-prologues for mega devices.
813 2003-06-15 Theodore A. Roth <troth@openavr.org>
815 * avr-tdep.c (avr_register_byte): Delete function.
816 (avr_register_raw_size): Delete function.
817 (avr_register_virtual_size): Delete function.
818 (avr_register_virtual_type): Delete function.
819 (avr_register_type): New function.
820 (avr_address_to_pointer): Remove unused code.
821 (avr_read_fp): Need to read FP as two separate bytes due to change to
822 avr_register_type() usage.
823 (avr_gdbarch_init): Don't set deprecated_register_size.
824 Don't set deprecated_register_bytes.
825 Don't set deprecated_register_byte.
826 Don't set deprecated_register_raw_size.
827 Don't set deprecated_max_register_raw_size.
828 Don't set deprecated_register_virtual_size.
829 Don't set deprecated_max_register_virtual_size.
830 Don't set deprecated_register_virtual_type.
831 Set register_type method.
833 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
835 * Makefile.in (linux-nat.o): Add rule.
836 * linux-nat.c: New file.
837 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
838 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
839 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
840 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
841 * config/arm/linux.mh (NATDEPFILES): Likewise.
842 * config/i386/linux.mh (NATDEPFILES): Likewise.
843 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
844 * config/ia64/linux.mh (NATDEPFILES): Likewise.
845 * config/m68k/linux.mh (NATDEPFILES): Likewise.
846 * config/mips/linux.mh (NATDEPFILES): Likewise.
847 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
848 * config/s390/s390.mh (NATDEPFILES): Likewise.
849 * config/sparc/linux.mh (NATDEPFILES): Likewise.
851 2003-06-15 Mark Kettenis <kettenis@gnu.org>
853 * i387-tdep.c: Reorder includes, fix some whitespace issues and
854 replace out-of-date comment.
856 2003-06-15 Andrew Cagney <cagney@redhat.com>
858 * rdi-share/host.h (Fail): Change to a varargs function.
859 * remote-rdi.c (Fail): Update.
861 2003-06-15 Mark Kettenis <kettenis@gnu.org>
863 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
864 (i386_convert_register_p, i386_register_to_value,
865 i386_register_from_value): Handle types longer than 8 bytes.
867 2003-06-15 Mark Kettenis <kettenis@gnu.org>
869 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
870 Move floating-point code to new function in i387-tdep.c.
871 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
872 New functions containing code moved here from i386-tdep.c.
873 * i387-tdep.h: Add opaque declaration for `struct type'.
874 (i387_register_to_value, i387_value_to_register): New prototypes.
875 * x86-64-tdep.c (x86_64_convert_register_p): New function.
876 (x86_64_init_abi): Set convert_register_p, register_to_value and
877 value_to_register here.
879 2003-06-14 Andrew Cagney <cagney@redhat.com>
881 * mips-tdep.c (mips_register_to_value): Make static.
882 (mips_value_to_register): Make static.
883 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
884 * ia64-tdep.c (ia64_register_raw_size): Make static.
885 (ia64_register_virtual_size): Make static.
886 (ia64_register_byte): Make static.
887 * i387-tdep.c: Include "i387-tdep.h".
888 (print_387_control_word): Delete function.
889 (print_387_status_word): Delete function.
890 (print_387_status_bits): Delete function.
891 (print_387_control_bits): Delete function.
892 * Makefile.in (i387-tdep.o): Update dependencies.
893 * rdi-share/host.h (Fail): Declare.
894 * remote-rdi.c (Fail): Update to match declaration.
896 2003-06-14 Andrew Cagney <cagney@redhat.com>
898 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
899 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
900 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
901 * config/djgpp/fnchange.lst: Delete "remote-array.c".
902 * README: Delete reference to remote-array.
903 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
904 (remote-array.o): Delete target.
905 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
906 * remote-array.c: Delete file.
908 2003-06-14 Andrew Cagney <cagney@redhat.com>
909 Mark Kettenis <kettenis@gnu.org>
911 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
912 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
913 parameter with "frame".
914 * gdbarch.h, gdbarch.c: Re-generate.
915 * frame.h (put_frame_register): Declare.
916 * frame.c (put_frame_register): New function.
917 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
918 (legacy_register_to_value): Rewrite, use "frame" to get the
920 (legacy_value_to_register): Rewrite, use "frame" to find the
921 register's location before storing.
922 * arch-utils.h (legacy_convert_register_p): Update.
923 (legacy_register_to_value, legacy_value_to_register): Update.
924 * findvar.c (value_from_register): Rewrite, eliminate use of
925 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
926 "frame" to REGISTER_TO_VALUE.
927 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
928 lval_reg_frame_relative + lval_register branch of the switch. Do
929 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
930 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
931 I386_EDI_REGNUM): New defines.
932 (i386_next_regnum, i386_convert_register_p,
933 i386_register_to_value, i386_value_to_register): New functions.
934 (i386_register_convertible, i386_register_convert_to_virtual,
935 i386_convert_to_raw): Remove functions.
936 (i386_gdbarch_init): Set convert_register_p, register_to_value and
937 value_to_register instead of register_convertible,
938 register_convert_to_virtual and register_convert_to_raw.
939 * mips-tdep.c (mips_convert_register_p): New function.
940 (mips_value_to_register): Replace mips_register_convert_from_type.
941 (mips_register_to_value): Replace mips_register_convert_to_type.
942 (mips_gdbarch_init): Set conver_register_p, value_to_register and
944 * alpha-tdep.c (alpha_convert_register_p): Update.
945 (alpha_value_to_register): Update, store the register.
946 (alpha_register_to_value): Update, fetch the register.
948 2003-06-14 Theodore A. Roth <troth@openavr.org>
950 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
951 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
952 Don't set deprecated_call_dummy_words.
953 Remove commented out set_gdbarch_believe_pcc_promotion() call.
954 Don't set remote_translate_xfer_address.
955 (avr_io_reg_read_command): Remove commented out debug printf.
958 2003-06-14 Theodore A. Roth <troth@openavr.org>
960 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
961 causes gdb to seg fault.
963 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
965 * sparc-nat.c (fetch_inferior_registers): Correct
966 a reference to "registers".
968 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
970 * Makefile.in (exc_request_U_h): Define
971 (exc_request_S_h): Likewise.
972 (msg_reply_S_h): Likewise.
974 (notify_S_h): Likewise.
975 (process_reply_S_h): Likewise.
976 (gnu-nat.o): Depend on gdb_obstack_h
977 * gnu-nat.c: Include "gdb_obstack.h".
979 2003-06-13 Andrew Cagney <cagney@redhat.com>
981 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
982 * gdbarch.h, gdbarch.c: Re-generate.
984 2003-06-13 Andrew Cagney <cagney@redhat.com>
986 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
987 when deprecated REGISTER macros can be deleted.
988 * gdbarch.h, gdbarch.c: Re-generate.
990 2003-06-13 Jim Blandy <jimb@redhat.com>
992 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
993 Linux entry point symbols for _dl_debug_state, too.
995 2003-06-13 Andrew Cagney <cagney@redhat.com>
997 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
998 available, do not use the FP register, and always save the TOS.
999 * dummy-frame.c (dummy_frame_this_id): Do not assert
1000 SAVE_DUMMY_FRAME_TOS.
1001 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
1002 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
1003 (i386_push_dummy_call): Add 8 to the returned SP.
1004 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
1005 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
1006 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
1007 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
1008 (x86_64_push_dummy_call): Return "sp + 16".
1009 (x86_64_init_abi): Do not set save_dummy_frame_tos.
1010 * alpha-tdep.c (alpha_gdbarch_init): Do not set
1011 save_dummy_frame_tos.
1013 2003-06-13 Jim Blandy <jimb@redhat.com>
1015 * frv-tdep.c (frv_use_struct_convention): Delete static
1016 declaration for function deleted in my change of 2003-06-12.
1018 2003-06-13 Theodore A. Roth <troth@openavr.org>
1020 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
1021 (avr_pointer_to_address): Shift code addrs left 1 bit.
1022 (avr_convert_from_func_ptr_addr): Delete function since operation is
1023 better handled by avr_address_to_pointer and avr_pointer_to_address.
1024 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
1026 2003-06-13 Mark Kettenis <kettenis@gnu.org>
1028 From Kelley Cook <kelleycook@wideopenwest.com>:
1029 * configure.host: Accept i[34567]86 variants.
1030 * configure.tgt: Likewise.
1031 * nlm/configure.in: Likewise.
1032 * nlm/configure: Regenerated.
1034 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
1036 * arm-tdep.c (solib-svr4.h): Dont' include it.
1037 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
1038 * arm-linux-tdep.c: ... here. Make static.
1039 (arm_linux_init_abi): Register it.
1040 (solib-svr4.h): Include it.
1041 * Makefile.in: Update dependencies.
1042 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
1043 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
1045 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
1047 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
1048 indicate registers used for return values.
1049 (struct frame_extra_info): Drop args_pointer and locals_pointer.
1050 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
1052 (h8300_init_extra_frame_info): Ditto.
1053 (h8300_frame_locals_address): Removed.
1054 (h8300_frame_args_address): Removed.
1055 (h8300_extract_return_value): Use new regcache structure. Only care
1057 (h8300h_extract_return_value): Same function for 32 bit CPUs.
1058 (h8300_store_return_value): Use new regcache structure. Only care
1060 (h8300h_store_return_value): Same function for 32 bit CPUs.
1061 (h8300_store_struct_return): Removed.
1062 (h8300_extract_struct_value_address): Use new regcache structure.
1063 (h8300h_extract_struct_value_address): Removed.
1064 (h8300_push_dummy_code): New function.
1065 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
1066 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
1067 set_gdbarch_store_return_value architecture dependent.
1068 Call set_gdbarch_push_dummy_code and
1069 set_gdbarch_extract_struct_value_address.
1070 Remove calls to set_gdbarch_frame_args_address,
1071 set_gdbarch_frame_locals_address,
1072 set_gdbarch_deprecated_store_struct_return,
1073 set_gdbarch_deprecated_extract_return_value,
1074 set_gdbarch_deprecated_extract_struct_value_address,
1075 set_gdbarch_deprecated_call_dummy_words and
1076 set_gdbarch_deprecated_sizeof_call_dummy_words.
1078 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
1080 * h8300-tdep.c (h8300_register_byte): Remove.
1081 (h8300h_register_byte): Remove.
1082 (h8300_register_virtual_type): Remove. Substitute by...
1083 (h8300_register_type): New function.
1084 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
1085 (h8300h_extract_struct_value_address): Ditto.
1086 (h8300_gdbarch_init): Drop calls to
1087 set_gdbarch_deprecated_register_byte and
1088 set_gdbarch_deprecated_register_virtual_type.
1089 Add call to set_gdbarch_register_type.
1091 2003-06-13 Andrew Cagney <cagney@redhat.com>
1093 * gdbarch.sh: Update comments on registers.
1094 (deprecated_register_byte): Rename register_byte.
1095 (deprecated_register_raw_size): Rename register_raw_size.
1096 (deprecated_register_virtual_size): Rename register_virtual_size.
1097 (deprecated_register_virtual_type): Rename register_virtual_type.
1098 * gdbarch.h, gdbarch.c: Re-generate.
1099 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1100 * vax-tdep.c (vax_gdbarch_init): Update.
1101 * v850-tdep.c (v850_gdbarch_init): Update.
1102 * sparc-tdep.c (sparc_gdbarch_init): Update.
1103 * sh-tdep.c (sh_gdbarch_init): Update.
1104 * s390-tdep.c (s390_gdbarch_init): Update.
1105 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1106 * ns32k-tdep.c: Update.
1107 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1108 * mips-tdep.c (mips_gdbarch_init): Update.
1109 * mcore-tdep.c (mcore_gdbarch_init): Update.
1110 * m68k-tdep.c (m68k_gdbarch_init): Update.
1111 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1112 * ia64-tdep.c (ia64_gdbarch_init): Update.
1113 * hppa-tdep.c (hppa_gdbarch_init): Update.
1114 * h8300-tdep.c (h8300_gdbarch_init): Update.
1115 * frv-tdep.c (frv_gdbarch_init): Update.
1116 * cris-tdep.c (cris_gdbarch_init): Update.
1117 * avr-tdep.c (avr_gdbarch_init): Update.
1118 * alpha-tdep.c (alpha_gdbarch_init): Update.
1119 * arm-tdep.c (arm_gdbarch_init): Update.
1121 2003-06-13 Andrew Cagney <cagney@redhat.com>
1123 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
1124 mips_o32_use_struct_convention with always_use_struct_convention.
1126 2003-06-12 David Carlton <carlton@kealia.com>
1128 * cp-namespace.c (cp_set_block_scope): Comment out
1129 processing_has_namespace_info branch.
1131 2003-06-12 Jim Blandy <jimb@redhat.com>
1133 Recognize and skip 64-bit PowerPC Linux linkage functions.
1134 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
1135 insn_pattern, insns_match_pattern, d_field, ds_field): New
1136 functions, macros, and types for working with PPC instructions.
1137 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
1138 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
1139 ppc64_skip_trampoline_code): New functions, variables, and macros
1140 for recognizing and skipping linkage functions.
1141 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
1142 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
1144 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
1145 register offsets for both the 32- and 64-bit interfaces.
1147 Actually finish the job started by my change of 2003-05-29.
1148 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
1149 other #definition of this.
1150 (ppc_linux_skip_trampoline_code): Remove declaration.
1151 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
1153 (ppc_linux_init_abi): Register it as the skip_trampoline_code
1156 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
1157 'long' on ppc64-*-linux*.
1159 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
1160 isn't #defined, assume the register doesn't exist: act as if
1161 tdep->ppc_mq_regnum were -1.
1163 * configure.host, configure.tgt: Add entries for
1164 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
1166 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
1169 * arch-utils.c (always_use_struct_convention): New function.
1170 * arch-utils.h (always_use_struct_convention): New prototype.
1171 * alpha-tdep.c (alpha_use_struct_convention): Delete.
1172 (alpha_gdbarch_init): Register always_use_struct_convention,
1173 instead of alpha_use_struct_convention.
1174 * cris-tdep.c (cris_use_struct_convention): Delete.
1175 (cris_gdbarch_init): Register always_use_struct_convention,
1176 instead of cris_use_struct_convention.
1177 * frv-tdep.c (frv_use_struct_convention): Delete.
1178 (frv_gdbarch_init): Register always_use_struct_convention,
1179 instead of frv_use_struct_convention.
1180 * h8300-tdep.c (h8300_use_struct_convention): Delete.
1181 (h8300_gdbarch_init): Register always_use_struct_convention,
1182 instead of h8300_use_struct_convention.
1183 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1184 (mips_o32_gdbarch_init): Register always_use_struct_convention,
1185 instead of mips_o32_use_struct_convention.
1187 2003-06-12 Andrew Cagney <cagney@redhat.com>
1189 * wince.c: Include "mips-tdep.h".
1190 * mips-tdep.h (mips_next_pc): Declare.
1191 * mcore-tdep.c: Make more local functions static.
1192 * Makefile.in (wince.o): Update dependencies.
1194 2003-06-12 David Carlton <carlton@kealia.com>
1196 * symtab.c (lookup_symbol_aux_minsyms): Replace
1197 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
1198 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
1199 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
1200 SYMBOL_NATURAL_NAME.
1202 2003-06-12 Andreas Schwab <schwab@suse.de>
1204 * Makefile.in (tuiDisassem.o): Update dependencies.
1206 2003-06-12 David Carlton <carlton@bactrian.org>
1208 * symtab.h: Delete declaration of make_symbol_overload_list.
1209 Add declaration of lookup_partial_symbol.
1210 * symtab.c (remove_params): Move to cp-support.c.
1211 (overload_list_add_symbol, make_symbol_overload_list)
1212 (sym_return_val_size, sym_return_val_index): Ditto.
1213 (lookup_partial_symbol): Make extern.
1214 * cp-support.h: Add declaration of make_symbol_overload_list.
1215 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
1216 symtab.h, and block.h.
1217 (remove_params): Move here from symtab.c.
1218 (overload_list_add_symbol, make_symbol_overload_list)
1219 (sym_return_val_size, sym_return_val_index): Ditto.
1220 * valops.c: Include cp-support.h.
1221 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
1222 frame_h, and block_h.
1223 (valops.o): Depend on cp_support_h.
1225 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
1227 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
1228 substitute by NUM_REGS throughout.
1229 (h8300_register_name): Only care for H8/300 and H8/300H registers.
1230 (h8300s_register_name): New function for H8S registers.
1231 (h8300sx_register_name): Ditto for H8SX registers.
1232 (h8300_print_register): Revise register printing, avoid depending
1234 (h8300_register_byte): Only care for H8/300 registers.
1235 (h8300h_register_byte): New function for any other architecture.
1236 (h8300_register_raw_size): Remove.
1237 (h8300_register_virtual_type): Revise to return actually useful
1239 (h8300_extract_struct_value_address): Only care for H8/300 registers.
1240 (h8300h_extract_struct_value_address): New function for any other
1242 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
1243 set_gdbarch_register_name, set_gdbarch_register_byte,
1244 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
1245 Remove calls to set_gdbarch_deprecated_register_size,
1246 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
1247 set_gdbarch_deprecated_max_register_raw_size,
1248 set_gdbarch_register_virtual_size and
1249 set_gdbarch_deprecated_max_register_virtual_size entirely.
1250 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
1251 set_gdbarch_long_double_bit.
1253 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
1255 * doublest.c (convert_doublest_to_floatformat): When dealing
1256 with the implied integer bit, only alter mant_bits if we are
1257 processing a full 32 bits of mantissa.
1259 2003-06-11 David Carlton <carlton@bactrian.org>
1261 * dictionary.h: New.
1262 * dictionary.c: New.
1263 * block.h: Add opaque declaration for struct dictionary.
1264 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
1266 (BLOCK_DICT): New macro.
1267 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
1268 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
1270 (ALL_BLOCK_SYMBOLS): Update definition.
1271 * Makefile.in (SFILES): Add dictionary.c.
1272 (dictionary_h): New.
1273 (COMMON_OBS): Add dictionary.o.
1274 (dictionary.o): New.
1275 (ada-lang.o): Depend on dictionary_h.
1276 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
1277 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
1278 (mi-cmd-stack.o): Ditto.
1279 (gdbtk-cmds.o): Update dependencies.
1280 (gdbtk-stack.o): Ditto.
1281 * ada-lang.c: Include dictionary.h.
1282 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
1283 (fill_in_ada_prototype, debug_print_block): Ditto.
1284 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
1285 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
1287 * mdebugread.c: Include dictionary.h.
1288 (struct parse_stack): Delete 'maxsyms' member.
1289 (parse_symbol): Update calls to new_block. Delete calls to
1290 shrink_block. Use dictionary methods.
1291 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
1292 Update calls to new_symtab. Don't maintain maxsyms data.
1293 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
1294 (add_symbol): Just call dict_add_symbol.
1295 (new_symtab): Delete 'maxsyms' argument.
1296 (new_symtab): Update calls to new_block.
1297 (new_block): Delete 'maxsyms' argument; add 'function' argument.
1298 (shrink_block): Delete function.
1299 (fixup_sigtramp): Update call to new_block. Add symbol via
1301 * jv-lang.c: Include dictionary.h.
1302 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
1303 appropriately. Set class_symtab->free_func. Make sure the
1304 blockvector is big enough to hold two blocks.
1305 (add_class_symtab_symbol): Use dictionary methods.
1306 (free_class_block): New function.
1307 (type_from_class): Replace explicit iteration by
1309 * symtab.h (struct symtab): Replace 'free_ptr' method by
1311 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
1313 * dwarfread.c (psymtab_to_symtab_1): Delete call to
1315 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
1316 Include dictionary.h.
1317 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
1318 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
1320 * objfiles.c: Include dictionary.h.
1321 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
1322 * buildsym.c: Include dictionary.h.
1323 (finish_block): Use dictionary methods.
1324 (end_symtab): Set free_func to NULL, not free_ptr.
1325 * tracepoint.c: Include dictionary.h.
1326 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
1327 (scope_info): Ditto.
1328 * stack.c: Include dictionary.h.
1329 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
1330 (print_block_frame_labels, print_frame_arg_vars)
1331 (print_frame_args): Ditto.
1332 * symmisc.c (free_symtab_block): Use dictionary methods.
1333 (dump_symtab): Ditto.
1334 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
1335 Include dictionary.h.
1336 * symfile.h: Delete declarations of sort_block_syms,
1338 * symfile.c (sort_block_syms): Delete.
1339 (sort_symtab_syms): Delete.
1340 * symtab.c: Include dictionary.h.
1341 (lookup_block_symbol): Use dictionary iterators.
1342 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
1343 (search_symbols, make_symbol_completion_list): Ditto.
1344 (make_symbol_overload_list): Ditto.
1345 * valops.c (value_of_local): Use dict_empty.
1346 Include dictionary.h.
1348 2003-06-11 J. Brobecker <brobecker@gnat.com>
1350 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
1352 2003-06-11 David Carlton <carlton@bactrian.org>
1354 * block.h (BLOCK_SHOULD_SORT): Delete.
1355 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
1357 * ada-lang.c (ada_add_block_symbols): Ditto.
1358 * symfile.c (sort_block_syms): Delete.
1359 (sort_symtab_syms): Ditto.
1360 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
1362 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
1363 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
1364 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
1365 * dwarfread.c (psymtab_to_symtab_1): Ditto.
1366 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
1367 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1368 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
1370 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
1372 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
1375 2003-06-11 Andrew Cagney <cagney@redhat.com>
1377 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
1378 REGISTER_CONVERTIBLE.
1379 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
1380 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
1381 * gdbarch.h, gdbarch.c: Re-generate.
1382 * arch-utils.h (deprecated_register_convertible_not): Rename
1383 generic_register_convertible_not.
1384 * arch-utils.c (deprecated_register_convertible_not): Rename
1385 generic_register_convertible.
1386 (legacy_convert_register_p, legacy_register_to_value): Update.
1387 * sh-tdep.c (sh64_push_arguments): Update.
1388 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
1389 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
1390 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
1391 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
1392 * arch-utils.c (legacy_value_to_register): Update.
1393 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1394 (rs6000_register_convert_to_raw): Make parameter "from" const.
1395 * mips-tdep.c (mips_gdbarch_init): Update.
1396 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
1397 * infcmd.c (default_print_registers_info): Update.
1398 * ia64-tdep.c (ia64_gdbarch_init): Update.
1399 (ia64_register_convert_to_raw): Make parameter "from" const.
1400 * i386-tdep.c (i386_gdbarch_init): Update.
1401 (i386_register_convert_to_raw): Update.
1403 2003-06-11 Andrew Cagney <cagney@redhat.com>
1405 * remote-fileio.c: Include "remote-fileio.h".
1406 * Makefile.in (remote-fileio.o): Update dependencies.
1407 (remote_fileio_h): Fix typo.
1409 2003-06-11 Andrew Cagney <cagney@redhat.com>
1411 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
1412 (xstormy16_save_dummy_frame_tos): Make static.
1413 (_initialize_xstormy16_tdep): Add declaration.
1414 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
1415 * v850-tdep.c: Make local functions static.
1416 (_initialize_v850_tdep): Add declaration.
1417 * sparc-tdep.c: Make local functions static.
1418 (_initialize_sparc_tdep): Add declaration.
1419 * sh-tdep.c: Make local functions static.
1420 (_initialize_sh_tdep): Add declaration.
1421 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
1422 * s390-tdep.c: Make local functions static.
1423 (_initialize_s390_tdep): Add declaration.
1424 * dbxread.c (find_stab_function_addr): Make static.
1425 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
1426 * ocd.c (_initialize_remote_ocd): Add declaration.
1427 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
1428 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
1429 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
1430 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
1431 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
1432 * remote-array.c (_initialize_array): Add declaration.
1433 (_initialize_remote_monitors): Add declaration.
1434 * remote-mips.c: Make local functions static.
1435 (_initialize_remote_mips): Add declaration.
1436 * mcore-tdep.c: Make all local functions static.
1437 (_initialize_mcore_tdep): Add declaration.
1438 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
1439 * abug-rom.c (_initialize_abug_rom): Add declaration.
1440 * rom68k-rom.c (_initialize_rom68k): Add declaration.
1441 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
1442 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
1443 * remote-est.c (_initialize_est): Add declaration.
1444 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
1445 (m68hc11_call_dummy_address): Make static.
1446 * ia64-tdep.c: Make local functions static.
1447 (_initialize_ia64_tdep): Add declaration.
1448 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
1449 * monitor.c (monitor_wait_filter): Make static.
1450 (_initialize_remote_monitors): Add declaration.
1451 * remote-hms.c (_initialize_remote_hms): Add declaration.
1452 * remote-e7000.c (fetch_regs_from_dump): Make static.
1453 (expect_n): Make static.
1454 (_initialize_remote_e7000): Add declaration.
1455 * ser-e7kpc.c: Always include "defs.h".
1456 (_initialize_ser_e7000pc): Add declaration.
1457 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
1458 * cris-tdep.c: Make all but one function static.
1459 (_initialize_cris_tdep): Add declaration.
1460 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
1461 * solib.c (update_solib_list): Make static.
1462 (_initialize_solib): Add declaration.
1463 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
1464 (_initialize_avr_tdep): Add declaration.
1465 * remote-rdi.c (voiddummy): Make static.
1466 (_initialize_remote_rdi): Add declaration.
1467 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
1468 * remote-rdp.c (send_rdp): Make static.
1469 (_initialize_remote_rdp): Add declaration.
1470 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
1472 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
1474 * remote-fileio.c: Make ari happy.
1476 2003-06-10 J. Brobecker <brobecker@gnat.com>
1478 * rs6000-nat.c (child_xfer_memory): Compute the right address when
1479 fetching the trailing bytes of the buffer we are about to write.
1481 2003-06-10 Andrew Cagney <cagney@redhat.com>
1483 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
1484 * Makefile.in (remote-fileio.o): Update dependencies.
1485 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
1486 include <setjmp.h>, or <sys/types.h> conditional on USG.
1487 (remote_fio_jmp_buf): Delete global variable.
1489 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
1490 Martin M. Hunt <hunt@redhat.com>
1492 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
1493 (SFILES): Add remote-fileio.c.
1494 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
1495 dependencies for building remote.o.
1496 * remote-fileio.c: New file implementing the remote File-I/O protocol.
1497 * remote-fileio.h: New header file defining remote File-I/O interface.
1498 * remote.c (remote_write_bytes, remote_read_bytes): Remove
1499 static storage class.
1500 (remote_wait, remote_async_wait): Call remote_fileio_request() on
1502 (_initialize_remote): Call initialize_remote_fileio().
1503 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
1504 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
1505 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
1506 (captured_main): Initialize new ui_files.
1507 * ui-file.c: Add read and fgets input functions.
1508 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
1509 (null_file_read): New function.
1510 (ui_file_read): New function.
1511 (set_ui_file_read): New function.
1512 (stdio_file_read): New function.
1513 * ui-file.h: New type ui_file_read_ftype.
1514 (set_ui_file_read): Declare.
1515 (ui_file_read): Declare.
1517 2003-06-09 Andrew Cagney <cagney@redhat.com>
1519 * frame.h (deprecated_unwind_get_saved_register): Rename
1520 generic_unwind_get_saved_register, update comments.
1521 * mips-tdep.c (mips_get_saved_register): Update.
1522 * frame.c (deprecated_unwind_get_saved_register): Update.
1524 2003-06-09 Andrew Cagney <cagney@redhat.com>
1526 * vax-tdep.c (vax_frame_locals_address): Delete function.
1527 (vax_gdbarch_init): Do not set frame_locals_address.
1528 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
1529 (m68hc11_gdbarch_init): Do not set frame_locals_address.
1530 * s390-tdep.c (s390_frame_args_address): Delete function.
1531 (s390_gdbarch_init): Do not set frame_args_address or
1532 frame_locals_address.
1533 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
1534 (ns32k_gdbarch_init): Do not set frame_locals_address.
1535 * hppa-tdep.c (hppa_frame_args_address): Delete function.
1536 (hppa_frame_locals_address): Delete function.
1537 (hppa_gdbarch_init): Do not set frame_args_address, or
1538 frame_locals_address.
1539 * arm-tdep.c (arm_frame_args_address): Delete.
1540 (arm_frame_locals_address): Delete.
1541 (arm_gdbarch_init): Do not set frame_args_address, or
1542 frame_locals_address.
1544 2003-06-09 Andrew Cagney <cagney@redhat.com>
1546 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
1547 * gdbarch.h, gdbarch.c: Re-generate.
1548 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
1549 * arch-utils.c (frame_num_args_unknown): Delete function.
1550 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
1551 (frame_info): Use FRAME_NUM_ARGS_P.
1552 * arm-tdep.c (arm_frame_num_args): Delete function.
1553 (arm_gdbarch_init): Do not set frame_num_args.
1554 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
1555 * hppa-tdep.c (hppa_frame_num_args): Delete function.
1556 (hppa_gdbarch_init): Do not set frame_num_args.
1557 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
1558 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1559 frame_num_args to default frame_num_args_unknown.
1560 * v850-tdep.c (v850_gdbarch_init): Ditto.
1561 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1562 * sh-tdep.c (sh_gdbarch_init): Ditto.
1563 * s390-tdep.c (s390_gdbarch_init): Ditto.
1564 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1565 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1566 * mips-tdep.c (mips_gdbarch_init): Ditto.
1567 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1568 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1569 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1570 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1571 * i386-tdep.c (i386_gdbarch_init): Ditto.
1572 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1573 * frv-tdep.c (frv_gdbarch_init): Ditto.
1574 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1575 * cris-tdep.c (cris_gdbarch_init): Ditto.
1576 * avr-tdep.c (avr_gdbarch_init): Ditto.
1577 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1579 2003-06-09 Andrew Cagney <cagney@redhat.com>
1581 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
1582 (print_frame_args): Moved to "stack.c".
1583 * stack.c: Include "gdb_assert.h".
1584 (print_frame_nameless_args): Moved from "printcmd.c", made static.
1585 (print_frame_args): Moved from "printcmd.c".
1586 * frame.h (print_frame_args): Delete declaration.
1587 * Makefile.in (stack.o): Update dependencies.
1589 2003-06-08 Andrew Cagney <cagney@redhat.com>
1591 * frame.c (get_prev_frame): Remove reference to
1592 frame_args_address_correct in comments.
1593 * frame-base.c (default_frame_args_address): Delete code
1594 conditional on FRAME_ARGS_ADDRESS_CORRECT.
1595 * vax-tdep.c (vax_frame_args_address_correct): Delete.
1596 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
1597 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
1598 (vax_frame_args_address_correct): Delete declaration.
1600 2003-06-08 Andrew Cagney <cagney@redhat.com>
1602 * gdbarch.sh (UNWIND_SP): Add.
1603 * gdbarch.h, gdbarch.c: Re-generate.
1604 * frame.c (frame_sp_unwind): New function.
1605 (get_frame_sp): New function.
1606 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
1607 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
1608 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
1610 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
1611 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
1613 2003-06-08 Andrew Cagney <cagney@redhat.com>
1615 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
1618 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
1619 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
1620 * config/m68k/tm-sun3.h: Update.
1621 * config/m68k/tm-m68klynx.h: Update.
1622 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
1624 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
1625 trad_frame". Update comments.
1626 * d10v-tdep.c (struct d10v_unwind_cache): Update.
1627 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
1628 (trad_frame_register_value, trad_frame_prev_register): Update.
1630 2003-06-08 Andrew Cagney <cagney@redhat.com>
1632 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
1633 from GCC's acinclude.m4.
1634 * configure.in: Check for getopt's delcaration.
1635 * aclocal.m4, config.in, configure: Re-generate.
1636 * main.c (error_init): Delete declaration.
1637 * defs.h (error_init): Declare.
1638 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
1639 (rs6000_convert_from_func_ptr_addr): Make static.
1640 (_initialize_rs6000_tdep): Add declaration.
1641 * cli/cli-cmds.c (dont_repeat): Delete declaration.
1642 (show_commands, set_verbose, show_history): Delete declaration.
1643 * top.h (set_verbose): Add declaration.
1644 (show_history, set_history, show_commands): Add declaration.
1645 (do_restore_instream_cleanup): Add declaration.
1646 * objc-lang.c (specialcmp): Make static.
1647 (print_object_command): Make static.
1648 (find_objc_msgsend): Make static.
1649 (find_objc_msgcall_submethod_helper): Make static.
1650 (find_objc_msgcall_submethod): Make static.
1651 (_initialize_objc_language): Add declaration.
1652 (find_implementation_from_class): Make static.
1653 (find_implementation): Make static.
1654 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
1655 * objc-lang.h (lookup_struct_typedef): Add declaration.
1656 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
1657 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
1658 (do_restore_user_call_depth): Make static.
1659 (do_restore_instream_cleanup): Delete declaration.
1660 (dont_repeat): Delete declaration.
1661 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
1662 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
1663 * reggroups.c (_initialize_reggroup): Add declaration.
1664 * cp-support.c (_initialize_cp_support): Add declaration.
1665 * cp-abi.c (_initialize_cp_abi): Add declaration.
1666 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
1667 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
1668 (_initialize_gnu_v3_abi): Add declaration.
1669 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
1670 (_initialize_gnu_v2_abi): Add declaration.
1671 * frame-base.c (_initialize_frame_base): Add declaration.
1672 * doublest.c (floatformat_from_length): Make static.
1673 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
1674 * frame.c (create_sentinel_frame): Make static.
1675 (_initialize_frame): Add declaration.
1676 * top.c (do_catch_errors): Make static.
1677 (gdb_rl_operate_and_get_next_completion): Make static.
1678 * typeprint.c: Include "typeprint.h".
1679 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
1680 (sentinel_frame_this_id): Make static.
1681 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
1682 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
1683 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
1684 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
1685 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
1686 * maint.c (maintenance_print_architecture): Make static.
1687 * signals/signals.c (_initialize_signals): Add declaration.
1688 * std-regs.c (_initialize_frame_reg): Add declaration.
1689 * jv-exp.y (push_variable): ISO C definition.
1690 (push_qualified_expression_name): Ditto.
1691 * memattr.c (_initialize_mem): Add declaration.
1692 * remote.c (remote_check_watch_resources): Make static.
1693 (remote_stopped_by_watchpoint): Make static.
1694 (remote_stopped_data_address): Make static.
1695 * d10v-tdep.c (nr_dmap_regs): Make static.
1696 (a0_regnum): Make static.
1697 (d10v_frame_unwind_cache): Make static.
1698 (d10v_frame_p): Make static.
1699 * osabi.c (show_osabi): Make static.
1700 (_initialize_gdb_osabi): Add extern declaration.
1701 * gdbtypes.c (make_qualified_type): Make static.
1702 (safe_parse_type): Make static.
1703 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
1704 * macrotab.c (macro_bcache_free): Make static.
1705 * interps.c (interp_set_quiet): Make static.
1706 (interpreter_exec_cmd): Make static.
1707 * stack.h (select_frame_command): New file.
1708 * stack.c: Include "stack.h".
1709 (select_frame_command_wrapper): Delete function.
1710 (select_frame_command): Make global.
1711 * infcall.c: Include "infcall.h".
1712 * linespec.c: Include "linespec.h".
1713 * symfile.c (sections_overlap): Make static.
1714 * cp-support.h (cp_initialize_namespace): ISO C declaration.
1715 * charset.c (_initialize_charset): Add missing prototype.
1716 * regcache.c (init_legacy_regcache_descr): Make static.
1717 (do_regcache_xfree): Make static.
1718 (regcache_xfer_part): Make static.
1719 (_initialize_regcache): Add missing prototype.
1720 * breakpoint.c (parse_breakpoint_sals): Make static.
1721 (breakpoint_sals_to_pc): Make static.
1722 * interps.h (clear_interpreter_hooks): ISO C declaration.
1723 * Makefile.in (stack_h): Define.
1724 (stack.o, typeprint.o, mi-main.o): Update dependencies.
1725 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
1727 2003-06-08 Andrew Cagney <cagney@redhat.com>
1729 * Makefile.in (d10v-tdep.o): Update dependencies.
1730 (SFILES): Add trad-frame.c.
1731 (trad_frame_h): Define.
1732 (COMMON_OBS): Add trad-frame.o.
1733 (trad-frame.o): Specify dependencies.
1734 * d10v-tdep.c: Include "trad-frame.h".
1735 (saved_regs_unwinder): Delete function.
1736 (d10v_frame_prev_register): Use trad_frame_prev_register.
1737 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
1738 trad_frame", delete "regs" and "prev_sp".
1739 (prologue_find_regs): Use trad-frame.
1740 * trad-frame.h, trad-frame.c: New files.
1742 2003-06-08 Mark Kettenis <kettenis@gnu.org>
1744 * dwarf2cfi.c, dwarf2cfi.h: Remove.
1746 2003-06-07 Adam Fedor <fedor@gnu.org>
1748 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
1749 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
1750 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
1751 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
1752 resolve_msgsend_super, resolve_msgsend_super_stret):
1755 2003-06-07 Andrew Cagney <cagney@redhat.com>
1757 * symfile.h: Re-indent, clean up comments.
1759 2003-06-07 Andrew Cagney <cagney@redhat.com>
1761 * inferior.h (deprecated_write_sp): Replace
1762 generic_target_write_sp.
1763 * regcache.c (deprecated_write_sp): Replace
1764 generic_target_write_sp.
1765 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1766 * vax-tdep.c (vax_gdbarch_init): Update.
1767 * v850-tdep.c (v850_gdbarch_init): Update.
1768 * sparc-tdep.c (sparc_gdbarch_init): Update.
1769 * sh-tdep.c (sh_gdbarch_init): Update.
1770 * s390-tdep.c (s390_gdbarch_init): Update.
1771 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1772 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1773 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1774 * mcore-tdep.c (mcore_gdbarch_init): Update.
1775 * m68k-tdep.c (m68k_gdbarch_init): Update.
1776 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1777 * ia64-tdep.c (ia64_gdbarch_init): Update.
1778 * h8300-tdep.c (h8300_gdbarch_init): Update.
1779 * frv-tdep.c (frv_gdbarch_init): Update.
1780 * cris-tdep.c (cris_gdbarch_init): Update.
1781 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
1783 2003-06-07 Andrew Cagney <cagney@redhat.com>
1785 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
1786 Assert that PC_REGNUM is valid.
1787 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
1789 2003-06-07 Andrew Cagney <cagney@redhat.com>
1791 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
1792 * gdbarch.h, gdbarch.c: Regenerate.
1793 * mn10300-tdep.c: Include "gdb_assert.h".
1794 (mn10300_read_fp): New function.
1795 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
1796 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
1797 * ia64-tdep.c: Include "gdb_assert.h".
1798 (ia64_read_fp): New function.
1799 (ia64_gdbarch_init): Set deprecated_target_read_fp to
1800 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
1801 * regcache.c (generic_target_read_sp): Delete function.
1802 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
1803 * inferior.h (generic_target_read_sp): Delete declaration.
1804 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
1805 generic_target_read_sp.
1806 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1807 * sparc-tdep.c (sparc_gdbarch_init): Ditto
1808 * sh-tdep.c (sh_gdbarch_init): Ditto.
1809 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1810 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
1812 2003-06-07 Andrew Cagney <cagney@redhat.com>
1814 * gdbarch.sh: Comment each field of startup_gdbarch.
1815 * gdbarch.h, gdbarch.c: Re-generate.
1817 2003-06-07 Andrew Cagney <cagney@redhat.com>
1819 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
1820 * gdbarch.h, gdbarch.c: Re-generate.
1821 * regcache.c: Update comments on read_pc et.al.
1822 (generic_target_read_pc): Delete function.
1823 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
1824 * inferior.h (generic_target_read_pc): Delete declaration.
1825 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
1826 generic_target_read_pc.
1827 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1828 * sh-tdep.c (sh_gdbarch_init): Ditto.
1829 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1830 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1832 2003-06-07 Andrew Cagney <cagney@redhat.com>
1834 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
1835 "index" with "special_local_sect". Use strcmp instead of STREQ.
1836 Append period to coments.
1838 2003-06-06 Mark Mitchell <mark@codesourcery.com>
1840 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
1841 (elfstab_offset_sections): Likewise.
1842 * gdb-stabs.h (stab_section_info): Likewise.
1843 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
1844 * objfiles.c (objfile_relocate): Likewise.
1845 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
1846 * remote.c (get_offsets): Likewise.
1847 (remote_cisco_objfile_relocate): Likewise.
1848 * somread.c (som_symfile_offsets): Likewise.
1849 * symfile.c (alloc_section_addr_info): New function.
1850 (build_section_addr_info_from_section_tab): Use it.
1851 (free_section_addr_info): Adjust.
1852 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
1853 (syms_from_objfile): Allocate local_addr dynamically.
1854 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
1856 (add_symbol_file_command): Allocate sect_opts dynamically.
1857 (reread_symbols): Avoid use of SECT_OFF_MAX.
1858 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
1859 (alloc_section_addr_info): Declare it.
1860 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
1861 * win32-nat.c (solib_symbols_add): Allocate section_addrs
1863 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
1865 2003-06-06 Andrew Cagney <cagney@redhat.com>
1867 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
1868 (d10v_frame_unwind_cache): Do not set "return_pc".
1870 2003-06-06 Michael Snyder <msnyder@redhat.com>
1872 * h8300-tdep.c: Make tidy (long lines).
1874 2003-06-06 Michal Ludvig <mludvig@suse.cz>
1876 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
1877 to regcache_collect().
1879 2003-06-05 J. Brobecker <brobecker@gnat.com>
1881 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
1882 pc_in_sigtramp multiarch method.
1883 (hppa_hpux_som_init_abi): Use it.
1884 (hppa_hpux_elf_init_abi): Likewise.
1885 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
1886 macro has been multiarched.
1887 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
1888 macro here, as hppa64 isn't multiarched yet.
1890 2003-06-05 Andrew Cagney <cagney@redhat.com>
1892 * Makefile.in (value_h): Add $(frame_h).
1893 * value.h: Include "frame.h".
1894 (struct value): Replace "frame_addr" with "frame_id".
1895 (VALUE_FRAME_ID): Replace VALUE_FRAME.
1896 * values.c (allocate_value): Use VALUE_FRAME_ID.
1897 (value_copy): Use VALUE_FRAME_ID.
1898 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
1899 * valops.c (value_assign): Update. Use frame_find_by_id.
1901 2003-06-05 Michal Ludvig <mludvig@suse.cz>
1903 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
1906 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
1908 * thread-db.c (check_event): For create/death event breakpoints,
1909 loop through all messages to ensure that we read the message
1910 corresponding to the breakpoint we are at.
1912 2003-06-04 Michael Snyder <msnyder@redhat.com>
1914 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
1916 2003-06-04 Mark Kettenis <kettenis@gnu.org>
1918 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
1919 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
1920 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
1921 when handling .eh_frame sections.
1923 2003-06-04 J. Brobecker <brobecker@gnat.com>
1925 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
1926 prepare_to_proceed procedure instead of the hppa-specific one.
1927 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
1929 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
1931 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
1932 * config.in: Regenerated.
1933 * configure.in: Add test for syscall function and check for
1934 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
1935 * configure: Regenerated.
1936 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
1938 (kill_lwp): New function that uses tkill syscall or
1939 uses kill, depending on whether threading model is nptl or not.
1940 All callers of kill() changed to use kill_lwp().
1941 (lin_lwp_wait): Make special check when WIFEXITED occurs to
1942 see if all threads have already exited in the nptl model.
1943 (stop_and_resume_callback): New callback function used by the
1944 lin_lwp_wait thread exit handling code.
1945 (stop_wait_callback): Check for threads already having exited and
1946 delete such threads fromt the lwp list when discovered.
1947 (stop_callback): Don't assert retcode of kill call.
1949 Roland McGrath <roland@redhat.com>
1950 * i386-linux-nat.c (ps_get_thread_area): New function needed by
1953 2003-06-03 Richard Henderson <rth@redhat.com>
1955 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
1956 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
1957 (alpha_sigtramp_frame_prev_register): Likewise.
1958 (alpha_heuristic_frame_prev_register): Likewise.
1959 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
1961 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
1962 alpha-specific register id names.
1963 (alpha_mdebug_frame_unwind_cache): Likewise.
1964 (alpha_mdebug_frame_prev_register): Likewise.
1966 2003-06-03 Richard Henderson <rth@redhat.com>
1968 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
1969 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
1970 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
1971 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
1973 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
1974 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
1975 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
1977 * alpha-linux-tdep.c: Remove unnecessary includes.
1978 * Makefile.in (alpha-linux-tdep.o): Update.
1980 2003-06-03 Richard Henderson <rth@redhat.com>
1982 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
1983 (alphabsd_fill_fpreg): Likewise.
1985 2003-06-03 J. Brobecker <brobecker@gnat.com>
1987 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
1988 references to struct frame_info fields by calls to the equivalent
1989 accessors. Necessary now that frame_info is opaque.
1991 2003-06-03 J. Brobecker <brobecker@gnat.com>
1993 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
1994 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
1995 structure, field no longer exists.
1997 2003-06-03 J. Brobecker <brobecker@gnat.com>
1999 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2000 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
2002 2003-06-03 J. Brobecker <brobecker@gnat.com>
2004 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
2005 references to struct frame_info fields by calls to the equivalent
2006 accessors. Necessary now that frame_info is opaque.
2008 2003-06-03 J. Brobecker <brobecker@gnat.com>
2010 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
2011 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
2012 structure, field no longer exists.
2014 2003-06-03 Theodore A. Roth <troth@openavr.org>
2016 * remote.c (init_remote_state): Compute sizeof_g_packet by
2017 accumulation of the size of all registers instead of blindly using
2018 DEPRECATED_REGISTER_BYTES.
2020 2003-06-03 Michael Snyder <msnyder@redhat.com>
2022 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
2023 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
2026 2003-06-03 J. Brobecker <brobecker@gnat.com>
2028 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
2029 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
2031 2003-06-03 Andrew Cagney <cagney@redhat.com>
2033 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
2034 (sparc_convert_to_raw): Delete function.
2035 (sparc_gdbarch_init): Do not set register_convert_to_raw or
2036 register_convert_to_virtual.
2038 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
2040 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
2041 layer if not dealing with a statically-linked threaded program.
2043 2003-06-03 Kris Warkentin <kewarken@qnx.com>
2045 * solib.c (solib_open): Update comment to reflect actual search order.
2047 2003-06-03 Andrew Cagney <cagney@redhat.com>
2049 * frame.c (get_frame_memory_signed): New function.
2050 (get_frame_memory, get_frame_memory_unsigned): New function.
2051 (get_frame_arch): New function.
2052 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
2053 (get_frame_memory, get_frame_unsigned_memory): Declare.
2054 * d10v-tdep.c (d10v_frame_unwind_cache): Use
2055 get_frame_memory_unsigned and get_frame_arch.
2056 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
2058 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
2060 * MAINTAINERS (write after approval): Add myself.
2062 2003-06-03 Jim Blandy <jimb@redhat.com>
2064 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
2065 elements of gregset_t are 64 bits each, but access registers
2066 are still 32 bits, so they're packed two per gregset_t
2067 element. Unpack/pack them properly.
2069 2003-06-02 David Carlton <carlton@bactrian.org>
2071 * linespec.c (find_methods): Break out code into
2072 add_matching_methods and add_constructors.
2073 (add_matching_methods): New.
2074 (add_constructors): Ditto.
2076 2003-06-02 Andrew Cagney <cagney@redhat.com>
2078 * sparc-tdep.c (sparc_print_registers): Delete call to
2079 REGISTER_CONVERTIBLE.
2080 (sparc_gdbarch_init): Do not set register_convertible.
2081 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2082 * frv-tdep.c (frv_gdbarch_init): Ditto.
2083 * cris-tdep.c (cris_gdbarch_init): Ditto.
2085 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
2087 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
2088 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
2089 (syms_from_objfile): Ditto.
2091 2003-06-03 Andreas Schwab <schwab@suse.de>
2093 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
2094 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
2096 2003-06-02 Richard Henderson <rth@redhat.com>
2098 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
2099 a member of all_reggroup.
2101 2003-06-02 Richard Henderson <rth@redhat.com>
2103 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
2104 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
2105 (alpha_lds, alpha_sts): New.
2106 (alpha_convert_register_p): Change from _register_convertible.
2107 (alpha_register_to_value): Change from _convert_to_virtual;
2108 restructure and fail for type sizes other than 4 or 8.
2109 (alpha_value_to_register): Similarly.
2110 (alpha_extract_return_value): Use alpha_sts.
2111 (alpha_store_return_value): Use alpha_lds.
2112 (alpha_gdbarch_init): Update hooks.
2114 2003-06-02 Richard Henderson <rth@redhat.com>
2116 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
2118 (alpha_sigtramp_register_address): Likewise.
2120 2003-06-02 Richard Henderson <rth@redhat.com>
2122 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
2123 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
2124 * alpha-tdep.h: Declare them.
2126 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
2127 Remove zerobuf. Don't error on UNIQUE.
2128 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
2129 (ALPHA_REGSET_UNIQUE): Provide default.
2130 (supply_gregset): Use alpha_supply_int_regs.
2131 (fill_gregset): Use alpha_fill_int_regs.
2132 (supply_fpregset): Use alpha_supply_fp_regs.
2133 (fill_fpregset): Use alpha_fill_fp_regs.
2134 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
2135 (alphabsd_supply_reg): Use alpha_supply_int_regs.
2136 (alphabsd_fill_reg): Use alpha_fill_int_regs.
2137 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
2138 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
2139 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
2141 2003-06-02 Richard Henderson <rth@redhat.com>
2143 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
2145 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
2146 (alpha_store_return_value): Likewise.
2148 2003-06-02 David Carlton <carlton@math.stanford.edu>
2150 * block.c (contained_in): Add 'const' to arguments.
2151 (block_function): Ditto.
2152 * block.h: Update declarations for block_function and
2155 2003-06-02 David Carlton <carlton@math.stanford.edu>
2157 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
2158 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
2159 * p-valprint.c (pascal_val_print): Ditto.
2160 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
2162 2003-06-02 Richard Henderson <rth@redhat.com>
2164 * alpha-tdep.c (alpha_push_dummy_call): Use
2165 builtin_type_ieee_double_little instead of builtin_type_double.
2167 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
2168 sign-extension of 32-bit values.
2169 (alpha_store_return_value): Similarly.
2171 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
2172 (alpha_extract_return_value): Likewise.
2173 (alpha_store_return_value): Likewise.
2175 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
2176 (alpha_store_return_value): Error on IEEE Quad floats.
2178 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
2179 (alpha_extract_struct_value_address): Likewise.
2180 (alpha_store_return_value): Likewise.
2181 (alpha_store_struct_return): Remove.
2182 (alpha_gdbarch_init): Update hook registration to match.
2184 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
2185 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
2186 macros where appropriate.
2187 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
2188 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
2190 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
2191 for SP, GP; void_func_ptr for PC; non-language-specific types
2193 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
2195 2003-06-02 Richard Henderson <rth@redhat.com>
2197 * top.h (lim_at_start): Declare.
2198 * main.c (captured_main): Set it.
2199 * top.c (lim_at_start): Define.
2200 (command_loop): Use it instead of &environ.
2201 * event-top.c (command_handler): Likewise.
2203 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
2205 * mipsnbsd-tdep.c: Update copyright years.
2206 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
2208 2003-06-01 Richard Henderson <rth@redhat.com>
2210 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
2211 (alpha-linux-tdep.o): Update dependencies.
2212 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
2213 * alpha-mdebug-tdep.c: Remove unneeded includes.
2215 2003-06-01 Richard Henderson <rth@redhat.com>
2217 * alpha-tdep.c (alpha_register_reggroup_p): New.
2218 (alpha_gdbarch_init): Register it.
2220 2003-06-02 Andrew Cagney <cagney@redhat.com>
2222 * dwarfread.c: Eliminate "register"
2223 (decode_die_type): Eliminate assignment within "if".
2224 (struct_type, decode_array_element_type): Ditto.
2225 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
2226 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
2227 (decode_modified_type, completedieinfo): Ditto.
2228 * block.c: Eliminate "register".
2229 (blockvector_for_pc_sect): Eliminate assignment within "if".
2230 * cp-support.h (struct symbol): Opaque declaration.
2231 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
2233 2003-06-01 Richard Henderson <rth@redhat.com>
2235 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
2236 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
2238 2003-06-01 Adam Fedor <fedor@gnu.org>
2240 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
2241 * gdbarch.[ch]: Regenerate.
2242 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
2243 (hppa_gdbarch_init): Set it in the gdbarch vector.
2244 * i386-tdep.c (i386_fetch_pointer_argument): New
2245 (i386_gdbarch_init): Set it into gdbarch.
2246 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
2247 (rs6000_gdbarch_init): Set it in gdbarch.
2248 * sparc-tdep.c (sparc_fetch_pointer_argument): New
2249 (sparc_gdbarch_init): Set it in gdbarch.
2251 2003-06-01 Andrew Cagney <cagney@redhat.com>
2253 * defs.h (extract_address): Delete declaration.
2254 * findvar.c (extract_address): Delete function.
2255 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
2256 extract_address with the inline equivalent,
2257 extract_unsigned_integer.
2258 (xstormy16_extract_struct_value_address): Ditto.
2259 (xstormy16_pointer_to_address): Ditto.
2260 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
2261 * v850-tdep.c (v850_push_arguments): Ditto.
2262 (v850_extract_return_value): Ditto.
2263 (v850_extract_struct_value_address): Ditto.
2264 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
2265 (sparcnbsd_get_longjmp_target_64): Ditto.
2266 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
2267 (get_longjmp_target): Ditto.
2268 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
2269 (sh64_extract_struct_value_address): Ditto.
2270 (sh_push_arguments): Ditto.
2271 (sh64_push_arguments): Ditto.
2272 * remote-vxsparc.c (vx_read_register): Ditto.
2273 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
2274 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
2275 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
2276 * mipsv4-nat.c (get_longjmp_target): Ditto.
2277 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
2278 * mips-nat.c (get_longjmp_target): Ditto.
2279 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
2280 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
2281 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
2282 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
2283 * irix5-nat.c (get_longjmp_target): Ditto.
2284 * irix4-nat.c (get_longjmp_target): Ditto.
2285 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
2286 (ia64_push_arguments): Ditto.
2287 * hpux-thread.c (hpux_thread_store_registers): Ditto.
2288 * h8300-tdep.c (h8300_push_arguments): Ditto.
2289 (h8300_store_return_value): Ditto.
2290 (h8300_extract_struct_value_address): Ditto.
2291 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
2292 (frv_push_arguments): Ditto.
2293 * avr-tdep.c (avr_pointer_to_address): Ditto.
2294 (avr_push_arguments): Ditto.
2295 * arm-tdep.c (arm_push_dummy_call): Ditto.
2296 (arm_get_longjmp_target): Ditto.
2297 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
2298 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
2299 (alpha_get_longjmp_target): Ditto.
2301 * solib-irix.c (extract_mips_address): Inline extract_address,
2302 replacing it with extract_signed_integer.
2303 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
2304 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
2305 (first_link_map_member, open_symbol_file_object): Ditto.
2306 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
2307 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
2308 (LM_NEXT, LM_NAME): Ditto.
2310 2003-06-01 Richard Henderson <rth@redhat.com>
2312 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
2313 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
2314 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
2315 (alpha_cannot_store_register): Likewise.
2316 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
2317 * alpha-nat.c (supply_gregset): Likewise.
2318 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
2320 2003-06-01 Andrew Cagney <cagney@redhat.com>
2322 * infcall.c (call_function_by_hand): Update comment on
2323 DEPRECATED_DUMMY_WRITE_SP.
2325 * mips-tdep.c (mips_gdbarch_init): Do not set
2326 deprecated_dummy_write_sp.
2327 (mips_eabi_push_dummy_call): Set the SP register.
2328 (mips_o64_push_dummy_call): Set the SP register.
2329 (mips_o32_push_dummy_call): Set the SP register.
2330 (mips_n32n64_push_dummy_call): Set the SP register.
2332 2003-06-01 Richard Henderson <rth@redhat.com>
2334 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
2335 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
2336 (supply_gregset): Likewise.
2337 * alpha-tdep.c (alpha_store_return_value): Likewise.
2338 (alpha_get_longjmp_target): Likewise.
2339 (alpha_register_name): Constify array.
2340 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
2341 deprecated_register_size, deprecated_register_bytes,
2342 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
2343 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
2344 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
2346 2003-06-01 Richard Henderson <rth@redhat.com>
2348 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
2349 from arg_reg_buffer to regcache to avoid double conversion.
2351 2003-06-01 Mark Kettenis <kettenis@gnu.org>
2353 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
2355 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
2356 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
2358 2003-06-01 Richard Henderson <rth@redhat.com>
2360 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
2361 (decode_frame_entry): Set it. Skip FDE augmentation.
2363 2003-06-01 Richard Henderson <rth@redhat.com>
2365 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
2366 not overlapping PC_REGNUM.
2368 2003-06-01 Richard Henderson <rth@redhat.com>
2370 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
2371 alpha_push_arguments. Don't dump argument register data to
2372 the target stack. Fix float and 128-bit long double semantics.
2373 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
2374 (alpha_fix_call_dummy): Remove.
2375 (alpha_call_dummy_words): Remove.
2376 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
2378 2003-06-01 Richard Henderson <rth@redhat.com>
2380 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
2382 2003-06-01 Andrew Cagney <cagney@redhat.com>
2384 * mips-tdep.c (is_mips16_addr): New function.
2385 (make_mips16_addr, unmake_mips16_addr): New functions.
2386 (pc_is_mips16, mips_fetch_instruction): Use.
2387 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
2388 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
2389 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
2390 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
2392 * config/mips/tm-mips.h: Update copyright.
2393 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
2394 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
2395 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
2396 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
2397 (TM_PRINT_INSN_MACH): Delete.
2398 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
2400 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
2401 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
2402 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
2403 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
2404 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
2405 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
2406 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
2407 mips*-*-riscos* and mips*-*-sysv* onto mips.
2408 * config/mips/mips64.mt: New file.
2409 * config/mips/mips.mt: New file.
2410 * config/mips/littlemips.mt: Delete file.
2411 * config/mips/decstation.mt: Delete file.
2412 * config/mips/vr4300el.mt: Delete file.
2413 * config/mips/vr5000el.mt: Delete file.
2414 * config/mips/vr5000.mt: Delete file.
2415 * config/mips/vr4100.mt: Delete file.
2416 * config/mips/vr4xxxel.mt: Delete file.
2417 * config/mips/vr4300.mt: Delete file.
2418 * config/mips/vr4xxx.mt: Delete file.
2419 * config/mips/bigmips.mt: Delete file.
2420 * config/mips/bigmips64.mt: Delete file.
2421 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
2422 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
2423 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
2424 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
2425 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
2427 * config/mips/tm-irix3.h: Ditto.
2428 * config/mips/tm-mipsv4.h: Ditto.
2429 * config/mips/tm-embed.h: Ditto.
2430 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
2432 * config/mips/tm-vr5000el.h: Delete file.
2433 * config/mips/tm-tx39l.h: Delete file.
2434 * config/mips/tm-vr4300el.h: Delete file.
2435 * config/mips/tm-vr4xxxel.h: Delete file.
2436 * config/mips/tm-vr4300.h: Delete file.
2437 * config/mips/tm-vr4100.h: Delete file.
2438 * config/mips/tm-vr4xxx.h: Delete file.
2439 * config/mips/tm-vr5000.h: Delete file.
2440 * config/mips/tm-embedl64.h: Delete file.
2441 * config/mips/tm-embedl.h: Delete file.
2442 * config/mips/tm-embed64.h: Delete file.
2443 * config/mips/tm-bigmips64.h: Delete file.
2444 * config/mips/tm-bigmips.h: Delete file.
2446 2003-06-01 Mark Kettenis <kettenis@gnu.org>
2449 * shnbsd-nat.c: Include "sh-tdep.h".
2451 From Richard Henderson <rth@redhat.com>:
2452 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
2454 2003-05-31 Andrew Cagney <cagney@redhat.com>
2456 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
2457 forward declaration.
2458 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
2459 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
2460 (mips_find_saved_regs): Use set_reg_offset.
2461 (mips_frame_init_saved_regs): Delete function.
2462 (mips_pop_frame): Call mips_find_saved_regs instead of
2463 DEPRECATED_FRAME_INIT_SAVED_REGS.
2465 2003-05-31 Andrew Cagney <cagney@redhat.com>
2467 * mips-tdep.c (mips_gdbarch_init): Do not set
2468 deprecated_max_register_raw_size, register_virtual_size, and
2469 deprecated_max_register_virtual_size.
2471 2003-05-31 Mark Kettenis <kettenis@gnu.org>
2473 * i386-tdep.c: Include "dwarf2-frame.h".
2474 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
2475 * Makefile.in (i386-tdep.o): Update dependencies.
2477 * dwarf2-frame.c, dwarf2-frame.h: New files.
2478 * Makefile.in (SFILES): Add dwarf2-frame.c.
2479 (dwarf2_frame_h): Define.
2480 (COMMON_OBS): Add dwarf2-frame.o.
2481 (dwarf2-frame.o): Add dependencies.
2483 2003-05-31 Andreas Jaeger <aj@suse.de>
2485 * x86-64-linux-nat.c: Fix comment.
2487 2003-05-31 Mark Kettenis <kettenis@gnu.org>
2489 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
2492 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
2493 have a sigcontext_addr handler.
2494 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
2495 sigcontext_addr handler.
2497 2003-05-31 Andrew Cagney <cagney@redhat.com>
2499 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
2500 (print_fp_register_row): Replace do_fp_register_row.
2501 (mips_print_fp_register): Add "file" and "frame" parameters.
2502 (mips_print_register): Add "file" and "frame" parameters.
2503 (mips_print_registers_info): Replace mips_do_registers_info.
2504 (mips_gdbarch_init): Set print_registers_info instead of
2505 deprecated_do_registers_info.
2506 (mips_read_fp_register_single): Add "frame" parameter.
2507 (mips_read_fp_register_double): Add "frame" parameter.
2509 2003-05-31 Mark Kettenis <kettenis@gnu.org>
2511 * i386-tdep.c (i386_register_name): Check for MMX registers first.
2512 Fixes a bug where GDB would print the wrong register names for
2513 targets without SSE.
2515 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
2516 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
2519 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
2520 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
2521 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2524 From Michal Ludvig <mludvig@suse.cz>:
2525 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
2527 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
2528 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
2529 I386_ST0_REGNUM): Move here from...
2530 * i386-tdep.c: ... here.
2531 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
2532 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
2533 registers if possible.
2534 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
2535 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
2537 (i386bsd_sc_reg_offset): New variable.
2538 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
2539 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2541 (i386fbsd_sc_reg_offset): New variable.
2542 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
2544 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
2546 (i386fbsd4_sc_reg_offset): New variable.
2547 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
2548 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2550 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
2551 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
2552 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
2554 (i386nbsd_sc_reg_offset): New variable.
2555 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
2556 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2558 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
2560 (i386obsd_sc_reg_offset): New variable.
2561 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
2562 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2564 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
2565 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
2566 for frame pointer offset in `struct sigcontext'.
2568 2003-05-31 Andrew Cagney <cagney@redhat.com>
2570 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
2571 architecture methods call_dummy_words, sizeof_call_dummy_words,
2572 push_return_address, store_struct_return, and fix_call_dummy. Set
2573 push_dummy_call instead of deprecated_push_arguments.
2574 (mips_store_struct_return): Delete function.
2575 (mips_fix_call_dummy): Delete function.
2576 (mips_push_return_address): Delete function.
2577 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
2578 RA_REGNUM and T9_REGNUM.
2579 (mips_n32n64_push_dummy_call): Ditto for
2580 mips_n32n64_push_arguments.
2581 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
2582 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
2584 2003-05-31 Andrew Cagney <cagney@redhat.com>
2586 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
2587 "dummy_addr" to "bp_addr".
2588 * infcall.c (call_function_by_hand): Pass "funaddr" to
2589 gdbarch_push_dummy_call.
2590 * gdbarch.h, gdbarch.c: Re-generate.
2591 * i386-tdep.c (i386_push_dummy_call): Update.
2592 * arm-tdep.c (arm_push_dummy_call): Update.
2593 * d10v-tdep.c (d10v_push_dummy_call): Update.
2595 2003-05-31 Mark Kettenis <kettenis@gnu.org>
2597 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
2598 variable declarations.
2599 (x86_64_register_number, x86_64_register_name): Remove prototypes.
2600 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
2601 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
2602 x86_64_init_frame_pc, x86_64_init_frame_pc,
2603 x86_64_function_has_prologue): Remove prototypes.
2604 (X86_64_NUM_GREGS): New define.
2605 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
2606 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
2607 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
2608 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
2609 XMM1_REGNUM): Remove defines.
2610 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
2611 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
2612 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
2613 X86_64_XMM1_REGNUM): New defines.
2614 (struct x86_64_register_info): Renamed from `struct
2615 register_info'. Remove `size' member.
2616 (x86_64_register_info_table): Remove variable.
2617 (x86_64_register_info): New variable.
2618 (X86_64_NUM_REGS): New define.
2619 (X86_64_NUM_GREGS): Remove define.
2620 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
2621 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
2623 (x86_54_dwarf2_reg_to_regnum): Remove function.
2624 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
2625 (x86_64_dwarf_reg_to_regnum): New function.
2626 (x86_64_register_name): Rewrite.
2627 (x86_64_register_raw_size): Remove function.
2628 (x86_64_register_byte_table): Remove variable.
2629 (x86_64_register_byte): Remove function.
2630 (x86_64_register_virtual_type): Remove function.
2631 (x86_64_register_type): New function.
2632 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
2633 x86_64_register_convert_to_raw): Remove functions.
2634 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
2635 (x86_64_use_struct_convention): Make static. Adjust for renamed
2637 (x86_64_frame_init_saved_regs): Remove function.
2638 (x86_64_push_arguments): Make static. Change to accept a regcache
2640 (x86_64_store_return_value, x86_64_extract_return_value): Make
2641 static. Rewrite based on i386 counterparts.
2642 (x86_64_push_dummy_call): New function.
2643 (X86_64_NUM_SAVED_REGS): New define.
2644 (x86_64_register_number): Remove function.
2645 (x86_64_store_struct_return): Remove function.
2646 (x86_64_frameless_function_invocation,
2647 x86_64_function_has_prologue): Remove functions.
2648 (PROLOG_BUFSIZE): Remove define.
2649 (struct x86_64_frame_cache): New structure.
2650 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
2651 x86_64_frame_cache, x86_64_frame_this_id,
2652 x86_64_frame_prev_register, x86_64_frame_p,
2653 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
2654 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
2656 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
2658 (x86_64_skip_prologue): Rewrite in terms of
2659 x86_64_analyze_prologue.
2660 (x86_64_frame_base_address): New function.
2661 (x86_64_frame_base): New variable.
2662 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
2663 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
2664 set deprecated_fp_regnum, deprecated_register_size,
2665 deprecated_register_bytes, register_raw_size, register_byte,
2666 register_virtual_type, register_convertiable,
2667 register_convert_to_virtual, convert_to_raw,
2668 deprecated_get_saved_register, deprecated_target_read_fp,
2669 deprecated_push_arguments, deprecated_push_return_address,
2670 deprecated_pop_frame, deprecated_store_struct_return,
2671 deprecated_frame_init_saved_regs, deprecated_frame_chain,
2672 frameless_function_invocation, deprecated_frame_saved_pc,
2673 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
2674 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
2675 deprecated_init_frame_pc and virtual_frame_pointer. Call
2676 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
2677 and x86_64_frame_p. Call frame_base_set_default to register
2679 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
2680 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
2681 (_initialize_x86_64_tdep): Remove function.
2682 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
2683 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
2684 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
2686 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
2687 (x86_64_linux_sigcontext_addr): Rewrite.
2688 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
2689 x86_64_linux_frame_saved_pc): Remove functions.
2690 (x86_64_linux_pc_in_sigtramp): Renamed from
2691 x86_64_linux_in_sigtramp. Try harder to recognize a signal
2693 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
2695 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
2696 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
2697 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
2698 (x86_64_regmap): Rename to regmap.
2699 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
2701 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
2703 (x86_64_fxsave_offset): Remove function.
2704 (supply_fpregset): Simply call x86_64_supply_fxsave.
2705 (fill_fpregset): Simply call x86_64_fill_fxsave.
2706 (fetch_inferior_registers, store_inferior_registers): Avoid
2707 asignment in if-statement.
2708 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
2709 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
2710 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
2711 (fetch_core_registers): Remove function.
2712 (linux_elf_core_fns): Remove.
2713 (offsetoff): Don't define.
2714 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
2715 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
2716 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
2718 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
2719 protection against multiple includes instead of NM_X86_64_h. Add
2720 various comments. Include "config/nm-linux.h". Don't include
2722 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
2723 GET_THREAD_SIGNALS): Remove defines.
2724 (x86_64_register_u_addr, kernel_u_size,
2725 lin_thread_get_thread_signals): Remove prototypes.
2726 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
2727 [HAVE_LINK_H]: Don't include "solib.h".
2728 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
2729 * config/i386/tm-x86-64linux.h: Fix comments.
2730 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
2731 x86-64-tdep.o): Update dependencies.
2733 2003-05-30 Andrew Cagney <cagney@redhat.com>
2735 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
2736 Change parameter type to a "struct regcache *".
2738 * gdbarch.sh: Regardless of the multi-arch level, always define
2739 the macro when not already defined.
2740 * gdbarch.h, gdbarch.c: Re-generate.
2742 2003-05-30 Richard Henderson <rth@redhat.com>
2744 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
2745 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
2746 (alpha_mdebug_frame_this_id): Likewise.
2747 (alpha_mdebug_frame_prev_register): Likewise.
2748 (alpha_mdebug_frame_base_address): Likewise.
2749 (alpha_mdebug_frame_locals_address): Likewise.
2750 (alpha_mdebug_frame_args_address): Likewise.
2751 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
2752 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
2753 (alpha_heuristic_frame_unwind_cache): Make static; add missing
2755 (alpha_heuristic_frame_this_id): Make static.
2756 (alpha_heuristic_frame_prev_register): Likewise.
2757 (alpha_heuristic_frame_base_address): Likewise.
2758 * alpha-tdep.h: Update.
2760 2003-05-30 Mark Kettenis <kettenis@gnu.org>
2762 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
2763 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
2765 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
2766 * i386-tdep.c: Mark functions that are 64-bit safe as such.
2767 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
2768 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
2769 I386_ST0_REGNUM): New defines.
2770 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
2771 codestream_get): Remove define.
2772 (codestream_next_addr, condestream_addr, condestream_buf,
2773 codestream_off, codestream_cnt): Remove variables.
2774 (codestream_fill, codestream_seek, codestream_read): Remove
2776 (i386_follow_jump): Rewrite to avoid usage of removed codestream
2778 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
2779 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
2780 i386_frame_saved_pc, i386_saved_pc_after_call,
2781 i386_frame_num_args, i386_frame_init_saved_regs,
2782 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
2783 i386_push_arguments): Remove functions.
2784 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
2785 functionality. Use i386_analyze_prologue instead of
2786 i386_get_frame_setup.
2787 (I386_NUM_SAVED_REGS): New define.
2788 (struct i386_frame_cache): New structure.
2789 (i386_alloc_frame_cache, i386_analyze_struct_return,
2790 i386_skip_probe, i386_analyze_frame_setup,
2791 i386_analyze_register_saves, i386_analyze_prologue,
2792 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
2793 i386_frame_prev_register, i386_sigtramp_frame_cache,
2794 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
2795 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
2796 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
2798 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
2800 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
2801 I386_EAX_REGNUM and I386_EDX_REGNUM.
2802 (i386_extract_return_value, i386_store_return_value): Use
2803 I386_ST0_REGNUM where appropriate.
2804 (i386_extract_struct_value_address): Rewrite to use extract_address.
2805 (i386_svr4_pc_in_sigtramp): Add comment.
2806 (i386_svr4_sigcontext_addr): Rewrite.
2807 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
2809 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
2810 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
2811 of new defines. Set push_dummy_call, don't set
2812 deprecated_push_arguments, deprecated_push_return_address,
2813 deprecated_pop_frame. Don't set parm_boundary. Don't set
2814 deprecated_frame_chain, deprecated_frame_saved_pc,
2815 deprecated_saved_pc_after_call. Set unwind_dummy_id,
2816 save_dummy_frame_tos, unwind_pc. Call
2817 frame_unwind_append_predicate and frame_base_set_default. Don't
2818 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
2819 Don't set frameless_function_invocation. Don't set
2820 deprecated_register_bytes, deprecated_register_size,
2821 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
2822 * i386-linux-tdep.c: Fix formatting in some comments.
2823 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
2824 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
2825 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
2826 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
2827 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
2828 redundant parentheses.
2829 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
2830 (i386_linux_sigcontext_addr): Use it. Rewrite.
2831 (find_minsym_and_objfile): Change name of second argument.
2832 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
2833 changed. Use frame_pc_unwind instead of
2834 DEPRECATED_SAVED_PC_AFTER_CALL.
2835 (i386_linux_init_abi): Don't set deprecated_register_bytes.
2836 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
2837 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
2839 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
2841 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
2842 (_initialize_i386_cygwin_tdep): New prototype.
2843 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
2844 deprecated_frame_chain_valid.
2845 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
2846 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
2847 Rely on the SVR4 defaults.
2848 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
2849 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
2851 2003-05-30 Andrew Cagney <cagney@redhat.com>
2853 * infcall.c (call_function_by_hand): Always call
2854 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
2856 2003-05-30 Richard Henderson <rth@redhat.com>
2858 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
2861 2003-05-29 Jim Blandy <jimb@redhat.com>
2863 Use gdbarch methods for solib stuff on PowerPC Linux.
2864 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
2865 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
2867 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2868 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
2869 giving the same effect as the #definitions above.
2871 2003-05-29 Adam Fedor <fedor@gnu.org>
2873 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
2874 (find_implementation_from_class): Replace it with the standard
2875 case i.e. do nothing.
2877 2003-05-29 Richard Henderson <rth@redhat.com>
2879 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
2880 (alpha_linux_sigtramp_offset): Use it. Make static.
2881 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
2882 update for new frame model.
2883 * alpha-mdebug-tdep.c: New file.
2884 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
2885 (alpha_osf1_init_abi): Install it.
2886 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
2887 (linked_proc_desc_table): Remove.
2888 (alpha_frame_past_sigtramp_frame): Remove.
2889 (alpha_dynamic_sigtramp_offset): Remove.
2890 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
2891 (alpha_proc_desc_is_dyn_sigtramp): Remove.
2892 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
2893 (push_sigtramp_desc): Remove.
2894 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
2895 (alpha_cannot_store_register): Likewise.
2896 (alpha_sigcontext_addr): Remove.
2897 (alpha_find_saved_regs): Remove.
2898 (alpha_frame_init_saved_regs): Remove.
2899 (alpha_init_frame_pc_first): Remove.
2900 (read_next_frame_reg): Remove.
2901 (alpha_frame_saved_pc): Remove.
2902 (alpha_saved_pc_after_call): Remove.
2903 (temp_proc_desc, temp_saved_regs): Remove.
2904 (alpha_about_to_return): Remove.
2905 (cached_proc_desc): Remove.
2906 (alpha_frame_chain): Remove.
2907 (alpha_print_extra_frame_info): Remove.
2908 (alpha_init_extra_frame_info): Remove.
2909 (alpha_frame_locals_address): Remove.
2910 (alpha_frame_args_address): Remove.
2911 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
2912 (alpha_push_dummy_frame): Remove.
2913 (alpha_pop_frame): Remove.
2914 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
2915 (alpha_read_insn): New.
2916 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
2917 for different insn encodings.
2918 (alpha_in_lenient_prologue): Remove.
2919 (struct alpha_sigtramp_unwind_cache): New.
2920 (alpha_sigtramp_frame_unwind_cache): New.
2921 (alpha_sigtramp_register_address): New.
2922 (alpha_sigtramp_frame_this_id): New.
2923 (alpha_sigtramp_frame_prev_register): New.
2924 (alpha_sigtramp_frame_unwind): New.
2925 (alpha_sigtramp_frame_p): New.
2926 (struct alpha_heuristic_unwind_cache): New.
2927 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
2928 don't count nop insns that occur between functions.
2929 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
2930 heuristic_proc_desc, but without the mdebug wrapping.
2931 (alpha_heuristic_frame_this_id): New.
2932 (alpha_heuristic_frame_prev_register): New.
2933 (alpha_heuristic_frame_unwind): New.
2934 (alpha_heuristic_frame_p): New.
2935 (alpha_heuristic_frame_base_address): New.
2936 (alpha_heuristic_frame_base): New.
2937 (alpha_unwind_dummy_id): New.
2938 (alpha_unwind_pc): New.
2939 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
2940 frame related deprecated initializations; install replacements.
2941 (alpha_dump_tdep): Remove.
2942 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
2943 (alpha_read_insn, alpha_after_prologue,
2944 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
2945 alpha_heuristic_frame_prev_register,
2946 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
2947 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2948 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
2949 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
2951 2003-05-29 Andrew Cagney <cagney@redhat.com>
2953 * gdb_assert.h (gdb_assert_fail): Provide different definitions
2954 dependant on the availability of ASSERT_FUNCTION.
2955 (ASSERT_FUNCTION): Do not define when there is no function name.
2957 2003-05-29 Kevin Buettner <kevinb@redhat.com>
2959 From Jimi X <jimix@watson.ibm.com>:
2960 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
2962 2003-05-28 Jim Blandy <jimb@redhat.com>
2964 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
2965 argument to ptrace to int; the system headers should give it the
2966 right type, and pointers don't fit in ints on powerpc64-*-*.
2968 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
2970 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
2973 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
2975 * stabsread.c (dbx_lookup_type): Make static.
2977 (add_undefined_type): Ditto.
2978 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
2981 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
2983 * hpread.c (hpread_has_name): Make static.
2984 (hpread_psymtab_to_symtab): Ditto.
2985 (file_exists): Ditto.
2986 (hpread_call_pxdb): Ditto.
2987 (hpread_pxdb_needed): Ditto.
2988 (hpread_quick_traverse): Ditto.
2989 (hpread_get_header): Ditto.
2990 (hpread_get_lntt): Ditto.
2991 (hpread_get_slt): Ditto.
2994 2003-05-25 Andreas Schwab <schwab@suse.de>
2996 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
2997 stack_align and deprecated_extra_stack_alignment_needed.
2998 (m68k_stack_align): Delete.
3000 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
3001 (m68k_register_virtual_size): Likewise.
3002 (altos_skip_prologue): Remove obsolete function.
3003 (isi_frame_num_args): Likewise.
3004 (news_frame_num_args): Likewise.
3005 (m68k_fix_call_dummy): Make static.
3006 (m68k_push_dummy_frame): Likewise.
3007 (m68k_pop_frame): Likewise.
3008 (m68k_skip_prologue): Likewise.
3009 (m68k_frame_init_saved_regs): Likewise.
3010 (m68k_saved_pc_after_call): Likewise.
3011 (m68k_get_longjmp_target): Make multi-arch.
3012 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
3013 structure. Register m68k_get_longjmp_target if enabled.
3014 * m68k-tdep.h (struct gdbarch_tdep): Define.
3015 * config/m68k/tm-m68k.h: Don't include "regcache.h".
3017 * Makefile.in (config.status): Also depend on configure.tgt
3019 (m68klinux-tdep.o): Update dependencies.
3020 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
3021 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
3022 (M68K_LINUX_JB_PC): Define.
3023 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
3024 and take additional parameter.
3025 (m68k_linux_sigtramp_saved_pc): Update.
3026 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
3027 m68k_linux_pc_in_sigtramp, in_plt_section,
3028 find_solib_trampoline_target.
3029 * config/m68k/tm-linux.h: Don't include any tm headers.
3030 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
3031 (JB_ELEMENT_SIZE): Likewise.
3033 (GET_LONGJMP_TARGET): Likewise.
3034 (IN_SIGTRAMP): Likewise.
3035 (SVR4_SHARED_LIBS): Define this and include "solib.h".
3037 2003-05-25 Mark Kettenis <kettenis@gnu.org>
3039 * sparc-tdep.c (sparc32_do_push_arguments): New function.
3040 (sparc32_push_arguments): Re-implement by calling
3041 sparc32_do_push_arguments.
3043 2003-05-25 Mark Kettenis <kettenis@gnu.org>
3045 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
3046 SPARC_O1_REGNUM): New defines.
3047 (sparc32_extract_return_value): Rewrite to operate on a regcache.
3048 (sparc32_store_return_value): New function.
3049 (sparc_extract_struct_value_address): Rewrite to operate on a
3051 (sparc_gdbarch_init): Don't set
3052 deprecated_extract_struct_value_address. Set
3053 extract_struct_value_address instead. Don't set
3054 deprecated_extract_return_value and deprecated_store_return_value
3055 for 32-bit targets. Set extract_return_value and
3056 store_return_value instead.
3057 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
3058 DEPRECTAED_EXTRACT_RETURN_VALUE,
3059 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
3060 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
3061 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
3062 (sparc_store_return_value): Remove prototype.
3063 (sparc32_store_return_value): New prototype.
3064 (sparc32_extract_return_value, sparc_extract_struct_value_address):
3067 2003-05-24 Mark Kettenis <kettenis@gnu.org>
3069 * sparcnbsd-tdep.c: Include "gdb_string.h".
3071 2003-05-23 Andrew Cagney <cagney@redhat.com>
3073 * p-valprint.c (pascal_val_print): Replace extract_address with
3074 the inline equivalent extract_unsigned_integer.
3075 * jv-valprint.c (java_value_print): Ditto.
3076 * ada-valprint.c (ada_val_print_1): Ditto.
3077 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
3079 2003-05-23 Theodore A. Roth <troth@openavr.org>
3081 * blockframe.c (frameless_look_for_prologue): Remove unused
3082 after_prologue variable.
3084 2003-05-23 Mark Kettenis <kettenis@gnu.org>
3086 * blockframe.c (get_pc_function_start): Rewrite to avoid
3087 asignments in if-statements.
3089 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
3091 Committed by Elena Zannoni <ezannoni@redhat.com>.
3092 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
3093 files, don't relocate absolute symbols (and do use mst_abs).
3095 2003-05-23 Andrew Cagney <cagney@redhat.com>
3097 * objc-lang.c: Include "gdb_assert.h".
3098 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
3099 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
3100 (gdb_check, gdb_check_fatal): Delete functions.
3101 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
3103 (parse_selector, parse_method, find_methods, find_imps): Ditto.
3104 * Makefile.in (objc-lang.o): Update dependencies.
3106 2003-05-22 Ian Lance Taylor <ian@airs.com>
3108 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
3109 with fprintf_filtered, not fprintf_unfiltered.
3111 2003-05-22 Andrew Cagney <cagney@redhat.com>
3113 * stack.c (frame_info): Inline extract_address, replacing it with
3114 extract_unsigned_integer.
3115 * findvar.c (unsigned_pointer_to_address): Ditto.
3116 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
3117 * dwarf2expr.c (dwarf2_read_address): Ditto.
3118 * frame.c (frame_pc_unwind): Update comment.
3119 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
3121 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
3123 * infptrace.c (detach): Call print_sys_errmsg rather than
3124 perror_with_name to issue warning message when errno is non-zero
3125 after calling ptrace detach.
3127 2003-05-21 J. Brobecker <brobecker@gnat.com>
3129 * config/pa/tm-hppa.h: Delete some unused macros. Move some
3130 macro definitions from here...
3131 * hppa-tdep.c: ...to there.
3133 2003-05-20 Kevin Buettner <kevinb@redhat.com>
3135 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
3136 register_ptrace_addr(). Fix all callers.
3138 2003-05-21 Andreas Schwab <schwab@suse.de>
3140 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3142 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
3144 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
3145 (_initialize_m68k_linux_tdep): New function.
3146 (m68k_linux_frame_saved_pc): Make static.
3147 (m68k_linux_extract_return_value): Likewise.
3148 (m68k_linux_store_return_value): Likewise.
3149 (m68k_linux_extract_struct_value_address): Likewise.
3150 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
3152 (DEPRECATED_STORE_RETURN_VALUE): Remove.
3153 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3154 (DEPRECATED_FRAME_SAVED_PC): Remove.
3156 2003-05-20 Kris Warkentin <kewarken@qnx.com>
3158 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
3159 regset numbering rather than our own.
3161 2003-05-19 David Carlton <carlton@bactrian.org>
3163 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
3165 2003-05-19 David Carlton <carlton@bactrian.org>
3167 Partial fix for PR c++/827.
3168 * cp-support.h: Include symtab.h.
3169 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
3170 * cp-namespace.c: Update contributors.
3171 (cp_lookup_symbol_nonlocal): New.
3172 (lookup_namespace_scope, cp_lookup_symbol_namespace)
3173 (lookup_symbol_file): Ditto.
3174 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
3175 * block.h: Declare block_scope, block_using, block_global_block.
3176 * block.c (block_scope): New.
3177 (block_using, block_global_block): Ditto.
3178 * Makefile.in (cp_support_h): Depend on symtab_h.
3179 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
3181 2003-05-19 David Carlton <carlton@bactrian.org>
3183 * language.h (struct language_defn): Add 'la_value_of_this'
3184 and 'la_lookup_symbol_nonlocal' members.
3185 * symtab.h: Declare basic_lookup_symbol_nonlocal,
3186 lookup_symbol_static, lookup_symbol_global,
3187 lookup_symbol_aux_block.
3188 * symtab.c (lookup_symbol_aux): Call language hooks to determine
3189 if we should search fields of this and how to do static/global
3191 (lookup_symbol_aux_block): Make extern.
3192 (basic_lookup_symbol_nonlocal): New.
3193 (lookup_symbol_static, lookup_symbol_global): Ditto.
3194 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
3195 'la_lookup_symbol_nonlocal' members.
3196 * c-lang.c (c_language_defn, cplus_language_defn)
3197 (asm_language_defn, minimal_language_defn): Ditto.
3198 * jv-lang.c (java_language_defn): Ditto.
3199 * language.c (unknown_language_defn, auto_language_defn)
3200 (local_language_defn): Ditto.
3201 * m2-lang.c (m2_language_defn): Ditto.
3202 * objc-lang.c (objc_language_defn): Ditto.
3203 * scm-lang.c (scm_language_defn): Ditto.
3204 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
3205 * p-lang.c (pascal_language_defn): Ditto for both.
3206 * Makefile.in (f-lang.o): Depend on value_h.
3209 2003-05-19 David Carlton <carlton@bactrian.org>
3211 * block.h: Declare block_static_block.
3212 * block.c (block_static_block): New.
3213 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
3214 lookup_symbol_aux_local, calling block_static_block instead.
3215 (lookup_symbol_aux_local): Delete 'static_block' argument.
3217 2003-05-19 David Carlton <carlton@bactrian.org>
3219 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
3221 2003-05-19 Michal Ludvig <mludvig@suse.cz>
3223 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
3224 register numbers mapping.
3226 2003-05-18 Adam Fedor <fedor@gnu.org>
3228 * symtab.c (completion_list_objc_symbol): New function.
3229 (make_symbol_completion_list): Use it to add ObjC symbols
3230 when looking though the list.
3231 (language_search_unquoted_string): New function.
3232 (make_file_symbol_completion_list): Use it.
3234 2003-05-18 Andreas Schwab <schwab@suse.de>
3236 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
3238 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
3239 as m68k_linux_extract_return_value.
3240 (DEPRECATED_STORE_RETURN_VALUE): Define as
3241 m68k_linux_store_return_value.
3242 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
3243 m68k_linux_extract_struct_value_address.
3244 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
3245 get_next_frame, get_frame_base, get_frame_pc.
3246 (m68k_linux_frame_saved_pc): Use get_frame_base.
3247 (m68k_linux_extract_return_value): New function.
3248 (m68k_linux_store_return_value): New function.
3249 (m68k_linux_extract_struct_value_address): New function.
3250 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
3252 * c-exp.y (typebase): Remove duplicate occurence of
3253 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
3254 of lookup_signed_typename.
3256 2003-05-18 Mark Kettenis <kettenis@gnu.org>
3258 * dwarf2loc.c (find_location_expression): Change type of second
3259 argument to `size_t *'.
3260 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
3263 2003-05-18 David Carlton <carlton@bactrian.org>
3265 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
3266 'linkage_name'. Add comment.
3267 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
3269 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
3270 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
3271 (lookup_block_symbol): Ditto.
3273 2003-05-16 Andrew Cagney <cagney@redhat.com>
3275 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
3276 * gdbarch.h, gdbarch.c: Re-generate.
3277 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
3278 * TODO (REGISTER_BYTES): Delete reference.
3279 * alpha-tdep.c (alpha_gdbarch_init): Update.
3280 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3281 * x86-64-tdep.c (x86_64_init_abi): Update.
3282 * vax-tdep.c (vax_gdbarch_init): Update.
3283 * v850-tdep.c (v850_gdbarch_init): Update.
3284 * sparc-tdep.c (sparc_gdbarch_init): Update.
3285 * sh-tdep.c (sh_gdbarch_init): Update.
3286 * s390-tdep.c (s390_gdbarch_init): Update.
3287 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3288 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3289 (ns32k_gdbarch_init_32382): Update.
3290 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3291 * mcore-tdep.c (mcore_gdbarch_init): Update.
3292 * m68k-tdep.c (m68k_gdbarch_init): Update.
3293 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3294 * ia64-tdep.c (ia64_gdbarch_init): Update.
3295 * i386-tdep.c (i386_gdbarch_init): Update.
3296 * i386-linux-tdep.c (i386_linux_init_abi): Update.
3297 * hppa-tdep.c (hppa_gdbarch_init): Update.
3298 * h8300-tdep.c (h8300_gdbarch_init): Update.
3299 * frv-tdep.c (frv_gdbarch_init): Update.
3300 * cris-tdep.c (cris_gdbarch_init): Update.
3301 * avr-tdep.c (avr_gdbarch_init): Update.
3302 * arm-tdep.c (arm_gdbarch_init): Update.
3303 * sparc-tdep.c (sparc_pop_frame): Update.
3304 * rs6000-tdep.c (rs6000_pop_frame): Update.
3305 * remote.c (init_remote_state): Update.
3306 (remote_prepare_to_store): Update.
3307 * remote-vx.c (vx_prepare_to_store): Update.
3308 * remote-sds.c (sds_fetch_registers): Update.
3309 (sds_prepare_to_store): Update.
3310 * remote-array.c: Update.
3311 * regcache.c (init_legacy_regcache_descr): Update.
3312 (init_regcache_descr): Update.
3313 * mips-tdep.c (mips_eabi_extract_return_value): Update.
3314 (mips_o64_extract_return_value): Update.
3315 * irix5-nat.c (fetch_core_registers): Update.
3316 * irix4-nat.c (fetch_core_registers): Update.
3317 * i386-tdep.h: Update.
3318 * hppa-tdep.c (pa_do_registers_info): Update.
3319 (pa_do_strcat_registers_info): Update.
3320 * cris-tdep.c (cris_register_bytes_ok): Update.
3321 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3322 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
3323 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
3324 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
3325 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
3326 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
3327 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
3328 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
3329 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
3330 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
3331 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
3332 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
3333 (REGISTER_BYTES_OK): Update.
3334 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
3335 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
3337 2003-05-16 Ian Lance Taylor <ian@airs.com>
3339 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
3340 (vax_print_insn, print_insn_arg): Remove static functions.
3341 (vax_gdbarch_init): Call set_gdbarch_print_insn with
3342 print_insn_vax from opcodes library.
3343 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
3345 2003-05-15 Andrew Cagney <cagney@redhat.com>
3347 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
3348 * target.h (memory_breakpoint_from_pc): Delete declaration.
3349 * mem-break.c (memory_breakpoint_from_pc): Delete function.
3350 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
3351 * monitor.c (monitor_insert_breakpoint): Use
3352 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
3353 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
3354 * gdbarch.h, gdbarch.c: Re-generate.
3355 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
3356 (sparc_gdbarch_init): Set breakpoint_from_pc to
3357 sparc_breakpoint_from_pc.
3358 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
3359 (BREAKPOINT_FROM_PC): Define.
3360 (sparc_breakpoint_from_pc): Declare.
3361 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
3362 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
3363 (BREAKPOINT_FROM_PC): Define.
3364 (BREAKPOINT): Delete macro.
3365 * target.h: Update comment.
3366 * s390-tdep.c (s390_gdbarch_init): Update comments.
3367 * remote.c: Update comments.
3368 * remote-mips.c: Update comments.
3369 * proc-api.c (write_with_trace): Do not check for a breakpoint.
3370 * mem-break.c: Update comment.
3371 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
3372 (ia64_memory_insert_breakpoint): Update.
3373 * config/sparc/tm-sparc.h: Update comment.
3374 * config/pa/tm-hppa64.h: Update comment.
3375 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
3376 (rs6000_breakpoint_from_pc): Update.
3377 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
3378 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
3379 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
3380 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
3381 (mips_breakpoint_from_pc): Update.
3382 (mips_dump_tdep): Update.
3384 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
3385 * minsyms.c (lookup_minimal_symbol): Inline
3386 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
3388 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
3389 * p-valprint.c (pascal_object_print_value_fields): Ditto.
3390 * p-lang.c (pascal_printstr): Ditto.
3391 * objc-lang.c (objc_printstr): Ditto.
3392 * m2-lang.c (m2_printstr): Ditto.
3393 * jv-valprint.c (java_print_value_fields): Ditto.
3394 * f-lang.c (f_printstr): Ditto.
3395 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
3396 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
3397 for repeat_count_threshold.
3398 * Makefile.in (cp-valprint.o): Update dependencies.
3400 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
3402 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
3403 (examine_prologue): Support looking through leaf functions, knowing
3404 they start with mov r2,r12. Support skipping over indirect stores
3405 of the input registers. Upon hitting a non-nop branch instruction
3406 or predicated instruction, bail out by setting lim_pc to the current
3407 pc value in the loop. At the end, if the lim_pc value is still
3408 beyond our calculated value and we have trust_limit set,
3409 use the lim_pc value.
3411 2003-05-15 Andrew Cagney <cagney@redhat.com>
3413 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
3414 generic_find_dummy_frame.
3415 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
3416 (deprecated_generic_find_dummy_frame): Update.
3417 (deprecated_read_register_dummy): Update.
3418 * frame.c (deprecated_generic_get_saved_register): Update.
3420 2003-05-15 Theodore A. Roth <troth@openavr.org>
3422 * avr-tdep.c (avr_breakpoint_from_pc): New function.
3423 (avr_gdbarch_init): Set breakpoint_from_pc method.
3425 2003-05-15 Andrew Cagney <cagney@redhat.com>
3427 * regcache.c (build_regcache): Set deprecated_register_valid
3429 (deprecated_grub_regcache_for_register_valid): Delete function.
3430 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
3433 2003-05-15 David Carlton <carlton@bactrian.org>
3435 Committed by Elena Zannoni <ezannoni@redhat.com>
3436 * symtab.c (lookup_symbol_aux): Delete calls to
3437 lookup_symbol_aux_minsyms.
3438 (lookup_symbol_aux_minsyms): Comment out function and
3439 prototype. Delete lookup by mangled name.
3441 2003-05-14 Kevin Buettner <kevinb@redhat.com>
3443 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
3444 correctly indicate an empty stack and ``stack_allocated'' to the
3445 indicate the number of elements initially allocated.
3446 (dwarf_expr_grow_stack): Simplify method for computing new
3447 stack size. Don't loop infinitely if ``stack_len'' is zero.
3448 (execute_stack_op): Move ``ctx->in_reg'' initialization
3449 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
3450 be used in conjuction with DW_OP_piece. Revise error message
3453 2003-05-14 Theodore A. Roth <troth@openavr.org>
3455 * MAINTAINERS: Update my email address.
3456 * avr-tdep.c: Ditto.
3458 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
3460 * symtab.h (enum domain_enum): Rename from namespace_enum.
3461 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
3462 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
3463 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
3464 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
3465 TYPES_NAMESPACE, METHODS_NAMESPACE.
3466 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
3467 (struct symbol, struct partial_symbol): Rename field
3468 'namespace_enum namespace' to 'domain_enum domain'.
3469 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
3470 Delete old define kludge for namespace.
3472 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
3473 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
3474 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
3475 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
3476 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
3477 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
3478 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
3479 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
3480 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
3481 occurrences of the above.
3483 2003-05-14 Ian Lance Taylor <ian@airs.com>
3485 * Makefile.in (install-only): Use $(SHELL) when running
3488 2003-05-13 Ian Lance Taylor <ian@airs.com>
3490 * MAINTAINERS (write after approval): Add myself.
3492 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
3493 second and third arguments.
3494 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3495 * ser-unix.c (_initialize_ser_hardwire): Likewise.
3497 2003-05-13 Andrew Cagney <cagney@redhat.com>
3499 * defs.h (store_address): Delete declaration.
3500 findvar.c (store_address): Delete function.
3501 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
3502 store_unsigned_integer.
3503 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
3504 * v850-tdep.c (v850_push_arguments): Ditto.
3505 * sparc-tdep.c (sparc_get_saved_register): Ditto.
3506 * sh-tdep.c (sh64_get_saved_register): Ditto.
3507 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
3508 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
3509 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
3510 (mips_get_saved_register): Ditto.
3511 * ia64-tdep.c (ia64_get_saved_register): Ditto.
3512 (find_func_descr, ia64_push_arguments): Ditto.
3513 * i386-tdep.c (i386_push_arguments): Ditto.
3514 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
3515 * frv-tdep.c (frv_push_arguments): Ditto.
3516 * frame.c (legacy_saved_regs_prev_register): Ditto.
3517 (deprecated_generic_get_saved_register): Ditto.
3518 * findvar.c (unsigned_address_to_pointer): Ditto.
3519 * dwarf2read.c (dwarf2_const_value): Ditto.
3520 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3521 * alpha-tdep.c (alpha_push_arguments): Ditto.
3523 2003-05-12 J. Brobecker <brobecker@gnat.com>
3525 * NEWS: Mention that the hppa-hpux port has been partially
3526 multiarched (32bit ABIT only, so far).
3528 2003-05-11 Andrew Cagney <cagney@redhat.com>
3530 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
3531 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
3532 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
3533 sim/testsuite/sim/arm/misaligned2.ms, and
3534 sim/testsuite/sim/arm/misaligned3.ms.
3535 * disasm.h (struct ui_file): Add opaque struct declaration.
3536 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
3537 * frame.h (struct ui_file): Ditto.
3539 2003-05-11 Mark Kettenis <kettenis@gnu.org>
3541 * value.h: Pretty print.
3543 2003-05-10 Mark Kettenis <kettenis@gnu.org>
3545 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
3547 2003-05-08 Andrew Cagney <cagney@redhat.com>
3549 * regcache.h (max_register_size): Delete declaration.
3550 * regcache.c (max_register_size): Delete function.
3551 (struct regcache_descr): Delete field "max_register_size".
3552 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
3553 registers fit in MAX_REGISTER_SIZE.
3554 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
3555 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
3556 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
3557 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
3558 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
3559 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
3560 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
3561 * dve3900-rom.c, hppa-tdep.c: Ditto.
3563 2003-05-08 David Carlton <carlton@math.stanford.edu>
3565 * valops.c (push_word): Fix typo.
3567 2003-05-08 Andrew Cagney <cagney@redhat.com>
3569 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
3570 * gdbarch.h: Re-generate.
3571 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
3572 (legacy_max_register_raw_size): Delete declaration.
3573 * regcache.c (legacy_max_register_raw_size): Delete function.
3574 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
3575 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
3576 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
3577 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
3578 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
3579 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
3580 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
3581 * findvar.c, dwarf2cfi.c: Ditto.
3583 2003-05-08 Andrew Cagney <cagney@redhat.com>
3585 * mips-tdep.c (read_signed_register): New function, moved to here
3587 (read_signed_register_pid): Ditto.
3588 * regcache.c (read_signed_register_pid): Delete function, moved to
3590 (read_signed_register): Ditto.
3591 * regcache.h (read_signed_register): Delete declaration.
3592 (read_signed_register_pid): Delete declaration.
3594 2003-05-08 Andrew Cagney <cagney@redhat.com>
3596 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
3597 * gdbarch.h: Re-generate.
3598 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
3599 (legacy_max_register_virtual_size): Delete declaration.
3600 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
3601 * d10v-tdep.c (d10v_print_registers_info): Ditto.
3602 * tracepoint.c (memrange_sortmerge): Ditto.
3603 * sparc-tdep.c (sparc_print_registers): Ditto.
3604 * regcache.c (legacy_max_register_virtual_size): Delete function.
3606 2002-05-08 J. Brobecker <brobecker@gnat.com>
3608 * fork-child.c (escape_bang_in_quoted_argument): New function.
3609 (fork_inferior): Escape '!' characters in quoted arguments
3612 2003-05-08 J. Brobecker <brobecker@gnat.com>
3614 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
3615 the language of the CU is not currently supported by GDB.
3617 2003-05-08 J. Brobecker <brobecker@gnat.com>
3619 * defs.h (language): Add language_minimal enum value.
3620 * c-lang.c (minimal_language_defn): New language definition.
3621 (_initialize_c_language): Add the new minimal language to the list
3622 of languages known to GDB.
3624 2003-05-08 Kevin Buettner <kevinb@redhat.com>
3626 * frame.c (get_frame_type): Don't attempt to lazily initialize
3627 frame's unwinder for legacy frames.
3629 2003-05-07 Andrew Cagney <cagney@redhat.com>
3631 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
3632 and "regcache" parameters.
3633 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
3635 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
3637 * dwarf2read.c (dwarf_decode_lines): Only use output of
3638 check_cu_functions() when calling record_line(). Do not update
3639 the current address.
3641 2003-05-07 Andrew Cagney <cagney@redhat.com>
3643 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
3646 2003-05-07 Jim Blandy <jimb@redhat.com>
3648 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
3649 'maint info symtabs' and 'maint info psymtabs'.
3650 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
3651 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
3652 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
3653 Declarations updated.
3654 * maint.c (maintenance_list_command): Delete.
3655 (_initialize_maint_cmds): Update calls to add_cmd.
3656 * gdbcmd.h (maintenancelistlist): Delete declaration.
3657 * cli/cli-cmds.c (maintenancelistlist): Delete.
3658 (init_cmd_lists): Don't initialize it.
3659 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
3661 2003-05-07 Andrew Cagney <cagney@redhat.com>
3663 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
3665 (d10v_print_registers_info): Update.
3666 (d10v_dmap_register, d10v_imap_register): Delete functions.
3667 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
3668 and "imap_register".
3669 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
3670 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
3671 * arch-utils.c (generic_remote_translate_xfer_address): Add
3672 "regcache" and "gdbarch" parameters.
3673 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
3674 parameter. Change class to multi-arch.
3675 * gdbarch.h, gdbarch.c: Re-generate.
3676 * remote.c (remote_xfer_memory): Use
3677 gdbarch_remote_translate_xfer_address.
3679 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
3681 * infrun.c (prev_pc): Move declaration ahead of proceed().
3682 (proceed): Refresh prev_pc value before resuming.
3683 (stop_stepping): Remove code to refresh prev_pc.
3685 2003-05-06 Kris Warkentin <kewarken@qnx.com>
3687 * nto-tdep.c: Removed stray comment.
3689 2003-05-06 Kris Warkentin <kewarken@qnx.com>
3691 * i386-nto-tdep.c: Fix old K&R function definitions.
3692 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
3693 Also change add_show_from_set() call to add_setshow_cmd().
3694 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
3696 2003-05-05 Andrew Cagney <cagney@redhat.com>
3698 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
3699 (fprint_dummy_frames): New function.
3700 (maintenance_print_dummy_frames): New function.
3701 (_initialize_dummy_frame): Add command "maint print dummy-frames".
3702 * frame.c (fprint_frame_id): Make global.
3703 * frame.h (fprint_frame_id): Declare.
3704 * Makefile.in (dummy-frame.o): Update dependencies.
3706 2003-05-05 Andrew Cagney <cagney@redhat.com>
3708 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
3709 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
3710 SIZEOF_CALL_DUMMY_WORDS.
3711 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
3712 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
3713 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
3714 CALL_DUMMY_BREAKPOINT_OFFSET.
3715 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
3716 CALL_DUMMY_START_OFFSET.
3717 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
3718 * gdbarch.h, gdbarch.c: Re-generate.
3719 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
3720 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
3721 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
3722 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
3723 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
3724 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
3725 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
3726 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
3727 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
3728 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
3729 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
3730 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
3731 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
3732 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
3733 * config/sparc/tm-sparc.h: Update.
3735 2003-05-05 Kris Warkentin <kewarken@qnx.com>
3737 * configure.tgt: Add i[3456]86-*-nto*.
3738 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
3739 * nto-tdep.c: New file. Neutrino target support routines.
3740 * nto-tdep.h: New file. Neutrino target header.
3741 * config/tm-qnxnto.h: New file.
3742 * config/i386/i386nto.mt: New file.
3743 * config/i386/tm-i386nto.h: New file.
3745 2003-05-04 Andrew Cagney <cagney@redhat.com>
3747 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
3748 (load_infrun_state): Ditto.
3749 (struct thread_info): Drop "prev_func_name" field.
3750 * thread.c (load_infrun_state): Update.
3751 (save_infrun_state): Update.
3752 * infrun.c (prev_func_name): Delete variable.
3753 (init_wait_for_inferior): Do not clear prev_func_name.
3754 (stop_stepping, keep_going, context_switch): Do not swap
3756 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
3757 instead of PC_IN_SIGTRAMP.
3759 2003-05-04 Andrew Cagney <cagney@redhat.com>
3761 * sentinel-frame.c (sentinel_frame_prev_register): Replace
3762 REGISTER_BYTE with register_offset_hack.
3763 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
3764 that REGISTER_BYTE is consistent with the regcache.
3765 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
3766 * gdbarch.h, gdbarch.c: Regenerate.
3768 2003-05-04 Mark Kettenis <kettenis@gnu.org>
3770 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
3771 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
3773 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
3775 2003-05-03 J. Brobecker <brobecker@gnat.com>
3777 From Thierry Schneider <tpschneider1@yahoo.com>
3778 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
3779 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
3780 (mi-cmd-symbol.o): Add rule.
3782 2003-05-03 Andrew Cagney <cagney@redhat.com>
3784 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
3785 comments noteing that it replaces the old FIX_CALL_DUMMY code.
3786 * gdbarch.h, gdbarch.c: Re-generate.
3787 * d10v-tdep.c (d10v_push_dummy_code): New function.
3788 (d10v_gdbarch_init): Set push_dummy_code.
3789 * infcall.c (legacy_push_dummy_code): New function.
3790 (generic_push_dummy_code): New function.
3791 (push_dummy_code): New function.
3792 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
3793 instead of dummy_addr, to push_dummy_call. Move call to
3794 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
3796 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
3798 2003-05-03 Andrew Cagney <cagney@redhat.com>
3800 * disasm.h (print_insn): Declare.
3801 * disasm.c (init_gdb_disassemble_info): New function.
3802 (gdb_disassembly): Call init_gdb_disassemble_info.
3803 (gdb_print_insn): New function.
3804 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
3805 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
3806 * mcore-tdep.c: Include "disasm.h"
3807 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
3808 * d10v-tdep.c: Include "disasm.h".
3809 (display_trace): Call gdb_print_insn, instead of print_insn.
3810 (print_insn): Delete function.
3811 * printcmd.c: Include "disasm.h".
3812 (print_insn): Delete function.
3813 (print_formatted): Call gdb_print_insn, instead of print_insn.
3814 * Makefile.in (printcmd.o): Update dependencies.
3815 (mcore-tdep.o, d10v-tdep.o): Ditto.
3817 2003-05-02 Andrew Cagney <cagney@redhat.com>
3819 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
3820 PC_REGNUM, re-indent.
3821 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
3822 PC_REGNUM isn't set.
3824 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
3825 * gdbarch.h, gdbarch.c: Re-generate.
3826 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
3827 register_virtual_size, pc_regnum, or register_bytes.
3828 (D10V_PC_REGNUM): Rename _PC_REGNUM.
3829 (d10v_register_type): Use D10V_PC_REGNUM.
3830 (d10v_print_registers_info, d10v_read_pc): Ditto.
3831 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
3832 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
3834 2003-05-02 David Carlton <carlton@bactrian.org>
3836 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
3837 the name with mstrsave.
3839 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
3841 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
3842 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
3843 (host_charset_name, target_charset_name): New vars for use by
3845 (host_charset_enum, target_charset_enum): New enums for set/show
3847 (set_charset_sfunc, set_host_charset_sfunc,
3848 set_target_charset_sfunc): New functions.
3849 (set_host_charset, set_target_charset): Make static.
3850 (list_charsets, set_host_charset_command,
3851 set_target_charset_command): Delete functions.
3852 (show_charset_command): Rewrite as....
3853 (show_charset): Hook this up with the set/show command mechanism.
3854 (_initialize_charset): Change names of charsets to match the
3855 set/show enums. Use host_charset_name and target_charset_name.
3856 Use set/show mechanism for charset, host-charset, target-charset
3857 commands. Do not make 'show host-charset' and 'show
3858 target-charset' be aliases of 'show charset'.
3860 * charset.h (set_host_charset, set_target_charset): Don't export,
3861 they are not used outside the file.
3863 2003-05-01 Andrew Cagney <cagney@redhat.com>
3865 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
3866 (gdb_disassembly): Make "di" non static, always initialize and
3867 cleanup. Always use dis_asm_read_memory.
3868 (gdb_dis_asm_read_memory): Delete function.
3870 2003-05-01 Andrew Cagney <cagney@redhat.com>
3872 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
3873 (d10v_gdbarch_init): Set frame_align instead of stack_align.
3875 2003-04-30 Andrew Cagney <cagney@redhat.com>
3877 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
3878 "tm_print_insn_info".
3879 (TARGET_PRINT_INSN_INFO): Delete macro.
3880 (dis_asm_read_memory): Delete function declaration.
3881 (dis_asm_memory_error, dis_asm_print_address): Ditto.
3882 (tm_print_insn_info): Delete variable definition.
3883 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
3884 * gdbarch.h, gdbarch.c: Re-generate.
3885 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
3886 "deprecated_tm_print_insn_info".
3887 * mcore-tdep.c (mcore_dump_insn): Ditto.
3888 * mips-tdep.c (mips_gdbarch_init): Ditto.
3889 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
3890 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
3891 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
3892 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
3893 instead of TARGET_PRINT_INSN_INFO, add comment.
3894 * s390-tdep.c (s390_get_frame_info): Instead of
3895 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
3896 (s390_check_function_end, s390_is_sigreturn): Ditto.
3897 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
3898 (dis_asm_memory_error, dis_asm_print_address): Ditto.
3899 * disasm.c: Include "gdbcore.h".
3900 (_initialize_disasm): New function, initialize
3901 "deprecated_tm_print_insn_info".
3902 (deprecated_tm_print_insn_info): New variable.
3903 (dis_asm_read_memory): Moved from "corefile.c", made static.
3904 (dis_asm_print_address, dis_asm_memory_error): Ditto.
3905 * Makefile.in (disasm.o): Update dependencies.
3907 2003-04-30 Andrew Cagney <cagney@redhat.com>
3909 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
3911 2003-04-29 Adam Fedor <fedor@gnu.org>
3913 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
3914 * infcall.c (find_function_addr): Make non-static.
3915 * infcall.h (find_function_addr): Declare.
3916 * Makefile.in (eval.o): Update dependencies.
3918 2003-04-28 Adam Fedor <fedor@gnu.org>
3920 * symtab.c (symbol_find_demangled_name): Check for and demangle
3922 (symbol_init_demangled_name): Init for language_objc as well.
3924 2003-04-28 Andrew Cagney <cagney@redhat.com>
3926 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
3927 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
3928 * gdbarch.h, gdbarch.c: Re-generate.
3929 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
3930 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
3931 * inferior.h (deprecated_read_fp): Rename read_fp.
3932 (generic_target_read_fp): Delete declaration.
3933 * regcache.c (generic_target_read_fp): Delete function.
3934 (deprecated_read_fp): Replace read_fp, use
3935 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
3936 * d10v-tdep.c (d10v_read_fp): Delete function.
3937 (d10v_gdbarch_init): Do not set deprecated_read_fp.
3939 * sparc-tdep.c (sparc_gdbarch_init): Do not set
3940 deprecated_target_read_fp to generic_target_read_fp.
3941 * sh-tdep.c (sh_gdbarch_init): Ditto.
3942 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3943 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3944 * frv-tdep.c (frv_gdbarch_init): Ditto.
3946 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
3947 deprecated_fp_regnum.
3948 * x86-64-tdep.c (x86_64_init_abi): Ditto.
3949 * vax-tdep.c (vax_gdbarch_init): Ditto.
3950 * v850-tdep.c (v850_gdbarch_init): Ditto.
3951 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3952 * sh-tdep.c (sh_gdbarch_init): Ditto.
3953 * s390-tdep.c (s390_gdbarch_init): Ditto.
3954 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3955 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3956 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3957 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3958 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3959 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3960 * i386-tdep.c (i386_gdbarch_init): Ditto.
3961 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3962 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3963 * frv-tdep.c (frv_gdbarch_init): Ditto.
3964 * cris-tdep.c (cris_gdbarch_init): Ditto.
3965 * avr-tdep.c (avr_gdbarch_init): Ditto.
3966 * arm-tdep.c (arm_gdbarch_init): Ditto.
3967 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3969 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
3970 * v850-tdep.c (v850_gdbarch_init): Ditto.
3971 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3972 * sh-tdep.c (sh_gdbarch_init): Ditto.
3973 * s390-tdep.c (s390_gdbarch_init): Ditto.
3974 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3975 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3976 * mips-tdep.c (mips_gdbarch_init): Ditto.
3977 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3978 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3979 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3980 * frv-tdep.c (frv_gdbarch_init): Ditto.
3981 * avr-tdep.c (avr_gdbarch_init): Ditto.
3982 * arm-tdep.c (arm_gdbarch_init): Ditto.
3984 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
3985 DEPRECATED_FP_REGNUM.
3986 (vax_push_dummy_frame, vax_pop_frame): Ditto.
3987 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
3988 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
3989 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
3990 (sparc32_register_virtual_type): Ditto.
3991 * sh-tdep.c (sh64_frame_chain): Ditto.
3992 (sh64_get_saved_register, sh64_pop_frame): Ditto.
3993 (sh_nofp_frame_init_saved_regs): Ditto.
3994 (sh64_nofp_frame_init_saved_regs): Ditto.
3995 (sh_fp_frame_init_saved_regs): Ditto.
3996 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3997 * remote-e7000.c (fetch_regs_from_dump): Ditto.
3998 * procfs.c (procfs_fetch_registers): Ditto.
3999 (procfs_store_registers): Ditto.
4000 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
4001 (store_inferior_registers, fetch_core_registers): Ditto.
4002 (fetch_kcore_registers, clear_regs): Ditto.
4003 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
4004 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
4005 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
4006 * nlm/i386.c (do_status): Ditto.
4007 * mipsv4-nat.c (supply_gregset): Ditto.
4008 * mips-tdep.c: Ditto for comments.
4009 * mips-nat.c (fetch_inferior_registers): Ditto.
4010 (store_inferior_registers, fetch_core_registers): Ditto.
4011 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
4012 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
4013 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
4014 (i386_do_pop_frame, i386_register_type): Ditto.
4015 * hppa-tdep.c (hppa_frame_chain): Ditto.
4016 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
4017 (hppa_pop_frame, hppa_read_fp): Ditto.
4018 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
4019 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
4020 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
4021 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
4022 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
4023 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
4024 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
4025 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
4026 * blockframe.c: Ditto for comments.
4027 * arch-utils.h: Ditto for comments.
4028 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
4029 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
4030 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
4031 * alpha-tdep.h: Ditto for comments.
4032 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
4033 (alpha_cannot_store_register): Ditto.
4034 (alpha_push_dummy_frame): Ditto.
4035 * alpha-nat.c (supply_gregset): Ditto.
4037 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
4038 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
4039 * config/sparc/tm-sparc.h: Update comment.
4041 * hppa-tdep.c (hppa_init_extra_frame_info): Use
4042 deprecated_read_fp instead of TARGET_READ_FP.
4043 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
4044 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
4045 * sparc-tdep.c (sparc_init_extra_frame_info): Use
4046 deprecated_read_fp instead of read_fp.
4047 * s390-tdep.c (s390_push_arguments): Ditto.
4048 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4049 * frame.h: Ditto in comments.
4050 * frame.c (legacy_get_prev_frame): Ditto.
4051 * dummy-frame.c (dummy_frame_this_id): Ditto.
4052 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
4054 2003-04-28 Andrew Cagney <cagney@redhat.com>
4056 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
4057 * gdbarch.h, gdbarch.c: Re-generate.
4058 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
4059 * vax-tdep.c (_initialize_vax_tdep): Update.
4060 * v850-tdep.c (_initialize_v850_tdep): Update.
4061 * sparc-tdep.c (_initialize_sparc_tdep): Update.
4062 * s390-tdep.c (_initialize_s390_tdep): Update.
4063 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
4064 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
4065 * mips-tdep.c (_initialize_mips_tdep): Update.
4066 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4067 * m68k-tdep.c (_initialize_m68k_tdep): Update.
4068 * ia64-tdep.c (_initialize_ia64_tdep): Update.
4069 * hppa-tdep.c (_initialize_hppa_tdep): Update.
4070 * h8300-tdep.c (_initialize_h8300_tdep): Update.
4071 * frv-tdep.c (_initialize_frv_tdep): Update.
4072 * cris-tdep.c (cris_delayed_get_disassembler): Update.
4073 (_initialize_cris_tdep): Update.
4074 * arch-utils.c (legacy_print_insn): Update.
4075 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4077 2003-04-26 Adam Fedor <fedor@gnu.org>
4079 * linespec.c (decode_objc): New function to decode ObjC calls
4080 (decode_line_1): Check for ObjC calls (using decode_objc)
4081 * Makefile (linespec.o): Update dependencies.
4083 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
4085 * breakpoint.h (struct breakpoint_ops): New.
4086 (struct breakpoint): Add ops member.
4088 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
4089 (mention): Use new breakpoint ops member.
4090 (set_raw_breakpoint): Initialize ops field to NULL.
4091 (print_exception_catchpoint, print_one_exception_catchpoint)
4092 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
4093 (gnu_v3_exception_catchpoint_ops): New.
4094 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
4096 2003-04-25 Adam Fedor <fedor@gnu.org>
4098 * Makefile.in (COMMON_OBS): Add objc-lang.o
4100 2003-04-25 Andrew Cagney <cagney@redhat.com>
4102 * d10v-tdep.c (print_insn): Delete function.
4103 (display_trace): Use TARGET_PRINT_INSN.
4104 (_initialize_d10v_tdep): Do not set tm_print_insn.
4105 (d10v_gdbarch_init): Set print_insn.
4107 2003-04-25 Andrew Cagney <cagney@redhat.com>
4109 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
4110 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
4111 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
4112 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
4113 (nr_dmap_regs, a0_regnum): ... new functions.
4114 (d10v_print_registers_info): Use a0_regnum, use register_size.
4115 (d10v_register_byte): Delete function.
4116 (d10v_register_raw_size): Delete function.
4117 (d10v_register_type): Use a0_regnum.
4118 (d10v_print_registers_info): Use a0_regnum.
4119 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
4120 (d10v_gdbarch_init): Do not set register_byte or
4121 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
4122 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
4124 (trace_command): Use XCALLOC.
4125 (print_insn): Delete reference to tm_print_insn.
4126 (saved_regs_unwinder): Use store_unsigned_integer instead of
4128 * frame.h (FRAME_OBSTACK_CALLOC): Define
4130 2003-04-25 David Carlton <carlton@bactrian.org>
4132 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
4134 2003-04-24 Adam Fedor <fedor@gnu.org>
4136 * objc-lang.c: Include "valprint.h"
4137 * Makefile.in (objc-lang.o): Update dependencies.
4139 2003-04-24 Adam Fedor <fedor@gnu.org>
4141 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
4142 architecture dependant compilation and mark as unimplemented
4143 (until they get put in the gdbarch vector).
4145 2003-04-23 David Carlton <carlton@bactrian.org>
4147 * cp-support.c (cp_find_first_component): Accept 'operator' in
4150 2003-04-23 Andrew Cagney <cagney@redhat.com>
4152 * infcall.c (call_function_by_hand): Eliminate redundant
4153 indentation. Move "saved_async" and "old_cleanups" to where they
4156 2003-04-23 Andrew Cagney <cagney@redhat.com>
4158 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
4159 and "buffer". Move the "name" code to where it is needed.
4161 2003-04-23 Andrew Cagney <cagney@redhat.com>
4163 * infcall.c (call_function_by_hand): Move variables "start_sp",
4164 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
4165 code to ON_STACK switch branch.
4167 2003-04-23 Andrew Cagney <cagney@redhat.com>
4169 * infcall.c (call_function_by_hand): Make declaration of "i",
4170 "sal", "bpt" and "old_sp" more local to their use. Delete #if
4173 2003-04-23 Andrew Cagney <cagney@redhat.com>
4175 * infcall.c (call_function_by_hand): Delete variable
4176 "n_method_args". Localize "param_type"'s declaration to the loop
4177 that it is used. Reinstate code assigning to said variable -
4178 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
4179 Rationalize code using "param_type".
4181 2003-04-22 Andrew Cagney <cagney@redhat.com>
4183 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
4184 compute the breakpoint address. Only call FIX_CALL_DUMMY when
4185 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
4186 to DEPRECATED_PUSH_RETURN_ADDRESS.
4188 2003-04-22 Kevin Buettner <kevinb@redhat.com>
4190 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
4191 on the DWARF2 register number prior to fetching a register.
4193 2003-04-22 J. Brobecker <brobecker@gnat.com>
4195 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
4196 Update all the tests using SOFT_FLOAT considering the fact that
4197 this macro was always set to 0.
4198 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
4199 considering the fact that this macro was always set to 0.
4200 * hppa-tdep.h (hppa_store_return_value): Likewise.
4201 (hppa_extract_return_value): Likewise.
4203 2003-04-22 J. Brobecker <brobecker@gnat.com>
4205 * config/pa/tm-hppa.h: Remove obsolete code, was used by
4206 the hppa-pro target only.
4208 2003-04-21 J. Brobecker <brobecker@gnat.com>
4210 Ongoing multi-arch conversion effort for HP/UX:
4211 * config/pa/tm-hppa.h: Move all macro that are no longer
4212 defined now that GDB_MULTI_ARCH is now set to 1 from here...
4213 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
4215 2003-04-21 J. Brobecker <brobecker@gnat.com>
4217 * config/pa/tm-hppa.h: Obsolete a section that was only used
4220 2003-04-21 J. Brobecker <brobecker@gnat.com>
4222 Ongoing multi-arch conversion for HP/UX.
4223 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
4224 if already defined (allows hppa64 to stay non-multiarched for now).
4225 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
4227 2003-04-21 Andrew Cagney <cagney@redhat.com>
4229 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
4231 2003-04-21 Andrew Cagney <cagney@redhat.com>
4233 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
4234 "i386_num_mmx_regs".
4236 2003-04-21 Andrew Cagney <cagney@redhat.com>
4238 * infcall.c: New file.
4239 * infcall.h: New file.
4240 * valarith.c: Include "infcall.h".
4241 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
4242 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
4243 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
4244 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
4245 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
4246 (SFILES): Add "infcall.c"
4247 (COMMON_OBS): Add "infcall.o".
4248 (infcall.o): Specify dependencies.
4249 * value.h (call_function_by_hand): Delete declaration.
4250 * inferior.h (run_stack_dummy): Delete declaration.
4251 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
4252 (run_stack_dummy): Move to "infcall.c", merged into
4253 call_function_by_hand.
4254 * valops.c (call_function_by_hand): Moved to "infcall.c".
4255 (find_function_addr, value_arg_coerce): Ditto.
4256 (unwindonsignal_p, coerce_float_to_double): Ditto.
4257 (_initialize_valops): Move "set/show coerce-float-to-double", and
4258 "set/show unwindonsignal" commands to "infcall.c".
4259 * v850-tdep.c, target.h: Update comments.
4260 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
4261 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
4262 (sh64_init_extra_frame_info): Update comments.
4263 * mn10300-tdep.c: Update comments.
4264 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
4265 * config/sparc/tm-sparc.h: Update comments.
4266 * breakpoint.h: Update comments.
4267 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
4268 * arm-tdep.c: Update comment.
4270 2003-04-19 Mark Kettenis <kettenis@gnu.org>
4272 * i386-tdep.c (i386_num_register_names): New variable.
4273 (i386_num_mmx_regs): Renamed from mmx_num_regs.
4274 (MM0_REGNUM): Remove redundant parentheses in define.
4275 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
4276 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
4277 i386_mxcsr_regnum_p): Remove redundant parentheses.
4278 (i386_register_name): Use i386_num_register_names.
4280 * i386-tdep.c (i386_extract_return_value,
4281 i386_store_return_value): Correct check for availability of
4282 floating-point registers.
4284 * i386-tdep.c (i386_frame_num_args): Remove function.
4285 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
4287 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
4288 mmx_regnum_to_fp_regnum. Adjust all callers.
4290 * i386-tdep.c (i386_get_longjmp_target): Use
4291 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
4292 and TARGET_CHAR_BIT. Use extract_typed_address instead of
4295 2003-04-19 Mark Kettenis <kettenis@gnu.org>
4297 * core-regset.c: Update comments to reflect reality. Re-order
4299 (fetch_core_registers): Use switch instead of if. Remove
4300 redundant prototype.
4302 2003-04-18 Jim Blandy <jimb@redhat.com>
4304 * s390-tdep.c (s390_frame_align): New function.
4305 (s390_gdbarch_init): Register it with the gdbarch object.
4307 2003-04-17 Richard Henderson <rth@redhat.com>
4309 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
4311 2003-04-17 Michael Snyder <msnyder@redhat.com>
4312 Karen Bennet <bennet@redhat.com>
4314 Committed by Elena Zannoni <ezannoni@redhat.com>
4315 * gdb_gcore.sh: New script to create a core dump of a process.
4317 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
4319 * values.c (value_being_returned): Don't fetch the return
4320 value if the return type is void.
4322 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
4324 * thread-db.c: Reindented.
4326 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
4328 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
4329 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
4356 2003-04-16 Kevin Buettner <kevinb@redhat.com>
4358 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
4359 the size of ``long double'' to 16, instead of 8.
4361 2003-04-16 Mark Kettenis <kettenis@gnu.org>
4363 * i386-linux-nat.c: Add some whitespace to make things more
4365 (fetch_register, store_register, fetch_inferior_registers,
4366 store_inferior_registers): Get rid of assignment in if-statement.
4367 (store_register): Fix typo in error message.
4369 2003-04-16 Andrew Cagney <cagney@redhat.com>
4371 * utils.c (xmmalloc): Always allocate something, matches
4372 libiberty/xmalloc's semantics.
4373 (xmrealloc, xmcalloc): Ditto.
4375 2003-04-16 Andrew Cagney <cagney@redhat.com>
4377 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
4379 (get_frame_type): Initialize unwind and type when needed.
4380 (get_frame_id, frame_register_unwind): Ditto.
4382 2003-04-16 Andrew Cagney <cagney@redhat.com>
4384 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
4386 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
4387 * sparcl-stub.c: Obsolete file.
4388 * config/sparc/tm-sparclet.h: Obsolete file.
4389 * sparclet-stub.c: Obsolete file.
4390 * sparclet-rom.c: Obsolete file.
4391 * sparcl-tdep.c: Obsolete file.
4392 * config/sparc/tm-sparclite.h: Obsolete file.
4393 * config/sparc/sparclite.mt: Obsolete file.
4394 * config/sparc/sparclet.mt: Obsolete file.
4395 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
4396 sparc86x-*-* obsolete.
4398 2003-04-15 David Carlton <carlton@math.stanford.edu>
4400 * Makefile.in (SFILES): Add cp-namespace.c.
4401 (COMMON_OBS): Add cp-namespace.o.
4402 (block.o): Depend on gdb_obstack_h and cp_support_h.
4403 (buildsym.o): Depend on cp_support_h.
4404 (cp-namespace.o): New.
4405 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
4406 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
4407 (dwarf2read.o): Depend on cp_support_h.
4408 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
4409 * dwarf2read.c (process_die): Set processing_has_namespace_info,
4410 processing_current_namespace.
4411 (read_namespace): Update processing_current_namespace; check for
4412 anonymous namespaces.
4413 (dwarf2_name): New function.
4414 (dwarf2_extension): Ditto.
4415 * cp-support.h: Update copyright, contributors.
4416 Add inclusion guards.
4417 Add opaque declaration for structs obstack, block, symbol.
4418 (struct using_direct): New struct.
4419 Add declarations for cp_find_first_component,
4420 cp_entire_prefix_len, processing_has_namespace_info,
4421 processing_current_namespace, cp_is_anonymous,
4422 cp_add_using_directive, cp_initialize_namespace,
4423 cp_finalize_namespace, cp_set_block_scope,
4424 cp_scan_for_anonymous_namespaces.
4425 * cp-namespace.c: New file.
4426 * cp-support.c: Update copyright.
4427 Include ctype.h, gdb_assert.h, gdbcmd.h.
4428 New variable maint_cplus_cmd_list.
4429 (cp_find_first_component): New function.
4430 (cp_entire_prefix_len, maint_cplus_command)
4431 (first_component_command, _initialize_cp_support): Ditto.
4432 * buildsym.c: Include cp-support.h.
4433 New variable using_list.
4434 (add_symbol_to_list): Check for anonymous namespaces.
4435 (finish_block): Set block's scope.
4436 (start_symtab): Initialize C++ namespace support.
4437 (end_symtab): Finalize C++ namespace support.
4438 * block.h: Add opaque declarations for structs
4439 block_namespace_info, using_direct, and obstack.
4440 Add declarations for block_set_scope and block_set_using.
4441 (struct block): Add 'language_specific' member.
4442 (BLOCK_NAMESPACE): New macro.
4443 * block.c: Include gdb_obstack.h and cp-support.h.
4444 (struct block_namespace_info): New struct.
4445 (block_set_scope): New function.
4446 (block_set_using, block_initialize_namespace): Ditto.
4448 2003-04-14 Kevin Buettner <kevinb@redhat.com>
4450 * solib-svr4.c (svr4_have_link_map_offsets): New function.
4451 (locate_base): Return early if there aren't any link map offsets.
4452 (svr4_solib_create_inferior_hook): Warn if shared library support
4455 2003-04-14 David Carlton <carlton@math.stanford.edu>
4457 * symtab.c (symbol_set_names): Add prefix when storing Java names
4458 in hash table. Fix for PR java/1039.
4460 2003-04-14 David Carlton <carlton@math.stanford.edu>
4462 * symtab.c (symbol_set_names): Rename 'name' arg to
4463 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
4464 * symtab.h: Change 'name' argument in declaration of
4465 symbol_set_names to 'linkage_name'.
4466 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
4468 2003-04-14 Andrew Cagney <cagney@redhat.com>
4470 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
4471 return the fully sign-extended register value.
4472 (get_frame_pointer): Ditto.
4473 (mips_pop_frame): Initialize "proc_desc" after checking for a
4476 2003-04-14 Andrew Cagney <cagney@redhat.com>
4478 * mips-tdep.c (mips_push_dummy_frame): Delete function.
4479 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
4480 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
4481 (mips_push_register): Delete function.
4482 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
4485 2003-04-14 Jim Blandy <jimb@redhat.com>
4487 * symmisc.c: #include "gdb_regex.h".
4488 (maintenance_list_symtabs, maintenance_list_psymtabs): New
4490 * maint.c (maintenance_list_command): New function.
4491 (_initialize_maint_cmds): Register the above as commands.
4492 * symtab.h (maintenance_list_symtabs,
4493 maintenance_list_psymtabs): New declarations.
4494 * cli/cli-cmds.c (maintenancelistlist): New variable.
4495 (init_cmd_lists): Initialize it.
4496 * cli/cli-cmds.h (maintenancelistlist): New declaration.
4497 * gdbcmd.h (maintenancelistlist): New declaration.
4498 * Makefile.in (symmisc.o): Update dependencies.
4500 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
4502 * s390-nat.c: Include asm/types.h for addr_t.
4504 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
4506 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
4507 actually incoming type.
4509 2003-04-13 Andrew Cagney <cagney@redhat.com>
4511 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
4512 get_next_frame and get_frame_saved_regs.
4514 2003-04-13 Andrew Cagney <cagney@redhat.com>
4516 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
4517 of gdbarch_num_regs.
4519 2003-04-13 Andrew Cagney <cagney@redhat.com>
4521 * frame.h: Mention what replaced what in "struct frame_info".
4522 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
4523 deprecated_update_frame_base_hack and
4524 deprecated_update_frame_pc_hack.
4525 * hppa-tdep.c: Ditto.
4527 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
4529 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
4530 to read_reg and update its comment. Remove regnum member.
4531 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
4532 Don't call read_reg when setting in_reg. Call read_reg to get
4533 the frame base if it's in a register. Return the register number
4534 on the stack instead of in the context. Remove extra arguments
4536 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
4537 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
4538 the register number on the expression stack.
4539 (needs_frame_read_reg): Remove extra arguments.
4541 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
4543 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
4545 (execute_stack_op): All callers updated.
4546 * dwarf2expr.h: Add prototype for dwarf2_read_address.
4547 * dwarf2loc.c (find_location_expression): New function.
4548 (dwarf_expr_frame_base): Call it.
4549 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
4550 (dwarf2_tracepoint_var_ref): New function, broken out from
4551 locexpr_tracepoint_var_ref.
4552 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
4554 (loclist_read_variable, loclist_read_needs_frame): New functions.
4555 (loclist_describe_location, loclist_tracepoint_var_ref): New
4557 (dwarf2_loclist_funcs): New struct location_funcs.
4558 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
4559 (struct dwarf2_locexpr_baton): Add comments.
4560 (dwarf2_loclist_funcs): New extern.
4561 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
4562 base_address and base_known.
4563 (dwarf_loc_buffer): New variable.
4564 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
4565 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
4566 (dwarf2_has_info): Initialize dwarf_loc_offset.
4567 (dwarf2_build_psymtabs): Read in .debug_loc.
4568 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
4570 (psymtab_to_symtab_1): Likewise. Move base address calculation
4572 (dwarf2_get_pc_bounds): ... here. Use the base address from
4574 (dwarf2_symbol_mark_computed): Handle location lists.
4576 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
4578 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
4579 if the linkage name demangled successfully.
4581 2003-04-13 Mark Kettenis <kettenis@gnu.org>
4583 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
4584 disassmbly_flavour): Removed.
4586 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
4588 2003-04-13 Mark Kettenis <kettenis@gnu.org>
4590 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
4592 2003-04-12 Andrew Cagney <cagney@redhat.com>
4594 * frame.h (struct frame_info): Move definition from here ...
4595 * frame.c (struct frame_info): ... to here.
4597 2003-04-12 Andrew Cagney <cagney@redhat.com>
4599 * gdbthread.h (save_infrun_state): Delete parameter
4601 (struct thread_info): Delete field "prev_func_start".
4602 (load_infrun_state): Ditto.
4603 * thread.c (load_infrun_state, save_infrun_state): Update.
4604 * infrun.c (prev_func_start): Delete variable.
4605 (context_switch, init_wait_for_inferior): Update.
4606 (stop_stepping, keep_going): Update.
4608 2003-04-12 Andrew Cagney <cagney@redhat.com>
4610 * gdbarch.sh: Add missing opaque declarations.
4611 * gdbarch.h: Regnerate.
4612 * symtab.h: Add missing opaque declarations.
4613 * value.h, target.h, symfile.h, stabsread.h: Ditto.
4614 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
4615 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
4616 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
4617 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
4618 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
4619 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
4620 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
4621 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
4622 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
4623 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
4624 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
4625 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
4627 2003-04-11 Andrew Cagney <cagney@redhat.com>
4629 * frame.c (get_frame_id): Return this frame's "id".
4630 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
4632 (legacy_saved_regs_this_id): Replace function body with
4634 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
4635 FRAME_OBSTACK_ZALLOC.
4636 (create_new_frame): Mark the frame ID as valid.
4638 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
4640 * Makefile.in (libbfd_h): Added missing setting.
4641 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
4642 according to the selected ABI.
4644 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
4646 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
4648 2003-04-11 Andrew Cagney <cagney@redhat.com>
4650 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
4651 SAVED_PC_AFTER_CALL.
4652 * gdbarch.h, gdbarch.c: Regenerate.
4653 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4654 * x86-64-tdep.c (x86_64_init_abi): Update.
4655 * vax-tdep.c (vax_gdbarch_init): Update.
4656 * v850-tdep.c (v850_gdbarch_init): Update.
4657 * sparc-tdep.c (sparc_gdbarch_init): Update.
4658 * sh-tdep.c (sh_gdbarch_init): Update.
4659 * s390-tdep.c (s390_gdbarch_init): Update.
4660 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4661 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4662 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4663 * mips-tdep.c (mips_gdbarch_init): Update.
4664 * mcore-tdep.c (mcore_gdbarch_init): Update.
4665 * m68k-tdep.c (m68k_gdbarch_init): Update.
4666 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4667 * ia64-tdep.c (ia64_gdbarch_init): Update.
4668 (ia64_saved_pc_after_call): Update declaration.
4669 * i386ly-tdep.c (i386lynx_init_abi): Update.
4670 * i386-tdep.c (i386_gdbarch_init): Update.
4671 * hppa-tdep.c (hppa_gdbarch_init): Update.
4672 * h8300-tdep.c (h8300_gdbarch_init): Update.
4673 * frv-tdep.c (frv_gdbarch_init): Update.
4674 * cris-tdep.c (cris_gdbarch_init): Update.
4675 * avr-tdep.c (avr_gdbarch_init): Update.
4676 * arm-tdep.c (arm_gdbarch_init): Update.
4677 * alpha-tdep.c (alpha_gdbarch_init): Update.
4678 * ns32knbsd-nat.c (frame_num_args): Update.
4679 * ns32k-tdep.c (umax_frame_num_args): Update.
4680 * mips-tdep.c (mips_init_frame_pc_first): Update.
4681 * infrun.c (step_over_function): Update.
4682 * i386-linux-tdep.c (skip_hurd_resolver): Update.
4683 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
4684 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
4685 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4686 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4687 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
4688 * arm-linux-tdep.c (skip_hurd_resolver): Update.
4689 * arch-utils.c (init_frame_pc_default): Update.
4690 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
4691 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
4694 2003-04-11 Andrew Cagney <cagney@redhat.com>
4696 * i387-tdep.c: Update copyright.
4697 (i387_to_double): Delete function.
4698 (double_to_i387): Delete function.
4700 2003-04-10 Andrew Cagney <cagney@redhat.com>
4702 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
4703 frame's function's address. Simplify.
4704 (d10v_frame_unwind_cache): Check that the frame's function is
4707 2003-04-10 Jim Blandy <jimb@redhat.com>
4709 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
4710 call to set_gdbarch_deprecated_push_arguments.
4712 2003-04-10 Andrew Cagney <cagney@redhat.com>
4714 * frame.c (fprint_frame_id): New function.
4715 (fprint_frame_type, fprint_frame): New function.
4716 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
4717 (create_sentinel_frame, get_frame_id): Ditto.
4718 (frame_id_p, frame_id_eq): Ditto.
4719 (frame_id_inner, create_new_frame): Ditto.
4720 (legacy_get_prev_frame, get_prev_frame): Ditto.
4721 (deprecated_update_frame_pc_hack): Ditto.
4722 (frame_register_unwind): Ditto.
4723 (deprecated_update_frame_base_hack): Ditto.
4725 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
4727 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
4728 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
4729 frame_chain function.
4730 * Makefile.in: Add dependencies due to above change.
4732 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
4734 * blockframe.c (legacy_frame_chain_valid): Move call to
4735 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
4738 2003-04-09 Andrew Cagney <cagney@redhat.com>
4740 * frame.h (struct frame_id): Replace "pc" and "base" with
4741 "stack_addr" and "code_addr". Update comments.
4742 (frame_id_build): Update parameter names and comment.
4743 (struct frame_info): Replace "id_p" and "id" with "this_id".
4744 * dummy-frame.c (dummy_frame_this_id): Update.
4745 * breakpoint.c (print_one_breakpoint): Update.
4746 * frame.c (get_frame_id): Update.
4747 (get_frame_base, frame_id_build): Update.
4748 (create_sentinel_frame, legacy_get_prev_frame): Update.
4749 (deprecated_update_frame_base_hack): Update.
4750 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
4751 (frame_id_inner): Ditto.
4753 2003-04-09 Andrew Cagney <cagney@redhat.com>
4755 * defs.h (gdb_print_host_address): Make "addr" parameter a
4757 * utils.c (gdb_print_host_address): Update.
4759 2003-04-09 Kevin Buettner <kevinb@redhat.com>
4761 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
4762 register number for R0 is 0.
4764 2003-04-09 J. Brobecker <brobecker@gnat.com>
4766 * frame.h (struct gdbarch): Add opaque structure definition
4767 to avoid a compilation warning on LynxOS 4.0.
4769 2003-04-09 Andrew Cagney <cagney@redhat.com>
4771 * frame.h (struct frame_info): Delete field "pc". Replace
4772 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
4774 * frame.c (frame_pc_unwind): Update.
4775 (create_sentinel_frame): Do not set "pc".
4776 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
4777 (get_frame_pc): Call frame_pc_unwind.
4778 (deprecated_update_frame_pc_hack): Update.
4779 (create_new_frame): Use "pc" not "->pc".
4781 2003-04-09 Andrew Cagney <cagney@redhat.com>
4783 * frame.c (get_frame_id): Eliminate code updating "frame".
4784 (legacy_get_prev_frame): Ditto.
4785 (get_frame_base): Return id.base directly.
4786 (deprecated_update_frame_base_hack): Update "id.base".
4787 * frame.h (struct frame_info): Delete field "frame".
4789 2003-04-09 Andrew Cagney <cagney@redhat.com>
4791 * NEWS: Mention that the "Sequent family" is obsolete.
4792 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
4793 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
4794 * configure.host: Obsolete i[3456]86-sequent-bsd*,
4795 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
4796 * config/i386/tm-ptx4.h: Obsolete file.
4797 * config/i386/tm-ptx.h: Obsolete file.
4798 * symm-tdep.c: Obsolete file.
4799 * config/i386/symmetry.mt: Obsolete file.
4800 * config/i386/tm-symmetry.h: Obsolete file.
4801 * symm-nat.c: Obsolete file.
4802 * config/i386/nm-symmetry.h: Obsolete file.
4803 * config/i386/xm-symmetry.h: Obsolete file.
4804 * config/i386/symmetry.mh: Obsolete file.
4805 * config/i386/nm-ptx4.h: Obsolete file.
4806 * config/i386/ptx4.mh: Obsolete file.
4807 * config/i386/ptx.mt: Obsolete file.
4808 * config/i386/ptx.mh: Obsolete file.
4809 * config/i386/xm-ptx4.h: Obsolete file.
4810 * config/i386/xm-ptx.h: Obsolete file.
4812 2003-04-09 Andrew Cagney <cagney@redhat.com>
4814 Obsolete mips*-*-mach3*.
4815 * NEWS: Mention that mips*-*-mach3* is obsolete.
4816 * m3-nat.c: Obsolete file.
4817 * config/nm-m3.h: Obsolete file.
4818 * config/mips/tm-mipsm3.h: Obsolete file.
4819 * config/mips/mipsm3.mt: Obsolete file.
4820 * config/mips/mipsm3.mh: Obsolete file.
4821 * config/mips/xm-mipsm3.h: Obsolete file.
4822 * mipsm3-nat.c: Obsolete file.
4823 * configure.host: Obsolete mips-dec-mach3*.
4824 * configure.tgt: Obsolete mips*-*-mach3*.
4826 2003-04-09 Andrew Cagney <cagney@redhat.com>
4828 * doublest.h: Update copyright.
4829 (deprecated_store_floating, deprecated_extract_floating): Rename
4830 store_floating and extract_floating. Update comments.
4831 * doublest.c: Update copyright.
4832 (extract_floating_by_length): Replace extract_floating.
4833 (store_floating_by_length): Replace store_floating.
4834 (deprecated_extract_floating): New function.
4835 (deprecated_store_floating): New function.
4836 (extract_typed_floating): Call extract_floating_by_length.
4837 (store_typed_floating): Call store_floating_by_length.
4838 * x86-64-tdep.c (x86_64_store_return_value): Update.
4839 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
4840 (sh64_extract_return_value): Update.
4841 (sh_sh4_register_convert_to_virtual): Update.
4842 (sh_sh64_register_convert_to_virtual): Update.
4843 (sh_sh4_register_convert_to_raw): Update.
4844 (sh_sh64_register_convert_to_raw): Update.
4845 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
4846 (rs6000_register_convert_to_raw): Update.
4847 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
4848 (ia64_register_convert_to_raw): Update.
4849 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
4850 (REGISTER_CONVERT_TO_VIRTUAL): Update.
4851 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
4852 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
4853 (alpha_register_convert_to_raw): Update.
4855 2003-04-08 Andrew Cagney <cagney@redhat.com>
4857 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
4858 * gdbarch.h, gdbarch.c: Re-generate.
4859 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
4860 (d10v_gdbarch_init): Do not set saved_pc_after_call.
4861 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
4862 conditionally, use frame_pc_unwind as an alternative. Add
4864 * arch-utils.c (init_frame_pc_default): Only call
4865 SAVED_PC_AFTER_CALL when available.
4867 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
4869 * infrun.c (stop_soon): Rename from stop_soon_quietly.
4870 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
4871 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
4872 (start_remote): Ditto.
4873 (handle_inferior_event): Ditto.
4874 (save_inferior_status): Ditto.
4875 (restore_inferior_status): Ditto.
4876 * infcmd.c (attach_command): Ditto.
4877 * fork-child.c (startup_inferior): Ditto.
4878 * inferior.h (stop_soon): Rename from stop_soon_quietly.
4879 * alpha-tdep.c (heuristic_proc_start): Ditto.
4880 * mips-tdep.c (heuristic_proc_start): Ditto.
4881 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
4882 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
4883 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
4884 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
4885 * remote-vx.c (vx_create_inferior): Ditto.
4887 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
4889 * infrun.c (stop_soon_quietly): Make it an enum, to better
4890 override the default behavior of handle_inferior_event.
4891 (clear_proceed_status): Update uses of stop_soon_quietly to
4892 reflect that it is now an enum.
4893 (start_remote): Ditto.
4894 (handle_inferior_event): Change logic a bit if stop_soon_quietly
4895 is set to handle the new GNU/Linux kernel behavior for
4896 attach/sigstop. Update uses of stop_soon_quietly.
4897 * inferior.h (enum stop_kind): New enum.
4898 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
4899 Reset normal handle_inferior_event behavior, afterwards.
4900 * fork-child.c (startup_inferior): Update.
4901 * alpha-tdep.c (heuristic_proc_start): Update.
4902 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
4903 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
4904 * solib-osf.c (osf_solib_create_inferior_hook): Update.
4905 * solib-irix.c (irix_solib_create_inferior_hook): Update.
4906 * remote-vx.c (vx_create_inferior): Update.
4907 * mips-tdep.c (heuristic_proc_start): Update.
4909 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
4911 * disasm.c (dump_insns): Move variables inside loop, or they will
4912 be freed more than once, causing wild memory corruptions.
4913 (gdb_disassembly): Look for the substring "-thread",
4914 instead of "-threads" in the target name, to make sure to find
4915 the 'multi-thread' target. Also, make sure we do the right thing
4916 with the "core" target.
4918 2003-04-07 Kevin Buettner <kevinb@redhat.com>
4920 * mips-tdep.c (mips_print_fp_register): New function, created from
4921 do_fp_register_row(). Registers are now (also) printed as hex.
4922 Only one register is printed per row.
4923 (mips_print_register, do_fp_register_row): Print floating point
4924 registers with mips_print_fp_register().
4926 2003-04-06 Andrew Cagney <cagney@redhat.com>
4928 * valprint.h (inspect_it): Add extern declaration.
4929 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
4930 (selectors_info, classes_info): Ditto.
4931 (find_objc_msgcall): Fix indentation.
4932 (objc_printstr): Delete extern declarations.
4934 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
4936 2003-04-06 Andrew Cagney <cagney@redhat.com>
4938 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
4940 * frame.c (legacy_saved_regs_this_id): Update.
4941 (legacy_get_prev_frame): Update.
4942 * xstormy16-tdep.c: Update comment.
4943 * sparc-tdep.c (sparc_frame_chain): Update comment.
4944 * blockframe.c (legacy_frame_chain_valid): Update.
4946 2003-04-06 Andrew Cagney <cagney@redhat.com>
4948 * valprint.c (val_print_type_code_int): Delete #ifdef
4949 PRINT_TYPELESS_INTEGER code.
4951 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
4952 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
4953 multi-arch definition.
4954 * gdbarch.h: Re-generate.
4956 2003-04-05 Andrew Cagney <cagney@redhat.com>
4958 Eliminate FRAME_FIND_SAVED_REGS.
4959 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
4960 Change FSR parameter to a pointer.
4961 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
4962 Assume FSR parameter is a pointer.
4963 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
4965 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
4966 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
4967 saved_regs a pointer.
4968 (hppa_frame_saved_pc): Ditto.
4969 (find_dummy_frame_regs): Make frame_saved_regs a pointer
4970 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
4972 (restore_pc_queue): Make fsr a pointer.
4973 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
4974 (hppa_frame_chain): Make saved_regs a pointer, call
4975 hppa_frame_init_saved_regs.
4976 * sparc-tdep.c: Include "gdb_assert.h".
4977 (sparc_frame_find_saved_regs): Replace internal_error with
4979 * remote-vxsparc.c (vx_read_register): Delete reference to
4980 FRAME_FIND_SAVED_REGS.
4981 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
4982 * gdbarch.h: Regenerate.
4983 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
4984 (deprecated_get_frame_saved_regs): Delete declaration.
4985 (struct frame_saved_regs): Delete definition.
4986 * frame.c (deprecated_get_frame_saved_regs): Delete function.
4987 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
4988 (hppa_frame_find_saved_regs): Delete declaration.
4989 (FRAME_FIND_SAVED_REGS): Delete macro.
4990 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
4991 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
4992 FRAME_FIND_SAVED_REGS in comment.
4994 2003-04-05 Andrew Cagney <cagney@redhat.com>
4996 * frame.c (frame_func_unwind, get_frame_func): New functions.
4997 * frame.h (get_frame_func, frame_func_unwind): Declare.
4998 (struct frame_info): Add field "prev_func" for caching the
4999 previous frame's function address.
5000 * arm-tdep.c (arm_frameless_function_invocation): Combine
5001 get_pc_function_start and get_frame_pc into get_frame_func.
5002 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
5003 (sh64_nofp_frame_init_saved_regs): Ditto.
5004 * s390-tdep.c (s390_function_start): Ditto.
5005 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
5006 (rs6000_frameless_function_invocation): Ditto.
5007 (rs6000_frame_saved_pc): Ditto.
5008 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
5009 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
5010 * i386-tdep.c (i386_frameless_signal_p): Ditto.
5011 (i386_frame_init_saved_regs): Ditto.
5012 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
5013 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
5014 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
5015 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5016 * blockframe.c (frameless_look_for_prologue): Ditto.
5018 2003-04-05 Andrew Cagney <cagney@redhat.com>
5020 * frame.c (legacy_get_prev_frame): Link prev to next at the
5021 function start. Update comments.
5023 2003-04-05 Andrew Cagney <cagney@redhat.com>
5025 * frame.c (get_frame_id): Update comment.
5026 (legacy_get_prev_frame): Update comment.
5027 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
5028 * gdbarch.h: Regenerate.
5029 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
5030 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
5032 2003-04-05 Andrew Cagney <cagney@redhat.com>
5034 * stack.c (print_frame_info): Use get_frame_pc.
5036 2003-04-04 Andrew Cagney <cagney@redhat.com>
5038 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
5039 the frame's type from the unwinder.
5040 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
5041 (create_new_frame, legacy_get_prev_frame): When the unwinder's
5042 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
5043 (get_frame_base_address): Use get_frame_type.
5044 (get_frame_locals_address, get_frame_args_address): Ditto.
5045 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
5046 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
5047 (struct frame_info): Add comment explaining why the frame contains
5049 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
5050 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
5051 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
5053 * frame-unwind.h: Include "frame.h".
5054 (struct frame_unwind): Add "type" field.
5055 * Makefile.in (frame_unwind_h): Add $(frame_h).
5057 2003-04-04 Andrew Cagney <cagney@redhat.com>
5059 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
5060 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
5061 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
5063 (d10v_unwind_dummy_id): Use frame_id_build.
5064 * frame.c (find_frame_sal): Use get_frame_pc.
5065 (create_new_frame): Use deprecated_update_frame_pc_hack and
5066 deprecated_update_frame_base_hack.
5067 (create_sentinel_frame): Add comment about ->pc going away.
5068 (get_prev_frame): Add comment about ->pc going away.
5069 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
5070 frame_id_build, deprecated_update_frame_pc_hack and
5071 deprecated_update_frame_base_hack.
5072 (select_frame): Use get_frame_pc.
5073 (legacy_saved_regs_this_id): Use frame_id_build.
5075 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
5077 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
5078 signed integer case.
5079 (classify_argument): Handle enumerations and references.
5081 2003-04-04 Andrew Cagney <cagney@redhat.com>
5083 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
5086 2003-04-01 Adam Fedor <fedor@gnu.org>
5088 * gdb/objc-lang.c (selectors_info): Replace calls to
5089 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
5090 SYMBOL_NATURAL_NAME.
5091 (classes_info, find_methods): Likewise.
5093 2003-04-03 Kevin Buettner <kevinb@redhat.com>
5095 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
5096 ``mach'' to the value determined by bfd_default_set_arch_mach().
5098 2003-04-02 Bob Rossi <bob_rossi@cox.net>
5100 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
5101 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
5102 (mi-cmd-file.o): Update dependencies.
5104 2003-04-01 Kevin Buettner <kevinb@redhat.com>
5106 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
5107 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
5109 2003-04-01 Adam Fedor <fedor@gnu.org>
5111 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
5112 * language.h (struct language_defn): Add la_demangle.
5113 (language_demangle): Declare.
5114 * language.c (language_demangle): New function.
5115 (unk_lang_demangle): Likewise.
5116 (unknown_language_defn, auto_language_defn, local_language_defn):
5117 Add ukn_lang_demangle.
5118 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
5119 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
5120 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
5121 (cplus_language_defn): Add cplus_demangle for la_demangle element.
5122 * jv-lang.c (java_demangle): New function
5123 (java_language_defn): Use it for la_demangle element.
5124 * objc-lang.c (objc_demangle): Add options argument
5125 (objc_language_defn): Use objc_demangle for la_demangle element.
5126 * maint.c (maintenance_demangle): Replace switch with
5127 call to language_demangle.
5128 * utils.c (fprintf_symbol_filtered): Likewise.
5130 2003-04-01 Andrew Cagney <cagney@redhat.com>
5132 * printcmd.c (print_frame_nameless_args): Delete #ifdef
5133 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
5134 PRINT_TYPELESS_INTEGER.
5135 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
5136 PUSH_RETURN_ADDRESS.
5138 2003-04-01 Andrew Cagney <cagney@redhat.com>
5140 * Makefile.in (d10v-tdep.o): Update dependencies.
5141 * d10v-tdep.c: Include "frame-base.h".
5142 (d10v_frame_unwind): Make constant.
5143 (d10v_frame_base_address): New function.
5144 (d10v_frame_base): New variable.
5145 (d10v_gdbarch_init): Set frame_base default.
5146 (struct d10v_unwind_cache): Add the field "prev_sp". Update
5148 (d10v_frame_unwind_cache): Set and use "prev_sp".
5149 (d10v_frame_this_id): Use the previous frame's inner most stack
5150 address and this frame's func address for the frame ID. Use
5151 frame_id_build. Don't analyze beyond the current instruction.
5153 2003-04-01 Andrew Cagney <cagney@redhat.com>
5155 * frame.h (get_frame_locals_address, get_frame_args_address):
5156 Refer to the base address, instead of the address of the first
5159 2003-04-01 Andrew Cagney <cagney@redhat.com>
5161 Add frame debug info addresses:
5162 * frame-base.c: New file.
5163 * frame-base.h: New file.
5164 * frame.h (struct frame_base): Add opaque declaration.
5165 (get_frame_base): Update comment.
5166 (get_frame_base_address): Declare.
5167 (get_frame_locals_address): Declare.
5168 (get_frame_args_address): Declare.
5169 (struct frame_info): Add "base" and "base_cache". Update
5170 comments on the unwinder.
5171 * frame.c: Include "frame-base.h".
5172 (get_frame_locals_address): New function.
5173 (get_frame_base_address): New function.
5174 (get_frame_args_address): New function.
5175 * findvar.c (read_var_value): Use get_frame_locals_address and
5176 get_frame_args_address.
5177 * stack.c (frame_info): Use get_frame_locals_address and
5178 get_frame_args_address.
5179 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
5180 moved to "frame-base.c".
5181 * printcmd.c (print_frame_nameless_args): Ditto.
5182 * symtab.h (address_class): Update comments.
5183 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
5184 get_frame_base_address.
5185 * dwarf2expr.c (execute_stack_op): Ditto.
5186 * Makefile.in (frame_base_h): Define.
5187 (frame.o): Update dependencies.
5188 (frame-base.o): Add dependencies.
5189 (SFILES): Add frame-base.c.
5190 (COMMON_OBS): Add frame-base.o.
5192 2003-04-01 Andrew Cagney <cagney@redhat.com>
5194 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
5195 CALL_DUMMY_LENGTH): Ditto.
5196 * gdbarch.c: Re-generate.
5197 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
5198 (CALL_DUMMY_LENGTH): Delete macro.
5199 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
5200 * arm-tdep.c (arm_gdbarch_init): Ditto.
5201 * avr-tdep.c (avr_gdbarch_init): Ditto.
5202 * cris-tdep.c (cris_gdbarch_init): Ditto.
5203 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5204 * frv-tdep.c (frv_gdbarch_init): Ditto.
5205 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5206 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5207 * i386-tdep.c (i386_gdbarch_init): Ditto.
5208 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5209 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5210 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5211 * mips-tdep.c (mips_gdbarch_init): Ditto.
5212 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5213 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5214 * s390-tdep.c (s390_gdbarch_init): Ditto.
5215 * sh-tdep.c (sh_gdbarch_init): Ditto.
5216 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5217 * v850-tdep.c (v850_gdbarch_init): Ditto.
5218 * vax-tdep.c (vax_gdbarch_init): Ditto.
5219 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5221 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
5223 * frame.c (get_prev_frame): Disable call to inside_entry_file().
5225 2003-04-01 Andrew Cagney <cagney@redhat.com>
5227 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
5228 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5229 * gdbarch.h, gdbarch.c: Re-generate.
5230 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5231 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5232 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5233 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5234 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
5235 * infcmd.c (run_stack_dummy): Simplify assuming
5236 CALL_DUMMY_BREAKPOINT_OFFSET_P.
5237 * infrun.c (handle_inferior_event): Ditto.
5238 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5239 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
5240 * arm-tdep.c (arm_gdbarch_init): Ditto.
5241 * avr-tdep.c (avr_gdbarch_init): Ditto.
5242 * cris-tdep.c (cris_gdbarch_init): Ditto.
5243 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5244 * frv-tdep.c (frv_gdbarch_init): Ditto.
5245 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5246 * i386-tdep.c (i386_gdbarch_init): Ditto.
5247 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5248 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5249 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5250 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5251 * mips-tdep.c (mips_gdbarch_init): Ditto.
5252 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5253 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5254 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5255 * s390-tdep.c (s390_gdbarch_init): Ditto.
5256 * sh-tdep.c (sh_gdbarch_init): Ditto.
5257 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5258 * v850-tdep.c (v850_gdbarch_init): Ditto.
5259 * vax-tdep.c (vax_gdbarch_init): Ditto.
5260 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5262 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
5264 * symfile.c (symfile_relocate_debug_section): Update call to
5265 bfd_simple_get_relocated_section_contents.
5267 2003-03-31 Andrew Cagney <cagney@redhat.com>
5269 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
5270 * gdbarch.h, gdbarch.c: Regenerate.
5271 * inferior.h (FIX_CALL_DUMMY): Delete macro.
5272 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
5274 * frame.h (generic_fix_call_dummy): Delete declaration.
5275 * dummy-frame.h: Update comment.
5276 * dummy-frame.c (generic_fix_call_dummy): Delete function.
5277 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5279 * sh-tdep.c (sh_gdbarch_init): Ditto.
5280 * s390-tdep.c (s390_gdbarch_init): Ditto.
5281 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5282 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5283 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5284 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5285 * i386-tdep.c (i386_gdbarch_init): Ditto.
5286 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5287 * frv-tdep.c (frv_gdbarch_init): Ditto.
5288 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5289 * cris-tdep.c (cris_gdbarch_init): Ditto.
5290 * avr-tdep.c (avr_gdbarch_init): Ditto.
5291 * arm-tdep.c (arm_gdbarch_init): Ditto.
5293 2003-03-31 J. Brobecker <brobecker@gnat.com>
5295 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
5296 (INIT_FRAME_AP): Likewise.
5297 (EXTRA_FRAME_INFO): Likewise.
5299 2003-03-31 Andrew Cagney <cagney@redhat.com>
5301 * gdbarch.sh: Include "symfile.h".
5302 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
5303 * gdbarch.h, gdbarch.c: Re-generate.
5304 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
5305 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5306 call_dummy_address, the default is at entry_point_address.
5307 * v850-tdep.c (v850_gdbarch_init): Ditto.
5308 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5309 * sh-tdep.c (sh_gdbarch_init): Ditto.
5310 * s390-tdep.c (s390_gdbarch_init): Ditto.
5311 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5312 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5313 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5314 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5315 * i386-tdep.c (i386_gdbarch_init): Ditto.
5316 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5317 * frv-tdep.c (frv_gdbarch_init): Ditto.
5318 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5319 * cris-tdep.c (cris_gdbarch_init): Ditto.
5320 * arm-tdep.c (arm_gdbarch_init): Ditto.
5322 2003-03-31 Andrew Cagney <cagney@redhat.com>
5324 * gdbarch.sh (CALL_DUMMY_P): Delete.
5325 * gdbarch.h, gdbarch.c: Re-generate.
5326 * inferior.h (CALL_DUMMY_P): Delete macro.
5327 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5328 * vax-tdep.c (vax_gdbarch_init): Update.
5329 * v850-tdep.c (v850_gdbarch_init): Update.
5330 * sparc-tdep.c (sparc_gdbarch_init): Update.
5331 * sh-tdep.c (sh_gdbarch_init): Update.
5332 * s390-tdep.c (s390_gdbarch_init): Update.
5333 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5334 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5335 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5336 * mips-tdep.c (mips_gdbarch_init): Update.
5337 * mcore-tdep.c (mcore_gdbarch_init): Update.
5338 * m68k-tdep.c (m68k_gdbarch_init): Update.
5339 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5340 * ia64-tdep.c (ia64_gdbarch_init): Update.
5341 * i386-tdep.c (i386_gdbarch_init): Update.
5342 * h8300-tdep.c (h8300_gdbarch_init): Update.
5343 * frv-tdep.c (frv_gdbarch_init): Update.
5344 * d10v-tdep.c (d10v_gdbarch_init): Update.
5345 * cris-tdep.c (cris_gdbarch_init): Update.
5346 * breakpoint.c (deprecated_frame_in_dummy): Update.
5347 * avr-tdep.c (avr_gdbarch_init): Update.
5348 * alpha-tdep.c (alpha_gdbarch_init): Update.
5349 * arm-tdep.c (arm_gdbarch_init): Update.
5350 * dummy-frame.c (dummy_frame_this_id): Update comments.
5351 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
5352 * frame.c (legacy_get_prev_frame): Ditto.
5353 * valops.c (call_function_by_hand): Delete function.
5354 (hand_function_call): Rename to call_function_by_hand
5356 2003-03-30 Andrew Cagney <cagney@redhat.com>
5358 2002-11-10 Klee Dienes <kdienes@apple.com>
5359 * value.h (struct value): Update comment.
5361 2003-03-30 Andrew Cagney <cagney@redhat.com>
5363 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
5365 (d10v_gdbarch_init): Do not set fp_regnum.
5367 * frame.c (get_frame_base): Force ID initialization.
5368 (get_prev_frame): Move computation of the frame ID from here ...
5369 (get_frame_id): ... to here.
5370 (legacy_get_prev_frame): Mark the frame ID as valid.
5371 * frame.h (struct frame_info): Add field "id_p".
5373 2003-03-30 Mark Kettenis <kettenis@gnu.org>
5375 * i386-tdep.c (i386_store_struct_return): Removed.
5376 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
5378 2003-03-30 Andrew Cagney <cagney@redhat.com>
5380 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
5381 * gdbarch.h, gdbarch.c: Regenerate.
5382 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
5383 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5384 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5385 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5386 * i386-tdep.c (i386_gdbarch_init): Ditto.
5387 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5388 * cris-tdep.c (cris_gdbarch_init): Ditto.
5389 * vax-tdep.c (vax_gdbarch_init): Ditto.
5390 * s390-tdep.c (s390_gdbarch_init): Ditto.
5391 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5392 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5393 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5394 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
5395 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5396 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
5397 * sparc-tdep.c (sparc_gdbarch_init): Update.
5398 * sh-tdep.c (sh_gdbarch_init): Update.
5399 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5400 * mips-tdep.c (mips_gdbarch_init): Update.
5401 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5402 * ia64-tdep.c (ia64_gdbarch_init): Update.
5403 * frv-tdep.c (frv_gdbarch_init): Update.
5404 * avr-tdep.c (avr_gdbarch_init): Update.
5405 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
5406 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
5407 instead of when push_dummy_call is not available.
5409 2003-03-30 Andrew Cagney <cagney@redhat.com>
5411 * infttrace.c: Include "gdbthread.h".
5412 (parent_attach_all): Fix function signature.
5413 (call_ptrace): Update call.
5414 * Makefile.in (infttrace.o): Update dependencies.
5416 2003-03-30 Andrew Cagney <cagney@redhat.com>
5418 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
5419 PUSH_RETURN_ADDRESS.
5420 * gdbarch.h, gdbarch.c: Regenerate.
5421 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5422 * x86-64-tdep.c (x86_64_init_abi): Update.
5423 * v850-tdep.c (v850_gdbarch_init): Update.
5424 * sparc-tdep.c (sparc_gdbarch_init): Update.
5425 * sh-tdep.c (sh_gdbarch_init): Update.
5426 * s390-tdep.c (s390_gdbarch_init): Update.
5427 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5428 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5429 * mips-tdep.c (mips_gdbarch_init): Update.
5430 * mcore-tdep.c (mcore_gdbarch_init): Update.
5431 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5432 * ia64-tdep.c (ia64_gdbarch_init): Update.
5433 * i386-tdep.c (i386_gdbarch_init): Update.
5434 * h8300-tdep.c (h8300_gdbarch_init): Update.
5435 * frv-tdep.c (frv_gdbarch_init): Update.
5436 * cris-tdep.c (cris_gdbarch_init): Update.
5437 * avr-tdep.c (avr_gdbarch_init): Update.
5438 * arm-tdep.c (arm_gdbarch_init): Update.
5439 * valops.c (hand_function_call): Update.
5441 2003-03-29 Andrew Cagney <cagney@redhat.com>
5443 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
5444 sizeof_call_dummy_words.
5445 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
5447 * gdbarch.h: Regenerate.
5449 2003-03-29 Andrew Cagney <cagney@redhat.com>
5451 * infttrace.h: New file.
5452 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
5453 (hpread_get_textlow): Detect an uninitialized dn_bufp.
5454 (hpread_read_doc_function_type): Detect an initialized type1.
5455 (hpread_quick_traverse): Initialize mod_name_string.
5456 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
5457 (som_solib_get_solib_by_pc): Declare.
5458 (so_lib_thread_start_addr): Declare.
5459 (no_shared_libraries): Declare.
5460 * somread.c (init_import_symbols): Make static. Add forward
5462 * config/pa/nm-hppah.h: Include "infttrace.h" for
5464 (hppa_insert_hw_watchpoint): Declare.
5465 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
5466 * hppah-nat.c: Include "gdb_string.h".
5467 (parent_attach_all): Delete extern declaration, moved to
5469 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
5471 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
5472 * Makefile.in (infttrace_h): Define.
5473 (hpread.o): Update dependencies.
5474 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
5475 * hppa-hpux-tdep.c: Include "gdb_string.h".
5476 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
5477 * infrun.c (handle_inferior_event): Always initialize
5478 stepped_after_stopped_by_watchpoint. Add default and remove
5479 fallthrough in switch statement.
5480 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
5482 (hppa_remove_hw_watchpoint): Ditto.
5484 2003-03-29 Andrew Cagney <cagney@redhat.com>
5486 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
5489 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
5491 * arm-tdep.c (arm_push_arguments): Delete.
5492 (struct stack_item): New type.
5493 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
5494 (arm_store_struct_return): Delte.
5495 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
5496 arm_push_arguments or arm_store_struct_return.
5498 2003-03-28 Andrew Cagney <cagney@redhat.com>
5500 * Makefile.in (d10v-tdep.o): Update dependencies.
5501 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
5502 * d10v-tdep.c: Include "remote.h".
5503 (target_resume_hook): Delete extern declaration.
5504 (target_wait_loop_hook): Ditto.
5505 (tdisassemble_command): Eliminate assignment in "if" conditional.
5506 (d10v_ts2_register_sim_regno): Eliminate call to
5507 legacy_register_sim_regno.
5508 (d10v_ts3_register_sim_regno): Ditto.
5510 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
5512 * thread.c: Reindented.
5514 * linux-proc.c: Ditto.
5516 2003-03-28 Bob Rossi <bob_rossi@cox.net>
5518 * MAINTAINERS (write after approval): Add myself.
5520 2003-03-27 Theodore A. Roth <troth@openavr.org>
5522 * objc-exp.y: Add missing semi-colons.
5524 2003-03-27 Andrew Cagney <cagney@redhat.com>
5526 * regcache.c (write_sp): Delete function and references.
5527 * inferior.h (write_sp): Delete declaration.
5528 * valops.c (hand_function_call): Replace write_sp with
5530 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
5531 (sparc_pop_frame): Ditto.
5533 2003-03-27 Andrew Cagney <cagney@redhat.com>
5535 * NEWS: Mention removal of support for hppa*-*-bsd* and
5536 hppa*-*-osf* natives, and hppa*-*-pro* target.
5537 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
5538 * config/pa/xm-pa.h: Obsolete file.
5539 * config/pa/xm-hppab.h: Obsolete file.
5540 * config/pa/nm-hppab.h: Obsolete file.
5541 * config/pa/tm-hppab.h: Obsolete file.
5542 * config/pa/tm-hppao.h: Obsolete file.
5543 * config/pa/nm-hppao.h: Obsolete file.
5544 * config/pa/tm-pro.h: Obsolete file.
5545 * config/pa/hppaosf.mt: Obsolete file.
5546 * config/pa/hppaosf.mh: Obsolete file.
5547 * config/pa/hppapro.mt: Obsolete file.
5548 * config/pa/hppabsd.mt: Obsolete file.
5549 * config/pa/hppabsd.mh: Obsolete file.
5550 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
5551 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
5554 2003-03-27 Andrew Cagney <cagney@redhat.com>
5556 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
5557 push_arguments. Don't set push_return_address or write_sp.
5558 (d10v_push_dummy_call): Replace d10v_push_arguments.
5559 (d10v_push_return_address, d10v_write_sp): Delete function,
5560 handled by push_dummy_call.
5562 2003-03-26 Andrew Cagney <cagney@redhat.com>
5564 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
5565 (push_dummy_call): New pure multi-arch replacement with gdbarch,
5566 regcache and dummy_addr parameters.
5567 * gdbarch.h, gdbarch.c: Re-generate.
5568 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
5569 available; assume it will handle stack alignment and return
5570 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
5571 legacy_push_arguments.
5572 (legacy_push_arguments): Rename default_push_arguments.
5573 * value.h (legacy_push_arguments): Rename default_push_arguments.
5574 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
5575 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
5576 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
5577 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
5578 * config/i386/tm-symmetry.h: Update.
5579 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5580 * x86-64-tdep.c (x86_64_init_abi): Update.
5581 * v850-tdep.c (v850_gdbarch_init): Update.
5582 * sparc-tdep.c (sparc_gdbarch_init): Update.
5583 * sh-tdep.c (sh_gdbarch_init): Update.
5584 * s390-tdep.c (s390_gdbarch_init): Update.
5585 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5586 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5587 * mips-tdep.c (mips_gdbarch_init): Update.
5588 * mcore-tdep.c (mcore_gdbarch_init): Update.
5589 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5590 * ia64-tdep.c (ia64_gdbarch_init): Update.
5591 * i386-tdep.c (i386_gdbarch_init): Update.
5592 * hppa-tdep.c (hppa_gdbarch_init): Update.
5593 * h8300-tdep.c (h8300_gdbarch_init): Update.
5594 * frv-tdep.c (frv_gdbarch_init): Update.
5595 * d10v-tdep.c (d10v_gdbarch_init): Update.
5596 * cris-tdep.c (cris_gdbarch_init): Update.
5597 * avr-tdep.c (avr_gdbarch_init): Update.
5598 * arm-tdep.c (arm_gdbarch_init): Update.
5599 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5600 * alpha-tdep.c (alpha_gdbarch_init): Update.
5602 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
5604 * signals/signals.c (do_target_signal_to_host): Correct realtime
5607 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
5609 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
5610 (struct sal_chain, map_catch_names): Remove.
5611 (catch_exception_command_1): Don't call
5612 handle_gnu_4_16_catch_command.
5614 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
5616 From Mark Dettinger <dettinge@de.ibm.com>:
5617 * dwarf2cfi.c (read_2u): Increment pointer by two.
5619 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
5621 * signals/signals.c: Fix typos in last change.
5623 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
5625 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
5626 not already defined. Use __SIGRTMIN if available.
5627 (target_signal_from_host): Remove SIGRTMIN block.
5628 (do_target_signal_to_host): Remove SIGRTMIN block; check that
5629 the signal is within the realtime range.
5631 2003-03-25 Adam Fedor <fedor@gnu.org>
5633 * Makefile.in (infrun.o): Add $(language_h)
5634 * infrun.c (handle_inferior_event): Use skip_language_trampoline
5635 for language specific trampolines.
5636 * language.h (struct language_defn): Add skip_trampoline.
5637 (skip_language_trampoline): Declare.
5638 * language.c (unk_lang_trampoline, skip_language_trampoline):
5640 (unknown_language_defn, auto_language_defn, local_language_defn):
5641 Add ukn_lang_trampoline.
5642 * ada-lang.c (ada_language_defn): Add NULL for language
5643 specific skip_trampoline.
5644 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
5645 scm-lang.c: Likewise.
5646 * objc-lang.c (objc_skip_trampoline): New function.
5647 (objc_language_defn): Add objc_skip_trampoline.
5649 2003-03-25 Andrew Cagney <cagney@redhat.com>
5651 * frame.c (get_prev_frame): Delay validating a frame's ID -
5652 non-NULL, didn't go backwards - until an attempt to unwind it to
5655 2003-03-25 Andrew Cagney <cagney@redhat.com>
5657 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
5658 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
5659 * gdbarch.h, gdbarch.c: Re-generate.
5660 * config/sparc/tm-sparc.h
5661 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
5662 * sparc-tdep.c (sparc_gdbarch_init): Set
5663 deprecated_extra_stack_alignment_needed.
5664 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
5665 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
5666 extra_stack_alignment_needed.
5667 * v850-tdep.c (v850_gdbarch_init): Ditto.
5668 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5669 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5670 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5671 * cris-tdep.c (cris_gdbarch_init): Ditto.
5672 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5673 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5675 2003-03-25 Andrew Cagney <cagney@redhat.com>
5677 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
5678 STORE_STRUCT_RETURN.
5679 * gdbarch.h, gdbarch.c: Regenerate.
5680 * d10v-tdep.c (d10v_store_struct_return): Delete function.
5681 (d10v_push_arguments): Set the struct return register.
5682 (d10v_gdbarch_init): Update.
5683 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5684 * x86-64-tdep.c (x86_64_init_abi): Update.
5685 * vax-tdep.c (vax_gdbarch_init): Update.
5686 * v850-tdep.c (v850_gdbarch_init): Update.
5687 * sparc-tdep.c (sparc_gdbarch_init): Update.
5688 * sh-tdep.c (sh_gdbarch_init): Update.
5689 * s390-tdep.c (s390_gdbarch_init): Update.
5690 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5691 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5692 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5693 * mips-tdep.c (mips_gdbarch_init): Update.
5694 * mcore-tdep.c (mcore_gdbarch_init): Update.
5695 * m68k-tdep.c (m68k_gdbarch_init): Update.
5696 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5697 * ia64-tdep.c (ia64_gdbarch_init): Update.
5698 * i386-tdep.c (i386_gdbarch_init): Update.
5699 * hppa-tdep.c (hppa_gdbarch_init): Update.
5700 * h8300-tdep.c (h8300_gdbarch_init): Update.
5701 * frv-tdep.c (frv_gdbarch_init): Update.
5702 * cris-tdep.c (cris_gdbarch_init): Update.
5703 * avr-tdep.c (avr_gdbarch_init): Update.
5704 * arm-tdep.c (arm_gdbarch_init): Update.
5705 * alpha-tdep.c (alpha_gdbarch_init): Update.
5707 2003-03-25 Andrew Cagney <cagney@redhat.com>
5709 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
5710 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
5711 CALL_DUMMY_STACK_ADJUST with a predicate variable.
5712 * gdbarch.h, gdbarch.c: Regenerate.
5713 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5714 call_dummy_stack_adjust_p.
5715 * vax-tdep.c (vax_gdbarch_init): Ditto.
5716 * v850-tdep.c (v850_gdbarch_init): Ditto.
5717 * sh-tdep.c (sh_gdbarch_init): Ditto.
5718 * s390-tdep.c (s390_gdbarch_init): Ditto.
5719 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5720 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5721 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5722 * mips-tdep.c (mips_gdbarch_init): Ditto.
5723 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5724 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5725 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5726 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5727 * i386-tdep.c (i386_gdbarch_init): Ditto.
5728 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5729 * frv-tdep.c (frv_gdbarch_init): Ditto.
5730 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5731 * cris-tdep.c (cris_gdbarch_init): Ditto.
5732 * avr-tdep.c (avr_gdbarch_init): Ditto.
5733 * arm-tdep.c (arm_gdbarch_init): Ditto.
5734 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5735 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
5736 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
5737 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
5738 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
5739 call_dummy_stack_adjust_p.
5740 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
5741 (CALL_DUMMY_STACK_ADJUST): Delete macro.
5742 * sparc-tdep.c (sparc32_push_arguments): Update.
5743 * valops.c (hand_function_call): Update.
5745 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
5747 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
5748 set_gdbarch_char_signed.
5750 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
5753 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
5755 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
5757 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
5758 (_initialize_arm_tdep): Don't set tm_print_insn.
5760 2003-03-24 Adam Fedor <fedor@gnu.org>
5762 * Makefile.in (YYOBJ): Add objc-exp.tab.o
5763 * objc-lang.h: Add multiple inclusion protection.
5764 (start_msglist, add_msglist, end_msglist): Additional declarations.
5766 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
5768 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
5769 value was renamed to ARM_FLOAT_SOFT_FPA.
5771 2003-03-23 Andrew Cagney <cagney@redhat.com>
5773 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
5774 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
5775 * gdbarch.h, gdbarch.c: Regenerate.
5776 * valops.c (hand_function_call): Update.
5777 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
5778 * frame.c (legacy_saved_regs_this_id): Update.
5779 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
5780 * dummy-frame.h: Update.
5781 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
5782 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
5783 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
5784 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
5785 * config/m68k/tm-sun3.h: Update.
5786 * blockframe.c (inside_main_func, frame_chain_valid): Update.
5787 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5788 * x86-64-tdep.c (x86_64_init_abi): Update.
5789 * vax-tdep.c (vax_gdbarch_init): Update.
5790 * v850-tdep.c (v850_gdbarch_init): Update.
5791 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
5792 * sh-tdep.c (sh_gdbarch_init): Update.
5793 * s390-tdep.c (s390_gdbarch_init): Update.
5794 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
5795 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
5796 (frame_get_saved_regs): Update.
5797 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
5798 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5799 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5800 * mips-tdep.c (mips_gdbarch_init): Update.
5801 * mcore-tdep.c (mcore_gdbarch_init): Update.
5802 * m68k-tdep.c (m68k_gdbarch_init): Update.
5803 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5804 * ia64-tdep.c (ia64_gdbarch_init): Update.
5805 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
5806 * i386-interix-tdep.c (i386_interix_init_abi): Update.
5807 (i386_interix_back_one_frame): Update.
5808 * hppa-tdep.c (hppa_gdbarch_init): Update.
5809 (hppa_init_extra_frame_info): Update.
5810 * h8300-tdep.c (h8300_gdbarch_init): Update.
5811 * frv-tdep.c (frv_gdbarch_init): Update.
5812 * cris-tdep.c (cris_gdbarch_init): Update.
5813 * avr-tdep.c (avr_gdbarch_init): Update.
5814 * arm-tdep.c (arm_gdbarch_init): Update.
5815 * alpha-tdep.c (alpha_gdbarch_init): Update.
5817 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
5819 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
5820 (arm_get_fp_model): Declare.
5821 * arm-tdep.c (fp_model_strings): New string array.
5822 (arm_fp_model, current_fp_model): New variables.
5823 (arm_get_fp_model): New function.
5824 (arm_set_fp): New function.
5825 (set_fp_model_sfunc): New function.
5826 (show_fp_model): New function.
5827 (_initialize_arm_tdep): Add new command to set/show the FPU.
5828 (arm_extract_return_value): Use arm_get_fp_model.
5829 (arm_store_return_value): Likewise.
5830 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
5831 to initialize the floating-point data types.
5832 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
5835 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
5837 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
5838 the current setting of each value.
5839 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
5840 new_set and new_show. Use add_setshow_cmd_full and
5841 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
5842 commands and add new version as subcommands of "set/show arm".
5844 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
5846 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
5847 (set_arm_command, show_arm_command): New functions.
5848 (_initialize_arm_tdep): Add them.
5849 (num_disassembly_options): Renamed from num_flavor_options.
5850 (valid_disassembly_styles): Renamed from valid_flavors.
5851 (disassembly_style): Renamed from disassembly_flavor.
5852 (set_disassembly_style_sfunc): Renamed from
5853 set_disassembly_flavor_sfunc.
5854 (set_disassembly_style): Renamed from set_disassembly_flavor.
5855 (arm_othernames): Updated.
5856 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
5857 command. Add "set/show arm disassembly" commands. Deprecate
5858 "othernames" command.
5860 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
5862 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
5863 (arm-tdep.o): Depend on elf_arm_h.
5865 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
5867 * Makefile.in (coff_internal_h): Define.
5868 (arm-tdep.o): Update dependencies.
5870 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
5872 * arm-tdep.c (prologue_cache): Delete.
5873 (check_prologue_cache, save_prologue_cache): Delete.
5874 (arm_scan_prologue): Don't check or update the prologue_cache.
5875 (arm_gdb_arch_init): Don't initialize it.
5876 (_initialize_arm_tdep): Likewise.
5878 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
5880 * MAINTAINERS (tui): Maintainer of tui code.
5882 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
5884 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
5885 (i386-cygwin-tdep.o): Add dependencies.
5886 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
5887 * i386-cygwin-tdep.c: New file.
5888 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
5889 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
5891 2003-03-20 Andrew Cagney <cagney@redhat.com>
5893 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
5894 (handle_inferior_event): Remove code calling
5895 DYNAMIC_TRAMPOLINE_NEXTPC.
5897 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
5898 already has a full path.
5900 * main.c (gdb_main): Return 1.
5901 (captured_main): Call error to report an invalid interpreter.
5903 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5904 * alpha-osf1-tdep.c: Include "gdb_string.h".
5906 2003-03-19 J. Brobecker <brobecker@gnat.com>
5908 Continuing work to convert the hppa targets to multiarch partial.
5910 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
5911 method, now that hppa_push_dummy_frame has a conformant prototype.
5912 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
5913 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
5914 for the switch to multiarch partial.
5916 2003-03-19 Kevin Buettner <kevinb@redhat.com>
5918 * mdebugread.c (parse_symbol): For stEnd, we're done counting
5919 when iss is issNull.
5921 2003-03-18 Kevin Buettner <kevinb@redhat.com>
5923 * mips-tdep.c (mips_register_name): Fix fencepost error involving
5924 NUM_REGS bounds check.
5926 2003-03-18 Kevin Buettner <kevinb@redhat.com>
5928 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
5929 * mips-tdep.c (gdb_assert.h): Include.
5930 (mips_generic_reg_names, mips_processor_reg_names): Make static.
5931 (mips_register_name): Handle integer registers explicitly. Add
5933 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
5934 (mips_lsi33k_reg_names): Don't list integer registers; they're
5935 handled by mips_register_name() now.
5936 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
5937 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
5938 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
5939 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
5940 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
5942 2003-03-18 Andrew Cagney <cagney@redhat.com>
5944 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
5946 * gdbtypes.h (print_scalar_formatted): Update declaration.
5947 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
5949 2003-03-18 J. Brobecker <brobecker@gnat.com>
5951 * infrun.c (observer.h): Add #include.
5952 (normal_stop): Add call to observer_notify_normal_stop.
5953 * Makefile.in (infrun.o): Add dependency on observer.h.
5955 2003-03-18 J. Brobecker <brobecker@gnat.com>
5957 Continuing work to convert the hppa targets to multiarch partial.
5958 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
5959 parameter. Reformat comment.
5960 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
5961 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
5962 to match new profile.
5964 2003-03-18 J. Brobecker <brobecker@gnat.com>
5966 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
5967 appear to be working in any case.
5969 2003-03-18 J. Brobecker <brobecker@gnat.com>
5971 * observer.c (observer_test_first_observer): New static variable.
5972 (observer_test_second_observer): Likewise.
5973 (observer_test_third_observer): Likewise.
5974 (observer_test_first_notification_function): New static function.
5975 (observer_test_second_notification_function): Likewise.
5976 (observer_test_third_notification_function): Likewise.
5978 2003-03-17 J. Brobecker <brobecker@gnat.com>
5980 * hppa-tdep.c (gdb_assert.h): Add missing #include.
5981 * somsolib.c (gdb_assert.h): Likewise.
5982 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
5983 (somsolib.o): Likewise.
5985 2003-03-17 Andrew Cagney <cagney@redhat.com>
5987 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
5988 BFD. Simplify setting of di.endian.
5990 2003-03-17 Andrew Cagney <cagney@redhat.com>
5992 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
5993 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
5995 From Elena Zannoni <ezannoni@redhat.com>
5996 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
5997 vector and floating-point parameters.
5998 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
6000 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
6002 2003-03-17 Fernando Nasser <fnasser@redhat.com>
6004 * MAINTAINERS: Remove my name from several maintainership roles.
6006 2003-03-17 Andrew Cagney <cagney@redhat.com>
6008 Fix frame off-by-one bug.
6009 * frame-unwind.h (frame_this_id_ftype): Replace
6010 frame_unwind_id_ftype.
6011 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
6012 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
6013 with "prev_register".
6014 * frame-unwind.c (frame_unwind_find_by_pc): Return
6015 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
6017 * dummy-frame.c (cached_find_dummy_frame): Delete function.
6018 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
6019 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
6020 (dummy_frame_unwind): Update.
6021 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6022 sentinel_frame_register_unwind.
6023 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
6024 (sentinel_frame_unwinder): Update.
6025 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
6026 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
6027 * frame.c (create_sentinel_frame): Update. Initialize
6028 "prologue_cache" instead of "unwind_cache".
6029 (frame_register_unwind): Call this frame's prev_register with the
6030 next frame and this frame's prologue cache.
6031 (get_prev_frame): Simplify. Always call prev frame's this_id with
6032 this frame and prev frame's prologue cache. Document that this
6033 call is shifted one to the left when compared to the
6034 frame_register_unwind call.
6035 (legacy_saved_regs_prev_register): Replace
6036 frame_saved_regs_register_unwind.
6037 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
6038 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
6039 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
6040 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
6041 (d10v_frame_unwind): Update.
6042 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
6043 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
6044 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
6045 "saved_regs" with "this_saved_regs".
6047 2003-03-16 Andrew Cagney <cagney@redhat.com>
6049 * frame.c (frame_pop): Don't call target_store_registers. Fix
6050 problem reported by Mark Kettenis.
6052 2003-03-16 Mark Kettenis <kettenis@gnu.org>
6054 * i386-tdep.c (i386_register_type): Renamed from
6055 i386_register_virtual_type. Adjust function signature.
6056 (i386_gdbarch_init): Set register_type instead of
6057 deprecated_max_register_raw_size,
6058 deprecated_max_register_virtual_size and register_virtual_type.
6060 2003-03-14 Andrew Cagney <cagney@redhat.com>
6062 * frame.c (get_prev_frame): When a legacy frame, always call
6063 legacy_get_prev_frame. Simplify unwind code using assumption that
6064 the unwinder is new.
6065 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
6066 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
6067 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
6069 2003-03-14 Andrew Cagney <cagney@redhat.com>
6071 * frame.c (get_saved_register): Delete function.
6072 * frame.h (get_saved_register): Delete declaration.
6073 * xstormy16-tdep.c: Update comment.
6074 * regcache.h: Update comments.
6075 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
6076 get_saved_register and extract_address, use
6077 frame_read_unsigned_register.
6078 (sparc_frame_saved_pc): Ditto.
6079 (sparc_get_saved_register): Instead of get_saved_register, use
6081 (sparc_pop_frame): Ditto.
6082 * findvar.c: Update comments.
6083 (value_of_register): Call frame_register instead of
6085 (value_from_register): Ditto.
6086 * config/sparc/tm-sparc.h: Update comment.
6087 * breakpoint.c: Update comment.
6089 2003-03-14 Andrew Cagney <cagney@redhat.com>
6091 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
6093 * gdbarch.h, gdbarch.c: Re-generate.
6094 * frame.h: Update comments.
6095 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6096 * x86-64-tdep.c (x86_64_init_abi): Update.
6097 * sparc-tdep.c (sparc_gdbarch_init): Update.
6098 * sh-tdep.c (sh_gdbarch_init): Update.
6099 * mips-tdep.c (mips_gdbarch_init): Update.
6100 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6101 * cris-tdep.c (cris_gdbarch_init): Update.
6102 * ia64-tdep.c (ia64_gdbarch_init): Update.
6103 * frame.c (frame_register): Update.
6104 (get_saved_register): Update.
6105 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
6107 2003-03-13 Andrew Cagney <cagney@redhat.com>
6109 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
6110 * gdbarch.h, gdbarch.c: Regenerate.
6111 * valops.c (hand_function_call): Update comment.
6112 * stack.c (return_command): Update comment.
6113 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
6114 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
6115 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6116 * x86-64-tdep.c (x86_64_init_abi): Update.
6117 * vax-tdep.c (vax_gdbarch_init): Update.
6118 * v850-tdep.c (v850_gdbarch_init): Update.
6119 * sparc-tdep.c (sparc_gdbarch_init): Update.
6120 * sh-tdep.c (sh_gdbarch_init): Update.
6121 * s390-tdep.c (s390_gdbarch_init): Update.
6122 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6123 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6124 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6125 * mips-tdep.c (mips_gdbarch_init): Update.
6126 * mcore-tdep.c (mcore_gdbarch_init): Update.
6127 * m68k-tdep.c (m68k_gdbarch_init): Update.
6128 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6129 * ia64-tdep.c (ia64_gdbarch_init): Update.
6130 * i386-tdep.c (i386_gdbarch_init): Update.
6131 * hppa-tdep.c (hppa_gdbarch_init): Update.
6132 * h8300-tdep.c (h8300_gdbarch_init): Update.
6133 * frv-tdep.c (frv_gdbarch_init): Update.
6134 * cris-tdep.c (cris_gdbarch_init): Update.
6135 * avr-tdep.c (avr_gdbarch_init): Update.
6136 * arm-tdep.c (arm_gdbarch_init): Update.
6137 * alpha-tdep.c (alpha_gdbarch_init): Update.
6139 2003-03-13 Andrew Cagney <cagney@redhat.com>
6141 * frame.c (legacy_frame_p): New function.
6142 (get_prev_frame): Use legacy_frame_p.
6143 * frame.h (legacy_frame_p): Declare.
6145 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
6147 * MAINTAINERS (write after approval): Alphabetically
6150 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
6152 * MAINTAINERS (write after approval): Add myself.
6154 2003-03-12 Andrew Cagney <cagney@redhat.com>
6156 * frame.c (get_prev_frame): Rename the frame parameter to
6158 (get_next_frame, legacy_get_prev_frame): Ditto.
6160 2003-03-12 Andrew Cagney <cagney@redhat.com>
6162 * frame.c (get_current_frame): Check target_has_registers before
6163 checking target_has_stack.
6164 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
6165 instead of deprecated_selected_frame.
6166 * findvar.c (value_of_register): Pass "frame", not
6167 deprecated_selected_frame, to value_of_builtin_reg.
6169 2003-03-12 Andrew Cagney <cagney@redhat.com>
6171 * regcache.c (regcache_cooked_write_signed): New function.
6172 (regcache_cooked_write_unsigned): New function.
6173 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
6174 (regcache_cooked_read_signed): Fix regnum in range assertion.
6175 * regcache.h (regcache_cooked_write_signed): Declare.
6176 (regcache_cooked_write_unsigned): Declare.
6178 2003-03-12 Andrew Cagney <cagney@redhat.com>
6180 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
6181 * gdbarch.h, gdbarch.c: Re-generate.
6182 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6183 * x86-64-tdep.h: Update.
6184 * x86-64-tdep.c (x86_64_init_abi): Update.
6185 * v850-tdep.c (v850_gdbarch_init): Update.
6186 * sparc-tdep.c (sparc_gdbarch_init): Update.
6187 * sh-tdep.c (sh_gdbarch_init): Update.
6188 * s390-tdep.c (s390_gdbarch_init): Update.
6189 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6190 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6191 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6192 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6193 * mips-tdep.c (mips_gdbarch_init): Update.
6194 * mcore-tdep.c (mcore_gdbarch_init): Update.
6195 * m68k-tdep.c (m68k_gdbarch_init): Update.
6196 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6197 * ia64-tdep.c (ia64_gdbarch_init): Update.
6198 * i386-tdep.c (i386_gdbarch_init): Update.
6199 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6200 * hppa-tdep.c (hppa_gdbarch_init): Update.
6201 * h8300-tdep.c (h8300_gdbarch_init): Update.
6202 * frv-tdep.c (frv_gdbarch_init): Update.
6203 * cris-tdep.c (cris_gdbarch_init): Update.
6204 * avr-tdep.c (avr_gdbarch_init): Update.
6205 * arm-tdep.c (arm_gdbarch_init): Update.
6206 * alpha-tdep.c (alpha_gdbarch_init): Update.
6207 * sh-tdep.c (sh_init_extra_frame_info): Update.
6208 (sh64_init_extra_frame_info): Update.
6209 * ns32knbsd-nat.c (frame_num_args): Update.
6210 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
6211 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
6212 (xstormy16_frame_chain_valid): Update.
6213 * vax-tdep.c (vax_saved_pc_after_call): Update.
6214 * v850-tdep.c (v850_frame_chain): Update.
6215 (v850_pop_frame): Update.
6216 (v850_init_extra_frame_info): Update.
6217 * sparc-tdep.c (setup_arbitrary_frame): Update.
6218 * ns32k-tdep.c (umax_frame_num_args): Update.
6219 * s390-tdep.c (s390_pop_frame_regular): Update.
6220 * mn10300-tdep.c (mn10300_frame_chain): Update.
6221 (mn10300_pop_frame_regular): Update.
6222 (mn10300_init_extra_frame_info): Update.
6223 * mips-tdep.c (mips_init_frame_pc_first): Update.
6224 (mips_frame_chain): Update.
6225 (mips_pop_frame): Update.
6226 * mcore-tdep.c (mcore_frame_chain): Update.
6227 (mcore_pop_frame): Update.
6228 (mcore_init_extra_frame_info): Update.
6229 * arch-utils.c (init_frame_pc_default): Update.
6230 * m68k-tdep.c (isi_frame_num_args): Update.
6231 (delta68_frame_num_args): Update.
6232 (news_frame_num_args): Update.
6233 * ia64-tdep.c (ia64_pop_frame_regular): Update.
6234 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6235 (alpha_frame_chain): Update.
6236 (alpha_pop_frame): Update.
6237 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
6238 (hppa_init_extra_frame_info): Update.
6239 (hppa_frame_chain): Update.
6240 (hppa_frame_chain_valid): Update.
6241 * cris-tdep.c (cris_init_extra_frame_info): Update.
6242 * avr-tdep.c (avr_init_extra_frame_info): Update.
6243 * arm-tdep.c (arm_frame_chain_valid): Update.
6244 (arm_init_extra_frame_info): Update.
6245 (arm_pop_frame): Update.
6246 * frame.c (frame_pc_unwind): Update.
6247 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
6248 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6249 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6250 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
6251 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
6252 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
6254 2003-03-12 Andrew Cagney <cagney@redhat.com>
6256 Eliminate the need for POP_FRAME.
6257 * frame.c (do_frame_unwind_register): New function.
6258 (frame_pop): When no POP_FRAME, pop the frame using register
6259 unwind and a scratch regcache.
6260 (frame_saved_regs_pop): Delete function.
6261 (trad_frame_unwinder): Update.
6262 * d10v-tdep.c (d10v_frame_pop): Delete function.
6263 (d10v_frame_unwind): Update.
6264 * sentinel-frame.c (sentinel_frame_pop): Delete function.
6265 (sentinel_frame_unwinder): Update.
6266 * dummy-frame.c (dummy_frame_pop): Delete function.
6267 (dummy_frame_unwind): Update.
6268 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
6269 (struct frame_unwind): Update.
6271 2003-03-11 Kevin Buettner <kevinb@redhat.com>
6273 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
6274 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
6275 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
6276 Do range checks on register number obtained from debugging info.
6277 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
6278 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
6279 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
6281 (do_fp_register_row): Fix typo which caused double type to be
6282 used when attempting to unpack a float.
6284 2003-03-11 J. Brobecker <brobecker@gnat.com>
6286 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
6288 2003-03-11 Andrew Cagney <cagney@redhat.com>
6290 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
6291 frame. Problem found by Corinna Vinschen.
6293 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
6295 * doublest.c (floatformat_from_length): Accept also
6296 the real size of 'long double' type.
6298 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
6300 From Klee Dienes <kdienes@apple.com>:
6301 * breakpoint.c (bpstat_copy): Copy the command lines as well
6302 as the old value, to match what is freed in bpstat_clear.
6304 2003-03-10 David Carlton <carlton@math.stanford.edu>
6306 * minsyms.c (add_minsym_to_hash_table): Replace
6307 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6308 (compare_minimal_symbols, compact_minimal_symbols)
6309 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
6310 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
6311 of DEPRECATED_SYMBOL_MATCHES_NAME.
6312 (lookup_minimal_symbol_solib_trampoline): Ditto.
6314 2003-03-10 Andrew Cagney <cagney@redhat.com>
6316 * regcache.h (regcache_cooked_read_ftype): Define.
6317 (regcache_save, regcache_restore): Add a cooked_read parameter.
6318 * regcache.c (regcache_save, regcache_restore): Update.
6319 (do_cooked_read): New function.
6320 (regcache_cpy): Pass do_cooked_read to regcache_save and
6323 2003-03-10 Andrew Cagney <cagney@redhat.com>
6325 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
6326 * gdbarch.h, gdbarch.c: Re-generate.
6327 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6328 * x86-64-tdep.h: Update.
6329 * x86-64-tdep.c (x86_64_init_abi): Update.
6330 * v850-tdep.c (v850_gdbarch_init): Update.
6331 * sparc-tdep.c (sparc_gdbarch_init): Update.
6332 * sh-tdep.c (sh_gdbarch_init): Update.
6333 * s390-tdep.c (s390_gdbarch_init): Update.
6334 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6335 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6336 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6337 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6338 * mips-tdep.c (mips_gdbarch_init): Update.
6339 * mcore-tdep.c (mcore_gdbarch_init): Update.
6340 * m68k-tdep.c (m68k_gdbarch_init): Update.
6341 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6342 * ia64-tdep.c (ia64_gdbarch_init): Update.
6343 * i386-tdep.c (i386_gdbarch_init): Update.
6344 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6345 * hppa-tdep.c (hppa_gdbarch_init): Update.
6346 * h8300-tdep.c (h8300_gdbarch_init): Update.
6347 * frv-tdep.c (frv_gdbarch_init): Update.
6348 * cris-tdep.c (cris_gdbarch_init): Update.
6349 * avr-tdep.c (avr_gdbarch_init): Update.
6350 * arm-tdep.c (arm_gdbarch_init): Update.
6351 * alpha-tdep.c (alpha_gdbarch_init): Update.
6352 * sh-tdep.c (sh_init_extra_frame_info): Update.
6353 (sh64_init_extra_frame_info): Update.
6354 * ns32knbsd-nat.c (frame_num_args): Update.
6355 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
6356 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
6357 (xstormy16_frame_chain_valid): Update.
6358 * vax-tdep.c (vax_saved_pc_after_call): Update.
6359 * v850-tdep.c (v850_frame_chain): Update.
6360 (v850_pop_frame): Update.
6361 (v850_init_extra_frame_info): Update.
6362 * sparc-tdep.c (setup_arbitrary_frame): Update.
6363 * ns32k-tdep.c (umax_frame_num_args): Update.
6364 * s390-tdep.c (s390_pop_frame_regular): Update.
6365 * mn10300-tdep.c (mn10300_frame_chain): Update.
6366 (mn10300_pop_frame_regular): Update.
6367 (mn10300_init_extra_frame_info): Update.
6368 * mips-tdep.c (mips_init_frame_pc_first): Update.
6369 (mips_frame_chain): Update.
6370 (mips_pop_frame): Update.
6371 * mcore-tdep.c (mcore_frame_chain): Update.
6372 (mcore_pop_frame): Update.
6373 (mcore_init_extra_frame_info): Update.
6374 * arch-utils.c (init_frame_pc_default): Update.
6375 * m68k-tdep.c (isi_frame_num_args): Update.
6376 (delta68_frame_num_args): Update.
6377 (news_frame_num_args): Update.
6378 * ia64-tdep.c (ia64_pop_frame_regular): Update.
6379 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6380 (alpha_frame_chain): Update.
6381 (alpha_pop_frame): Update.
6382 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
6383 (hppa_init_extra_frame_info): Update.
6384 (hppa_frame_chain): Update.
6385 (hppa_frame_chain_valid): Update.
6386 * cris-tdep.c (cris_init_extra_frame_info): Update.
6387 * avr-tdep.c (avr_init_extra_frame_info): Update.
6388 * arm-tdep.c (arm_frame_chain_valid): Update.
6389 (arm_init_extra_frame_info): Update.
6390 (arm_pop_frame): Update.
6391 * frame.c (frame_pc_unwind): Update.
6392 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
6393 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6394 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6395 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
6396 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
6397 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
6399 2003-03-10 Andrew Cagney <cagney@redhat.com>
6401 * gdbarch.sh (gdbarch_unwind_pc): New method.
6402 * gdbarch.h, gdbarch.c: Regenerate.
6403 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
6404 but use read_pc and FRAME_SAVED_PC as fall backs.
6405 (frame_saved_regs_pc_unwind): Delete function.
6406 (trad_frame_unwinder): Update.
6407 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
6408 (struct frame_unwind): Update.
6409 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
6410 (dummy_frame_unwind): Update.
6411 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
6412 (sentinel_frame_unwinder): Update.
6413 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
6414 (d10v_frame_unwind): Update.
6415 (d10v_unwind_pc): New function.
6416 (d10v_gdbarch_init): Set unwind_pc.
6418 2003-03-10 Andrew Cagney <cagney@redhat.com>
6420 * gdbarch.h: Re-generate.
6422 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
6424 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
6427 2003-03-08 Mark Kettenis <kettenis@gnu.org>
6429 * gdbarch.sh (save_dummy_frame_tos): Add comment.
6431 2003-03-08 Andrew Cagney <cagney@redhat.com>
6433 * cli-out.c: Update copyright.
6434 (cli_out_data): Define typedef. Use instead of ui_out_data.
6436 2003-03-08 Andrew Cagney <cagney@redhat.com>
6438 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
6441 2003-03-07 Andrew Cagney <cagney@redhat.com>
6443 * gdbarch.sh: Don't generate two macro definitions when an
6444 undefined macro taking no arguments.
6445 * gdbarch.h: Regenerate.
6447 2002-03-07 Michal Ludvig <mludvig@suse.cz>
6449 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
6450 (x86_64_unwind_dummy_id): New functions.
6451 (x86_64_init_abi): Register these two new functions.
6453 2003-03-07 Michal Ludvig <mludvig@suse.cz>
6455 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
6456 (x86_64_skip_prologue): Move prologue detection to
6458 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
6460 2003-03-05 Andrew Cagney <cagney@redhat.com>
6462 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
6463 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
6464 * frame.c (get_prev_frame): Restructure the frame ID unwind code
6465 to use unwind_dummy_id when a dummy frame.
6466 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
6468 * gdbarch.h, gdbarch.c: Regneerate.
6470 2003-03-05 Andrew Cagney <cagney@redhat.com>
6472 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
6473 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
6474 Do not use d10v_read_sp or d10v_read_fp when obtaining register
6477 2003-03-05 Andrew Cagney <cagney@redhat.com>
6479 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
6480 (struct d10v_unwind_cache): Delete field "frameless". Replace
6481 "next_addr" with "sp_offset". Add "r11_offset".
6482 (d10v_frame_unwind_cache): Update.
6483 (prologue_find_regs): Update. When "mv r11, sp", save the
6484 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
6485 RN was saved in r11_offset.
6487 2003-03-05 Andrew Cagney <cagney@redhat.com>
6489 * frame.c (deprecated_update_frame_pc_hack): Also update the the
6490 cached PC value in the next frame.
6492 2003-03-05 Andrew Cagney <cagney@redhat.com>
6494 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
6495 "id_unwind_cache" with "id".
6496 (frame_id_unwind): Delete declaration.
6497 * frame.c (frame_id_unwind): Delete function.
6498 (get_prev_frame): Call the frame id unwind method directly. Store
6499 the returned next frame's ID value in NEXT_FRAME. Note that there
6500 is a problem with the wrong unwind ID being called with the wrong
6503 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
6505 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
6507 2003-03-05 James Ingham <jingham@apple.com>
6508 Daniel Jacobowitz <drow@mvista.com>
6510 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
6511 (auto_cp_abi): New variable.
6512 (current_cp_abi, num_cp_abis): Make static.
6513 (CP_ABI_MAX): Define.
6514 (cp_abis): Turn into an array.
6515 (value_virtual_fn_field): Fix formatting.
6516 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
6518 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
6519 (list_cp_abis, _initialize_cp_abi): New functions.
6520 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
6521 declarations for cp_abis, num_cp_abis, current_cp_abi, and
6522 switch_to_cp_abi. Update prototype for register_cp_abi.
6523 * Makefile.in (cp-abi.o): Update dependencies.
6524 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
6525 instead of switch_to_cp_abi.
6526 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
6528 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
6530 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
6532 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
6534 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
6535 * dwarf2loc.c: Include "regcache.h".
6536 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
6538 * Makefile.in (dwarf2loc.o): Update dependencies.
6540 2003-03-04 Theodore A. Roth <troth@openavr.org>
6542 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
6543 number of io registers reported by remote target is not a multiple of
6546 2003-03-04 David Carlton <carlton@math.stanford.edu>
6548 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
6549 (lookup_symbol_aux_psymtabs): Update call to
6550 lookup_partial_symbol.
6551 (lookup_transparent_type, find_main_psymtab)
6552 (make_symbol_overload_list): Ditto.
6554 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
6556 * MAINTAINERS (Write after approval): Update my email address.
6558 2003-03-03 Andrew Cagney <cagney@redhat.com>
6560 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
6561 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
6562 predicate. Replace MAX_REGISTER_RAW_SIZE.
6563 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
6564 MAX_REGISTER_VIRTUAL_SIZE.
6565 * regcache.c (legacy_max_register_raw_size): New function.
6566 (legacy_max_register_virtual_size): New function.
6567 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
6568 (MAX_REGISTER_RAW_SIZE): Define.
6569 (legacy_max_register_raw_size): Declare.
6570 (legacy_max_register_virtual_size): Declare.
6571 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6572 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
6573 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6574 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
6575 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6576 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
6577 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
6578 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
6579 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
6580 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6581 * vax-tdep.c (vax_gdbarch_init): Update.
6582 * v850-tdep.c (v850_gdbarch_init): Update.
6583 * sparc-tdep.c (sparc_gdbarch_init): Update.
6584 * sh-tdep.c (sh_gdbarch_init): Update.
6585 * s390-tdep.c (s390_gdbarch_init): Update.
6586 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6587 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6588 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6589 * mips-tdep.c (mips_gdbarch_init): Update.
6590 * mcore-tdep.c (mcore_gdbarch_init): Update.
6591 * m68k-tdep.c (m68k_gdbarch_init): Update.
6592 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6593 * ia64-tdep.c (ia64_gdbarch_init): Update.
6594 * i386-tdep.c (i386_gdbarch_init): Update.
6595 * hppa-tdep.c (hppa_gdbarch_init): Update.
6596 * h8300-tdep.c (h8300_gdbarch_init): Update.
6597 * frv-tdep.c (frv_gdbarch_init): Update.
6598 * cris-tdep.c (cris_gdbarch_init): Update.
6599 * avr-tdep.c (avr_gdbarch_init): Update.
6600 * arm-tdep.c (arm_gdbarch_init): Update.
6601 * alpha-tdep.c (alpha_gdbarch_init): Update.
6602 * d10v-tdep.c (d10v_gdbarch_init): Do not set
6603 max_register_raw_size or max_register_virtual_size.
6605 2003-03-03 David Carlton <carlton@math.stanford.edu>
6607 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
6608 SYMBOL_MATCHES_NAME, add comment.
6609 (SYMBOL_MATCHES_NATURAL_NAME): New.
6610 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
6611 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
6612 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
6613 * symtab.c (lookup_partial_symbol): Use
6614 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
6616 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
6617 SYMBOL_MATCHES_NAME.
6620 2003-03-03 David Carlton <carlton@math.stanford.edu>
6622 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
6623 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
6624 by regexp matching against SYMBOL_NATURAL_NAME.
6626 2003-03-03 David Carlton <carlton@math.stanford.edu>
6628 * linespec.c (find_method): Extract code into collect_methods.
6629 (collect_methods): New.
6631 2003-03-02 Mark Kettenis <kettenis@gnu.org>
6633 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
6636 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
6637 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6639 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
6641 * arch-utils.c (generic_register_byte): Fix to use the loop index
6642 and not regnum when summing the size of all registers up to regnum.
6644 2003-03-01 Andrew Cagney <cagney@redhat.com>
6646 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
6647 FRAME_INIT_SAVED_REGS.
6648 * gdbarch.h, gdbarch.c: Regenerate.
6649 * stack.c (frame_info): Update.
6650 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
6651 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
6652 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
6653 * ns32k-tdep.c (ns32k_pop_frame): Update.
6654 * mips-tdep.c (mips_pop_frame): Update.
6655 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
6656 * ia64-tdep.c (ia64_frame_chain): Update.
6657 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
6658 (ia64_frameless_function_invocation): Update.
6659 (ia64_init_extra_frame_info): Update.
6660 (ia64_pop_frame_regular): Update.
6661 * frame.h (struct frame_info): Update comment.
6662 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
6663 * frame.c (frame_saved_regs_register_unwind): Update.
6664 (frame_saved_regs_register_unwind): Update.
6665 (deprecated_generic_get_saved_register): Update.
6666 * cris-tdep.c: Update comment.
6667 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
6669 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6670 * x86-64-tdep.c (x86_64_init_abi): Update.
6671 * vax-tdep.c (vax_gdbarch_init): Update.
6672 * v850-tdep.c (v850_gdbarch_init): Update.
6673 * sparc-tdep.c (sparc_gdbarch_init): Update.
6674 * sh-tdep.c (sh_gdbarch_init): Update.
6675 * s390-tdep.c (s390_gdbarch_init): Update.
6676 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6677 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6678 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6679 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6680 * mips-tdep.c (mips_gdbarch_init): Update.
6681 * mcore-tdep.c (mcore_gdbarch_init): Update.
6682 * m68k-tdep.c (m68k_gdbarch_init): Update.
6683 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6684 * ia64-tdep.c (ia64_gdbarch_init): Update.
6685 * i386-tdep.c (i386_gdbarch_init): Update.
6686 * frv-tdep.c (frv_gdbarch_init): Update.
6687 * avr-tdep.c (avr_gdbarch_init): Update.
6688 * arm-tdep.c (arm_gdbarch_init): Update.
6689 * alpha-tdep.c (alpha_gdbarch_init): Update.
6691 2003-03-01 Andrew Cagney <cagney@redhat.com>
6693 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
6694 option enum and switch. When no windows, set the interpreter to
6697 2003-03-01 Andrew Cagney <cagney@redhat.com>
6699 * main.c (captured_main): Replace magic option characters with an
6702 2003-03-01 Andrew Cagney <cagney@redhat.com>
6704 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
6705 INIT_EXTRA_FRAME_INFO.
6706 * gdbarch.h, gdbarch.c: Regenerate.
6707 * arm-tdep.c: Update comments.
6708 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
6709 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
6710 * frame.h, avr-tdep.c: Ditto.
6711 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
6712 (create_new_frame, legacy_get_prev_frame): Ditto.
6713 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
6714 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
6715 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
6716 deprecated_init_extra_frame_info instead of init_extra_frame_info.
6717 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6718 * v850-tdep.c (v850_gdbarch_init): Ditto.
6719 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6720 * sh-tdep.c (sh_gdbarch_init): Ditto.
6721 * s390-tdep.c (s390_gdbarch_init): Ditto.
6722 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
6723 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6724 * mips-tdep.c (mips_gdbarch_init): Ditto.
6725 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6726 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6727 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6728 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
6729 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6730 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6731 * frv-tdep.c (frv_gdbarch_init): Ditto.
6732 * cris-tdep.c (cris_gdbarch_init): Ditto.
6733 * avr-tdep.c (avr_gdbarch_init): Ditto.
6734 * arm-tdep.c (arm_gdbarch_init): Ditto.
6735 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6736 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6738 2003-03-01 Andrew Cagney <cagney@redhat.com>
6740 * gdbarch.sh (register_type): New function with predicate.
6741 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
6742 * gdbarch.h, gdbarch.c: Re-generate.
6743 * arch-utils.c (generic_register_byte): Use generic_register_size.
6744 (generic_register_size): When available, use
6745 gdbarch_register_type.
6746 * regcache.c (init_regcache_descr): When available, initialize the
6747 register type array using gdbarch_register_type. If the
6748 architecture supplies gdbarch_register_type, do not use the legacy
6750 * d10v-tdep.c (d10v_register_type): Replace
6751 d10v_register_virtual_type.
6752 (d10v_gdbarch_init): Set register_type instead of
6753 register_virtual_type.
6755 2003-03-01 Andrew Cagney <cagney@redhat.com>
6757 * Makefile.in (ax-gdb.o): Update dependencies.
6758 * ax-gdb.c: Include "regcache.h".
6759 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
6760 * findvar.c (value_of_register): Ditto.
6761 * infcmd.c (default_print_registers_info): Ditto.
6763 2003-03-01 Mark Kettenis <kettenis@gnu.org>
6765 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
6766 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6768 2003-03-01 Mark Kettenis <kettenis@gnu.org>
6770 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
6773 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
6775 * Makefile.in (dwarf2loc.o): Update dependencies.
6776 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
6777 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
6778 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
6779 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
6780 (locexpr_tracepoint_var_ref): New function.
6781 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
6783 2003-02-28 Andrew Cagney <cagney@redhat.com>
6785 * regcache.c (register_size): New function.
6786 * regcache.h (register_size): Declare
6787 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
6788 max_register_size instead of MAX_REGISTER_RAW_SIZE.
6790 2003-02-28 David Carlton <carlton@math.stanford.edu>
6792 * linespec.c (decode_compound): Extract code into find_method.
6795 2003-02-28 J. Brobecker <brobecker@gnat.com>
6797 * Makefile.in: Add rules to build and link in observer.o.
6799 2003-02-27 J. Brobecker <brobecker@gnat.com>
6801 * observer.c: Minor comments edits.
6803 2003-02-27 J. Brobecker <brobecker@gnat.com>
6805 * observer.h, observer.c: New file.
6807 2003-02-27 Andrew Cagney <cagney@redhat.com>
6809 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
6811 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
6813 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
6814 (M6812_OP_STS_EXT): Likewise.
6815 (m6811_prologue): Use the above to recognize prologue.
6816 (m6812_prologue): Likewise.
6818 2003-02-27 David Carlton <carlton@math.stanford.edu>
6820 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
6822 (compare_psymbols): Ditto.
6823 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
6825 2003-02-27 Michael Snyder <msnyder@redhat.com>
6827 * f-lang.c (build_fortran_types): New function.
6828 (_initialize_f_language): Gdbarch-register built-in fortran types.
6829 * doublest.c (extract_floating): Fix warning text.
6831 2003-02-27 Andrew Cagney <cagney@redhat.com>
6833 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
6834 predicate. Replaces PUSH_DUMMY_FRAME.
6835 * gdbarch.h, gdbarch.c: Regnerate.
6836 * valops.c (hand_function_call): Update. Call
6837 generic_push_dummy_frame directly.
6838 * vax-tdep.c (vax_gdbarch_init): Update.
6839 * sparc-tdep.c (sparc_gdbarch_init): Update.
6840 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6841 * m68k-tdep.c (m68k_gdbarch_init): Update.
6842 * hppa-tdep.c (hppa_gdbarch_init): Update.
6843 * alpha-tdep.c (alpha_gdbarch_init): Update.
6844 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
6845 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
6846 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
6847 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
6848 push_dummy_frame to generic_push_dummy_frame.
6849 * v850-tdep.c (v850_gdbarch_init): Ditto.
6850 * sh-tdep.c (sh_gdbarch_init): Ditto.
6851 * s390-tdep.c (s390_gdbarch_init): Ditto.
6852 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6853 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6854 * mips-tdep.c (mips_gdbarch_init): Ditto.
6855 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6856 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6857 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6858 * i386-tdep.c (i386_gdbarch_init): Ditto.
6859 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6860 * frv-tdep.c (frv_gdbarch_init): Ditto.
6861 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6862 * cris-tdep.c (cris_gdbarch_init): Ditto.
6863 * avr-tdep.c (avr_gdbarch_init): Ditto.
6864 * arm-tdep.c (arm_gdbarch_init): Ditto.
6866 2003-02-26 Kevin Buettner <kevinb@redhat.com>
6868 * mips-tdep.c (show_mips_abi): New function.
6869 (_initialize_mips_tdep): Use show_mips_abi() to implement the
6870 command ``show mips abi''.
6872 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
6874 From Elena Zannoni <ezannoni@redhat.com>
6875 * dbxread.c (process_one_symbol): Only record line 0 if one or
6876 more sline entries have been seen for the function.
6878 2003-02-26 Michael Chastain <mec@shout.net>
6880 * configure: Regenerate with autoconf 000227.
6882 2003-02-26 Michael Chastain <mec@shout.net>
6885 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
6886 for old libc5/glibc.
6887 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
6889 2003-02-26 Kris Warkentin <kewarken@qnx.com>
6891 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
6892 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
6894 2003-02-26 Michael Chastain <mec@shout.net>
6896 * configure.in: New variable HAVE_UINTPTR_T.
6897 * configure, config.in: Regenerated.
6899 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
6902 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
6904 2003-02-25 Andrew Cagney <cagney@redhat.com>
6906 * frame.c (get_prev_frame): Add comment on check for
6907 inside_entry_func. Only check for inside_entry_file when not a
6908 dummy and not a sentinel. Check that the new frame is not inner
6911 2003-02-25 Andrew Cagney <cagney@redhat.com>
6913 * frame.c (frame_debug): New variable.
6914 (_initialize_frame): Add "set/show debug frame" command.
6915 (get_prev_frame): When frame_debug, print reason why unwind
6918 2003-02-25 Michael Chastain <mec@shout.net>
6920 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
6921 to avoid uintptr_t definition problems.
6923 2003-02-25 David Carlton <carlton@math.stanford.edu>
6925 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
6926 (SYMBOL_LINKAGE_NAME): Ditto.
6927 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
6928 SYMBOL_LINKAGE_NAME.
6929 (struct general_symbol_info): Expand comment.
6930 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
6931 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
6932 (SYMBOL_MATCHES_REGEXP): Ditto.
6933 * symtab.c (symbol_natural_name): New function.
6934 * objfiles.h: Replace all uses of SYMBOL_NAME by
6935 DEPRECATED_SYMBOL_NAME.
6936 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
6937 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
6938 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
6939 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
6940 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
6941 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
6942 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
6943 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
6944 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
6945 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
6947 * ada-exp.y: Update copyright.
6948 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
6949 * cp-valprint.c: Ditto.
6951 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
6953 * infptrace.c (detach): Do not flag error if ptrace detach fails
6954 and errno is set to ESRCH.
6956 2003-02-24 Andrew Cagney <cagney@redhat.com>
6958 * infptrace.c (udot_info): Change type of udot_off to long. Use
6959 paddr when printing udot_off's value.
6961 2003-02-24 David Carlton <carlton@math.stanford.edu>
6963 * symtab.c (make_symbol_overload_list): Only read in partial
6964 symtabs containing a matching partial symbol.
6966 2003-02-24 David Carlton <carlton@math.stanford.edu>
6968 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
6969 do the comparison, not strcmp.
6970 * symfile.c (compare_psymbols): Ditto.
6971 * defs.h: Declare strcmp_iw_ordered.
6972 * utils.c (strcmp_iw_ordered): New function.
6974 2003-02-24 Jim Blandy <jimb@redhat.com>
6976 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
6977 support, shared libs): Remove my name from here, to better reflect
6980 2003-02-24 Kris Warkentin <kewarken@qnx.com>
6982 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
6983 (target_ops): Add to_have_continuable_watchpoint.
6984 * target.c (update_current_target): Add INHERIT line for
6985 to_have_continuable_watchpoint.
6986 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
6987 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
6988 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
6989 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
6991 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
6993 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
6996 2003-02-24 Kris Warkentin <kewarken@qnx.com>
6998 * solib.c (solib_open): Call target defined search function after
6999 failing with solib-search-path.
7000 * solist.h (target_so_ops): Add find_and_open_solib function hook and
7001 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
7003 2003-02-24 Kris Warkentin <kewarken@qnx.com>
7005 * MAINTAINERS: Add myself to Write After section.
7007 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
7009 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
7011 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
7013 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
7014 (m68hc11_add_reggroups): New function.
7015 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
7016 (m68hc11_gdbarch_init): Install the reggroups.
7017 (_initialize_m68hc11_tdep): Initialize them.
7019 2003-02-21 James E Wilson <wilson@tuliptree.org>
7021 * MAINTAINERS: Update my email address.
7023 2003-02-21 David Carlton <carlton@math.stanford.edu>
7025 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
7027 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
7029 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
7030 * symtab.h: Add opaque declarations of struct axs_value and
7032 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
7033 (struct location_funcs): New type.
7034 (struct symbol): Add "loc" to aux_value.
7035 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
7036 * dwarf2read.c: Include "dwarf2expr.h".
7037 (dwarf2_symbol_mark_computed): New function.
7038 (read_func_scope): Use it.
7039 (var_decode_location): New function.
7040 (new_symbol): Use it.
7041 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
7043 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
7044 (dwarf2expr_h, dwarf2loc_h): New variables.
7045 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
7046 (dwarf2expr.o, dwarf2loc.o): New rules.
7047 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
7048 * buildsym.c (finish_block): Handle LOC_COMPUTED and
7050 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
7051 * m2-exp.y (yylex): Likewise.
7052 * printcmd.c (address_info, print_frame_args): Likewise.
7053 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
7054 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
7055 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
7056 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
7057 * symtab.c (lookup_block_symbol): Likewise.
7059 2003-02-20 Adam Fedor <fedor@gnu.org>
7061 * symtab.h: Remove objc_specific struct
7062 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
7063 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
7064 Have language_objc use cplus_specific struct.
7066 2003-02-20 Tom Tromey <tromey@redhat.com>
7068 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
7069 TYPE_NAME, when printing a String value. PR java/1075.
7071 2003-02-20 Adam Fedor <fedor@gnu.org>
7073 * objc-lang.h (find_methods): Remove declaration.
7074 * objc-lang.c (find_methods): Make static.
7076 2003-02-20 Christopher Faylor <cgf@redhat.com>
7078 * win32-nat.c (get_image_name): Check return value from
7080 (child_xfer_memory): Ditto.
7082 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
7084 * configure.in (TARGET_SYSTEM_ROOT): Set default to
7085 ${exec_prefix}/${target_alias}/sys-root. Match explicit
7086 '${exec_prefix}' (in addition to the expansion thereof) as
7088 * configure: Rebuilt.
7090 2003-02-20 David Carlton <carlton@math.stanford.edu>
7092 * symtab.c (search_symbols): Revert the search_symbols part of my
7093 2002-12-23 patch. Add comment.
7095 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7097 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
7098 * dbxread.c (elfstab_build_psymtabs): Don't call
7099 install_minimal_symbols.
7100 (stabsect_build_psymtabs): Likewise.
7101 * elfread.c (elf_symfile_read): Call install_minimal_symbols
7103 * somread.c (som_symfile_read): Call install_minimal_symbols
7104 and do_cleanups earlier.
7105 * nlmread.c (nlm_symfile_read): Likewise.
7106 * mdebugread.c (elfmdebug_build_psymtabs): Call
7107 install_minimal_symbols and make appropriate cleanups.
7109 2003-02-20 Kevin Buettner <kevinb@redhat.com>
7111 * solib.c (reload_shared_libraries): New function.
7112 (_initialize_solib): Add callbacks for ``set solib-search-path''
7113 and ``set solib-absolute-prefix''.
7115 2003-02-20 David Carlton <carlton@math.stanford.edu>
7117 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
7119 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
7120 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
7121 * ada-typeprint.c (ada_typedef_print): Ditto.
7122 * ax-gdb.c (gen_var_ref): Ditto.
7123 * breakpoint.c (print_one_breakpoint): Ditto.
7124 * buildsym.c (finish_block): Ditto.
7125 * c-valprint.c (c_val_print): Ditto.
7126 * expprint.c (print_subexp): Ditto.
7127 * findvar.c (locate_var_value): Ditto.
7128 * infcmd.c (jump_command): Ditto.
7129 * linespec.c (decode_line_2, decode_compound): Ditto.
7130 * maint.c (maintenance_translate_address): Ditto.
7131 * objc-lang.c (compare_selectors, compare_classes): Ditto.
7132 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
7134 * p-valprint.c (pascal_val_print): Ditto.
7135 * stabsread.c (define_symbol): Ditto.
7136 * stack.c (print_frame, frame_info, print_block_frame_locals)
7137 (print_frame_arg_vars, return_command): Ditto.
7138 * symfile.c (compare_symbols, compare_psymbols): Ditto.
7139 * symmisc.c (print_symbol): Ditto.
7140 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
7141 (compare_search_syms, print_symbol_info, print_msymbol_info)
7142 (rbreak_command): Ditto.
7143 * tracepoint.c (tracepoints_info): Ditto.
7144 * typeprint.c (typedef_print): Ditto.
7145 * valops.c (value_of_variable, hand_function_call): Ditto.
7146 * cli/cli-cmds.c (edit_command, list_command): Ditto.
7147 * ada-typeprint.c: Update Copyright.
7148 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
7149 * tracepoint.c, cli/cli-cmds.c: Ditto.
7151 2003-02-20 Kevin Buettner <kevinb@redhat.com>
7153 * frame.c (generic_unwind_get_saved_register): Make non-static.
7154 * frame.h (generic_unwind_get_saved_register): Declare.
7155 * mips-tdep.c (read_next_frame_reg): Fetch register from
7156 current regcache when frame is NULL.
7157 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
7159 (mips_get_saved_register): Call generic_unwind_get_saved_register()
7160 instead of frame_register_unwind().
7162 2003-02-20 Andrew Cagney <ac131313@redhat.com>
7164 * remote-sim.c (gdbsim_insert_breakpoint)
7165 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
7168 2003-02-20 Andrew Cagney <ac131313@redhat.com>
7170 * remote.c (_initialize_remote): Add commands "set/show remote
7171 hardware-watchpoint-limit" and "set/show remote
7172 hardware-breakpoint-limit".
7173 (remote_hw_watchpoint_limit): Initialize to -1.
7174 (remote_hw_breakpoint_limit): Ditto.
7175 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
7177 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
7179 * coff-pe-read.c: New file - support reading of minimal symbols from a
7180 portable executable using the export table.
7181 * coff-pe-read.h: New file.
7182 * coffread.c: Include coff-pe-read.h.
7183 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
7184 debugging symbols found.
7185 * Makefile.in (SFILES): Add coff-pe-read.o.
7186 (coff_pe_read_h): Define.
7187 (COMMON_OBS): Add coff-pe-read.o.
7188 (coffread.o): Add coff_pe_read_h dependency.
7189 (coff-pe-read.o): New target.
7191 2003-02-19 David Carlton <carlton@math.stanford.edu>
7193 * Makefile.in (SFILES): Add block.c.
7195 (COMMON_OBS): Add block.o.
7197 (x86-64-tdep.o): Add $(block_h).
7198 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
7199 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
7200 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
7201 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
7202 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
7203 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
7204 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
7205 * value.h: Add opaque declaration for struct block.
7206 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
7207 * ada-lang.h: Ditto.
7208 * x86-64-tdep.c: #include "block.h"
7209 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
7210 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
7211 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
7212 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
7213 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
7214 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
7215 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
7216 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
7217 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
7218 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
7219 * symtab.c (block_function): Ditto.
7220 (contained_in): Ditto.
7221 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
7222 block.h. Add opaque declaration for struct block.
7223 * symtab.h: Move block_function and contained_in declarations to
7224 block.h. Add opaque declarations for struct block, struct
7226 (struct block): Move to block.h.
7227 (struct blockvector): Ditto.
7228 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
7229 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
7230 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
7231 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
7232 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
7234 * block.c: New file.
7235 * block.h: New file.
7237 2003-02-19 Theodore A. Roth <troth@openavr.org>
7239 * avr-tdep.c (avr_extract_return_value): Remove function.
7240 (avr_store_return_value): Remove function.
7241 (avr_extract_struct_value_address): Remove function.
7242 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
7244 2003-02-19 Andrew Cagney <ac131313@redhat.com>
7246 * rs6000-tdep.c: Include "gdb_assert.h".
7247 (registers_e500): Add "acc" and "spefscr".
7248 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
7249 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
7250 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
7252 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
7254 2003-02-18 Keith Seitz <keiths@redhat.com>
7256 * Makefile.in: Add gdbtk-interps.c.
7258 2003-02-18 Kevin Buettner <kevinb@redhat.com>
7260 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
7261 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
7263 2003-02-18 Andrew Cagney <cagney@redhat.com>
7265 * symtab.h (struct objfile): Add opaque declaration.
7267 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
7269 From Jim Ingham <jingham@apple.com>:
7270 * dbxread.c (process_one_symbol): Use last_function_start rather
7271 than function_start_offset to find the real beginning of the
7272 current function. The latter is just the text section offset on
7273 some systems, the former is always the real function start.
7275 2003-02-17 Andrew Cagney <cagney@redhat.com>
7277 * configure.in: Revert ${target} != ${host}.
7279 2003-02-17 Andrew Cagney <ac131313@redhat.com>
7281 * configure.in (Makefile): Use the test ${target} != ${host},
7282 instead of the absence of the "nm.h" file, to determine of the
7283 configuration non-native.
7284 * configure: Regenerate.
7286 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
7288 From Brian Ford <ford@vss.fsi.com>
7290 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
7291 conditionalize tui_active test.
7292 (lookup_cmd_1): Ditto.
7294 2003-02-14 Mark Kettenis <kettenis@gnu.org>
7296 * configure.in: Add check for _etext.
7297 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
7299 * config.in, configure: regenerated.
7301 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
7303 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
7305 2003-02-14 Andrew Cagney <ac131313@redhat.com>
7307 * main.c (tui_version): Delete variable.
7308 (captured_main): When --tui, set interpreter_p to "tui" instead of
7309 enabling tui_version.
7310 * printcmd.c (display_command) [TUI]: Test tui_active instead of
7312 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
7313 * cli/cli-cmds.c (disassemble_command): Ditto.
7314 * defs.h (tui_version): Delete declaration.
7315 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
7316 (tui-interp.o): Add rules.
7317 (SUBDIR_TUI_OBS): Add "tui-interp.o".
7319 2003-02-14 Christopher Faylor <cgf@redhat.com>
7321 * win32-nat.c (register_loaded_dll): Correctly set address range for
7324 2003-02-12 Jason Molenda (jmolenda@apple.com)
7326 * symmisc.c (print_objfile_statistics): Include information about
7327 the number of psymtabs and symtabs in each object file.
7329 2003-02-13 Keith R Seitz <keiths@redhat.com>
7331 * main.h (struct captured_main_args): Add interpreter_p.
7332 * main.c (captured_main): Initialize interpreter_p from context.
7333 * gdb.c (main): Set interpreter_p argument.
7334 * Makefile.in (gdb.o): Add dependency for interps.h.
7336 2003-02-12 Andrew Cagney <ac131313@redhat.com>
7338 * event-top.c (cli_command_loop): Delete declaration.
7339 (_initialize_event_loop): Delete function setting event_loop_hook.
7340 * event-top.h (cli_command_loop): Declare. Update copyright.
7341 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
7342 * interps.c (current_interp_command_loop): When event_loop_p, call
7345 2003-02-12 Andrew Cagney <ac131313@redhat.com>
7347 * interps.h (interp_command_loop_ftype): Change return type to
7350 2003-02-12 Michal Ludvig <mludvig@suse.cz>
7352 * x86-64-tdep.c (x86_64_extract_return_value)
7353 (x86_64_store_return_value): Use regcache instead of regbuf.
7354 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
7355 * x86-64-linux-nat.c (fill_gregset): Use regcache.
7357 2003-02-11 Andrew Cagney <ac131313@redhat.com>
7359 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
7360 * aclocal.m4: Regenerate.
7361 * configure: Regenerate.
7363 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
7364 TCL_LD_SEARCH_FLAGS.
7366 2003-02-10 Michal Ludvig <mludvig@suse.cz>
7368 * dwarf2cfi.c: Reindented.
7370 2003-02-09 Andrew Cagney <ac131313@redhat.com>
7372 * interps.c (clear_interpreter_hooks): Convert function definition
7375 2003-02-07 David Carlton <carlton@math.stanford.edu>
7377 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
7379 2003-02-07 Kevin Buettner <kevinb@redhat.com>
7381 * gdbtypes.h (struct main_type): Move ``length'' field from here...
7382 (struct type): ...to here.
7383 (TYPE_LENGTH): Adjust to reflect different location of ``length''
7385 * gdbtypes.c (make_qualified_type): Set length on newly created type.
7386 (replace_type): Set length on all type variants for a given type.
7388 2003-02-07 Andrew Cagney <ac131313@redhat.com>
7390 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
7392 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
7394 2003-02-06 Andrew Cagney <ac131313@redhat.com>
7396 * Makefile.in (symm-nat.o): Update dependencies.
7397 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
7398 (lynx-nat.o, ia64-linux-nat.): Ditto.
7399 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
7400 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
7401 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
7403 * Makefile.in (inflow_h): Define.
7404 (procfs.o, inflow.o, procfs.o): Update dependencies.
7405 * inftarg.c (child_stop): Delete extern declaration of
7406 inferior_process_group. Include "inflow.h".
7407 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
7408 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
7409 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
7410 (our_process_group, inferior_process_group): Extern declarations.
7412 * procfs.c: Include "gdb_assert.h".
7414 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
7415 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
7416 * jv-typeprint.c (java_type_print_base): Ditto.
7417 * typeprint.c (typedef_print): Eliminate STREQ.
7418 * cli/cli-script.c (define_command, define_command): Ditto.
7419 * main.c (captured_main): Ditto.
7420 * values.c (lookup_internalvar): Ditto.
7421 * utils.c (safe_strerror, parse_escape): Eliminate assignment
7422 within `if' conditional.
7423 * linespec.c (decode_line_2): Ditto.
7424 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
7425 (bfd_openw_with_cleanup): Ditto.
7427 2003-02-07 Mark Kettenis <kettenis@gnu.org>
7429 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
7430 legacy_extract_return_value and store_return_value to
7431 legacy_return_value.
7433 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
7435 * win32-nat.c (get_relocated_section_addrs): New function. Find
7436 section load addresses for symbol handling in relocated DLLs.
7437 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
7439 2003-02-05 Fred Fish <fnf@intrinsity.com>
7441 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
7443 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
7445 (angel_RDI_info): Ditto.
7446 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
7448 (threads_continue_all_with_signals): Ditto.
7450 2003-02-05 Jim Ingham <jingham@apple.com>
7451 Keith Seitz <keiths@redhat.com>
7452 Elena Zannoni <ezannoni@redhat.com>
7453 Andrew Cagney <ac131313@redhat.com>
7455 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
7456 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
7457 (SUBDIR_MI_OBS): Add "mi-interp.o".
7458 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
7459 (SFILES): Add "interps.c".
7460 (COMMON_OBS): Add "interps.o".
7461 (interps_h, mi_main_h): Define.
7462 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
7463 (mi-main.o, main.o, event-top.o): Update dependencies.
7464 * cli/cli-interp.c: New file.
7465 * interps.h, interps.c: New files.
7466 * top.c: (gdb_init): Don't install the default interpreter, handed
7468 * main.c: Include "interps.h".
7469 (interpreter_p): Note that it should malloc'ed.
7470 (captured_command_loop): Call current_interp_command_loop.
7471 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
7472 xfree and xstrdup when updating interpreter_p. Install the
7473 default interpreter. Add hack to stop mi1's copyright notice
7475 * event-top.h (gdb_setup_readline): Declare.
7476 (gdb_disable_readline): Declare.
7477 * event-top.c: Include "interps.h".
7478 (display_gdb_prompt): Call current_interp_display_prompt_p.
7479 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
7480 gdb_stdlog, and gdb_stdtarg.
7481 (_initialize_event_loop): Don't call gdb_setup_readline.
7482 * cli-out.c (cli_out_set_stream): New function.
7483 * cli-out.h (cli_out_set_stream): Declare.
7485 2003-02-06 Mark Kettenis <kettenis@gnu.org>
7487 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
7488 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
7489 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
7490 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
7491 config/i386/i386v42mp.mt: Removed.
7493 2003-02-05 Mark Kettenis <kettenis@gnu.org>
7495 * configure.tgt (*-*-solaris*): Set gdb_osabi to
7498 2003-02-05 Michael Chastain <mec@shout.net>
7500 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
7501 2.12.1 and earlier versions.
7503 2003-02-05 Andrew Cagney <ac131313@redhat.com>
7505 Remove orphaned hosts, targets and files.
7506 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
7507 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
7508 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
7509 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
7510 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
7511 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
7512 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
7513 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
7514 * config/sparc/tm-sp64sim.h: Delete.
7515 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
7517 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
7518 mips*-dec-mach3* targets.
7520 2003-02-04 Michael Chastain <mec@shout.net>
7522 * NEWS: Fix typo: sepcifying -> specifying.
7524 2003-02-04 Michael Chastain <mec@shout.net>
7526 * dwarfread.c: Add documentation on the state of dwarf-1,
7527 looking towards obsoletion.
7529 2003-02-03 Michael Chastain <mec@shout.net>
7531 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
7532 gdb/testsuite/gdb.c++/pr-1023.exp.
7534 2003-02-04 Andrew Cagney <ac131313@redhat.com>
7536 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
7537 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
7539 * utils.c (init_page_info): Delete reference to MPW in comments.
7540 * main.c (captured_main): Delete #ifdef MPW.
7542 2003-02-04 Andrew Cagney <ac131313@redhat.com>
7544 * NEWS: Note that the m32r-*-elf* is obsolete.
7545 * monitor.c (monitor_expect): Obsolete reference to m32r.
7546 * configure.tgt: Mark m32r-*-elf* as obsolete.
7547 * MAINTAINERS: Mark m32k as obsolete.
7548 * m32r-rom.c: Obsolete file.
7549 * config/m32r/m32r.mt: Obsolete file.
7550 * config/m32r/tm-m32r.h: Obsolete file.
7551 * m32r-stub.c: Obsolete file.
7552 * m32r-tdep.c: Obsolete file.
7554 2003-02-04 Andrew Cagney <ac131313@redhat.com>
7556 * NEWS: Mention that the z8k-zilog-none is obsolete.
7557 * MAINTAINERS: Mark z8k as obsolete.
7558 * configure.tgt: Obsolete the z8k-*-coff* target.
7559 * config/z8k/z8k.mt: Obsolete file.
7560 * config/z8k/tm-z8k.h: Obsolete file.
7561 * z8k-tdep.c: Obsolete file.
7563 2003-02-04 Andrew Cagney <ac131313@redhat.com>
7565 * NEWS: Mention that the mn10200-elf is obsolete.
7566 * configure.tgt: Obsolete mn10200-*-* target.
7567 * breakpoint.c (update_breakpoints_after_exec): Update comment to
7568 mention that the mn10200 is obsolete.
7569 * breakpoint.h: Ditto.
7570 * MAINTAINERS: Mark the mn10200-elf as obsolete.
7571 * config/mn10200/mn10200.mt: Obsolete file.
7572 * config/mn10200/tm-mn10200.h: Obsolete file.
7573 * mn10200-tdep.c: Obsolete file.
7575 2003-02-04 Andrew Cagney <ac131313@redhat.com>
7577 * MAINTAINERS: Mark h8500 as obsolete.
7578 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
7579 * findvar.c (value_from_register): Ditto.
7580 * h8500-tdep.c: Mark file as obsolete.
7581 * config/h8500/h8500.mt: Ditto.
7582 * config/h8500/tm-h8500.h: Ditto.
7583 * NEWS: Mention that h8500 is obsolete.
7585 2003-02-04 David Carlton <carlton@math.stanford.edu>
7587 * objfiles.c (allocate_objfile): Always set name. Add comment at
7589 * jv-lang.c (get_dynamics_objfile): Add comment.
7591 2003-02-04 David Carlton <carlton@math.stanford.edu>
7593 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
7594 * printcmd.c (build_address_symbolic): Replace uses of
7595 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
7596 SYMBOL_NAME, and asm_demangle.
7599 2003-02-04 David Carlton <carlton@math.stanford.edu>
7601 * linespec.c (decode_compound): Extract code into
7603 (lookup_prefix_sym): New function.
7605 2003-02-04 David Carlton <carlton@math.stanford.edu>
7607 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
7608 FLOAT_COERCION_BADNESS.
7609 * gdbtypes.c (rank_one_type): Replace all uses of
7610 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
7612 2003-02-04 Jim Blandy <jimb@redhat.com>
7614 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
7615 section, let dwarf_macinfo_section point to it, not
7618 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
7620 Pointed out by Anton Blanchard <anton@samba.org>.
7621 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
7622 (ppc_linux_at_sigtramp_return_path): Use it.
7624 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
7626 * defs.h (streq): Add prototype.
7627 * utils.c (streq): New function.
7629 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
7630 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
7631 * mdebugread.c (new_symbol): Likewise.
7632 * stabsread.c (define_symbol): Likewise.
7633 * coffread.c (process_coff_symbol): Likewise.
7634 * dwarfread.c (new_symbol): Likewise.
7636 * minsyms.c (prim_record_minimal_symbol_and_info): Use
7637 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
7639 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
7640 SYMBOL_INIT_DEMANGLED_NAME.
7641 * objfiles.c: Include "hashtab.h".
7642 (allocate_objfile): Call htab_set_functions_ex for the
7643 demangled_names_hash.
7644 (free_objfile): Call htab_delete for the demangled_names_hash.
7645 * objfiles.h (struct htab): Add declaration.
7646 (struct objfile): Add demangled_names_hash.
7647 * symfile.c: Include "hashtab.h".
7648 (reread_symbols): Call htab_delete for the demangled_names_hash.
7649 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
7650 SYMBOL_NAME in the bcache.
7651 * symtab.c: Include "hashtab.h". Update comments.
7652 (create_demangled_names_hash, symbol_set_names): New functions.
7653 (symbol_find_demangled_name): New function, broken out from
7654 symbol_init_demangled_names.
7655 (symbol_init_demangled_names): Use it.
7656 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
7657 (SYMBOL_SET_NAMES): New macro.
7658 (symbol_set_names): Add prototype.
7660 2003-02-03 Jim Blandy <jimb@redhat.com>
7662 Use a single, consistent representation for an empty minimal
7663 symbol table in an objfile.
7664 * objfiles.c (terminate_minimal_symbol_table): New function.
7665 (allocate_objfile): Call it.
7666 * objfiles.h (terminate_minimal_symbol_table): New declaration.
7667 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
7669 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
7670 objfile has minimal symbols, compare minimal_symbol_count to zero,
7671 instead of comparing msymbols with NULL.
7672 * objfiles.c (have_minimal_symbols): Same.
7673 * solib-sunos.c (solib_add_common_symbols): Call
7674 terminate_minimal_symbol_table.
7675 * symfile.c (reread_symbols): Same.
7677 2003-02-03 Kevin Buettner <kevinb@redhat.com>
7679 * s390-tdep.c (s390_address_class_type_flags)
7680 (s390_address_class_type_flags_to_name)
7681 (s390_address_class_name_to_type_flags): New functions.
7682 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
7683 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
7685 2003-02-03 Michael Snyder <msnyder@redhat.com>
7687 * arm-tdep.c: Fix spell-o in comment.
7689 2003-02-03 Michal Ludvig <mludvig@suse.cz>
7691 * dwarf2cfi.c (pointer_encoding): Added new parameter.
7692 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
7693 error messages to contain BFD filename.
7695 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
7697 Fix PR gdb/742 gdb/743 gdb/877
7698 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
7699 (do_mixed_source_and_assembly): Use
7700 make_cleanup_ui_out_tuple_begin_end and
7701 make_cleanup_ui_out_tuple_begin_end.
7702 (do_mixed_source_and_assembly): Ditto.
7703 * thread.c (do_captured_list_thread_ids): Ditto.
7704 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
7705 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
7706 ui_out_tuple_end): Delete prototypes.
7707 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
7708 ui_out_list_end, ui_out_tuple_end): Delete.
7710 From Kevin Buettner <kevinb@redhat.com>:
7711 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
7712 * ui-out.c (make_cleanup_ui_out_table_begin_end)
7713 (do_cleanup_table_end): New functions.
7714 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
7715 Use cleanups to invoke_ui_out_tuple_end().
7716 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
7717 * cli/cli-setshow.c (cmd_show_list): Use
7718 make_cleanup_ui_out_tuple_begin_end.
7720 2003-02-02 Andrew Cagney <ac131313@redhat.com>
7722 * frame.c (frame_unwind_register): New function.
7723 (frame_unwind_unsigned_register): Use.
7724 (frame_unwind_signed_register): Use.
7725 (frame_read_register): New function.
7726 * frame.h (frame_unwind_register): Declare.
7727 (frame_read_register): Declare.
7729 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
7730 and frame_unwind_register instead of read_memory, write_register
7731 and deprecated_write_register_bytes.
7733 2003-02-02 Andrew Cagney <ac131313@redhat.com>
7735 * frame.h: Note that namelen can be negative.
7736 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
7739 * NEWS: Mention that the d10v's `regs' command is deprecated.
7740 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
7741 (d10v_print_registers_info): New function.
7742 (show_regs): Call d10v_print_registers_info.
7743 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
7745 2003-02-02 Mark Kettenis <kettenis@gnu.org>
7747 * stack.c (print_frame_info): Restore call to annotate_frame_begin
7748 lost in the previous patch.
7750 2003-02-01 Andrew Cagney <ac131313@redhat.com>
7752 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
7753 * stack.c (print_frame_info_base): Output complete FRAME tuple
7754 for synthesized frames.
7756 2003-02-02 Andrew Cagney <ac131313@redhat.com>
7758 * mips-nat.c (zerobuf): Delete.
7759 (fetch_inferior_registers): Alloc local zerobuf.
7760 (fetch_core_registers): Alloc local zerobuf.
7761 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
7762 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
7763 * thread-db.c (thread_db_store_registers): Ditto.
7764 * sh-tdep.c (sh_do_register): Ditto.
7765 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
7766 * remote-sim.c (gdbsim_store_register): Ditto.
7767 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7768 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7769 * monitor.c (monitor_supply_register): Ditto.
7770 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
7771 * mips-nat.c (fetch_inferior_registers): Ditto.
7772 * m68klinux-nat.c (fetch_register): Ditto.
7773 * lynx-nat.c (fetch_inferior_registers): Ditto.
7774 (fetch_inferior_registers): Ditto.
7775 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
7776 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7777 (hpux_thread_store_registers): Ditto.
7778 * hppah-nat.c (fetch_register): Ditto.
7779 * hppab-nat.c (fetch_register): Ditto.
7780 * hppa-tdep.c (pa_register_look_aside): Ditto.
7781 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
7782 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
7784 2003-02-01 Andrew Cagney <ac131313@redhat.com>
7786 * gdbarch.sh: Explictly specify all method levels. When a
7787 variable with an empty level, provide a non-multi-arch default.
7788 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
7789 * gdbarch.h: Re-generate.
7790 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
7791 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
7793 2003-02-01 Andrew Cagney <ac131313@redhat.com>
7795 * defs.h (host_pointer_to_address): Delete declaration.
7796 (address_to_host_pointer): Delete declaration.
7797 * utils.c (host_pointer_to_address): Delete function.
7798 (address_to_host_pointer): Delete function.
7799 * procfs.c (procfs_address_to_host_pointer): New function.
7800 * procfs.c (proc_set_watchpoint): Use.
7801 (procfs_can_use_hw_breakpoint): Update comments.
7802 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
7803 (som_solib_add): Use.
7804 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
7805 * hppa-tdep.c (unwind_command): Use.
7807 2003-02-01 Andrew Cagney <ac131313@redhat.com>
7809 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
7812 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
7813 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
7814 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
7815 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
7816 (define_symbol): Update.
7817 * symfile.c (generic_load): Remove references to nindy.
7818 * symtab.c: Remove references to nindy.
7820 2003-02-01 Andrew Cagney <ac131313@redhat.com>
7822 * infcmd.c (print_float_info): Delete code conditional on
7824 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
7825 * config/m68k/nm-apollo68b.h: Ditto.
7826 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
7827 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
7828 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
7830 2003-02-01 Mark Kettenis <kettenis@gnu.org>
7832 * config/i386/tm-i386os9k.h: Removed.
7834 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
7835 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
7836 they're identical to i[3456]86-*-sysv* now.
7837 * config/i386/i386v32.mh: Removed.
7838 * config/i386/xm-i386v32.h: Removed.
7839 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
7841 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
7843 * config/i386/i386dgux.mh: Removed.
7844 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
7846 * configure.in: Fix typo.
7847 * configure: Regenerated.
7849 2003-01-31 David Carlton <carlton@math.stanford.edu>
7851 * dwarf2read.c (dwarf2_locate_sections): Set
7852 dwarf_ranges_section.
7854 2003-01-31 Andrew Cagney <ac131313@redhat.com>
7856 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
7857 * utils.c: Update comments documenting legitimate uses of PTR.
7859 * utils.c: Re-indent.
7861 * config/djgpp/fnchange.lst: Delete nindy files.
7862 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
7863 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
7864 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
7865 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
7866 * nindy-share/README, nindy-share/Onindy.c: Delete files.
7867 * nindy-tdep.c, nindy-share/Makefile: Delete files.
7868 * Makefile.in (init.c): Remove nindy references.
7869 (saber_gdb): Delete rule.
7870 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
7871 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
7873 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
7874 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
7875 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
7876 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
7878 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
7879 * saber.suppress: Delete file.
7881 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
7883 * dbxread.c (stabs_data): New static variable.
7884 (fill_symbuf): Support an in-memory buffer for stabs data.
7885 (stabs_seek): New function.
7886 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
7887 (read_ofile_symtab): Use stabs_seek.
7888 (elfstab_build_psymtabs): Take an asection* instead of
7889 an offset and size. Relocate the stabs data if necessary.
7890 Save the section* for dbx_psymtab_to_symtab.
7891 * dwarf2read.c: Add section variables for each debug section.
7892 (dwarf2_locate_sections): Fill them in.
7893 (dwarf2_read_section): Take an asection* argument.
7894 Relocate the section contents if necessary.
7895 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
7896 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
7897 it to dwarf2_read_section.
7898 (dwarf2_build_frame_info): Update callers.
7899 * elfread.c (elf_symfile_read): Update call to
7900 elfstab_build_psymtabs.
7901 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
7902 (DBX_STAB_SECTION): New macro.
7903 * stabsread.h (elfstab_build_psymtabs): Update prototype.
7904 * symfile.c (symfile_dummy_outputs): New function.
7905 (symfile_relocate_debug_section): New function.
7906 * symfile.h (symfile_relocate_debug_section): Add prototype.
7908 2003-01-31 Richard Henderson <rth@redhat.com>
7910 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
7911 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
7912 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
7913 * alpha-tdep.c (alpha_register_name): Add "unique".
7914 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
7915 (ALPHA_UNIQUE_REGNUM): New.
7916 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
7918 2003-01-31 Andrew Cagney <ac131313@redhat.com>
7920 * README: Remove reference to Ericsson 1800 monitor.
7921 * Makefile.in (remote-es.o): Delete rule.
7922 (ALLDEPFILES): Delete remote-es.c.
7923 * remote-es.c: Delete file.
7924 * config/m68k/es1800.mt: Delete file.
7925 * config/djgpp/fnchange.lst: Update.
7926 * configure.tgt: Delete m68*-ericsson-* target.
7928 2003-01-31 Adam Fedor <fedor@gnu.org>
7930 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
7931 Remove duplicate/shadowing variable of same name.
7933 2003-01-30 Jim Blandy <jimb@redhat.com>
7935 * symfile.c (find_separate_debug_file): Assert that the objfile's
7936 directory name we compute ends with a slash, and then assume that
7937 that's so everywhere we use it.
7939 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
7941 * valops.c (value_assign): Flush frame cache after stores to memory
7944 2003-01-30 Andrew Cagney <ac131313@redhat.com>
7946 * Makefile.in (mon960-rom.o): Delete rule.
7947 * mon960-rom.c: Delete file.
7949 2003-01-30 Andrew Cagney <ac131313@redhat.com>
7951 * d10v-tdep.c: Include "frame-unwind.h".
7952 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
7954 (next_addr, uses_frame): Delete.
7955 (struct d10v_unwind_cache): Define.
7956 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
7957 Use info instead of next_addr and uses_frame globals.
7958 (d10v_frame_init_saved_regs): Delete function.
7959 (d10v_init_extra_frame_info): Delete function.
7960 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
7961 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
7962 init_frame_pc or frame_saved_pc.
7963 (d10v_pop_frame): Delete function.
7964 (do_d10v_pop_frame): Delete function.
7965 (d10v_frame_chain): Delete function.
7966 (d10v_frame_chain_valid): Delete function.
7967 (d10v_frame_pc_unwind): New function.
7968 (d10v_frame_id_unwind): New function.
7969 (saved_regs_unwinder): New function.
7970 (d10v_frame_register_unwind): New function.
7971 (d10v_frame_pop): New function.
7972 (d10v_frame_unwind): New variable.
7973 (d10v_frame_p): New function.
7974 (d10v_frame_saved_pc): Delete function.
7975 * Makefile.in (d10v-tdep.o): Update dependencies.
7977 2003-01-30 J. Brobecker <brobecker@gnat.com>
7979 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
7980 causing some regressions due to a change in the default value
7983 2003-01-29 Richard Henderson <rth@redhat.com>
7984 Elena Zannoni <ezannoni@redhat.com>
7985 Daniel Jacobowitz <drow@mvista.com>
7988 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
7990 (RANGES_SECTION): New.
7991 (dwarf_ranges_buffer): New variable.
7992 (struct comp_unit_head): Add member "die".
7993 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
7994 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
7995 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
7996 (dwarf2_locate_sections): Likewise.
7997 (dwarf2_build_psymtabs): Read .debug_ranges.
7998 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
7999 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
8000 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
8001 Look for DW_AT_ranges and return the bounding box.
8003 2003-01-29 Brian Ford <ford@vss.fsi.com>
8005 * win32-nat.c (cygwin_pid): Removed as unused.
8006 (child_attach): Try fall back to Cygwin pid.
8008 2003-01-29 Jim Blandy <jimb@redhat.com>
8010 * objfiles.h (struct objfile): Doc fix.
8012 2003-01-29 Andrew Cagney <ac131313@redhat.com>
8014 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
8015 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
8016 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
8017 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
8018 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
8019 (FRAME_SAVED_PC): Change to a function with predicate.
8020 * gdbarch.h, gdbarch.c: Re-generate.
8022 2003-01-28 Andrew Cagney <ac131313@redhat.com>
8024 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
8026 * complaints.c (complain): Delete function.
8027 * complaints.h (struct deprecated_complaint): Delete definition.
8028 (complain): Delete declaration.
8030 2003-01-28 Kevin Buettner <kevinb@redhat.com>
8032 * mips-tdep.c (mips_init_extra_frame_info): Return early for
8035 2003-01-27 Andrew Cagney <ac131313@redhat.com>
8037 * sentinel-frame.h, sentinel-frame.c: New files.
8038 * Makefile.in (frame.o): Update dependencies.
8039 (SFILES): Add sentinel-frame.c.
8040 (sentinel_frame_h): Define.
8041 (COMMON_OBS): Add sentinel-frame.o.
8042 (sentinel-frame.o): Specify dependencies.
8043 * frame.c: Include "sentinel-frame.h".
8044 (frame_register_unwind): Rewrite assuming that there is always a a
8046 (frame_register, generic_unwind_get_saved_register): Ditto.
8047 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
8048 (create_sentinel_frame, unwind_to_current_frame): New functions.
8049 (get_current_frame): Rewrite using create_sentinel_frame and
8050 unwind_to_current_frame. When possible, always create a frame.
8051 (create_new_frame): Set next to the sentinel frame.
8052 (get_next_frame): Rewrite. Don't go below the level 0 frame.
8053 (deprecated_update_frame_pc_hack): Update the next frame's PC and
8054 ID cache when necessary.
8055 (frame_saved_regs_id_unwind): Use frame_relative_level.
8056 (deprecated_generic_get_saved_register): Use frame_relative_level,
8057 get_frame_saved_regs, get_frame_pc, get_frame_base and
8059 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
8062 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
8064 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
8066 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
8068 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
8069 (maintenance_set_profile_cmd): Use error () instead of warning ().
8071 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
8073 * configure.in: Check that -pg works if using --enable-profiling.
8074 Check for monstartup and _mcleanup regardless of --enable-profiling.
8075 * maint.c: Check for monstartup and _mcleanup before using them.
8076 * config.in: Regenerated.
8077 * configure: Regenerated.
8079 2003-01-24 Nick Clifton <nickc@redhat.com>
8083 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
8085 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
8086 (sh2e_show_regs): New.
8087 (sh_gdbarch_init): Handle bfd_mach_sh2e.
8088 * config/sh/tm-sh.h: Added sh2e to comments.
8090 2003-01-23 Jim Blandy <jimb@redhat.com>
8092 * symfile.c (syms_from_objfile): Don't print the "(no debugging
8093 symbols found)" message here; we haven't checked for a separate
8094 debug info file yet, so we don't know yet.
8095 (symbol_file_add_with_addrs_or_offsets): Print it here, after
8096 we've looked everywhere. Also, there's no need to print a special
8097 message when we're loading the separate debug info file: the one
8098 symbol_file_add prints is fine.
8100 2003-01-23 Alexander Larsson <alexl@redhat.com>
8101 Jim Blandy <jimb@redhat.com>
8103 Add support for executables whose debug info has been separated
8104 out into a separate file, leaving only a link behind.
8105 * objfiles.h (struct objfile): New fields: separate_debug_objfile
8106 and separate_debug_objfile_backlink.
8107 (put_objfile_before): New declaration.
8108 * symfile.c: #include "filenames.h".
8109 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
8110 debug info in a separate file, read that, too. Save the addrs
8111 argument, so we can use it again to read the separated debug info;
8112 syms_from_objfile modifies the table we pass it.
8113 (reread_symbols): After re-reading an objfile, call
8114 reread_separate_symbols to refresh its separate debug info
8115 objfile, if it has one.
8116 (reread_separate_symbols, find_separate_debug_file,
8117 get_debug_link_info, separate_debug_file_exists): New functions.
8118 (debug_file_directory): New global var.
8119 (_initialize_symfile): Initialize debug_file_directory, and
8120 provide the new `set debug-file-directory' command to let the user
8122 * objfiles.c (free_objfile): If this objfile has its debug info in
8123 a separate objfile, free that one too. If this is itself a
8124 separate debug info objfile, clear our parent's backlink.
8125 (put_objfile_before): New function.
8126 * utils.c (gnu_debuglink_crc32): New function.
8127 * defs.h (gnu_debuglink_crc32): New declaration.
8128 * Makefile.in (symfile.o): Note dependency on "filenames.h".
8129 * configure.in: Handle --with-separate-debug-dir config option.
8130 * acinclude.m4 (AC_DEFINE_DIR): New macro.
8131 * acconfig.h (DEBUGDIR): New macro.
8132 * configure, aclocal.m4, config.in: Regenerated.
8134 2003-01-22 Jim Blandy <jimb@redhat.com>
8136 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
8137 like the old symbol_file_add, but taking new arguments: you can
8138 now pass in either a `struct section_addr_info' list to say where
8139 each section is loaded, or a `struct section_offsets' table. Pass
8140 these new arguments through to syms_from_objfile as appropriate.
8141 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
8142 with the appropriate quiescent values for the new arguments.
8144 * symfile.c: #include "gdb_assert.h".
8145 (syms_from_objfile): Add the ability to pass in a section offset
8146 table directly, as an alternative to the section_addr_info table.
8147 Document arguments better.
8148 (symbol_file_add): Pass extra arguments to syms_from_objfile.
8149 * symfile.h (syms_from_objfile): Update declaration.
8150 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
8152 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
8154 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
8156 Original patch by Tom Tromey <tromey@cygnus.com> and
8157 Jason Molenda <jmolenda@apple.com>.
8158 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
8159 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
8160 * NEWS: Mention profiling.
8161 * configure.in (--enable-gdbtk): Fix typo.
8162 (--enable-profiling): New. Set PROFILE_CFLAGS.
8163 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
8165 (profiling_state): New variable.
8166 (mcleanup_wrapper): New function.
8167 (_initialize_maint): Remove NOTYET, fix call to
8168 add_setshow_boolean_cmd for "maint set profile".
8169 * configure: Regenerated.
8171 2003-01-21 Martin M. Hunt <hunt@redhat.com>
8173 * Makefile.in (install-gdbtk): Install PNG images too.
8175 2003-01-21 Andrew Cagney <ac131313@redhat.com>
8177 * exec.c (text_start): Delete global variable.
8178 (exec_file_attach): Make text_start local to the function.
8179 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
8180 * valops.c (hand_function_call): Delete code that handles
8181 BEFORE_TEXT_END and AFTER_TEXT_END.
8182 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
8183 of CALL_DUMMY_LOCATION.
8184 * gdbarch.c: Regenerate.
8185 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
8186 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
8187 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
8188 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
8189 (text_end): Delete extern declaration.
8191 2003-01-21 Andrew Cagney <ac131313@redhat.com>
8193 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
8194 * blockframe.c (backtrace_below_main): Move to "frame.c".
8195 (frame_chain_valid): Delete check for backtrace_below_main.
8196 (_initialize_blockframe): Delete initialization, move ``set
8197 backtrace-below-main'' command to "frame.c".
8198 (do_flush_frames_sfunc): Delete function.
8199 * frame.c: Include "command.h" and "gdbcmd.h".
8200 (frame_type_from_pc): New function.
8201 (create_new_frame): Use frame_type_from_pc.
8202 (legacy_get_prev_frame): New function.
8203 (get_prev_frame): Rewrite. When an old style frame, call
8204 legacy_get_prev_frame. Otherwize, unwind the PC first.
8205 (_initialize_frame): Add ``set backtrace-below-main'' command.
8206 * Makefile.in (frame.o): Update dependencies.
8208 2003-01-19 Andrew Cagney <ac131313@redhat.com>
8210 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
8211 DEPRECATED_REGISTERS_INFO.
8213 2003-01-19 Andrew Cagney <ac131313@redhat.com>
8215 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
8216 Maintainers'. Update `Various Maintainers'.
8218 2003-01-19 Andrew Cagney <ac131313@redhat.com>
8220 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
8221 * gdbarch.sh (POP_FRAME): Change to function with predicate.
8222 Suppress actual parameters when `-'.
8223 * gdbarch.h, gdbarch.c: Regenerate.
8225 2003-01-19 Andrew Cagney <ac131313@redhat.com>
8227 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
8228 code handling dummy frames.
8230 2003-01-19 Andrew Cagney <ac131313@redhat.com>
8232 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
8233 (struct frame_unwind): Add field pop.
8234 * frame.h (frame_pop): Declare.
8235 * frame.c (frame_saved_regs_pop): New function.
8236 (trad_frame_unwinder): Add frame_saved_regs_pop.
8237 (frame_pop): New function.
8238 * dummy-frame.c (dummy_frame_pop): New function.
8239 (discard_innermost_dummy): New function.
8240 (generic_pop_dummy_frame): Use discard_innermost_dummy.
8241 (dummy_frame_unwind): Add dummy_frame_pop.
8242 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
8243 * valops.c (hand_function_call): Ditto.
8244 * stack.c (return_command): Ditto.
8246 2003-01-18 Andrew Cagney <ac131313@redhat.com>
8248 * cris-tdep.c: Fix function declaration indentation.
8249 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
8250 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
8251 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
8252 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
8253 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
8254 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
8256 2003-01-18 Michael Chastain <mec@shout.net>
8258 * README (Unpacking and Installation -- quick overview):
8259 Warn against ".../gdb-5.3/gdb/configure".
8261 2003-01-18 Andrew Cagney <ac131313@redhat.com>
8263 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
8264 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
8265 (struct frame_unwind): Declare opaque.
8266 (dummy_frame_p): Declare function.
8267 * dummy-frame.c (dummy_frame_id_unwind): Make static.
8268 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
8269 * dummy-frame.c: Include "frame-unwind.h".
8270 (dummy_frame_p): New function.
8271 (dummy_frame_unwind): New variable.
8272 * frame.c: Include "frame-unwind.h".
8273 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
8274 to use the new unwind field.
8275 (set_unwind_by_pc): Delete function.
8276 (create_new_frame, get_prev_frame): Set unwind field using
8277 frame_unwind_find_by_pc.
8278 (trad_frame_unwind, trad_frame_unwinder): New variables.
8279 * frame.h (trad_frame_unwind): Declare variable.
8280 (frame_id_unwind_ftype): Delete declaration.
8281 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
8282 (struct frame_unwind): Declare opaque.
8283 (struct frame_info): Replace the fields id_unwind, pc_unwind and
8284 register_unwind with a single unwind pointer.
8285 * frame-unwind.h, frame-unwind.c: New files.
8286 * Makefile.in (SFILES): Add frame-unwind.c.
8287 (frame_unwind_h): Define.
8288 (COMMON_OBS): Add frame-unwind.o.
8289 (frame-unwind.o): Specify dependencies.
8290 (frame.o, dummy-frame.o): Update dependencies.
8292 2003-01-18 Andrew Cagney <ac131313@redhat.com>
8294 * ada-valprint.c: Eliminate PTR.
8295 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
8296 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
8297 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
8298 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
8299 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
8300 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
8301 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8303 2003-01-17 Andrew Cagney <ac131313@redhat.com>
8305 * main.c (captured_main): Don't use PTR.
8306 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
8307 * gdbtypes.c (lookup_primitive_typename): Ditto.
8308 (lookup_struct_elt_type): Ditto.
8309 * f-valprint.c (info_common_command): Ditto.
8310 (list_all_visible_commons): Ditto.
8311 * jv-typeprint.c (java_type_print_base): Ditto.
8313 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
8314 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
8315 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
8316 i386-interix-nat.c and i386-interix-tdep.c. Rename
8317 m68klinux-nat.c and m68klinux-tdep.c. Rename
8318 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
8319 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
8320 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
8321 * main.c (captured_main): Use xfree, not free.
8323 2003-01-16 Andrew Cagney <ac131313@redhat.com>
8325 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
8326 ID back using a parameter.
8327 * frame.c (frame_id_unwind): Update call.
8328 (frame_saved_regs_id_unwind): Update.
8329 * dummy-frame.c (dummy_frame_id_unwind): Update function.
8330 * dummy-frame.h (struct frame_id): Add opaque declaration.
8331 (dummy_frame_id_unwind): Update declaration.
8333 2003-01-15 Andrew Cagney <ac131313@redhat.com>
8335 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
8337 2003-01-15 Stephen P. Smith <ischis2@cox.net>
8339 * MAINTAINERS (Stephen P. Smith): Updated email address.
8341 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
8344 * breakpoint.c (until_break_command): Add new argument. Use it to
8345 decide whether to stop only at the current frame or not.
8346 * breakpoint.h (until_break_command): Update prototype.
8347 * infcmd.c (until_command): Add new argument to until_break_command
8349 (advance_command): New function.
8350 (_initialize_infcmd): Update help string for 'until' command.
8351 Add new 'advance' command.
8353 2003-01-14 David Carlton <carlton@math.stanford.edu>
8355 * linespec.c (decode_line_1): Normalize comments.
8357 (locate_first_half): Ditto.
8358 (decode_compound): Ditto.
8359 (symtab_from_filename): Ditto.
8360 (decode_all_digits): Ditto.
8361 (decode_dollar): Ditto.
8362 (find_methods): Ditto.
8363 (find_toplevel_char): Ditto.
8365 2003-01-13 Andrew Cagney <ac131313@redhat.com>
8367 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
8368 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
8369 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
8370 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
8371 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
8372 * language.c, language.h, m32r-tdep.c: Update copyright.
8373 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
8374 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
8375 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
8376 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
8377 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
8378 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
8380 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
8382 * stabsread.h (process_later, resolve_cfront_continuation):
8384 Update copyright years.
8385 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
8386 Update copyright year.
8387 * dbxread.c(struct cont_elem): Obsolete.
8388 (process_later, process_now): Obsolete functions.
8389 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
8390 Update copyright year.
8391 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
8392 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
8393 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
8394 (parse_partial_symbols): Obsolete cfront support.
8396 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
8398 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
8399 read_cfront_baseclasses, read_cfront_member_functions,
8400 resolve_cfront_continuation,read_cfront_static_fields,
8401 copy_cfront_struct_fields): Obsolete functions.
8402 (define_symbol, read_one_struct_field): Obsolete cfront support.
8403 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
8404 Update Copyright year.
8406 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
8408 * stack.c (print_frame_info, print_stack_frame_base_stub,
8409 print_stack_frame_base, show_and_print_stack_frame_stub,
8410 show_and_print_stack_frame, print_only_stack_frame_stub,
8411 print_only_stack_frame): Delete functions.
8412 (print_stack_frame_stub): Call print_frame_info instead of
8413 print_frame_info_base.
8414 (print_frame_info_base): Rename to print_frame_info.
8415 (backtrace_command_1): Call print_frame_info, instead of
8416 print_frame_info_base.
8417 (current_frame_command): Call print_stack_frame, instead of
8418 print_only_stack_frame.
8419 (frame_command): Call print_stack_frame, instead of
8420 show_and_print_stack_frame.
8421 (up_command): Ditto.
8422 (down_command): Ditto.
8423 * frame.h (print_only_stack_frame): Delete prototype.
8424 * infrun.c (normal_stop): Call print_stack_frame, instead of
8425 show_and_print_stack_frame.
8426 * thread.c (info_threads_command): Call print_stack_frame, instead
8427 of print_only_stack_frame.
8429 2003-01-13 Andrew Cagney <ac131313@redhat.com>
8431 * README (Graphical interface to GDB): Update URL. Point at
8434 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
8437 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8439 * symtab.c (find_pc_sect_line): Don't consider end-of-function
8442 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8444 * thread-db.c (attach_thread): Prototype.
8445 (struct private_thread_info): Remove lwpid. Add thread handle (th),
8446 thread information (ti), and valid flags (th_valid, ti_valid).
8447 (attach_thread): Move target_pid_to_str call to after the thread
8448 is added to GDB's list. Initialize the cache.
8449 (thread_get_info_callback, thread_db_map_id2thr)
8450 (thread_db_get_info): New functions.
8451 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
8452 (thread_db_store_registers, thread_db_thread_alive)
8453 (thread_db_get_thread_local_address): Use them.
8454 (thread_db_pid_to_str): Likewise. Return "Missing" instead
8455 of calling error() for threads in unknown state.
8457 (clear_lwpid_callback): New function.
8458 (thread_db_resume): Use it to clear the cache.
8460 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8462 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
8463 (resume_callback): Remove dead code.
8465 2003-01-13 Andrew Cagney <ac131313@redhat.com>
8467 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
8469 * gdbarch.h, gdbarch.c: Regenerate.
8470 * stack.c (frame_info): Only initialize the saved registers when
8471 FRAME_INIT_SAVED_REGS_P.
8472 * frame.c (frame_saved_regs_register_unwind): Assert
8473 FRAME_INIT_SAVED_REGS_P.
8474 (deprecated_generic_get_saved_register): Ditto.
8476 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8478 * source.c (openp): Squelch warning about "filename".
8480 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8482 * source.c (openp): If the file does not exist don't necessarily
8485 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8488 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
8489 (integer_types_same_name_p): New function.
8490 (rank_one_type): Use it.
8491 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
8493 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8495 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
8497 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
8498 * configure.in: Add --with-sysroot.
8499 * configure: Regenerated.
8500 * main.c (gdb_sysroot): New variable.
8501 (captured_main): Initialize gdb_sysroot.
8502 * defs.h (gdb_sysroot): New extern declaration.
8503 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
8505 2003-01-12 Michael Chastain <mec@shout.net>
8507 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
8509 2003-01-12 Michael Chastain <mec@shout.net>
8511 * top.c (print_gdb_version): Bump copyright year to 2003.
8513 2003-01-12 David Carlton <carlton@bactrian.org>
8515 * linespec.c (symtab_from_filename): Rename variable 's' to
8518 2003-01-12 Andrew Cagney <ac131313@redhat.com>
8520 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
8522 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
8524 2003-01-12 Andrew Cagney <ac131313@redhat.com>
8526 * d10v-tdep.c: Include "gdb_assert.h".
8527 (d10v_store_return_value): Rewrite to match current interface.
8528 (d10v_extract_struct_value_address): Ditto.
8529 (d10v_extract_return_value): Ditto.
8530 (d10v_gdbarch_init): Set store_restore_value,
8531 extract_struct_value_address and extract_return_value.
8533 2003-01-12 J. Brobecker <brobecker@gnat.com>
8535 * hpread.c (set_namestring): New procedure replacing the
8536 SET_NAMESTRING macro.
8537 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
8538 by calls to set_namestring.
8540 2003-01-11 J. Brobecker <brobecker@gnat.com>
8542 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
8543 a compilation warning.
8544 (hpread_process_one_debug_symbol): Likewise.
8546 2003-01-10 David Carlton <carlton@math.stanford.edu>
8548 * linespec.c (decode_line_1): Rename variable 's' to
8550 (decode_all_digits): Rename argument 's' to 'file_symtab'.
8551 (decode_dollar): Ditto.
8552 (decode_variable): Ditto.
8553 (symbol_found): Ditto.
8555 2003-01-09 Michael Chastain <mec@shout.net>
8557 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
8559 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
8561 * win32-nat.c (set_process_privilege): New function.
8562 (child_attach): Call set_process_privilege() to enable the
8563 SE_DEBUG_NAME user privilege if available in process token.
8565 2003-01-10 J. Brobecker <brobecker@gnat.com>
8567 * hpread.c (hpread_process_one_debug_symbol): Fix a small
8568 compilation error in the previous revision.
8570 2003-01-09 David Carlton <carlton@math.stanford.edu>
8572 * linespec.c: Update copyright.
8574 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
8576 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
8578 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
8580 2003-01-09 Andrew Cagney <ac131313@redhat.com>
8582 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
8584 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
8585 (frame_saved_regs_zalloc): Update.
8586 (frame_saved_regs_register_unwind): Update.
8587 (create_new_frame): Update.
8588 (get_prev_frame): Update.
8589 (frame_extra_info_zalloc): Update.
8590 (deprecated_get_frame_saved_regs): Update.
8591 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
8592 * cris-tdep.c: Update comment.
8594 * somsolib.h: Fix function indentation.
8595 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
8596 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
8597 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
8598 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
8599 * somsolib.c, inftarg.c: Remove assignment in if conditional.
8601 * infrun.c (follow_fork): Use ISO C definition.
8602 * expprint.c (print_subexp): Use xfree instead of free.
8603 * charset.c: Include "gdb_string.h" instead of <string.h>.
8604 (register_iconv_charsets): Use ISO C definition.
8605 (host_charset, target_charset): Ditto.
8606 * Makefile.in (charset.o): Update dependencies.
8607 (mi-cmd-env.o): Update dependencies.
8609 2003-01-08 Andrew Cagney <cagney@redhat.com>
8611 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
8614 2003-01-08 Andrew Cagney <ac131313@redhat.com>
8616 * gdb_mbuild.sh: Add --keep option. When specified, keep the
8617 build directories. Save edited gdb output in Mbuild.log. If a
8618 build fails, remove any final GDB executable.
8620 2003-01-08 Andrew Cagney <ac131313@redhat.com>
8622 * gdb_mbuild.sh: Edit the output of `maint print architecture'
8623 replacing hex constants with function names and stripping leading
8624 file name directory prefixes.
8626 2003-01-08 Andrew Cagney <cagney@redhat.com>
8628 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
8631 2003-01-08 David Carlton <carlton@math.stanford.edu>
8633 * linespec.c (decode_line_1): Move code into decode_variable.
8634 (decode_variable): New function.
8636 2003-01-08 Andrew Cagney <ac131313@redhat.com>
8638 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
8640 2003-01-08 Andrew Cagney <cagney@redhat.com>
8642 * cris-tdep.c (cris_frame_init_saved_regs): Use
8643 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
8645 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8646 (sh64_nofp_frame_init_saved_regs): Ditto.
8647 (sh_fp_frame_init_saved_regs): Ditto.
8648 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
8649 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
8650 * mcore-tdep.c (analyze_dummy_frame): Ditto.
8651 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
8653 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
8655 * minsyms.c (lookup_minimal_symbol): Update comment.
8656 (lookup_minimal_symbol_text): Update comment. Use the hash table.
8657 (lookup_minimal_symbol_solib_trampoline): Likewise.
8659 2003-01-08 Andrew Cagney <cagney@redhat.com>
8661 * d10v-tdep.c (d10v_init_extra_frame_info): Use
8662 frame_relative_level.
8664 * alpha-tdep.c: Use get_frame_extra_info.
8665 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8666 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
8667 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
8668 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
8670 * alpha-tdep.c: Use get_next_frame.
8671 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8672 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
8673 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
8674 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
8675 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
8676 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
8677 * xstormy16-tdep.c: Ditto.
8679 2003-01-07 Andrew Cagney <cagney@redhat.com>
8681 * alpha-tdep.c: Use get_frame_base.
8682 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8683 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
8684 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
8685 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
8686 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
8687 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
8688 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
8689 * config/sparc/tm-sparc.h: Ditto.
8691 2003-01-07 Andrew Cagney <cagney@redhat.com>
8693 * frame.c (deprecated_get_frame_context): New function.
8694 (deprecated_set_frame_context): New function.
8695 * frame.h (deprecated_get_frame_context): Declare.
8696 (deprecated_set_frame_context): Declare.
8697 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
8698 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8700 2003-01-07 Andrew Cagney <cagney@redhat.com>
8702 * frame.c (deprecated_set_frame_next_hack): New function.
8703 (deprecated_set_frame_prev_hack): New function.
8704 * frame.h (deprecated_set_frame_next_hack): Declare.
8705 (deprecated_set_frame_prev_hack): Declare.
8706 * mcore-tdep.c (analyze_dummy_frame): Use
8707 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
8708 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
8710 2003-01-07 David Carlton <carlton@math.stanford.edu>
8712 * linespec.c (decode_line_1): Move code into decode_dollar.
8713 (decode_dollar): New function.
8715 2003-01-07 Andrew Cagney <cagney@redhat.com>
8717 * arm-tdep.c (arm_init_extra_frame_info): Use
8718 deprecated_update_frame_base_hack.
8719 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
8720 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
8721 (fix_frame_pointer): Ditto.
8722 (mn10300_analyze_prologue): Ditto.
8724 2003-01-07 Andrew Cagney <cagney@redhat.com>
8726 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
8727 extra_info using frame_extra_info_zalloc.
8728 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8729 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
8730 (sh64_init_extra_frame_info): Ditto.
8731 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
8732 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
8733 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
8734 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
8735 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
8736 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
8737 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
8738 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
8739 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
8740 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
8741 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8742 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
8744 * mn10300-tdep.c (analyze_dummy_frame): Use
8745 deprecated_set_frame_extra_info_hack.
8746 * mcore-tdep.c (analyze_dummy_frame): Ditto.
8748 2003-01-07 J. Brobecker <brobecker@gnat.com>
8750 * mdebugread.c (parse_symbol): Skip stProc entries which storage
8751 class is not scText. These do not define "real" procedures.
8752 (parse_partial_symbols): Likewise.
8754 2003-01-06 Michael Snyder <msnyder@redhat.com>
8756 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
8758 2003-01-06 Andrew Cagney <ac131313@redhat.com>
8760 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
8761 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
8762 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
8763 deprecated_frame_xmalloc_with_cleanup.
8764 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
8765 deprecated_frame_xmalloc.
8766 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
8767 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
8769 2003-01-06 Andrew Cagney <cagney@redhat.com>
8771 * x86-64-linux-tdep.c: Include "osabi.h".
8772 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
8774 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
8776 2003-01-06 Andrew Cagney <cagney@redhat.com>
8778 * MAINTAINERS (Target Instruction Set Architectures): Update
8779 arm-elf. Can be built with -Werror, has been multiarched.
8781 * value.h (unpack_long): Make buffer parameter constant.
8782 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
8783 * scm-lang.h (scm_parse): Ditto.
8784 * defs.h (extract_typed_address, extract_address): Ditto.
8785 (extract_long_unsigned_integer): Ditto.
8786 * inferior.h (unsigned_pointer_to_address): Ditto.
8787 (signed_pointer_to_address): Ditto.
8788 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
8789 * gdbarch.h, gdbarch.c: Regenerate.
8790 * findvar.c (extract_long_unsigned_integer): Update.
8791 (extract_address): Update.
8792 (extract_typed_address): Update.
8793 (unsigned_pointer_to_address): Update.
8794 * values.c (unpack_long): Update.
8795 (unpack_double): Update.
8796 (unpack_pointer): Update.
8797 (unpack_field_as_long): Update.
8798 * d10v-tdep.c (d10v_pointer_to_address): Update.
8799 * avr-tdep.c (avr_pointer_to_address): Update.
8800 * scm-lang.c (scm_unpack): Update.
8801 * findvar.c (signed_pointer_to_address): Update.
8803 2003-01-06 Michal Ludvig <mludvig@suse.cz>
8805 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
8806 since it is in i386-tdep.c.
8808 2003-01-06 J. Brobecker <brobecker@gnat.com>
8810 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
8811 failure introduced in the previous change.
8813 2003-01-05 Michael Chastain <mec@shout.net>
8815 * README: Remove references to deleted remote-*.c files:
8816 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
8817 remote-nrom.c, remote-os9k.c, remote-udi.c.
8819 2003-01-05 Mark Kettenis <kettenis@gnu.org>
8821 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
8822 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
8823 i386_get_longjmp_target.
8825 2003-01-05 Andrew Cagney <ac131313@redhat.com>
8827 * arm-tdep.c (prologue_cache): Change to a pointer.
8828 (_initialize_arm_tdep): Allocate prologue_cache.
8829 (check_prologue_cache): Update.
8830 (save_prologue_cache): Update.
8831 (arm_gdbarch_init): Update.
8833 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
8835 * stabsread.c (update_method_name_from_physname): Call complaint()
8838 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
8840 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
8841 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
8842 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
8844 * blockframe.c: Include "gdbcmd.h" and "command.h".
8845 (backtrace_below_main): New variable.
8846 (file_frame_chain_valid, func_frame_chain_valid)
8847 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
8848 (generic_func_frame_chain_valid): Remove functions.
8849 (frame_chain_valid, do_flush_frames_sfunc): New functions.
8850 (_initialize_blockframe): New function.
8851 * Makefile.in (blockframe.o): Update dependencies.
8852 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
8853 comment. Call frame_chain_valid ().
8854 * frame.h: Remove old prototypes. Add prototype for
8855 frame_chain_valid and update comments to match.
8856 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
8858 * gdbarch.h: Regenerated.
8859 * gdbarch.c: Regenerated.
8861 * alpha-tdep.c (alpha_gdbarch_init): Don't call
8862 set_gdbarch_frame_chain_valid.
8863 * avr-tdep.c (avr_gdbarch_init): Likewise.
8864 * cris-tdep.c (cris_gdbarch_init): Likewise.
8865 * frv-tdep.c (frv_gdbarch_init): Likewise.
8866 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
8867 * i386-tdep.c (i386_svr4_init_abi): Likewise.
8868 (i386_nw_init_abi): Likewise.
8869 (i386_gdbarch_init): Likewise.
8870 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
8871 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
8872 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
8873 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
8874 * mips-tdep.c (mips_gdbarch_init): Likewise.
8875 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8876 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
8877 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8878 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8879 * s390-tdep.c (s390_gdbarch_init): Likewise.
8880 * sh-tdep.c (sh_gdbarch_init): Likewise.
8881 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
8882 * v850-tdep.c (v850_gdbarch_init): Likewise.
8883 * vax-tdep.c (vax_gdbarch_init): Likewise.
8884 * x86-64-tdep.c (x86_64_init_abi): Likewise.
8886 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
8887 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
8888 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
8889 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
8890 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
8891 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
8892 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
8893 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
8895 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8897 * Makefile.in (acconfig_h): Remove incorrect macro.
8899 (osabi.o): Update dependencies.
8900 * configure.tgt: Set gdb_osabi based on target triplet.
8901 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
8902 * configure: Regenerated.
8903 * config.in: Regenerated.
8904 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
8905 (GDB_OSABI_DEFAULT): Define if not already defined.
8906 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
8907 (set_osabi_string): New variables.
8908 (gdbarch_register_osabi): Add new OS ABI to
8909 gdb_osabi_available_names.
8910 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
8911 (set_osabi, show_osabi): New functions.
8912 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
8914 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
8916 * arch-utils.c (gdbarch_info_init): Set osabi to
8917 GDB_OSABI_UNINITIALIZED.
8918 * gdbarch.sh: Add osabi to struct gdbarch and to struct
8919 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
8920 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
8921 * gdbarch.c: Regenerated.
8922 * gdbarch.h: Regenerated.
8923 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
8925 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
8926 * osabi.h (enum gdb_osabi): Move to defs.h.
8927 (gdbarch_init_osabi): Update prototype.
8928 * defs.h (enum gdb_osabi): Moved here.
8929 * Makefile.in: Update dependencies.
8931 * alpha-tdep.h: Don't include "osabi.h".
8932 (struct gdbarch_tdep): Remove osabi member.
8933 * alpha-tdep.c: Include "osabi.h".
8934 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8935 iterate over arches. Update call to gdbarch_init_osabi.
8936 (alpha_dump_tdep): Don't dump osabi.
8937 * alpha-linux-tdep.c: Include "osabi.h".
8938 * alpha-osf1-tdep.c: Include "osabi.h".
8939 * alphafbsd-tdep.c: Include "osabi.h".
8940 * alphanbsd-tdep.c: Include "osabi.h".
8942 * arm-tdep.h: Don't include "osabi.h".
8943 (struct gdbarch_tdep): Remove osabi member.
8944 * arm-tdep.c: Include "osabi.h".
8945 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8946 iterate over arches. Update call to gdbarch_init_osabi.
8947 (arm_dump_tdep): Don't dump osabi.
8948 * arm-linux-tdep.c: Include "osabi.h".
8949 * armnbsd-tdep.c: Include "osabi.h".
8951 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
8952 Update call to gdbarch_init_osabi.
8954 * i386-tdep.h: Don't include "osabi.h".
8955 (struct gdbarch_tdep): Remove osabi member.
8956 * i386-tdep.c: Include "osabi.h".
8957 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8958 iterate over arches. Update call to gdbarch_init_osabi.
8959 (i386_dump_tdep): Don't dump osabi.
8960 * i386-linux-tdep.c: Include "osabi.h".
8961 * i386-sol2-tdep.c: Include "osabi.h".
8962 * i386bsd-tdep.c: Include "osabi.h".
8963 * i386gnu-tdep.c: Include "osabi.h".
8964 * i386ly-tdep.c: Include "osabi.h".
8965 * i386nbsd-tdep.c: Include "osabi.h".
8966 * i386obsd-tdep.c: Include "osabi.h".
8968 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
8969 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8970 check osabi when iterating over arches. Update call to
8972 (mips_dump_tdep): Don't dump osabi.
8974 * ns32k-tdep.h: Don't include "osabi.h".
8975 (struct gdbarch_tdep): Remove.
8976 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
8977 gdbarch_lookup_osabi. Don't iterate over arches. Don't
8978 allocate tdep. Update call to gdbarch_init_osabi.
8979 (ns32k_dump_tdep): Remove.
8980 (_initialize_ns32k_tdep): Update call to gdbarch_register.
8981 * ns32knbsd-tdep.c: Include "osabi.h".
8983 * ppc-tdep.h: Don't include "osabi.h".
8984 (struct gdbarch_tdep): Remove osabi member.
8985 * rs6000-tdep.c: Include "osabi.h".
8986 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
8987 osabi when iterating over arches. Update call to
8989 (rs6000_dump_tdep): Don't dump osabi.
8990 * ppc-linux-tdep.c: Include "osabi.h".
8991 * ppcnbsd-tdep.c: Include "osabi.h".
8993 * sh-tdep.h: Don't include "osabi.h".
8994 (struct gdbarch_tdep): Remove osabi member.
8995 * sh-tdep.c: Include "osabi.h".
8996 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8997 iterate over arches. Update call to gdbarch_init_osabi.
8998 (sh_dump_tdep): Don't dump osabi.
8999 * shnbsd-tdep.c: Include "osabi.h".
9001 * sparc-tdep.c: Include "osabi.h".
9002 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9003 iterate over arches. Update call to gdbarch_init_osabi.
9004 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
9007 * vax-tdep.h: Don't include "osabi.h".
9008 (struct gdbarch_tdep): Remove.
9009 * vax-tdep.c: Include "osabi.h".
9010 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9011 iterate over arches. Don't allocate tdep. Update call
9012 to gdbarch_init_osabi.
9013 (vax_dump_tdep): Remove.
9014 (_initialize_vax_tdep): Update call to gdbarch_register.
9016 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9018 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
9020 (breakpoint_re_set_one): Don't fetch the value for a disabled
9023 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9025 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
9026 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
9027 (COERCE_FLOAT_TO_DOUBLE): Remove.
9028 * gdbarch.c: Regenerate.
9029 * gdbarch.h: Regenerate.
9030 * Makefile.in: Remove value_h from gdbarch_h.
9031 * valops.c (coerce_float_to_double): New variable.
9032 (default_coerce_float_to_double): Remove.
9033 (standard_coerce_float_to_double): Remove.
9034 (value_arg_coerce): Use coerce_float_to_double.
9035 (_initialize_valops): Add "set coerce-float-to-double".
9036 * value.h (default_coerce_float_to_double): Remove prototype.
9037 (standard_coerce_float_to_double): Remove prototype.
9039 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
9041 * mdebugread.c (parse_symbol): Likewise.
9042 * stabsread.c (define_symbol): Mark all functions as prototyped.
9044 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
9045 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
9046 set_gdbarch_coerce_float_to_double.
9047 * arm-tdep.c (arm_gdbarch_init): Likewise.
9048 * frv-tdep.c (frv_gdbarch_init): Likewise.
9049 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
9050 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
9051 * mips-tdep.c (mips_gdbarch_init): Likewise.
9052 (mips_coerce_float_to_double): Remove.
9053 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9054 (rs6000_coerce_float_to_double): Remove.
9055 * s390-tdep.c (s390_gdbarch_init): Likewise.
9056 * sh-tdep.c (sh_gdbarch_init): Likewise.
9057 (sh_coerce_float_to_double): Remove.
9058 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
9059 (sparc_coerce_float_to_double): Remove.
9060 * v850-tdep.c (v850_gdbarch_init): Likewise.
9061 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
9062 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9063 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
9064 (hppa_coerce_float_to_double): Remove prototype.
9065 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9067 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9069 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
9071 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9073 Suggested by Stewart Brown <sb24@avaya.com>:
9074 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
9075 in recursive calls. Handle TYPE_CODE_TYPEDEF.
9076 (c_type_print_varspec_suffix): Likewise.
9078 2003-01-04 Mark Kettenis <kettenis@gnu.org>
9080 * configure.in: Don't set and AC_SUBST SUBDIRS.
9081 * configure: Regenerated.
9083 * configure.in: Remove code dealing with shared libraries.
9084 * Makefile.in: Remove HLDFLAGS and HLDENV.
9085 * configure: Regenerated.
9087 2003-01-04 Andrew Cagney <ac131313@redhat.com>
9089 * frame.c (deprecated_frame_xmalloc): New function.
9090 (deprecated_set_frame_saved_regs_hack): New function.
9091 (deprecated_set_frame_extra_info_hack): New function.
9092 * frame.h (deprecated_frame_xmalloc): Declare.
9093 (deprecated_set_frame_saved_regs_hack): Declare.
9094 (deprecated_set_frame_extra_info_hack): Declare.
9096 2003-01-04 Mark Kettenis <kettenis@gnu.org>
9098 * configure.in: Move code that provides the --enable-gdbtk option
9099 right after the code that handles the --enable-tui option, and
9101 * configure: Regenerated.
9103 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
9104 AC_CHECK_FUNCS and remove the old check for pread64.
9105 * acinclude.m4 (AC_GNU_SOURCE): New macro.
9106 * acconfig.h (_GNU_SOURCE): Add.
9107 (HAVE_PREAD64): Remove.
9108 * configure, aclocal.m4, config.in: Regenerated.
9110 2003-01-03 Andrew Cagney <ac131313@redhat.com>
9112 * alpha-tdep.c: Use get_frame_saved_regs.
9113 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9114 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
9115 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
9116 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
9117 * vax-tdep.c, xstormy16-tdep.c: Ditto.
9119 2003-01-03 Mark Kettenis <kettenis@gnu.org>
9121 * configure.in: Remove all use of the SUBDIRS variable; add
9122 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
9123 code providing the --enable-multi-ice option, and move it right in
9124 front of the code that checks whether gdbserver is supported.
9126 * configure: Regenerated.
9127 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
9130 2003-01-03 Andrew Cagney <cagney@redhat.com>
9132 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
9133 * avr-tdep.c, cris-tdep.c: Ditto.
9134 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
9135 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
9137 2003-01-03 Mark Kettenis <kettenis@gnu.org>
9139 * configure.in: Remove --enable-netrom option.
9140 * configure: Regenerated.
9142 2003-01-03 Mark Kettenis <kettenis@gnu.org>
9144 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
9145 declaration for `struct re_pattern_buffer' instead.
9146 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
9148 2003-01-03 J. Brobecker <brobecker@gnat.com>
9150 * mdebugread.c (parse_symbol): Count until the stEnd matching
9153 2003-01-02 Mark Kettenis <kettenis@gnu.org>
9155 * configure.in: Remove --with-cpu option.
9156 subscripts. Remove evil changequotes here.
9157 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
9158 * config.in, configure: Regenerated.
9160 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
9161 * configure.in: Cleanup section that sources GDB and BFD configure
9162 subscripts. Remove evil changequotes here.
9163 * config.in, configure: Regenerated.
9165 2003-01-02 Andrew Cagney <ac131313@redhat.com>
9167 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
9168 frame accessor methods.
9169 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9170 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
9171 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
9172 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
9173 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
9174 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
9175 * z8k-tdep.c: Ditto.
9177 2003-01-02 Mark Kettenis <kettenis@gnu.org>
9179 * configure.in: Remove UI_OUT configuration code.
9180 * ada-lang.c: Update assuming UI_OUT is always true.
9181 * Makefile.in (UIOUT_CFLAGS): Remove.
9182 * configure: Regenerated.
9183 * TODO: Remove blurb about elimination of -DUI_OUT.
9185 * configure.in: Move code that provides the --enable-gdbcli,
9186 --enable-gdbmi options right before the code that handles the
9187 --enable-tui option. Polish a bit.
9188 * configure: Regenerated.
9190 * configure.in: Rewrite check for GNU regex and the
9191 --without-included regex option, and move it into the "Checks for
9192 library functions" section. This makes us use the system regex
9193 again by default on systems with version 2 of the GNU C library.
9194 This was apparently broken.
9195 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
9196 * acconfig.h (USE_INCLUDED_REGEX): Remove.
9197 * config.in, configure: Regenerated.
9199 * configure.in: Move code that provides the --enable-tui option
9200 before the "Checks for libraries" section. Polish the code
9201 somewhat and set need_curses to yes if we build the TUI. Rewrite
9202 code that looks for a library providing termcap functionality to
9203 match more closely what's done in the Readline library, and move
9204 it into to the "Checks for libraries" section.
9205 * configure: Regenerated.
9206 * Makefile.in (TERMCAP): Remove variable.
9207 * config/i386/go32.mh (TERMCAP): Remove variable.
9209 2003-01-02 Andrew Cagney <ac131313@redhat.com>
9211 * MAINTAINERS: Mention gdb_mbuild.sh.
9212 * gdb_mbuild.sh: Rewrite.
9214 2003-01-02 Mark Kettenis <kettenis@gnu.org>
9216 * configure.in: Fix typo in last change.
9217 * config.in, configure: Regenerated.
9219 2003-01-02 Andrew Cagney <ac131313@redhat.com>
9221 * valarith.c (value_binop): Delete obsolete code and comments.
9222 * configure.host: Ditto.
9223 * buildsym.h (make_blockvector): Ditto.
9224 * buildsym.c (make_blockvector): Ditto.
9225 * defs.h (enum language): Ditto.
9226 (chill_demangle): Ditto.
9227 * elfread.c (elf_symtab_read): Ditto.
9228 * dwarfread.c (CHILL_PRODUCER): Ditto.
9229 (set_cu_language): Ditto.
9230 (handle_producer): Ditto.
9231 * expprint.c (print_subexp): Ditto.
9232 * gdbtypes.c (chill_varying_type): Ditto.
9233 * gdbtypes.h (builtin_type_chill_bool): Ditto.
9234 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
9235 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
9236 (chill_varying_type): Ditto.
9237 * language.h (_LANG_chill): Ditto.
9238 * language.c (binop_result_type, integral_type): Ditto.
9239 (character_type, string_type, structured_type): Ditto.
9240 (lang_bool_type, binop_type_check): Ditto.
9241 * stabsread.h (os9k_stabs): Ditto.
9242 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
9243 (define_symbol, read_type, read_struct_fields): Ditto.
9244 (read_array_type, read_enum_type, read_huge_number): Ditto.
9245 (read_range_type, start_stabs): Ditto.
9246 * symfile.c (init_filename_language_table): Ditto.
9247 (add_psymbol_with_dem_name_to_list): Ditto.
9248 * symtab.c (symbol_init_language_specific): Ditto.
9249 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
9250 * symtab.h (struct general_symbol_info): Ditto.
9251 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
9252 * typeprint.c (typedef_print): Ditto.
9253 * utils.c (fprintf_symbol_filtered): Ditto.
9254 * valops.c (value_cast, search_struct_field, value_slice): Delete
9256 (varying_to_slice): Delete function.
9257 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
9258 (varying_to_slice): Delete declaration.
9259 * MAINTAINERS: Update.
9261 2003-01-02 Mark Kettenis <kettenis@gnu.org>
9263 * configure.in: Reorganize "Checks for library functions section"
9264 a bit. Remove check for `btowc' and `isascii' functions.
9265 * configure: Regenerated.
9267 * acconfig.h (_MSE_INT_H): Remove.
9268 * configure.in: Create "Checks for header files" section, and move
9269 appropriate tests there. Don't check for objlist.h, wchar.h,
9270 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
9271 misdetection fix. Also add "Checks for types", "Checks for
9272 compiler characteristics" and "Checks for library functions"
9274 * config.in, configure: Regenerated.
9276 * configure.in: Create "Checks for programs" section, and move
9277 appropriate tests there.
9279 2003-01-01 Mark Kettenis <kettenis@gnu.org>
9281 * configure.in: Create "Checks for libraries" section, and move
9282 appropriate tests there. Cleanup check for wctype in libw. Use
9283 AC_SEARCH_LIBS to see whether we need libsocket.
9284 * configure: Regenerated.
9286 For older changes see ChangeLog-2002
9292 version-control: never