1 2003-07-07 Andreas Schwab <schwab@suse.de>
3 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5 * m68k-tdep.c (NUM_FREGS): Delete.
6 (SIG_PC_FP_OFFSET): Delete.
8 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
9 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
10 P_MOVEL_SP, P_MOVEML_SP): Define.
11 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
13 (m68k_register_raw_size): Delete.
14 (m68k_register_virtual_size): Delete.
15 (m68k_register_type): Renamed from m68k_register_virtual_type and
17 (m68k_store_struct_return): Delete.
18 (m68k_deprecated_extract_return_value): Delete.
19 (m68k_deprecated_extract_struct_value_address): Delete.
20 (m68k_frame_chain): Delete.
21 (m68k_frame_saved_pc): Delete.
22 (m68k_fix_call_dummy): Delete.
23 (m68k_push_dummy_frame): Delete.
24 (m68k_pop_frame): Delete.
25 (m68k_extract_return_value): New function.
26 (m68k_store_return_value): Rewrite using regcache.
27 (m68k_extract_struct_value_address): Rewrite using regcache.
28 (m68k_push_dummy_call): New function.
29 (struct m68k_frame_cache): Define.
30 (m68k_alloc_frame_cache): New function.
31 (m68k_analyze_frame_setup): New function.
32 (m68k_analyze_register_saves): New function.
33 (m68k_analyze_prologue): New function.
34 (m68k_skip_prologue): Rewrite using above functions.
35 (m68k_unwind_pc): New function.
36 (m68k_frame_cache): New function.
37 (m68k_frame_this_id): New function.
38 (m68k_frame_prev_register): New function.
39 (m68k_frame_unwind): New variable.
40 (m68k_frame_p): New function.
41 (m68k_sigtramp_frame_cache): New function.
42 (m68k_sigtramp_frame_this_id): New function.
43 (m68k_sigtramp_frame_prev_register): New function.
44 (m68k_sigtramp_frame_unwind): New variable.
45 (m68k_sigtramp_frame_p): New function.
46 (m68k_frame_base_address): New function.
47 (m68k_frame_base): New function.
48 (m68k_unwind_dummy_id): New function.
49 (fill_gregset): Use regcache_collect.
50 (fill_fpregset): Likewise.
51 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
53 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
54 deprecated_init_frame_pc, deprecated_store_struct_return,
55 deprecated_extract_return_value, deprecated_store_return_value,
56 deprecated_frame_chain, deprecated_frame_saved_pc,
57 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
58 deprecated_register_virtual_size,
59 deprecated_max_register_raw_size,
60 deprecated_max_register_virtual_size,
61 deprecated_register_virtual_type, deprecated_register_size,
62 deprecated_register_byte, deprecated_register_bytes,
63 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
64 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
65 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
66 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
67 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
68 deprecated_push_dummy_frame, deprecated_pop_frame,
69 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
70 only if SYSCALL_TRAP is defined. Set extract_return_value,
71 store_return_value, extract_struct_value_address, register_type,
72 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
74 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
75 M68K_MAX_REGISTER_SIZE): Define.
76 (struct m68k_sigtramp_info): Define.
77 (struct gdbarch_tdep): Add get_sigtramp_info.
78 * m68klinux-nat.c (fetch_register): Use register_size instead of
79 REGISTER_RAW_SIZE. Don't put assignment in if.
80 (store_register): Likewise.
81 (fetch_inferior_registers): Likewise.
82 (store_inferior_registers): Likewise.
83 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
84 (m68k_linux_frame_saved_pc): Delete.
85 (m68k_linux_sigcontext_reg_offset,
86 m68k_linux_ucontext_reg_offset): Define.
87 (m68k_linux_get_sigtramp_info): New function.
88 (m68k_linux_extract_return_value): Rewrite using regcache.
89 (m68k_linux_store_return_value): Likewise.
90 (m68k_linux_extract_struct_value_address): Likewise.
91 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
92 Don't set deprecated_frame_saved_pc,
93 deprecated_extract_return_value, deprecated_store_return_value,
94 deprecated_extract_struct_value_address. Set
95 extract_return_value, store_return_value,
96 extract_struct_value_address.
98 2003-07-07 Andrew Cagney <cagney@redhat.com>
100 * expprint.c: Include "user-regs.h" instead of "frame.h".
101 (print_subexp): Use user_reg_map_regnum_to_name, instead of
102 frame_map_regnum_to_name.
103 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
104 (frame_map_name_to_regnum): Simplify, call
105 user_reg_map_name_to_regnum.
106 (frame_map_regnum_to_name): Simplify, call
107 user_reg_map_regnum_to_name.
108 (frame_register_unwind): Update.
109 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
110 (_initialize_frame_reg): Call user_reg_add_builtin.
111 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
112 (value_of_register): Use value_of_user_reg.
113 * eval.c (evaluate_subexp_standard): Update.
114 * parse.c (write_dollar_variable): Update.
115 * d10v-tdep.c (d10v_print_registers_info): Update.
116 * infcmd.c (registers_info): Update.
117 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
118 (builtin_regs_h): Delete macro.
119 (user_regs_h): Define.
120 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
121 (builtin-regs.o): Delete target.
122 (user-regs.o): Specify dependencies.
123 (expprint.o): Update dependencies.
124 (findvar.o): Update dependencies.
125 (frame.o): Update dependencies.
126 (std-regs.o): Update dependencies.
128 2003-07-06 Christopher Faylor <cgf@redhat.com>
130 * win32-nat.c (solib_symbols_add): Use one variable for all section
131 address stuff. Pass variable rather than address of variable to
132 safe_symbol_file_add.
134 2003-07-06 Andreas Schwab <schwab@suse.de>
136 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
138 2003-07-04 Joel Brobecker <brobecker@gnat.com>
140 * rs6000-nat.c (vmap_symtab): Fix compilation error.
142 2003-07-04 Kris Warkentin <kewarken@qnx.com>
144 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
146 2003-07-04 Kris Warkentin <kewarken@qnx.com>
148 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
149 * config/i386/nto.mh: New file.
150 * config/i386/nm-nto.h: New file.
151 * configure.host: Add i[3456]86-*-nto*.
153 2003-07-03 Joel Brobecker <brobecker@gnat.com>
155 * remote-vx.c (vx_add_symbols): Fix compilation error.
157 2003-07-03 Andrew Cagney <cagney@redhat.com>
159 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
160 * gdbarch.h, gdbarch.c: Re-generate.
161 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
162 (legacy_register_name): Declare.
163 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
164 (REGISTER_NAME): Define.
165 * sparc-tdep.c (legacy_register_name): New function.
166 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
167 (REGISTER_NAME): Define.
168 (hppa64_register_name): Declare.
169 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
170 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
171 (hppa64_register_name): New function.
172 (hppa_register_name): New function.
173 * arch-utils.c (legacy_register_name): Delete.
174 * arch-utils.h (legacy_register_name): Delete.
176 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
178 * cli/cli-interp.c (cli_interpreter_resume): Update the
179 cli_uiout's stream to gdb_stdout.
181 2003-07-03 Andrew Cagney <cagney@redhat.com>
183 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
185 * gdbarch.h, gdbarch.c: Re-generate.
186 * regcache.c (init_regcache_descr): Use legacy code when either
187 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
189 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
191 * NEWS: Move "set logging" entry into GDB 6.0 section.
193 2003-07-02 Jim Blandy <jimb@redhat.com>
195 * s390-tdep.c (struct frame_extra_info): new member:
196 'stack_bought_valid'.
197 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
198 initialize fextra_info->stack_bought.
199 (s390_frameless_function_invocation): Don't trust the value of
200 fextra_info_ptr->stack_bought unless
201 fextra_info->stack_bought_valid is set.
203 New S390 prologue analyzer.
204 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
205 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
206 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
207 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
208 compute_x_addr, s390_on_stack, s390_store,
209 s390_get_signal_frame_info): New functions.
210 (S390_NUM_SPILL_SLOTS): New macro.
211 (s390_get_frame_info): Rewritten.
212 (is_arg_reg): Deleted.
214 Break out the decoding of S/390 instructions into separate
215 functions, to make it more legible, and easier to check
217 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
218 is_rx, is_rxe): New functions.
219 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
220 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
221 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
222 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
223 enums for opcode values. (Is this an improvement?)
225 2003-07-02 Andrew Cagney <cagney@redhat.com>
227 * i386-tdep.c: Revert change committed as part of trad-frame code
230 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
232 * breakpoint.c (insert_catchpoint): Make static.
234 2003-07-02 Andreas Schwab <schwab@suse.de>
236 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
237 former ia64_push_arguments and ia64_push_return_address, and use
238 regcache functions instead of read/write_register.
239 (ia64_gdbarch_init): Set push_dummy_call instead of
240 deprecated_push_arguments and deprecated_push_return_address.
242 2003-07-01 Andreas Jaeger <aj@suse.de>
244 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
246 Set %rax only to number of SSE registers used.
248 2003-07-01 Andrew Cagney <cagney@redhat.com>
250 * trad-frame.h: Update comments, a -1 .addr is reserved.
251 (trad_frame_value_p, trad_frame_addr_p): Declare.
252 (trad_frame_reg_p): Declare.
253 (trad_frame_set_value): Rename trad_frame_register_value.
254 (trad_frame_set_unknown): Declare.
255 * trad-frame.c (trad_frame_realreg_p): New function.
256 (trad_frame_addr_p, trad_frame_value_p): New function.
257 (trad_frame_set_unknown): New function.
258 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
259 (trad_frame_prev_register): Use trad_frame_realreg_p,
260 trad_frame_addr_p and trad_frame_value_p.
261 (trad_frame_set_value): Rename trad_frame_register_value.
262 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
263 and trad_frame_set_value.
265 2003-06-30 Jim Blandy <jimb@redhat.com>
267 Patch from IBM (authors unspecified, probably Ulrich Weigand and
268 Gerhard Tonn) for argument passing on the S/390 and S/390x:
269 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
270 for 16 registers, and then 32 more bytes.
271 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
273 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
274 Move up in the file, since it's now used by is_simple_arg.
275 (is_simple_arg): Don't assume registers are four bytes long.
276 Exclude all double arguments. Extended floats are not simple
278 (is_power_of_two): New function.
279 (pass_by_copy_ref): Call is_power_of_two, and check that the
280 length fits in a register, rather than listing all the acceptable
281 sizes. Extended floats are not passed by reference.
282 (s390_push_arguments): Don't assume registers are four bytes long.
283 Reserve an argument register to point to the buffer for structures
284 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
285 S390_STACK_FRAME_OVERHEAD.
287 2003-06-30 Andreas Schwab <schwab@suse.de>
289 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
290 format error message.
292 2003-06-30 Joel Brobecker <brobecker@gnat.com>
294 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
296 2003-06-30 David Carlton <carlton@kealia.com>
298 Band-aid for PR c++/1245.
299 * Makefile.in (cp-support.o): Depend on complaints_h.
300 * cp-support.c: Include complaints.h. Add declaration for
302 (cp_find_first_component): Separate code into
303 cp_find_first_component_aux.
304 (cp_find_first_component_aux): Call demangled_name_complaint.
305 (demangled_name_complaint): New.
307 2003-06-30 Andrew Cagney <cagney@redhat.com>
309 * remote.c (remote_write_bytes): Explicitly compute and then use
310 the payload size. Update comments to reflect. Fixes problem of
311 GDB not sending small packets as found by Fred Fish.
313 2003-06-30 Andrew Cagney <cagney@redhat.com>
315 * remote.c (remote_async_wait): Fix -Wformat problem.
317 2003-06-29 Andrew Cagney <cagney@redhat.com>
319 * remote.c (remote_wait): Call error, and not warning, when the
321 (remote_async_wait): Ditto.
323 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
325 * sparc-tdep.c (sparc_y_regnum): Make external again.
327 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
329 * cli/cli-logging.c (pop_output_files): Add void to function
332 2003-06-29 Andrew Cagney <cagney@redhat.com>
334 * frame.c (frame_register_unwind): Use unsigned char when dumping
337 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
339 * cli/cli-logging.c: New file.
340 * cli-out.c (struct ui_out_data): Add original_stream.
341 (cli_redirect): New function.
342 (cli_ui_out_impl): Add cli_redirect.
343 (cli_out_new): Initialize original_stream.
344 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
345 (uo_redirect, ui_out_redirect): New.
346 * ui-out.h (struct ui_out_impl): Add redirect member.
347 (redirect_ftype): New.
348 (ui_out_redirect): Add prototype.
349 * Makefile.in: Add rules for cli-logging.c.
350 * NEWS: Mention "set logging".
352 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
354 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
356 2003-06-27 Andrew Cagney <cagney@redhat.com>
358 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
359 (m68hc11_gdbarch_init): Do not set call_dummy_address.
360 * avr-tdep.c (avr_call_dummy_address): Delete function.
361 (avr_gdbarch_init): Do not set call_dummy_address.
363 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
365 * symfile.c (syms_from_objfile): Move variables to inner block.
366 Move the checks for the non-mainline case a bit earlier to avoid
367 doing some useless computations.
369 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
371 * dwarfread.c (decode_modified_type): Gag new compiler warning.
373 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
375 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
378 2003-06-26 Michael Chastain <mec@shout.net>
380 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
381 gdb/testsuite/gdb.c++/pr-1210.exp.
383 2003-06-26 Andrew Cagney <cagney@redhat.com>
385 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
386 altivec_expression.h and altivec_registers.h.
388 2003-06-26 Andrew Cagney <cagney@redhat.com>
390 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
391 info->mach when MIPS16. Patch suggested by Fred Fish.
393 2003-06-26 Andrew Cagney <cagney@redhat.com>
395 * utils.c (internal_vproblem): Print the problem to a reason
396 buffer and then pass to query. Make the msg variable more local.
398 2003-06-26 Andrew Cagney <cagney@redhat.com>
400 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
401 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
402 * gdbarch.h, gdbarch.c: Re-generate.
403 * frame-base.c (default_frame_args_address): Update. Use
404 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
406 (default_frame_locals_address): Ditto for
407 DEPRECATED_FRAME_LOCALS_ADDRESS.
408 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
409 (vax_frame_num_args): Update.
410 (vax_gdbarch_init): Update.
411 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
412 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
413 * mcore-tdep.c (mcore_gdbarch_init): Update.
414 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
415 * ia64-tdep.c (ia64_gdbarch_init): Update.
416 * symtab.h (address_class): Update comments.
417 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
418 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
419 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
420 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
421 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
422 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
423 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
424 * alpha-mdebug-tdep.c: Update.
425 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
427 2003-06-26 Andreas Jaeger <aj@suse.de>
429 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
430 of SSE registers so that varargs functions work. Rework handling
431 of passing arguments on the stack.
432 (x86_64_store_return_value): Return double and float values in SSE
435 2003-06-24 Michael Chastain <mec@shout.net>
437 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
438 the "constructor breakpoints ignored" bug.
440 2003-06-25 David Carlton <carlton@kealia.com>
442 * MAINTAINERS: Update e-mail address.
444 2003-06-24 Jim Blandy <jimb@redhat.com>
446 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
448 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
450 (ppc_linux_init_abi): Register it as the
451 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
453 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
454 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
457 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
458 (ppc64_standard_linkage_target): Use it.
460 2003-06-23 Andrew Cagney <cagney@redhat.com>
462 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
463 for 0 "int0" and 4 "int32" sized registers.
464 * gdbtypes.c (builtin_type_int0): Define.
465 (build_gdbtypes): Initialize builtin_type_int0.
466 * gdbtypes.h (builtin_type_int0): Declare.
468 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
470 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
471 as characters are unsigned.
473 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
476 * dwarfread.c (struct_type): Skip static fields without crashing.
478 2003-06-22 Andrew Cagney <cagney@redhat.com>
480 GDB 6.0 branch created.
482 * PROBLEMS: Update. Empty.
485 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
487 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
488 Suggested by Nick Hibma <n_hibma@webweaving.org>.
490 2003-06-22 Andrew Cagney <cagney@redhat.com>
492 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
493 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
496 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
498 * cli/cli-cmds.c (shell_escape): Silence warnings from old
501 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
503 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
504 argument of val_print.
505 * cp-valprint.c (cp_print_value): Don't add the offset parameter
506 to the address argument of baseclass_offset or target_read_memory.
507 Do add it to the argument of cp_print_value_fields.
509 2003-06-21 Andrew Cagney <cagney@redhat.com>
511 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
512 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
513 instead of 0..NUM_REGS.
514 (mips_register_reggroup_p): New function.
515 (mips_pseudo_register_write): New function.
516 (mips_pseudo_register_read): New function.
517 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
518 based on the register's type.
519 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
521 (mips_get_saved_register): Simplify. Assert that REGNO is a
523 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
524 (mips_register_type): Replace mips_register_virtual_type. Map
525 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
527 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
528 that the register is cooked / virtual.
529 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
530 Only get the extra info when needed.
531 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
532 (mips32_heuristic_proc_desc): Fetch the cooked register.
533 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
534 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
535 (mips_print_register): Use gdbarch_register_type, instead of
536 REGISTER_VIRTUAL_TYPE.
537 (print_gp_register_row): Use gdbarch_register_type, instead of
538 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
539 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
540 Print the pseudo / cooked registers.
541 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
542 Print the pseudo / cooked registers.
543 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
544 REG_NUM is pseudo / cooked.
545 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
546 (mips_n32n64_xfer_return_value): Ditto.
547 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
548 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
549 (mips_register_sim_regno): New function.
550 (mips_gdbarch_init): Set deprecated_register_byte,
551 register_group_p, pseudo_register_write, pseudo_register_read,
552 register_sim_regno, and num_pseudo_regs. Set register_type,
553 instead of register_virtual_type.
554 * Makefile.in (mips-tdep.o): Update dependencies.
555 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
556 REGISTER_VIRTUAL_TYPE.
557 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
558 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
559 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
560 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
561 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
563 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
565 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
566 * cli/cli-cmds.c: Include "gdb_vfork.h".
567 (shell_escape): Use vfork.
569 2003-06-21 Andrew Cagney <cagney@redhat.com>
571 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
572 32 bit floating-point register saves.
574 * frame.h (deprecated_unwind_get_saved_register): Delete.
575 * frame.c (deprecated_unwind_get_saved_register): Delete function.
576 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
577 and deprecated_get_next_frame_hack instead of
578 deprecated_unwind_get_saved_register.
580 * mips-tdep.c (mips_dump_tdep): Do not print
581 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
583 * frame.c (get_frame_register): New function.
584 (frame_unwind_register_signed): New function.
585 (get_frame_register_signed): New function.
586 (frame_unwind_register_unsigned): New function.
587 (get_frame_register_unsigned): New function.
588 * frame.h: Add comments on naming schema.
589 (get_frame_register, frame_unwind_register_signed): Declare.
590 (get_frame_register_signed, get_frame_register_signed): Declare.
591 (frame_unwind_register_unsigned): Declare.
592 (get_frame_register_unsigned): Declare.
594 2003-06-20 Theodore A. Roth <troth@openavr.org>
596 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
598 2003-06-20 Theodore A. Roth <troth@openavr.org>
600 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
601 (avr_read_sp): Ditto.
603 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
605 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
606 * config/arm/nm-linux.h: Likewise.
607 * config/arm/tm-linux.h: Likewise.
608 * config/ia64/nm-linux.h: Likewise.
609 * config/ia64/tm-ia64.h: Likewise.
610 * config/s390/tm-linux.h: Likewise.
611 * config/s390/tm-s390.h: Likewise.
612 * s390-nat.c: Likewise.
613 * s390-tdep.c: Likewise.
615 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
616 * config/ia64/linux.mt: Likewise.
617 * config/m68k/linux.mh: Likewise.
618 * config/mips/linux.mt: Likewise.
619 * config/powerpc/linux.mh: Likewise.
620 * config/sh/linux.mt: Likewise.
622 2003-06-19 Kris Warkentin <kewarken@qnx.com>
624 * solib.c (solib_open): Change tests for whether to search
625 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
628 2003-06-19 Theodore A. Roth <troth@openavr.org>
630 * avr-tdep.c (avr_frame_address): Delete function.
631 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
632 set_gdbarch_frame_args_address.
634 2003-06-19 Andrew Cagney <cagney@redhat.com>
636 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
637 (REGISTER_CONVERT_FROM_TYPE): Delete.
638 (mips_register_convert_to_type): Delete declaration.
639 (mips_register_convert_from_type): Delete declaration.
640 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
643 2003-06-19 Michael Snyder <msnyder@redhat.com>
645 * linux-nat.h: New file.
646 * linux-nat.c: Include linux-nat.h.
647 * lin-lwp.c: Include linux-nat.h.
648 Move struct lwp_info def to linux-nat.h.
649 * linux-proc.c: Include linux-nat.h.
650 (linux_make_note_section): Iterate over lwps instead of threads.
651 (linux_do_thread_registers): Use lwp instead of merged pid.
652 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
653 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
654 Add dependency on linux_nat_h.
656 2003-06-19 Theodore A. Roth <troth@openavr.org>
658 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
660 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
662 * varobj.c (get_type, get_target_type): Use check_typedef.
664 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
666 * breakpoint.c (insert_catchpoint): Call internal_error.
668 2003-06-19 Theodore A. Roth <troth@openavr.org>
670 * avr-tdep.c (avr_push_dummy_code): Delete function.
671 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
673 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
675 * arch-utils.c (default_prepare_to_proceed): Remove.
676 (generic_prepare_to_proceed): Remove.
677 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
678 (generic_prepare_to_proceed): Remove prototype.
679 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
680 * gdbarch.c: Regenerate.
681 * gdbarch.h: Regenerate.
682 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
683 * hppah-nat.c (hppa_switched_threads): Remove.
684 * infrun.c (prepare_to_proceed): New static function, copied from
685 generic_prepare_to_proceed. Remove select_it argument.
686 (proceed): Call prepare_to_proceed.
687 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
689 (ptrace_wait): Don't set the removed variables.
690 (hppa_switched_threads): Remove.
691 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
692 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
693 (lin_lwp_prepare_to_proceed): Remove prototype.
694 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
695 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
697 2003-06-18 Theodore A. Roth <troth@openavr.org>
699 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
701 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
702 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
703 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
704 (AVR_PROLOGUE_*): Enumerate prologue types.
705 (struct frame_extra_info): Remove.
706 (struct avr_unwind_cache): Define.
707 (avr_write_sp): Delete function.
708 (avr_read_fp): Ditto.
709 (avr_init_extra_frame_info): Ditto.
710 (avr_pop_frame): Ditto.
711 (avr_frame_saved_pc): Ditto.
712 (avr_saved_pc_after_call): Ditto.
713 (avr_push_return_address): Ditto.
714 (avr_frame_chain): Ditto.
715 (avr_store_struct_return): Ditto.
716 (avr_push_arguments): Ditto.
717 (avr_scan_prologue): Update comments. Changed to set up the info for
718 cache unwinding. Now returns end of prologue PC.
719 (avr_skip_prologue): Better handling of functions lacking a prologue
720 by using avr_scan_prologue.
721 (avr_scan_arg_moves): New function.
722 (avr_saved_regs_unwinder): Ditto.
723 (avr_frame_unwind_cache): Ditto.
724 (avr_unwind_pc): Ditto.
725 (avr_frame_this_id): Ditto.
726 (avr_frame_prev_register): Ditto.
727 (avr_frame_p): Ditto.
728 (avr_frame_base_address ): Ditto.
729 (avr_unwind_dummy_id): Ditto.
730 (avr_push_dummy_code): Ditto.
731 (push_stack_item): Ditto.
732 (pop_stack_item): Ditto.
733 (avr_push_dummy_call): Ditto.
734 (struct stack_item): Define.
735 (avr_frame_unwind): Declare structure.
736 (avr_frame_base): Ditto.
737 (avr_gdbarch_init): Remove calls to
738 set_gdbarch_deprecated_init_frame_pc,
739 set_gdbarch_deprecated_target_read_fp,
740 set_gdbarch_deprecated_dummy_write_sp,
741 set_gdbarch_deprecated_fp_regnum,
742 set_gdbarch_deprecated_push_arguments,
743 set_gdbarch_deprecated_push_return_address,
744 set_gdbarch_deprecated_pop_frame,
745 set_gdbarch_deprecated_store_struct_return,
746 set_gdbarch_deprecated_frame_init_saved_regs,
747 set_gdbarch_deprecated_init_extra_frame_info,
748 set_gdbarch_deprecated_frame_chain,
749 set_gdbarch_deprecated_frame_saved_pc,
750 set_gdbarch_deprecated_saved_pc_after_call.
751 Add calls to set_gdbarch_push_dummy_call,
752 set_gdbarch_push_dummy_code,
753 frame_unwind_append_predicate,
754 frame_base_set_default,
755 set_gdbarch_unwind_dummy_id,
756 set_gdbarch_unwind_pc.
759 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
761 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
762 registers for H8/300S.
763 (h8300_print_registers_info): Ditto.
764 (h8300_gdbarch_init): Accommodate register count for H8/300S.
766 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
768 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
769 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
770 (lin_lwp_wait): Likewise. Update comments.
771 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
772 (pull_pid_from_list, linux_record_stopped_pid): New.
774 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
776 * ada-lang.c (scan_discrim_bound): Name first argument.
777 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
778 declared by ALL_BLOCK_SYMBOLS.
780 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
782 * ada-tasks.c (find_function_in_inferior): Don't declare it.
783 ("regcache.h"): Include it.
784 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
786 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
788 * NEWS: Mention gdbserver detach change and "disconnect" command.
789 * infcmd.c (disconnect_command): New function.
790 (_initialize_infcmd): Add ``disconnect'' command.
791 * remote.c (remote_async_detach): Delete.
792 (remote_detach): Merge remote_async_detach.
793 (remote_disconnect): New.
794 (init_remote_ops): Set to_disconnect.
795 (init_remote_cisco_ops): Likewise.
796 (init_remote_async_ops): Likewise. Use remote_detach.
797 * target.c (cleanup_target): Default to_disconnect.
798 (update_current_target): Inherit to_disconnect.
799 (target_disconnect, debug_to_disconnect): New functions.
800 (setup_target_debug): Set to_disconnect.
801 * target.h (struct target_ops): Add to_disconnect.
802 (target_disconnect): Add prototype.
804 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
806 * breakpoint.c (insert_catchpoint): New function.
807 (insert_breakpoints): Use catch_exceptions to call
808 insert_catchpoint. Disable catchpoints if they fail to insert.
810 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
812 * symfile.c (reread_symbols): Clear sym_private.
814 2003-06-17 Andrew Cagney <cagney@redhat.com>
816 * trad-frame.h (struct frame_info): Add opaque declaration.
817 * remote-fileio.h (struct cmd_list_element): Add opaque
819 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
822 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
824 * remote.c (remote_prepare_to_store): Replace call to
825 deprecated_read_register_bytes with multiple regcache_raw_read
828 2003-06-17 Kris Warkentin <kewarken@qnx.com>
830 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
831 (nto_find_and_open_solib): Likewise.
832 (nto_init_solib_absolute_prefix): Likewise.
833 (_initialize_nto_tdep): Fix indentation.
835 2003-06-17 Kris Warkentin <kewarken@qnx.com>
837 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
839 2003-06-17 Kris Warkentin <kewarken@qnx.com>
841 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
843 2003-06-17 Jim Blandy <jimb@redhat.com>
845 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
847 2003-06-16 Theodore A. Roth <troth@openavr.org>
849 * avr-tdep.c (avr_extract_return_value): New function.
850 (avr_gdbarch_init): Set extract_return_value method.
852 2003-06-16 Andrew Cagney <cagney@redhat.com>
854 * frame.h (deprecated_get_next_frame_hack): Declare.
855 * frame.c (legacy_saved_regs_prev_register): Only require
856 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
857 there are always saved regs.
858 (deprecated_generic_get_saved_register): Do not require
859 DEPRECATED_FRAME_INIT_SAVED_REGS.
860 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
861 use frame ID unwind instead.
862 (deprecated_get_next_frame_hack): New function.
864 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
866 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
867 (h8300_push_dummy_call): ...this function. Some minor optimization.
868 (h8300_push_return_address): Remove.
869 (h8300_gdbarch_init): Remove calls to
870 set_gdbarch_deprecated_dummy_write_sp,
871 set_gdbarch_deprecated_push_arguments and
872 set_gdbarch_deprecated_push_return_address.
873 Add call to set_gdbarch_push_dummy_call.
875 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
877 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
878 (E_PSEUDO_EXR_REGNUM): Ditto.
879 (h8300_is_argument_spill): Check for instructions moving argument
880 registers into safe registers.
881 (h8300_skip_prologue): Check for stm instruction to push registers
882 used for register variables onto stack.
883 (gdb_print_insn_h8300): Remove.
884 (h8300_examine_prologue): Add a comment.
885 (h8300_register_name): Take pseudo registers into account.
886 (h8300s_register_name): Ditto.
887 (h8300sx_register_name): Ditto.
888 (h8300_print_register): Ditto.
889 (h8300_print_registers_info): Define "nice" printing order.
890 (h8300_saved_pc_after_call): Take pseudo registers into account.
891 (h8300_register_type): Ditto. Return type used for remote connection
892 when requesting real CCR or EXR register, return actual type when
893 requesting pseudo CCR or EXR.
894 (h8300_pseudo_register_read): New function.
895 (h8300_pseudo_register_write): Ditto.
896 (h8300_dbg_reg_to_regnum): Ditto.
897 (h8300s_dbg_reg_to_regnum): Ditto.
898 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
899 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
900 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
901 set_gdbarch_print_insn architecture dependent.
902 Call set_gdbarch_pseudo_register_read and
903 set_gdbarch_pseudo_register_write.
904 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
906 2003-06-16 Andrew Cagney <cagney@redhat.com>
908 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
909 * gdbarch.h, gdbarch.c: Re-generate.
910 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
911 * s390-tdep.c (s390_gdbarch_init): Update.
912 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
913 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
914 * mips-tdep.c (mips_gdbarch_init): Update.
915 * mcore-tdep.c (mcore_gdbarch_init): Update.
916 * cris-tdep.c (cris_gdbarch_init): Update.
917 * infcall.c (call_function_by_hand): Update.
918 * ia64-tdep.c (ia64_push_arguments): Update comment.
919 * frame.c (legacy_get_prev_frame): Do not assume
920 SAVE_DUMMY_FRAME_TOS_P.
921 * dummy-frame.c (find_dummy_frame): Update comment.
923 2003-06-16 Andrew Cagney <cagney@redhat.com>
925 * regcache.c (do_cooked_read): Do not use register_valid_p.
927 2003-06-15 Theodore A. Roth <troth@openavr.org>
929 * avr-tdep.c (avr_register_type): Remove a blank line.
930 (avr_scan_prologue): Correct some comments.
932 2003-06-15 Theodore A. Roth <troth@openavr.org>
934 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
936 Properly scan prologues generated by gcc with the -mcall-prologues
938 Add code to scan -mcall-prologues for mega devices.
940 2003-06-15 Theodore A. Roth <troth@openavr.org>
942 * avr-tdep.c (avr_register_byte): Delete function.
943 (avr_register_raw_size): Delete function.
944 (avr_register_virtual_size): Delete function.
945 (avr_register_virtual_type): Delete function.
946 (avr_register_type): New function.
947 (avr_address_to_pointer): Remove unused code.
948 (avr_read_fp): Need to read FP as two separate bytes due to change to
949 avr_register_type() usage.
950 (avr_gdbarch_init): Don't set deprecated_register_size.
951 Don't set deprecated_register_bytes.
952 Don't set deprecated_register_byte.
953 Don't set deprecated_register_raw_size.
954 Don't set deprecated_max_register_raw_size.
955 Don't set deprecated_register_virtual_size.
956 Don't set deprecated_max_register_virtual_size.
957 Don't set deprecated_register_virtual_type.
958 Set register_type method.
960 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
962 * Makefile.in (linux-nat.o): Add rule.
963 * linux-nat.c: New file.
964 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
965 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
966 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
967 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
968 * config/arm/linux.mh (NATDEPFILES): Likewise.
969 * config/i386/linux.mh (NATDEPFILES): Likewise.
970 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
971 * config/ia64/linux.mh (NATDEPFILES): Likewise.
972 * config/m68k/linux.mh (NATDEPFILES): Likewise.
973 * config/mips/linux.mh (NATDEPFILES): Likewise.
974 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
975 * config/s390/s390.mh (NATDEPFILES): Likewise.
976 * config/sparc/linux.mh (NATDEPFILES): Likewise.
978 2003-06-15 Mark Kettenis <kettenis@gnu.org>
980 * i387-tdep.c: Reorder includes, fix some whitespace issues and
981 replace out-of-date comment.
983 2003-06-15 Andrew Cagney <cagney@redhat.com>
985 * rdi-share/host.h (Fail): Change to a varargs function.
986 * remote-rdi.c (Fail): Update.
988 2003-06-15 Mark Kettenis <kettenis@gnu.org>
990 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
991 (i386_convert_register_p, i386_register_to_value,
992 i386_register_from_value): Handle types longer than 8 bytes.
994 2003-06-15 Mark Kettenis <kettenis@gnu.org>
996 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
997 Move floating-point code to new function in i387-tdep.c.
998 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
999 New functions containing code moved here from i386-tdep.c.
1000 * i387-tdep.h: Add opaque declaration for `struct type'.
1001 (i387_register_to_value, i387_value_to_register): New prototypes.
1002 * x86-64-tdep.c (x86_64_convert_register_p): New function.
1003 (x86_64_init_abi): Set convert_register_p, register_to_value and
1004 value_to_register here.
1006 2003-06-14 Andrew Cagney <cagney@redhat.com>
1008 * mips-tdep.c (mips_register_to_value): Make static.
1009 (mips_value_to_register): Make static.
1010 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
1011 * ia64-tdep.c (ia64_register_raw_size): Make static.
1012 (ia64_register_virtual_size): Make static.
1013 (ia64_register_byte): Make static.
1014 * i387-tdep.c: Include "i387-tdep.h".
1015 (print_387_control_word): Delete function.
1016 (print_387_status_word): Delete function.
1017 (print_387_status_bits): Delete function.
1018 (print_387_control_bits): Delete function.
1019 * Makefile.in (i387-tdep.o): Update dependencies.
1020 * rdi-share/host.h (Fail): Declare.
1021 * remote-rdi.c (Fail): Update to match declaration.
1023 2003-06-14 Andrew Cagney <cagney@redhat.com>
1025 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
1026 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
1027 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
1028 * config/djgpp/fnchange.lst: Delete "remote-array.c".
1029 * README: Delete reference to remote-array.
1030 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
1031 (remote-array.o): Delete target.
1032 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
1033 * remote-array.c: Delete file.
1035 2003-06-14 Andrew Cagney <cagney@redhat.com>
1036 Mark Kettenis <kettenis@gnu.org>
1038 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
1039 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
1040 parameter with "frame".
1041 * gdbarch.h, gdbarch.c: Re-generate.
1042 * frame.h (put_frame_register): Declare.
1043 * frame.c (put_frame_register): New function.
1044 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
1045 (legacy_register_to_value): Rewrite, use "frame" to get the
1047 (legacy_value_to_register): Rewrite, use "frame" to find the
1048 register's location before storing.
1049 * arch-utils.h (legacy_convert_register_p): Update.
1050 (legacy_register_to_value, legacy_value_to_register): Update.
1051 * findvar.c (value_from_register): Rewrite, eliminate use of
1052 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
1053 "frame" to REGISTER_TO_VALUE.
1054 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
1055 lval_reg_frame_relative + lval_register branch of the switch. Do
1056 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
1057 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1058 I386_EDI_REGNUM): New defines.
1059 (i386_next_regnum, i386_convert_register_p,
1060 i386_register_to_value, i386_value_to_register): New functions.
1061 (i386_register_convertible, i386_register_convert_to_virtual,
1062 i386_convert_to_raw): Remove functions.
1063 (i386_gdbarch_init): Set convert_register_p, register_to_value and
1064 value_to_register instead of register_convertible,
1065 register_convert_to_virtual and register_convert_to_raw.
1066 * mips-tdep.c (mips_convert_register_p): New function.
1067 (mips_value_to_register): Replace mips_register_convert_from_type.
1068 (mips_register_to_value): Replace mips_register_convert_to_type.
1069 (mips_gdbarch_init): Set conver_register_p, value_to_register and
1071 * alpha-tdep.c (alpha_convert_register_p): Update.
1072 (alpha_value_to_register): Update, store the register.
1073 (alpha_register_to_value): Update, fetch the register.
1075 2003-06-14 Theodore A. Roth <troth@openavr.org>
1077 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
1078 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
1079 Don't set deprecated_call_dummy_words.
1080 Remove commented out set_gdbarch_believe_pcc_promotion() call.
1081 Don't set remote_translate_xfer_address.
1082 (avr_io_reg_read_command): Remove commented out debug printf.
1085 2003-06-14 Theodore A. Roth <troth@openavr.org>
1087 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
1088 causes gdb to seg fault.
1090 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
1092 * sparc-nat.c (fetch_inferior_registers): Correct
1093 a reference to "registers".
1095 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
1097 * Makefile.in (exc_request_U_h): Define
1098 (exc_request_S_h): Likewise.
1099 (msg_reply_S_h): Likewise.
1100 (msg_U_h): Likewise.
1101 (notify_S_h): Likewise.
1102 (process_reply_S_h): Likewise.
1103 (gnu-nat.o): Depend on gdb_obstack_h
1104 * gnu-nat.c: Include "gdb_obstack.h".
1106 2003-06-13 Andrew Cagney <cagney@redhat.com>
1108 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
1109 * gdbarch.h, gdbarch.c: Re-generate.
1111 2003-06-13 Andrew Cagney <cagney@redhat.com>
1113 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
1114 when deprecated REGISTER macros can be deleted.
1115 * gdbarch.h, gdbarch.c: Re-generate.
1117 2003-06-13 Jim Blandy <jimb@redhat.com>
1119 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
1120 Linux entry point symbols for _dl_debug_state, too.
1122 2003-06-13 Andrew Cagney <cagney@redhat.com>
1124 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
1125 available, do not use the FP register, and always save the TOS.
1126 * dummy-frame.c (dummy_frame_this_id): Do not assert
1127 SAVE_DUMMY_FRAME_TOS.
1128 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
1129 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
1130 (i386_push_dummy_call): Add 8 to the returned SP.
1131 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
1132 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
1133 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
1134 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
1135 (x86_64_push_dummy_call): Return "sp + 16".
1136 (x86_64_init_abi): Do not set save_dummy_frame_tos.
1137 * alpha-tdep.c (alpha_gdbarch_init): Do not set
1138 save_dummy_frame_tos.
1140 2003-06-13 Jim Blandy <jimb@redhat.com>
1142 * frv-tdep.c (frv_use_struct_convention): Delete static
1143 declaration for function deleted in my change of 2003-06-12.
1145 2003-06-13 Theodore A. Roth <troth@openavr.org>
1147 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
1148 (avr_pointer_to_address): Shift code addrs left 1 bit.
1149 (avr_convert_from_func_ptr_addr): Delete function since operation is
1150 better handled by avr_address_to_pointer and avr_pointer_to_address.
1151 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
1153 2003-06-13 Mark Kettenis <kettenis@gnu.org>
1155 From Kelley Cook <kelleycook@wideopenwest.com>:
1156 * configure.host: Accept i[34567]86 variants.
1157 * configure.tgt: Likewise.
1158 * nlm/configure.in: Likewise.
1159 * nlm/configure: Regenerated.
1161 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
1163 * arm-tdep.c (solib-svr4.h): Dont' include it.
1164 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
1165 * arm-linux-tdep.c: ... here. Make static.
1166 (arm_linux_init_abi): Register it.
1167 (solib-svr4.h): Include it.
1168 * Makefile.in: Update dependencies.
1169 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
1170 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
1172 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
1174 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
1175 indicate registers used for return values.
1176 (struct frame_extra_info): Drop args_pointer and locals_pointer.
1177 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
1179 (h8300_init_extra_frame_info): Ditto.
1180 (h8300_frame_locals_address): Removed.
1181 (h8300_frame_args_address): Removed.
1182 (h8300_extract_return_value): Use new regcache structure. Only care
1184 (h8300h_extract_return_value): Same function for 32 bit CPUs.
1185 (h8300_store_return_value): Use new regcache structure. Only care
1187 (h8300h_store_return_value): Same function for 32 bit CPUs.
1188 (h8300_store_struct_return): Removed.
1189 (h8300_extract_struct_value_address): Use new regcache structure.
1190 (h8300h_extract_struct_value_address): Removed.
1191 (h8300_push_dummy_code): New function.
1192 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
1193 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
1194 set_gdbarch_store_return_value architecture dependent.
1195 Call set_gdbarch_push_dummy_code and
1196 set_gdbarch_extract_struct_value_address.
1197 Remove calls to set_gdbarch_frame_args_address,
1198 set_gdbarch_frame_locals_address,
1199 set_gdbarch_deprecated_store_struct_return,
1200 set_gdbarch_deprecated_extract_return_value,
1201 set_gdbarch_deprecated_extract_struct_value_address,
1202 set_gdbarch_deprecated_call_dummy_words and
1203 set_gdbarch_deprecated_sizeof_call_dummy_words.
1205 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
1207 * h8300-tdep.c (h8300_register_byte): Remove.
1208 (h8300h_register_byte): Remove.
1209 (h8300_register_virtual_type): Remove. Substitute by...
1210 (h8300_register_type): New function.
1211 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
1212 (h8300h_extract_struct_value_address): Ditto.
1213 (h8300_gdbarch_init): Drop calls to
1214 set_gdbarch_deprecated_register_byte and
1215 set_gdbarch_deprecated_register_virtual_type.
1216 Add call to set_gdbarch_register_type.
1218 2003-06-13 Andrew Cagney <cagney@redhat.com>
1220 * gdbarch.sh: Update comments on registers.
1221 (deprecated_register_byte): Rename register_byte.
1222 (deprecated_register_raw_size): Rename register_raw_size.
1223 (deprecated_register_virtual_size): Rename register_virtual_size.
1224 (deprecated_register_virtual_type): Rename register_virtual_type.
1225 * gdbarch.h, gdbarch.c: Re-generate.
1226 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1227 * vax-tdep.c (vax_gdbarch_init): Update.
1228 * v850-tdep.c (v850_gdbarch_init): Update.
1229 * sparc-tdep.c (sparc_gdbarch_init): Update.
1230 * sh-tdep.c (sh_gdbarch_init): Update.
1231 * s390-tdep.c (s390_gdbarch_init): Update.
1232 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1233 * ns32k-tdep.c: Update.
1234 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1235 * mips-tdep.c (mips_gdbarch_init): Update.
1236 * mcore-tdep.c (mcore_gdbarch_init): Update.
1237 * m68k-tdep.c (m68k_gdbarch_init): Update.
1238 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1239 * ia64-tdep.c (ia64_gdbarch_init): Update.
1240 * hppa-tdep.c (hppa_gdbarch_init): Update.
1241 * h8300-tdep.c (h8300_gdbarch_init): Update.
1242 * frv-tdep.c (frv_gdbarch_init): Update.
1243 * cris-tdep.c (cris_gdbarch_init): Update.
1244 * avr-tdep.c (avr_gdbarch_init): Update.
1245 * alpha-tdep.c (alpha_gdbarch_init): Update.
1246 * arm-tdep.c (arm_gdbarch_init): Update.
1248 2003-06-13 Andrew Cagney <cagney@redhat.com>
1250 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
1251 mips_o32_use_struct_convention with always_use_struct_convention.
1253 2003-06-12 David Carlton <carlton@kealia.com>
1255 * cp-namespace.c (cp_set_block_scope): Comment out
1256 processing_has_namespace_info branch.
1258 2003-06-12 Jim Blandy <jimb@redhat.com>
1260 Recognize and skip 64-bit PowerPC Linux linkage functions.
1261 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
1262 insn_pattern, insns_match_pattern, d_field, ds_field): New
1263 functions, macros, and types for working with PPC instructions.
1264 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
1265 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
1266 ppc64_skip_trampoline_code): New functions, variables, and macros
1267 for recognizing and skipping linkage functions.
1268 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
1269 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
1271 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
1272 register offsets for both the 32- and 64-bit interfaces.
1274 Actually finish the job started by my change of 2003-05-29.
1275 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
1276 other #definition of this.
1277 (ppc_linux_skip_trampoline_code): Remove declaration.
1278 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
1280 (ppc_linux_init_abi): Register it as the skip_trampoline_code
1283 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
1284 'long' on ppc64-*-linux*.
1286 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
1287 isn't #defined, assume the register doesn't exist: act as if
1288 tdep->ppc_mq_regnum were -1.
1290 * configure.host, configure.tgt: Add entries for
1291 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
1293 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
1296 * arch-utils.c (always_use_struct_convention): New function.
1297 * arch-utils.h (always_use_struct_convention): New prototype.
1298 * alpha-tdep.c (alpha_use_struct_convention): Delete.
1299 (alpha_gdbarch_init): Register always_use_struct_convention,
1300 instead of alpha_use_struct_convention.
1301 * cris-tdep.c (cris_use_struct_convention): Delete.
1302 (cris_gdbarch_init): Register always_use_struct_convention,
1303 instead of cris_use_struct_convention.
1304 * frv-tdep.c (frv_use_struct_convention): Delete.
1305 (frv_gdbarch_init): Register always_use_struct_convention,
1306 instead of frv_use_struct_convention.
1307 * h8300-tdep.c (h8300_use_struct_convention): Delete.
1308 (h8300_gdbarch_init): Register always_use_struct_convention,
1309 instead of h8300_use_struct_convention.
1310 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1311 (mips_o32_gdbarch_init): Register always_use_struct_convention,
1312 instead of mips_o32_use_struct_convention.
1314 2003-06-12 Andrew Cagney <cagney@redhat.com>
1316 * wince.c: Include "mips-tdep.h".
1317 * mips-tdep.h (mips_next_pc): Declare.
1318 * mcore-tdep.c: Make more local functions static.
1319 * Makefile.in (wince.o): Update dependencies.
1321 2003-06-12 David Carlton <carlton@kealia.com>
1323 * symtab.c (lookup_symbol_aux_minsyms): Replace
1324 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
1325 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
1326 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
1327 SYMBOL_NATURAL_NAME.
1329 2003-06-12 Andreas Schwab <schwab@suse.de>
1331 * Makefile.in (tuiDisassem.o): Update dependencies.
1333 2003-06-12 David Carlton <carlton@bactrian.org>
1335 * symtab.h: Delete declaration of make_symbol_overload_list.
1336 Add declaration of lookup_partial_symbol.
1337 * symtab.c (remove_params): Move to cp-support.c.
1338 (overload_list_add_symbol, make_symbol_overload_list)
1339 (sym_return_val_size, sym_return_val_index): Ditto.
1340 (lookup_partial_symbol): Make extern.
1341 * cp-support.h: Add declaration of make_symbol_overload_list.
1342 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
1343 symtab.h, and block.h.
1344 (remove_params): Move here from symtab.c.
1345 (overload_list_add_symbol, make_symbol_overload_list)
1346 (sym_return_val_size, sym_return_val_index): Ditto.
1347 * valops.c: Include cp-support.h.
1348 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
1349 frame_h, and block_h.
1350 (valops.o): Depend on cp_support_h.
1352 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
1354 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
1355 substitute by NUM_REGS throughout.
1356 (h8300_register_name): Only care for H8/300 and H8/300H registers.
1357 (h8300s_register_name): New function for H8S registers.
1358 (h8300sx_register_name): Ditto for H8SX registers.
1359 (h8300_print_register): Revise register printing, avoid depending
1361 (h8300_register_byte): Only care for H8/300 registers.
1362 (h8300h_register_byte): New function for any other architecture.
1363 (h8300_register_raw_size): Remove.
1364 (h8300_register_virtual_type): Revise to return actually useful
1366 (h8300_extract_struct_value_address): Only care for H8/300 registers.
1367 (h8300h_extract_struct_value_address): New function for any other
1369 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
1370 set_gdbarch_register_name, set_gdbarch_register_byte,
1371 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
1372 Remove calls to set_gdbarch_deprecated_register_size,
1373 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
1374 set_gdbarch_deprecated_max_register_raw_size,
1375 set_gdbarch_register_virtual_size and
1376 set_gdbarch_deprecated_max_register_virtual_size entirely.
1377 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
1378 set_gdbarch_long_double_bit.
1380 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
1382 * doublest.c (convert_doublest_to_floatformat): When dealing
1383 with the implied integer bit, only alter mant_bits if we are
1384 processing a full 32 bits of mantissa.
1386 2003-06-11 David Carlton <carlton@bactrian.org>
1388 * dictionary.h: New.
1389 * dictionary.c: New.
1390 * block.h: Add opaque declaration for struct dictionary.
1391 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
1393 (BLOCK_DICT): New macro.
1394 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
1395 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
1397 (ALL_BLOCK_SYMBOLS): Update definition.
1398 * Makefile.in (SFILES): Add dictionary.c.
1399 (dictionary_h): New.
1400 (COMMON_OBS): Add dictionary.o.
1401 (dictionary.o): New.
1402 (ada-lang.o): Depend on dictionary_h.
1403 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
1404 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
1405 (mi-cmd-stack.o): Ditto.
1406 (gdbtk-cmds.o): Update dependencies.
1407 (gdbtk-stack.o): Ditto.
1408 * ada-lang.c: Include dictionary.h.
1409 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
1410 (fill_in_ada_prototype, debug_print_block): Ditto.
1411 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
1412 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
1414 * mdebugread.c: Include dictionary.h.
1415 (struct parse_stack): Delete 'maxsyms' member.
1416 (parse_symbol): Update calls to new_block. Delete calls to
1417 shrink_block. Use dictionary methods.
1418 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
1419 Update calls to new_symtab. Don't maintain maxsyms data.
1420 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
1421 (add_symbol): Just call dict_add_symbol.
1422 (new_symtab): Delete 'maxsyms' argument.
1423 (new_symtab): Update calls to new_block.
1424 (new_block): Delete 'maxsyms' argument; add 'function' argument.
1425 (shrink_block): Delete function.
1426 (fixup_sigtramp): Update call to new_block. Add symbol via
1428 * jv-lang.c: Include dictionary.h.
1429 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
1430 appropriately. Set class_symtab->free_func. Make sure the
1431 blockvector is big enough to hold two blocks.
1432 (add_class_symtab_symbol): Use dictionary methods.
1433 (free_class_block): New function.
1434 (type_from_class): Replace explicit iteration by
1436 * symtab.h (struct symtab): Replace 'free_ptr' method by
1438 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
1440 * dwarfread.c (psymtab_to_symtab_1): Delete call to
1442 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
1443 Include dictionary.h.
1444 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
1445 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
1447 * objfiles.c: Include dictionary.h.
1448 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
1449 * buildsym.c: Include dictionary.h.
1450 (finish_block): Use dictionary methods.
1451 (end_symtab): Set free_func to NULL, not free_ptr.
1452 * tracepoint.c: Include dictionary.h.
1453 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
1454 (scope_info): Ditto.
1455 * stack.c: Include dictionary.h.
1456 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
1457 (print_block_frame_labels, print_frame_arg_vars)
1458 (print_frame_args): Ditto.
1459 * symmisc.c (free_symtab_block): Use dictionary methods.
1460 (dump_symtab): Ditto.
1461 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
1462 Include dictionary.h.
1463 * symfile.h: Delete declarations of sort_block_syms,
1465 * symfile.c (sort_block_syms): Delete.
1466 (sort_symtab_syms): Delete.
1467 * symtab.c: Include dictionary.h.
1468 (lookup_block_symbol): Use dictionary iterators.
1469 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
1470 (search_symbols, make_symbol_completion_list): Ditto.
1471 (make_symbol_overload_list): Ditto.
1472 * valops.c (value_of_local): Use dict_empty.
1473 Include dictionary.h.
1475 2003-06-11 J. Brobecker <brobecker@gnat.com>
1477 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
1479 2003-06-11 David Carlton <carlton@bactrian.org>
1481 * block.h (BLOCK_SHOULD_SORT): Delete.
1482 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
1484 * ada-lang.c (ada_add_block_symbols): Ditto.
1485 * symfile.c (sort_block_syms): Delete.
1486 (sort_symtab_syms): Ditto.
1487 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
1489 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
1490 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
1491 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
1492 * dwarfread.c (psymtab_to_symtab_1): Ditto.
1493 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
1494 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1495 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
1497 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
1499 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
1502 2003-06-11 Andrew Cagney <cagney@redhat.com>
1504 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
1505 REGISTER_CONVERTIBLE.
1506 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
1507 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
1508 * gdbarch.h, gdbarch.c: Re-generate.
1509 * arch-utils.h (deprecated_register_convertible_not): Rename
1510 generic_register_convertible_not.
1511 * arch-utils.c (deprecated_register_convertible_not): Rename
1512 generic_register_convertible.
1513 (legacy_convert_register_p, legacy_register_to_value): Update.
1514 * sh-tdep.c (sh64_push_arguments): Update.
1515 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
1516 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
1517 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
1518 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
1519 * arch-utils.c (legacy_value_to_register): Update.
1520 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1521 (rs6000_register_convert_to_raw): Make parameter "from" const.
1522 * mips-tdep.c (mips_gdbarch_init): Update.
1523 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
1524 * infcmd.c (default_print_registers_info): Update.
1525 * ia64-tdep.c (ia64_gdbarch_init): Update.
1526 (ia64_register_convert_to_raw): Make parameter "from" const.
1527 * i386-tdep.c (i386_gdbarch_init): Update.
1528 (i386_register_convert_to_raw): Update.
1530 2003-06-11 Andrew Cagney <cagney@redhat.com>
1532 * remote-fileio.c: Include "remote-fileio.h".
1533 * Makefile.in (remote-fileio.o): Update dependencies.
1534 (remote_fileio_h): Fix typo.
1536 2003-06-11 Andrew Cagney <cagney@redhat.com>
1538 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
1539 (xstormy16_save_dummy_frame_tos): Make static.
1540 (_initialize_xstormy16_tdep): Add declaration.
1541 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
1542 * v850-tdep.c: Make local functions static.
1543 (_initialize_v850_tdep): Add declaration.
1544 * sparc-tdep.c: Make local functions static.
1545 (_initialize_sparc_tdep): Add declaration.
1546 * sh-tdep.c: Make local functions static.
1547 (_initialize_sh_tdep): Add declaration.
1548 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
1549 * s390-tdep.c: Make local functions static.
1550 (_initialize_s390_tdep): Add declaration.
1551 * dbxread.c (find_stab_function_addr): Make static.
1552 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
1553 * ocd.c (_initialize_remote_ocd): Add declaration.
1554 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
1555 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
1556 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
1557 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
1558 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
1559 * remote-array.c (_initialize_array): Add declaration.
1560 (_initialize_remote_monitors): Add declaration.
1561 * remote-mips.c: Make local functions static.
1562 (_initialize_remote_mips): Add declaration.
1563 * mcore-tdep.c: Make all local functions static.
1564 (_initialize_mcore_tdep): Add declaration.
1565 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
1566 * abug-rom.c (_initialize_abug_rom): Add declaration.
1567 * rom68k-rom.c (_initialize_rom68k): Add declaration.
1568 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
1569 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
1570 * remote-est.c (_initialize_est): Add declaration.
1571 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
1572 (m68hc11_call_dummy_address): Make static.
1573 * ia64-tdep.c: Make local functions static.
1574 (_initialize_ia64_tdep): Add declaration.
1575 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
1576 * monitor.c (monitor_wait_filter): Make static.
1577 (_initialize_remote_monitors): Add declaration.
1578 * remote-hms.c (_initialize_remote_hms): Add declaration.
1579 * remote-e7000.c (fetch_regs_from_dump): Make static.
1580 (expect_n): Make static.
1581 (_initialize_remote_e7000): Add declaration.
1582 * ser-e7kpc.c: Always include "defs.h".
1583 (_initialize_ser_e7000pc): Add declaration.
1584 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
1585 * cris-tdep.c: Make all but one function static.
1586 (_initialize_cris_tdep): Add declaration.
1587 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
1588 * solib.c (update_solib_list): Make static.
1589 (_initialize_solib): Add declaration.
1590 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
1591 (_initialize_avr_tdep): Add declaration.
1592 * remote-rdi.c (voiddummy): Make static.
1593 (_initialize_remote_rdi): Add declaration.
1594 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
1595 * remote-rdp.c (send_rdp): Make static.
1596 (_initialize_remote_rdp): Add declaration.
1597 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
1599 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
1601 * remote-fileio.c: Make ari happy.
1603 2003-06-10 J. Brobecker <brobecker@gnat.com>
1605 * rs6000-nat.c (child_xfer_memory): Compute the right address when
1606 fetching the trailing bytes of the buffer we are about to write.
1608 2003-06-10 Andrew Cagney <cagney@redhat.com>
1610 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
1611 * Makefile.in (remote-fileio.o): Update dependencies.
1612 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
1613 include <setjmp.h>, or <sys/types.h> conditional on USG.
1614 (remote_fio_jmp_buf): Delete global variable.
1616 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
1617 Martin M. Hunt <hunt@redhat.com>
1619 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
1620 (SFILES): Add remote-fileio.c.
1621 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
1622 dependencies for building remote.o.
1623 * remote-fileio.c: New file implementing the remote File-I/O protocol.
1624 * remote-fileio.h: New header file defining remote File-I/O interface.
1625 * remote.c (remote_write_bytes, remote_read_bytes): Remove
1626 static storage class.
1627 (remote_wait, remote_async_wait): Call remote_fileio_request() on
1629 (_initialize_remote): Call initialize_remote_fileio().
1630 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
1631 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
1632 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
1633 (captured_main): Initialize new ui_files.
1634 * ui-file.c: Add read and fgets input functions.
1635 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
1636 (null_file_read): New function.
1637 (ui_file_read): New function.
1638 (set_ui_file_read): New function.
1639 (stdio_file_read): New function.
1640 * ui-file.h: New type ui_file_read_ftype.
1641 (set_ui_file_read): Declare.
1642 (ui_file_read): Declare.
1644 2003-06-09 Andrew Cagney <cagney@redhat.com>
1646 * frame.h (deprecated_unwind_get_saved_register): Rename
1647 generic_unwind_get_saved_register, update comments.
1648 * mips-tdep.c (mips_get_saved_register): Update.
1649 * frame.c (deprecated_unwind_get_saved_register): Update.
1651 2003-06-09 Andrew Cagney <cagney@redhat.com>
1653 * vax-tdep.c (vax_frame_locals_address): Delete function.
1654 (vax_gdbarch_init): Do not set frame_locals_address.
1655 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
1656 (m68hc11_gdbarch_init): Do not set frame_locals_address.
1657 * s390-tdep.c (s390_frame_args_address): Delete function.
1658 (s390_gdbarch_init): Do not set frame_args_address or
1659 frame_locals_address.
1660 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
1661 (ns32k_gdbarch_init): Do not set frame_locals_address.
1662 * hppa-tdep.c (hppa_frame_args_address): Delete function.
1663 (hppa_frame_locals_address): Delete function.
1664 (hppa_gdbarch_init): Do not set frame_args_address, or
1665 frame_locals_address.
1666 * arm-tdep.c (arm_frame_args_address): Delete.
1667 (arm_frame_locals_address): Delete.
1668 (arm_gdbarch_init): Do not set frame_args_address, or
1669 frame_locals_address.
1671 2003-06-09 Andrew Cagney <cagney@redhat.com>
1673 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
1674 * gdbarch.h, gdbarch.c: Re-generate.
1675 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
1676 * arch-utils.c (frame_num_args_unknown): Delete function.
1677 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
1678 (frame_info): Use FRAME_NUM_ARGS_P.
1679 * arm-tdep.c (arm_frame_num_args): Delete function.
1680 (arm_gdbarch_init): Do not set frame_num_args.
1681 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
1682 * hppa-tdep.c (hppa_frame_num_args): Delete function.
1683 (hppa_gdbarch_init): Do not set frame_num_args.
1684 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
1685 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1686 frame_num_args to default frame_num_args_unknown.
1687 * v850-tdep.c (v850_gdbarch_init): Ditto.
1688 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1689 * sh-tdep.c (sh_gdbarch_init): Ditto.
1690 * s390-tdep.c (s390_gdbarch_init): Ditto.
1691 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1692 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1693 * mips-tdep.c (mips_gdbarch_init): Ditto.
1694 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1695 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1696 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1697 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1698 * i386-tdep.c (i386_gdbarch_init): Ditto.
1699 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1700 * frv-tdep.c (frv_gdbarch_init): Ditto.
1701 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1702 * cris-tdep.c (cris_gdbarch_init): Ditto.
1703 * avr-tdep.c (avr_gdbarch_init): Ditto.
1704 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1706 2003-06-09 Andrew Cagney <cagney@redhat.com>
1708 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
1709 (print_frame_args): Moved to "stack.c".
1710 * stack.c: Include "gdb_assert.h".
1711 (print_frame_nameless_args): Moved from "printcmd.c", made static.
1712 (print_frame_args): Moved from "printcmd.c".
1713 * frame.h (print_frame_args): Delete declaration.
1714 * Makefile.in (stack.o): Update dependencies.
1716 2003-06-08 Andrew Cagney <cagney@redhat.com>
1718 * frame.c (get_prev_frame): Remove reference to
1719 frame_args_address_correct in comments.
1720 * frame-base.c (default_frame_args_address): Delete code
1721 conditional on FRAME_ARGS_ADDRESS_CORRECT.
1722 * vax-tdep.c (vax_frame_args_address_correct): Delete.
1723 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
1724 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
1725 (vax_frame_args_address_correct): Delete declaration.
1727 2003-06-08 Andrew Cagney <cagney@redhat.com>
1729 * gdbarch.sh (UNWIND_SP): Add.
1730 * gdbarch.h, gdbarch.c: Re-generate.
1731 * frame.c (frame_sp_unwind): New function.
1732 (get_frame_sp): New function.
1733 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
1734 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
1735 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
1737 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
1738 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
1740 2003-06-08 Andrew Cagney <cagney@redhat.com>
1742 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
1745 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
1746 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
1747 * config/m68k/tm-sun3.h: Update.
1748 * config/m68k/tm-m68klynx.h: Update.
1749 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
1751 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
1752 trad_frame". Update comments.
1753 * d10v-tdep.c (struct d10v_unwind_cache): Update.
1754 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
1755 (trad_frame_register_value, trad_frame_prev_register): Update.
1757 2003-06-08 Andrew Cagney <cagney@redhat.com>
1759 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
1760 from GCC's acinclude.m4.
1761 * configure.in: Check for getopt's delcaration.
1762 * aclocal.m4, config.in, configure: Re-generate.
1763 * main.c (error_init): Delete declaration.
1764 * defs.h (error_init): Declare.
1765 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
1766 (rs6000_convert_from_func_ptr_addr): Make static.
1767 (_initialize_rs6000_tdep): Add declaration.
1768 * cli/cli-cmds.c (dont_repeat): Delete declaration.
1769 (show_commands, set_verbose, show_history): Delete declaration.
1770 * top.h (set_verbose): Add declaration.
1771 (show_history, set_history, show_commands): Add declaration.
1772 (do_restore_instream_cleanup): Add declaration.
1773 * objc-lang.c (specialcmp): Make static.
1774 (print_object_command): Make static.
1775 (find_objc_msgsend): Make static.
1776 (find_objc_msgcall_submethod_helper): Make static.
1777 (find_objc_msgcall_submethod): Make static.
1778 (_initialize_objc_language): Add declaration.
1779 (find_implementation_from_class): Make static.
1780 (find_implementation): Make static.
1781 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
1782 * objc-lang.h (lookup_struct_typedef): Add declaration.
1783 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
1784 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
1785 (do_restore_user_call_depth): Make static.
1786 (do_restore_instream_cleanup): Delete declaration.
1787 (dont_repeat): Delete declaration.
1788 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
1789 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
1790 * reggroups.c (_initialize_reggroup): Add declaration.
1791 * cp-support.c (_initialize_cp_support): Add declaration.
1792 * cp-abi.c (_initialize_cp_abi): Add declaration.
1793 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
1794 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
1795 (_initialize_gnu_v3_abi): Add declaration.
1796 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
1797 (_initialize_gnu_v2_abi): Add declaration.
1798 * frame-base.c (_initialize_frame_base): Add declaration.
1799 * doublest.c (floatformat_from_length): Make static.
1800 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
1801 * frame.c (create_sentinel_frame): Make static.
1802 (_initialize_frame): Add declaration.
1803 * top.c (do_catch_errors): Make static.
1804 (gdb_rl_operate_and_get_next_completion): Make static.
1805 * typeprint.c: Include "typeprint.h".
1806 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
1807 (sentinel_frame_this_id): Make static.
1808 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
1809 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
1810 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
1811 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
1812 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
1813 * maint.c (maintenance_print_architecture): Make static.
1814 * signals/signals.c (_initialize_signals): Add declaration.
1815 * std-regs.c (_initialize_frame_reg): Add declaration.
1816 * jv-exp.y (push_variable): ISO C definition.
1817 (push_qualified_expression_name): Ditto.
1818 * memattr.c (_initialize_mem): Add declaration.
1819 * remote.c (remote_check_watch_resources): Make static.
1820 (remote_stopped_by_watchpoint): Make static.
1821 (remote_stopped_data_address): Make static.
1822 * d10v-tdep.c (nr_dmap_regs): Make static.
1823 (a0_regnum): Make static.
1824 (d10v_frame_unwind_cache): Make static.
1825 (d10v_frame_p): Make static.
1826 * osabi.c (show_osabi): Make static.
1827 (_initialize_gdb_osabi): Add extern declaration.
1828 * gdbtypes.c (make_qualified_type): Make static.
1829 (safe_parse_type): Make static.
1830 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
1831 * macrotab.c (macro_bcache_free): Make static.
1832 * interps.c (interp_set_quiet): Make static.
1833 (interpreter_exec_cmd): Make static.
1834 * stack.h (select_frame_command): New file.
1835 * stack.c: Include "stack.h".
1836 (select_frame_command_wrapper): Delete function.
1837 (select_frame_command): Make global.
1838 * infcall.c: Include "infcall.h".
1839 * linespec.c: Include "linespec.h".
1840 * symfile.c (sections_overlap): Make static.
1841 * cp-support.h (cp_initialize_namespace): ISO C declaration.
1842 * charset.c (_initialize_charset): Add missing prototype.
1843 * regcache.c (init_legacy_regcache_descr): Make static.
1844 (do_regcache_xfree): Make static.
1845 (regcache_xfer_part): Make static.
1846 (_initialize_regcache): Add missing prototype.
1847 * breakpoint.c (parse_breakpoint_sals): Make static.
1848 (breakpoint_sals_to_pc): Make static.
1849 * interps.h (clear_interpreter_hooks): ISO C declaration.
1850 * Makefile.in (stack_h): Define.
1851 (stack.o, typeprint.o, mi-main.o): Update dependencies.
1852 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
1854 2003-06-08 Andrew Cagney <cagney@redhat.com>
1856 * Makefile.in (d10v-tdep.o): Update dependencies.
1857 (SFILES): Add trad-frame.c.
1858 (trad_frame_h): Define.
1859 (COMMON_OBS): Add trad-frame.o.
1860 (trad-frame.o): Specify dependencies.
1861 * d10v-tdep.c: Include "trad-frame.h".
1862 (saved_regs_unwinder): Delete function.
1863 (d10v_frame_prev_register): Use trad_frame_prev_register.
1864 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
1865 trad_frame", delete "regs" and "prev_sp".
1866 (prologue_find_regs): Use trad-frame.
1867 * trad-frame.h, trad-frame.c: New files.
1869 2003-06-08 Mark Kettenis <kettenis@gnu.org>
1871 * dwarf2cfi.c, dwarf2cfi.h: Remove.
1873 2003-06-07 Adam Fedor <fedor@gnu.org>
1875 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
1876 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
1877 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
1878 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
1879 resolve_msgsend_super, resolve_msgsend_super_stret):
1882 2003-06-07 Andrew Cagney <cagney@redhat.com>
1884 * symfile.h: Re-indent, clean up comments.
1886 2003-06-07 Andrew Cagney <cagney@redhat.com>
1888 * inferior.h (deprecated_write_sp): Replace
1889 generic_target_write_sp.
1890 * regcache.c (deprecated_write_sp): Replace
1891 generic_target_write_sp.
1892 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1893 * vax-tdep.c (vax_gdbarch_init): Update.
1894 * v850-tdep.c (v850_gdbarch_init): Update.
1895 * sparc-tdep.c (sparc_gdbarch_init): Update.
1896 * sh-tdep.c (sh_gdbarch_init): Update.
1897 * s390-tdep.c (s390_gdbarch_init): Update.
1898 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1899 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1900 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1901 * mcore-tdep.c (mcore_gdbarch_init): Update.
1902 * m68k-tdep.c (m68k_gdbarch_init): Update.
1903 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1904 * ia64-tdep.c (ia64_gdbarch_init): Update.
1905 * h8300-tdep.c (h8300_gdbarch_init): Update.
1906 * frv-tdep.c (frv_gdbarch_init): Update.
1907 * cris-tdep.c (cris_gdbarch_init): Update.
1908 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
1910 2003-06-07 Andrew Cagney <cagney@redhat.com>
1912 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
1913 Assert that PC_REGNUM is valid.
1914 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
1916 2003-06-07 Andrew Cagney <cagney@redhat.com>
1918 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
1919 * gdbarch.h, gdbarch.c: Regenerate.
1920 * mn10300-tdep.c: Include "gdb_assert.h".
1921 (mn10300_read_fp): New function.
1922 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
1923 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
1924 * ia64-tdep.c: Include "gdb_assert.h".
1925 (ia64_read_fp): New function.
1926 (ia64_gdbarch_init): Set deprecated_target_read_fp to
1927 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
1928 * regcache.c (generic_target_read_sp): Delete function.
1929 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
1930 * inferior.h (generic_target_read_sp): Delete declaration.
1931 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
1932 generic_target_read_sp.
1933 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1934 * sparc-tdep.c (sparc_gdbarch_init): Ditto
1935 * sh-tdep.c (sh_gdbarch_init): Ditto.
1936 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1937 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
1939 2003-06-07 Andrew Cagney <cagney@redhat.com>
1941 * gdbarch.sh: Comment each field of startup_gdbarch.
1942 * gdbarch.h, gdbarch.c: Re-generate.
1944 2003-06-07 Andrew Cagney <cagney@redhat.com>
1946 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
1947 * gdbarch.h, gdbarch.c: Re-generate.
1948 * regcache.c: Update comments on read_pc et.al.
1949 (generic_target_read_pc): Delete function.
1950 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
1951 * inferior.h (generic_target_read_pc): Delete declaration.
1952 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
1953 generic_target_read_pc.
1954 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1955 * sh-tdep.c (sh_gdbarch_init): Ditto.
1956 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1957 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1959 2003-06-07 Andrew Cagney <cagney@redhat.com>
1961 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
1962 "index" with "special_local_sect". Use strcmp instead of STREQ.
1963 Append period to coments.
1965 2003-06-06 Mark Mitchell <mark@codesourcery.com>
1967 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
1968 (elfstab_offset_sections): Likewise.
1969 * gdb-stabs.h (stab_section_info): Likewise.
1970 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
1971 * objfiles.c (objfile_relocate): Likewise.
1972 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
1973 * remote.c (get_offsets): Likewise.
1974 (remote_cisco_objfile_relocate): Likewise.
1975 * somread.c (som_symfile_offsets): Likewise.
1976 * symfile.c (alloc_section_addr_info): New function.
1977 (build_section_addr_info_from_section_tab): Use it.
1978 (free_section_addr_info): Adjust.
1979 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
1980 (syms_from_objfile): Allocate local_addr dynamically.
1981 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
1983 (add_symbol_file_command): Allocate sect_opts dynamically.
1984 (reread_symbols): Avoid use of SECT_OFF_MAX.
1985 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
1986 (alloc_section_addr_info): Declare it.
1987 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
1988 * win32-nat.c (solib_symbols_add): Allocate section_addrs
1990 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
1992 2003-06-06 Andrew Cagney <cagney@redhat.com>
1994 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
1995 (d10v_frame_unwind_cache): Do not set "return_pc".
1997 2003-06-06 Michael Snyder <msnyder@redhat.com>
1999 * h8300-tdep.c: Make tidy (long lines).
2001 2003-06-06 Michal Ludvig <mludvig@suse.cz>
2003 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
2004 to regcache_collect().
2006 2003-06-05 J. Brobecker <brobecker@gnat.com>
2008 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
2009 pc_in_sigtramp multiarch method.
2010 (hppa_hpux_som_init_abi): Use it.
2011 (hppa_hpux_elf_init_abi): Likewise.
2012 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
2013 macro has been multiarched.
2014 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
2015 macro here, as hppa64 isn't multiarched yet.
2017 2003-06-05 Andrew Cagney <cagney@redhat.com>
2019 * Makefile.in (value_h): Add $(frame_h).
2020 * value.h: Include "frame.h".
2021 (struct value): Replace "frame_addr" with "frame_id".
2022 (VALUE_FRAME_ID): Replace VALUE_FRAME.
2023 * values.c (allocate_value): Use VALUE_FRAME_ID.
2024 (value_copy): Use VALUE_FRAME_ID.
2025 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
2026 * valops.c (value_assign): Update. Use frame_find_by_id.
2028 2003-06-05 Michal Ludvig <mludvig@suse.cz>
2030 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
2033 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
2035 * thread-db.c (check_event): For create/death event breakpoints,
2036 loop through all messages to ensure that we read the message
2037 corresponding to the breakpoint we are at.
2039 2003-06-04 Michael Snyder <msnyder@redhat.com>
2041 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
2043 2003-06-04 Mark Kettenis <kettenis@gnu.org>
2045 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
2046 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
2047 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
2048 when handling .eh_frame sections.
2050 2003-06-04 J. Brobecker <brobecker@gnat.com>
2052 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
2053 prepare_to_proceed procedure instead of the hppa-specific one.
2054 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
2056 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
2058 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
2059 * config.in: Regenerated.
2060 * configure.in: Add test for syscall function and check for
2061 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
2062 * configure: Regenerated.
2063 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
2065 (kill_lwp): New function that uses tkill syscall or
2066 uses kill, depending on whether threading model is nptl or not.
2067 All callers of kill() changed to use kill_lwp().
2068 (lin_lwp_wait): Make special check when WIFEXITED occurs to
2069 see if all threads have already exited in the nptl model.
2070 (stop_and_resume_callback): New callback function used by the
2071 lin_lwp_wait thread exit handling code.
2072 (stop_wait_callback): Check for threads already having exited and
2073 delete such threads fromt the lwp list when discovered.
2074 (stop_callback): Don't assert retcode of kill call.
2076 Roland McGrath <roland@redhat.com>
2077 * i386-linux-nat.c (ps_get_thread_area): New function needed by
2080 2003-06-03 Richard Henderson <rth@redhat.com>
2082 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
2083 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
2084 (alpha_sigtramp_frame_prev_register): Likewise.
2085 (alpha_heuristic_frame_prev_register): Likewise.
2086 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
2088 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
2089 alpha-specific register id names.
2090 (alpha_mdebug_frame_unwind_cache): Likewise.
2091 (alpha_mdebug_frame_prev_register): Likewise.
2093 2003-06-03 Richard Henderson <rth@redhat.com>
2095 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
2096 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
2097 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
2098 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
2100 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
2101 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2102 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
2104 * alpha-linux-tdep.c: Remove unnecessary includes.
2105 * Makefile.in (alpha-linux-tdep.o): Update.
2107 2003-06-03 Richard Henderson <rth@redhat.com>
2109 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
2110 (alphabsd_fill_fpreg): Likewise.
2112 2003-06-03 J. Brobecker <brobecker@gnat.com>
2114 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
2115 references to struct frame_info fields by calls to the equivalent
2116 accessors. Necessary now that frame_info is opaque.
2118 2003-06-03 J. Brobecker <brobecker@gnat.com>
2120 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
2121 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
2122 structure, field no longer exists.
2124 2003-06-03 J. Brobecker <brobecker@gnat.com>
2126 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2127 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
2129 2003-06-03 J. Brobecker <brobecker@gnat.com>
2131 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
2132 references to struct frame_info fields by calls to the equivalent
2133 accessors. Necessary now that frame_info is opaque.
2135 2003-06-03 J. Brobecker <brobecker@gnat.com>
2137 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
2138 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
2139 structure, field no longer exists.
2141 2003-06-03 Theodore A. Roth <troth@openavr.org>
2143 * remote.c (init_remote_state): Compute sizeof_g_packet by
2144 accumulation of the size of all registers instead of blindly using
2145 DEPRECATED_REGISTER_BYTES.
2147 2003-06-03 Michael Snyder <msnyder@redhat.com>
2149 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
2150 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
2153 2003-06-03 J. Brobecker <brobecker@gnat.com>
2155 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
2156 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
2158 2003-06-03 Andrew Cagney <cagney@redhat.com>
2160 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
2161 (sparc_convert_to_raw): Delete function.
2162 (sparc_gdbarch_init): Do not set register_convert_to_raw or
2163 register_convert_to_virtual.
2165 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
2167 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
2168 layer if not dealing with a statically-linked threaded program.
2170 2003-06-03 Kris Warkentin <kewarken@qnx.com>
2172 * solib.c (solib_open): Update comment to reflect actual search order.
2174 2003-06-03 Andrew Cagney <cagney@redhat.com>
2176 * frame.c (get_frame_memory_signed): New function.
2177 (get_frame_memory, get_frame_memory_unsigned): New function.
2178 (get_frame_arch): New function.
2179 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
2180 (get_frame_memory, get_frame_unsigned_memory): Declare.
2181 * d10v-tdep.c (d10v_frame_unwind_cache): Use
2182 get_frame_memory_unsigned and get_frame_arch.
2183 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
2185 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
2187 * MAINTAINERS (write after approval): Add myself.
2189 2003-06-03 Jim Blandy <jimb@redhat.com>
2191 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
2192 elements of gregset_t are 64 bits each, but access registers
2193 are still 32 bits, so they're packed two per gregset_t
2194 element. Unpack/pack them properly.
2196 2003-06-02 David Carlton <carlton@bactrian.org>
2198 * linespec.c (find_methods): Break out code into
2199 add_matching_methods and add_constructors.
2200 (add_matching_methods): New.
2201 (add_constructors): Ditto.
2203 2003-06-02 Andrew Cagney <cagney@redhat.com>
2205 * sparc-tdep.c (sparc_print_registers): Delete call to
2206 REGISTER_CONVERTIBLE.
2207 (sparc_gdbarch_init): Do not set register_convertible.
2208 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2209 * frv-tdep.c (frv_gdbarch_init): Ditto.
2210 * cris-tdep.c (cris_gdbarch_init): Ditto.
2212 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
2214 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
2215 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
2216 (syms_from_objfile): Ditto.
2218 2003-06-03 Andreas Schwab <schwab@suse.de>
2220 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
2221 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
2223 2003-06-02 Richard Henderson <rth@redhat.com>
2225 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
2226 a member of all_reggroup.
2228 2003-06-02 Richard Henderson <rth@redhat.com>
2230 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
2231 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
2232 (alpha_lds, alpha_sts): New.
2233 (alpha_convert_register_p): Change from _register_convertible.
2234 (alpha_register_to_value): Change from _convert_to_virtual;
2235 restructure and fail for type sizes other than 4 or 8.
2236 (alpha_value_to_register): Similarly.
2237 (alpha_extract_return_value): Use alpha_sts.
2238 (alpha_store_return_value): Use alpha_lds.
2239 (alpha_gdbarch_init): Update hooks.
2241 2003-06-02 Richard Henderson <rth@redhat.com>
2243 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
2245 (alpha_sigtramp_register_address): Likewise.
2247 2003-06-02 Richard Henderson <rth@redhat.com>
2249 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
2250 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
2251 * alpha-tdep.h: Declare them.
2253 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
2254 Remove zerobuf. Don't error on UNIQUE.
2255 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
2256 (ALPHA_REGSET_UNIQUE): Provide default.
2257 (supply_gregset): Use alpha_supply_int_regs.
2258 (fill_gregset): Use alpha_fill_int_regs.
2259 (supply_fpregset): Use alpha_supply_fp_regs.
2260 (fill_fpregset): Use alpha_fill_fp_regs.
2261 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
2262 (alphabsd_supply_reg): Use alpha_supply_int_regs.
2263 (alphabsd_fill_reg): Use alpha_fill_int_regs.
2264 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
2265 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
2266 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
2268 2003-06-02 Richard Henderson <rth@redhat.com>
2270 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
2272 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
2273 (alpha_store_return_value): Likewise.
2275 2003-06-02 David Carlton <carlton@math.stanford.edu>
2277 * block.c (contained_in): Add 'const' to arguments.
2278 (block_function): Ditto.
2279 * block.h: Update declarations for block_function and
2282 2003-06-02 David Carlton <carlton@math.stanford.edu>
2284 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
2285 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
2286 * p-valprint.c (pascal_val_print): Ditto.
2287 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
2289 2003-06-02 Richard Henderson <rth@redhat.com>
2291 * alpha-tdep.c (alpha_push_dummy_call): Use
2292 builtin_type_ieee_double_little instead of builtin_type_double.
2294 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
2295 sign-extension of 32-bit values.
2296 (alpha_store_return_value): Similarly.
2298 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
2299 (alpha_extract_return_value): Likewise.
2300 (alpha_store_return_value): Likewise.
2302 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
2303 (alpha_store_return_value): Error on IEEE Quad floats.
2305 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
2306 (alpha_extract_struct_value_address): Likewise.
2307 (alpha_store_return_value): Likewise.
2308 (alpha_store_struct_return): Remove.
2309 (alpha_gdbarch_init): Update hook registration to match.
2311 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
2312 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
2313 macros where appropriate.
2314 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
2315 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
2317 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
2318 for SP, GP; void_func_ptr for PC; non-language-specific types
2320 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
2322 2003-06-02 Richard Henderson <rth@redhat.com>
2324 * top.h (lim_at_start): Declare.
2325 * main.c (captured_main): Set it.
2326 * top.c (lim_at_start): Define.
2327 (command_loop): Use it instead of &environ.
2328 * event-top.c (command_handler): Likewise.
2330 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
2332 * mipsnbsd-tdep.c: Update copyright years.
2333 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
2335 2003-06-01 Richard Henderson <rth@redhat.com>
2337 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
2338 (alpha-linux-tdep.o): Update dependencies.
2339 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
2340 * alpha-mdebug-tdep.c: Remove unneeded includes.
2342 2003-06-01 Richard Henderson <rth@redhat.com>
2344 * alpha-tdep.c (alpha_register_reggroup_p): New.
2345 (alpha_gdbarch_init): Register it.
2347 2003-06-02 Andrew Cagney <cagney@redhat.com>
2349 * dwarfread.c: Eliminate "register"
2350 (decode_die_type): Eliminate assignment within "if".
2351 (struct_type, decode_array_element_type): Ditto.
2352 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
2353 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
2354 (decode_modified_type, completedieinfo): Ditto.
2355 * block.c: Eliminate "register".
2356 (blockvector_for_pc_sect): Eliminate assignment within "if".
2357 * cp-support.h (struct symbol): Opaque declaration.
2358 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
2360 2003-06-01 Richard Henderson <rth@redhat.com>
2362 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
2363 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
2365 2003-06-01 Adam Fedor <fedor@gnu.org>
2367 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
2368 * gdbarch.[ch]: Regenerate.
2369 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
2370 (hppa_gdbarch_init): Set it in the gdbarch vector.
2371 * i386-tdep.c (i386_fetch_pointer_argument): New
2372 (i386_gdbarch_init): Set it into gdbarch.
2373 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
2374 (rs6000_gdbarch_init): Set it in gdbarch.
2375 * sparc-tdep.c (sparc_fetch_pointer_argument): New
2376 (sparc_gdbarch_init): Set it in gdbarch.
2378 2003-06-01 Andrew Cagney <cagney@redhat.com>
2380 * defs.h (extract_address): Delete declaration.
2381 * findvar.c (extract_address): Delete function.
2382 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
2383 extract_address with the inline equivalent,
2384 extract_unsigned_integer.
2385 (xstormy16_extract_struct_value_address): Ditto.
2386 (xstormy16_pointer_to_address): Ditto.
2387 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
2388 * v850-tdep.c (v850_push_arguments): Ditto.
2389 (v850_extract_return_value): Ditto.
2390 (v850_extract_struct_value_address): Ditto.
2391 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
2392 (sparcnbsd_get_longjmp_target_64): Ditto.
2393 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
2394 (get_longjmp_target): Ditto.
2395 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
2396 (sh64_extract_struct_value_address): Ditto.
2397 (sh_push_arguments): Ditto.
2398 (sh64_push_arguments): Ditto.
2399 * remote-vxsparc.c (vx_read_register): Ditto.
2400 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
2401 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
2402 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
2403 * mipsv4-nat.c (get_longjmp_target): Ditto.
2404 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
2405 * mips-nat.c (get_longjmp_target): Ditto.
2406 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
2407 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
2408 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
2409 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
2410 * irix5-nat.c (get_longjmp_target): Ditto.
2411 * irix4-nat.c (get_longjmp_target): Ditto.
2412 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
2413 (ia64_push_arguments): Ditto.
2414 * hpux-thread.c (hpux_thread_store_registers): Ditto.
2415 * h8300-tdep.c (h8300_push_arguments): Ditto.
2416 (h8300_store_return_value): Ditto.
2417 (h8300_extract_struct_value_address): Ditto.
2418 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
2419 (frv_push_arguments): Ditto.
2420 * avr-tdep.c (avr_pointer_to_address): Ditto.
2421 (avr_push_arguments): Ditto.
2422 * arm-tdep.c (arm_push_dummy_call): Ditto.
2423 (arm_get_longjmp_target): Ditto.
2424 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
2425 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
2426 (alpha_get_longjmp_target): Ditto.
2428 * solib-irix.c (extract_mips_address): Inline extract_address,
2429 replacing it with extract_signed_integer.
2430 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
2431 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
2432 (first_link_map_member, open_symbol_file_object): Ditto.
2433 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
2434 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
2435 (LM_NEXT, LM_NAME): Ditto.
2437 2003-06-01 Richard Henderson <rth@redhat.com>
2439 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
2440 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
2441 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
2442 (alpha_cannot_store_register): Likewise.
2443 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
2444 * alpha-nat.c (supply_gregset): Likewise.
2445 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
2447 2003-06-01 Andrew Cagney <cagney@redhat.com>
2449 * infcall.c (call_function_by_hand): Update comment on
2450 DEPRECATED_DUMMY_WRITE_SP.
2452 * mips-tdep.c (mips_gdbarch_init): Do not set
2453 deprecated_dummy_write_sp.
2454 (mips_eabi_push_dummy_call): Set the SP register.
2455 (mips_o64_push_dummy_call): Set the SP register.
2456 (mips_o32_push_dummy_call): Set the SP register.
2457 (mips_n32n64_push_dummy_call): Set the SP register.
2459 2003-06-01 Richard Henderson <rth@redhat.com>
2461 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
2462 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
2463 (supply_gregset): Likewise.
2464 * alpha-tdep.c (alpha_store_return_value): Likewise.
2465 (alpha_get_longjmp_target): Likewise.
2466 (alpha_register_name): Constify array.
2467 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
2468 deprecated_register_size, deprecated_register_bytes,
2469 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
2470 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
2471 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
2473 2003-06-01 Richard Henderson <rth@redhat.com>
2475 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
2476 from arg_reg_buffer to regcache to avoid double conversion.
2478 2003-06-01 Mark Kettenis <kettenis@gnu.org>
2480 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
2482 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
2483 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
2485 2003-06-01 Richard Henderson <rth@redhat.com>
2487 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
2488 (decode_frame_entry): Set it. Skip FDE augmentation.
2490 2003-06-01 Richard Henderson <rth@redhat.com>
2492 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
2493 not overlapping PC_REGNUM.
2495 2003-06-01 Richard Henderson <rth@redhat.com>
2497 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
2498 alpha_push_arguments. Don't dump argument register data to
2499 the target stack. Fix float and 128-bit long double semantics.
2500 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
2501 (alpha_fix_call_dummy): Remove.
2502 (alpha_call_dummy_words): Remove.
2503 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
2505 2003-06-01 Richard Henderson <rth@redhat.com>
2507 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
2509 2003-06-01 Andrew Cagney <cagney@redhat.com>
2511 * mips-tdep.c (is_mips16_addr): New function.
2512 (make_mips16_addr, unmake_mips16_addr): New functions.
2513 (pc_is_mips16, mips_fetch_instruction): Use.
2514 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
2515 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
2516 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
2517 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
2519 * config/mips/tm-mips.h: Update copyright.
2520 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
2521 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
2522 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
2523 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
2524 (TM_PRINT_INSN_MACH): Delete.
2525 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
2527 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
2528 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
2529 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
2530 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
2531 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
2532 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
2533 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
2534 mips*-*-riscos* and mips*-*-sysv* onto mips.
2535 * config/mips/mips64.mt: New file.
2536 * config/mips/mips.mt: New file.
2537 * config/mips/littlemips.mt: Delete file.
2538 * config/mips/decstation.mt: Delete file.
2539 * config/mips/vr4300el.mt: Delete file.
2540 * config/mips/vr5000el.mt: Delete file.
2541 * config/mips/vr5000.mt: Delete file.
2542 * config/mips/vr4100.mt: Delete file.
2543 * config/mips/vr4xxxel.mt: Delete file.
2544 * config/mips/vr4300.mt: Delete file.
2545 * config/mips/vr4xxx.mt: Delete file.
2546 * config/mips/bigmips.mt: Delete file.
2547 * config/mips/bigmips64.mt: Delete file.
2548 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
2549 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
2550 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
2551 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
2552 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
2554 * config/mips/tm-irix3.h: Ditto.
2555 * config/mips/tm-mipsv4.h: Ditto.
2556 * config/mips/tm-embed.h: Ditto.
2557 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
2559 * config/mips/tm-vr5000el.h: Delete file.
2560 * config/mips/tm-tx39l.h: Delete file.
2561 * config/mips/tm-vr4300el.h: Delete file.
2562 * config/mips/tm-vr4xxxel.h: Delete file.
2563 * config/mips/tm-vr4300.h: Delete file.
2564 * config/mips/tm-vr4100.h: Delete file.
2565 * config/mips/tm-vr4xxx.h: Delete file.
2566 * config/mips/tm-vr5000.h: Delete file.
2567 * config/mips/tm-embedl64.h: Delete file.
2568 * config/mips/tm-embedl.h: Delete file.
2569 * config/mips/tm-embed64.h: Delete file.
2570 * config/mips/tm-bigmips64.h: Delete file.
2571 * config/mips/tm-bigmips.h: Delete file.
2573 2003-06-01 Mark Kettenis <kettenis@gnu.org>
2576 * shnbsd-nat.c: Include "sh-tdep.h".
2578 From Richard Henderson <rth@redhat.com>:
2579 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
2581 2003-05-31 Andrew Cagney <cagney@redhat.com>
2583 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
2584 forward declaration.
2585 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
2586 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
2587 (mips_find_saved_regs): Use set_reg_offset.
2588 (mips_frame_init_saved_regs): Delete function.
2589 (mips_pop_frame): Call mips_find_saved_regs instead of
2590 DEPRECATED_FRAME_INIT_SAVED_REGS.
2592 2003-05-31 Andrew Cagney <cagney@redhat.com>
2594 * mips-tdep.c (mips_gdbarch_init): Do not set
2595 deprecated_max_register_raw_size, register_virtual_size, and
2596 deprecated_max_register_virtual_size.
2598 2003-05-31 Mark Kettenis <kettenis@gnu.org>
2600 * i386-tdep.c: Include "dwarf2-frame.h".
2601 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
2602 * Makefile.in (i386-tdep.o): Update dependencies.
2604 * dwarf2-frame.c, dwarf2-frame.h: New files.
2605 * Makefile.in (SFILES): Add dwarf2-frame.c.
2606 (dwarf2_frame_h): Define.
2607 (COMMON_OBS): Add dwarf2-frame.o.
2608 (dwarf2-frame.o): Add dependencies.
2610 2003-05-31 Andreas Jaeger <aj@suse.de>
2612 * x86-64-linux-nat.c: Fix comment.
2614 2003-05-31 Mark Kettenis <kettenis@gnu.org>
2616 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
2619 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
2620 have a sigcontext_addr handler.
2621 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
2622 sigcontext_addr handler.
2624 2003-05-31 Andrew Cagney <cagney@redhat.com>
2626 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
2627 (print_fp_register_row): Replace do_fp_register_row.
2628 (mips_print_fp_register): Add "file" and "frame" parameters.
2629 (mips_print_register): Add "file" and "frame" parameters.
2630 (mips_print_registers_info): Replace mips_do_registers_info.
2631 (mips_gdbarch_init): Set print_registers_info instead of
2632 deprecated_do_registers_info.
2633 (mips_read_fp_register_single): Add "frame" parameter.
2634 (mips_read_fp_register_double): Add "frame" parameter.
2636 2003-05-31 Mark Kettenis <kettenis@gnu.org>
2638 * i386-tdep.c (i386_register_name): Check for MMX registers first.
2639 Fixes a bug where GDB would print the wrong register names for
2640 targets without SSE.
2642 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
2643 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
2646 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
2647 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
2648 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2651 From Michal Ludvig <mludvig@suse.cz>:
2652 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
2654 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
2655 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
2656 I386_ST0_REGNUM): Move here from...
2657 * i386-tdep.c: ... here.
2658 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
2659 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
2660 registers if possible.
2661 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
2662 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
2664 (i386bsd_sc_reg_offset): New variable.
2665 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
2666 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2668 (i386fbsd_sc_reg_offset): New variable.
2669 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
2671 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
2673 (i386fbsd4_sc_reg_offset): New variable.
2674 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
2675 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2677 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
2678 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
2679 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
2681 (i386nbsd_sc_reg_offset): New variable.
2682 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
2683 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2685 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
2687 (i386obsd_sc_reg_offset): New variable.
2688 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
2689 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2691 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
2692 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
2693 for frame pointer offset in `struct sigcontext'.
2695 2003-05-31 Andrew Cagney <cagney@redhat.com>
2697 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
2698 architecture methods call_dummy_words, sizeof_call_dummy_words,
2699 push_return_address, store_struct_return, and fix_call_dummy. Set
2700 push_dummy_call instead of deprecated_push_arguments.
2701 (mips_store_struct_return): Delete function.
2702 (mips_fix_call_dummy): Delete function.
2703 (mips_push_return_address): Delete function.
2704 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
2705 RA_REGNUM and T9_REGNUM.
2706 (mips_n32n64_push_dummy_call): Ditto for
2707 mips_n32n64_push_arguments.
2708 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
2709 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
2711 2003-05-31 Andrew Cagney <cagney@redhat.com>
2713 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
2714 "dummy_addr" to "bp_addr".
2715 * infcall.c (call_function_by_hand): Pass "funaddr" to
2716 gdbarch_push_dummy_call.
2717 * gdbarch.h, gdbarch.c: Re-generate.
2718 * i386-tdep.c (i386_push_dummy_call): Update.
2719 * arm-tdep.c (arm_push_dummy_call): Update.
2720 * d10v-tdep.c (d10v_push_dummy_call): Update.
2722 2003-05-31 Mark Kettenis <kettenis@gnu.org>
2724 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
2725 variable declarations.
2726 (x86_64_register_number, x86_64_register_name): Remove prototypes.
2727 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
2728 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
2729 x86_64_init_frame_pc, x86_64_init_frame_pc,
2730 x86_64_function_has_prologue): Remove prototypes.
2731 (X86_64_NUM_GREGS): New define.
2732 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
2733 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
2734 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
2735 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
2736 XMM1_REGNUM): Remove defines.
2737 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
2738 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
2739 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
2740 X86_64_XMM1_REGNUM): New defines.
2741 (struct x86_64_register_info): Renamed from `struct
2742 register_info'. Remove `size' member.
2743 (x86_64_register_info_table): Remove variable.
2744 (x86_64_register_info): New variable.
2745 (X86_64_NUM_REGS): New define.
2746 (X86_64_NUM_GREGS): Remove define.
2747 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
2748 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
2750 (x86_54_dwarf2_reg_to_regnum): Remove function.
2751 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
2752 (x86_64_dwarf_reg_to_regnum): New function.
2753 (x86_64_register_name): Rewrite.
2754 (x86_64_register_raw_size): Remove function.
2755 (x86_64_register_byte_table): Remove variable.
2756 (x86_64_register_byte): Remove function.
2757 (x86_64_register_virtual_type): Remove function.
2758 (x86_64_register_type): New function.
2759 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
2760 x86_64_register_convert_to_raw): Remove functions.
2761 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
2762 (x86_64_use_struct_convention): Make static. Adjust for renamed
2764 (x86_64_frame_init_saved_regs): Remove function.
2765 (x86_64_push_arguments): Make static. Change to accept a regcache
2767 (x86_64_store_return_value, x86_64_extract_return_value): Make
2768 static. Rewrite based on i386 counterparts.
2769 (x86_64_push_dummy_call): New function.
2770 (X86_64_NUM_SAVED_REGS): New define.
2771 (x86_64_register_number): Remove function.
2772 (x86_64_store_struct_return): Remove function.
2773 (x86_64_frameless_function_invocation,
2774 x86_64_function_has_prologue): Remove functions.
2775 (PROLOG_BUFSIZE): Remove define.
2776 (struct x86_64_frame_cache): New structure.
2777 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
2778 x86_64_frame_cache, x86_64_frame_this_id,
2779 x86_64_frame_prev_register, x86_64_frame_p,
2780 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
2781 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
2783 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
2785 (x86_64_skip_prologue): Rewrite in terms of
2786 x86_64_analyze_prologue.
2787 (x86_64_frame_base_address): New function.
2788 (x86_64_frame_base): New variable.
2789 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
2790 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
2791 set deprecated_fp_regnum, deprecated_register_size,
2792 deprecated_register_bytes, register_raw_size, register_byte,
2793 register_virtual_type, register_convertiable,
2794 register_convert_to_virtual, convert_to_raw,
2795 deprecated_get_saved_register, deprecated_target_read_fp,
2796 deprecated_push_arguments, deprecated_push_return_address,
2797 deprecated_pop_frame, deprecated_store_struct_return,
2798 deprecated_frame_init_saved_regs, deprecated_frame_chain,
2799 frameless_function_invocation, deprecated_frame_saved_pc,
2800 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
2801 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
2802 deprecated_init_frame_pc and virtual_frame_pointer. Call
2803 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
2804 and x86_64_frame_p. Call frame_base_set_default to register
2806 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
2807 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
2808 (_initialize_x86_64_tdep): Remove function.
2809 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
2810 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
2811 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
2813 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
2814 (x86_64_linux_sigcontext_addr): Rewrite.
2815 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
2816 x86_64_linux_frame_saved_pc): Remove functions.
2817 (x86_64_linux_pc_in_sigtramp): Renamed from
2818 x86_64_linux_in_sigtramp. Try harder to recognize a signal
2820 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
2822 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
2823 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
2824 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
2825 (x86_64_regmap): Rename to regmap.
2826 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
2828 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
2830 (x86_64_fxsave_offset): Remove function.
2831 (supply_fpregset): Simply call x86_64_supply_fxsave.
2832 (fill_fpregset): Simply call x86_64_fill_fxsave.
2833 (fetch_inferior_registers, store_inferior_registers): Avoid
2834 asignment in if-statement.
2835 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
2836 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
2837 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
2838 (fetch_core_registers): Remove function.
2839 (linux_elf_core_fns): Remove.
2840 (offsetoff): Don't define.
2841 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
2842 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
2843 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
2845 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
2846 protection against multiple includes instead of NM_X86_64_h. Add
2847 various comments. Include "config/nm-linux.h". Don't include
2849 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
2850 GET_THREAD_SIGNALS): Remove defines.
2851 (x86_64_register_u_addr, kernel_u_size,
2852 lin_thread_get_thread_signals): Remove prototypes.
2853 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
2854 [HAVE_LINK_H]: Don't include "solib.h".
2855 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
2856 * config/i386/tm-x86-64linux.h: Fix comments.
2857 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
2858 x86-64-tdep.o): Update dependencies.
2860 2003-05-30 Andrew Cagney <cagney@redhat.com>
2862 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
2863 Change parameter type to a "struct regcache *".
2865 * gdbarch.sh: Regardless of the multi-arch level, always define
2866 the macro when not already defined.
2867 * gdbarch.h, gdbarch.c: Re-generate.
2869 2003-05-30 Richard Henderson <rth@redhat.com>
2871 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
2872 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
2873 (alpha_mdebug_frame_this_id): Likewise.
2874 (alpha_mdebug_frame_prev_register): Likewise.
2875 (alpha_mdebug_frame_base_address): Likewise.
2876 (alpha_mdebug_frame_locals_address): Likewise.
2877 (alpha_mdebug_frame_args_address): Likewise.
2878 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
2879 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
2880 (alpha_heuristic_frame_unwind_cache): Make static; add missing
2882 (alpha_heuristic_frame_this_id): Make static.
2883 (alpha_heuristic_frame_prev_register): Likewise.
2884 (alpha_heuristic_frame_base_address): Likewise.
2885 * alpha-tdep.h: Update.
2887 2003-05-30 Mark Kettenis <kettenis@gnu.org>
2889 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
2890 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
2892 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
2893 * i386-tdep.c: Mark functions that are 64-bit safe as such.
2894 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
2895 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
2896 I386_ST0_REGNUM): New defines.
2897 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
2898 codestream_get): Remove define.
2899 (codestream_next_addr, condestream_addr, condestream_buf,
2900 codestream_off, codestream_cnt): Remove variables.
2901 (codestream_fill, codestream_seek, codestream_read): Remove
2903 (i386_follow_jump): Rewrite to avoid usage of removed codestream
2905 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
2906 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
2907 i386_frame_saved_pc, i386_saved_pc_after_call,
2908 i386_frame_num_args, i386_frame_init_saved_regs,
2909 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
2910 i386_push_arguments): Remove functions.
2911 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
2912 functionality. Use i386_analyze_prologue instead of
2913 i386_get_frame_setup.
2914 (I386_NUM_SAVED_REGS): New define.
2915 (struct i386_frame_cache): New structure.
2916 (i386_alloc_frame_cache, i386_analyze_struct_return,
2917 i386_skip_probe, i386_analyze_frame_setup,
2918 i386_analyze_register_saves, i386_analyze_prologue,
2919 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
2920 i386_frame_prev_register, i386_sigtramp_frame_cache,
2921 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
2922 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
2923 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
2925 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
2927 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
2928 I386_EAX_REGNUM and I386_EDX_REGNUM.
2929 (i386_extract_return_value, i386_store_return_value): Use
2930 I386_ST0_REGNUM where appropriate.
2931 (i386_extract_struct_value_address): Rewrite to use extract_address.
2932 (i386_svr4_pc_in_sigtramp): Add comment.
2933 (i386_svr4_sigcontext_addr): Rewrite.
2934 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
2936 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
2937 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
2938 of new defines. Set push_dummy_call, don't set
2939 deprecated_push_arguments, deprecated_push_return_address,
2940 deprecated_pop_frame. Don't set parm_boundary. Don't set
2941 deprecated_frame_chain, deprecated_frame_saved_pc,
2942 deprecated_saved_pc_after_call. Set unwind_dummy_id,
2943 save_dummy_frame_tos, unwind_pc. Call
2944 frame_unwind_append_predicate and frame_base_set_default. Don't
2945 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
2946 Don't set frameless_function_invocation. Don't set
2947 deprecated_register_bytes, deprecated_register_size,
2948 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
2949 * i386-linux-tdep.c: Fix formatting in some comments.
2950 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
2951 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
2952 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
2953 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
2954 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
2955 redundant parentheses.
2956 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
2957 (i386_linux_sigcontext_addr): Use it. Rewrite.
2958 (find_minsym_and_objfile): Change name of second argument.
2959 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
2960 changed. Use frame_pc_unwind instead of
2961 DEPRECATED_SAVED_PC_AFTER_CALL.
2962 (i386_linux_init_abi): Don't set deprecated_register_bytes.
2963 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
2964 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
2966 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
2968 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
2969 (_initialize_i386_cygwin_tdep): New prototype.
2970 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
2971 deprecated_frame_chain_valid.
2972 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
2973 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
2974 Rely on the SVR4 defaults.
2975 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
2976 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
2978 2003-05-30 Andrew Cagney <cagney@redhat.com>
2980 * infcall.c (call_function_by_hand): Always call
2981 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
2983 2003-05-30 Richard Henderson <rth@redhat.com>
2985 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
2988 2003-05-29 Jim Blandy <jimb@redhat.com>
2990 Use gdbarch methods for solib stuff on PowerPC Linux.
2991 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
2992 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
2994 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2995 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
2996 giving the same effect as the #definitions above.
2998 2003-05-29 Adam Fedor <fedor@gnu.org>
3000 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
3001 (find_implementation_from_class): Replace it with the standard
3002 case i.e. do nothing.
3004 2003-05-29 Richard Henderson <rth@redhat.com>
3006 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
3007 (alpha_linux_sigtramp_offset): Use it. Make static.
3008 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
3009 update for new frame model.
3010 * alpha-mdebug-tdep.c: New file.
3011 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
3012 (alpha_osf1_init_abi): Install it.
3013 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
3014 (linked_proc_desc_table): Remove.
3015 (alpha_frame_past_sigtramp_frame): Remove.
3016 (alpha_dynamic_sigtramp_offset): Remove.
3017 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
3018 (alpha_proc_desc_is_dyn_sigtramp): Remove.
3019 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
3020 (push_sigtramp_desc): Remove.
3021 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
3022 (alpha_cannot_store_register): Likewise.
3023 (alpha_sigcontext_addr): Remove.
3024 (alpha_find_saved_regs): Remove.
3025 (alpha_frame_init_saved_regs): Remove.
3026 (alpha_init_frame_pc_first): Remove.
3027 (read_next_frame_reg): Remove.
3028 (alpha_frame_saved_pc): Remove.
3029 (alpha_saved_pc_after_call): Remove.
3030 (temp_proc_desc, temp_saved_regs): Remove.
3031 (alpha_about_to_return): Remove.
3032 (cached_proc_desc): Remove.
3033 (alpha_frame_chain): Remove.
3034 (alpha_print_extra_frame_info): Remove.
3035 (alpha_init_extra_frame_info): Remove.
3036 (alpha_frame_locals_address): Remove.
3037 (alpha_frame_args_address): Remove.
3038 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
3039 (alpha_push_dummy_frame): Remove.
3040 (alpha_pop_frame): Remove.
3041 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
3042 (alpha_read_insn): New.
3043 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
3044 for different insn encodings.
3045 (alpha_in_lenient_prologue): Remove.
3046 (struct alpha_sigtramp_unwind_cache): New.
3047 (alpha_sigtramp_frame_unwind_cache): New.
3048 (alpha_sigtramp_register_address): New.
3049 (alpha_sigtramp_frame_this_id): New.
3050 (alpha_sigtramp_frame_prev_register): New.
3051 (alpha_sigtramp_frame_unwind): New.
3052 (alpha_sigtramp_frame_p): New.
3053 (struct alpha_heuristic_unwind_cache): New.
3054 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
3055 don't count nop insns that occur between functions.
3056 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
3057 heuristic_proc_desc, but without the mdebug wrapping.
3058 (alpha_heuristic_frame_this_id): New.
3059 (alpha_heuristic_frame_prev_register): New.
3060 (alpha_heuristic_frame_unwind): New.
3061 (alpha_heuristic_frame_p): New.
3062 (alpha_heuristic_frame_base_address): New.
3063 (alpha_heuristic_frame_base): New.
3064 (alpha_unwind_dummy_id): New.
3065 (alpha_unwind_pc): New.
3066 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
3067 frame related deprecated initializations; install replacements.
3068 (alpha_dump_tdep): Remove.
3069 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
3070 (alpha_read_insn, alpha_after_prologue,
3071 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
3072 alpha_heuristic_frame_prev_register,
3073 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
3074 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3075 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
3076 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
3078 2003-05-29 Andrew Cagney <cagney@redhat.com>
3080 * gdb_assert.h (gdb_assert_fail): Provide different definitions
3081 dependant on the availability of ASSERT_FUNCTION.
3082 (ASSERT_FUNCTION): Do not define when there is no function name.
3084 2003-05-29 Kevin Buettner <kevinb@redhat.com>
3086 From Jimi X <jimix@watson.ibm.com>:
3087 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
3089 2003-05-28 Jim Blandy <jimb@redhat.com>
3091 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
3092 argument to ptrace to int; the system headers should give it the
3093 right type, and pointers don't fit in ints on powerpc64-*-*.
3095 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
3097 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
3100 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
3102 * stabsread.c (dbx_lookup_type): Make static.
3104 (add_undefined_type): Ditto.
3105 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
3108 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
3110 * hpread.c (hpread_has_name): Make static.
3111 (hpread_psymtab_to_symtab): Ditto.
3112 (file_exists): Ditto.
3113 (hpread_call_pxdb): Ditto.
3114 (hpread_pxdb_needed): Ditto.
3115 (hpread_quick_traverse): Ditto.
3116 (hpread_get_header): Ditto.
3117 (hpread_get_lntt): Ditto.
3118 (hpread_get_slt): Ditto.
3121 2003-05-25 Andreas Schwab <schwab@suse.de>
3123 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
3124 stack_align and deprecated_extra_stack_alignment_needed.
3125 (m68k_stack_align): Delete.
3127 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
3128 (m68k_register_virtual_size): Likewise.
3129 (altos_skip_prologue): Remove obsolete function.
3130 (isi_frame_num_args): Likewise.
3131 (news_frame_num_args): Likewise.
3132 (m68k_fix_call_dummy): Make static.
3133 (m68k_push_dummy_frame): Likewise.
3134 (m68k_pop_frame): Likewise.
3135 (m68k_skip_prologue): Likewise.
3136 (m68k_frame_init_saved_regs): Likewise.
3137 (m68k_saved_pc_after_call): Likewise.
3138 (m68k_get_longjmp_target): Make multi-arch.
3139 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
3140 structure. Register m68k_get_longjmp_target if enabled.
3141 * m68k-tdep.h (struct gdbarch_tdep): Define.
3142 * config/m68k/tm-m68k.h: Don't include "regcache.h".
3144 * Makefile.in (config.status): Also depend on configure.tgt
3146 (m68klinux-tdep.o): Update dependencies.
3147 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
3148 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
3149 (M68K_LINUX_JB_PC): Define.
3150 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
3151 and take additional parameter.
3152 (m68k_linux_sigtramp_saved_pc): Update.
3153 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
3154 m68k_linux_pc_in_sigtramp, in_plt_section,
3155 find_solib_trampoline_target.
3156 * config/m68k/tm-linux.h: Don't include any tm headers.
3157 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
3158 (JB_ELEMENT_SIZE): Likewise.
3160 (GET_LONGJMP_TARGET): Likewise.
3161 (IN_SIGTRAMP): Likewise.
3162 (SVR4_SHARED_LIBS): Define this and include "solib.h".
3164 2003-05-25 Mark Kettenis <kettenis@gnu.org>
3166 * sparc-tdep.c (sparc32_do_push_arguments): New function.
3167 (sparc32_push_arguments): Re-implement by calling
3168 sparc32_do_push_arguments.
3170 2003-05-25 Mark Kettenis <kettenis@gnu.org>
3172 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
3173 SPARC_O1_REGNUM): New defines.
3174 (sparc32_extract_return_value): Rewrite to operate on a regcache.
3175 (sparc32_store_return_value): New function.
3176 (sparc_extract_struct_value_address): Rewrite to operate on a
3178 (sparc_gdbarch_init): Don't set
3179 deprecated_extract_struct_value_address. Set
3180 extract_struct_value_address instead. Don't set
3181 deprecated_extract_return_value and deprecated_store_return_value
3182 for 32-bit targets. Set extract_return_value and
3183 store_return_value instead.
3184 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
3185 DEPRECTAED_EXTRACT_RETURN_VALUE,
3186 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
3187 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
3188 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
3189 (sparc_store_return_value): Remove prototype.
3190 (sparc32_store_return_value): New prototype.
3191 (sparc32_extract_return_value, sparc_extract_struct_value_address):
3194 2003-05-24 Mark Kettenis <kettenis@gnu.org>
3196 * sparcnbsd-tdep.c: Include "gdb_string.h".
3198 2003-05-23 Andrew Cagney <cagney@redhat.com>
3200 * p-valprint.c (pascal_val_print): Replace extract_address with
3201 the inline equivalent extract_unsigned_integer.
3202 * jv-valprint.c (java_value_print): Ditto.
3203 * ada-valprint.c (ada_val_print_1): Ditto.
3204 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
3206 2003-05-23 Theodore A. Roth <troth@openavr.org>
3208 * blockframe.c (frameless_look_for_prologue): Remove unused
3209 after_prologue variable.
3211 2003-05-23 Mark Kettenis <kettenis@gnu.org>
3213 * blockframe.c (get_pc_function_start): Rewrite to avoid
3214 asignments in if-statements.
3216 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
3218 Committed by Elena Zannoni <ezannoni@redhat.com>.
3219 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
3220 files, don't relocate absolute symbols (and do use mst_abs).
3222 2003-05-23 Andrew Cagney <cagney@redhat.com>
3224 * objc-lang.c: Include "gdb_assert.h".
3225 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
3226 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
3227 (gdb_check, gdb_check_fatal): Delete functions.
3228 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
3230 (parse_selector, parse_method, find_methods, find_imps): Ditto.
3231 * Makefile.in (objc-lang.o): Update dependencies.
3233 2003-05-22 Ian Lance Taylor <ian@airs.com>
3235 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
3236 with fprintf_filtered, not fprintf_unfiltered.
3238 2003-05-22 Andrew Cagney <cagney@redhat.com>
3240 * stack.c (frame_info): Inline extract_address, replacing it with
3241 extract_unsigned_integer.
3242 * findvar.c (unsigned_pointer_to_address): Ditto.
3243 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
3244 * dwarf2expr.c (dwarf2_read_address): Ditto.
3245 * frame.c (frame_pc_unwind): Update comment.
3246 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
3248 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
3250 * infptrace.c (detach): Call print_sys_errmsg rather than
3251 perror_with_name to issue warning message when errno is non-zero
3252 after calling ptrace detach.
3254 2003-05-21 J. Brobecker <brobecker@gnat.com>
3256 * config/pa/tm-hppa.h: Delete some unused macros. Move some
3257 macro definitions from here...
3258 * hppa-tdep.c: ...to there.
3260 2003-05-20 Kevin Buettner <kevinb@redhat.com>
3262 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
3263 register_ptrace_addr(). Fix all callers.
3265 2003-05-21 Andreas Schwab <schwab@suse.de>
3267 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3269 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
3271 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
3272 (_initialize_m68k_linux_tdep): New function.
3273 (m68k_linux_frame_saved_pc): Make static.
3274 (m68k_linux_extract_return_value): Likewise.
3275 (m68k_linux_store_return_value): Likewise.
3276 (m68k_linux_extract_struct_value_address): Likewise.
3277 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
3279 (DEPRECATED_STORE_RETURN_VALUE): Remove.
3280 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3281 (DEPRECATED_FRAME_SAVED_PC): Remove.
3283 2003-05-20 Kris Warkentin <kewarken@qnx.com>
3285 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
3286 regset numbering rather than our own.
3288 2003-05-19 David Carlton <carlton@bactrian.org>
3290 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
3292 2003-05-19 David Carlton <carlton@bactrian.org>
3294 Partial fix for PR c++/827.
3295 * cp-support.h: Include symtab.h.
3296 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
3297 * cp-namespace.c: Update contributors.
3298 (cp_lookup_symbol_nonlocal): New.
3299 (lookup_namespace_scope, cp_lookup_symbol_namespace)
3300 (lookup_symbol_file): Ditto.
3301 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
3302 * block.h: Declare block_scope, block_using, block_global_block.
3303 * block.c (block_scope): New.
3304 (block_using, block_global_block): Ditto.
3305 * Makefile.in (cp_support_h): Depend on symtab_h.
3306 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
3308 2003-05-19 David Carlton <carlton@bactrian.org>
3310 * language.h (struct language_defn): Add 'la_value_of_this'
3311 and 'la_lookup_symbol_nonlocal' members.
3312 * symtab.h: Declare basic_lookup_symbol_nonlocal,
3313 lookup_symbol_static, lookup_symbol_global,
3314 lookup_symbol_aux_block.
3315 * symtab.c (lookup_symbol_aux): Call language hooks to determine
3316 if we should search fields of this and how to do static/global
3318 (lookup_symbol_aux_block): Make extern.
3319 (basic_lookup_symbol_nonlocal): New.
3320 (lookup_symbol_static, lookup_symbol_global): Ditto.
3321 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
3322 'la_lookup_symbol_nonlocal' members.
3323 * c-lang.c (c_language_defn, cplus_language_defn)
3324 (asm_language_defn, minimal_language_defn): Ditto.
3325 * jv-lang.c (java_language_defn): Ditto.
3326 * language.c (unknown_language_defn, auto_language_defn)
3327 (local_language_defn): Ditto.
3328 * m2-lang.c (m2_language_defn): Ditto.
3329 * objc-lang.c (objc_language_defn): Ditto.
3330 * scm-lang.c (scm_language_defn): Ditto.
3331 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
3332 * p-lang.c (pascal_language_defn): Ditto for both.
3333 * Makefile.in (f-lang.o): Depend on value_h.
3336 2003-05-19 David Carlton <carlton@bactrian.org>
3338 * block.h: Declare block_static_block.
3339 * block.c (block_static_block): New.
3340 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
3341 lookup_symbol_aux_local, calling block_static_block instead.
3342 (lookup_symbol_aux_local): Delete 'static_block' argument.
3344 2003-05-19 David Carlton <carlton@bactrian.org>
3346 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
3348 2003-05-19 Michal Ludvig <mludvig@suse.cz>
3350 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
3351 register numbers mapping.
3353 2003-05-18 Adam Fedor <fedor@gnu.org>
3355 * symtab.c (completion_list_objc_symbol): New function.
3356 (make_symbol_completion_list): Use it to add ObjC symbols
3357 when looking though the list.
3358 (language_search_unquoted_string): New function.
3359 (make_file_symbol_completion_list): Use it.
3361 2003-05-18 Andreas Schwab <schwab@suse.de>
3363 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
3365 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
3366 as m68k_linux_extract_return_value.
3367 (DEPRECATED_STORE_RETURN_VALUE): Define as
3368 m68k_linux_store_return_value.
3369 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
3370 m68k_linux_extract_struct_value_address.
3371 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
3372 get_next_frame, get_frame_base, get_frame_pc.
3373 (m68k_linux_frame_saved_pc): Use get_frame_base.
3374 (m68k_linux_extract_return_value): New function.
3375 (m68k_linux_store_return_value): New function.
3376 (m68k_linux_extract_struct_value_address): New function.
3377 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
3379 * c-exp.y (typebase): Remove duplicate occurence of
3380 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
3381 of lookup_signed_typename.
3383 2003-05-18 Mark Kettenis <kettenis@gnu.org>
3385 * dwarf2loc.c (find_location_expression): Change type of second
3386 argument to `size_t *'.
3387 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
3390 2003-05-18 David Carlton <carlton@bactrian.org>
3392 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
3393 'linkage_name'. Add comment.
3394 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
3396 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
3397 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
3398 (lookup_block_symbol): Ditto.
3400 2003-05-16 Andrew Cagney <cagney@redhat.com>
3402 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
3403 * gdbarch.h, gdbarch.c: Re-generate.
3404 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
3405 * TODO (REGISTER_BYTES): Delete reference.
3406 * alpha-tdep.c (alpha_gdbarch_init): Update.
3407 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3408 * x86-64-tdep.c (x86_64_init_abi): Update.
3409 * vax-tdep.c (vax_gdbarch_init): Update.
3410 * v850-tdep.c (v850_gdbarch_init): Update.
3411 * sparc-tdep.c (sparc_gdbarch_init): Update.
3412 * sh-tdep.c (sh_gdbarch_init): Update.
3413 * s390-tdep.c (s390_gdbarch_init): Update.
3414 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3415 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3416 (ns32k_gdbarch_init_32382): Update.
3417 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3418 * mcore-tdep.c (mcore_gdbarch_init): Update.
3419 * m68k-tdep.c (m68k_gdbarch_init): Update.
3420 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3421 * ia64-tdep.c (ia64_gdbarch_init): Update.
3422 * i386-tdep.c (i386_gdbarch_init): Update.
3423 * i386-linux-tdep.c (i386_linux_init_abi): Update.
3424 * hppa-tdep.c (hppa_gdbarch_init): Update.
3425 * h8300-tdep.c (h8300_gdbarch_init): Update.
3426 * frv-tdep.c (frv_gdbarch_init): Update.
3427 * cris-tdep.c (cris_gdbarch_init): Update.
3428 * avr-tdep.c (avr_gdbarch_init): Update.
3429 * arm-tdep.c (arm_gdbarch_init): Update.
3430 * sparc-tdep.c (sparc_pop_frame): Update.
3431 * rs6000-tdep.c (rs6000_pop_frame): Update.
3432 * remote.c (init_remote_state): Update.
3433 (remote_prepare_to_store): Update.
3434 * remote-vx.c (vx_prepare_to_store): Update.
3435 * remote-sds.c (sds_fetch_registers): Update.
3436 (sds_prepare_to_store): Update.
3437 * remote-array.c: Update.
3438 * regcache.c (init_legacy_regcache_descr): Update.
3439 (init_regcache_descr): Update.
3440 * mips-tdep.c (mips_eabi_extract_return_value): Update.
3441 (mips_o64_extract_return_value): Update.
3442 * irix5-nat.c (fetch_core_registers): Update.
3443 * irix4-nat.c (fetch_core_registers): Update.
3444 * i386-tdep.h: Update.
3445 * hppa-tdep.c (pa_do_registers_info): Update.
3446 (pa_do_strcat_registers_info): Update.
3447 * cris-tdep.c (cris_register_bytes_ok): Update.
3448 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3449 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
3450 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
3451 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
3452 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
3453 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
3454 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
3455 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
3456 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
3457 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
3458 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
3459 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
3460 (REGISTER_BYTES_OK): Update.
3461 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
3462 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
3464 2003-05-16 Ian Lance Taylor <ian@airs.com>
3466 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
3467 (vax_print_insn, print_insn_arg): Remove static functions.
3468 (vax_gdbarch_init): Call set_gdbarch_print_insn with
3469 print_insn_vax from opcodes library.
3470 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
3472 2003-05-15 Andrew Cagney <cagney@redhat.com>
3474 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
3475 * target.h (memory_breakpoint_from_pc): Delete declaration.
3476 * mem-break.c (memory_breakpoint_from_pc): Delete function.
3477 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
3478 * monitor.c (monitor_insert_breakpoint): Use
3479 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
3480 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
3481 * gdbarch.h, gdbarch.c: Re-generate.
3482 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
3483 (sparc_gdbarch_init): Set breakpoint_from_pc to
3484 sparc_breakpoint_from_pc.
3485 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
3486 (BREAKPOINT_FROM_PC): Define.
3487 (sparc_breakpoint_from_pc): Declare.
3488 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
3489 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
3490 (BREAKPOINT_FROM_PC): Define.
3491 (BREAKPOINT): Delete macro.
3492 * target.h: Update comment.
3493 * s390-tdep.c (s390_gdbarch_init): Update comments.
3494 * remote.c: Update comments.
3495 * remote-mips.c: Update comments.
3496 * proc-api.c (write_with_trace): Do not check for a breakpoint.
3497 * mem-break.c: Update comment.
3498 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
3499 (ia64_memory_insert_breakpoint): Update.
3500 * config/sparc/tm-sparc.h: Update comment.
3501 * config/pa/tm-hppa64.h: Update comment.
3502 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
3503 (rs6000_breakpoint_from_pc): Update.
3504 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
3505 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
3506 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
3507 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
3508 (mips_breakpoint_from_pc): Update.
3509 (mips_dump_tdep): Update.
3511 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
3512 * minsyms.c (lookup_minimal_symbol): Inline
3513 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
3515 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
3516 * p-valprint.c (pascal_object_print_value_fields): Ditto.
3517 * p-lang.c (pascal_printstr): Ditto.
3518 * objc-lang.c (objc_printstr): Ditto.
3519 * m2-lang.c (m2_printstr): Ditto.
3520 * jv-valprint.c (java_print_value_fields): Ditto.
3521 * f-lang.c (f_printstr): Ditto.
3522 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
3523 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
3524 for repeat_count_threshold.
3525 * Makefile.in (cp-valprint.o): Update dependencies.
3527 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
3529 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
3530 (examine_prologue): Support looking through leaf functions, knowing
3531 they start with mov r2,r12. Support skipping over indirect stores
3532 of the input registers. Upon hitting a non-nop branch instruction
3533 or predicated instruction, bail out by setting lim_pc to the current
3534 pc value in the loop. At the end, if the lim_pc value is still
3535 beyond our calculated value and we have trust_limit set,
3536 use the lim_pc value.
3538 2003-05-15 Andrew Cagney <cagney@redhat.com>
3540 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
3541 generic_find_dummy_frame.
3542 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
3543 (deprecated_generic_find_dummy_frame): Update.
3544 (deprecated_read_register_dummy): Update.
3545 * frame.c (deprecated_generic_get_saved_register): Update.
3547 2003-05-15 Theodore A. Roth <troth@openavr.org>
3549 * avr-tdep.c (avr_breakpoint_from_pc): New function.
3550 (avr_gdbarch_init): Set breakpoint_from_pc method.
3552 2003-05-15 Andrew Cagney <cagney@redhat.com>
3554 * regcache.c (build_regcache): Set deprecated_register_valid
3556 (deprecated_grub_regcache_for_register_valid): Delete function.
3557 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
3560 2003-05-15 David Carlton <carlton@bactrian.org>
3562 Committed by Elena Zannoni <ezannoni@redhat.com>
3563 * symtab.c (lookup_symbol_aux): Delete calls to
3564 lookup_symbol_aux_minsyms.
3565 (lookup_symbol_aux_minsyms): Comment out function and
3566 prototype. Delete lookup by mangled name.
3568 2003-05-14 Kevin Buettner <kevinb@redhat.com>
3570 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
3571 correctly indicate an empty stack and ``stack_allocated'' to the
3572 indicate the number of elements initially allocated.
3573 (dwarf_expr_grow_stack): Simplify method for computing new
3574 stack size. Don't loop infinitely if ``stack_len'' is zero.
3575 (execute_stack_op): Move ``ctx->in_reg'' initialization
3576 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
3577 be used in conjuction with DW_OP_piece. Revise error message
3580 2003-05-14 Theodore A. Roth <troth@openavr.org>
3582 * MAINTAINERS: Update my email address.
3583 * avr-tdep.c: Ditto.
3585 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
3587 * symtab.h (enum domain_enum): Rename from namespace_enum.
3588 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
3589 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
3590 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
3591 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
3592 TYPES_NAMESPACE, METHODS_NAMESPACE.
3593 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
3594 (struct symbol, struct partial_symbol): Rename field
3595 'namespace_enum namespace' to 'domain_enum domain'.
3596 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
3597 Delete old define kludge for namespace.
3599 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
3600 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
3601 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
3602 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
3603 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
3604 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
3605 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
3606 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
3607 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
3608 occurrences of the above.
3610 2003-05-14 Ian Lance Taylor <ian@airs.com>
3612 * Makefile.in (install-only): Use $(SHELL) when running
3615 2003-05-13 Ian Lance Taylor <ian@airs.com>
3617 * MAINTAINERS (write after approval): Add myself.
3619 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
3620 second and third arguments.
3621 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3622 * ser-unix.c (_initialize_ser_hardwire): Likewise.
3624 2003-05-13 Andrew Cagney <cagney@redhat.com>
3626 * defs.h (store_address): Delete declaration.
3627 findvar.c (store_address): Delete function.
3628 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
3629 store_unsigned_integer.
3630 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
3631 * v850-tdep.c (v850_push_arguments): Ditto.
3632 * sparc-tdep.c (sparc_get_saved_register): Ditto.
3633 * sh-tdep.c (sh64_get_saved_register): Ditto.
3634 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
3635 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
3636 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
3637 (mips_get_saved_register): Ditto.
3638 * ia64-tdep.c (ia64_get_saved_register): Ditto.
3639 (find_func_descr, ia64_push_arguments): Ditto.
3640 * i386-tdep.c (i386_push_arguments): Ditto.
3641 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
3642 * frv-tdep.c (frv_push_arguments): Ditto.
3643 * frame.c (legacy_saved_regs_prev_register): Ditto.
3644 (deprecated_generic_get_saved_register): Ditto.
3645 * findvar.c (unsigned_address_to_pointer): Ditto.
3646 * dwarf2read.c (dwarf2_const_value): Ditto.
3647 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3648 * alpha-tdep.c (alpha_push_arguments): Ditto.
3650 2003-05-12 J. Brobecker <brobecker@gnat.com>
3652 * NEWS: Mention that the hppa-hpux port has been partially
3653 multiarched (32bit ABIT only, so far).
3655 2003-05-11 Andrew Cagney <cagney@redhat.com>
3657 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
3658 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
3659 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
3660 sim/testsuite/sim/arm/misaligned2.ms, and
3661 sim/testsuite/sim/arm/misaligned3.ms.
3662 * disasm.h (struct ui_file): Add opaque struct declaration.
3663 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
3664 * frame.h (struct ui_file): Ditto.
3666 2003-05-11 Mark Kettenis <kettenis@gnu.org>
3668 * value.h: Pretty print.
3670 2003-05-10 Mark Kettenis <kettenis@gnu.org>
3672 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
3674 2003-05-08 Andrew Cagney <cagney@redhat.com>
3676 * regcache.h (max_register_size): Delete declaration.
3677 * regcache.c (max_register_size): Delete function.
3678 (struct regcache_descr): Delete field "max_register_size".
3679 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
3680 registers fit in MAX_REGISTER_SIZE.
3681 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
3682 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
3683 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
3684 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
3685 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
3686 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
3687 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
3688 * dve3900-rom.c, hppa-tdep.c: Ditto.
3690 2003-05-08 David Carlton <carlton@math.stanford.edu>
3692 * valops.c (push_word): Fix typo.
3694 2003-05-08 Andrew Cagney <cagney@redhat.com>
3696 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
3697 * gdbarch.h: Re-generate.
3698 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
3699 (legacy_max_register_raw_size): Delete declaration.
3700 * regcache.c (legacy_max_register_raw_size): Delete function.
3701 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
3702 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
3703 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
3704 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
3705 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
3706 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
3707 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
3708 * findvar.c, dwarf2cfi.c: Ditto.
3710 2003-05-08 Andrew Cagney <cagney@redhat.com>
3712 * mips-tdep.c (read_signed_register): New function, moved to here
3714 (read_signed_register_pid): Ditto.
3715 * regcache.c (read_signed_register_pid): Delete function, moved to
3717 (read_signed_register): Ditto.
3718 * regcache.h (read_signed_register): Delete declaration.
3719 (read_signed_register_pid): Delete declaration.
3721 2003-05-08 Andrew Cagney <cagney@redhat.com>
3723 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
3724 * gdbarch.h: Re-generate.
3725 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
3726 (legacy_max_register_virtual_size): Delete declaration.
3727 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
3728 * d10v-tdep.c (d10v_print_registers_info): Ditto.
3729 * tracepoint.c (memrange_sortmerge): Ditto.
3730 * sparc-tdep.c (sparc_print_registers): Ditto.
3731 * regcache.c (legacy_max_register_virtual_size): Delete function.
3733 2002-05-08 J. Brobecker <brobecker@gnat.com>
3735 * fork-child.c (escape_bang_in_quoted_argument): New function.
3736 (fork_inferior): Escape '!' characters in quoted arguments
3739 2003-05-08 J. Brobecker <brobecker@gnat.com>
3741 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
3742 the language of the CU is not currently supported by GDB.
3744 2003-05-08 J. Brobecker <brobecker@gnat.com>
3746 * defs.h (language): Add language_minimal enum value.
3747 * c-lang.c (minimal_language_defn): New language definition.
3748 (_initialize_c_language): Add the new minimal language to the list
3749 of languages known to GDB.
3751 2003-05-08 Kevin Buettner <kevinb@redhat.com>
3753 * frame.c (get_frame_type): Don't attempt to lazily initialize
3754 frame's unwinder for legacy frames.
3756 2003-05-07 Andrew Cagney <cagney@redhat.com>
3758 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
3759 and "regcache" parameters.
3760 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
3762 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
3764 * dwarf2read.c (dwarf_decode_lines): Only use output of
3765 check_cu_functions() when calling record_line(). Do not update
3766 the current address.
3768 2003-05-07 Andrew Cagney <cagney@redhat.com>
3770 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
3773 2003-05-07 Jim Blandy <jimb@redhat.com>
3775 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
3776 'maint info symtabs' and 'maint info psymtabs'.
3777 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
3778 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
3779 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
3780 Declarations updated.
3781 * maint.c (maintenance_list_command): Delete.
3782 (_initialize_maint_cmds): Update calls to add_cmd.
3783 * gdbcmd.h (maintenancelistlist): Delete declaration.
3784 * cli/cli-cmds.c (maintenancelistlist): Delete.
3785 (init_cmd_lists): Don't initialize it.
3786 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
3788 2003-05-07 Andrew Cagney <cagney@redhat.com>
3790 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
3792 (d10v_print_registers_info): Update.
3793 (d10v_dmap_register, d10v_imap_register): Delete functions.
3794 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
3795 and "imap_register".
3796 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
3797 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
3798 * arch-utils.c (generic_remote_translate_xfer_address): Add
3799 "regcache" and "gdbarch" parameters.
3800 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
3801 parameter. Change class to multi-arch.
3802 * gdbarch.h, gdbarch.c: Re-generate.
3803 * remote.c (remote_xfer_memory): Use
3804 gdbarch_remote_translate_xfer_address.
3806 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
3808 * infrun.c (prev_pc): Move declaration ahead of proceed().
3809 (proceed): Refresh prev_pc value before resuming.
3810 (stop_stepping): Remove code to refresh prev_pc.
3812 2003-05-06 Kris Warkentin <kewarken@qnx.com>
3814 * nto-tdep.c: Removed stray comment.
3816 2003-05-06 Kris Warkentin <kewarken@qnx.com>
3818 * i386-nto-tdep.c: Fix old K&R function definitions.
3819 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
3820 Also change add_show_from_set() call to add_setshow_cmd().
3821 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
3823 2003-05-05 Andrew Cagney <cagney@redhat.com>
3825 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
3826 (fprint_dummy_frames): New function.
3827 (maintenance_print_dummy_frames): New function.
3828 (_initialize_dummy_frame): Add command "maint print dummy-frames".
3829 * frame.c (fprint_frame_id): Make global.
3830 * frame.h (fprint_frame_id): Declare.
3831 * Makefile.in (dummy-frame.o): Update dependencies.
3833 2003-05-05 Andrew Cagney <cagney@redhat.com>
3835 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
3836 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
3837 SIZEOF_CALL_DUMMY_WORDS.
3838 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
3839 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
3840 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
3841 CALL_DUMMY_BREAKPOINT_OFFSET.
3842 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
3843 CALL_DUMMY_START_OFFSET.
3844 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
3845 * gdbarch.h, gdbarch.c: Re-generate.
3846 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
3847 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
3848 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
3849 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
3850 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
3851 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
3852 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
3853 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
3854 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
3855 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
3856 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
3857 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
3858 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
3859 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
3860 * config/sparc/tm-sparc.h: Update.
3862 2003-05-05 Kris Warkentin <kewarken@qnx.com>
3864 * configure.tgt: Add i[3456]86-*-nto*.
3865 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
3866 * nto-tdep.c: New file. Neutrino target support routines.
3867 * nto-tdep.h: New file. Neutrino target header.
3868 * config/tm-qnxnto.h: New file.
3869 * config/i386/i386nto.mt: New file.
3870 * config/i386/tm-i386nto.h: New file.
3872 2003-05-04 Andrew Cagney <cagney@redhat.com>
3874 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
3875 (load_infrun_state): Ditto.
3876 (struct thread_info): Drop "prev_func_name" field.
3877 * thread.c (load_infrun_state): Update.
3878 (save_infrun_state): Update.
3879 * infrun.c (prev_func_name): Delete variable.
3880 (init_wait_for_inferior): Do not clear prev_func_name.
3881 (stop_stepping, keep_going, context_switch): Do not swap
3883 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
3884 instead of PC_IN_SIGTRAMP.
3886 2003-05-04 Andrew Cagney <cagney@redhat.com>
3888 * sentinel-frame.c (sentinel_frame_prev_register): Replace
3889 REGISTER_BYTE with register_offset_hack.
3890 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
3891 that REGISTER_BYTE is consistent with the regcache.
3892 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
3893 * gdbarch.h, gdbarch.c: Regenerate.
3895 2003-05-04 Mark Kettenis <kettenis@gnu.org>
3897 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
3898 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
3900 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
3902 2003-05-03 J. Brobecker <brobecker@gnat.com>
3904 From Thierry Schneider <tpschneider1@yahoo.com>
3905 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
3906 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
3907 (mi-cmd-symbol.o): Add rule.
3909 2003-05-03 Andrew Cagney <cagney@redhat.com>
3911 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
3912 comments noteing that it replaces the old FIX_CALL_DUMMY code.
3913 * gdbarch.h, gdbarch.c: Re-generate.
3914 * d10v-tdep.c (d10v_push_dummy_code): New function.
3915 (d10v_gdbarch_init): Set push_dummy_code.
3916 * infcall.c (legacy_push_dummy_code): New function.
3917 (generic_push_dummy_code): New function.
3918 (push_dummy_code): New function.
3919 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
3920 instead of dummy_addr, to push_dummy_call. Move call to
3921 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
3923 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
3925 2003-05-03 Andrew Cagney <cagney@redhat.com>
3927 * disasm.h (print_insn): Declare.
3928 * disasm.c (init_gdb_disassemble_info): New function.
3929 (gdb_disassembly): Call init_gdb_disassemble_info.
3930 (gdb_print_insn): New function.
3931 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
3932 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
3933 * mcore-tdep.c: Include "disasm.h"
3934 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
3935 * d10v-tdep.c: Include "disasm.h".
3936 (display_trace): Call gdb_print_insn, instead of print_insn.
3937 (print_insn): Delete function.
3938 * printcmd.c: Include "disasm.h".
3939 (print_insn): Delete function.
3940 (print_formatted): Call gdb_print_insn, instead of print_insn.
3941 * Makefile.in (printcmd.o): Update dependencies.
3942 (mcore-tdep.o, d10v-tdep.o): Ditto.
3944 2003-05-02 Andrew Cagney <cagney@redhat.com>
3946 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
3947 PC_REGNUM, re-indent.
3948 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
3949 PC_REGNUM isn't set.
3951 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
3952 * gdbarch.h, gdbarch.c: Re-generate.
3953 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
3954 register_virtual_size, pc_regnum, or register_bytes.
3955 (D10V_PC_REGNUM): Rename _PC_REGNUM.
3956 (d10v_register_type): Use D10V_PC_REGNUM.
3957 (d10v_print_registers_info, d10v_read_pc): Ditto.
3958 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
3959 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
3961 2003-05-02 David Carlton <carlton@bactrian.org>
3963 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
3964 the name with mstrsave.
3966 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
3968 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
3969 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
3970 (host_charset_name, target_charset_name): New vars for use by
3972 (host_charset_enum, target_charset_enum): New enums for set/show
3974 (set_charset_sfunc, set_host_charset_sfunc,
3975 set_target_charset_sfunc): New functions.
3976 (set_host_charset, set_target_charset): Make static.
3977 (list_charsets, set_host_charset_command,
3978 set_target_charset_command): Delete functions.
3979 (show_charset_command): Rewrite as....
3980 (show_charset): Hook this up with the set/show command mechanism.
3981 (_initialize_charset): Change names of charsets to match the
3982 set/show enums. Use host_charset_name and target_charset_name.
3983 Use set/show mechanism for charset, host-charset, target-charset
3984 commands. Do not make 'show host-charset' and 'show
3985 target-charset' be aliases of 'show charset'.
3987 * charset.h (set_host_charset, set_target_charset): Don't export,
3988 they are not used outside the file.
3990 2003-05-01 Andrew Cagney <cagney@redhat.com>
3992 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
3993 (gdb_disassembly): Make "di" non static, always initialize and
3994 cleanup. Always use dis_asm_read_memory.
3995 (gdb_dis_asm_read_memory): Delete function.
3997 2003-05-01 Andrew Cagney <cagney@redhat.com>
3999 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
4000 (d10v_gdbarch_init): Set frame_align instead of stack_align.
4002 2003-04-30 Andrew Cagney <cagney@redhat.com>
4004 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
4005 "tm_print_insn_info".
4006 (TARGET_PRINT_INSN_INFO): Delete macro.
4007 (dis_asm_read_memory): Delete function declaration.
4008 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4009 (tm_print_insn_info): Delete variable definition.
4010 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
4011 * gdbarch.h, gdbarch.c: Re-generate.
4012 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
4013 "deprecated_tm_print_insn_info".
4014 * mcore-tdep.c (mcore_dump_insn): Ditto.
4015 * mips-tdep.c (mips_gdbarch_init): Ditto.
4016 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
4017 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
4018 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
4019 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
4020 instead of TARGET_PRINT_INSN_INFO, add comment.
4021 * s390-tdep.c (s390_get_frame_info): Instead of
4022 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
4023 (s390_check_function_end, s390_is_sigreturn): Ditto.
4024 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
4025 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4026 * disasm.c: Include "gdbcore.h".
4027 (_initialize_disasm): New function, initialize
4028 "deprecated_tm_print_insn_info".
4029 (deprecated_tm_print_insn_info): New variable.
4030 (dis_asm_read_memory): Moved from "corefile.c", made static.
4031 (dis_asm_print_address, dis_asm_memory_error): Ditto.
4032 * Makefile.in (disasm.o): Update dependencies.
4034 2003-04-30 Andrew Cagney <cagney@redhat.com>
4036 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
4038 2003-04-29 Adam Fedor <fedor@gnu.org>
4040 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
4041 * infcall.c (find_function_addr): Make non-static.
4042 * infcall.h (find_function_addr): Declare.
4043 * Makefile.in (eval.o): Update dependencies.
4045 2003-04-28 Adam Fedor <fedor@gnu.org>
4047 * symtab.c (symbol_find_demangled_name): Check for and demangle
4049 (symbol_init_demangled_name): Init for language_objc as well.
4051 2003-04-28 Andrew Cagney <cagney@redhat.com>
4053 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
4054 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
4055 * gdbarch.h, gdbarch.c: Re-generate.
4056 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
4057 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
4058 * inferior.h (deprecated_read_fp): Rename read_fp.
4059 (generic_target_read_fp): Delete declaration.
4060 * regcache.c (generic_target_read_fp): Delete function.
4061 (deprecated_read_fp): Replace read_fp, use
4062 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
4063 * d10v-tdep.c (d10v_read_fp): Delete function.
4064 (d10v_gdbarch_init): Do not set deprecated_read_fp.
4066 * sparc-tdep.c (sparc_gdbarch_init): Do not set
4067 deprecated_target_read_fp to generic_target_read_fp.
4068 * sh-tdep.c (sh_gdbarch_init): Ditto.
4069 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4070 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4071 * frv-tdep.c (frv_gdbarch_init): Ditto.
4073 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
4074 deprecated_fp_regnum.
4075 * x86-64-tdep.c (x86_64_init_abi): Ditto.
4076 * vax-tdep.c (vax_gdbarch_init): Ditto.
4077 * v850-tdep.c (v850_gdbarch_init): Ditto.
4078 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4079 * sh-tdep.c (sh_gdbarch_init): Ditto.
4080 * s390-tdep.c (s390_gdbarch_init): Ditto.
4081 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4082 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4083 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4084 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4085 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4086 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4087 * i386-tdep.c (i386_gdbarch_init): Ditto.
4088 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4089 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4090 * frv-tdep.c (frv_gdbarch_init): Ditto.
4091 * cris-tdep.c (cris_gdbarch_init): Ditto.
4092 * avr-tdep.c (avr_gdbarch_init): Ditto.
4093 * arm-tdep.c (arm_gdbarch_init): Ditto.
4094 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4096 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
4097 * v850-tdep.c (v850_gdbarch_init): Ditto.
4098 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4099 * sh-tdep.c (sh_gdbarch_init): Ditto.
4100 * s390-tdep.c (s390_gdbarch_init): Ditto.
4101 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4102 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4103 * mips-tdep.c (mips_gdbarch_init): Ditto.
4104 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4105 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4106 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4107 * frv-tdep.c (frv_gdbarch_init): Ditto.
4108 * avr-tdep.c (avr_gdbarch_init): Ditto.
4109 * arm-tdep.c (arm_gdbarch_init): Ditto.
4111 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
4112 DEPRECATED_FP_REGNUM.
4113 (vax_push_dummy_frame, vax_pop_frame): Ditto.
4114 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
4115 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
4116 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
4117 (sparc32_register_virtual_type): Ditto.
4118 * sh-tdep.c (sh64_frame_chain): Ditto.
4119 (sh64_get_saved_register, sh64_pop_frame): Ditto.
4120 (sh_nofp_frame_init_saved_regs): Ditto.
4121 (sh64_nofp_frame_init_saved_regs): Ditto.
4122 (sh_fp_frame_init_saved_regs): Ditto.
4123 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4124 * remote-e7000.c (fetch_regs_from_dump): Ditto.
4125 * procfs.c (procfs_fetch_registers): Ditto.
4126 (procfs_store_registers): Ditto.
4127 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
4128 (store_inferior_registers, fetch_core_registers): Ditto.
4129 (fetch_kcore_registers, clear_regs): Ditto.
4130 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
4131 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
4132 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
4133 * nlm/i386.c (do_status): Ditto.
4134 * mipsv4-nat.c (supply_gregset): Ditto.
4135 * mips-tdep.c: Ditto for comments.
4136 * mips-nat.c (fetch_inferior_registers): Ditto.
4137 (store_inferior_registers, fetch_core_registers): Ditto.
4138 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
4139 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
4140 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
4141 (i386_do_pop_frame, i386_register_type): Ditto.
4142 * hppa-tdep.c (hppa_frame_chain): Ditto.
4143 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
4144 (hppa_pop_frame, hppa_read_fp): Ditto.
4145 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
4146 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
4147 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
4148 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
4149 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
4150 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
4151 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
4152 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
4153 * blockframe.c: Ditto for comments.
4154 * arch-utils.h: Ditto for comments.
4155 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
4156 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
4157 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
4158 * alpha-tdep.h: Ditto for comments.
4159 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
4160 (alpha_cannot_store_register): Ditto.
4161 (alpha_push_dummy_frame): Ditto.
4162 * alpha-nat.c (supply_gregset): Ditto.
4164 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
4165 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
4166 * config/sparc/tm-sparc.h: Update comment.
4168 * hppa-tdep.c (hppa_init_extra_frame_info): Use
4169 deprecated_read_fp instead of TARGET_READ_FP.
4170 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
4171 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
4172 * sparc-tdep.c (sparc_init_extra_frame_info): Use
4173 deprecated_read_fp instead of read_fp.
4174 * s390-tdep.c (s390_push_arguments): Ditto.
4175 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4176 * frame.h: Ditto in comments.
4177 * frame.c (legacy_get_prev_frame): Ditto.
4178 * dummy-frame.c (dummy_frame_this_id): Ditto.
4179 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
4181 2003-04-28 Andrew Cagney <cagney@redhat.com>
4183 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
4184 * gdbarch.h, gdbarch.c: Re-generate.
4185 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
4186 * vax-tdep.c (_initialize_vax_tdep): Update.
4187 * v850-tdep.c (_initialize_v850_tdep): Update.
4188 * sparc-tdep.c (_initialize_sparc_tdep): Update.
4189 * s390-tdep.c (_initialize_s390_tdep): Update.
4190 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
4191 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
4192 * mips-tdep.c (_initialize_mips_tdep): Update.
4193 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4194 * m68k-tdep.c (_initialize_m68k_tdep): Update.
4195 * ia64-tdep.c (_initialize_ia64_tdep): Update.
4196 * hppa-tdep.c (_initialize_hppa_tdep): Update.
4197 * h8300-tdep.c (_initialize_h8300_tdep): Update.
4198 * frv-tdep.c (_initialize_frv_tdep): Update.
4199 * cris-tdep.c (cris_delayed_get_disassembler): Update.
4200 (_initialize_cris_tdep): Update.
4201 * arch-utils.c (legacy_print_insn): Update.
4202 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4204 2003-04-26 Adam Fedor <fedor@gnu.org>
4206 * linespec.c (decode_objc): New function to decode ObjC calls
4207 (decode_line_1): Check for ObjC calls (using decode_objc)
4208 * Makefile (linespec.o): Update dependencies.
4210 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
4212 * breakpoint.h (struct breakpoint_ops): New.
4213 (struct breakpoint): Add ops member.
4215 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
4216 (mention): Use new breakpoint ops member.
4217 (set_raw_breakpoint): Initialize ops field to NULL.
4218 (print_exception_catchpoint, print_one_exception_catchpoint)
4219 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
4220 (gnu_v3_exception_catchpoint_ops): New.
4221 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
4223 2003-04-25 Adam Fedor <fedor@gnu.org>
4225 * Makefile.in (COMMON_OBS): Add objc-lang.o
4227 2003-04-25 Andrew Cagney <cagney@redhat.com>
4229 * d10v-tdep.c (print_insn): Delete function.
4230 (display_trace): Use TARGET_PRINT_INSN.
4231 (_initialize_d10v_tdep): Do not set tm_print_insn.
4232 (d10v_gdbarch_init): Set print_insn.
4234 2003-04-25 Andrew Cagney <cagney@redhat.com>
4236 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
4237 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
4238 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
4239 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
4240 (nr_dmap_regs, a0_regnum): ... new functions.
4241 (d10v_print_registers_info): Use a0_regnum, use register_size.
4242 (d10v_register_byte): Delete function.
4243 (d10v_register_raw_size): Delete function.
4244 (d10v_register_type): Use a0_regnum.
4245 (d10v_print_registers_info): Use a0_regnum.
4246 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
4247 (d10v_gdbarch_init): Do not set register_byte or
4248 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
4249 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
4251 (trace_command): Use XCALLOC.
4252 (print_insn): Delete reference to tm_print_insn.
4253 (saved_regs_unwinder): Use store_unsigned_integer instead of
4255 * frame.h (FRAME_OBSTACK_CALLOC): Define
4257 2003-04-25 David Carlton <carlton@bactrian.org>
4259 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
4261 2003-04-24 Adam Fedor <fedor@gnu.org>
4263 * objc-lang.c: Include "valprint.h"
4264 * Makefile.in (objc-lang.o): Update dependencies.
4266 2003-04-24 Adam Fedor <fedor@gnu.org>
4268 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
4269 architecture dependant compilation and mark as unimplemented
4270 (until they get put in the gdbarch vector).
4272 2003-04-23 David Carlton <carlton@bactrian.org>
4274 * cp-support.c (cp_find_first_component): Accept 'operator' in
4277 2003-04-23 Andrew Cagney <cagney@redhat.com>
4279 * infcall.c (call_function_by_hand): Eliminate redundant
4280 indentation. Move "saved_async" and "old_cleanups" to where they
4283 2003-04-23 Andrew Cagney <cagney@redhat.com>
4285 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
4286 and "buffer". Move the "name" code to where it is needed.
4288 2003-04-23 Andrew Cagney <cagney@redhat.com>
4290 * infcall.c (call_function_by_hand): Move variables "start_sp",
4291 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
4292 code to ON_STACK switch branch.
4294 2003-04-23 Andrew Cagney <cagney@redhat.com>
4296 * infcall.c (call_function_by_hand): Make declaration of "i",
4297 "sal", "bpt" and "old_sp" more local to their use. Delete #if
4300 2003-04-23 Andrew Cagney <cagney@redhat.com>
4302 * infcall.c (call_function_by_hand): Delete variable
4303 "n_method_args". Localize "param_type"'s declaration to the loop
4304 that it is used. Reinstate code assigning to said variable -
4305 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
4306 Rationalize code using "param_type".
4308 2003-04-22 Andrew Cagney <cagney@redhat.com>
4310 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
4311 compute the breakpoint address. Only call FIX_CALL_DUMMY when
4312 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
4313 to DEPRECATED_PUSH_RETURN_ADDRESS.
4315 2003-04-22 Kevin Buettner <kevinb@redhat.com>
4317 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
4318 on the DWARF2 register number prior to fetching a register.
4320 2003-04-22 J. Brobecker <brobecker@gnat.com>
4322 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
4323 Update all the tests using SOFT_FLOAT considering the fact that
4324 this macro was always set to 0.
4325 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
4326 considering the fact that this macro was always set to 0.
4327 * hppa-tdep.h (hppa_store_return_value): Likewise.
4328 (hppa_extract_return_value): Likewise.
4330 2003-04-22 J. Brobecker <brobecker@gnat.com>
4332 * config/pa/tm-hppa.h: Remove obsolete code, was used by
4333 the hppa-pro target only.
4335 2003-04-21 J. Brobecker <brobecker@gnat.com>
4337 Ongoing multi-arch conversion effort for HP/UX:
4338 * config/pa/tm-hppa.h: Move all macro that are no longer
4339 defined now that GDB_MULTI_ARCH is now set to 1 from here...
4340 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
4342 2003-04-21 J. Brobecker <brobecker@gnat.com>
4344 * config/pa/tm-hppa.h: Obsolete a section that was only used
4347 2003-04-21 J. Brobecker <brobecker@gnat.com>
4349 Ongoing multi-arch conversion for HP/UX.
4350 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
4351 if already defined (allows hppa64 to stay non-multiarched for now).
4352 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
4354 2003-04-21 Andrew Cagney <cagney@redhat.com>
4356 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
4358 2003-04-21 Andrew Cagney <cagney@redhat.com>
4360 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
4361 "i386_num_mmx_regs".
4363 2003-04-21 Andrew Cagney <cagney@redhat.com>
4365 * infcall.c: New file.
4366 * infcall.h: New file.
4367 * valarith.c: Include "infcall.h".
4368 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
4369 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
4370 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
4371 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
4372 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
4373 (SFILES): Add "infcall.c"
4374 (COMMON_OBS): Add "infcall.o".
4375 (infcall.o): Specify dependencies.
4376 * value.h (call_function_by_hand): Delete declaration.
4377 * inferior.h (run_stack_dummy): Delete declaration.
4378 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
4379 (run_stack_dummy): Move to "infcall.c", merged into
4380 call_function_by_hand.
4381 * valops.c (call_function_by_hand): Moved to "infcall.c".
4382 (find_function_addr, value_arg_coerce): Ditto.
4383 (unwindonsignal_p, coerce_float_to_double): Ditto.
4384 (_initialize_valops): Move "set/show coerce-float-to-double", and
4385 "set/show unwindonsignal" commands to "infcall.c".
4386 * v850-tdep.c, target.h: Update comments.
4387 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
4388 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
4389 (sh64_init_extra_frame_info): Update comments.
4390 * mn10300-tdep.c: Update comments.
4391 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
4392 * config/sparc/tm-sparc.h: Update comments.
4393 * breakpoint.h: Update comments.
4394 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
4395 * arm-tdep.c: Update comment.
4397 2003-04-19 Mark Kettenis <kettenis@gnu.org>
4399 * i386-tdep.c (i386_num_register_names): New variable.
4400 (i386_num_mmx_regs): Renamed from mmx_num_regs.
4401 (MM0_REGNUM): Remove redundant parentheses in define.
4402 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
4403 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
4404 i386_mxcsr_regnum_p): Remove redundant parentheses.
4405 (i386_register_name): Use i386_num_register_names.
4407 * i386-tdep.c (i386_extract_return_value,
4408 i386_store_return_value): Correct check for availability of
4409 floating-point registers.
4411 * i386-tdep.c (i386_frame_num_args): Remove function.
4412 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
4414 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
4415 mmx_regnum_to_fp_regnum. Adjust all callers.
4417 * i386-tdep.c (i386_get_longjmp_target): Use
4418 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
4419 and TARGET_CHAR_BIT. Use extract_typed_address instead of
4422 2003-04-19 Mark Kettenis <kettenis@gnu.org>
4424 * core-regset.c: Update comments to reflect reality. Re-order
4426 (fetch_core_registers): Use switch instead of if. Remove
4427 redundant prototype.
4429 2003-04-18 Jim Blandy <jimb@redhat.com>
4431 * s390-tdep.c (s390_frame_align): New function.
4432 (s390_gdbarch_init): Register it with the gdbarch object.
4434 2003-04-17 Richard Henderson <rth@redhat.com>
4436 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
4438 2003-04-17 Michael Snyder <msnyder@redhat.com>
4439 Karen Bennet <bennet@redhat.com>
4441 Committed by Elena Zannoni <ezannoni@redhat.com>
4442 * gdb_gcore.sh: New script to create a core dump of a process.
4444 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
4446 * values.c (value_being_returned): Don't fetch the return
4447 value if the return type is void.
4449 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
4451 * thread-db.c: Reindented.
4453 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
4455 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
4456 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
4483 2003-04-16 Kevin Buettner <kevinb@redhat.com>
4485 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
4486 the size of ``long double'' to 16, instead of 8.
4488 2003-04-16 Mark Kettenis <kettenis@gnu.org>
4490 * i386-linux-nat.c: Add some whitespace to make things more
4492 (fetch_register, store_register, fetch_inferior_registers,
4493 store_inferior_registers): Get rid of assignment in if-statement.
4494 (store_register): Fix typo in error message.
4496 2003-04-16 Andrew Cagney <cagney@redhat.com>
4498 * utils.c (xmmalloc): Always allocate something, matches
4499 libiberty/xmalloc's semantics.
4500 (xmrealloc, xmcalloc): Ditto.
4502 2003-04-16 Andrew Cagney <cagney@redhat.com>
4504 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
4506 (get_frame_type): Initialize unwind and type when needed.
4507 (get_frame_id, frame_register_unwind): Ditto.
4509 2003-04-16 Andrew Cagney <cagney@redhat.com>
4511 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
4513 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
4514 * sparcl-stub.c: Obsolete file.
4515 * config/sparc/tm-sparclet.h: Obsolete file.
4516 * sparclet-stub.c: Obsolete file.
4517 * sparclet-rom.c: Obsolete file.
4518 * sparcl-tdep.c: Obsolete file.
4519 * config/sparc/tm-sparclite.h: Obsolete file.
4520 * config/sparc/sparclite.mt: Obsolete file.
4521 * config/sparc/sparclet.mt: Obsolete file.
4522 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
4523 sparc86x-*-* obsolete.
4525 2003-04-15 David Carlton <carlton@math.stanford.edu>
4527 * Makefile.in (SFILES): Add cp-namespace.c.
4528 (COMMON_OBS): Add cp-namespace.o.
4529 (block.o): Depend on gdb_obstack_h and cp_support_h.
4530 (buildsym.o): Depend on cp_support_h.
4531 (cp-namespace.o): New.
4532 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
4533 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
4534 (dwarf2read.o): Depend on cp_support_h.
4535 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
4536 * dwarf2read.c (process_die): Set processing_has_namespace_info,
4537 processing_current_namespace.
4538 (read_namespace): Update processing_current_namespace; check for
4539 anonymous namespaces.
4540 (dwarf2_name): New function.
4541 (dwarf2_extension): Ditto.
4542 * cp-support.h: Update copyright, contributors.
4543 Add inclusion guards.
4544 Add opaque declaration for structs obstack, block, symbol.
4545 (struct using_direct): New struct.
4546 Add declarations for cp_find_first_component,
4547 cp_entire_prefix_len, processing_has_namespace_info,
4548 processing_current_namespace, cp_is_anonymous,
4549 cp_add_using_directive, cp_initialize_namespace,
4550 cp_finalize_namespace, cp_set_block_scope,
4551 cp_scan_for_anonymous_namespaces.
4552 * cp-namespace.c: New file.
4553 * cp-support.c: Update copyright.
4554 Include ctype.h, gdb_assert.h, gdbcmd.h.
4555 New variable maint_cplus_cmd_list.
4556 (cp_find_first_component): New function.
4557 (cp_entire_prefix_len, maint_cplus_command)
4558 (first_component_command, _initialize_cp_support): Ditto.
4559 * buildsym.c: Include cp-support.h.
4560 New variable using_list.
4561 (add_symbol_to_list): Check for anonymous namespaces.
4562 (finish_block): Set block's scope.
4563 (start_symtab): Initialize C++ namespace support.
4564 (end_symtab): Finalize C++ namespace support.
4565 * block.h: Add opaque declarations for structs
4566 block_namespace_info, using_direct, and obstack.
4567 Add declarations for block_set_scope and block_set_using.
4568 (struct block): Add 'language_specific' member.
4569 (BLOCK_NAMESPACE): New macro.
4570 * block.c: Include gdb_obstack.h and cp-support.h.
4571 (struct block_namespace_info): New struct.
4572 (block_set_scope): New function.
4573 (block_set_using, block_initialize_namespace): Ditto.
4575 2003-04-14 Kevin Buettner <kevinb@redhat.com>
4577 * solib-svr4.c (svr4_have_link_map_offsets): New function.
4578 (locate_base): Return early if there aren't any link map offsets.
4579 (svr4_solib_create_inferior_hook): Warn if shared library support
4582 2003-04-14 David Carlton <carlton@math.stanford.edu>
4584 * symtab.c (symbol_set_names): Add prefix when storing Java names
4585 in hash table. Fix for PR java/1039.
4587 2003-04-14 David Carlton <carlton@math.stanford.edu>
4589 * symtab.c (symbol_set_names): Rename 'name' arg to
4590 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
4591 * symtab.h: Change 'name' argument in declaration of
4592 symbol_set_names to 'linkage_name'.
4593 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
4595 2003-04-14 Andrew Cagney <cagney@redhat.com>
4597 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
4598 return the fully sign-extended register value.
4599 (get_frame_pointer): Ditto.
4600 (mips_pop_frame): Initialize "proc_desc" after checking for a
4603 2003-04-14 Andrew Cagney <cagney@redhat.com>
4605 * mips-tdep.c (mips_push_dummy_frame): Delete function.
4606 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
4607 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
4608 (mips_push_register): Delete function.
4609 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
4612 2003-04-14 Jim Blandy <jimb@redhat.com>
4614 * symmisc.c: #include "gdb_regex.h".
4615 (maintenance_list_symtabs, maintenance_list_psymtabs): New
4617 * maint.c (maintenance_list_command): New function.
4618 (_initialize_maint_cmds): Register the above as commands.
4619 * symtab.h (maintenance_list_symtabs,
4620 maintenance_list_psymtabs): New declarations.
4621 * cli/cli-cmds.c (maintenancelistlist): New variable.
4622 (init_cmd_lists): Initialize it.
4623 * cli/cli-cmds.h (maintenancelistlist): New declaration.
4624 * gdbcmd.h (maintenancelistlist): New declaration.
4625 * Makefile.in (symmisc.o): Update dependencies.
4627 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
4629 * s390-nat.c: Include asm/types.h for addr_t.
4631 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
4633 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
4634 actually incoming type.
4636 2003-04-13 Andrew Cagney <cagney@redhat.com>
4638 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
4639 get_next_frame and get_frame_saved_regs.
4641 2003-04-13 Andrew Cagney <cagney@redhat.com>
4643 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
4644 of gdbarch_num_regs.
4646 2003-04-13 Andrew Cagney <cagney@redhat.com>
4648 * frame.h: Mention what replaced what in "struct frame_info".
4649 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
4650 deprecated_update_frame_base_hack and
4651 deprecated_update_frame_pc_hack.
4652 * hppa-tdep.c: Ditto.
4654 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
4656 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
4657 to read_reg and update its comment. Remove regnum member.
4658 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
4659 Don't call read_reg when setting in_reg. Call read_reg to get
4660 the frame base if it's in a register. Return the register number
4661 on the stack instead of in the context. Remove extra arguments
4663 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
4664 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
4665 the register number on the expression stack.
4666 (needs_frame_read_reg): Remove extra arguments.
4668 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
4670 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
4672 (execute_stack_op): All callers updated.
4673 * dwarf2expr.h: Add prototype for dwarf2_read_address.
4674 * dwarf2loc.c (find_location_expression): New function.
4675 (dwarf_expr_frame_base): Call it.
4676 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
4677 (dwarf2_tracepoint_var_ref): New function, broken out from
4678 locexpr_tracepoint_var_ref.
4679 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
4681 (loclist_read_variable, loclist_read_needs_frame): New functions.
4682 (loclist_describe_location, loclist_tracepoint_var_ref): New
4684 (dwarf2_loclist_funcs): New struct location_funcs.
4685 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
4686 (struct dwarf2_locexpr_baton): Add comments.
4687 (dwarf2_loclist_funcs): New extern.
4688 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
4689 base_address and base_known.
4690 (dwarf_loc_buffer): New variable.
4691 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
4692 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
4693 (dwarf2_has_info): Initialize dwarf_loc_offset.
4694 (dwarf2_build_psymtabs): Read in .debug_loc.
4695 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
4697 (psymtab_to_symtab_1): Likewise. Move base address calculation
4699 (dwarf2_get_pc_bounds): ... here. Use the base address from
4701 (dwarf2_symbol_mark_computed): Handle location lists.
4703 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
4705 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
4706 if the linkage name demangled successfully.
4708 2003-04-13 Mark Kettenis <kettenis@gnu.org>
4710 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
4711 disassmbly_flavour): Removed.
4713 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
4715 2003-04-13 Mark Kettenis <kettenis@gnu.org>
4717 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
4719 2003-04-12 Andrew Cagney <cagney@redhat.com>
4721 * frame.h (struct frame_info): Move definition from here ...
4722 * frame.c (struct frame_info): ... to here.
4724 2003-04-12 Andrew Cagney <cagney@redhat.com>
4726 * gdbthread.h (save_infrun_state): Delete parameter
4728 (struct thread_info): Delete field "prev_func_start".
4729 (load_infrun_state): Ditto.
4730 * thread.c (load_infrun_state, save_infrun_state): Update.
4731 * infrun.c (prev_func_start): Delete variable.
4732 (context_switch, init_wait_for_inferior): Update.
4733 (stop_stepping, keep_going): Update.
4735 2003-04-12 Andrew Cagney <cagney@redhat.com>
4737 * gdbarch.sh: Add missing opaque declarations.
4738 * gdbarch.h: Regnerate.
4739 * symtab.h: Add missing opaque declarations.
4740 * value.h, target.h, symfile.h, stabsread.h: Ditto.
4741 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
4742 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
4743 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
4744 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
4745 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
4746 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
4747 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
4748 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
4749 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
4750 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
4751 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
4752 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
4754 2003-04-11 Andrew Cagney <cagney@redhat.com>
4756 * frame.c (get_frame_id): Return this frame's "id".
4757 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
4759 (legacy_saved_regs_this_id): Replace function body with
4761 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
4762 FRAME_OBSTACK_ZALLOC.
4763 (create_new_frame): Mark the frame ID as valid.
4765 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
4767 * Makefile.in (libbfd_h): Added missing setting.
4768 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
4769 according to the selected ABI.
4771 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
4773 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
4775 2003-04-11 Andrew Cagney <cagney@redhat.com>
4777 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
4778 SAVED_PC_AFTER_CALL.
4779 * gdbarch.h, gdbarch.c: Regenerate.
4780 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4781 * x86-64-tdep.c (x86_64_init_abi): Update.
4782 * vax-tdep.c (vax_gdbarch_init): Update.
4783 * v850-tdep.c (v850_gdbarch_init): Update.
4784 * sparc-tdep.c (sparc_gdbarch_init): Update.
4785 * sh-tdep.c (sh_gdbarch_init): Update.
4786 * s390-tdep.c (s390_gdbarch_init): Update.
4787 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4788 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4789 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4790 * mips-tdep.c (mips_gdbarch_init): Update.
4791 * mcore-tdep.c (mcore_gdbarch_init): Update.
4792 * m68k-tdep.c (m68k_gdbarch_init): Update.
4793 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4794 * ia64-tdep.c (ia64_gdbarch_init): Update.
4795 (ia64_saved_pc_after_call): Update declaration.
4796 * i386ly-tdep.c (i386lynx_init_abi): Update.
4797 * i386-tdep.c (i386_gdbarch_init): Update.
4798 * hppa-tdep.c (hppa_gdbarch_init): Update.
4799 * h8300-tdep.c (h8300_gdbarch_init): Update.
4800 * frv-tdep.c (frv_gdbarch_init): Update.
4801 * cris-tdep.c (cris_gdbarch_init): Update.
4802 * avr-tdep.c (avr_gdbarch_init): Update.
4803 * arm-tdep.c (arm_gdbarch_init): Update.
4804 * alpha-tdep.c (alpha_gdbarch_init): Update.
4805 * ns32knbsd-nat.c (frame_num_args): Update.
4806 * ns32k-tdep.c (umax_frame_num_args): Update.
4807 * mips-tdep.c (mips_init_frame_pc_first): Update.
4808 * infrun.c (step_over_function): Update.
4809 * i386-linux-tdep.c (skip_hurd_resolver): Update.
4810 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
4811 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
4812 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4813 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4814 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
4815 * arm-linux-tdep.c (skip_hurd_resolver): Update.
4816 * arch-utils.c (init_frame_pc_default): Update.
4817 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
4818 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
4821 2003-04-11 Andrew Cagney <cagney@redhat.com>
4823 * i387-tdep.c: Update copyright.
4824 (i387_to_double): Delete function.
4825 (double_to_i387): Delete function.
4827 2003-04-10 Andrew Cagney <cagney@redhat.com>
4829 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
4830 frame's function's address. Simplify.
4831 (d10v_frame_unwind_cache): Check that the frame's function is
4834 2003-04-10 Jim Blandy <jimb@redhat.com>
4836 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
4837 call to set_gdbarch_deprecated_push_arguments.
4839 2003-04-10 Andrew Cagney <cagney@redhat.com>
4841 * frame.c (fprint_frame_id): New function.
4842 (fprint_frame_type, fprint_frame): New function.
4843 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
4844 (create_sentinel_frame, get_frame_id): Ditto.
4845 (frame_id_p, frame_id_eq): Ditto.
4846 (frame_id_inner, create_new_frame): Ditto.
4847 (legacy_get_prev_frame, get_prev_frame): Ditto.
4848 (deprecated_update_frame_pc_hack): Ditto.
4849 (frame_register_unwind): Ditto.
4850 (deprecated_update_frame_base_hack): Ditto.
4852 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
4854 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
4855 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
4856 frame_chain function.
4857 * Makefile.in: Add dependencies due to above change.
4859 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
4861 * blockframe.c (legacy_frame_chain_valid): Move call to
4862 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
4865 2003-04-09 Andrew Cagney <cagney@redhat.com>
4867 * frame.h (struct frame_id): Replace "pc" and "base" with
4868 "stack_addr" and "code_addr". Update comments.
4869 (frame_id_build): Update parameter names and comment.
4870 (struct frame_info): Replace "id_p" and "id" with "this_id".
4871 * dummy-frame.c (dummy_frame_this_id): Update.
4872 * breakpoint.c (print_one_breakpoint): Update.
4873 * frame.c (get_frame_id): Update.
4874 (get_frame_base, frame_id_build): Update.
4875 (create_sentinel_frame, legacy_get_prev_frame): Update.
4876 (deprecated_update_frame_base_hack): Update.
4877 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
4878 (frame_id_inner): Ditto.
4880 2003-04-09 Andrew Cagney <cagney@redhat.com>
4882 * defs.h (gdb_print_host_address): Make "addr" parameter a
4884 * utils.c (gdb_print_host_address): Update.
4886 2003-04-09 Kevin Buettner <kevinb@redhat.com>
4888 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
4889 register number for R0 is 0.
4891 2003-04-09 J. Brobecker <brobecker@gnat.com>
4893 * frame.h (struct gdbarch): Add opaque structure definition
4894 to avoid a compilation warning on LynxOS 4.0.
4896 2003-04-09 Andrew Cagney <cagney@redhat.com>
4898 * frame.h (struct frame_info): Delete field "pc". Replace
4899 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
4901 * frame.c (frame_pc_unwind): Update.
4902 (create_sentinel_frame): Do not set "pc".
4903 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
4904 (get_frame_pc): Call frame_pc_unwind.
4905 (deprecated_update_frame_pc_hack): Update.
4906 (create_new_frame): Use "pc" not "->pc".
4908 2003-04-09 Andrew Cagney <cagney@redhat.com>
4910 * frame.c (get_frame_id): Eliminate code updating "frame".
4911 (legacy_get_prev_frame): Ditto.
4912 (get_frame_base): Return id.base directly.
4913 (deprecated_update_frame_base_hack): Update "id.base".
4914 * frame.h (struct frame_info): Delete field "frame".
4916 2003-04-09 Andrew Cagney <cagney@redhat.com>
4918 * NEWS: Mention that the "Sequent family" is obsolete.
4919 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
4920 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
4921 * configure.host: Obsolete i[3456]86-sequent-bsd*,
4922 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
4923 * config/i386/tm-ptx4.h: Obsolete file.
4924 * config/i386/tm-ptx.h: Obsolete file.
4925 * symm-tdep.c: Obsolete file.
4926 * config/i386/symmetry.mt: Obsolete file.
4927 * config/i386/tm-symmetry.h: Obsolete file.
4928 * symm-nat.c: Obsolete file.
4929 * config/i386/nm-symmetry.h: Obsolete file.
4930 * config/i386/xm-symmetry.h: Obsolete file.
4931 * config/i386/symmetry.mh: Obsolete file.
4932 * config/i386/nm-ptx4.h: Obsolete file.
4933 * config/i386/ptx4.mh: Obsolete file.
4934 * config/i386/ptx.mt: Obsolete file.
4935 * config/i386/ptx.mh: Obsolete file.
4936 * config/i386/xm-ptx4.h: Obsolete file.
4937 * config/i386/xm-ptx.h: Obsolete file.
4939 2003-04-09 Andrew Cagney <cagney@redhat.com>
4941 Obsolete mips*-*-mach3*.
4942 * NEWS: Mention that mips*-*-mach3* is obsolete.
4943 * m3-nat.c: Obsolete file.
4944 * config/nm-m3.h: Obsolete file.
4945 * config/mips/tm-mipsm3.h: Obsolete file.
4946 * config/mips/mipsm3.mt: Obsolete file.
4947 * config/mips/mipsm3.mh: Obsolete file.
4948 * config/mips/xm-mipsm3.h: Obsolete file.
4949 * mipsm3-nat.c: Obsolete file.
4950 * configure.host: Obsolete mips-dec-mach3*.
4951 * configure.tgt: Obsolete mips*-*-mach3*.
4953 2003-04-09 Andrew Cagney <cagney@redhat.com>
4955 * doublest.h: Update copyright.
4956 (deprecated_store_floating, deprecated_extract_floating): Rename
4957 store_floating and extract_floating. Update comments.
4958 * doublest.c: Update copyright.
4959 (extract_floating_by_length): Replace extract_floating.
4960 (store_floating_by_length): Replace store_floating.
4961 (deprecated_extract_floating): New function.
4962 (deprecated_store_floating): New function.
4963 (extract_typed_floating): Call extract_floating_by_length.
4964 (store_typed_floating): Call store_floating_by_length.
4965 * x86-64-tdep.c (x86_64_store_return_value): Update.
4966 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
4967 (sh64_extract_return_value): Update.
4968 (sh_sh4_register_convert_to_virtual): Update.
4969 (sh_sh64_register_convert_to_virtual): Update.
4970 (sh_sh4_register_convert_to_raw): Update.
4971 (sh_sh64_register_convert_to_raw): Update.
4972 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
4973 (rs6000_register_convert_to_raw): Update.
4974 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
4975 (ia64_register_convert_to_raw): Update.
4976 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
4977 (REGISTER_CONVERT_TO_VIRTUAL): Update.
4978 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
4979 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
4980 (alpha_register_convert_to_raw): Update.
4982 2003-04-08 Andrew Cagney <cagney@redhat.com>
4984 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
4985 * gdbarch.h, gdbarch.c: Re-generate.
4986 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
4987 (d10v_gdbarch_init): Do not set saved_pc_after_call.
4988 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
4989 conditionally, use frame_pc_unwind as an alternative. Add
4991 * arch-utils.c (init_frame_pc_default): Only call
4992 SAVED_PC_AFTER_CALL when available.
4994 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
4996 * infrun.c (stop_soon): Rename from stop_soon_quietly.
4997 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
4998 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
4999 (start_remote): Ditto.
5000 (handle_inferior_event): Ditto.
5001 (save_inferior_status): Ditto.
5002 (restore_inferior_status): Ditto.
5003 * infcmd.c (attach_command): Ditto.
5004 * fork-child.c (startup_inferior): Ditto.
5005 * inferior.h (stop_soon): Rename from stop_soon_quietly.
5006 * alpha-tdep.c (heuristic_proc_start): Ditto.
5007 * mips-tdep.c (heuristic_proc_start): Ditto.
5008 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
5009 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
5010 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
5011 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
5012 * remote-vx.c (vx_create_inferior): Ditto.
5014 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
5016 * infrun.c (stop_soon_quietly): Make it an enum, to better
5017 override the default behavior of handle_inferior_event.
5018 (clear_proceed_status): Update uses of stop_soon_quietly to
5019 reflect that it is now an enum.
5020 (start_remote): Ditto.
5021 (handle_inferior_event): Change logic a bit if stop_soon_quietly
5022 is set to handle the new GNU/Linux kernel behavior for
5023 attach/sigstop. Update uses of stop_soon_quietly.
5024 * inferior.h (enum stop_kind): New enum.
5025 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
5026 Reset normal handle_inferior_event behavior, afterwards.
5027 * fork-child.c (startup_inferior): Update.
5028 * alpha-tdep.c (heuristic_proc_start): Update.
5029 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
5030 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
5031 * solib-osf.c (osf_solib_create_inferior_hook): Update.
5032 * solib-irix.c (irix_solib_create_inferior_hook): Update.
5033 * remote-vx.c (vx_create_inferior): Update.
5034 * mips-tdep.c (heuristic_proc_start): Update.
5036 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
5038 * disasm.c (dump_insns): Move variables inside loop, or they will
5039 be freed more than once, causing wild memory corruptions.
5040 (gdb_disassembly): Look for the substring "-thread",
5041 instead of "-threads" in the target name, to make sure to find
5042 the 'multi-thread' target. Also, make sure we do the right thing
5043 with the "core" target.
5045 2003-04-07 Kevin Buettner <kevinb@redhat.com>
5047 * mips-tdep.c (mips_print_fp_register): New function, created from
5048 do_fp_register_row(). Registers are now (also) printed as hex.
5049 Only one register is printed per row.
5050 (mips_print_register, do_fp_register_row): Print floating point
5051 registers with mips_print_fp_register().
5053 2003-04-06 Andrew Cagney <cagney@redhat.com>
5055 * valprint.h (inspect_it): Add extern declaration.
5056 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
5057 (selectors_info, classes_info): Ditto.
5058 (find_objc_msgcall): Fix indentation.
5059 (objc_printstr): Delete extern declarations.
5061 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
5063 2003-04-06 Andrew Cagney <cagney@redhat.com>
5065 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
5067 * frame.c (legacy_saved_regs_this_id): Update.
5068 (legacy_get_prev_frame): Update.
5069 * xstormy16-tdep.c: Update comment.
5070 * sparc-tdep.c (sparc_frame_chain): Update comment.
5071 * blockframe.c (legacy_frame_chain_valid): Update.
5073 2003-04-06 Andrew Cagney <cagney@redhat.com>
5075 * valprint.c (val_print_type_code_int): Delete #ifdef
5076 PRINT_TYPELESS_INTEGER code.
5078 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
5079 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
5080 multi-arch definition.
5081 * gdbarch.h: Re-generate.
5083 2003-04-05 Andrew Cagney <cagney@redhat.com>
5085 Eliminate FRAME_FIND_SAVED_REGS.
5086 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5087 Change FSR parameter to a pointer.
5088 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
5089 Assume FSR parameter is a pointer.
5090 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5092 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
5093 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
5094 saved_regs a pointer.
5095 (hppa_frame_saved_pc): Ditto.
5096 (find_dummy_frame_regs): Make frame_saved_regs a pointer
5097 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
5099 (restore_pc_queue): Make fsr a pointer.
5100 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
5101 (hppa_frame_chain): Make saved_regs a pointer, call
5102 hppa_frame_init_saved_regs.
5103 * sparc-tdep.c: Include "gdb_assert.h".
5104 (sparc_frame_find_saved_regs): Replace internal_error with
5106 * remote-vxsparc.c (vx_read_register): Delete reference to
5107 FRAME_FIND_SAVED_REGS.
5108 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
5109 * gdbarch.h: Regenerate.
5110 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
5111 (deprecated_get_frame_saved_regs): Delete declaration.
5112 (struct frame_saved_regs): Delete definition.
5113 * frame.c (deprecated_get_frame_saved_regs): Delete function.
5114 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
5115 (hppa_frame_find_saved_regs): Delete declaration.
5116 (FRAME_FIND_SAVED_REGS): Delete macro.
5117 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
5118 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
5119 FRAME_FIND_SAVED_REGS in comment.
5121 2003-04-05 Andrew Cagney <cagney@redhat.com>
5123 * frame.c (frame_func_unwind, get_frame_func): New functions.
5124 * frame.h (get_frame_func, frame_func_unwind): Declare.
5125 (struct frame_info): Add field "prev_func" for caching the
5126 previous frame's function address.
5127 * arm-tdep.c (arm_frameless_function_invocation): Combine
5128 get_pc_function_start and get_frame_pc into get_frame_func.
5129 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
5130 (sh64_nofp_frame_init_saved_regs): Ditto.
5131 * s390-tdep.c (s390_function_start): Ditto.
5132 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
5133 (rs6000_frameless_function_invocation): Ditto.
5134 (rs6000_frame_saved_pc): Ditto.
5135 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
5136 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
5137 * i386-tdep.c (i386_frameless_signal_p): Ditto.
5138 (i386_frame_init_saved_regs): Ditto.
5139 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
5140 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
5141 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
5142 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5143 * blockframe.c (frameless_look_for_prologue): Ditto.
5145 2003-04-05 Andrew Cagney <cagney@redhat.com>
5147 * frame.c (legacy_get_prev_frame): Link prev to next at the
5148 function start. Update comments.
5150 2003-04-05 Andrew Cagney <cagney@redhat.com>
5152 * frame.c (get_frame_id): Update comment.
5153 (legacy_get_prev_frame): Update comment.
5154 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
5155 * gdbarch.h: Regenerate.
5156 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
5157 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
5159 2003-04-05 Andrew Cagney <cagney@redhat.com>
5161 * stack.c (print_frame_info): Use get_frame_pc.
5163 2003-04-04 Andrew Cagney <cagney@redhat.com>
5165 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
5166 the frame's type from the unwinder.
5167 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
5168 (create_new_frame, legacy_get_prev_frame): When the unwinder's
5169 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
5170 (get_frame_base_address): Use get_frame_type.
5171 (get_frame_locals_address, get_frame_args_address): Ditto.
5172 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
5173 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
5174 (struct frame_info): Add comment explaining why the frame contains
5176 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
5177 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
5178 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
5180 * frame-unwind.h: Include "frame.h".
5181 (struct frame_unwind): Add "type" field.
5182 * Makefile.in (frame_unwind_h): Add $(frame_h).
5184 2003-04-04 Andrew Cagney <cagney@redhat.com>
5186 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
5187 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
5188 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
5190 (d10v_unwind_dummy_id): Use frame_id_build.
5191 * frame.c (find_frame_sal): Use get_frame_pc.
5192 (create_new_frame): Use deprecated_update_frame_pc_hack and
5193 deprecated_update_frame_base_hack.
5194 (create_sentinel_frame): Add comment about ->pc going away.
5195 (get_prev_frame): Add comment about ->pc going away.
5196 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
5197 frame_id_build, deprecated_update_frame_pc_hack and
5198 deprecated_update_frame_base_hack.
5199 (select_frame): Use get_frame_pc.
5200 (legacy_saved_regs_this_id): Use frame_id_build.
5202 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
5204 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
5205 signed integer case.
5206 (classify_argument): Handle enumerations and references.
5208 2003-04-04 Andrew Cagney <cagney@redhat.com>
5210 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
5213 2003-04-01 Adam Fedor <fedor@gnu.org>
5215 * gdb/objc-lang.c (selectors_info): Replace calls to
5216 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
5217 SYMBOL_NATURAL_NAME.
5218 (classes_info, find_methods): Likewise.
5220 2003-04-03 Kevin Buettner <kevinb@redhat.com>
5222 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
5223 ``mach'' to the value determined by bfd_default_set_arch_mach().
5225 2003-04-02 Bob Rossi <bob_rossi@cox.net>
5227 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
5228 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
5229 (mi-cmd-file.o): Update dependencies.
5231 2003-04-01 Kevin Buettner <kevinb@redhat.com>
5233 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
5234 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
5236 2003-04-01 Adam Fedor <fedor@gnu.org>
5238 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
5239 * language.h (struct language_defn): Add la_demangle.
5240 (language_demangle): Declare.
5241 * language.c (language_demangle): New function.
5242 (unk_lang_demangle): Likewise.
5243 (unknown_language_defn, auto_language_defn, local_language_defn):
5244 Add ukn_lang_demangle.
5245 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
5246 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
5247 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
5248 (cplus_language_defn): Add cplus_demangle for la_demangle element.
5249 * jv-lang.c (java_demangle): New function
5250 (java_language_defn): Use it for la_demangle element.
5251 * objc-lang.c (objc_demangle): Add options argument
5252 (objc_language_defn): Use objc_demangle for la_demangle element.
5253 * maint.c (maintenance_demangle): Replace switch with
5254 call to language_demangle.
5255 * utils.c (fprintf_symbol_filtered): Likewise.
5257 2003-04-01 Andrew Cagney <cagney@redhat.com>
5259 * printcmd.c (print_frame_nameless_args): Delete #ifdef
5260 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
5261 PRINT_TYPELESS_INTEGER.
5262 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
5263 PUSH_RETURN_ADDRESS.
5265 2003-04-01 Andrew Cagney <cagney@redhat.com>
5267 * Makefile.in (d10v-tdep.o): Update dependencies.
5268 * d10v-tdep.c: Include "frame-base.h".
5269 (d10v_frame_unwind): Make constant.
5270 (d10v_frame_base_address): New function.
5271 (d10v_frame_base): New variable.
5272 (d10v_gdbarch_init): Set frame_base default.
5273 (struct d10v_unwind_cache): Add the field "prev_sp". Update
5275 (d10v_frame_unwind_cache): Set and use "prev_sp".
5276 (d10v_frame_this_id): Use the previous frame's inner most stack
5277 address and this frame's func address for the frame ID. Use
5278 frame_id_build. Don't analyze beyond the current instruction.
5280 2003-04-01 Andrew Cagney <cagney@redhat.com>
5282 * frame.h (get_frame_locals_address, get_frame_args_address):
5283 Refer to the base address, instead of the address of the first
5286 2003-04-01 Andrew Cagney <cagney@redhat.com>
5288 Add frame debug info addresses:
5289 * frame-base.c: New file.
5290 * frame-base.h: New file.
5291 * frame.h (struct frame_base): Add opaque declaration.
5292 (get_frame_base): Update comment.
5293 (get_frame_base_address): Declare.
5294 (get_frame_locals_address): Declare.
5295 (get_frame_args_address): Declare.
5296 (struct frame_info): Add "base" and "base_cache". Update
5297 comments on the unwinder.
5298 * frame.c: Include "frame-base.h".
5299 (get_frame_locals_address): New function.
5300 (get_frame_base_address): New function.
5301 (get_frame_args_address): New function.
5302 * findvar.c (read_var_value): Use get_frame_locals_address and
5303 get_frame_args_address.
5304 * stack.c (frame_info): Use get_frame_locals_address and
5305 get_frame_args_address.
5306 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
5307 moved to "frame-base.c".
5308 * printcmd.c (print_frame_nameless_args): Ditto.
5309 * symtab.h (address_class): Update comments.
5310 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
5311 get_frame_base_address.
5312 * dwarf2expr.c (execute_stack_op): Ditto.
5313 * Makefile.in (frame_base_h): Define.
5314 (frame.o): Update dependencies.
5315 (frame-base.o): Add dependencies.
5316 (SFILES): Add frame-base.c.
5317 (COMMON_OBS): Add frame-base.o.
5319 2003-04-01 Andrew Cagney <cagney@redhat.com>
5321 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
5322 CALL_DUMMY_LENGTH): Ditto.
5323 * gdbarch.c: Re-generate.
5324 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
5325 (CALL_DUMMY_LENGTH): Delete macro.
5326 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
5327 * arm-tdep.c (arm_gdbarch_init): Ditto.
5328 * avr-tdep.c (avr_gdbarch_init): Ditto.
5329 * cris-tdep.c (cris_gdbarch_init): Ditto.
5330 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5331 * frv-tdep.c (frv_gdbarch_init): Ditto.
5332 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5333 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5334 * i386-tdep.c (i386_gdbarch_init): Ditto.
5335 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5336 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5337 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5338 * mips-tdep.c (mips_gdbarch_init): Ditto.
5339 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5340 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5341 * s390-tdep.c (s390_gdbarch_init): Ditto.
5342 * sh-tdep.c (sh_gdbarch_init): Ditto.
5343 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5344 * v850-tdep.c (v850_gdbarch_init): Ditto.
5345 * vax-tdep.c (vax_gdbarch_init): Ditto.
5346 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5348 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
5350 * frame.c (get_prev_frame): Disable call to inside_entry_file().
5352 2003-04-01 Andrew Cagney <cagney@redhat.com>
5354 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
5355 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5356 * gdbarch.h, gdbarch.c: Re-generate.
5357 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5358 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5359 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5360 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5361 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
5362 * infcmd.c (run_stack_dummy): Simplify assuming
5363 CALL_DUMMY_BREAKPOINT_OFFSET_P.
5364 * infrun.c (handle_inferior_event): Ditto.
5365 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5366 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
5367 * arm-tdep.c (arm_gdbarch_init): Ditto.
5368 * avr-tdep.c (avr_gdbarch_init): Ditto.
5369 * cris-tdep.c (cris_gdbarch_init): Ditto.
5370 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5371 * frv-tdep.c (frv_gdbarch_init): Ditto.
5372 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5373 * i386-tdep.c (i386_gdbarch_init): Ditto.
5374 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5375 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5376 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5377 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5378 * mips-tdep.c (mips_gdbarch_init): Ditto.
5379 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5380 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5381 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5382 * s390-tdep.c (s390_gdbarch_init): Ditto.
5383 * sh-tdep.c (sh_gdbarch_init): Ditto.
5384 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5385 * v850-tdep.c (v850_gdbarch_init): Ditto.
5386 * vax-tdep.c (vax_gdbarch_init): Ditto.
5387 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5389 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
5391 * symfile.c (symfile_relocate_debug_section): Update call to
5392 bfd_simple_get_relocated_section_contents.
5394 2003-03-31 Andrew Cagney <cagney@redhat.com>
5396 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
5397 * gdbarch.h, gdbarch.c: Regenerate.
5398 * inferior.h (FIX_CALL_DUMMY): Delete macro.
5399 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
5401 * frame.h (generic_fix_call_dummy): Delete declaration.
5402 * dummy-frame.h: Update comment.
5403 * dummy-frame.c (generic_fix_call_dummy): Delete function.
5404 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5406 * sh-tdep.c (sh_gdbarch_init): Ditto.
5407 * s390-tdep.c (s390_gdbarch_init): Ditto.
5408 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5409 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5410 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5411 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5412 * i386-tdep.c (i386_gdbarch_init): Ditto.
5413 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5414 * frv-tdep.c (frv_gdbarch_init): Ditto.
5415 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5416 * cris-tdep.c (cris_gdbarch_init): Ditto.
5417 * avr-tdep.c (avr_gdbarch_init): Ditto.
5418 * arm-tdep.c (arm_gdbarch_init): Ditto.
5420 2003-03-31 J. Brobecker <brobecker@gnat.com>
5422 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
5423 (INIT_FRAME_AP): Likewise.
5424 (EXTRA_FRAME_INFO): Likewise.
5426 2003-03-31 Andrew Cagney <cagney@redhat.com>
5428 * gdbarch.sh: Include "symfile.h".
5429 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
5430 * gdbarch.h, gdbarch.c: Re-generate.
5431 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
5432 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5433 call_dummy_address, the default is at entry_point_address.
5434 * v850-tdep.c (v850_gdbarch_init): Ditto.
5435 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5436 * sh-tdep.c (sh_gdbarch_init): Ditto.
5437 * s390-tdep.c (s390_gdbarch_init): Ditto.
5438 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5439 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5440 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5441 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5442 * i386-tdep.c (i386_gdbarch_init): Ditto.
5443 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5444 * frv-tdep.c (frv_gdbarch_init): Ditto.
5445 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5446 * cris-tdep.c (cris_gdbarch_init): Ditto.
5447 * arm-tdep.c (arm_gdbarch_init): Ditto.
5449 2003-03-31 Andrew Cagney <cagney@redhat.com>
5451 * gdbarch.sh (CALL_DUMMY_P): Delete.
5452 * gdbarch.h, gdbarch.c: Re-generate.
5453 * inferior.h (CALL_DUMMY_P): Delete macro.
5454 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5455 * vax-tdep.c (vax_gdbarch_init): Update.
5456 * v850-tdep.c (v850_gdbarch_init): Update.
5457 * sparc-tdep.c (sparc_gdbarch_init): Update.
5458 * sh-tdep.c (sh_gdbarch_init): Update.
5459 * s390-tdep.c (s390_gdbarch_init): Update.
5460 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5461 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5462 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5463 * mips-tdep.c (mips_gdbarch_init): Update.
5464 * mcore-tdep.c (mcore_gdbarch_init): Update.
5465 * m68k-tdep.c (m68k_gdbarch_init): Update.
5466 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5467 * ia64-tdep.c (ia64_gdbarch_init): Update.
5468 * i386-tdep.c (i386_gdbarch_init): Update.
5469 * h8300-tdep.c (h8300_gdbarch_init): Update.
5470 * frv-tdep.c (frv_gdbarch_init): Update.
5471 * d10v-tdep.c (d10v_gdbarch_init): Update.
5472 * cris-tdep.c (cris_gdbarch_init): Update.
5473 * breakpoint.c (deprecated_frame_in_dummy): Update.
5474 * avr-tdep.c (avr_gdbarch_init): Update.
5475 * alpha-tdep.c (alpha_gdbarch_init): Update.
5476 * arm-tdep.c (arm_gdbarch_init): Update.
5477 * dummy-frame.c (dummy_frame_this_id): Update comments.
5478 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
5479 * frame.c (legacy_get_prev_frame): Ditto.
5480 * valops.c (call_function_by_hand): Delete function.
5481 (hand_function_call): Rename to call_function_by_hand
5483 2003-03-30 Andrew Cagney <cagney@redhat.com>
5485 2002-11-10 Klee Dienes <kdienes@apple.com>
5486 * value.h (struct value): Update comment.
5488 2003-03-30 Andrew Cagney <cagney@redhat.com>
5490 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
5492 (d10v_gdbarch_init): Do not set fp_regnum.
5494 * frame.c (get_frame_base): Force ID initialization.
5495 (get_prev_frame): Move computation of the frame ID from here ...
5496 (get_frame_id): ... to here.
5497 (legacy_get_prev_frame): Mark the frame ID as valid.
5498 * frame.h (struct frame_info): Add field "id_p".
5500 2003-03-30 Mark Kettenis <kettenis@gnu.org>
5502 * i386-tdep.c (i386_store_struct_return): Removed.
5503 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
5505 2003-03-30 Andrew Cagney <cagney@redhat.com>
5507 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
5508 * gdbarch.h, gdbarch.c: Regenerate.
5509 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
5510 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5511 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5512 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5513 * i386-tdep.c (i386_gdbarch_init): Ditto.
5514 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5515 * cris-tdep.c (cris_gdbarch_init): Ditto.
5516 * vax-tdep.c (vax_gdbarch_init): Ditto.
5517 * s390-tdep.c (s390_gdbarch_init): Ditto.
5518 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5519 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5520 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5521 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
5522 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5523 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
5524 * sparc-tdep.c (sparc_gdbarch_init): Update.
5525 * sh-tdep.c (sh_gdbarch_init): Update.
5526 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5527 * mips-tdep.c (mips_gdbarch_init): Update.
5528 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5529 * ia64-tdep.c (ia64_gdbarch_init): Update.
5530 * frv-tdep.c (frv_gdbarch_init): Update.
5531 * avr-tdep.c (avr_gdbarch_init): Update.
5532 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
5533 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
5534 instead of when push_dummy_call is not available.
5536 2003-03-30 Andrew Cagney <cagney@redhat.com>
5538 * infttrace.c: Include "gdbthread.h".
5539 (parent_attach_all): Fix function signature.
5540 (call_ptrace): Update call.
5541 * Makefile.in (infttrace.o): Update dependencies.
5543 2003-03-30 Andrew Cagney <cagney@redhat.com>
5545 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
5546 PUSH_RETURN_ADDRESS.
5547 * gdbarch.h, gdbarch.c: Regenerate.
5548 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5549 * x86-64-tdep.c (x86_64_init_abi): Update.
5550 * v850-tdep.c (v850_gdbarch_init): Update.
5551 * sparc-tdep.c (sparc_gdbarch_init): Update.
5552 * sh-tdep.c (sh_gdbarch_init): Update.
5553 * s390-tdep.c (s390_gdbarch_init): Update.
5554 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5555 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5556 * mips-tdep.c (mips_gdbarch_init): Update.
5557 * mcore-tdep.c (mcore_gdbarch_init): Update.
5558 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5559 * ia64-tdep.c (ia64_gdbarch_init): Update.
5560 * i386-tdep.c (i386_gdbarch_init): Update.
5561 * h8300-tdep.c (h8300_gdbarch_init): Update.
5562 * frv-tdep.c (frv_gdbarch_init): Update.
5563 * cris-tdep.c (cris_gdbarch_init): Update.
5564 * avr-tdep.c (avr_gdbarch_init): Update.
5565 * arm-tdep.c (arm_gdbarch_init): Update.
5566 * valops.c (hand_function_call): Update.
5568 2003-03-29 Andrew Cagney <cagney@redhat.com>
5570 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
5571 sizeof_call_dummy_words.
5572 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
5574 * gdbarch.h: Regenerate.
5576 2003-03-29 Andrew Cagney <cagney@redhat.com>
5578 * infttrace.h: New file.
5579 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
5580 (hpread_get_textlow): Detect an uninitialized dn_bufp.
5581 (hpread_read_doc_function_type): Detect an initialized type1.
5582 (hpread_quick_traverse): Initialize mod_name_string.
5583 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
5584 (som_solib_get_solib_by_pc): Declare.
5585 (so_lib_thread_start_addr): Declare.
5586 (no_shared_libraries): Declare.
5587 * somread.c (init_import_symbols): Make static. Add forward
5589 * config/pa/nm-hppah.h: Include "infttrace.h" for
5591 (hppa_insert_hw_watchpoint): Declare.
5592 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
5593 * hppah-nat.c: Include "gdb_string.h".
5594 (parent_attach_all): Delete extern declaration, moved to
5596 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
5598 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
5599 * Makefile.in (infttrace_h): Define.
5600 (hpread.o): Update dependencies.
5601 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
5602 * hppa-hpux-tdep.c: Include "gdb_string.h".
5603 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
5604 * infrun.c (handle_inferior_event): Always initialize
5605 stepped_after_stopped_by_watchpoint. Add default and remove
5606 fallthrough in switch statement.
5607 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
5609 (hppa_remove_hw_watchpoint): Ditto.
5611 2003-03-29 Andrew Cagney <cagney@redhat.com>
5613 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
5616 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
5618 * arm-tdep.c (arm_push_arguments): Delete.
5619 (struct stack_item): New type.
5620 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
5621 (arm_store_struct_return): Delte.
5622 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
5623 arm_push_arguments or arm_store_struct_return.
5625 2003-03-28 Andrew Cagney <cagney@redhat.com>
5627 * Makefile.in (d10v-tdep.o): Update dependencies.
5628 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
5629 * d10v-tdep.c: Include "remote.h".
5630 (target_resume_hook): Delete extern declaration.
5631 (target_wait_loop_hook): Ditto.
5632 (tdisassemble_command): Eliminate assignment in "if" conditional.
5633 (d10v_ts2_register_sim_regno): Eliminate call to
5634 legacy_register_sim_regno.
5635 (d10v_ts3_register_sim_regno): Ditto.
5637 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
5639 * thread.c: Reindented.
5641 * linux-proc.c: Ditto.
5643 2003-03-28 Bob Rossi <bob_rossi@cox.net>
5645 * MAINTAINERS (write after approval): Add myself.
5647 2003-03-27 Theodore A. Roth <troth@openavr.org>
5649 * objc-exp.y: Add missing semi-colons.
5651 2003-03-27 Andrew Cagney <cagney@redhat.com>
5653 * regcache.c (write_sp): Delete function and references.
5654 * inferior.h (write_sp): Delete declaration.
5655 * valops.c (hand_function_call): Replace write_sp with
5657 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
5658 (sparc_pop_frame): Ditto.
5660 2003-03-27 Andrew Cagney <cagney@redhat.com>
5662 * NEWS: Mention removal of support for hppa*-*-bsd* and
5663 hppa*-*-osf* natives, and hppa*-*-pro* target.
5664 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
5665 * config/pa/xm-pa.h: Obsolete file.
5666 * config/pa/xm-hppab.h: Obsolete file.
5667 * config/pa/nm-hppab.h: Obsolete file.
5668 * config/pa/tm-hppab.h: Obsolete file.
5669 * config/pa/tm-hppao.h: Obsolete file.
5670 * config/pa/nm-hppao.h: Obsolete file.
5671 * config/pa/tm-pro.h: Obsolete file.
5672 * config/pa/hppaosf.mt: Obsolete file.
5673 * config/pa/hppaosf.mh: Obsolete file.
5674 * config/pa/hppapro.mt: Obsolete file.
5675 * config/pa/hppabsd.mt: Obsolete file.
5676 * config/pa/hppabsd.mh: Obsolete file.
5677 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
5678 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
5681 2003-03-27 Andrew Cagney <cagney@redhat.com>
5683 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
5684 push_arguments. Don't set push_return_address or write_sp.
5685 (d10v_push_dummy_call): Replace d10v_push_arguments.
5686 (d10v_push_return_address, d10v_write_sp): Delete function,
5687 handled by push_dummy_call.
5689 2003-03-26 Andrew Cagney <cagney@redhat.com>
5691 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
5692 (push_dummy_call): New pure multi-arch replacement with gdbarch,
5693 regcache and dummy_addr parameters.
5694 * gdbarch.h, gdbarch.c: Re-generate.
5695 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
5696 available; assume it will handle stack alignment and return
5697 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
5698 legacy_push_arguments.
5699 (legacy_push_arguments): Rename default_push_arguments.
5700 * value.h (legacy_push_arguments): Rename default_push_arguments.
5701 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
5702 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
5703 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
5704 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
5705 * config/i386/tm-symmetry.h: Update.
5706 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5707 * x86-64-tdep.c (x86_64_init_abi): Update.
5708 * v850-tdep.c (v850_gdbarch_init): Update.
5709 * sparc-tdep.c (sparc_gdbarch_init): Update.
5710 * sh-tdep.c (sh_gdbarch_init): Update.
5711 * s390-tdep.c (s390_gdbarch_init): Update.
5712 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5713 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5714 * mips-tdep.c (mips_gdbarch_init): Update.
5715 * mcore-tdep.c (mcore_gdbarch_init): Update.
5716 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5717 * ia64-tdep.c (ia64_gdbarch_init): Update.
5718 * i386-tdep.c (i386_gdbarch_init): Update.
5719 * hppa-tdep.c (hppa_gdbarch_init): Update.
5720 * h8300-tdep.c (h8300_gdbarch_init): Update.
5721 * frv-tdep.c (frv_gdbarch_init): Update.
5722 * d10v-tdep.c (d10v_gdbarch_init): Update.
5723 * cris-tdep.c (cris_gdbarch_init): Update.
5724 * avr-tdep.c (avr_gdbarch_init): Update.
5725 * arm-tdep.c (arm_gdbarch_init): Update.
5726 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5727 * alpha-tdep.c (alpha_gdbarch_init): Update.
5729 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
5731 * signals/signals.c (do_target_signal_to_host): Correct realtime
5734 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
5736 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
5737 (struct sal_chain, map_catch_names): Remove.
5738 (catch_exception_command_1): Don't call
5739 handle_gnu_4_16_catch_command.
5741 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
5743 From Mark Dettinger <dettinge@de.ibm.com>:
5744 * dwarf2cfi.c (read_2u): Increment pointer by two.
5746 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
5748 * signals/signals.c: Fix typos in last change.
5750 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
5752 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
5753 not already defined. Use __SIGRTMIN if available.
5754 (target_signal_from_host): Remove SIGRTMIN block.
5755 (do_target_signal_to_host): Remove SIGRTMIN block; check that
5756 the signal is within the realtime range.
5758 2003-03-25 Adam Fedor <fedor@gnu.org>
5760 * Makefile.in (infrun.o): Add $(language_h)
5761 * infrun.c (handle_inferior_event): Use skip_language_trampoline
5762 for language specific trampolines.
5763 * language.h (struct language_defn): Add skip_trampoline.
5764 (skip_language_trampoline): Declare.
5765 * language.c (unk_lang_trampoline, skip_language_trampoline):
5767 (unknown_language_defn, auto_language_defn, local_language_defn):
5768 Add ukn_lang_trampoline.
5769 * ada-lang.c (ada_language_defn): Add NULL for language
5770 specific skip_trampoline.
5771 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
5772 scm-lang.c: Likewise.
5773 * objc-lang.c (objc_skip_trampoline): New function.
5774 (objc_language_defn): Add objc_skip_trampoline.
5776 2003-03-25 Andrew Cagney <cagney@redhat.com>
5778 * frame.c (get_prev_frame): Delay validating a frame's ID -
5779 non-NULL, didn't go backwards - until an attempt to unwind it to
5782 2003-03-25 Andrew Cagney <cagney@redhat.com>
5784 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
5785 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
5786 * gdbarch.h, gdbarch.c: Re-generate.
5787 * config/sparc/tm-sparc.h
5788 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
5789 * sparc-tdep.c (sparc_gdbarch_init): Set
5790 deprecated_extra_stack_alignment_needed.
5791 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
5792 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
5793 extra_stack_alignment_needed.
5794 * v850-tdep.c (v850_gdbarch_init): Ditto.
5795 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5796 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5797 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5798 * cris-tdep.c (cris_gdbarch_init): Ditto.
5799 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5800 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5802 2003-03-25 Andrew Cagney <cagney@redhat.com>
5804 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
5805 STORE_STRUCT_RETURN.
5806 * gdbarch.h, gdbarch.c: Regenerate.
5807 * d10v-tdep.c (d10v_store_struct_return): Delete function.
5808 (d10v_push_arguments): Set the struct return register.
5809 (d10v_gdbarch_init): Update.
5810 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5811 * x86-64-tdep.c (x86_64_init_abi): Update.
5812 * vax-tdep.c (vax_gdbarch_init): Update.
5813 * v850-tdep.c (v850_gdbarch_init): Update.
5814 * sparc-tdep.c (sparc_gdbarch_init): Update.
5815 * sh-tdep.c (sh_gdbarch_init): Update.
5816 * s390-tdep.c (s390_gdbarch_init): Update.
5817 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5818 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5819 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5820 * mips-tdep.c (mips_gdbarch_init): Update.
5821 * mcore-tdep.c (mcore_gdbarch_init): Update.
5822 * m68k-tdep.c (m68k_gdbarch_init): Update.
5823 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5824 * ia64-tdep.c (ia64_gdbarch_init): Update.
5825 * i386-tdep.c (i386_gdbarch_init): Update.
5826 * hppa-tdep.c (hppa_gdbarch_init): Update.
5827 * h8300-tdep.c (h8300_gdbarch_init): Update.
5828 * frv-tdep.c (frv_gdbarch_init): Update.
5829 * cris-tdep.c (cris_gdbarch_init): Update.
5830 * avr-tdep.c (avr_gdbarch_init): Update.
5831 * arm-tdep.c (arm_gdbarch_init): Update.
5832 * alpha-tdep.c (alpha_gdbarch_init): Update.
5834 2003-03-25 Andrew Cagney <cagney@redhat.com>
5836 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
5837 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
5838 CALL_DUMMY_STACK_ADJUST with a predicate variable.
5839 * gdbarch.h, gdbarch.c: Regenerate.
5840 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5841 call_dummy_stack_adjust_p.
5842 * vax-tdep.c (vax_gdbarch_init): Ditto.
5843 * v850-tdep.c (v850_gdbarch_init): Ditto.
5844 * sh-tdep.c (sh_gdbarch_init): Ditto.
5845 * s390-tdep.c (s390_gdbarch_init): Ditto.
5846 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5847 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5848 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5849 * mips-tdep.c (mips_gdbarch_init): Ditto.
5850 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5851 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5852 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5853 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5854 * i386-tdep.c (i386_gdbarch_init): Ditto.
5855 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5856 * frv-tdep.c (frv_gdbarch_init): Ditto.
5857 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5858 * cris-tdep.c (cris_gdbarch_init): Ditto.
5859 * avr-tdep.c (avr_gdbarch_init): Ditto.
5860 * arm-tdep.c (arm_gdbarch_init): Ditto.
5861 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5862 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
5863 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
5864 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
5865 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
5866 call_dummy_stack_adjust_p.
5867 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
5868 (CALL_DUMMY_STACK_ADJUST): Delete macro.
5869 * sparc-tdep.c (sparc32_push_arguments): Update.
5870 * valops.c (hand_function_call): Update.
5872 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
5874 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
5875 set_gdbarch_char_signed.
5877 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
5880 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
5882 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
5884 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
5885 (_initialize_arm_tdep): Don't set tm_print_insn.
5887 2003-03-24 Adam Fedor <fedor@gnu.org>
5889 * Makefile.in (YYOBJ): Add objc-exp.tab.o
5890 * objc-lang.h: Add multiple inclusion protection.
5891 (start_msglist, add_msglist, end_msglist): Additional declarations.
5893 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
5895 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
5896 value was renamed to ARM_FLOAT_SOFT_FPA.
5898 2003-03-23 Andrew Cagney <cagney@redhat.com>
5900 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
5901 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
5902 * gdbarch.h, gdbarch.c: Regenerate.
5903 * valops.c (hand_function_call): Update.
5904 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
5905 * frame.c (legacy_saved_regs_this_id): Update.
5906 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
5907 * dummy-frame.h: Update.
5908 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
5909 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
5910 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
5911 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
5912 * config/m68k/tm-sun3.h: Update.
5913 * blockframe.c (inside_main_func, frame_chain_valid): Update.
5914 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5915 * x86-64-tdep.c (x86_64_init_abi): Update.
5916 * vax-tdep.c (vax_gdbarch_init): Update.
5917 * v850-tdep.c (v850_gdbarch_init): Update.
5918 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
5919 * sh-tdep.c (sh_gdbarch_init): Update.
5920 * s390-tdep.c (s390_gdbarch_init): Update.
5921 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
5922 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
5923 (frame_get_saved_regs): Update.
5924 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
5925 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5926 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5927 * mips-tdep.c (mips_gdbarch_init): Update.
5928 * mcore-tdep.c (mcore_gdbarch_init): Update.
5929 * m68k-tdep.c (m68k_gdbarch_init): Update.
5930 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5931 * ia64-tdep.c (ia64_gdbarch_init): Update.
5932 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
5933 * i386-interix-tdep.c (i386_interix_init_abi): Update.
5934 (i386_interix_back_one_frame): Update.
5935 * hppa-tdep.c (hppa_gdbarch_init): Update.
5936 (hppa_init_extra_frame_info): Update.
5937 * h8300-tdep.c (h8300_gdbarch_init): Update.
5938 * frv-tdep.c (frv_gdbarch_init): Update.
5939 * cris-tdep.c (cris_gdbarch_init): Update.
5940 * avr-tdep.c (avr_gdbarch_init): Update.
5941 * arm-tdep.c (arm_gdbarch_init): Update.
5942 * alpha-tdep.c (alpha_gdbarch_init): Update.
5944 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
5946 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
5947 (arm_get_fp_model): Declare.
5948 * arm-tdep.c (fp_model_strings): New string array.
5949 (arm_fp_model, current_fp_model): New variables.
5950 (arm_get_fp_model): New function.
5951 (arm_set_fp): New function.
5952 (set_fp_model_sfunc): New function.
5953 (show_fp_model): New function.
5954 (_initialize_arm_tdep): Add new command to set/show the FPU.
5955 (arm_extract_return_value): Use arm_get_fp_model.
5956 (arm_store_return_value): Likewise.
5957 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
5958 to initialize the floating-point data types.
5959 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
5962 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
5964 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
5965 the current setting of each value.
5966 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
5967 new_set and new_show. Use add_setshow_cmd_full and
5968 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
5969 commands and add new version as subcommands of "set/show arm".
5971 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
5973 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
5974 (set_arm_command, show_arm_command): New functions.
5975 (_initialize_arm_tdep): Add them.
5976 (num_disassembly_options): Renamed from num_flavor_options.
5977 (valid_disassembly_styles): Renamed from valid_flavors.
5978 (disassembly_style): Renamed from disassembly_flavor.
5979 (set_disassembly_style_sfunc): Renamed from
5980 set_disassembly_flavor_sfunc.
5981 (set_disassembly_style): Renamed from set_disassembly_flavor.
5982 (arm_othernames): Updated.
5983 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
5984 command. Add "set/show arm disassembly" commands. Deprecate
5985 "othernames" command.
5987 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
5989 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
5990 (arm-tdep.o): Depend on elf_arm_h.
5992 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
5994 * Makefile.in (coff_internal_h): Define.
5995 (arm-tdep.o): Update dependencies.
5997 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
5999 * arm-tdep.c (prologue_cache): Delete.
6000 (check_prologue_cache, save_prologue_cache): Delete.
6001 (arm_scan_prologue): Don't check or update the prologue_cache.
6002 (arm_gdb_arch_init): Don't initialize it.
6003 (_initialize_arm_tdep): Likewise.
6005 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
6007 * MAINTAINERS (tui): Maintainer of tui code.
6009 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
6011 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
6012 (i386-cygwin-tdep.o): Add dependencies.
6013 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
6014 * i386-cygwin-tdep.c: New file.
6015 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
6016 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
6018 2003-03-20 Andrew Cagney <cagney@redhat.com>
6020 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
6021 (handle_inferior_event): Remove code calling
6022 DYNAMIC_TRAMPOLINE_NEXTPC.
6024 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
6025 already has a full path.
6027 * main.c (gdb_main): Return 1.
6028 (captured_main): Call error to report an invalid interpreter.
6030 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6031 * alpha-osf1-tdep.c: Include "gdb_string.h".
6033 2003-03-19 J. Brobecker <brobecker@gnat.com>
6035 Continuing work to convert the hppa targets to multiarch partial.
6037 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
6038 method, now that hppa_push_dummy_frame has a conformant prototype.
6039 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
6040 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
6041 for the switch to multiarch partial.
6043 2003-03-19 Kevin Buettner <kevinb@redhat.com>
6045 * mdebugread.c (parse_symbol): For stEnd, we're done counting
6046 when iss is issNull.
6048 2003-03-18 Kevin Buettner <kevinb@redhat.com>
6050 * mips-tdep.c (mips_register_name): Fix fencepost error involving
6051 NUM_REGS bounds check.
6053 2003-03-18 Kevin Buettner <kevinb@redhat.com>
6055 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
6056 * mips-tdep.c (gdb_assert.h): Include.
6057 (mips_generic_reg_names, mips_processor_reg_names): Make static.
6058 (mips_register_name): Handle integer registers explicitly. Add
6060 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
6061 (mips_lsi33k_reg_names): Don't list integer registers; they're
6062 handled by mips_register_name() now.
6063 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
6064 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
6065 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
6066 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
6067 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
6069 2003-03-18 Andrew Cagney <cagney@redhat.com>
6071 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
6073 * gdbtypes.h (print_scalar_formatted): Update declaration.
6074 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
6076 2003-03-18 J. Brobecker <brobecker@gnat.com>
6078 * infrun.c (observer.h): Add #include.
6079 (normal_stop): Add call to observer_notify_normal_stop.
6080 * Makefile.in (infrun.o): Add dependency on observer.h.
6082 2003-03-18 J. Brobecker <brobecker@gnat.com>
6084 Continuing work to convert the hppa targets to multiarch partial.
6085 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
6086 parameter. Reformat comment.
6087 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
6088 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
6089 to match new profile.
6091 2003-03-18 J. Brobecker <brobecker@gnat.com>
6093 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
6094 appear to be working in any case.
6096 2003-03-18 J. Brobecker <brobecker@gnat.com>
6098 * observer.c (observer_test_first_observer): New static variable.
6099 (observer_test_second_observer): Likewise.
6100 (observer_test_third_observer): Likewise.
6101 (observer_test_first_notification_function): New static function.
6102 (observer_test_second_notification_function): Likewise.
6103 (observer_test_third_notification_function): Likewise.
6105 2003-03-17 J. Brobecker <brobecker@gnat.com>
6107 * hppa-tdep.c (gdb_assert.h): Add missing #include.
6108 * somsolib.c (gdb_assert.h): Likewise.
6109 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
6110 (somsolib.o): Likewise.
6112 2003-03-17 Andrew Cagney <cagney@redhat.com>
6114 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
6115 BFD. Simplify setting of di.endian.
6117 2003-03-17 Andrew Cagney <cagney@redhat.com>
6119 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
6120 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
6122 From Elena Zannoni <ezannoni@redhat.com>
6123 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
6124 vector and floating-point parameters.
6125 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
6127 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
6129 2003-03-17 Fernando Nasser <fnasser@redhat.com>
6131 * MAINTAINERS: Remove my name from several maintainership roles.
6133 2003-03-17 Andrew Cagney <cagney@redhat.com>
6135 Fix frame off-by-one bug.
6136 * frame-unwind.h (frame_this_id_ftype): Replace
6137 frame_unwind_id_ftype.
6138 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
6139 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
6140 with "prev_register".
6141 * frame-unwind.c (frame_unwind_find_by_pc): Return
6142 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
6144 * dummy-frame.c (cached_find_dummy_frame): Delete function.
6145 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
6146 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
6147 (dummy_frame_unwind): Update.
6148 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6149 sentinel_frame_register_unwind.
6150 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
6151 (sentinel_frame_unwinder): Update.
6152 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
6153 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
6154 * frame.c (create_sentinel_frame): Update. Initialize
6155 "prologue_cache" instead of "unwind_cache".
6156 (frame_register_unwind): Call this frame's prev_register with the
6157 next frame and this frame's prologue cache.
6158 (get_prev_frame): Simplify. Always call prev frame's this_id with
6159 this frame and prev frame's prologue cache. Document that this
6160 call is shifted one to the left when compared to the
6161 frame_register_unwind call.
6162 (legacy_saved_regs_prev_register): Replace
6163 frame_saved_regs_register_unwind.
6164 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
6165 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
6166 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
6167 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
6168 (d10v_frame_unwind): Update.
6169 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
6170 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
6171 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
6172 "saved_regs" with "this_saved_regs".
6174 2003-03-16 Andrew Cagney <cagney@redhat.com>
6176 * frame.c (frame_pop): Don't call target_store_registers. Fix
6177 problem reported by Mark Kettenis.
6179 2003-03-16 Mark Kettenis <kettenis@gnu.org>
6181 * i386-tdep.c (i386_register_type): Renamed from
6182 i386_register_virtual_type. Adjust function signature.
6183 (i386_gdbarch_init): Set register_type instead of
6184 deprecated_max_register_raw_size,
6185 deprecated_max_register_virtual_size and register_virtual_type.
6187 2003-03-14 Andrew Cagney <cagney@redhat.com>
6189 * frame.c (get_prev_frame): When a legacy frame, always call
6190 legacy_get_prev_frame. Simplify unwind code using assumption that
6191 the unwinder is new.
6192 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
6193 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
6194 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
6196 2003-03-14 Andrew Cagney <cagney@redhat.com>
6198 * frame.c (get_saved_register): Delete function.
6199 * frame.h (get_saved_register): Delete declaration.
6200 * xstormy16-tdep.c: Update comment.
6201 * regcache.h: Update comments.
6202 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
6203 get_saved_register and extract_address, use
6204 frame_read_unsigned_register.
6205 (sparc_frame_saved_pc): Ditto.
6206 (sparc_get_saved_register): Instead of get_saved_register, use
6208 (sparc_pop_frame): Ditto.
6209 * findvar.c: Update comments.
6210 (value_of_register): Call frame_register instead of
6212 (value_from_register): Ditto.
6213 * config/sparc/tm-sparc.h: Update comment.
6214 * breakpoint.c: Update comment.
6216 2003-03-14 Andrew Cagney <cagney@redhat.com>
6218 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
6220 * gdbarch.h, gdbarch.c: Re-generate.
6221 * frame.h: Update comments.
6222 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6223 * x86-64-tdep.c (x86_64_init_abi): Update.
6224 * sparc-tdep.c (sparc_gdbarch_init): Update.
6225 * sh-tdep.c (sh_gdbarch_init): Update.
6226 * mips-tdep.c (mips_gdbarch_init): Update.
6227 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6228 * cris-tdep.c (cris_gdbarch_init): Update.
6229 * ia64-tdep.c (ia64_gdbarch_init): Update.
6230 * frame.c (frame_register): Update.
6231 (get_saved_register): Update.
6232 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
6234 2003-03-13 Andrew Cagney <cagney@redhat.com>
6236 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
6237 * gdbarch.h, gdbarch.c: Regenerate.
6238 * valops.c (hand_function_call): Update comment.
6239 * stack.c (return_command): Update comment.
6240 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
6241 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
6242 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6243 * x86-64-tdep.c (x86_64_init_abi): Update.
6244 * vax-tdep.c (vax_gdbarch_init): Update.
6245 * v850-tdep.c (v850_gdbarch_init): Update.
6246 * sparc-tdep.c (sparc_gdbarch_init): Update.
6247 * sh-tdep.c (sh_gdbarch_init): Update.
6248 * s390-tdep.c (s390_gdbarch_init): Update.
6249 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6250 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6251 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6252 * mips-tdep.c (mips_gdbarch_init): Update.
6253 * mcore-tdep.c (mcore_gdbarch_init): Update.
6254 * m68k-tdep.c (m68k_gdbarch_init): Update.
6255 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6256 * ia64-tdep.c (ia64_gdbarch_init): Update.
6257 * i386-tdep.c (i386_gdbarch_init): Update.
6258 * hppa-tdep.c (hppa_gdbarch_init): Update.
6259 * h8300-tdep.c (h8300_gdbarch_init): Update.
6260 * frv-tdep.c (frv_gdbarch_init): Update.
6261 * cris-tdep.c (cris_gdbarch_init): Update.
6262 * avr-tdep.c (avr_gdbarch_init): Update.
6263 * arm-tdep.c (arm_gdbarch_init): Update.
6264 * alpha-tdep.c (alpha_gdbarch_init): Update.
6266 2003-03-13 Andrew Cagney <cagney@redhat.com>
6268 * frame.c (legacy_frame_p): New function.
6269 (get_prev_frame): Use legacy_frame_p.
6270 * frame.h (legacy_frame_p): Declare.
6272 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
6274 * MAINTAINERS (write after approval): Alphabetically
6277 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
6279 * MAINTAINERS (write after approval): Add myself.
6281 2003-03-12 Andrew Cagney <cagney@redhat.com>
6283 * frame.c (get_prev_frame): Rename the frame parameter to
6285 (get_next_frame, legacy_get_prev_frame): Ditto.
6287 2003-03-12 Andrew Cagney <cagney@redhat.com>
6289 * frame.c (get_current_frame): Check target_has_registers before
6290 checking target_has_stack.
6291 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
6292 instead of deprecated_selected_frame.
6293 * findvar.c (value_of_register): Pass "frame", not
6294 deprecated_selected_frame, to value_of_builtin_reg.
6296 2003-03-12 Andrew Cagney <cagney@redhat.com>
6298 * regcache.c (regcache_cooked_write_signed): New function.
6299 (regcache_cooked_write_unsigned): New function.
6300 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
6301 (regcache_cooked_read_signed): Fix regnum in range assertion.
6302 * regcache.h (regcache_cooked_write_signed): Declare.
6303 (regcache_cooked_write_unsigned): Declare.
6305 2003-03-12 Andrew Cagney <cagney@redhat.com>
6307 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
6308 * gdbarch.h, gdbarch.c: Re-generate.
6309 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6310 * x86-64-tdep.h: Update.
6311 * x86-64-tdep.c (x86_64_init_abi): Update.
6312 * v850-tdep.c (v850_gdbarch_init): Update.
6313 * sparc-tdep.c (sparc_gdbarch_init): Update.
6314 * sh-tdep.c (sh_gdbarch_init): Update.
6315 * s390-tdep.c (s390_gdbarch_init): Update.
6316 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6317 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6318 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6319 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6320 * mips-tdep.c (mips_gdbarch_init): Update.
6321 * mcore-tdep.c (mcore_gdbarch_init): Update.
6322 * m68k-tdep.c (m68k_gdbarch_init): Update.
6323 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6324 * ia64-tdep.c (ia64_gdbarch_init): Update.
6325 * i386-tdep.c (i386_gdbarch_init): Update.
6326 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6327 * hppa-tdep.c (hppa_gdbarch_init): Update.
6328 * h8300-tdep.c (h8300_gdbarch_init): Update.
6329 * frv-tdep.c (frv_gdbarch_init): Update.
6330 * cris-tdep.c (cris_gdbarch_init): Update.
6331 * avr-tdep.c (avr_gdbarch_init): Update.
6332 * arm-tdep.c (arm_gdbarch_init): Update.
6333 * alpha-tdep.c (alpha_gdbarch_init): Update.
6334 * sh-tdep.c (sh_init_extra_frame_info): Update.
6335 (sh64_init_extra_frame_info): Update.
6336 * ns32knbsd-nat.c (frame_num_args): Update.
6337 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
6338 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
6339 (xstormy16_frame_chain_valid): Update.
6340 * vax-tdep.c (vax_saved_pc_after_call): Update.
6341 * v850-tdep.c (v850_frame_chain): Update.
6342 (v850_pop_frame): Update.
6343 (v850_init_extra_frame_info): Update.
6344 * sparc-tdep.c (setup_arbitrary_frame): Update.
6345 * ns32k-tdep.c (umax_frame_num_args): Update.
6346 * s390-tdep.c (s390_pop_frame_regular): Update.
6347 * mn10300-tdep.c (mn10300_frame_chain): Update.
6348 (mn10300_pop_frame_regular): Update.
6349 (mn10300_init_extra_frame_info): Update.
6350 * mips-tdep.c (mips_init_frame_pc_first): Update.
6351 (mips_frame_chain): Update.
6352 (mips_pop_frame): Update.
6353 * mcore-tdep.c (mcore_frame_chain): Update.
6354 (mcore_pop_frame): Update.
6355 (mcore_init_extra_frame_info): Update.
6356 * arch-utils.c (init_frame_pc_default): Update.
6357 * m68k-tdep.c (isi_frame_num_args): Update.
6358 (delta68_frame_num_args): Update.
6359 (news_frame_num_args): Update.
6360 * ia64-tdep.c (ia64_pop_frame_regular): Update.
6361 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6362 (alpha_frame_chain): Update.
6363 (alpha_pop_frame): Update.
6364 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
6365 (hppa_init_extra_frame_info): Update.
6366 (hppa_frame_chain): Update.
6367 (hppa_frame_chain_valid): Update.
6368 * cris-tdep.c (cris_init_extra_frame_info): Update.
6369 * avr-tdep.c (avr_init_extra_frame_info): Update.
6370 * arm-tdep.c (arm_frame_chain_valid): Update.
6371 (arm_init_extra_frame_info): Update.
6372 (arm_pop_frame): Update.
6373 * frame.c (frame_pc_unwind): Update.
6374 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
6375 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6376 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6377 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
6378 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
6379 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
6381 2003-03-12 Andrew Cagney <cagney@redhat.com>
6383 Eliminate the need for POP_FRAME.
6384 * frame.c (do_frame_unwind_register): New function.
6385 (frame_pop): When no POP_FRAME, pop the frame using register
6386 unwind and a scratch regcache.
6387 (frame_saved_regs_pop): Delete function.
6388 (trad_frame_unwinder): Update.
6389 * d10v-tdep.c (d10v_frame_pop): Delete function.
6390 (d10v_frame_unwind): Update.
6391 * sentinel-frame.c (sentinel_frame_pop): Delete function.
6392 (sentinel_frame_unwinder): Update.
6393 * dummy-frame.c (dummy_frame_pop): Delete function.
6394 (dummy_frame_unwind): Update.
6395 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
6396 (struct frame_unwind): Update.
6398 2003-03-11 Kevin Buettner <kevinb@redhat.com>
6400 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
6401 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
6402 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
6403 Do range checks on register number obtained from debugging info.
6404 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
6405 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
6406 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
6408 (do_fp_register_row): Fix typo which caused double type to be
6409 used when attempting to unpack a float.
6411 2003-03-11 J. Brobecker <brobecker@gnat.com>
6413 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
6415 2003-03-11 Andrew Cagney <cagney@redhat.com>
6417 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
6418 frame. Problem found by Corinna Vinschen.
6420 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
6422 * doublest.c (floatformat_from_length): Accept also
6423 the real size of 'long double' type.
6425 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
6427 From Klee Dienes <kdienes@apple.com>:
6428 * breakpoint.c (bpstat_copy): Copy the command lines as well
6429 as the old value, to match what is freed in bpstat_clear.
6431 2003-03-10 David Carlton <carlton@math.stanford.edu>
6433 * minsyms.c (add_minsym_to_hash_table): Replace
6434 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6435 (compare_minimal_symbols, compact_minimal_symbols)
6436 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
6437 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
6438 of DEPRECATED_SYMBOL_MATCHES_NAME.
6439 (lookup_minimal_symbol_solib_trampoline): Ditto.
6441 2003-03-10 Andrew Cagney <cagney@redhat.com>
6443 * regcache.h (regcache_cooked_read_ftype): Define.
6444 (regcache_save, regcache_restore): Add a cooked_read parameter.
6445 * regcache.c (regcache_save, regcache_restore): Update.
6446 (do_cooked_read): New function.
6447 (regcache_cpy): Pass do_cooked_read to regcache_save and
6450 2003-03-10 Andrew Cagney <cagney@redhat.com>
6452 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
6453 * gdbarch.h, gdbarch.c: Re-generate.
6454 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6455 * x86-64-tdep.h: Update.
6456 * x86-64-tdep.c (x86_64_init_abi): Update.
6457 * v850-tdep.c (v850_gdbarch_init): Update.
6458 * sparc-tdep.c (sparc_gdbarch_init): Update.
6459 * sh-tdep.c (sh_gdbarch_init): Update.
6460 * s390-tdep.c (s390_gdbarch_init): Update.
6461 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6462 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6463 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6464 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6465 * mips-tdep.c (mips_gdbarch_init): Update.
6466 * mcore-tdep.c (mcore_gdbarch_init): Update.
6467 * m68k-tdep.c (m68k_gdbarch_init): Update.
6468 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6469 * ia64-tdep.c (ia64_gdbarch_init): Update.
6470 * i386-tdep.c (i386_gdbarch_init): Update.
6471 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6472 * hppa-tdep.c (hppa_gdbarch_init): Update.
6473 * h8300-tdep.c (h8300_gdbarch_init): Update.
6474 * frv-tdep.c (frv_gdbarch_init): Update.
6475 * cris-tdep.c (cris_gdbarch_init): Update.
6476 * avr-tdep.c (avr_gdbarch_init): Update.
6477 * arm-tdep.c (arm_gdbarch_init): Update.
6478 * alpha-tdep.c (alpha_gdbarch_init): Update.
6479 * sh-tdep.c (sh_init_extra_frame_info): Update.
6480 (sh64_init_extra_frame_info): Update.
6481 * ns32knbsd-nat.c (frame_num_args): Update.
6482 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
6483 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
6484 (xstormy16_frame_chain_valid): Update.
6485 * vax-tdep.c (vax_saved_pc_after_call): Update.
6486 * v850-tdep.c (v850_frame_chain): Update.
6487 (v850_pop_frame): Update.
6488 (v850_init_extra_frame_info): Update.
6489 * sparc-tdep.c (setup_arbitrary_frame): Update.
6490 * ns32k-tdep.c (umax_frame_num_args): Update.
6491 * s390-tdep.c (s390_pop_frame_regular): Update.
6492 * mn10300-tdep.c (mn10300_frame_chain): Update.
6493 (mn10300_pop_frame_regular): Update.
6494 (mn10300_init_extra_frame_info): Update.
6495 * mips-tdep.c (mips_init_frame_pc_first): Update.
6496 (mips_frame_chain): Update.
6497 (mips_pop_frame): Update.
6498 * mcore-tdep.c (mcore_frame_chain): Update.
6499 (mcore_pop_frame): Update.
6500 (mcore_init_extra_frame_info): Update.
6501 * arch-utils.c (init_frame_pc_default): Update.
6502 * m68k-tdep.c (isi_frame_num_args): Update.
6503 (delta68_frame_num_args): Update.
6504 (news_frame_num_args): Update.
6505 * ia64-tdep.c (ia64_pop_frame_regular): Update.
6506 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6507 (alpha_frame_chain): Update.
6508 (alpha_pop_frame): Update.
6509 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
6510 (hppa_init_extra_frame_info): Update.
6511 (hppa_frame_chain): Update.
6512 (hppa_frame_chain_valid): Update.
6513 * cris-tdep.c (cris_init_extra_frame_info): Update.
6514 * avr-tdep.c (avr_init_extra_frame_info): Update.
6515 * arm-tdep.c (arm_frame_chain_valid): Update.
6516 (arm_init_extra_frame_info): Update.
6517 (arm_pop_frame): Update.
6518 * frame.c (frame_pc_unwind): Update.
6519 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
6520 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6521 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6522 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
6523 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
6524 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
6526 2003-03-10 Andrew Cagney <cagney@redhat.com>
6528 * gdbarch.sh (gdbarch_unwind_pc): New method.
6529 * gdbarch.h, gdbarch.c: Regenerate.
6530 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
6531 but use read_pc and FRAME_SAVED_PC as fall backs.
6532 (frame_saved_regs_pc_unwind): Delete function.
6533 (trad_frame_unwinder): Update.
6534 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
6535 (struct frame_unwind): Update.
6536 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
6537 (dummy_frame_unwind): Update.
6538 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
6539 (sentinel_frame_unwinder): Update.
6540 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
6541 (d10v_frame_unwind): Update.
6542 (d10v_unwind_pc): New function.
6543 (d10v_gdbarch_init): Set unwind_pc.
6545 2003-03-10 Andrew Cagney <cagney@redhat.com>
6547 * gdbarch.h: Re-generate.
6549 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
6551 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
6554 2003-03-08 Mark Kettenis <kettenis@gnu.org>
6556 * gdbarch.sh (save_dummy_frame_tos): Add comment.
6558 2003-03-08 Andrew Cagney <cagney@redhat.com>
6560 * cli-out.c: Update copyright.
6561 (cli_out_data): Define typedef. Use instead of ui_out_data.
6563 2003-03-08 Andrew Cagney <cagney@redhat.com>
6565 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
6568 2003-03-07 Andrew Cagney <cagney@redhat.com>
6570 * gdbarch.sh: Don't generate two macro definitions when an
6571 undefined macro taking no arguments.
6572 * gdbarch.h: Regenerate.
6574 2002-03-07 Michal Ludvig <mludvig@suse.cz>
6576 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
6577 (x86_64_unwind_dummy_id): New functions.
6578 (x86_64_init_abi): Register these two new functions.
6580 2003-03-07 Michal Ludvig <mludvig@suse.cz>
6582 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
6583 (x86_64_skip_prologue): Move prologue detection to
6585 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
6587 2003-03-05 Andrew Cagney <cagney@redhat.com>
6589 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
6590 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
6591 * frame.c (get_prev_frame): Restructure the frame ID unwind code
6592 to use unwind_dummy_id when a dummy frame.
6593 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
6595 * gdbarch.h, gdbarch.c: Regneerate.
6597 2003-03-05 Andrew Cagney <cagney@redhat.com>
6599 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
6600 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
6601 Do not use d10v_read_sp or d10v_read_fp when obtaining register
6604 2003-03-05 Andrew Cagney <cagney@redhat.com>
6606 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
6607 (struct d10v_unwind_cache): Delete field "frameless". Replace
6608 "next_addr" with "sp_offset". Add "r11_offset".
6609 (d10v_frame_unwind_cache): Update.
6610 (prologue_find_regs): Update. When "mv r11, sp", save the
6611 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
6612 RN was saved in r11_offset.
6614 2003-03-05 Andrew Cagney <cagney@redhat.com>
6616 * frame.c (deprecated_update_frame_pc_hack): Also update the the
6617 cached PC value in the next frame.
6619 2003-03-05 Andrew Cagney <cagney@redhat.com>
6621 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
6622 "id_unwind_cache" with "id".
6623 (frame_id_unwind): Delete declaration.
6624 * frame.c (frame_id_unwind): Delete function.
6625 (get_prev_frame): Call the frame id unwind method directly. Store
6626 the returned next frame's ID value in NEXT_FRAME. Note that there
6627 is a problem with the wrong unwind ID being called with the wrong
6630 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
6632 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
6634 2003-03-05 James Ingham <jingham@apple.com>
6635 Daniel Jacobowitz <drow@mvista.com>
6637 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
6638 (auto_cp_abi): New variable.
6639 (current_cp_abi, num_cp_abis): Make static.
6640 (CP_ABI_MAX): Define.
6641 (cp_abis): Turn into an array.
6642 (value_virtual_fn_field): Fix formatting.
6643 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
6645 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
6646 (list_cp_abis, _initialize_cp_abi): New functions.
6647 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
6648 declarations for cp_abis, num_cp_abis, current_cp_abi, and
6649 switch_to_cp_abi. Update prototype for register_cp_abi.
6650 * Makefile.in (cp-abi.o): Update dependencies.
6651 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
6652 instead of switch_to_cp_abi.
6653 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
6655 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
6657 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
6659 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
6661 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
6662 * dwarf2loc.c: Include "regcache.h".
6663 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
6665 * Makefile.in (dwarf2loc.o): Update dependencies.
6667 2003-03-04 Theodore A. Roth <troth@openavr.org>
6669 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
6670 number of io registers reported by remote target is not a multiple of
6673 2003-03-04 David Carlton <carlton@math.stanford.edu>
6675 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
6676 (lookup_symbol_aux_psymtabs): Update call to
6677 lookup_partial_symbol.
6678 (lookup_transparent_type, find_main_psymtab)
6679 (make_symbol_overload_list): Ditto.
6681 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
6683 * MAINTAINERS (Write after approval): Update my email address.
6685 2003-03-03 Andrew Cagney <cagney@redhat.com>
6687 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
6688 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
6689 predicate. Replace MAX_REGISTER_RAW_SIZE.
6690 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
6691 MAX_REGISTER_VIRTUAL_SIZE.
6692 * regcache.c (legacy_max_register_raw_size): New function.
6693 (legacy_max_register_virtual_size): New function.
6694 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
6695 (MAX_REGISTER_RAW_SIZE): Define.
6696 (legacy_max_register_raw_size): Declare.
6697 (legacy_max_register_virtual_size): Declare.
6698 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6699 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
6700 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6701 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
6702 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6703 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
6704 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
6705 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
6706 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
6707 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6708 * vax-tdep.c (vax_gdbarch_init): Update.
6709 * v850-tdep.c (v850_gdbarch_init): Update.
6710 * sparc-tdep.c (sparc_gdbarch_init): Update.
6711 * sh-tdep.c (sh_gdbarch_init): Update.
6712 * s390-tdep.c (s390_gdbarch_init): Update.
6713 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6714 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6715 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6716 * mips-tdep.c (mips_gdbarch_init): Update.
6717 * mcore-tdep.c (mcore_gdbarch_init): Update.
6718 * m68k-tdep.c (m68k_gdbarch_init): Update.
6719 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6720 * ia64-tdep.c (ia64_gdbarch_init): Update.
6721 * i386-tdep.c (i386_gdbarch_init): Update.
6722 * hppa-tdep.c (hppa_gdbarch_init): Update.
6723 * h8300-tdep.c (h8300_gdbarch_init): Update.
6724 * frv-tdep.c (frv_gdbarch_init): Update.
6725 * cris-tdep.c (cris_gdbarch_init): Update.
6726 * avr-tdep.c (avr_gdbarch_init): Update.
6727 * arm-tdep.c (arm_gdbarch_init): Update.
6728 * alpha-tdep.c (alpha_gdbarch_init): Update.
6729 * d10v-tdep.c (d10v_gdbarch_init): Do not set
6730 max_register_raw_size or max_register_virtual_size.
6732 2003-03-03 David Carlton <carlton@math.stanford.edu>
6734 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
6735 SYMBOL_MATCHES_NAME, add comment.
6736 (SYMBOL_MATCHES_NATURAL_NAME): New.
6737 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
6738 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
6739 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
6740 * symtab.c (lookup_partial_symbol): Use
6741 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
6743 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
6744 SYMBOL_MATCHES_NAME.
6747 2003-03-03 David Carlton <carlton@math.stanford.edu>
6749 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
6750 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
6751 by regexp matching against SYMBOL_NATURAL_NAME.
6753 2003-03-03 David Carlton <carlton@math.stanford.edu>
6755 * linespec.c (find_method): Extract code into collect_methods.
6756 (collect_methods): New.
6758 2003-03-02 Mark Kettenis <kettenis@gnu.org>
6760 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
6763 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
6764 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6766 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
6768 * arch-utils.c (generic_register_byte): Fix to use the loop index
6769 and not regnum when summing the size of all registers up to regnum.
6771 2003-03-01 Andrew Cagney <cagney@redhat.com>
6773 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
6774 FRAME_INIT_SAVED_REGS.
6775 * gdbarch.h, gdbarch.c: Regenerate.
6776 * stack.c (frame_info): Update.
6777 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
6778 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
6779 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
6780 * ns32k-tdep.c (ns32k_pop_frame): Update.
6781 * mips-tdep.c (mips_pop_frame): Update.
6782 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
6783 * ia64-tdep.c (ia64_frame_chain): Update.
6784 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
6785 (ia64_frameless_function_invocation): Update.
6786 (ia64_init_extra_frame_info): Update.
6787 (ia64_pop_frame_regular): Update.
6788 * frame.h (struct frame_info): Update comment.
6789 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
6790 * frame.c (frame_saved_regs_register_unwind): Update.
6791 (frame_saved_regs_register_unwind): Update.
6792 (deprecated_generic_get_saved_register): Update.
6793 * cris-tdep.c: Update comment.
6794 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
6796 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6797 * x86-64-tdep.c (x86_64_init_abi): Update.
6798 * vax-tdep.c (vax_gdbarch_init): Update.
6799 * v850-tdep.c (v850_gdbarch_init): Update.
6800 * sparc-tdep.c (sparc_gdbarch_init): Update.
6801 * sh-tdep.c (sh_gdbarch_init): Update.
6802 * s390-tdep.c (s390_gdbarch_init): Update.
6803 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6804 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6805 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6806 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6807 * mips-tdep.c (mips_gdbarch_init): Update.
6808 * mcore-tdep.c (mcore_gdbarch_init): Update.
6809 * m68k-tdep.c (m68k_gdbarch_init): Update.
6810 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6811 * ia64-tdep.c (ia64_gdbarch_init): Update.
6812 * i386-tdep.c (i386_gdbarch_init): Update.
6813 * frv-tdep.c (frv_gdbarch_init): Update.
6814 * avr-tdep.c (avr_gdbarch_init): Update.
6815 * arm-tdep.c (arm_gdbarch_init): Update.
6816 * alpha-tdep.c (alpha_gdbarch_init): Update.
6818 2003-03-01 Andrew Cagney <cagney@redhat.com>
6820 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
6821 option enum and switch. When no windows, set the interpreter to
6824 2003-03-01 Andrew Cagney <cagney@redhat.com>
6826 * main.c (captured_main): Replace magic option characters with an
6829 2003-03-01 Andrew Cagney <cagney@redhat.com>
6831 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
6832 INIT_EXTRA_FRAME_INFO.
6833 * gdbarch.h, gdbarch.c: Regenerate.
6834 * arm-tdep.c: Update comments.
6835 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
6836 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
6837 * frame.h, avr-tdep.c: Ditto.
6838 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
6839 (create_new_frame, legacy_get_prev_frame): Ditto.
6840 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
6841 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
6842 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
6843 deprecated_init_extra_frame_info instead of init_extra_frame_info.
6844 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6845 * v850-tdep.c (v850_gdbarch_init): Ditto.
6846 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6847 * sh-tdep.c (sh_gdbarch_init): Ditto.
6848 * s390-tdep.c (s390_gdbarch_init): Ditto.
6849 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
6850 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6851 * mips-tdep.c (mips_gdbarch_init): Ditto.
6852 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6853 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6854 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6855 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
6856 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6857 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6858 * frv-tdep.c (frv_gdbarch_init): Ditto.
6859 * cris-tdep.c (cris_gdbarch_init): Ditto.
6860 * avr-tdep.c (avr_gdbarch_init): Ditto.
6861 * arm-tdep.c (arm_gdbarch_init): Ditto.
6862 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6863 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6865 2003-03-01 Andrew Cagney <cagney@redhat.com>
6867 * gdbarch.sh (register_type): New function with predicate.
6868 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
6869 * gdbarch.h, gdbarch.c: Re-generate.
6870 * arch-utils.c (generic_register_byte): Use generic_register_size.
6871 (generic_register_size): When available, use
6872 gdbarch_register_type.
6873 * regcache.c (init_regcache_descr): When available, initialize the
6874 register type array using gdbarch_register_type. If the
6875 architecture supplies gdbarch_register_type, do not use the legacy
6877 * d10v-tdep.c (d10v_register_type): Replace
6878 d10v_register_virtual_type.
6879 (d10v_gdbarch_init): Set register_type instead of
6880 register_virtual_type.
6882 2003-03-01 Andrew Cagney <cagney@redhat.com>
6884 * Makefile.in (ax-gdb.o): Update dependencies.
6885 * ax-gdb.c: Include "regcache.h".
6886 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
6887 * findvar.c (value_of_register): Ditto.
6888 * infcmd.c (default_print_registers_info): Ditto.
6890 2003-03-01 Mark Kettenis <kettenis@gnu.org>
6892 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
6893 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6895 2003-03-01 Mark Kettenis <kettenis@gnu.org>
6897 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
6900 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
6902 * Makefile.in (dwarf2loc.o): Update dependencies.
6903 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
6904 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
6905 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
6906 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
6907 (locexpr_tracepoint_var_ref): New function.
6908 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
6910 2003-02-28 Andrew Cagney <cagney@redhat.com>
6912 * regcache.c (register_size): New function.
6913 * regcache.h (register_size): Declare
6914 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
6915 max_register_size instead of MAX_REGISTER_RAW_SIZE.
6917 2003-02-28 David Carlton <carlton@math.stanford.edu>
6919 * linespec.c (decode_compound): Extract code into find_method.
6922 2003-02-28 J. Brobecker <brobecker@gnat.com>
6924 * Makefile.in: Add rules to build and link in observer.o.
6926 2003-02-27 J. Brobecker <brobecker@gnat.com>
6928 * observer.c: Minor comments edits.
6930 2003-02-27 J. Brobecker <brobecker@gnat.com>
6932 * observer.h, observer.c: New file.
6934 2003-02-27 Andrew Cagney <cagney@redhat.com>
6936 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
6938 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
6940 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
6941 (M6812_OP_STS_EXT): Likewise.
6942 (m6811_prologue): Use the above to recognize prologue.
6943 (m6812_prologue): Likewise.
6945 2003-02-27 David Carlton <carlton@math.stanford.edu>
6947 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
6949 (compare_psymbols): Ditto.
6950 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
6952 2003-02-27 Michael Snyder <msnyder@redhat.com>
6954 * f-lang.c (build_fortran_types): New function.
6955 (_initialize_f_language): Gdbarch-register built-in fortran types.
6956 * doublest.c (extract_floating): Fix warning text.
6958 2003-02-27 Andrew Cagney <cagney@redhat.com>
6960 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
6961 predicate. Replaces PUSH_DUMMY_FRAME.
6962 * gdbarch.h, gdbarch.c: Regnerate.
6963 * valops.c (hand_function_call): Update. Call
6964 generic_push_dummy_frame directly.
6965 * vax-tdep.c (vax_gdbarch_init): Update.
6966 * sparc-tdep.c (sparc_gdbarch_init): Update.
6967 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6968 * m68k-tdep.c (m68k_gdbarch_init): Update.
6969 * hppa-tdep.c (hppa_gdbarch_init): Update.
6970 * alpha-tdep.c (alpha_gdbarch_init): Update.
6971 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
6972 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
6973 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
6974 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
6975 push_dummy_frame to generic_push_dummy_frame.
6976 * v850-tdep.c (v850_gdbarch_init): Ditto.
6977 * sh-tdep.c (sh_gdbarch_init): Ditto.
6978 * s390-tdep.c (s390_gdbarch_init): Ditto.
6979 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6980 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6981 * mips-tdep.c (mips_gdbarch_init): Ditto.
6982 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6983 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6984 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6985 * i386-tdep.c (i386_gdbarch_init): Ditto.
6986 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6987 * frv-tdep.c (frv_gdbarch_init): Ditto.
6988 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6989 * cris-tdep.c (cris_gdbarch_init): Ditto.
6990 * avr-tdep.c (avr_gdbarch_init): Ditto.
6991 * arm-tdep.c (arm_gdbarch_init): Ditto.
6993 2003-02-26 Kevin Buettner <kevinb@redhat.com>
6995 * mips-tdep.c (show_mips_abi): New function.
6996 (_initialize_mips_tdep): Use show_mips_abi() to implement the
6997 command ``show mips abi''.
6999 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
7001 From Elena Zannoni <ezannoni@redhat.com>
7002 * dbxread.c (process_one_symbol): Only record line 0 if one or
7003 more sline entries have been seen for the function.
7005 2003-02-26 Michael Chastain <mec@shout.net>
7007 * configure: Regenerate with autoconf 000227.
7009 2003-02-26 Michael Chastain <mec@shout.net>
7012 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
7013 for old libc5/glibc.
7014 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
7016 2003-02-26 Kris Warkentin <kewarken@qnx.com>
7018 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
7019 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
7021 2003-02-26 Michael Chastain <mec@shout.net>
7023 * configure.in: New variable HAVE_UINTPTR_T.
7024 * configure, config.in: Regenerated.
7026 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
7029 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
7031 2003-02-25 Andrew Cagney <cagney@redhat.com>
7033 * frame.c (get_prev_frame): Add comment on check for
7034 inside_entry_func. Only check for inside_entry_file when not a
7035 dummy and not a sentinel. Check that the new frame is not inner
7038 2003-02-25 Andrew Cagney <cagney@redhat.com>
7040 * frame.c (frame_debug): New variable.
7041 (_initialize_frame): Add "set/show debug frame" command.
7042 (get_prev_frame): When frame_debug, print reason why unwind
7045 2003-02-25 Michael Chastain <mec@shout.net>
7047 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
7048 to avoid uintptr_t definition problems.
7050 2003-02-25 David Carlton <carlton@math.stanford.edu>
7052 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
7053 (SYMBOL_LINKAGE_NAME): Ditto.
7054 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
7055 SYMBOL_LINKAGE_NAME.
7056 (struct general_symbol_info): Expand comment.
7057 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
7058 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
7059 (SYMBOL_MATCHES_REGEXP): Ditto.
7060 * symtab.c (symbol_natural_name): New function.
7061 * objfiles.h: Replace all uses of SYMBOL_NAME by
7062 DEPRECATED_SYMBOL_NAME.
7063 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
7064 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
7065 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
7066 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
7067 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
7068 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
7069 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
7070 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
7071 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
7072 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
7074 * ada-exp.y: Update copyright.
7075 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
7076 * cp-valprint.c: Ditto.
7078 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
7080 * infptrace.c (detach): Do not flag error if ptrace detach fails
7081 and errno is set to ESRCH.
7083 2003-02-24 Andrew Cagney <cagney@redhat.com>
7085 * infptrace.c (udot_info): Change type of udot_off to long. Use
7086 paddr when printing udot_off's value.
7088 2003-02-24 David Carlton <carlton@math.stanford.edu>
7090 * symtab.c (make_symbol_overload_list): Only read in partial
7091 symtabs containing a matching partial symbol.
7093 2003-02-24 David Carlton <carlton@math.stanford.edu>
7095 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
7096 do the comparison, not strcmp.
7097 * symfile.c (compare_psymbols): Ditto.
7098 * defs.h: Declare strcmp_iw_ordered.
7099 * utils.c (strcmp_iw_ordered): New function.
7101 2003-02-24 Jim Blandy <jimb@redhat.com>
7103 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
7104 support, shared libs): Remove my name from here, to better reflect
7107 2003-02-24 Kris Warkentin <kewarken@qnx.com>
7109 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
7110 (target_ops): Add to_have_continuable_watchpoint.
7111 * target.c (update_current_target): Add INHERIT line for
7112 to_have_continuable_watchpoint.
7113 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
7114 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
7115 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
7116 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
7118 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
7120 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
7123 2003-02-24 Kris Warkentin <kewarken@qnx.com>
7125 * solib.c (solib_open): Call target defined search function after
7126 failing with solib-search-path.
7127 * solist.h (target_so_ops): Add find_and_open_solib function hook and
7128 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
7130 2003-02-24 Kris Warkentin <kewarken@qnx.com>
7132 * MAINTAINERS: Add myself to Write After section.
7134 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
7136 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
7138 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
7140 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
7141 (m68hc11_add_reggroups): New function.
7142 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
7143 (m68hc11_gdbarch_init): Install the reggroups.
7144 (_initialize_m68hc11_tdep): Initialize them.
7146 2003-02-21 James E Wilson <wilson@tuliptree.org>
7148 * MAINTAINERS: Update my email address.
7150 2003-02-21 David Carlton <carlton@math.stanford.edu>
7152 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
7154 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
7156 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
7157 * symtab.h: Add opaque declarations of struct axs_value and
7159 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
7160 (struct location_funcs): New type.
7161 (struct symbol): Add "loc" to aux_value.
7162 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
7163 * dwarf2read.c: Include "dwarf2expr.h".
7164 (dwarf2_symbol_mark_computed): New function.
7165 (read_func_scope): Use it.
7166 (var_decode_location): New function.
7167 (new_symbol): Use it.
7168 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
7170 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
7171 (dwarf2expr_h, dwarf2loc_h): New variables.
7172 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
7173 (dwarf2expr.o, dwarf2loc.o): New rules.
7174 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
7175 * buildsym.c (finish_block): Handle LOC_COMPUTED and
7177 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
7178 * m2-exp.y (yylex): Likewise.
7179 * printcmd.c (address_info, print_frame_args): Likewise.
7180 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
7181 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
7182 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
7183 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
7184 * symtab.c (lookup_block_symbol): Likewise.
7186 2003-02-20 Adam Fedor <fedor@gnu.org>
7188 * symtab.h: Remove objc_specific struct
7189 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
7190 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
7191 Have language_objc use cplus_specific struct.
7193 2003-02-20 Tom Tromey <tromey@redhat.com>
7195 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
7196 TYPE_NAME, when printing a String value. PR java/1075.
7198 2003-02-20 Adam Fedor <fedor@gnu.org>
7200 * objc-lang.h (find_methods): Remove declaration.
7201 * objc-lang.c (find_methods): Make static.
7203 2003-02-20 Christopher Faylor <cgf@redhat.com>
7205 * win32-nat.c (get_image_name): Check return value from
7207 (child_xfer_memory): Ditto.
7209 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
7211 * configure.in (TARGET_SYSTEM_ROOT): Set default to
7212 ${exec_prefix}/${target_alias}/sys-root. Match explicit
7213 '${exec_prefix}' (in addition to the expansion thereof) as
7215 * configure: Rebuilt.
7217 2003-02-20 David Carlton <carlton@math.stanford.edu>
7219 * symtab.c (search_symbols): Revert the search_symbols part of my
7220 2002-12-23 patch. Add comment.
7222 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7224 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
7225 * dbxread.c (elfstab_build_psymtabs): Don't call
7226 install_minimal_symbols.
7227 (stabsect_build_psymtabs): Likewise.
7228 * elfread.c (elf_symfile_read): Call install_minimal_symbols
7230 * somread.c (som_symfile_read): Call install_minimal_symbols
7231 and do_cleanups earlier.
7232 * nlmread.c (nlm_symfile_read): Likewise.
7233 * mdebugread.c (elfmdebug_build_psymtabs): Call
7234 install_minimal_symbols and make appropriate cleanups.
7236 2003-02-20 Kevin Buettner <kevinb@redhat.com>
7238 * solib.c (reload_shared_libraries): New function.
7239 (_initialize_solib): Add callbacks for ``set solib-search-path''
7240 and ``set solib-absolute-prefix''.
7242 2003-02-20 David Carlton <carlton@math.stanford.edu>
7244 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
7246 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
7247 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
7248 * ada-typeprint.c (ada_typedef_print): Ditto.
7249 * ax-gdb.c (gen_var_ref): Ditto.
7250 * breakpoint.c (print_one_breakpoint): Ditto.
7251 * buildsym.c (finish_block): Ditto.
7252 * c-valprint.c (c_val_print): Ditto.
7253 * expprint.c (print_subexp): Ditto.
7254 * findvar.c (locate_var_value): Ditto.
7255 * infcmd.c (jump_command): Ditto.
7256 * linespec.c (decode_line_2, decode_compound): Ditto.
7257 * maint.c (maintenance_translate_address): Ditto.
7258 * objc-lang.c (compare_selectors, compare_classes): Ditto.
7259 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
7261 * p-valprint.c (pascal_val_print): Ditto.
7262 * stabsread.c (define_symbol): Ditto.
7263 * stack.c (print_frame, frame_info, print_block_frame_locals)
7264 (print_frame_arg_vars, return_command): Ditto.
7265 * symfile.c (compare_symbols, compare_psymbols): Ditto.
7266 * symmisc.c (print_symbol): Ditto.
7267 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
7268 (compare_search_syms, print_symbol_info, print_msymbol_info)
7269 (rbreak_command): Ditto.
7270 * tracepoint.c (tracepoints_info): Ditto.
7271 * typeprint.c (typedef_print): Ditto.
7272 * valops.c (value_of_variable, hand_function_call): Ditto.
7273 * cli/cli-cmds.c (edit_command, list_command): Ditto.
7274 * ada-typeprint.c: Update Copyright.
7275 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
7276 * tracepoint.c, cli/cli-cmds.c: Ditto.
7278 2003-02-20 Kevin Buettner <kevinb@redhat.com>
7280 * frame.c (generic_unwind_get_saved_register): Make non-static.
7281 * frame.h (generic_unwind_get_saved_register): Declare.
7282 * mips-tdep.c (read_next_frame_reg): Fetch register from
7283 current regcache when frame is NULL.
7284 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
7286 (mips_get_saved_register): Call generic_unwind_get_saved_register()
7287 instead of frame_register_unwind().
7289 2003-02-20 Andrew Cagney <ac131313@redhat.com>
7291 * remote-sim.c (gdbsim_insert_breakpoint)
7292 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
7295 2003-02-20 Andrew Cagney <ac131313@redhat.com>
7297 * remote.c (_initialize_remote): Add commands "set/show remote
7298 hardware-watchpoint-limit" and "set/show remote
7299 hardware-breakpoint-limit".
7300 (remote_hw_watchpoint_limit): Initialize to -1.
7301 (remote_hw_breakpoint_limit): Ditto.
7302 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
7304 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
7306 * coff-pe-read.c: New file - support reading of minimal symbols from a
7307 portable executable using the export table.
7308 * coff-pe-read.h: New file.
7309 * coffread.c: Include coff-pe-read.h.
7310 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
7311 debugging symbols found.
7312 * Makefile.in (SFILES): Add coff-pe-read.o.
7313 (coff_pe_read_h): Define.
7314 (COMMON_OBS): Add coff-pe-read.o.
7315 (coffread.o): Add coff_pe_read_h dependency.
7316 (coff-pe-read.o): New target.
7318 2003-02-19 David Carlton <carlton@math.stanford.edu>
7320 * Makefile.in (SFILES): Add block.c.
7322 (COMMON_OBS): Add block.o.
7324 (x86-64-tdep.o): Add $(block_h).
7325 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
7326 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
7327 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
7328 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
7329 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
7330 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
7331 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
7332 * value.h: Add opaque declaration for struct block.
7333 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
7334 * ada-lang.h: Ditto.
7335 * x86-64-tdep.c: #include "block.h"
7336 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
7337 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
7338 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
7339 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
7340 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
7341 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
7342 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
7343 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
7344 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
7345 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
7346 * symtab.c (block_function): Ditto.
7347 (contained_in): Ditto.
7348 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
7349 block.h. Add opaque declaration for struct block.
7350 * symtab.h: Move block_function and contained_in declarations to
7351 block.h. Add opaque declarations for struct block, struct
7353 (struct block): Move to block.h.
7354 (struct blockvector): Ditto.
7355 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
7356 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
7357 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
7358 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
7359 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
7361 * block.c: New file.
7362 * block.h: New file.
7364 2003-02-19 Theodore A. Roth <troth@openavr.org>
7366 * avr-tdep.c (avr_extract_return_value): Remove function.
7367 (avr_store_return_value): Remove function.
7368 (avr_extract_struct_value_address): Remove function.
7369 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
7371 2003-02-19 Andrew Cagney <ac131313@redhat.com>
7373 * rs6000-tdep.c: Include "gdb_assert.h".
7374 (registers_e500): Add "acc" and "spefscr".
7375 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
7376 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
7377 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
7379 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
7381 2003-02-18 Keith Seitz <keiths@redhat.com>
7383 * Makefile.in: Add gdbtk-interps.c.
7385 2003-02-18 Kevin Buettner <kevinb@redhat.com>
7387 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
7388 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
7390 2003-02-18 Andrew Cagney <cagney@redhat.com>
7392 * symtab.h (struct objfile): Add opaque declaration.
7394 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
7396 From Jim Ingham <jingham@apple.com>:
7397 * dbxread.c (process_one_symbol): Use last_function_start rather
7398 than function_start_offset to find the real beginning of the
7399 current function. The latter is just the text section offset on
7400 some systems, the former is always the real function start.
7402 2003-02-17 Andrew Cagney <cagney@redhat.com>
7404 * configure.in: Revert ${target} != ${host}.
7406 2003-02-17 Andrew Cagney <ac131313@redhat.com>
7408 * configure.in (Makefile): Use the test ${target} != ${host},
7409 instead of the absence of the "nm.h" file, to determine of the
7410 configuration non-native.
7411 * configure: Regenerate.
7413 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
7415 From Brian Ford <ford@vss.fsi.com>
7417 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
7418 conditionalize tui_active test.
7419 (lookup_cmd_1): Ditto.
7421 2003-02-14 Mark Kettenis <kettenis@gnu.org>
7423 * configure.in: Add check for _etext.
7424 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
7426 * config.in, configure: regenerated.
7428 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
7430 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
7432 2003-02-14 Andrew Cagney <ac131313@redhat.com>
7434 * main.c (tui_version): Delete variable.
7435 (captured_main): When --tui, set interpreter_p to "tui" instead of
7436 enabling tui_version.
7437 * printcmd.c (display_command) [TUI]: Test tui_active instead of
7439 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
7440 * cli/cli-cmds.c (disassemble_command): Ditto.
7441 * defs.h (tui_version): Delete declaration.
7442 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
7443 (tui-interp.o): Add rules.
7444 (SUBDIR_TUI_OBS): Add "tui-interp.o".
7446 2003-02-14 Christopher Faylor <cgf@redhat.com>
7448 * win32-nat.c (register_loaded_dll): Correctly set address range for
7451 2003-02-12 Jason Molenda (jmolenda@apple.com)
7453 * symmisc.c (print_objfile_statistics): Include information about
7454 the number of psymtabs and symtabs in each object file.
7456 2003-02-13 Keith R Seitz <keiths@redhat.com>
7458 * main.h (struct captured_main_args): Add interpreter_p.
7459 * main.c (captured_main): Initialize interpreter_p from context.
7460 * gdb.c (main): Set interpreter_p argument.
7461 * Makefile.in (gdb.o): Add dependency for interps.h.
7463 2003-02-12 Andrew Cagney <ac131313@redhat.com>
7465 * event-top.c (cli_command_loop): Delete declaration.
7466 (_initialize_event_loop): Delete function setting event_loop_hook.
7467 * event-top.h (cli_command_loop): Declare. Update copyright.
7468 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
7469 * interps.c (current_interp_command_loop): When event_loop_p, call
7472 2003-02-12 Andrew Cagney <ac131313@redhat.com>
7474 * interps.h (interp_command_loop_ftype): Change return type to
7477 2003-02-12 Michal Ludvig <mludvig@suse.cz>
7479 * x86-64-tdep.c (x86_64_extract_return_value)
7480 (x86_64_store_return_value): Use regcache instead of regbuf.
7481 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
7482 * x86-64-linux-nat.c (fill_gregset): Use regcache.
7484 2003-02-11 Andrew Cagney <ac131313@redhat.com>
7486 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
7487 * aclocal.m4: Regenerate.
7488 * configure: Regenerate.
7490 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
7491 TCL_LD_SEARCH_FLAGS.
7493 2003-02-10 Michal Ludvig <mludvig@suse.cz>
7495 * dwarf2cfi.c: Reindented.
7497 2003-02-09 Andrew Cagney <ac131313@redhat.com>
7499 * interps.c (clear_interpreter_hooks): Convert function definition
7502 2003-02-07 David Carlton <carlton@math.stanford.edu>
7504 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
7506 2003-02-07 Kevin Buettner <kevinb@redhat.com>
7508 * gdbtypes.h (struct main_type): Move ``length'' field from here...
7509 (struct type): ...to here.
7510 (TYPE_LENGTH): Adjust to reflect different location of ``length''
7512 * gdbtypes.c (make_qualified_type): Set length on newly created type.
7513 (replace_type): Set length on all type variants for a given type.
7515 2003-02-07 Andrew Cagney <ac131313@redhat.com>
7517 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
7519 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
7521 2003-02-06 Andrew Cagney <ac131313@redhat.com>
7523 * Makefile.in (symm-nat.o): Update dependencies.
7524 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
7525 (lynx-nat.o, ia64-linux-nat.): Ditto.
7526 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
7527 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
7528 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
7530 * Makefile.in (inflow_h): Define.
7531 (procfs.o, inflow.o, procfs.o): Update dependencies.
7532 * inftarg.c (child_stop): Delete extern declaration of
7533 inferior_process_group. Include "inflow.h".
7534 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
7535 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
7536 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
7537 (our_process_group, inferior_process_group): Extern declarations.
7539 * procfs.c: Include "gdb_assert.h".
7541 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
7542 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
7543 * jv-typeprint.c (java_type_print_base): Ditto.
7544 * typeprint.c (typedef_print): Eliminate STREQ.
7545 * cli/cli-script.c (define_command, define_command): Ditto.
7546 * main.c (captured_main): Ditto.
7547 * values.c (lookup_internalvar): Ditto.
7548 * utils.c (safe_strerror, parse_escape): Eliminate assignment
7549 within `if' conditional.
7550 * linespec.c (decode_line_2): Ditto.
7551 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
7552 (bfd_openw_with_cleanup): Ditto.
7554 2003-02-07 Mark Kettenis <kettenis@gnu.org>
7556 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
7557 legacy_extract_return_value and store_return_value to
7558 legacy_return_value.
7560 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
7562 * win32-nat.c (get_relocated_section_addrs): New function. Find
7563 section load addresses for symbol handling in relocated DLLs.
7564 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
7566 2003-02-05 Fred Fish <fnf@intrinsity.com>
7568 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
7570 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
7572 (angel_RDI_info): Ditto.
7573 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
7575 (threads_continue_all_with_signals): Ditto.
7577 2003-02-05 Jim Ingham <jingham@apple.com>
7578 Keith Seitz <keiths@redhat.com>
7579 Elena Zannoni <ezannoni@redhat.com>
7580 Andrew Cagney <ac131313@redhat.com>
7582 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
7583 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
7584 (SUBDIR_MI_OBS): Add "mi-interp.o".
7585 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
7586 (SFILES): Add "interps.c".
7587 (COMMON_OBS): Add "interps.o".
7588 (interps_h, mi_main_h): Define.
7589 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
7590 (mi-main.o, main.o, event-top.o): Update dependencies.
7591 * cli/cli-interp.c: New file.
7592 * interps.h, interps.c: New files.
7593 * top.c: (gdb_init): Don't install the default interpreter, handed
7595 * main.c: Include "interps.h".
7596 (interpreter_p): Note that it should malloc'ed.
7597 (captured_command_loop): Call current_interp_command_loop.
7598 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
7599 xfree and xstrdup when updating interpreter_p. Install the
7600 default interpreter. Add hack to stop mi1's copyright notice
7602 * event-top.h (gdb_setup_readline): Declare.
7603 (gdb_disable_readline): Declare.
7604 * event-top.c: Include "interps.h".
7605 (display_gdb_prompt): Call current_interp_display_prompt_p.
7606 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
7607 gdb_stdlog, and gdb_stdtarg.
7608 (_initialize_event_loop): Don't call gdb_setup_readline.
7609 * cli-out.c (cli_out_set_stream): New function.
7610 * cli-out.h (cli_out_set_stream): Declare.
7612 2003-02-06 Mark Kettenis <kettenis@gnu.org>
7614 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
7615 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
7616 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
7617 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
7618 config/i386/i386v42mp.mt: Removed.
7620 2003-02-05 Mark Kettenis <kettenis@gnu.org>
7622 * configure.tgt (*-*-solaris*): Set gdb_osabi to
7625 2003-02-05 Michael Chastain <mec@shout.net>
7627 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
7628 2.12.1 and earlier versions.
7630 2003-02-05 Andrew Cagney <ac131313@redhat.com>
7632 Remove orphaned hosts, targets and files.
7633 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
7634 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
7635 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
7636 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
7637 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
7638 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
7639 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
7640 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
7641 * config/sparc/tm-sp64sim.h: Delete.
7642 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
7644 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
7645 mips*-dec-mach3* targets.
7647 2003-02-04 Michael Chastain <mec@shout.net>
7649 * NEWS: Fix typo: sepcifying -> specifying.
7651 2003-02-04 Michael Chastain <mec@shout.net>
7653 * dwarfread.c: Add documentation on the state of dwarf-1,
7654 looking towards obsoletion.
7656 2003-02-03 Michael Chastain <mec@shout.net>
7658 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
7659 gdb/testsuite/gdb.c++/pr-1023.exp.
7661 2003-02-04 Andrew Cagney <ac131313@redhat.com>
7663 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
7664 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
7666 * utils.c (init_page_info): Delete reference to MPW in comments.
7667 * main.c (captured_main): Delete #ifdef MPW.
7669 2003-02-04 Andrew Cagney <ac131313@redhat.com>
7671 * NEWS: Note that the m32r-*-elf* is obsolete.
7672 * monitor.c (monitor_expect): Obsolete reference to m32r.
7673 * configure.tgt: Mark m32r-*-elf* as obsolete.
7674 * MAINTAINERS: Mark m32k as obsolete.
7675 * m32r-rom.c: Obsolete file.
7676 * config/m32r/m32r.mt: Obsolete file.
7677 * config/m32r/tm-m32r.h: Obsolete file.
7678 * m32r-stub.c: Obsolete file.
7679 * m32r-tdep.c: Obsolete file.
7681 2003-02-04 Andrew Cagney <ac131313@redhat.com>
7683 * NEWS: Mention that the z8k-zilog-none is obsolete.
7684 * MAINTAINERS: Mark z8k as obsolete.
7685 * configure.tgt: Obsolete the z8k-*-coff* target.
7686 * config/z8k/z8k.mt: Obsolete file.
7687 * config/z8k/tm-z8k.h: Obsolete file.
7688 * z8k-tdep.c: Obsolete file.
7690 2003-02-04 Andrew Cagney <ac131313@redhat.com>
7692 * NEWS: Mention that the mn10200-elf is obsolete.
7693 * configure.tgt: Obsolete mn10200-*-* target.
7694 * breakpoint.c (update_breakpoints_after_exec): Update comment to
7695 mention that the mn10200 is obsolete.
7696 * breakpoint.h: Ditto.
7697 * MAINTAINERS: Mark the mn10200-elf as obsolete.
7698 * config/mn10200/mn10200.mt: Obsolete file.
7699 * config/mn10200/tm-mn10200.h: Obsolete file.
7700 * mn10200-tdep.c: Obsolete file.
7702 2003-02-04 Andrew Cagney <ac131313@redhat.com>
7704 * MAINTAINERS: Mark h8500 as obsolete.
7705 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
7706 * findvar.c (value_from_register): Ditto.
7707 * h8500-tdep.c: Mark file as obsolete.
7708 * config/h8500/h8500.mt: Ditto.
7709 * config/h8500/tm-h8500.h: Ditto.
7710 * NEWS: Mention that h8500 is obsolete.
7712 2003-02-04 David Carlton <carlton@math.stanford.edu>
7714 * objfiles.c (allocate_objfile): Always set name. Add comment at
7716 * jv-lang.c (get_dynamics_objfile): Add comment.
7718 2003-02-04 David Carlton <carlton@math.stanford.edu>
7720 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
7721 * printcmd.c (build_address_symbolic): Replace uses of
7722 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
7723 SYMBOL_NAME, and asm_demangle.
7726 2003-02-04 David Carlton <carlton@math.stanford.edu>
7728 * linespec.c (decode_compound): Extract code into
7730 (lookup_prefix_sym): New function.
7732 2003-02-04 David Carlton <carlton@math.stanford.edu>
7734 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
7735 FLOAT_COERCION_BADNESS.
7736 * gdbtypes.c (rank_one_type): Replace all uses of
7737 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
7739 2003-02-04 Jim Blandy <jimb@redhat.com>
7741 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
7742 section, let dwarf_macinfo_section point to it, not
7745 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
7747 Pointed out by Anton Blanchard <anton@samba.org>.
7748 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
7749 (ppc_linux_at_sigtramp_return_path): Use it.
7751 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
7753 * defs.h (streq): Add prototype.
7754 * utils.c (streq): New function.
7756 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
7757 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
7758 * mdebugread.c (new_symbol): Likewise.
7759 * stabsread.c (define_symbol): Likewise.
7760 * coffread.c (process_coff_symbol): Likewise.
7761 * dwarfread.c (new_symbol): Likewise.
7763 * minsyms.c (prim_record_minimal_symbol_and_info): Use
7764 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
7766 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
7767 SYMBOL_INIT_DEMANGLED_NAME.
7768 * objfiles.c: Include "hashtab.h".
7769 (allocate_objfile): Call htab_set_functions_ex for the
7770 demangled_names_hash.
7771 (free_objfile): Call htab_delete for the demangled_names_hash.
7772 * objfiles.h (struct htab): Add declaration.
7773 (struct objfile): Add demangled_names_hash.
7774 * symfile.c: Include "hashtab.h".
7775 (reread_symbols): Call htab_delete for the demangled_names_hash.
7776 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
7777 SYMBOL_NAME in the bcache.
7778 * symtab.c: Include "hashtab.h". Update comments.
7779 (create_demangled_names_hash, symbol_set_names): New functions.
7780 (symbol_find_demangled_name): New function, broken out from
7781 symbol_init_demangled_names.
7782 (symbol_init_demangled_names): Use it.
7783 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
7784 (SYMBOL_SET_NAMES): New macro.
7785 (symbol_set_names): Add prototype.
7787 2003-02-03 Jim Blandy <jimb@redhat.com>
7789 Use a single, consistent representation for an empty minimal
7790 symbol table in an objfile.
7791 * objfiles.c (terminate_minimal_symbol_table): New function.
7792 (allocate_objfile): Call it.
7793 * objfiles.h (terminate_minimal_symbol_table): New declaration.
7794 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
7796 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
7797 objfile has minimal symbols, compare minimal_symbol_count to zero,
7798 instead of comparing msymbols with NULL.
7799 * objfiles.c (have_minimal_symbols): Same.
7800 * solib-sunos.c (solib_add_common_symbols): Call
7801 terminate_minimal_symbol_table.
7802 * symfile.c (reread_symbols): Same.
7804 2003-02-03 Kevin Buettner <kevinb@redhat.com>
7806 * s390-tdep.c (s390_address_class_type_flags)
7807 (s390_address_class_type_flags_to_name)
7808 (s390_address_class_name_to_type_flags): New functions.
7809 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
7810 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
7812 2003-02-03 Michael Snyder <msnyder@redhat.com>
7814 * arm-tdep.c: Fix spell-o in comment.
7816 2003-02-03 Michal Ludvig <mludvig@suse.cz>
7818 * dwarf2cfi.c (pointer_encoding): Added new parameter.
7819 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
7820 error messages to contain BFD filename.
7822 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
7824 Fix PR gdb/742 gdb/743 gdb/877
7825 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
7826 (do_mixed_source_and_assembly): Use
7827 make_cleanup_ui_out_tuple_begin_end and
7828 make_cleanup_ui_out_tuple_begin_end.
7829 (do_mixed_source_and_assembly): Ditto.
7830 * thread.c (do_captured_list_thread_ids): Ditto.
7831 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
7832 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
7833 ui_out_tuple_end): Delete prototypes.
7834 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
7835 ui_out_list_end, ui_out_tuple_end): Delete.
7837 From Kevin Buettner <kevinb@redhat.com>:
7838 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
7839 * ui-out.c (make_cleanup_ui_out_table_begin_end)
7840 (do_cleanup_table_end): New functions.
7841 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
7842 Use cleanups to invoke_ui_out_tuple_end().
7843 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
7844 * cli/cli-setshow.c (cmd_show_list): Use
7845 make_cleanup_ui_out_tuple_begin_end.
7847 2003-02-02 Andrew Cagney <ac131313@redhat.com>
7849 * frame.c (frame_unwind_register): New function.
7850 (frame_unwind_unsigned_register): Use.
7851 (frame_unwind_signed_register): Use.
7852 (frame_read_register): New function.
7853 * frame.h (frame_unwind_register): Declare.
7854 (frame_read_register): Declare.
7856 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
7857 and frame_unwind_register instead of read_memory, write_register
7858 and deprecated_write_register_bytes.
7860 2003-02-02 Andrew Cagney <ac131313@redhat.com>
7862 * frame.h: Note that namelen can be negative.
7863 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
7866 * NEWS: Mention that the d10v's `regs' command is deprecated.
7867 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
7868 (d10v_print_registers_info): New function.
7869 (show_regs): Call d10v_print_registers_info.
7870 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
7872 2003-02-02 Mark Kettenis <kettenis@gnu.org>
7874 * stack.c (print_frame_info): Restore call to annotate_frame_begin
7875 lost in the previous patch.
7877 2003-02-01 Andrew Cagney <ac131313@redhat.com>
7879 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
7880 * stack.c (print_frame_info_base): Output complete FRAME tuple
7881 for synthesized frames.
7883 2003-02-02 Andrew Cagney <ac131313@redhat.com>
7885 * mips-nat.c (zerobuf): Delete.
7886 (fetch_inferior_registers): Alloc local zerobuf.
7887 (fetch_core_registers): Alloc local zerobuf.
7888 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
7889 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
7890 * thread-db.c (thread_db_store_registers): Ditto.
7891 * sh-tdep.c (sh_do_register): Ditto.
7892 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
7893 * remote-sim.c (gdbsim_store_register): Ditto.
7894 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7895 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7896 * monitor.c (monitor_supply_register): Ditto.
7897 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
7898 * mips-nat.c (fetch_inferior_registers): Ditto.
7899 * m68klinux-nat.c (fetch_register): Ditto.
7900 * lynx-nat.c (fetch_inferior_registers): Ditto.
7901 (fetch_inferior_registers): Ditto.
7902 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
7903 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7904 (hpux_thread_store_registers): Ditto.
7905 * hppah-nat.c (fetch_register): Ditto.
7906 * hppab-nat.c (fetch_register): Ditto.
7907 * hppa-tdep.c (pa_register_look_aside): Ditto.
7908 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
7909 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
7911 2003-02-01 Andrew Cagney <ac131313@redhat.com>
7913 * gdbarch.sh: Explictly specify all method levels. When a
7914 variable with an empty level, provide a non-multi-arch default.
7915 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
7916 * gdbarch.h: Re-generate.
7917 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
7918 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
7920 2003-02-01 Andrew Cagney <ac131313@redhat.com>
7922 * defs.h (host_pointer_to_address): Delete declaration.
7923 (address_to_host_pointer): Delete declaration.
7924 * utils.c (host_pointer_to_address): Delete function.
7925 (address_to_host_pointer): Delete function.
7926 * procfs.c (procfs_address_to_host_pointer): New function.
7927 * procfs.c (proc_set_watchpoint): Use.
7928 (procfs_can_use_hw_breakpoint): Update comments.
7929 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
7930 (som_solib_add): Use.
7931 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
7932 * hppa-tdep.c (unwind_command): Use.
7934 2003-02-01 Andrew Cagney <ac131313@redhat.com>
7936 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
7939 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
7940 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
7941 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
7942 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
7943 (define_symbol): Update.
7944 * symfile.c (generic_load): Remove references to nindy.
7945 * symtab.c: Remove references to nindy.
7947 2003-02-01 Andrew Cagney <ac131313@redhat.com>
7949 * infcmd.c (print_float_info): Delete code conditional on
7951 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
7952 * config/m68k/nm-apollo68b.h: Ditto.
7953 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
7954 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
7955 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
7957 2003-02-01 Mark Kettenis <kettenis@gnu.org>
7959 * config/i386/tm-i386os9k.h: Removed.
7961 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
7962 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
7963 they're identical to i[3456]86-*-sysv* now.
7964 * config/i386/i386v32.mh: Removed.
7965 * config/i386/xm-i386v32.h: Removed.
7966 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
7968 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
7970 * config/i386/i386dgux.mh: Removed.
7971 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
7973 * configure.in: Fix typo.
7974 * configure: Regenerated.
7976 2003-01-31 David Carlton <carlton@math.stanford.edu>
7978 * dwarf2read.c (dwarf2_locate_sections): Set
7979 dwarf_ranges_section.
7981 2003-01-31 Andrew Cagney <ac131313@redhat.com>
7983 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
7984 * utils.c: Update comments documenting legitimate uses of PTR.
7986 * utils.c: Re-indent.
7988 * config/djgpp/fnchange.lst: Delete nindy files.
7989 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
7990 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
7991 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
7992 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
7993 * nindy-share/README, nindy-share/Onindy.c: Delete files.
7994 * nindy-tdep.c, nindy-share/Makefile: Delete files.
7995 * Makefile.in (init.c): Remove nindy references.
7996 (saber_gdb): Delete rule.
7997 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
7998 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
8000 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
8001 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
8002 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
8003 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
8005 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
8006 * saber.suppress: Delete file.
8008 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
8010 * dbxread.c (stabs_data): New static variable.
8011 (fill_symbuf): Support an in-memory buffer for stabs data.
8012 (stabs_seek): New function.
8013 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
8014 (read_ofile_symtab): Use stabs_seek.
8015 (elfstab_build_psymtabs): Take an asection* instead of
8016 an offset and size. Relocate the stabs data if necessary.
8017 Save the section* for dbx_psymtab_to_symtab.
8018 * dwarf2read.c: Add section variables for each debug section.
8019 (dwarf2_locate_sections): Fill them in.
8020 (dwarf2_read_section): Take an asection* argument.
8021 Relocate the section contents if necessary.
8022 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
8023 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
8024 it to dwarf2_read_section.
8025 (dwarf2_build_frame_info): Update callers.
8026 * elfread.c (elf_symfile_read): Update call to
8027 elfstab_build_psymtabs.
8028 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
8029 (DBX_STAB_SECTION): New macro.
8030 * stabsread.h (elfstab_build_psymtabs): Update prototype.
8031 * symfile.c (symfile_dummy_outputs): New function.
8032 (symfile_relocate_debug_section): New function.
8033 * symfile.h (symfile_relocate_debug_section): Add prototype.
8035 2003-01-31 Richard Henderson <rth@redhat.com>
8037 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
8038 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
8039 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
8040 * alpha-tdep.c (alpha_register_name): Add "unique".
8041 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
8042 (ALPHA_UNIQUE_REGNUM): New.
8043 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
8045 2003-01-31 Andrew Cagney <ac131313@redhat.com>
8047 * README: Remove reference to Ericsson 1800 monitor.
8048 * Makefile.in (remote-es.o): Delete rule.
8049 (ALLDEPFILES): Delete remote-es.c.
8050 * remote-es.c: Delete file.
8051 * config/m68k/es1800.mt: Delete file.
8052 * config/djgpp/fnchange.lst: Update.
8053 * configure.tgt: Delete m68*-ericsson-* target.
8055 2003-01-31 Adam Fedor <fedor@gnu.org>
8057 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
8058 Remove duplicate/shadowing variable of same name.
8060 2003-01-30 Jim Blandy <jimb@redhat.com>
8062 * symfile.c (find_separate_debug_file): Assert that the objfile's
8063 directory name we compute ends with a slash, and then assume that
8064 that's so everywhere we use it.
8066 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
8068 * valops.c (value_assign): Flush frame cache after stores to memory
8071 2003-01-30 Andrew Cagney <ac131313@redhat.com>
8073 * Makefile.in (mon960-rom.o): Delete rule.
8074 * mon960-rom.c: Delete file.
8076 2003-01-30 Andrew Cagney <ac131313@redhat.com>
8078 * d10v-tdep.c: Include "frame-unwind.h".
8079 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
8081 (next_addr, uses_frame): Delete.
8082 (struct d10v_unwind_cache): Define.
8083 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
8084 Use info instead of next_addr and uses_frame globals.
8085 (d10v_frame_init_saved_regs): Delete function.
8086 (d10v_init_extra_frame_info): Delete function.
8087 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
8088 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
8089 init_frame_pc or frame_saved_pc.
8090 (d10v_pop_frame): Delete function.
8091 (do_d10v_pop_frame): Delete function.
8092 (d10v_frame_chain): Delete function.
8093 (d10v_frame_chain_valid): Delete function.
8094 (d10v_frame_pc_unwind): New function.
8095 (d10v_frame_id_unwind): New function.
8096 (saved_regs_unwinder): New function.
8097 (d10v_frame_register_unwind): New function.
8098 (d10v_frame_pop): New function.
8099 (d10v_frame_unwind): New variable.
8100 (d10v_frame_p): New function.
8101 (d10v_frame_saved_pc): Delete function.
8102 * Makefile.in (d10v-tdep.o): Update dependencies.
8104 2003-01-30 J. Brobecker <brobecker@gnat.com>
8106 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
8107 causing some regressions due to a change in the default value
8110 2003-01-29 Richard Henderson <rth@redhat.com>
8111 Elena Zannoni <ezannoni@redhat.com>
8112 Daniel Jacobowitz <drow@mvista.com>
8115 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
8117 (RANGES_SECTION): New.
8118 (dwarf_ranges_buffer): New variable.
8119 (struct comp_unit_head): Add member "die".
8120 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
8121 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
8122 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
8123 (dwarf2_locate_sections): Likewise.
8124 (dwarf2_build_psymtabs): Read .debug_ranges.
8125 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
8126 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
8127 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
8128 Look for DW_AT_ranges and return the bounding box.
8130 2003-01-29 Brian Ford <ford@vss.fsi.com>
8132 * win32-nat.c (cygwin_pid): Removed as unused.
8133 (child_attach): Try fall back to Cygwin pid.
8135 2003-01-29 Jim Blandy <jimb@redhat.com>
8137 * objfiles.h (struct objfile): Doc fix.
8139 2003-01-29 Andrew Cagney <ac131313@redhat.com>
8141 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
8142 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
8143 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
8144 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
8145 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
8146 (FRAME_SAVED_PC): Change to a function with predicate.
8147 * gdbarch.h, gdbarch.c: Re-generate.
8149 2003-01-28 Andrew Cagney <ac131313@redhat.com>
8151 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
8153 * complaints.c (complain): Delete function.
8154 * complaints.h (struct deprecated_complaint): Delete definition.
8155 (complain): Delete declaration.
8157 2003-01-28 Kevin Buettner <kevinb@redhat.com>
8159 * mips-tdep.c (mips_init_extra_frame_info): Return early for
8162 2003-01-27 Andrew Cagney <ac131313@redhat.com>
8164 * sentinel-frame.h, sentinel-frame.c: New files.
8165 * Makefile.in (frame.o): Update dependencies.
8166 (SFILES): Add sentinel-frame.c.
8167 (sentinel_frame_h): Define.
8168 (COMMON_OBS): Add sentinel-frame.o.
8169 (sentinel-frame.o): Specify dependencies.
8170 * frame.c: Include "sentinel-frame.h".
8171 (frame_register_unwind): Rewrite assuming that there is always a a
8173 (frame_register, generic_unwind_get_saved_register): Ditto.
8174 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
8175 (create_sentinel_frame, unwind_to_current_frame): New functions.
8176 (get_current_frame): Rewrite using create_sentinel_frame and
8177 unwind_to_current_frame. When possible, always create a frame.
8178 (create_new_frame): Set next to the sentinel frame.
8179 (get_next_frame): Rewrite. Don't go below the level 0 frame.
8180 (deprecated_update_frame_pc_hack): Update the next frame's PC and
8181 ID cache when necessary.
8182 (frame_saved_regs_id_unwind): Use frame_relative_level.
8183 (deprecated_generic_get_saved_register): Use frame_relative_level,
8184 get_frame_saved_regs, get_frame_pc, get_frame_base and
8186 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
8189 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
8191 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
8193 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
8195 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
8196 (maintenance_set_profile_cmd): Use error () instead of warning ().
8198 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
8200 * configure.in: Check that -pg works if using --enable-profiling.
8201 Check for monstartup and _mcleanup regardless of --enable-profiling.
8202 * maint.c: Check for monstartup and _mcleanup before using them.
8203 * config.in: Regenerated.
8204 * configure: Regenerated.
8206 2003-01-24 Nick Clifton <nickc@redhat.com>
8210 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
8212 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
8213 (sh2e_show_regs): New.
8214 (sh_gdbarch_init): Handle bfd_mach_sh2e.
8215 * config/sh/tm-sh.h: Added sh2e to comments.
8217 2003-01-23 Jim Blandy <jimb@redhat.com>
8219 * symfile.c (syms_from_objfile): Don't print the "(no debugging
8220 symbols found)" message here; we haven't checked for a separate
8221 debug info file yet, so we don't know yet.
8222 (symbol_file_add_with_addrs_or_offsets): Print it here, after
8223 we've looked everywhere. Also, there's no need to print a special
8224 message when we're loading the separate debug info file: the one
8225 symbol_file_add prints is fine.
8227 2003-01-23 Alexander Larsson <alexl@redhat.com>
8228 Jim Blandy <jimb@redhat.com>
8230 Add support for executables whose debug info has been separated
8231 out into a separate file, leaving only a link behind.
8232 * objfiles.h (struct objfile): New fields: separate_debug_objfile
8233 and separate_debug_objfile_backlink.
8234 (put_objfile_before): New declaration.
8235 * symfile.c: #include "filenames.h".
8236 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
8237 debug info in a separate file, read that, too. Save the addrs
8238 argument, so we can use it again to read the separated debug info;
8239 syms_from_objfile modifies the table we pass it.
8240 (reread_symbols): After re-reading an objfile, call
8241 reread_separate_symbols to refresh its separate debug info
8242 objfile, if it has one.
8243 (reread_separate_symbols, find_separate_debug_file,
8244 get_debug_link_info, separate_debug_file_exists): New functions.
8245 (debug_file_directory): New global var.
8246 (_initialize_symfile): Initialize debug_file_directory, and
8247 provide the new `set debug-file-directory' command to let the user
8249 * objfiles.c (free_objfile): If this objfile has its debug info in
8250 a separate objfile, free that one too. If this is itself a
8251 separate debug info objfile, clear our parent's backlink.
8252 (put_objfile_before): New function.
8253 * utils.c (gnu_debuglink_crc32): New function.
8254 * defs.h (gnu_debuglink_crc32): New declaration.
8255 * Makefile.in (symfile.o): Note dependency on "filenames.h".
8256 * configure.in: Handle --with-separate-debug-dir config option.
8257 * acinclude.m4 (AC_DEFINE_DIR): New macro.
8258 * acconfig.h (DEBUGDIR): New macro.
8259 * configure, aclocal.m4, config.in: Regenerated.
8261 2003-01-22 Jim Blandy <jimb@redhat.com>
8263 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
8264 like the old symbol_file_add, but taking new arguments: you can
8265 now pass in either a `struct section_addr_info' list to say where
8266 each section is loaded, or a `struct section_offsets' table. Pass
8267 these new arguments through to syms_from_objfile as appropriate.
8268 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
8269 with the appropriate quiescent values for the new arguments.
8271 * symfile.c: #include "gdb_assert.h".
8272 (syms_from_objfile): Add the ability to pass in a section offset
8273 table directly, as an alternative to the section_addr_info table.
8274 Document arguments better.
8275 (symbol_file_add): Pass extra arguments to syms_from_objfile.
8276 * symfile.h (syms_from_objfile): Update declaration.
8277 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
8279 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
8281 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
8283 Original patch by Tom Tromey <tromey@cygnus.com> and
8284 Jason Molenda <jmolenda@apple.com>.
8285 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
8286 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
8287 * NEWS: Mention profiling.
8288 * configure.in (--enable-gdbtk): Fix typo.
8289 (--enable-profiling): New. Set PROFILE_CFLAGS.
8290 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
8292 (profiling_state): New variable.
8293 (mcleanup_wrapper): New function.
8294 (_initialize_maint): Remove NOTYET, fix call to
8295 add_setshow_boolean_cmd for "maint set profile".
8296 * configure: Regenerated.
8298 2003-01-21 Martin M. Hunt <hunt@redhat.com>
8300 * Makefile.in (install-gdbtk): Install PNG images too.
8302 2003-01-21 Andrew Cagney <ac131313@redhat.com>
8304 * exec.c (text_start): Delete global variable.
8305 (exec_file_attach): Make text_start local to the function.
8306 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
8307 * valops.c (hand_function_call): Delete code that handles
8308 BEFORE_TEXT_END and AFTER_TEXT_END.
8309 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
8310 of CALL_DUMMY_LOCATION.
8311 * gdbarch.c: Regenerate.
8312 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
8313 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
8314 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
8315 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
8316 (text_end): Delete extern declaration.
8318 2003-01-21 Andrew Cagney <ac131313@redhat.com>
8320 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
8321 * blockframe.c (backtrace_below_main): Move to "frame.c".
8322 (frame_chain_valid): Delete check for backtrace_below_main.
8323 (_initialize_blockframe): Delete initialization, move ``set
8324 backtrace-below-main'' command to "frame.c".
8325 (do_flush_frames_sfunc): Delete function.
8326 * frame.c: Include "command.h" and "gdbcmd.h".
8327 (frame_type_from_pc): New function.
8328 (create_new_frame): Use frame_type_from_pc.
8329 (legacy_get_prev_frame): New function.
8330 (get_prev_frame): Rewrite. When an old style frame, call
8331 legacy_get_prev_frame. Otherwize, unwind the PC first.
8332 (_initialize_frame): Add ``set backtrace-below-main'' command.
8333 * Makefile.in (frame.o): Update dependencies.
8335 2003-01-19 Andrew Cagney <ac131313@redhat.com>
8337 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
8338 DEPRECATED_REGISTERS_INFO.
8340 2003-01-19 Andrew Cagney <ac131313@redhat.com>
8342 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
8343 Maintainers'. Update `Various Maintainers'.
8345 2003-01-19 Andrew Cagney <ac131313@redhat.com>
8347 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
8348 * gdbarch.sh (POP_FRAME): Change to function with predicate.
8349 Suppress actual parameters when `-'.
8350 * gdbarch.h, gdbarch.c: Regenerate.
8352 2003-01-19 Andrew Cagney <ac131313@redhat.com>
8354 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
8355 code handling dummy frames.
8357 2003-01-19 Andrew Cagney <ac131313@redhat.com>
8359 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
8360 (struct frame_unwind): Add field pop.
8361 * frame.h (frame_pop): Declare.
8362 * frame.c (frame_saved_regs_pop): New function.
8363 (trad_frame_unwinder): Add frame_saved_regs_pop.
8364 (frame_pop): New function.
8365 * dummy-frame.c (dummy_frame_pop): New function.
8366 (discard_innermost_dummy): New function.
8367 (generic_pop_dummy_frame): Use discard_innermost_dummy.
8368 (dummy_frame_unwind): Add dummy_frame_pop.
8369 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
8370 * valops.c (hand_function_call): Ditto.
8371 * stack.c (return_command): Ditto.
8373 2003-01-18 Andrew Cagney <ac131313@redhat.com>
8375 * cris-tdep.c: Fix function declaration indentation.
8376 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
8377 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
8378 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
8379 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
8380 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
8381 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
8383 2003-01-18 Michael Chastain <mec@shout.net>
8385 * README (Unpacking and Installation -- quick overview):
8386 Warn against ".../gdb-5.3/gdb/configure".
8388 2003-01-18 Andrew Cagney <ac131313@redhat.com>
8390 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
8391 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
8392 (struct frame_unwind): Declare opaque.
8393 (dummy_frame_p): Declare function.
8394 * dummy-frame.c (dummy_frame_id_unwind): Make static.
8395 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
8396 * dummy-frame.c: Include "frame-unwind.h".
8397 (dummy_frame_p): New function.
8398 (dummy_frame_unwind): New variable.
8399 * frame.c: Include "frame-unwind.h".
8400 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
8401 to use the new unwind field.
8402 (set_unwind_by_pc): Delete function.
8403 (create_new_frame, get_prev_frame): Set unwind field using
8404 frame_unwind_find_by_pc.
8405 (trad_frame_unwind, trad_frame_unwinder): New variables.
8406 * frame.h (trad_frame_unwind): Declare variable.
8407 (frame_id_unwind_ftype): Delete declaration.
8408 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
8409 (struct frame_unwind): Declare opaque.
8410 (struct frame_info): Replace the fields id_unwind, pc_unwind and
8411 register_unwind with a single unwind pointer.
8412 * frame-unwind.h, frame-unwind.c: New files.
8413 * Makefile.in (SFILES): Add frame-unwind.c.
8414 (frame_unwind_h): Define.
8415 (COMMON_OBS): Add frame-unwind.o.
8416 (frame-unwind.o): Specify dependencies.
8417 (frame.o, dummy-frame.o): Update dependencies.
8419 2003-01-18 Andrew Cagney <ac131313@redhat.com>
8421 * ada-valprint.c: Eliminate PTR.
8422 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
8423 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
8424 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
8425 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
8426 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
8427 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
8428 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8430 2003-01-17 Andrew Cagney <ac131313@redhat.com>
8432 * main.c (captured_main): Don't use PTR.
8433 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
8434 * gdbtypes.c (lookup_primitive_typename): Ditto.
8435 (lookup_struct_elt_type): Ditto.
8436 * f-valprint.c (info_common_command): Ditto.
8437 (list_all_visible_commons): Ditto.
8438 * jv-typeprint.c (java_type_print_base): Ditto.
8440 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
8441 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
8442 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
8443 i386-interix-nat.c and i386-interix-tdep.c. Rename
8444 m68klinux-nat.c and m68klinux-tdep.c. Rename
8445 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
8446 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
8447 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
8448 * main.c (captured_main): Use xfree, not free.
8450 2003-01-16 Andrew Cagney <ac131313@redhat.com>
8452 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
8453 ID back using a parameter.
8454 * frame.c (frame_id_unwind): Update call.
8455 (frame_saved_regs_id_unwind): Update.
8456 * dummy-frame.c (dummy_frame_id_unwind): Update function.
8457 * dummy-frame.h (struct frame_id): Add opaque declaration.
8458 (dummy_frame_id_unwind): Update declaration.
8460 2003-01-15 Andrew Cagney <ac131313@redhat.com>
8462 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
8464 2003-01-15 Stephen P. Smith <ischis2@cox.net>
8466 * MAINTAINERS (Stephen P. Smith): Updated email address.
8468 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
8471 * breakpoint.c (until_break_command): Add new argument. Use it to
8472 decide whether to stop only at the current frame or not.
8473 * breakpoint.h (until_break_command): Update prototype.
8474 * infcmd.c (until_command): Add new argument to until_break_command
8476 (advance_command): New function.
8477 (_initialize_infcmd): Update help string for 'until' command.
8478 Add new 'advance' command.
8480 2003-01-14 David Carlton <carlton@math.stanford.edu>
8482 * linespec.c (decode_line_1): Normalize comments.
8484 (locate_first_half): Ditto.
8485 (decode_compound): Ditto.
8486 (symtab_from_filename): Ditto.
8487 (decode_all_digits): Ditto.
8488 (decode_dollar): Ditto.
8489 (find_methods): Ditto.
8490 (find_toplevel_char): Ditto.
8492 2003-01-13 Andrew Cagney <ac131313@redhat.com>
8494 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
8495 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
8496 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
8497 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
8498 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
8499 * language.c, language.h, m32r-tdep.c: Update copyright.
8500 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
8501 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
8502 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
8503 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
8504 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
8505 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
8507 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
8509 * stabsread.h (process_later, resolve_cfront_continuation):
8511 Update copyright years.
8512 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
8513 Update copyright year.
8514 * dbxread.c(struct cont_elem): Obsolete.
8515 (process_later, process_now): Obsolete functions.
8516 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
8517 Update copyright year.
8518 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
8519 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
8520 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
8521 (parse_partial_symbols): Obsolete cfront support.
8523 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
8525 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
8526 read_cfront_baseclasses, read_cfront_member_functions,
8527 resolve_cfront_continuation,read_cfront_static_fields,
8528 copy_cfront_struct_fields): Obsolete functions.
8529 (define_symbol, read_one_struct_field): Obsolete cfront support.
8530 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
8531 Update Copyright year.
8533 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
8535 * stack.c (print_frame_info, print_stack_frame_base_stub,
8536 print_stack_frame_base, show_and_print_stack_frame_stub,
8537 show_and_print_stack_frame, print_only_stack_frame_stub,
8538 print_only_stack_frame): Delete functions.
8539 (print_stack_frame_stub): Call print_frame_info instead of
8540 print_frame_info_base.
8541 (print_frame_info_base): Rename to print_frame_info.
8542 (backtrace_command_1): Call print_frame_info, instead of
8543 print_frame_info_base.
8544 (current_frame_command): Call print_stack_frame, instead of
8545 print_only_stack_frame.
8546 (frame_command): Call print_stack_frame, instead of
8547 show_and_print_stack_frame.
8548 (up_command): Ditto.
8549 (down_command): Ditto.
8550 * frame.h (print_only_stack_frame): Delete prototype.
8551 * infrun.c (normal_stop): Call print_stack_frame, instead of
8552 show_and_print_stack_frame.
8553 * thread.c (info_threads_command): Call print_stack_frame, instead
8554 of print_only_stack_frame.
8556 2003-01-13 Andrew Cagney <ac131313@redhat.com>
8558 * README (Graphical interface to GDB): Update URL. Point at
8561 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
8564 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8566 * symtab.c (find_pc_sect_line): Don't consider end-of-function
8569 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8571 * thread-db.c (attach_thread): Prototype.
8572 (struct private_thread_info): Remove lwpid. Add thread handle (th),
8573 thread information (ti), and valid flags (th_valid, ti_valid).
8574 (attach_thread): Move target_pid_to_str call to after the thread
8575 is added to GDB's list. Initialize the cache.
8576 (thread_get_info_callback, thread_db_map_id2thr)
8577 (thread_db_get_info): New functions.
8578 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
8579 (thread_db_store_registers, thread_db_thread_alive)
8580 (thread_db_get_thread_local_address): Use them.
8581 (thread_db_pid_to_str): Likewise. Return "Missing" instead
8582 of calling error() for threads in unknown state.
8584 (clear_lwpid_callback): New function.
8585 (thread_db_resume): Use it to clear the cache.
8587 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8589 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
8590 (resume_callback): Remove dead code.
8592 2003-01-13 Andrew Cagney <ac131313@redhat.com>
8594 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
8596 * gdbarch.h, gdbarch.c: Regenerate.
8597 * stack.c (frame_info): Only initialize the saved registers when
8598 FRAME_INIT_SAVED_REGS_P.
8599 * frame.c (frame_saved_regs_register_unwind): Assert
8600 FRAME_INIT_SAVED_REGS_P.
8601 (deprecated_generic_get_saved_register): Ditto.
8603 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8605 * source.c (openp): Squelch warning about "filename".
8607 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8609 * source.c (openp): If the file does not exist don't necessarily
8612 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8615 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
8616 (integer_types_same_name_p): New function.
8617 (rank_one_type): Use it.
8618 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
8620 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8622 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
8624 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
8625 * configure.in: Add --with-sysroot.
8626 * configure: Regenerated.
8627 * main.c (gdb_sysroot): New variable.
8628 (captured_main): Initialize gdb_sysroot.
8629 * defs.h (gdb_sysroot): New extern declaration.
8630 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
8632 2003-01-12 Michael Chastain <mec@shout.net>
8634 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
8636 2003-01-12 Michael Chastain <mec@shout.net>
8638 * top.c (print_gdb_version): Bump copyright year to 2003.
8640 2003-01-12 David Carlton <carlton@bactrian.org>
8642 * linespec.c (symtab_from_filename): Rename variable 's' to
8645 2003-01-12 Andrew Cagney <ac131313@redhat.com>
8647 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
8649 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
8651 2003-01-12 Andrew Cagney <ac131313@redhat.com>
8653 * d10v-tdep.c: Include "gdb_assert.h".
8654 (d10v_store_return_value): Rewrite to match current interface.
8655 (d10v_extract_struct_value_address): Ditto.
8656 (d10v_extract_return_value): Ditto.
8657 (d10v_gdbarch_init): Set store_restore_value,
8658 extract_struct_value_address and extract_return_value.
8660 2003-01-12 J. Brobecker <brobecker@gnat.com>
8662 * hpread.c (set_namestring): New procedure replacing the
8663 SET_NAMESTRING macro.
8664 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
8665 by calls to set_namestring.
8667 2003-01-11 J. Brobecker <brobecker@gnat.com>
8669 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
8670 a compilation warning.
8671 (hpread_process_one_debug_symbol): Likewise.
8673 2003-01-10 David Carlton <carlton@math.stanford.edu>
8675 * linespec.c (decode_line_1): Rename variable 's' to
8677 (decode_all_digits): Rename argument 's' to 'file_symtab'.
8678 (decode_dollar): Ditto.
8679 (decode_variable): Ditto.
8680 (symbol_found): Ditto.
8682 2003-01-09 Michael Chastain <mec@shout.net>
8684 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
8686 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
8688 * win32-nat.c (set_process_privilege): New function.
8689 (child_attach): Call set_process_privilege() to enable the
8690 SE_DEBUG_NAME user privilege if available in process token.
8692 2003-01-10 J. Brobecker <brobecker@gnat.com>
8694 * hpread.c (hpread_process_one_debug_symbol): Fix a small
8695 compilation error in the previous revision.
8697 2003-01-09 David Carlton <carlton@math.stanford.edu>
8699 * linespec.c: Update copyright.
8701 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
8703 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
8705 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
8707 2003-01-09 Andrew Cagney <ac131313@redhat.com>
8709 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
8711 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
8712 (frame_saved_regs_zalloc): Update.
8713 (frame_saved_regs_register_unwind): Update.
8714 (create_new_frame): Update.
8715 (get_prev_frame): Update.
8716 (frame_extra_info_zalloc): Update.
8717 (deprecated_get_frame_saved_regs): Update.
8718 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
8719 * cris-tdep.c: Update comment.
8721 * somsolib.h: Fix function indentation.
8722 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
8723 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
8724 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
8725 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
8726 * somsolib.c, inftarg.c: Remove assignment in if conditional.
8728 * infrun.c (follow_fork): Use ISO C definition.
8729 * expprint.c (print_subexp): Use xfree instead of free.
8730 * charset.c: Include "gdb_string.h" instead of <string.h>.
8731 (register_iconv_charsets): Use ISO C definition.
8732 (host_charset, target_charset): Ditto.
8733 * Makefile.in (charset.o): Update dependencies.
8734 (mi-cmd-env.o): Update dependencies.
8736 2003-01-08 Andrew Cagney <cagney@redhat.com>
8738 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
8741 2003-01-08 Andrew Cagney <ac131313@redhat.com>
8743 * gdb_mbuild.sh: Add --keep option. When specified, keep the
8744 build directories. Save edited gdb output in Mbuild.log. If a
8745 build fails, remove any final GDB executable.
8747 2003-01-08 Andrew Cagney <ac131313@redhat.com>
8749 * gdb_mbuild.sh: Edit the output of `maint print architecture'
8750 replacing hex constants with function names and stripping leading
8751 file name directory prefixes.
8753 2003-01-08 Andrew Cagney <cagney@redhat.com>
8755 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
8758 2003-01-08 David Carlton <carlton@math.stanford.edu>
8760 * linespec.c (decode_line_1): Move code into decode_variable.
8761 (decode_variable): New function.
8763 2003-01-08 Andrew Cagney <ac131313@redhat.com>
8765 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
8767 2003-01-08 Andrew Cagney <cagney@redhat.com>
8769 * cris-tdep.c (cris_frame_init_saved_regs): Use
8770 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
8772 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8773 (sh64_nofp_frame_init_saved_regs): Ditto.
8774 (sh_fp_frame_init_saved_regs): Ditto.
8775 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
8776 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
8777 * mcore-tdep.c (analyze_dummy_frame): Ditto.
8778 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
8780 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
8782 * minsyms.c (lookup_minimal_symbol): Update comment.
8783 (lookup_minimal_symbol_text): Update comment. Use the hash table.
8784 (lookup_minimal_symbol_solib_trampoline): Likewise.
8786 2003-01-08 Andrew Cagney <cagney@redhat.com>
8788 * d10v-tdep.c (d10v_init_extra_frame_info): Use
8789 frame_relative_level.
8791 * alpha-tdep.c: Use get_frame_extra_info.
8792 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8793 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
8794 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
8795 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
8797 * alpha-tdep.c: Use get_next_frame.
8798 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8799 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
8800 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
8801 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
8802 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
8803 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
8804 * xstormy16-tdep.c: Ditto.
8806 2003-01-07 Andrew Cagney <cagney@redhat.com>
8808 * alpha-tdep.c: Use get_frame_base.
8809 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8810 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
8811 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
8812 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
8813 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
8814 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
8815 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
8816 * config/sparc/tm-sparc.h: Ditto.
8818 2003-01-07 Andrew Cagney <cagney@redhat.com>
8820 * frame.c (deprecated_get_frame_context): New function.
8821 (deprecated_set_frame_context): New function.
8822 * frame.h (deprecated_get_frame_context): Declare.
8823 (deprecated_set_frame_context): Declare.
8824 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
8825 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8827 2003-01-07 Andrew Cagney <cagney@redhat.com>
8829 * frame.c (deprecated_set_frame_next_hack): New function.
8830 (deprecated_set_frame_prev_hack): New function.
8831 * frame.h (deprecated_set_frame_next_hack): Declare.
8832 (deprecated_set_frame_prev_hack): Declare.
8833 * mcore-tdep.c (analyze_dummy_frame): Use
8834 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
8835 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
8837 2003-01-07 David Carlton <carlton@math.stanford.edu>
8839 * linespec.c (decode_line_1): Move code into decode_dollar.
8840 (decode_dollar): New function.
8842 2003-01-07 Andrew Cagney <cagney@redhat.com>
8844 * arm-tdep.c (arm_init_extra_frame_info): Use
8845 deprecated_update_frame_base_hack.
8846 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
8847 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
8848 (fix_frame_pointer): Ditto.
8849 (mn10300_analyze_prologue): Ditto.
8851 2003-01-07 Andrew Cagney <cagney@redhat.com>
8853 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
8854 extra_info using frame_extra_info_zalloc.
8855 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8856 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
8857 (sh64_init_extra_frame_info): Ditto.
8858 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
8859 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
8860 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
8861 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
8862 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
8863 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
8864 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
8865 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
8866 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
8867 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
8868 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8869 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
8871 * mn10300-tdep.c (analyze_dummy_frame): Use
8872 deprecated_set_frame_extra_info_hack.
8873 * mcore-tdep.c (analyze_dummy_frame): Ditto.
8875 2003-01-07 J. Brobecker <brobecker@gnat.com>
8877 * mdebugread.c (parse_symbol): Skip stProc entries which storage
8878 class is not scText. These do not define "real" procedures.
8879 (parse_partial_symbols): Likewise.
8881 2003-01-06 Michael Snyder <msnyder@redhat.com>
8883 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
8885 2003-01-06 Andrew Cagney <ac131313@redhat.com>
8887 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
8888 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
8889 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
8890 deprecated_frame_xmalloc_with_cleanup.
8891 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
8892 deprecated_frame_xmalloc.
8893 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
8894 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
8896 2003-01-06 Andrew Cagney <cagney@redhat.com>
8898 * x86-64-linux-tdep.c: Include "osabi.h".
8899 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
8901 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
8903 2003-01-06 Andrew Cagney <cagney@redhat.com>
8905 * MAINTAINERS (Target Instruction Set Architectures): Update
8906 arm-elf. Can be built with -Werror, has been multiarched.
8908 * value.h (unpack_long): Make buffer parameter constant.
8909 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
8910 * scm-lang.h (scm_parse): Ditto.
8911 * defs.h (extract_typed_address, extract_address): Ditto.
8912 (extract_long_unsigned_integer): Ditto.
8913 * inferior.h (unsigned_pointer_to_address): Ditto.
8914 (signed_pointer_to_address): Ditto.
8915 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
8916 * gdbarch.h, gdbarch.c: Regenerate.
8917 * findvar.c (extract_long_unsigned_integer): Update.
8918 (extract_address): Update.
8919 (extract_typed_address): Update.
8920 (unsigned_pointer_to_address): Update.
8921 * values.c (unpack_long): Update.
8922 (unpack_double): Update.
8923 (unpack_pointer): Update.
8924 (unpack_field_as_long): Update.
8925 * d10v-tdep.c (d10v_pointer_to_address): Update.
8926 * avr-tdep.c (avr_pointer_to_address): Update.
8927 * scm-lang.c (scm_unpack): Update.
8928 * findvar.c (signed_pointer_to_address): Update.
8930 2003-01-06 Michal Ludvig <mludvig@suse.cz>
8932 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
8933 since it is in i386-tdep.c.
8935 2003-01-06 J. Brobecker <brobecker@gnat.com>
8937 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
8938 failure introduced in the previous change.
8940 2003-01-05 Michael Chastain <mec@shout.net>
8942 * README: Remove references to deleted remote-*.c files:
8943 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
8944 remote-nrom.c, remote-os9k.c, remote-udi.c.
8946 2003-01-05 Mark Kettenis <kettenis@gnu.org>
8948 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
8949 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
8950 i386_get_longjmp_target.
8952 2003-01-05 Andrew Cagney <ac131313@redhat.com>
8954 * arm-tdep.c (prologue_cache): Change to a pointer.
8955 (_initialize_arm_tdep): Allocate prologue_cache.
8956 (check_prologue_cache): Update.
8957 (save_prologue_cache): Update.
8958 (arm_gdbarch_init): Update.
8960 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
8962 * stabsread.c (update_method_name_from_physname): Call complaint()
8965 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
8967 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
8968 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
8969 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
8971 * blockframe.c: Include "gdbcmd.h" and "command.h".
8972 (backtrace_below_main): New variable.
8973 (file_frame_chain_valid, func_frame_chain_valid)
8974 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
8975 (generic_func_frame_chain_valid): Remove functions.
8976 (frame_chain_valid, do_flush_frames_sfunc): New functions.
8977 (_initialize_blockframe): New function.
8978 * Makefile.in (blockframe.o): Update dependencies.
8979 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
8980 comment. Call frame_chain_valid ().
8981 * frame.h: Remove old prototypes. Add prototype for
8982 frame_chain_valid and update comments to match.
8983 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
8985 * gdbarch.h: Regenerated.
8986 * gdbarch.c: Regenerated.
8988 * alpha-tdep.c (alpha_gdbarch_init): Don't call
8989 set_gdbarch_frame_chain_valid.
8990 * avr-tdep.c (avr_gdbarch_init): Likewise.
8991 * cris-tdep.c (cris_gdbarch_init): Likewise.
8992 * frv-tdep.c (frv_gdbarch_init): Likewise.
8993 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
8994 * i386-tdep.c (i386_svr4_init_abi): Likewise.
8995 (i386_nw_init_abi): Likewise.
8996 (i386_gdbarch_init): Likewise.
8997 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
8998 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
8999 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
9000 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
9001 * mips-tdep.c (mips_gdbarch_init): Likewise.
9002 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9003 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
9004 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9005 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9006 * s390-tdep.c (s390_gdbarch_init): Likewise.
9007 * sh-tdep.c (sh_gdbarch_init): Likewise.
9008 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
9009 * v850-tdep.c (v850_gdbarch_init): Likewise.
9010 * vax-tdep.c (vax_gdbarch_init): Likewise.
9011 * x86-64-tdep.c (x86_64_init_abi): Likewise.
9013 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
9014 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
9015 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
9016 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
9017 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
9018 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
9019 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
9020 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
9022 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9024 * Makefile.in (acconfig_h): Remove incorrect macro.
9026 (osabi.o): Update dependencies.
9027 * configure.tgt: Set gdb_osabi based on target triplet.
9028 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
9029 * configure: Regenerated.
9030 * config.in: Regenerated.
9031 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
9032 (GDB_OSABI_DEFAULT): Define if not already defined.
9033 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
9034 (set_osabi_string): New variables.
9035 (gdbarch_register_osabi): Add new OS ABI to
9036 gdb_osabi_available_names.
9037 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
9038 (set_osabi, show_osabi): New functions.
9039 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
9041 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9043 * arch-utils.c (gdbarch_info_init): Set osabi to
9044 GDB_OSABI_UNINITIALIZED.
9045 * gdbarch.sh: Add osabi to struct gdbarch and to struct
9046 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
9047 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
9048 * gdbarch.c: Regenerated.
9049 * gdbarch.h: Regenerated.
9050 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
9052 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
9053 * osabi.h (enum gdb_osabi): Move to defs.h.
9054 (gdbarch_init_osabi): Update prototype.
9055 * defs.h (enum gdb_osabi): Moved here.
9056 * Makefile.in: Update dependencies.
9058 * alpha-tdep.h: Don't include "osabi.h".
9059 (struct gdbarch_tdep): Remove osabi member.
9060 * alpha-tdep.c: Include "osabi.h".
9061 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9062 iterate over arches. Update call to gdbarch_init_osabi.
9063 (alpha_dump_tdep): Don't dump osabi.
9064 * alpha-linux-tdep.c: Include "osabi.h".
9065 * alpha-osf1-tdep.c: Include "osabi.h".
9066 * alphafbsd-tdep.c: Include "osabi.h".
9067 * alphanbsd-tdep.c: Include "osabi.h".
9069 * arm-tdep.h: Don't include "osabi.h".
9070 (struct gdbarch_tdep): Remove osabi member.
9071 * arm-tdep.c: Include "osabi.h".
9072 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9073 iterate over arches. Update call to gdbarch_init_osabi.
9074 (arm_dump_tdep): Don't dump osabi.
9075 * arm-linux-tdep.c: Include "osabi.h".
9076 * armnbsd-tdep.c: Include "osabi.h".
9078 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
9079 Update call to gdbarch_init_osabi.
9081 * i386-tdep.h: Don't include "osabi.h".
9082 (struct gdbarch_tdep): Remove osabi member.
9083 * i386-tdep.c: Include "osabi.h".
9084 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9085 iterate over arches. Update call to gdbarch_init_osabi.
9086 (i386_dump_tdep): Don't dump osabi.
9087 * i386-linux-tdep.c: Include "osabi.h".
9088 * i386-sol2-tdep.c: Include "osabi.h".
9089 * i386bsd-tdep.c: Include "osabi.h".
9090 * i386gnu-tdep.c: Include "osabi.h".
9091 * i386ly-tdep.c: Include "osabi.h".
9092 * i386nbsd-tdep.c: Include "osabi.h".
9093 * i386obsd-tdep.c: Include "osabi.h".
9095 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
9096 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9097 check osabi when iterating over arches. Update call to
9099 (mips_dump_tdep): Don't dump osabi.
9101 * ns32k-tdep.h: Don't include "osabi.h".
9102 (struct gdbarch_tdep): Remove.
9103 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
9104 gdbarch_lookup_osabi. Don't iterate over arches. Don't
9105 allocate tdep. Update call to gdbarch_init_osabi.
9106 (ns32k_dump_tdep): Remove.
9107 (_initialize_ns32k_tdep): Update call to gdbarch_register.
9108 * ns32knbsd-tdep.c: Include "osabi.h".
9110 * ppc-tdep.h: Don't include "osabi.h".
9111 (struct gdbarch_tdep): Remove osabi member.
9112 * rs6000-tdep.c: Include "osabi.h".
9113 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
9114 osabi when iterating over arches. Update call to
9116 (rs6000_dump_tdep): Don't dump osabi.
9117 * ppc-linux-tdep.c: Include "osabi.h".
9118 * ppcnbsd-tdep.c: Include "osabi.h".
9120 * sh-tdep.h: Don't include "osabi.h".
9121 (struct gdbarch_tdep): Remove osabi member.
9122 * sh-tdep.c: Include "osabi.h".
9123 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9124 iterate over arches. Update call to gdbarch_init_osabi.
9125 (sh_dump_tdep): Don't dump osabi.
9126 * shnbsd-tdep.c: Include "osabi.h".
9128 * sparc-tdep.c: Include "osabi.h".
9129 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9130 iterate over arches. Update call to gdbarch_init_osabi.
9131 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
9134 * vax-tdep.h: Don't include "osabi.h".
9135 (struct gdbarch_tdep): Remove.
9136 * vax-tdep.c: Include "osabi.h".
9137 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9138 iterate over arches. Don't allocate tdep. Update call
9139 to gdbarch_init_osabi.
9140 (vax_dump_tdep): Remove.
9141 (_initialize_vax_tdep): Update call to gdbarch_register.
9143 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9145 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
9147 (breakpoint_re_set_one): Don't fetch the value for a disabled
9150 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9152 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
9153 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
9154 (COERCE_FLOAT_TO_DOUBLE): Remove.
9155 * gdbarch.c: Regenerate.
9156 * gdbarch.h: Regenerate.
9157 * Makefile.in: Remove value_h from gdbarch_h.
9158 * valops.c (coerce_float_to_double): New variable.
9159 (default_coerce_float_to_double): Remove.
9160 (standard_coerce_float_to_double): Remove.
9161 (value_arg_coerce): Use coerce_float_to_double.
9162 (_initialize_valops): Add "set coerce-float-to-double".
9163 * value.h (default_coerce_float_to_double): Remove prototype.
9164 (standard_coerce_float_to_double): Remove prototype.
9166 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
9168 * mdebugread.c (parse_symbol): Likewise.
9169 * stabsread.c (define_symbol): Mark all functions as prototyped.
9171 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
9172 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
9173 set_gdbarch_coerce_float_to_double.
9174 * arm-tdep.c (arm_gdbarch_init): Likewise.
9175 * frv-tdep.c (frv_gdbarch_init): Likewise.
9176 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
9177 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
9178 * mips-tdep.c (mips_gdbarch_init): Likewise.
9179 (mips_coerce_float_to_double): Remove.
9180 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9181 (rs6000_coerce_float_to_double): Remove.
9182 * s390-tdep.c (s390_gdbarch_init): Likewise.
9183 * sh-tdep.c (sh_gdbarch_init): Likewise.
9184 (sh_coerce_float_to_double): Remove.
9185 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
9186 (sparc_coerce_float_to_double): Remove.
9187 * v850-tdep.c (v850_gdbarch_init): Likewise.
9188 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
9189 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9190 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
9191 (hppa_coerce_float_to_double): Remove prototype.
9192 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9194 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9196 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
9198 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9200 Suggested by Stewart Brown <sb24@avaya.com>:
9201 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
9202 in recursive calls. Handle TYPE_CODE_TYPEDEF.
9203 (c_type_print_varspec_suffix): Likewise.
9205 2003-01-04 Mark Kettenis <kettenis@gnu.org>
9207 * configure.in: Don't set and AC_SUBST SUBDIRS.
9208 * configure: Regenerated.
9210 * configure.in: Remove code dealing with shared libraries.
9211 * Makefile.in: Remove HLDFLAGS and HLDENV.
9212 * configure: Regenerated.
9214 2003-01-04 Andrew Cagney <ac131313@redhat.com>
9216 * frame.c (deprecated_frame_xmalloc): New function.
9217 (deprecated_set_frame_saved_regs_hack): New function.
9218 (deprecated_set_frame_extra_info_hack): New function.
9219 * frame.h (deprecated_frame_xmalloc): Declare.
9220 (deprecated_set_frame_saved_regs_hack): Declare.
9221 (deprecated_set_frame_extra_info_hack): Declare.
9223 2003-01-04 Mark Kettenis <kettenis@gnu.org>
9225 * configure.in: Move code that provides the --enable-gdbtk option
9226 right after the code that handles the --enable-tui option, and
9228 * configure: Regenerated.
9230 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
9231 AC_CHECK_FUNCS and remove the old check for pread64.
9232 * acinclude.m4 (AC_GNU_SOURCE): New macro.
9233 * acconfig.h (_GNU_SOURCE): Add.
9234 (HAVE_PREAD64): Remove.
9235 * configure, aclocal.m4, config.in: Regenerated.
9237 2003-01-03 Andrew Cagney <ac131313@redhat.com>
9239 * alpha-tdep.c: Use get_frame_saved_regs.
9240 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9241 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
9242 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
9243 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
9244 * vax-tdep.c, xstormy16-tdep.c: Ditto.
9246 2003-01-03 Mark Kettenis <kettenis@gnu.org>
9248 * configure.in: Remove all use of the SUBDIRS variable; add
9249 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
9250 code providing the --enable-multi-ice option, and move it right in
9251 front of the code that checks whether gdbserver is supported.
9253 * configure: Regenerated.
9254 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
9257 2003-01-03 Andrew Cagney <cagney@redhat.com>
9259 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
9260 * avr-tdep.c, cris-tdep.c: Ditto.
9261 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
9262 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
9264 2003-01-03 Mark Kettenis <kettenis@gnu.org>
9266 * configure.in: Remove --enable-netrom option.
9267 * configure: Regenerated.
9269 2003-01-03 Mark Kettenis <kettenis@gnu.org>
9271 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
9272 declaration for `struct re_pattern_buffer' instead.
9273 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
9275 2003-01-03 J. Brobecker <brobecker@gnat.com>
9277 * mdebugread.c (parse_symbol): Count until the stEnd matching
9280 2003-01-02 Mark Kettenis <kettenis@gnu.org>
9282 * configure.in: Remove --with-cpu option.
9283 subscripts. Remove evil changequotes here.
9284 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
9285 * config.in, configure: Regenerated.
9287 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
9288 * configure.in: Cleanup section that sources GDB and BFD configure
9289 subscripts. Remove evil changequotes here.
9290 * config.in, configure: Regenerated.
9292 2003-01-02 Andrew Cagney <ac131313@redhat.com>
9294 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
9295 frame accessor methods.
9296 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9297 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
9298 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
9299 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
9300 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
9301 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
9302 * z8k-tdep.c: Ditto.
9304 2003-01-02 Mark Kettenis <kettenis@gnu.org>
9306 * configure.in: Remove UI_OUT configuration code.
9307 * ada-lang.c: Update assuming UI_OUT is always true.
9308 * Makefile.in (UIOUT_CFLAGS): Remove.
9309 * configure: Regenerated.
9310 * TODO: Remove blurb about elimination of -DUI_OUT.
9312 * configure.in: Move code that provides the --enable-gdbcli,
9313 --enable-gdbmi options right before the code that handles the
9314 --enable-tui option. Polish a bit.
9315 * configure: Regenerated.
9317 * configure.in: Rewrite check for GNU regex and the
9318 --without-included regex option, and move it into the "Checks for
9319 library functions" section. This makes us use the system regex
9320 again by default on systems with version 2 of the GNU C library.
9321 This was apparently broken.
9322 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
9323 * acconfig.h (USE_INCLUDED_REGEX): Remove.
9324 * config.in, configure: Regenerated.
9326 * configure.in: Move code that provides the --enable-tui option
9327 before the "Checks for libraries" section. Polish the code
9328 somewhat and set need_curses to yes if we build the TUI. Rewrite
9329 code that looks for a library providing termcap functionality to
9330 match more closely what's done in the Readline library, and move
9331 it into to the "Checks for libraries" section.
9332 * configure: Regenerated.
9333 * Makefile.in (TERMCAP): Remove variable.
9334 * config/i386/go32.mh (TERMCAP): Remove variable.
9336 2003-01-02 Andrew Cagney <ac131313@redhat.com>
9338 * MAINTAINERS: Mention gdb_mbuild.sh.
9339 * gdb_mbuild.sh: Rewrite.
9341 2003-01-02 Mark Kettenis <kettenis@gnu.org>
9343 * configure.in: Fix typo in last change.
9344 * config.in, configure: Regenerated.
9346 2003-01-02 Andrew Cagney <ac131313@redhat.com>
9348 * valarith.c (value_binop): Delete obsolete code and comments.
9349 * configure.host: Ditto.
9350 * buildsym.h (make_blockvector): Ditto.
9351 * buildsym.c (make_blockvector): Ditto.
9352 * defs.h (enum language): Ditto.
9353 (chill_demangle): Ditto.
9354 * elfread.c (elf_symtab_read): Ditto.
9355 * dwarfread.c (CHILL_PRODUCER): Ditto.
9356 (set_cu_language): Ditto.
9357 (handle_producer): Ditto.
9358 * expprint.c (print_subexp): Ditto.
9359 * gdbtypes.c (chill_varying_type): Ditto.
9360 * gdbtypes.h (builtin_type_chill_bool): Ditto.
9361 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
9362 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
9363 (chill_varying_type): Ditto.
9364 * language.h (_LANG_chill): Ditto.
9365 * language.c (binop_result_type, integral_type): Ditto.
9366 (character_type, string_type, structured_type): Ditto.
9367 (lang_bool_type, binop_type_check): Ditto.
9368 * stabsread.h (os9k_stabs): Ditto.
9369 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
9370 (define_symbol, read_type, read_struct_fields): Ditto.
9371 (read_array_type, read_enum_type, read_huge_number): Ditto.
9372 (read_range_type, start_stabs): Ditto.
9373 * symfile.c (init_filename_language_table): Ditto.
9374 (add_psymbol_with_dem_name_to_list): Ditto.
9375 * symtab.c (symbol_init_language_specific): Ditto.
9376 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
9377 * symtab.h (struct general_symbol_info): Ditto.
9378 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
9379 * typeprint.c (typedef_print): Ditto.
9380 * utils.c (fprintf_symbol_filtered): Ditto.
9381 * valops.c (value_cast, search_struct_field, value_slice): Delete
9383 (varying_to_slice): Delete function.
9384 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
9385 (varying_to_slice): Delete declaration.
9386 * MAINTAINERS: Update.
9388 2003-01-02 Mark Kettenis <kettenis@gnu.org>
9390 * configure.in: Reorganize "Checks for library functions section"
9391 a bit. Remove check for `btowc' and `isascii' functions.
9392 * configure: Regenerated.
9394 * acconfig.h (_MSE_INT_H): Remove.
9395 * configure.in: Create "Checks for header files" section, and move
9396 appropriate tests there. Don't check for objlist.h, wchar.h,
9397 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
9398 misdetection fix. Also add "Checks for types", "Checks for
9399 compiler characteristics" and "Checks for library functions"
9401 * config.in, configure: Regenerated.
9403 * configure.in: Create "Checks for programs" section, and move
9404 appropriate tests there.
9406 2003-01-01 Mark Kettenis <kettenis@gnu.org>
9408 * configure.in: Create "Checks for libraries" section, and move
9409 appropriate tests there. Cleanup check for wctype in libw. Use
9410 AC_SEARCH_LIBS to see whether we need libsocket.
9411 * configure: Regenerated.
9413 For older changes see ChangeLog-2002
9419 version-control: never