1 2003-07-03 Andrew Cagney <cagney@redhat.com>
3 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
4 * gdbarch.h, gdbarch.c: Re-generate.
5 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
6 (legacy_register_name): Declare.
7 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
8 (REGISTER_NAME): Define.
9 * sparc-tdep.c (legacy_register_name): New function.
10 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
11 (REGISTER_NAME): Define.
12 (hppa64_register_name): Declare.
13 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
14 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
15 (hppa64_register_name): New function.
16 (hppa_register_name): New function.
17 * arch-utils.c (legacy_register_name): Delete.
18 * arch-utils.h (legacy_register_name): Delete.
20 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
22 * cli/cli-interp.c (cli_interpreter_resume): Update the
23 cli_uiout's stream to gdb_stdout.
25 2003-07-03 Andrew Cagney <cagney@redhat.com>
27 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
29 * gdbarch.h, gdbarch.c: Re-generate.
30 * regcache.c (init_regcache_descr): Use legacy code when either
31 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
33 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
35 * NEWS: Move "set logging" entry into GDB 6.0 section.
37 2003-07-02 Jim Blandy <jimb@redhat.com>
39 * s390-tdep.c (struct frame_extra_info): new member:
41 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
42 initialize fextra_info->stack_bought.
43 (s390_frameless_function_invocation): Don't trust the value of
44 fextra_info_ptr->stack_bought unless
45 fextra_info->stack_bought_valid is set.
47 New S390 prologue analyzer.
48 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
49 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
50 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
51 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
52 compute_x_addr, s390_on_stack, s390_store,
53 s390_get_signal_frame_info): New functions.
54 (S390_NUM_SPILL_SLOTS): New macro.
55 (s390_get_frame_info): Rewritten.
56 (is_arg_reg): Deleted.
58 Break out the decoding of S/390 instructions into separate
59 functions, to make it more legible, and easier to check
61 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
62 is_rx, is_rxe): New functions.
63 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
64 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
65 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
66 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
67 enums for opcode values. (Is this an improvement?)
69 2003-07-02 Andrew Cagney <cagney@redhat.com>
71 * i386-tdep.c: Revert change committed as part of trad-frame code
74 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
76 * breakpoint.c (insert_catchpoint): Make static.
78 2003-07-02 Andreas Schwab <schwab@suse.de>
80 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
81 former ia64_push_arguments and ia64_push_return_address, and use
82 regcache functions instead of read/write_register.
83 (ia64_gdbarch_init): Set push_dummy_call instead of
84 deprecated_push_arguments and deprecated_push_return_address.
86 2003-07-01 Andreas Jaeger <aj@suse.de>
88 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
90 Set %rax only to number of SSE registers used.
92 2003-07-01 Andrew Cagney <cagney@redhat.com>
94 * trad-frame.h: Update comments, a -1 .addr is reserved.
95 (trad_frame_value_p, trad_frame_addr_p): Declare.
96 (trad_frame_reg_p): Declare.
97 (trad_frame_set_value): Rename trad_frame_register_value.
98 (trad_frame_set_unknown): Declare.
99 * trad-frame.c (trad_frame_realreg_p): New function.
100 (trad_frame_addr_p, trad_frame_value_p): New function.
101 (trad_frame_set_unknown): New function.
102 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
103 (trad_frame_prev_register): Use trad_frame_realreg_p,
104 trad_frame_addr_p and trad_frame_value_p.
105 (trad_frame_set_value): Rename trad_frame_register_value.
106 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
107 and trad_frame_set_value.
109 2003-06-30 Jim Blandy <jimb@redhat.com>
111 Patch from IBM (authors unspecified, probably Ulrich Weigand and
112 Gerhard Tonn) for argument passing on the S/390 and S/390x:
113 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
114 for 16 registers, and then 32 more bytes.
115 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
117 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
118 Move up in the file, since it's now used by is_simple_arg.
119 (is_simple_arg): Don't assume registers are four bytes long.
120 Exclude all double arguments. Extended floats are not simple
122 (is_power_of_two): New function.
123 (pass_by_copy_ref): Call is_power_of_two, and check that the
124 length fits in a register, rather than listing all the acceptable
125 sizes. Extended floats are not passed by reference.
126 (s390_push_arguments): Don't assume registers are four bytes long.
127 Reserve an argument register to point to the buffer for structures
128 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
129 S390_STACK_FRAME_OVERHEAD.
131 2003-06-30 Andreas Schwab <schwab@suse.de>
133 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
134 format error message.
136 2003-06-30 Joel Brobecker <brobecker@gnat.com>
138 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
140 2003-06-30 David Carlton <carlton@kealia.com>
142 Band-aid for PR c++/1245.
143 * Makefile.in (cp-support.o): Depend on complaints_h.
144 * cp-support.c: Include complaints.h. Add declaration for
146 (cp_find_first_component): Separate code into
147 cp_find_first_component_aux.
148 (cp_find_first_component_aux): Call demangled_name_complaint.
149 (demangled_name_complaint): New.
151 2003-06-30 Andrew Cagney <cagney@redhat.com>
153 * remote.c (remote_write_bytes): Explicitly compute and then use
154 the payload size. Update comments to reflect. Fixes problem of
155 GDB not sending small packets as found by Fred Fish.
157 2003-06-30 Andrew Cagney <cagney@redhat.com>
159 * remote.c (remote_async_wait): Fix -Wformat problem.
161 2003-06-29 Andrew Cagney <cagney@redhat.com>
163 * remote.c (remote_wait): Call error, and not warning, when the
165 (remote_async_wait): Ditto.
167 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
169 * sparc-tdep.c (sparc_y_regnum): Make external again.
171 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
173 * cli/cli-logging.c (pop_output_files): Add void to function
176 2003-06-29 Andrew Cagney <cagney@redhat.com>
178 * frame.c (frame_register_unwind): Use unsigned char when dumping
181 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
183 * cli/cli-logging.c: New file.
184 * cli-out.c (struct ui_out_data): Add original_stream.
185 (cli_redirect): New function.
186 (cli_ui_out_impl): Add cli_redirect.
187 (cli_out_new): Initialize original_stream.
188 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
189 (uo_redirect, ui_out_redirect): New.
190 * ui-out.h (struct ui_out_impl): Add redirect member.
191 (redirect_ftype): New.
192 (ui_out_redirect): Add prototype.
193 * Makefile.in: Add rules for cli-logging.c.
194 * NEWS: Mention "set logging".
196 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
198 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
200 2003-06-27 Andrew Cagney <cagney@redhat.com>
202 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
203 (m68hc11_gdbarch_init): Do not set call_dummy_address.
204 * avr-tdep.c (avr_call_dummy_address): Delete function.
205 (avr_gdbarch_init): Do not set call_dummy_address.
207 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
209 * symfile.c (syms_from_objfile): Move variables to inner block.
210 Move the checks for the non-mainline case a bit earlier to avoid
211 doing some useless computations.
213 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
215 * dwarfread.c (decode_modified_type): Gag new compiler warning.
217 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
219 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
222 2003-06-26 Michael Chastain <mec@shout.net>
224 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
225 gdb/testsuite/gdb.c++/pr-1210.exp.
227 2003-06-26 Andrew Cagney <cagney@redhat.com>
229 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
230 altivec_expression.h and altivec_registers.h.
232 2003-06-26 Andrew Cagney <cagney@redhat.com>
234 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
235 info->mach when MIPS16. Patch suggested by Fred Fish.
237 2003-06-26 Andrew Cagney <cagney@redhat.com>
239 * utils.c (internal_vproblem): Print the problem to a reason
240 buffer and then pass to query. Make the msg variable more local.
242 2003-06-26 Andrew Cagney <cagney@redhat.com>
244 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
245 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
246 * gdbarch.h, gdbarch.c: Re-generate.
247 * frame-base.c (default_frame_args_address): Update. Use
248 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
250 (default_frame_locals_address): Ditto for
251 DEPRECATED_FRAME_LOCALS_ADDRESS.
252 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
253 (vax_frame_num_args): Update.
254 (vax_gdbarch_init): Update.
255 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
256 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
257 * mcore-tdep.c (mcore_gdbarch_init): Update.
258 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
259 * ia64-tdep.c (ia64_gdbarch_init): Update.
260 * symtab.h (address_class): Update comments.
261 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
262 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
263 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
264 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
265 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
266 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
267 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
268 * alpha-mdebug-tdep.c: Update.
269 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
271 2003-06-26 Andreas Jaeger <aj@suse.de>
273 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
274 of SSE registers so that varargs functions work. Rework handling
275 of passing arguments on the stack.
276 (x86_64_store_return_value): Return double and float values in SSE
279 2003-06-24 Michael Chastain <mec@shout.net>
281 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
282 the "constructor breakpoints ignored" bug.
284 2003-06-25 David Carlton <carlton@kealia.com>
286 * MAINTAINERS: Update e-mail address.
288 2003-06-24 Jim Blandy <jimb@redhat.com>
290 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
292 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
294 (ppc_linux_init_abi): Register it as the
295 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
297 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
298 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
301 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
302 (ppc64_standard_linkage_target): Use it.
304 2003-06-23 Andrew Cagney <cagney@redhat.com>
306 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
307 for 0 "int0" and 4 "int32" sized registers.
308 * gdbtypes.c (builtin_type_int0): Define.
309 (build_gdbtypes): Initialize builtin_type_int0.
310 * gdbtypes.h (builtin_type_int0): Declare.
312 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
314 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
315 as characters are unsigned.
317 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
320 * dwarfread.c (struct_type): Skip static fields without crashing.
322 2003-06-22 Andrew Cagney <cagney@redhat.com>
324 GDB 6.0 branch created.
326 * PROBLEMS: Update. Empty.
329 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
331 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
332 Suggested by Nick Hibma <n_hibma@webweaving.org>.
334 2003-06-22 Andrew Cagney <cagney@redhat.com>
336 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
337 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
340 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
342 * cli/cli-cmds.c (shell_escape): Silence warnings from old
345 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
347 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
348 argument of val_print.
349 * cp-valprint.c (cp_print_value): Don't add the offset parameter
350 to the address argument of baseclass_offset or target_read_memory.
351 Do add it to the argument of cp_print_value_fields.
353 2003-06-21 Andrew Cagney <cagney@redhat.com>
355 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
356 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
357 instead of 0..NUM_REGS.
358 (mips_register_reggroup_p): New function.
359 (mips_pseudo_register_write): New function.
360 (mips_pseudo_register_read): New function.
361 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
362 based on the register's type.
363 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
365 (mips_get_saved_register): Simplify. Assert that REGNO is a
367 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
368 (mips_register_type): Replace mips_register_virtual_type. Map
369 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
371 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
372 that the register is cooked / virtual.
373 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
374 Only get the extra info when needed.
375 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
376 (mips32_heuristic_proc_desc): Fetch the cooked register.
377 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
378 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
379 (mips_print_register): Use gdbarch_register_type, instead of
380 REGISTER_VIRTUAL_TYPE.
381 (print_gp_register_row): Use gdbarch_register_type, instead of
382 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
383 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
384 Print the pseudo / cooked registers.
385 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
386 Print the pseudo / cooked registers.
387 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
388 REG_NUM is pseudo / cooked.
389 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
390 (mips_n32n64_xfer_return_value): Ditto.
391 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
392 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
393 (mips_register_sim_regno): New function.
394 (mips_gdbarch_init): Set deprecated_register_byte,
395 register_group_p, pseudo_register_write, pseudo_register_read,
396 register_sim_regno, and num_pseudo_regs. Set register_type,
397 instead of register_virtual_type.
398 * Makefile.in (mips-tdep.o): Update dependencies.
399 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
400 REGISTER_VIRTUAL_TYPE.
401 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
402 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
403 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
404 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
405 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
407 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
409 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
410 * cli/cli-cmds.c: Include "gdb_vfork.h".
411 (shell_escape): Use vfork.
413 2003-06-21 Andrew Cagney <cagney@redhat.com>
415 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
416 32 bit floating-point register saves.
418 * frame.h (deprecated_unwind_get_saved_register): Delete.
419 * frame.c (deprecated_unwind_get_saved_register): Delete function.
420 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
421 and deprecated_get_next_frame_hack instead of
422 deprecated_unwind_get_saved_register.
424 * mips-tdep.c (mips_dump_tdep): Do not print
425 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
427 * frame.c (get_frame_register): New function.
428 (frame_unwind_register_signed): New function.
429 (get_frame_register_signed): New function.
430 (frame_unwind_register_unsigned): New function.
431 (get_frame_register_unsigned): New function.
432 * frame.h: Add comments on naming schema.
433 (get_frame_register, frame_unwind_register_signed): Declare.
434 (get_frame_register_signed, get_frame_register_signed): Declare.
435 (frame_unwind_register_unsigned): Declare.
436 (get_frame_register_unsigned): Declare.
438 2003-06-20 Theodore A. Roth <troth@openavr.org>
440 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
442 2003-06-20 Theodore A. Roth <troth@openavr.org>
444 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
445 (avr_read_sp): Ditto.
447 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
449 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
450 * config/arm/nm-linux.h: Likewise.
451 * config/arm/tm-linux.h: Likewise.
452 * config/ia64/nm-linux.h: Likewise.
453 * config/ia64/tm-ia64.h: Likewise.
454 * config/s390/tm-linux.h: Likewise.
455 * config/s390/tm-s390.h: Likewise.
456 * s390-nat.c: Likewise.
457 * s390-tdep.c: Likewise.
459 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
460 * config/ia64/linux.mt: Likewise.
461 * config/m68k/linux.mh: Likewise.
462 * config/mips/linux.mt: Likewise.
463 * config/powerpc/linux.mh: Likewise.
464 * config/sh/linux.mt: Likewise.
466 2003-06-19 Kris Warkentin <kewarken@qnx.com>
468 * solib.c (solib_open): Change tests for whether to search
469 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
472 2003-06-19 Theodore A. Roth <troth@openavr.org>
474 * avr-tdep.c (avr_frame_address): Delete function.
475 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
476 set_gdbarch_frame_args_address.
478 2003-06-19 Andrew Cagney <cagney@redhat.com>
480 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
481 (REGISTER_CONVERT_FROM_TYPE): Delete.
482 (mips_register_convert_to_type): Delete declaration.
483 (mips_register_convert_from_type): Delete declaration.
484 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
487 2003-06-19 Michael Snyder <msnyder@redhat.com>
489 * linux-nat.h: New file.
490 * linux-nat.c: Include linux-nat.h.
491 * lin-lwp.c: Include linux-nat.h.
492 Move struct lwp_info def to linux-nat.h.
493 * linux-proc.c: Include linux-nat.h.
494 (linux_make_note_section): Iterate over lwps instead of threads.
495 (linux_do_thread_registers): Use lwp instead of merged pid.
496 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
497 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
498 Add dependency on linux_nat_h.
500 2003-06-19 Theodore A. Roth <troth@openavr.org>
502 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
504 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
506 * varobj.c (get_type, get_target_type): Use check_typedef.
508 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
510 * breakpoint.c (insert_catchpoint): Call internal_error.
512 2003-06-19 Theodore A. Roth <troth@openavr.org>
514 * avr-tdep.c (avr_push_dummy_code): Delete function.
515 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
517 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
519 * arch-utils.c (default_prepare_to_proceed): Remove.
520 (generic_prepare_to_proceed): Remove.
521 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
522 (generic_prepare_to_proceed): Remove prototype.
523 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
524 * gdbarch.c: Regenerate.
525 * gdbarch.h: Regenerate.
526 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
527 * hppah-nat.c (hppa_switched_threads): Remove.
528 * infrun.c (prepare_to_proceed): New static function, copied from
529 generic_prepare_to_proceed. Remove select_it argument.
530 (proceed): Call prepare_to_proceed.
531 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
533 (ptrace_wait): Don't set the removed variables.
534 (hppa_switched_threads): Remove.
535 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
536 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
537 (lin_lwp_prepare_to_proceed): Remove prototype.
538 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
539 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
541 2003-06-18 Theodore A. Roth <troth@openavr.org>
543 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
545 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
546 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
547 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
548 (AVR_PROLOGUE_*): Enumerate prologue types.
549 (struct frame_extra_info): Remove.
550 (struct avr_unwind_cache): Define.
551 (avr_write_sp): Delete function.
552 (avr_read_fp): Ditto.
553 (avr_init_extra_frame_info): Ditto.
554 (avr_pop_frame): Ditto.
555 (avr_frame_saved_pc): Ditto.
556 (avr_saved_pc_after_call): Ditto.
557 (avr_push_return_address): Ditto.
558 (avr_frame_chain): Ditto.
559 (avr_store_struct_return): Ditto.
560 (avr_push_arguments): Ditto.
561 (avr_scan_prologue): Update comments. Changed to set up the info for
562 cache unwinding. Now returns end of prologue PC.
563 (avr_skip_prologue): Better handling of functions lacking a prologue
564 by using avr_scan_prologue.
565 (avr_scan_arg_moves): New function.
566 (avr_saved_regs_unwinder): Ditto.
567 (avr_frame_unwind_cache): Ditto.
568 (avr_unwind_pc): Ditto.
569 (avr_frame_this_id): Ditto.
570 (avr_frame_prev_register): Ditto.
571 (avr_frame_p): Ditto.
572 (avr_frame_base_address ): Ditto.
573 (avr_unwind_dummy_id): Ditto.
574 (avr_push_dummy_code): Ditto.
575 (push_stack_item): Ditto.
576 (pop_stack_item): Ditto.
577 (avr_push_dummy_call): Ditto.
578 (struct stack_item): Define.
579 (avr_frame_unwind): Declare structure.
580 (avr_frame_base): Ditto.
581 (avr_gdbarch_init): Remove calls to
582 set_gdbarch_deprecated_init_frame_pc,
583 set_gdbarch_deprecated_target_read_fp,
584 set_gdbarch_deprecated_dummy_write_sp,
585 set_gdbarch_deprecated_fp_regnum,
586 set_gdbarch_deprecated_push_arguments,
587 set_gdbarch_deprecated_push_return_address,
588 set_gdbarch_deprecated_pop_frame,
589 set_gdbarch_deprecated_store_struct_return,
590 set_gdbarch_deprecated_frame_init_saved_regs,
591 set_gdbarch_deprecated_init_extra_frame_info,
592 set_gdbarch_deprecated_frame_chain,
593 set_gdbarch_deprecated_frame_saved_pc,
594 set_gdbarch_deprecated_saved_pc_after_call.
595 Add calls to set_gdbarch_push_dummy_call,
596 set_gdbarch_push_dummy_code,
597 frame_unwind_append_predicate,
598 frame_base_set_default,
599 set_gdbarch_unwind_dummy_id,
600 set_gdbarch_unwind_pc.
603 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
605 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
606 registers for H8/300S.
607 (h8300_print_registers_info): Ditto.
608 (h8300_gdbarch_init): Accommodate register count for H8/300S.
610 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
612 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
613 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
614 (lin_lwp_wait): Likewise. Update comments.
615 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
616 (pull_pid_from_list, linux_record_stopped_pid): New.
618 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
620 * ada-lang.c (scan_discrim_bound): Name first argument.
621 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
622 declared by ALL_BLOCK_SYMBOLS.
624 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
626 * ada-tasks.c (find_function_in_inferior): Don't declare it.
627 ("regcache.h"): Include it.
628 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
630 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
632 * NEWS: Mention gdbserver detach change and "disconnect" command.
633 * infcmd.c (disconnect_command): New function.
634 (_initialize_infcmd): Add ``disconnect'' command.
635 * remote.c (remote_async_detach): Delete.
636 (remote_detach): Merge remote_async_detach.
637 (remote_disconnect): New.
638 (init_remote_ops): Set to_disconnect.
639 (init_remote_cisco_ops): Likewise.
640 (init_remote_async_ops): Likewise. Use remote_detach.
641 * target.c (cleanup_target): Default to_disconnect.
642 (update_current_target): Inherit to_disconnect.
643 (target_disconnect, debug_to_disconnect): New functions.
644 (setup_target_debug): Set to_disconnect.
645 * target.h (struct target_ops): Add to_disconnect.
646 (target_disconnect): Add prototype.
648 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
650 * breakpoint.c (insert_catchpoint): New function.
651 (insert_breakpoints): Use catch_exceptions to call
652 insert_catchpoint. Disable catchpoints if they fail to insert.
654 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
656 * symfile.c (reread_symbols): Clear sym_private.
658 2003-06-17 Andrew Cagney <cagney@redhat.com>
660 * trad-frame.h (struct frame_info): Add opaque declaration.
661 * remote-fileio.h (struct cmd_list_element): Add opaque
663 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
666 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
668 * remote.c (remote_prepare_to_store): Replace call to
669 deprecated_read_register_bytes with multiple regcache_raw_read
672 2003-06-17 Kris Warkentin <kewarken@qnx.com>
674 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
675 (nto_find_and_open_solib): Likewise.
676 (nto_init_solib_absolute_prefix): Likewise.
677 (_initialize_nto_tdep): Fix indentation.
679 2003-06-17 Kris Warkentin <kewarken@qnx.com>
681 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
683 2003-06-17 Kris Warkentin <kewarken@qnx.com>
685 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
687 2003-06-17 Jim Blandy <jimb@redhat.com>
689 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
691 2003-06-16 Theodore A. Roth <troth@openavr.org>
693 * avr-tdep.c (avr_extract_return_value): New function.
694 (avr_gdbarch_init): Set extract_return_value method.
696 2003-06-16 Andrew Cagney <cagney@redhat.com>
698 * frame.h (deprecated_get_next_frame_hack): Declare.
699 * frame.c (legacy_saved_regs_prev_register): Only require
700 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
701 there are always saved regs.
702 (deprecated_generic_get_saved_register): Do not require
703 DEPRECATED_FRAME_INIT_SAVED_REGS.
704 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
705 use frame ID unwind instead.
706 (deprecated_get_next_frame_hack): New function.
708 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
710 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
711 (h8300_push_dummy_call): ...this function. Some minor optimization.
712 (h8300_push_return_address): Remove.
713 (h8300_gdbarch_init): Remove calls to
714 set_gdbarch_deprecated_dummy_write_sp,
715 set_gdbarch_deprecated_push_arguments and
716 set_gdbarch_deprecated_push_return_address.
717 Add call to set_gdbarch_push_dummy_call.
719 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
721 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
722 (E_PSEUDO_EXR_REGNUM): Ditto.
723 (h8300_is_argument_spill): Check for instructions moving argument
724 registers into safe registers.
725 (h8300_skip_prologue): Check for stm instruction to push registers
726 used for register variables onto stack.
727 (gdb_print_insn_h8300): Remove.
728 (h8300_examine_prologue): Add a comment.
729 (h8300_register_name): Take pseudo registers into account.
730 (h8300s_register_name): Ditto.
731 (h8300sx_register_name): Ditto.
732 (h8300_print_register): Ditto.
733 (h8300_print_registers_info): Define "nice" printing order.
734 (h8300_saved_pc_after_call): Take pseudo registers into account.
735 (h8300_register_type): Ditto. Return type used for remote connection
736 when requesting real CCR or EXR register, return actual type when
737 requesting pseudo CCR or EXR.
738 (h8300_pseudo_register_read): New function.
739 (h8300_pseudo_register_write): Ditto.
740 (h8300_dbg_reg_to_regnum): Ditto.
741 (h8300s_dbg_reg_to_regnum): Ditto.
742 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
743 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
744 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
745 set_gdbarch_print_insn architecture dependent.
746 Call set_gdbarch_pseudo_register_read and
747 set_gdbarch_pseudo_register_write.
748 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
750 2003-06-16 Andrew Cagney <cagney@redhat.com>
752 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
753 * gdbarch.h, gdbarch.c: Re-generate.
754 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
755 * s390-tdep.c (s390_gdbarch_init): Update.
756 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
757 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
758 * mips-tdep.c (mips_gdbarch_init): Update.
759 * mcore-tdep.c (mcore_gdbarch_init): Update.
760 * cris-tdep.c (cris_gdbarch_init): Update.
761 * infcall.c (call_function_by_hand): Update.
762 * ia64-tdep.c (ia64_push_arguments): Update comment.
763 * frame.c (legacy_get_prev_frame): Do not assume
764 SAVE_DUMMY_FRAME_TOS_P.
765 * dummy-frame.c (find_dummy_frame): Update comment.
767 2003-06-16 Andrew Cagney <cagney@redhat.com>
769 * regcache.c (do_cooked_read): Do not use register_valid_p.
771 2003-06-15 Theodore A. Roth <troth@openavr.org>
773 * avr-tdep.c (avr_register_type): Remove a blank line.
774 (avr_scan_prologue): Correct some comments.
776 2003-06-15 Theodore A. Roth <troth@openavr.org>
778 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
780 Properly scan prologues generated by gcc with the -mcall-prologues
782 Add code to scan -mcall-prologues for mega devices.
784 2003-06-15 Theodore A. Roth <troth@openavr.org>
786 * avr-tdep.c (avr_register_byte): Delete function.
787 (avr_register_raw_size): Delete function.
788 (avr_register_virtual_size): Delete function.
789 (avr_register_virtual_type): Delete function.
790 (avr_register_type): New function.
791 (avr_address_to_pointer): Remove unused code.
792 (avr_read_fp): Need to read FP as two separate bytes due to change to
793 avr_register_type() usage.
794 (avr_gdbarch_init): Don't set deprecated_register_size.
795 Don't set deprecated_register_bytes.
796 Don't set deprecated_register_byte.
797 Don't set deprecated_register_raw_size.
798 Don't set deprecated_max_register_raw_size.
799 Don't set deprecated_register_virtual_size.
800 Don't set deprecated_max_register_virtual_size.
801 Don't set deprecated_register_virtual_type.
802 Set register_type method.
804 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
806 * Makefile.in (linux-nat.o): Add rule.
807 * linux-nat.c: New file.
808 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
809 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
810 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
811 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
812 * config/arm/linux.mh (NATDEPFILES): Likewise.
813 * config/i386/linux.mh (NATDEPFILES): Likewise.
814 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
815 * config/ia64/linux.mh (NATDEPFILES): Likewise.
816 * config/m68k/linux.mh (NATDEPFILES): Likewise.
817 * config/mips/linux.mh (NATDEPFILES): Likewise.
818 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
819 * config/s390/s390.mh (NATDEPFILES): Likewise.
820 * config/sparc/linux.mh (NATDEPFILES): Likewise.
822 2003-06-15 Mark Kettenis <kettenis@gnu.org>
824 * i387-tdep.c: Reorder includes, fix some whitespace issues and
825 replace out-of-date comment.
827 2003-06-15 Andrew Cagney <cagney@redhat.com>
829 * rdi-share/host.h (Fail): Change to a varargs function.
830 * remote-rdi.c (Fail): Update.
832 2003-06-15 Mark Kettenis <kettenis@gnu.org>
834 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
835 (i386_convert_register_p, i386_register_to_value,
836 i386_register_from_value): Handle types longer than 8 bytes.
838 2003-06-15 Mark Kettenis <kettenis@gnu.org>
840 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
841 Move floating-point code to new function in i387-tdep.c.
842 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
843 New functions containing code moved here from i386-tdep.c.
844 * i387-tdep.h: Add opaque declaration for `struct type'.
845 (i387_register_to_value, i387_value_to_register): New prototypes.
846 * x86-64-tdep.c (x86_64_convert_register_p): New function.
847 (x86_64_init_abi): Set convert_register_p, register_to_value and
848 value_to_register here.
850 2003-06-14 Andrew Cagney <cagney@redhat.com>
852 * mips-tdep.c (mips_register_to_value): Make static.
853 (mips_value_to_register): Make static.
854 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
855 * ia64-tdep.c (ia64_register_raw_size): Make static.
856 (ia64_register_virtual_size): Make static.
857 (ia64_register_byte): Make static.
858 * i387-tdep.c: Include "i387-tdep.h".
859 (print_387_control_word): Delete function.
860 (print_387_status_word): Delete function.
861 (print_387_status_bits): Delete function.
862 (print_387_control_bits): Delete function.
863 * Makefile.in (i387-tdep.o): Update dependencies.
864 * rdi-share/host.h (Fail): Declare.
865 * remote-rdi.c (Fail): Update to match declaration.
867 2003-06-14 Andrew Cagney <cagney@redhat.com>
869 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
870 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
871 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
872 * config/djgpp/fnchange.lst: Delete "remote-array.c".
873 * README: Delete reference to remote-array.
874 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
875 (remote-array.o): Delete target.
876 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
877 * remote-array.c: Delete file.
879 2003-06-14 Andrew Cagney <cagney@redhat.com>
880 Mark Kettenis <kettenis@gnu.org>
882 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
883 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
884 parameter with "frame".
885 * gdbarch.h, gdbarch.c: Re-generate.
886 * frame.h (put_frame_register): Declare.
887 * frame.c (put_frame_register): New function.
888 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
889 (legacy_register_to_value): Rewrite, use "frame" to get the
891 (legacy_value_to_register): Rewrite, use "frame" to find the
892 register's location before storing.
893 * arch-utils.h (legacy_convert_register_p): Update.
894 (legacy_register_to_value, legacy_value_to_register): Update.
895 * findvar.c (value_from_register): Rewrite, eliminate use of
896 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
897 "frame" to REGISTER_TO_VALUE.
898 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
899 lval_reg_frame_relative + lval_register branch of the switch. Do
900 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
901 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
902 I386_EDI_REGNUM): New defines.
903 (i386_next_regnum, i386_convert_register_p,
904 i386_register_to_value, i386_value_to_register): New functions.
905 (i386_register_convertible, i386_register_convert_to_virtual,
906 i386_convert_to_raw): Remove functions.
907 (i386_gdbarch_init): Set convert_register_p, register_to_value and
908 value_to_register instead of register_convertible,
909 register_convert_to_virtual and register_convert_to_raw.
910 * mips-tdep.c (mips_convert_register_p): New function.
911 (mips_value_to_register): Replace mips_register_convert_from_type.
912 (mips_register_to_value): Replace mips_register_convert_to_type.
913 (mips_gdbarch_init): Set conver_register_p, value_to_register and
915 * alpha-tdep.c (alpha_convert_register_p): Update.
916 (alpha_value_to_register): Update, store the register.
917 (alpha_register_to_value): Update, fetch the register.
919 2003-06-14 Theodore A. Roth <troth@openavr.org>
921 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
922 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
923 Don't set deprecated_call_dummy_words.
924 Remove commented out set_gdbarch_believe_pcc_promotion() call.
925 Don't set remote_translate_xfer_address.
926 (avr_io_reg_read_command): Remove commented out debug printf.
929 2003-06-14 Theodore A. Roth <troth@openavr.org>
931 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
932 causes gdb to seg fault.
934 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
936 * sparc-nat.c (fetch_inferior_registers): Correct
937 a reference to "registers".
939 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
941 * Makefile.in (exc_request_U_h): Define
942 (exc_request_S_h): Likewise.
943 (msg_reply_S_h): Likewise.
945 (notify_S_h): Likewise.
946 (process_reply_S_h): Likewise.
947 (gnu-nat.o): Depend on gdb_obstack_h
948 * gnu-nat.c: Include "gdb_obstack.h".
950 2003-06-13 Andrew Cagney <cagney@redhat.com>
952 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
953 * gdbarch.h, gdbarch.c: Re-generate.
955 2003-06-13 Andrew Cagney <cagney@redhat.com>
957 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
958 when deprecated REGISTER macros can be deleted.
959 * gdbarch.h, gdbarch.c: Re-generate.
961 2003-06-13 Jim Blandy <jimb@redhat.com>
963 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
964 Linux entry point symbols for _dl_debug_state, too.
966 2003-06-13 Andrew Cagney <cagney@redhat.com>
968 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
969 available, do not use the FP register, and always save the TOS.
970 * dummy-frame.c (dummy_frame_this_id): Do not assert
971 SAVE_DUMMY_FRAME_TOS.
972 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
973 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
974 (i386_push_dummy_call): Add 8 to the returned SP.
975 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
976 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
977 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
978 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
979 (x86_64_push_dummy_call): Return "sp + 16".
980 (x86_64_init_abi): Do not set save_dummy_frame_tos.
981 * alpha-tdep.c (alpha_gdbarch_init): Do not set
982 save_dummy_frame_tos.
984 2003-06-13 Jim Blandy <jimb@redhat.com>
986 * frv-tdep.c (frv_use_struct_convention): Delete static
987 declaration for function deleted in my change of 2003-06-12.
989 2003-06-13 Theodore A. Roth <troth@openavr.org>
991 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
992 (avr_pointer_to_address): Shift code addrs left 1 bit.
993 (avr_convert_from_func_ptr_addr): Delete function since operation is
994 better handled by avr_address_to_pointer and avr_pointer_to_address.
995 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
997 2003-06-13 Mark Kettenis <kettenis@gnu.org>
999 From Kelley Cook <kelleycook@wideopenwest.com>:
1000 * configure.host: Accept i[34567]86 variants.
1001 * configure.tgt: Likewise.
1002 * nlm/configure.in: Likewise.
1003 * nlm/configure: Regenerated.
1005 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
1007 * arm-tdep.c (solib-svr4.h): Dont' include it.
1008 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
1009 * arm-linux-tdep.c: ... here. Make static.
1010 (arm_linux_init_abi): Register it.
1011 (solib-svr4.h): Include it.
1012 * Makefile.in: Update dependencies.
1013 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
1014 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
1016 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
1018 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
1019 indicate registers used for return values.
1020 (struct frame_extra_info): Drop args_pointer and locals_pointer.
1021 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
1023 (h8300_init_extra_frame_info): Ditto.
1024 (h8300_frame_locals_address): Removed.
1025 (h8300_frame_args_address): Removed.
1026 (h8300_extract_return_value): Use new regcache structure. Only care
1028 (h8300h_extract_return_value): Same function for 32 bit CPUs.
1029 (h8300_store_return_value): Use new regcache structure. Only care
1031 (h8300h_store_return_value): Same function for 32 bit CPUs.
1032 (h8300_store_struct_return): Removed.
1033 (h8300_extract_struct_value_address): Use new regcache structure.
1034 (h8300h_extract_struct_value_address): Removed.
1035 (h8300_push_dummy_code): New function.
1036 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
1037 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
1038 set_gdbarch_store_return_value architecture dependent.
1039 Call set_gdbarch_push_dummy_code and
1040 set_gdbarch_extract_struct_value_address.
1041 Remove calls to set_gdbarch_frame_args_address,
1042 set_gdbarch_frame_locals_address,
1043 set_gdbarch_deprecated_store_struct_return,
1044 set_gdbarch_deprecated_extract_return_value,
1045 set_gdbarch_deprecated_extract_struct_value_address,
1046 set_gdbarch_deprecated_call_dummy_words and
1047 set_gdbarch_deprecated_sizeof_call_dummy_words.
1049 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
1051 * h8300-tdep.c (h8300_register_byte): Remove.
1052 (h8300h_register_byte): Remove.
1053 (h8300_register_virtual_type): Remove. Substitute by...
1054 (h8300_register_type): New function.
1055 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
1056 (h8300h_extract_struct_value_address): Ditto.
1057 (h8300_gdbarch_init): Drop calls to
1058 set_gdbarch_deprecated_register_byte and
1059 set_gdbarch_deprecated_register_virtual_type.
1060 Add call to set_gdbarch_register_type.
1062 2003-06-13 Andrew Cagney <cagney@redhat.com>
1064 * gdbarch.sh: Update comments on registers.
1065 (deprecated_register_byte): Rename register_byte.
1066 (deprecated_register_raw_size): Rename register_raw_size.
1067 (deprecated_register_virtual_size): Rename register_virtual_size.
1068 (deprecated_register_virtual_type): Rename register_virtual_type.
1069 * gdbarch.h, gdbarch.c: Re-generate.
1070 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1071 * vax-tdep.c (vax_gdbarch_init): Update.
1072 * v850-tdep.c (v850_gdbarch_init): Update.
1073 * sparc-tdep.c (sparc_gdbarch_init): Update.
1074 * sh-tdep.c (sh_gdbarch_init): Update.
1075 * s390-tdep.c (s390_gdbarch_init): Update.
1076 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1077 * ns32k-tdep.c: Update.
1078 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1079 * mips-tdep.c (mips_gdbarch_init): Update.
1080 * mcore-tdep.c (mcore_gdbarch_init): Update.
1081 * m68k-tdep.c (m68k_gdbarch_init): Update.
1082 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1083 * ia64-tdep.c (ia64_gdbarch_init): Update.
1084 * hppa-tdep.c (hppa_gdbarch_init): Update.
1085 * h8300-tdep.c (h8300_gdbarch_init): Update.
1086 * frv-tdep.c (frv_gdbarch_init): Update.
1087 * cris-tdep.c (cris_gdbarch_init): Update.
1088 * avr-tdep.c (avr_gdbarch_init): Update.
1089 * alpha-tdep.c (alpha_gdbarch_init): Update.
1090 * arm-tdep.c (arm_gdbarch_init): Update.
1092 2003-06-13 Andrew Cagney <cagney@redhat.com>
1094 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
1095 mips_o32_use_struct_convention with always_use_struct_convention.
1097 2003-06-12 David Carlton <carlton@kealia.com>
1099 * cp-namespace.c (cp_set_block_scope): Comment out
1100 processing_has_namespace_info branch.
1102 2003-06-12 Jim Blandy <jimb@redhat.com>
1104 Recognize and skip 64-bit PowerPC Linux linkage functions.
1105 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
1106 insn_pattern, insns_match_pattern, d_field, ds_field): New
1107 functions, macros, and types for working with PPC instructions.
1108 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
1109 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
1110 ppc64_skip_trampoline_code): New functions, variables, and macros
1111 for recognizing and skipping linkage functions.
1112 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
1113 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
1115 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
1116 register offsets for both the 32- and 64-bit interfaces.
1118 Actually finish the job started by my change of 2003-05-29.
1119 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
1120 other #definition of this.
1121 (ppc_linux_skip_trampoline_code): Remove declaration.
1122 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
1124 (ppc_linux_init_abi): Register it as the skip_trampoline_code
1127 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
1128 'long' on ppc64-*-linux*.
1130 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
1131 isn't #defined, assume the register doesn't exist: act as if
1132 tdep->ppc_mq_regnum were -1.
1134 * configure.host, configure.tgt: Add entries for
1135 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
1137 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
1140 * arch-utils.c (always_use_struct_convention): New function.
1141 * arch-utils.h (always_use_struct_convention): New prototype.
1142 * alpha-tdep.c (alpha_use_struct_convention): Delete.
1143 (alpha_gdbarch_init): Register always_use_struct_convention,
1144 instead of alpha_use_struct_convention.
1145 * cris-tdep.c (cris_use_struct_convention): Delete.
1146 (cris_gdbarch_init): Register always_use_struct_convention,
1147 instead of cris_use_struct_convention.
1148 * frv-tdep.c (frv_use_struct_convention): Delete.
1149 (frv_gdbarch_init): Register always_use_struct_convention,
1150 instead of frv_use_struct_convention.
1151 * h8300-tdep.c (h8300_use_struct_convention): Delete.
1152 (h8300_gdbarch_init): Register always_use_struct_convention,
1153 instead of h8300_use_struct_convention.
1154 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1155 (mips_o32_gdbarch_init): Register always_use_struct_convention,
1156 instead of mips_o32_use_struct_convention.
1158 2003-06-12 Andrew Cagney <cagney@redhat.com>
1160 * wince.c: Include "mips-tdep.h".
1161 * mips-tdep.h (mips_next_pc): Declare.
1162 * mcore-tdep.c: Make more local functions static.
1163 * Makefile.in (wince.o): Update dependencies.
1165 2003-06-12 David Carlton <carlton@kealia.com>
1167 * symtab.c (lookup_symbol_aux_minsyms): Replace
1168 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
1169 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
1170 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
1171 SYMBOL_NATURAL_NAME.
1173 2003-06-12 Andreas Schwab <schwab@suse.de>
1175 * Makefile.in (tuiDisassem.o): Update dependencies.
1177 2003-06-12 David Carlton <carlton@bactrian.org>
1179 * symtab.h: Delete declaration of make_symbol_overload_list.
1180 Add declaration of lookup_partial_symbol.
1181 * symtab.c (remove_params): Move to cp-support.c.
1182 (overload_list_add_symbol, make_symbol_overload_list)
1183 (sym_return_val_size, sym_return_val_index): Ditto.
1184 (lookup_partial_symbol): Make extern.
1185 * cp-support.h: Add declaration of make_symbol_overload_list.
1186 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
1187 symtab.h, and block.h.
1188 (remove_params): Move here from symtab.c.
1189 (overload_list_add_symbol, make_symbol_overload_list)
1190 (sym_return_val_size, sym_return_val_index): Ditto.
1191 * valops.c: Include cp-support.h.
1192 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
1193 frame_h, and block_h.
1194 (valops.o): Depend on cp_support_h.
1196 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
1198 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
1199 substitute by NUM_REGS throughout.
1200 (h8300_register_name): Only care for H8/300 and H8/300H registers.
1201 (h8300s_register_name): New function for H8S registers.
1202 (h8300sx_register_name): Ditto for H8SX registers.
1203 (h8300_print_register): Revise register printing, avoid depending
1205 (h8300_register_byte): Only care for H8/300 registers.
1206 (h8300h_register_byte): New function for any other architecture.
1207 (h8300_register_raw_size): Remove.
1208 (h8300_register_virtual_type): Revise to return actually useful
1210 (h8300_extract_struct_value_address): Only care for H8/300 registers.
1211 (h8300h_extract_struct_value_address): New function for any other
1213 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
1214 set_gdbarch_register_name, set_gdbarch_register_byte,
1215 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
1216 Remove calls to set_gdbarch_deprecated_register_size,
1217 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
1218 set_gdbarch_deprecated_max_register_raw_size,
1219 set_gdbarch_register_virtual_size and
1220 set_gdbarch_deprecated_max_register_virtual_size entirely.
1221 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
1222 set_gdbarch_long_double_bit.
1224 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
1226 * doublest.c (convert_doublest_to_floatformat): When dealing
1227 with the implied integer bit, only alter mant_bits if we are
1228 processing a full 32 bits of mantissa.
1230 2003-06-11 David Carlton <carlton@bactrian.org>
1232 * dictionary.h: New.
1233 * dictionary.c: New.
1234 * block.h: Add opaque declaration for struct dictionary.
1235 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
1237 (BLOCK_DICT): New macro.
1238 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
1239 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
1241 (ALL_BLOCK_SYMBOLS): Update definition.
1242 * Makefile.in (SFILES): Add dictionary.c.
1243 (dictionary_h): New.
1244 (COMMON_OBS): Add dictionary.o.
1245 (dictionary.o): New.
1246 (ada-lang.o): Depend on dictionary_h.
1247 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
1248 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
1249 (mi-cmd-stack.o): Ditto.
1250 (gdbtk-cmds.o): Update dependencies.
1251 (gdbtk-stack.o): Ditto.
1252 * ada-lang.c: Include dictionary.h.
1253 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
1254 (fill_in_ada_prototype, debug_print_block): Ditto.
1255 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
1256 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
1258 * mdebugread.c: Include dictionary.h.
1259 (struct parse_stack): Delete 'maxsyms' member.
1260 (parse_symbol): Update calls to new_block. Delete calls to
1261 shrink_block. Use dictionary methods.
1262 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
1263 Update calls to new_symtab. Don't maintain maxsyms data.
1264 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
1265 (add_symbol): Just call dict_add_symbol.
1266 (new_symtab): Delete 'maxsyms' argument.
1267 (new_symtab): Update calls to new_block.
1268 (new_block): Delete 'maxsyms' argument; add 'function' argument.
1269 (shrink_block): Delete function.
1270 (fixup_sigtramp): Update call to new_block. Add symbol via
1272 * jv-lang.c: Include dictionary.h.
1273 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
1274 appropriately. Set class_symtab->free_func. Make sure the
1275 blockvector is big enough to hold two blocks.
1276 (add_class_symtab_symbol): Use dictionary methods.
1277 (free_class_block): New function.
1278 (type_from_class): Replace explicit iteration by
1280 * symtab.h (struct symtab): Replace 'free_ptr' method by
1282 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
1284 * dwarfread.c (psymtab_to_symtab_1): Delete call to
1286 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
1287 Include dictionary.h.
1288 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
1289 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
1291 * objfiles.c: Include dictionary.h.
1292 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
1293 * buildsym.c: Include dictionary.h.
1294 (finish_block): Use dictionary methods.
1295 (end_symtab): Set free_func to NULL, not free_ptr.
1296 * tracepoint.c: Include dictionary.h.
1297 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
1298 (scope_info): Ditto.
1299 * stack.c: Include dictionary.h.
1300 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
1301 (print_block_frame_labels, print_frame_arg_vars)
1302 (print_frame_args): Ditto.
1303 * symmisc.c (free_symtab_block): Use dictionary methods.
1304 (dump_symtab): Ditto.
1305 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
1306 Include dictionary.h.
1307 * symfile.h: Delete declarations of sort_block_syms,
1309 * symfile.c (sort_block_syms): Delete.
1310 (sort_symtab_syms): Delete.
1311 * symtab.c: Include dictionary.h.
1312 (lookup_block_symbol): Use dictionary iterators.
1313 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
1314 (search_symbols, make_symbol_completion_list): Ditto.
1315 (make_symbol_overload_list): Ditto.
1316 * valops.c (value_of_local): Use dict_empty.
1317 Include dictionary.h.
1319 2003-06-11 J. Brobecker <brobecker@gnat.com>
1321 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
1323 2003-06-11 David Carlton <carlton@bactrian.org>
1325 * block.h (BLOCK_SHOULD_SORT): Delete.
1326 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
1328 * ada-lang.c (ada_add_block_symbols): Ditto.
1329 * symfile.c (sort_block_syms): Delete.
1330 (sort_symtab_syms): Ditto.
1331 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
1333 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
1334 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
1335 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
1336 * dwarfread.c (psymtab_to_symtab_1): Ditto.
1337 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
1338 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1339 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
1341 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
1343 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
1346 2003-06-11 Andrew Cagney <cagney@redhat.com>
1348 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
1349 REGISTER_CONVERTIBLE.
1350 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
1351 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
1352 * gdbarch.h, gdbarch.c: Re-generate.
1353 * arch-utils.h (deprecated_register_convertible_not): Rename
1354 generic_register_convertible_not.
1355 * arch-utils.c (deprecated_register_convertible_not): Rename
1356 generic_register_convertible.
1357 (legacy_convert_register_p, legacy_register_to_value): Update.
1358 * sh-tdep.c (sh64_push_arguments): Update.
1359 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
1360 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
1361 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
1362 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
1363 * arch-utils.c (legacy_value_to_register): Update.
1364 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1365 (rs6000_register_convert_to_raw): Make parameter "from" const.
1366 * mips-tdep.c (mips_gdbarch_init): Update.
1367 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
1368 * infcmd.c (default_print_registers_info): Update.
1369 * ia64-tdep.c (ia64_gdbarch_init): Update.
1370 (ia64_register_convert_to_raw): Make parameter "from" const.
1371 * i386-tdep.c (i386_gdbarch_init): Update.
1372 (i386_register_convert_to_raw): Update.
1374 2003-06-11 Andrew Cagney <cagney@redhat.com>
1376 * remote-fileio.c: Include "remote-fileio.h".
1377 * Makefile.in (remote-fileio.o): Update dependencies.
1378 (remote_fileio_h): Fix typo.
1380 2003-06-11 Andrew Cagney <cagney@redhat.com>
1382 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
1383 (xstormy16_save_dummy_frame_tos): Make static.
1384 (_initialize_xstormy16_tdep): Add declaration.
1385 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
1386 * v850-tdep.c: Make local functions static.
1387 (_initialize_v850_tdep): Add declaration.
1388 * sparc-tdep.c: Make local functions static.
1389 (_initialize_sparc_tdep): Add declaration.
1390 * sh-tdep.c: Make local functions static.
1391 (_initialize_sh_tdep): Add declaration.
1392 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
1393 * s390-tdep.c: Make local functions static.
1394 (_initialize_s390_tdep): Add declaration.
1395 * dbxread.c (find_stab_function_addr): Make static.
1396 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
1397 * ocd.c (_initialize_remote_ocd): Add declaration.
1398 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
1399 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
1400 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
1401 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
1402 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
1403 * remote-array.c (_initialize_array): Add declaration.
1404 (_initialize_remote_monitors): Add declaration.
1405 * remote-mips.c: Make local functions static.
1406 (_initialize_remote_mips): Add declaration.
1407 * mcore-tdep.c: Make all local functions static.
1408 (_initialize_mcore_tdep): Add declaration.
1409 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
1410 * abug-rom.c (_initialize_abug_rom): Add declaration.
1411 * rom68k-rom.c (_initialize_rom68k): Add declaration.
1412 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
1413 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
1414 * remote-est.c (_initialize_est): Add declaration.
1415 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
1416 (m68hc11_call_dummy_address): Make static.
1417 * ia64-tdep.c: Make local functions static.
1418 (_initialize_ia64_tdep): Add declaration.
1419 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
1420 * monitor.c (monitor_wait_filter): Make static.
1421 (_initialize_remote_monitors): Add declaration.
1422 * remote-hms.c (_initialize_remote_hms): Add declaration.
1423 * remote-e7000.c (fetch_regs_from_dump): Make static.
1424 (expect_n): Make static.
1425 (_initialize_remote_e7000): Add declaration.
1426 * ser-e7kpc.c: Always include "defs.h".
1427 (_initialize_ser_e7000pc): Add declaration.
1428 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
1429 * cris-tdep.c: Make all but one function static.
1430 (_initialize_cris_tdep): Add declaration.
1431 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
1432 * solib.c (update_solib_list): Make static.
1433 (_initialize_solib): Add declaration.
1434 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
1435 (_initialize_avr_tdep): Add declaration.
1436 * remote-rdi.c (voiddummy): Make static.
1437 (_initialize_remote_rdi): Add declaration.
1438 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
1439 * remote-rdp.c (send_rdp): Make static.
1440 (_initialize_remote_rdp): Add declaration.
1441 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
1443 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
1445 * remote-fileio.c: Make ari happy.
1447 2003-06-10 J. Brobecker <brobecker@gnat.com>
1449 * rs6000-nat.c (child_xfer_memory): Compute the right address when
1450 fetching the trailing bytes of the buffer we are about to write.
1452 2003-06-10 Andrew Cagney <cagney@redhat.com>
1454 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
1455 * Makefile.in (remote-fileio.o): Update dependencies.
1456 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
1457 include <setjmp.h>, or <sys/types.h> conditional on USG.
1458 (remote_fio_jmp_buf): Delete global variable.
1460 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
1461 Martin M. Hunt <hunt@redhat.com>
1463 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
1464 (SFILES): Add remote-fileio.c.
1465 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
1466 dependencies for building remote.o.
1467 * remote-fileio.c: New file implementing the remote File-I/O protocol.
1468 * remote-fileio.h: New header file defining remote File-I/O interface.
1469 * remote.c (remote_write_bytes, remote_read_bytes): Remove
1470 static storage class.
1471 (remote_wait, remote_async_wait): Call remote_fileio_request() on
1473 (_initialize_remote): Call initialize_remote_fileio().
1474 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
1475 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
1476 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
1477 (captured_main): Initialize new ui_files.
1478 * ui-file.c: Add read and fgets input functions.
1479 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
1480 (null_file_read): New function.
1481 (ui_file_read): New function.
1482 (set_ui_file_read): New function.
1483 (stdio_file_read): New function.
1484 * ui-file.h: New type ui_file_read_ftype.
1485 (set_ui_file_read): Declare.
1486 (ui_file_read): Declare.
1488 2003-06-09 Andrew Cagney <cagney@redhat.com>
1490 * frame.h (deprecated_unwind_get_saved_register): Rename
1491 generic_unwind_get_saved_register, update comments.
1492 * mips-tdep.c (mips_get_saved_register): Update.
1493 * frame.c (deprecated_unwind_get_saved_register): Update.
1495 2003-06-09 Andrew Cagney <cagney@redhat.com>
1497 * vax-tdep.c (vax_frame_locals_address): Delete function.
1498 (vax_gdbarch_init): Do not set frame_locals_address.
1499 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
1500 (m68hc11_gdbarch_init): Do not set frame_locals_address.
1501 * s390-tdep.c (s390_frame_args_address): Delete function.
1502 (s390_gdbarch_init): Do not set frame_args_address or
1503 frame_locals_address.
1504 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
1505 (ns32k_gdbarch_init): Do not set frame_locals_address.
1506 * hppa-tdep.c (hppa_frame_args_address): Delete function.
1507 (hppa_frame_locals_address): Delete function.
1508 (hppa_gdbarch_init): Do not set frame_args_address, or
1509 frame_locals_address.
1510 * arm-tdep.c (arm_frame_args_address): Delete.
1511 (arm_frame_locals_address): Delete.
1512 (arm_gdbarch_init): Do not set frame_args_address, or
1513 frame_locals_address.
1515 2003-06-09 Andrew Cagney <cagney@redhat.com>
1517 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
1518 * gdbarch.h, gdbarch.c: Re-generate.
1519 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
1520 * arch-utils.c (frame_num_args_unknown): Delete function.
1521 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
1522 (frame_info): Use FRAME_NUM_ARGS_P.
1523 * arm-tdep.c (arm_frame_num_args): Delete function.
1524 (arm_gdbarch_init): Do not set frame_num_args.
1525 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
1526 * hppa-tdep.c (hppa_frame_num_args): Delete function.
1527 (hppa_gdbarch_init): Do not set frame_num_args.
1528 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
1529 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1530 frame_num_args to default frame_num_args_unknown.
1531 * v850-tdep.c (v850_gdbarch_init): Ditto.
1532 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1533 * sh-tdep.c (sh_gdbarch_init): Ditto.
1534 * s390-tdep.c (s390_gdbarch_init): Ditto.
1535 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1536 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1537 * mips-tdep.c (mips_gdbarch_init): Ditto.
1538 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1539 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1540 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1541 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1542 * i386-tdep.c (i386_gdbarch_init): Ditto.
1543 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1544 * frv-tdep.c (frv_gdbarch_init): Ditto.
1545 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1546 * cris-tdep.c (cris_gdbarch_init): Ditto.
1547 * avr-tdep.c (avr_gdbarch_init): Ditto.
1548 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1550 2003-06-09 Andrew Cagney <cagney@redhat.com>
1552 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
1553 (print_frame_args): Moved to "stack.c".
1554 * stack.c: Include "gdb_assert.h".
1555 (print_frame_nameless_args): Moved from "printcmd.c", made static.
1556 (print_frame_args): Moved from "printcmd.c".
1557 * frame.h (print_frame_args): Delete declaration.
1558 * Makefile.in (stack.o): Update dependencies.
1560 2003-06-08 Andrew Cagney <cagney@redhat.com>
1562 * frame.c (get_prev_frame): Remove reference to
1563 frame_args_address_correct in comments.
1564 * frame-base.c (default_frame_args_address): Delete code
1565 conditional on FRAME_ARGS_ADDRESS_CORRECT.
1566 * vax-tdep.c (vax_frame_args_address_correct): Delete.
1567 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
1568 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
1569 (vax_frame_args_address_correct): Delete declaration.
1571 2003-06-08 Andrew Cagney <cagney@redhat.com>
1573 * gdbarch.sh (UNWIND_SP): Add.
1574 * gdbarch.h, gdbarch.c: Re-generate.
1575 * frame.c (frame_sp_unwind): New function.
1576 (get_frame_sp): New function.
1577 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
1578 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
1579 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
1581 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
1582 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
1584 2003-06-08 Andrew Cagney <cagney@redhat.com>
1586 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
1589 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
1590 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
1591 * config/m68k/tm-sun3.h: Update.
1592 * config/m68k/tm-m68klynx.h: Update.
1593 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
1595 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
1596 trad_frame". Update comments.
1597 * d10v-tdep.c (struct d10v_unwind_cache): Update.
1598 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
1599 (trad_frame_register_value, trad_frame_prev_register): Update.
1601 2003-06-08 Andrew Cagney <cagney@redhat.com>
1603 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
1604 from GCC's acinclude.m4.
1605 * configure.in: Check for getopt's delcaration.
1606 * aclocal.m4, config.in, configure: Re-generate.
1607 * main.c (error_init): Delete declaration.
1608 * defs.h (error_init): Declare.
1609 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
1610 (rs6000_convert_from_func_ptr_addr): Make static.
1611 (_initialize_rs6000_tdep): Add declaration.
1612 * cli/cli-cmds.c (dont_repeat): Delete declaration.
1613 (show_commands, set_verbose, show_history): Delete declaration.
1614 * top.h (set_verbose): Add declaration.
1615 (show_history, set_history, show_commands): Add declaration.
1616 (do_restore_instream_cleanup): Add declaration.
1617 * objc-lang.c (specialcmp): Make static.
1618 (print_object_command): Make static.
1619 (find_objc_msgsend): Make static.
1620 (find_objc_msgcall_submethod_helper): Make static.
1621 (find_objc_msgcall_submethod): Make static.
1622 (_initialize_objc_language): Add declaration.
1623 (find_implementation_from_class): Make static.
1624 (find_implementation): Make static.
1625 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
1626 * objc-lang.h (lookup_struct_typedef): Add declaration.
1627 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
1628 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
1629 (do_restore_user_call_depth): Make static.
1630 (do_restore_instream_cleanup): Delete declaration.
1631 (dont_repeat): Delete declaration.
1632 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
1633 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
1634 * reggroups.c (_initialize_reggroup): Add declaration.
1635 * cp-support.c (_initialize_cp_support): Add declaration.
1636 * cp-abi.c (_initialize_cp_abi): Add declaration.
1637 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
1638 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
1639 (_initialize_gnu_v3_abi): Add declaration.
1640 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
1641 (_initialize_gnu_v2_abi): Add declaration.
1642 * frame-base.c (_initialize_frame_base): Add declaration.
1643 * doublest.c (floatformat_from_length): Make static.
1644 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
1645 * frame.c (create_sentinel_frame): Make static.
1646 (_initialize_frame): Add declaration.
1647 * top.c (do_catch_errors): Make static.
1648 (gdb_rl_operate_and_get_next_completion): Make static.
1649 * typeprint.c: Include "typeprint.h".
1650 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
1651 (sentinel_frame_this_id): Make static.
1652 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
1653 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
1654 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
1655 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
1656 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
1657 * maint.c (maintenance_print_architecture): Make static.
1658 * signals/signals.c (_initialize_signals): Add declaration.
1659 * std-regs.c (_initialize_frame_reg): Add declaration.
1660 * jv-exp.y (push_variable): ISO C definition.
1661 (push_qualified_expression_name): Ditto.
1662 * memattr.c (_initialize_mem): Add declaration.
1663 * remote.c (remote_check_watch_resources): Make static.
1664 (remote_stopped_by_watchpoint): Make static.
1665 (remote_stopped_data_address): Make static.
1666 * d10v-tdep.c (nr_dmap_regs): Make static.
1667 (a0_regnum): Make static.
1668 (d10v_frame_unwind_cache): Make static.
1669 (d10v_frame_p): Make static.
1670 * osabi.c (show_osabi): Make static.
1671 (_initialize_gdb_osabi): Add extern declaration.
1672 * gdbtypes.c (make_qualified_type): Make static.
1673 (safe_parse_type): Make static.
1674 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
1675 * macrotab.c (macro_bcache_free): Make static.
1676 * interps.c (interp_set_quiet): Make static.
1677 (interpreter_exec_cmd): Make static.
1678 * stack.h (select_frame_command): New file.
1679 * stack.c: Include "stack.h".
1680 (select_frame_command_wrapper): Delete function.
1681 (select_frame_command): Make global.
1682 * infcall.c: Include "infcall.h".
1683 * linespec.c: Include "linespec.h".
1684 * symfile.c (sections_overlap): Make static.
1685 * cp-support.h (cp_initialize_namespace): ISO C declaration.
1686 * charset.c (_initialize_charset): Add missing prototype.
1687 * regcache.c (init_legacy_regcache_descr): Make static.
1688 (do_regcache_xfree): Make static.
1689 (regcache_xfer_part): Make static.
1690 (_initialize_regcache): Add missing prototype.
1691 * breakpoint.c (parse_breakpoint_sals): Make static.
1692 (breakpoint_sals_to_pc): Make static.
1693 * interps.h (clear_interpreter_hooks): ISO C declaration.
1694 * Makefile.in (stack_h): Define.
1695 (stack.o, typeprint.o, mi-main.o): Update dependencies.
1696 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
1698 2003-06-08 Andrew Cagney <cagney@redhat.com>
1700 * Makefile.in (d10v-tdep.o): Update dependencies.
1701 (SFILES): Add trad-frame.c.
1702 (trad_frame_h): Define.
1703 (COMMON_OBS): Add trad-frame.o.
1704 (trad-frame.o): Specify dependencies.
1705 * d10v-tdep.c: Include "trad-frame.h".
1706 (saved_regs_unwinder): Delete function.
1707 (d10v_frame_prev_register): Use trad_frame_prev_register.
1708 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
1709 trad_frame", delete "regs" and "prev_sp".
1710 (prologue_find_regs): Use trad-frame.
1711 * trad-frame.h, trad-frame.c: New files.
1713 2003-06-08 Mark Kettenis <kettenis@gnu.org>
1715 * dwarf2cfi.c, dwarf2cfi.h: Remove.
1717 2003-06-07 Adam Fedor <fedor@gnu.org>
1719 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
1720 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
1721 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
1722 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
1723 resolve_msgsend_super, resolve_msgsend_super_stret):
1726 2003-06-07 Andrew Cagney <cagney@redhat.com>
1728 * symfile.h: Re-indent, clean up comments.
1730 2003-06-07 Andrew Cagney <cagney@redhat.com>
1732 * inferior.h (deprecated_write_sp): Replace
1733 generic_target_write_sp.
1734 * regcache.c (deprecated_write_sp): Replace
1735 generic_target_write_sp.
1736 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1737 * vax-tdep.c (vax_gdbarch_init): Update.
1738 * v850-tdep.c (v850_gdbarch_init): Update.
1739 * sparc-tdep.c (sparc_gdbarch_init): Update.
1740 * sh-tdep.c (sh_gdbarch_init): Update.
1741 * s390-tdep.c (s390_gdbarch_init): Update.
1742 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1743 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1744 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1745 * mcore-tdep.c (mcore_gdbarch_init): Update.
1746 * m68k-tdep.c (m68k_gdbarch_init): Update.
1747 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1748 * ia64-tdep.c (ia64_gdbarch_init): Update.
1749 * h8300-tdep.c (h8300_gdbarch_init): Update.
1750 * frv-tdep.c (frv_gdbarch_init): Update.
1751 * cris-tdep.c (cris_gdbarch_init): Update.
1752 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
1754 2003-06-07 Andrew Cagney <cagney@redhat.com>
1756 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
1757 Assert that PC_REGNUM is valid.
1758 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
1760 2003-06-07 Andrew Cagney <cagney@redhat.com>
1762 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
1763 * gdbarch.h, gdbarch.c: Regenerate.
1764 * mn10300-tdep.c: Include "gdb_assert.h".
1765 (mn10300_read_fp): New function.
1766 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
1767 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
1768 * ia64-tdep.c: Include "gdb_assert.h".
1769 (ia64_read_fp): New function.
1770 (ia64_gdbarch_init): Set deprecated_target_read_fp to
1771 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
1772 * regcache.c (generic_target_read_sp): Delete function.
1773 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
1774 * inferior.h (generic_target_read_sp): Delete declaration.
1775 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
1776 generic_target_read_sp.
1777 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1778 * sparc-tdep.c (sparc_gdbarch_init): Ditto
1779 * sh-tdep.c (sh_gdbarch_init): Ditto.
1780 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1781 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
1783 2003-06-07 Andrew Cagney <cagney@redhat.com>
1785 * gdbarch.sh: Comment each field of startup_gdbarch.
1786 * gdbarch.h, gdbarch.c: Re-generate.
1788 2003-06-07 Andrew Cagney <cagney@redhat.com>
1790 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
1791 * gdbarch.h, gdbarch.c: Re-generate.
1792 * regcache.c: Update comments on read_pc et.al.
1793 (generic_target_read_pc): Delete function.
1794 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
1795 * inferior.h (generic_target_read_pc): Delete declaration.
1796 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
1797 generic_target_read_pc.
1798 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1799 * sh-tdep.c (sh_gdbarch_init): Ditto.
1800 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1801 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1803 2003-06-07 Andrew Cagney <cagney@redhat.com>
1805 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
1806 "index" with "special_local_sect". Use strcmp instead of STREQ.
1807 Append period to coments.
1809 2003-06-06 Mark Mitchell <mark@codesourcery.com>
1811 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
1812 (elfstab_offset_sections): Likewise.
1813 * gdb-stabs.h (stab_section_info): Likewise.
1814 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
1815 * objfiles.c (objfile_relocate): Likewise.
1816 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
1817 * remote.c (get_offsets): Likewise.
1818 (remote_cisco_objfile_relocate): Likewise.
1819 * somread.c (som_symfile_offsets): Likewise.
1820 * symfile.c (alloc_section_addr_info): New function.
1821 (build_section_addr_info_from_section_tab): Use it.
1822 (free_section_addr_info): Adjust.
1823 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
1824 (syms_from_objfile): Allocate local_addr dynamically.
1825 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
1827 (add_symbol_file_command): Allocate sect_opts dynamically.
1828 (reread_symbols): Avoid use of SECT_OFF_MAX.
1829 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
1830 (alloc_section_addr_info): Declare it.
1831 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
1832 * win32-nat.c (solib_symbols_add): Allocate section_addrs
1834 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
1836 2003-06-06 Andrew Cagney <cagney@redhat.com>
1838 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
1839 (d10v_frame_unwind_cache): Do not set "return_pc".
1841 2003-06-06 Michael Snyder <msnyder@redhat.com>
1843 * h8300-tdep.c: Make tidy (long lines).
1845 2003-06-06 Michal Ludvig <mludvig@suse.cz>
1847 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
1848 to regcache_collect().
1850 2003-06-05 J. Brobecker <brobecker@gnat.com>
1852 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
1853 pc_in_sigtramp multiarch method.
1854 (hppa_hpux_som_init_abi): Use it.
1855 (hppa_hpux_elf_init_abi): Likewise.
1856 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
1857 macro has been multiarched.
1858 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
1859 macro here, as hppa64 isn't multiarched yet.
1861 2003-06-05 Andrew Cagney <cagney@redhat.com>
1863 * Makefile.in (value_h): Add $(frame_h).
1864 * value.h: Include "frame.h".
1865 (struct value): Replace "frame_addr" with "frame_id".
1866 (VALUE_FRAME_ID): Replace VALUE_FRAME.
1867 * values.c (allocate_value): Use VALUE_FRAME_ID.
1868 (value_copy): Use VALUE_FRAME_ID.
1869 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
1870 * valops.c (value_assign): Update. Use frame_find_by_id.
1872 2003-06-05 Michal Ludvig <mludvig@suse.cz>
1874 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
1877 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
1879 * thread-db.c (check_event): For create/death event breakpoints,
1880 loop through all messages to ensure that we read the message
1881 corresponding to the breakpoint we are at.
1883 2003-06-04 Michael Snyder <msnyder@redhat.com>
1885 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
1887 2003-06-04 Mark Kettenis <kettenis@gnu.org>
1889 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
1890 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
1891 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
1892 when handling .eh_frame sections.
1894 2003-06-04 J. Brobecker <brobecker@gnat.com>
1896 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
1897 prepare_to_proceed procedure instead of the hppa-specific one.
1898 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
1900 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
1902 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
1903 * config.in: Regenerated.
1904 * configure.in: Add test for syscall function and check for
1905 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
1906 * configure: Regenerated.
1907 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
1909 (kill_lwp): New function that uses tkill syscall or
1910 uses kill, depending on whether threading model is nptl or not.
1911 All callers of kill() changed to use kill_lwp().
1912 (lin_lwp_wait): Make special check when WIFEXITED occurs to
1913 see if all threads have already exited in the nptl model.
1914 (stop_and_resume_callback): New callback function used by the
1915 lin_lwp_wait thread exit handling code.
1916 (stop_wait_callback): Check for threads already having exited and
1917 delete such threads fromt the lwp list when discovered.
1918 (stop_callback): Don't assert retcode of kill call.
1920 Roland McGrath <roland@redhat.com>
1921 * i386-linux-nat.c (ps_get_thread_area): New function needed by
1924 2003-06-03 Richard Henderson <rth@redhat.com>
1926 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
1927 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
1928 (alpha_sigtramp_frame_prev_register): Likewise.
1929 (alpha_heuristic_frame_prev_register): Likewise.
1930 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
1932 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
1933 alpha-specific register id names.
1934 (alpha_mdebug_frame_unwind_cache): Likewise.
1935 (alpha_mdebug_frame_prev_register): Likewise.
1937 2003-06-03 Richard Henderson <rth@redhat.com>
1939 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
1940 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
1941 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
1942 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
1944 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
1945 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
1946 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
1948 * alpha-linux-tdep.c: Remove unnecessary includes.
1949 * Makefile.in (alpha-linux-tdep.o): Update.
1951 2003-06-03 Richard Henderson <rth@redhat.com>
1953 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
1954 (alphabsd_fill_fpreg): Likewise.
1956 2003-06-03 J. Brobecker <brobecker@gnat.com>
1958 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
1959 references to struct frame_info fields by calls to the equivalent
1960 accessors. Necessary now that frame_info is opaque.
1962 2003-06-03 J. Brobecker <brobecker@gnat.com>
1964 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
1965 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
1966 structure, field no longer exists.
1968 2003-06-03 J. Brobecker <brobecker@gnat.com>
1970 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
1971 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
1973 2003-06-03 J. Brobecker <brobecker@gnat.com>
1975 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
1976 references to struct frame_info fields by calls to the equivalent
1977 accessors. Necessary now that frame_info is opaque.
1979 2003-06-03 J. Brobecker <brobecker@gnat.com>
1981 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
1982 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
1983 structure, field no longer exists.
1985 2003-06-03 Theodore A. Roth <troth@openavr.org>
1987 * remote.c (init_remote_state): Compute sizeof_g_packet by
1988 accumulation of the size of all registers instead of blindly using
1989 DEPRECATED_REGISTER_BYTES.
1991 2003-06-03 Michael Snyder <msnyder@redhat.com>
1993 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
1994 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
1997 2003-06-03 J. Brobecker <brobecker@gnat.com>
1999 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
2000 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
2002 2003-06-03 Andrew Cagney <cagney@redhat.com>
2004 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
2005 (sparc_convert_to_raw): Delete function.
2006 (sparc_gdbarch_init): Do not set register_convert_to_raw or
2007 register_convert_to_virtual.
2009 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
2011 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
2012 layer if not dealing with a statically-linked threaded program.
2014 2003-06-03 Kris Warkentin <kewarken@qnx.com>
2016 * solib.c (solib_open): Update comment to reflect actual search order.
2018 2003-06-03 Andrew Cagney <cagney@redhat.com>
2020 * frame.c (get_frame_memory_signed): New function.
2021 (get_frame_memory, get_frame_memory_unsigned): New function.
2022 (get_frame_arch): New function.
2023 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
2024 (get_frame_memory, get_frame_unsigned_memory): Declare.
2025 * d10v-tdep.c (d10v_frame_unwind_cache): Use
2026 get_frame_memory_unsigned and get_frame_arch.
2027 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
2029 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
2031 * MAINTAINERS (write after approval): Add myself.
2033 2003-06-03 Jim Blandy <jimb@redhat.com>
2035 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
2036 elements of gregset_t are 64 bits each, but access registers
2037 are still 32 bits, so they're packed two per gregset_t
2038 element. Unpack/pack them properly.
2040 2003-06-02 David Carlton <carlton@bactrian.org>
2042 * linespec.c (find_methods): Break out code into
2043 add_matching_methods and add_constructors.
2044 (add_matching_methods): New.
2045 (add_constructors): Ditto.
2047 2003-06-02 Andrew Cagney <cagney@redhat.com>
2049 * sparc-tdep.c (sparc_print_registers): Delete call to
2050 REGISTER_CONVERTIBLE.
2051 (sparc_gdbarch_init): Do not set register_convertible.
2052 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2053 * frv-tdep.c (frv_gdbarch_init): Ditto.
2054 * cris-tdep.c (cris_gdbarch_init): Ditto.
2056 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
2058 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
2059 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
2060 (syms_from_objfile): Ditto.
2062 2003-06-03 Andreas Schwab <schwab@suse.de>
2064 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
2065 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
2067 2003-06-02 Richard Henderson <rth@redhat.com>
2069 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
2070 a member of all_reggroup.
2072 2003-06-02 Richard Henderson <rth@redhat.com>
2074 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
2075 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
2076 (alpha_lds, alpha_sts): New.
2077 (alpha_convert_register_p): Change from _register_convertible.
2078 (alpha_register_to_value): Change from _convert_to_virtual;
2079 restructure and fail for type sizes other than 4 or 8.
2080 (alpha_value_to_register): Similarly.
2081 (alpha_extract_return_value): Use alpha_sts.
2082 (alpha_store_return_value): Use alpha_lds.
2083 (alpha_gdbarch_init): Update hooks.
2085 2003-06-02 Richard Henderson <rth@redhat.com>
2087 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
2089 (alpha_sigtramp_register_address): Likewise.
2091 2003-06-02 Richard Henderson <rth@redhat.com>
2093 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
2094 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
2095 * alpha-tdep.h: Declare them.
2097 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
2098 Remove zerobuf. Don't error on UNIQUE.
2099 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
2100 (ALPHA_REGSET_UNIQUE): Provide default.
2101 (supply_gregset): Use alpha_supply_int_regs.
2102 (fill_gregset): Use alpha_fill_int_regs.
2103 (supply_fpregset): Use alpha_supply_fp_regs.
2104 (fill_fpregset): Use alpha_fill_fp_regs.
2105 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
2106 (alphabsd_supply_reg): Use alpha_supply_int_regs.
2107 (alphabsd_fill_reg): Use alpha_fill_int_regs.
2108 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
2109 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
2110 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
2112 2003-06-02 Richard Henderson <rth@redhat.com>
2114 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
2116 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
2117 (alpha_store_return_value): Likewise.
2119 2003-06-02 David Carlton <carlton@math.stanford.edu>
2121 * block.c (contained_in): Add 'const' to arguments.
2122 (block_function): Ditto.
2123 * block.h: Update declarations for block_function and
2126 2003-06-02 David Carlton <carlton@math.stanford.edu>
2128 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
2129 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
2130 * p-valprint.c (pascal_val_print): Ditto.
2131 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
2133 2003-06-02 Richard Henderson <rth@redhat.com>
2135 * alpha-tdep.c (alpha_push_dummy_call): Use
2136 builtin_type_ieee_double_little instead of builtin_type_double.
2138 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
2139 sign-extension of 32-bit values.
2140 (alpha_store_return_value): Similarly.
2142 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
2143 (alpha_extract_return_value): Likewise.
2144 (alpha_store_return_value): Likewise.
2146 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
2147 (alpha_store_return_value): Error on IEEE Quad floats.
2149 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
2150 (alpha_extract_struct_value_address): Likewise.
2151 (alpha_store_return_value): Likewise.
2152 (alpha_store_struct_return): Remove.
2153 (alpha_gdbarch_init): Update hook registration to match.
2155 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
2156 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
2157 macros where appropriate.
2158 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
2159 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
2161 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
2162 for SP, GP; void_func_ptr for PC; non-language-specific types
2164 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
2166 2003-06-02 Richard Henderson <rth@redhat.com>
2168 * top.h (lim_at_start): Declare.
2169 * main.c (captured_main): Set it.
2170 * top.c (lim_at_start): Define.
2171 (command_loop): Use it instead of &environ.
2172 * event-top.c (command_handler): Likewise.
2174 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
2176 * mipsnbsd-tdep.c: Update copyright years.
2177 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
2179 2003-06-01 Richard Henderson <rth@redhat.com>
2181 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
2182 (alpha-linux-tdep.o): Update dependencies.
2183 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
2184 * alpha-mdebug-tdep.c: Remove unneeded includes.
2186 2003-06-01 Richard Henderson <rth@redhat.com>
2188 * alpha-tdep.c (alpha_register_reggroup_p): New.
2189 (alpha_gdbarch_init): Register it.
2191 2003-06-02 Andrew Cagney <cagney@redhat.com>
2193 * dwarfread.c: Eliminate "register"
2194 (decode_die_type): Eliminate assignment within "if".
2195 (struct_type, decode_array_element_type): Ditto.
2196 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
2197 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
2198 (decode_modified_type, completedieinfo): Ditto.
2199 * block.c: Eliminate "register".
2200 (blockvector_for_pc_sect): Eliminate assignment within "if".
2201 * cp-support.h (struct symbol): Opaque declaration.
2202 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
2204 2003-06-01 Richard Henderson <rth@redhat.com>
2206 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
2207 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
2209 2003-06-01 Adam Fedor <fedor@gnu.org>
2211 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
2212 * gdbarch.[ch]: Regenerate.
2213 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
2214 (hppa_gdbarch_init): Set it in the gdbarch vector.
2215 * i386-tdep.c (i386_fetch_pointer_argument): New
2216 (i386_gdbarch_init): Set it into gdbarch.
2217 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
2218 (rs6000_gdbarch_init): Set it in gdbarch.
2219 * sparc-tdep.c (sparc_fetch_pointer_argument): New
2220 (sparc_gdbarch_init): Set it in gdbarch.
2222 2003-06-01 Andrew Cagney <cagney@redhat.com>
2224 * defs.h (extract_address): Delete declaration.
2225 * findvar.c (extract_address): Delete function.
2226 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
2227 extract_address with the inline equivalent,
2228 extract_unsigned_integer.
2229 (xstormy16_extract_struct_value_address): Ditto.
2230 (xstormy16_pointer_to_address): Ditto.
2231 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
2232 * v850-tdep.c (v850_push_arguments): Ditto.
2233 (v850_extract_return_value): Ditto.
2234 (v850_extract_struct_value_address): Ditto.
2235 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
2236 (sparcnbsd_get_longjmp_target_64): Ditto.
2237 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
2238 (get_longjmp_target): Ditto.
2239 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
2240 (sh64_extract_struct_value_address): Ditto.
2241 (sh_push_arguments): Ditto.
2242 (sh64_push_arguments): Ditto.
2243 * remote-vxsparc.c (vx_read_register): Ditto.
2244 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
2245 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
2246 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
2247 * mipsv4-nat.c (get_longjmp_target): Ditto.
2248 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
2249 * mips-nat.c (get_longjmp_target): Ditto.
2250 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
2251 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
2252 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
2253 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
2254 * irix5-nat.c (get_longjmp_target): Ditto.
2255 * irix4-nat.c (get_longjmp_target): Ditto.
2256 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
2257 (ia64_push_arguments): Ditto.
2258 * hpux-thread.c (hpux_thread_store_registers): Ditto.
2259 * h8300-tdep.c (h8300_push_arguments): Ditto.
2260 (h8300_store_return_value): Ditto.
2261 (h8300_extract_struct_value_address): Ditto.
2262 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
2263 (frv_push_arguments): Ditto.
2264 * avr-tdep.c (avr_pointer_to_address): Ditto.
2265 (avr_push_arguments): Ditto.
2266 * arm-tdep.c (arm_push_dummy_call): Ditto.
2267 (arm_get_longjmp_target): Ditto.
2268 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
2269 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
2270 (alpha_get_longjmp_target): Ditto.
2272 * solib-irix.c (extract_mips_address): Inline extract_address,
2273 replacing it with extract_signed_integer.
2274 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
2275 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
2276 (first_link_map_member, open_symbol_file_object): Ditto.
2277 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
2278 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
2279 (LM_NEXT, LM_NAME): Ditto.
2281 2003-06-01 Richard Henderson <rth@redhat.com>
2283 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
2284 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
2285 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
2286 (alpha_cannot_store_register): Likewise.
2287 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
2288 * alpha-nat.c (supply_gregset): Likewise.
2289 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
2291 2003-06-01 Andrew Cagney <cagney@redhat.com>
2293 * infcall.c (call_function_by_hand): Update comment on
2294 DEPRECATED_DUMMY_WRITE_SP.
2296 * mips-tdep.c (mips_gdbarch_init): Do not set
2297 deprecated_dummy_write_sp.
2298 (mips_eabi_push_dummy_call): Set the SP register.
2299 (mips_o64_push_dummy_call): Set the SP register.
2300 (mips_o32_push_dummy_call): Set the SP register.
2301 (mips_n32n64_push_dummy_call): Set the SP register.
2303 2003-06-01 Richard Henderson <rth@redhat.com>
2305 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
2306 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
2307 (supply_gregset): Likewise.
2308 * alpha-tdep.c (alpha_store_return_value): Likewise.
2309 (alpha_get_longjmp_target): Likewise.
2310 (alpha_register_name): Constify array.
2311 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
2312 deprecated_register_size, deprecated_register_bytes,
2313 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
2314 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
2315 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
2317 2003-06-01 Richard Henderson <rth@redhat.com>
2319 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
2320 from arg_reg_buffer to regcache to avoid double conversion.
2322 2003-06-01 Mark Kettenis <kettenis@gnu.org>
2324 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
2326 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
2327 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
2329 2003-06-01 Richard Henderson <rth@redhat.com>
2331 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
2332 (decode_frame_entry): Set it. Skip FDE augmentation.
2334 2003-06-01 Richard Henderson <rth@redhat.com>
2336 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
2337 not overlapping PC_REGNUM.
2339 2003-06-01 Richard Henderson <rth@redhat.com>
2341 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
2342 alpha_push_arguments. Don't dump argument register data to
2343 the target stack. Fix float and 128-bit long double semantics.
2344 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
2345 (alpha_fix_call_dummy): Remove.
2346 (alpha_call_dummy_words): Remove.
2347 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
2349 2003-06-01 Richard Henderson <rth@redhat.com>
2351 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
2353 2003-06-01 Andrew Cagney <cagney@redhat.com>
2355 * mips-tdep.c (is_mips16_addr): New function.
2356 (make_mips16_addr, unmake_mips16_addr): New functions.
2357 (pc_is_mips16, mips_fetch_instruction): Use.
2358 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
2359 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
2360 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
2361 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
2363 * config/mips/tm-mips.h: Update copyright.
2364 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
2365 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
2366 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
2367 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
2368 (TM_PRINT_INSN_MACH): Delete.
2369 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
2371 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
2372 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
2373 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
2374 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
2375 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
2376 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
2377 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
2378 mips*-*-riscos* and mips*-*-sysv* onto mips.
2379 * config/mips/mips64.mt: New file.
2380 * config/mips/mips.mt: New file.
2381 * config/mips/littlemips.mt: Delete file.
2382 * config/mips/decstation.mt: Delete file.
2383 * config/mips/vr4300el.mt: Delete file.
2384 * config/mips/vr5000el.mt: Delete file.
2385 * config/mips/vr5000.mt: Delete file.
2386 * config/mips/vr4100.mt: Delete file.
2387 * config/mips/vr4xxxel.mt: Delete file.
2388 * config/mips/vr4300.mt: Delete file.
2389 * config/mips/vr4xxx.mt: Delete file.
2390 * config/mips/bigmips.mt: Delete file.
2391 * config/mips/bigmips64.mt: Delete file.
2392 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
2393 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
2394 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
2395 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
2396 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
2398 * config/mips/tm-irix3.h: Ditto.
2399 * config/mips/tm-mipsv4.h: Ditto.
2400 * config/mips/tm-embed.h: Ditto.
2401 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
2403 * config/mips/tm-vr5000el.h: Delete file.
2404 * config/mips/tm-tx39l.h: Delete file.
2405 * config/mips/tm-vr4300el.h: Delete file.
2406 * config/mips/tm-vr4xxxel.h: Delete file.
2407 * config/mips/tm-vr4300.h: Delete file.
2408 * config/mips/tm-vr4100.h: Delete file.
2409 * config/mips/tm-vr4xxx.h: Delete file.
2410 * config/mips/tm-vr5000.h: Delete file.
2411 * config/mips/tm-embedl64.h: Delete file.
2412 * config/mips/tm-embedl.h: Delete file.
2413 * config/mips/tm-embed64.h: Delete file.
2414 * config/mips/tm-bigmips64.h: Delete file.
2415 * config/mips/tm-bigmips.h: Delete file.
2417 2003-06-01 Mark Kettenis <kettenis@gnu.org>
2420 * shnbsd-nat.c: Include "sh-tdep.h".
2422 From Richard Henderson <rth@redhat.com>:
2423 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
2425 2003-05-31 Andrew Cagney <cagney@redhat.com>
2427 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
2428 forward declaration.
2429 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
2430 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
2431 (mips_find_saved_regs): Use set_reg_offset.
2432 (mips_frame_init_saved_regs): Delete function.
2433 (mips_pop_frame): Call mips_find_saved_regs instead of
2434 DEPRECATED_FRAME_INIT_SAVED_REGS.
2436 2003-05-31 Andrew Cagney <cagney@redhat.com>
2438 * mips-tdep.c (mips_gdbarch_init): Do not set
2439 deprecated_max_register_raw_size, register_virtual_size, and
2440 deprecated_max_register_virtual_size.
2442 2003-05-31 Mark Kettenis <kettenis@gnu.org>
2444 * i386-tdep.c: Include "dwarf2-frame.h".
2445 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
2446 * Makefile.in (i386-tdep.o): Update dependencies.
2448 * dwarf2-frame.c, dwarf2-frame.h: New files.
2449 * Makefile.in (SFILES): Add dwarf2-frame.c.
2450 (dwarf2_frame_h): Define.
2451 (COMMON_OBS): Add dwarf2-frame.o.
2452 (dwarf2-frame.o): Add dependencies.
2454 2003-05-31 Andreas Jaeger <aj@suse.de>
2456 * x86-64-linux-nat.c: Fix comment.
2458 2003-05-31 Mark Kettenis <kettenis@gnu.org>
2460 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
2463 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
2464 have a sigcontext_addr handler.
2465 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
2466 sigcontext_addr handler.
2468 2003-05-31 Andrew Cagney <cagney@redhat.com>
2470 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
2471 (print_fp_register_row): Replace do_fp_register_row.
2472 (mips_print_fp_register): Add "file" and "frame" parameters.
2473 (mips_print_register): Add "file" and "frame" parameters.
2474 (mips_print_registers_info): Replace mips_do_registers_info.
2475 (mips_gdbarch_init): Set print_registers_info instead of
2476 deprecated_do_registers_info.
2477 (mips_read_fp_register_single): Add "frame" parameter.
2478 (mips_read_fp_register_double): Add "frame" parameter.
2480 2003-05-31 Mark Kettenis <kettenis@gnu.org>
2482 * i386-tdep.c (i386_register_name): Check for MMX registers first.
2483 Fixes a bug where GDB would print the wrong register names for
2484 targets without SSE.
2486 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
2487 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
2490 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
2491 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
2492 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2495 From Michal Ludvig <mludvig@suse.cz>:
2496 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
2498 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
2499 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
2500 I386_ST0_REGNUM): Move here from...
2501 * i386-tdep.c: ... here.
2502 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
2503 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
2504 registers if possible.
2505 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
2506 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
2508 (i386bsd_sc_reg_offset): New variable.
2509 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
2510 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2512 (i386fbsd_sc_reg_offset): New variable.
2513 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
2515 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
2517 (i386fbsd4_sc_reg_offset): New variable.
2518 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
2519 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2521 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
2522 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
2523 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
2525 (i386nbsd_sc_reg_offset): New variable.
2526 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
2527 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2529 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
2531 (i386obsd_sc_reg_offset): New variable.
2532 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
2533 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2535 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
2536 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
2537 for frame pointer offset in `struct sigcontext'.
2539 2003-05-31 Andrew Cagney <cagney@redhat.com>
2541 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
2542 architecture methods call_dummy_words, sizeof_call_dummy_words,
2543 push_return_address, store_struct_return, and fix_call_dummy. Set
2544 push_dummy_call instead of deprecated_push_arguments.
2545 (mips_store_struct_return): Delete function.
2546 (mips_fix_call_dummy): Delete function.
2547 (mips_push_return_address): Delete function.
2548 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
2549 RA_REGNUM and T9_REGNUM.
2550 (mips_n32n64_push_dummy_call): Ditto for
2551 mips_n32n64_push_arguments.
2552 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
2553 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
2555 2003-05-31 Andrew Cagney <cagney@redhat.com>
2557 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
2558 "dummy_addr" to "bp_addr".
2559 * infcall.c (call_function_by_hand): Pass "funaddr" to
2560 gdbarch_push_dummy_call.
2561 * gdbarch.h, gdbarch.c: Re-generate.
2562 * i386-tdep.c (i386_push_dummy_call): Update.
2563 * arm-tdep.c (arm_push_dummy_call): Update.
2564 * d10v-tdep.c (d10v_push_dummy_call): Update.
2566 2003-05-31 Mark Kettenis <kettenis@gnu.org>
2568 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
2569 variable declarations.
2570 (x86_64_register_number, x86_64_register_name): Remove prototypes.
2571 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
2572 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
2573 x86_64_init_frame_pc, x86_64_init_frame_pc,
2574 x86_64_function_has_prologue): Remove prototypes.
2575 (X86_64_NUM_GREGS): New define.
2576 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
2577 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
2578 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
2579 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
2580 XMM1_REGNUM): Remove defines.
2581 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
2582 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
2583 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
2584 X86_64_XMM1_REGNUM): New defines.
2585 (struct x86_64_register_info): Renamed from `struct
2586 register_info'. Remove `size' member.
2587 (x86_64_register_info_table): Remove variable.
2588 (x86_64_register_info): New variable.
2589 (X86_64_NUM_REGS): New define.
2590 (X86_64_NUM_GREGS): Remove define.
2591 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
2592 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
2594 (x86_54_dwarf2_reg_to_regnum): Remove function.
2595 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
2596 (x86_64_dwarf_reg_to_regnum): New function.
2597 (x86_64_register_name): Rewrite.
2598 (x86_64_register_raw_size): Remove function.
2599 (x86_64_register_byte_table): Remove variable.
2600 (x86_64_register_byte): Remove function.
2601 (x86_64_register_virtual_type): Remove function.
2602 (x86_64_register_type): New function.
2603 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
2604 x86_64_register_convert_to_raw): Remove functions.
2605 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
2606 (x86_64_use_struct_convention): Make static. Adjust for renamed
2608 (x86_64_frame_init_saved_regs): Remove function.
2609 (x86_64_push_arguments): Make static. Change to accept a regcache
2611 (x86_64_store_return_value, x86_64_extract_return_value): Make
2612 static. Rewrite based on i386 counterparts.
2613 (x86_64_push_dummy_call): New function.
2614 (X86_64_NUM_SAVED_REGS): New define.
2615 (x86_64_register_number): Remove function.
2616 (x86_64_store_struct_return): Remove function.
2617 (x86_64_frameless_function_invocation,
2618 x86_64_function_has_prologue): Remove functions.
2619 (PROLOG_BUFSIZE): Remove define.
2620 (struct x86_64_frame_cache): New structure.
2621 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
2622 x86_64_frame_cache, x86_64_frame_this_id,
2623 x86_64_frame_prev_register, x86_64_frame_p,
2624 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
2625 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
2627 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
2629 (x86_64_skip_prologue): Rewrite in terms of
2630 x86_64_analyze_prologue.
2631 (x86_64_frame_base_address): New function.
2632 (x86_64_frame_base): New variable.
2633 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
2634 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
2635 set deprecated_fp_regnum, deprecated_register_size,
2636 deprecated_register_bytes, register_raw_size, register_byte,
2637 register_virtual_type, register_convertiable,
2638 register_convert_to_virtual, convert_to_raw,
2639 deprecated_get_saved_register, deprecated_target_read_fp,
2640 deprecated_push_arguments, deprecated_push_return_address,
2641 deprecated_pop_frame, deprecated_store_struct_return,
2642 deprecated_frame_init_saved_regs, deprecated_frame_chain,
2643 frameless_function_invocation, deprecated_frame_saved_pc,
2644 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
2645 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
2646 deprecated_init_frame_pc and virtual_frame_pointer. Call
2647 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
2648 and x86_64_frame_p. Call frame_base_set_default to register
2650 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
2651 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
2652 (_initialize_x86_64_tdep): Remove function.
2653 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
2654 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
2655 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
2657 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
2658 (x86_64_linux_sigcontext_addr): Rewrite.
2659 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
2660 x86_64_linux_frame_saved_pc): Remove functions.
2661 (x86_64_linux_pc_in_sigtramp): Renamed from
2662 x86_64_linux_in_sigtramp. Try harder to recognize a signal
2664 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
2666 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
2667 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
2668 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
2669 (x86_64_regmap): Rename to regmap.
2670 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
2672 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
2674 (x86_64_fxsave_offset): Remove function.
2675 (supply_fpregset): Simply call x86_64_supply_fxsave.
2676 (fill_fpregset): Simply call x86_64_fill_fxsave.
2677 (fetch_inferior_registers, store_inferior_registers): Avoid
2678 asignment in if-statement.
2679 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
2680 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
2681 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
2682 (fetch_core_registers): Remove function.
2683 (linux_elf_core_fns): Remove.
2684 (offsetoff): Don't define.
2685 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
2686 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
2687 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
2689 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
2690 protection against multiple includes instead of NM_X86_64_h. Add
2691 various comments. Include "config/nm-linux.h". Don't include
2693 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
2694 GET_THREAD_SIGNALS): Remove defines.
2695 (x86_64_register_u_addr, kernel_u_size,
2696 lin_thread_get_thread_signals): Remove prototypes.
2697 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
2698 [HAVE_LINK_H]: Don't include "solib.h".
2699 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
2700 * config/i386/tm-x86-64linux.h: Fix comments.
2701 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
2702 x86-64-tdep.o): Update dependencies.
2704 2003-05-30 Andrew Cagney <cagney@redhat.com>
2706 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
2707 Change parameter type to a "struct regcache *".
2709 * gdbarch.sh: Regardless of the multi-arch level, always define
2710 the macro when not already defined.
2711 * gdbarch.h, gdbarch.c: Re-generate.
2713 2003-05-30 Richard Henderson <rth@redhat.com>
2715 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
2716 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
2717 (alpha_mdebug_frame_this_id): Likewise.
2718 (alpha_mdebug_frame_prev_register): Likewise.
2719 (alpha_mdebug_frame_base_address): Likewise.
2720 (alpha_mdebug_frame_locals_address): Likewise.
2721 (alpha_mdebug_frame_args_address): Likewise.
2722 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
2723 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
2724 (alpha_heuristic_frame_unwind_cache): Make static; add missing
2726 (alpha_heuristic_frame_this_id): Make static.
2727 (alpha_heuristic_frame_prev_register): Likewise.
2728 (alpha_heuristic_frame_base_address): Likewise.
2729 * alpha-tdep.h: Update.
2731 2003-05-30 Mark Kettenis <kettenis@gnu.org>
2733 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
2734 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
2736 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
2737 * i386-tdep.c: Mark functions that are 64-bit safe as such.
2738 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
2739 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
2740 I386_ST0_REGNUM): New defines.
2741 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
2742 codestream_get): Remove define.
2743 (codestream_next_addr, condestream_addr, condestream_buf,
2744 codestream_off, codestream_cnt): Remove variables.
2745 (codestream_fill, codestream_seek, codestream_read): Remove
2747 (i386_follow_jump): Rewrite to avoid usage of removed codestream
2749 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
2750 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
2751 i386_frame_saved_pc, i386_saved_pc_after_call,
2752 i386_frame_num_args, i386_frame_init_saved_regs,
2753 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
2754 i386_push_arguments): Remove functions.
2755 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
2756 functionality. Use i386_analyze_prologue instead of
2757 i386_get_frame_setup.
2758 (I386_NUM_SAVED_REGS): New define.
2759 (struct i386_frame_cache): New structure.
2760 (i386_alloc_frame_cache, i386_analyze_struct_return,
2761 i386_skip_probe, i386_analyze_frame_setup,
2762 i386_analyze_register_saves, i386_analyze_prologue,
2763 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
2764 i386_frame_prev_register, i386_sigtramp_frame_cache,
2765 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
2766 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
2767 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
2769 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
2771 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
2772 I386_EAX_REGNUM and I386_EDX_REGNUM.
2773 (i386_extract_return_value, i386_store_return_value): Use
2774 I386_ST0_REGNUM where appropriate.
2775 (i386_extract_struct_value_address): Rewrite to use extract_address.
2776 (i386_svr4_pc_in_sigtramp): Add comment.
2777 (i386_svr4_sigcontext_addr): Rewrite.
2778 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
2780 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
2781 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
2782 of new defines. Set push_dummy_call, don't set
2783 deprecated_push_arguments, deprecated_push_return_address,
2784 deprecated_pop_frame. Don't set parm_boundary. Don't set
2785 deprecated_frame_chain, deprecated_frame_saved_pc,
2786 deprecated_saved_pc_after_call. Set unwind_dummy_id,
2787 save_dummy_frame_tos, unwind_pc. Call
2788 frame_unwind_append_predicate and frame_base_set_default. Don't
2789 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
2790 Don't set frameless_function_invocation. Don't set
2791 deprecated_register_bytes, deprecated_register_size,
2792 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
2793 * i386-linux-tdep.c: Fix formatting in some comments.
2794 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
2795 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
2796 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
2797 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
2798 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
2799 redundant parentheses.
2800 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
2801 (i386_linux_sigcontext_addr): Use it. Rewrite.
2802 (find_minsym_and_objfile): Change name of second argument.
2803 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
2804 changed. Use frame_pc_unwind instead of
2805 DEPRECATED_SAVED_PC_AFTER_CALL.
2806 (i386_linux_init_abi): Don't set deprecated_register_bytes.
2807 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
2808 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
2810 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
2812 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
2813 (_initialize_i386_cygwin_tdep): New prototype.
2814 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
2815 deprecated_frame_chain_valid.
2816 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
2817 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
2818 Rely on the SVR4 defaults.
2819 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
2820 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
2822 2003-05-30 Andrew Cagney <cagney@redhat.com>
2824 * infcall.c (call_function_by_hand): Always call
2825 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
2827 2003-05-30 Richard Henderson <rth@redhat.com>
2829 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
2832 2003-05-29 Jim Blandy <jimb@redhat.com>
2834 Use gdbarch methods for solib stuff on PowerPC Linux.
2835 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
2836 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
2838 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2839 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
2840 giving the same effect as the #definitions above.
2842 2003-05-29 Adam Fedor <fedor@gnu.org>
2844 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
2845 (find_implementation_from_class): Replace it with the standard
2846 case i.e. do nothing.
2848 2003-05-29 Richard Henderson <rth@redhat.com>
2850 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
2851 (alpha_linux_sigtramp_offset): Use it. Make static.
2852 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
2853 update for new frame model.
2854 * alpha-mdebug-tdep.c: New file.
2855 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
2856 (alpha_osf1_init_abi): Install it.
2857 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
2858 (linked_proc_desc_table): Remove.
2859 (alpha_frame_past_sigtramp_frame): Remove.
2860 (alpha_dynamic_sigtramp_offset): Remove.
2861 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
2862 (alpha_proc_desc_is_dyn_sigtramp): Remove.
2863 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
2864 (push_sigtramp_desc): Remove.
2865 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
2866 (alpha_cannot_store_register): Likewise.
2867 (alpha_sigcontext_addr): Remove.
2868 (alpha_find_saved_regs): Remove.
2869 (alpha_frame_init_saved_regs): Remove.
2870 (alpha_init_frame_pc_first): Remove.
2871 (read_next_frame_reg): Remove.
2872 (alpha_frame_saved_pc): Remove.
2873 (alpha_saved_pc_after_call): Remove.
2874 (temp_proc_desc, temp_saved_regs): Remove.
2875 (alpha_about_to_return): Remove.
2876 (cached_proc_desc): Remove.
2877 (alpha_frame_chain): Remove.
2878 (alpha_print_extra_frame_info): Remove.
2879 (alpha_init_extra_frame_info): Remove.
2880 (alpha_frame_locals_address): Remove.
2881 (alpha_frame_args_address): Remove.
2882 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
2883 (alpha_push_dummy_frame): Remove.
2884 (alpha_pop_frame): Remove.
2885 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
2886 (alpha_read_insn): New.
2887 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
2888 for different insn encodings.
2889 (alpha_in_lenient_prologue): Remove.
2890 (struct alpha_sigtramp_unwind_cache): New.
2891 (alpha_sigtramp_frame_unwind_cache): New.
2892 (alpha_sigtramp_register_address): New.
2893 (alpha_sigtramp_frame_this_id): New.
2894 (alpha_sigtramp_frame_prev_register): New.
2895 (alpha_sigtramp_frame_unwind): New.
2896 (alpha_sigtramp_frame_p): New.
2897 (struct alpha_heuristic_unwind_cache): New.
2898 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
2899 don't count nop insns that occur between functions.
2900 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
2901 heuristic_proc_desc, but without the mdebug wrapping.
2902 (alpha_heuristic_frame_this_id): New.
2903 (alpha_heuristic_frame_prev_register): New.
2904 (alpha_heuristic_frame_unwind): New.
2905 (alpha_heuristic_frame_p): New.
2906 (alpha_heuristic_frame_base_address): New.
2907 (alpha_heuristic_frame_base): New.
2908 (alpha_unwind_dummy_id): New.
2909 (alpha_unwind_pc): New.
2910 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
2911 frame related deprecated initializations; install replacements.
2912 (alpha_dump_tdep): Remove.
2913 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
2914 (alpha_read_insn, alpha_after_prologue,
2915 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
2916 alpha_heuristic_frame_prev_register,
2917 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
2918 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2919 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
2920 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
2922 2003-05-29 Andrew Cagney <cagney@redhat.com>
2924 * gdb_assert.h (gdb_assert_fail): Provide different definitions
2925 dependant on the availability of ASSERT_FUNCTION.
2926 (ASSERT_FUNCTION): Do not define when there is no function name.
2928 2003-05-29 Kevin Buettner <kevinb@redhat.com>
2930 From Jimi X <jimix@watson.ibm.com>:
2931 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
2933 2003-05-28 Jim Blandy <jimb@redhat.com>
2935 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
2936 argument to ptrace to int; the system headers should give it the
2937 right type, and pointers don't fit in ints on powerpc64-*-*.
2939 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
2941 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
2944 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
2946 * stabsread.c (dbx_lookup_type): Make static.
2948 (add_undefined_type): Ditto.
2949 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
2952 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
2954 * hpread.c (hpread_has_name): Make static.
2955 (hpread_psymtab_to_symtab): Ditto.
2956 (file_exists): Ditto.
2957 (hpread_call_pxdb): Ditto.
2958 (hpread_pxdb_needed): Ditto.
2959 (hpread_quick_traverse): Ditto.
2960 (hpread_get_header): Ditto.
2961 (hpread_get_lntt): Ditto.
2962 (hpread_get_slt): Ditto.
2965 2003-05-25 Andreas Schwab <schwab@suse.de>
2967 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
2968 stack_align and deprecated_extra_stack_alignment_needed.
2969 (m68k_stack_align): Delete.
2971 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
2972 (m68k_register_virtual_size): Likewise.
2973 (altos_skip_prologue): Remove obsolete function.
2974 (isi_frame_num_args): Likewise.
2975 (news_frame_num_args): Likewise.
2976 (m68k_fix_call_dummy): Make static.
2977 (m68k_push_dummy_frame): Likewise.
2978 (m68k_pop_frame): Likewise.
2979 (m68k_skip_prologue): Likewise.
2980 (m68k_frame_init_saved_regs): Likewise.
2981 (m68k_saved_pc_after_call): Likewise.
2982 (m68k_get_longjmp_target): Make multi-arch.
2983 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
2984 structure. Register m68k_get_longjmp_target if enabled.
2985 * m68k-tdep.h (struct gdbarch_tdep): Define.
2986 * config/m68k/tm-m68k.h: Don't include "regcache.h".
2988 * Makefile.in (config.status): Also depend on configure.tgt
2990 (m68klinux-tdep.o): Update dependencies.
2991 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
2992 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
2993 (M68K_LINUX_JB_PC): Define.
2994 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
2995 and take additional parameter.
2996 (m68k_linux_sigtramp_saved_pc): Update.
2997 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
2998 m68k_linux_pc_in_sigtramp, in_plt_section,
2999 find_solib_trampoline_target.
3000 * config/m68k/tm-linux.h: Don't include any tm headers.
3001 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
3002 (JB_ELEMENT_SIZE): Likewise.
3004 (GET_LONGJMP_TARGET): Likewise.
3005 (IN_SIGTRAMP): Likewise.
3006 (SVR4_SHARED_LIBS): Define this and include "solib.h".
3008 2003-05-25 Mark Kettenis <kettenis@gnu.org>
3010 * sparc-tdep.c (sparc32_do_push_arguments): New function.
3011 (sparc32_push_arguments): Re-implement by calling
3012 sparc32_do_push_arguments.
3014 2003-05-25 Mark Kettenis <kettenis@gnu.org>
3016 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
3017 SPARC_O1_REGNUM): New defines.
3018 (sparc32_extract_return_value): Rewrite to operate on a regcache.
3019 (sparc32_store_return_value): New function.
3020 (sparc_extract_struct_value_address): Rewrite to operate on a
3022 (sparc_gdbarch_init): Don't set
3023 deprecated_extract_struct_value_address. Set
3024 extract_struct_value_address instead. Don't set
3025 deprecated_extract_return_value and deprecated_store_return_value
3026 for 32-bit targets. Set extract_return_value and
3027 store_return_value instead.
3028 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
3029 DEPRECTAED_EXTRACT_RETURN_VALUE,
3030 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
3031 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
3032 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
3033 (sparc_store_return_value): Remove prototype.
3034 (sparc32_store_return_value): New prototype.
3035 (sparc32_extract_return_value, sparc_extract_struct_value_address):
3038 2003-05-24 Mark Kettenis <kettenis@gnu.org>
3040 * sparcnbsd-tdep.c: Include "gdb_string.h".
3042 2003-05-23 Andrew Cagney <cagney@redhat.com>
3044 * p-valprint.c (pascal_val_print): Replace extract_address with
3045 the inline equivalent extract_unsigned_integer.
3046 * jv-valprint.c (java_value_print): Ditto.
3047 * ada-valprint.c (ada_val_print_1): Ditto.
3048 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
3050 2003-05-23 Theodore A. Roth <troth@openavr.org>
3052 * blockframe.c (frameless_look_for_prologue): Remove unused
3053 after_prologue variable.
3055 2003-05-23 Mark Kettenis <kettenis@gnu.org>
3057 * blockframe.c (get_pc_function_start): Rewrite to avoid
3058 asignments in if-statements.
3060 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
3062 Committed by Elena Zannoni <ezannoni@redhat.com>.
3063 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
3064 files, don't relocate absolute symbols (and do use mst_abs).
3066 2003-05-23 Andrew Cagney <cagney@redhat.com>
3068 * objc-lang.c: Include "gdb_assert.h".
3069 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
3070 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
3071 (gdb_check, gdb_check_fatal): Delete functions.
3072 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
3074 (parse_selector, parse_method, find_methods, find_imps): Ditto.
3075 * Makefile.in (objc-lang.o): Update dependencies.
3077 2003-05-22 Ian Lance Taylor <ian@airs.com>
3079 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
3080 with fprintf_filtered, not fprintf_unfiltered.
3082 2003-05-22 Andrew Cagney <cagney@redhat.com>
3084 * stack.c (frame_info): Inline extract_address, replacing it with
3085 extract_unsigned_integer.
3086 * findvar.c (unsigned_pointer_to_address): Ditto.
3087 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
3088 * dwarf2expr.c (dwarf2_read_address): Ditto.
3089 * frame.c (frame_pc_unwind): Update comment.
3090 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
3092 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
3094 * infptrace.c (detach): Call print_sys_errmsg rather than
3095 perror_with_name to issue warning message when errno is non-zero
3096 after calling ptrace detach.
3098 2003-05-21 J. Brobecker <brobecker@gnat.com>
3100 * config/pa/tm-hppa.h: Delete some unused macros. Move some
3101 macro definitions from here...
3102 * hppa-tdep.c: ...to there.
3104 2003-05-20 Kevin Buettner <kevinb@redhat.com>
3106 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
3107 register_ptrace_addr(). Fix all callers.
3109 2003-05-21 Andreas Schwab <schwab@suse.de>
3111 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3113 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
3115 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
3116 (_initialize_m68k_linux_tdep): New function.
3117 (m68k_linux_frame_saved_pc): Make static.
3118 (m68k_linux_extract_return_value): Likewise.
3119 (m68k_linux_store_return_value): Likewise.
3120 (m68k_linux_extract_struct_value_address): Likewise.
3121 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
3123 (DEPRECATED_STORE_RETURN_VALUE): Remove.
3124 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3125 (DEPRECATED_FRAME_SAVED_PC): Remove.
3127 2003-05-20 Kris Warkentin <kewarken@qnx.com>
3129 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
3130 regset numbering rather than our own.
3132 2003-05-19 David Carlton <carlton@bactrian.org>
3134 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
3136 2003-05-19 David Carlton <carlton@bactrian.org>
3138 Partial fix for PR c++/827.
3139 * cp-support.h: Include symtab.h.
3140 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
3141 * cp-namespace.c: Update contributors.
3142 (cp_lookup_symbol_nonlocal): New.
3143 (lookup_namespace_scope, cp_lookup_symbol_namespace)
3144 (lookup_symbol_file): Ditto.
3145 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
3146 * block.h: Declare block_scope, block_using, block_global_block.
3147 * block.c (block_scope): New.
3148 (block_using, block_global_block): Ditto.
3149 * Makefile.in (cp_support_h): Depend on symtab_h.
3150 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
3152 2003-05-19 David Carlton <carlton@bactrian.org>
3154 * language.h (struct language_defn): Add 'la_value_of_this'
3155 and 'la_lookup_symbol_nonlocal' members.
3156 * symtab.h: Declare basic_lookup_symbol_nonlocal,
3157 lookup_symbol_static, lookup_symbol_global,
3158 lookup_symbol_aux_block.
3159 * symtab.c (lookup_symbol_aux): Call language hooks to determine
3160 if we should search fields of this and how to do static/global
3162 (lookup_symbol_aux_block): Make extern.
3163 (basic_lookup_symbol_nonlocal): New.
3164 (lookup_symbol_static, lookup_symbol_global): Ditto.
3165 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
3166 'la_lookup_symbol_nonlocal' members.
3167 * c-lang.c (c_language_defn, cplus_language_defn)
3168 (asm_language_defn, minimal_language_defn): Ditto.
3169 * jv-lang.c (java_language_defn): Ditto.
3170 * language.c (unknown_language_defn, auto_language_defn)
3171 (local_language_defn): Ditto.
3172 * m2-lang.c (m2_language_defn): Ditto.
3173 * objc-lang.c (objc_language_defn): Ditto.
3174 * scm-lang.c (scm_language_defn): Ditto.
3175 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
3176 * p-lang.c (pascal_language_defn): Ditto for both.
3177 * Makefile.in (f-lang.o): Depend on value_h.
3180 2003-05-19 David Carlton <carlton@bactrian.org>
3182 * block.h: Declare block_static_block.
3183 * block.c (block_static_block): New.
3184 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
3185 lookup_symbol_aux_local, calling block_static_block instead.
3186 (lookup_symbol_aux_local): Delete 'static_block' argument.
3188 2003-05-19 David Carlton <carlton@bactrian.org>
3190 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
3192 2003-05-19 Michal Ludvig <mludvig@suse.cz>
3194 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
3195 register numbers mapping.
3197 2003-05-18 Adam Fedor <fedor@gnu.org>
3199 * symtab.c (completion_list_objc_symbol): New function.
3200 (make_symbol_completion_list): Use it to add ObjC symbols
3201 when looking though the list.
3202 (language_search_unquoted_string): New function.
3203 (make_file_symbol_completion_list): Use it.
3205 2003-05-18 Andreas Schwab <schwab@suse.de>
3207 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
3209 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
3210 as m68k_linux_extract_return_value.
3211 (DEPRECATED_STORE_RETURN_VALUE): Define as
3212 m68k_linux_store_return_value.
3213 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
3214 m68k_linux_extract_struct_value_address.
3215 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
3216 get_next_frame, get_frame_base, get_frame_pc.
3217 (m68k_linux_frame_saved_pc): Use get_frame_base.
3218 (m68k_linux_extract_return_value): New function.
3219 (m68k_linux_store_return_value): New function.
3220 (m68k_linux_extract_struct_value_address): New function.
3221 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
3223 * c-exp.y (typebase): Remove duplicate occurence of
3224 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
3225 of lookup_signed_typename.
3227 2003-05-18 Mark Kettenis <kettenis@gnu.org>
3229 * dwarf2loc.c (find_location_expression): Change type of second
3230 argument to `size_t *'.
3231 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
3234 2003-05-18 David Carlton <carlton@bactrian.org>
3236 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
3237 'linkage_name'. Add comment.
3238 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
3240 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
3241 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
3242 (lookup_block_symbol): Ditto.
3244 2003-05-16 Andrew Cagney <cagney@redhat.com>
3246 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
3247 * gdbarch.h, gdbarch.c: Re-generate.
3248 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
3249 * TODO (REGISTER_BYTES): Delete reference.
3250 * alpha-tdep.c (alpha_gdbarch_init): Update.
3251 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3252 * x86-64-tdep.c (x86_64_init_abi): Update.
3253 * vax-tdep.c (vax_gdbarch_init): Update.
3254 * v850-tdep.c (v850_gdbarch_init): Update.
3255 * sparc-tdep.c (sparc_gdbarch_init): Update.
3256 * sh-tdep.c (sh_gdbarch_init): Update.
3257 * s390-tdep.c (s390_gdbarch_init): Update.
3258 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3259 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3260 (ns32k_gdbarch_init_32382): Update.
3261 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3262 * mcore-tdep.c (mcore_gdbarch_init): Update.
3263 * m68k-tdep.c (m68k_gdbarch_init): Update.
3264 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3265 * ia64-tdep.c (ia64_gdbarch_init): Update.
3266 * i386-tdep.c (i386_gdbarch_init): Update.
3267 * i386-linux-tdep.c (i386_linux_init_abi): Update.
3268 * hppa-tdep.c (hppa_gdbarch_init): Update.
3269 * h8300-tdep.c (h8300_gdbarch_init): Update.
3270 * frv-tdep.c (frv_gdbarch_init): Update.
3271 * cris-tdep.c (cris_gdbarch_init): Update.
3272 * avr-tdep.c (avr_gdbarch_init): Update.
3273 * arm-tdep.c (arm_gdbarch_init): Update.
3274 * sparc-tdep.c (sparc_pop_frame): Update.
3275 * rs6000-tdep.c (rs6000_pop_frame): Update.
3276 * remote.c (init_remote_state): Update.
3277 (remote_prepare_to_store): Update.
3278 * remote-vx.c (vx_prepare_to_store): Update.
3279 * remote-sds.c (sds_fetch_registers): Update.
3280 (sds_prepare_to_store): Update.
3281 * remote-array.c: Update.
3282 * regcache.c (init_legacy_regcache_descr): Update.
3283 (init_regcache_descr): Update.
3284 * mips-tdep.c (mips_eabi_extract_return_value): Update.
3285 (mips_o64_extract_return_value): Update.
3286 * irix5-nat.c (fetch_core_registers): Update.
3287 * irix4-nat.c (fetch_core_registers): Update.
3288 * i386-tdep.h: Update.
3289 * hppa-tdep.c (pa_do_registers_info): Update.
3290 (pa_do_strcat_registers_info): Update.
3291 * cris-tdep.c (cris_register_bytes_ok): Update.
3292 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3293 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
3294 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
3295 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
3296 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
3297 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
3298 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
3299 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
3300 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
3301 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
3302 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
3303 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
3304 (REGISTER_BYTES_OK): Update.
3305 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
3306 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
3308 2003-05-16 Ian Lance Taylor <ian@airs.com>
3310 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
3311 (vax_print_insn, print_insn_arg): Remove static functions.
3312 (vax_gdbarch_init): Call set_gdbarch_print_insn with
3313 print_insn_vax from opcodes library.
3314 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
3316 2003-05-15 Andrew Cagney <cagney@redhat.com>
3318 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
3319 * target.h (memory_breakpoint_from_pc): Delete declaration.
3320 * mem-break.c (memory_breakpoint_from_pc): Delete function.
3321 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
3322 * monitor.c (monitor_insert_breakpoint): Use
3323 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
3324 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
3325 * gdbarch.h, gdbarch.c: Re-generate.
3326 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
3327 (sparc_gdbarch_init): Set breakpoint_from_pc to
3328 sparc_breakpoint_from_pc.
3329 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
3330 (BREAKPOINT_FROM_PC): Define.
3331 (sparc_breakpoint_from_pc): Declare.
3332 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
3333 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
3334 (BREAKPOINT_FROM_PC): Define.
3335 (BREAKPOINT): Delete macro.
3336 * target.h: Update comment.
3337 * s390-tdep.c (s390_gdbarch_init): Update comments.
3338 * remote.c: Update comments.
3339 * remote-mips.c: Update comments.
3340 * proc-api.c (write_with_trace): Do not check for a breakpoint.
3341 * mem-break.c: Update comment.
3342 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
3343 (ia64_memory_insert_breakpoint): Update.
3344 * config/sparc/tm-sparc.h: Update comment.
3345 * config/pa/tm-hppa64.h: Update comment.
3346 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
3347 (rs6000_breakpoint_from_pc): Update.
3348 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
3349 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
3350 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
3351 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
3352 (mips_breakpoint_from_pc): Update.
3353 (mips_dump_tdep): Update.
3355 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
3356 * minsyms.c (lookup_minimal_symbol): Inline
3357 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
3359 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
3360 * p-valprint.c (pascal_object_print_value_fields): Ditto.
3361 * p-lang.c (pascal_printstr): Ditto.
3362 * objc-lang.c (objc_printstr): Ditto.
3363 * m2-lang.c (m2_printstr): Ditto.
3364 * jv-valprint.c (java_print_value_fields): Ditto.
3365 * f-lang.c (f_printstr): Ditto.
3366 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
3367 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
3368 for repeat_count_threshold.
3369 * Makefile.in (cp-valprint.o): Update dependencies.
3371 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
3373 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
3374 (examine_prologue): Support looking through leaf functions, knowing
3375 they start with mov r2,r12. Support skipping over indirect stores
3376 of the input registers. Upon hitting a non-nop branch instruction
3377 or predicated instruction, bail out by setting lim_pc to the current
3378 pc value in the loop. At the end, if the lim_pc value is still
3379 beyond our calculated value and we have trust_limit set,
3380 use the lim_pc value.
3382 2003-05-15 Andrew Cagney <cagney@redhat.com>
3384 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
3385 generic_find_dummy_frame.
3386 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
3387 (deprecated_generic_find_dummy_frame): Update.
3388 (deprecated_read_register_dummy): Update.
3389 * frame.c (deprecated_generic_get_saved_register): Update.
3391 2003-05-15 Theodore A. Roth <troth@openavr.org>
3393 * avr-tdep.c (avr_breakpoint_from_pc): New function.
3394 (avr_gdbarch_init): Set breakpoint_from_pc method.
3396 2003-05-15 Andrew Cagney <cagney@redhat.com>
3398 * regcache.c (build_regcache): Set deprecated_register_valid
3400 (deprecated_grub_regcache_for_register_valid): Delete function.
3401 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
3404 2003-05-15 David Carlton <carlton@bactrian.org>
3406 Committed by Elena Zannoni <ezannoni@redhat.com>
3407 * symtab.c (lookup_symbol_aux): Delete calls to
3408 lookup_symbol_aux_minsyms.
3409 (lookup_symbol_aux_minsyms): Comment out function and
3410 prototype. Delete lookup by mangled name.
3412 2003-05-14 Kevin Buettner <kevinb@redhat.com>
3414 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
3415 correctly indicate an empty stack and ``stack_allocated'' to the
3416 indicate the number of elements initially allocated.
3417 (dwarf_expr_grow_stack): Simplify method for computing new
3418 stack size. Don't loop infinitely if ``stack_len'' is zero.
3419 (execute_stack_op): Move ``ctx->in_reg'' initialization
3420 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
3421 be used in conjuction with DW_OP_piece. Revise error message
3424 2003-05-14 Theodore A. Roth <troth@openavr.org>
3426 * MAINTAINERS: Update my email address.
3427 * avr-tdep.c: Ditto.
3429 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
3431 * symtab.h (enum domain_enum): Rename from namespace_enum.
3432 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
3433 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
3434 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
3435 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
3436 TYPES_NAMESPACE, METHODS_NAMESPACE.
3437 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
3438 (struct symbol, struct partial_symbol): Rename field
3439 'namespace_enum namespace' to 'domain_enum domain'.
3440 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
3441 Delete old define kludge for namespace.
3443 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
3444 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
3445 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
3446 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
3447 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
3448 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
3449 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
3450 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
3451 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
3452 occurrences of the above.
3454 2003-05-14 Ian Lance Taylor <ian@airs.com>
3456 * Makefile.in (install-only): Use $(SHELL) when running
3459 2003-05-13 Ian Lance Taylor <ian@airs.com>
3461 * MAINTAINERS (write after approval): Add myself.
3463 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
3464 second and third arguments.
3465 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3466 * ser-unix.c (_initialize_ser_hardwire): Likewise.
3468 2003-05-13 Andrew Cagney <cagney@redhat.com>
3470 * defs.h (store_address): Delete declaration.
3471 findvar.c (store_address): Delete function.
3472 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
3473 store_unsigned_integer.
3474 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
3475 * v850-tdep.c (v850_push_arguments): Ditto.
3476 * sparc-tdep.c (sparc_get_saved_register): Ditto.
3477 * sh-tdep.c (sh64_get_saved_register): Ditto.
3478 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
3479 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
3480 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
3481 (mips_get_saved_register): Ditto.
3482 * ia64-tdep.c (ia64_get_saved_register): Ditto.
3483 (find_func_descr, ia64_push_arguments): Ditto.
3484 * i386-tdep.c (i386_push_arguments): Ditto.
3485 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
3486 * frv-tdep.c (frv_push_arguments): Ditto.
3487 * frame.c (legacy_saved_regs_prev_register): Ditto.
3488 (deprecated_generic_get_saved_register): Ditto.
3489 * findvar.c (unsigned_address_to_pointer): Ditto.
3490 * dwarf2read.c (dwarf2_const_value): Ditto.
3491 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3492 * alpha-tdep.c (alpha_push_arguments): Ditto.
3494 2003-05-12 J. Brobecker <brobecker@gnat.com>
3496 * NEWS: Mention that the hppa-hpux port has been partially
3497 multiarched (32bit ABIT only, so far).
3499 2003-05-11 Andrew Cagney <cagney@redhat.com>
3501 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
3502 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
3503 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
3504 sim/testsuite/sim/arm/misaligned2.ms, and
3505 sim/testsuite/sim/arm/misaligned3.ms.
3506 * disasm.h (struct ui_file): Add opaque struct declaration.
3507 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
3508 * frame.h (struct ui_file): Ditto.
3510 2003-05-11 Mark Kettenis <kettenis@gnu.org>
3512 * value.h: Pretty print.
3514 2003-05-10 Mark Kettenis <kettenis@gnu.org>
3516 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
3518 2003-05-08 Andrew Cagney <cagney@redhat.com>
3520 * regcache.h (max_register_size): Delete declaration.
3521 * regcache.c (max_register_size): Delete function.
3522 (struct regcache_descr): Delete field "max_register_size".
3523 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
3524 registers fit in MAX_REGISTER_SIZE.
3525 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
3526 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
3527 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
3528 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
3529 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
3530 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
3531 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
3532 * dve3900-rom.c, hppa-tdep.c: Ditto.
3534 2003-05-08 David Carlton <carlton@math.stanford.edu>
3536 * valops.c (push_word): Fix typo.
3538 2003-05-08 Andrew Cagney <cagney@redhat.com>
3540 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
3541 * gdbarch.h: Re-generate.
3542 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
3543 (legacy_max_register_raw_size): Delete declaration.
3544 * regcache.c (legacy_max_register_raw_size): Delete function.
3545 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
3546 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
3547 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
3548 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
3549 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
3550 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
3551 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
3552 * findvar.c, dwarf2cfi.c: Ditto.
3554 2003-05-08 Andrew Cagney <cagney@redhat.com>
3556 * mips-tdep.c (read_signed_register): New function, moved to here
3558 (read_signed_register_pid): Ditto.
3559 * regcache.c (read_signed_register_pid): Delete function, moved to
3561 (read_signed_register): Ditto.
3562 * regcache.h (read_signed_register): Delete declaration.
3563 (read_signed_register_pid): Delete declaration.
3565 2003-05-08 Andrew Cagney <cagney@redhat.com>
3567 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
3568 * gdbarch.h: Re-generate.
3569 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
3570 (legacy_max_register_virtual_size): Delete declaration.
3571 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
3572 * d10v-tdep.c (d10v_print_registers_info): Ditto.
3573 * tracepoint.c (memrange_sortmerge): Ditto.
3574 * sparc-tdep.c (sparc_print_registers): Ditto.
3575 * regcache.c (legacy_max_register_virtual_size): Delete function.
3577 2002-05-08 J. Brobecker <brobecker@gnat.com>
3579 * fork-child.c (escape_bang_in_quoted_argument): New function.
3580 (fork_inferior): Escape '!' characters in quoted arguments
3583 2003-05-08 J. Brobecker <brobecker@gnat.com>
3585 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
3586 the language of the CU is not currently supported by GDB.
3588 2003-05-08 J. Brobecker <brobecker@gnat.com>
3590 * defs.h (language): Add language_minimal enum value.
3591 * c-lang.c (minimal_language_defn): New language definition.
3592 (_initialize_c_language): Add the new minimal language to the list
3593 of languages known to GDB.
3595 2003-05-08 Kevin Buettner <kevinb@redhat.com>
3597 * frame.c (get_frame_type): Don't attempt to lazily initialize
3598 frame's unwinder for legacy frames.
3600 2003-05-07 Andrew Cagney <cagney@redhat.com>
3602 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
3603 and "regcache" parameters.
3604 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
3606 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
3608 * dwarf2read.c (dwarf_decode_lines): Only use output of
3609 check_cu_functions() when calling record_line(). Do not update
3610 the current address.
3612 2003-05-07 Andrew Cagney <cagney@redhat.com>
3614 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
3617 2003-05-07 Jim Blandy <jimb@redhat.com>
3619 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
3620 'maint info symtabs' and 'maint info psymtabs'.
3621 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
3622 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
3623 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
3624 Declarations updated.
3625 * maint.c (maintenance_list_command): Delete.
3626 (_initialize_maint_cmds): Update calls to add_cmd.
3627 * gdbcmd.h (maintenancelistlist): Delete declaration.
3628 * cli/cli-cmds.c (maintenancelistlist): Delete.
3629 (init_cmd_lists): Don't initialize it.
3630 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
3632 2003-05-07 Andrew Cagney <cagney@redhat.com>
3634 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
3636 (d10v_print_registers_info): Update.
3637 (d10v_dmap_register, d10v_imap_register): Delete functions.
3638 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
3639 and "imap_register".
3640 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
3641 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
3642 * arch-utils.c (generic_remote_translate_xfer_address): Add
3643 "regcache" and "gdbarch" parameters.
3644 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
3645 parameter. Change class to multi-arch.
3646 * gdbarch.h, gdbarch.c: Re-generate.
3647 * remote.c (remote_xfer_memory): Use
3648 gdbarch_remote_translate_xfer_address.
3650 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
3652 * infrun.c (prev_pc): Move declaration ahead of proceed().
3653 (proceed): Refresh prev_pc value before resuming.
3654 (stop_stepping): Remove code to refresh prev_pc.
3656 2003-05-06 Kris Warkentin <kewarken@qnx.com>
3658 * nto-tdep.c: Removed stray comment.
3660 2003-05-06 Kris Warkentin <kewarken@qnx.com>
3662 * i386-nto-tdep.c: Fix old K&R function definitions.
3663 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
3664 Also change add_show_from_set() call to add_setshow_cmd().
3665 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
3667 2003-05-05 Andrew Cagney <cagney@redhat.com>
3669 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
3670 (fprint_dummy_frames): New function.
3671 (maintenance_print_dummy_frames): New function.
3672 (_initialize_dummy_frame): Add command "maint print dummy-frames".
3673 * frame.c (fprint_frame_id): Make global.
3674 * frame.h (fprint_frame_id): Declare.
3675 * Makefile.in (dummy-frame.o): Update dependencies.
3677 2003-05-05 Andrew Cagney <cagney@redhat.com>
3679 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
3680 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
3681 SIZEOF_CALL_DUMMY_WORDS.
3682 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
3683 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
3684 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
3685 CALL_DUMMY_BREAKPOINT_OFFSET.
3686 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
3687 CALL_DUMMY_START_OFFSET.
3688 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
3689 * gdbarch.h, gdbarch.c: Re-generate.
3690 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
3691 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
3692 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
3693 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
3694 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
3695 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
3696 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
3697 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
3698 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
3699 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
3700 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
3701 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
3702 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
3703 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
3704 * config/sparc/tm-sparc.h: Update.
3706 2003-05-05 Kris Warkentin <kewarken@qnx.com>
3708 * configure.tgt: Add i[3456]86-*-nto*.
3709 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
3710 * nto-tdep.c: New file. Neutrino target support routines.
3711 * nto-tdep.h: New file. Neutrino target header.
3712 * config/tm-qnxnto.h: New file.
3713 * config/i386/i386nto.mt: New file.
3714 * config/i386/tm-i386nto.h: New file.
3716 2003-05-04 Andrew Cagney <cagney@redhat.com>
3718 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
3719 (load_infrun_state): Ditto.
3720 (struct thread_info): Drop "prev_func_name" field.
3721 * thread.c (load_infrun_state): Update.
3722 (save_infrun_state): Update.
3723 * infrun.c (prev_func_name): Delete variable.
3724 (init_wait_for_inferior): Do not clear prev_func_name.
3725 (stop_stepping, keep_going, context_switch): Do not swap
3727 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
3728 instead of PC_IN_SIGTRAMP.
3730 2003-05-04 Andrew Cagney <cagney@redhat.com>
3732 * sentinel-frame.c (sentinel_frame_prev_register): Replace
3733 REGISTER_BYTE with register_offset_hack.
3734 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
3735 that REGISTER_BYTE is consistent with the regcache.
3736 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
3737 * gdbarch.h, gdbarch.c: Regenerate.
3739 2003-05-04 Mark Kettenis <kettenis@gnu.org>
3741 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
3742 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
3744 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
3746 2003-05-03 J. Brobecker <brobecker@gnat.com>
3748 From Thierry Schneider <tpschneider1@yahoo.com>
3749 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
3750 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
3751 (mi-cmd-symbol.o): Add rule.
3753 2003-05-03 Andrew Cagney <cagney@redhat.com>
3755 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
3756 comments noteing that it replaces the old FIX_CALL_DUMMY code.
3757 * gdbarch.h, gdbarch.c: Re-generate.
3758 * d10v-tdep.c (d10v_push_dummy_code): New function.
3759 (d10v_gdbarch_init): Set push_dummy_code.
3760 * infcall.c (legacy_push_dummy_code): New function.
3761 (generic_push_dummy_code): New function.
3762 (push_dummy_code): New function.
3763 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
3764 instead of dummy_addr, to push_dummy_call. Move call to
3765 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
3767 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
3769 2003-05-03 Andrew Cagney <cagney@redhat.com>
3771 * disasm.h (print_insn): Declare.
3772 * disasm.c (init_gdb_disassemble_info): New function.
3773 (gdb_disassembly): Call init_gdb_disassemble_info.
3774 (gdb_print_insn): New function.
3775 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
3776 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
3777 * mcore-tdep.c: Include "disasm.h"
3778 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
3779 * d10v-tdep.c: Include "disasm.h".
3780 (display_trace): Call gdb_print_insn, instead of print_insn.
3781 (print_insn): Delete function.
3782 * printcmd.c: Include "disasm.h".
3783 (print_insn): Delete function.
3784 (print_formatted): Call gdb_print_insn, instead of print_insn.
3785 * Makefile.in (printcmd.o): Update dependencies.
3786 (mcore-tdep.o, d10v-tdep.o): Ditto.
3788 2003-05-02 Andrew Cagney <cagney@redhat.com>
3790 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
3791 PC_REGNUM, re-indent.
3792 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
3793 PC_REGNUM isn't set.
3795 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
3796 * gdbarch.h, gdbarch.c: Re-generate.
3797 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
3798 register_virtual_size, pc_regnum, or register_bytes.
3799 (D10V_PC_REGNUM): Rename _PC_REGNUM.
3800 (d10v_register_type): Use D10V_PC_REGNUM.
3801 (d10v_print_registers_info, d10v_read_pc): Ditto.
3802 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
3803 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
3805 2003-05-02 David Carlton <carlton@bactrian.org>
3807 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
3808 the name with mstrsave.
3810 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
3812 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
3813 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
3814 (host_charset_name, target_charset_name): New vars for use by
3816 (host_charset_enum, target_charset_enum): New enums for set/show
3818 (set_charset_sfunc, set_host_charset_sfunc,
3819 set_target_charset_sfunc): New functions.
3820 (set_host_charset, set_target_charset): Make static.
3821 (list_charsets, set_host_charset_command,
3822 set_target_charset_command): Delete functions.
3823 (show_charset_command): Rewrite as....
3824 (show_charset): Hook this up with the set/show command mechanism.
3825 (_initialize_charset): Change names of charsets to match the
3826 set/show enums. Use host_charset_name and target_charset_name.
3827 Use set/show mechanism for charset, host-charset, target-charset
3828 commands. Do not make 'show host-charset' and 'show
3829 target-charset' be aliases of 'show charset'.
3831 * charset.h (set_host_charset, set_target_charset): Don't export,
3832 they are not used outside the file.
3834 2003-05-01 Andrew Cagney <cagney@redhat.com>
3836 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
3837 (gdb_disassembly): Make "di" non static, always initialize and
3838 cleanup. Always use dis_asm_read_memory.
3839 (gdb_dis_asm_read_memory): Delete function.
3841 2003-05-01 Andrew Cagney <cagney@redhat.com>
3843 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
3844 (d10v_gdbarch_init): Set frame_align instead of stack_align.
3846 2003-04-30 Andrew Cagney <cagney@redhat.com>
3848 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
3849 "tm_print_insn_info".
3850 (TARGET_PRINT_INSN_INFO): Delete macro.
3851 (dis_asm_read_memory): Delete function declaration.
3852 (dis_asm_memory_error, dis_asm_print_address): Ditto.
3853 (tm_print_insn_info): Delete variable definition.
3854 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
3855 * gdbarch.h, gdbarch.c: Re-generate.
3856 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
3857 "deprecated_tm_print_insn_info".
3858 * mcore-tdep.c (mcore_dump_insn): Ditto.
3859 * mips-tdep.c (mips_gdbarch_init): Ditto.
3860 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
3861 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
3862 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
3863 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
3864 instead of TARGET_PRINT_INSN_INFO, add comment.
3865 * s390-tdep.c (s390_get_frame_info): Instead of
3866 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
3867 (s390_check_function_end, s390_is_sigreturn): Ditto.
3868 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
3869 (dis_asm_memory_error, dis_asm_print_address): Ditto.
3870 * disasm.c: Include "gdbcore.h".
3871 (_initialize_disasm): New function, initialize
3872 "deprecated_tm_print_insn_info".
3873 (deprecated_tm_print_insn_info): New variable.
3874 (dis_asm_read_memory): Moved from "corefile.c", made static.
3875 (dis_asm_print_address, dis_asm_memory_error): Ditto.
3876 * Makefile.in (disasm.o): Update dependencies.
3878 2003-04-30 Andrew Cagney <cagney@redhat.com>
3880 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
3882 2003-04-29 Adam Fedor <fedor@gnu.org>
3884 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
3885 * infcall.c (find_function_addr): Make non-static.
3886 * infcall.h (find_function_addr): Declare.
3887 * Makefile.in (eval.o): Update dependencies.
3889 2003-04-28 Adam Fedor <fedor@gnu.org>
3891 * symtab.c (symbol_find_demangled_name): Check for and demangle
3893 (symbol_init_demangled_name): Init for language_objc as well.
3895 2003-04-28 Andrew Cagney <cagney@redhat.com>
3897 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
3898 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
3899 * gdbarch.h, gdbarch.c: Re-generate.
3900 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
3901 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
3902 * inferior.h (deprecated_read_fp): Rename read_fp.
3903 (generic_target_read_fp): Delete declaration.
3904 * regcache.c (generic_target_read_fp): Delete function.
3905 (deprecated_read_fp): Replace read_fp, use
3906 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
3907 * d10v-tdep.c (d10v_read_fp): Delete function.
3908 (d10v_gdbarch_init): Do not set deprecated_read_fp.
3910 * sparc-tdep.c (sparc_gdbarch_init): Do not set
3911 deprecated_target_read_fp to generic_target_read_fp.
3912 * sh-tdep.c (sh_gdbarch_init): Ditto.
3913 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3914 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3915 * frv-tdep.c (frv_gdbarch_init): Ditto.
3917 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
3918 deprecated_fp_regnum.
3919 * x86-64-tdep.c (x86_64_init_abi): Ditto.
3920 * vax-tdep.c (vax_gdbarch_init): Ditto.
3921 * v850-tdep.c (v850_gdbarch_init): Ditto.
3922 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3923 * sh-tdep.c (sh_gdbarch_init): Ditto.
3924 * s390-tdep.c (s390_gdbarch_init): Ditto.
3925 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3926 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3927 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3928 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3929 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3930 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3931 * i386-tdep.c (i386_gdbarch_init): Ditto.
3932 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3933 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3934 * frv-tdep.c (frv_gdbarch_init): Ditto.
3935 * cris-tdep.c (cris_gdbarch_init): Ditto.
3936 * avr-tdep.c (avr_gdbarch_init): Ditto.
3937 * arm-tdep.c (arm_gdbarch_init): Ditto.
3938 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3940 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
3941 * v850-tdep.c (v850_gdbarch_init): Ditto.
3942 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3943 * sh-tdep.c (sh_gdbarch_init): Ditto.
3944 * s390-tdep.c (s390_gdbarch_init): Ditto.
3945 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3946 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3947 * mips-tdep.c (mips_gdbarch_init): Ditto.
3948 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3949 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3950 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3951 * frv-tdep.c (frv_gdbarch_init): Ditto.
3952 * avr-tdep.c (avr_gdbarch_init): Ditto.
3953 * arm-tdep.c (arm_gdbarch_init): Ditto.
3955 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
3956 DEPRECATED_FP_REGNUM.
3957 (vax_push_dummy_frame, vax_pop_frame): Ditto.
3958 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
3959 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
3960 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
3961 (sparc32_register_virtual_type): Ditto.
3962 * sh-tdep.c (sh64_frame_chain): Ditto.
3963 (sh64_get_saved_register, sh64_pop_frame): Ditto.
3964 (sh_nofp_frame_init_saved_regs): Ditto.
3965 (sh64_nofp_frame_init_saved_regs): Ditto.
3966 (sh_fp_frame_init_saved_regs): Ditto.
3967 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3968 * remote-e7000.c (fetch_regs_from_dump): Ditto.
3969 * procfs.c (procfs_fetch_registers): Ditto.
3970 (procfs_store_registers): Ditto.
3971 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
3972 (store_inferior_registers, fetch_core_registers): Ditto.
3973 (fetch_kcore_registers, clear_regs): Ditto.
3974 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
3975 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
3976 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
3977 * nlm/i386.c (do_status): Ditto.
3978 * mipsv4-nat.c (supply_gregset): Ditto.
3979 * mips-tdep.c: Ditto for comments.
3980 * mips-nat.c (fetch_inferior_registers): Ditto.
3981 (store_inferior_registers, fetch_core_registers): Ditto.
3982 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
3983 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
3984 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
3985 (i386_do_pop_frame, i386_register_type): Ditto.
3986 * hppa-tdep.c (hppa_frame_chain): Ditto.
3987 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
3988 (hppa_pop_frame, hppa_read_fp): Ditto.
3989 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
3990 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
3991 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
3992 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
3993 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
3994 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
3995 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
3996 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
3997 * blockframe.c: Ditto for comments.
3998 * arch-utils.h: Ditto for comments.
3999 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
4000 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
4001 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
4002 * alpha-tdep.h: Ditto for comments.
4003 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
4004 (alpha_cannot_store_register): Ditto.
4005 (alpha_push_dummy_frame): Ditto.
4006 * alpha-nat.c (supply_gregset): Ditto.
4008 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
4009 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
4010 * config/sparc/tm-sparc.h: Update comment.
4012 * hppa-tdep.c (hppa_init_extra_frame_info): Use
4013 deprecated_read_fp instead of TARGET_READ_FP.
4014 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
4015 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
4016 * sparc-tdep.c (sparc_init_extra_frame_info): Use
4017 deprecated_read_fp instead of read_fp.
4018 * s390-tdep.c (s390_push_arguments): Ditto.
4019 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4020 * frame.h: Ditto in comments.
4021 * frame.c (legacy_get_prev_frame): Ditto.
4022 * dummy-frame.c (dummy_frame_this_id): Ditto.
4023 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
4025 2003-04-28 Andrew Cagney <cagney@redhat.com>
4027 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
4028 * gdbarch.h, gdbarch.c: Re-generate.
4029 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
4030 * vax-tdep.c (_initialize_vax_tdep): Update.
4031 * v850-tdep.c (_initialize_v850_tdep): Update.
4032 * sparc-tdep.c (_initialize_sparc_tdep): Update.
4033 * s390-tdep.c (_initialize_s390_tdep): Update.
4034 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
4035 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
4036 * mips-tdep.c (_initialize_mips_tdep): Update.
4037 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4038 * m68k-tdep.c (_initialize_m68k_tdep): Update.
4039 * ia64-tdep.c (_initialize_ia64_tdep): Update.
4040 * hppa-tdep.c (_initialize_hppa_tdep): Update.
4041 * h8300-tdep.c (_initialize_h8300_tdep): Update.
4042 * frv-tdep.c (_initialize_frv_tdep): Update.
4043 * cris-tdep.c (cris_delayed_get_disassembler): Update.
4044 (_initialize_cris_tdep): Update.
4045 * arch-utils.c (legacy_print_insn): Update.
4046 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4048 2003-04-26 Adam Fedor <fedor@gnu.org>
4050 * linespec.c (decode_objc): New function to decode ObjC calls
4051 (decode_line_1): Check for ObjC calls (using decode_objc)
4052 * Makefile (linespec.o): Update dependencies.
4054 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
4056 * breakpoint.h (struct breakpoint_ops): New.
4057 (struct breakpoint): Add ops member.
4059 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
4060 (mention): Use new breakpoint ops member.
4061 (set_raw_breakpoint): Initialize ops field to NULL.
4062 (print_exception_catchpoint, print_one_exception_catchpoint)
4063 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
4064 (gnu_v3_exception_catchpoint_ops): New.
4065 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
4067 2003-04-25 Adam Fedor <fedor@gnu.org>
4069 * Makefile.in (COMMON_OBS): Add objc-lang.o
4071 2003-04-25 Andrew Cagney <cagney@redhat.com>
4073 * d10v-tdep.c (print_insn): Delete function.
4074 (display_trace): Use TARGET_PRINT_INSN.
4075 (_initialize_d10v_tdep): Do not set tm_print_insn.
4076 (d10v_gdbarch_init): Set print_insn.
4078 2003-04-25 Andrew Cagney <cagney@redhat.com>
4080 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
4081 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
4082 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
4083 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
4084 (nr_dmap_regs, a0_regnum): ... new functions.
4085 (d10v_print_registers_info): Use a0_regnum, use register_size.
4086 (d10v_register_byte): Delete function.
4087 (d10v_register_raw_size): Delete function.
4088 (d10v_register_type): Use a0_regnum.
4089 (d10v_print_registers_info): Use a0_regnum.
4090 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
4091 (d10v_gdbarch_init): Do not set register_byte or
4092 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
4093 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
4095 (trace_command): Use XCALLOC.
4096 (print_insn): Delete reference to tm_print_insn.
4097 (saved_regs_unwinder): Use store_unsigned_integer instead of
4099 * frame.h (FRAME_OBSTACK_CALLOC): Define
4101 2003-04-25 David Carlton <carlton@bactrian.org>
4103 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
4105 2003-04-24 Adam Fedor <fedor@gnu.org>
4107 * objc-lang.c: Include "valprint.h"
4108 * Makefile.in (objc-lang.o): Update dependencies.
4110 2003-04-24 Adam Fedor <fedor@gnu.org>
4112 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
4113 architecture dependant compilation and mark as unimplemented
4114 (until they get put in the gdbarch vector).
4116 2003-04-23 David Carlton <carlton@bactrian.org>
4118 * cp-support.c (cp_find_first_component): Accept 'operator' in
4121 2003-04-23 Andrew Cagney <cagney@redhat.com>
4123 * infcall.c (call_function_by_hand): Eliminate redundant
4124 indentation. Move "saved_async" and "old_cleanups" to where they
4127 2003-04-23 Andrew Cagney <cagney@redhat.com>
4129 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
4130 and "buffer". Move the "name" code to where it is needed.
4132 2003-04-23 Andrew Cagney <cagney@redhat.com>
4134 * infcall.c (call_function_by_hand): Move variables "start_sp",
4135 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
4136 code to ON_STACK switch branch.
4138 2003-04-23 Andrew Cagney <cagney@redhat.com>
4140 * infcall.c (call_function_by_hand): Make declaration of "i",
4141 "sal", "bpt" and "old_sp" more local to their use. Delete #if
4144 2003-04-23 Andrew Cagney <cagney@redhat.com>
4146 * infcall.c (call_function_by_hand): Delete variable
4147 "n_method_args". Localize "param_type"'s declaration to the loop
4148 that it is used. Reinstate code assigning to said variable -
4149 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
4150 Rationalize code using "param_type".
4152 2003-04-22 Andrew Cagney <cagney@redhat.com>
4154 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
4155 compute the breakpoint address. Only call FIX_CALL_DUMMY when
4156 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
4157 to DEPRECATED_PUSH_RETURN_ADDRESS.
4159 2003-04-22 Kevin Buettner <kevinb@redhat.com>
4161 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
4162 on the DWARF2 register number prior to fetching a register.
4164 2003-04-22 J. Brobecker <brobecker@gnat.com>
4166 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
4167 Update all the tests using SOFT_FLOAT considering the fact that
4168 this macro was always set to 0.
4169 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
4170 considering the fact that this macro was always set to 0.
4171 * hppa-tdep.h (hppa_store_return_value): Likewise.
4172 (hppa_extract_return_value): Likewise.
4174 2003-04-22 J. Brobecker <brobecker@gnat.com>
4176 * config/pa/tm-hppa.h: Remove obsolete code, was used by
4177 the hppa-pro target only.
4179 2003-04-21 J. Brobecker <brobecker@gnat.com>
4181 Ongoing multi-arch conversion effort for HP/UX:
4182 * config/pa/tm-hppa.h: Move all macro that are no longer
4183 defined now that GDB_MULTI_ARCH is now set to 1 from here...
4184 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
4186 2003-04-21 J. Brobecker <brobecker@gnat.com>
4188 * config/pa/tm-hppa.h: Obsolete a section that was only used
4191 2003-04-21 J. Brobecker <brobecker@gnat.com>
4193 Ongoing multi-arch conversion for HP/UX.
4194 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
4195 if already defined (allows hppa64 to stay non-multiarched for now).
4196 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
4198 2003-04-21 Andrew Cagney <cagney@redhat.com>
4200 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
4202 2003-04-21 Andrew Cagney <cagney@redhat.com>
4204 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
4205 "i386_num_mmx_regs".
4207 2003-04-21 Andrew Cagney <cagney@redhat.com>
4209 * infcall.c: New file.
4210 * infcall.h: New file.
4211 * valarith.c: Include "infcall.h".
4212 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
4213 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
4214 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
4215 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
4216 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
4217 (SFILES): Add "infcall.c"
4218 (COMMON_OBS): Add "infcall.o".
4219 (infcall.o): Specify dependencies.
4220 * value.h (call_function_by_hand): Delete declaration.
4221 * inferior.h (run_stack_dummy): Delete declaration.
4222 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
4223 (run_stack_dummy): Move to "infcall.c", merged into
4224 call_function_by_hand.
4225 * valops.c (call_function_by_hand): Moved to "infcall.c".
4226 (find_function_addr, value_arg_coerce): Ditto.
4227 (unwindonsignal_p, coerce_float_to_double): Ditto.
4228 (_initialize_valops): Move "set/show coerce-float-to-double", and
4229 "set/show unwindonsignal" commands to "infcall.c".
4230 * v850-tdep.c, target.h: Update comments.
4231 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
4232 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
4233 (sh64_init_extra_frame_info): Update comments.
4234 * mn10300-tdep.c: Update comments.
4235 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
4236 * config/sparc/tm-sparc.h: Update comments.
4237 * breakpoint.h: Update comments.
4238 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
4239 * arm-tdep.c: Update comment.
4241 2003-04-19 Mark Kettenis <kettenis@gnu.org>
4243 * i386-tdep.c (i386_num_register_names): New variable.
4244 (i386_num_mmx_regs): Renamed from mmx_num_regs.
4245 (MM0_REGNUM): Remove redundant parentheses in define.
4246 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
4247 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
4248 i386_mxcsr_regnum_p): Remove redundant parentheses.
4249 (i386_register_name): Use i386_num_register_names.
4251 * i386-tdep.c (i386_extract_return_value,
4252 i386_store_return_value): Correct check for availability of
4253 floating-point registers.
4255 * i386-tdep.c (i386_frame_num_args): Remove function.
4256 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
4258 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
4259 mmx_regnum_to_fp_regnum. Adjust all callers.
4261 * i386-tdep.c (i386_get_longjmp_target): Use
4262 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
4263 and TARGET_CHAR_BIT. Use extract_typed_address instead of
4266 2003-04-19 Mark Kettenis <kettenis@gnu.org>
4268 * core-regset.c: Update comments to reflect reality. Re-order
4270 (fetch_core_registers): Use switch instead of if. Remove
4271 redundant prototype.
4273 2003-04-18 Jim Blandy <jimb@redhat.com>
4275 * s390-tdep.c (s390_frame_align): New function.
4276 (s390_gdbarch_init): Register it with the gdbarch object.
4278 2003-04-17 Richard Henderson <rth@redhat.com>
4280 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
4282 2003-04-17 Michael Snyder <msnyder@redhat.com>
4283 Karen Bennet <bennet@redhat.com>
4285 Committed by Elena Zannoni <ezannoni@redhat.com>
4286 * gdb_gcore.sh: New script to create a core dump of a process.
4288 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
4290 * values.c (value_being_returned): Don't fetch the return
4291 value if the return type is void.
4293 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
4295 * thread-db.c: Reindented.
4297 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
4299 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
4300 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
4327 2003-04-16 Kevin Buettner <kevinb@redhat.com>
4329 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
4330 the size of ``long double'' to 16, instead of 8.
4332 2003-04-16 Mark Kettenis <kettenis@gnu.org>
4334 * i386-linux-nat.c: Add some whitespace to make things more
4336 (fetch_register, store_register, fetch_inferior_registers,
4337 store_inferior_registers): Get rid of assignment in if-statement.
4338 (store_register): Fix typo in error message.
4340 2003-04-16 Andrew Cagney <cagney@redhat.com>
4342 * utils.c (xmmalloc): Always allocate something, matches
4343 libiberty/xmalloc's semantics.
4344 (xmrealloc, xmcalloc): Ditto.
4346 2003-04-16 Andrew Cagney <cagney@redhat.com>
4348 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
4350 (get_frame_type): Initialize unwind and type when needed.
4351 (get_frame_id, frame_register_unwind): Ditto.
4353 2003-04-16 Andrew Cagney <cagney@redhat.com>
4355 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
4357 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
4358 * sparcl-stub.c: Obsolete file.
4359 * config/sparc/tm-sparclet.h: Obsolete file.
4360 * sparclet-stub.c: Obsolete file.
4361 * sparclet-rom.c: Obsolete file.
4362 * sparcl-tdep.c: Obsolete file.
4363 * config/sparc/tm-sparclite.h: Obsolete file.
4364 * config/sparc/sparclite.mt: Obsolete file.
4365 * config/sparc/sparclet.mt: Obsolete file.
4366 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
4367 sparc86x-*-* obsolete.
4369 2003-04-15 David Carlton <carlton@math.stanford.edu>
4371 * Makefile.in (SFILES): Add cp-namespace.c.
4372 (COMMON_OBS): Add cp-namespace.o.
4373 (block.o): Depend on gdb_obstack_h and cp_support_h.
4374 (buildsym.o): Depend on cp_support_h.
4375 (cp-namespace.o): New.
4376 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
4377 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
4378 (dwarf2read.o): Depend on cp_support_h.
4379 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
4380 * dwarf2read.c (process_die): Set processing_has_namespace_info,
4381 processing_current_namespace.
4382 (read_namespace): Update processing_current_namespace; check for
4383 anonymous namespaces.
4384 (dwarf2_name): New function.
4385 (dwarf2_extension): Ditto.
4386 * cp-support.h: Update copyright, contributors.
4387 Add inclusion guards.
4388 Add opaque declaration for structs obstack, block, symbol.
4389 (struct using_direct): New struct.
4390 Add declarations for cp_find_first_component,
4391 cp_entire_prefix_len, processing_has_namespace_info,
4392 processing_current_namespace, cp_is_anonymous,
4393 cp_add_using_directive, cp_initialize_namespace,
4394 cp_finalize_namespace, cp_set_block_scope,
4395 cp_scan_for_anonymous_namespaces.
4396 * cp-namespace.c: New file.
4397 * cp-support.c: Update copyright.
4398 Include ctype.h, gdb_assert.h, gdbcmd.h.
4399 New variable maint_cplus_cmd_list.
4400 (cp_find_first_component): New function.
4401 (cp_entire_prefix_len, maint_cplus_command)
4402 (first_component_command, _initialize_cp_support): Ditto.
4403 * buildsym.c: Include cp-support.h.
4404 New variable using_list.
4405 (add_symbol_to_list): Check for anonymous namespaces.
4406 (finish_block): Set block's scope.
4407 (start_symtab): Initialize C++ namespace support.
4408 (end_symtab): Finalize C++ namespace support.
4409 * block.h: Add opaque declarations for structs
4410 block_namespace_info, using_direct, and obstack.
4411 Add declarations for block_set_scope and block_set_using.
4412 (struct block): Add 'language_specific' member.
4413 (BLOCK_NAMESPACE): New macro.
4414 * block.c: Include gdb_obstack.h and cp-support.h.
4415 (struct block_namespace_info): New struct.
4416 (block_set_scope): New function.
4417 (block_set_using, block_initialize_namespace): Ditto.
4419 2003-04-14 Kevin Buettner <kevinb@redhat.com>
4421 * solib-svr4.c (svr4_have_link_map_offsets): New function.
4422 (locate_base): Return early if there aren't any link map offsets.
4423 (svr4_solib_create_inferior_hook): Warn if shared library support
4426 2003-04-14 David Carlton <carlton@math.stanford.edu>
4428 * symtab.c (symbol_set_names): Add prefix when storing Java names
4429 in hash table. Fix for PR java/1039.
4431 2003-04-14 David Carlton <carlton@math.stanford.edu>
4433 * symtab.c (symbol_set_names): Rename 'name' arg to
4434 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
4435 * symtab.h: Change 'name' argument in declaration of
4436 symbol_set_names to 'linkage_name'.
4437 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
4439 2003-04-14 Andrew Cagney <cagney@redhat.com>
4441 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
4442 return the fully sign-extended register value.
4443 (get_frame_pointer): Ditto.
4444 (mips_pop_frame): Initialize "proc_desc" after checking for a
4447 2003-04-14 Andrew Cagney <cagney@redhat.com>
4449 * mips-tdep.c (mips_push_dummy_frame): Delete function.
4450 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
4451 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
4452 (mips_push_register): Delete function.
4453 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
4456 2003-04-14 Jim Blandy <jimb@redhat.com>
4458 * symmisc.c: #include "gdb_regex.h".
4459 (maintenance_list_symtabs, maintenance_list_psymtabs): New
4461 * maint.c (maintenance_list_command): New function.
4462 (_initialize_maint_cmds): Register the above as commands.
4463 * symtab.h (maintenance_list_symtabs,
4464 maintenance_list_psymtabs): New declarations.
4465 * cli/cli-cmds.c (maintenancelistlist): New variable.
4466 (init_cmd_lists): Initialize it.
4467 * cli/cli-cmds.h (maintenancelistlist): New declaration.
4468 * gdbcmd.h (maintenancelistlist): New declaration.
4469 * Makefile.in (symmisc.o): Update dependencies.
4471 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
4473 * s390-nat.c: Include asm/types.h for addr_t.
4475 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
4477 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
4478 actually incoming type.
4480 2003-04-13 Andrew Cagney <cagney@redhat.com>
4482 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
4483 get_next_frame and get_frame_saved_regs.
4485 2003-04-13 Andrew Cagney <cagney@redhat.com>
4487 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
4488 of gdbarch_num_regs.
4490 2003-04-13 Andrew Cagney <cagney@redhat.com>
4492 * frame.h: Mention what replaced what in "struct frame_info".
4493 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
4494 deprecated_update_frame_base_hack and
4495 deprecated_update_frame_pc_hack.
4496 * hppa-tdep.c: Ditto.
4498 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
4500 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
4501 to read_reg and update its comment. Remove regnum member.
4502 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
4503 Don't call read_reg when setting in_reg. Call read_reg to get
4504 the frame base if it's in a register. Return the register number
4505 on the stack instead of in the context. Remove extra arguments
4507 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
4508 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
4509 the register number on the expression stack.
4510 (needs_frame_read_reg): Remove extra arguments.
4512 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
4514 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
4516 (execute_stack_op): All callers updated.
4517 * dwarf2expr.h: Add prototype for dwarf2_read_address.
4518 * dwarf2loc.c (find_location_expression): New function.
4519 (dwarf_expr_frame_base): Call it.
4520 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
4521 (dwarf2_tracepoint_var_ref): New function, broken out from
4522 locexpr_tracepoint_var_ref.
4523 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
4525 (loclist_read_variable, loclist_read_needs_frame): New functions.
4526 (loclist_describe_location, loclist_tracepoint_var_ref): New
4528 (dwarf2_loclist_funcs): New struct location_funcs.
4529 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
4530 (struct dwarf2_locexpr_baton): Add comments.
4531 (dwarf2_loclist_funcs): New extern.
4532 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
4533 base_address and base_known.
4534 (dwarf_loc_buffer): New variable.
4535 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
4536 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
4537 (dwarf2_has_info): Initialize dwarf_loc_offset.
4538 (dwarf2_build_psymtabs): Read in .debug_loc.
4539 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
4541 (psymtab_to_symtab_1): Likewise. Move base address calculation
4543 (dwarf2_get_pc_bounds): ... here. Use the base address from
4545 (dwarf2_symbol_mark_computed): Handle location lists.
4547 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
4549 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
4550 if the linkage name demangled successfully.
4552 2003-04-13 Mark Kettenis <kettenis@gnu.org>
4554 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
4555 disassmbly_flavour): Removed.
4557 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
4559 2003-04-13 Mark Kettenis <kettenis@gnu.org>
4561 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
4563 2003-04-12 Andrew Cagney <cagney@redhat.com>
4565 * frame.h (struct frame_info): Move definition from here ...
4566 * frame.c (struct frame_info): ... to here.
4568 2003-04-12 Andrew Cagney <cagney@redhat.com>
4570 * gdbthread.h (save_infrun_state): Delete parameter
4572 (struct thread_info): Delete field "prev_func_start".
4573 (load_infrun_state): Ditto.
4574 * thread.c (load_infrun_state, save_infrun_state): Update.
4575 * infrun.c (prev_func_start): Delete variable.
4576 (context_switch, init_wait_for_inferior): Update.
4577 (stop_stepping, keep_going): Update.
4579 2003-04-12 Andrew Cagney <cagney@redhat.com>
4581 * gdbarch.sh: Add missing opaque declarations.
4582 * gdbarch.h: Regnerate.
4583 * symtab.h: Add missing opaque declarations.
4584 * value.h, target.h, symfile.h, stabsread.h: Ditto.
4585 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
4586 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
4587 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
4588 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
4589 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
4590 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
4591 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
4592 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
4593 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
4594 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
4595 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
4596 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
4598 2003-04-11 Andrew Cagney <cagney@redhat.com>
4600 * frame.c (get_frame_id): Return this frame's "id".
4601 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
4603 (legacy_saved_regs_this_id): Replace function body with
4605 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
4606 FRAME_OBSTACK_ZALLOC.
4607 (create_new_frame): Mark the frame ID as valid.
4609 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
4611 * Makefile.in (libbfd_h): Added missing setting.
4612 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
4613 according to the selected ABI.
4615 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
4617 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
4619 2003-04-11 Andrew Cagney <cagney@redhat.com>
4621 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
4622 SAVED_PC_AFTER_CALL.
4623 * gdbarch.h, gdbarch.c: Regenerate.
4624 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4625 * x86-64-tdep.c (x86_64_init_abi): Update.
4626 * vax-tdep.c (vax_gdbarch_init): Update.
4627 * v850-tdep.c (v850_gdbarch_init): Update.
4628 * sparc-tdep.c (sparc_gdbarch_init): Update.
4629 * sh-tdep.c (sh_gdbarch_init): Update.
4630 * s390-tdep.c (s390_gdbarch_init): Update.
4631 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4632 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4633 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4634 * mips-tdep.c (mips_gdbarch_init): Update.
4635 * mcore-tdep.c (mcore_gdbarch_init): Update.
4636 * m68k-tdep.c (m68k_gdbarch_init): Update.
4637 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4638 * ia64-tdep.c (ia64_gdbarch_init): Update.
4639 (ia64_saved_pc_after_call): Update declaration.
4640 * i386ly-tdep.c (i386lynx_init_abi): Update.
4641 * i386-tdep.c (i386_gdbarch_init): Update.
4642 * hppa-tdep.c (hppa_gdbarch_init): Update.
4643 * h8300-tdep.c (h8300_gdbarch_init): Update.
4644 * frv-tdep.c (frv_gdbarch_init): Update.
4645 * cris-tdep.c (cris_gdbarch_init): Update.
4646 * avr-tdep.c (avr_gdbarch_init): Update.
4647 * arm-tdep.c (arm_gdbarch_init): Update.
4648 * alpha-tdep.c (alpha_gdbarch_init): Update.
4649 * ns32knbsd-nat.c (frame_num_args): Update.
4650 * ns32k-tdep.c (umax_frame_num_args): Update.
4651 * mips-tdep.c (mips_init_frame_pc_first): Update.
4652 * infrun.c (step_over_function): Update.
4653 * i386-linux-tdep.c (skip_hurd_resolver): Update.
4654 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
4655 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
4656 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4657 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4658 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
4659 * arm-linux-tdep.c (skip_hurd_resolver): Update.
4660 * arch-utils.c (init_frame_pc_default): Update.
4661 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
4662 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
4665 2003-04-11 Andrew Cagney <cagney@redhat.com>
4667 * i387-tdep.c: Update copyright.
4668 (i387_to_double): Delete function.
4669 (double_to_i387): Delete function.
4671 2003-04-10 Andrew Cagney <cagney@redhat.com>
4673 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
4674 frame's function's address. Simplify.
4675 (d10v_frame_unwind_cache): Check that the frame's function is
4678 2003-04-10 Jim Blandy <jimb@redhat.com>
4680 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
4681 call to set_gdbarch_deprecated_push_arguments.
4683 2003-04-10 Andrew Cagney <cagney@redhat.com>
4685 * frame.c (fprint_frame_id): New function.
4686 (fprint_frame_type, fprint_frame): New function.
4687 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
4688 (create_sentinel_frame, get_frame_id): Ditto.
4689 (frame_id_p, frame_id_eq): Ditto.
4690 (frame_id_inner, create_new_frame): Ditto.
4691 (legacy_get_prev_frame, get_prev_frame): Ditto.
4692 (deprecated_update_frame_pc_hack): Ditto.
4693 (frame_register_unwind): Ditto.
4694 (deprecated_update_frame_base_hack): Ditto.
4696 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
4698 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
4699 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
4700 frame_chain function.
4701 * Makefile.in: Add dependencies due to above change.
4703 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
4705 * blockframe.c (legacy_frame_chain_valid): Move call to
4706 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
4709 2003-04-09 Andrew Cagney <cagney@redhat.com>
4711 * frame.h (struct frame_id): Replace "pc" and "base" with
4712 "stack_addr" and "code_addr". Update comments.
4713 (frame_id_build): Update parameter names and comment.
4714 (struct frame_info): Replace "id_p" and "id" with "this_id".
4715 * dummy-frame.c (dummy_frame_this_id): Update.
4716 * breakpoint.c (print_one_breakpoint): Update.
4717 * frame.c (get_frame_id): Update.
4718 (get_frame_base, frame_id_build): Update.
4719 (create_sentinel_frame, legacy_get_prev_frame): Update.
4720 (deprecated_update_frame_base_hack): Update.
4721 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
4722 (frame_id_inner): Ditto.
4724 2003-04-09 Andrew Cagney <cagney@redhat.com>
4726 * defs.h (gdb_print_host_address): Make "addr" parameter a
4728 * utils.c (gdb_print_host_address): Update.
4730 2003-04-09 Kevin Buettner <kevinb@redhat.com>
4732 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
4733 register number for R0 is 0.
4735 2003-04-09 J. Brobecker <brobecker@gnat.com>
4737 * frame.h (struct gdbarch): Add opaque structure definition
4738 to avoid a compilation warning on LynxOS 4.0.
4740 2003-04-09 Andrew Cagney <cagney@redhat.com>
4742 * frame.h (struct frame_info): Delete field "pc". Replace
4743 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
4745 * frame.c (frame_pc_unwind): Update.
4746 (create_sentinel_frame): Do not set "pc".
4747 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
4748 (get_frame_pc): Call frame_pc_unwind.
4749 (deprecated_update_frame_pc_hack): Update.
4750 (create_new_frame): Use "pc" not "->pc".
4752 2003-04-09 Andrew Cagney <cagney@redhat.com>
4754 * frame.c (get_frame_id): Eliminate code updating "frame".
4755 (legacy_get_prev_frame): Ditto.
4756 (get_frame_base): Return id.base directly.
4757 (deprecated_update_frame_base_hack): Update "id.base".
4758 * frame.h (struct frame_info): Delete field "frame".
4760 2003-04-09 Andrew Cagney <cagney@redhat.com>
4762 * NEWS: Mention that the "Sequent family" is obsolete.
4763 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
4764 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
4765 * configure.host: Obsolete i[3456]86-sequent-bsd*,
4766 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
4767 * config/i386/tm-ptx4.h: Obsolete file.
4768 * config/i386/tm-ptx.h: Obsolete file.
4769 * symm-tdep.c: Obsolete file.
4770 * config/i386/symmetry.mt: Obsolete file.
4771 * config/i386/tm-symmetry.h: Obsolete file.
4772 * symm-nat.c: Obsolete file.
4773 * config/i386/nm-symmetry.h: Obsolete file.
4774 * config/i386/xm-symmetry.h: Obsolete file.
4775 * config/i386/symmetry.mh: Obsolete file.
4776 * config/i386/nm-ptx4.h: Obsolete file.
4777 * config/i386/ptx4.mh: Obsolete file.
4778 * config/i386/ptx.mt: Obsolete file.
4779 * config/i386/ptx.mh: Obsolete file.
4780 * config/i386/xm-ptx4.h: Obsolete file.
4781 * config/i386/xm-ptx.h: Obsolete file.
4783 2003-04-09 Andrew Cagney <cagney@redhat.com>
4785 Obsolete mips*-*-mach3*.
4786 * NEWS: Mention that mips*-*-mach3* is obsolete.
4787 * m3-nat.c: Obsolete file.
4788 * config/nm-m3.h: Obsolete file.
4789 * config/mips/tm-mipsm3.h: Obsolete file.
4790 * config/mips/mipsm3.mt: Obsolete file.
4791 * config/mips/mipsm3.mh: Obsolete file.
4792 * config/mips/xm-mipsm3.h: Obsolete file.
4793 * mipsm3-nat.c: Obsolete file.
4794 * configure.host: Obsolete mips-dec-mach3*.
4795 * configure.tgt: Obsolete mips*-*-mach3*.
4797 2003-04-09 Andrew Cagney <cagney@redhat.com>
4799 * doublest.h: Update copyright.
4800 (deprecated_store_floating, deprecated_extract_floating): Rename
4801 store_floating and extract_floating. Update comments.
4802 * doublest.c: Update copyright.
4803 (extract_floating_by_length): Replace extract_floating.
4804 (store_floating_by_length): Replace store_floating.
4805 (deprecated_extract_floating): New function.
4806 (deprecated_store_floating): New function.
4807 (extract_typed_floating): Call extract_floating_by_length.
4808 (store_typed_floating): Call store_floating_by_length.
4809 * x86-64-tdep.c (x86_64_store_return_value): Update.
4810 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
4811 (sh64_extract_return_value): Update.
4812 (sh_sh4_register_convert_to_virtual): Update.
4813 (sh_sh64_register_convert_to_virtual): Update.
4814 (sh_sh4_register_convert_to_raw): Update.
4815 (sh_sh64_register_convert_to_raw): Update.
4816 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
4817 (rs6000_register_convert_to_raw): Update.
4818 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
4819 (ia64_register_convert_to_raw): Update.
4820 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
4821 (REGISTER_CONVERT_TO_VIRTUAL): Update.
4822 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
4823 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
4824 (alpha_register_convert_to_raw): Update.
4826 2003-04-08 Andrew Cagney <cagney@redhat.com>
4828 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
4829 * gdbarch.h, gdbarch.c: Re-generate.
4830 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
4831 (d10v_gdbarch_init): Do not set saved_pc_after_call.
4832 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
4833 conditionally, use frame_pc_unwind as an alternative. Add
4835 * arch-utils.c (init_frame_pc_default): Only call
4836 SAVED_PC_AFTER_CALL when available.
4838 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
4840 * infrun.c (stop_soon): Rename from stop_soon_quietly.
4841 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
4842 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
4843 (start_remote): Ditto.
4844 (handle_inferior_event): Ditto.
4845 (save_inferior_status): Ditto.
4846 (restore_inferior_status): Ditto.
4847 * infcmd.c (attach_command): Ditto.
4848 * fork-child.c (startup_inferior): Ditto.
4849 * inferior.h (stop_soon): Rename from stop_soon_quietly.
4850 * alpha-tdep.c (heuristic_proc_start): Ditto.
4851 * mips-tdep.c (heuristic_proc_start): Ditto.
4852 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
4853 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
4854 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
4855 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
4856 * remote-vx.c (vx_create_inferior): Ditto.
4858 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
4860 * infrun.c (stop_soon_quietly): Make it an enum, to better
4861 override the default behavior of handle_inferior_event.
4862 (clear_proceed_status): Update uses of stop_soon_quietly to
4863 reflect that it is now an enum.
4864 (start_remote): Ditto.
4865 (handle_inferior_event): Change logic a bit if stop_soon_quietly
4866 is set to handle the new GNU/Linux kernel behavior for
4867 attach/sigstop. Update uses of stop_soon_quietly.
4868 * inferior.h (enum stop_kind): New enum.
4869 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
4870 Reset normal handle_inferior_event behavior, afterwards.
4871 * fork-child.c (startup_inferior): Update.
4872 * alpha-tdep.c (heuristic_proc_start): Update.
4873 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
4874 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
4875 * solib-osf.c (osf_solib_create_inferior_hook): Update.
4876 * solib-irix.c (irix_solib_create_inferior_hook): Update.
4877 * remote-vx.c (vx_create_inferior): Update.
4878 * mips-tdep.c (heuristic_proc_start): Update.
4880 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
4882 * disasm.c (dump_insns): Move variables inside loop, or they will
4883 be freed more than once, causing wild memory corruptions.
4884 (gdb_disassembly): Look for the substring "-thread",
4885 instead of "-threads" in the target name, to make sure to find
4886 the 'multi-thread' target. Also, make sure we do the right thing
4887 with the "core" target.
4889 2003-04-07 Kevin Buettner <kevinb@redhat.com>
4891 * mips-tdep.c (mips_print_fp_register): New function, created from
4892 do_fp_register_row(). Registers are now (also) printed as hex.
4893 Only one register is printed per row.
4894 (mips_print_register, do_fp_register_row): Print floating point
4895 registers with mips_print_fp_register().
4897 2003-04-06 Andrew Cagney <cagney@redhat.com>
4899 * valprint.h (inspect_it): Add extern declaration.
4900 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
4901 (selectors_info, classes_info): Ditto.
4902 (find_objc_msgcall): Fix indentation.
4903 (objc_printstr): Delete extern declarations.
4905 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
4907 2003-04-06 Andrew Cagney <cagney@redhat.com>
4909 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
4911 * frame.c (legacy_saved_regs_this_id): Update.
4912 (legacy_get_prev_frame): Update.
4913 * xstormy16-tdep.c: Update comment.
4914 * sparc-tdep.c (sparc_frame_chain): Update comment.
4915 * blockframe.c (legacy_frame_chain_valid): Update.
4917 2003-04-06 Andrew Cagney <cagney@redhat.com>
4919 * valprint.c (val_print_type_code_int): Delete #ifdef
4920 PRINT_TYPELESS_INTEGER code.
4922 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
4923 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
4924 multi-arch definition.
4925 * gdbarch.h: Re-generate.
4927 2003-04-05 Andrew Cagney <cagney@redhat.com>
4929 Eliminate FRAME_FIND_SAVED_REGS.
4930 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
4931 Change FSR parameter to a pointer.
4932 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
4933 Assume FSR parameter is a pointer.
4934 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
4936 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
4937 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
4938 saved_regs a pointer.
4939 (hppa_frame_saved_pc): Ditto.
4940 (find_dummy_frame_regs): Make frame_saved_regs a pointer
4941 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
4943 (restore_pc_queue): Make fsr a pointer.
4944 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
4945 (hppa_frame_chain): Make saved_regs a pointer, call
4946 hppa_frame_init_saved_regs.
4947 * sparc-tdep.c: Include "gdb_assert.h".
4948 (sparc_frame_find_saved_regs): Replace internal_error with
4950 * remote-vxsparc.c (vx_read_register): Delete reference to
4951 FRAME_FIND_SAVED_REGS.
4952 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
4953 * gdbarch.h: Regenerate.
4954 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
4955 (deprecated_get_frame_saved_regs): Delete declaration.
4956 (struct frame_saved_regs): Delete definition.
4957 * frame.c (deprecated_get_frame_saved_regs): Delete function.
4958 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
4959 (hppa_frame_find_saved_regs): Delete declaration.
4960 (FRAME_FIND_SAVED_REGS): Delete macro.
4961 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
4962 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
4963 FRAME_FIND_SAVED_REGS in comment.
4965 2003-04-05 Andrew Cagney <cagney@redhat.com>
4967 * frame.c (frame_func_unwind, get_frame_func): New functions.
4968 * frame.h (get_frame_func, frame_func_unwind): Declare.
4969 (struct frame_info): Add field "prev_func" for caching the
4970 previous frame's function address.
4971 * arm-tdep.c (arm_frameless_function_invocation): Combine
4972 get_pc_function_start and get_frame_pc into get_frame_func.
4973 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
4974 (sh64_nofp_frame_init_saved_regs): Ditto.
4975 * s390-tdep.c (s390_function_start): Ditto.
4976 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
4977 (rs6000_frameless_function_invocation): Ditto.
4978 (rs6000_frame_saved_pc): Ditto.
4979 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
4980 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
4981 * i386-tdep.c (i386_frameless_signal_p): Ditto.
4982 (i386_frame_init_saved_regs): Ditto.
4983 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
4984 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
4985 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
4986 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4987 * blockframe.c (frameless_look_for_prologue): Ditto.
4989 2003-04-05 Andrew Cagney <cagney@redhat.com>
4991 * frame.c (legacy_get_prev_frame): Link prev to next at the
4992 function start. Update comments.
4994 2003-04-05 Andrew Cagney <cagney@redhat.com>
4996 * frame.c (get_frame_id): Update comment.
4997 (legacy_get_prev_frame): Update comment.
4998 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
4999 * gdbarch.h: Regenerate.
5000 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
5001 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
5003 2003-04-05 Andrew Cagney <cagney@redhat.com>
5005 * stack.c (print_frame_info): Use get_frame_pc.
5007 2003-04-04 Andrew Cagney <cagney@redhat.com>
5009 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
5010 the frame's type from the unwinder.
5011 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
5012 (create_new_frame, legacy_get_prev_frame): When the unwinder's
5013 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
5014 (get_frame_base_address): Use get_frame_type.
5015 (get_frame_locals_address, get_frame_args_address): Ditto.
5016 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
5017 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
5018 (struct frame_info): Add comment explaining why the frame contains
5020 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
5021 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
5022 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
5024 * frame-unwind.h: Include "frame.h".
5025 (struct frame_unwind): Add "type" field.
5026 * Makefile.in (frame_unwind_h): Add $(frame_h).
5028 2003-04-04 Andrew Cagney <cagney@redhat.com>
5030 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
5031 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
5032 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
5034 (d10v_unwind_dummy_id): Use frame_id_build.
5035 * frame.c (find_frame_sal): Use get_frame_pc.
5036 (create_new_frame): Use deprecated_update_frame_pc_hack and
5037 deprecated_update_frame_base_hack.
5038 (create_sentinel_frame): Add comment about ->pc going away.
5039 (get_prev_frame): Add comment about ->pc going away.
5040 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
5041 frame_id_build, deprecated_update_frame_pc_hack and
5042 deprecated_update_frame_base_hack.
5043 (select_frame): Use get_frame_pc.
5044 (legacy_saved_regs_this_id): Use frame_id_build.
5046 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
5048 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
5049 signed integer case.
5050 (classify_argument): Handle enumerations and references.
5052 2003-04-04 Andrew Cagney <cagney@redhat.com>
5054 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
5057 2003-04-01 Adam Fedor <fedor@gnu.org>
5059 * gdb/objc-lang.c (selectors_info): Replace calls to
5060 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
5061 SYMBOL_NATURAL_NAME.
5062 (classes_info, find_methods): Likewise.
5064 2003-04-03 Kevin Buettner <kevinb@redhat.com>
5066 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
5067 ``mach'' to the value determined by bfd_default_set_arch_mach().
5069 2003-04-02 Bob Rossi <bob_rossi@cox.net>
5071 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
5072 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
5073 (mi-cmd-file.o): Update dependencies.
5075 2003-04-01 Kevin Buettner <kevinb@redhat.com>
5077 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
5078 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
5080 2003-04-01 Adam Fedor <fedor@gnu.org>
5082 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
5083 * language.h (struct language_defn): Add la_demangle.
5084 (language_demangle): Declare.
5085 * language.c (language_demangle): New function.
5086 (unk_lang_demangle): Likewise.
5087 (unknown_language_defn, auto_language_defn, local_language_defn):
5088 Add ukn_lang_demangle.
5089 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
5090 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
5091 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
5092 (cplus_language_defn): Add cplus_demangle for la_demangle element.
5093 * jv-lang.c (java_demangle): New function
5094 (java_language_defn): Use it for la_demangle element.
5095 * objc-lang.c (objc_demangle): Add options argument
5096 (objc_language_defn): Use objc_demangle for la_demangle element.
5097 * maint.c (maintenance_demangle): Replace switch with
5098 call to language_demangle.
5099 * utils.c (fprintf_symbol_filtered): Likewise.
5101 2003-04-01 Andrew Cagney <cagney@redhat.com>
5103 * printcmd.c (print_frame_nameless_args): Delete #ifdef
5104 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
5105 PRINT_TYPELESS_INTEGER.
5106 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
5107 PUSH_RETURN_ADDRESS.
5109 2003-04-01 Andrew Cagney <cagney@redhat.com>
5111 * Makefile.in (d10v-tdep.o): Update dependencies.
5112 * d10v-tdep.c: Include "frame-base.h".
5113 (d10v_frame_unwind): Make constant.
5114 (d10v_frame_base_address): New function.
5115 (d10v_frame_base): New variable.
5116 (d10v_gdbarch_init): Set frame_base default.
5117 (struct d10v_unwind_cache): Add the field "prev_sp". Update
5119 (d10v_frame_unwind_cache): Set and use "prev_sp".
5120 (d10v_frame_this_id): Use the previous frame's inner most stack
5121 address and this frame's func address for the frame ID. Use
5122 frame_id_build. Don't analyze beyond the current instruction.
5124 2003-04-01 Andrew Cagney <cagney@redhat.com>
5126 * frame.h (get_frame_locals_address, get_frame_args_address):
5127 Refer to the base address, instead of the address of the first
5130 2003-04-01 Andrew Cagney <cagney@redhat.com>
5132 Add frame debug info addresses:
5133 * frame-base.c: New file.
5134 * frame-base.h: New file.
5135 * frame.h (struct frame_base): Add opaque declaration.
5136 (get_frame_base): Update comment.
5137 (get_frame_base_address): Declare.
5138 (get_frame_locals_address): Declare.
5139 (get_frame_args_address): Declare.
5140 (struct frame_info): Add "base" and "base_cache". Update
5141 comments on the unwinder.
5142 * frame.c: Include "frame-base.h".
5143 (get_frame_locals_address): New function.
5144 (get_frame_base_address): New function.
5145 (get_frame_args_address): New function.
5146 * findvar.c (read_var_value): Use get_frame_locals_address and
5147 get_frame_args_address.
5148 * stack.c (frame_info): Use get_frame_locals_address and
5149 get_frame_args_address.
5150 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
5151 moved to "frame-base.c".
5152 * printcmd.c (print_frame_nameless_args): Ditto.
5153 * symtab.h (address_class): Update comments.
5154 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
5155 get_frame_base_address.
5156 * dwarf2expr.c (execute_stack_op): Ditto.
5157 * Makefile.in (frame_base_h): Define.
5158 (frame.o): Update dependencies.
5159 (frame-base.o): Add dependencies.
5160 (SFILES): Add frame-base.c.
5161 (COMMON_OBS): Add frame-base.o.
5163 2003-04-01 Andrew Cagney <cagney@redhat.com>
5165 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
5166 CALL_DUMMY_LENGTH): Ditto.
5167 * gdbarch.c: Re-generate.
5168 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
5169 (CALL_DUMMY_LENGTH): Delete macro.
5170 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
5171 * arm-tdep.c (arm_gdbarch_init): Ditto.
5172 * avr-tdep.c (avr_gdbarch_init): Ditto.
5173 * cris-tdep.c (cris_gdbarch_init): Ditto.
5174 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5175 * frv-tdep.c (frv_gdbarch_init): Ditto.
5176 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5177 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5178 * i386-tdep.c (i386_gdbarch_init): Ditto.
5179 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5180 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5181 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5182 * mips-tdep.c (mips_gdbarch_init): Ditto.
5183 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5184 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5185 * s390-tdep.c (s390_gdbarch_init): Ditto.
5186 * sh-tdep.c (sh_gdbarch_init): Ditto.
5187 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5188 * v850-tdep.c (v850_gdbarch_init): Ditto.
5189 * vax-tdep.c (vax_gdbarch_init): Ditto.
5190 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5192 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
5194 * frame.c (get_prev_frame): Disable call to inside_entry_file().
5196 2003-04-01 Andrew Cagney <cagney@redhat.com>
5198 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
5199 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5200 * gdbarch.h, gdbarch.c: Re-generate.
5201 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5202 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5203 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5204 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5205 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
5206 * infcmd.c (run_stack_dummy): Simplify assuming
5207 CALL_DUMMY_BREAKPOINT_OFFSET_P.
5208 * infrun.c (handle_inferior_event): Ditto.
5209 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5210 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
5211 * arm-tdep.c (arm_gdbarch_init): Ditto.
5212 * avr-tdep.c (avr_gdbarch_init): Ditto.
5213 * cris-tdep.c (cris_gdbarch_init): Ditto.
5214 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5215 * frv-tdep.c (frv_gdbarch_init): Ditto.
5216 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5217 * i386-tdep.c (i386_gdbarch_init): Ditto.
5218 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5219 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5220 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5221 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5222 * mips-tdep.c (mips_gdbarch_init): Ditto.
5223 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5224 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5225 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5226 * s390-tdep.c (s390_gdbarch_init): Ditto.
5227 * sh-tdep.c (sh_gdbarch_init): Ditto.
5228 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5229 * v850-tdep.c (v850_gdbarch_init): Ditto.
5230 * vax-tdep.c (vax_gdbarch_init): Ditto.
5231 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5233 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
5235 * symfile.c (symfile_relocate_debug_section): Update call to
5236 bfd_simple_get_relocated_section_contents.
5238 2003-03-31 Andrew Cagney <cagney@redhat.com>
5240 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
5241 * gdbarch.h, gdbarch.c: Regenerate.
5242 * inferior.h (FIX_CALL_DUMMY): Delete macro.
5243 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
5245 * frame.h (generic_fix_call_dummy): Delete declaration.
5246 * dummy-frame.h: Update comment.
5247 * dummy-frame.c (generic_fix_call_dummy): Delete function.
5248 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5250 * sh-tdep.c (sh_gdbarch_init): Ditto.
5251 * s390-tdep.c (s390_gdbarch_init): Ditto.
5252 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5253 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5254 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5255 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5256 * i386-tdep.c (i386_gdbarch_init): Ditto.
5257 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5258 * frv-tdep.c (frv_gdbarch_init): Ditto.
5259 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5260 * cris-tdep.c (cris_gdbarch_init): Ditto.
5261 * avr-tdep.c (avr_gdbarch_init): Ditto.
5262 * arm-tdep.c (arm_gdbarch_init): Ditto.
5264 2003-03-31 J. Brobecker <brobecker@gnat.com>
5266 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
5267 (INIT_FRAME_AP): Likewise.
5268 (EXTRA_FRAME_INFO): Likewise.
5270 2003-03-31 Andrew Cagney <cagney@redhat.com>
5272 * gdbarch.sh: Include "symfile.h".
5273 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
5274 * gdbarch.h, gdbarch.c: Re-generate.
5275 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
5276 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5277 call_dummy_address, the default is at entry_point_address.
5278 * v850-tdep.c (v850_gdbarch_init): Ditto.
5279 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5280 * sh-tdep.c (sh_gdbarch_init): Ditto.
5281 * s390-tdep.c (s390_gdbarch_init): Ditto.
5282 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5283 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5284 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5285 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5286 * i386-tdep.c (i386_gdbarch_init): Ditto.
5287 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5288 * frv-tdep.c (frv_gdbarch_init): Ditto.
5289 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5290 * cris-tdep.c (cris_gdbarch_init): Ditto.
5291 * arm-tdep.c (arm_gdbarch_init): Ditto.
5293 2003-03-31 Andrew Cagney <cagney@redhat.com>
5295 * gdbarch.sh (CALL_DUMMY_P): Delete.
5296 * gdbarch.h, gdbarch.c: Re-generate.
5297 * inferior.h (CALL_DUMMY_P): Delete macro.
5298 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5299 * vax-tdep.c (vax_gdbarch_init): Update.
5300 * v850-tdep.c (v850_gdbarch_init): Update.
5301 * sparc-tdep.c (sparc_gdbarch_init): Update.
5302 * sh-tdep.c (sh_gdbarch_init): Update.
5303 * s390-tdep.c (s390_gdbarch_init): Update.
5304 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5305 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5306 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5307 * mips-tdep.c (mips_gdbarch_init): Update.
5308 * mcore-tdep.c (mcore_gdbarch_init): Update.
5309 * m68k-tdep.c (m68k_gdbarch_init): Update.
5310 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5311 * ia64-tdep.c (ia64_gdbarch_init): Update.
5312 * i386-tdep.c (i386_gdbarch_init): Update.
5313 * h8300-tdep.c (h8300_gdbarch_init): Update.
5314 * frv-tdep.c (frv_gdbarch_init): Update.
5315 * d10v-tdep.c (d10v_gdbarch_init): Update.
5316 * cris-tdep.c (cris_gdbarch_init): Update.
5317 * breakpoint.c (deprecated_frame_in_dummy): Update.
5318 * avr-tdep.c (avr_gdbarch_init): Update.
5319 * alpha-tdep.c (alpha_gdbarch_init): Update.
5320 * arm-tdep.c (arm_gdbarch_init): Update.
5321 * dummy-frame.c (dummy_frame_this_id): Update comments.
5322 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
5323 * frame.c (legacy_get_prev_frame): Ditto.
5324 * valops.c (call_function_by_hand): Delete function.
5325 (hand_function_call): Rename to call_function_by_hand
5327 2003-03-30 Andrew Cagney <cagney@redhat.com>
5329 2002-11-10 Klee Dienes <kdienes@apple.com>
5330 * value.h (struct value): Update comment.
5332 2003-03-30 Andrew Cagney <cagney@redhat.com>
5334 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
5336 (d10v_gdbarch_init): Do not set fp_regnum.
5338 * frame.c (get_frame_base): Force ID initialization.
5339 (get_prev_frame): Move computation of the frame ID from here ...
5340 (get_frame_id): ... to here.
5341 (legacy_get_prev_frame): Mark the frame ID as valid.
5342 * frame.h (struct frame_info): Add field "id_p".
5344 2003-03-30 Mark Kettenis <kettenis@gnu.org>
5346 * i386-tdep.c (i386_store_struct_return): Removed.
5347 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
5349 2003-03-30 Andrew Cagney <cagney@redhat.com>
5351 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
5352 * gdbarch.h, gdbarch.c: Regenerate.
5353 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
5354 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5355 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5356 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5357 * i386-tdep.c (i386_gdbarch_init): Ditto.
5358 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5359 * cris-tdep.c (cris_gdbarch_init): Ditto.
5360 * vax-tdep.c (vax_gdbarch_init): Ditto.
5361 * s390-tdep.c (s390_gdbarch_init): Ditto.
5362 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5363 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5364 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5365 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
5366 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5367 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
5368 * sparc-tdep.c (sparc_gdbarch_init): Update.
5369 * sh-tdep.c (sh_gdbarch_init): Update.
5370 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5371 * mips-tdep.c (mips_gdbarch_init): Update.
5372 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5373 * ia64-tdep.c (ia64_gdbarch_init): Update.
5374 * frv-tdep.c (frv_gdbarch_init): Update.
5375 * avr-tdep.c (avr_gdbarch_init): Update.
5376 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
5377 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
5378 instead of when push_dummy_call is not available.
5380 2003-03-30 Andrew Cagney <cagney@redhat.com>
5382 * infttrace.c: Include "gdbthread.h".
5383 (parent_attach_all): Fix function signature.
5384 (call_ptrace): Update call.
5385 * Makefile.in (infttrace.o): Update dependencies.
5387 2003-03-30 Andrew Cagney <cagney@redhat.com>
5389 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
5390 PUSH_RETURN_ADDRESS.
5391 * gdbarch.h, gdbarch.c: Regenerate.
5392 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5393 * x86-64-tdep.c (x86_64_init_abi): Update.
5394 * v850-tdep.c (v850_gdbarch_init): Update.
5395 * sparc-tdep.c (sparc_gdbarch_init): Update.
5396 * sh-tdep.c (sh_gdbarch_init): Update.
5397 * s390-tdep.c (s390_gdbarch_init): Update.
5398 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5399 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5400 * mips-tdep.c (mips_gdbarch_init): Update.
5401 * mcore-tdep.c (mcore_gdbarch_init): Update.
5402 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5403 * ia64-tdep.c (ia64_gdbarch_init): Update.
5404 * i386-tdep.c (i386_gdbarch_init): Update.
5405 * h8300-tdep.c (h8300_gdbarch_init): Update.
5406 * frv-tdep.c (frv_gdbarch_init): Update.
5407 * cris-tdep.c (cris_gdbarch_init): Update.
5408 * avr-tdep.c (avr_gdbarch_init): Update.
5409 * arm-tdep.c (arm_gdbarch_init): Update.
5410 * valops.c (hand_function_call): Update.
5412 2003-03-29 Andrew Cagney <cagney@redhat.com>
5414 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
5415 sizeof_call_dummy_words.
5416 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
5418 * gdbarch.h: Regenerate.
5420 2003-03-29 Andrew Cagney <cagney@redhat.com>
5422 * infttrace.h: New file.
5423 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
5424 (hpread_get_textlow): Detect an uninitialized dn_bufp.
5425 (hpread_read_doc_function_type): Detect an initialized type1.
5426 (hpread_quick_traverse): Initialize mod_name_string.
5427 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
5428 (som_solib_get_solib_by_pc): Declare.
5429 (so_lib_thread_start_addr): Declare.
5430 (no_shared_libraries): Declare.
5431 * somread.c (init_import_symbols): Make static. Add forward
5433 * config/pa/nm-hppah.h: Include "infttrace.h" for
5435 (hppa_insert_hw_watchpoint): Declare.
5436 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
5437 * hppah-nat.c: Include "gdb_string.h".
5438 (parent_attach_all): Delete extern declaration, moved to
5440 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
5442 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
5443 * Makefile.in (infttrace_h): Define.
5444 (hpread.o): Update dependencies.
5445 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
5446 * hppa-hpux-tdep.c: Include "gdb_string.h".
5447 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
5448 * infrun.c (handle_inferior_event): Always initialize
5449 stepped_after_stopped_by_watchpoint. Add default and remove
5450 fallthrough in switch statement.
5451 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
5453 (hppa_remove_hw_watchpoint): Ditto.
5455 2003-03-29 Andrew Cagney <cagney@redhat.com>
5457 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
5460 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
5462 * arm-tdep.c (arm_push_arguments): Delete.
5463 (struct stack_item): New type.
5464 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
5465 (arm_store_struct_return): Delte.
5466 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
5467 arm_push_arguments or arm_store_struct_return.
5469 2003-03-28 Andrew Cagney <cagney@redhat.com>
5471 * Makefile.in (d10v-tdep.o): Update dependencies.
5472 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
5473 * d10v-tdep.c: Include "remote.h".
5474 (target_resume_hook): Delete extern declaration.
5475 (target_wait_loop_hook): Ditto.
5476 (tdisassemble_command): Eliminate assignment in "if" conditional.
5477 (d10v_ts2_register_sim_regno): Eliminate call to
5478 legacy_register_sim_regno.
5479 (d10v_ts3_register_sim_regno): Ditto.
5481 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
5483 * thread.c: Reindented.
5485 * linux-proc.c: Ditto.
5487 2003-03-28 Bob Rossi <bob_rossi@cox.net>
5489 * MAINTAINERS (write after approval): Add myself.
5491 2003-03-27 Theodore A. Roth <troth@openavr.org>
5493 * objc-exp.y: Add missing semi-colons.
5495 2003-03-27 Andrew Cagney <cagney@redhat.com>
5497 * regcache.c (write_sp): Delete function and references.
5498 * inferior.h (write_sp): Delete declaration.
5499 * valops.c (hand_function_call): Replace write_sp with
5501 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
5502 (sparc_pop_frame): Ditto.
5504 2003-03-27 Andrew Cagney <cagney@redhat.com>
5506 * NEWS: Mention removal of support for hppa*-*-bsd* and
5507 hppa*-*-osf* natives, and hppa*-*-pro* target.
5508 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
5509 * config/pa/xm-pa.h: Obsolete file.
5510 * config/pa/xm-hppab.h: Obsolete file.
5511 * config/pa/nm-hppab.h: Obsolete file.
5512 * config/pa/tm-hppab.h: Obsolete file.
5513 * config/pa/tm-hppao.h: Obsolete file.
5514 * config/pa/nm-hppao.h: Obsolete file.
5515 * config/pa/tm-pro.h: Obsolete file.
5516 * config/pa/hppaosf.mt: Obsolete file.
5517 * config/pa/hppaosf.mh: Obsolete file.
5518 * config/pa/hppapro.mt: Obsolete file.
5519 * config/pa/hppabsd.mt: Obsolete file.
5520 * config/pa/hppabsd.mh: Obsolete file.
5521 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
5522 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
5525 2003-03-27 Andrew Cagney <cagney@redhat.com>
5527 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
5528 push_arguments. Don't set push_return_address or write_sp.
5529 (d10v_push_dummy_call): Replace d10v_push_arguments.
5530 (d10v_push_return_address, d10v_write_sp): Delete function,
5531 handled by push_dummy_call.
5533 2003-03-26 Andrew Cagney <cagney@redhat.com>
5535 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
5536 (push_dummy_call): New pure multi-arch replacement with gdbarch,
5537 regcache and dummy_addr parameters.
5538 * gdbarch.h, gdbarch.c: Re-generate.
5539 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
5540 available; assume it will handle stack alignment and return
5541 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
5542 legacy_push_arguments.
5543 (legacy_push_arguments): Rename default_push_arguments.
5544 * value.h (legacy_push_arguments): Rename default_push_arguments.
5545 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
5546 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
5547 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
5548 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
5549 * config/i386/tm-symmetry.h: Update.
5550 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5551 * x86-64-tdep.c (x86_64_init_abi): Update.
5552 * v850-tdep.c (v850_gdbarch_init): Update.
5553 * sparc-tdep.c (sparc_gdbarch_init): Update.
5554 * sh-tdep.c (sh_gdbarch_init): Update.
5555 * s390-tdep.c (s390_gdbarch_init): Update.
5556 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5557 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5558 * mips-tdep.c (mips_gdbarch_init): Update.
5559 * mcore-tdep.c (mcore_gdbarch_init): Update.
5560 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5561 * ia64-tdep.c (ia64_gdbarch_init): Update.
5562 * i386-tdep.c (i386_gdbarch_init): Update.
5563 * hppa-tdep.c (hppa_gdbarch_init): Update.
5564 * h8300-tdep.c (h8300_gdbarch_init): Update.
5565 * frv-tdep.c (frv_gdbarch_init): Update.
5566 * d10v-tdep.c (d10v_gdbarch_init): Update.
5567 * cris-tdep.c (cris_gdbarch_init): Update.
5568 * avr-tdep.c (avr_gdbarch_init): Update.
5569 * arm-tdep.c (arm_gdbarch_init): Update.
5570 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5571 * alpha-tdep.c (alpha_gdbarch_init): Update.
5573 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
5575 * signals/signals.c (do_target_signal_to_host): Correct realtime
5578 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
5580 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
5581 (struct sal_chain, map_catch_names): Remove.
5582 (catch_exception_command_1): Don't call
5583 handle_gnu_4_16_catch_command.
5585 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
5587 From Mark Dettinger <dettinge@de.ibm.com>:
5588 * dwarf2cfi.c (read_2u): Increment pointer by two.
5590 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
5592 * signals/signals.c: Fix typos in last change.
5594 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
5596 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
5597 not already defined. Use __SIGRTMIN if available.
5598 (target_signal_from_host): Remove SIGRTMIN block.
5599 (do_target_signal_to_host): Remove SIGRTMIN block; check that
5600 the signal is within the realtime range.
5602 2003-03-25 Adam Fedor <fedor@gnu.org>
5604 * Makefile.in (infrun.o): Add $(language_h)
5605 * infrun.c (handle_inferior_event): Use skip_language_trampoline
5606 for language specific trampolines.
5607 * language.h (struct language_defn): Add skip_trampoline.
5608 (skip_language_trampoline): Declare.
5609 * language.c (unk_lang_trampoline, skip_language_trampoline):
5611 (unknown_language_defn, auto_language_defn, local_language_defn):
5612 Add ukn_lang_trampoline.
5613 * ada-lang.c (ada_language_defn): Add NULL for language
5614 specific skip_trampoline.
5615 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
5616 scm-lang.c: Likewise.
5617 * objc-lang.c (objc_skip_trampoline): New function.
5618 (objc_language_defn): Add objc_skip_trampoline.
5620 2003-03-25 Andrew Cagney <cagney@redhat.com>
5622 * frame.c (get_prev_frame): Delay validating a frame's ID -
5623 non-NULL, didn't go backwards - until an attempt to unwind it to
5626 2003-03-25 Andrew Cagney <cagney@redhat.com>
5628 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
5629 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
5630 * gdbarch.h, gdbarch.c: Re-generate.
5631 * config/sparc/tm-sparc.h
5632 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
5633 * sparc-tdep.c (sparc_gdbarch_init): Set
5634 deprecated_extra_stack_alignment_needed.
5635 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
5636 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
5637 extra_stack_alignment_needed.
5638 * v850-tdep.c (v850_gdbarch_init): Ditto.
5639 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5640 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5641 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5642 * cris-tdep.c (cris_gdbarch_init): Ditto.
5643 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5644 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5646 2003-03-25 Andrew Cagney <cagney@redhat.com>
5648 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
5649 STORE_STRUCT_RETURN.
5650 * gdbarch.h, gdbarch.c: Regenerate.
5651 * d10v-tdep.c (d10v_store_struct_return): Delete function.
5652 (d10v_push_arguments): Set the struct return register.
5653 (d10v_gdbarch_init): Update.
5654 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5655 * x86-64-tdep.c (x86_64_init_abi): Update.
5656 * vax-tdep.c (vax_gdbarch_init): Update.
5657 * v850-tdep.c (v850_gdbarch_init): Update.
5658 * sparc-tdep.c (sparc_gdbarch_init): Update.
5659 * sh-tdep.c (sh_gdbarch_init): Update.
5660 * s390-tdep.c (s390_gdbarch_init): Update.
5661 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5662 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5663 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5664 * mips-tdep.c (mips_gdbarch_init): Update.
5665 * mcore-tdep.c (mcore_gdbarch_init): Update.
5666 * m68k-tdep.c (m68k_gdbarch_init): Update.
5667 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5668 * ia64-tdep.c (ia64_gdbarch_init): Update.
5669 * i386-tdep.c (i386_gdbarch_init): Update.
5670 * hppa-tdep.c (hppa_gdbarch_init): Update.
5671 * h8300-tdep.c (h8300_gdbarch_init): Update.
5672 * frv-tdep.c (frv_gdbarch_init): Update.
5673 * cris-tdep.c (cris_gdbarch_init): Update.
5674 * avr-tdep.c (avr_gdbarch_init): Update.
5675 * arm-tdep.c (arm_gdbarch_init): Update.
5676 * alpha-tdep.c (alpha_gdbarch_init): Update.
5678 2003-03-25 Andrew Cagney <cagney@redhat.com>
5680 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
5681 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
5682 CALL_DUMMY_STACK_ADJUST with a predicate variable.
5683 * gdbarch.h, gdbarch.c: Regenerate.
5684 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5685 call_dummy_stack_adjust_p.
5686 * vax-tdep.c (vax_gdbarch_init): Ditto.
5687 * v850-tdep.c (v850_gdbarch_init): Ditto.
5688 * sh-tdep.c (sh_gdbarch_init): Ditto.
5689 * s390-tdep.c (s390_gdbarch_init): Ditto.
5690 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5691 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5692 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5693 * mips-tdep.c (mips_gdbarch_init): Ditto.
5694 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5695 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5696 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5697 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5698 * i386-tdep.c (i386_gdbarch_init): Ditto.
5699 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5700 * frv-tdep.c (frv_gdbarch_init): Ditto.
5701 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5702 * cris-tdep.c (cris_gdbarch_init): Ditto.
5703 * avr-tdep.c (avr_gdbarch_init): Ditto.
5704 * arm-tdep.c (arm_gdbarch_init): Ditto.
5705 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5706 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
5707 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
5708 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
5709 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
5710 call_dummy_stack_adjust_p.
5711 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
5712 (CALL_DUMMY_STACK_ADJUST): Delete macro.
5713 * sparc-tdep.c (sparc32_push_arguments): Update.
5714 * valops.c (hand_function_call): Update.
5716 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
5718 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
5719 set_gdbarch_char_signed.
5721 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
5724 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
5726 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
5728 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
5729 (_initialize_arm_tdep): Don't set tm_print_insn.
5731 2003-03-24 Adam Fedor <fedor@gnu.org>
5733 * Makefile.in (YYOBJ): Add objc-exp.tab.o
5734 * objc-lang.h: Add multiple inclusion protection.
5735 (start_msglist, add_msglist, end_msglist): Additional declarations.
5737 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
5739 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
5740 value was renamed to ARM_FLOAT_SOFT_FPA.
5742 2003-03-23 Andrew Cagney <cagney@redhat.com>
5744 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
5745 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
5746 * gdbarch.h, gdbarch.c: Regenerate.
5747 * valops.c (hand_function_call): Update.
5748 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
5749 * frame.c (legacy_saved_regs_this_id): Update.
5750 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
5751 * dummy-frame.h: Update.
5752 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
5753 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
5754 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
5755 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
5756 * config/m68k/tm-sun3.h: Update.
5757 * blockframe.c (inside_main_func, frame_chain_valid): Update.
5758 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5759 * x86-64-tdep.c (x86_64_init_abi): Update.
5760 * vax-tdep.c (vax_gdbarch_init): Update.
5761 * v850-tdep.c (v850_gdbarch_init): Update.
5762 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
5763 * sh-tdep.c (sh_gdbarch_init): Update.
5764 * s390-tdep.c (s390_gdbarch_init): Update.
5765 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
5766 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
5767 (frame_get_saved_regs): Update.
5768 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
5769 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5770 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5771 * mips-tdep.c (mips_gdbarch_init): Update.
5772 * mcore-tdep.c (mcore_gdbarch_init): Update.
5773 * m68k-tdep.c (m68k_gdbarch_init): Update.
5774 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5775 * ia64-tdep.c (ia64_gdbarch_init): Update.
5776 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
5777 * i386-interix-tdep.c (i386_interix_init_abi): Update.
5778 (i386_interix_back_one_frame): Update.
5779 * hppa-tdep.c (hppa_gdbarch_init): Update.
5780 (hppa_init_extra_frame_info): Update.
5781 * h8300-tdep.c (h8300_gdbarch_init): Update.
5782 * frv-tdep.c (frv_gdbarch_init): Update.
5783 * cris-tdep.c (cris_gdbarch_init): Update.
5784 * avr-tdep.c (avr_gdbarch_init): Update.
5785 * arm-tdep.c (arm_gdbarch_init): Update.
5786 * alpha-tdep.c (alpha_gdbarch_init): Update.
5788 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
5790 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
5791 (arm_get_fp_model): Declare.
5792 * arm-tdep.c (fp_model_strings): New string array.
5793 (arm_fp_model, current_fp_model): New variables.
5794 (arm_get_fp_model): New function.
5795 (arm_set_fp): New function.
5796 (set_fp_model_sfunc): New function.
5797 (show_fp_model): New function.
5798 (_initialize_arm_tdep): Add new command to set/show the FPU.
5799 (arm_extract_return_value): Use arm_get_fp_model.
5800 (arm_store_return_value): Likewise.
5801 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
5802 to initialize the floating-point data types.
5803 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
5806 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
5808 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
5809 the current setting of each value.
5810 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
5811 new_set and new_show. Use add_setshow_cmd_full and
5812 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
5813 commands and add new version as subcommands of "set/show arm".
5815 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
5817 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
5818 (set_arm_command, show_arm_command): New functions.
5819 (_initialize_arm_tdep): Add them.
5820 (num_disassembly_options): Renamed from num_flavor_options.
5821 (valid_disassembly_styles): Renamed from valid_flavors.
5822 (disassembly_style): Renamed from disassembly_flavor.
5823 (set_disassembly_style_sfunc): Renamed from
5824 set_disassembly_flavor_sfunc.
5825 (set_disassembly_style): Renamed from set_disassembly_flavor.
5826 (arm_othernames): Updated.
5827 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
5828 command. Add "set/show arm disassembly" commands. Deprecate
5829 "othernames" command.
5831 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
5833 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
5834 (arm-tdep.o): Depend on elf_arm_h.
5836 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
5838 * Makefile.in (coff_internal_h): Define.
5839 (arm-tdep.o): Update dependencies.
5841 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
5843 * arm-tdep.c (prologue_cache): Delete.
5844 (check_prologue_cache, save_prologue_cache): Delete.
5845 (arm_scan_prologue): Don't check or update the prologue_cache.
5846 (arm_gdb_arch_init): Don't initialize it.
5847 (_initialize_arm_tdep): Likewise.
5849 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
5851 * MAINTAINERS (tui): Maintainer of tui code.
5853 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
5855 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
5856 (i386-cygwin-tdep.o): Add dependencies.
5857 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
5858 * i386-cygwin-tdep.c: New file.
5859 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
5860 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
5862 2003-03-20 Andrew Cagney <cagney@redhat.com>
5864 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
5865 (handle_inferior_event): Remove code calling
5866 DYNAMIC_TRAMPOLINE_NEXTPC.
5868 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
5869 already has a full path.
5871 * main.c (gdb_main): Return 1.
5872 (captured_main): Call error to report an invalid interpreter.
5874 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5875 * alpha-osf1-tdep.c: Include "gdb_string.h".
5877 2003-03-19 J. Brobecker <brobecker@gnat.com>
5879 Continuing work to convert the hppa targets to multiarch partial.
5881 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
5882 method, now that hppa_push_dummy_frame has a conformant prototype.
5883 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
5884 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
5885 for the switch to multiarch partial.
5887 2003-03-19 Kevin Buettner <kevinb@redhat.com>
5889 * mdebugread.c (parse_symbol): For stEnd, we're done counting
5890 when iss is issNull.
5892 2003-03-18 Kevin Buettner <kevinb@redhat.com>
5894 * mips-tdep.c (mips_register_name): Fix fencepost error involving
5895 NUM_REGS bounds check.
5897 2003-03-18 Kevin Buettner <kevinb@redhat.com>
5899 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
5900 * mips-tdep.c (gdb_assert.h): Include.
5901 (mips_generic_reg_names, mips_processor_reg_names): Make static.
5902 (mips_register_name): Handle integer registers explicitly. Add
5904 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
5905 (mips_lsi33k_reg_names): Don't list integer registers; they're
5906 handled by mips_register_name() now.
5907 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
5908 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
5909 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
5910 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
5911 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
5913 2003-03-18 Andrew Cagney <cagney@redhat.com>
5915 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
5917 * gdbtypes.h (print_scalar_formatted): Update declaration.
5918 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
5920 2003-03-18 J. Brobecker <brobecker@gnat.com>
5922 * infrun.c (observer.h): Add #include.
5923 (normal_stop): Add call to observer_notify_normal_stop.
5924 * Makefile.in (infrun.o): Add dependency on observer.h.
5926 2003-03-18 J. Brobecker <brobecker@gnat.com>
5928 Continuing work to convert the hppa targets to multiarch partial.
5929 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
5930 parameter. Reformat comment.
5931 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
5932 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
5933 to match new profile.
5935 2003-03-18 J. Brobecker <brobecker@gnat.com>
5937 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
5938 appear to be working in any case.
5940 2003-03-18 J. Brobecker <brobecker@gnat.com>
5942 * observer.c (observer_test_first_observer): New static variable.
5943 (observer_test_second_observer): Likewise.
5944 (observer_test_third_observer): Likewise.
5945 (observer_test_first_notification_function): New static function.
5946 (observer_test_second_notification_function): Likewise.
5947 (observer_test_third_notification_function): Likewise.
5949 2003-03-17 J. Brobecker <brobecker@gnat.com>
5951 * hppa-tdep.c (gdb_assert.h): Add missing #include.
5952 * somsolib.c (gdb_assert.h): Likewise.
5953 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
5954 (somsolib.o): Likewise.
5956 2003-03-17 Andrew Cagney <cagney@redhat.com>
5958 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
5959 BFD. Simplify setting of di.endian.
5961 2003-03-17 Andrew Cagney <cagney@redhat.com>
5963 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
5964 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
5966 From Elena Zannoni <ezannoni@redhat.com>
5967 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
5968 vector and floating-point parameters.
5969 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
5971 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
5973 2003-03-17 Fernando Nasser <fnasser@redhat.com>
5975 * MAINTAINERS: Remove my name from several maintainership roles.
5977 2003-03-17 Andrew Cagney <cagney@redhat.com>
5979 Fix frame off-by-one bug.
5980 * frame-unwind.h (frame_this_id_ftype): Replace
5981 frame_unwind_id_ftype.
5982 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
5983 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
5984 with "prev_register".
5985 * frame-unwind.c (frame_unwind_find_by_pc): Return
5986 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
5988 * dummy-frame.c (cached_find_dummy_frame): Delete function.
5989 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
5990 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
5991 (dummy_frame_unwind): Update.
5992 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5993 sentinel_frame_register_unwind.
5994 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
5995 (sentinel_frame_unwinder): Update.
5996 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
5997 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
5998 * frame.c (create_sentinel_frame): Update. Initialize
5999 "prologue_cache" instead of "unwind_cache".
6000 (frame_register_unwind): Call this frame's prev_register with the
6001 next frame and this frame's prologue cache.
6002 (get_prev_frame): Simplify. Always call prev frame's this_id with
6003 this frame and prev frame's prologue cache. Document that this
6004 call is shifted one to the left when compared to the
6005 frame_register_unwind call.
6006 (legacy_saved_regs_prev_register): Replace
6007 frame_saved_regs_register_unwind.
6008 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
6009 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
6010 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
6011 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
6012 (d10v_frame_unwind): Update.
6013 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
6014 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
6015 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
6016 "saved_regs" with "this_saved_regs".
6018 2003-03-16 Andrew Cagney <cagney@redhat.com>
6020 * frame.c (frame_pop): Don't call target_store_registers. Fix
6021 problem reported by Mark Kettenis.
6023 2003-03-16 Mark Kettenis <kettenis@gnu.org>
6025 * i386-tdep.c (i386_register_type): Renamed from
6026 i386_register_virtual_type. Adjust function signature.
6027 (i386_gdbarch_init): Set register_type instead of
6028 deprecated_max_register_raw_size,
6029 deprecated_max_register_virtual_size and register_virtual_type.
6031 2003-03-14 Andrew Cagney <cagney@redhat.com>
6033 * frame.c (get_prev_frame): When a legacy frame, always call
6034 legacy_get_prev_frame. Simplify unwind code using assumption that
6035 the unwinder is new.
6036 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
6037 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
6038 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
6040 2003-03-14 Andrew Cagney <cagney@redhat.com>
6042 * frame.c (get_saved_register): Delete function.
6043 * frame.h (get_saved_register): Delete declaration.
6044 * xstormy16-tdep.c: Update comment.
6045 * regcache.h: Update comments.
6046 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
6047 get_saved_register and extract_address, use
6048 frame_read_unsigned_register.
6049 (sparc_frame_saved_pc): Ditto.
6050 (sparc_get_saved_register): Instead of get_saved_register, use
6052 (sparc_pop_frame): Ditto.
6053 * findvar.c: Update comments.
6054 (value_of_register): Call frame_register instead of
6056 (value_from_register): Ditto.
6057 * config/sparc/tm-sparc.h: Update comment.
6058 * breakpoint.c: Update comment.
6060 2003-03-14 Andrew Cagney <cagney@redhat.com>
6062 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
6064 * gdbarch.h, gdbarch.c: Re-generate.
6065 * frame.h: Update comments.
6066 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6067 * x86-64-tdep.c (x86_64_init_abi): Update.
6068 * sparc-tdep.c (sparc_gdbarch_init): Update.
6069 * sh-tdep.c (sh_gdbarch_init): Update.
6070 * mips-tdep.c (mips_gdbarch_init): Update.
6071 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6072 * cris-tdep.c (cris_gdbarch_init): Update.
6073 * ia64-tdep.c (ia64_gdbarch_init): Update.
6074 * frame.c (frame_register): Update.
6075 (get_saved_register): Update.
6076 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
6078 2003-03-13 Andrew Cagney <cagney@redhat.com>
6080 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
6081 * gdbarch.h, gdbarch.c: Regenerate.
6082 * valops.c (hand_function_call): Update comment.
6083 * stack.c (return_command): Update comment.
6084 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
6085 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
6086 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6087 * x86-64-tdep.c (x86_64_init_abi): Update.
6088 * vax-tdep.c (vax_gdbarch_init): Update.
6089 * v850-tdep.c (v850_gdbarch_init): Update.
6090 * sparc-tdep.c (sparc_gdbarch_init): Update.
6091 * sh-tdep.c (sh_gdbarch_init): Update.
6092 * s390-tdep.c (s390_gdbarch_init): Update.
6093 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6094 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6095 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6096 * mips-tdep.c (mips_gdbarch_init): Update.
6097 * mcore-tdep.c (mcore_gdbarch_init): Update.
6098 * m68k-tdep.c (m68k_gdbarch_init): Update.
6099 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6100 * ia64-tdep.c (ia64_gdbarch_init): Update.
6101 * i386-tdep.c (i386_gdbarch_init): Update.
6102 * hppa-tdep.c (hppa_gdbarch_init): Update.
6103 * h8300-tdep.c (h8300_gdbarch_init): Update.
6104 * frv-tdep.c (frv_gdbarch_init): Update.
6105 * cris-tdep.c (cris_gdbarch_init): Update.
6106 * avr-tdep.c (avr_gdbarch_init): Update.
6107 * arm-tdep.c (arm_gdbarch_init): Update.
6108 * alpha-tdep.c (alpha_gdbarch_init): Update.
6110 2003-03-13 Andrew Cagney <cagney@redhat.com>
6112 * frame.c (legacy_frame_p): New function.
6113 (get_prev_frame): Use legacy_frame_p.
6114 * frame.h (legacy_frame_p): Declare.
6116 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
6118 * MAINTAINERS (write after approval): Alphabetically
6121 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
6123 * MAINTAINERS (write after approval): Add myself.
6125 2003-03-12 Andrew Cagney <cagney@redhat.com>
6127 * frame.c (get_prev_frame): Rename the frame parameter to
6129 (get_next_frame, legacy_get_prev_frame): Ditto.
6131 2003-03-12 Andrew Cagney <cagney@redhat.com>
6133 * frame.c (get_current_frame): Check target_has_registers before
6134 checking target_has_stack.
6135 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
6136 instead of deprecated_selected_frame.
6137 * findvar.c (value_of_register): Pass "frame", not
6138 deprecated_selected_frame, to value_of_builtin_reg.
6140 2003-03-12 Andrew Cagney <cagney@redhat.com>
6142 * regcache.c (regcache_cooked_write_signed): New function.
6143 (regcache_cooked_write_unsigned): New function.
6144 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
6145 (regcache_cooked_read_signed): Fix regnum in range assertion.
6146 * regcache.h (regcache_cooked_write_signed): Declare.
6147 (regcache_cooked_write_unsigned): Declare.
6149 2003-03-12 Andrew Cagney <cagney@redhat.com>
6151 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
6152 * gdbarch.h, gdbarch.c: Re-generate.
6153 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6154 * x86-64-tdep.h: Update.
6155 * x86-64-tdep.c (x86_64_init_abi): Update.
6156 * v850-tdep.c (v850_gdbarch_init): Update.
6157 * sparc-tdep.c (sparc_gdbarch_init): Update.
6158 * sh-tdep.c (sh_gdbarch_init): Update.
6159 * s390-tdep.c (s390_gdbarch_init): Update.
6160 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6161 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6162 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6163 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6164 * mips-tdep.c (mips_gdbarch_init): Update.
6165 * mcore-tdep.c (mcore_gdbarch_init): Update.
6166 * m68k-tdep.c (m68k_gdbarch_init): Update.
6167 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6168 * ia64-tdep.c (ia64_gdbarch_init): Update.
6169 * i386-tdep.c (i386_gdbarch_init): Update.
6170 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6171 * hppa-tdep.c (hppa_gdbarch_init): Update.
6172 * h8300-tdep.c (h8300_gdbarch_init): Update.
6173 * frv-tdep.c (frv_gdbarch_init): Update.
6174 * cris-tdep.c (cris_gdbarch_init): Update.
6175 * avr-tdep.c (avr_gdbarch_init): Update.
6176 * arm-tdep.c (arm_gdbarch_init): Update.
6177 * alpha-tdep.c (alpha_gdbarch_init): Update.
6178 * sh-tdep.c (sh_init_extra_frame_info): Update.
6179 (sh64_init_extra_frame_info): Update.
6180 * ns32knbsd-nat.c (frame_num_args): Update.
6181 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
6182 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
6183 (xstormy16_frame_chain_valid): Update.
6184 * vax-tdep.c (vax_saved_pc_after_call): Update.
6185 * v850-tdep.c (v850_frame_chain): Update.
6186 (v850_pop_frame): Update.
6187 (v850_init_extra_frame_info): Update.
6188 * sparc-tdep.c (setup_arbitrary_frame): Update.
6189 * ns32k-tdep.c (umax_frame_num_args): Update.
6190 * s390-tdep.c (s390_pop_frame_regular): Update.
6191 * mn10300-tdep.c (mn10300_frame_chain): Update.
6192 (mn10300_pop_frame_regular): Update.
6193 (mn10300_init_extra_frame_info): Update.
6194 * mips-tdep.c (mips_init_frame_pc_first): Update.
6195 (mips_frame_chain): Update.
6196 (mips_pop_frame): Update.
6197 * mcore-tdep.c (mcore_frame_chain): Update.
6198 (mcore_pop_frame): Update.
6199 (mcore_init_extra_frame_info): Update.
6200 * arch-utils.c (init_frame_pc_default): Update.
6201 * m68k-tdep.c (isi_frame_num_args): Update.
6202 (delta68_frame_num_args): Update.
6203 (news_frame_num_args): Update.
6204 * ia64-tdep.c (ia64_pop_frame_regular): Update.
6205 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6206 (alpha_frame_chain): Update.
6207 (alpha_pop_frame): Update.
6208 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
6209 (hppa_init_extra_frame_info): Update.
6210 (hppa_frame_chain): Update.
6211 (hppa_frame_chain_valid): Update.
6212 * cris-tdep.c (cris_init_extra_frame_info): Update.
6213 * avr-tdep.c (avr_init_extra_frame_info): Update.
6214 * arm-tdep.c (arm_frame_chain_valid): Update.
6215 (arm_init_extra_frame_info): Update.
6216 (arm_pop_frame): Update.
6217 * frame.c (frame_pc_unwind): Update.
6218 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
6219 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6220 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6221 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
6222 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
6223 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
6225 2003-03-12 Andrew Cagney <cagney@redhat.com>
6227 Eliminate the need for POP_FRAME.
6228 * frame.c (do_frame_unwind_register): New function.
6229 (frame_pop): When no POP_FRAME, pop the frame using register
6230 unwind and a scratch regcache.
6231 (frame_saved_regs_pop): Delete function.
6232 (trad_frame_unwinder): Update.
6233 * d10v-tdep.c (d10v_frame_pop): Delete function.
6234 (d10v_frame_unwind): Update.
6235 * sentinel-frame.c (sentinel_frame_pop): Delete function.
6236 (sentinel_frame_unwinder): Update.
6237 * dummy-frame.c (dummy_frame_pop): Delete function.
6238 (dummy_frame_unwind): Update.
6239 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
6240 (struct frame_unwind): Update.
6242 2003-03-11 Kevin Buettner <kevinb@redhat.com>
6244 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
6245 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
6246 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
6247 Do range checks on register number obtained from debugging info.
6248 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
6249 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
6250 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
6252 (do_fp_register_row): Fix typo which caused double type to be
6253 used when attempting to unpack a float.
6255 2003-03-11 J. Brobecker <brobecker@gnat.com>
6257 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
6259 2003-03-11 Andrew Cagney <cagney@redhat.com>
6261 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
6262 frame. Problem found by Corinna Vinschen.
6264 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
6266 * doublest.c (floatformat_from_length): Accept also
6267 the real size of 'long double' type.
6269 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
6271 From Klee Dienes <kdienes@apple.com>:
6272 * breakpoint.c (bpstat_copy): Copy the command lines as well
6273 as the old value, to match what is freed in bpstat_clear.
6275 2003-03-10 David Carlton <carlton@math.stanford.edu>
6277 * minsyms.c (add_minsym_to_hash_table): Replace
6278 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6279 (compare_minimal_symbols, compact_minimal_symbols)
6280 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
6281 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
6282 of DEPRECATED_SYMBOL_MATCHES_NAME.
6283 (lookup_minimal_symbol_solib_trampoline): Ditto.
6285 2003-03-10 Andrew Cagney <cagney@redhat.com>
6287 * regcache.h (regcache_cooked_read_ftype): Define.
6288 (regcache_save, regcache_restore): Add a cooked_read parameter.
6289 * regcache.c (regcache_save, regcache_restore): Update.
6290 (do_cooked_read): New function.
6291 (regcache_cpy): Pass do_cooked_read to regcache_save and
6294 2003-03-10 Andrew Cagney <cagney@redhat.com>
6296 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
6297 * gdbarch.h, gdbarch.c: Re-generate.
6298 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6299 * x86-64-tdep.h: Update.
6300 * x86-64-tdep.c (x86_64_init_abi): Update.
6301 * v850-tdep.c (v850_gdbarch_init): Update.
6302 * sparc-tdep.c (sparc_gdbarch_init): Update.
6303 * sh-tdep.c (sh_gdbarch_init): Update.
6304 * s390-tdep.c (s390_gdbarch_init): Update.
6305 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6306 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6307 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6308 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6309 * mips-tdep.c (mips_gdbarch_init): Update.
6310 * mcore-tdep.c (mcore_gdbarch_init): Update.
6311 * m68k-tdep.c (m68k_gdbarch_init): Update.
6312 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6313 * ia64-tdep.c (ia64_gdbarch_init): Update.
6314 * i386-tdep.c (i386_gdbarch_init): Update.
6315 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6316 * hppa-tdep.c (hppa_gdbarch_init): Update.
6317 * h8300-tdep.c (h8300_gdbarch_init): Update.
6318 * frv-tdep.c (frv_gdbarch_init): Update.
6319 * cris-tdep.c (cris_gdbarch_init): Update.
6320 * avr-tdep.c (avr_gdbarch_init): Update.
6321 * arm-tdep.c (arm_gdbarch_init): Update.
6322 * alpha-tdep.c (alpha_gdbarch_init): Update.
6323 * sh-tdep.c (sh_init_extra_frame_info): Update.
6324 (sh64_init_extra_frame_info): Update.
6325 * ns32knbsd-nat.c (frame_num_args): Update.
6326 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
6327 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
6328 (xstormy16_frame_chain_valid): Update.
6329 * vax-tdep.c (vax_saved_pc_after_call): Update.
6330 * v850-tdep.c (v850_frame_chain): Update.
6331 (v850_pop_frame): Update.
6332 (v850_init_extra_frame_info): Update.
6333 * sparc-tdep.c (setup_arbitrary_frame): Update.
6334 * ns32k-tdep.c (umax_frame_num_args): Update.
6335 * s390-tdep.c (s390_pop_frame_regular): Update.
6336 * mn10300-tdep.c (mn10300_frame_chain): Update.
6337 (mn10300_pop_frame_regular): Update.
6338 (mn10300_init_extra_frame_info): Update.
6339 * mips-tdep.c (mips_init_frame_pc_first): Update.
6340 (mips_frame_chain): Update.
6341 (mips_pop_frame): Update.
6342 * mcore-tdep.c (mcore_frame_chain): Update.
6343 (mcore_pop_frame): Update.
6344 (mcore_init_extra_frame_info): Update.
6345 * arch-utils.c (init_frame_pc_default): Update.
6346 * m68k-tdep.c (isi_frame_num_args): Update.
6347 (delta68_frame_num_args): Update.
6348 (news_frame_num_args): Update.
6349 * ia64-tdep.c (ia64_pop_frame_regular): Update.
6350 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6351 (alpha_frame_chain): Update.
6352 (alpha_pop_frame): Update.
6353 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
6354 (hppa_init_extra_frame_info): Update.
6355 (hppa_frame_chain): Update.
6356 (hppa_frame_chain_valid): Update.
6357 * cris-tdep.c (cris_init_extra_frame_info): Update.
6358 * avr-tdep.c (avr_init_extra_frame_info): Update.
6359 * arm-tdep.c (arm_frame_chain_valid): Update.
6360 (arm_init_extra_frame_info): Update.
6361 (arm_pop_frame): Update.
6362 * frame.c (frame_pc_unwind): Update.
6363 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
6364 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6365 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6366 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
6367 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
6368 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
6370 2003-03-10 Andrew Cagney <cagney@redhat.com>
6372 * gdbarch.sh (gdbarch_unwind_pc): New method.
6373 * gdbarch.h, gdbarch.c: Regenerate.
6374 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
6375 but use read_pc and FRAME_SAVED_PC as fall backs.
6376 (frame_saved_regs_pc_unwind): Delete function.
6377 (trad_frame_unwinder): Update.
6378 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
6379 (struct frame_unwind): Update.
6380 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
6381 (dummy_frame_unwind): Update.
6382 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
6383 (sentinel_frame_unwinder): Update.
6384 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
6385 (d10v_frame_unwind): Update.
6386 (d10v_unwind_pc): New function.
6387 (d10v_gdbarch_init): Set unwind_pc.
6389 2003-03-10 Andrew Cagney <cagney@redhat.com>
6391 * gdbarch.h: Re-generate.
6393 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
6395 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
6398 2003-03-08 Mark Kettenis <kettenis@gnu.org>
6400 * gdbarch.sh (save_dummy_frame_tos): Add comment.
6402 2003-03-08 Andrew Cagney <cagney@redhat.com>
6404 * cli-out.c: Update copyright.
6405 (cli_out_data): Define typedef. Use instead of ui_out_data.
6407 2003-03-08 Andrew Cagney <cagney@redhat.com>
6409 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
6412 2003-03-07 Andrew Cagney <cagney@redhat.com>
6414 * gdbarch.sh: Don't generate two macro definitions when an
6415 undefined macro taking no arguments.
6416 * gdbarch.h: Regenerate.
6418 2002-03-07 Michal Ludvig <mludvig@suse.cz>
6420 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
6421 (x86_64_unwind_dummy_id): New functions.
6422 (x86_64_init_abi): Register these two new functions.
6424 2003-03-07 Michal Ludvig <mludvig@suse.cz>
6426 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
6427 (x86_64_skip_prologue): Move prologue detection to
6429 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
6431 2003-03-05 Andrew Cagney <cagney@redhat.com>
6433 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
6434 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
6435 * frame.c (get_prev_frame): Restructure the frame ID unwind code
6436 to use unwind_dummy_id when a dummy frame.
6437 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
6439 * gdbarch.h, gdbarch.c: Regneerate.
6441 2003-03-05 Andrew Cagney <cagney@redhat.com>
6443 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
6444 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
6445 Do not use d10v_read_sp or d10v_read_fp when obtaining register
6448 2003-03-05 Andrew Cagney <cagney@redhat.com>
6450 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
6451 (struct d10v_unwind_cache): Delete field "frameless". Replace
6452 "next_addr" with "sp_offset". Add "r11_offset".
6453 (d10v_frame_unwind_cache): Update.
6454 (prologue_find_regs): Update. When "mv r11, sp", save the
6455 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
6456 RN was saved in r11_offset.
6458 2003-03-05 Andrew Cagney <cagney@redhat.com>
6460 * frame.c (deprecated_update_frame_pc_hack): Also update the the
6461 cached PC value in the next frame.
6463 2003-03-05 Andrew Cagney <cagney@redhat.com>
6465 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
6466 "id_unwind_cache" with "id".
6467 (frame_id_unwind): Delete declaration.
6468 * frame.c (frame_id_unwind): Delete function.
6469 (get_prev_frame): Call the frame id unwind method directly. Store
6470 the returned next frame's ID value in NEXT_FRAME. Note that there
6471 is a problem with the wrong unwind ID being called with the wrong
6474 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
6476 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
6478 2003-03-05 James Ingham <jingham@apple.com>
6479 Daniel Jacobowitz <drow@mvista.com>
6481 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
6482 (auto_cp_abi): New variable.
6483 (current_cp_abi, num_cp_abis): Make static.
6484 (CP_ABI_MAX): Define.
6485 (cp_abis): Turn into an array.
6486 (value_virtual_fn_field): Fix formatting.
6487 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
6489 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
6490 (list_cp_abis, _initialize_cp_abi): New functions.
6491 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
6492 declarations for cp_abis, num_cp_abis, current_cp_abi, and
6493 switch_to_cp_abi. Update prototype for register_cp_abi.
6494 * Makefile.in (cp-abi.o): Update dependencies.
6495 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
6496 instead of switch_to_cp_abi.
6497 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
6499 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
6501 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
6503 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
6505 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
6506 * dwarf2loc.c: Include "regcache.h".
6507 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
6509 * Makefile.in (dwarf2loc.o): Update dependencies.
6511 2003-03-04 Theodore A. Roth <troth@openavr.org>
6513 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
6514 number of io registers reported by remote target is not a multiple of
6517 2003-03-04 David Carlton <carlton@math.stanford.edu>
6519 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
6520 (lookup_symbol_aux_psymtabs): Update call to
6521 lookup_partial_symbol.
6522 (lookup_transparent_type, find_main_psymtab)
6523 (make_symbol_overload_list): Ditto.
6525 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
6527 * MAINTAINERS (Write after approval): Update my email address.
6529 2003-03-03 Andrew Cagney <cagney@redhat.com>
6531 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
6532 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
6533 predicate. Replace MAX_REGISTER_RAW_SIZE.
6534 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
6535 MAX_REGISTER_VIRTUAL_SIZE.
6536 * regcache.c (legacy_max_register_raw_size): New function.
6537 (legacy_max_register_virtual_size): New function.
6538 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
6539 (MAX_REGISTER_RAW_SIZE): Define.
6540 (legacy_max_register_raw_size): Declare.
6541 (legacy_max_register_virtual_size): Declare.
6542 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6543 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
6544 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6545 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
6546 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6547 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
6548 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
6549 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
6550 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
6551 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6552 * vax-tdep.c (vax_gdbarch_init): Update.
6553 * v850-tdep.c (v850_gdbarch_init): Update.
6554 * sparc-tdep.c (sparc_gdbarch_init): Update.
6555 * sh-tdep.c (sh_gdbarch_init): Update.
6556 * s390-tdep.c (s390_gdbarch_init): Update.
6557 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6558 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6559 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6560 * mips-tdep.c (mips_gdbarch_init): Update.
6561 * mcore-tdep.c (mcore_gdbarch_init): Update.
6562 * m68k-tdep.c (m68k_gdbarch_init): Update.
6563 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6564 * ia64-tdep.c (ia64_gdbarch_init): Update.
6565 * i386-tdep.c (i386_gdbarch_init): Update.
6566 * hppa-tdep.c (hppa_gdbarch_init): Update.
6567 * h8300-tdep.c (h8300_gdbarch_init): Update.
6568 * frv-tdep.c (frv_gdbarch_init): Update.
6569 * cris-tdep.c (cris_gdbarch_init): Update.
6570 * avr-tdep.c (avr_gdbarch_init): Update.
6571 * arm-tdep.c (arm_gdbarch_init): Update.
6572 * alpha-tdep.c (alpha_gdbarch_init): Update.
6573 * d10v-tdep.c (d10v_gdbarch_init): Do not set
6574 max_register_raw_size or max_register_virtual_size.
6576 2003-03-03 David Carlton <carlton@math.stanford.edu>
6578 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
6579 SYMBOL_MATCHES_NAME, add comment.
6580 (SYMBOL_MATCHES_NATURAL_NAME): New.
6581 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
6582 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
6583 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
6584 * symtab.c (lookup_partial_symbol): Use
6585 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
6587 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
6588 SYMBOL_MATCHES_NAME.
6591 2003-03-03 David Carlton <carlton@math.stanford.edu>
6593 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
6594 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
6595 by regexp matching against SYMBOL_NATURAL_NAME.
6597 2003-03-03 David Carlton <carlton@math.stanford.edu>
6599 * linespec.c (find_method): Extract code into collect_methods.
6600 (collect_methods): New.
6602 2003-03-02 Mark Kettenis <kettenis@gnu.org>
6604 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
6607 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
6608 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6610 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
6612 * arch-utils.c (generic_register_byte): Fix to use the loop index
6613 and not regnum when summing the size of all registers up to regnum.
6615 2003-03-01 Andrew Cagney <cagney@redhat.com>
6617 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
6618 FRAME_INIT_SAVED_REGS.
6619 * gdbarch.h, gdbarch.c: Regenerate.
6620 * stack.c (frame_info): Update.
6621 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
6622 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
6623 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
6624 * ns32k-tdep.c (ns32k_pop_frame): Update.
6625 * mips-tdep.c (mips_pop_frame): Update.
6626 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
6627 * ia64-tdep.c (ia64_frame_chain): Update.
6628 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
6629 (ia64_frameless_function_invocation): Update.
6630 (ia64_init_extra_frame_info): Update.
6631 (ia64_pop_frame_regular): Update.
6632 * frame.h (struct frame_info): Update comment.
6633 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
6634 * frame.c (frame_saved_regs_register_unwind): Update.
6635 (frame_saved_regs_register_unwind): Update.
6636 (deprecated_generic_get_saved_register): Update.
6637 * cris-tdep.c: Update comment.
6638 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
6640 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6641 * x86-64-tdep.c (x86_64_init_abi): Update.
6642 * vax-tdep.c (vax_gdbarch_init): Update.
6643 * v850-tdep.c (v850_gdbarch_init): Update.
6644 * sparc-tdep.c (sparc_gdbarch_init): Update.
6645 * sh-tdep.c (sh_gdbarch_init): Update.
6646 * s390-tdep.c (s390_gdbarch_init): Update.
6647 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6648 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6649 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6650 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6651 * mips-tdep.c (mips_gdbarch_init): Update.
6652 * mcore-tdep.c (mcore_gdbarch_init): Update.
6653 * m68k-tdep.c (m68k_gdbarch_init): Update.
6654 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6655 * ia64-tdep.c (ia64_gdbarch_init): Update.
6656 * i386-tdep.c (i386_gdbarch_init): Update.
6657 * frv-tdep.c (frv_gdbarch_init): Update.
6658 * avr-tdep.c (avr_gdbarch_init): Update.
6659 * arm-tdep.c (arm_gdbarch_init): Update.
6660 * alpha-tdep.c (alpha_gdbarch_init): Update.
6662 2003-03-01 Andrew Cagney <cagney@redhat.com>
6664 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
6665 option enum and switch. When no windows, set the interpreter to
6668 2003-03-01 Andrew Cagney <cagney@redhat.com>
6670 * main.c (captured_main): Replace magic option characters with an
6673 2003-03-01 Andrew Cagney <cagney@redhat.com>
6675 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
6676 INIT_EXTRA_FRAME_INFO.
6677 * gdbarch.h, gdbarch.c: Regenerate.
6678 * arm-tdep.c: Update comments.
6679 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
6680 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
6681 * frame.h, avr-tdep.c: Ditto.
6682 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
6683 (create_new_frame, legacy_get_prev_frame): Ditto.
6684 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
6685 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
6686 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
6687 deprecated_init_extra_frame_info instead of init_extra_frame_info.
6688 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6689 * v850-tdep.c (v850_gdbarch_init): Ditto.
6690 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6691 * sh-tdep.c (sh_gdbarch_init): Ditto.
6692 * s390-tdep.c (s390_gdbarch_init): Ditto.
6693 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
6694 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6695 * mips-tdep.c (mips_gdbarch_init): Ditto.
6696 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6697 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6698 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6699 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
6700 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6701 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6702 * frv-tdep.c (frv_gdbarch_init): Ditto.
6703 * cris-tdep.c (cris_gdbarch_init): Ditto.
6704 * avr-tdep.c (avr_gdbarch_init): Ditto.
6705 * arm-tdep.c (arm_gdbarch_init): Ditto.
6706 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6707 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6709 2003-03-01 Andrew Cagney <cagney@redhat.com>
6711 * gdbarch.sh (register_type): New function with predicate.
6712 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
6713 * gdbarch.h, gdbarch.c: Re-generate.
6714 * arch-utils.c (generic_register_byte): Use generic_register_size.
6715 (generic_register_size): When available, use
6716 gdbarch_register_type.
6717 * regcache.c (init_regcache_descr): When available, initialize the
6718 register type array using gdbarch_register_type. If the
6719 architecture supplies gdbarch_register_type, do not use the legacy
6721 * d10v-tdep.c (d10v_register_type): Replace
6722 d10v_register_virtual_type.
6723 (d10v_gdbarch_init): Set register_type instead of
6724 register_virtual_type.
6726 2003-03-01 Andrew Cagney <cagney@redhat.com>
6728 * Makefile.in (ax-gdb.o): Update dependencies.
6729 * ax-gdb.c: Include "regcache.h".
6730 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
6731 * findvar.c (value_of_register): Ditto.
6732 * infcmd.c (default_print_registers_info): Ditto.
6734 2003-03-01 Mark Kettenis <kettenis@gnu.org>
6736 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
6737 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6739 2003-03-01 Mark Kettenis <kettenis@gnu.org>
6741 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
6744 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
6746 * Makefile.in (dwarf2loc.o): Update dependencies.
6747 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
6748 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
6749 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
6750 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
6751 (locexpr_tracepoint_var_ref): New function.
6752 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
6754 2003-02-28 Andrew Cagney <cagney@redhat.com>
6756 * regcache.c (register_size): New function.
6757 * regcache.h (register_size): Declare
6758 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
6759 max_register_size instead of MAX_REGISTER_RAW_SIZE.
6761 2003-02-28 David Carlton <carlton@math.stanford.edu>
6763 * linespec.c (decode_compound): Extract code into find_method.
6766 2003-02-28 J. Brobecker <brobecker@gnat.com>
6768 * Makefile.in: Add rules to build and link in observer.o.
6770 2003-02-27 J. Brobecker <brobecker@gnat.com>
6772 * observer.c: Minor comments edits.
6774 2003-02-27 J. Brobecker <brobecker@gnat.com>
6776 * observer.h, observer.c: New file.
6778 2003-02-27 Andrew Cagney <cagney@redhat.com>
6780 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
6782 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
6784 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
6785 (M6812_OP_STS_EXT): Likewise.
6786 (m6811_prologue): Use the above to recognize prologue.
6787 (m6812_prologue): Likewise.
6789 2003-02-27 David Carlton <carlton@math.stanford.edu>
6791 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
6793 (compare_psymbols): Ditto.
6794 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
6796 2003-02-27 Michael Snyder <msnyder@redhat.com>
6798 * f-lang.c (build_fortran_types): New function.
6799 (_initialize_f_language): Gdbarch-register built-in fortran types.
6800 * doublest.c (extract_floating): Fix warning text.
6802 2003-02-27 Andrew Cagney <cagney@redhat.com>
6804 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
6805 predicate. Replaces PUSH_DUMMY_FRAME.
6806 * gdbarch.h, gdbarch.c: Regnerate.
6807 * valops.c (hand_function_call): Update. Call
6808 generic_push_dummy_frame directly.
6809 * vax-tdep.c (vax_gdbarch_init): Update.
6810 * sparc-tdep.c (sparc_gdbarch_init): Update.
6811 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6812 * m68k-tdep.c (m68k_gdbarch_init): Update.
6813 * hppa-tdep.c (hppa_gdbarch_init): Update.
6814 * alpha-tdep.c (alpha_gdbarch_init): Update.
6815 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
6816 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
6817 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
6818 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
6819 push_dummy_frame to generic_push_dummy_frame.
6820 * v850-tdep.c (v850_gdbarch_init): Ditto.
6821 * sh-tdep.c (sh_gdbarch_init): Ditto.
6822 * s390-tdep.c (s390_gdbarch_init): Ditto.
6823 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6824 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6825 * mips-tdep.c (mips_gdbarch_init): Ditto.
6826 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6827 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6828 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6829 * i386-tdep.c (i386_gdbarch_init): Ditto.
6830 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6831 * frv-tdep.c (frv_gdbarch_init): Ditto.
6832 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6833 * cris-tdep.c (cris_gdbarch_init): Ditto.
6834 * avr-tdep.c (avr_gdbarch_init): Ditto.
6835 * arm-tdep.c (arm_gdbarch_init): Ditto.
6837 2003-02-26 Kevin Buettner <kevinb@redhat.com>
6839 * mips-tdep.c (show_mips_abi): New function.
6840 (_initialize_mips_tdep): Use show_mips_abi() to implement the
6841 command ``show mips abi''.
6843 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
6845 From Elena Zannoni <ezannoni@redhat.com>
6846 * dbxread.c (process_one_symbol): Only record line 0 if one or
6847 more sline entries have been seen for the function.
6849 2003-02-26 Michael Chastain <mec@shout.net>
6851 * configure: Regenerate with autoconf 000227.
6853 2003-02-26 Michael Chastain <mec@shout.net>
6856 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
6857 for old libc5/glibc.
6858 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
6860 2003-02-26 Kris Warkentin <kewarken@qnx.com>
6862 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
6863 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
6865 2003-02-26 Michael Chastain <mec@shout.net>
6867 * configure.in: New variable HAVE_UINTPTR_T.
6868 * configure, config.in: Regenerated.
6870 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
6873 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
6875 2003-02-25 Andrew Cagney <cagney@redhat.com>
6877 * frame.c (get_prev_frame): Add comment on check for
6878 inside_entry_func. Only check for inside_entry_file when not a
6879 dummy and not a sentinel. Check that the new frame is not inner
6882 2003-02-25 Andrew Cagney <cagney@redhat.com>
6884 * frame.c (frame_debug): New variable.
6885 (_initialize_frame): Add "set/show debug frame" command.
6886 (get_prev_frame): When frame_debug, print reason why unwind
6889 2003-02-25 Michael Chastain <mec@shout.net>
6891 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
6892 to avoid uintptr_t definition problems.
6894 2003-02-25 David Carlton <carlton@math.stanford.edu>
6896 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
6897 (SYMBOL_LINKAGE_NAME): Ditto.
6898 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
6899 SYMBOL_LINKAGE_NAME.
6900 (struct general_symbol_info): Expand comment.
6901 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
6902 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
6903 (SYMBOL_MATCHES_REGEXP): Ditto.
6904 * symtab.c (symbol_natural_name): New function.
6905 * objfiles.h: Replace all uses of SYMBOL_NAME by
6906 DEPRECATED_SYMBOL_NAME.
6907 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
6908 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
6909 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
6910 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
6911 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
6912 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
6913 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
6914 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
6915 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
6916 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
6918 * ada-exp.y: Update copyright.
6919 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
6920 * cp-valprint.c: Ditto.
6922 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
6924 * infptrace.c (detach): Do not flag error if ptrace detach fails
6925 and errno is set to ESRCH.
6927 2003-02-24 Andrew Cagney <cagney@redhat.com>
6929 * infptrace.c (udot_info): Change type of udot_off to long. Use
6930 paddr when printing udot_off's value.
6932 2003-02-24 David Carlton <carlton@math.stanford.edu>
6934 * symtab.c (make_symbol_overload_list): Only read in partial
6935 symtabs containing a matching partial symbol.
6937 2003-02-24 David Carlton <carlton@math.stanford.edu>
6939 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
6940 do the comparison, not strcmp.
6941 * symfile.c (compare_psymbols): Ditto.
6942 * defs.h: Declare strcmp_iw_ordered.
6943 * utils.c (strcmp_iw_ordered): New function.
6945 2003-02-24 Jim Blandy <jimb@redhat.com>
6947 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
6948 support, shared libs): Remove my name from here, to better reflect
6951 2003-02-24 Kris Warkentin <kewarken@qnx.com>
6953 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
6954 (target_ops): Add to_have_continuable_watchpoint.
6955 * target.c (update_current_target): Add INHERIT line for
6956 to_have_continuable_watchpoint.
6957 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
6958 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
6959 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
6960 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
6962 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
6964 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
6967 2003-02-24 Kris Warkentin <kewarken@qnx.com>
6969 * solib.c (solib_open): Call target defined search function after
6970 failing with solib-search-path.
6971 * solist.h (target_so_ops): Add find_and_open_solib function hook and
6972 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
6974 2003-02-24 Kris Warkentin <kewarken@qnx.com>
6976 * MAINTAINERS: Add myself to Write After section.
6978 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
6980 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
6982 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
6984 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
6985 (m68hc11_add_reggroups): New function.
6986 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
6987 (m68hc11_gdbarch_init): Install the reggroups.
6988 (_initialize_m68hc11_tdep): Initialize them.
6990 2003-02-21 James E Wilson <wilson@tuliptree.org>
6992 * MAINTAINERS: Update my email address.
6994 2003-02-21 David Carlton <carlton@math.stanford.edu>
6996 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
6998 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
7000 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
7001 * symtab.h: Add opaque declarations of struct axs_value and
7003 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
7004 (struct location_funcs): New type.
7005 (struct symbol): Add "loc" to aux_value.
7006 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
7007 * dwarf2read.c: Include "dwarf2expr.h".
7008 (dwarf2_symbol_mark_computed): New function.
7009 (read_func_scope): Use it.
7010 (var_decode_location): New function.
7011 (new_symbol): Use it.
7012 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
7014 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
7015 (dwarf2expr_h, dwarf2loc_h): New variables.
7016 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
7017 (dwarf2expr.o, dwarf2loc.o): New rules.
7018 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
7019 * buildsym.c (finish_block): Handle LOC_COMPUTED and
7021 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
7022 * m2-exp.y (yylex): Likewise.
7023 * printcmd.c (address_info, print_frame_args): Likewise.
7024 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
7025 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
7026 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
7027 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
7028 * symtab.c (lookup_block_symbol): Likewise.
7030 2003-02-20 Adam Fedor <fedor@gnu.org>
7032 * symtab.h: Remove objc_specific struct
7033 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
7034 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
7035 Have language_objc use cplus_specific struct.
7037 2003-02-20 Tom Tromey <tromey@redhat.com>
7039 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
7040 TYPE_NAME, when printing a String value. PR java/1075.
7042 2003-02-20 Adam Fedor <fedor@gnu.org>
7044 * objc-lang.h (find_methods): Remove declaration.
7045 * objc-lang.c (find_methods): Make static.
7047 2003-02-20 Christopher Faylor <cgf@redhat.com>
7049 * win32-nat.c (get_image_name): Check return value from
7051 (child_xfer_memory): Ditto.
7053 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
7055 * configure.in (TARGET_SYSTEM_ROOT): Set default to
7056 ${exec_prefix}/${target_alias}/sys-root. Match explicit
7057 '${exec_prefix}' (in addition to the expansion thereof) as
7059 * configure: Rebuilt.
7061 2003-02-20 David Carlton <carlton@math.stanford.edu>
7063 * symtab.c (search_symbols): Revert the search_symbols part of my
7064 2002-12-23 patch. Add comment.
7066 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7068 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
7069 * dbxread.c (elfstab_build_psymtabs): Don't call
7070 install_minimal_symbols.
7071 (stabsect_build_psymtabs): Likewise.
7072 * elfread.c (elf_symfile_read): Call install_minimal_symbols
7074 * somread.c (som_symfile_read): Call install_minimal_symbols
7075 and do_cleanups earlier.
7076 * nlmread.c (nlm_symfile_read): Likewise.
7077 * mdebugread.c (elfmdebug_build_psymtabs): Call
7078 install_minimal_symbols and make appropriate cleanups.
7080 2003-02-20 Kevin Buettner <kevinb@redhat.com>
7082 * solib.c (reload_shared_libraries): New function.
7083 (_initialize_solib): Add callbacks for ``set solib-search-path''
7084 and ``set solib-absolute-prefix''.
7086 2003-02-20 David Carlton <carlton@math.stanford.edu>
7088 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
7090 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
7091 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
7092 * ada-typeprint.c (ada_typedef_print): Ditto.
7093 * ax-gdb.c (gen_var_ref): Ditto.
7094 * breakpoint.c (print_one_breakpoint): Ditto.
7095 * buildsym.c (finish_block): Ditto.
7096 * c-valprint.c (c_val_print): Ditto.
7097 * expprint.c (print_subexp): Ditto.
7098 * findvar.c (locate_var_value): Ditto.
7099 * infcmd.c (jump_command): Ditto.
7100 * linespec.c (decode_line_2, decode_compound): Ditto.
7101 * maint.c (maintenance_translate_address): Ditto.
7102 * objc-lang.c (compare_selectors, compare_classes): Ditto.
7103 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
7105 * p-valprint.c (pascal_val_print): Ditto.
7106 * stabsread.c (define_symbol): Ditto.
7107 * stack.c (print_frame, frame_info, print_block_frame_locals)
7108 (print_frame_arg_vars, return_command): Ditto.
7109 * symfile.c (compare_symbols, compare_psymbols): Ditto.
7110 * symmisc.c (print_symbol): Ditto.
7111 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
7112 (compare_search_syms, print_symbol_info, print_msymbol_info)
7113 (rbreak_command): Ditto.
7114 * tracepoint.c (tracepoints_info): Ditto.
7115 * typeprint.c (typedef_print): Ditto.
7116 * valops.c (value_of_variable, hand_function_call): Ditto.
7117 * cli/cli-cmds.c (edit_command, list_command): Ditto.
7118 * ada-typeprint.c: Update Copyright.
7119 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
7120 * tracepoint.c, cli/cli-cmds.c: Ditto.
7122 2003-02-20 Kevin Buettner <kevinb@redhat.com>
7124 * frame.c (generic_unwind_get_saved_register): Make non-static.
7125 * frame.h (generic_unwind_get_saved_register): Declare.
7126 * mips-tdep.c (read_next_frame_reg): Fetch register from
7127 current regcache when frame is NULL.
7128 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
7130 (mips_get_saved_register): Call generic_unwind_get_saved_register()
7131 instead of frame_register_unwind().
7133 2003-02-20 Andrew Cagney <ac131313@redhat.com>
7135 * remote-sim.c (gdbsim_insert_breakpoint)
7136 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
7139 2003-02-20 Andrew Cagney <ac131313@redhat.com>
7141 * remote.c (_initialize_remote): Add commands "set/show remote
7142 hardware-watchpoint-limit" and "set/show remote
7143 hardware-breakpoint-limit".
7144 (remote_hw_watchpoint_limit): Initialize to -1.
7145 (remote_hw_breakpoint_limit): Ditto.
7146 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
7148 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
7150 * coff-pe-read.c: New file - support reading of minimal symbols from a
7151 portable executable using the export table.
7152 * coff-pe-read.h: New file.
7153 * coffread.c: Include coff-pe-read.h.
7154 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
7155 debugging symbols found.
7156 * Makefile.in (SFILES): Add coff-pe-read.o.
7157 (coff_pe_read_h): Define.
7158 (COMMON_OBS): Add coff-pe-read.o.
7159 (coffread.o): Add coff_pe_read_h dependency.
7160 (coff-pe-read.o): New target.
7162 2003-02-19 David Carlton <carlton@math.stanford.edu>
7164 * Makefile.in (SFILES): Add block.c.
7166 (COMMON_OBS): Add block.o.
7168 (x86-64-tdep.o): Add $(block_h).
7169 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
7170 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
7171 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
7172 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
7173 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
7174 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
7175 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
7176 * value.h: Add opaque declaration for struct block.
7177 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
7178 * ada-lang.h: Ditto.
7179 * x86-64-tdep.c: #include "block.h"
7180 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
7181 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
7182 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
7183 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
7184 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
7185 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
7186 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
7187 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
7188 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
7189 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
7190 * symtab.c (block_function): Ditto.
7191 (contained_in): Ditto.
7192 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
7193 block.h. Add opaque declaration for struct block.
7194 * symtab.h: Move block_function and contained_in declarations to
7195 block.h. Add opaque declarations for struct block, struct
7197 (struct block): Move to block.h.
7198 (struct blockvector): Ditto.
7199 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
7200 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
7201 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
7202 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
7203 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
7205 * block.c: New file.
7206 * block.h: New file.
7208 2003-02-19 Theodore A. Roth <troth@openavr.org>
7210 * avr-tdep.c (avr_extract_return_value): Remove function.
7211 (avr_store_return_value): Remove function.
7212 (avr_extract_struct_value_address): Remove function.
7213 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
7215 2003-02-19 Andrew Cagney <ac131313@redhat.com>
7217 * rs6000-tdep.c: Include "gdb_assert.h".
7218 (registers_e500): Add "acc" and "spefscr".
7219 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
7220 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
7221 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
7223 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
7225 2003-02-18 Keith Seitz <keiths@redhat.com>
7227 * Makefile.in: Add gdbtk-interps.c.
7229 2003-02-18 Kevin Buettner <kevinb@redhat.com>
7231 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
7232 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
7234 2003-02-18 Andrew Cagney <cagney@redhat.com>
7236 * symtab.h (struct objfile): Add opaque declaration.
7238 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
7240 From Jim Ingham <jingham@apple.com>:
7241 * dbxread.c (process_one_symbol): Use last_function_start rather
7242 than function_start_offset to find the real beginning of the
7243 current function. The latter is just the text section offset on
7244 some systems, the former is always the real function start.
7246 2003-02-17 Andrew Cagney <cagney@redhat.com>
7248 * configure.in: Revert ${target} != ${host}.
7250 2003-02-17 Andrew Cagney <ac131313@redhat.com>
7252 * configure.in (Makefile): Use the test ${target} != ${host},
7253 instead of the absence of the "nm.h" file, to determine of the
7254 configuration non-native.
7255 * configure: Regenerate.
7257 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
7259 From Brian Ford <ford@vss.fsi.com>
7261 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
7262 conditionalize tui_active test.
7263 (lookup_cmd_1): Ditto.
7265 2003-02-14 Mark Kettenis <kettenis@gnu.org>
7267 * configure.in: Add check for _etext.
7268 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
7270 * config.in, configure: regenerated.
7272 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
7274 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
7276 2003-02-14 Andrew Cagney <ac131313@redhat.com>
7278 * main.c (tui_version): Delete variable.
7279 (captured_main): When --tui, set interpreter_p to "tui" instead of
7280 enabling tui_version.
7281 * printcmd.c (display_command) [TUI]: Test tui_active instead of
7283 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
7284 * cli/cli-cmds.c (disassemble_command): Ditto.
7285 * defs.h (tui_version): Delete declaration.
7286 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
7287 (tui-interp.o): Add rules.
7288 (SUBDIR_TUI_OBS): Add "tui-interp.o".
7290 2003-02-14 Christopher Faylor <cgf@redhat.com>
7292 * win32-nat.c (register_loaded_dll): Correctly set address range for
7295 2003-02-12 Jason Molenda (jmolenda@apple.com)
7297 * symmisc.c (print_objfile_statistics): Include information about
7298 the number of psymtabs and symtabs in each object file.
7300 2003-02-13 Keith R Seitz <keiths@redhat.com>
7302 * main.h (struct captured_main_args): Add interpreter_p.
7303 * main.c (captured_main): Initialize interpreter_p from context.
7304 * gdb.c (main): Set interpreter_p argument.
7305 * Makefile.in (gdb.o): Add dependency for interps.h.
7307 2003-02-12 Andrew Cagney <ac131313@redhat.com>
7309 * event-top.c (cli_command_loop): Delete declaration.
7310 (_initialize_event_loop): Delete function setting event_loop_hook.
7311 * event-top.h (cli_command_loop): Declare. Update copyright.
7312 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
7313 * interps.c (current_interp_command_loop): When event_loop_p, call
7316 2003-02-12 Andrew Cagney <ac131313@redhat.com>
7318 * interps.h (interp_command_loop_ftype): Change return type to
7321 2003-02-12 Michal Ludvig <mludvig@suse.cz>
7323 * x86-64-tdep.c (x86_64_extract_return_value)
7324 (x86_64_store_return_value): Use regcache instead of regbuf.
7325 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
7326 * x86-64-linux-nat.c (fill_gregset): Use regcache.
7328 2003-02-11 Andrew Cagney <ac131313@redhat.com>
7330 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
7331 * aclocal.m4: Regenerate.
7332 * configure: Regenerate.
7334 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
7335 TCL_LD_SEARCH_FLAGS.
7337 2003-02-10 Michal Ludvig <mludvig@suse.cz>
7339 * dwarf2cfi.c: Reindented.
7341 2003-02-09 Andrew Cagney <ac131313@redhat.com>
7343 * interps.c (clear_interpreter_hooks): Convert function definition
7346 2003-02-07 David Carlton <carlton@math.stanford.edu>
7348 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
7350 2003-02-07 Kevin Buettner <kevinb@redhat.com>
7352 * gdbtypes.h (struct main_type): Move ``length'' field from here...
7353 (struct type): ...to here.
7354 (TYPE_LENGTH): Adjust to reflect different location of ``length''
7356 * gdbtypes.c (make_qualified_type): Set length on newly created type.
7357 (replace_type): Set length on all type variants for a given type.
7359 2003-02-07 Andrew Cagney <ac131313@redhat.com>
7361 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
7363 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
7365 2003-02-06 Andrew Cagney <ac131313@redhat.com>
7367 * Makefile.in (symm-nat.o): Update dependencies.
7368 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
7369 (lynx-nat.o, ia64-linux-nat.): Ditto.
7370 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
7371 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
7372 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
7374 * Makefile.in (inflow_h): Define.
7375 (procfs.o, inflow.o, procfs.o): Update dependencies.
7376 * inftarg.c (child_stop): Delete extern declaration of
7377 inferior_process_group. Include "inflow.h".
7378 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
7379 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
7380 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
7381 (our_process_group, inferior_process_group): Extern declarations.
7383 * procfs.c: Include "gdb_assert.h".
7385 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
7386 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
7387 * jv-typeprint.c (java_type_print_base): Ditto.
7388 * typeprint.c (typedef_print): Eliminate STREQ.
7389 * cli/cli-script.c (define_command, define_command): Ditto.
7390 * main.c (captured_main): Ditto.
7391 * values.c (lookup_internalvar): Ditto.
7392 * utils.c (safe_strerror, parse_escape): Eliminate assignment
7393 within `if' conditional.
7394 * linespec.c (decode_line_2): Ditto.
7395 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
7396 (bfd_openw_with_cleanup): Ditto.
7398 2003-02-07 Mark Kettenis <kettenis@gnu.org>
7400 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
7401 legacy_extract_return_value and store_return_value to
7402 legacy_return_value.
7404 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
7406 * win32-nat.c (get_relocated_section_addrs): New function. Find
7407 section load addresses for symbol handling in relocated DLLs.
7408 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
7410 2003-02-05 Fred Fish <fnf@intrinsity.com>
7412 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
7414 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
7416 (angel_RDI_info): Ditto.
7417 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
7419 (threads_continue_all_with_signals): Ditto.
7421 2003-02-05 Jim Ingham <jingham@apple.com>
7422 Keith Seitz <keiths@redhat.com>
7423 Elena Zannoni <ezannoni@redhat.com>
7424 Andrew Cagney <ac131313@redhat.com>
7426 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
7427 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
7428 (SUBDIR_MI_OBS): Add "mi-interp.o".
7429 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
7430 (SFILES): Add "interps.c".
7431 (COMMON_OBS): Add "interps.o".
7432 (interps_h, mi_main_h): Define.
7433 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
7434 (mi-main.o, main.o, event-top.o): Update dependencies.
7435 * cli/cli-interp.c: New file.
7436 * interps.h, interps.c: New files.
7437 * top.c: (gdb_init): Don't install the default interpreter, handed
7439 * main.c: Include "interps.h".
7440 (interpreter_p): Note that it should malloc'ed.
7441 (captured_command_loop): Call current_interp_command_loop.
7442 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
7443 xfree and xstrdup when updating interpreter_p. Install the
7444 default interpreter. Add hack to stop mi1's copyright notice
7446 * event-top.h (gdb_setup_readline): Declare.
7447 (gdb_disable_readline): Declare.
7448 * event-top.c: Include "interps.h".
7449 (display_gdb_prompt): Call current_interp_display_prompt_p.
7450 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
7451 gdb_stdlog, and gdb_stdtarg.
7452 (_initialize_event_loop): Don't call gdb_setup_readline.
7453 * cli-out.c (cli_out_set_stream): New function.
7454 * cli-out.h (cli_out_set_stream): Declare.
7456 2003-02-06 Mark Kettenis <kettenis@gnu.org>
7458 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
7459 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
7460 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
7461 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
7462 config/i386/i386v42mp.mt: Removed.
7464 2003-02-05 Mark Kettenis <kettenis@gnu.org>
7466 * configure.tgt (*-*-solaris*): Set gdb_osabi to
7469 2003-02-05 Michael Chastain <mec@shout.net>
7471 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
7472 2.12.1 and earlier versions.
7474 2003-02-05 Andrew Cagney <ac131313@redhat.com>
7476 Remove orphaned hosts, targets and files.
7477 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
7478 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
7479 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
7480 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
7481 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
7482 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
7483 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
7484 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
7485 * config/sparc/tm-sp64sim.h: Delete.
7486 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
7488 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
7489 mips*-dec-mach3* targets.
7491 2003-02-04 Michael Chastain <mec@shout.net>
7493 * NEWS: Fix typo: sepcifying -> specifying.
7495 2003-02-04 Michael Chastain <mec@shout.net>
7497 * dwarfread.c: Add documentation on the state of dwarf-1,
7498 looking towards obsoletion.
7500 2003-02-03 Michael Chastain <mec@shout.net>
7502 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
7503 gdb/testsuite/gdb.c++/pr-1023.exp.
7505 2003-02-04 Andrew Cagney <ac131313@redhat.com>
7507 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
7508 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
7510 * utils.c (init_page_info): Delete reference to MPW in comments.
7511 * main.c (captured_main): Delete #ifdef MPW.
7513 2003-02-04 Andrew Cagney <ac131313@redhat.com>
7515 * NEWS: Note that the m32r-*-elf* is obsolete.
7516 * monitor.c (monitor_expect): Obsolete reference to m32r.
7517 * configure.tgt: Mark m32r-*-elf* as obsolete.
7518 * MAINTAINERS: Mark m32k as obsolete.
7519 * m32r-rom.c: Obsolete file.
7520 * config/m32r/m32r.mt: Obsolete file.
7521 * config/m32r/tm-m32r.h: Obsolete file.
7522 * m32r-stub.c: Obsolete file.
7523 * m32r-tdep.c: Obsolete file.
7525 2003-02-04 Andrew Cagney <ac131313@redhat.com>
7527 * NEWS: Mention that the z8k-zilog-none is obsolete.
7528 * MAINTAINERS: Mark z8k as obsolete.
7529 * configure.tgt: Obsolete the z8k-*-coff* target.
7530 * config/z8k/z8k.mt: Obsolete file.
7531 * config/z8k/tm-z8k.h: Obsolete file.
7532 * z8k-tdep.c: Obsolete file.
7534 2003-02-04 Andrew Cagney <ac131313@redhat.com>
7536 * NEWS: Mention that the mn10200-elf is obsolete.
7537 * configure.tgt: Obsolete mn10200-*-* target.
7538 * breakpoint.c (update_breakpoints_after_exec): Update comment to
7539 mention that the mn10200 is obsolete.
7540 * breakpoint.h: Ditto.
7541 * MAINTAINERS: Mark the mn10200-elf as obsolete.
7542 * config/mn10200/mn10200.mt: Obsolete file.
7543 * config/mn10200/tm-mn10200.h: Obsolete file.
7544 * mn10200-tdep.c: Obsolete file.
7546 2003-02-04 Andrew Cagney <ac131313@redhat.com>
7548 * MAINTAINERS: Mark h8500 as obsolete.
7549 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
7550 * findvar.c (value_from_register): Ditto.
7551 * h8500-tdep.c: Mark file as obsolete.
7552 * config/h8500/h8500.mt: Ditto.
7553 * config/h8500/tm-h8500.h: Ditto.
7554 * NEWS: Mention that h8500 is obsolete.
7556 2003-02-04 David Carlton <carlton@math.stanford.edu>
7558 * objfiles.c (allocate_objfile): Always set name. Add comment at
7560 * jv-lang.c (get_dynamics_objfile): Add comment.
7562 2003-02-04 David Carlton <carlton@math.stanford.edu>
7564 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
7565 * printcmd.c (build_address_symbolic): Replace uses of
7566 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
7567 SYMBOL_NAME, and asm_demangle.
7570 2003-02-04 David Carlton <carlton@math.stanford.edu>
7572 * linespec.c (decode_compound): Extract code into
7574 (lookup_prefix_sym): New function.
7576 2003-02-04 David Carlton <carlton@math.stanford.edu>
7578 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
7579 FLOAT_COERCION_BADNESS.
7580 * gdbtypes.c (rank_one_type): Replace all uses of
7581 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
7583 2003-02-04 Jim Blandy <jimb@redhat.com>
7585 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
7586 section, let dwarf_macinfo_section point to it, not
7589 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
7591 Pointed out by Anton Blanchard <anton@samba.org>.
7592 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
7593 (ppc_linux_at_sigtramp_return_path): Use it.
7595 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
7597 * defs.h (streq): Add prototype.
7598 * utils.c (streq): New function.
7600 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
7601 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
7602 * mdebugread.c (new_symbol): Likewise.
7603 * stabsread.c (define_symbol): Likewise.
7604 * coffread.c (process_coff_symbol): Likewise.
7605 * dwarfread.c (new_symbol): Likewise.
7607 * minsyms.c (prim_record_minimal_symbol_and_info): Use
7608 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
7610 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
7611 SYMBOL_INIT_DEMANGLED_NAME.
7612 * objfiles.c: Include "hashtab.h".
7613 (allocate_objfile): Call htab_set_functions_ex for the
7614 demangled_names_hash.
7615 (free_objfile): Call htab_delete for the demangled_names_hash.
7616 * objfiles.h (struct htab): Add declaration.
7617 (struct objfile): Add demangled_names_hash.
7618 * symfile.c: Include "hashtab.h".
7619 (reread_symbols): Call htab_delete for the demangled_names_hash.
7620 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
7621 SYMBOL_NAME in the bcache.
7622 * symtab.c: Include "hashtab.h". Update comments.
7623 (create_demangled_names_hash, symbol_set_names): New functions.
7624 (symbol_find_demangled_name): New function, broken out from
7625 symbol_init_demangled_names.
7626 (symbol_init_demangled_names): Use it.
7627 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
7628 (SYMBOL_SET_NAMES): New macro.
7629 (symbol_set_names): Add prototype.
7631 2003-02-03 Jim Blandy <jimb@redhat.com>
7633 Use a single, consistent representation for an empty minimal
7634 symbol table in an objfile.
7635 * objfiles.c (terminate_minimal_symbol_table): New function.
7636 (allocate_objfile): Call it.
7637 * objfiles.h (terminate_minimal_symbol_table): New declaration.
7638 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
7640 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
7641 objfile has minimal symbols, compare minimal_symbol_count to zero,
7642 instead of comparing msymbols with NULL.
7643 * objfiles.c (have_minimal_symbols): Same.
7644 * solib-sunos.c (solib_add_common_symbols): Call
7645 terminate_minimal_symbol_table.
7646 * symfile.c (reread_symbols): Same.
7648 2003-02-03 Kevin Buettner <kevinb@redhat.com>
7650 * s390-tdep.c (s390_address_class_type_flags)
7651 (s390_address_class_type_flags_to_name)
7652 (s390_address_class_name_to_type_flags): New functions.
7653 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
7654 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
7656 2003-02-03 Michael Snyder <msnyder@redhat.com>
7658 * arm-tdep.c: Fix spell-o in comment.
7660 2003-02-03 Michal Ludvig <mludvig@suse.cz>
7662 * dwarf2cfi.c (pointer_encoding): Added new parameter.
7663 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
7664 error messages to contain BFD filename.
7666 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
7668 Fix PR gdb/742 gdb/743 gdb/877
7669 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
7670 (do_mixed_source_and_assembly): Use
7671 make_cleanup_ui_out_tuple_begin_end and
7672 make_cleanup_ui_out_tuple_begin_end.
7673 (do_mixed_source_and_assembly): Ditto.
7674 * thread.c (do_captured_list_thread_ids): Ditto.
7675 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
7676 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
7677 ui_out_tuple_end): Delete prototypes.
7678 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
7679 ui_out_list_end, ui_out_tuple_end): Delete.
7681 From Kevin Buettner <kevinb@redhat.com>:
7682 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
7683 * ui-out.c (make_cleanup_ui_out_table_begin_end)
7684 (do_cleanup_table_end): New functions.
7685 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
7686 Use cleanups to invoke_ui_out_tuple_end().
7687 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
7688 * cli/cli-setshow.c (cmd_show_list): Use
7689 make_cleanup_ui_out_tuple_begin_end.
7691 2003-02-02 Andrew Cagney <ac131313@redhat.com>
7693 * frame.c (frame_unwind_register): New function.
7694 (frame_unwind_unsigned_register): Use.
7695 (frame_unwind_signed_register): Use.
7696 (frame_read_register): New function.
7697 * frame.h (frame_unwind_register): Declare.
7698 (frame_read_register): Declare.
7700 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
7701 and frame_unwind_register instead of read_memory, write_register
7702 and deprecated_write_register_bytes.
7704 2003-02-02 Andrew Cagney <ac131313@redhat.com>
7706 * frame.h: Note that namelen can be negative.
7707 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
7710 * NEWS: Mention that the d10v's `regs' command is deprecated.
7711 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
7712 (d10v_print_registers_info): New function.
7713 (show_regs): Call d10v_print_registers_info.
7714 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
7716 2003-02-02 Mark Kettenis <kettenis@gnu.org>
7718 * stack.c (print_frame_info): Restore call to annotate_frame_begin
7719 lost in the previous patch.
7721 2003-02-01 Andrew Cagney <ac131313@redhat.com>
7723 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
7724 * stack.c (print_frame_info_base): Output complete FRAME tuple
7725 for synthesized frames.
7727 2003-02-02 Andrew Cagney <ac131313@redhat.com>
7729 * mips-nat.c (zerobuf): Delete.
7730 (fetch_inferior_registers): Alloc local zerobuf.
7731 (fetch_core_registers): Alloc local zerobuf.
7732 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
7733 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
7734 * thread-db.c (thread_db_store_registers): Ditto.
7735 * sh-tdep.c (sh_do_register): Ditto.
7736 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
7737 * remote-sim.c (gdbsim_store_register): Ditto.
7738 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7739 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7740 * monitor.c (monitor_supply_register): Ditto.
7741 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
7742 * mips-nat.c (fetch_inferior_registers): Ditto.
7743 * m68klinux-nat.c (fetch_register): Ditto.
7744 * lynx-nat.c (fetch_inferior_registers): Ditto.
7745 (fetch_inferior_registers): Ditto.
7746 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
7747 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7748 (hpux_thread_store_registers): Ditto.
7749 * hppah-nat.c (fetch_register): Ditto.
7750 * hppab-nat.c (fetch_register): Ditto.
7751 * hppa-tdep.c (pa_register_look_aside): Ditto.
7752 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
7753 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
7755 2003-02-01 Andrew Cagney <ac131313@redhat.com>
7757 * gdbarch.sh: Explictly specify all method levels. When a
7758 variable with an empty level, provide a non-multi-arch default.
7759 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
7760 * gdbarch.h: Re-generate.
7761 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
7762 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
7764 2003-02-01 Andrew Cagney <ac131313@redhat.com>
7766 * defs.h (host_pointer_to_address): Delete declaration.
7767 (address_to_host_pointer): Delete declaration.
7768 * utils.c (host_pointer_to_address): Delete function.
7769 (address_to_host_pointer): Delete function.
7770 * procfs.c (procfs_address_to_host_pointer): New function.
7771 * procfs.c (proc_set_watchpoint): Use.
7772 (procfs_can_use_hw_breakpoint): Update comments.
7773 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
7774 (som_solib_add): Use.
7775 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
7776 * hppa-tdep.c (unwind_command): Use.
7778 2003-02-01 Andrew Cagney <ac131313@redhat.com>
7780 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
7783 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
7784 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
7785 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
7786 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
7787 (define_symbol): Update.
7788 * symfile.c (generic_load): Remove references to nindy.
7789 * symtab.c: Remove references to nindy.
7791 2003-02-01 Andrew Cagney <ac131313@redhat.com>
7793 * infcmd.c (print_float_info): Delete code conditional on
7795 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
7796 * config/m68k/nm-apollo68b.h: Ditto.
7797 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
7798 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
7799 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
7801 2003-02-01 Mark Kettenis <kettenis@gnu.org>
7803 * config/i386/tm-i386os9k.h: Removed.
7805 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
7806 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
7807 they're identical to i[3456]86-*-sysv* now.
7808 * config/i386/i386v32.mh: Removed.
7809 * config/i386/xm-i386v32.h: Removed.
7810 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
7812 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
7814 * config/i386/i386dgux.mh: Removed.
7815 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
7817 * configure.in: Fix typo.
7818 * configure: Regenerated.
7820 2003-01-31 David Carlton <carlton@math.stanford.edu>
7822 * dwarf2read.c (dwarf2_locate_sections): Set
7823 dwarf_ranges_section.
7825 2003-01-31 Andrew Cagney <ac131313@redhat.com>
7827 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
7828 * utils.c: Update comments documenting legitimate uses of PTR.
7830 * utils.c: Re-indent.
7832 * config/djgpp/fnchange.lst: Delete nindy files.
7833 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
7834 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
7835 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
7836 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
7837 * nindy-share/README, nindy-share/Onindy.c: Delete files.
7838 * nindy-tdep.c, nindy-share/Makefile: Delete files.
7839 * Makefile.in (init.c): Remove nindy references.
7840 (saber_gdb): Delete rule.
7841 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
7842 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
7844 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
7845 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
7846 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
7847 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
7849 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
7850 * saber.suppress: Delete file.
7852 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
7854 * dbxread.c (stabs_data): New static variable.
7855 (fill_symbuf): Support an in-memory buffer for stabs data.
7856 (stabs_seek): New function.
7857 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
7858 (read_ofile_symtab): Use stabs_seek.
7859 (elfstab_build_psymtabs): Take an asection* instead of
7860 an offset and size. Relocate the stabs data if necessary.
7861 Save the section* for dbx_psymtab_to_symtab.
7862 * dwarf2read.c: Add section variables for each debug section.
7863 (dwarf2_locate_sections): Fill them in.
7864 (dwarf2_read_section): Take an asection* argument.
7865 Relocate the section contents if necessary.
7866 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
7867 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
7868 it to dwarf2_read_section.
7869 (dwarf2_build_frame_info): Update callers.
7870 * elfread.c (elf_symfile_read): Update call to
7871 elfstab_build_psymtabs.
7872 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
7873 (DBX_STAB_SECTION): New macro.
7874 * stabsread.h (elfstab_build_psymtabs): Update prototype.
7875 * symfile.c (symfile_dummy_outputs): New function.
7876 (symfile_relocate_debug_section): New function.
7877 * symfile.h (symfile_relocate_debug_section): Add prototype.
7879 2003-01-31 Richard Henderson <rth@redhat.com>
7881 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
7882 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
7883 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
7884 * alpha-tdep.c (alpha_register_name): Add "unique".
7885 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
7886 (ALPHA_UNIQUE_REGNUM): New.
7887 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
7889 2003-01-31 Andrew Cagney <ac131313@redhat.com>
7891 * README: Remove reference to Ericsson 1800 monitor.
7892 * Makefile.in (remote-es.o): Delete rule.
7893 (ALLDEPFILES): Delete remote-es.c.
7894 * remote-es.c: Delete file.
7895 * config/m68k/es1800.mt: Delete file.
7896 * config/djgpp/fnchange.lst: Update.
7897 * configure.tgt: Delete m68*-ericsson-* target.
7899 2003-01-31 Adam Fedor <fedor@gnu.org>
7901 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
7902 Remove duplicate/shadowing variable of same name.
7904 2003-01-30 Jim Blandy <jimb@redhat.com>
7906 * symfile.c (find_separate_debug_file): Assert that the objfile's
7907 directory name we compute ends with a slash, and then assume that
7908 that's so everywhere we use it.
7910 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
7912 * valops.c (value_assign): Flush frame cache after stores to memory
7915 2003-01-30 Andrew Cagney <ac131313@redhat.com>
7917 * Makefile.in (mon960-rom.o): Delete rule.
7918 * mon960-rom.c: Delete file.
7920 2003-01-30 Andrew Cagney <ac131313@redhat.com>
7922 * d10v-tdep.c: Include "frame-unwind.h".
7923 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
7925 (next_addr, uses_frame): Delete.
7926 (struct d10v_unwind_cache): Define.
7927 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
7928 Use info instead of next_addr and uses_frame globals.
7929 (d10v_frame_init_saved_regs): Delete function.
7930 (d10v_init_extra_frame_info): Delete function.
7931 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
7932 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
7933 init_frame_pc or frame_saved_pc.
7934 (d10v_pop_frame): Delete function.
7935 (do_d10v_pop_frame): Delete function.
7936 (d10v_frame_chain): Delete function.
7937 (d10v_frame_chain_valid): Delete function.
7938 (d10v_frame_pc_unwind): New function.
7939 (d10v_frame_id_unwind): New function.
7940 (saved_regs_unwinder): New function.
7941 (d10v_frame_register_unwind): New function.
7942 (d10v_frame_pop): New function.
7943 (d10v_frame_unwind): New variable.
7944 (d10v_frame_p): New function.
7945 (d10v_frame_saved_pc): Delete function.
7946 * Makefile.in (d10v-tdep.o): Update dependencies.
7948 2003-01-30 J. Brobecker <brobecker@gnat.com>
7950 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
7951 causing some regressions due to a change in the default value
7954 2003-01-29 Richard Henderson <rth@redhat.com>
7955 Elena Zannoni <ezannoni@redhat.com>
7956 Daniel Jacobowitz <drow@mvista.com>
7959 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
7961 (RANGES_SECTION): New.
7962 (dwarf_ranges_buffer): New variable.
7963 (struct comp_unit_head): Add member "die".
7964 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
7965 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
7966 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
7967 (dwarf2_locate_sections): Likewise.
7968 (dwarf2_build_psymtabs): Read .debug_ranges.
7969 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
7970 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
7971 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
7972 Look for DW_AT_ranges and return the bounding box.
7974 2003-01-29 Brian Ford <ford@vss.fsi.com>
7976 * win32-nat.c (cygwin_pid): Removed as unused.
7977 (child_attach): Try fall back to Cygwin pid.
7979 2003-01-29 Jim Blandy <jimb@redhat.com>
7981 * objfiles.h (struct objfile): Doc fix.
7983 2003-01-29 Andrew Cagney <ac131313@redhat.com>
7985 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
7986 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
7987 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
7988 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
7989 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
7990 (FRAME_SAVED_PC): Change to a function with predicate.
7991 * gdbarch.h, gdbarch.c: Re-generate.
7993 2003-01-28 Andrew Cagney <ac131313@redhat.com>
7995 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
7997 * complaints.c (complain): Delete function.
7998 * complaints.h (struct deprecated_complaint): Delete definition.
7999 (complain): Delete declaration.
8001 2003-01-28 Kevin Buettner <kevinb@redhat.com>
8003 * mips-tdep.c (mips_init_extra_frame_info): Return early for
8006 2003-01-27 Andrew Cagney <ac131313@redhat.com>
8008 * sentinel-frame.h, sentinel-frame.c: New files.
8009 * Makefile.in (frame.o): Update dependencies.
8010 (SFILES): Add sentinel-frame.c.
8011 (sentinel_frame_h): Define.
8012 (COMMON_OBS): Add sentinel-frame.o.
8013 (sentinel-frame.o): Specify dependencies.
8014 * frame.c: Include "sentinel-frame.h".
8015 (frame_register_unwind): Rewrite assuming that there is always a a
8017 (frame_register, generic_unwind_get_saved_register): Ditto.
8018 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
8019 (create_sentinel_frame, unwind_to_current_frame): New functions.
8020 (get_current_frame): Rewrite using create_sentinel_frame and
8021 unwind_to_current_frame. When possible, always create a frame.
8022 (create_new_frame): Set next to the sentinel frame.
8023 (get_next_frame): Rewrite. Don't go below the level 0 frame.
8024 (deprecated_update_frame_pc_hack): Update the next frame's PC and
8025 ID cache when necessary.
8026 (frame_saved_regs_id_unwind): Use frame_relative_level.
8027 (deprecated_generic_get_saved_register): Use frame_relative_level,
8028 get_frame_saved_regs, get_frame_pc, get_frame_base and
8030 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
8033 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
8035 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
8037 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
8039 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
8040 (maintenance_set_profile_cmd): Use error () instead of warning ().
8042 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
8044 * configure.in: Check that -pg works if using --enable-profiling.
8045 Check for monstartup and _mcleanup regardless of --enable-profiling.
8046 * maint.c: Check for monstartup and _mcleanup before using them.
8047 * config.in: Regenerated.
8048 * configure: Regenerated.
8050 2003-01-24 Nick Clifton <nickc@redhat.com>
8054 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
8056 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
8057 (sh2e_show_regs): New.
8058 (sh_gdbarch_init): Handle bfd_mach_sh2e.
8059 * config/sh/tm-sh.h: Added sh2e to comments.
8061 2003-01-23 Jim Blandy <jimb@redhat.com>
8063 * symfile.c (syms_from_objfile): Don't print the "(no debugging
8064 symbols found)" message here; we haven't checked for a separate
8065 debug info file yet, so we don't know yet.
8066 (symbol_file_add_with_addrs_or_offsets): Print it here, after
8067 we've looked everywhere. Also, there's no need to print a special
8068 message when we're loading the separate debug info file: the one
8069 symbol_file_add prints is fine.
8071 2003-01-23 Alexander Larsson <alexl@redhat.com>
8072 Jim Blandy <jimb@redhat.com>
8074 Add support for executables whose debug info has been separated
8075 out into a separate file, leaving only a link behind.
8076 * objfiles.h (struct objfile): New fields: separate_debug_objfile
8077 and separate_debug_objfile_backlink.
8078 (put_objfile_before): New declaration.
8079 * symfile.c: #include "filenames.h".
8080 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
8081 debug info in a separate file, read that, too. Save the addrs
8082 argument, so we can use it again to read the separated debug info;
8083 syms_from_objfile modifies the table we pass it.
8084 (reread_symbols): After re-reading an objfile, call
8085 reread_separate_symbols to refresh its separate debug info
8086 objfile, if it has one.
8087 (reread_separate_symbols, find_separate_debug_file,
8088 get_debug_link_info, separate_debug_file_exists): New functions.
8089 (debug_file_directory): New global var.
8090 (_initialize_symfile): Initialize debug_file_directory, and
8091 provide the new `set debug-file-directory' command to let the user
8093 * objfiles.c (free_objfile): If this objfile has its debug info in
8094 a separate objfile, free that one too. If this is itself a
8095 separate debug info objfile, clear our parent's backlink.
8096 (put_objfile_before): New function.
8097 * utils.c (gnu_debuglink_crc32): New function.
8098 * defs.h (gnu_debuglink_crc32): New declaration.
8099 * Makefile.in (symfile.o): Note dependency on "filenames.h".
8100 * configure.in: Handle --with-separate-debug-dir config option.
8101 * acinclude.m4 (AC_DEFINE_DIR): New macro.
8102 * acconfig.h (DEBUGDIR): New macro.
8103 * configure, aclocal.m4, config.in: Regenerated.
8105 2003-01-22 Jim Blandy <jimb@redhat.com>
8107 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
8108 like the old symbol_file_add, but taking new arguments: you can
8109 now pass in either a `struct section_addr_info' list to say where
8110 each section is loaded, or a `struct section_offsets' table. Pass
8111 these new arguments through to syms_from_objfile as appropriate.
8112 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
8113 with the appropriate quiescent values for the new arguments.
8115 * symfile.c: #include "gdb_assert.h".
8116 (syms_from_objfile): Add the ability to pass in a section offset
8117 table directly, as an alternative to the section_addr_info table.
8118 Document arguments better.
8119 (symbol_file_add): Pass extra arguments to syms_from_objfile.
8120 * symfile.h (syms_from_objfile): Update declaration.
8121 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
8123 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
8125 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
8127 Original patch by Tom Tromey <tromey@cygnus.com> and
8128 Jason Molenda <jmolenda@apple.com>.
8129 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
8130 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
8131 * NEWS: Mention profiling.
8132 * configure.in (--enable-gdbtk): Fix typo.
8133 (--enable-profiling): New. Set PROFILE_CFLAGS.
8134 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
8136 (profiling_state): New variable.
8137 (mcleanup_wrapper): New function.
8138 (_initialize_maint): Remove NOTYET, fix call to
8139 add_setshow_boolean_cmd for "maint set profile".
8140 * configure: Regenerated.
8142 2003-01-21 Martin M. Hunt <hunt@redhat.com>
8144 * Makefile.in (install-gdbtk): Install PNG images too.
8146 2003-01-21 Andrew Cagney <ac131313@redhat.com>
8148 * exec.c (text_start): Delete global variable.
8149 (exec_file_attach): Make text_start local to the function.
8150 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
8151 * valops.c (hand_function_call): Delete code that handles
8152 BEFORE_TEXT_END and AFTER_TEXT_END.
8153 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
8154 of CALL_DUMMY_LOCATION.
8155 * gdbarch.c: Regenerate.
8156 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
8157 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
8158 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
8159 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
8160 (text_end): Delete extern declaration.
8162 2003-01-21 Andrew Cagney <ac131313@redhat.com>
8164 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
8165 * blockframe.c (backtrace_below_main): Move to "frame.c".
8166 (frame_chain_valid): Delete check for backtrace_below_main.
8167 (_initialize_blockframe): Delete initialization, move ``set
8168 backtrace-below-main'' command to "frame.c".
8169 (do_flush_frames_sfunc): Delete function.
8170 * frame.c: Include "command.h" and "gdbcmd.h".
8171 (frame_type_from_pc): New function.
8172 (create_new_frame): Use frame_type_from_pc.
8173 (legacy_get_prev_frame): New function.
8174 (get_prev_frame): Rewrite. When an old style frame, call
8175 legacy_get_prev_frame. Otherwize, unwind the PC first.
8176 (_initialize_frame): Add ``set backtrace-below-main'' command.
8177 * Makefile.in (frame.o): Update dependencies.
8179 2003-01-19 Andrew Cagney <ac131313@redhat.com>
8181 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
8182 DEPRECATED_REGISTERS_INFO.
8184 2003-01-19 Andrew Cagney <ac131313@redhat.com>
8186 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
8187 Maintainers'. Update `Various Maintainers'.
8189 2003-01-19 Andrew Cagney <ac131313@redhat.com>
8191 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
8192 * gdbarch.sh (POP_FRAME): Change to function with predicate.
8193 Suppress actual parameters when `-'.
8194 * gdbarch.h, gdbarch.c: Regenerate.
8196 2003-01-19 Andrew Cagney <ac131313@redhat.com>
8198 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
8199 code handling dummy frames.
8201 2003-01-19 Andrew Cagney <ac131313@redhat.com>
8203 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
8204 (struct frame_unwind): Add field pop.
8205 * frame.h (frame_pop): Declare.
8206 * frame.c (frame_saved_regs_pop): New function.
8207 (trad_frame_unwinder): Add frame_saved_regs_pop.
8208 (frame_pop): New function.
8209 * dummy-frame.c (dummy_frame_pop): New function.
8210 (discard_innermost_dummy): New function.
8211 (generic_pop_dummy_frame): Use discard_innermost_dummy.
8212 (dummy_frame_unwind): Add dummy_frame_pop.
8213 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
8214 * valops.c (hand_function_call): Ditto.
8215 * stack.c (return_command): Ditto.
8217 2003-01-18 Andrew Cagney <ac131313@redhat.com>
8219 * cris-tdep.c: Fix function declaration indentation.
8220 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
8221 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
8222 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
8223 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
8224 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
8225 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
8227 2003-01-18 Michael Chastain <mec@shout.net>
8229 * README (Unpacking and Installation -- quick overview):
8230 Warn against ".../gdb-5.3/gdb/configure".
8232 2003-01-18 Andrew Cagney <ac131313@redhat.com>
8234 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
8235 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
8236 (struct frame_unwind): Declare opaque.
8237 (dummy_frame_p): Declare function.
8238 * dummy-frame.c (dummy_frame_id_unwind): Make static.
8239 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
8240 * dummy-frame.c: Include "frame-unwind.h".
8241 (dummy_frame_p): New function.
8242 (dummy_frame_unwind): New variable.
8243 * frame.c: Include "frame-unwind.h".
8244 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
8245 to use the new unwind field.
8246 (set_unwind_by_pc): Delete function.
8247 (create_new_frame, get_prev_frame): Set unwind field using
8248 frame_unwind_find_by_pc.
8249 (trad_frame_unwind, trad_frame_unwinder): New variables.
8250 * frame.h (trad_frame_unwind): Declare variable.
8251 (frame_id_unwind_ftype): Delete declaration.
8252 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
8253 (struct frame_unwind): Declare opaque.
8254 (struct frame_info): Replace the fields id_unwind, pc_unwind and
8255 register_unwind with a single unwind pointer.
8256 * frame-unwind.h, frame-unwind.c: New files.
8257 * Makefile.in (SFILES): Add frame-unwind.c.
8258 (frame_unwind_h): Define.
8259 (COMMON_OBS): Add frame-unwind.o.
8260 (frame-unwind.o): Specify dependencies.
8261 (frame.o, dummy-frame.o): Update dependencies.
8263 2003-01-18 Andrew Cagney <ac131313@redhat.com>
8265 * ada-valprint.c: Eliminate PTR.
8266 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
8267 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
8268 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
8269 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
8270 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
8271 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
8272 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8274 2003-01-17 Andrew Cagney <ac131313@redhat.com>
8276 * main.c (captured_main): Don't use PTR.
8277 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
8278 * gdbtypes.c (lookup_primitive_typename): Ditto.
8279 (lookup_struct_elt_type): Ditto.
8280 * f-valprint.c (info_common_command): Ditto.
8281 (list_all_visible_commons): Ditto.
8282 * jv-typeprint.c (java_type_print_base): Ditto.
8284 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
8285 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
8286 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
8287 i386-interix-nat.c and i386-interix-tdep.c. Rename
8288 m68klinux-nat.c and m68klinux-tdep.c. Rename
8289 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
8290 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
8291 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
8292 * main.c (captured_main): Use xfree, not free.
8294 2003-01-16 Andrew Cagney <ac131313@redhat.com>
8296 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
8297 ID back using a parameter.
8298 * frame.c (frame_id_unwind): Update call.
8299 (frame_saved_regs_id_unwind): Update.
8300 * dummy-frame.c (dummy_frame_id_unwind): Update function.
8301 * dummy-frame.h (struct frame_id): Add opaque declaration.
8302 (dummy_frame_id_unwind): Update declaration.
8304 2003-01-15 Andrew Cagney <ac131313@redhat.com>
8306 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
8308 2003-01-15 Stephen P. Smith <ischis2@cox.net>
8310 * MAINTAINERS (Stephen P. Smith): Updated email address.
8312 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
8315 * breakpoint.c (until_break_command): Add new argument. Use it to
8316 decide whether to stop only at the current frame or not.
8317 * breakpoint.h (until_break_command): Update prototype.
8318 * infcmd.c (until_command): Add new argument to until_break_command
8320 (advance_command): New function.
8321 (_initialize_infcmd): Update help string for 'until' command.
8322 Add new 'advance' command.
8324 2003-01-14 David Carlton <carlton@math.stanford.edu>
8326 * linespec.c (decode_line_1): Normalize comments.
8328 (locate_first_half): Ditto.
8329 (decode_compound): Ditto.
8330 (symtab_from_filename): Ditto.
8331 (decode_all_digits): Ditto.
8332 (decode_dollar): Ditto.
8333 (find_methods): Ditto.
8334 (find_toplevel_char): Ditto.
8336 2003-01-13 Andrew Cagney <ac131313@redhat.com>
8338 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
8339 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
8340 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
8341 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
8342 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
8343 * language.c, language.h, m32r-tdep.c: Update copyright.
8344 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
8345 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
8346 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
8347 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
8348 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
8349 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
8351 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
8353 * stabsread.h (process_later, resolve_cfront_continuation):
8355 Update copyright years.
8356 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
8357 Update copyright year.
8358 * dbxread.c(struct cont_elem): Obsolete.
8359 (process_later, process_now): Obsolete functions.
8360 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
8361 Update copyright year.
8362 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
8363 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
8364 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
8365 (parse_partial_symbols): Obsolete cfront support.
8367 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
8369 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
8370 read_cfront_baseclasses, read_cfront_member_functions,
8371 resolve_cfront_continuation,read_cfront_static_fields,
8372 copy_cfront_struct_fields): Obsolete functions.
8373 (define_symbol, read_one_struct_field): Obsolete cfront support.
8374 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
8375 Update Copyright year.
8377 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
8379 * stack.c (print_frame_info, print_stack_frame_base_stub,
8380 print_stack_frame_base, show_and_print_stack_frame_stub,
8381 show_and_print_stack_frame, print_only_stack_frame_stub,
8382 print_only_stack_frame): Delete functions.
8383 (print_stack_frame_stub): Call print_frame_info instead of
8384 print_frame_info_base.
8385 (print_frame_info_base): Rename to print_frame_info.
8386 (backtrace_command_1): Call print_frame_info, instead of
8387 print_frame_info_base.
8388 (current_frame_command): Call print_stack_frame, instead of
8389 print_only_stack_frame.
8390 (frame_command): Call print_stack_frame, instead of
8391 show_and_print_stack_frame.
8392 (up_command): Ditto.
8393 (down_command): Ditto.
8394 * frame.h (print_only_stack_frame): Delete prototype.
8395 * infrun.c (normal_stop): Call print_stack_frame, instead of
8396 show_and_print_stack_frame.
8397 * thread.c (info_threads_command): Call print_stack_frame, instead
8398 of print_only_stack_frame.
8400 2003-01-13 Andrew Cagney <ac131313@redhat.com>
8402 * README (Graphical interface to GDB): Update URL. Point at
8405 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
8408 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8410 * symtab.c (find_pc_sect_line): Don't consider end-of-function
8413 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8415 * thread-db.c (attach_thread): Prototype.
8416 (struct private_thread_info): Remove lwpid. Add thread handle (th),
8417 thread information (ti), and valid flags (th_valid, ti_valid).
8418 (attach_thread): Move target_pid_to_str call to after the thread
8419 is added to GDB's list. Initialize the cache.
8420 (thread_get_info_callback, thread_db_map_id2thr)
8421 (thread_db_get_info): New functions.
8422 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
8423 (thread_db_store_registers, thread_db_thread_alive)
8424 (thread_db_get_thread_local_address): Use them.
8425 (thread_db_pid_to_str): Likewise. Return "Missing" instead
8426 of calling error() for threads in unknown state.
8428 (clear_lwpid_callback): New function.
8429 (thread_db_resume): Use it to clear the cache.
8431 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8433 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
8434 (resume_callback): Remove dead code.
8436 2003-01-13 Andrew Cagney <ac131313@redhat.com>
8438 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
8440 * gdbarch.h, gdbarch.c: Regenerate.
8441 * stack.c (frame_info): Only initialize the saved registers when
8442 FRAME_INIT_SAVED_REGS_P.
8443 * frame.c (frame_saved_regs_register_unwind): Assert
8444 FRAME_INIT_SAVED_REGS_P.
8445 (deprecated_generic_get_saved_register): Ditto.
8447 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8449 * source.c (openp): Squelch warning about "filename".
8451 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8453 * source.c (openp): If the file does not exist don't necessarily
8456 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8459 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
8460 (integer_types_same_name_p): New function.
8461 (rank_one_type): Use it.
8462 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
8464 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8466 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
8468 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
8469 * configure.in: Add --with-sysroot.
8470 * configure: Regenerated.
8471 * main.c (gdb_sysroot): New variable.
8472 (captured_main): Initialize gdb_sysroot.
8473 * defs.h (gdb_sysroot): New extern declaration.
8474 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
8476 2003-01-12 Michael Chastain <mec@shout.net>
8478 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
8480 2003-01-12 Michael Chastain <mec@shout.net>
8482 * top.c (print_gdb_version): Bump copyright year to 2003.
8484 2003-01-12 David Carlton <carlton@bactrian.org>
8486 * linespec.c (symtab_from_filename): Rename variable 's' to
8489 2003-01-12 Andrew Cagney <ac131313@redhat.com>
8491 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
8493 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
8495 2003-01-12 Andrew Cagney <ac131313@redhat.com>
8497 * d10v-tdep.c: Include "gdb_assert.h".
8498 (d10v_store_return_value): Rewrite to match current interface.
8499 (d10v_extract_struct_value_address): Ditto.
8500 (d10v_extract_return_value): Ditto.
8501 (d10v_gdbarch_init): Set store_restore_value,
8502 extract_struct_value_address and extract_return_value.
8504 2003-01-12 J. Brobecker <brobecker@gnat.com>
8506 * hpread.c (set_namestring): New procedure replacing the
8507 SET_NAMESTRING macro.
8508 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
8509 by calls to set_namestring.
8511 2003-01-11 J. Brobecker <brobecker@gnat.com>
8513 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
8514 a compilation warning.
8515 (hpread_process_one_debug_symbol): Likewise.
8517 2003-01-10 David Carlton <carlton@math.stanford.edu>
8519 * linespec.c (decode_line_1): Rename variable 's' to
8521 (decode_all_digits): Rename argument 's' to 'file_symtab'.
8522 (decode_dollar): Ditto.
8523 (decode_variable): Ditto.
8524 (symbol_found): Ditto.
8526 2003-01-09 Michael Chastain <mec@shout.net>
8528 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
8530 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
8532 * win32-nat.c (set_process_privilege): New function.
8533 (child_attach): Call set_process_privilege() to enable the
8534 SE_DEBUG_NAME user privilege if available in process token.
8536 2003-01-10 J. Brobecker <brobecker@gnat.com>
8538 * hpread.c (hpread_process_one_debug_symbol): Fix a small
8539 compilation error in the previous revision.
8541 2003-01-09 David Carlton <carlton@math.stanford.edu>
8543 * linespec.c: Update copyright.
8545 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
8547 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
8549 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
8551 2003-01-09 Andrew Cagney <ac131313@redhat.com>
8553 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
8555 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
8556 (frame_saved_regs_zalloc): Update.
8557 (frame_saved_regs_register_unwind): Update.
8558 (create_new_frame): Update.
8559 (get_prev_frame): Update.
8560 (frame_extra_info_zalloc): Update.
8561 (deprecated_get_frame_saved_regs): Update.
8562 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
8563 * cris-tdep.c: Update comment.
8565 * somsolib.h: Fix function indentation.
8566 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
8567 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
8568 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
8569 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
8570 * somsolib.c, inftarg.c: Remove assignment in if conditional.
8572 * infrun.c (follow_fork): Use ISO C definition.
8573 * expprint.c (print_subexp): Use xfree instead of free.
8574 * charset.c: Include "gdb_string.h" instead of <string.h>.
8575 (register_iconv_charsets): Use ISO C definition.
8576 (host_charset, target_charset): Ditto.
8577 * Makefile.in (charset.o): Update dependencies.
8578 (mi-cmd-env.o): Update dependencies.
8580 2003-01-08 Andrew Cagney <cagney@redhat.com>
8582 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
8585 2003-01-08 Andrew Cagney <ac131313@redhat.com>
8587 * gdb_mbuild.sh: Add --keep option. When specified, keep the
8588 build directories. Save edited gdb output in Mbuild.log. If a
8589 build fails, remove any final GDB executable.
8591 2003-01-08 Andrew Cagney <ac131313@redhat.com>
8593 * gdb_mbuild.sh: Edit the output of `maint print architecture'
8594 replacing hex constants with function names and stripping leading
8595 file name directory prefixes.
8597 2003-01-08 Andrew Cagney <cagney@redhat.com>
8599 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
8602 2003-01-08 David Carlton <carlton@math.stanford.edu>
8604 * linespec.c (decode_line_1): Move code into decode_variable.
8605 (decode_variable): New function.
8607 2003-01-08 Andrew Cagney <ac131313@redhat.com>
8609 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
8611 2003-01-08 Andrew Cagney <cagney@redhat.com>
8613 * cris-tdep.c (cris_frame_init_saved_regs): Use
8614 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
8616 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8617 (sh64_nofp_frame_init_saved_regs): Ditto.
8618 (sh_fp_frame_init_saved_regs): Ditto.
8619 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
8620 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
8621 * mcore-tdep.c (analyze_dummy_frame): Ditto.
8622 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
8624 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
8626 * minsyms.c (lookup_minimal_symbol): Update comment.
8627 (lookup_minimal_symbol_text): Update comment. Use the hash table.
8628 (lookup_minimal_symbol_solib_trampoline): Likewise.
8630 2003-01-08 Andrew Cagney <cagney@redhat.com>
8632 * d10v-tdep.c (d10v_init_extra_frame_info): Use
8633 frame_relative_level.
8635 * alpha-tdep.c: Use get_frame_extra_info.
8636 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8637 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
8638 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
8639 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
8641 * alpha-tdep.c: Use get_next_frame.
8642 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8643 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
8644 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
8645 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
8646 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
8647 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
8648 * xstormy16-tdep.c: Ditto.
8650 2003-01-07 Andrew Cagney <cagney@redhat.com>
8652 * alpha-tdep.c: Use get_frame_base.
8653 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8654 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
8655 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
8656 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
8657 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
8658 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
8659 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
8660 * config/sparc/tm-sparc.h: Ditto.
8662 2003-01-07 Andrew Cagney <cagney@redhat.com>
8664 * frame.c (deprecated_get_frame_context): New function.
8665 (deprecated_set_frame_context): New function.
8666 * frame.h (deprecated_get_frame_context): Declare.
8667 (deprecated_set_frame_context): Declare.
8668 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
8669 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8671 2003-01-07 Andrew Cagney <cagney@redhat.com>
8673 * frame.c (deprecated_set_frame_next_hack): New function.
8674 (deprecated_set_frame_prev_hack): New function.
8675 * frame.h (deprecated_set_frame_next_hack): Declare.
8676 (deprecated_set_frame_prev_hack): Declare.
8677 * mcore-tdep.c (analyze_dummy_frame): Use
8678 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
8679 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
8681 2003-01-07 David Carlton <carlton@math.stanford.edu>
8683 * linespec.c (decode_line_1): Move code into decode_dollar.
8684 (decode_dollar): New function.
8686 2003-01-07 Andrew Cagney <cagney@redhat.com>
8688 * arm-tdep.c (arm_init_extra_frame_info): Use
8689 deprecated_update_frame_base_hack.
8690 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
8691 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
8692 (fix_frame_pointer): Ditto.
8693 (mn10300_analyze_prologue): Ditto.
8695 2003-01-07 Andrew Cagney <cagney@redhat.com>
8697 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
8698 extra_info using frame_extra_info_zalloc.
8699 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8700 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
8701 (sh64_init_extra_frame_info): Ditto.
8702 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
8703 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
8704 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
8705 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
8706 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
8707 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
8708 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
8709 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
8710 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
8711 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
8712 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8713 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
8715 * mn10300-tdep.c (analyze_dummy_frame): Use
8716 deprecated_set_frame_extra_info_hack.
8717 * mcore-tdep.c (analyze_dummy_frame): Ditto.
8719 2003-01-07 J. Brobecker <brobecker@gnat.com>
8721 * mdebugread.c (parse_symbol): Skip stProc entries which storage
8722 class is not scText. These do not define "real" procedures.
8723 (parse_partial_symbols): Likewise.
8725 2003-01-06 Michael Snyder <msnyder@redhat.com>
8727 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
8729 2003-01-06 Andrew Cagney <ac131313@redhat.com>
8731 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
8732 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
8733 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
8734 deprecated_frame_xmalloc_with_cleanup.
8735 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
8736 deprecated_frame_xmalloc.
8737 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
8738 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
8740 2003-01-06 Andrew Cagney <cagney@redhat.com>
8742 * x86-64-linux-tdep.c: Include "osabi.h".
8743 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
8745 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
8747 2003-01-06 Andrew Cagney <cagney@redhat.com>
8749 * MAINTAINERS (Target Instruction Set Architectures): Update
8750 arm-elf. Can be built with -Werror, has been multiarched.
8752 * value.h (unpack_long): Make buffer parameter constant.
8753 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
8754 * scm-lang.h (scm_parse): Ditto.
8755 * defs.h (extract_typed_address, extract_address): Ditto.
8756 (extract_long_unsigned_integer): Ditto.
8757 * inferior.h (unsigned_pointer_to_address): Ditto.
8758 (signed_pointer_to_address): Ditto.
8759 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
8760 * gdbarch.h, gdbarch.c: Regenerate.
8761 * findvar.c (extract_long_unsigned_integer): Update.
8762 (extract_address): Update.
8763 (extract_typed_address): Update.
8764 (unsigned_pointer_to_address): Update.
8765 * values.c (unpack_long): Update.
8766 (unpack_double): Update.
8767 (unpack_pointer): Update.
8768 (unpack_field_as_long): Update.
8769 * d10v-tdep.c (d10v_pointer_to_address): Update.
8770 * avr-tdep.c (avr_pointer_to_address): Update.
8771 * scm-lang.c (scm_unpack): Update.
8772 * findvar.c (signed_pointer_to_address): Update.
8774 2003-01-06 Michal Ludvig <mludvig@suse.cz>
8776 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
8777 since it is in i386-tdep.c.
8779 2003-01-06 J. Brobecker <brobecker@gnat.com>
8781 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
8782 failure introduced in the previous change.
8784 2003-01-05 Michael Chastain <mec@shout.net>
8786 * README: Remove references to deleted remote-*.c files:
8787 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
8788 remote-nrom.c, remote-os9k.c, remote-udi.c.
8790 2003-01-05 Mark Kettenis <kettenis@gnu.org>
8792 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
8793 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
8794 i386_get_longjmp_target.
8796 2003-01-05 Andrew Cagney <ac131313@redhat.com>
8798 * arm-tdep.c (prologue_cache): Change to a pointer.
8799 (_initialize_arm_tdep): Allocate prologue_cache.
8800 (check_prologue_cache): Update.
8801 (save_prologue_cache): Update.
8802 (arm_gdbarch_init): Update.
8804 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
8806 * stabsread.c (update_method_name_from_physname): Call complaint()
8809 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
8811 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
8812 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
8813 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
8815 * blockframe.c: Include "gdbcmd.h" and "command.h".
8816 (backtrace_below_main): New variable.
8817 (file_frame_chain_valid, func_frame_chain_valid)
8818 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
8819 (generic_func_frame_chain_valid): Remove functions.
8820 (frame_chain_valid, do_flush_frames_sfunc): New functions.
8821 (_initialize_blockframe): New function.
8822 * Makefile.in (blockframe.o): Update dependencies.
8823 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
8824 comment. Call frame_chain_valid ().
8825 * frame.h: Remove old prototypes. Add prototype for
8826 frame_chain_valid and update comments to match.
8827 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
8829 * gdbarch.h: Regenerated.
8830 * gdbarch.c: Regenerated.
8832 * alpha-tdep.c (alpha_gdbarch_init): Don't call
8833 set_gdbarch_frame_chain_valid.
8834 * avr-tdep.c (avr_gdbarch_init): Likewise.
8835 * cris-tdep.c (cris_gdbarch_init): Likewise.
8836 * frv-tdep.c (frv_gdbarch_init): Likewise.
8837 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
8838 * i386-tdep.c (i386_svr4_init_abi): Likewise.
8839 (i386_nw_init_abi): Likewise.
8840 (i386_gdbarch_init): Likewise.
8841 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
8842 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
8843 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
8844 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
8845 * mips-tdep.c (mips_gdbarch_init): Likewise.
8846 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8847 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
8848 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8849 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8850 * s390-tdep.c (s390_gdbarch_init): Likewise.
8851 * sh-tdep.c (sh_gdbarch_init): Likewise.
8852 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
8853 * v850-tdep.c (v850_gdbarch_init): Likewise.
8854 * vax-tdep.c (vax_gdbarch_init): Likewise.
8855 * x86-64-tdep.c (x86_64_init_abi): Likewise.
8857 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
8858 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
8859 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
8860 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
8861 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
8862 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
8863 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
8864 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
8866 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8868 * Makefile.in (acconfig_h): Remove incorrect macro.
8870 (osabi.o): Update dependencies.
8871 * configure.tgt: Set gdb_osabi based on target triplet.
8872 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
8873 * configure: Regenerated.
8874 * config.in: Regenerated.
8875 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
8876 (GDB_OSABI_DEFAULT): Define if not already defined.
8877 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
8878 (set_osabi_string): New variables.
8879 (gdbarch_register_osabi): Add new OS ABI to
8880 gdb_osabi_available_names.
8881 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
8882 (set_osabi, show_osabi): New functions.
8883 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
8885 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
8887 * arch-utils.c (gdbarch_info_init): Set osabi to
8888 GDB_OSABI_UNINITIALIZED.
8889 * gdbarch.sh: Add osabi to struct gdbarch and to struct
8890 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
8891 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
8892 * gdbarch.c: Regenerated.
8893 * gdbarch.h: Regenerated.
8894 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
8896 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
8897 * osabi.h (enum gdb_osabi): Move to defs.h.
8898 (gdbarch_init_osabi): Update prototype.
8899 * defs.h (enum gdb_osabi): Moved here.
8900 * Makefile.in: Update dependencies.
8902 * alpha-tdep.h: Don't include "osabi.h".
8903 (struct gdbarch_tdep): Remove osabi member.
8904 * alpha-tdep.c: Include "osabi.h".
8905 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8906 iterate over arches. Update call to gdbarch_init_osabi.
8907 (alpha_dump_tdep): Don't dump osabi.
8908 * alpha-linux-tdep.c: Include "osabi.h".
8909 * alpha-osf1-tdep.c: Include "osabi.h".
8910 * alphafbsd-tdep.c: Include "osabi.h".
8911 * alphanbsd-tdep.c: Include "osabi.h".
8913 * arm-tdep.h: Don't include "osabi.h".
8914 (struct gdbarch_tdep): Remove osabi member.
8915 * arm-tdep.c: Include "osabi.h".
8916 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8917 iterate over arches. Update call to gdbarch_init_osabi.
8918 (arm_dump_tdep): Don't dump osabi.
8919 * arm-linux-tdep.c: Include "osabi.h".
8920 * armnbsd-tdep.c: Include "osabi.h".
8922 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
8923 Update call to gdbarch_init_osabi.
8925 * i386-tdep.h: Don't include "osabi.h".
8926 (struct gdbarch_tdep): Remove osabi member.
8927 * i386-tdep.c: Include "osabi.h".
8928 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8929 iterate over arches. Update call to gdbarch_init_osabi.
8930 (i386_dump_tdep): Don't dump osabi.
8931 * i386-linux-tdep.c: Include "osabi.h".
8932 * i386-sol2-tdep.c: Include "osabi.h".
8933 * i386bsd-tdep.c: Include "osabi.h".
8934 * i386gnu-tdep.c: Include "osabi.h".
8935 * i386ly-tdep.c: Include "osabi.h".
8936 * i386nbsd-tdep.c: Include "osabi.h".
8937 * i386obsd-tdep.c: Include "osabi.h".
8939 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
8940 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8941 check osabi when iterating over arches. Update call to
8943 (mips_dump_tdep): Don't dump osabi.
8945 * ns32k-tdep.h: Don't include "osabi.h".
8946 (struct gdbarch_tdep): Remove.
8947 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
8948 gdbarch_lookup_osabi. Don't iterate over arches. Don't
8949 allocate tdep. Update call to gdbarch_init_osabi.
8950 (ns32k_dump_tdep): Remove.
8951 (_initialize_ns32k_tdep): Update call to gdbarch_register.
8952 * ns32knbsd-tdep.c: Include "osabi.h".
8954 * ppc-tdep.h: Don't include "osabi.h".
8955 (struct gdbarch_tdep): Remove osabi member.
8956 * rs6000-tdep.c: Include "osabi.h".
8957 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
8958 osabi when iterating over arches. Update call to
8960 (rs6000_dump_tdep): Don't dump osabi.
8961 * ppc-linux-tdep.c: Include "osabi.h".
8962 * ppcnbsd-tdep.c: Include "osabi.h".
8964 * sh-tdep.h: Don't include "osabi.h".
8965 (struct gdbarch_tdep): Remove osabi member.
8966 * sh-tdep.c: Include "osabi.h".
8967 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8968 iterate over arches. Update call to gdbarch_init_osabi.
8969 (sh_dump_tdep): Don't dump osabi.
8970 * shnbsd-tdep.c: Include "osabi.h".
8972 * sparc-tdep.c: Include "osabi.h".
8973 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8974 iterate over arches. Update call to gdbarch_init_osabi.
8975 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
8978 * vax-tdep.h: Don't include "osabi.h".
8979 (struct gdbarch_tdep): Remove.
8980 * vax-tdep.c: Include "osabi.h".
8981 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8982 iterate over arches. Don't allocate tdep. Update call
8983 to gdbarch_init_osabi.
8984 (vax_dump_tdep): Remove.
8985 (_initialize_vax_tdep): Update call to gdbarch_register.
8987 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
8989 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
8991 (breakpoint_re_set_one): Don't fetch the value for a disabled
8994 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
8996 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
8997 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
8998 (COERCE_FLOAT_TO_DOUBLE): Remove.
8999 * gdbarch.c: Regenerate.
9000 * gdbarch.h: Regenerate.
9001 * Makefile.in: Remove value_h from gdbarch_h.
9002 * valops.c (coerce_float_to_double): New variable.
9003 (default_coerce_float_to_double): Remove.
9004 (standard_coerce_float_to_double): Remove.
9005 (value_arg_coerce): Use coerce_float_to_double.
9006 (_initialize_valops): Add "set coerce-float-to-double".
9007 * value.h (default_coerce_float_to_double): Remove prototype.
9008 (standard_coerce_float_to_double): Remove prototype.
9010 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
9012 * mdebugread.c (parse_symbol): Likewise.
9013 * stabsread.c (define_symbol): Mark all functions as prototyped.
9015 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
9016 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
9017 set_gdbarch_coerce_float_to_double.
9018 * arm-tdep.c (arm_gdbarch_init): Likewise.
9019 * frv-tdep.c (frv_gdbarch_init): Likewise.
9020 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
9021 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
9022 * mips-tdep.c (mips_gdbarch_init): Likewise.
9023 (mips_coerce_float_to_double): Remove.
9024 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9025 (rs6000_coerce_float_to_double): Remove.
9026 * s390-tdep.c (s390_gdbarch_init): Likewise.
9027 * sh-tdep.c (sh_gdbarch_init): Likewise.
9028 (sh_coerce_float_to_double): Remove.
9029 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
9030 (sparc_coerce_float_to_double): Remove.
9031 * v850-tdep.c (v850_gdbarch_init): Likewise.
9032 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
9033 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9034 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
9035 (hppa_coerce_float_to_double): Remove prototype.
9036 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9038 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9040 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
9042 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9044 Suggested by Stewart Brown <sb24@avaya.com>:
9045 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
9046 in recursive calls. Handle TYPE_CODE_TYPEDEF.
9047 (c_type_print_varspec_suffix): Likewise.
9049 2003-01-04 Mark Kettenis <kettenis@gnu.org>
9051 * configure.in: Don't set and AC_SUBST SUBDIRS.
9052 * configure: Regenerated.
9054 * configure.in: Remove code dealing with shared libraries.
9055 * Makefile.in: Remove HLDFLAGS and HLDENV.
9056 * configure: Regenerated.
9058 2003-01-04 Andrew Cagney <ac131313@redhat.com>
9060 * frame.c (deprecated_frame_xmalloc): New function.
9061 (deprecated_set_frame_saved_regs_hack): New function.
9062 (deprecated_set_frame_extra_info_hack): New function.
9063 * frame.h (deprecated_frame_xmalloc): Declare.
9064 (deprecated_set_frame_saved_regs_hack): Declare.
9065 (deprecated_set_frame_extra_info_hack): Declare.
9067 2003-01-04 Mark Kettenis <kettenis@gnu.org>
9069 * configure.in: Move code that provides the --enable-gdbtk option
9070 right after the code that handles the --enable-tui option, and
9072 * configure: Regenerated.
9074 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
9075 AC_CHECK_FUNCS and remove the old check for pread64.
9076 * acinclude.m4 (AC_GNU_SOURCE): New macro.
9077 * acconfig.h (_GNU_SOURCE): Add.
9078 (HAVE_PREAD64): Remove.
9079 * configure, aclocal.m4, config.in: Regenerated.
9081 2003-01-03 Andrew Cagney <ac131313@redhat.com>
9083 * alpha-tdep.c: Use get_frame_saved_regs.
9084 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9085 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
9086 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
9087 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
9088 * vax-tdep.c, xstormy16-tdep.c: Ditto.
9090 2003-01-03 Mark Kettenis <kettenis@gnu.org>
9092 * configure.in: Remove all use of the SUBDIRS variable; add
9093 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
9094 code providing the --enable-multi-ice option, and move it right in
9095 front of the code that checks whether gdbserver is supported.
9097 * configure: Regenerated.
9098 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
9101 2003-01-03 Andrew Cagney <cagney@redhat.com>
9103 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
9104 * avr-tdep.c, cris-tdep.c: Ditto.
9105 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
9106 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
9108 2003-01-03 Mark Kettenis <kettenis@gnu.org>
9110 * configure.in: Remove --enable-netrom option.
9111 * configure: Regenerated.
9113 2003-01-03 Mark Kettenis <kettenis@gnu.org>
9115 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
9116 declaration for `struct re_pattern_buffer' instead.
9117 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
9119 2003-01-03 J. Brobecker <brobecker@gnat.com>
9121 * mdebugread.c (parse_symbol): Count until the stEnd matching
9124 2003-01-02 Mark Kettenis <kettenis@gnu.org>
9126 * configure.in: Remove --with-cpu option.
9127 subscripts. Remove evil changequotes here.
9128 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
9129 * config.in, configure: Regenerated.
9131 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
9132 * configure.in: Cleanup section that sources GDB and BFD configure
9133 subscripts. Remove evil changequotes here.
9134 * config.in, configure: Regenerated.
9136 2003-01-02 Andrew Cagney <ac131313@redhat.com>
9138 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
9139 frame accessor methods.
9140 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9141 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
9142 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
9143 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
9144 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
9145 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
9146 * z8k-tdep.c: Ditto.
9148 2003-01-02 Mark Kettenis <kettenis@gnu.org>
9150 * configure.in: Remove UI_OUT configuration code.
9151 * ada-lang.c: Update assuming UI_OUT is always true.
9152 * Makefile.in (UIOUT_CFLAGS): Remove.
9153 * configure: Regenerated.
9154 * TODO: Remove blurb about elimination of -DUI_OUT.
9156 * configure.in: Move code that provides the --enable-gdbcli,
9157 --enable-gdbmi options right before the code that handles the
9158 --enable-tui option. Polish a bit.
9159 * configure: Regenerated.
9161 * configure.in: Rewrite check for GNU regex and the
9162 --without-included regex option, and move it into the "Checks for
9163 library functions" section. This makes us use the system regex
9164 again by default on systems with version 2 of the GNU C library.
9165 This was apparently broken.
9166 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
9167 * acconfig.h (USE_INCLUDED_REGEX): Remove.
9168 * config.in, configure: Regenerated.
9170 * configure.in: Move code that provides the --enable-tui option
9171 before the "Checks for libraries" section. Polish the code
9172 somewhat and set need_curses to yes if we build the TUI. Rewrite
9173 code that looks for a library providing termcap functionality to
9174 match more closely what's done in the Readline library, and move
9175 it into to the "Checks for libraries" section.
9176 * configure: Regenerated.
9177 * Makefile.in (TERMCAP): Remove variable.
9178 * config/i386/go32.mh (TERMCAP): Remove variable.
9180 2003-01-02 Andrew Cagney <ac131313@redhat.com>
9182 * MAINTAINERS: Mention gdb_mbuild.sh.
9183 * gdb_mbuild.sh: Rewrite.
9185 2003-01-02 Mark Kettenis <kettenis@gnu.org>
9187 * configure.in: Fix typo in last change.
9188 * config.in, configure: Regenerated.
9190 2003-01-02 Andrew Cagney <ac131313@redhat.com>
9192 * valarith.c (value_binop): Delete obsolete code and comments.
9193 * configure.host: Ditto.
9194 * buildsym.h (make_blockvector): Ditto.
9195 * buildsym.c (make_blockvector): Ditto.
9196 * defs.h (enum language): Ditto.
9197 (chill_demangle): Ditto.
9198 * elfread.c (elf_symtab_read): Ditto.
9199 * dwarfread.c (CHILL_PRODUCER): Ditto.
9200 (set_cu_language): Ditto.
9201 (handle_producer): Ditto.
9202 * expprint.c (print_subexp): Ditto.
9203 * gdbtypes.c (chill_varying_type): Ditto.
9204 * gdbtypes.h (builtin_type_chill_bool): Ditto.
9205 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
9206 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
9207 (chill_varying_type): Ditto.
9208 * language.h (_LANG_chill): Ditto.
9209 * language.c (binop_result_type, integral_type): Ditto.
9210 (character_type, string_type, structured_type): Ditto.
9211 (lang_bool_type, binop_type_check): Ditto.
9212 * stabsread.h (os9k_stabs): Ditto.
9213 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
9214 (define_symbol, read_type, read_struct_fields): Ditto.
9215 (read_array_type, read_enum_type, read_huge_number): Ditto.
9216 (read_range_type, start_stabs): Ditto.
9217 * symfile.c (init_filename_language_table): Ditto.
9218 (add_psymbol_with_dem_name_to_list): Ditto.
9219 * symtab.c (symbol_init_language_specific): Ditto.
9220 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
9221 * symtab.h (struct general_symbol_info): Ditto.
9222 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
9223 * typeprint.c (typedef_print): Ditto.
9224 * utils.c (fprintf_symbol_filtered): Ditto.
9225 * valops.c (value_cast, search_struct_field, value_slice): Delete
9227 (varying_to_slice): Delete function.
9228 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
9229 (varying_to_slice): Delete declaration.
9230 * MAINTAINERS: Update.
9232 2003-01-02 Mark Kettenis <kettenis@gnu.org>
9234 * configure.in: Reorganize "Checks for library functions section"
9235 a bit. Remove check for `btowc' and `isascii' functions.
9236 * configure: Regenerated.
9238 * acconfig.h (_MSE_INT_H): Remove.
9239 * configure.in: Create "Checks for header files" section, and move
9240 appropriate tests there. Don't check for objlist.h, wchar.h,
9241 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
9242 misdetection fix. Also add "Checks for types", "Checks for
9243 compiler characteristics" and "Checks for library functions"
9245 * config.in, configure: Regenerated.
9247 * configure.in: Create "Checks for programs" section, and move
9248 appropriate tests there.
9250 2003-01-01 Mark Kettenis <kettenis@gnu.org>
9252 * configure.in: Create "Checks for libraries" section, and move
9253 appropriate tests there. Cleanup check for wctype in libw. Use
9254 AC_SEARCH_LIBS to see whether we need libsocket.
9255 * configure: Regenerated.
9257 For older changes see ChangeLog-2002
9263 version-control: never