1 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
3 * sh-tdep.c (sh_justify_value_in_reg): New function.
4 (sh_stack_allocsize): Ditto.
5 (flt_argreg_array): New array used for floating point argument
7 (sh_init_flt_argreg): New function.
8 (sh_next_flt_argreg): Ditto.
9 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
10 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
11 Fix argument passing strategy.
12 (sh_push_dummy_call_nofpu): Ditto.
14 2003-10-01 Andrew Cagney <cagney@redhat.com>
16 * value.h (register_value_being_returned): Declare. Replace
17 "value_being_returned".
18 * infcall.c (call_function_by_hand): Use
19 register_value_being_returned.
20 * infcmd.c (print_return_value): Call
21 "register_value_being_returned", handle struct return locally.
22 * values.c (register_value_being_returned): New function. Replace
23 "value_being_returned".
25 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
27 * linux-proc.c (linux_do_registers): New function.
28 (linux_make_note_section): Use linux_do_registers in case of
29 single threaded inferior programs.
31 2003-10-01 Andrew Cagney <cagney@redhat.com>
33 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
34 use STRUCT_ADDR. When not using "struct return convention", pass
35 "0" to "value_being_returned". Add FIXMEs.
36 * infcmd.c (print_return_value): Pass an explicit 0/1 to
37 value_being_returned. Add comments.
38 * values.c (value_being_returned): Add fixme.
39 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
40 (hppa_value_returned_from_stack): Add FIXME.
42 2003-09-30 David Carlton <carlton@kealia.com>
44 * dwarf2read.c (struct die_info): Add 'parent' field; replace
45 'has_children' and 'next' by 'child' and 'sibling'.
46 (read_comp_unit): Rework algorithm, breaking body into
47 read_die_and_children and read_die_and_siblings.
48 (read_die_and_children, read_die_and_siblings): New.
49 (read_full_die): Add 'has_children' argument; set it instead of
50 the die's 'has_children' field. Minor formatting cleanup.
51 (free_die_list): Use die->child and die->sibling instead of
53 (dump_die_list): Ditto.
54 (sibling_die): Use die->sibling.
55 (psymtab_to_symtab_1): Use die's 'child' field in place of its
56 'has_children' and 'next' fields.
57 (process_die, read_file_scope, read_func_scope)
58 (read_lexical_block_scope, read_structure_scope)
59 (read_enumeration, read_array_type, read_common_block)
60 (read_namespace, read_subroutine_type, dump_die): Ditto.
62 2003-09-30 Andrew Cagney <cagney@redhat.com>
64 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
67 2003-09-30 Andrew Cagney <cagney@redhat.com>
69 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
70 REGISTER_VIRTUAL_SIZE.
71 * gdbarch.h, gdbarch.c: Regenerate.
72 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
73 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
74 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
76 2003-09-29 Andrew Cagney <cagney@redhat.com>
78 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
79 DEPRECATED_REGISTER_VIRTUAL_TYPE.
80 * gdbarch.h, gdbarch.c: Regenerate.
81 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
82 * sh64-tdep.c, sparc-tdep.c: Update.
84 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
85 * remote-vxmips.c (vx_read_register): Ditto.
86 * remote-vx68.c (vx_read_register): Ditto.
87 * gnu-nat.c (inf_validate_procs): Ditto.
89 2003-09-29 J. Brobecker <brobecker@gnat.com>
91 * infcall.c (call_function_by_hand): Fix build failure
92 introduced in the previous change to this file.
94 2003-09-29 Andrew Cagney <cagney@redhat.com>
96 * NEWS: Mention Objective-C.
98 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
100 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
101 test if the register has been saved on the stack.
102 (arm_scan_prologue_cache): When analysing the instruction
103 "str lr, [sp, #-4]", save the address where lr has been stored.
105 2003-09-28 Andrew Cagney <cagney@redhat.com>
107 * frame.c (frame_read_unsigned_register): Delete function.
108 * frame.h (frame_read_unsigned_register): Delete declaration.
109 * sparc-tdep.c (sparc_init_extra_frame_info): Use
110 get_frame_register_unsigned.
111 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
112 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
113 * d10v-tdep.c (d10v_print_registers_info): Ditto.
115 * frame.h (frame_read_register): Delete declaration.
116 * frame.c (frame_read_register): Delete function.
117 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
118 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
119 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
120 * mips-tdep.c (mips_register_to_value): Ditto.
121 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
122 * d10v-tdep.c (d10v_print_registers_info): Ditto.
124 * frame.c (frame_read_signed_register): Delete function.
125 (frame_read_unsigned_register): Update comments.
126 * frame.h (frame_read_signed_register): Delete declaration.
127 * h8300-tdep.c (h8300_print_register): Use
128 get_frame_register_signed.
129 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
131 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
132 Rename VALUE_RETURNED_FROM_STACK.
133 * infcmd.c (print_return_value): Update.
134 * infcall.c (call_function_by_hand): Update.
136 2003-09-28 Mark Kettenis <kettenis@gnu.org>
138 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
139 regcache argument and reverse the order of the other two
140 arguments. Remove local regcache variable. Determine
141 architecture from REGCACHE. Update comments.
142 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
143 reverse the order of the other two arguments. Remove local
144 regcache variable. Determine architecture from REGCACHE. Update
146 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
147 prototypes. Update comments.
148 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
150 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
152 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
153 * i386-interix-nat.c (supply_fpregset): Update.
154 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
155 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
156 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
157 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
158 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
160 * i386obsd-tdep.c (fetch_core_registers): Update.
161 * i386v4-nat.c (supply_fpregset): Update.
162 * x86-64-linux-nat.c (supply_fpregset): Update.
163 * x86-64-linux-tdep.c (fetch_core_registers): Update.
165 2003-09-27 Mark Kettenis <kettenis@gnu.org>
167 * i386-tdep.h: Put opaque declarations in alphabetical
168 order. Remove spurious whitespace.
169 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
170 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
171 * i386-tdep.c (MM0_REGNUM): Remove define.
172 (i386_mmx_regnum_p): Add gdbarch argument.
173 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
174 Rewrite using new macro definitions for FPU/SSE registers.
175 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
176 definitions from i387-tdep.h.
177 (i386_register_name): Update.
178 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
179 new macro definitions for FPU/SSE registers.
180 (i386_extract_return_value): Determine whether floating-point
181 registers are present by examining REGCACHE's architecture.
182 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
183 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
185 (i386_register_type): Update.
186 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
187 definitions for FPU registers. Use REGCACHE's architecture to
188 determine the appropriate register numbers.
189 (i386_pseudo_register_read, i386_pseudo_register_write,
190 i386_register_reggroup_p): Update.
191 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
193 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
194 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
195 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
196 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
197 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
198 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
200 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
201 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
202 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
203 definitions for FPU/SSE registers.
204 (FXSAVE_MXCSR_ADDR): New define.
205 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
207 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
208 (I387_ST0_REGNUM): Define.
210 * regcache.h (get_regcache_arch): New prototype.
211 * regcache.c (get_regcache_arch): New function.
213 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
216 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
217 Initialize using ARRAY_SIZE.
219 2003-09-27 Andrew Cagney <cagney@redhat.com>
221 * arch-utils.c (deprecated_init_frame_pc_default): Rename
222 "init_frame_pc_default".
223 * arch-utils.h (deprecated_init_frame_pc_default): Update.
224 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
225 * vax-tdep.c (vax_gdbarch_init): Update.
226 * v850-tdep.c (v850_gdbarch_init): Update.
227 * sh64-tdep.c (sh64_gdbarch_init): Update.
228 * s390-tdep.c (s390_gdbarch_init): Update.
229 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
230 * mcore-tdep.c (mcore_gdbarch_init): Update.
231 * h8300-tdep.c (h8300_gdbarch_init): Update.
232 * cris-tdep.c (cris_gdbarch_init): Update.
233 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
235 2003-09-26 Mark Kettenis <kettenis@gnu.org>
237 * regset.h: New file.
238 * Makefile.in (regset_h): Add.
240 2003-09-25 Andrew Cagney <cagney@redhat.com>
242 * frame.h (deprecated_frame_saved_regs): Rename
243 get_frame_saved_regs.
244 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
245 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
246 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
247 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
248 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
250 2003-09-25 Andrew Cagney <cagney@redhat.com>
252 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
253 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
255 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
256 arm*-*-* do not use the new frame code.
258 2003-09-25 David Carlton <carlton@kealia.com>
260 * c-exp.y: Remove 'register' declarations.
261 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
263 2003-09-25 David Carlton <carlton@kealia.com>
265 * c-exp.y: Include cp-support.h. Add qualified_type.
266 (yylex): Delete nested type hack; add comments.
267 * cp-namespace.c (cp_lookup_nested_type): New function.
268 * cp-support.h: Declare cp_lookup_nested_type.
269 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
270 instead of value_struct_elt_for_reference.
271 * valops.c: Include cp-support.h.
272 (value_aggregate_elt): New function.
273 (value_namespace_elt): Ditto.
274 (value_struct_elt_for_reference): Make static.
275 * value.h: Delete declaration of value_struct_elt_for_reference;
276 add declaration for value_aggregate_elt.
277 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
280 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
282 * stack.c: Include "reggroups.h".
283 (frame_info): Only display registers in all_reggroup.
284 * Makefile.in (stack.o): Update dependencies.
286 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
288 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
289 "add ip, sp #n" in the prologue.
290 (arm_scan_prologue): Ditto.
292 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
294 * MAINTAINERS (write after approval): Add myself.
296 2003-09-25 Andreas Schwab <schwab@suse.de>
298 * m68k-tdep.c: Include "dwarf2-frame.h".
299 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
300 * Makefile.in (m68k-tdep.o): Update dependencies.
302 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
304 * sh-tdep.c (struct frame_extra_info): Remove.
305 (struct sh_frame_cache): New structure.
306 (GET_SOURCE_REG): New macro extracting source register of an opcode.
307 (GET_TARGET_REG): Ditto but target register.
308 (GET_PUSHED_REG): Remove.
309 (IS_MOV_ARG_TO_REG): New macro.
310 (IS_MOV_ARG_TO_IND_R14): New macro.
311 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
312 (IS_MOVW_PCREL_TO_REG): New macro.
313 (IS_MOVL_PCREL_TO_REG): New macro.
314 (IS_SUB_REG_FROM_SP): New macro.
315 (IS_ARG_MOV): Remove.
316 (IS_MOV_TO_R14): Remove.
317 (IS_RESTORE_FP): New macro.
320 (IS_MOV_FP_SP): New macro.
321 (IS_ADD_REG_TO_FP): New macro.
322 (IS_ADD_IMM_FP): New macro.
323 (sh_skip_prologue_hard_way): Remove.
324 (sh_saved_pc_after_call): Remove.
325 (sh_frame_chain): Remove.
326 (sh_find_callers_reg): Remove.
327 (sh_nofp_frame_init_saved_regs): Remove.
328 (sh_fp_frame_init_saved_regs): Remove.
329 (sh_init_extra_frame_info): Remove.
330 (sh_analyze_prologue): New function.
331 (sh_skip_prologue): Remove deprecated code. Rely on new function
332 sh_analyze_prologue when after_prologue fails.
333 (sh_frame_saved_pc): Remove.
334 (sh_alloc_frame_cache): New function.
335 (sh_frame_cache): Ditto.
336 (sh_frame_prev_register): Ditto.
337 (sh_frame_this_id): Ditto.
338 (sh_frame_unwind): New structure defining the heuristic frame
340 (sh_frame_sniffer): New function.
341 (sh_unwind_sp): Ditto.
342 (sh_unwind_pc): Ditto.
343 (sh_unwind_dummy_id): Ditto.
344 (sh_frame_base_address): Ditto.
345 (sh_frame_base): New structure defining new frame base code.
346 (sh_in_function_epilogue_p): New function.
347 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
348 code and to call all new code instead. Initialize dwarf2 and
349 heuristic frame sniffer.
351 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
353 * parser-defs.h (struct exp_descriptor): New definition, containing
354 language-specific info for printing, prefixifying, dumping, and
355 evaluating expressions.
356 (exp_descriptor_standard): Declare new variable.
357 (print_subexp): Make global and declare here (from expprint.c).
358 (dump_subexp): Ditto.
359 (dump_subexp_body_standard): Declare.
360 (operator_length_standard): Declare.
361 (op_name_standard): Declare.
362 (print_subexp): Declare.
363 (print_subexp_standard): Declare.
365 * language.h (struct language_defn): Add la_exp_desc field to hold
366 pointer to table for language-specific operators.
367 Remove evaluate_exp field, which is now in struct exp_descriptor.
369 * parse.c (operator_length): Move most code to new
370 operator_length_standard function. Use language-specific information.
371 (operator_length_standard): New function taking most code from
373 (exp_descriptor_standard): New constant.
375 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
376 and OP_EXTENDED_LAST.
378 * expprint.c (print_subexp): Use language-specific print_subexp.
379 Make global; remove static declaration.
380 Move most code to print_subexp_standard.
381 (print_subexp_standard): New function, containing code formerly in
383 (op_name): Add expression to argument signature.
384 Use langauge-specific op_name.
385 Move most code to op_name_standard.
386 (op_name_standard): New function, containing code formerly in op_name.
387 (dump_subexp): Use new version of op_name function.
388 Use language-specific dump_subexp_body, and move most existing code to
389 dump_subexp_body_standard.
390 (dump_raw_expression): Use new op_name interface.
391 (dump_subexp_body): Move most code to dump_subexp_body_standard.
392 (dump_subexp_body_standard): New function, containing code formerly
395 * language.c (unknown_language): Add default la_exp_desc field and
396 remove evaluate_exp field.
397 (auto_language): Ditto.
398 (local_language): Ditto.
399 * f-lang.c (f_language_defn): Ditto.
400 * c-lang.c (c_language_defn): Ditto.
401 (cplus_language_defn): Ditto.
402 (asm_language_defn): Ditto.
403 (minimal_language_defn): Ditto.
404 * p-lang.c (pascal_language_defn): Ditto.
405 * m2-lang.c (m2_language_defn): Ditto.
406 * objc-lang.c (objc_language_defn): Ditto.
408 * jv-lang.c (exp_descriptor_java): New variable, containing
409 Java-specific expression evaluator.
410 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
412 * scm-lang.c (exp_descriptor_scm): New variable, containing
413 Scheme-specific expression evaluator.
414 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
416 * objc-lang.c (print_object_command): Take evaluate_exp from the
419 * Makefile.in (eval.o): Add dependency on parser-defs.h.
421 * eval.c: Include parser-defs.h for the full declaration of
423 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
425 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
427 * parser-defs.h (operator_length): Declare.
429 * parse.c (length_of_subexp): Use operator_length to get operator
430 lengths and arities for operators.
431 Move most code to new operator_length function.
432 (operator_length): New function absorbing most code from
434 (prefixify_subexp): Remove large case and use operator_length instead.
435 (parse_exp_1): Use renamings:
436 dump_prefix_expression => dump_raw_expression and
437 dump_postfix_expression => dump_prefix_expression.
439 * expression.h (dump_prefix_expression): Rename to ...
440 (dump_raw_expression): New name.
441 (dump_postfix_expression): Rename to ...
442 (dump_prefix_expression): New name.
444 * expprint.c (dump_subexp): Make global. Add comment.
445 Move most existing code to dump_subexp_body.
446 (dump_subexp_body): New function.
447 (dump_prefix_expression): Rename to dump_raw_expression.
448 Remove attempt to print the expression via print_expression: it can't
449 work before the expression is prefixified.
450 (dump_raw_expression): Renamed from dump_prefix_expression.
451 (dump_postfix_expression): Rename to dump_prefix_expression, since
453 Remove 'note' parameter, since this routine must be used on
454 prefixified expression.
455 (dump_prefix_expression): Renamed from dump_postfix_expression.
457 2003-09-22 Jim Blandy <jimb@redhat.com>
459 * dwarf2read.c (read_array_type): When building the type for an
460 array of unspecified length, make sure to choose the upper bound
461 so that the array's total length comes out to be zero --- that's
462 how we represent such arrays.
464 2003-09-22 Michael Chastain <mec@shout.net>
466 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
468 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
470 * top.c (quit_force): Fix indirect call to quit_target so
471 a struct qt_args pointer is passed.
473 2003-09-22 Andrew Cagney <cagney@redhat.com>
475 * arch-utils.h (init_frame_pc_noop): Delete declaration.
476 * arch-utils.c (init_frame_pc_noop): Delete function.
477 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
479 * mips-tdep.c (mips_gdbarch_init): Ditto.
480 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
481 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
483 (DEPRECATED_INIT_FRAME_PC): Delete macro.
484 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
486 (DEPRECATED_INIT_FRAME_PC): Delete macro.
488 2003-09-22 Anthony Green <green@redhat.com>
490 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
493 2003-09-20 Andrew Cagney <cagney@redhat.com>
495 * breakpoint.c: Eliminate ARGSUSED.
496 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
497 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
498 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
499 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
500 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
501 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
502 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
503 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
504 * wince.c, remote-vx.c: Ditto.
506 * cli/cli-script.c: Remove "register" attributes.
507 * config/pa/tm-hppa.h: Ditto.
508 * cli/cli-decode.c: Ditto.
509 * cli/cli-cmds.c: Ditto.
511 2003-09-19 Andrew Cagney <cagney@redhat.com>
513 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
514 DEPRECATED_NPC_REGNUM.
515 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
517 2003-09-19 Christopher Faylor <cgf@redhat.com>
519 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
521 2003-09-19 Jim Blandy <jimb@redhat.com>
523 * macrotab.c (macro_include): Use the correct comparison to find
524 the appropriate place for this inclusion in the list.
526 2003-09-19 Andrew Cagney <cagney@redhat.com>
528 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
529 (DEPRECATED_HPUX_TEXT_END): Define.
530 (deprecated_hpux_text_end): Declare.
531 (struct target_ops): Declare opaque.
532 * hppah-nat.c (text_end): Make static.
533 (deprecated_hpux_text_end): New function.
534 * exec.c (text_end): Delete global variable.
535 (NEED_TEXT_START_END): Do not define.
536 (exec_file_attach): Replace code computing "text_end" code with
537 call to DEPRECATED_HPUX_TEXT_END.
539 2003-09-19 Andrew Cagney <cagney@redhat.com>
541 * utils.c (align_up, align_down): New functions.
542 * defs.h (align_up, align_down): Declare.
543 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
544 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
546 (round_up, round_down): Delete functions.
547 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
549 (ROUND_DOWN, ROUND_UP): Delete macros.
550 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
551 * h8300-tdep.c: Replace "round_up" and "round_down" with
552 "align_up" and "align_down".
553 (round_up, round_down): Delete macros.
554 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
556 (ROUND_UP, ROUND_DOWN): Delete macros.
558 2003-09-18 J. Brobecker <brobecker@gnat.com>
560 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
561 hard-coded constant. Use the proper machine name instead.
563 2003-09-17 Andrew Cagney <cagney@redhat.com>
565 * sparc-tdep.c (legacy_register_name): Delete function.
566 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
567 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
568 * infcmd.c (gdb_register_name): Delete variable.
569 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
570 REGISTER_NAME and "tm.h".
571 * gdbarch.h, gdbarch.c: Regenerate.
572 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
573 REGISTER_NAMES in comments.
574 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
575 * m68klinux-nat.c (regmap): Ditto.
577 2003-09-17 Jim Blandy <jimb@redhat.com>
579 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
581 2003-09-17 Andrew Cagney <cagney@redhat.com>
583 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
584 (ppcnbsd_init_abi): Set "use_struct_convention" to
585 "ppcnbsd_use_struct_convention".
587 2003-09-17 Mark Kettenis <kettenis@gnu.org>
589 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
590 * gdbarch.h, gdbarch.c: Regenerate.
591 (stabs_argument_has_addr): New architecture method.
592 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
593 * arch-utils.c: Include "buildsym.h".
594 (default_stabs_argument_has_addr): New function.
595 * stabsread.c (define_symbol): Use stabs_argument_has_addr
596 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
598 2003-09-17 Andrew Cagney <cagney@redhat.com>
600 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
601 * gdbarch.h, gdbarch.c: Regenerate.
602 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
603 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
604 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
605 * sparcnbsd-tdep.c: Update.
607 2003-09-17 Andrew Cagney <cagney@redhat.com>
609 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
610 * gdbarch.h, gdbarch.c: Regenerate.
611 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
612 * d10v-tdep.c, frame.c: Update.
613 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
614 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
615 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
616 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
617 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
618 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
619 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
620 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
621 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
622 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
623 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
624 * config/pa/nm-hppah.h: Update.
626 2003-09-16 Andrew Cagney <cagney@redhat.com>
628 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
629 "use_struct_convention" to "ppc_linux_use_struct_convention".
630 (ppc_linux_use_struct_convention): New function.
631 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
632 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
633 "rs6000_use_struct_convention".
634 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
636 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
639 2003-09-16 Andrew Cagney <cagney@redhat.com>
641 * buildsym.c: Remove more occurances of "register".
642 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
643 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
644 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
645 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
646 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
647 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
648 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
649 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
651 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
653 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
654 numbers to enumeration values.
655 * sh-tdep.c: Accomodate above change.
656 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
657 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
658 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
659 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
660 (IS_FPUSH): Rename from IS_FMOV.
661 (sh_extract_struct_value_address): Remove useless comment.
662 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
663 instead of own local values.
664 (sh_dump_tdep): Remove.
665 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
666 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
668 2003-09-15 Andrew Cagney <cagney@redhat.com>
670 * doublest.c (convert_floatformat_to_doublest): No longer need to
671 cast "exp_bias" to an int. Reverts 2002-12-04 change.
673 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
675 * values.c (unpack_double): Call floatformat_is_valid.
677 2003-09-15 Mark Kettenis <kettenis@gnu.org>
679 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
680 ps_strings into a long.
682 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
683 _initialize_am64fbsd_nat.
685 2003-09-15 Kevin Buettner <kevinb@redhat.com>
687 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
688 associated with DW_AT_ranges attribute is out of bounds.
690 2003-09-15 David Lecomber <dsl@sources.redhat.com>
692 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
694 2003-09-14 Michael Chastain <mec@shout.net>
696 * config/m68k/nm-apollo68v.h: Delete.
697 * config/m68k/xm-apollo68v.h: Delete.
699 2003-09-14 Andrew Cagney <cagney@redhat.com>
701 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
702 * dcache.c: Update copyrights and descriptions.
703 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
705 2003-09-14 Andrew Cagney <cagney@redhat.com>
707 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
708 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
710 2003-09-14 Andrew Cagney <cagney@redhat.com>
712 * alpha-nat.c: Remove some occurances of "register".
713 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
714 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
715 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
716 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
717 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
718 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
719 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
720 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
721 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
722 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
723 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
724 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
725 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
726 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
727 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
728 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
729 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
730 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
731 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
732 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
733 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
734 * values.c, vax-tdep.c, xcoffread.c: Ditto.
736 2003-09-13 Andrew Cagney <cagney@redhat.com>
738 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
739 * ppc-tdep.h (struct regcache): Declare opaque.
740 * objfiles.h (struct objfile_data): Declare opaque.
741 * cp-support.h (struct objfile): Declare opaque.
742 * linux-nat.h (target_waitstatus): Declare opaque.
744 2003-09-14 Mark Kettenis <kettenis@gnu.org>
746 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
747 (stabs_argument_has_addr): New architecture method.
748 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
749 * arch-utils.c: Include "buildsym.h".
750 (default_stabs_argument_has_addr): New function.
751 * stabsread.c (define_symbol): Use stabs_argument_has_addr
752 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
754 * cris-tdep.c (cris_gdbarch_init): Set
755 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
756 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
757 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
758 * mips-tdep.c (mips_gdbarch_init): Likewise.
759 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
760 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
762 2003-09-13 Andrew Cagney <cagney@redhat.com>
764 * values.c (using_struct_return): Delete "function" and "funcaddr"
766 * value.h (using_struct_return): Update declaration.
767 * infcmd.c (finish_command_continuation): Update.
768 (finish_command): Update.
769 * infcall.c (call_function_by_hand): Update.
770 * eval.c (evaluate_subexp_standard): Update.
772 2003-09-13 Christopher Faylor <cgf@redhat.com>
774 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
775 SSE registers since gdb will not operate correctly without this.
776 Restore include file ordering munged in previous change.
777 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
779 2003-09-13 Mark Kettenis <kettenis@gnu.org>
781 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
783 * gdbarch.c, gdbarch.h: Updated.
784 * infcall.c (call_function_by_hand): Update.
785 * stabsread.c (define_symbol): Updated.
787 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
789 2003-09-12 Christopher Faylor <cgf@redhat.com>
791 * win32-nat.c: Reorganize so that defines used by target headers are
792 actually defined by the system headers.
793 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
794 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
796 2003-09-12 Jim Blandy <jimb@redhat.com>
798 * dbxread.c (read_dbx_symtab): Don't report an internal error if
799 the file has no .data, .bss, or .rodata sections. Instead wait
800 until we see a variable alleged to live in one of those sections.
802 * dbxread.c (read_dbx_symtab): If we have no .data section and no
803 .bss section, presume that any variables we find live in the
806 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
807 offsets for global and static variables.
809 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
810 symbol types are, by definition, in the .data section, so it is
811 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
812 If there is no .data section, there should be no N_DATA or N_DATA
815 2003-09-12 Mark Kettenis <kettenis@gnu.org>
817 * amd64fbsd-tdep.c: Fix sigtramp recognition.
818 (amd64fbsd_sigcontext_addr): Rewrite.
819 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
821 (amd64fbsd_sc_reg_offset): Initialize with correct values.
822 (amd64fbsd_init_abi): Fix typo.
824 2003-09-12 Andrew Cagney <cagney@redhat.com>
826 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
827 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
829 2003-09-12 Andrew Cagney <cagney@redhat.com>
831 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
832 "entry_file_highpc". Update comments.
833 * defs.h (deprecated_inside_entry_file): Rename
835 * blockframe.c (deprecated_inside_entry_file): Rename
837 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
838 * vax-tdep.c (vax_frame_chain): Update.
839 * sh64-tdep.c (sh64_frame_chain): Update.
840 * sh-tdep.c (sh_frame_chain): Update.
841 * rs6000-tdep.c (rs6000_frame_chain): Update.
842 * ns32k-tdep.c (ns32k_frame_chain): Update.
843 * mips-tdep.c (mips_frame_chain): Update.
844 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
845 * m32r-tdep.c (m32r_frame_this_id): Update.
846 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
847 * frv-tdep.c (frv_frame_this_id): Update.
848 * d10v-tdep.c (d10v_frame_this_id): Update.
849 * cris-tdep.c (cris_frame_chain): Update.
850 * blockframe.c (legacy_frame_chain_valid): Update.
851 * avr-tdep.c (avr_frame_this_id): Update.
852 * arm-tdep.c (arm_prologue_this_id): Update.
853 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
854 * objfiles.c (objfile_relocate): Update.
855 * mipsread.c (mipscoff_symfile_read): Update.
856 (mipscoff_symfile_read): Update.
857 * mdebugread.c (parse_partial_symbols): Update.
858 * dwarfread.c (read_file_scope): Update.
859 * dwarf2read.c (read_file_scope): Update.
860 * dbxread.c (read_dbx_symtab): Update.
861 (read_dbx_symtab): Update.
862 * coffread.c (complete_symtab): Update.
864 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
866 * top.c (quit_target): New static helper function.
867 (quit_force): Moved code to quit_target(). Call quit_target()
868 via catch_errors() to catch errors during quit.
870 2003-09-11 David Carlton <carlton@kealia.com>
872 * buildsym.c (finish_block): Use allocate_block to allocate the
874 * mdebugread.c (new_block): Add FIXME.
876 2003-09-11 David Carlton <carlton@kealia.com>
878 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
879 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
880 (recursive_dump_type): Ditto.
881 * printcmd.c (print_formatted): Ditto.
882 * typeprint.c (print_type_scalar): Ditto.
883 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
884 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
885 * cp-support.h: Declare cp_check_possible_namespace_symbols,
886 maint_cplus_cmd_list.
887 * cp-support.c: Make maint_cplus_cmd_list extern.
888 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
890 (lookup_symbol_file): Look in possible namespace blocks when
892 (initialize_namespace_symtab): New.
893 (get_possible_namespace_block, free_namespace_block)
894 (check_possible_namespace_symbols)
895 (check_possible_namespace_symbols_loop)
896 (check_one_possible_namespace_symbol)
897 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
898 (_initialize_cp_namespace): Ditto.
899 * block.h: Declare allocate_block.
900 * block.c (allocate_block): New.
901 * jv-lang.c (get_java_class_symtab): Allocate blocks via
903 * symfile.h: Update declaration of add_psymbol_to_list.
904 * symfile.c (add_psymbol_to_list): Return the partial symbol in
906 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
907 scan_partial_symbols_call.
908 (scan_partial_symbols): Add NAMESPACE argument; update calls to
910 (add_partial_symbol): If necessary, scan mangled names for names
912 (add_partial_namespace): Add NAMESPACE argument; generate partial
913 symbols associated to namespaces.
914 (add_partial_enumeration): Add NAMESPACE argument.
915 (new_symbol): Allow namespace syms.
916 (read_namespace): Generate namespace syms.
917 * objfiles.h: Add opaque declaration of struct symtab.
918 (struct objfile): Add cp_namespace_symtab member.
919 * objfiles.c (allocate_objfile): Set
920 objfile->cp_namespace_symtab.
921 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
922 dictionary_h, command_h.
924 2003-09-11 Andrew Cagney <cagney@redhat.com>
926 * rs6000-tdep.c (rs6000_push_dummy_call): Use
927 regcache_raw_write_signed to set SP_REGNUM, move the operation to
928 near the function's end.
929 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
930 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
931 regcache_raw_write_signed to set SP_REGNUM.
933 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
935 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
936 orig_addrs is set up properly.
938 2003-09-11 Andrew Cagney <cagney@redhat.com>
940 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
941 * gdbarch.h, gdbarch.c: Re-generate.
942 * infcall.c (call_function_by_hand): Update.
943 * hppa-tdep.c (hppa_push_arguments): Update.
944 * ada-lang.c (place_on_stack): Update.
945 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
946 * sparc-tdep.c (sparc_gdbarch_init): Update.
947 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
948 * hppa-tdep.c (hppa_gdbarch_init): Update.
949 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
952 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
954 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
955 register do need a frame.
957 2003-09-11 Andrew Cagney <cagney@redhat.com>
959 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
960 buildable since GDB 5.0.
961 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
962 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
963 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
964 * irix4-nat.c: Delete file.
965 * config/mips/irix4.mh: Delete file.
966 * config/mips/irix3.mh: Delete file.
967 * config/mips/irix3.mt: Delete file.
968 * config/mips/tm-irix3.h: Delete file.
969 * config/mips/nm-irix3.h: Delete file.
970 * config/mips/xm-irix3.h: Delete file.
971 * config/mips/nm-irix4.h: Delete file.
972 * config/mips/xm-irix4.h: Delete file.
973 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
975 2003-09-10 J. Brobecker <brobecker@gnat.com>
977 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
978 * Makefile.in (hppa-tdep.o): Update dependencies.
980 2003-09-10 James E Wilson <wilson@specifixinc.com>
982 * MAINTAINERS: Change my e-mail address. Move to paper trail
985 2003-09-10 Kevin Buettner <kevinb@redhat.com>
987 * MAINTAINERS (frv): New ISA entry.
989 2003-09-10 Kevin Buettner <kevinb@redhat.com>
991 * frv-tdep.c (dis-asm.h): Include.
992 * Makefile.in (frv-tdep.o): Update dependencies.
994 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
996 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
997 Fix typo for high range of floating registers.
999 2003-09-09 David Carlton <carlton@kealia.com>
1001 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1002 highpc initialization here out of scan_partial_symbols.
1003 (scan_partial_symbols): Restructure into a recursive version,
1004 calling add_partial_namespace and add_partial_enumeration when
1006 (add_partial_namespace): New.
1007 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1009 2003-09-09 Andrew Cagney <cagney@redhat.com>
1011 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1012 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1013 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1014 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1016 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1017 (rs6000_push_dummy_call): Set the "TOC" register.
1019 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1020 methods "max_register_raw_size", "max_register_virtual_size" or
1021 "register_virtual_size".
1023 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1025 * MAINTAINERS: Update my e-mail address.
1027 2003-09-09 Andrew Cagney <cagney@redhat.com>
1029 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1030 (rs6000_push_dummy_call): Store the struct return address.
1031 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1033 2003-09-09 Andrew Cagney <cagney@redhat.com>
1035 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1036 "ppc_sysv_abi_push_arguments".
1037 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1038 "ppc_sysv_abi_push_arguments".
1039 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1040 instead of "push_arguments".
1041 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1043 2003-09-09 Andrew Cagney <cagney@redhat.com>
1045 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1046 instead of CALL_DUMMY_ADDRESS.
1048 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1050 * p-lang.c: Eliminate "register".
1052 * expprint.c: Ditto.
1055 * language.c: Ditto.
1058 * scm-lang.c: Ditto.
1059 * objc-lang.c: Ditto.
1061 2003-09-09 Nick Clifton <nickc@redhat.com>
1063 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1065 2003-09-04 Andrew Cagney <cagney@redhat.com>
1067 * avr-tdep.c: Include "dis-asm.h".
1068 * cris-tdep.c: Include "dis-asm.h".
1069 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1070 instead of corresponding typedef.
1071 * h8300-tdep.c: Include "dis-asm.h".
1072 * ia64-tdep.c: Include "dis-asm.h".
1073 * i386-tdep.c: Include "dis-asm.h".
1074 (i386_print_insn): Use "struct disassemble_info" instead of
1075 corresponding typedef.
1076 * m68k-tdep.c: Include "dis-asm.h".
1077 * mcore-tdep.c: Include "dis-asm.h".
1078 * mips-tdep.c: Include "dis-asm.h".
1079 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1080 instead of corresponding typedef.
1081 * ns32k-tdep.c: Include "dis-asm.h".
1082 * s390-tdep.c: Include "dis-asm.h".
1083 * sparc-tdep.c: Include "dis-asm.h".
1084 * vax-tdep.c: Include "dis-asm.h".
1085 * v850-tdep.c: Include "dis-asm.h".
1086 * mn10300-tdep.c: Include "dis-asm.h".
1087 * rs6000-tdep.c: Include "dis-asm.h".
1088 * xstormy16-tdep.c: Include "dis-asm.h".
1089 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1090 print_insn_xstormy16.
1091 * Makefile.in (v850-tdep.o): Update dependencies.
1092 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1093 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1094 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1095 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1096 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1097 (gdbarch_h): Remove $(dis_asm_h).
1098 * disasm.c: Include "dis-asm.h".
1099 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1100 corresponding typedef.
1101 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1102 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1103 * gdbarch.sh: Do not include "dis-asm.h".
1104 (struct disassemble_info): Declare opaque.
1105 (TARGET_PRINT_INSN): Update declaration.
1106 * gdbarch.h, gdbarch.c: Re-generate.
1108 2003-09-08 Andrew Cagney <cagney@redhat.com>
1110 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1111 CALL_DUMMY_ADDRESS, change to a predicate.
1112 * gdbarch.h, gdbarch.c: Re-generate.
1113 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1114 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1115 * infcall.c (call_function_by_hand): Ditto.
1116 * sparc-tdep.c (sparc_push_return_address): Ditto.
1117 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1118 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1119 CALL_DUMMY_ADDRESS with entry_point_address.
1120 * v850-tdep.c (v850_push_return_address): Ditto.
1121 * s390-tdep.c (s390_push_return_address): Ditto.
1122 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1123 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1124 * mcore-tdep.c (mcore_push_return_address): Ditto.
1125 * cris-tdep.c (cris_push_return_address): Ditto.
1126 * arm-tdep.c (arm_push_return_address): Ditto.
1128 2003-09-08 Andrew Cagney <cagney@redhat.com>
1130 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1131 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1132 and REG_UNMODIFIED to REG_SAME_VALUE.
1133 (execute_cfa_program): Update.
1134 (dwarf2_frame_cache): Update. Initialize table to
1135 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1137 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1139 2003-09-08 Andrew Cagney <cagney@redhat.com>
1141 * gnu-nat.c: Remove "inline" function attribute.
1142 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1144 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1146 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1149 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1151 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1152 (frame_extra_info): Rename this struct to frv_unwind_cache.
1153 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1154 Add fields ``prev_sp'' and ``base''.
1155 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1156 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1157 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1159 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1160 Revise all callers. Fill in the unwind cache argument and make
1161 other adjustments to account for new frame mechanisms.
1162 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1163 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1164 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1165 (frv_frame_unwind, frv_frame_base): New structs.
1166 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1167 additional arguments expected by this method and adjust function
1169 (frv_gdbarch_init): Remove calls to the following functions:
1170 set_gdbarch_deprecated_init_frame_pc(),
1171 set_gdbarch_deprecated_saved_pc_after_call(),
1172 set_gdbarch_deprecated_frame_chain(),
1173 set_gdbarch_deprecated_frame_saved_pc(),
1174 set_gdbarch_deprecated_frame_init_saved_regs(),
1175 set_gdbarch_deprecated_push_arguments(),
1176 set_gdbarch_deprecated_push_return_address(),
1177 set_gdbarch_deprecated_pop_frame(),
1178 set_gdbarch_deprecated_call_dummy_words(),
1179 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1180 set_gdbarch_deprecated_init_extra_frame_info(),
1181 set_gdbarch_deprecated_dummy_write_sp(), and
1182 set_gdbarch_deprecated_pc_in_call_dummy().
1183 Add calls to the following functions:
1184 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1185 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1186 frame_base_set_default().
1187 * Makefile.in (frv-tdep.o): Update dependencies.
1189 2003-09-09 Mark Kettenis <kettenis@gnu.org>
1191 * dwarf2-frame.c (read_encoded_value): Add support for
1192 DW_EH_PE_aligned encoding.
1194 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1196 * infrun.c (normal_stop): Don't print a message if the inferior
1199 2003-09-08 Jim Blandy <jimb@redhat.com>
1201 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1202 * dbxread.c: #include "gdb_assert.h".
1203 (read_dbx_symtab): If the objfile has no .data section, use the
1204 section index for the .bss section instead.
1206 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1208 * frame.c (deprecated_safe_get_selected_frame): New function.
1209 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1210 * findvar.c (read_var_value): Call it.
1212 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1214 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1215 (sh64-tdep.o): Add dependencies.
1216 * configure.tgt: Add FIXME to sh-*-linux*.
1217 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1218 (sh_gdbarch_init): Always set correct sh_show_regs function
1219 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1220 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1221 * sh64-tdep.c: New file, containing all sh64 related code from
1223 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1224 * config/sh/linux.mt (TDEPFILES): Ditto.
1225 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1226 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1227 * config/sh/wince.mt (TDEPFILES): Ditto.
1229 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1231 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1232 (stop_wait_callback): Handle !lp->signalled also.
1233 (lin_lwp_has_pending, flush_callback): New functions.
1234 (lin_lwp_wait): Call flush_callback.
1235 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1236 (linux_proc_pending_signals): New function.
1237 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1239 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1241 From Nick Kelsey <nickk@ubicom.com>:
1242 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1243 when the stop PC is at the beginning of a function also.
1245 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1247 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1248 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1250 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1252 * sol-thread.c: Include "gdb_string.h".
1254 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1256 * gcore.c: Reorder include files in alphabetical order. Include
1257 "gdb_assert.h". Various coding style fixes.
1258 (derive_stack_segment, derive_heap_segment): Replace check for
1259 non-null BOTTOM and TOP with gdb_assert.
1260 (derive_heap_segment): Replace check for successful creation of
1261 ZERO with gdb_assert.
1262 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1264 2003-09-04 Andrew Cagney <cagney@redhat.com>
1266 * thread-db.c (verbose_dlsym): New function.
1267 (thread_db_load): Use verbose_dlsym
1268 (thread_db_new_objfile): Print that libthread_db was loaded, and
1269 that thread debugging was enabled.
1271 2003-09-04 Andrew Cagney <cagney@redhat.com>
1273 * configure.tgt: Add "mips64*-*-*" target. Delete
1274 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1275 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1276 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1277 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1278 mips*-sony-*, and mips64*-*-elf* targets.
1279 * config/mips/embedl.mt: Delete file.
1280 * config/mips/embedl64.mt: Delete file.
1281 * config/mips/mips.mt: Delete file.
1282 * config/mips/mips64.mt: Delete file.
1283 * config/mips/tm-embed.h: Delete file.
1284 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1285 * config/mips/embed64.mt: Delete out-of-date comment.
1287 2003-09-04 Andrew Cagney <cagney@redhat.com>
1289 * hppa-tdep.c (hppa_gdbarch_init): Set
1290 "have_nonsteppable_watchpoint".
1291 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1292 * mips-tdep.c (mips_dump_tdep): Do not print
1293 HAVE_NONSTEPPABLE_WATCHPOINT.
1294 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1295 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1296 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1297 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1299 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1301 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1302 unused code. Add comment.
1304 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1306 * breakpoint.c (watchpoint_check): Check for pc being in an
1307 epilogue if watchpoint frame couldn't be found.
1309 2003-09-04 Andrew Cagney <cagney@redhat.com>
1311 * Makefile.in: Re-generate all dependencies.
1313 2003-09-03 Andrew Cagney <cagney@redhat.com>
1315 * arch-utils.h (legacy_print_insn): Delete declaration.
1316 * arch-utils.c (legacy_print_insn): Delete function.
1317 * disasm.c (deprecated_tm_print_insn_info): Delete.
1318 (_initialize_disasm): Delete function, contained code initializing
1319 deprecated_tm_print_insn_info.
1320 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1321 (deprecated_tm_print_insn_info): Delete.
1322 (TARGET_PRINT_INSN): Do not provide a default.
1323 * gdbarch.h, gdbarch.c: Re-generate.
1325 2003-09-03 Andrew Cagney <cagney@redhat.com>
1327 * disasm.c (fprintf_disasm): New function.
1328 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1329 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1330 reverts 2003-08-14 change.
1331 (_initialize_disasm): Call "init_disassemble_info", instead of
1332 INIT_DISASSEMBLE_INFO_NO_ARCH.
1334 2003-09-03 Michael Snyder <msnyder@redhat.com>
1336 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1338 2003-09-03 Andrew Cagney <cagney@redhat.com>
1340 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1341 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1342 * symfile.c (syms_from_objfile): Update.
1343 (reread_symbols): `Update
1344 * exec.c (exec_file_attach): Update.
1345 (exec_file_attach): Update.
1346 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1348 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1350 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1352 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1354 (arm_get_cache): Delete macro.
1355 (struct arm_prologue_cache): Update comments. Make saved_regs into
1356 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1358 (thumb_scan_prologue): Update for cache changes. Don't call
1359 DEPRECATED_PC_IN_CALL_DUMMY.
1360 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1361 argument and use it in desperation search for our prologue. Do not
1362 search past the specified PC.
1363 (arm_make_prologue_cache): Simplify.
1365 (arm_prologue_this_id, arm_prologue_prev_register)
1366 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1367 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1368 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1369 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1370 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1372 (arm_frame_chain_valid, arm_find_callers_reg)
1373 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1374 (arm_pop_frame): Delete obsolete methods.
1375 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1377 (arm_gdbarch_init): Update for new frame methods. Register prologue
1378 and sigtramp unwinders. Set the default frame base method.
1380 * Makefile.in (arm-tdep.o): Update dependencies.
1381 * varobj.c (find_frame_addr_in_frame_chain): Call
1382 get_frame_base_address.
1383 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1385 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1387 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1388 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1389 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1390 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1391 Take NEXT_FRAME and CACHE arguments. Call
1392 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1393 Set unwound_pc in CACHE instead of modifying the frame argument.
1394 Don't bother checking the frame type when looking for sigtramp
1396 (arm_make_prologue_cache, arm_frame_chain)
1397 (arm_init_extra_frame_info): New functions.
1399 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1401 * arm-tdep.c (arm_get_cache): Define.
1402 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1403 unwound_sp, unwound_pc, and saved_regs.
1404 (thumb_scan_prologue): Take a cache instead of the frame.
1405 (arm_scan_prologue): Likewise.
1406 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1407 instead of a temporary frame.
1408 (arm_init_extra_frame_info): Allocate and use a cache.
1409 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1411 2003-09-03 Andrew Cagney <cagney@redhat.com>
1413 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1414 * config/mips/wince.mt (TM_CLIBS): Ditto.
1415 * config/sh/wince.mt (TM_CLIBS): Ditto.
1416 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1417 * config/sparc/sp64.mt (CC): Delete.
1419 2003-09-03 Andrew Cagney <cagney@redhat.com>
1421 * defs.h: Do not include "arch-utils.h".
1422 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1423 GDB_MULTI_ARCH_PURE.
1424 * configure.in (GDB_MULTI_ARCH): Do not define.
1425 * configure, config.in: Regenerate.
1426 * configure.tgt: Do not set variable "gdb_multi_arch".
1427 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1428 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1429 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1430 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1431 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1432 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1433 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1434 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1435 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1436 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1437 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1438 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1439 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1440 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1441 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1442 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1443 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1444 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1446 2003-08-30 Michael Chastain <mec@shout.net>
1448 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1449 * config/m68k/nm-hp300hpux.h: Delete.
1450 * config/m68k/tm-hp300hpux.h: Delete.
1451 * config/m68k/xm-hp300hpux.h: Delete.
1452 * config/m68k/xm-hp300bsd.h: Delete.
1453 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1454 tm-hp300hpux.h, xm-hp300hpux.h.
1455 * somsolib.c: Remove comment about hp300 shared libraries.
1457 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1459 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1460 Only define PTRACE_GET_THREAD_AREA is not already defined.
1461 Various style fixes in code and comments and some additional
1462 spelling fixes in comments. Move after functions dealing with
1464 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1467 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1468 frame_unwind_register_unsigned instead of
1469 frame_unwind_unsigned_register.
1471 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1473 * configure.in: Search for gethostbyname in libnsl.
1474 * configure: Regenerated.
1476 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1478 * configure.in: Remove redundant AC_MSG_RESULT in check for
1479 uintptr_t in stdint.h.
1480 * configure: Regenerated.
1482 * amd64-nat.h (struct regcache): Add opaque declaration.
1484 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1485 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1486 Change "register array" to "register cache" in comments.
1487 (x86_64_linux_gregset64_reg_offset): New variable.
1488 (GETREGS_SUPPLIES): Remove macro.
1489 (supply_gregset): Call amd64_supply_native_gregset instead of
1490 x86_64_linux_supply_gregset.
1491 (fill_gregset): Rename `regno' to `regnum'. Call
1492 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1493 (store_regs): Rename `regno' to `regnum'.
1494 (store_fpregs): Rename `regno' to `regnum'.
1495 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1496 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1497 Reorganize function a bit.
1498 (store_inferior_registers): Rename `regno' to `regnum'. Use
1499 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1500 Reorganize function a bit.
1501 (_initialize_x86_64_linux_nat): New function.
1502 * config/i386/x86-64linux.mh.
1504 2003-08-29 Andrew Cagney <cagney@redhat.com>
1506 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1507 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1508 (target_remove_watchpoint): Delete macro.
1509 (target_insert_watchpoint): Delete macro.
1510 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1511 (remote_mips_stopped_by_watchpoint): Delete declaration.
1512 (remote_mips_remove_watchpoint): Delete declaration.
1513 (remote_mips_set_watchpoint): Delete declaration.
1514 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1515 * remote-mips.c (_initialize_remote_mips): Set
1516 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1517 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1518 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1519 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1520 (mips_stopped_by_watchpoint): Rename
1521 remote_mips_stopped_by_watchpoint.
1522 (mips_can_hardware_watchpoint): Rename
1523 remote_mips_can_use_hardware_watchpoint, update function
1526 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1528 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1529 USER_DS. We haven't given them a register number yet.
1531 * amd64-nat.h: New file.
1532 * amd64-nat.c: New file.
1533 * amd64fbsd-nat.c: Include "amd64-nat.h".
1534 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1535 (amd64fbsd32_r_reg_offset): New variable.
1536 (supply_gregset): Simply call amd64_supply_native_gregset.
1537 (fill_gregset): Rename `regno' to `regnum'. Simply call
1538 amd64_collect_native_gregset.
1539 (fill_fpregset): Rename `regno' to `regnum'.
1540 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1541 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1542 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1543 `fpregset_t'. Call amd64_supply_native_gregset instead of
1544 supply_gregset. Call x86_64_supply_fxsave instead of
1546 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1547 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1548 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1549 `fpregset_t'. Call amd64_collect_native_gregset instead of
1550 fill_gregset. Call x86_64_collect_fxsave instead of
1552 (_initialize_am64fbsd_nat): Initialize
1553 amd64_native_gregset32_reg_offset and
1554 amd64_native_gregset64_reg_offset.
1555 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1557 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1558 null pointer. Fix typo in comment.
1560 * regcache.c (supply_register): Reimplement to call
1561 regcache_raw_supply.
1562 (regcache_collect): Reimplement by calling regcache_raw_collect.
1564 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1566 * regcache.c (register_buffer): Consitify first argument.
1567 (regcache_raw_supply, regcache_raw_collect): New
1570 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1572 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1573 by Nathan J. Williams.
1575 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1577 * lin-lwp.c (wait_lwp): New function, copied from
1578 stop_wait_callback. Clean up.
1579 (stop_wait_callback): Use wait_lwp.
1581 2003-08-28 Andrew Cagney <cagney@redhat.com>
1583 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1584 flavour and disassembler options.
1585 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1586 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1587 deprecated_tm_print_insn_info.
1589 2003-08-27 Andrew Cagney <cagney@redhat.com>
1591 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1592 Use target_read_memory.
1593 (s390_get_frame_info): Update. Do not reference
1594 deprecated_tm_print_insn_info.
1595 (s390_check_function_end, s390_is_sigreturn): Ditto.
1597 2003-08-27 Andrew Cagney <cagney@redhat.com>
1599 * Makefile.in (cris-tdep.o): Update dependencies.
1600 * cris-tdep.c: Include "gdb_assert.h".
1601 (cris_gdbarch_init): Set print_insn.
1602 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1603 (cris_delayed_get_disassembler): Simplify, directly call the
1604 disassembler returned by cris_get_disassembler.
1605 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1606 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1607 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1608 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1609 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1610 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1611 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1612 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1613 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1614 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1615 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1616 (gdb_print_insn_sparc): Delete function.
1617 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1618 deprecated_tm_print_insn_info.
1619 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1620 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1621 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1622 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1623 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1624 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1625 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1626 (s390_gdbarch_init): Set print_insn.
1628 2003-08-27 Andrew Cagney <cagney@redhat.com>
1630 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1631 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1632 * infcall.c (call_function_by_hand): Convert the entry point
1633 address into a code address.
1635 2003-08-27 Andrew Cagney <cagney@redhat.com>
1637 * dsrec.c: Include "gdb_string.h".
1638 * Makefile.in (dsrec.o): Update dependencies.
1640 2003-08-27 Michael Chastain <mec@shout.net>
1642 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1644 2003-08-27 Andrew Cagney <cagney@redhat.com>
1646 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1647 (alpha_osf1_init_abi): Do not set call_dummy_address.
1649 2003-08-27 David Carlton <carlton@kealia.com>
1651 From Randolph Chung <tausq@debian.org>:
1652 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1653 compiles with -Wformat-nonliteral -Werror.
1655 2003-08-26 Jim Blandy <jimb@redhat.com>
1657 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1658 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1659 bfd_lookup_symbol, since we only want symbols in code sections.
1660 (look_for_base): Pass zero as the SECT_FLAGS argument to
1661 bfd_lookup_symbol, since we're not concerned about which section
1664 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1666 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1667 we are frameless or the return address register is already known.
1669 2003-08-26 Andrew Cagney <cagney@redhat.com>
1671 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1672 in size. Add comments.
1674 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1676 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1677 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1679 2003-08-26 Jason Merrill <jason@redhat.com>
1681 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1682 case out of #ifdef MIPS block.
1684 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1687 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1688 available before calling SECT_OFF_TEXT.
1689 * PROBLEMS: Remove description of java/1322.
1691 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1693 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1694 bof, and nat0-nat127 as pseudo-registers.
1695 (ia64_frame_cache): New struct used to cache frame info.
1696 (ia64_register_reggroup_p): New routine used to override default
1697 register grouping so registers without names are still saved and
1699 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1701 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1702 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1703 (ia64_alloc_frame_cache): New routine to create a new
1705 (examine_prologue): Change prototype to add next_frame pointer.
1706 Assume frameless until otherwise proven. Verify that the cfm for
1707 current frame matches the cfm that should occur for the prologues
1708 alloc insn and if equal, mark as not frameless. At end of routine,
1709 if not frameless, calculate registers for the previous frame and store
1710 in the cache, if a cache is provided.
1711 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1712 and pass 0 for next_frame.
1713 (ia64_store_return_value): Change to use convert_typed_floating()
1714 instead of calling ia64_convert_to_raw().
1715 (ia64_extract_return_value): Change to use convert_typed_floating()
1716 instead of calling ia64_convert_to_virtual().
1717 (ia64_frame_cache): New routine to support new frame model.
1718 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1719 (ia64_frame_sniffer): Ditto.
1720 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1721 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1722 (ia64_sigtramp_frame_prev_register): Ditto.
1723 (ia64_sigtramp_frame_sniffer): Ditto.
1724 (ia64_frame_base_address): Ditto.
1725 (ia64_extract_struct_value_address): Change to issue error message.
1726 (ia64_frame_align): New routine to align sp.
1727 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1728 (ia64_push_arguments): Removed. Logic moved to
1729 ia64_push_dummy_call().
1730 (ia64_push_return_address): Ditto.
1731 (ia64_unwind_dummy_id): New function.
1732 (ia64_unwind_pc): Ditto.
1733 (ia64_convert_register_p): Ditto.
1734 (ia64_register_to_value): Ditto.
1735 (ia64_value_to_register): Ditto.
1736 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1737 (ia64_register_byte, ia64_register_raw_size): Ditto.
1738 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1739 (ia64_saved_pc_after_call): Ditto.
1740 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1741 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1742 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1743 (ia64_register_convert_to_raw): Ditto.
1744 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1745 (ia64_init_extra_frame_info): Ditto.
1746 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1747 (ia64_gdbarch_init): Remove registering of deprecated functions that
1748 are no longer used. Add registration of new gdbarch functions.
1749 Remove registering deprecated_write_sp. Replace
1750 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1751 Delete set_gdbarch_deprecated_register_convertible(),
1752 set_gdbarch_deprecated_register_convert_to_virtual(), and
1753 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1754 set_gdbarch_deprecated_register_size(),
1755 set_gdbarch_deprecated_register_bytes(),
1756 set_gdbarch_pcregnum(),
1757 set_gdbarch_deprecated_register_byte(),
1758 set_gdbarch_deprecated_register_raw_size(),
1759 set_gdbarch_deprecated_max_register_raw_size(),
1760 set_gdbarch_deprecated_register_virtual_size(),
1761 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1762 Replace set_gdbarch_deprecated_extract_return_value() with
1763 set_gdbarch_extract_return_value(). Remove calls to:
1764 set_gdbarch_deprecated_saved_pc_after_call();
1765 set_gdbarch_deprecated_frame_chain(),
1766 set_gdbarch_deprecated_frame_saved_pc(),
1767 set_gdbarch_deprecated_frame_init_saved_regs(),
1768 set_gdbarch_deprecated_get_saved_register(),
1769 set_gdbarch_deprecated_call_dummy_words(),
1770 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1771 set_gdbarch_deprecated_init_extra_frame_info(),
1772 set_gdbarch_deprecated_frame_args_address(),
1773 set_gdbarch_deprecated_frame_locals_address(),
1774 and set_gdbarch_deprecated_dummy_write_sp().
1775 Add set_gdbarch_convert_register_p(),
1776 set_gdbarch_register_to_value(),
1777 set_gdbarch_value_to_register(),
1778 set_gdbarch_push_dummy_call(),
1779 set_gdbarch_frame_align(),
1780 set_gdbarch_unwind_dummy_id(),
1781 set_gdbarch_unwind_pc(),
1782 frame_unwind_append_sniffer(),
1783 frame_unwind_append_sniffer(),
1784 and frame_base_set_default().
1786 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1788 * configure.tgt: Document need for special "mipsisa64" handling.
1789 (mipsisa64*-*-linux64): Handle as target linux64.
1790 (mipsisa64*-*-*): Handle as target embed64.
1792 2003-08-18 Michael Chastain <mec@shout.net>
1794 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1797 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1799 * i387-tdep.h: Update copyright date.
1800 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1802 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1803 CFLAGS games to reflect reality.
1805 2003-08-24 Andrew Cagney <cagney@redhat.com>
1807 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1808 GDB_MULTI_ARCH is always non-zero.
1809 * osabi.c (_initialize_gdb_osabi): Ditto.
1810 (gdbarch_init_osabi): Ditto.
1811 * sparc-tdep.c: Ditto for #if code.
1813 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1815 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1817 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1819 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1820 x86_64_supply_fxsave.
1821 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1822 x86_64_supply_fxsave.
1823 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1824 x86_64_supply_fxsave.
1826 2003-08-23 Andreas Jaeger <aj@suse.de>
1828 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1831 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1833 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1834 i387_supply_register.
1835 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1836 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1838 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1840 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1842 * i386bsd-nat.c (supply_fpregset): Adjust call to
1844 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1845 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1847 (store_inferior_registers): Remove extraneous whitespace. Call
1848 i387_fill_fsave instead of fill_fpregset.
1849 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1850 (supply_fpregset): Likewise.
1851 * i386v4-nat.c (supply_fpregset): Adjust call to
1853 * i386-interix-nat.c (supply_fpregset): Adjust call to
1855 * i386-linux-nat.c (supply_fpregset): Adjust call to
1857 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1858 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1859 i387supply_fsave and i387_supply_fxsave.
1860 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1861 Incorporate code from `i387_supply_register.
1862 (i387_supply_register): Remove.
1863 (i387_supply_fxsave): Add `regnum' argument.
1865 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1867 (i387_supply_register): remove prototype.
1870 2003-08-22 Michael Chastain <mec@shout.net>
1872 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1873 Add lines for files in gdb/testsuite/gdb.cp/* that are
1874 still not 8.3 unique.
1876 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1878 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1879 TYPE_VPTR_FIELDNO is valid.
1881 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1883 * utils.c (set_width_command): Remove prototypes.
1884 (set_screen_size): New prototype.
1885 (init_page_info): Simplify by fetching the screen size from
1886 Readline. Call set_screen_size.
1887 (set_screen_size): New function.
1888 (set_width): Add missing whitespace in comment.
1889 (set_width_command): Call set_screen_size.
1890 (set_height_command): New function.
1891 (initialize_utils): Fix formatting. Make "set height" command
1892 call set_height_command. Remove redundant code that turns off
1893 pagination if output isn't a terminal. Remove redundant call to
1896 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1898 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1899 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1900 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1901 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1903 (sparc64_register_info): Give the reister with number
1904 SPARC64_STATE_REGNUM a name.
1905 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1907 (sparc64_push_dummy_call): Take BIAS into account when checking
1909 (sparc_software_single_step): Remove assertions that check whether
1910 NPC and NNPC were zero.
1911 (sparc_supply_rwindow): Make public. Merge functionality with
1912 sparc64_supply_rwindow.
1913 (sparc_fill_rwindow): Make public. Merge functionality with
1914 sparc64_fill_rwindow.
1915 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1916 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1917 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1918 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1919 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1921 * reggroups.c: Add whitespace after declarations of local
1922 variables in functions.
1924 2003-08-21 Michael Chastain <mec@shout.net>
1926 * gdbtypes.h: Change array bound type from an int to enum.
1928 2003-08-21 Andrew Cagney <cagney@redhat.com>
1930 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1931 * config/sparc/tm-sparc.h: Ditto.
1932 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1934 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1936 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1938 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1939 (register_objfile_data, set_objfile_data, objfile_data): New
1941 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1943 (allocate_objfile): Call objfile_alloc_data.
1944 (free_objfile): Call objfile_free_data.
1945 (struct objfile_data): New.
1946 (struct objfile_data_registration): New.
1947 (struct objfile_data_registry): New.
1948 (objfile_data_registry): New variable.
1949 (register_objfile_data): New function.
1950 (objfile_alloc_data, objfile_free_data): New functions.
1951 (set_objfile_data, objfile_data): New functions.
1952 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1953 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1954 (_initialize_dwarf2_frame): New function and prototype.
1956 2003-08-21 Andrew Cagney <cagney@redhat.com>
1958 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1959 a specific architecture.
1960 * arch-utils.h (set_architecture_from_arch_mach): Delete
1962 (target_architecture_hook): Delete declaration.
1963 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1964 (default_float_format): Assume GDB_MULTI_ARCH.
1965 (default_double_format): Assume GDB_MULTI_ARCH.
1966 (set_endian_from_file): Delete function.
1967 (arch_ok): Delete function.
1968 (set_arch): Delete function.
1969 (set_architecture_from_arch_mach): Delete function.
1970 (set_architecture_from_file): Delete function.
1971 (set_architecture): Assume GDB_MULTI_ARCH.
1972 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1974 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1976 Rewrite FreeBSD/sparc64 native configuration.
1977 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1978 * sparc64fbsd-nat.c: New file.
1979 * sparc64fbsd-tdep.c: New file.
1980 * sparc64-tdep.c sparc64-tdep.h: New files.
1981 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1982 sparc64fbsd-tdep.o): New dependencies.
1983 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1984 and sparc64fbsd-tdep.c.
1985 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1986 * config/sparc/fbsd.mh: Remove copyright notice.
1987 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1989 * config/sparc/fbsd.mt: Remove copyright notice.
1990 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1991 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1992 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1993 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1994 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1995 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1996 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1997 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1999 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2000 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2002 2003-08-21 Michael Chastain <mec@shout.net>
2004 * symtab.h: Add doco on the space critical structures and
2005 some measurements of space usage.
2007 2003-08-21 Michael Snyder <msnyder@redhat.com>
2009 * tracepoint.c (trace_dump_command): Trace break address
2010 is subject to DECR_PC_AFTER_BREAK.
2011 (set_traceframe_context): Make "trace_line" an int.
2012 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2014 2003-08-20 Michael Snyder <msnyder@redhat.com>
2016 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2017 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2018 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2020 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2021 functions, replace sh_push_dummy_call.
2022 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2024 2003-08-20 Michael Chastain <mec@shout.net>
2026 * gdbtypes.h (struct main_type): Rearrange to save space.
2028 2003-08-20 Michael Snyder <msnyder@redhat.com>
2030 * trad-frame.c: Comment typo fix.
2032 2003-08-20 Michael Snyder <msnyder@redhat.com>
2033 Kevin Buettner <kevinb@redhat.com>
2035 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2036 (frv_frame_init_saved_regs): Add declaration.
2037 (frame_extra_info): Add new field ``saved_regs''.
2038 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2039 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2040 Update frame related code.
2041 (frv_extract_struct_value_address): Adjust formatting.
2042 * Makefile.in (frv-tdep.o): Update dependencies.
2043 * config/frv/tm-frv.h (target_insert_watchpoint)
2044 (target_remove_watchpoint, target_insert_hw_breakpoint)
2045 (target_remove_hw_breakpoint): Delete these macros.
2046 (remote_insert_watchpoint, remote_remove_watchpoint)
2047 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2050 2003-08-20 Michael Chastain <mec@shout.net>
2052 * defs.h (ENUM_BITFIELD): New macro.
2053 * symtab.h (ENUM_BITFIELD): Use it.
2054 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2056 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2058 * MAINTAINERS (write after approval): Add myself.
2060 2003-08-18 Andrew Cagney <cagney@redhat.com>
2062 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2063 * gdbarch.h, gdbarch.c: Re-generate.
2064 * infcall.c (call_function_by_hand): Adjust the SP by
2065 frame_red_zone_size before allocating any stack space.
2066 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2067 * x86-64-tdep.c (x86_64_frame_align): New function.
2068 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2070 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2071 Remove code adjusting SP so that it skips over the Red Zone.
2073 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2075 * NEWS (New native configurations): Mention FreeBSD/amd64.
2077 2003-08-18 Andrew Cagney <cagney@redhat.com>
2079 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2080 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2082 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2084 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2086 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2088 2003-08-18 Michal Ludvig <mludvig@suse.cz>
2090 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2092 * i386-linux-nat.c: Include "linux-nat.h".
2093 (child_post_startup_inferior): New function.
2095 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2097 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2098 at the start of a frameless function. This probably fixes PR
2101 2003-08-17 Michael Chastain <mec@shout.net>
2103 * symfile.c (find_sym_fns): Remove special case for apollo target.
2105 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2107 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2108 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2109 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2110 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2111 (linux_supports_tracevforkdone): New function.
2112 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2114 (child_follow_fork): Handle vfork.
2115 (linux_handle_extended_wait): Likewise. Also handle exec.
2116 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2117 * NEWS: Mention fork tracing.
2119 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2121 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2123 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2125 * Makefile.in (i386-linux-nat.o): Update dependencies.
2126 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2127 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2128 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2129 * i386-linux-nat.c: Include "linux-nat.h".
2130 (child_post_startup_inferior): New function.
2131 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2132 * infptrace.c (kill_inferior): Wrap in #ifdef.
2133 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2134 attaching to each LWP.
2135 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2136 (init_lin_lwp_ops): Fill in some more operations.
2137 * linux-nat.h (linux_enable_event_reporting)
2138 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2140 * linux-nat.c (linux_enable_event_reporting): New function.
2141 (child_post_attach, linux_child_post_startup_inferior)
2142 (child_post_startup_inferior, child_follow_fork)
2143 (linux_handle_extended_wait, kill_inferior): New functions.
2145 2003-08-16 Andrew Cagney <cagney@redhat.com>
2147 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2148 * gdbarch.h, gdbarch.c: Re-generate.
2150 2003-08-16 Mark Kettenis <kettenis@gnu.org>
2152 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2154 2003-08-16 Andrew Cagney <cagney@redhat.com>
2156 * NEWS: Mention that "set prompt-escape-char" was deleted.
2157 * top.c (get_prompt_1): Delete function.
2158 (gdb_prompt_escape):
2159 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2160 prompt-escape-char" command.
2161 (MAX_PROMPT_SIZE): Delete macro.
2162 (get_prompt): Simplify, do not call get_prompt_1.
2164 2003-08-16 Andrew Cagney <cagney@redhat.com>
2166 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2167 -Werror. -Wformat-nonliteral problems.
2169 2003-08-15 J. Brobecker <brobecker@gnat.com>
2171 Further multiarching work mostly for hppa64-*-hpux11:
2172 * hppa-tdep.h: New file.
2173 * hppa-tdep.c: #include hppa-tdep.c.
2174 (hppa32_num_regs): Renamed from hppa_num_regs.
2175 (hppa64_num_regs): New constant.
2176 (hppa64_call_dummy_breakpoint_offset): New constant.
2177 (hppa32_call_dummy_length): New constant.
2178 (hppa64_call_dummy_length): New constant.
2179 (hppa32_stack_align): Make name 32bit explicit.
2180 (hppa32_register_virtual_type): Likewise.
2181 (hppa32_extract_return_value): Likewise.
2182 (hppa32_use_struct_convention): Likewise.
2183 (hppa32_store_return_value): Likewise.
2184 (hppa64_register_virtual_type): New function.
2185 (hppa64_extract_return_value): New function.
2186 (hppa64_use_struct_convention): New function.
2187 (hppa64_store_return_value): New function.
2188 (hppa_frame_locals_address): Remove declaration, function does
2190 (hppa_register_byte): Add support for PA64 ABI.
2191 (hppa_gdbarch_init): Add support for PA64 ABI.
2192 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2193 Make name 32bit explicit.
2194 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2195 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2196 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2197 (hppa64_hpux_frame_base_before_sigtramp): New function.
2198 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2199 * config/pa/tm-hppa64.h: Remove macros that are no longer
2200 necessary now that the gdbarch vector is properly setup.
2201 Transform some macros into function calls. Some minor cleanup.
2202 * config/pa/tm-hppah.h: Update function calls in macros
2203 following the function renaming in hppa-hpux-tdep.c.
2204 * Makefile.in (hppa_tdep_h): New variable.
2205 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2207 2003-08-14 Michael Snyder <msnyder@redhat.com>
2209 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2211 2003-08-13 J. Brobecker <brobecker@gnat.com>
2213 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2214 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2217 2003-08-13 Michael Snyder <msnyder@redhat.com>
2219 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2220 (frv_saved_pc_after_call): Use deprecated ftype.
2221 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2222 (frv_remote_translate_xfer_address): Remove.
2223 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2225 2003-08-13 J. Brobecker <brobecker@gnat.com>
2227 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2228 initialization after the common gdbarch initialization, not before.
2230 2003-08-13 J. Brobecker <brobecker@gnat.com>
2232 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2233 (ADDR_BITS_REMOVE): Remove, redundant.
2235 2003-08-13 J. Brobecker <brobecker@gnat.com>
2237 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2238 gdbarch method to clear the 2 low bits of text addresses.
2240 2003-08-12 Andrew Cagney <cagney@redhat.com>
2242 * Makefile.in (dsrec.o): Update dependencies.
2243 * dsrec.c: Include "gdb_assert.h".
2244 (make_srec): Use snprintf instead of sprintf, use a literal format
2247 2003-08-12 Andrew Cagney <cagney@redhat.com>
2249 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2250 FRAME_OBSTACK_ZALLOC.
2252 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2254 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2257 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2259 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2260 amd64fbsd_sc_reg_offset): Add extern declarations.
2261 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2264 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2266 * MAINTAINERS (write after approval): Update my mail address.
2268 2003-08-10 Andrew Cagney <cagney@redhat.com>
2270 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2272 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2274 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2275 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2276 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2277 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2278 i386bsd_sc_reg_offset): Add extern declarations.
2279 * i386obsd-nat.c: Include "i386-tdep.h"
2280 (_initialize_i386obsd_nat): Remove extern declarations.
2281 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2283 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2286 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2287 instead of frame_read_register.
2288 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2289 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2291 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2292 instead of frame_unwind_unsigned_register. Use
2293 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2294 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2295 instead of read_register. Use builtin_type_void_data_ptr instead
2296 of builtin_type_void_func_ptr when extracting the address of the
2298 (i386_extract_return_value, i386_store_return_value,
2299 i386_pseudo_register_read, i386_pseudo_register_write): Use
2300 register_size instead REGISTER_RAW_SIZE.
2302 2003-08-10 Andrew Cagney <cagney@redhat.com>
2304 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2305 sprintf. Make "name" constant.
2307 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2309 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2310 instead of frame_read_register.
2311 (i387_print_float_info): Use get_frame_register and
2312 get_frame_register_unsigned instead of frame_register_read.
2314 * i386fbsd-nat.c: Include "i386-tdep.h".
2315 (child_resume): Make `eflags' an ULONGEST. Use
2316 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2317 instead of register_read and register_write.
2319 * i386bsd-nat.c (fetch_inferior_registers,
2320 store_inferior_registers): Don't use && at the end of a line.
2321 (_initialize_i386bsd_nat): Fix typo.
2323 * frame.c (_initialize_frame): Add missing backslash.
2325 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2326 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2327 and supply_register instead of manipulating the register buffer
2330 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2331 * config/i386/nm-i386sol2.h
2332 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2334 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2335 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2336 instructions that GCC likes to mingle into the prologue. Fixes
2337 gdb/1253 and gdb/1255.
2339 2003-08-09 Andrew Cagney <cagney@redhat.com>
2342 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2343 * command.h (add_setshow_uinteger_cmd): Declare.
2344 * frame.c (set_backtrace_cmd): New function.
2345 (show_backtrace_cmd): New function.
2346 * frame.c (_initialize_frame): Replace "set/show
2347 backtrace-below-main" with "set/show backtrace past-main". Add
2348 command "set/show backtrace limit".
2349 (backtrace_past_main): Rename "backtrace_below_main".
2350 (backtrace_limit): New variable.
2351 (get_prev_frame): Update. Check the backtrace_limit.
2353 2003-08-09 Andrew Cagney <cagney@redhat.com>
2355 * defs.h (xstrprintf): Declare.
2356 * utils.c (xstrprintf): New function.
2357 * breakpoint.c (insert_breakpoints): Replace sprintf and
2358 non-literal format strings, with xstrprintf and cleanups.
2359 (delete_breakpoint,breakpoint_re_set): Ditto.
2360 (commands_command, insert_breakpoints): Ditto.
2361 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2362 (break_at_finish_command_1): Ditto.
2364 2003-08-09 Andrew Cagney <cagney@redhat.com>
2366 * MAINTAINERS (language support): List Adam Fedor as Objective C
2369 2003-08-08 J. Brobecker <brobecker@gnat.com>
2371 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2372 are now multiarched.
2374 2003-08-08 J. Brobecker <brobecker@gnat.com>
2376 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2377 longer necessary now that hppa64 is partially multiarch'ed.
2379 2003-08-08 Andrew Cagney <cagney@redhat.com>
2381 * interps.c (interp_set): Check for a NULL "old_interp".
2383 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2385 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2386 (install-only): Support DESTDIR.
2387 (uninstall): Likewise.
2388 (install-gdbtk): Likewise.
2390 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2392 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2393 contains something meaningful at all times.
2395 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2397 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2399 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2401 * MAINTAINERS (write after approval): Added self.
2403 2003-08-07 Andrew Cagney <cagney@redhat.com>
2405 * inferior.h (AT_SYMBOL): Define.
2406 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2407 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2408 * mips-tdep.c (mips_call_dummy_address): Delete function.
2409 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2410 set call_dummy_address.
2412 2003-08-07 Andrew Cagney <cagney@redhat.com>
2414 * language.c (op_error): Delete function.
2415 (binop_type_check): Delete function.
2416 * language.h (type_op_error, range_op_error): Delete macros.
2417 (op_error): Delete declaration.
2419 2003-08-07 Andrew Cagney <cagney@redhat.com>
2421 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2423 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2425 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2426 (x86_64_push_arguments): Skip the red zone.
2428 2003-08-05 Andrew Cagney <cagney@redhat.com>
2430 * reggroups.c (reggroup_next): Check for the final entry.
2432 2003-08-04 Andrew Cagney <cagney@redhat.com>
2434 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2435 * cli/cli-script.c (define_command): Call query directly, instead
2436 of passing it a buffer.
2437 * ocd.c (ocd_error): Pass error a constant format string.
2438 * remote-mips.c (mips_error): Use fputs_filtered.
2440 * solib-svr4.c (_initialize_svr4_solib): Update
2441 register_gdbarch_data call.
2442 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2444 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2445 (register_gdbarch_data): Delete "free" parameter. Update
2447 * gdbarch.h, gdbarch.c: Re-generate.
2448 * reggroups.c (_initialize_reggroup): Update.
2449 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2450 * frame-base.c (_initialize_frame_base): Update.
2451 * frame-unwind.c (_initialize_frame_unwind): Update.
2452 * user-regs.c (_initialize_user_regs): Update.
2453 * remote.c (_initialize_remote): Update.
2454 * regcache.c (_initialize_regcache): Update.
2456 * regcache.c (xfree_regcache_descr): Delete function.
2457 (_initialize_regcache): Update call to register_gdbarch_data.
2458 (init_regcache_descr, init_legacy_regcache_descr): Use
2459 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2461 * remote.c (free_remote_state): Delete function.
2462 (_initialize_remote): Update register_gdbarch_data.
2463 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2464 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2466 2003-08-04 Andrew Cagney <cagney@redhat.com>
2468 * reggroups.c (struct reggroup_el): Define.
2469 (struct reggroups): Delete field "nr_group". Replace array
2470 "group" with a "first" to "last" linked list.
2471 (reggroups_init): Update. Allocate using gdbarch's obstack.
2472 (reggroups_free): Delete function.
2473 (add_group): Update. Add "el" parameter.
2474 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2475 (default_groups): Update.
2476 (reggroup_next): Replace reggroups.
2477 (reggroups_dump): Update.
2478 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2479 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2480 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2482 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2484 * Makefile.in (tui-interp.o): Update dependencies.
2486 2003-08-04 David Carlton <carlton@kealia.com>
2488 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2489 to internal_error call.
2490 * source.c (forward_search_command): Add "%s" format argument.
2491 (reverse_search_command): Ditto.
2492 * top.c (quit_confirm): Ditto.
2493 * cli/cli-setshow.c (do_setshow_command): Ditto.
2494 * cp-valprint.c (cp_print_class_method): Replace
2495 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2496 (cp_print_class_member): Ditto.
2497 * event-top.c (command_line_handler): Ditto.
2498 * linux-proc.c (linux_info_proc_cmd): Ditto.
2499 * p-typeprint.c (pascal_type_print_base): Ditto.
2500 * p-valprint.c (pascal_object_print_class_method): Ditto.
2501 (pascal_object_print_class_member): Ditto.
2502 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2503 * remote.c (remote_cisco_section_offsets): Ditto.
2504 * top.c (command_line_input): Ditto.
2505 * utils.c (vwarning,error_stream,quit): Ditto.
2506 * valprint.c (print_floating,print_binary_chars)
2507 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2509 2003-08-04 Andrew Cagney <cagney@redhat.com>
2511 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2513 2003-08-02 Andrew Cagney <cagney@redhat.com>
2515 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2516 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2519 2003-08-02 Andrew Cagney <cagney@redhat.com>
2521 * Makefile.in: Update all dependencies and definitions.
2523 2003-08-02 Adam Fedor <fedor@gnu.org>
2525 * linespec.c (is_objc_method_format): New function
2526 (decode_line_1, locate_first_half): Use it.
2529 2003-08-01 Andrew Cagney <cagney@redhat.com>
2531 * NEWS: Mention that m32r is multi-arch.
2532 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2533 * configure.tgt: Recognize m32r-*-*.
2534 * config/m32r/tm-m32r.h: Delete file.
2535 * config/m32r/m32r.mt: New file.
2536 * m32r-rom.c (m32r_upload_command): Use hostent only when
2537 gethostname succeeds, in order to avoid a compilation
2539 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2542 2003-08-01 Michael Snyder <msnyder@redhat.com>
2544 * sh-tdep.c (sh_frame_align): New gdbarch method.
2545 (sh_gdbarch_init): Set up frame_align method.
2547 2003-07-31 Michael Snyder <msnyder@redhat.com>
2549 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2550 which is already covered by the new frames infrastructure.
2552 2003-07-31 Andrew Cagney <cagney@redhat.com>
2554 * user-regs.c (struct user_reg): Add "next" link.
2555 (struct user_regs): Replace "user" with "first" and "last" links.
2556 (append_user_reg): Add pre-allocated "reg" parameter.
2557 (builtin_user_regs): Provide initial value for "last".
2558 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2559 (user_regs_init): Allocate memory from the gdbarch obstack.
2560 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2561 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2563 (usernum_to_user_reg): New function.
2564 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2565 (value_of_user_reg): Use usernum_to_user_reg.
2566 (user_regs_free): Delete function.
2567 (_initialize_user_regs): Update register_gdbarch_data call.
2569 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2571 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2573 2003-07-30 Michael Snyder <msnyder@redhat.com>
2575 * value.h (value_being_returned): Add a struct_addr argument.
2576 * infcall.c (call_function_by_hand): Pass struct_addr to
2577 value_being_returned.
2578 * infcmd.c (print_return_value): Pass zero as struct_addr.
2579 * values.c (value_being_returned): If struct_addr is passed,
2580 use it instead of trying to recover it from the inferior.
2582 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2584 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2585 the prologue analyzer won't need to attempt to extract the pc
2586 value from the woefully incomplete dummy frame.
2587 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2588 possible. Disable code which modifies the frame.
2590 2003-07-28 Andrew Cagney <cagney@redhat.com>
2592 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2594 (annotate_breakpoints_table, annotate_record): Ditto.
2595 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2596 (annotate_field_name_end, annotate_field_value): Ditto.
2597 (annotate_field_end, annotate_frame_source_begin): Ditto.
2598 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2599 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2600 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2601 (annotate_frame_address_end, annotate_frame_address): Ditto.
2602 (annotate_frame_args, annotate_frame_end): Ditto.
2603 (annotate_frame_where, annotate_arg_begin): Ditto.
2604 (annotate_arg_name_end, annotate_arg_value): Ditto.
2605 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2606 (annotate_function_call, annotate_signal_name): Ditto.
2607 (annotate_signal_string, annotate_signal_name_end): Ditto.
2608 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2609 (annotate_value_begin, annotate_value_history_value): Ditto.
2610 (annotate_value_history_end, annotate_value_end): Ditto.
2611 (annotate_display_begin, annotate_display_number_end): Ditto.
2612 (annotate_display_format, annotate_display_expression): Ditto.
2613 (annotate_display_expression_end, annotate_display_value): Ditto.
2614 (annotate_display_end, annotate_array_section_begin): Ditto.
2615 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2616 (annotate_elt, annotate_array_section_end): Ditto.
2618 2003-07-28 Andrew Cagney <cagney@redhat.com>
2620 * regcache.c (struct regcache_descr): Update comments on
2622 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2623 sizeof_raw_register_valid_p.
2624 (init_regcache_descr): Set nr_raw_registers and
2625 sizeof_raw_register_valid_p before calling
2626 init_legacy_regcache_descr.
2628 2003-07-28 Andrew Cagney <cagney@redhat.com>
2630 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2633 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2635 * thread.c (info_threads_command): Use get_selected_frame ().
2636 Check that there is at least one non-sentinel frame.
2638 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2640 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2641 (m68hc11_pop_frame): Remove.
2642 (m68hc11_frame_saved_pc): Remove.
2643 (m68hc11_frame_chain): Remove.
2644 (m68hc11_frame_init_saved_regs): Remove.
2645 (m68hc11_init_extra_frame_info): Remove.
2646 (m68hc11_store_struct_return): Remove.
2647 (m68hc11_saved_pc_after_call): Remove.
2649 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2651 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2652 frame unwind information.
2653 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2654 and adapted for frame unwinding.
2655 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2656 (m68hc11_unwind_pc): New function.
2657 (m68hc11_frame_unwind_cache): New function to analyze frames.
2658 (m68hc11_frame_this_id): New function to create new frame struct.
2659 (m68hc11_frame_prev_register): New function to unwind a register from
2661 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2662 (m68hc11_frame_p): New function for the above.
2663 (m68hc11_frame_base_address): New function to return fp of frame.
2664 (m68hc11_frame_args_address): Update for frame.
2665 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2666 (m68hc11_unwind_sp): New function.
2667 (m68hc11_unwind_dummy_id): New function.
2668 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2671 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2673 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2674 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2675 when we are beyond the current pc.
2677 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2679 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2680 from m68hc11_push_arguments.
2681 (m68hc11_push_arguments): Remove.
2682 (m68hc11_push_return_address): Remove.
2683 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2684 handlers; remove deprecated_extra_stack_alignment_needed.
2686 2003-07-27 Andrew Cagney <cagney@redhat.com>
2688 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2689 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2690 REAL_PC and not the pointer.
2691 * hppa-hpux-tdep.c: Include frame.h
2693 2003-07-27 Andrew Cagney <cagney@redhat.com>
2695 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2696 GDB_MULTI_ACH_PARTIAL.
2698 2003-07-27 Andrew Cagney <cagney@redhat.com>
2700 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2701 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2702 operator at start and not end of line.
2703 (decode_prologue): Ditto.
2704 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2705 frame_unwind_register_unsigned instead of
2706 frame_unwind_unsigned_register.
2707 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2709 (m32r_push_dummy_call): Use register_size instead of
2711 (m32r_frame_sniffer): Replace m32r_frame_p.
2712 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2713 * m32r-rom.c (report_transfer_performance): Delete extern
2715 (m32r_load, m32r_upload_command): Use print_transfer_performance
2716 instead of report_transfer_performance.
2717 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2718 / add_show_from_set.
2720 2003-07-26 Andrew Cagney <cagney@redhat.com>
2722 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2723 store_return_value and extract_struct_value_address.
2725 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2728 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2729 NULL, default to the section containing PC.
2731 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2733 * NEWS: Mention "regs" deprecated for m68hc11 too.
2735 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2736 (m68hc11_print_register): New function to print out one register.
2737 (m68hc11_print_registers_info): New function to print registers.
2738 (show_regs): Deprecate and use the above.
2739 (m68hc11_gdbarch_init): Install the print_registers_info.
2741 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2743 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2744 that we have a SIGTRAP before returning non-zero.
2746 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2747 Elena Zannoni <ezannoni@redhat.com>
2749 * linespec.c (decode_line_2): Avoid crash if
2750 find_function_start_sal() returns empty record.
2752 2003-07-23 Andreas Schwab <schwab@suse.de>
2754 * ia64-tdep.c (ia64_print_insn): New function.
2755 (ia64_gdbarch_init): Set print_insn to it.
2756 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2757 deprecated_tm_print_insn_info.
2759 2003-07-22 Michael Snyder <msnyder@redhat.com>
2761 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2762 handle 8-bit returns (long long).
2763 (h8300h_extract_return_value): Ditto.
2764 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2766 2003-07-22 Andrew Cagney <cagney@redhat.com>
2768 * gdbarch.c Include "gdb_obstack.h".
2769 (struct gdbarch): Add an "obstack".
2770 (alloc_gdbarch_data): Allocate the gdbarch data using
2771 GDBARCH_OBSTACK_CALLOC.
2772 (free_gdbarch_data): Delete function.
2773 (gdbarch_obstack_zalloc): New function.
2774 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2775 Assert that the architecture is not initialized.
2776 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2777 vector from the obstack.
2778 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2779 architecture obstack.
2780 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2781 (set_gdbarch_data): Assert that the data is not initialized.
2782 (struct gdbarch_data): Delete member "free".
2783 (register_gdbarch_data): Do not initialize "free".
2784 * gdbarch.h, gdbarch.c: Re-generate.
2786 2003-07-22 Andrew Cagney <cagney@redhat.com>
2788 * configure.in (build_warnings): Add -Wformat-nonliteral.
2789 * configure: Re-generate.
2791 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2793 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2795 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2797 * findvar.c (read_var_value): Remove case for thread local storage
2798 variables. It is now entirely handled by the dwarf2 location
2800 * printcmd.c (address_info): Ditto.
2801 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2803 (struct symbol): Remove objfile field, which was used by
2804 LOC_THREAD_LOCAL_STATIC only.
2805 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2806 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2807 usage of objfile pointer.
2808 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2809 thread local variables.
2810 Add include of objfiles.h.
2811 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2813 * Makefile.in (dwarf2loc.o): Update dependencies.
2815 2003-07-22 Andrew Cagney <cagney@redhat.com>
2817 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2819 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2820 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2821 (struct value): Add opaque declaration.
2822 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2824 2003-07-21 Andrew Cagney <cagney@redhat.com>
2826 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2827 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2829 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2831 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2832 regcache_cooked_read_unsigned instead of read_register.
2833 (m68hc11_saved_pc_after_call): Likewise.
2834 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2835 instead of write_register.
2836 (m68hc11_register_type): New function.
2837 (m68hc11_register_virtual_type): Remove.
2838 (m68hc11_store_return_value): Convert to use the regcache.
2839 (m68hc11_extract_struct_value_address): Likewise.
2840 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2841 m68hc11_register_type; undeprecate store_return_value and
2842 extract_struct_value_address.
2844 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2846 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2847 and translate to use regcache.
2848 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2850 2003-07-18 Andrew Cagney <cagney@redhat.com>
2852 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2853 * gdbarch.h, gdbarch.c: Re-generate.
2854 * i386-tdep.c (i386_gdbarch_init): Do not set
2855 DWARF2_BUILD_FRAME_INFO.
2856 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2858 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2859 DWARF2_BUILD_FRAME_INFO.
2861 2003-07-18 Andrew Cagney <cagney@redhat.com>
2863 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2864 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2866 2003-07-18 Andrew Cagney <cagney@redhat.com>
2868 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2869 frame_unwind_address_in_block, instead of frame_pc_unwind.
2870 (dwarf2_frame_cache): Ditto.
2872 2003-07-18 Andrew Cagney <cagney@redhat.com>
2874 * user-regs.h (struct gdbarch): Declare opaque.
2875 * ui-out.h (struct ui_file): Declare opaque.
2876 * dwarf2-frame.h (struct frame_info): Declare opaque.
2878 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2880 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2882 (procfs_meminfo): Change strerror to safe_strerror.
2883 (procfs_can_run): Remove K&R badness.
2885 2003-07-17 Michael Snyder <msnyder@redhat.com>
2887 * remote-sim.c: Comment typo fix.
2889 2003-07-17 Andrew Cagney <cagney@redhat.com>
2891 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2893 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2894 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2895 GDB_MULTI_ARCH_PARTIAL.
2897 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2899 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2900 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2901 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2903 2003-07-16 Theodore A. Roth <troth@openavr.org>
2905 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2907 (avr_frame_unwind_cache): Don't unwind FP for main.
2909 Save the computed prev_sp.
2910 (avr_saved_regs_unwinder): Remove function.
2911 (avr_frame_prev_register): Use PC unwind logic from
2912 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2914 2003-07-16 Andrew Cagney <cagney@redhat.com>
2916 * frame-base.h (frame_base_p_ftype): Delete definition.
2917 (frame_base_append_predicate): Delete declaration.
2918 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2919 (frame_unwind_append_predicate): Delete declaration.
2920 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2921 (append_predicate): Delete parameter "p".
2922 (frame_unwind_append_predicate): Delete function.
2923 (frame_unwind_append_sniffer): Update call to append_predicate.
2924 (frame_unwind_free): Delete function.
2925 (_initialize_frame_unwind): Pass NULL as "free" to
2926 register_gdbarch_data.
2927 (frame_unwind_init): Append the dummy_frame_sniffer.
2928 (frame_unwind_find_by_frame): Simplify.
2929 * frame-base.c (struct frame_base_table): Delete field "p".
2930 (append_predicate): Delete parameter "p".
2931 (frame_base_append_predicate): Delete function.
2932 (frame_base_append_sniffer): Update call to append_predicate.
2933 (frame_base_free): Delete function.
2934 (frame_base_find_by_frame): Simplify.
2935 (_initialize_frame_base): Pass NULL as "free" to
2936 register_gdbarch_data.
2937 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2938 (x86_64_sigtramp_frame_sniffer): Replace
2939 "x86_64_sigtramp_frame_p".
2940 (x86_64_init_abi): Set the frame unwind sniffers.
2941 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2942 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2943 (m68k_gdbarch_init): Set the frame unwind sniffers.
2944 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2945 "i386_sigtramp_frame_p".
2946 (i386_frame_sniffer): Replace "i386_frame_p".
2947 (i386_gdbarch_init): Set the frame unwind sniffers.
2948 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2949 (avr_gdbarch_init): Set the frame unwind sniffers.
2950 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2951 "alpha_sigtramp_frame_p"
2952 (alpha_heuristic_frame_sniffer): Replace
2953 "alpha_heuristic_frame_p".
2954 (alpha_gdbarch_init): Set the frame unwind sniffers.
2955 (alpha_dwarf2_init_abi): Ditto.
2956 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2957 "alpha_debug_frame_p".
2958 (alpha_mdebug_frame_base_sniffer): Replace
2959 "alpha_mdebug_frame_base_p".
2960 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2961 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2962 (d10v_gdbarch_init): Set the frame unwind sniffer.
2963 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2964 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2965 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2966 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2967 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2968 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2970 2003-07-16 Michael Snyder <msnyder@redhat.com>
2972 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2973 should go thru sh_dsp_register_sim_regno, else the dsp regs
2974 will not get the right values.
2976 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2978 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2979 deprecated_store_floating by call to store_typed_floating.
2980 (sh_sh4_register_convert_to_raw): Substitute call to
2981 deprecated_extract_floating by call to extract_typed_floating.
2983 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2985 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2987 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2989 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2990 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2991 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2993 (do_pseudo_register): Remove.
2994 (sh_push_dummy_code): New function.
2995 (sh64_store_struct_return): Rename from sh_store_struct_return.
2996 Only called for sh64 now.
2997 (sh_extract_struct_value_address): Regcache'ify.
2998 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2999 and accomodate new tasks.
3000 (sh64_push_return_address): Rename from sh_push_return_address.
3001 Only called for sh64 now.
3002 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3004 (sh3e_sh4_extract_return_value): Regcache'ify.
3005 (sh_default_store_return_value): Ditto.
3006 (sh3e_sh4_store_return_value): Ditto.
3007 (sh_default_register_byte): Remove.
3008 (sh_sh4_register_byte): Remove.
3009 (sh_default_register_raw_size): Remove.
3010 (sh_sh4_register_raw_size): Remove.
3011 (sh_register_virtual_size): Remove.
3012 (sh_sh3e_register_virtual_type): Remove.
3013 (sh_sh3e_register_type): New function.
3014 (sh_sh4_register_virtual_type): Remove.
3015 (sh_sh4_register_type): New function.
3016 (sh_default_register_virtual_type): Remove.
3017 (sh_default_register_type): New function.
3018 (do_fv_register_info): Add parameters to accomodate call from
3019 sh_print_registers_info.
3020 (do_dr_register_info): Ditto.
3021 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3022 Add parameters to accomodate call from sh_print_registers_info.
3023 (sh_do_fp_register): Ditto.
3024 (sh64_do_pseudo_register): Call do_dr_register_info,
3025 do_fv_register_info and sh_do_fp_register with default parameters.
3026 (sh_do_register): Add parameters to accomodate call from
3027 sh_print_registers_info.
3028 (sh_print_register): Ditto.
3029 (sh_print_registers_info): Rename from sh_do_registers_info.
3030 Add parameters to be used as gdbarch_print_registers_info
3031 implementation. Accomodate removed do_pseudo_register function
3033 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3034 function pointer. Call sh_print_register with default parameters.
3035 (sh64_do_registers_info): Call sh_print_registers_info instead of
3036 sh_do_registers_info.
3037 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3038 detection of deprecated vs. non-deprecated functionality.
3039 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3040 function pointer assignments by direct function calls.
3042 2003-07-15 Andrew Cagney <cagney@redhat.com>
3044 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3045 (frame_register_unwind, create_new_frame): Ditto.
3046 (legacy_get_prev_frame, get_frame_type): Ditto.
3047 (get_frame_base_address): Use frame_base_find_by_frame.
3048 (get_frame_locals_address): Use frame_base_find_by_frame.
3049 (get_frame_args_address): Use frame_base_find_by_frame.
3050 * frame-base.h (frame_base_sniffer_ftype): Declare.
3051 (frame_base_append_sniffer): Declare.
3052 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3053 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3054 (frame_base_append_sniffer): New function.
3055 (frame_base_append_predicate): Add a NULL sniffer.
3056 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3057 (struct frame_base_table): Add "sniffer".
3058 (frame_base_free): Free the "sniffer" table.
3059 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3060 (frame_unwind_append_sniffer): Declare.
3061 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3062 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3063 (struct frame_unwind_table): Add "sniffer", delete "middle".
3064 (append_predicate): Add "sniffer" parameter, append the sniffer.
3065 (frame_unwind_init): Update append_predicate call.
3066 (frame_unwind_append_sniffer): New function.
3067 (frame_unwind_append_predicate): Update append_predicate call.
3068 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3070 2003-07-15 Andrew Cagney <cagney@redhat.com>
3072 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3073 before code inhibiting repeated unwind attempts. Add to
3074 commentary on that test's problems.
3075 * blockframe.c (inside_main_func): Look for "main" in the minimal
3077 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3080 2003-07-15 Andrew Cagney <cagney@redhat.com>
3082 * complaints.c (struct explanation): Define.
3083 (struct complaints): Change type of "explanation" to "struct
3085 (symfile_explanations): Convert to a "struct explanation" table.
3086 (vcomplaint): Update.
3088 2003-07-15 Michal Ludvig <mludvig@suse.cz>
3090 * x86-64-linux-nat.c (regmap): Removed.
3091 (supply_gregset, fill_gregset): Call
3092 x86_64_linux_(fill,supply)_gregset functions.
3093 * x86-64-linux-tdep.c (USER_*): New defines.
3094 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3095 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3097 (fetch_core_registers): Ditto.
3098 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3099 * x86-64-linux-tdep.h: New file.
3100 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3102 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3104 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3106 * x86-64-tdep.c (x86_64_store_return_value): Use
3107 regcache_cooked_write_part instead of regcache_cooked_write.
3109 * configure.host: Add x86_64-*-freebsd*.
3110 * configure.tgt: Add x86_64-*-freebsd*.
3111 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3112 * amd64fbsd-nat.c: New file.
3113 * amd64fbsd-tdep.c: New file.
3114 * config/i386/nm-fbsd64.h: New file.
3115 * config/i386/fbsd64.mh: New file.
3116 * config/i386/fbsd64.mt: New file.
3118 2003-07-11 Mark Kettenis <kettenis@gnu.org>
3120 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3121 `sc_regs_offset' and `sc_fpregs_offset'.
3122 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3123 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3124 (alpha_sigtramp_register_address): Rewrite to use new members of
3125 `struct gdbarch_tdep'.
3126 (alpha_gdbarch_init): Initialize new members of struct
3128 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3129 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3130 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3131 (alphafbsd_pc_in_sigtramp): Implement.
3132 (alphafbsd_sigtramp_offset): New function.
3133 (alphafbsd_sigcontext_addr): New function.
3134 (alphafbsd_init_abi): Initialize signal trampoline related members
3135 of `struct gdbarch_tdep'.
3136 (_initialize_alphafbsd_tdep): Add prototype.
3138 2003-07-11 Theodore A. Roth <troth@openavr.org>
3140 * Makefile.in (install-only): Quote sed expression when generating
3143 2003-07-11 Richard Henderson <rth@redhat.com>
3145 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3146 * dwarf2-frame.c: Include complaints.h.
3147 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3148 variable initialization; return NULL on error.
3149 (decode_frame_entry): New.
3151 2003-07-11 Andrew Cagney <cagney@redhat.com>
3153 * frame.h (frame_address_in_block): Delete declaration.
3154 * blockframe.c (frame_address_in_block): Delete function.
3155 (get_frame_block): Use get_frame_address_in_block.
3156 (block_innermost_frame): Ditto.
3157 * stack.c (print_frame, backtrace_command_1): Ditto.
3159 * frame.h (get_frame_address_in_block): Declare.
3160 (frame_unwind_address_in_block): Declare.
3161 * frame.c (frame_unwind_address_in_block): New function.
3162 (get_frame_address_in_block): New function.
3164 2003-07-10 Andrew Cagney <cagney@redhat.com>
3166 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3167 pre-default. Note: re-generate has no effect.
3169 2003-07-10 Andrew Cagney <cagney@redhat.com>
3171 * gdbarch.sh: When a variable, but not a function, compare against
3172 0. Fix problem in previous patch.
3173 * gdbarch.c: Re-generate.
3175 2003-07-10 Andrew Cagney <cagney@redhat.com>
3177 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3178 functions against NULL, not 0.
3179 * gdbarch.c: Re-generate.
3181 2003-07-10 Fred Fish <fnf@ninemoons.com>
3183 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3184 null string instead of a null pointer.
3185 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3187 2003-07-09 Michael Snyder <msnyder@redhat.com>
3189 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3191 2003-07-09 Mark Kettenis <kettenis@gnu.org>
3193 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3194 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3195 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3196 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3197 * x86-64-tdep.c: ... from here.
3199 2003-07-09 Andreas Schwab <schwab@suse.de>
3201 * m68k-tdep.h (enum struct_return): Define.
3202 (struct gdbarch_tdep): Add struct_return.
3203 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3204 bytes are padded to the right, not to the left. Pass struct value
3205 address in register %a1, not on stack.
3206 (m68k_use_struct_convention): New function.
3207 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3208 struct_return in tdep to pcc_struct_return.
3209 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3212 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3214 * somread.c (som_symfile_offsets): Fix compilation error.
3216 2003-07-09 Andrew Cagney <cagney@redhat.com>
3218 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3219 Add comments about the checks.
3221 2003-07-08 Andrew Cagney <cagney@redhat.com>
3223 * Makefile.in: Make dependency section headers consistent.
3224 (config_h): Move to $BUILD headers section.
3225 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3226 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3227 (ada-exp.tab.c): Move to YACC/LEX section.
3228 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3229 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3231 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3233 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3234 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3235 of strerror with safe_strerror, use ISO C function definitions,
3236 and replace instances of sprintf with snprintf.
3238 2003-07-07 Andrew Cagney <cagney@redhat.com>
3240 * frame.c (get_prev_frame): Enable check for identical frames.
3241 Update comments. Update error messages.
3243 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3245 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3247 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3249 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3250 sort_symtab_syms, no longer necessary.
3252 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3254 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3256 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3258 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3259 (mips_register_byte): Likewise.
3261 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3263 * Makefile.in (sparc_tdep_h): New.
3264 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3265 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3266 * sparc-linux-nat.c: Include "sparc-tdep.h".
3267 * sparc-nat.c: Likewise.
3268 * sparc-tdep.c: Likewise.
3269 * sparc64nbsd-nat.c: Likewise.
3270 * sparcnbsd-nat.c: Likewise.
3271 * sparcnbsd-tdep.c: Likewise.
3272 * sparc-tdep.h: New file.
3273 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3274 and sparc_npc_regnum.
3276 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3278 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3279 (mips_linux_cannot_store_register): List supported instead of
3280 unsupported registers.
3282 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3284 * disasm.c (dump_insns): Separate instructions from addresses.
3286 2003-07-07 Andreas Schwab <schwab@suse.de>
3288 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3290 * m68k-tdep.c (NUM_FREGS): Delete.
3291 (SIG_PC_FP_OFFSET): Delete.
3292 (TARGET_M68K): Delete.
3293 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3294 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3295 P_MOVEL_SP, P_MOVEML_SP): Define.
3296 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3298 (m68k_register_raw_size): Delete.
3299 (m68k_register_virtual_size): Delete.
3300 (m68k_register_type): Renamed from m68k_register_virtual_type and
3301 add gdbarch argument.
3302 (m68k_store_struct_return): Delete.
3303 (m68k_deprecated_extract_return_value): Delete.
3304 (m68k_deprecated_extract_struct_value_address): Delete.
3305 (m68k_frame_chain): Delete.
3306 (m68k_frame_saved_pc): Delete.
3307 (m68k_fix_call_dummy): Delete.
3308 (m68k_push_dummy_frame): Delete.
3309 (m68k_pop_frame): Delete.
3310 (m68k_extract_return_value): New function.
3311 (m68k_store_return_value): Rewrite using regcache.
3312 (m68k_extract_struct_value_address): Rewrite using regcache.
3313 (m68k_push_dummy_call): New function.
3314 (struct m68k_frame_cache): Define.
3315 (m68k_alloc_frame_cache): New function.
3316 (m68k_analyze_frame_setup): New function.
3317 (m68k_analyze_register_saves): New function.
3318 (m68k_analyze_prologue): New function.
3319 (m68k_skip_prologue): Rewrite using above functions.
3320 (m68k_unwind_pc): New function.
3321 (m68k_frame_cache): New function.
3322 (m68k_frame_this_id): New function.
3323 (m68k_frame_prev_register): New function.
3324 (m68k_frame_unwind): New variable.
3325 (m68k_frame_p): New function.
3326 (m68k_sigtramp_frame_cache): New function.
3327 (m68k_sigtramp_frame_this_id): New function.
3328 (m68k_sigtramp_frame_prev_register): New function.
3329 (m68k_sigtramp_frame_unwind): New variable.
3330 (m68k_sigtramp_frame_p): New function.
3331 (m68k_frame_base_address): New function.
3332 (m68k_frame_base): New function.
3333 (m68k_unwind_dummy_id): New function.
3334 (fill_gregset): Use regcache_collect.
3335 (fill_fpregset): Likewise.
3336 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3338 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3339 deprecated_init_frame_pc, deprecated_store_struct_return,
3340 deprecated_extract_return_value, deprecated_store_return_value,
3341 deprecated_frame_chain, deprecated_frame_saved_pc,
3342 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3343 deprecated_register_virtual_size,
3344 deprecated_max_register_raw_size,
3345 deprecated_max_register_virtual_size,
3346 deprecated_register_virtual_type, deprecated_register_size,
3347 deprecated_register_byte, deprecated_register_bytes,
3348 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3349 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3350 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3351 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3352 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3353 deprecated_push_dummy_frame, deprecated_pop_frame,
3354 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3355 only if SYSCALL_TRAP is defined. Set extract_return_value,
3356 store_return_value, extract_struct_value_address, register_type,
3357 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3359 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3360 M68K_MAX_REGISTER_SIZE): Define.
3361 (struct m68k_sigtramp_info): Define.
3362 (struct gdbarch_tdep): Add get_sigtramp_info.
3363 * m68klinux-nat.c (fetch_register): Use register_size instead of
3364 REGISTER_RAW_SIZE. Don't put assignment in if.
3365 (store_register): Likewise.
3366 (fetch_inferior_registers): Likewise.
3367 (store_inferior_registers): Likewise.
3368 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3369 (m68k_linux_frame_saved_pc): Delete.
3370 (m68k_linux_sigcontext_reg_offset,
3371 m68k_linux_ucontext_reg_offset): Define.
3372 (m68k_linux_get_sigtramp_info): New function.
3373 (m68k_linux_extract_return_value): Rewrite using regcache.
3374 (m68k_linux_store_return_value): Likewise.
3375 (m68k_linux_extract_struct_value_address): Likewise.
3376 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3377 Don't set deprecated_frame_saved_pc,
3378 deprecated_extract_return_value, deprecated_store_return_value,
3379 deprecated_extract_struct_value_address. Set
3380 extract_return_value, store_return_value,
3381 extract_struct_value_address.
3383 2003-07-07 Andrew Cagney <cagney@redhat.com>
3385 * expprint.c: Include "user-regs.h" instead of "frame.h".
3386 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3387 frame_map_regnum_to_name.
3388 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3389 (frame_map_name_to_regnum): Simplify, call
3390 user_reg_map_name_to_regnum.
3391 (frame_map_regnum_to_name): Simplify, call
3392 user_reg_map_regnum_to_name.
3393 (frame_register_unwind): Update.
3394 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3395 (_initialize_frame_reg): Call user_reg_add_builtin.
3396 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3397 (value_of_register): Use value_of_user_reg.
3398 * eval.c (evaluate_subexp_standard): Update.
3399 * parse.c (write_dollar_variable): Update.
3400 * d10v-tdep.c (d10v_print_registers_info): Update.
3401 * infcmd.c (registers_info): Update.
3402 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3403 (builtin_regs_h): Delete macro.
3404 (user_regs_h): Define.
3405 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3406 (builtin-regs.o): Delete target.
3407 (user-regs.o): Specify dependencies.
3408 (expprint.o): Update dependencies.
3409 (findvar.o): Update dependencies.
3410 (frame.o): Update dependencies.
3411 (std-regs.o): Update dependencies.
3413 2003-07-06 Christopher Faylor <cgf@redhat.com>
3415 * win32-nat.c (solib_symbols_add): Use one variable for all section
3416 address stuff. Pass variable rather than address of variable to
3417 safe_symbol_file_add.
3419 2003-07-06 Andreas Schwab <schwab@suse.de>
3421 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3423 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3425 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3427 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3429 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3431 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3433 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3434 * config/i386/nto.mh: New file.
3435 * config/i386/nm-nto.h: New file.
3436 * configure.host: Add i[3456]86-*-nto*.
3438 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3440 * remote-vx.c (vx_add_symbols): Fix compilation error.
3442 2003-07-03 Andrew Cagney <cagney@redhat.com>
3444 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3445 * gdbarch.h, gdbarch.c: Re-generate.
3446 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3447 (legacy_register_name): Declare.
3448 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3449 (REGISTER_NAME): Define.
3450 * sparc-tdep.c (legacy_register_name): New function.
3451 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3452 (REGISTER_NAME): Define.
3453 (hppa64_register_name): Declare.
3454 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3455 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3456 (hppa64_register_name): New function.
3457 (hppa_register_name): New function.
3458 * arch-utils.c (legacy_register_name): Delete.
3459 * arch-utils.h (legacy_register_name): Delete.
3461 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3463 * cli/cli-interp.c (cli_interpreter_resume): Update the
3464 cli_uiout's stream to gdb_stdout.
3466 2003-07-03 Andrew Cagney <cagney@redhat.com>
3468 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3470 * gdbarch.h, gdbarch.c: Re-generate.
3471 * regcache.c (init_regcache_descr): Use legacy code when either
3472 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3474 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3476 * NEWS: Move "set logging" entry into GDB 6.0 section.
3478 2003-07-02 Jim Blandy <jimb@redhat.com>
3480 * s390-tdep.c (struct frame_extra_info): new member:
3481 'stack_bought_valid'.
3482 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3483 initialize fextra_info->stack_bought.
3484 (s390_frameless_function_invocation): Don't trust the value of
3485 fextra_info_ptr->stack_bought unless
3486 fextra_info->stack_bought_valid is set.
3488 New S390 prologue analyzer.
3489 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3490 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3491 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3492 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3493 compute_x_addr, s390_on_stack, s390_store,
3494 s390_get_signal_frame_info): New functions.
3495 (S390_NUM_SPILL_SLOTS): New macro.
3496 (s390_get_frame_info): Rewritten.
3497 (is_arg_reg): Deleted.
3499 Break out the decoding of S/390 instructions into separate
3500 functions, to make it more legible, and easier to check
3502 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3503 is_rx, is_rxe): New functions.
3504 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3505 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3506 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3507 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3508 enums for opcode values. (Is this an improvement?)
3510 2003-07-02 Andrew Cagney <cagney@redhat.com>
3512 * i386-tdep.c: Revert change committed as part of trad-frame code
3515 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3517 * breakpoint.c (insert_catchpoint): Make static.
3519 2003-07-02 Andreas Schwab <schwab@suse.de>
3521 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3522 former ia64_push_arguments and ia64_push_return_address, and use
3523 regcache functions instead of read/write_register.
3524 (ia64_gdbarch_init): Set push_dummy_call instead of
3525 deprecated_push_arguments and deprecated_push_return_address.
3527 2003-07-01 Andreas Jaeger <aj@suse.de>
3529 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3531 Set %rax only to number of SSE registers used.
3533 2003-07-01 Andrew Cagney <cagney@redhat.com>
3535 * trad-frame.h: Update comments, a -1 .addr is reserved.
3536 (trad_frame_value_p, trad_frame_addr_p): Declare.
3537 (trad_frame_reg_p): Declare.
3538 (trad_frame_set_value): Rename trad_frame_register_value.
3539 (trad_frame_set_unknown): Declare.
3540 * trad-frame.c (trad_frame_realreg_p): New function.
3541 (trad_frame_addr_p, trad_frame_value_p): New function.
3542 (trad_frame_set_unknown): New function.
3543 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3544 (trad_frame_prev_register): Use trad_frame_realreg_p,
3545 trad_frame_addr_p and trad_frame_value_p.
3546 (trad_frame_set_value): Rename trad_frame_register_value.
3547 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3548 and trad_frame_set_value.
3550 2003-06-30 Jim Blandy <jimb@redhat.com>
3552 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3553 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3554 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3555 for 16 registers, and then 32 more bytes.
3556 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3558 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3559 Move up in the file, since it's now used by is_simple_arg.
3560 (is_simple_arg): Don't assume registers are four bytes long.
3561 Exclude all double arguments. Extended floats are not simple
3563 (is_power_of_two): New function.
3564 (pass_by_copy_ref): Call is_power_of_two, and check that the
3565 length fits in a register, rather than listing all the acceptable
3566 sizes. Extended floats are not passed by reference.
3567 (s390_push_arguments): Don't assume registers are four bytes long.
3568 Reserve an argument register to point to the buffer for structures
3569 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3570 S390_STACK_FRAME_OVERHEAD.
3572 2003-06-30 Andreas Schwab <schwab@suse.de>
3574 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3575 format error message.
3577 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3579 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3581 2003-06-30 David Carlton <carlton@kealia.com>
3583 Band-aid for PR c++/1245.
3584 * Makefile.in (cp-support.o): Depend on complaints_h.
3585 * cp-support.c: Include complaints.h. Add declaration for
3586 find_last_component.
3587 (cp_find_first_component): Separate code into
3588 cp_find_first_component_aux.
3589 (cp_find_first_component_aux): Call demangled_name_complaint.
3590 (demangled_name_complaint): New.
3592 2003-06-30 Andrew Cagney <cagney@redhat.com>
3594 * remote.c (remote_write_bytes): Explicitly compute and then use
3595 the payload size. Update comments to reflect. Fixes problem of
3596 GDB not sending small packets as found by Fred Fish.
3598 2003-06-30 Andrew Cagney <cagney@redhat.com>
3600 * remote.c (remote_async_wait): Fix -Wformat problem.
3602 2003-06-29 Andrew Cagney <cagney@redhat.com>
3604 * remote.c (remote_wait): Call error, and not warning, when the
3606 (remote_async_wait): Ditto.
3608 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3610 * sparc-tdep.c (sparc_y_regnum): Make external again.
3612 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3614 * cli/cli-logging.c (pop_output_files): Add void to function
3617 2003-06-29 Andrew Cagney <cagney@redhat.com>
3619 * frame.c (frame_register_unwind): Use unsigned char when dumping
3620 the buffer contents.
3622 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3624 * cli/cli-logging.c: New file.
3625 * cli-out.c (struct ui_out_data): Add original_stream.
3626 (cli_redirect): New function.
3627 (cli_ui_out_impl): Add cli_redirect.
3628 (cli_out_new): Initialize original_stream.
3629 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3630 (uo_redirect, ui_out_redirect): New.
3631 * ui-out.h (struct ui_out_impl): Add redirect member.
3632 (redirect_ftype): New.
3633 (ui_out_redirect): Add prototype.
3634 * Makefile.in: Add rules for cli-logging.c.
3635 * NEWS: Mention "set logging".
3637 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3639 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3641 2003-06-27 Andrew Cagney <cagney@redhat.com>
3643 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3644 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3645 * avr-tdep.c (avr_call_dummy_address): Delete function.
3646 (avr_gdbarch_init): Do not set call_dummy_address.
3648 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3650 * symfile.c (syms_from_objfile): Move variables to inner block.
3651 Move the checks for the non-mainline case a bit earlier to avoid
3652 doing some useless computations.
3654 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3656 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3658 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3660 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3663 2003-06-26 Michael Chastain <mec@shout.net>
3665 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3666 gdb/testsuite/gdb.c++/pr-1210.exp.
3668 2003-06-26 Andrew Cagney <cagney@redhat.com>
3670 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3671 altivec_expression.h and altivec_registers.h.
3673 2003-06-26 Andrew Cagney <cagney@redhat.com>
3675 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3676 info->mach when MIPS16. Patch suggested by Fred Fish.
3678 2003-06-26 Andrew Cagney <cagney@redhat.com>
3680 * utils.c (internal_vproblem): Print the problem to a reason
3681 buffer and then pass to query. Make the msg variable more local.
3683 2003-06-26 Andrew Cagney <cagney@redhat.com>
3685 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3686 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3687 * gdbarch.h, gdbarch.c: Re-generate.
3688 * frame-base.c (default_frame_args_address): Update. Use
3689 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3691 (default_frame_locals_address): Ditto for
3692 DEPRECATED_FRAME_LOCALS_ADDRESS.
3693 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3694 (vax_frame_num_args): Update.
3695 (vax_gdbarch_init): Update.
3696 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3697 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3698 * mcore-tdep.c (mcore_gdbarch_init): Update.
3699 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3700 * ia64-tdep.c (ia64_gdbarch_init): Update.
3701 * symtab.h (address_class): Update comments.
3702 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3703 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3704 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3705 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3706 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3707 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3708 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3709 * alpha-mdebug-tdep.c: Update.
3710 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3712 2003-06-26 Andreas Jaeger <aj@suse.de>
3714 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3715 of SSE registers so that varargs functions work. Rework handling
3716 of passing arguments on the stack.
3717 (x86_64_store_return_value): Return double and float values in SSE
3720 2003-06-24 Michael Chastain <mec@shout.net>
3722 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3723 the "constructor breakpoints ignored" bug.
3725 2003-06-25 David Carlton <carlton@kealia.com>
3727 * MAINTAINERS: Update e-mail address.
3729 2003-06-24 Jim Blandy <jimb@redhat.com>
3731 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3733 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3735 (ppc_linux_init_abi): Register it as the
3736 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3738 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3739 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3742 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3743 (ppc64_standard_linkage_target): Use it.
3745 2003-06-23 Andrew Cagney <cagney@redhat.com>
3747 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3748 for 0 "int0" and 4 "int32" sized registers.
3749 * gdbtypes.c (builtin_type_int0): Define.
3750 (build_gdbtypes): Initialize builtin_type_int0.
3751 * gdbtypes.h (builtin_type_int0): Declare.
3753 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3755 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3756 as characters are unsigned.
3758 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3761 * dwarfread.c (struct_type): Skip static fields without crashing.
3763 2003-06-22 Andrew Cagney <cagney@redhat.com>
3765 GDB 6.0 branch created.
3767 * PROBLEMS: Update. Empty.
3770 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3772 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3773 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3775 2003-06-22 Andrew Cagney <cagney@redhat.com>
3777 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3778 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3781 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3783 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3786 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3788 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3789 argument of val_print.
3790 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3791 to the address argument of baseclass_offset or target_read_memory.
3792 Do add it to the argument of cp_print_value_fields.
3794 2003-06-21 Andrew Cagney <cagney@redhat.com>
3796 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3797 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3798 instead of 0..NUM_REGS.
3799 (mips_register_reggroup_p): New function.
3800 (mips_pseudo_register_write): New function.
3801 (mips_pseudo_register_read): New function.
3802 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3803 based on the register's type.
3804 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3806 (mips_get_saved_register): Simplify. Assert that REGNO is a
3808 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3809 (mips_register_type): Replace mips_register_virtual_type. Map
3810 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3812 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3813 that the register is cooked / virtual.
3814 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3815 Only get the extra info when needed.
3816 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3817 (mips32_heuristic_proc_desc): Fetch the cooked register.
3818 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3819 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3820 (mips_print_register): Use gdbarch_register_type, instead of
3821 REGISTER_VIRTUAL_TYPE.
3822 (print_gp_register_row): Use gdbarch_register_type, instead of
3823 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3824 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3825 Print the pseudo / cooked registers.
3826 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3827 Print the pseudo / cooked registers.
3828 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3829 REG_NUM is pseudo / cooked.
3830 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3831 (mips_n32n64_xfer_return_value): Ditto.
3832 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3833 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3834 (mips_register_sim_regno): New function.
3835 (mips_gdbarch_init): Set deprecated_register_byte,
3836 register_group_p, pseudo_register_write, pseudo_register_read,
3837 register_sim_regno, and num_pseudo_regs. Set register_type,
3838 instead of register_virtual_type.
3839 * Makefile.in (mips-tdep.o): Update dependencies.
3840 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3841 REGISTER_VIRTUAL_TYPE.
3842 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3843 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3844 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3845 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3846 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3848 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3850 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3851 * cli/cli-cmds.c: Include "gdb_vfork.h".
3852 (shell_escape): Use vfork.
3854 2003-06-21 Andrew Cagney <cagney@redhat.com>
3856 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3857 32 bit floating-point register saves.
3859 * frame.h (deprecated_unwind_get_saved_register): Delete.
3860 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3861 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3862 and deprecated_get_next_frame_hack instead of
3863 deprecated_unwind_get_saved_register.
3865 * mips-tdep.c (mips_dump_tdep): Do not print
3866 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3868 * frame.c (get_frame_register): New function.
3869 (frame_unwind_register_signed): New function.
3870 (get_frame_register_signed): New function.
3871 (frame_unwind_register_unsigned): New function.
3872 (get_frame_register_unsigned): New function.
3873 * frame.h: Add comments on naming schema.
3874 (get_frame_register, frame_unwind_register_signed): Declare.
3875 (get_frame_register_signed, get_frame_register_signed): Declare.
3876 (frame_unwind_register_unsigned): Declare.
3877 (get_frame_register_unsigned): Declare.
3879 2003-06-20 Theodore A. Roth <troth@openavr.org>
3881 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3883 2003-06-20 Theodore A. Roth <troth@openavr.org>
3885 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3886 (avr_read_sp): Ditto.
3888 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3890 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3891 * config/arm/nm-linux.h: Likewise.
3892 * config/arm/tm-linux.h: Likewise.
3893 * config/ia64/nm-linux.h: Likewise.
3894 * config/ia64/tm-ia64.h: Likewise.
3895 * config/s390/tm-linux.h: Likewise.
3896 * config/s390/tm-s390.h: Likewise.
3897 * s390-nat.c: Likewise.
3898 * s390-tdep.c: Likewise.
3900 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3901 * config/ia64/linux.mt: Likewise.
3902 * config/m68k/linux.mh: Likewise.
3903 * config/mips/linux.mt: Likewise.
3904 * config/powerpc/linux.mh: Likewise.
3905 * config/sh/linux.mt: Likewise.
3907 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3909 * solib.c (solib_open): Change tests for whether to search
3910 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3913 2003-06-19 Theodore A. Roth <troth@openavr.org>
3915 * avr-tdep.c (avr_frame_address): Delete function.
3916 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3917 set_gdbarch_frame_args_address.
3919 2003-06-19 Andrew Cagney <cagney@redhat.com>
3921 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3922 (REGISTER_CONVERT_FROM_TYPE): Delete.
3923 (mips_register_convert_to_type): Delete declaration.
3924 (mips_register_convert_from_type): Delete declaration.
3925 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3928 2003-06-19 Michael Snyder <msnyder@redhat.com>
3930 * linux-nat.h: New file.
3931 * linux-nat.c: Include linux-nat.h.
3932 * lin-lwp.c: Include linux-nat.h.
3933 Move struct lwp_info def to linux-nat.h.
3934 * linux-proc.c: Include linux-nat.h.
3935 (linux_make_note_section): Iterate over lwps instead of threads.
3936 (linux_do_thread_registers): Use lwp instead of merged pid.
3937 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3938 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3939 Add dependency on linux_nat_h.
3941 2003-06-19 Theodore A. Roth <troth@openavr.org>
3943 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3945 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3947 * varobj.c (get_type, get_target_type): Use check_typedef.
3949 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3951 * breakpoint.c (insert_catchpoint): Call internal_error.
3953 2003-06-19 Theodore A. Roth <troth@openavr.org>
3955 * avr-tdep.c (avr_push_dummy_code): Delete function.
3956 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3958 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3960 * arch-utils.c (default_prepare_to_proceed): Remove.
3961 (generic_prepare_to_proceed): Remove.
3962 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3963 (generic_prepare_to_proceed): Remove prototype.
3964 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3965 * gdbarch.c: Regenerate.
3966 * gdbarch.h: Regenerate.
3967 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3968 * hppah-nat.c (hppa_switched_threads): Remove.
3969 * infrun.c (prepare_to_proceed): New static function, copied from
3970 generic_prepare_to_proceed. Remove select_it argument.
3971 (proceed): Call prepare_to_proceed.
3972 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3974 (ptrace_wait): Don't set the removed variables.
3975 (hppa_switched_threads): Remove.
3976 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3977 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3978 (lin_lwp_prepare_to_proceed): Remove prototype.
3979 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3980 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3982 2003-06-18 Theodore A. Roth <troth@openavr.org>
3984 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3986 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3987 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3988 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3989 (AVR_PROLOGUE_*): Enumerate prologue types.
3990 (struct frame_extra_info): Remove.
3991 (struct avr_unwind_cache): Define.
3992 (avr_write_sp): Delete function.
3993 (avr_read_fp): Ditto.
3994 (avr_init_extra_frame_info): Ditto.
3995 (avr_pop_frame): Ditto.
3996 (avr_frame_saved_pc): Ditto.
3997 (avr_saved_pc_after_call): Ditto.
3998 (avr_push_return_address): Ditto.
3999 (avr_frame_chain): Ditto.
4000 (avr_store_struct_return): Ditto.
4001 (avr_push_arguments): Ditto.
4002 (avr_scan_prologue): Update comments. Changed to set up the info for
4003 cache unwinding. Now returns end of prologue PC.
4004 (avr_skip_prologue): Better handling of functions lacking a prologue
4005 by using avr_scan_prologue.
4006 (avr_scan_arg_moves): New function.
4007 (avr_saved_regs_unwinder): Ditto.
4008 (avr_frame_unwind_cache): Ditto.
4009 (avr_unwind_pc): Ditto.
4010 (avr_frame_this_id): Ditto.
4011 (avr_frame_prev_register): Ditto.
4012 (avr_frame_p): Ditto.
4013 (avr_frame_base_address ): Ditto.
4014 (avr_unwind_dummy_id): Ditto.
4015 (avr_push_dummy_code): Ditto.
4016 (push_stack_item): Ditto.
4017 (pop_stack_item): Ditto.
4018 (avr_push_dummy_call): Ditto.
4019 (struct stack_item): Define.
4020 (avr_frame_unwind): Declare structure.
4021 (avr_frame_base): Ditto.
4022 (avr_gdbarch_init): Remove calls to
4023 set_gdbarch_deprecated_init_frame_pc,
4024 set_gdbarch_deprecated_target_read_fp,
4025 set_gdbarch_deprecated_dummy_write_sp,
4026 set_gdbarch_deprecated_fp_regnum,
4027 set_gdbarch_deprecated_push_arguments,
4028 set_gdbarch_deprecated_push_return_address,
4029 set_gdbarch_deprecated_pop_frame,
4030 set_gdbarch_deprecated_store_struct_return,
4031 set_gdbarch_deprecated_frame_init_saved_regs,
4032 set_gdbarch_deprecated_init_extra_frame_info,
4033 set_gdbarch_deprecated_frame_chain,
4034 set_gdbarch_deprecated_frame_saved_pc,
4035 set_gdbarch_deprecated_saved_pc_after_call.
4036 Add calls to set_gdbarch_push_dummy_call,
4037 set_gdbarch_push_dummy_code,
4038 frame_unwind_append_predicate,
4039 frame_base_set_default,
4040 set_gdbarch_unwind_dummy_id,
4041 set_gdbarch_unwind_pc.
4044 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
4046 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4047 registers for H8/300S.
4048 (h8300_print_registers_info): Ditto.
4049 (h8300_gdbarch_init): Accommodate register count for H8/300S.
4051 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
4053 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4054 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4055 (lin_lwp_wait): Likewise. Update comments.
4056 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4057 (pull_pid_from_list, linux_record_stopped_pid): New.
4059 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4061 * ada-lang.c (scan_discrim_bound): Name first argument.
4062 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4063 declared by ALL_BLOCK_SYMBOLS.
4065 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4067 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4068 ("regcache.h"): Include it.
4069 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4071 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4073 * NEWS: Mention gdbserver detach change and "disconnect" command.
4074 * infcmd.c (disconnect_command): New function.
4075 (_initialize_infcmd): Add ``disconnect'' command.
4076 * remote.c (remote_async_detach): Delete.
4077 (remote_detach): Merge remote_async_detach.
4078 (remote_disconnect): New.
4079 (init_remote_ops): Set to_disconnect.
4080 (init_remote_cisco_ops): Likewise.
4081 (init_remote_async_ops): Likewise. Use remote_detach.
4082 * target.c (cleanup_target): Default to_disconnect.
4083 (update_current_target): Inherit to_disconnect.
4084 (target_disconnect, debug_to_disconnect): New functions.
4085 (setup_target_debug): Set to_disconnect.
4086 * target.h (struct target_ops): Add to_disconnect.
4087 (target_disconnect): Add prototype.
4089 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4091 * breakpoint.c (insert_catchpoint): New function.
4092 (insert_breakpoints): Use catch_exceptions to call
4093 insert_catchpoint. Disable catchpoints if they fail to insert.
4095 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4097 * symfile.c (reread_symbols): Clear sym_private.
4099 2003-06-17 Andrew Cagney <cagney@redhat.com>
4101 * trad-frame.h (struct frame_info): Add opaque declaration.
4102 * remote-fileio.h (struct cmd_list_element): Add opaque
4104 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4107 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4109 * remote.c (remote_prepare_to_store): Replace call to
4110 deprecated_read_register_bytes with multiple regcache_raw_read
4113 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4115 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4116 (nto_find_and_open_solib): Likewise.
4117 (nto_init_solib_absolute_prefix): Likewise.
4118 (_initialize_nto_tdep): Fix indentation.
4120 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4122 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4124 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4126 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4128 2003-06-17 Jim Blandy <jimb@redhat.com>
4130 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4132 2003-06-16 Theodore A. Roth <troth@openavr.org>
4134 * avr-tdep.c (avr_extract_return_value): New function.
4135 (avr_gdbarch_init): Set extract_return_value method.
4137 2003-06-16 Andrew Cagney <cagney@redhat.com>
4139 * frame.h (deprecated_get_next_frame_hack): Declare.
4140 * frame.c (legacy_saved_regs_prev_register): Only require
4141 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4142 there are always saved regs.
4143 (deprecated_generic_get_saved_register): Do not require
4144 DEPRECATED_FRAME_INIT_SAVED_REGS.
4145 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4146 use frame ID unwind instead.
4147 (deprecated_get_next_frame_hack): New function.
4149 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4151 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4152 (h8300_push_dummy_call): ...this function. Some minor optimization.
4153 (h8300_push_return_address): Remove.
4154 (h8300_gdbarch_init): Remove calls to
4155 set_gdbarch_deprecated_dummy_write_sp,
4156 set_gdbarch_deprecated_push_arguments and
4157 set_gdbarch_deprecated_push_return_address.
4158 Add call to set_gdbarch_push_dummy_call.
4160 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4162 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4163 (E_PSEUDO_EXR_REGNUM): Ditto.
4164 (h8300_is_argument_spill): Check for instructions moving argument
4165 registers into safe registers.
4166 (h8300_skip_prologue): Check for stm instruction to push registers
4167 used for register variables onto stack.
4168 (gdb_print_insn_h8300): Remove.
4169 (h8300_examine_prologue): Add a comment.
4170 (h8300_register_name): Take pseudo registers into account.
4171 (h8300s_register_name): Ditto.
4172 (h8300sx_register_name): Ditto.
4173 (h8300_print_register): Ditto.
4174 (h8300_print_registers_info): Define "nice" printing order.
4175 (h8300_saved_pc_after_call): Take pseudo registers into account.
4176 (h8300_register_type): Ditto. Return type used for remote connection
4177 when requesting real CCR or EXR register, return actual type when
4178 requesting pseudo CCR or EXR.
4179 (h8300_pseudo_register_read): New function.
4180 (h8300_pseudo_register_write): Ditto.
4181 (h8300_dbg_reg_to_regnum): Ditto.
4182 (h8300s_dbg_reg_to_regnum): Ditto.
4183 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4184 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4185 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4186 set_gdbarch_print_insn architecture dependent.
4187 Call set_gdbarch_pseudo_register_read and
4188 set_gdbarch_pseudo_register_write.
4189 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4191 2003-06-16 Andrew Cagney <cagney@redhat.com>
4193 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4194 * gdbarch.h, gdbarch.c: Re-generate.
4195 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4196 * s390-tdep.c (s390_gdbarch_init): Update.
4197 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4198 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4199 * mips-tdep.c (mips_gdbarch_init): Update.
4200 * mcore-tdep.c (mcore_gdbarch_init): Update.
4201 * cris-tdep.c (cris_gdbarch_init): Update.
4202 * infcall.c (call_function_by_hand): Update.
4203 * ia64-tdep.c (ia64_push_arguments): Update comment.
4204 * frame.c (legacy_get_prev_frame): Do not assume
4205 SAVE_DUMMY_FRAME_TOS_P.
4206 * dummy-frame.c (find_dummy_frame): Update comment.
4208 2003-06-16 Andrew Cagney <cagney@redhat.com>
4210 * regcache.c (do_cooked_read): Do not use register_valid_p.
4212 2003-06-15 Theodore A. Roth <troth@openavr.org>
4214 * avr-tdep.c (avr_register_type): Remove a blank line.
4215 (avr_scan_prologue): Correct some comments.
4217 2003-06-15 Theodore A. Roth <troth@openavr.org>
4219 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4221 Properly scan prologues generated by gcc with the -mcall-prologues
4223 Add code to scan -mcall-prologues for mega devices.
4225 2003-06-15 Theodore A. Roth <troth@openavr.org>
4227 * avr-tdep.c (avr_register_byte): Delete function.
4228 (avr_register_raw_size): Delete function.
4229 (avr_register_virtual_size): Delete function.
4230 (avr_register_virtual_type): Delete function.
4231 (avr_register_type): New function.
4232 (avr_address_to_pointer): Remove unused code.
4233 (avr_read_fp): Need to read FP as two separate bytes due to change to
4234 avr_register_type() usage.
4235 (avr_gdbarch_init): Don't set deprecated_register_size.
4236 Don't set deprecated_register_bytes.
4237 Don't set deprecated_register_byte.
4238 Don't set deprecated_register_raw_size.
4239 Don't set deprecated_max_register_raw_size.
4240 Don't set deprecated_register_virtual_size.
4241 Don't set deprecated_max_register_virtual_size.
4242 Don't set deprecated_register_virtual_type.
4243 Set register_type method.
4245 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4247 * Makefile.in (linux-nat.o): Add rule.
4248 * linux-nat.c: New file.
4249 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4250 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4251 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4252 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4253 * config/arm/linux.mh (NATDEPFILES): Likewise.
4254 * config/i386/linux.mh (NATDEPFILES): Likewise.
4255 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4256 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4257 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4258 * config/mips/linux.mh (NATDEPFILES): Likewise.
4259 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4260 * config/s390/s390.mh (NATDEPFILES): Likewise.
4261 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4263 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4265 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4266 replace out-of-date comment.
4268 2003-06-15 Andrew Cagney <cagney@redhat.com>
4270 * rdi-share/host.h (Fail): Change to a varargs function.
4271 * remote-rdi.c (Fail): Update.
4273 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4275 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4276 (i386_convert_register_p, i386_register_to_value,
4277 i386_register_from_value): Handle types longer than 8 bytes.
4279 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4281 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4282 Move floating-point code to new function in i387-tdep.c.
4283 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4284 New functions containing code moved here from i386-tdep.c.
4285 * i387-tdep.h: Add opaque declaration for `struct type'.
4286 (i387_register_to_value, i387_value_to_register): New prototypes.
4287 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4288 (x86_64_init_abi): Set convert_register_p, register_to_value and
4289 value_to_register here.
4291 2003-06-14 Andrew Cagney <cagney@redhat.com>
4293 * mips-tdep.c (mips_register_to_value): Make static.
4294 (mips_value_to_register): Make static.
4295 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4296 * ia64-tdep.c (ia64_register_raw_size): Make static.
4297 (ia64_register_virtual_size): Make static.
4298 (ia64_register_byte): Make static.
4299 * i387-tdep.c: Include "i387-tdep.h".
4300 (print_387_control_word): Delete function.
4301 (print_387_status_word): Delete function.
4302 (print_387_status_bits): Delete function.
4303 (print_387_control_bits): Delete function.
4304 * Makefile.in (i387-tdep.o): Update dependencies.
4305 * rdi-share/host.h (Fail): Declare.
4306 * remote-rdi.c (Fail): Update to match declaration.
4308 2003-06-14 Andrew Cagney <cagney@redhat.com>
4310 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4311 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4312 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4313 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4314 * README: Delete reference to remote-array.
4315 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4316 (remote-array.o): Delete target.
4317 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4318 * remote-array.c: Delete file.
4320 2003-06-14 Andrew Cagney <cagney@redhat.com>
4321 Mark Kettenis <kettenis@gnu.org>
4323 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4324 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4325 parameter with "frame".
4326 * gdbarch.h, gdbarch.c: Re-generate.
4327 * frame.h (put_frame_register): Declare.
4328 * frame.c (put_frame_register): New function.
4329 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4330 (legacy_register_to_value): Rewrite, use "frame" to get the
4332 (legacy_value_to_register): Rewrite, use "frame" to find the
4333 register's location before storing.
4334 * arch-utils.h (legacy_convert_register_p): Update.
4335 (legacy_register_to_value, legacy_value_to_register): Update.
4336 * findvar.c (value_from_register): Rewrite, eliminate use of
4337 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4338 "frame" to REGISTER_TO_VALUE.
4339 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4340 lval_reg_frame_relative + lval_register branch of the switch. Do
4341 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4342 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4343 I386_EDI_REGNUM): New defines.
4344 (i386_next_regnum, i386_convert_register_p,
4345 i386_register_to_value, i386_value_to_register): New functions.
4346 (i386_register_convertible, i386_register_convert_to_virtual,
4347 i386_convert_to_raw): Remove functions.
4348 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4349 value_to_register instead of register_convertible,
4350 register_convert_to_virtual and register_convert_to_raw.
4351 * mips-tdep.c (mips_convert_register_p): New function.
4352 (mips_value_to_register): Replace mips_register_convert_from_type.
4353 (mips_register_to_value): Replace mips_register_convert_to_type.
4354 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4356 * alpha-tdep.c (alpha_convert_register_p): Update.
4357 (alpha_value_to_register): Update, store the register.
4358 (alpha_register_to_value): Update, fetch the register.
4360 2003-06-14 Theodore A. Roth <troth@openavr.org>
4362 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4363 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4364 Don't set deprecated_call_dummy_words.
4365 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4366 Don't set remote_translate_xfer_address.
4367 (avr_io_reg_read_command): Remove commented out debug printf.
4370 2003-06-14 Theodore A. Roth <troth@openavr.org>
4372 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4373 causes gdb to seg fault.
4375 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4377 * sparc-nat.c (fetch_inferior_registers): Correct
4378 a reference to "registers".
4380 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4382 * Makefile.in (exc_request_U_h): Define
4383 (exc_request_S_h): Likewise.
4384 (msg_reply_S_h): Likewise.
4385 (msg_U_h): Likewise.
4386 (notify_S_h): Likewise.
4387 (process_reply_S_h): Likewise.
4388 (gnu-nat.o): Depend on gdb_obstack_h
4389 * gnu-nat.c: Include "gdb_obstack.h".
4391 2003-06-13 Andrew Cagney <cagney@redhat.com>
4393 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4394 * gdbarch.h, gdbarch.c: Re-generate.
4396 2003-06-13 Andrew Cagney <cagney@redhat.com>
4398 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4399 when deprecated REGISTER macros can be deleted.
4400 * gdbarch.h, gdbarch.c: Re-generate.
4402 2003-06-13 Jim Blandy <jimb@redhat.com>
4404 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4405 Linux entry point symbols for _dl_debug_state, too.
4407 2003-06-13 Andrew Cagney <cagney@redhat.com>
4409 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4410 available, do not use the FP register, and always save the TOS.
4411 * dummy-frame.c (dummy_frame_this_id): Do not assert
4412 SAVE_DUMMY_FRAME_TOS.
4413 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4414 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4415 (i386_push_dummy_call): Add 8 to the returned SP.
4416 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4417 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4418 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4419 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4420 (x86_64_push_dummy_call): Return "sp + 16".
4421 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4422 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4423 save_dummy_frame_tos.
4425 2003-06-13 Jim Blandy <jimb@redhat.com>
4427 * frv-tdep.c (frv_use_struct_convention): Delete static
4428 declaration for function deleted in my change of 2003-06-12.
4430 2003-06-13 Theodore A. Roth <troth@openavr.org>
4432 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4433 (avr_pointer_to_address): Shift code addrs left 1 bit.
4434 (avr_convert_from_func_ptr_addr): Delete function since operation is
4435 better handled by avr_address_to_pointer and avr_pointer_to_address.
4436 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4438 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4440 From Kelley Cook <kelleycook@wideopenwest.com>:
4441 * configure.host: Accept i[34567]86 variants.
4442 * configure.tgt: Likewise.
4443 * nlm/configure.in: Likewise.
4444 * nlm/configure: Regenerated.
4446 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4448 * arm-tdep.c (solib-svr4.h): Dont' include it.
4449 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4450 * arm-linux-tdep.c: ... here. Make static.
4451 (arm_linux_init_abi): Register it.
4452 (solib-svr4.h): Include it.
4453 * Makefile.in: Update dependencies.
4454 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4455 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4457 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4459 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4460 indicate registers used for return values.
4461 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4462 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4464 (h8300_init_extra_frame_info): Ditto.
4465 (h8300_frame_locals_address): Removed.
4466 (h8300_frame_args_address): Removed.
4467 (h8300_extract_return_value): Use new regcache structure. Only care
4469 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4470 (h8300_store_return_value): Use new regcache structure. Only care
4472 (h8300h_store_return_value): Same function for 32 bit CPUs.
4473 (h8300_store_struct_return): Removed.
4474 (h8300_extract_struct_value_address): Use new regcache structure.
4475 (h8300h_extract_struct_value_address): Removed.
4476 (h8300_push_dummy_code): New function.
4477 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4478 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4479 set_gdbarch_store_return_value architecture dependent.
4480 Call set_gdbarch_push_dummy_code and
4481 set_gdbarch_extract_struct_value_address.
4482 Remove calls to set_gdbarch_frame_args_address,
4483 set_gdbarch_frame_locals_address,
4484 set_gdbarch_deprecated_store_struct_return,
4485 set_gdbarch_deprecated_extract_return_value,
4486 set_gdbarch_deprecated_extract_struct_value_address,
4487 set_gdbarch_deprecated_call_dummy_words and
4488 set_gdbarch_deprecated_sizeof_call_dummy_words.
4490 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4492 * h8300-tdep.c (h8300_register_byte): Remove.
4493 (h8300h_register_byte): Remove.
4494 (h8300_register_virtual_type): Remove. Substitute by...
4495 (h8300_register_type): New function.
4496 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4497 (h8300h_extract_struct_value_address): Ditto.
4498 (h8300_gdbarch_init): Drop calls to
4499 set_gdbarch_deprecated_register_byte and
4500 set_gdbarch_deprecated_register_virtual_type.
4501 Add call to set_gdbarch_register_type.
4503 2003-06-13 Andrew Cagney <cagney@redhat.com>
4505 * gdbarch.sh: Update comments on registers.
4506 (deprecated_register_byte): Rename register_byte.
4507 (deprecated_register_raw_size): Rename register_raw_size.
4508 (deprecated_register_virtual_size): Rename register_virtual_size.
4509 (deprecated_register_virtual_type): Rename register_virtual_type.
4510 * gdbarch.h, gdbarch.c: Re-generate.
4511 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4512 * vax-tdep.c (vax_gdbarch_init): Update.
4513 * v850-tdep.c (v850_gdbarch_init): Update.
4514 * sparc-tdep.c (sparc_gdbarch_init): Update.
4515 * sh-tdep.c (sh_gdbarch_init): Update.
4516 * s390-tdep.c (s390_gdbarch_init): Update.
4517 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4518 * ns32k-tdep.c: Update.
4519 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4520 * mips-tdep.c (mips_gdbarch_init): Update.
4521 * mcore-tdep.c (mcore_gdbarch_init): Update.
4522 * m68k-tdep.c (m68k_gdbarch_init): Update.
4523 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4524 * ia64-tdep.c (ia64_gdbarch_init): Update.
4525 * hppa-tdep.c (hppa_gdbarch_init): Update.
4526 * h8300-tdep.c (h8300_gdbarch_init): Update.
4527 * frv-tdep.c (frv_gdbarch_init): Update.
4528 * cris-tdep.c (cris_gdbarch_init): Update.
4529 * avr-tdep.c (avr_gdbarch_init): Update.
4530 * alpha-tdep.c (alpha_gdbarch_init): Update.
4531 * arm-tdep.c (arm_gdbarch_init): Update.
4533 2003-06-13 Andrew Cagney <cagney@redhat.com>
4535 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4536 mips_o32_use_struct_convention with always_use_struct_convention.
4538 2003-06-12 David Carlton <carlton@kealia.com>
4540 * cp-namespace.c (cp_set_block_scope): Comment out
4541 processing_has_namespace_info branch.
4543 2003-06-12 Jim Blandy <jimb@redhat.com>
4545 Recognize and skip 64-bit PowerPC Linux linkage functions.
4546 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4547 insn_pattern, insns_match_pattern, d_field, ds_field): New
4548 functions, macros, and types for working with PPC instructions.
4549 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4550 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4551 ppc64_skip_trampoline_code): New functions, variables, and macros
4552 for recognizing and skipping linkage functions.
4553 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4554 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4556 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4557 register offsets for both the 32- and 64-bit interfaces.
4559 Actually finish the job started by my change of 2003-05-29.
4560 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4561 other #definition of this.
4562 (ppc_linux_skip_trampoline_code): Remove declaration.
4563 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4565 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4568 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4569 'long' on ppc64-*-linux*.
4571 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4572 isn't #defined, assume the register doesn't exist: act as if
4573 tdep->ppc_mq_regnum were -1.
4575 * configure.host, configure.tgt: Add entries for
4576 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4578 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4581 * arch-utils.c (always_use_struct_convention): New function.
4582 * arch-utils.h (always_use_struct_convention): New prototype.
4583 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4584 (alpha_gdbarch_init): Register always_use_struct_convention,
4585 instead of alpha_use_struct_convention.
4586 * cris-tdep.c (cris_use_struct_convention): Delete.
4587 (cris_gdbarch_init): Register always_use_struct_convention,
4588 instead of cris_use_struct_convention.
4589 * frv-tdep.c (frv_use_struct_convention): Delete.
4590 (frv_gdbarch_init): Register always_use_struct_convention,
4591 instead of frv_use_struct_convention.
4592 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4593 (h8300_gdbarch_init): Register always_use_struct_convention,
4594 instead of h8300_use_struct_convention.
4595 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4596 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4597 instead of mips_o32_use_struct_convention.
4599 2003-06-12 Andrew Cagney <cagney@redhat.com>
4601 * wince.c: Include "mips-tdep.h".
4602 * mips-tdep.h (mips_next_pc): Declare.
4603 * mcore-tdep.c: Make more local functions static.
4604 * Makefile.in (wince.o): Update dependencies.
4606 2003-06-12 David Carlton <carlton@kealia.com>
4608 * symtab.c (lookup_symbol_aux_minsyms): Replace
4609 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4610 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4611 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4612 SYMBOL_NATURAL_NAME.
4614 2003-06-12 Andreas Schwab <schwab@suse.de>
4616 * Makefile.in (tuiDisassem.o): Update dependencies.
4618 2003-06-12 David Carlton <carlton@bactrian.org>
4620 * symtab.h: Delete declaration of make_symbol_overload_list.
4621 Add declaration of lookup_partial_symbol.
4622 * symtab.c (remove_params): Move to cp-support.c.
4623 (overload_list_add_symbol, make_symbol_overload_list)
4624 (sym_return_val_size, sym_return_val_index): Ditto.
4625 (lookup_partial_symbol): Make extern.
4626 * cp-support.h: Add declaration of make_symbol_overload_list.
4627 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4628 symtab.h, and block.h.
4629 (remove_params): Move here from symtab.c.
4630 (overload_list_add_symbol, make_symbol_overload_list)
4631 (sym_return_val_size, sym_return_val_index): Ditto.
4632 * valops.c: Include cp-support.h.
4633 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4634 frame_h, and block_h.
4635 (valops.o): Depend on cp_support_h.
4637 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4639 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4640 substitute by NUM_REGS throughout.
4641 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4642 (h8300s_register_name): New function for H8S registers.
4643 (h8300sx_register_name): Ditto for H8SX registers.
4644 (h8300_print_register): Revise register printing, avoid depending
4646 (h8300_register_byte): Only care for H8/300 registers.
4647 (h8300h_register_byte): New function for any other architecture.
4648 (h8300_register_raw_size): Remove.
4649 (h8300_register_virtual_type): Revise to return actually useful
4651 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4652 (h8300h_extract_struct_value_address): New function for any other
4654 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4655 set_gdbarch_register_name, set_gdbarch_register_byte,
4656 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4657 Remove calls to set_gdbarch_deprecated_register_size,
4658 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4659 set_gdbarch_deprecated_max_register_raw_size,
4660 set_gdbarch_register_virtual_size and
4661 set_gdbarch_deprecated_max_register_virtual_size entirely.
4662 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4663 set_gdbarch_long_double_bit.
4665 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4667 * doublest.c (convert_doublest_to_floatformat): When dealing
4668 with the implied integer bit, only alter mant_bits if we are
4669 processing a full 32 bits of mantissa.
4671 2003-06-11 David Carlton <carlton@bactrian.org>
4673 * dictionary.h: New.
4674 * dictionary.c: New.
4675 * block.h: Add opaque declaration for struct dictionary.
4676 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4678 (BLOCK_DICT): New macro.
4679 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4680 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4682 (ALL_BLOCK_SYMBOLS): Update definition.
4683 * Makefile.in (SFILES): Add dictionary.c.
4684 (dictionary_h): New.
4685 (COMMON_OBS): Add dictionary.o.
4686 (dictionary.o): New.
4687 (ada-lang.o): Depend on dictionary_h.
4688 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4689 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4690 (mi-cmd-stack.o): Ditto.
4691 (gdbtk-cmds.o): Update dependencies.
4692 (gdbtk-stack.o): Ditto.
4693 * ada-lang.c: Include dictionary.h.
4694 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4695 (fill_in_ada_prototype, debug_print_block): Ditto.
4696 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4697 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4699 * mdebugread.c: Include dictionary.h.
4700 (struct parse_stack): Delete 'maxsyms' member.
4701 (parse_symbol): Update calls to new_block. Delete calls to
4702 shrink_block. Use dictionary methods.
4703 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4704 Update calls to new_symtab. Don't maintain maxsyms data.
4705 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4706 (add_symbol): Just call dict_add_symbol.
4707 (new_symtab): Delete 'maxsyms' argument.
4708 (new_symtab): Update calls to new_block.
4709 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4710 (shrink_block): Delete function.
4711 (fixup_sigtramp): Update call to new_block. Add symbol via
4713 * jv-lang.c: Include dictionary.h.
4714 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4715 appropriately. Set class_symtab->free_func. Make sure the
4716 blockvector is big enough to hold two blocks.
4717 (add_class_symtab_symbol): Use dictionary methods.
4718 (free_class_block): New function.
4719 (type_from_class): Replace explicit iteration by
4721 * symtab.h (struct symtab): Replace 'free_ptr' method by
4723 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4725 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4727 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4728 Include dictionary.h.
4729 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4730 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4732 * objfiles.c: Include dictionary.h.
4733 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4734 * buildsym.c: Include dictionary.h.
4735 (finish_block): Use dictionary methods.
4736 (end_symtab): Set free_func to NULL, not free_ptr.
4737 * tracepoint.c: Include dictionary.h.
4738 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4739 (scope_info): Ditto.
4740 * stack.c: Include dictionary.h.
4741 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4742 (print_block_frame_labels, print_frame_arg_vars)
4743 (print_frame_args): Ditto.
4744 * symmisc.c (free_symtab_block): Use dictionary methods.
4745 (dump_symtab): Ditto.
4746 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4747 Include dictionary.h.
4748 * symfile.h: Delete declarations of sort_block_syms,
4750 * symfile.c (sort_block_syms): Delete.
4751 (sort_symtab_syms): Delete.
4752 * symtab.c: Include dictionary.h.
4753 (lookup_block_symbol): Use dictionary iterators.
4754 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4755 (search_symbols, make_symbol_completion_list): Ditto.
4756 (make_symbol_overload_list): Ditto.
4757 * valops.c (value_of_local): Use dict_empty.
4758 Include dictionary.h.
4760 2003-06-11 J. Brobecker <brobecker@gnat.com>
4762 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4764 2003-06-11 David Carlton <carlton@bactrian.org>
4766 * block.h (BLOCK_SHOULD_SORT): Delete.
4767 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4769 * ada-lang.c (ada_add_block_symbols): Ditto.
4770 * symfile.c (sort_block_syms): Delete.
4771 (sort_symtab_syms): Ditto.
4772 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4774 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4775 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4776 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4777 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4778 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4779 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4780 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4782 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4784 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4787 2003-06-11 Andrew Cagney <cagney@redhat.com>
4789 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4790 REGISTER_CONVERTIBLE.
4791 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4792 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4793 * gdbarch.h, gdbarch.c: Re-generate.
4794 * arch-utils.h (deprecated_register_convertible_not): Rename
4795 generic_register_convertible_not.
4796 * arch-utils.c (deprecated_register_convertible_not): Rename
4797 generic_register_convertible.
4798 (legacy_convert_register_p, legacy_register_to_value): Update.
4799 * sh-tdep.c (sh64_push_arguments): Update.
4800 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4801 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4802 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4803 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4804 * arch-utils.c (legacy_value_to_register): Update.
4805 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4806 (rs6000_register_convert_to_raw): Make parameter "from" const.
4807 * mips-tdep.c (mips_gdbarch_init): Update.
4808 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4809 * infcmd.c (default_print_registers_info): Update.
4810 * ia64-tdep.c (ia64_gdbarch_init): Update.
4811 (ia64_register_convert_to_raw): Make parameter "from" const.
4812 * i386-tdep.c (i386_gdbarch_init): Update.
4813 (i386_register_convert_to_raw): Update.
4815 2003-06-11 Andrew Cagney <cagney@redhat.com>
4817 * remote-fileio.c: Include "remote-fileio.h".
4818 * Makefile.in (remote-fileio.o): Update dependencies.
4819 (remote_fileio_h): Fix typo.
4821 2003-06-11 Andrew Cagney <cagney@redhat.com>
4823 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4824 (xstormy16_save_dummy_frame_tos): Make static.
4825 (_initialize_xstormy16_tdep): Add declaration.
4826 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4827 * v850-tdep.c: Make local functions static.
4828 (_initialize_v850_tdep): Add declaration.
4829 * sparc-tdep.c: Make local functions static.
4830 (_initialize_sparc_tdep): Add declaration.
4831 * sh-tdep.c: Make local functions static.
4832 (_initialize_sh_tdep): Add declaration.
4833 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4834 * s390-tdep.c: Make local functions static.
4835 (_initialize_s390_tdep): Add declaration.
4836 * dbxread.c (find_stab_function_addr): Make static.
4837 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4838 * ocd.c (_initialize_remote_ocd): Add declaration.
4839 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4840 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4841 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4842 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4843 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4844 * remote-array.c (_initialize_array): Add declaration.
4845 (_initialize_remote_monitors): Add declaration.
4846 * remote-mips.c: Make local functions static.
4847 (_initialize_remote_mips): Add declaration.
4848 * mcore-tdep.c: Make all local functions static.
4849 (_initialize_mcore_tdep): Add declaration.
4850 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4851 * abug-rom.c (_initialize_abug_rom): Add declaration.
4852 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4853 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4854 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4855 * remote-est.c (_initialize_est): Add declaration.
4856 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4857 (m68hc11_call_dummy_address): Make static.
4858 * ia64-tdep.c: Make local functions static.
4859 (_initialize_ia64_tdep): Add declaration.
4860 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4861 * monitor.c (monitor_wait_filter): Make static.
4862 (_initialize_remote_monitors): Add declaration.
4863 * remote-hms.c (_initialize_remote_hms): Add declaration.
4864 * remote-e7000.c (fetch_regs_from_dump): Make static.
4865 (expect_n): Make static.
4866 (_initialize_remote_e7000): Add declaration.
4867 * ser-e7kpc.c: Always include "defs.h".
4868 (_initialize_ser_e7000pc): Add declaration.
4869 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4870 * cris-tdep.c: Make all but one function static.
4871 (_initialize_cris_tdep): Add declaration.
4872 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4873 * solib.c (update_solib_list): Make static.
4874 (_initialize_solib): Add declaration.
4875 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4876 (_initialize_avr_tdep): Add declaration.
4877 * remote-rdi.c (voiddummy): Make static.
4878 (_initialize_remote_rdi): Add declaration.
4879 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4880 * remote-rdp.c (send_rdp): Make static.
4881 (_initialize_remote_rdp): Add declaration.
4882 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4884 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4886 * remote-fileio.c: Make ari happy.
4888 2003-06-10 J. Brobecker <brobecker@gnat.com>
4890 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4891 fetching the trailing bytes of the buffer we are about to write.
4893 2003-06-10 Andrew Cagney <cagney@redhat.com>
4895 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4896 * Makefile.in (remote-fileio.o): Update dependencies.
4897 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4898 include <setjmp.h>, or <sys/types.h> conditional on USG.
4899 (remote_fio_jmp_buf): Delete global variable.
4901 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4902 Martin M. Hunt <hunt@redhat.com>
4904 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4905 (SFILES): Add remote-fileio.c.
4906 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4907 dependencies for building remote.o.
4908 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4909 * remote-fileio.h: New header file defining remote File-I/O interface.
4910 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4911 static storage class.
4912 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4914 (_initialize_remote): Call initialize_remote_fileio().
4915 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4916 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4917 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4918 (captured_main): Initialize new ui_files.
4919 * ui-file.c: Add read and fgets input functions.
4920 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4921 (null_file_read): New function.
4922 (ui_file_read): New function.
4923 (set_ui_file_read): New function.
4924 (stdio_file_read): New function.
4925 * ui-file.h: New type ui_file_read_ftype.
4926 (set_ui_file_read): Declare.
4927 (ui_file_read): Declare.
4929 2003-06-09 Andrew Cagney <cagney@redhat.com>
4931 * frame.h (deprecated_unwind_get_saved_register): Rename
4932 generic_unwind_get_saved_register, update comments.
4933 * mips-tdep.c (mips_get_saved_register): Update.
4934 * frame.c (deprecated_unwind_get_saved_register): Update.
4936 2003-06-09 Andrew Cagney <cagney@redhat.com>
4938 * vax-tdep.c (vax_frame_locals_address): Delete function.
4939 (vax_gdbarch_init): Do not set frame_locals_address.
4940 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4941 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4942 * s390-tdep.c (s390_frame_args_address): Delete function.
4943 (s390_gdbarch_init): Do not set frame_args_address or
4944 frame_locals_address.
4945 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4946 (ns32k_gdbarch_init): Do not set frame_locals_address.
4947 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4948 (hppa_frame_locals_address): Delete function.
4949 (hppa_gdbarch_init): Do not set frame_args_address, or
4950 frame_locals_address.
4951 * arm-tdep.c (arm_frame_args_address): Delete.
4952 (arm_frame_locals_address): Delete.
4953 (arm_gdbarch_init): Do not set frame_args_address, or
4954 frame_locals_address.
4956 2003-06-09 Andrew Cagney <cagney@redhat.com>
4958 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4959 * gdbarch.h, gdbarch.c: Re-generate.
4960 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4961 * arch-utils.c (frame_num_args_unknown): Delete function.
4962 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4963 (frame_info): Use FRAME_NUM_ARGS_P.
4964 * arm-tdep.c (arm_frame_num_args): Delete function.
4965 (arm_gdbarch_init): Do not set frame_num_args.
4966 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4967 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4968 (hppa_gdbarch_init): Do not set frame_num_args.
4969 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4970 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4971 frame_num_args to default frame_num_args_unknown.
4972 * v850-tdep.c (v850_gdbarch_init): Ditto.
4973 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4974 * sh-tdep.c (sh_gdbarch_init): Ditto.
4975 * s390-tdep.c (s390_gdbarch_init): Ditto.
4976 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4977 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4978 * mips-tdep.c (mips_gdbarch_init): Ditto.
4979 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4980 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4981 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4982 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4983 * i386-tdep.c (i386_gdbarch_init): Ditto.
4984 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4985 * frv-tdep.c (frv_gdbarch_init): Ditto.
4986 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4987 * cris-tdep.c (cris_gdbarch_init): Ditto.
4988 * avr-tdep.c (avr_gdbarch_init): Ditto.
4989 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4991 2003-06-09 Andrew Cagney <cagney@redhat.com>
4993 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4994 (print_frame_args): Moved to "stack.c".
4995 * stack.c: Include "gdb_assert.h".
4996 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4997 (print_frame_args): Moved from "printcmd.c".
4998 * frame.h (print_frame_args): Delete declaration.
4999 * Makefile.in (stack.o): Update dependencies.
5001 2003-06-08 Andrew Cagney <cagney@redhat.com>
5003 * frame.c (get_prev_frame): Remove reference to
5004 frame_args_address_correct in comments.
5005 * frame-base.c (default_frame_args_address): Delete code
5006 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5007 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5008 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5009 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5010 (vax_frame_args_address_correct): Delete declaration.
5012 2003-06-08 Andrew Cagney <cagney@redhat.com>
5014 * gdbarch.sh (UNWIND_SP): Add.
5015 * gdbarch.h, gdbarch.c: Re-generate.
5016 * frame.c (frame_sp_unwind): New function.
5017 (get_frame_sp): New function.
5018 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5019 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5020 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5022 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5023 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5025 2003-06-08 Andrew Cagney <cagney@redhat.com>
5027 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5030 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5031 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5032 * config/m68k/tm-sun3.h: Update.
5033 * config/m68k/tm-m68klynx.h: Update.
5034 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5036 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5037 trad_frame". Update comments.
5038 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5039 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5040 (trad_frame_register_value, trad_frame_prev_register): Update.
5042 2003-06-08 Andrew Cagney <cagney@redhat.com>
5044 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5045 from GCC's acinclude.m4.
5046 * configure.in: Check for getopt's delcaration.
5047 * aclocal.m4, config.in, configure: Re-generate.
5048 * main.c (error_init): Delete declaration.
5049 * defs.h (error_init): Declare.
5050 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5051 (rs6000_convert_from_func_ptr_addr): Make static.
5052 (_initialize_rs6000_tdep): Add declaration.
5053 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5054 (show_commands, set_verbose, show_history): Delete declaration.
5055 * top.h (set_verbose): Add declaration.
5056 (show_history, set_history, show_commands): Add declaration.
5057 (do_restore_instream_cleanup): Add declaration.
5058 * objc-lang.c (specialcmp): Make static.
5059 (print_object_command): Make static.
5060 (find_objc_msgsend): Make static.
5061 (find_objc_msgcall_submethod_helper): Make static.
5062 (find_objc_msgcall_submethod): Make static.
5063 (_initialize_objc_language): Add declaration.
5064 (find_implementation_from_class): Make static.
5065 (find_implementation): Make static.
5066 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5067 * objc-lang.h (lookup_struct_typedef): Add declaration.
5068 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5069 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5070 (do_restore_user_call_depth): Make static.
5071 (do_restore_instream_cleanup): Delete declaration.
5072 (dont_repeat): Delete declaration.
5073 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5074 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5075 * reggroups.c (_initialize_reggroup): Add declaration.
5076 * cp-support.c (_initialize_cp_support): Add declaration.
5077 * cp-abi.c (_initialize_cp_abi): Add declaration.
5078 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5079 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5080 (_initialize_gnu_v3_abi): Add declaration.
5081 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5082 (_initialize_gnu_v2_abi): Add declaration.
5083 * frame-base.c (_initialize_frame_base): Add declaration.
5084 * doublest.c (floatformat_from_length): Make static.
5085 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5086 * frame.c (create_sentinel_frame): Make static.
5087 (_initialize_frame): Add declaration.
5088 * top.c (do_catch_errors): Make static.
5089 (gdb_rl_operate_and_get_next_completion): Make static.
5090 * typeprint.c: Include "typeprint.h".
5091 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5092 (sentinel_frame_this_id): Make static.
5093 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5094 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5095 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5096 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5097 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5098 * maint.c (maintenance_print_architecture): Make static.
5099 * signals/signals.c (_initialize_signals): Add declaration.
5100 * std-regs.c (_initialize_frame_reg): Add declaration.
5101 * jv-exp.y (push_variable): ISO C definition.
5102 (push_qualified_expression_name): Ditto.
5103 * memattr.c (_initialize_mem): Add declaration.
5104 * remote.c (remote_check_watch_resources): Make static.
5105 (remote_stopped_by_watchpoint): Make static.
5106 (remote_stopped_data_address): Make static.
5107 * d10v-tdep.c (nr_dmap_regs): Make static.
5108 (a0_regnum): Make static.
5109 (d10v_frame_unwind_cache): Make static.
5110 (d10v_frame_p): Make static.
5111 * osabi.c (show_osabi): Make static.
5112 (_initialize_gdb_osabi): Add extern declaration.
5113 * gdbtypes.c (make_qualified_type): Make static.
5114 (safe_parse_type): Make static.
5115 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5116 * macrotab.c (macro_bcache_free): Make static.
5117 * interps.c (interp_set_quiet): Make static.
5118 (interpreter_exec_cmd): Make static.
5119 * stack.h (select_frame_command): New file.
5120 * stack.c: Include "stack.h".
5121 (select_frame_command_wrapper): Delete function.
5122 (select_frame_command): Make global.
5123 * infcall.c: Include "infcall.h".
5124 * linespec.c: Include "linespec.h".
5125 * symfile.c (sections_overlap): Make static.
5126 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5127 * charset.c (_initialize_charset): Add missing prototype.
5128 * regcache.c (init_legacy_regcache_descr): Make static.
5129 (do_regcache_xfree): Make static.
5130 (regcache_xfer_part): Make static.
5131 (_initialize_regcache): Add missing prototype.
5132 * breakpoint.c (parse_breakpoint_sals): Make static.
5133 (breakpoint_sals_to_pc): Make static.
5134 * interps.h (clear_interpreter_hooks): ISO C declaration.
5135 * Makefile.in (stack_h): Define.
5136 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5137 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5139 2003-06-08 Andrew Cagney <cagney@redhat.com>
5141 * Makefile.in (d10v-tdep.o): Update dependencies.
5142 (SFILES): Add trad-frame.c.
5143 (trad_frame_h): Define.
5144 (COMMON_OBS): Add trad-frame.o.
5145 (trad-frame.o): Specify dependencies.
5146 * d10v-tdep.c: Include "trad-frame.h".
5147 (saved_regs_unwinder): Delete function.
5148 (d10v_frame_prev_register): Use trad_frame_prev_register.
5149 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5150 trad_frame", delete "regs" and "prev_sp".
5151 (prologue_find_regs): Use trad-frame.
5152 * trad-frame.h, trad-frame.c: New files.
5154 2003-06-08 Mark Kettenis <kettenis@gnu.org>
5156 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5158 2003-06-07 Adam Fedor <fedor@gnu.org>
5160 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5161 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5162 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5163 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5164 resolve_msgsend_super, resolve_msgsend_super_stret):
5167 2003-06-07 Andrew Cagney <cagney@redhat.com>
5169 * symfile.h: Re-indent, clean up comments.
5171 2003-06-07 Andrew Cagney <cagney@redhat.com>
5173 * inferior.h (deprecated_write_sp): Replace
5174 generic_target_write_sp.
5175 * regcache.c (deprecated_write_sp): Replace
5176 generic_target_write_sp.
5177 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5178 * vax-tdep.c (vax_gdbarch_init): Update.
5179 * v850-tdep.c (v850_gdbarch_init): Update.
5180 * sparc-tdep.c (sparc_gdbarch_init): Update.
5181 * sh-tdep.c (sh_gdbarch_init): Update.
5182 * s390-tdep.c (s390_gdbarch_init): Update.
5183 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5184 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5185 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5186 * mcore-tdep.c (mcore_gdbarch_init): Update.
5187 * m68k-tdep.c (m68k_gdbarch_init): Update.
5188 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5189 * ia64-tdep.c (ia64_gdbarch_init): Update.
5190 * h8300-tdep.c (h8300_gdbarch_init): Update.
5191 * frv-tdep.c (frv_gdbarch_init): Update.
5192 * cris-tdep.c (cris_gdbarch_init): Update.
5193 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5195 2003-06-07 Andrew Cagney <cagney@redhat.com>
5197 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5198 Assert that PC_REGNUM is valid.
5199 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5201 2003-06-07 Andrew Cagney <cagney@redhat.com>
5203 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5204 * gdbarch.h, gdbarch.c: Regenerate.
5205 * mn10300-tdep.c: Include "gdb_assert.h".
5206 (mn10300_read_fp): New function.
5207 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5208 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5209 * ia64-tdep.c: Include "gdb_assert.h".
5210 (ia64_read_fp): New function.
5211 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5212 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5213 * regcache.c (generic_target_read_sp): Delete function.
5214 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5215 * inferior.h (generic_target_read_sp): Delete declaration.
5216 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5217 generic_target_read_sp.
5218 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5219 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5220 * sh-tdep.c (sh_gdbarch_init): Ditto.
5221 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5222 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5224 2003-06-07 Andrew Cagney <cagney@redhat.com>
5226 * gdbarch.sh: Comment each field of startup_gdbarch.
5227 * gdbarch.h, gdbarch.c: Re-generate.
5229 2003-06-07 Andrew Cagney <cagney@redhat.com>
5231 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5232 * gdbarch.h, gdbarch.c: Re-generate.
5233 * regcache.c: Update comments on read_pc et.al.
5234 (generic_target_read_pc): Delete function.
5235 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5236 * inferior.h (generic_target_read_pc): Delete declaration.
5237 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5238 generic_target_read_pc.
5239 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5240 * sh-tdep.c (sh_gdbarch_init): Ditto.
5241 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5242 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5244 2003-06-07 Andrew Cagney <cagney@redhat.com>
5246 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5247 "index" with "special_local_sect". Use strcmp instead of STREQ.
5248 Append period to coments.
5250 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5252 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5253 (elfstab_offset_sections): Likewise.
5254 * gdb-stabs.h (stab_section_info): Likewise.
5255 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5256 * objfiles.c (objfile_relocate): Likewise.
5257 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5258 * remote.c (get_offsets): Likewise.
5259 (remote_cisco_objfile_relocate): Likewise.
5260 * somread.c (som_symfile_offsets): Likewise.
5261 * symfile.c (alloc_section_addr_info): New function.
5262 (build_section_addr_info_from_section_tab): Use it.
5263 (free_section_addr_info): Adjust.
5264 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5265 (syms_from_objfile): Allocate local_addr dynamically.
5266 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5268 (add_symbol_file_command): Allocate sect_opts dynamically.
5269 (reread_symbols): Avoid use of SECT_OFF_MAX.
5270 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5271 (alloc_section_addr_info): Declare it.
5272 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5273 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5275 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5277 2003-06-06 Andrew Cagney <cagney@redhat.com>
5279 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5280 (d10v_frame_unwind_cache): Do not set "return_pc".
5282 2003-06-06 Michael Snyder <msnyder@redhat.com>
5284 * h8300-tdep.c: Make tidy (long lines).
5286 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5288 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5289 to regcache_collect().
5291 2003-06-05 J. Brobecker <brobecker@gnat.com>
5293 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5294 pc_in_sigtramp multiarch method.
5295 (hppa_hpux_som_init_abi): Use it.
5296 (hppa_hpux_elf_init_abi): Likewise.
5297 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5298 macro has been multiarched.
5299 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5300 macro here, as hppa64 isn't multiarched yet.
5302 2003-06-05 Andrew Cagney <cagney@redhat.com>
5304 * Makefile.in (value_h): Add $(frame_h).
5305 * value.h: Include "frame.h".
5306 (struct value): Replace "frame_addr" with "frame_id".
5307 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5308 * values.c (allocate_value): Use VALUE_FRAME_ID.
5309 (value_copy): Use VALUE_FRAME_ID.
5310 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5311 * valops.c (value_assign): Update. Use frame_find_by_id.
5313 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5315 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5318 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5320 * thread-db.c (check_event): For create/death event breakpoints,
5321 loop through all messages to ensure that we read the message
5322 corresponding to the breakpoint we are at.
5324 2003-06-04 Michael Snyder <msnyder@redhat.com>
5326 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5328 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5330 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5331 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5332 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5333 when handling .eh_frame sections.
5335 2003-06-04 J. Brobecker <brobecker@gnat.com>
5337 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5338 prepare_to_proceed procedure instead of the hppa-specific one.
5339 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5341 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5343 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5344 * config.in: Regenerated.
5345 * configure.in: Add test for syscall function and check for
5346 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5347 * configure: Regenerated.
5348 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5350 (kill_lwp): New function that uses tkill syscall or
5351 uses kill, depending on whether threading model is nptl or not.
5352 All callers of kill() changed to use kill_lwp().
5353 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5354 see if all threads have already exited in the nptl model.
5355 (stop_and_resume_callback): New callback function used by the
5356 lin_lwp_wait thread exit handling code.
5357 (stop_wait_callback): Check for threads already having exited and
5358 delete such threads fromt the lwp list when discovered.
5359 (stop_callback): Don't assert retcode of kill call.
5361 Roland McGrath <roland@redhat.com>
5362 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5365 2003-06-03 Richard Henderson <rth@redhat.com>
5367 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5368 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5369 (alpha_sigtramp_frame_prev_register): Likewise.
5370 (alpha_heuristic_frame_prev_register): Likewise.
5371 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5373 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5374 alpha-specific register id names.
5375 (alpha_mdebug_frame_unwind_cache): Likewise.
5376 (alpha_mdebug_frame_prev_register): Likewise.
5378 2003-06-03 Richard Henderson <rth@redhat.com>
5380 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5381 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5382 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5383 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5385 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5386 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5387 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5389 * alpha-linux-tdep.c: Remove unnecessary includes.
5390 * Makefile.in (alpha-linux-tdep.o): Update.
5392 2003-06-03 Richard Henderson <rth@redhat.com>
5394 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5395 (alphabsd_fill_fpreg): Likewise.
5397 2003-06-03 J. Brobecker <brobecker@gnat.com>
5399 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5400 references to struct frame_info fields by calls to the equivalent
5401 accessors. Necessary now that frame_info is opaque.
5403 2003-06-03 J. Brobecker <brobecker@gnat.com>
5405 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5406 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5407 structure, field no longer exists.
5409 2003-06-03 J. Brobecker <brobecker@gnat.com>
5411 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5412 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5414 2003-06-03 J. Brobecker <brobecker@gnat.com>
5416 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5417 references to struct frame_info fields by calls to the equivalent
5418 accessors. Necessary now that frame_info is opaque.
5420 2003-06-03 J. Brobecker <brobecker@gnat.com>
5422 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5423 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5424 structure, field no longer exists.
5426 2003-06-03 Theodore A. Roth <troth@openavr.org>
5428 * remote.c (init_remote_state): Compute sizeof_g_packet by
5429 accumulation of the size of all registers instead of blindly using
5430 DEPRECATED_REGISTER_BYTES.
5432 2003-06-03 Michael Snyder <msnyder@redhat.com>
5434 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5435 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5438 2003-06-03 J. Brobecker <brobecker@gnat.com>
5440 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5441 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5443 2003-06-03 Andrew Cagney <cagney@redhat.com>
5445 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5446 (sparc_convert_to_raw): Delete function.
5447 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5448 register_convert_to_virtual.
5450 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5452 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5453 layer if not dealing with a statically-linked threaded program.
5455 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5457 * solib.c (solib_open): Update comment to reflect actual search order.
5459 2003-06-03 Andrew Cagney <cagney@redhat.com>
5461 * frame.c (get_frame_memory_signed): New function.
5462 (get_frame_memory, get_frame_memory_unsigned): New function.
5463 (get_frame_arch): New function.
5464 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5465 (get_frame_memory, get_frame_unsigned_memory): Declare.
5466 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5467 get_frame_memory_unsigned and get_frame_arch.
5468 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5470 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5472 * MAINTAINERS (write after approval): Add myself.
5474 2003-06-03 Jim Blandy <jimb@redhat.com>
5476 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5477 elements of gregset_t are 64 bits each, but access registers
5478 are still 32 bits, so they're packed two per gregset_t
5479 element. Unpack/pack them properly.
5481 2003-06-02 David Carlton <carlton@bactrian.org>
5483 * linespec.c (find_methods): Break out code into
5484 add_matching_methods and add_constructors.
5485 (add_matching_methods): New.
5486 (add_constructors): Ditto.
5488 2003-06-02 Andrew Cagney <cagney@redhat.com>
5490 * sparc-tdep.c (sparc_print_registers): Delete call to
5491 REGISTER_CONVERTIBLE.
5492 (sparc_gdbarch_init): Do not set register_convertible.
5493 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5494 * frv-tdep.c (frv_gdbarch_init): Ditto.
5495 * cris-tdep.c (cris_gdbarch_init): Ditto.
5497 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5499 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5500 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5501 (syms_from_objfile): Ditto.
5503 2003-06-03 Andreas Schwab <schwab@suse.de>
5505 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5506 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5508 2003-06-02 Richard Henderson <rth@redhat.com>
5510 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5511 a member of all_reggroup.
5513 2003-06-02 Richard Henderson <rth@redhat.com>
5515 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5516 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5517 (alpha_lds, alpha_sts): New.
5518 (alpha_convert_register_p): Change from _register_convertible.
5519 (alpha_register_to_value): Change from _convert_to_virtual;
5520 restructure and fail for type sizes other than 4 or 8.
5521 (alpha_value_to_register): Similarly.
5522 (alpha_extract_return_value): Use alpha_sts.
5523 (alpha_store_return_value): Use alpha_lds.
5524 (alpha_gdbarch_init): Update hooks.
5526 2003-06-02 Richard Henderson <rth@redhat.com>
5528 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5530 (alpha_sigtramp_register_address): Likewise.
5532 2003-06-02 Richard Henderson <rth@redhat.com>
5534 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5535 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5536 * alpha-tdep.h: Declare them.
5538 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5539 Remove zerobuf. Don't error on UNIQUE.
5540 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5541 (ALPHA_REGSET_UNIQUE): Provide default.
5542 (supply_gregset): Use alpha_supply_int_regs.
5543 (fill_gregset): Use alpha_fill_int_regs.
5544 (supply_fpregset): Use alpha_supply_fp_regs.
5545 (fill_fpregset): Use alpha_fill_fp_regs.
5546 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5547 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5548 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5549 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5550 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5551 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5553 2003-06-02 Richard Henderson <rth@redhat.com>
5555 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5557 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5558 (alpha_store_return_value): Likewise.
5560 2003-06-02 David Carlton <carlton@math.stanford.edu>
5562 * block.c (contained_in): Add 'const' to arguments.
5563 (block_function): Ditto.
5564 * block.h: Update declarations for block_function and
5567 2003-06-02 David Carlton <carlton@math.stanford.edu>
5569 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5570 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5571 * p-valprint.c (pascal_val_print): Ditto.
5572 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5574 2003-06-02 Richard Henderson <rth@redhat.com>
5576 * alpha-tdep.c (alpha_push_dummy_call): Use
5577 builtin_type_ieee_double_little instead of builtin_type_double.
5579 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5580 sign-extension of 32-bit values.
5581 (alpha_store_return_value): Similarly.
5583 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5584 (alpha_extract_return_value): Likewise.
5585 (alpha_store_return_value): Likewise.
5587 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5588 (alpha_store_return_value): Error on IEEE Quad floats.
5590 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5591 (alpha_extract_struct_value_address): Likewise.
5592 (alpha_store_return_value): Likewise.
5593 (alpha_store_struct_return): Remove.
5594 (alpha_gdbarch_init): Update hook registration to match.
5596 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5597 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5598 macros where appropriate.
5599 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5600 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5602 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5603 for SP, GP; void_func_ptr for PC; non-language-specific types
5605 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5607 2003-06-02 Richard Henderson <rth@redhat.com>
5609 * top.h (lim_at_start): Declare.
5610 * main.c (captured_main): Set it.
5611 * top.c (lim_at_start): Define.
5612 (command_loop): Use it instead of &environ.
5613 * event-top.c (command_handler): Likewise.
5615 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5617 * mipsnbsd-tdep.c: Update copyright years.
5618 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5620 2003-06-01 Richard Henderson <rth@redhat.com>
5622 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5623 (alpha-linux-tdep.o): Update dependencies.
5624 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5625 * alpha-mdebug-tdep.c: Remove unneeded includes.
5627 2003-06-01 Richard Henderson <rth@redhat.com>
5629 * alpha-tdep.c (alpha_register_reggroup_p): New.
5630 (alpha_gdbarch_init): Register it.
5632 2003-06-02 Andrew Cagney <cagney@redhat.com>
5634 * dwarfread.c: Eliminate "register"
5635 (decode_die_type): Eliminate assignment within "if".
5636 (struct_type, decode_array_element_type): Ditto.
5637 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5638 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5639 (decode_modified_type, completedieinfo): Ditto.
5640 * block.c: Eliminate "register".
5641 (blockvector_for_pc_sect): Eliminate assignment within "if".
5642 * cp-support.h (struct symbol): Opaque declaration.
5643 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5645 2003-06-01 Richard Henderson <rth@redhat.com>
5647 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5648 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5650 2003-06-01 Adam Fedor <fedor@gnu.org>
5652 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5653 * gdbarch.[ch]: Regenerate.
5654 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5655 (hppa_gdbarch_init): Set it in the gdbarch vector.
5656 * i386-tdep.c (i386_fetch_pointer_argument): New
5657 (i386_gdbarch_init): Set it into gdbarch.
5658 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5659 (rs6000_gdbarch_init): Set it in gdbarch.
5660 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5661 (sparc_gdbarch_init): Set it in gdbarch.
5663 2003-06-01 Andrew Cagney <cagney@redhat.com>
5665 * defs.h (extract_address): Delete declaration.
5666 * findvar.c (extract_address): Delete function.
5667 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5668 extract_address with the inline equivalent,
5669 extract_unsigned_integer.
5670 (xstormy16_extract_struct_value_address): Ditto.
5671 (xstormy16_pointer_to_address): Ditto.
5672 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5673 * v850-tdep.c (v850_push_arguments): Ditto.
5674 (v850_extract_return_value): Ditto.
5675 (v850_extract_struct_value_address): Ditto.
5676 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5677 (sparcnbsd_get_longjmp_target_64): Ditto.
5678 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5679 (get_longjmp_target): Ditto.
5680 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5681 (sh64_extract_struct_value_address): Ditto.
5682 (sh_push_arguments): Ditto.
5683 (sh64_push_arguments): Ditto.
5684 * remote-vxsparc.c (vx_read_register): Ditto.
5685 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5686 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5687 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5688 * mipsv4-nat.c (get_longjmp_target): Ditto.
5689 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5690 * mips-nat.c (get_longjmp_target): Ditto.
5691 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5692 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5693 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5694 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5695 * irix5-nat.c (get_longjmp_target): Ditto.
5696 * irix4-nat.c (get_longjmp_target): Ditto.
5697 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5698 (ia64_push_arguments): Ditto.
5699 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5700 * h8300-tdep.c (h8300_push_arguments): Ditto.
5701 (h8300_store_return_value): Ditto.
5702 (h8300_extract_struct_value_address): Ditto.
5703 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5704 (frv_push_arguments): Ditto.
5705 * avr-tdep.c (avr_pointer_to_address): Ditto.
5706 (avr_push_arguments): Ditto.
5707 * arm-tdep.c (arm_push_dummy_call): Ditto.
5708 (arm_get_longjmp_target): Ditto.
5709 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5710 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5711 (alpha_get_longjmp_target): Ditto.
5713 * solib-irix.c (extract_mips_address): Inline extract_address,
5714 replacing it with extract_signed_integer.
5715 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5716 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5717 (first_link_map_member, open_symbol_file_object): Ditto.
5718 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5719 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5720 (LM_NEXT, LM_NAME): Ditto.
5722 2003-06-01 Richard Henderson <rth@redhat.com>
5724 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5725 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5726 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5727 (alpha_cannot_store_register): Likewise.
5728 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5729 * alpha-nat.c (supply_gregset): Likewise.
5730 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5732 2003-06-01 Andrew Cagney <cagney@redhat.com>
5734 * infcall.c (call_function_by_hand): Update comment on
5735 DEPRECATED_DUMMY_WRITE_SP.
5737 * mips-tdep.c (mips_gdbarch_init): Do not set
5738 deprecated_dummy_write_sp.
5739 (mips_eabi_push_dummy_call): Set the SP register.
5740 (mips_o64_push_dummy_call): Set the SP register.
5741 (mips_o32_push_dummy_call): Set the SP register.
5742 (mips_n32n64_push_dummy_call): Set the SP register.
5744 2003-06-01 Richard Henderson <rth@redhat.com>
5746 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5747 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5748 (supply_gregset): Likewise.
5749 * alpha-tdep.c (alpha_store_return_value): Likewise.
5750 (alpha_get_longjmp_target): Likewise.
5751 (alpha_register_name): Constify array.
5752 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5753 deprecated_register_size, deprecated_register_bytes,
5754 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5755 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5756 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5758 2003-06-01 Richard Henderson <rth@redhat.com>
5760 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5761 from arg_reg_buffer to regcache to avoid double conversion.
5763 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5765 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5767 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5768 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5770 2003-06-01 Richard Henderson <rth@redhat.com>
5772 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5773 (decode_frame_entry): Set it. Skip FDE augmentation.
5775 2003-06-01 Richard Henderson <rth@redhat.com>
5777 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5778 not overlapping PC_REGNUM.
5780 2003-06-01 Richard Henderson <rth@redhat.com>
5782 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5783 alpha_push_arguments. Don't dump argument register data to
5784 the target stack. Fix float and 128-bit long double semantics.
5785 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5786 (alpha_fix_call_dummy): Remove.
5787 (alpha_call_dummy_words): Remove.
5788 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5790 2003-06-01 Richard Henderson <rth@redhat.com>
5792 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5794 2003-06-01 Andrew Cagney <cagney@redhat.com>
5796 * mips-tdep.c (is_mips16_addr): New function.
5797 (make_mips16_addr, unmake_mips16_addr): New functions.
5798 (pc_is_mips16, mips_fetch_instruction): Use.
5799 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5800 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5801 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5802 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5804 * config/mips/tm-mips.h: Update copyright.
5805 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5806 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5807 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5808 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5809 (TM_PRINT_INSN_MACH): Delete.
5810 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5812 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5813 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5814 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5815 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5816 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5817 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5818 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5819 mips*-*-riscos* and mips*-*-sysv* onto mips.
5820 * config/mips/mips64.mt: New file.
5821 * config/mips/mips.mt: New file.
5822 * config/mips/littlemips.mt: Delete file.
5823 * config/mips/decstation.mt: Delete file.
5824 * config/mips/vr4300el.mt: Delete file.
5825 * config/mips/vr5000el.mt: Delete file.
5826 * config/mips/vr5000.mt: Delete file.
5827 * config/mips/vr4100.mt: Delete file.
5828 * config/mips/vr4xxxel.mt: Delete file.
5829 * config/mips/vr4300.mt: Delete file.
5830 * config/mips/vr4xxx.mt: Delete file.
5831 * config/mips/bigmips.mt: Delete file.
5832 * config/mips/bigmips64.mt: Delete file.
5833 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5834 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5835 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5836 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5837 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5839 * config/mips/tm-irix3.h: Ditto.
5840 * config/mips/tm-mipsv4.h: Ditto.
5841 * config/mips/tm-embed.h: Ditto.
5842 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5844 * config/mips/tm-vr5000el.h: Delete file.
5845 * config/mips/tm-tx39l.h: Delete file.
5846 * config/mips/tm-vr4300el.h: Delete file.
5847 * config/mips/tm-vr4xxxel.h: Delete file.
5848 * config/mips/tm-vr4300.h: Delete file.
5849 * config/mips/tm-vr4100.h: Delete file.
5850 * config/mips/tm-vr4xxx.h: Delete file.
5851 * config/mips/tm-vr5000.h: Delete file.
5852 * config/mips/tm-embedl64.h: Delete file.
5853 * config/mips/tm-embedl.h: Delete file.
5854 * config/mips/tm-embed64.h: Delete file.
5855 * config/mips/tm-bigmips64.h: Delete file.
5856 * config/mips/tm-bigmips.h: Delete file.
5858 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5861 * shnbsd-nat.c: Include "sh-tdep.h".
5863 From Richard Henderson <rth@redhat.com>:
5864 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5866 2003-05-31 Andrew Cagney <cagney@redhat.com>
5868 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5869 forward declaration.
5870 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5871 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5872 (mips_find_saved_regs): Use set_reg_offset.
5873 (mips_frame_init_saved_regs): Delete function.
5874 (mips_pop_frame): Call mips_find_saved_regs instead of
5875 DEPRECATED_FRAME_INIT_SAVED_REGS.
5877 2003-05-31 Andrew Cagney <cagney@redhat.com>
5879 * mips-tdep.c (mips_gdbarch_init): Do not set
5880 deprecated_max_register_raw_size, register_virtual_size, and
5881 deprecated_max_register_virtual_size.
5883 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5885 * i386-tdep.c: Include "dwarf2-frame.h".
5886 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5887 * Makefile.in (i386-tdep.o): Update dependencies.
5889 * dwarf2-frame.c, dwarf2-frame.h: New files.
5890 * Makefile.in (SFILES): Add dwarf2-frame.c.
5891 (dwarf2_frame_h): Define.
5892 (COMMON_OBS): Add dwarf2-frame.o.
5893 (dwarf2-frame.o): Add dependencies.
5895 2003-05-31 Andreas Jaeger <aj@suse.de>
5897 * x86-64-linux-nat.c: Fix comment.
5899 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5901 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5904 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5905 have a sigcontext_addr handler.
5906 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5907 sigcontext_addr handler.
5909 2003-05-31 Andrew Cagney <cagney@redhat.com>
5911 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5912 (print_fp_register_row): Replace do_fp_register_row.
5913 (mips_print_fp_register): Add "file" and "frame" parameters.
5914 (mips_print_register): Add "file" and "frame" parameters.
5915 (mips_print_registers_info): Replace mips_do_registers_info.
5916 (mips_gdbarch_init): Set print_registers_info instead of
5917 deprecated_do_registers_info.
5918 (mips_read_fp_register_single): Add "frame" parameter.
5919 (mips_read_fp_register_double): Add "frame" parameter.
5921 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5923 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5924 Fixes a bug where GDB would print the wrong register names for
5925 targets without SSE.
5927 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5928 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5931 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5932 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5933 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5936 From Michal Ludvig <mludvig@suse.cz>:
5937 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5939 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5940 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5941 I386_ST0_REGNUM): Move here from...
5942 * i386-tdep.c: ... here.
5943 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5944 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5945 registers if possible.
5946 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5947 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5949 (i386bsd_sc_reg_offset): New variable.
5950 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5951 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5953 (i386fbsd_sc_reg_offset): New variable.
5954 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5956 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5958 (i386fbsd4_sc_reg_offset): New variable.
5959 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5960 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5962 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5963 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5964 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5966 (i386nbsd_sc_reg_offset): New variable.
5967 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5968 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5970 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5972 (i386obsd_sc_reg_offset): New variable.
5973 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5974 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5976 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5977 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5978 for frame pointer offset in `struct sigcontext'.
5980 2003-05-31 Andrew Cagney <cagney@redhat.com>
5982 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5983 architecture methods call_dummy_words, sizeof_call_dummy_words,
5984 push_return_address, store_struct_return, and fix_call_dummy. Set
5985 push_dummy_call instead of deprecated_push_arguments.
5986 (mips_store_struct_return): Delete function.
5987 (mips_fix_call_dummy): Delete function.
5988 (mips_push_return_address): Delete function.
5989 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5990 RA_REGNUM and T9_REGNUM.
5991 (mips_n32n64_push_dummy_call): Ditto for
5992 mips_n32n64_push_arguments.
5993 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5994 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5996 2003-05-31 Andrew Cagney <cagney@redhat.com>
5998 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5999 "dummy_addr" to "bp_addr".
6000 * infcall.c (call_function_by_hand): Pass "funaddr" to
6001 gdbarch_push_dummy_call.
6002 * gdbarch.h, gdbarch.c: Re-generate.
6003 * i386-tdep.c (i386_push_dummy_call): Update.
6004 * arm-tdep.c (arm_push_dummy_call): Update.
6005 * d10v-tdep.c (d10v_push_dummy_call): Update.
6007 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6009 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6010 variable declarations.
6011 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6012 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6013 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6014 x86_64_init_frame_pc, x86_64_init_frame_pc,
6015 x86_64_function_has_prologue): Remove prototypes.
6016 (X86_64_NUM_GREGS): New define.
6017 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6018 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6019 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6020 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6021 XMM1_REGNUM): Remove defines.
6022 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6023 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6024 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6025 X86_64_XMM1_REGNUM): New defines.
6026 (struct x86_64_register_info): Renamed from `struct
6027 register_info'. Remove `size' member.
6028 (x86_64_register_info_table): Remove variable.
6029 (x86_64_register_info): New variable.
6030 (X86_64_NUM_REGS): New define.
6031 (X86_64_NUM_GREGS): Remove define.
6032 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6033 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6035 (x86_54_dwarf2_reg_to_regnum): Remove function.
6036 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6037 (x86_64_dwarf_reg_to_regnum): New function.
6038 (x86_64_register_name): Rewrite.
6039 (x86_64_register_raw_size): Remove function.
6040 (x86_64_register_byte_table): Remove variable.
6041 (x86_64_register_byte): Remove function.
6042 (x86_64_register_virtual_type): Remove function.
6043 (x86_64_register_type): New function.
6044 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6045 x86_64_register_convert_to_raw): Remove functions.
6046 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6047 (x86_64_use_struct_convention): Make static. Adjust for renamed
6049 (x86_64_frame_init_saved_regs): Remove function.
6050 (x86_64_push_arguments): Make static. Change to accept a regcache
6052 (x86_64_store_return_value, x86_64_extract_return_value): Make
6053 static. Rewrite based on i386 counterparts.
6054 (x86_64_push_dummy_call): New function.
6055 (X86_64_NUM_SAVED_REGS): New define.
6056 (x86_64_register_number): Remove function.
6057 (x86_64_store_struct_return): Remove function.
6058 (x86_64_frameless_function_invocation,
6059 x86_64_function_has_prologue): Remove functions.
6060 (PROLOG_BUFSIZE): Remove define.
6061 (struct x86_64_frame_cache): New structure.
6062 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6063 x86_64_frame_cache, x86_64_frame_this_id,
6064 x86_64_frame_prev_register, x86_64_frame_p,
6065 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6066 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6068 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6070 (x86_64_skip_prologue): Rewrite in terms of
6071 x86_64_analyze_prologue.
6072 (x86_64_frame_base_address): New function.
6073 (x86_64_frame_base): New variable.
6074 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6075 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6076 set deprecated_fp_regnum, deprecated_register_size,
6077 deprecated_register_bytes, register_raw_size, register_byte,
6078 register_virtual_type, register_convertiable,
6079 register_convert_to_virtual, convert_to_raw,
6080 deprecated_get_saved_register, deprecated_target_read_fp,
6081 deprecated_push_arguments, deprecated_push_return_address,
6082 deprecated_pop_frame, deprecated_store_struct_return,
6083 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6084 frameless_function_invocation, deprecated_frame_saved_pc,
6085 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6086 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6087 deprecated_init_frame_pc and virtual_frame_pointer. Call
6088 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6089 and x86_64_frame_p. Call frame_base_set_default to register
6091 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6092 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6093 (_initialize_x86_64_tdep): Remove function.
6094 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6095 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6096 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6098 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6099 (x86_64_linux_sigcontext_addr): Rewrite.
6100 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6101 x86_64_linux_frame_saved_pc): Remove functions.
6102 (x86_64_linux_pc_in_sigtramp): Renamed from
6103 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6105 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6107 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6108 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6109 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6110 (x86_64_regmap): Rename to regmap.
6111 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6113 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6115 (x86_64_fxsave_offset): Remove function.
6116 (supply_fpregset): Simply call x86_64_supply_fxsave.
6117 (fill_fpregset): Simply call x86_64_fill_fxsave.
6118 (fetch_inferior_registers, store_inferior_registers): Avoid
6119 asignment in if-statement.
6120 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6121 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6122 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6123 (fetch_core_registers): Remove function.
6124 (linux_elf_core_fns): Remove.
6125 (offsetoff): Don't define.
6126 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6127 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6128 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6130 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6131 protection against multiple includes instead of NM_X86_64_h. Add
6132 various comments. Include "config/nm-linux.h". Don't include
6134 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6135 GET_THREAD_SIGNALS): Remove defines.
6136 (x86_64_register_u_addr, kernel_u_size,
6137 lin_thread_get_thread_signals): Remove prototypes.
6138 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6139 [HAVE_LINK_H]: Don't include "solib.h".
6140 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6141 * config/i386/tm-x86-64linux.h: Fix comments.
6142 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6143 x86-64-tdep.o): Update dependencies.
6145 2003-05-30 Andrew Cagney <cagney@redhat.com>
6147 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6148 Change parameter type to a "struct regcache *".
6150 * gdbarch.sh: Regardless of the multi-arch level, always define
6151 the macro when not already defined.
6152 * gdbarch.h, gdbarch.c: Re-generate.
6154 2003-05-30 Richard Henderson <rth@redhat.com>
6156 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6157 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6158 (alpha_mdebug_frame_this_id): Likewise.
6159 (alpha_mdebug_frame_prev_register): Likewise.
6160 (alpha_mdebug_frame_base_address): Likewise.
6161 (alpha_mdebug_frame_locals_address): Likewise.
6162 (alpha_mdebug_frame_args_address): Likewise.
6163 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6164 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6165 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6167 (alpha_heuristic_frame_this_id): Make static.
6168 (alpha_heuristic_frame_prev_register): Likewise.
6169 (alpha_heuristic_frame_base_address): Likewise.
6170 * alpha-tdep.h: Update.
6172 2003-05-30 Mark Kettenis <kettenis@gnu.org>
6174 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6175 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6177 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6178 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6179 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6180 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6181 I386_ST0_REGNUM): New defines.
6182 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6183 codestream_get): Remove define.
6184 (codestream_next_addr, condestream_addr, condestream_buf,
6185 codestream_off, codestream_cnt): Remove variables.
6186 (codestream_fill, codestream_seek, codestream_read): Remove
6188 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6190 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6191 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6192 i386_frame_saved_pc, i386_saved_pc_after_call,
6193 i386_frame_num_args, i386_frame_init_saved_regs,
6194 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6195 i386_push_arguments): Remove functions.
6196 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6197 functionality. Use i386_analyze_prologue instead of
6198 i386_get_frame_setup.
6199 (I386_NUM_SAVED_REGS): New define.
6200 (struct i386_frame_cache): New structure.
6201 (i386_alloc_frame_cache, i386_analyze_struct_return,
6202 i386_skip_probe, i386_analyze_frame_setup,
6203 i386_analyze_register_saves, i386_analyze_prologue,
6204 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6205 i386_frame_prev_register, i386_sigtramp_frame_cache,
6206 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6207 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6208 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6210 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6212 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6213 I386_EAX_REGNUM and I386_EDX_REGNUM.
6214 (i386_extract_return_value, i386_store_return_value): Use
6215 I386_ST0_REGNUM where appropriate.
6216 (i386_extract_struct_value_address): Rewrite to use extract_address.
6217 (i386_svr4_pc_in_sigtramp): Add comment.
6218 (i386_svr4_sigcontext_addr): Rewrite.
6219 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6221 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6222 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6223 of new defines. Set push_dummy_call, don't set
6224 deprecated_push_arguments, deprecated_push_return_address,
6225 deprecated_pop_frame. Don't set parm_boundary. Don't set
6226 deprecated_frame_chain, deprecated_frame_saved_pc,
6227 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6228 save_dummy_frame_tos, unwind_pc. Call
6229 frame_unwind_append_predicate and frame_base_set_default. Don't
6230 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6231 Don't set frameless_function_invocation. Don't set
6232 deprecated_register_bytes, deprecated_register_size,
6233 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6234 * i386-linux-tdep.c: Fix formatting in some comments.
6235 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6236 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6237 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6238 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6239 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6240 redundant parentheses.
6241 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6242 (i386_linux_sigcontext_addr): Use it. Rewrite.
6243 (find_minsym_and_objfile): Change name of second argument.
6244 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6245 changed. Use frame_pc_unwind instead of
6246 DEPRECATED_SAVED_PC_AFTER_CALL.
6247 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6248 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6249 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6251 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6253 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6254 (_initialize_i386_cygwin_tdep): New prototype.
6255 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6256 deprecated_frame_chain_valid.
6257 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6258 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6259 Rely on the SVR4 defaults.
6260 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6261 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6263 2003-05-30 Andrew Cagney <cagney@redhat.com>
6265 * infcall.c (call_function_by_hand): Always call
6266 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6268 2003-05-30 Richard Henderson <rth@redhat.com>
6270 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6273 2003-05-29 Jim Blandy <jimb@redhat.com>
6275 Use gdbarch methods for solib stuff on PowerPC Linux.
6276 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6277 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6279 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6280 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6281 giving the same effect as the #definitions above.
6283 2003-05-29 Adam Fedor <fedor@gnu.org>
6285 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6286 (find_implementation_from_class): Replace it with the standard
6287 case i.e. do nothing.
6289 2003-05-29 Richard Henderson <rth@redhat.com>
6291 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6292 (alpha_linux_sigtramp_offset): Use it. Make static.
6293 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6294 update for new frame model.
6295 * alpha-mdebug-tdep.c: New file.
6296 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6297 (alpha_osf1_init_abi): Install it.
6298 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6299 (linked_proc_desc_table): Remove.
6300 (alpha_frame_past_sigtramp_frame): Remove.
6301 (alpha_dynamic_sigtramp_offset): Remove.
6302 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6303 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6304 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6305 (push_sigtramp_desc): Remove.
6306 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6307 (alpha_cannot_store_register): Likewise.
6308 (alpha_sigcontext_addr): Remove.
6309 (alpha_find_saved_regs): Remove.
6310 (alpha_frame_init_saved_regs): Remove.
6311 (alpha_init_frame_pc_first): Remove.
6312 (read_next_frame_reg): Remove.
6313 (alpha_frame_saved_pc): Remove.
6314 (alpha_saved_pc_after_call): Remove.
6315 (temp_proc_desc, temp_saved_regs): Remove.
6316 (alpha_about_to_return): Remove.
6317 (cached_proc_desc): Remove.
6318 (alpha_frame_chain): Remove.
6319 (alpha_print_extra_frame_info): Remove.
6320 (alpha_init_extra_frame_info): Remove.
6321 (alpha_frame_locals_address): Remove.
6322 (alpha_frame_args_address): Remove.
6323 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6324 (alpha_push_dummy_frame): Remove.
6325 (alpha_pop_frame): Remove.
6326 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6327 (alpha_read_insn): New.
6328 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6329 for different insn encodings.
6330 (alpha_in_lenient_prologue): Remove.
6331 (struct alpha_sigtramp_unwind_cache): New.
6332 (alpha_sigtramp_frame_unwind_cache): New.
6333 (alpha_sigtramp_register_address): New.
6334 (alpha_sigtramp_frame_this_id): New.
6335 (alpha_sigtramp_frame_prev_register): New.
6336 (alpha_sigtramp_frame_unwind): New.
6337 (alpha_sigtramp_frame_p): New.
6338 (struct alpha_heuristic_unwind_cache): New.
6339 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6340 don't count nop insns that occur between functions.
6341 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6342 heuristic_proc_desc, but without the mdebug wrapping.
6343 (alpha_heuristic_frame_this_id): New.
6344 (alpha_heuristic_frame_prev_register): New.
6345 (alpha_heuristic_frame_unwind): New.
6346 (alpha_heuristic_frame_p): New.
6347 (alpha_heuristic_frame_base_address): New.
6348 (alpha_heuristic_frame_base): New.
6349 (alpha_unwind_dummy_id): New.
6350 (alpha_unwind_pc): New.
6351 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6352 frame related deprecated initializations; install replacements.
6353 (alpha_dump_tdep): Remove.
6354 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6355 (alpha_read_insn, alpha_after_prologue,
6356 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6357 alpha_heuristic_frame_prev_register,
6358 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6359 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6360 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6361 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6363 2003-05-29 Andrew Cagney <cagney@redhat.com>
6365 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6366 dependant on the availability of ASSERT_FUNCTION.
6367 (ASSERT_FUNCTION): Do not define when there is no function name.
6369 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6371 From Jimi X <jimix@watson.ibm.com>:
6372 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6374 2003-05-28 Jim Blandy <jimb@redhat.com>
6376 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6377 argument to ptrace to int; the system headers should give it the
6378 right type, and pointers don't fit in ints on powerpc64-*-*.
6380 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6382 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6385 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6387 * stabsread.c (dbx_lookup_type): Make static.
6389 (add_undefined_type): Ditto.
6390 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6393 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6395 * hpread.c (hpread_has_name): Make static.
6396 (hpread_psymtab_to_symtab): Ditto.
6397 (file_exists): Ditto.
6398 (hpread_call_pxdb): Ditto.
6399 (hpread_pxdb_needed): Ditto.
6400 (hpread_quick_traverse): Ditto.
6401 (hpread_get_header): Ditto.
6402 (hpread_get_lntt): Ditto.
6403 (hpread_get_slt): Ditto.
6406 2003-05-25 Andreas Schwab <schwab@suse.de>
6408 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6409 stack_align and deprecated_extra_stack_alignment_needed.
6410 (m68k_stack_align): Delete.
6412 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6413 (m68k_register_virtual_size): Likewise.
6414 (altos_skip_prologue): Remove obsolete function.
6415 (isi_frame_num_args): Likewise.
6416 (news_frame_num_args): Likewise.
6417 (m68k_fix_call_dummy): Make static.
6418 (m68k_push_dummy_frame): Likewise.
6419 (m68k_pop_frame): Likewise.
6420 (m68k_skip_prologue): Likewise.
6421 (m68k_frame_init_saved_regs): Likewise.
6422 (m68k_saved_pc_after_call): Likewise.
6423 (m68k_get_longjmp_target): Make multi-arch.
6424 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6425 structure. Register m68k_get_longjmp_target if enabled.
6426 * m68k-tdep.h (struct gdbarch_tdep): Define.
6427 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6429 * Makefile.in (config.status): Also depend on configure.tgt
6431 (m68klinux-tdep.o): Update dependencies.
6432 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6433 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6434 (M68K_LINUX_JB_PC): Define.
6435 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6436 and take additional parameter.
6437 (m68k_linux_sigtramp_saved_pc): Update.
6438 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6439 m68k_linux_pc_in_sigtramp, in_plt_section,
6440 find_solib_trampoline_target.
6441 * config/m68k/tm-linux.h: Don't include any tm headers.
6442 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6443 (JB_ELEMENT_SIZE): Likewise.
6445 (GET_LONGJMP_TARGET): Likewise.
6446 (IN_SIGTRAMP): Likewise.
6447 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6449 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6451 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6452 (sparc32_push_arguments): Re-implement by calling
6453 sparc32_do_push_arguments.
6455 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6457 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6458 SPARC_O1_REGNUM): New defines.
6459 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6460 (sparc32_store_return_value): New function.
6461 (sparc_extract_struct_value_address): Rewrite to operate on a
6463 (sparc_gdbarch_init): Don't set
6464 deprecated_extract_struct_value_address. Set
6465 extract_struct_value_address instead. Don't set
6466 deprecated_extract_return_value and deprecated_store_return_value
6467 for 32-bit targets. Set extract_return_value and
6468 store_return_value instead.
6469 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6470 DEPRECTAED_EXTRACT_RETURN_VALUE,
6471 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6472 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6473 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6474 (sparc_store_return_value): Remove prototype.
6475 (sparc32_store_return_value): New prototype.
6476 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6479 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6481 * sparcnbsd-tdep.c: Include "gdb_string.h".
6483 2003-05-23 Andrew Cagney <cagney@redhat.com>
6485 * p-valprint.c (pascal_val_print): Replace extract_address with
6486 the inline equivalent extract_unsigned_integer.
6487 * jv-valprint.c (java_value_print): Ditto.
6488 * ada-valprint.c (ada_val_print_1): Ditto.
6489 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6491 2003-05-23 Theodore A. Roth <troth@openavr.org>
6493 * blockframe.c (frameless_look_for_prologue): Remove unused
6494 after_prologue variable.
6496 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6498 * blockframe.c (get_pc_function_start): Rewrite to avoid
6499 asignments in if-statements.
6501 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6503 Committed by Elena Zannoni <ezannoni@redhat.com>.
6504 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6505 files, don't relocate absolute symbols (and do use mst_abs).
6507 2003-05-23 Andrew Cagney <cagney@redhat.com>
6509 * objc-lang.c: Include "gdb_assert.h".
6510 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6511 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6512 (gdb_check, gdb_check_fatal): Delete functions.
6513 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6515 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6516 * Makefile.in (objc-lang.o): Update dependencies.
6518 2003-05-22 Ian Lance Taylor <ian@airs.com>
6520 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6521 with fprintf_filtered, not fprintf_unfiltered.
6523 2003-05-22 Andrew Cagney <cagney@redhat.com>
6525 * stack.c (frame_info): Inline extract_address, replacing it with
6526 extract_unsigned_integer.
6527 * findvar.c (unsigned_pointer_to_address): Ditto.
6528 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6529 * dwarf2expr.c (dwarf2_read_address): Ditto.
6530 * frame.c (frame_pc_unwind): Update comment.
6531 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6533 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6535 * infptrace.c (detach): Call print_sys_errmsg rather than
6536 perror_with_name to issue warning message when errno is non-zero
6537 after calling ptrace detach.
6539 2003-05-21 J. Brobecker <brobecker@gnat.com>
6541 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6542 macro definitions from here...
6543 * hppa-tdep.c: ...to there.
6545 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6547 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6548 register_ptrace_addr(). Fix all callers.
6550 2003-05-21 Andreas Schwab <schwab@suse.de>
6552 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6554 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6556 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6557 (_initialize_m68k_linux_tdep): New function.
6558 (m68k_linux_frame_saved_pc): Make static.
6559 (m68k_linux_extract_return_value): Likewise.
6560 (m68k_linux_store_return_value): Likewise.
6561 (m68k_linux_extract_struct_value_address): Likewise.
6562 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6564 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6565 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6566 (DEPRECATED_FRAME_SAVED_PC): Remove.
6568 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6570 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6571 regset numbering rather than our own.
6573 2003-05-19 David Carlton <carlton@bactrian.org>
6575 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6577 2003-05-19 David Carlton <carlton@bactrian.org>
6579 Partial fix for PR c++/827.
6580 * cp-support.h: Include symtab.h.
6581 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6582 * cp-namespace.c: Update contributors.
6583 (cp_lookup_symbol_nonlocal): New.
6584 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6585 (lookup_symbol_file): Ditto.
6586 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6587 * block.h: Declare block_scope, block_using, block_global_block.
6588 * block.c (block_scope): New.
6589 (block_using, block_global_block): Ditto.
6590 * Makefile.in (cp_support_h): Depend on symtab_h.
6591 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6593 2003-05-19 David Carlton <carlton@bactrian.org>
6595 * language.h (struct language_defn): Add 'la_value_of_this'
6596 and 'la_lookup_symbol_nonlocal' members.
6597 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6598 lookup_symbol_static, lookup_symbol_global,
6599 lookup_symbol_aux_block.
6600 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6601 if we should search fields of this and how to do static/global
6603 (lookup_symbol_aux_block): Make extern.
6604 (basic_lookup_symbol_nonlocal): New.
6605 (lookup_symbol_static, lookup_symbol_global): Ditto.
6606 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6607 'la_lookup_symbol_nonlocal' members.
6608 * c-lang.c (c_language_defn, cplus_language_defn)
6609 (asm_language_defn, minimal_language_defn): Ditto.
6610 * jv-lang.c (java_language_defn): Ditto.
6611 * language.c (unknown_language_defn, auto_language_defn)
6612 (local_language_defn): Ditto.
6613 * m2-lang.c (m2_language_defn): Ditto.
6614 * objc-lang.c (objc_language_defn): Ditto.
6615 * scm-lang.c (scm_language_defn): Ditto.
6616 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6617 * p-lang.c (pascal_language_defn): Ditto for both.
6618 * Makefile.in (f-lang.o): Depend on value_h.
6621 2003-05-19 David Carlton <carlton@bactrian.org>
6623 * block.h: Declare block_static_block.
6624 * block.c (block_static_block): New.
6625 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6626 lookup_symbol_aux_local, calling block_static_block instead.
6627 (lookup_symbol_aux_local): Delete 'static_block' argument.
6629 2003-05-19 David Carlton <carlton@bactrian.org>
6631 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6633 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6635 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6636 register numbers mapping.
6638 2003-05-18 Adam Fedor <fedor@gnu.org>
6640 * symtab.c (completion_list_objc_symbol): New function.
6641 (make_symbol_completion_list): Use it to add ObjC symbols
6642 when looking though the list.
6643 (language_search_unquoted_string): New function.
6644 (make_file_symbol_completion_list): Use it.
6646 2003-05-18 Andreas Schwab <schwab@suse.de>
6648 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6650 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6651 as m68k_linux_extract_return_value.
6652 (DEPRECATED_STORE_RETURN_VALUE): Define as
6653 m68k_linux_store_return_value.
6654 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6655 m68k_linux_extract_struct_value_address.
6656 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6657 get_next_frame, get_frame_base, get_frame_pc.
6658 (m68k_linux_frame_saved_pc): Use get_frame_base.
6659 (m68k_linux_extract_return_value): New function.
6660 (m68k_linux_store_return_value): New function.
6661 (m68k_linux_extract_struct_value_address): New function.
6662 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6664 * c-exp.y (typebase): Remove duplicate occurence of
6665 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6666 of lookup_signed_typename.
6668 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6670 * dwarf2loc.c (find_location_expression): Change type of second
6671 argument to `size_t *'.
6672 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6675 2003-05-18 David Carlton <carlton@bactrian.org>
6677 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6678 'linkage_name'. Add comment.
6679 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6681 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6682 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6683 (lookup_block_symbol): Ditto.
6685 2003-05-16 Andrew Cagney <cagney@redhat.com>
6687 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6688 * gdbarch.h, gdbarch.c: Re-generate.
6689 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6690 * TODO (REGISTER_BYTES): Delete reference.
6691 * alpha-tdep.c (alpha_gdbarch_init): Update.
6692 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6693 * x86-64-tdep.c (x86_64_init_abi): Update.
6694 * vax-tdep.c (vax_gdbarch_init): Update.
6695 * v850-tdep.c (v850_gdbarch_init): Update.
6696 * sparc-tdep.c (sparc_gdbarch_init): Update.
6697 * sh-tdep.c (sh_gdbarch_init): Update.
6698 * s390-tdep.c (s390_gdbarch_init): Update.
6699 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6700 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6701 (ns32k_gdbarch_init_32382): Update.
6702 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6703 * mcore-tdep.c (mcore_gdbarch_init): Update.
6704 * m68k-tdep.c (m68k_gdbarch_init): Update.
6705 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6706 * ia64-tdep.c (ia64_gdbarch_init): Update.
6707 * i386-tdep.c (i386_gdbarch_init): Update.
6708 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6709 * hppa-tdep.c (hppa_gdbarch_init): Update.
6710 * h8300-tdep.c (h8300_gdbarch_init): Update.
6711 * frv-tdep.c (frv_gdbarch_init): Update.
6712 * cris-tdep.c (cris_gdbarch_init): Update.
6713 * avr-tdep.c (avr_gdbarch_init): Update.
6714 * arm-tdep.c (arm_gdbarch_init): Update.
6715 * sparc-tdep.c (sparc_pop_frame): Update.
6716 * rs6000-tdep.c (rs6000_pop_frame): Update.
6717 * remote.c (init_remote_state): Update.
6718 (remote_prepare_to_store): Update.
6719 * remote-vx.c (vx_prepare_to_store): Update.
6720 * remote-sds.c (sds_fetch_registers): Update.
6721 (sds_prepare_to_store): Update.
6722 * remote-array.c: Update.
6723 * regcache.c (init_legacy_regcache_descr): Update.
6724 (init_regcache_descr): Update.
6725 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6726 (mips_o64_extract_return_value): Update.
6727 * irix5-nat.c (fetch_core_registers): Update.
6728 * irix4-nat.c (fetch_core_registers): Update.
6729 * i386-tdep.h: Update.
6730 * hppa-tdep.c (pa_do_registers_info): Update.
6731 (pa_do_strcat_registers_info): Update.
6732 * cris-tdep.c (cris_register_bytes_ok): Update.
6733 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6734 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6735 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6736 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6737 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6738 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6739 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6740 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6741 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6742 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6743 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6744 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6745 (REGISTER_BYTES_OK): Update.
6746 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6747 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6749 2003-05-16 Ian Lance Taylor <ian@airs.com>
6751 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6752 (vax_print_insn, print_insn_arg): Remove static functions.
6753 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6754 print_insn_vax from opcodes library.
6755 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6757 2003-05-15 Andrew Cagney <cagney@redhat.com>
6759 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6760 * target.h (memory_breakpoint_from_pc): Delete declaration.
6761 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6762 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6763 * monitor.c (monitor_insert_breakpoint): Use
6764 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6765 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6766 * gdbarch.h, gdbarch.c: Re-generate.
6767 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6768 (sparc_gdbarch_init): Set breakpoint_from_pc to
6769 sparc_breakpoint_from_pc.
6770 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6771 (BREAKPOINT_FROM_PC): Define.
6772 (sparc_breakpoint_from_pc): Declare.
6773 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6774 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6775 (BREAKPOINT_FROM_PC): Define.
6776 (BREAKPOINT): Delete macro.
6777 * target.h: Update comment.
6778 * s390-tdep.c (s390_gdbarch_init): Update comments.
6779 * remote.c: Update comments.
6780 * remote-mips.c: Update comments.
6781 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6782 * mem-break.c: Update comment.
6783 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6784 (ia64_memory_insert_breakpoint): Update.
6785 * config/sparc/tm-sparc.h: Update comment.
6786 * config/pa/tm-hppa64.h: Update comment.
6787 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6788 (rs6000_breakpoint_from_pc): Update.
6789 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6790 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6791 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6792 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6793 (mips_breakpoint_from_pc): Update.
6794 (mips_dump_tdep): Update.
6796 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6797 * minsyms.c (lookup_minimal_symbol): Inline
6798 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6800 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6801 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6802 * p-lang.c (pascal_printstr): Ditto.
6803 * objc-lang.c (objc_printstr): Ditto.
6804 * m2-lang.c (m2_printstr): Ditto.
6805 * jv-valprint.c (java_print_value_fields): Ditto.
6806 * f-lang.c (f_printstr): Ditto.
6807 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6808 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6809 for repeat_count_threshold.
6810 * Makefile.in (cp-valprint.o): Update dependencies.
6812 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6814 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6815 (examine_prologue): Support looking through leaf functions, knowing
6816 they start with mov r2,r12. Support skipping over indirect stores
6817 of the input registers. Upon hitting a non-nop branch instruction
6818 or predicated instruction, bail out by setting lim_pc to the current
6819 pc value in the loop. At the end, if the lim_pc value is still
6820 beyond our calculated value and we have trust_limit set,
6821 use the lim_pc value.
6823 2003-05-15 Andrew Cagney <cagney@redhat.com>
6825 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6826 generic_find_dummy_frame.
6827 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6828 (deprecated_generic_find_dummy_frame): Update.
6829 (deprecated_read_register_dummy): Update.
6830 * frame.c (deprecated_generic_get_saved_register): Update.
6832 2003-05-15 Theodore A. Roth <troth@openavr.org>
6834 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6835 (avr_gdbarch_init): Set breakpoint_from_pc method.
6837 2003-05-15 Andrew Cagney <cagney@redhat.com>
6839 * regcache.c (build_regcache): Set deprecated_register_valid
6841 (deprecated_grub_regcache_for_register_valid): Delete function.
6842 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6845 2003-05-15 David Carlton <carlton@bactrian.org>
6847 Committed by Elena Zannoni <ezannoni@redhat.com>
6848 * symtab.c (lookup_symbol_aux): Delete calls to
6849 lookup_symbol_aux_minsyms.
6850 (lookup_symbol_aux_minsyms): Comment out function and
6851 prototype. Delete lookup by mangled name.
6853 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6855 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6856 correctly indicate an empty stack and ``stack_allocated'' to the
6857 indicate the number of elements initially allocated.
6858 (dwarf_expr_grow_stack): Simplify method for computing new
6859 stack size. Don't loop infinitely if ``stack_len'' is zero.
6860 (execute_stack_op): Move ``ctx->in_reg'' initialization
6861 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6862 be used in conjuction with DW_OP_piece. Revise error message
6865 2003-05-14 Theodore A. Roth <troth@openavr.org>
6867 * MAINTAINERS: Update my email address.
6868 * avr-tdep.c: Ditto.
6870 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6872 * symtab.h (enum domain_enum): Rename from namespace_enum.
6873 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6874 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6875 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6876 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6877 TYPES_NAMESPACE, METHODS_NAMESPACE.
6878 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6879 (struct symbol, struct partial_symbol): Rename field
6880 'namespace_enum namespace' to 'domain_enum domain'.
6881 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6882 Delete old define kludge for namespace.
6884 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6885 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6886 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6887 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6888 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6889 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6890 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6891 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6892 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6893 occurrences of the above.
6895 2003-05-14 Ian Lance Taylor <ian@airs.com>
6897 * Makefile.in (install-only): Use $(SHELL) when running
6900 2003-05-13 Ian Lance Taylor <ian@airs.com>
6902 * MAINTAINERS (write after approval): Add myself.
6904 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6905 second and third arguments.
6906 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6907 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6909 2003-05-13 Andrew Cagney <cagney@redhat.com>
6911 * defs.h (store_address): Delete declaration.
6912 findvar.c (store_address): Delete function.
6913 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6914 store_unsigned_integer.
6915 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6916 * v850-tdep.c (v850_push_arguments): Ditto.
6917 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6918 * sh-tdep.c (sh64_get_saved_register): Ditto.
6919 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6920 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6921 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6922 (mips_get_saved_register): Ditto.
6923 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6924 (find_func_descr, ia64_push_arguments): Ditto.
6925 * i386-tdep.c (i386_push_arguments): Ditto.
6926 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6927 * frv-tdep.c (frv_push_arguments): Ditto.
6928 * frame.c (legacy_saved_regs_prev_register): Ditto.
6929 (deprecated_generic_get_saved_register): Ditto.
6930 * findvar.c (unsigned_address_to_pointer): Ditto.
6931 * dwarf2read.c (dwarf2_const_value): Ditto.
6932 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6933 * alpha-tdep.c (alpha_push_arguments): Ditto.
6935 2003-05-12 J. Brobecker <brobecker@gnat.com>
6937 * NEWS: Mention that the hppa-hpux port has been partially
6938 multiarched (32bit ABIT only, so far).
6940 2003-05-11 Andrew Cagney <cagney@redhat.com>
6942 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6943 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6944 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6945 sim/testsuite/sim/arm/misaligned2.ms, and
6946 sim/testsuite/sim/arm/misaligned3.ms.
6947 * disasm.h (struct ui_file): Add opaque struct declaration.
6948 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6949 * frame.h (struct ui_file): Ditto.
6951 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6953 * value.h: Pretty print.
6955 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6957 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6959 2003-05-08 Andrew Cagney <cagney@redhat.com>
6961 * regcache.h (max_register_size): Delete declaration.
6962 * regcache.c (max_register_size): Delete function.
6963 (struct regcache_descr): Delete field "max_register_size".
6964 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6965 registers fit in MAX_REGISTER_SIZE.
6966 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6967 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6968 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6969 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6970 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6971 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6972 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6973 * dve3900-rom.c, hppa-tdep.c: Ditto.
6975 2003-05-08 David Carlton <carlton@math.stanford.edu>
6977 * valops.c (push_word): Fix typo.
6979 2003-05-08 Andrew Cagney <cagney@redhat.com>
6981 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6982 * gdbarch.h: Re-generate.
6983 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6984 (legacy_max_register_raw_size): Delete declaration.
6985 * regcache.c (legacy_max_register_raw_size): Delete function.
6986 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6987 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6988 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6989 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6990 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6991 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6992 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6993 * findvar.c, dwarf2cfi.c: Ditto.
6995 2003-05-08 Andrew Cagney <cagney@redhat.com>
6997 * mips-tdep.c (read_signed_register): New function, moved to here
6999 (read_signed_register_pid): Ditto.
7000 * regcache.c (read_signed_register_pid): Delete function, moved to
7002 (read_signed_register): Ditto.
7003 * regcache.h (read_signed_register): Delete declaration.
7004 (read_signed_register_pid): Delete declaration.
7006 2003-05-08 Andrew Cagney <cagney@redhat.com>
7008 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7009 * gdbarch.h: Re-generate.
7010 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7011 (legacy_max_register_virtual_size): Delete declaration.
7012 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7013 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7014 * tracepoint.c (memrange_sortmerge): Ditto.
7015 * sparc-tdep.c (sparc_print_registers): Ditto.
7016 * regcache.c (legacy_max_register_virtual_size): Delete function.
7018 2002-05-08 J. Brobecker <brobecker@gnat.com>
7020 * fork-child.c (escape_bang_in_quoted_argument): New function.
7021 (fork_inferior): Escape '!' characters in quoted arguments
7024 2003-05-08 J. Brobecker <brobecker@gnat.com>
7026 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7027 the language of the CU is not currently supported by GDB.
7029 2003-05-08 J. Brobecker <brobecker@gnat.com>
7031 * defs.h (language): Add language_minimal enum value.
7032 * c-lang.c (minimal_language_defn): New language definition.
7033 (_initialize_c_language): Add the new minimal language to the list
7034 of languages known to GDB.
7036 2003-05-08 Kevin Buettner <kevinb@redhat.com>
7038 * frame.c (get_frame_type): Don't attempt to lazily initialize
7039 frame's unwinder for legacy frames.
7041 2003-05-07 Andrew Cagney <cagney@redhat.com>
7043 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7044 and "regcache" parameters.
7045 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7047 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7049 * dwarf2read.c (dwarf_decode_lines): Only use output of
7050 check_cu_functions() when calling record_line(). Do not update
7051 the current address.
7053 2003-05-07 Andrew Cagney <cagney@redhat.com>
7055 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7058 2003-05-07 Jim Blandy <jimb@redhat.com>
7060 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7061 'maint info symtabs' and 'maint info psymtabs'.
7062 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7063 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7064 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7065 Declarations updated.
7066 * maint.c (maintenance_list_command): Delete.
7067 (_initialize_maint_cmds): Update calls to add_cmd.
7068 * gdbcmd.h (maintenancelistlist): Delete declaration.
7069 * cli/cli-cmds.c (maintenancelistlist): Delete.
7070 (init_cmd_lists): Don't initialize it.
7071 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7073 2003-05-07 Andrew Cagney <cagney@redhat.com>
7075 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7077 (d10v_print_registers_info): Update.
7078 (d10v_dmap_register, d10v_imap_register): Delete functions.
7079 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7080 and "imap_register".
7081 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7082 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7083 * arch-utils.c (generic_remote_translate_xfer_address): Add
7084 "regcache" and "gdbarch" parameters.
7085 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7086 parameter. Change class to multi-arch.
7087 * gdbarch.h, gdbarch.c: Re-generate.
7088 * remote.c (remote_xfer_memory): Use
7089 gdbarch_remote_translate_xfer_address.
7091 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7093 * infrun.c (prev_pc): Move declaration ahead of proceed().
7094 (proceed): Refresh prev_pc value before resuming.
7095 (stop_stepping): Remove code to refresh prev_pc.
7097 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7099 * nto-tdep.c: Removed stray comment.
7101 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7103 * i386-nto-tdep.c: Fix old K&R function definitions.
7104 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7105 Also change add_show_from_set() call to add_setshow_cmd().
7106 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7108 2003-05-05 Andrew Cagney <cagney@redhat.com>
7110 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7111 (fprint_dummy_frames): New function.
7112 (maintenance_print_dummy_frames): New function.
7113 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7114 * frame.c (fprint_frame_id): Make global.
7115 * frame.h (fprint_frame_id): Declare.
7116 * Makefile.in (dummy-frame.o): Update dependencies.
7118 2003-05-05 Andrew Cagney <cagney@redhat.com>
7120 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7121 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7122 SIZEOF_CALL_DUMMY_WORDS.
7123 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7124 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7125 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7126 CALL_DUMMY_BREAKPOINT_OFFSET.
7127 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7128 CALL_DUMMY_START_OFFSET.
7129 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7130 * gdbarch.h, gdbarch.c: Re-generate.
7131 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7132 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7133 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7134 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7135 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7136 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7137 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7138 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7139 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7140 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7141 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7142 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7143 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7144 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7145 * config/sparc/tm-sparc.h: Update.
7147 2003-05-05 Kris Warkentin <kewarken@qnx.com>
7149 * configure.tgt: Add i[3456]86-*-nto*.
7150 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7151 * nto-tdep.c: New file. Neutrino target support routines.
7152 * nto-tdep.h: New file. Neutrino target header.
7153 * config/tm-qnxnto.h: New file.
7154 * config/i386/i386nto.mt: New file.
7155 * config/i386/tm-i386nto.h: New file.
7157 2003-05-04 Andrew Cagney <cagney@redhat.com>
7159 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7160 (load_infrun_state): Ditto.
7161 (struct thread_info): Drop "prev_func_name" field.
7162 * thread.c (load_infrun_state): Update.
7163 (save_infrun_state): Update.
7164 * infrun.c (prev_func_name): Delete variable.
7165 (init_wait_for_inferior): Do not clear prev_func_name.
7166 (stop_stepping, keep_going, context_switch): Do not swap
7168 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7169 instead of PC_IN_SIGTRAMP.
7171 2003-05-04 Andrew Cagney <cagney@redhat.com>
7173 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7174 REGISTER_BYTE with register_offset_hack.
7175 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7176 that REGISTER_BYTE is consistent with the regcache.
7177 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7178 * gdbarch.h, gdbarch.c: Regenerate.
7180 2003-05-04 Mark Kettenis <kettenis@gnu.org>
7182 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7183 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7185 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7187 2003-05-03 J. Brobecker <brobecker@gnat.com>
7189 From Thierry Schneider <tpschneider1@yahoo.com>
7190 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7191 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7192 (mi-cmd-symbol.o): Add rule.
7194 2003-05-03 Andrew Cagney <cagney@redhat.com>
7196 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7197 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7198 * gdbarch.h, gdbarch.c: Re-generate.
7199 * d10v-tdep.c (d10v_push_dummy_code): New function.
7200 (d10v_gdbarch_init): Set push_dummy_code.
7201 * infcall.c (legacy_push_dummy_code): New function.
7202 (generic_push_dummy_code): New function.
7203 (push_dummy_code): New function.
7204 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7205 instead of dummy_addr, to push_dummy_call. Move call to
7206 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7208 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7210 2003-05-03 Andrew Cagney <cagney@redhat.com>
7212 * disasm.h (print_insn): Declare.
7213 * disasm.c (init_gdb_disassemble_info): New function.
7214 (gdb_disassembly): Call init_gdb_disassemble_info.
7215 (gdb_print_insn): New function.
7216 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7217 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7218 * mcore-tdep.c: Include "disasm.h"
7219 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7220 * d10v-tdep.c: Include "disasm.h".
7221 (display_trace): Call gdb_print_insn, instead of print_insn.
7222 (print_insn): Delete function.
7223 * printcmd.c: Include "disasm.h".
7224 (print_insn): Delete function.
7225 (print_formatted): Call gdb_print_insn, instead of print_insn.
7226 * Makefile.in (printcmd.o): Update dependencies.
7227 (mcore-tdep.o, d10v-tdep.o): Ditto.
7229 2003-05-02 Andrew Cagney <cagney@redhat.com>
7231 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7232 PC_REGNUM, re-indent.
7233 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7234 PC_REGNUM isn't set.
7236 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7237 * gdbarch.h, gdbarch.c: Re-generate.
7238 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7239 register_virtual_size, pc_regnum, or register_bytes.
7240 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7241 (d10v_register_type): Use D10V_PC_REGNUM.
7242 (d10v_print_registers_info, d10v_read_pc): Ditto.
7243 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7244 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7246 2003-05-02 David Carlton <carlton@bactrian.org>
7248 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7249 the name with mstrsave.
7251 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7253 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7254 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7255 (host_charset_name, target_charset_name): New vars for use by
7257 (host_charset_enum, target_charset_enum): New enums for set/show
7259 (set_charset_sfunc, set_host_charset_sfunc,
7260 set_target_charset_sfunc): New functions.
7261 (set_host_charset, set_target_charset): Make static.
7262 (list_charsets, set_host_charset_command,
7263 set_target_charset_command): Delete functions.
7264 (show_charset_command): Rewrite as....
7265 (show_charset): Hook this up with the set/show command mechanism.
7266 (_initialize_charset): Change names of charsets to match the
7267 set/show enums. Use host_charset_name and target_charset_name.
7268 Use set/show mechanism for charset, host-charset, target-charset
7269 commands. Do not make 'show host-charset' and 'show
7270 target-charset' be aliases of 'show charset'.
7272 * charset.h (set_host_charset, set_target_charset): Don't export,
7273 they are not used outside the file.
7275 2003-05-01 Andrew Cagney <cagney@redhat.com>
7277 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7278 (gdb_disassembly): Make "di" non static, always initialize and
7279 cleanup. Always use dis_asm_read_memory.
7280 (gdb_dis_asm_read_memory): Delete function.
7282 2003-05-01 Andrew Cagney <cagney@redhat.com>
7284 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7285 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7287 2003-04-30 Andrew Cagney <cagney@redhat.com>
7289 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7290 "tm_print_insn_info".
7291 (TARGET_PRINT_INSN_INFO): Delete macro.
7292 (dis_asm_read_memory): Delete function declaration.
7293 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7294 (tm_print_insn_info): Delete variable definition.
7295 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7296 * gdbarch.h, gdbarch.c: Re-generate.
7297 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7298 "deprecated_tm_print_insn_info".
7299 * mcore-tdep.c (mcore_dump_insn): Ditto.
7300 * mips-tdep.c (mips_gdbarch_init): Ditto.
7301 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7302 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7303 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7304 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7305 instead of TARGET_PRINT_INSN_INFO, add comment.
7306 * s390-tdep.c (s390_get_frame_info): Instead of
7307 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7308 (s390_check_function_end, s390_is_sigreturn): Ditto.
7309 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7310 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7311 * disasm.c: Include "gdbcore.h".
7312 (_initialize_disasm): New function, initialize
7313 "deprecated_tm_print_insn_info".
7314 (deprecated_tm_print_insn_info): New variable.
7315 (dis_asm_read_memory): Moved from "corefile.c", made static.
7316 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7317 * Makefile.in (disasm.o): Update dependencies.
7319 2003-04-30 Andrew Cagney <cagney@redhat.com>
7321 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7323 2003-04-29 Adam Fedor <fedor@gnu.org>
7325 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7326 * infcall.c (find_function_addr): Make non-static.
7327 * infcall.h (find_function_addr): Declare.
7328 * Makefile.in (eval.o): Update dependencies.
7330 2003-04-28 Adam Fedor <fedor@gnu.org>
7332 * symtab.c (symbol_find_demangled_name): Check for and demangle
7334 (symbol_init_demangled_name): Init for language_objc as well.
7336 2003-04-28 Andrew Cagney <cagney@redhat.com>
7338 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7339 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7340 * gdbarch.h, gdbarch.c: Re-generate.
7341 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7342 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7343 * inferior.h (deprecated_read_fp): Rename read_fp.
7344 (generic_target_read_fp): Delete declaration.
7345 * regcache.c (generic_target_read_fp): Delete function.
7346 (deprecated_read_fp): Replace read_fp, use
7347 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7348 * d10v-tdep.c (d10v_read_fp): Delete function.
7349 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7351 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7352 deprecated_target_read_fp to generic_target_read_fp.
7353 * sh-tdep.c (sh_gdbarch_init): Ditto.
7354 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7355 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7356 * frv-tdep.c (frv_gdbarch_init): Ditto.
7358 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7359 deprecated_fp_regnum.
7360 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7361 * vax-tdep.c (vax_gdbarch_init): Ditto.
7362 * v850-tdep.c (v850_gdbarch_init): Ditto.
7363 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7364 * sh-tdep.c (sh_gdbarch_init): Ditto.
7365 * s390-tdep.c (s390_gdbarch_init): Ditto.
7366 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7367 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7368 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7369 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7370 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7371 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7372 * i386-tdep.c (i386_gdbarch_init): Ditto.
7373 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7374 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7375 * frv-tdep.c (frv_gdbarch_init): Ditto.
7376 * cris-tdep.c (cris_gdbarch_init): Ditto.
7377 * avr-tdep.c (avr_gdbarch_init): Ditto.
7378 * arm-tdep.c (arm_gdbarch_init): Ditto.
7379 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7381 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7382 * v850-tdep.c (v850_gdbarch_init): Ditto.
7383 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7384 * sh-tdep.c (sh_gdbarch_init): Ditto.
7385 * s390-tdep.c (s390_gdbarch_init): Ditto.
7386 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7387 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7388 * mips-tdep.c (mips_gdbarch_init): Ditto.
7389 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7390 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7391 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7392 * frv-tdep.c (frv_gdbarch_init): Ditto.
7393 * avr-tdep.c (avr_gdbarch_init): Ditto.
7394 * arm-tdep.c (arm_gdbarch_init): Ditto.
7396 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7397 DEPRECATED_FP_REGNUM.
7398 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7399 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7400 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7401 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7402 (sparc32_register_virtual_type): Ditto.
7403 * sh-tdep.c (sh64_frame_chain): Ditto.
7404 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7405 (sh_nofp_frame_init_saved_regs): Ditto.
7406 (sh64_nofp_frame_init_saved_regs): Ditto.
7407 (sh_fp_frame_init_saved_regs): Ditto.
7408 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7409 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7410 * procfs.c (procfs_fetch_registers): Ditto.
7411 (procfs_store_registers): Ditto.
7412 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7413 (store_inferior_registers, fetch_core_registers): Ditto.
7414 (fetch_kcore_registers, clear_regs): Ditto.
7415 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7416 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7417 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7418 * nlm/i386.c (do_status): Ditto.
7419 * mipsv4-nat.c (supply_gregset): Ditto.
7420 * mips-tdep.c: Ditto for comments.
7421 * mips-nat.c (fetch_inferior_registers): Ditto.
7422 (store_inferior_registers, fetch_core_registers): Ditto.
7423 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7424 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7425 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7426 (i386_do_pop_frame, i386_register_type): Ditto.
7427 * hppa-tdep.c (hppa_frame_chain): Ditto.
7428 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7429 (hppa_pop_frame, hppa_read_fp): Ditto.
7430 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7431 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7432 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7433 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7434 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7435 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7436 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7437 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7438 * blockframe.c: Ditto for comments.
7439 * arch-utils.h: Ditto for comments.
7440 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7441 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7442 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7443 * alpha-tdep.h: Ditto for comments.
7444 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7445 (alpha_cannot_store_register): Ditto.
7446 (alpha_push_dummy_frame): Ditto.
7447 * alpha-nat.c (supply_gregset): Ditto.
7449 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7450 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7451 * config/sparc/tm-sparc.h: Update comment.
7453 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7454 deprecated_read_fp instead of TARGET_READ_FP.
7455 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7456 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7457 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7458 deprecated_read_fp instead of read_fp.
7459 * s390-tdep.c (s390_push_arguments): Ditto.
7460 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7461 * frame.h: Ditto in comments.
7462 * frame.c (legacy_get_prev_frame): Ditto.
7463 * dummy-frame.c (dummy_frame_this_id): Ditto.
7464 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7466 2003-04-28 Andrew Cagney <cagney@redhat.com>
7468 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7469 * gdbarch.h, gdbarch.c: Re-generate.
7470 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7471 * vax-tdep.c (_initialize_vax_tdep): Update.
7472 * v850-tdep.c (_initialize_v850_tdep): Update.
7473 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7474 * s390-tdep.c (_initialize_s390_tdep): Update.
7475 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7476 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7477 * mips-tdep.c (_initialize_mips_tdep): Update.
7478 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7479 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7480 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7481 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7482 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7483 * frv-tdep.c (_initialize_frv_tdep): Update.
7484 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7485 (_initialize_cris_tdep): Update.
7486 * arch-utils.c (legacy_print_insn): Update.
7487 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7489 2003-04-26 Adam Fedor <fedor@gnu.org>
7491 * linespec.c (decode_objc): New function to decode ObjC calls
7492 (decode_line_1): Check for ObjC calls (using decode_objc)
7493 * Makefile (linespec.o): Update dependencies.
7495 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7497 * breakpoint.h (struct breakpoint_ops): New.
7498 (struct breakpoint): Add ops member.
7500 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7501 (mention): Use new breakpoint ops member.
7502 (set_raw_breakpoint): Initialize ops field to NULL.
7503 (print_exception_catchpoint, print_one_exception_catchpoint)
7504 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7505 (gnu_v3_exception_catchpoint_ops): New.
7506 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7508 2003-04-25 Adam Fedor <fedor@gnu.org>
7510 * Makefile.in (COMMON_OBS): Add objc-lang.o
7512 2003-04-25 Andrew Cagney <cagney@redhat.com>
7514 * d10v-tdep.c (print_insn): Delete function.
7515 (display_trace): Use TARGET_PRINT_INSN.
7516 (_initialize_d10v_tdep): Do not set tm_print_insn.
7517 (d10v_gdbarch_init): Set print_insn.
7519 2003-04-25 Andrew Cagney <cagney@redhat.com>
7521 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7522 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7523 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7524 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7525 (nr_dmap_regs, a0_regnum): ... new functions.
7526 (d10v_print_registers_info): Use a0_regnum, use register_size.
7527 (d10v_register_byte): Delete function.
7528 (d10v_register_raw_size): Delete function.
7529 (d10v_register_type): Use a0_regnum.
7530 (d10v_print_registers_info): Use a0_regnum.
7531 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7532 (d10v_gdbarch_init): Do not set register_byte or
7533 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7534 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7536 (trace_command): Use XCALLOC.
7537 (print_insn): Delete reference to tm_print_insn.
7538 (saved_regs_unwinder): Use store_unsigned_integer instead of
7540 * frame.h (FRAME_OBSTACK_CALLOC): Define
7542 2003-04-25 David Carlton <carlton@bactrian.org>
7544 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7546 2003-04-24 Adam Fedor <fedor@gnu.org>
7548 * objc-lang.c: Include "valprint.h"
7549 * Makefile.in (objc-lang.o): Update dependencies.
7551 2003-04-24 Adam Fedor <fedor@gnu.org>
7553 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7554 architecture dependant compilation and mark as unimplemented
7555 (until they get put in the gdbarch vector).
7557 2003-04-23 David Carlton <carlton@bactrian.org>
7559 * cp-support.c (cp_find_first_component): Accept 'operator' in
7562 2003-04-23 Andrew Cagney <cagney@redhat.com>
7564 * infcall.c (call_function_by_hand): Eliminate redundant
7565 indentation. Move "saved_async" and "old_cleanups" to where they
7568 2003-04-23 Andrew Cagney <cagney@redhat.com>
7570 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7571 and "buffer". Move the "name" code to where it is needed.
7573 2003-04-23 Andrew Cagney <cagney@redhat.com>
7575 * infcall.c (call_function_by_hand): Move variables "start_sp",
7576 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7577 code to ON_STACK switch branch.
7579 2003-04-23 Andrew Cagney <cagney@redhat.com>
7581 * infcall.c (call_function_by_hand): Make declaration of "i",
7582 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7585 2003-04-23 Andrew Cagney <cagney@redhat.com>
7587 * infcall.c (call_function_by_hand): Delete variable
7588 "n_method_args". Localize "param_type"'s declaration to the loop
7589 that it is used. Reinstate code assigning to said variable -
7590 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7591 Rationalize code using "param_type".
7593 2003-04-22 Andrew Cagney <cagney@redhat.com>
7595 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7596 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7597 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7598 to DEPRECATED_PUSH_RETURN_ADDRESS.
7600 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7602 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7603 on the DWARF2 register number prior to fetching a register.
7605 2003-04-22 J. Brobecker <brobecker@gnat.com>
7607 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7608 Update all the tests using SOFT_FLOAT considering the fact that
7609 this macro was always set to 0.
7610 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7611 considering the fact that this macro was always set to 0.
7612 * hppa-tdep.h (hppa_store_return_value): Likewise.
7613 (hppa_extract_return_value): Likewise.
7615 2003-04-22 J. Brobecker <brobecker@gnat.com>
7617 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7618 the hppa-pro target only.
7620 2003-04-21 J. Brobecker <brobecker@gnat.com>
7622 Ongoing multi-arch conversion effort for HP/UX:
7623 * config/pa/tm-hppa.h: Move all macro that are no longer
7624 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7625 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7627 2003-04-21 J. Brobecker <brobecker@gnat.com>
7629 * config/pa/tm-hppa.h: Obsolete a section that was only used
7632 2003-04-21 J. Brobecker <brobecker@gnat.com>
7634 Ongoing multi-arch conversion for HP/UX.
7635 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7636 if already defined (allows hppa64 to stay non-multiarched for now).
7637 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7639 2003-04-21 Andrew Cagney <cagney@redhat.com>
7641 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7643 2003-04-21 Andrew Cagney <cagney@redhat.com>
7645 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7646 "i386_num_mmx_regs".
7648 2003-04-21 Andrew Cagney <cagney@redhat.com>
7650 * infcall.c: New file.
7651 * infcall.h: New file.
7652 * valarith.c: Include "infcall.h".
7653 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7654 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7655 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7656 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7657 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7658 (SFILES): Add "infcall.c"
7659 (COMMON_OBS): Add "infcall.o".
7660 (infcall.o): Specify dependencies.
7661 * value.h (call_function_by_hand): Delete declaration.
7662 * inferior.h (run_stack_dummy): Delete declaration.
7663 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7664 (run_stack_dummy): Move to "infcall.c", merged into
7665 call_function_by_hand.
7666 * valops.c (call_function_by_hand): Moved to "infcall.c".
7667 (find_function_addr, value_arg_coerce): Ditto.
7668 (unwindonsignal_p, coerce_float_to_double): Ditto.
7669 (_initialize_valops): Move "set/show coerce-float-to-double", and
7670 "set/show unwindonsignal" commands to "infcall.c".
7671 * v850-tdep.c, target.h: Update comments.
7672 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7673 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7674 (sh64_init_extra_frame_info): Update comments.
7675 * mn10300-tdep.c: Update comments.
7676 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7677 * config/sparc/tm-sparc.h: Update comments.
7678 * breakpoint.h: Update comments.
7679 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7680 * arm-tdep.c: Update comment.
7682 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7684 * i386-tdep.c (i386_num_register_names): New variable.
7685 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7686 (MM0_REGNUM): Remove redundant parentheses in define.
7687 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7688 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7689 i386_mxcsr_regnum_p): Remove redundant parentheses.
7690 (i386_register_name): Use i386_num_register_names.
7692 * i386-tdep.c (i386_extract_return_value,
7693 i386_store_return_value): Correct check for availability of
7694 floating-point registers.
7696 * i386-tdep.c (i386_frame_num_args): Remove function.
7697 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7699 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7700 mmx_regnum_to_fp_regnum. Adjust all callers.
7702 * i386-tdep.c (i386_get_longjmp_target): Use
7703 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7704 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7707 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7709 * core-regset.c: Update comments to reflect reality. Re-order
7711 (fetch_core_registers): Use switch instead of if. Remove
7712 redundant prototype.
7714 2003-04-18 Jim Blandy <jimb@redhat.com>
7716 * s390-tdep.c (s390_frame_align): New function.
7717 (s390_gdbarch_init): Register it with the gdbarch object.
7719 2003-04-17 Richard Henderson <rth@redhat.com>
7721 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7723 2003-04-17 Michael Snyder <msnyder@redhat.com>
7724 Karen Bennet <bennet@redhat.com>
7726 Committed by Elena Zannoni <ezannoni@redhat.com>
7727 * gdb_gcore.sh: New script to create a core dump of a process.
7729 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7731 * values.c (value_being_returned): Don't fetch the return
7732 value if the return type is void.
7734 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7736 * thread-db.c: Reindented.
7738 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7740 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7741 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7768 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7770 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7771 the size of ``long double'' to 16, instead of 8.
7773 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7775 * i386-linux-nat.c: Add some whitespace to make things more
7777 (fetch_register, store_register, fetch_inferior_registers,
7778 store_inferior_registers): Get rid of assignment in if-statement.
7779 (store_register): Fix typo in error message.
7781 2003-04-16 Andrew Cagney <cagney@redhat.com>
7783 * utils.c (xmmalloc): Always allocate something, matches
7784 libiberty/xmalloc's semantics.
7785 (xmrealloc, xmcalloc): Ditto.
7787 2003-04-16 Andrew Cagney <cagney@redhat.com>
7789 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7791 (get_frame_type): Initialize unwind and type when needed.
7792 (get_frame_id, frame_register_unwind): Ditto.
7794 2003-04-16 Andrew Cagney <cagney@redhat.com>
7796 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7798 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7799 * sparcl-stub.c: Obsolete file.
7800 * config/sparc/tm-sparclet.h: Obsolete file.
7801 * sparclet-stub.c: Obsolete file.
7802 * sparclet-rom.c: Obsolete file.
7803 * sparcl-tdep.c: Obsolete file.
7804 * config/sparc/tm-sparclite.h: Obsolete file.
7805 * config/sparc/sparclite.mt: Obsolete file.
7806 * config/sparc/sparclet.mt: Obsolete file.
7807 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7808 sparc86x-*-* obsolete.
7810 2003-04-15 David Carlton <carlton@math.stanford.edu>
7812 * Makefile.in (SFILES): Add cp-namespace.c.
7813 (COMMON_OBS): Add cp-namespace.o.
7814 (block.o): Depend on gdb_obstack_h and cp_support_h.
7815 (buildsym.o): Depend on cp_support_h.
7816 (cp-namespace.o): New.
7817 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7818 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7819 (dwarf2read.o): Depend on cp_support_h.
7820 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7821 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7822 processing_current_namespace.
7823 (read_namespace): Update processing_current_namespace; check for
7824 anonymous namespaces.
7825 (dwarf2_name): New function.
7826 (dwarf2_extension): Ditto.
7827 * cp-support.h: Update copyright, contributors.
7828 Add inclusion guards.
7829 Add opaque declaration for structs obstack, block, symbol.
7830 (struct using_direct): New struct.
7831 Add declarations for cp_find_first_component,
7832 cp_entire_prefix_len, processing_has_namespace_info,
7833 processing_current_namespace, cp_is_anonymous,
7834 cp_add_using_directive, cp_initialize_namespace,
7835 cp_finalize_namespace, cp_set_block_scope,
7836 cp_scan_for_anonymous_namespaces.
7837 * cp-namespace.c: New file.
7838 * cp-support.c: Update copyright.
7839 Include ctype.h, gdb_assert.h, gdbcmd.h.
7840 New variable maint_cplus_cmd_list.
7841 (cp_find_first_component): New function.
7842 (cp_entire_prefix_len, maint_cplus_command)
7843 (first_component_command, _initialize_cp_support): Ditto.
7844 * buildsym.c: Include cp-support.h.
7845 New variable using_list.
7846 (add_symbol_to_list): Check for anonymous namespaces.
7847 (finish_block): Set block's scope.
7848 (start_symtab): Initialize C++ namespace support.
7849 (end_symtab): Finalize C++ namespace support.
7850 * block.h: Add opaque declarations for structs
7851 block_namespace_info, using_direct, and obstack.
7852 Add declarations for block_set_scope and block_set_using.
7853 (struct block): Add 'language_specific' member.
7854 (BLOCK_NAMESPACE): New macro.
7855 * block.c: Include gdb_obstack.h and cp-support.h.
7856 (struct block_namespace_info): New struct.
7857 (block_set_scope): New function.
7858 (block_set_using, block_initialize_namespace): Ditto.
7860 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7862 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7863 (locate_base): Return early if there aren't any link map offsets.
7864 (svr4_solib_create_inferior_hook): Warn if shared library support
7867 2003-04-14 David Carlton <carlton@math.stanford.edu>
7869 * symtab.c (symbol_set_names): Add prefix when storing Java names
7870 in hash table. Fix for PR java/1039.
7872 2003-04-14 David Carlton <carlton@math.stanford.edu>
7874 * symtab.c (symbol_set_names): Rename 'name' arg to
7875 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7876 * symtab.h: Change 'name' argument in declaration of
7877 symbol_set_names to 'linkage_name'.
7878 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7880 2003-04-14 Andrew Cagney <cagney@redhat.com>
7882 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7883 return the fully sign-extended register value.
7884 (get_frame_pointer): Ditto.
7885 (mips_pop_frame): Initialize "proc_desc" after checking for a
7888 2003-04-14 Andrew Cagney <cagney@redhat.com>
7890 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7891 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7892 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7893 (mips_push_register): Delete function.
7894 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7897 2003-04-14 Jim Blandy <jimb@redhat.com>
7899 * symmisc.c: #include "gdb_regex.h".
7900 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7902 * maint.c (maintenance_list_command): New function.
7903 (_initialize_maint_cmds): Register the above as commands.
7904 * symtab.h (maintenance_list_symtabs,
7905 maintenance_list_psymtabs): New declarations.
7906 * cli/cli-cmds.c (maintenancelistlist): New variable.
7907 (init_cmd_lists): Initialize it.
7908 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7909 * gdbcmd.h (maintenancelistlist): New declaration.
7910 * Makefile.in (symmisc.o): Update dependencies.
7912 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7914 * s390-nat.c: Include asm/types.h for addr_t.
7916 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7918 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7919 actually incoming type.
7921 2003-04-13 Andrew Cagney <cagney@redhat.com>
7923 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7924 get_next_frame and get_frame_saved_regs.
7926 2003-04-13 Andrew Cagney <cagney@redhat.com>
7928 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7929 of gdbarch_num_regs.
7931 2003-04-13 Andrew Cagney <cagney@redhat.com>
7933 * frame.h: Mention what replaced what in "struct frame_info".
7934 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7935 deprecated_update_frame_base_hack and
7936 deprecated_update_frame_pc_hack.
7937 * hppa-tdep.c: Ditto.
7939 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7941 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7942 to read_reg and update its comment. Remove regnum member.
7943 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7944 Don't call read_reg when setting in_reg. Call read_reg to get
7945 the frame base if it's in a register. Return the register number
7946 on the stack instead of in the context. Remove extra arguments
7948 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7949 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7950 the register number on the expression stack.
7951 (needs_frame_read_reg): Remove extra arguments.
7953 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7955 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7957 (execute_stack_op): All callers updated.
7958 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7959 * dwarf2loc.c (find_location_expression): New function.
7960 (dwarf_expr_frame_base): Call it.
7961 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7962 (dwarf2_tracepoint_var_ref): New function, broken out from
7963 locexpr_tracepoint_var_ref.
7964 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7966 (loclist_read_variable, loclist_read_needs_frame): New functions.
7967 (loclist_describe_location, loclist_tracepoint_var_ref): New
7969 (dwarf2_loclist_funcs): New struct location_funcs.
7970 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7971 (struct dwarf2_locexpr_baton): Add comments.
7972 (dwarf2_loclist_funcs): New extern.
7973 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7974 base_address and base_known.
7975 (dwarf_loc_buffer): New variable.
7976 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7977 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7978 (dwarf2_has_info): Initialize dwarf_loc_offset.
7979 (dwarf2_build_psymtabs): Read in .debug_loc.
7980 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7982 (psymtab_to_symtab_1): Likewise. Move base address calculation
7984 (dwarf2_get_pc_bounds): ... here. Use the base address from
7986 (dwarf2_symbol_mark_computed): Handle location lists.
7988 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7990 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7991 if the linkage name demangled successfully.
7993 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7995 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7996 disassmbly_flavour): Removed.
7998 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8000 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8002 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8004 2003-04-12 Andrew Cagney <cagney@redhat.com>
8006 * frame.h (struct frame_info): Move definition from here ...
8007 * frame.c (struct frame_info): ... to here.
8009 2003-04-12 Andrew Cagney <cagney@redhat.com>
8011 * gdbthread.h (save_infrun_state): Delete parameter
8013 (struct thread_info): Delete field "prev_func_start".
8014 (load_infrun_state): Ditto.
8015 * thread.c (load_infrun_state, save_infrun_state): Update.
8016 * infrun.c (prev_func_start): Delete variable.
8017 (context_switch, init_wait_for_inferior): Update.
8018 (stop_stepping, keep_going): Update.
8020 2003-04-12 Andrew Cagney <cagney@redhat.com>
8022 * gdbarch.sh: Add missing opaque declarations.
8023 * gdbarch.h: Regnerate.
8024 * symtab.h: Add missing opaque declarations.
8025 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8026 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8027 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8028 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8029 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8030 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8031 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8032 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8033 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8034 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8035 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8036 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8037 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8039 2003-04-11 Andrew Cagney <cagney@redhat.com>
8041 * frame.c (get_frame_id): Return this frame's "id".
8042 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8044 (legacy_saved_regs_this_id): Replace function body with
8046 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8047 FRAME_OBSTACK_ZALLOC.
8048 (create_new_frame): Mark the frame ID as valid.
8050 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
8052 * Makefile.in (libbfd_h): Added missing setting.
8053 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8054 according to the selected ABI.
8056 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8058 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8060 2003-04-11 Andrew Cagney <cagney@redhat.com>
8062 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8063 SAVED_PC_AFTER_CALL.
8064 * gdbarch.h, gdbarch.c: Regenerate.
8065 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8066 * x86-64-tdep.c (x86_64_init_abi): Update.
8067 * vax-tdep.c (vax_gdbarch_init): Update.
8068 * v850-tdep.c (v850_gdbarch_init): Update.
8069 * sparc-tdep.c (sparc_gdbarch_init): Update.
8070 * sh-tdep.c (sh_gdbarch_init): Update.
8071 * s390-tdep.c (s390_gdbarch_init): Update.
8072 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8073 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8074 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8075 * mips-tdep.c (mips_gdbarch_init): Update.
8076 * mcore-tdep.c (mcore_gdbarch_init): Update.
8077 * m68k-tdep.c (m68k_gdbarch_init): Update.
8078 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8079 * ia64-tdep.c (ia64_gdbarch_init): Update.
8080 (ia64_saved_pc_after_call): Update declaration.
8081 * i386ly-tdep.c (i386lynx_init_abi): Update.
8082 * i386-tdep.c (i386_gdbarch_init): Update.
8083 * hppa-tdep.c (hppa_gdbarch_init): Update.
8084 * h8300-tdep.c (h8300_gdbarch_init): Update.
8085 * frv-tdep.c (frv_gdbarch_init): Update.
8086 * cris-tdep.c (cris_gdbarch_init): Update.
8087 * avr-tdep.c (avr_gdbarch_init): Update.
8088 * arm-tdep.c (arm_gdbarch_init): Update.
8089 * alpha-tdep.c (alpha_gdbarch_init): Update.
8090 * ns32knbsd-nat.c (frame_num_args): Update.
8091 * ns32k-tdep.c (umax_frame_num_args): Update.
8092 * mips-tdep.c (mips_init_frame_pc_first): Update.
8093 * infrun.c (step_over_function): Update.
8094 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8095 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8096 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8097 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8098 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8099 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8100 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8101 * arch-utils.c (init_frame_pc_default): Update.
8102 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8103 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8106 2003-04-11 Andrew Cagney <cagney@redhat.com>
8108 * i387-tdep.c: Update copyright.
8109 (i387_to_double): Delete function.
8110 (double_to_i387): Delete function.
8112 2003-04-10 Andrew Cagney <cagney@redhat.com>
8114 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8115 frame's function's address. Simplify.
8116 (d10v_frame_unwind_cache): Check that the frame's function is
8119 2003-04-10 Jim Blandy <jimb@redhat.com>
8121 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8122 call to set_gdbarch_deprecated_push_arguments.
8124 2003-04-10 Andrew Cagney <cagney@redhat.com>
8126 * frame.c (fprint_frame_id): New function.
8127 (fprint_frame_type, fprint_frame): New function.
8128 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8129 (create_sentinel_frame, get_frame_id): Ditto.
8130 (frame_id_p, frame_id_eq): Ditto.
8131 (frame_id_inner, create_new_frame): Ditto.
8132 (legacy_get_prev_frame, get_prev_frame): Ditto.
8133 (deprecated_update_frame_pc_hack): Ditto.
8134 (frame_register_unwind): Ditto.
8135 (deprecated_update_frame_base_hack): Ditto.
8137 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8139 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8140 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8141 frame_chain function.
8142 * Makefile.in: Add dependencies due to above change.
8144 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8146 * blockframe.c (legacy_frame_chain_valid): Move call to
8147 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8150 2003-04-09 Andrew Cagney <cagney@redhat.com>
8152 * frame.h (struct frame_id): Replace "pc" and "base" with
8153 "stack_addr" and "code_addr". Update comments.
8154 (frame_id_build): Update parameter names and comment.
8155 (struct frame_info): Replace "id_p" and "id" with "this_id".
8156 * dummy-frame.c (dummy_frame_this_id): Update.
8157 * breakpoint.c (print_one_breakpoint): Update.
8158 * frame.c (get_frame_id): Update.
8159 (get_frame_base, frame_id_build): Update.
8160 (create_sentinel_frame, legacy_get_prev_frame): Update.
8161 (deprecated_update_frame_base_hack): Update.
8162 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8163 (frame_id_inner): Ditto.
8165 2003-04-09 Andrew Cagney <cagney@redhat.com>
8167 * defs.h (gdb_print_host_address): Make "addr" parameter a
8169 * utils.c (gdb_print_host_address): Update.
8171 2003-04-09 Kevin Buettner <kevinb@redhat.com>
8173 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8174 register number for R0 is 0.
8176 2003-04-09 J. Brobecker <brobecker@gnat.com>
8178 * frame.h (struct gdbarch): Add opaque structure definition
8179 to avoid a compilation warning on LynxOS 4.0.
8181 2003-04-09 Andrew Cagney <cagney@redhat.com>
8183 * frame.h (struct frame_info): Delete field "pc". Replace
8184 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8186 * frame.c (frame_pc_unwind): Update.
8187 (create_sentinel_frame): Do not set "pc".
8188 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8189 (get_frame_pc): Call frame_pc_unwind.
8190 (deprecated_update_frame_pc_hack): Update.
8191 (create_new_frame): Use "pc" not "->pc".
8193 2003-04-09 Andrew Cagney <cagney@redhat.com>
8195 * frame.c (get_frame_id): Eliminate code updating "frame".
8196 (legacy_get_prev_frame): Ditto.
8197 (get_frame_base): Return id.base directly.
8198 (deprecated_update_frame_base_hack): Update "id.base".
8199 * frame.h (struct frame_info): Delete field "frame".
8201 2003-04-09 Andrew Cagney <cagney@redhat.com>
8203 * NEWS: Mention that the "Sequent family" is obsolete.
8204 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8205 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8206 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8207 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8208 * config/i386/tm-ptx4.h: Obsolete file.
8209 * config/i386/tm-ptx.h: Obsolete file.
8210 * symm-tdep.c: Obsolete file.
8211 * config/i386/symmetry.mt: Obsolete file.
8212 * config/i386/tm-symmetry.h: Obsolete file.
8213 * symm-nat.c: Obsolete file.
8214 * config/i386/nm-symmetry.h: Obsolete file.
8215 * config/i386/xm-symmetry.h: Obsolete file.
8216 * config/i386/symmetry.mh: Obsolete file.
8217 * config/i386/nm-ptx4.h: Obsolete file.
8218 * config/i386/ptx4.mh: Obsolete file.
8219 * config/i386/ptx.mt: Obsolete file.
8220 * config/i386/ptx.mh: Obsolete file.
8221 * config/i386/xm-ptx4.h: Obsolete file.
8222 * config/i386/xm-ptx.h: Obsolete file.
8224 2003-04-09 Andrew Cagney <cagney@redhat.com>
8226 Obsolete mips*-*-mach3*.
8227 * NEWS: Mention that mips*-*-mach3* is obsolete.
8228 * m3-nat.c: Obsolete file.
8229 * config/nm-m3.h: Obsolete file.
8230 * config/mips/tm-mipsm3.h: Obsolete file.
8231 * config/mips/mipsm3.mt: Obsolete file.
8232 * config/mips/mipsm3.mh: Obsolete file.
8233 * config/mips/xm-mipsm3.h: Obsolete file.
8234 * mipsm3-nat.c: Obsolete file.
8235 * configure.host: Obsolete mips-dec-mach3*.
8236 * configure.tgt: Obsolete mips*-*-mach3*.
8238 2003-04-09 Andrew Cagney <cagney@redhat.com>
8240 * doublest.h: Update copyright.
8241 (deprecated_store_floating, deprecated_extract_floating): Rename
8242 store_floating and extract_floating. Update comments.
8243 * doublest.c: Update copyright.
8244 (extract_floating_by_length): Replace extract_floating.
8245 (store_floating_by_length): Replace store_floating.
8246 (deprecated_extract_floating): New function.
8247 (deprecated_store_floating): New function.
8248 (extract_typed_floating): Call extract_floating_by_length.
8249 (store_typed_floating): Call store_floating_by_length.
8250 * x86-64-tdep.c (x86_64_store_return_value): Update.
8251 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8252 (sh64_extract_return_value): Update.
8253 (sh_sh4_register_convert_to_virtual): Update.
8254 (sh_sh64_register_convert_to_virtual): Update.
8255 (sh_sh4_register_convert_to_raw): Update.
8256 (sh_sh64_register_convert_to_raw): Update.
8257 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8258 (rs6000_register_convert_to_raw): Update.
8259 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8260 (ia64_register_convert_to_raw): Update.
8261 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8262 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8263 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8264 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8265 (alpha_register_convert_to_raw): Update.
8267 2003-04-08 Andrew Cagney <cagney@redhat.com>
8269 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8270 * gdbarch.h, gdbarch.c: Re-generate.
8271 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8272 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8273 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8274 conditionally, use frame_pc_unwind as an alternative. Add
8276 * arch-utils.c (init_frame_pc_default): Only call
8277 SAVED_PC_AFTER_CALL when available.
8279 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8281 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8282 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8283 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8284 (start_remote): Ditto.
8285 (handle_inferior_event): Ditto.
8286 (save_inferior_status): Ditto.
8287 (restore_inferior_status): Ditto.
8288 * infcmd.c (attach_command): Ditto.
8289 * fork-child.c (startup_inferior): Ditto.
8290 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8291 * alpha-tdep.c (heuristic_proc_start): Ditto.
8292 * mips-tdep.c (heuristic_proc_start): Ditto.
8293 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8294 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8295 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8296 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8297 * remote-vx.c (vx_create_inferior): Ditto.
8299 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8301 * infrun.c (stop_soon_quietly): Make it an enum, to better
8302 override the default behavior of handle_inferior_event.
8303 (clear_proceed_status): Update uses of stop_soon_quietly to
8304 reflect that it is now an enum.
8305 (start_remote): Ditto.
8306 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8307 is set to handle the new GNU/Linux kernel behavior for
8308 attach/sigstop. Update uses of stop_soon_quietly.
8309 * inferior.h (enum stop_kind): New enum.
8310 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8311 Reset normal handle_inferior_event behavior, afterwards.
8312 * fork-child.c (startup_inferior): Update.
8313 * alpha-tdep.c (heuristic_proc_start): Update.
8314 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8315 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8316 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8317 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8318 * remote-vx.c (vx_create_inferior): Update.
8319 * mips-tdep.c (heuristic_proc_start): Update.
8321 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8323 * disasm.c (dump_insns): Move variables inside loop, or they will
8324 be freed more than once, causing wild memory corruptions.
8325 (gdb_disassembly): Look for the substring "-thread",
8326 instead of "-threads" in the target name, to make sure to find
8327 the 'multi-thread' target. Also, make sure we do the right thing
8328 with the "core" target.
8330 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8332 * mips-tdep.c (mips_print_fp_register): New function, created from
8333 do_fp_register_row(). Registers are now (also) printed as hex.
8334 Only one register is printed per row.
8335 (mips_print_register, do_fp_register_row): Print floating point
8336 registers with mips_print_fp_register().
8338 2003-04-06 Andrew Cagney <cagney@redhat.com>
8340 * valprint.h (inspect_it): Add extern declaration.
8341 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8342 (selectors_info, classes_info): Ditto.
8343 (find_objc_msgcall): Fix indentation.
8344 (objc_printstr): Delete extern declarations.
8346 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8348 2003-04-06 Andrew Cagney <cagney@redhat.com>
8350 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8352 * frame.c (legacy_saved_regs_this_id): Update.
8353 (legacy_get_prev_frame): Update.
8354 * xstormy16-tdep.c: Update comment.
8355 * sparc-tdep.c (sparc_frame_chain): Update comment.
8356 * blockframe.c (legacy_frame_chain_valid): Update.
8358 2003-04-06 Andrew Cagney <cagney@redhat.com>
8360 * valprint.c (val_print_type_code_int): Delete #ifdef
8361 PRINT_TYPELESS_INTEGER code.
8363 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8364 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8365 multi-arch definition.
8366 * gdbarch.h: Re-generate.
8368 2003-04-05 Andrew Cagney <cagney@redhat.com>
8370 Eliminate FRAME_FIND_SAVED_REGS.
8371 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8372 Change FSR parameter to a pointer.
8373 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8374 Assume FSR parameter is a pointer.
8375 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8377 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8378 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8379 saved_regs a pointer.
8380 (hppa_frame_saved_pc): Ditto.
8381 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8382 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8384 (restore_pc_queue): Make fsr a pointer.
8385 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8386 (hppa_frame_chain): Make saved_regs a pointer, call
8387 hppa_frame_init_saved_regs.
8388 * sparc-tdep.c: Include "gdb_assert.h".
8389 (sparc_frame_find_saved_regs): Replace internal_error with
8391 * remote-vxsparc.c (vx_read_register): Delete reference to
8392 FRAME_FIND_SAVED_REGS.
8393 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8394 * gdbarch.h: Regenerate.
8395 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8396 (deprecated_get_frame_saved_regs): Delete declaration.
8397 (struct frame_saved_regs): Delete definition.
8398 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8399 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8400 (hppa_frame_find_saved_regs): Delete declaration.
8401 (FRAME_FIND_SAVED_REGS): Delete macro.
8402 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8403 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8404 FRAME_FIND_SAVED_REGS in comment.
8406 2003-04-05 Andrew Cagney <cagney@redhat.com>
8408 * frame.c (frame_func_unwind, get_frame_func): New functions.
8409 * frame.h (get_frame_func, frame_func_unwind): Declare.
8410 (struct frame_info): Add field "prev_func" for caching the
8411 previous frame's function address.
8412 * arm-tdep.c (arm_frameless_function_invocation): Combine
8413 get_pc_function_start and get_frame_pc into get_frame_func.
8414 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8415 (sh64_nofp_frame_init_saved_regs): Ditto.
8416 * s390-tdep.c (s390_function_start): Ditto.
8417 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8418 (rs6000_frameless_function_invocation): Ditto.
8419 (rs6000_frame_saved_pc): Ditto.
8420 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8421 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8422 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8423 (i386_frame_init_saved_regs): Ditto.
8424 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8425 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8426 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8427 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8428 * blockframe.c (frameless_look_for_prologue): Ditto.
8430 2003-04-05 Andrew Cagney <cagney@redhat.com>
8432 * frame.c (legacy_get_prev_frame): Link prev to next at the
8433 function start. Update comments.
8435 2003-04-05 Andrew Cagney <cagney@redhat.com>
8437 * frame.c (get_frame_id): Update comment.
8438 (legacy_get_prev_frame): Update comment.
8439 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8440 * gdbarch.h: Regenerate.
8441 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8442 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8444 2003-04-05 Andrew Cagney <cagney@redhat.com>
8446 * stack.c (print_frame_info): Use get_frame_pc.
8448 2003-04-04 Andrew Cagney <cagney@redhat.com>
8450 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8451 the frame's type from the unwinder.
8452 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8453 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8454 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8455 (get_frame_base_address): Use get_frame_type.
8456 (get_frame_locals_address, get_frame_args_address): Ditto.
8457 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8458 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8459 (struct frame_info): Add comment explaining why the frame contains
8461 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8462 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8463 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8465 * frame-unwind.h: Include "frame.h".
8466 (struct frame_unwind): Add "type" field.
8467 * Makefile.in (frame_unwind_h): Add $(frame_h).
8469 2003-04-04 Andrew Cagney <cagney@redhat.com>
8471 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8472 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8473 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8475 (d10v_unwind_dummy_id): Use frame_id_build.
8476 * frame.c (find_frame_sal): Use get_frame_pc.
8477 (create_new_frame): Use deprecated_update_frame_pc_hack and
8478 deprecated_update_frame_base_hack.
8479 (create_sentinel_frame): Add comment about ->pc going away.
8480 (get_prev_frame): Add comment about ->pc going away.
8481 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8482 frame_id_build, deprecated_update_frame_pc_hack and
8483 deprecated_update_frame_base_hack.
8484 (select_frame): Use get_frame_pc.
8485 (legacy_saved_regs_this_id): Use frame_id_build.
8487 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8489 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8490 signed integer case.
8491 (classify_argument): Handle enumerations and references.
8493 2003-04-04 Andrew Cagney <cagney@redhat.com>
8495 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8498 2003-04-01 Adam Fedor <fedor@gnu.org>
8500 * gdb/objc-lang.c (selectors_info): Replace calls to
8501 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8502 SYMBOL_NATURAL_NAME.
8503 (classes_info, find_methods): Likewise.
8505 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8507 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8508 ``mach'' to the value determined by bfd_default_set_arch_mach().
8510 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8512 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8513 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8514 (mi-cmd-file.o): Update dependencies.
8516 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8518 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8519 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8521 2003-04-01 Adam Fedor <fedor@gnu.org>
8523 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8524 * language.h (struct language_defn): Add la_demangle.
8525 (language_demangle): Declare.
8526 * language.c (language_demangle): New function.
8527 (unk_lang_demangle): Likewise.
8528 (unknown_language_defn, auto_language_defn, local_language_defn):
8529 Add ukn_lang_demangle.
8530 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8531 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8532 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8533 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8534 * jv-lang.c (java_demangle): New function
8535 (java_language_defn): Use it for la_demangle element.
8536 * objc-lang.c (objc_demangle): Add options argument
8537 (objc_language_defn): Use objc_demangle for la_demangle element.
8538 * maint.c (maintenance_demangle): Replace switch with
8539 call to language_demangle.
8540 * utils.c (fprintf_symbol_filtered): Likewise.
8542 2003-04-01 Andrew Cagney <cagney@redhat.com>
8544 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8545 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8546 PRINT_TYPELESS_INTEGER.
8547 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8548 PUSH_RETURN_ADDRESS.
8550 2003-04-01 Andrew Cagney <cagney@redhat.com>
8552 * Makefile.in (d10v-tdep.o): Update dependencies.
8553 * d10v-tdep.c: Include "frame-base.h".
8554 (d10v_frame_unwind): Make constant.
8555 (d10v_frame_base_address): New function.
8556 (d10v_frame_base): New variable.
8557 (d10v_gdbarch_init): Set frame_base default.
8558 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8560 (d10v_frame_unwind_cache): Set and use "prev_sp".
8561 (d10v_frame_this_id): Use the previous frame's inner most stack
8562 address and this frame's func address for the frame ID. Use
8563 frame_id_build. Don't analyze beyond the current instruction.
8565 2003-04-01 Andrew Cagney <cagney@redhat.com>
8567 * frame.h (get_frame_locals_address, get_frame_args_address):
8568 Refer to the base address, instead of the address of the first
8571 2003-04-01 Andrew Cagney <cagney@redhat.com>
8573 Add frame debug info addresses:
8574 * frame-base.c: New file.
8575 * frame-base.h: New file.
8576 * frame.h (struct frame_base): Add opaque declaration.
8577 (get_frame_base): Update comment.
8578 (get_frame_base_address): Declare.
8579 (get_frame_locals_address): Declare.
8580 (get_frame_args_address): Declare.
8581 (struct frame_info): Add "base" and "base_cache". Update
8582 comments on the unwinder.
8583 * frame.c: Include "frame-base.h".
8584 (get_frame_locals_address): New function.
8585 (get_frame_base_address): New function.
8586 (get_frame_args_address): New function.
8587 * findvar.c (read_var_value): Use get_frame_locals_address and
8588 get_frame_args_address.
8589 * stack.c (frame_info): Use get_frame_locals_address and
8590 get_frame_args_address.
8591 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8592 moved to "frame-base.c".
8593 * printcmd.c (print_frame_nameless_args): Ditto.
8594 * symtab.h (address_class): Update comments.
8595 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8596 get_frame_base_address.
8597 * dwarf2expr.c (execute_stack_op): Ditto.
8598 * Makefile.in (frame_base_h): Define.
8599 (frame.o): Update dependencies.
8600 (frame-base.o): Add dependencies.
8601 (SFILES): Add frame-base.c.
8602 (COMMON_OBS): Add frame-base.o.
8604 2003-04-01 Andrew Cagney <cagney@redhat.com>
8606 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8607 CALL_DUMMY_LENGTH): Ditto.
8608 * gdbarch.c: Re-generate.
8609 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8610 (CALL_DUMMY_LENGTH): Delete macro.
8611 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8612 * arm-tdep.c (arm_gdbarch_init): Ditto.
8613 * avr-tdep.c (avr_gdbarch_init): Ditto.
8614 * cris-tdep.c (cris_gdbarch_init): Ditto.
8615 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8616 * frv-tdep.c (frv_gdbarch_init): Ditto.
8617 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8618 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8619 * i386-tdep.c (i386_gdbarch_init): Ditto.
8620 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8621 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8622 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8623 * mips-tdep.c (mips_gdbarch_init): Ditto.
8624 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8625 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8626 * s390-tdep.c (s390_gdbarch_init): Ditto.
8627 * sh-tdep.c (sh_gdbarch_init): Ditto.
8628 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8629 * v850-tdep.c (v850_gdbarch_init): Ditto.
8630 * vax-tdep.c (vax_gdbarch_init): Ditto.
8631 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8633 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8635 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8637 2003-04-01 Andrew Cagney <cagney@redhat.com>
8639 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8640 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8641 * gdbarch.h, gdbarch.c: Re-generate.
8642 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8643 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8644 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8645 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8646 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8647 * infcmd.c (run_stack_dummy): Simplify assuming
8648 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8649 * infrun.c (handle_inferior_event): Ditto.
8650 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8651 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8652 * arm-tdep.c (arm_gdbarch_init): Ditto.
8653 * avr-tdep.c (avr_gdbarch_init): Ditto.
8654 * cris-tdep.c (cris_gdbarch_init): Ditto.
8655 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8656 * frv-tdep.c (frv_gdbarch_init): Ditto.
8657 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8658 * i386-tdep.c (i386_gdbarch_init): Ditto.
8659 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8660 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8661 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8662 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8663 * mips-tdep.c (mips_gdbarch_init): Ditto.
8664 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8665 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8666 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8667 * s390-tdep.c (s390_gdbarch_init): Ditto.
8668 * sh-tdep.c (sh_gdbarch_init): Ditto.
8669 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8670 * v850-tdep.c (v850_gdbarch_init): Ditto.
8671 * vax-tdep.c (vax_gdbarch_init): Ditto.
8672 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8674 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8676 * symfile.c (symfile_relocate_debug_section): Update call to
8677 bfd_simple_get_relocated_section_contents.
8679 2003-03-31 Andrew Cagney <cagney@redhat.com>
8681 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8682 * gdbarch.h, gdbarch.c: Regenerate.
8683 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8684 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8686 * frame.h (generic_fix_call_dummy): Delete declaration.
8687 * dummy-frame.h: Update comment.
8688 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8689 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8691 * sh-tdep.c (sh_gdbarch_init): Ditto.
8692 * s390-tdep.c (s390_gdbarch_init): Ditto.
8693 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8694 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8695 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8696 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8697 * i386-tdep.c (i386_gdbarch_init): Ditto.
8698 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8699 * frv-tdep.c (frv_gdbarch_init): Ditto.
8700 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8701 * cris-tdep.c (cris_gdbarch_init): Ditto.
8702 * avr-tdep.c (avr_gdbarch_init): Ditto.
8703 * arm-tdep.c (arm_gdbarch_init): Ditto.
8705 2003-03-31 J. Brobecker <brobecker@gnat.com>
8707 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8708 (INIT_FRAME_AP): Likewise.
8709 (EXTRA_FRAME_INFO): Likewise.
8711 2003-03-31 Andrew Cagney <cagney@redhat.com>
8713 * gdbarch.sh: Include "symfile.h".
8714 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8715 * gdbarch.h, gdbarch.c: Re-generate.
8716 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8717 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8718 call_dummy_address, the default is at entry_point_address.
8719 * v850-tdep.c (v850_gdbarch_init): Ditto.
8720 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8721 * sh-tdep.c (sh_gdbarch_init): Ditto.
8722 * s390-tdep.c (s390_gdbarch_init): Ditto.
8723 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8724 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8725 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8726 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8727 * i386-tdep.c (i386_gdbarch_init): Ditto.
8728 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8729 * frv-tdep.c (frv_gdbarch_init): Ditto.
8730 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8731 * cris-tdep.c (cris_gdbarch_init): Ditto.
8732 * arm-tdep.c (arm_gdbarch_init): Ditto.
8734 2003-03-31 Andrew Cagney <cagney@redhat.com>
8736 * gdbarch.sh (CALL_DUMMY_P): Delete.
8737 * gdbarch.h, gdbarch.c: Re-generate.
8738 * inferior.h (CALL_DUMMY_P): Delete macro.
8739 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8740 * vax-tdep.c (vax_gdbarch_init): Update.
8741 * v850-tdep.c (v850_gdbarch_init): Update.
8742 * sparc-tdep.c (sparc_gdbarch_init): Update.
8743 * sh-tdep.c (sh_gdbarch_init): Update.
8744 * s390-tdep.c (s390_gdbarch_init): Update.
8745 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8746 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8747 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8748 * mips-tdep.c (mips_gdbarch_init): Update.
8749 * mcore-tdep.c (mcore_gdbarch_init): Update.
8750 * m68k-tdep.c (m68k_gdbarch_init): Update.
8751 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8752 * ia64-tdep.c (ia64_gdbarch_init): Update.
8753 * i386-tdep.c (i386_gdbarch_init): Update.
8754 * h8300-tdep.c (h8300_gdbarch_init): Update.
8755 * frv-tdep.c (frv_gdbarch_init): Update.
8756 * d10v-tdep.c (d10v_gdbarch_init): Update.
8757 * cris-tdep.c (cris_gdbarch_init): Update.
8758 * breakpoint.c (deprecated_frame_in_dummy): Update.
8759 * avr-tdep.c (avr_gdbarch_init): Update.
8760 * alpha-tdep.c (alpha_gdbarch_init): Update.
8761 * arm-tdep.c (arm_gdbarch_init): Update.
8762 * dummy-frame.c (dummy_frame_this_id): Update comments.
8763 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8764 * frame.c (legacy_get_prev_frame): Ditto.
8765 * valops.c (call_function_by_hand): Delete function.
8766 (hand_function_call): Rename to call_function_by_hand
8768 2003-03-30 Andrew Cagney <cagney@redhat.com>
8770 2002-11-10 Klee Dienes <kdienes@apple.com>
8771 * value.h (struct value): Update comment.
8773 2003-03-30 Andrew Cagney <cagney@redhat.com>
8775 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8777 (d10v_gdbarch_init): Do not set fp_regnum.
8779 * frame.c (get_frame_base): Force ID initialization.
8780 (get_prev_frame): Move computation of the frame ID from here ...
8781 (get_frame_id): ... to here.
8782 (legacy_get_prev_frame): Mark the frame ID as valid.
8783 * frame.h (struct frame_info): Add field "id_p".
8785 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8787 * i386-tdep.c (i386_store_struct_return): Removed.
8788 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8790 2003-03-30 Andrew Cagney <cagney@redhat.com>
8792 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8793 * gdbarch.h, gdbarch.c: Regenerate.
8794 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8795 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8796 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8797 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8798 * i386-tdep.c (i386_gdbarch_init): Ditto.
8799 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8800 * cris-tdep.c (cris_gdbarch_init): Ditto.
8801 * vax-tdep.c (vax_gdbarch_init): Ditto.
8802 * s390-tdep.c (s390_gdbarch_init): Ditto.
8803 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8804 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8805 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8806 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8807 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8808 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8809 * sparc-tdep.c (sparc_gdbarch_init): Update.
8810 * sh-tdep.c (sh_gdbarch_init): Update.
8811 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8812 * mips-tdep.c (mips_gdbarch_init): Update.
8813 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8814 * ia64-tdep.c (ia64_gdbarch_init): Update.
8815 * frv-tdep.c (frv_gdbarch_init): Update.
8816 * avr-tdep.c (avr_gdbarch_init): Update.
8817 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8818 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8819 instead of when push_dummy_call is not available.
8821 2003-03-30 Andrew Cagney <cagney@redhat.com>
8823 * infttrace.c: Include "gdbthread.h".
8824 (parent_attach_all): Fix function signature.
8825 (call_ptrace): Update call.
8826 * Makefile.in (infttrace.o): Update dependencies.
8828 2003-03-30 Andrew Cagney <cagney@redhat.com>
8830 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8831 PUSH_RETURN_ADDRESS.
8832 * gdbarch.h, gdbarch.c: Regenerate.
8833 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8834 * x86-64-tdep.c (x86_64_init_abi): Update.
8835 * v850-tdep.c (v850_gdbarch_init): Update.
8836 * sparc-tdep.c (sparc_gdbarch_init): Update.
8837 * sh-tdep.c (sh_gdbarch_init): Update.
8838 * s390-tdep.c (s390_gdbarch_init): Update.
8839 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8840 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8841 * mips-tdep.c (mips_gdbarch_init): Update.
8842 * mcore-tdep.c (mcore_gdbarch_init): Update.
8843 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8844 * ia64-tdep.c (ia64_gdbarch_init): Update.
8845 * i386-tdep.c (i386_gdbarch_init): Update.
8846 * h8300-tdep.c (h8300_gdbarch_init): Update.
8847 * frv-tdep.c (frv_gdbarch_init): Update.
8848 * cris-tdep.c (cris_gdbarch_init): Update.
8849 * avr-tdep.c (avr_gdbarch_init): Update.
8850 * arm-tdep.c (arm_gdbarch_init): Update.
8851 * valops.c (hand_function_call): Update.
8853 2003-03-29 Andrew Cagney <cagney@redhat.com>
8855 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8856 sizeof_call_dummy_words.
8857 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8859 * gdbarch.h: Regenerate.
8861 2003-03-29 Andrew Cagney <cagney@redhat.com>
8863 * infttrace.h: New file.
8864 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8865 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8866 (hpread_read_doc_function_type): Detect an initialized type1.
8867 (hpread_quick_traverse): Initialize mod_name_string.
8868 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8869 (som_solib_get_solib_by_pc): Declare.
8870 (so_lib_thread_start_addr): Declare.
8871 (no_shared_libraries): Declare.
8872 * somread.c (init_import_symbols): Make static. Add forward
8874 * config/pa/nm-hppah.h: Include "infttrace.h" for
8876 (hppa_insert_hw_watchpoint): Declare.
8877 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8878 * hppah-nat.c: Include "gdb_string.h".
8879 (parent_attach_all): Delete extern declaration, moved to
8881 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8883 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8884 * Makefile.in (infttrace_h): Define.
8885 (hpread.o): Update dependencies.
8886 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8887 * hppa-hpux-tdep.c: Include "gdb_string.h".
8888 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8889 * infrun.c (handle_inferior_event): Always initialize
8890 stepped_after_stopped_by_watchpoint. Add default and remove
8891 fallthrough in switch statement.
8892 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8894 (hppa_remove_hw_watchpoint): Ditto.
8896 2003-03-29 Andrew Cagney <cagney@redhat.com>
8898 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8901 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8903 * arm-tdep.c (arm_push_arguments): Delete.
8904 (struct stack_item): New type.
8905 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8906 (arm_store_struct_return): Delte.
8907 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8908 arm_push_arguments or arm_store_struct_return.
8910 2003-03-28 Andrew Cagney <cagney@redhat.com>
8912 * Makefile.in (d10v-tdep.o): Update dependencies.
8913 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8914 * d10v-tdep.c: Include "remote.h".
8915 (target_resume_hook): Delete extern declaration.
8916 (target_wait_loop_hook): Ditto.
8917 (tdisassemble_command): Eliminate assignment in "if" conditional.
8918 (d10v_ts2_register_sim_regno): Eliminate call to
8919 legacy_register_sim_regno.
8920 (d10v_ts3_register_sim_regno): Ditto.
8922 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8924 * thread.c: Reindented.
8926 * linux-proc.c: Ditto.
8928 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8930 * MAINTAINERS (write after approval): Add myself.
8932 2003-03-27 Theodore A. Roth <troth@openavr.org>
8934 * objc-exp.y: Add missing semi-colons.
8936 2003-03-27 Andrew Cagney <cagney@redhat.com>
8938 * regcache.c (write_sp): Delete function and references.
8939 * inferior.h (write_sp): Delete declaration.
8940 * valops.c (hand_function_call): Replace write_sp with
8942 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8943 (sparc_pop_frame): Ditto.
8945 2003-03-27 Andrew Cagney <cagney@redhat.com>
8947 * NEWS: Mention removal of support for hppa*-*-bsd* and
8948 hppa*-*-osf* natives, and hppa*-*-pro* target.
8949 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8950 * config/pa/xm-pa.h: Obsolete file.
8951 * config/pa/xm-hppab.h: Obsolete file.
8952 * config/pa/nm-hppab.h: Obsolete file.
8953 * config/pa/tm-hppab.h: Obsolete file.
8954 * config/pa/tm-hppao.h: Obsolete file.
8955 * config/pa/nm-hppao.h: Obsolete file.
8956 * config/pa/tm-pro.h: Obsolete file.
8957 * config/pa/hppaosf.mt: Obsolete file.
8958 * config/pa/hppaosf.mh: Obsolete file.
8959 * config/pa/hppapro.mt: Obsolete file.
8960 * config/pa/hppabsd.mt: Obsolete file.
8961 * config/pa/hppabsd.mh: Obsolete file.
8962 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8963 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8966 2003-03-27 Andrew Cagney <cagney@redhat.com>
8968 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8969 push_arguments. Don't set push_return_address or write_sp.
8970 (d10v_push_dummy_call): Replace d10v_push_arguments.
8971 (d10v_push_return_address, d10v_write_sp): Delete function,
8972 handled by push_dummy_call.
8974 2003-03-26 Andrew Cagney <cagney@redhat.com>
8976 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8977 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8978 regcache and dummy_addr parameters.
8979 * gdbarch.h, gdbarch.c: Re-generate.
8980 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8981 available; assume it will handle stack alignment and return
8982 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8983 legacy_push_arguments.
8984 (legacy_push_arguments): Rename default_push_arguments.
8985 * value.h (legacy_push_arguments): Rename default_push_arguments.
8986 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8987 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8988 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8989 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8990 * config/i386/tm-symmetry.h: Update.
8991 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8992 * x86-64-tdep.c (x86_64_init_abi): Update.
8993 * v850-tdep.c (v850_gdbarch_init): Update.
8994 * sparc-tdep.c (sparc_gdbarch_init): Update.
8995 * sh-tdep.c (sh_gdbarch_init): Update.
8996 * s390-tdep.c (s390_gdbarch_init): Update.
8997 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8998 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8999 * mips-tdep.c (mips_gdbarch_init): Update.
9000 * mcore-tdep.c (mcore_gdbarch_init): Update.
9001 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9002 * ia64-tdep.c (ia64_gdbarch_init): Update.
9003 * i386-tdep.c (i386_gdbarch_init): Update.
9004 * hppa-tdep.c (hppa_gdbarch_init): Update.
9005 * h8300-tdep.c (h8300_gdbarch_init): Update.
9006 * frv-tdep.c (frv_gdbarch_init): Update.
9007 * d10v-tdep.c (d10v_gdbarch_init): Update.
9008 * cris-tdep.c (cris_gdbarch_init): Update.
9009 * avr-tdep.c (avr_gdbarch_init): Update.
9010 * arm-tdep.c (arm_gdbarch_init): Update.
9011 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9012 * alpha-tdep.c (alpha_gdbarch_init): Update.
9014 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9016 * signals/signals.c (do_target_signal_to_host): Correct realtime
9019 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9021 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9022 (struct sal_chain, map_catch_names): Remove.
9023 (catch_exception_command_1): Don't call
9024 handle_gnu_4_16_catch_command.
9026 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9028 From Mark Dettinger <dettinge@de.ibm.com>:
9029 * dwarf2cfi.c (read_2u): Increment pointer by two.
9031 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9033 * signals/signals.c: Fix typos in last change.
9035 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9037 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9038 not already defined. Use __SIGRTMIN if available.
9039 (target_signal_from_host): Remove SIGRTMIN block.
9040 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9041 the signal is within the realtime range.
9043 2003-03-25 Adam Fedor <fedor@gnu.org>
9045 * Makefile.in (infrun.o): Add $(language_h)
9046 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9047 for language specific trampolines.
9048 * language.h (struct language_defn): Add skip_trampoline.
9049 (skip_language_trampoline): Declare.
9050 * language.c (unk_lang_trampoline, skip_language_trampoline):
9052 (unknown_language_defn, auto_language_defn, local_language_defn):
9053 Add ukn_lang_trampoline.
9054 * ada-lang.c (ada_language_defn): Add NULL for language
9055 specific skip_trampoline.
9056 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9057 scm-lang.c: Likewise.
9058 * objc-lang.c (objc_skip_trampoline): New function.
9059 (objc_language_defn): Add objc_skip_trampoline.
9061 2003-03-25 Andrew Cagney <cagney@redhat.com>
9063 * frame.c (get_prev_frame): Delay validating a frame's ID -
9064 non-NULL, didn't go backwards - until an attempt to unwind it to
9067 2003-03-25 Andrew Cagney <cagney@redhat.com>
9069 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9070 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9071 * gdbarch.h, gdbarch.c: Re-generate.
9072 * config/sparc/tm-sparc.h
9073 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9074 * sparc-tdep.c (sparc_gdbarch_init): Set
9075 deprecated_extra_stack_alignment_needed.
9076 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9077 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9078 extra_stack_alignment_needed.
9079 * v850-tdep.c (v850_gdbarch_init): Ditto.
9080 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9081 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9082 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9083 * cris-tdep.c (cris_gdbarch_init): Ditto.
9084 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9085 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9087 2003-03-25 Andrew Cagney <cagney@redhat.com>
9089 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9090 STORE_STRUCT_RETURN.
9091 * gdbarch.h, gdbarch.c: Regenerate.
9092 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9093 (d10v_push_arguments): Set the struct return register.
9094 (d10v_gdbarch_init): Update.
9095 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9096 * x86-64-tdep.c (x86_64_init_abi): Update.
9097 * vax-tdep.c (vax_gdbarch_init): Update.
9098 * v850-tdep.c (v850_gdbarch_init): Update.
9099 * sparc-tdep.c (sparc_gdbarch_init): Update.
9100 * sh-tdep.c (sh_gdbarch_init): Update.
9101 * s390-tdep.c (s390_gdbarch_init): Update.
9102 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9103 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9104 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9105 * mips-tdep.c (mips_gdbarch_init): Update.
9106 * mcore-tdep.c (mcore_gdbarch_init): Update.
9107 * m68k-tdep.c (m68k_gdbarch_init): Update.
9108 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9109 * ia64-tdep.c (ia64_gdbarch_init): Update.
9110 * i386-tdep.c (i386_gdbarch_init): Update.
9111 * hppa-tdep.c (hppa_gdbarch_init): Update.
9112 * h8300-tdep.c (h8300_gdbarch_init): Update.
9113 * frv-tdep.c (frv_gdbarch_init): Update.
9114 * cris-tdep.c (cris_gdbarch_init): Update.
9115 * avr-tdep.c (avr_gdbarch_init): Update.
9116 * arm-tdep.c (arm_gdbarch_init): Update.
9117 * alpha-tdep.c (alpha_gdbarch_init): Update.
9119 2003-03-25 Andrew Cagney <cagney@redhat.com>
9121 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9122 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9123 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9124 * gdbarch.h, gdbarch.c: Regenerate.
9125 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9126 call_dummy_stack_adjust_p.
9127 * vax-tdep.c (vax_gdbarch_init): Ditto.
9128 * v850-tdep.c (v850_gdbarch_init): Ditto.
9129 * sh-tdep.c (sh_gdbarch_init): Ditto.
9130 * s390-tdep.c (s390_gdbarch_init): Ditto.
9131 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9132 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9133 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9134 * mips-tdep.c (mips_gdbarch_init): Ditto.
9135 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9136 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9137 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9138 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9139 * i386-tdep.c (i386_gdbarch_init): Ditto.
9140 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9141 * frv-tdep.c (frv_gdbarch_init): Ditto.
9142 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9143 * cris-tdep.c (cris_gdbarch_init): Ditto.
9144 * avr-tdep.c (avr_gdbarch_init): Ditto.
9145 * arm-tdep.c (arm_gdbarch_init): Ditto.
9146 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9147 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9148 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9149 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9150 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9151 call_dummy_stack_adjust_p.
9152 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9153 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9154 * sparc-tdep.c (sparc32_push_arguments): Update.
9155 * valops.c (hand_function_call): Update.
9157 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
9159 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9160 set_gdbarch_char_signed.
9162 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9165 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9167 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9169 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9170 (_initialize_arm_tdep): Don't set tm_print_insn.
9172 2003-03-24 Adam Fedor <fedor@gnu.org>
9174 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9175 * objc-lang.h: Add multiple inclusion protection.
9176 (start_msglist, add_msglist, end_msglist): Additional declarations.
9178 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
9180 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9181 value was renamed to ARM_FLOAT_SOFT_FPA.
9183 2003-03-23 Andrew Cagney <cagney@redhat.com>
9185 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9186 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9187 * gdbarch.h, gdbarch.c: Regenerate.
9188 * valops.c (hand_function_call): Update.
9189 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9190 * frame.c (legacy_saved_regs_this_id): Update.
9191 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9192 * dummy-frame.h: Update.
9193 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9194 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9195 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9196 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9197 * config/m68k/tm-sun3.h: Update.
9198 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9199 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9200 * x86-64-tdep.c (x86_64_init_abi): Update.
9201 * vax-tdep.c (vax_gdbarch_init): Update.
9202 * v850-tdep.c (v850_gdbarch_init): Update.
9203 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9204 * sh-tdep.c (sh_gdbarch_init): Update.
9205 * s390-tdep.c (s390_gdbarch_init): Update.
9206 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9207 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9208 (frame_get_saved_regs): Update.
9209 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9210 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9211 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9212 * mips-tdep.c (mips_gdbarch_init): Update.
9213 * mcore-tdep.c (mcore_gdbarch_init): Update.
9214 * m68k-tdep.c (m68k_gdbarch_init): Update.
9215 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9216 * ia64-tdep.c (ia64_gdbarch_init): Update.
9217 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9218 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9219 (i386_interix_back_one_frame): Update.
9220 * hppa-tdep.c (hppa_gdbarch_init): Update.
9221 (hppa_init_extra_frame_info): Update.
9222 * h8300-tdep.c (h8300_gdbarch_init): Update.
9223 * frv-tdep.c (frv_gdbarch_init): Update.
9224 * cris-tdep.c (cris_gdbarch_init): Update.
9225 * avr-tdep.c (avr_gdbarch_init): Update.
9226 * arm-tdep.c (arm_gdbarch_init): Update.
9227 * alpha-tdep.c (alpha_gdbarch_init): Update.
9229 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9231 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9232 (arm_get_fp_model): Declare.
9233 * arm-tdep.c (fp_model_strings): New string array.
9234 (arm_fp_model, current_fp_model): New variables.
9235 (arm_get_fp_model): New function.
9236 (arm_set_fp): New function.
9237 (set_fp_model_sfunc): New function.
9238 (show_fp_model): New function.
9239 (_initialize_arm_tdep): Add new command to set/show the FPU.
9240 (arm_extract_return_value): Use arm_get_fp_model.
9241 (arm_store_return_value): Likewise.
9242 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9243 to initialize the floating-point data types.
9244 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9247 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9249 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9250 the current setting of each value.
9251 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9252 new_set and new_show. Use add_setshow_cmd_full and
9253 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9254 commands and add new version as subcommands of "set/show arm".
9256 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9258 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9259 (set_arm_command, show_arm_command): New functions.
9260 (_initialize_arm_tdep): Add them.
9261 (num_disassembly_options): Renamed from num_flavor_options.
9262 (valid_disassembly_styles): Renamed from valid_flavors.
9263 (disassembly_style): Renamed from disassembly_flavor.
9264 (set_disassembly_style_sfunc): Renamed from
9265 set_disassembly_flavor_sfunc.
9266 (set_disassembly_style): Renamed from set_disassembly_flavor.
9267 (arm_othernames): Updated.
9268 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9269 command. Add "set/show arm disassembly" commands. Deprecate
9270 "othernames" command.
9272 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9274 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9275 (arm-tdep.o): Depend on elf_arm_h.
9277 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9279 * Makefile.in (coff_internal_h): Define.
9280 (arm-tdep.o): Update dependencies.
9282 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9284 * arm-tdep.c (prologue_cache): Delete.
9285 (check_prologue_cache, save_prologue_cache): Delete.
9286 (arm_scan_prologue): Don't check or update the prologue_cache.
9287 (arm_gdb_arch_init): Don't initialize it.
9288 (_initialize_arm_tdep): Likewise.
9290 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9292 * MAINTAINERS (tui): Maintainer of tui code.
9294 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9296 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9297 (i386-cygwin-tdep.o): Add dependencies.
9298 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9299 * i386-cygwin-tdep.c: New file.
9300 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9301 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9303 2003-03-20 Andrew Cagney <cagney@redhat.com>
9305 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9306 (handle_inferior_event): Remove code calling
9307 DYNAMIC_TRAMPOLINE_NEXTPC.
9309 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9310 already has a full path.
9312 * main.c (gdb_main): Return 1.
9313 (captured_main): Call error to report an invalid interpreter.
9315 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9316 * alpha-osf1-tdep.c: Include "gdb_string.h".
9318 2003-03-19 J. Brobecker <brobecker@gnat.com>
9320 Continuing work to convert the hppa targets to multiarch partial.
9322 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9323 method, now that hppa_push_dummy_frame has a conformant prototype.
9324 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9325 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9326 for the switch to multiarch partial.
9328 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9330 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9331 when iss is issNull.
9333 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9335 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9336 NUM_REGS bounds check.
9338 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9340 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9341 * mips-tdep.c (gdb_assert.h): Include.
9342 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9343 (mips_register_name): Handle integer registers explicitly. Add
9345 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9346 (mips_lsi33k_reg_names): Don't list integer registers; they're
9347 handled by mips_register_name() now.
9348 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9349 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9350 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9351 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9352 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9354 2003-03-18 Andrew Cagney <cagney@redhat.com>
9356 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9358 * gdbtypes.h (print_scalar_formatted): Update declaration.
9359 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9361 2003-03-18 J. Brobecker <brobecker@gnat.com>
9363 * infrun.c (observer.h): Add #include.
9364 (normal_stop): Add call to observer_notify_normal_stop.
9365 * Makefile.in (infrun.o): Add dependency on observer.h.
9367 2003-03-18 J. Brobecker <brobecker@gnat.com>
9369 Continuing work to convert the hppa targets to multiarch partial.
9370 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9371 parameter. Reformat comment.
9372 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9373 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9374 to match new profile.
9376 2003-03-18 J. Brobecker <brobecker@gnat.com>
9378 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9379 appear to be working in any case.
9381 2003-03-18 J. Brobecker <brobecker@gnat.com>
9383 * observer.c (observer_test_first_observer): New static variable.
9384 (observer_test_second_observer): Likewise.
9385 (observer_test_third_observer): Likewise.
9386 (observer_test_first_notification_function): New static function.
9387 (observer_test_second_notification_function): Likewise.
9388 (observer_test_third_notification_function): Likewise.
9390 2003-03-17 J. Brobecker <brobecker@gnat.com>
9392 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9393 * somsolib.c (gdb_assert.h): Likewise.
9394 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9395 (somsolib.o): Likewise.
9397 2003-03-17 Andrew Cagney <cagney@redhat.com>
9399 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9400 BFD. Simplify setting of di.endian.
9402 2003-03-17 Andrew Cagney <cagney@redhat.com>
9404 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9405 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9407 From Elena Zannoni <ezannoni@redhat.com>
9408 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9409 vector and floating-point parameters.
9410 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9412 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9414 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9416 * MAINTAINERS: Remove my name from several maintainership roles.
9418 2003-03-17 Andrew Cagney <cagney@redhat.com>
9420 Fix frame off-by-one bug.
9421 * frame-unwind.h (frame_this_id_ftype): Replace
9422 frame_unwind_id_ftype.
9423 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9424 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9425 with "prev_register".
9426 * frame-unwind.c (frame_unwind_find_by_pc): Return
9427 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9429 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9430 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9431 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9432 (dummy_frame_unwind): Update.
9433 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9434 sentinel_frame_register_unwind.
9435 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9436 (sentinel_frame_unwinder): Update.
9437 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9438 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9439 * frame.c (create_sentinel_frame): Update. Initialize
9440 "prologue_cache" instead of "unwind_cache".
9441 (frame_register_unwind): Call this frame's prev_register with the
9442 next frame and this frame's prologue cache.
9443 (get_prev_frame): Simplify. Always call prev frame's this_id with
9444 this frame and prev frame's prologue cache. Document that this
9445 call is shifted one to the left when compared to the
9446 frame_register_unwind call.
9447 (legacy_saved_regs_prev_register): Replace
9448 frame_saved_regs_register_unwind.
9449 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9450 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9451 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9452 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9453 (d10v_frame_unwind): Update.
9454 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9455 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9456 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9457 "saved_regs" with "this_saved_regs".
9459 2003-03-16 Andrew Cagney <cagney@redhat.com>
9461 * frame.c (frame_pop): Don't call target_store_registers. Fix
9462 problem reported by Mark Kettenis.
9464 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9466 * i386-tdep.c (i386_register_type): Renamed from
9467 i386_register_virtual_type. Adjust function signature.
9468 (i386_gdbarch_init): Set register_type instead of
9469 deprecated_max_register_raw_size,
9470 deprecated_max_register_virtual_size and register_virtual_type.
9472 2003-03-14 Andrew Cagney <cagney@redhat.com>
9474 * frame.c (get_prev_frame): When a legacy frame, always call
9475 legacy_get_prev_frame. Simplify unwind code using assumption that
9476 the unwinder is new.
9477 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9478 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9479 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9481 2003-03-14 Andrew Cagney <cagney@redhat.com>
9483 * frame.c (get_saved_register): Delete function.
9484 * frame.h (get_saved_register): Delete declaration.
9485 * xstormy16-tdep.c: Update comment.
9486 * regcache.h: Update comments.
9487 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9488 get_saved_register and extract_address, use
9489 frame_read_unsigned_register.
9490 (sparc_frame_saved_pc): Ditto.
9491 (sparc_get_saved_register): Instead of get_saved_register, use
9493 (sparc_pop_frame): Ditto.
9494 * findvar.c: Update comments.
9495 (value_of_register): Call frame_register instead of
9497 (value_from_register): Ditto.
9498 * config/sparc/tm-sparc.h: Update comment.
9499 * breakpoint.c: Update comment.
9501 2003-03-14 Andrew Cagney <cagney@redhat.com>
9503 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9505 * gdbarch.h, gdbarch.c: Re-generate.
9506 * frame.h: Update comments.
9507 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9508 * x86-64-tdep.c (x86_64_init_abi): Update.
9509 * sparc-tdep.c (sparc_gdbarch_init): Update.
9510 * sh-tdep.c (sh_gdbarch_init): Update.
9511 * mips-tdep.c (mips_gdbarch_init): Update.
9512 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9513 * cris-tdep.c (cris_gdbarch_init): Update.
9514 * ia64-tdep.c (ia64_gdbarch_init): Update.
9515 * frame.c (frame_register): Update.
9516 (get_saved_register): Update.
9517 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9519 2003-03-13 Andrew Cagney <cagney@redhat.com>
9521 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9522 * gdbarch.h, gdbarch.c: Regenerate.
9523 * valops.c (hand_function_call): Update comment.
9524 * stack.c (return_command): Update comment.
9525 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9526 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9527 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9528 * x86-64-tdep.c (x86_64_init_abi): Update.
9529 * vax-tdep.c (vax_gdbarch_init): Update.
9530 * v850-tdep.c (v850_gdbarch_init): Update.
9531 * sparc-tdep.c (sparc_gdbarch_init): Update.
9532 * sh-tdep.c (sh_gdbarch_init): Update.
9533 * s390-tdep.c (s390_gdbarch_init): Update.
9534 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9535 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9536 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9537 * mips-tdep.c (mips_gdbarch_init): Update.
9538 * mcore-tdep.c (mcore_gdbarch_init): Update.
9539 * m68k-tdep.c (m68k_gdbarch_init): Update.
9540 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9541 * ia64-tdep.c (ia64_gdbarch_init): Update.
9542 * i386-tdep.c (i386_gdbarch_init): Update.
9543 * hppa-tdep.c (hppa_gdbarch_init): Update.
9544 * h8300-tdep.c (h8300_gdbarch_init): Update.
9545 * frv-tdep.c (frv_gdbarch_init): Update.
9546 * cris-tdep.c (cris_gdbarch_init): Update.
9547 * avr-tdep.c (avr_gdbarch_init): Update.
9548 * arm-tdep.c (arm_gdbarch_init): Update.
9549 * alpha-tdep.c (alpha_gdbarch_init): Update.
9551 2003-03-13 Andrew Cagney <cagney@redhat.com>
9553 * frame.c (legacy_frame_p): New function.
9554 (get_prev_frame): Use legacy_frame_p.
9555 * frame.h (legacy_frame_p): Declare.
9557 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9559 * MAINTAINERS (write after approval): Alphabetically
9562 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9564 * MAINTAINERS (write after approval): Add myself.
9566 2003-03-12 Andrew Cagney <cagney@redhat.com>
9568 * frame.c (get_prev_frame): Rename the frame parameter to
9570 (get_next_frame, legacy_get_prev_frame): Ditto.
9572 2003-03-12 Andrew Cagney <cagney@redhat.com>
9574 * frame.c (get_current_frame): Check target_has_registers before
9575 checking target_has_stack.
9576 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9577 instead of deprecated_selected_frame.
9578 * findvar.c (value_of_register): Pass "frame", not
9579 deprecated_selected_frame, to value_of_builtin_reg.
9581 2003-03-12 Andrew Cagney <cagney@redhat.com>
9583 * regcache.c (regcache_cooked_write_signed): New function.
9584 (regcache_cooked_write_unsigned): New function.
9585 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9586 (regcache_cooked_read_signed): Fix regnum in range assertion.
9587 * regcache.h (regcache_cooked_write_signed): Declare.
9588 (regcache_cooked_write_unsigned): Declare.
9590 2003-03-12 Andrew Cagney <cagney@redhat.com>
9592 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9593 * gdbarch.h, gdbarch.c: Re-generate.
9594 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9595 * x86-64-tdep.h: Update.
9596 * x86-64-tdep.c (x86_64_init_abi): Update.
9597 * v850-tdep.c (v850_gdbarch_init): Update.
9598 * sparc-tdep.c (sparc_gdbarch_init): Update.
9599 * sh-tdep.c (sh_gdbarch_init): Update.
9600 * s390-tdep.c (s390_gdbarch_init): Update.
9601 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9602 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9603 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9604 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9605 * mips-tdep.c (mips_gdbarch_init): Update.
9606 * mcore-tdep.c (mcore_gdbarch_init): Update.
9607 * m68k-tdep.c (m68k_gdbarch_init): Update.
9608 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9609 * ia64-tdep.c (ia64_gdbarch_init): Update.
9610 * i386-tdep.c (i386_gdbarch_init): Update.
9611 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9612 * hppa-tdep.c (hppa_gdbarch_init): Update.
9613 * h8300-tdep.c (h8300_gdbarch_init): Update.
9614 * frv-tdep.c (frv_gdbarch_init): Update.
9615 * cris-tdep.c (cris_gdbarch_init): Update.
9616 * avr-tdep.c (avr_gdbarch_init): Update.
9617 * arm-tdep.c (arm_gdbarch_init): Update.
9618 * alpha-tdep.c (alpha_gdbarch_init): Update.
9619 * sh-tdep.c (sh_init_extra_frame_info): Update.
9620 (sh64_init_extra_frame_info): Update.
9621 * ns32knbsd-nat.c (frame_num_args): Update.
9622 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9623 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9624 (xstormy16_frame_chain_valid): Update.
9625 * vax-tdep.c (vax_saved_pc_after_call): Update.
9626 * v850-tdep.c (v850_frame_chain): Update.
9627 (v850_pop_frame): Update.
9628 (v850_init_extra_frame_info): Update.
9629 * sparc-tdep.c (setup_arbitrary_frame): Update.
9630 * ns32k-tdep.c (umax_frame_num_args): Update.
9631 * s390-tdep.c (s390_pop_frame_regular): Update.
9632 * mn10300-tdep.c (mn10300_frame_chain): Update.
9633 (mn10300_pop_frame_regular): Update.
9634 (mn10300_init_extra_frame_info): Update.
9635 * mips-tdep.c (mips_init_frame_pc_first): Update.
9636 (mips_frame_chain): Update.
9637 (mips_pop_frame): Update.
9638 * mcore-tdep.c (mcore_frame_chain): Update.
9639 (mcore_pop_frame): Update.
9640 (mcore_init_extra_frame_info): Update.
9641 * arch-utils.c (init_frame_pc_default): Update.
9642 * m68k-tdep.c (isi_frame_num_args): Update.
9643 (delta68_frame_num_args): Update.
9644 (news_frame_num_args): Update.
9645 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9646 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9647 (alpha_frame_chain): Update.
9648 (alpha_pop_frame): Update.
9649 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9650 (hppa_init_extra_frame_info): Update.
9651 (hppa_frame_chain): Update.
9652 (hppa_frame_chain_valid): Update.
9653 * cris-tdep.c (cris_init_extra_frame_info): Update.
9654 * avr-tdep.c (avr_init_extra_frame_info): Update.
9655 * arm-tdep.c (arm_frame_chain_valid): Update.
9656 (arm_init_extra_frame_info): Update.
9657 (arm_pop_frame): Update.
9658 * frame.c (frame_pc_unwind): Update.
9659 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9660 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9661 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9662 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9663 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9664 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9666 2003-03-12 Andrew Cagney <cagney@redhat.com>
9668 Eliminate the need for POP_FRAME.
9669 * frame.c (do_frame_unwind_register): New function.
9670 (frame_pop): When no POP_FRAME, pop the frame using register
9671 unwind and a scratch regcache.
9672 (frame_saved_regs_pop): Delete function.
9673 (trad_frame_unwinder): Update.
9674 * d10v-tdep.c (d10v_frame_pop): Delete function.
9675 (d10v_frame_unwind): Update.
9676 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9677 (sentinel_frame_unwinder): Update.
9678 * dummy-frame.c (dummy_frame_pop): Delete function.
9679 (dummy_frame_unwind): Update.
9680 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9681 (struct frame_unwind): Update.
9683 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9685 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9686 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9687 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9688 Do range checks on register number obtained from debugging info.
9689 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9690 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9691 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9693 (do_fp_register_row): Fix typo which caused double type to be
9694 used when attempting to unpack a float.
9696 2003-03-11 J. Brobecker <brobecker@gnat.com>
9698 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9700 2003-03-11 Andrew Cagney <cagney@redhat.com>
9702 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9703 frame. Problem found by Corinna Vinschen.
9705 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9707 * doublest.c (floatformat_from_length): Accept also
9708 the real size of 'long double' type.
9710 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9712 From Klee Dienes <kdienes@apple.com>:
9713 * breakpoint.c (bpstat_copy): Copy the command lines as well
9714 as the old value, to match what is freed in bpstat_clear.
9716 2003-03-10 David Carlton <carlton@math.stanford.edu>
9718 * minsyms.c (add_minsym_to_hash_table): Replace
9719 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9720 (compare_minimal_symbols, compact_minimal_symbols)
9721 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9722 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9723 of DEPRECATED_SYMBOL_MATCHES_NAME.
9724 (lookup_minimal_symbol_solib_trampoline): Ditto.
9726 2003-03-10 Andrew Cagney <cagney@redhat.com>
9728 * regcache.h (regcache_cooked_read_ftype): Define.
9729 (regcache_save, regcache_restore): Add a cooked_read parameter.
9730 * regcache.c (regcache_save, regcache_restore): Update.
9731 (do_cooked_read): New function.
9732 (regcache_cpy): Pass do_cooked_read to regcache_save and
9735 2003-03-10 Andrew Cagney <cagney@redhat.com>
9737 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9738 * gdbarch.h, gdbarch.c: Re-generate.
9739 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9740 * x86-64-tdep.h: Update.
9741 * x86-64-tdep.c (x86_64_init_abi): Update.
9742 * v850-tdep.c (v850_gdbarch_init): Update.
9743 * sparc-tdep.c (sparc_gdbarch_init): Update.
9744 * sh-tdep.c (sh_gdbarch_init): Update.
9745 * s390-tdep.c (s390_gdbarch_init): Update.
9746 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9747 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9748 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9749 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9750 * mips-tdep.c (mips_gdbarch_init): Update.
9751 * mcore-tdep.c (mcore_gdbarch_init): Update.
9752 * m68k-tdep.c (m68k_gdbarch_init): Update.
9753 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9754 * ia64-tdep.c (ia64_gdbarch_init): Update.
9755 * i386-tdep.c (i386_gdbarch_init): Update.
9756 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9757 * hppa-tdep.c (hppa_gdbarch_init): Update.
9758 * h8300-tdep.c (h8300_gdbarch_init): Update.
9759 * frv-tdep.c (frv_gdbarch_init): Update.
9760 * cris-tdep.c (cris_gdbarch_init): Update.
9761 * avr-tdep.c (avr_gdbarch_init): Update.
9762 * arm-tdep.c (arm_gdbarch_init): Update.
9763 * alpha-tdep.c (alpha_gdbarch_init): Update.
9764 * sh-tdep.c (sh_init_extra_frame_info): Update.
9765 (sh64_init_extra_frame_info): Update.
9766 * ns32knbsd-nat.c (frame_num_args): Update.
9767 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9768 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9769 (xstormy16_frame_chain_valid): Update.
9770 * vax-tdep.c (vax_saved_pc_after_call): Update.
9771 * v850-tdep.c (v850_frame_chain): Update.
9772 (v850_pop_frame): Update.
9773 (v850_init_extra_frame_info): Update.
9774 * sparc-tdep.c (setup_arbitrary_frame): Update.
9775 * ns32k-tdep.c (umax_frame_num_args): Update.
9776 * s390-tdep.c (s390_pop_frame_regular): Update.
9777 * mn10300-tdep.c (mn10300_frame_chain): Update.
9778 (mn10300_pop_frame_regular): Update.
9779 (mn10300_init_extra_frame_info): Update.
9780 * mips-tdep.c (mips_init_frame_pc_first): Update.
9781 (mips_frame_chain): Update.
9782 (mips_pop_frame): Update.
9783 * mcore-tdep.c (mcore_frame_chain): Update.
9784 (mcore_pop_frame): Update.
9785 (mcore_init_extra_frame_info): Update.
9786 * arch-utils.c (init_frame_pc_default): Update.
9787 * m68k-tdep.c (isi_frame_num_args): Update.
9788 (delta68_frame_num_args): Update.
9789 (news_frame_num_args): Update.
9790 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9791 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9792 (alpha_frame_chain): Update.
9793 (alpha_pop_frame): Update.
9794 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9795 (hppa_init_extra_frame_info): Update.
9796 (hppa_frame_chain): Update.
9797 (hppa_frame_chain_valid): Update.
9798 * cris-tdep.c (cris_init_extra_frame_info): Update.
9799 * avr-tdep.c (avr_init_extra_frame_info): Update.
9800 * arm-tdep.c (arm_frame_chain_valid): Update.
9801 (arm_init_extra_frame_info): Update.
9802 (arm_pop_frame): Update.
9803 * frame.c (frame_pc_unwind): Update.
9804 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9805 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9806 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9807 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9808 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9809 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9811 2003-03-10 Andrew Cagney <cagney@redhat.com>
9813 * gdbarch.sh (gdbarch_unwind_pc): New method.
9814 * gdbarch.h, gdbarch.c: Regenerate.
9815 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9816 but use read_pc and FRAME_SAVED_PC as fall backs.
9817 (frame_saved_regs_pc_unwind): Delete function.
9818 (trad_frame_unwinder): Update.
9819 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9820 (struct frame_unwind): Update.
9821 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9822 (dummy_frame_unwind): Update.
9823 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9824 (sentinel_frame_unwinder): Update.
9825 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9826 (d10v_frame_unwind): Update.
9827 (d10v_unwind_pc): New function.
9828 (d10v_gdbarch_init): Set unwind_pc.
9830 2003-03-10 Andrew Cagney <cagney@redhat.com>
9832 * gdbarch.h: Re-generate.
9834 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9836 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9839 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9841 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9843 2003-03-08 Andrew Cagney <cagney@redhat.com>
9845 * cli-out.c: Update copyright.
9846 (cli_out_data): Define typedef. Use instead of ui_out_data.
9848 2003-03-08 Andrew Cagney <cagney@redhat.com>
9850 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9853 2003-03-07 Andrew Cagney <cagney@redhat.com>
9855 * gdbarch.sh: Don't generate two macro definitions when an
9856 undefined macro taking no arguments.
9857 * gdbarch.h: Regenerate.
9859 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9861 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9862 (x86_64_unwind_dummy_id): New functions.
9863 (x86_64_init_abi): Register these two new functions.
9865 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9867 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9868 (x86_64_skip_prologue): Move prologue detection to
9870 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9872 2003-03-05 Andrew Cagney <cagney@redhat.com>
9874 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9875 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9876 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9877 to use unwind_dummy_id when a dummy frame.
9878 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9880 * gdbarch.h, gdbarch.c: Regneerate.
9882 2003-03-05 Andrew Cagney <cagney@redhat.com>
9884 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9885 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9886 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9889 2003-03-05 Andrew Cagney <cagney@redhat.com>
9891 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9892 (struct d10v_unwind_cache): Delete field "frameless". Replace
9893 "next_addr" with "sp_offset". Add "r11_offset".
9894 (d10v_frame_unwind_cache): Update.
9895 (prologue_find_regs): Update. When "mv r11, sp", save the
9896 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9897 RN was saved in r11_offset.
9899 2003-03-05 Andrew Cagney <cagney@redhat.com>
9901 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9902 cached PC value in the next frame.
9904 2003-03-05 Andrew Cagney <cagney@redhat.com>
9906 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9907 "id_unwind_cache" with "id".
9908 (frame_id_unwind): Delete declaration.
9909 * frame.c (frame_id_unwind): Delete function.
9910 (get_prev_frame): Call the frame id unwind method directly. Store
9911 the returned next frame's ID value in NEXT_FRAME. Note that there
9912 is a problem with the wrong unwind ID being called with the wrong
9915 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9917 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9919 2003-03-05 James Ingham <jingham@apple.com>
9920 Daniel Jacobowitz <drow@mvista.com>
9922 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9923 (auto_cp_abi): New variable.
9924 (current_cp_abi, num_cp_abis): Make static.
9925 (CP_ABI_MAX): Define.
9926 (cp_abis): Turn into an array.
9927 (value_virtual_fn_field): Fix formatting.
9928 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9930 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9931 (list_cp_abis, _initialize_cp_abi): New functions.
9932 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9933 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9934 switch_to_cp_abi. Update prototype for register_cp_abi.
9935 * Makefile.in (cp-abi.o): Update dependencies.
9936 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9937 instead of switch_to_cp_abi.
9938 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9940 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9942 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9944 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9946 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9947 * dwarf2loc.c: Include "regcache.h".
9948 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9950 * Makefile.in (dwarf2loc.o): Update dependencies.
9952 2003-03-04 Theodore A. Roth <troth@openavr.org>
9954 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9955 number of io registers reported by remote target is not a multiple of
9958 2003-03-04 David Carlton <carlton@math.stanford.edu>
9960 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9961 (lookup_symbol_aux_psymtabs): Update call to
9962 lookup_partial_symbol.
9963 (lookup_transparent_type, find_main_psymtab)
9964 (make_symbol_overload_list): Ditto.
9966 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9968 * MAINTAINERS (Write after approval): Update my email address.
9970 2003-03-03 Andrew Cagney <cagney@redhat.com>
9972 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9973 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9974 predicate. Replace MAX_REGISTER_RAW_SIZE.
9975 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9976 MAX_REGISTER_VIRTUAL_SIZE.
9977 * regcache.c (legacy_max_register_raw_size): New function.
9978 (legacy_max_register_virtual_size): New function.
9979 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9980 (MAX_REGISTER_RAW_SIZE): Define.
9981 (legacy_max_register_raw_size): Declare.
9982 (legacy_max_register_virtual_size): Declare.
9983 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9984 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9985 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9986 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9987 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9988 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9989 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9990 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9991 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9992 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9993 * vax-tdep.c (vax_gdbarch_init): Update.
9994 * v850-tdep.c (v850_gdbarch_init): Update.
9995 * sparc-tdep.c (sparc_gdbarch_init): Update.
9996 * sh-tdep.c (sh_gdbarch_init): Update.
9997 * s390-tdep.c (s390_gdbarch_init): Update.
9998 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9999 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10000 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10001 * mips-tdep.c (mips_gdbarch_init): Update.
10002 * mcore-tdep.c (mcore_gdbarch_init): Update.
10003 * m68k-tdep.c (m68k_gdbarch_init): Update.
10004 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10005 * ia64-tdep.c (ia64_gdbarch_init): Update.
10006 * i386-tdep.c (i386_gdbarch_init): Update.
10007 * hppa-tdep.c (hppa_gdbarch_init): Update.
10008 * h8300-tdep.c (h8300_gdbarch_init): Update.
10009 * frv-tdep.c (frv_gdbarch_init): Update.
10010 * cris-tdep.c (cris_gdbarch_init): Update.
10011 * avr-tdep.c (avr_gdbarch_init): Update.
10012 * arm-tdep.c (arm_gdbarch_init): Update.
10013 * alpha-tdep.c (alpha_gdbarch_init): Update.
10014 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10015 max_register_raw_size or max_register_virtual_size.
10017 2003-03-03 David Carlton <carlton@math.stanford.edu>
10019 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10020 SYMBOL_MATCHES_NAME, add comment.
10021 (SYMBOL_MATCHES_NATURAL_NAME): New.
10022 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10023 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10024 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10025 * symtab.c (lookup_partial_symbol): Use
10026 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10028 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10029 SYMBOL_MATCHES_NAME.
10032 2003-03-03 David Carlton <carlton@math.stanford.edu>
10034 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10035 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10036 by regexp matching against SYMBOL_NATURAL_NAME.
10038 2003-03-03 David Carlton <carlton@math.stanford.edu>
10040 * linespec.c (find_method): Extract code into collect_methods.
10041 (collect_methods): New.
10043 2003-03-02 Mark Kettenis <kettenis@gnu.org>
10045 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10048 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10049 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10051 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10053 * arch-utils.c (generic_register_byte): Fix to use the loop index
10054 and not regnum when summing the size of all registers up to regnum.
10056 2003-03-01 Andrew Cagney <cagney@redhat.com>
10058 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10059 FRAME_INIT_SAVED_REGS.
10060 * gdbarch.h, gdbarch.c: Regenerate.
10061 * stack.c (frame_info): Update.
10062 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10063 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10064 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10065 * ns32k-tdep.c (ns32k_pop_frame): Update.
10066 * mips-tdep.c (mips_pop_frame): Update.
10067 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10068 * ia64-tdep.c (ia64_frame_chain): Update.
10069 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10070 (ia64_frameless_function_invocation): Update.
10071 (ia64_init_extra_frame_info): Update.
10072 (ia64_pop_frame_regular): Update.
10073 * frame.h (struct frame_info): Update comment.
10074 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10075 * frame.c (frame_saved_regs_register_unwind): Update.
10076 (frame_saved_regs_register_unwind): Update.
10077 (deprecated_generic_get_saved_register): Update.
10078 * cris-tdep.c: Update comment.
10079 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10081 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10082 * x86-64-tdep.c (x86_64_init_abi): Update.
10083 * vax-tdep.c (vax_gdbarch_init): Update.
10084 * v850-tdep.c (v850_gdbarch_init): Update.
10085 * sparc-tdep.c (sparc_gdbarch_init): Update.
10086 * sh-tdep.c (sh_gdbarch_init): Update.
10087 * s390-tdep.c (s390_gdbarch_init): Update.
10088 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10089 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10090 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10091 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10092 * mips-tdep.c (mips_gdbarch_init): Update.
10093 * mcore-tdep.c (mcore_gdbarch_init): Update.
10094 * m68k-tdep.c (m68k_gdbarch_init): Update.
10095 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10096 * ia64-tdep.c (ia64_gdbarch_init): Update.
10097 * i386-tdep.c (i386_gdbarch_init): Update.
10098 * frv-tdep.c (frv_gdbarch_init): Update.
10099 * avr-tdep.c (avr_gdbarch_init): Update.
10100 * arm-tdep.c (arm_gdbarch_init): Update.
10101 * alpha-tdep.c (alpha_gdbarch_init): Update.
10103 2003-03-01 Andrew Cagney <cagney@redhat.com>
10105 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10106 option enum and switch. When no windows, set the interpreter to
10109 2003-03-01 Andrew Cagney <cagney@redhat.com>
10111 * main.c (captured_main): Replace magic option characters with an
10114 2003-03-01 Andrew Cagney <cagney@redhat.com>
10116 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10117 INIT_EXTRA_FRAME_INFO.
10118 * gdbarch.h, gdbarch.c: Regenerate.
10119 * arm-tdep.c: Update comments.
10120 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10121 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10122 * frame.h, avr-tdep.c: Ditto.
10123 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10124 (create_new_frame, legacy_get_prev_frame): Ditto.
10125 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10126 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10127 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10128 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10129 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10130 * v850-tdep.c (v850_gdbarch_init): Ditto.
10131 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10132 * sh-tdep.c (sh_gdbarch_init): Ditto.
10133 * s390-tdep.c (s390_gdbarch_init): Ditto.
10134 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10135 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10136 * mips-tdep.c (mips_gdbarch_init): Ditto.
10137 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10138 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10139 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10140 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10141 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10142 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10143 * frv-tdep.c (frv_gdbarch_init): Ditto.
10144 * cris-tdep.c (cris_gdbarch_init): Ditto.
10145 * avr-tdep.c (avr_gdbarch_init): Ditto.
10146 * arm-tdep.c (arm_gdbarch_init): Ditto.
10147 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10148 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10150 2003-03-01 Andrew Cagney <cagney@redhat.com>
10152 * gdbarch.sh (register_type): New function with predicate.
10153 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10154 * gdbarch.h, gdbarch.c: Re-generate.
10155 * arch-utils.c (generic_register_byte): Use generic_register_size.
10156 (generic_register_size): When available, use
10157 gdbarch_register_type.
10158 * regcache.c (init_regcache_descr): When available, initialize the
10159 register type array using gdbarch_register_type. If the
10160 architecture supplies gdbarch_register_type, do not use the legacy
10162 * d10v-tdep.c (d10v_register_type): Replace
10163 d10v_register_virtual_type.
10164 (d10v_gdbarch_init): Set register_type instead of
10165 register_virtual_type.
10167 2003-03-01 Andrew Cagney <cagney@redhat.com>
10169 * Makefile.in (ax-gdb.o): Update dependencies.
10170 * ax-gdb.c: Include "regcache.h".
10171 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10172 * findvar.c (value_of_register): Ditto.
10173 * infcmd.c (default_print_registers_info): Ditto.
10175 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10177 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10178 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10180 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10182 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10185 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
10187 * Makefile.in (dwarf2loc.o): Update dependencies.
10188 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10189 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10190 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10191 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10192 (locexpr_tracepoint_var_ref): New function.
10193 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10195 2003-02-28 Andrew Cagney <cagney@redhat.com>
10197 * regcache.c (register_size): New function.
10198 * regcache.h (register_size): Declare
10199 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10200 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10202 2003-02-28 David Carlton <carlton@math.stanford.edu>
10204 * linespec.c (decode_compound): Extract code into find_method.
10205 (find_method): New.
10207 2003-02-28 J. Brobecker <brobecker@gnat.com>
10209 * Makefile.in: Add rules to build and link in observer.o.
10211 2003-02-27 J. Brobecker <brobecker@gnat.com>
10213 * observer.c: Minor comments edits.
10215 2003-02-27 J. Brobecker <brobecker@gnat.com>
10217 * observer.h, observer.c: New file.
10219 2003-02-27 Andrew Cagney <cagney@redhat.com>
10221 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10223 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10225 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10226 (M6812_OP_STS_EXT): Likewise.
10227 (m6811_prologue): Use the above to recognize prologue.
10228 (m6812_prologue): Likewise.
10230 2003-02-27 David Carlton <carlton@math.stanford.edu>
10232 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10234 (compare_psymbols): Ditto.
10235 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10237 2003-02-27 Michael Snyder <msnyder@redhat.com>
10239 * f-lang.c (build_fortran_types): New function.
10240 (_initialize_f_language): Gdbarch-register built-in fortran types.
10241 * doublest.c (extract_floating): Fix warning text.
10243 2003-02-27 Andrew Cagney <cagney@redhat.com>
10245 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10246 predicate. Replaces PUSH_DUMMY_FRAME.
10247 * gdbarch.h, gdbarch.c: Regnerate.
10248 * valops.c (hand_function_call): Update. Call
10249 generic_push_dummy_frame directly.
10250 * vax-tdep.c (vax_gdbarch_init): Update.
10251 * sparc-tdep.c (sparc_gdbarch_init): Update.
10252 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10253 * m68k-tdep.c (m68k_gdbarch_init): Update.
10254 * hppa-tdep.c (hppa_gdbarch_init): Update.
10255 * alpha-tdep.c (alpha_gdbarch_init): Update.
10256 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10257 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10258 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10259 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10260 push_dummy_frame to generic_push_dummy_frame.
10261 * v850-tdep.c (v850_gdbarch_init): Ditto.
10262 * sh-tdep.c (sh_gdbarch_init): Ditto.
10263 * s390-tdep.c (s390_gdbarch_init): Ditto.
10264 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10265 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10266 * mips-tdep.c (mips_gdbarch_init): Ditto.
10267 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10268 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10269 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10270 * i386-tdep.c (i386_gdbarch_init): Ditto.
10271 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10272 * frv-tdep.c (frv_gdbarch_init): Ditto.
10273 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10274 * cris-tdep.c (cris_gdbarch_init): Ditto.
10275 * avr-tdep.c (avr_gdbarch_init): Ditto.
10276 * arm-tdep.c (arm_gdbarch_init): Ditto.
10278 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10280 * mips-tdep.c (show_mips_abi): New function.
10281 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10282 command ``show mips abi''.
10284 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10286 From Elena Zannoni <ezannoni@redhat.com>
10287 * dbxread.c (process_one_symbol): Only record line 0 if one or
10288 more sline entries have been seen for the function.
10290 2003-02-26 Michael Chastain <mec@shout.net>
10292 * configure: Regenerate with autoconf 000227.
10294 2003-02-26 Michael Chastain <mec@shout.net>
10296 Close PR build/660.
10297 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10298 for old libc5/glibc.
10299 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10301 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10303 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10304 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10306 2003-02-26 Michael Chastain <mec@shout.net>
10308 * configure.in: New variable HAVE_UINTPTR_T.
10309 * configure, config.in: Regenerated.
10311 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10314 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10316 2003-02-25 Andrew Cagney <cagney@redhat.com>
10318 * frame.c (get_prev_frame): Add comment on check for
10319 inside_entry_func. Only check for inside_entry_file when not a
10320 dummy and not a sentinel. Check that the new frame is not inner
10323 2003-02-25 Andrew Cagney <cagney@redhat.com>
10325 * frame.c (frame_debug): New variable.
10326 (_initialize_frame): Add "set/show debug frame" command.
10327 (get_prev_frame): When frame_debug, print reason why unwind
10330 2003-02-25 Michael Chastain <mec@shout.net>
10332 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10333 to avoid uintptr_t definition problems.
10335 2003-02-25 David Carlton <carlton@math.stanford.edu>
10337 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10338 (SYMBOL_LINKAGE_NAME): Ditto.
10339 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10340 SYMBOL_LINKAGE_NAME.
10341 (struct general_symbol_info): Expand comment.
10342 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10343 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10344 (SYMBOL_MATCHES_REGEXP): Ditto.
10345 * symtab.c (symbol_natural_name): New function.
10346 * objfiles.h: Replace all uses of SYMBOL_NAME by
10347 DEPRECATED_SYMBOL_NAME.
10348 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10349 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10350 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10351 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10352 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10353 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10354 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10355 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10356 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10357 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10358 * ada-exp.y: Ditto.
10359 * ada-exp.y: Update copyright.
10360 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10361 * cp-valprint.c: Ditto.
10363 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10365 * infptrace.c (detach): Do not flag error if ptrace detach fails
10366 and errno is set to ESRCH.
10368 2003-02-24 Andrew Cagney <cagney@redhat.com>
10370 * infptrace.c (udot_info): Change type of udot_off to long. Use
10371 paddr when printing udot_off's value.
10373 2003-02-24 David Carlton <carlton@math.stanford.edu>
10375 * symtab.c (make_symbol_overload_list): Only read in partial
10376 symtabs containing a matching partial symbol.
10378 2003-02-24 David Carlton <carlton@math.stanford.edu>
10380 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10381 do the comparison, not strcmp.
10382 * symfile.c (compare_psymbols): Ditto.
10383 * defs.h: Declare strcmp_iw_ordered.
10384 * utils.c (strcmp_iw_ordered): New function.
10386 2003-02-24 Jim Blandy <jimb@redhat.com>
10388 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10389 support, shared libs): Remove my name from here, to better reflect
10392 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10394 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10395 (target_ops): Add to_have_continuable_watchpoint.
10396 * target.c (update_current_target): Add INHERIT line for
10397 to_have_continuable_watchpoint.
10398 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10399 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10400 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10401 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10403 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10405 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10408 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10410 * solib.c (solib_open): Call target defined search function after
10411 failing with solib-search-path.
10412 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10413 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10415 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10417 * MAINTAINERS: Add myself to Write After section.
10419 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10421 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10423 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10425 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10426 (m68hc11_add_reggroups): New function.
10427 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10428 (m68hc11_gdbarch_init): Install the reggroups.
10429 (_initialize_m68hc11_tdep): Initialize them.
10431 2003-02-21 James E Wilson <wilson@tuliptree.org>
10433 * MAINTAINERS: Update my email address.
10435 2003-02-21 David Carlton <carlton@math.stanford.edu>
10437 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10439 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10441 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10442 * symtab.h: Add opaque declarations of struct axs_value and
10444 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10445 (struct location_funcs): New type.
10446 (struct symbol): Add "loc" to aux_value.
10447 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10448 * dwarf2read.c: Include "dwarf2expr.h".
10449 (dwarf2_symbol_mark_computed): New function.
10450 (read_func_scope): Use it.
10451 (var_decode_location): New function.
10452 (new_symbol): Use it.
10453 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10455 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10456 (dwarf2expr_h, dwarf2loc_h): New variables.
10457 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10458 (dwarf2expr.o, dwarf2loc.o): New rules.
10459 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10460 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10462 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10463 * m2-exp.y (yylex): Likewise.
10464 * printcmd.c (address_info, print_frame_args): Likewise.
10465 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10466 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10467 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10468 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10469 * symtab.c (lookup_block_symbol): Likewise.
10471 2003-02-20 Adam Fedor <fedor@gnu.org>
10473 * symtab.h: Remove objc_specific struct
10474 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10475 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10476 Have language_objc use cplus_specific struct.
10478 2003-02-20 Tom Tromey <tromey@redhat.com>
10480 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10481 TYPE_NAME, when printing a String value. PR java/1075.
10483 2003-02-20 Adam Fedor <fedor@gnu.org>
10485 * objc-lang.h (find_methods): Remove declaration.
10486 * objc-lang.c (find_methods): Make static.
10488 2003-02-20 Christopher Faylor <cgf@redhat.com>
10490 * win32-nat.c (get_image_name): Check return value from
10492 (child_xfer_memory): Ditto.
10494 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10496 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10497 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10498 '${exec_prefix}' (in addition to the expansion thereof) as
10500 * configure: Rebuilt.
10502 2003-02-20 David Carlton <carlton@math.stanford.edu>
10504 * symtab.c (search_symbols): Revert the search_symbols part of my
10505 2002-12-23 patch. Add comment.
10507 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10509 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10510 * dbxread.c (elfstab_build_psymtabs): Don't call
10511 install_minimal_symbols.
10512 (stabsect_build_psymtabs): Likewise.
10513 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10515 * somread.c (som_symfile_read): Call install_minimal_symbols
10516 and do_cleanups earlier.
10517 * nlmread.c (nlm_symfile_read): Likewise.
10518 * mdebugread.c (elfmdebug_build_psymtabs): Call
10519 install_minimal_symbols and make appropriate cleanups.
10521 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10523 * solib.c (reload_shared_libraries): New function.
10524 (_initialize_solib): Add callbacks for ``set solib-search-path''
10525 and ``set solib-absolute-prefix''.
10527 2003-02-20 David Carlton <carlton@math.stanford.edu>
10529 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10531 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10532 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10533 * ada-typeprint.c (ada_typedef_print): Ditto.
10534 * ax-gdb.c (gen_var_ref): Ditto.
10535 * breakpoint.c (print_one_breakpoint): Ditto.
10536 * buildsym.c (finish_block): Ditto.
10537 * c-valprint.c (c_val_print): Ditto.
10538 * expprint.c (print_subexp): Ditto.
10539 * findvar.c (locate_var_value): Ditto.
10540 * infcmd.c (jump_command): Ditto.
10541 * linespec.c (decode_line_2, decode_compound): Ditto.
10542 * maint.c (maintenance_translate_address): Ditto.
10543 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10544 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10546 * p-valprint.c (pascal_val_print): Ditto.
10547 * stabsread.c (define_symbol): Ditto.
10548 * stack.c (print_frame, frame_info, print_block_frame_locals)
10549 (print_frame_arg_vars, return_command): Ditto.
10550 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10551 * symmisc.c (print_symbol): Ditto.
10552 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10553 (compare_search_syms, print_symbol_info, print_msymbol_info)
10554 (rbreak_command): Ditto.
10555 * tracepoint.c (tracepoints_info): Ditto.
10556 * typeprint.c (typedef_print): Ditto.
10557 * valops.c (value_of_variable, hand_function_call): Ditto.
10558 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10559 * ada-typeprint.c: Update Copyright.
10560 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10561 * tracepoint.c, cli/cli-cmds.c: Ditto.
10563 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10565 * frame.c (generic_unwind_get_saved_register): Make non-static.
10566 * frame.h (generic_unwind_get_saved_register): Declare.
10567 * mips-tdep.c (read_next_frame_reg): Fetch register from
10568 current regcache when frame is NULL.
10569 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10571 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10572 instead of frame_register_unwind().
10574 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10576 * remote-sim.c (gdbsim_insert_breakpoint)
10577 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10580 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10582 * remote.c (_initialize_remote): Add commands "set/show remote
10583 hardware-watchpoint-limit" and "set/show remote
10584 hardware-breakpoint-limit".
10585 (remote_hw_watchpoint_limit): Initialize to -1.
10586 (remote_hw_breakpoint_limit): Ditto.
10587 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10589 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10591 * coff-pe-read.c: New file - support reading of minimal symbols from a
10592 portable executable using the export table.
10593 * coff-pe-read.h: New file.
10594 * coffread.c: Include coff-pe-read.h.
10595 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10596 debugging symbols found.
10597 * Makefile.in (SFILES): Add coff-pe-read.o.
10598 (coff_pe_read_h): Define.
10599 (COMMON_OBS): Add coff-pe-read.o.
10600 (coffread.o): Add coff_pe_read_h dependency.
10601 (coff-pe-read.o): New target.
10603 2003-02-19 David Carlton <carlton@math.stanford.edu>
10605 * Makefile.in (SFILES): Add block.c.
10607 (COMMON_OBS): Add block.o.
10609 (x86-64-tdep.o): Add $(block_h).
10610 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10611 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10612 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10613 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10614 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10615 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10616 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10617 * value.h: Add opaque declaration for struct block.
10618 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10619 * ada-lang.h: Ditto.
10620 * x86-64-tdep.c: #include "block.h"
10621 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10622 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10623 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10624 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10625 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10626 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10627 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10628 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10629 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10630 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10631 * symtab.c (block_function): Ditto.
10632 (contained_in): Ditto.
10633 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10634 block.h. Add opaque declaration for struct block.
10635 * symtab.h: Move block_function and contained_in declarations to
10636 block.h. Add opaque declarations for struct block, struct
10638 (struct block): Move to block.h.
10639 (struct blockvector): Ditto.
10640 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10641 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10642 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10643 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10644 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10646 * block.c: New file.
10647 * block.h: New file.
10649 2003-02-19 Theodore A. Roth <troth@openavr.org>
10651 * avr-tdep.c (avr_extract_return_value): Remove function.
10652 (avr_store_return_value): Remove function.
10653 (avr_extract_struct_value_address): Remove function.
10654 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10656 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10658 * rs6000-tdep.c: Include "gdb_assert.h".
10659 (registers_e500): Add "acc" and "spefscr".
10660 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10661 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10662 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10664 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10666 2003-02-18 Keith Seitz <keiths@redhat.com>
10668 * Makefile.in: Add gdbtk-interps.c.
10670 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10672 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10673 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10675 2003-02-18 Andrew Cagney <cagney@redhat.com>
10677 * symtab.h (struct objfile): Add opaque declaration.
10679 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10681 From Jim Ingham <jingham@apple.com>:
10682 * dbxread.c (process_one_symbol): Use last_function_start rather
10683 than function_start_offset to find the real beginning of the
10684 current function. The latter is just the text section offset on
10685 some systems, the former is always the real function start.
10687 2003-02-17 Andrew Cagney <cagney@redhat.com>
10689 * configure.in: Revert ${target} != ${host}.
10691 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10693 * configure.in (Makefile): Use the test ${target} != ${host},
10694 instead of the absence of the "nm.h" file, to determine of the
10695 configuration non-native.
10696 * configure: Regenerate.
10698 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10700 From Brian Ford <ford@vss.fsi.com>
10702 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10703 conditionalize tui_active test.
10704 (lookup_cmd_1): Ditto.
10706 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10708 * configure.in: Add check for _etext.
10709 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10711 * config.in, configure: regenerated.
10713 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10715 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10717 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10719 * main.c (tui_version): Delete variable.
10720 (captured_main): When --tui, set interpreter_p to "tui" instead of
10721 enabling tui_version.
10722 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10724 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10725 * cli/cli-cmds.c (disassemble_command): Ditto.
10726 * defs.h (tui_version): Delete declaration.
10727 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10728 (tui-interp.o): Add rules.
10729 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10731 2003-02-14 Christopher Faylor <cgf@redhat.com>
10733 * win32-nat.c (register_loaded_dll): Correctly set address range for
10736 2003-02-12 Jason Molenda (jmolenda@apple.com)
10738 * symmisc.c (print_objfile_statistics): Include information about
10739 the number of psymtabs and symtabs in each object file.
10741 2003-02-13 Keith R Seitz <keiths@redhat.com>
10743 * main.h (struct captured_main_args): Add interpreter_p.
10744 * main.c (captured_main): Initialize interpreter_p from context.
10745 * gdb.c (main): Set interpreter_p argument.
10746 * Makefile.in (gdb.o): Add dependency for interps.h.
10748 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10750 * event-top.c (cli_command_loop): Delete declaration.
10751 (_initialize_event_loop): Delete function setting event_loop_hook.
10752 * event-top.h (cli_command_loop): Declare. Update copyright.
10753 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10754 * interps.c (current_interp_command_loop): When event_loop_p, call
10757 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10759 * interps.h (interp_command_loop_ftype): Change return type to
10762 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10764 * x86-64-tdep.c (x86_64_extract_return_value)
10765 (x86_64_store_return_value): Use regcache instead of regbuf.
10766 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10767 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10769 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10771 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10772 * aclocal.m4: Regenerate.
10773 * configure: Regenerate.
10775 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10776 TCL_LD_SEARCH_FLAGS.
10778 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10780 * dwarf2cfi.c: Reindented.
10782 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10784 * interps.c (clear_interpreter_hooks): Convert function definition
10787 2003-02-07 David Carlton <carlton@math.stanford.edu>
10789 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10791 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10793 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10794 (struct type): ...to here.
10795 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10797 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10798 (replace_type): Set length on all type variants for a given type.
10800 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10802 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10804 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10806 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10808 * Makefile.in (symm-nat.o): Update dependencies.
10809 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10810 (lynx-nat.o, ia64-linux-nat.): Ditto.
10811 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10812 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10813 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10815 * Makefile.in (inflow_h): Define.
10816 (procfs.o, inflow.o, procfs.o): Update dependencies.
10817 * inftarg.c (child_stop): Delete extern declaration of
10818 inferior_process_group. Include "inflow.h".
10819 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10820 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10821 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10822 (our_process_group, inferior_process_group): Extern declarations.
10824 * procfs.c: Include "gdb_assert.h".
10826 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10827 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10828 * jv-typeprint.c (java_type_print_base): Ditto.
10829 * typeprint.c (typedef_print): Eliminate STREQ.
10830 * cli/cli-script.c (define_command, define_command): Ditto.
10831 * main.c (captured_main): Ditto.
10832 * values.c (lookup_internalvar): Ditto.
10833 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10834 within `if' conditional.
10835 * linespec.c (decode_line_2): Ditto.
10836 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10837 (bfd_openw_with_cleanup): Ditto.
10839 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10841 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10842 legacy_extract_return_value and store_return_value to
10843 legacy_return_value.
10845 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10847 * win32-nat.c (get_relocated_section_addrs): New function. Find
10848 section load addresses for symbol handling in relocated DLLs.
10849 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10851 2003-02-05 Fred Fish <fnf@intrinsity.com>
10853 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10855 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10857 (angel_RDI_info): Ditto.
10858 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10860 (threads_continue_all_with_signals): Ditto.
10862 2003-02-05 Jim Ingham <jingham@apple.com>
10863 Keith Seitz <keiths@redhat.com>
10864 Elena Zannoni <ezannoni@redhat.com>
10865 Andrew Cagney <ac131313@redhat.com>
10867 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10868 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10869 (SUBDIR_MI_OBS): Add "mi-interp.o".
10870 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10871 (SFILES): Add "interps.c".
10872 (COMMON_OBS): Add "interps.o".
10873 (interps_h, mi_main_h): Define.
10874 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10875 (mi-main.o, main.o, event-top.o): Update dependencies.
10876 * cli/cli-interp.c: New file.
10877 * interps.h, interps.c: New files.
10878 * top.c: (gdb_init): Don't install the default interpreter, handed
10880 * main.c: Include "interps.h".
10881 (interpreter_p): Note that it should malloc'ed.
10882 (captured_command_loop): Call current_interp_command_loop.
10883 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10884 xfree and xstrdup when updating interpreter_p. Install the
10885 default interpreter. Add hack to stop mi1's copyright notice
10887 * event-top.h (gdb_setup_readline): Declare.
10888 (gdb_disable_readline): Declare.
10889 * event-top.c: Include "interps.h".
10890 (display_gdb_prompt): Call current_interp_display_prompt_p.
10891 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10892 gdb_stdlog, and gdb_stdtarg.
10893 (_initialize_event_loop): Don't call gdb_setup_readline.
10894 * cli-out.c (cli_out_set_stream): New function.
10895 * cli-out.h (cli_out_set_stream): Declare.
10897 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10899 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10900 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10901 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10902 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10903 config/i386/i386v42mp.mt: Removed.
10905 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10907 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10910 2003-02-05 Michael Chastain <mec@shout.net>
10912 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10913 2.12.1 and earlier versions.
10915 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10917 Remove orphaned hosts, targets and files.
10918 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10919 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10920 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10921 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10922 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10923 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10924 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10925 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10926 * config/sparc/tm-sp64sim.h: Delete.
10927 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10929 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10930 mips*-dec-mach3* targets.
10932 2003-02-04 Michael Chastain <mec@shout.net>
10934 * NEWS: Fix typo: sepcifying -> specifying.
10936 2003-02-04 Michael Chastain <mec@shout.net>
10938 * dwarfread.c: Add documentation on the state of dwarf-1,
10939 looking towards obsoletion.
10941 2003-02-03 Michael Chastain <mec@shout.net>
10943 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10944 gdb/testsuite/gdb.c++/pr-1023.exp.
10946 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10948 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10949 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10951 * utils.c (init_page_info): Delete reference to MPW in comments.
10952 * main.c (captured_main): Delete #ifdef MPW.
10954 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10956 * NEWS: Note that the m32r-*-elf* is obsolete.
10957 * monitor.c (monitor_expect): Obsolete reference to m32r.
10958 * configure.tgt: Mark m32r-*-elf* as obsolete.
10959 * MAINTAINERS: Mark m32k as obsolete.
10960 * m32r-rom.c: Obsolete file.
10961 * config/m32r/m32r.mt: Obsolete file.
10962 * config/m32r/tm-m32r.h: Obsolete file.
10963 * m32r-stub.c: Obsolete file.
10964 * m32r-tdep.c: Obsolete file.
10966 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10968 * NEWS: Mention that the z8k-zilog-none is obsolete.
10969 * MAINTAINERS: Mark z8k as obsolete.
10970 * configure.tgt: Obsolete the z8k-*-coff* target.
10971 * config/z8k/z8k.mt: Obsolete file.
10972 * config/z8k/tm-z8k.h: Obsolete file.
10973 * z8k-tdep.c: Obsolete file.
10975 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10977 * NEWS: Mention that the mn10200-elf is obsolete.
10978 * configure.tgt: Obsolete mn10200-*-* target.
10979 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10980 mention that the mn10200 is obsolete.
10981 * breakpoint.h: Ditto.
10982 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10983 * config/mn10200/mn10200.mt: Obsolete file.
10984 * config/mn10200/tm-mn10200.h: Obsolete file.
10985 * mn10200-tdep.c: Obsolete file.
10987 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10989 * MAINTAINERS: Mark h8500 as obsolete.
10990 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10991 * findvar.c (value_from_register): Ditto.
10992 * h8500-tdep.c: Mark file as obsolete.
10993 * config/h8500/h8500.mt: Ditto.
10994 * config/h8500/tm-h8500.h: Ditto.
10995 * NEWS: Mention that h8500 is obsolete.
10997 2003-02-04 David Carlton <carlton@math.stanford.edu>
10999 * objfiles.c (allocate_objfile): Always set name. Add comment at
11001 * jv-lang.c (get_dynamics_objfile): Add comment.
11003 2003-02-04 David Carlton <carlton@math.stanford.edu>
11005 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11006 * printcmd.c (build_address_symbolic): Replace uses of
11007 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11008 SYMBOL_NAME, and asm_demangle.
11011 2003-02-04 David Carlton <carlton@math.stanford.edu>
11013 * linespec.c (decode_compound): Extract code into
11015 (lookup_prefix_sym): New function.
11017 2003-02-04 David Carlton <carlton@math.stanford.edu>
11019 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11020 FLOAT_COERCION_BADNESS.
11021 * gdbtypes.c (rank_one_type): Replace all uses of
11022 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11024 2003-02-04 Jim Blandy <jimb@redhat.com>
11026 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11027 section, let dwarf_macinfo_section point to it, not
11030 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11032 Pointed out by Anton Blanchard <anton@samba.org>.
11033 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11034 (ppc_linux_at_sigtramp_return_path): Use it.
11036 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11038 * defs.h (streq): Add prototype.
11039 * utils.c (streq): New function.
11041 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11042 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11043 * mdebugread.c (new_symbol): Likewise.
11044 * stabsread.c (define_symbol): Likewise.
11045 * coffread.c (process_coff_symbol): Likewise.
11046 * dwarfread.c (new_symbol): Likewise.
11048 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11049 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11051 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11052 SYMBOL_INIT_DEMANGLED_NAME.
11053 * objfiles.c: Include "hashtab.h".
11054 (allocate_objfile): Call htab_set_functions_ex for the
11055 demangled_names_hash.
11056 (free_objfile): Call htab_delete for the demangled_names_hash.
11057 * objfiles.h (struct htab): Add declaration.
11058 (struct objfile): Add demangled_names_hash.
11059 * symfile.c: Include "hashtab.h".
11060 (reread_symbols): Call htab_delete for the demangled_names_hash.
11061 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11062 SYMBOL_NAME in the bcache.
11063 * symtab.c: Include "hashtab.h". Update comments.
11064 (create_demangled_names_hash, symbol_set_names): New functions.
11065 (symbol_find_demangled_name): New function, broken out from
11066 symbol_init_demangled_names.
11067 (symbol_init_demangled_names): Use it.
11068 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11069 (SYMBOL_SET_NAMES): New macro.
11070 (symbol_set_names): Add prototype.
11072 2003-02-03 Jim Blandy <jimb@redhat.com>
11074 Use a single, consistent representation for an empty minimal
11075 symbol table in an objfile.
11076 * objfiles.c (terminate_minimal_symbol_table): New function.
11077 (allocate_objfile): Call it.
11078 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11079 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
11081 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11082 objfile has minimal symbols, compare minimal_symbol_count to zero,
11083 instead of comparing msymbols with NULL.
11084 * objfiles.c (have_minimal_symbols): Same.
11085 * solib-sunos.c (solib_add_common_symbols): Call
11086 terminate_minimal_symbol_table.
11087 * symfile.c (reread_symbols): Same.
11089 2003-02-03 Kevin Buettner <kevinb@redhat.com>
11091 * s390-tdep.c (s390_address_class_type_flags)
11092 (s390_address_class_type_flags_to_name)
11093 (s390_address_class_name_to_type_flags): New functions.
11094 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11095 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11097 2003-02-03 Michael Snyder <msnyder@redhat.com>
11099 * arm-tdep.c: Fix spell-o in comment.
11101 2003-02-03 Michal Ludvig <mludvig@suse.cz>
11103 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11104 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
11105 error messages to contain BFD filename.
11107 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
11109 Fix PR gdb/742 gdb/743 gdb/877
11110 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11111 (do_mixed_source_and_assembly): Use
11112 make_cleanup_ui_out_tuple_begin_end and
11113 make_cleanup_ui_out_tuple_begin_end.
11114 (do_mixed_source_and_assembly): Ditto.
11115 * thread.c (do_captured_list_thread_ids): Ditto.
11116 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11117 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11118 ui_out_tuple_end): Delete prototypes.
11119 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11120 ui_out_list_end, ui_out_tuple_end): Delete.
11122 From Kevin Buettner <kevinb@redhat.com>:
11123 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
11124 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11125 (do_cleanup_table_end): New functions.
11126 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11127 Use cleanups to invoke_ui_out_tuple_end().
11128 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11129 * cli/cli-setshow.c (cmd_show_list): Use
11130 make_cleanup_ui_out_tuple_begin_end.
11132 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11134 * frame.c (frame_unwind_register): New function.
11135 (frame_unwind_unsigned_register): Use.
11136 (frame_unwind_signed_register): Use.
11137 (frame_read_register): New function.
11138 * frame.h (frame_unwind_register): Declare.
11139 (frame_read_register): Declare.
11141 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11142 and frame_unwind_register instead of read_memory, write_register
11143 and deprecated_write_register_bytes.
11145 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11147 * frame.h: Note that namelen can be negative.
11148 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11151 * NEWS: Mention that the d10v's `regs' command is deprecated.
11152 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11153 (d10v_print_registers_info): New function.
11154 (show_regs): Call d10v_print_registers_info.
11155 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11157 2003-02-02 Mark Kettenis <kettenis@gnu.org>
11159 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11160 lost in the previous patch.
11162 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11164 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11165 * stack.c (print_frame_info_base): Output complete FRAME tuple
11166 for synthesized frames.
11168 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11170 * mips-nat.c (zerobuf): Delete.
11171 (fetch_inferior_registers): Alloc local zerobuf.
11172 (fetch_core_registers): Alloc local zerobuf.
11173 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11174 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11175 * thread-db.c (thread_db_store_registers): Ditto.
11176 * sh-tdep.c (sh_do_register): Ditto.
11177 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11178 * remote-sim.c (gdbsim_store_register): Ditto.
11179 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11180 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11181 * monitor.c (monitor_supply_register): Ditto.
11182 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11183 * mips-nat.c (fetch_inferior_registers): Ditto.
11184 * m68klinux-nat.c (fetch_register): Ditto.
11185 * lynx-nat.c (fetch_inferior_registers): Ditto.
11186 (fetch_inferior_registers): Ditto.
11187 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11188 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11189 (hpux_thread_store_registers): Ditto.
11190 * hppah-nat.c (fetch_register): Ditto.
11191 * hppab-nat.c (fetch_register): Ditto.
11192 * hppa-tdep.c (pa_register_look_aside): Ditto.
11193 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11194 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11196 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11198 * gdbarch.sh: Explictly specify all method levels. When a
11199 variable with an empty level, provide a non-multi-arch default.
11200 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11201 * gdbarch.h: Re-generate.
11202 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11203 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11205 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11207 * defs.h (host_pointer_to_address): Delete declaration.
11208 (address_to_host_pointer): Delete declaration.
11209 * utils.c (host_pointer_to_address): Delete function.
11210 (address_to_host_pointer): Delete function.
11211 * procfs.c (procfs_address_to_host_pointer): New function.
11212 * procfs.c (proc_set_watchpoint): Use.
11213 (procfs_can_use_hw_breakpoint): Update comments.
11214 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11215 (som_solib_add): Use.
11216 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11217 * hppa-tdep.c (unwind_command): Use.
11219 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11221 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11224 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11225 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11226 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11227 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11228 (define_symbol): Update.
11229 * symfile.c (generic_load): Remove references to nindy.
11230 * symtab.c: Remove references to nindy.
11232 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11234 * infcmd.c (print_float_info): Delete code conditional on
11236 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11237 * config/m68k/nm-apollo68b.h: Ditto.
11238 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11239 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11240 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11242 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11244 * config/i386/tm-i386os9k.h: Removed.
11246 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11247 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11248 they're identical to i[3456]86-*-sysv* now.
11249 * config/i386/i386v32.mh: Removed.
11250 * config/i386/xm-i386v32.h: Removed.
11251 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11253 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11255 * config/i386/i386dgux.mh: Removed.
11256 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11258 * configure.in: Fix typo.
11259 * configure: Regenerated.
11261 2003-01-31 David Carlton <carlton@math.stanford.edu>
11263 * dwarf2read.c (dwarf2_locate_sections): Set
11264 dwarf_ranges_section.
11266 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11268 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11269 * utils.c: Update comments documenting legitimate uses of PTR.
11271 * utils.c: Re-indent.
11273 * config/djgpp/fnchange.lst: Delete nindy files.
11274 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11275 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11276 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11277 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11278 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11279 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11280 * Makefile.in (init.c): Remove nindy references.
11281 (saber_gdb): Delete rule.
11282 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11283 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11285 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11286 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11287 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11288 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11289 nindy-share/stop.h.
11290 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11291 * saber.suppress: Delete file.
11293 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11295 * dbxread.c (stabs_data): New static variable.
11296 (fill_symbuf): Support an in-memory buffer for stabs data.
11297 (stabs_seek): New function.
11298 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11299 (read_ofile_symtab): Use stabs_seek.
11300 (elfstab_build_psymtabs): Take an asection* instead of
11301 an offset and size. Relocate the stabs data if necessary.
11302 Save the section* for dbx_psymtab_to_symtab.
11303 * dwarf2read.c: Add section variables for each debug section.
11304 (dwarf2_locate_sections): Fill them in.
11305 (dwarf2_read_section): Take an asection* argument.
11306 Relocate the section contents if necessary.
11307 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11308 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11309 it to dwarf2_read_section.
11310 (dwarf2_build_frame_info): Update callers.
11311 * elfread.c (elf_symfile_read): Update call to
11312 elfstab_build_psymtabs.
11313 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11314 (DBX_STAB_SECTION): New macro.
11315 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11316 * symfile.c (symfile_dummy_outputs): New function.
11317 (symfile_relocate_debug_section): New function.
11318 * symfile.h (symfile_relocate_debug_section): Add prototype.
11320 2003-01-31 Richard Henderson <rth@redhat.com>
11322 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11323 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11324 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11325 * alpha-tdep.c (alpha_register_name): Add "unique".
11326 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11327 (ALPHA_UNIQUE_REGNUM): New.
11328 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11330 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11332 * README: Remove reference to Ericsson 1800 monitor.
11333 * Makefile.in (remote-es.o): Delete rule.
11334 (ALLDEPFILES): Delete remote-es.c.
11335 * remote-es.c: Delete file.
11336 * config/m68k/es1800.mt: Delete file.
11337 * config/djgpp/fnchange.lst: Update.
11338 * configure.tgt: Delete m68*-ericsson-* target.
11340 2003-01-31 Adam Fedor <fedor@gnu.org>
11342 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11343 Remove duplicate/shadowing variable of same name.
11345 2003-01-30 Jim Blandy <jimb@redhat.com>
11347 * symfile.c (find_separate_debug_file): Assert that the objfile's
11348 directory name we compute ends with a slash, and then assume that
11349 that's so everywhere we use it.
11351 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11353 * valops.c (value_assign): Flush frame cache after stores to memory
11356 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11358 * Makefile.in (mon960-rom.o): Delete rule.
11359 * mon960-rom.c: Delete file.
11361 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11363 * d10v-tdep.c: Include "frame-unwind.h".
11364 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11366 (next_addr, uses_frame): Delete.
11367 (struct d10v_unwind_cache): Define.
11368 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11369 Use info instead of next_addr and uses_frame globals.
11370 (d10v_frame_init_saved_regs): Delete function.
11371 (d10v_init_extra_frame_info): Delete function.
11372 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11373 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11374 init_frame_pc or frame_saved_pc.
11375 (d10v_pop_frame): Delete function.
11376 (do_d10v_pop_frame): Delete function.
11377 (d10v_frame_chain): Delete function.
11378 (d10v_frame_chain_valid): Delete function.
11379 (d10v_frame_pc_unwind): New function.
11380 (d10v_frame_id_unwind): New function.
11381 (saved_regs_unwinder): New function.
11382 (d10v_frame_register_unwind): New function.
11383 (d10v_frame_pop): New function.
11384 (d10v_frame_unwind): New variable.
11385 (d10v_frame_p): New function.
11386 (d10v_frame_saved_pc): Delete function.
11387 * Makefile.in (d10v-tdep.o): Update dependencies.
11389 2003-01-30 J. Brobecker <brobecker@gnat.com>
11391 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11392 causing some regressions due to a change in the default value
11395 2003-01-29 Richard Henderson <rth@redhat.com>
11396 Elena Zannoni <ezannoni@redhat.com>
11397 Daniel Jacobowitz <drow@mvista.com>
11400 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11402 (RANGES_SECTION): New.
11403 (dwarf_ranges_buffer): New variable.
11404 (struct comp_unit_head): Add member "die".
11405 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11406 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11407 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11408 (dwarf2_locate_sections): Likewise.
11409 (dwarf2_build_psymtabs): Read .debug_ranges.
11410 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11411 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11412 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11413 Look for DW_AT_ranges and return the bounding box.
11415 2003-01-29 Brian Ford <ford@vss.fsi.com>
11417 * win32-nat.c (cygwin_pid): Removed as unused.
11418 (child_attach): Try fall back to Cygwin pid.
11420 2003-01-29 Jim Blandy <jimb@redhat.com>
11422 * objfiles.h (struct objfile): Doc fix.
11424 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11426 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11427 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11428 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11429 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11430 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11431 (FRAME_SAVED_PC): Change to a function with predicate.
11432 * gdbarch.h, gdbarch.c: Re-generate.
11434 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11436 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11438 * complaints.c (complain): Delete function.
11439 * complaints.h (struct deprecated_complaint): Delete definition.
11440 (complain): Delete declaration.
11442 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11444 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11447 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11449 * sentinel-frame.h, sentinel-frame.c: New files.
11450 * Makefile.in (frame.o): Update dependencies.
11451 (SFILES): Add sentinel-frame.c.
11452 (sentinel_frame_h): Define.
11453 (COMMON_OBS): Add sentinel-frame.o.
11454 (sentinel-frame.o): Specify dependencies.
11455 * frame.c: Include "sentinel-frame.h".
11456 (frame_register_unwind): Rewrite assuming that there is always a a
11458 (frame_register, generic_unwind_get_saved_register): Ditto.
11459 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11460 (create_sentinel_frame, unwind_to_current_frame): New functions.
11461 (get_current_frame): Rewrite using create_sentinel_frame and
11462 unwind_to_current_frame. When possible, always create a frame.
11463 (create_new_frame): Set next to the sentinel frame.
11464 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11465 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11466 ID cache when necessary.
11467 (frame_saved_regs_id_unwind): Use frame_relative_level.
11468 (deprecated_generic_get_saved_register): Use frame_relative_level,
11469 get_frame_saved_regs, get_frame_pc, get_frame_base and
11471 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11474 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11476 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11478 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11480 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11481 (maintenance_set_profile_cmd): Use error () instead of warning ().
11483 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11485 * configure.in: Check that -pg works if using --enable-profiling.
11486 Check for monstartup and _mcleanup regardless of --enable-profiling.
11487 * maint.c: Check for monstartup and _mcleanup before using them.
11488 * config.in: Regenerated.
11489 * configure: Regenerated.
11491 2003-01-24 Nick Clifton <nickc@redhat.com>
11493 * Add sh2e support:
11495 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11497 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11498 (sh2e_show_regs): New.
11499 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11500 * config/sh/tm-sh.h: Added sh2e to comments.
11502 2003-01-23 Jim Blandy <jimb@redhat.com>
11504 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11505 symbols found)" message here; we haven't checked for a separate
11506 debug info file yet, so we don't know yet.
11507 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11508 we've looked everywhere. Also, there's no need to print a special
11509 message when we're loading the separate debug info file: the one
11510 symbol_file_add prints is fine.
11512 2003-01-23 Alexander Larsson <alexl@redhat.com>
11513 Jim Blandy <jimb@redhat.com>
11515 Add support for executables whose debug info has been separated
11516 out into a separate file, leaving only a link behind.
11517 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11518 and separate_debug_objfile_backlink.
11519 (put_objfile_before): New declaration.
11520 * symfile.c: #include "filenames.h".
11521 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11522 debug info in a separate file, read that, too. Save the addrs
11523 argument, so we can use it again to read the separated debug info;
11524 syms_from_objfile modifies the table we pass it.
11525 (reread_symbols): After re-reading an objfile, call
11526 reread_separate_symbols to refresh its separate debug info
11527 objfile, if it has one.
11528 (reread_separate_symbols, find_separate_debug_file,
11529 get_debug_link_info, separate_debug_file_exists): New functions.
11530 (debug_file_directory): New global var.
11531 (_initialize_symfile): Initialize debug_file_directory, and
11532 provide the new `set debug-file-directory' command to let the user
11534 * objfiles.c (free_objfile): If this objfile has its debug info in
11535 a separate objfile, free that one too. If this is itself a
11536 separate debug info objfile, clear our parent's backlink.
11537 (put_objfile_before): New function.
11538 * utils.c (gnu_debuglink_crc32): New function.
11539 * defs.h (gnu_debuglink_crc32): New declaration.
11540 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11541 * configure.in: Handle --with-separate-debug-dir config option.
11542 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11543 * acconfig.h (DEBUGDIR): New macro.
11544 * configure, aclocal.m4, config.in: Regenerated.
11546 2003-01-22 Jim Blandy <jimb@redhat.com>
11548 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11549 like the old symbol_file_add, but taking new arguments: you can
11550 now pass in either a `struct section_addr_info' list to say where
11551 each section is loaded, or a `struct section_offsets' table. Pass
11552 these new arguments through to syms_from_objfile as appropriate.
11553 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11554 with the appropriate quiescent values for the new arguments.
11556 * symfile.c: #include "gdb_assert.h".
11557 (syms_from_objfile): Add the ability to pass in a section offset
11558 table directly, as an alternative to the section_addr_info table.
11559 Document arguments better.
11560 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11561 * symfile.h (syms_from_objfile): Update declaration.
11562 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11564 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11566 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11568 Original patch by Tom Tromey <tromey@cygnus.com> and
11569 Jason Molenda <jmolenda@apple.com>.
11570 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11571 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11572 * NEWS: Mention profiling.
11573 * configure.in (--enable-gdbtk): Fix typo.
11574 (--enable-profiling): New. Set PROFILE_CFLAGS.
11575 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11577 (profiling_state): New variable.
11578 (mcleanup_wrapper): New function.
11579 (_initialize_maint): Remove NOTYET, fix call to
11580 add_setshow_boolean_cmd for "maint set profile".
11581 * configure: Regenerated.
11583 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11585 * Makefile.in (install-gdbtk): Install PNG images too.
11587 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11589 * exec.c (text_start): Delete global variable.
11590 (exec_file_attach): Make text_start local to the function.
11591 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11592 * valops.c (hand_function_call): Delete code that handles
11593 BEFORE_TEXT_END and AFTER_TEXT_END.
11594 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11595 of CALL_DUMMY_LOCATION.
11596 * gdbarch.c: Regenerate.
11597 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11598 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11599 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11600 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11601 (text_end): Delete extern declaration.
11603 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11605 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11606 * blockframe.c (backtrace_below_main): Move to "frame.c".
11607 (frame_chain_valid): Delete check for backtrace_below_main.
11608 (_initialize_blockframe): Delete initialization, move ``set
11609 backtrace-below-main'' command to "frame.c".
11610 (do_flush_frames_sfunc): Delete function.
11611 * frame.c: Include "command.h" and "gdbcmd.h".
11612 (frame_type_from_pc): New function.
11613 (create_new_frame): Use frame_type_from_pc.
11614 (legacy_get_prev_frame): New function.
11615 (get_prev_frame): Rewrite. When an old style frame, call
11616 legacy_get_prev_frame. Otherwize, unwind the PC first.
11617 (_initialize_frame): Add ``set backtrace-below-main'' command.
11618 * Makefile.in (frame.o): Update dependencies.
11620 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11622 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11623 DEPRECATED_REGISTERS_INFO.
11625 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11627 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11628 Maintainers'. Update `Various Maintainers'.
11630 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11632 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11633 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11634 Suppress actual parameters when `-'.
11635 * gdbarch.h, gdbarch.c: Regenerate.
11637 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11639 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11640 code handling dummy frames.
11642 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11644 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11645 (struct frame_unwind): Add field pop.
11646 * frame.h (frame_pop): Declare.
11647 * frame.c (frame_saved_regs_pop): New function.
11648 (trad_frame_unwinder): Add frame_saved_regs_pop.
11649 (frame_pop): New function.
11650 * dummy-frame.c (dummy_frame_pop): New function.
11651 (discard_innermost_dummy): New function.
11652 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11653 (dummy_frame_unwind): Add dummy_frame_pop.
11654 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11655 * valops.c (hand_function_call): Ditto.
11656 * stack.c (return_command): Ditto.
11658 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11660 * cris-tdep.c: Fix function declaration indentation.
11661 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11662 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11663 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11664 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11665 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11666 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11668 2003-01-18 Michael Chastain <mec@shout.net>
11670 * README (Unpacking and Installation -- quick overview):
11671 Warn against ".../gdb-5.3/gdb/configure".
11673 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11675 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11676 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11677 (struct frame_unwind): Declare opaque.
11678 (dummy_frame_p): Declare function.
11679 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11680 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11681 * dummy-frame.c: Include "frame-unwind.h".
11682 (dummy_frame_p): New function.
11683 (dummy_frame_unwind): New variable.
11684 * frame.c: Include "frame-unwind.h".
11685 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11686 to use the new unwind field.
11687 (set_unwind_by_pc): Delete function.
11688 (create_new_frame, get_prev_frame): Set unwind field using
11689 frame_unwind_find_by_pc.
11690 (trad_frame_unwind, trad_frame_unwinder): New variables.
11691 * frame.h (trad_frame_unwind): Declare variable.
11692 (frame_id_unwind_ftype): Delete declaration.
11693 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11694 (struct frame_unwind): Declare opaque.
11695 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11696 register_unwind with a single unwind pointer.
11697 * frame-unwind.h, frame-unwind.c: New files.
11698 * Makefile.in (SFILES): Add frame-unwind.c.
11699 (frame_unwind_h): Define.
11700 (COMMON_OBS): Add frame-unwind.o.
11701 (frame-unwind.o): Specify dependencies.
11702 (frame.o, dummy-frame.o): Update dependencies.
11704 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11706 * ada-valprint.c: Eliminate PTR.
11707 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11708 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11709 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11710 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11711 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11712 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11713 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11715 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11717 * main.c (captured_main): Don't use PTR.
11718 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11719 * gdbtypes.c (lookup_primitive_typename): Ditto.
11720 (lookup_struct_elt_type): Ditto.
11721 * f-valprint.c (info_common_command): Ditto.
11722 (list_all_visible_commons): Ditto.
11723 * jv-typeprint.c (java_type_print_base): Ditto.
11725 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11726 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11727 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11728 i386-interix-nat.c and i386-interix-tdep.c. Rename
11729 m68klinux-nat.c and m68klinux-tdep.c. Rename
11730 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11731 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11732 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11733 * main.c (captured_main): Use xfree, not free.
11735 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11737 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11738 ID back using a parameter.
11739 * frame.c (frame_id_unwind): Update call.
11740 (frame_saved_regs_id_unwind): Update.
11741 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11742 * dummy-frame.h (struct frame_id): Add opaque declaration.
11743 (dummy_frame_id_unwind): Update declaration.
11745 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11747 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11749 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11751 * MAINTAINERS (Stephen P. Smith): Updated email address.
11753 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11756 * breakpoint.c (until_break_command): Add new argument. Use it to
11757 decide whether to stop only at the current frame or not.
11758 * breakpoint.h (until_break_command): Update prototype.
11759 * infcmd.c (until_command): Add new argument to until_break_command
11761 (advance_command): New function.
11762 (_initialize_infcmd): Update help string for 'until' command.
11763 Add new 'advance' command.
11765 2003-01-14 David Carlton <carlton@math.stanford.edu>
11767 * linespec.c (decode_line_1): Normalize comments.
11768 (set_flags): Ditto.
11769 (locate_first_half): Ditto.
11770 (decode_compound): Ditto.
11771 (symtab_from_filename): Ditto.
11772 (decode_all_digits): Ditto.
11773 (decode_dollar): Ditto.
11774 (find_methods): Ditto.
11775 (find_toplevel_char): Ditto.
11777 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11779 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11780 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11781 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11782 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11783 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11784 * language.c, language.h, m32r-tdep.c: Update copyright.
11785 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11786 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11787 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11788 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11789 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11790 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11792 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11794 * stabsread.h (process_later, resolve_cfront_continuation):
11796 Update copyright years.
11797 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11798 Update copyright year.
11799 * dbxread.c(struct cont_elem): Obsolete.
11800 (process_later, process_now): Obsolete functions.
11801 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11802 Update copyright year.
11803 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11804 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11805 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11806 (parse_partial_symbols): Obsolete cfront support.
11808 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11810 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11811 read_cfront_baseclasses, read_cfront_member_functions,
11812 resolve_cfront_continuation,read_cfront_static_fields,
11813 copy_cfront_struct_fields): Obsolete functions.
11814 (define_symbol, read_one_struct_field): Obsolete cfront support.
11815 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11816 Update Copyright year.
11818 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11820 * stack.c (print_frame_info, print_stack_frame_base_stub,
11821 print_stack_frame_base, show_and_print_stack_frame_stub,
11822 show_and_print_stack_frame, print_only_stack_frame_stub,
11823 print_only_stack_frame): Delete functions.
11824 (print_stack_frame_stub): Call print_frame_info instead of
11825 print_frame_info_base.
11826 (print_frame_info_base): Rename to print_frame_info.
11827 (backtrace_command_1): Call print_frame_info, instead of
11828 print_frame_info_base.
11829 (current_frame_command): Call print_stack_frame, instead of
11830 print_only_stack_frame.
11831 (frame_command): Call print_stack_frame, instead of
11832 show_and_print_stack_frame.
11833 (up_command): Ditto.
11834 (down_command): Ditto.
11835 * frame.h (print_only_stack_frame): Delete prototype.
11836 * infrun.c (normal_stop): Call print_stack_frame, instead of
11837 show_and_print_stack_frame.
11838 * thread.c (info_threads_command): Call print_stack_frame, instead
11839 of print_only_stack_frame.
11841 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11843 * README (Graphical interface to GDB): Update URL. Point at
11846 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11849 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11851 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11854 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11856 * thread-db.c (attach_thread): Prototype.
11857 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11858 thread information (ti), and valid flags (th_valid, ti_valid).
11859 (attach_thread): Move target_pid_to_str call to after the thread
11860 is added to GDB's list. Initialize the cache.
11861 (thread_get_info_callback, thread_db_map_id2thr)
11862 (thread_db_get_info): New functions.
11863 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11864 (thread_db_store_registers, thread_db_thread_alive)
11865 (thread_db_get_thread_local_address): Use them.
11866 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11867 of calling error() for threads in unknown state.
11869 (clear_lwpid_callback): New function.
11870 (thread_db_resume): Use it to clear the cache.
11872 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11874 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11875 (resume_callback): Remove dead code.
11877 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11879 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11881 * gdbarch.h, gdbarch.c: Regenerate.
11882 * stack.c (frame_info): Only initialize the saved registers when
11883 FRAME_INIT_SAVED_REGS_P.
11884 * frame.c (frame_saved_regs_register_unwind): Assert
11885 FRAME_INIT_SAVED_REGS_P.
11886 (deprecated_generic_get_saved_register): Ditto.
11888 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11890 * source.c (openp): Squelch warning about "filename".
11892 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11894 * source.c (openp): If the file does not exist don't necessarily
11897 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11900 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11901 (integer_types_same_name_p): New function.
11902 (rank_one_type): Use it.
11903 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11905 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11907 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11909 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11910 * configure.in: Add --with-sysroot.
11911 * configure: Regenerated.
11912 * main.c (gdb_sysroot): New variable.
11913 (captured_main): Initialize gdb_sysroot.
11914 * defs.h (gdb_sysroot): New extern declaration.
11915 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11917 2003-01-12 Michael Chastain <mec@shout.net>
11919 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11921 2003-01-12 Michael Chastain <mec@shout.net>
11923 * top.c (print_gdb_version): Bump copyright year to 2003.
11925 2003-01-12 David Carlton <carlton@bactrian.org>
11927 * linespec.c (symtab_from_filename): Rename variable 's' to
11930 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11932 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11934 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11936 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11938 * d10v-tdep.c: Include "gdb_assert.h".
11939 (d10v_store_return_value): Rewrite to match current interface.
11940 (d10v_extract_struct_value_address): Ditto.
11941 (d10v_extract_return_value): Ditto.
11942 (d10v_gdbarch_init): Set store_restore_value,
11943 extract_struct_value_address and extract_return_value.
11945 2003-01-12 J. Brobecker <brobecker@gnat.com>
11947 * hpread.c (set_namestring): New procedure replacing the
11948 SET_NAMESTRING macro.
11949 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11950 by calls to set_namestring.
11952 2003-01-11 J. Brobecker <brobecker@gnat.com>
11954 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11955 a compilation warning.
11956 (hpread_process_one_debug_symbol): Likewise.
11958 2003-01-10 David Carlton <carlton@math.stanford.edu>
11960 * linespec.c (decode_line_1): Rename variable 's' to
11962 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11963 (decode_dollar): Ditto.
11964 (decode_variable): Ditto.
11965 (symbol_found): Ditto.
11967 2003-01-09 Michael Chastain <mec@shout.net>
11969 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11971 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11973 * win32-nat.c (set_process_privilege): New function.
11974 (child_attach): Call set_process_privilege() to enable the
11975 SE_DEBUG_NAME user privilege if available in process token.
11977 2003-01-10 J. Brobecker <brobecker@gnat.com>
11979 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11980 compilation error in the previous revision.
11982 2003-01-09 David Carlton <carlton@math.stanford.edu>
11984 * linespec.c: Update copyright.
11986 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11988 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11989 than inferior_ptid.
11990 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11992 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11994 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11996 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11997 (frame_saved_regs_zalloc): Update.
11998 (frame_saved_regs_register_unwind): Update.
11999 (create_new_frame): Update.
12000 (get_prev_frame): Update.
12001 (frame_extra_info_zalloc): Update.
12002 (deprecated_get_frame_saved_regs): Update.
12003 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12004 * cris-tdep.c: Update comment.
12006 * somsolib.h: Fix function indentation.
12007 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12008 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12009 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12010 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12011 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12013 * infrun.c (follow_fork): Use ISO C definition.
12014 * expprint.c (print_subexp): Use xfree instead of free.
12015 * charset.c: Include "gdb_string.h" instead of <string.h>.
12016 (register_iconv_charsets): Use ISO C definition.
12017 (host_charset, target_charset): Ditto.
12018 * Makefile.in (charset.o): Update dependencies.
12019 (mi-cmd-env.o): Update dependencies.
12021 2003-01-08 Andrew Cagney <cagney@redhat.com>
12023 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12026 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12028 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12029 build directories. Save edited gdb output in Mbuild.log. If a
12030 build fails, remove any final GDB executable.
12032 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12034 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12035 replacing hex constants with function names and stripping leading
12036 file name directory prefixes.
12038 2003-01-08 Andrew Cagney <cagney@redhat.com>
12040 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12043 2003-01-08 David Carlton <carlton@math.stanford.edu>
12045 * linespec.c (decode_line_1): Move code into decode_variable.
12046 (decode_variable): New function.
12048 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12050 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12052 2003-01-08 Andrew Cagney <cagney@redhat.com>
12054 * cris-tdep.c (cris_frame_init_saved_regs): Use
12055 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12057 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12058 (sh64_nofp_frame_init_saved_regs): Ditto.
12059 (sh_fp_frame_init_saved_regs): Ditto.
12060 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12061 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12062 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12063 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12065 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
12067 * minsyms.c (lookup_minimal_symbol): Update comment.
12068 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12069 (lookup_minimal_symbol_solib_trampoline): Likewise.
12071 2003-01-08 Andrew Cagney <cagney@redhat.com>
12073 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12074 frame_relative_level.
12076 * alpha-tdep.c: Use get_frame_extra_info.
12077 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12078 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12079 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12080 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12082 * alpha-tdep.c: Use get_next_frame.
12083 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12084 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12085 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12086 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12087 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12088 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12089 * xstormy16-tdep.c: Ditto.
12091 2003-01-07 Andrew Cagney <cagney@redhat.com>
12093 * alpha-tdep.c: Use get_frame_base.
12094 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12095 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12096 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12097 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12098 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12099 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12100 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12101 * config/sparc/tm-sparc.h: Ditto.
12103 2003-01-07 Andrew Cagney <cagney@redhat.com>
12105 * frame.c (deprecated_get_frame_context): New function.
12106 (deprecated_set_frame_context): New function.
12107 * frame.h (deprecated_get_frame_context): Declare.
12108 (deprecated_set_frame_context): Declare.
12109 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12110 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
12112 2003-01-07 Andrew Cagney <cagney@redhat.com>
12114 * frame.c (deprecated_set_frame_next_hack): New function.
12115 (deprecated_set_frame_prev_hack): New function.
12116 * frame.h (deprecated_set_frame_next_hack): Declare.
12117 (deprecated_set_frame_prev_hack): Declare.
12118 * mcore-tdep.c (analyze_dummy_frame): Use
12119 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12120 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12122 2003-01-07 David Carlton <carlton@math.stanford.edu>
12124 * linespec.c (decode_line_1): Move code into decode_dollar.
12125 (decode_dollar): New function.
12127 2003-01-07 Andrew Cagney <cagney@redhat.com>
12129 * arm-tdep.c (arm_init_extra_frame_info): Use
12130 deprecated_update_frame_base_hack.
12131 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12132 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12133 (fix_frame_pointer): Ditto.
12134 (mn10300_analyze_prologue): Ditto.
12136 2003-01-07 Andrew Cagney <cagney@redhat.com>
12138 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12139 extra_info using frame_extra_info_zalloc.
12140 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12141 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12142 (sh64_init_extra_frame_info): Ditto.
12143 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12144 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12145 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12146 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12147 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12148 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12149 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12150 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12151 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12152 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12153 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12154 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12156 * mn10300-tdep.c (analyze_dummy_frame): Use
12157 deprecated_set_frame_extra_info_hack.
12158 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12160 2003-01-07 J. Brobecker <brobecker@gnat.com>
12162 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12163 class is not scText. These do not define "real" procedures.
12164 (parse_partial_symbols): Likewise.
12166 2003-01-06 Michael Snyder <msnyder@redhat.com>
12168 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12170 2003-01-06 Andrew Cagney <ac131313@redhat.com>
12172 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12173 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12174 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12175 deprecated_frame_xmalloc_with_cleanup.
12176 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12177 deprecated_frame_xmalloc.
12178 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12179 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12181 2003-01-06 Andrew Cagney <cagney@redhat.com>
12183 * x86-64-linux-tdep.c: Include "osabi.h".
12184 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12186 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12188 2003-01-06 Andrew Cagney <cagney@redhat.com>
12190 * MAINTAINERS (Target Instruction Set Architectures): Update
12191 arm-elf. Can be built with -Werror, has been multiarched.
12193 * value.h (unpack_long): Make buffer parameter constant.
12194 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12195 * scm-lang.h (scm_parse): Ditto.
12196 * defs.h (extract_typed_address, extract_address): Ditto.
12197 (extract_long_unsigned_integer): Ditto.
12198 * inferior.h (unsigned_pointer_to_address): Ditto.
12199 (signed_pointer_to_address): Ditto.
12200 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12201 * gdbarch.h, gdbarch.c: Regenerate.
12202 * findvar.c (extract_long_unsigned_integer): Update.
12203 (extract_address): Update.
12204 (extract_typed_address): Update.
12205 (unsigned_pointer_to_address): Update.
12206 * values.c (unpack_long): Update.
12207 (unpack_double): Update.
12208 (unpack_pointer): Update.
12209 (unpack_field_as_long): Update.
12210 * d10v-tdep.c (d10v_pointer_to_address): Update.
12211 * avr-tdep.c (avr_pointer_to_address): Update.
12212 * scm-lang.c (scm_unpack): Update.
12213 * findvar.c (signed_pointer_to_address): Update.
12215 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12217 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12218 since it is in i386-tdep.c.
12220 2003-01-06 J. Brobecker <brobecker@gnat.com>
12222 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12223 failure introduced in the previous change.
12225 2003-01-05 Michael Chastain <mec@shout.net>
12227 * README: Remove references to deleted remote-*.c files:
12228 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12229 remote-nrom.c, remote-os9k.c, remote-udi.c.
12231 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12233 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12234 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12235 i386_get_longjmp_target.
12237 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12239 * arm-tdep.c (prologue_cache): Change to a pointer.
12240 (_initialize_arm_tdep): Allocate prologue_cache.
12241 (check_prologue_cache): Update.
12242 (save_prologue_cache): Update.
12243 (arm_gdbarch_init): Update.
12245 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12247 * stabsread.c (update_method_name_from_physname): Call complaint()
12250 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12252 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12253 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12254 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12256 * blockframe.c: Include "gdbcmd.h" and "command.h".
12257 (backtrace_below_main): New variable.
12258 (file_frame_chain_valid, func_frame_chain_valid)
12259 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12260 (generic_func_frame_chain_valid): Remove functions.
12261 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12262 (_initialize_blockframe): New function.
12263 * Makefile.in (blockframe.o): Update dependencies.
12264 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12265 comment. Call frame_chain_valid ().
12266 * frame.h: Remove old prototypes. Add prototype for
12267 frame_chain_valid and update comments to match.
12268 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12269 Remove old comment.
12270 * gdbarch.h: Regenerated.
12271 * gdbarch.c: Regenerated.
12273 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12274 set_gdbarch_frame_chain_valid.
12275 * avr-tdep.c (avr_gdbarch_init): Likewise.
12276 * cris-tdep.c (cris_gdbarch_init): Likewise.
12277 * frv-tdep.c (frv_gdbarch_init): Likewise.
12278 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12279 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12280 (i386_nw_init_abi): Likewise.
12281 (i386_gdbarch_init): Likewise.
12282 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12283 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12284 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12285 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12286 * mips-tdep.c (mips_gdbarch_init): Likewise.
12287 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12288 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12289 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12290 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12291 * s390-tdep.c (s390_gdbarch_init): Likewise.
12292 * sh-tdep.c (sh_gdbarch_init): Likewise.
12293 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12294 * v850-tdep.c (v850_gdbarch_init): Likewise.
12295 * vax-tdep.c (vax_gdbarch_init): Likewise.
12296 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12298 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12299 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12300 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12301 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12302 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12303 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12304 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12305 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12307 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12309 * Makefile.in (acconfig_h): Remove incorrect macro.
12310 (config_h): Define.
12311 (osabi.o): Update dependencies.
12312 * configure.tgt: Set gdb_osabi based on target triplet.
12313 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12314 * configure: Regenerated.
12315 * config.in: Regenerated.
12316 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12317 (GDB_OSABI_DEFAULT): Define if not already defined.
12318 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12319 (set_osabi_string): New variables.
12320 (gdbarch_register_osabi): Add new OS ABI to
12321 gdb_osabi_available_names.
12322 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12323 (set_osabi, show_osabi): New functions.
12324 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12326 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12328 * arch-utils.c (gdbarch_info_init): Set osabi to
12329 GDB_OSABI_UNINITIALIZED.
12330 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12331 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12332 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12333 * gdbarch.c: Regenerated.
12334 * gdbarch.h: Regenerated.
12335 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12337 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12338 * osabi.h (enum gdb_osabi): Move to defs.h.
12339 (gdbarch_init_osabi): Update prototype.
12340 * defs.h (enum gdb_osabi): Moved here.
12341 * Makefile.in: Update dependencies.
12343 * alpha-tdep.h: Don't include "osabi.h".
12344 (struct gdbarch_tdep): Remove osabi member.
12345 * alpha-tdep.c: Include "osabi.h".
12346 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12347 iterate over arches. Update call to gdbarch_init_osabi.
12348 (alpha_dump_tdep): Don't dump osabi.
12349 * alpha-linux-tdep.c: Include "osabi.h".
12350 * alpha-osf1-tdep.c: Include "osabi.h".
12351 * alphafbsd-tdep.c: Include "osabi.h".
12352 * alphanbsd-tdep.c: Include "osabi.h".
12354 * arm-tdep.h: Don't include "osabi.h".
12355 (struct gdbarch_tdep): Remove osabi member.
12356 * arm-tdep.c: Include "osabi.h".
12357 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12358 iterate over arches. Update call to gdbarch_init_osabi.
12359 (arm_dump_tdep): Don't dump osabi.
12360 * arm-linux-tdep.c: Include "osabi.h".
12361 * armnbsd-tdep.c: Include "osabi.h".
12363 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12364 Update call to gdbarch_init_osabi.
12366 * i386-tdep.h: Don't include "osabi.h".
12367 (struct gdbarch_tdep): Remove osabi member.
12368 * i386-tdep.c: Include "osabi.h".
12369 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12370 iterate over arches. Update call to gdbarch_init_osabi.
12371 (i386_dump_tdep): Don't dump osabi.
12372 * i386-linux-tdep.c: Include "osabi.h".
12373 * i386-sol2-tdep.c: Include "osabi.h".
12374 * i386bsd-tdep.c: Include "osabi.h".
12375 * i386gnu-tdep.c: Include "osabi.h".
12376 * i386ly-tdep.c: Include "osabi.h".
12377 * i386nbsd-tdep.c: Include "osabi.h".
12378 * i386obsd-tdep.c: Include "osabi.h".
12380 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12381 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12382 check osabi when iterating over arches. Update call to
12383 gdbarch_init_osabi.
12384 (mips_dump_tdep): Don't dump osabi.
12386 * ns32k-tdep.h: Don't include "osabi.h".
12387 (struct gdbarch_tdep): Remove.
12388 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12389 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12390 allocate tdep. Update call to gdbarch_init_osabi.
12391 (ns32k_dump_tdep): Remove.
12392 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12393 * ns32knbsd-tdep.c: Include "osabi.h".
12395 * ppc-tdep.h: Don't include "osabi.h".
12396 (struct gdbarch_tdep): Remove osabi member.
12397 * rs6000-tdep.c: Include "osabi.h".
12398 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12399 osabi when iterating over arches. Update call to
12400 gdbarch_init_osabi.
12401 (rs6000_dump_tdep): Don't dump osabi.
12402 * ppc-linux-tdep.c: Include "osabi.h".
12403 * ppcnbsd-tdep.c: Include "osabi.h".
12405 * sh-tdep.h: Don't include "osabi.h".
12406 (struct gdbarch_tdep): Remove osabi member.
12407 * sh-tdep.c: Include "osabi.h".
12408 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12409 iterate over arches. Update call to gdbarch_init_osabi.
12410 (sh_dump_tdep): Don't dump osabi.
12411 * shnbsd-tdep.c: Include "osabi.h".
12413 * sparc-tdep.c: Include "osabi.h".
12414 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12415 iterate over arches. Update call to gdbarch_init_osabi.
12416 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12419 * vax-tdep.h: Don't include "osabi.h".
12420 (struct gdbarch_tdep): Remove.
12421 * vax-tdep.c: Include "osabi.h".
12422 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12423 iterate over arches. Don't allocate tdep. Update call
12424 to gdbarch_init_osabi.
12425 (vax_dump_tdep): Remove.
12426 (_initialize_vax_tdep): Update call to gdbarch_register.
12428 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12430 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12432 (breakpoint_re_set_one): Don't fetch the value for a disabled
12435 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12437 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12438 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12439 (COERCE_FLOAT_TO_DOUBLE): Remove.
12440 * gdbarch.c: Regenerate.
12441 * gdbarch.h: Regenerate.
12442 * Makefile.in: Remove value_h from gdbarch_h.
12443 * valops.c (coerce_float_to_double): New variable.
12444 (default_coerce_float_to_double): Remove.
12445 (standard_coerce_float_to_double): Remove.
12446 (value_arg_coerce): Use coerce_float_to_double.
12447 (_initialize_valops): Add "set coerce-float-to-double".
12448 * value.h (default_coerce_float_to_double): Remove prototype.
12449 (standard_coerce_float_to_double): Remove prototype.
12451 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12453 * mdebugread.c (parse_symbol): Likewise.
12454 * stabsread.c (define_symbol): Mark all functions as prototyped.
12456 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12457 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12458 set_gdbarch_coerce_float_to_double.
12459 * arm-tdep.c (arm_gdbarch_init): Likewise.
12460 * frv-tdep.c (frv_gdbarch_init): Likewise.
12461 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12462 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12463 * mips-tdep.c (mips_gdbarch_init): Likewise.
12464 (mips_coerce_float_to_double): Remove.
12465 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12466 (rs6000_coerce_float_to_double): Remove.
12467 * s390-tdep.c (s390_gdbarch_init): Likewise.
12468 * sh-tdep.c (sh_gdbarch_init): Likewise.
12469 (sh_coerce_float_to_double): Remove.
12470 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12471 (sparc_coerce_float_to_double): Remove.
12472 * v850-tdep.c (v850_gdbarch_init): Likewise.
12473 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12474 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12475 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12476 (hppa_coerce_float_to_double): Remove prototype.
12477 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12479 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12481 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12483 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12485 Suggested by Stewart Brown <sb24@avaya.com>:
12486 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12487 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12488 (c_type_print_varspec_suffix): Likewise.
12490 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12492 * configure.in: Don't set and AC_SUBST SUBDIRS.
12493 * configure: Regenerated.
12495 * configure.in: Remove code dealing with shared libraries.
12496 * Makefile.in: Remove HLDFLAGS and HLDENV.
12497 * configure: Regenerated.
12499 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12501 * frame.c (deprecated_frame_xmalloc): New function.
12502 (deprecated_set_frame_saved_regs_hack): New function.
12503 (deprecated_set_frame_extra_info_hack): New function.
12504 * frame.h (deprecated_frame_xmalloc): Declare.
12505 (deprecated_set_frame_saved_regs_hack): Declare.
12506 (deprecated_set_frame_extra_info_hack): Declare.
12508 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12510 * configure.in: Move code that provides the --enable-gdbtk option
12511 right after the code that handles the --enable-tui option, and
12512 polish it somewhat.
12513 * configure: Regenerated.
12515 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12516 AC_CHECK_FUNCS and remove the old check for pread64.
12517 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12518 * acconfig.h (_GNU_SOURCE): Add.
12519 (HAVE_PREAD64): Remove.
12520 * configure, aclocal.m4, config.in: Regenerated.
12522 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12524 * alpha-tdep.c: Use get_frame_saved_regs.
12525 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12526 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12527 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12528 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12529 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12531 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12533 * configure.in: Remove all use of the SUBDIRS variable; add
12534 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12535 code providing the --enable-multi-ice option, and move it right in
12536 front of the code that checks whether gdbserver is supported.
12538 * configure: Regenerated.
12539 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12542 2003-01-03 Andrew Cagney <cagney@redhat.com>
12544 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12545 * avr-tdep.c, cris-tdep.c: Ditto.
12546 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12547 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12549 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12551 * configure.in: Remove --enable-netrom option.
12552 * configure: Regenerated.
12554 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12556 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12557 declaration for `struct re_pattern_buffer' instead.
12558 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12560 2003-01-03 J. Brobecker <brobecker@gnat.com>
12562 * mdebugread.c (parse_symbol): Count until the stEnd matching
12563 the structure name.
12565 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12567 * configure.in: Remove --with-cpu option.
12568 subscripts. Remove evil changequotes here.
12569 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12570 * config.in, configure: Regenerated.
12572 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12573 * configure.in: Cleanup section that sources GDB and BFD configure
12574 subscripts. Remove evil changequotes here.
12575 * config.in, configure: Regenerated.
12577 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12579 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12580 frame accessor methods.
12581 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12582 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12583 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12584 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12585 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12586 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12587 * z8k-tdep.c: Ditto.
12589 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12591 * configure.in: Remove UI_OUT configuration code.
12592 * ada-lang.c: Update assuming UI_OUT is always true.
12593 * Makefile.in (UIOUT_CFLAGS): Remove.
12594 * configure: Regenerated.
12595 * TODO: Remove blurb about elimination of -DUI_OUT.
12597 * configure.in: Move code that provides the --enable-gdbcli,
12598 --enable-gdbmi options right before the code that handles the
12599 --enable-tui option. Polish a bit.
12600 * configure: Regenerated.
12602 * configure.in: Rewrite check for GNU regex and the
12603 --without-included regex option, and move it into the "Checks for
12604 library functions" section. This makes us use the system regex
12605 again by default on systems with version 2 of the GNU C library.
12606 This was apparently broken.
12607 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12608 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12609 * config.in, configure: Regenerated.
12611 * configure.in: Move code that provides the --enable-tui option
12612 before the "Checks for libraries" section. Polish the code
12613 somewhat and set need_curses to yes if we build the TUI. Rewrite
12614 code that looks for a library providing termcap functionality to
12615 match more closely what's done in the Readline library, and move
12616 it into to the "Checks for libraries" section.
12617 * configure: Regenerated.
12618 * Makefile.in (TERMCAP): Remove variable.
12619 * config/i386/go32.mh (TERMCAP): Remove variable.
12621 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12623 * MAINTAINERS: Mention gdb_mbuild.sh.
12624 * gdb_mbuild.sh: Rewrite.
12626 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12628 * configure.in: Fix typo in last change.
12629 * config.in, configure: Regenerated.
12631 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12633 * valarith.c (value_binop): Delete obsolete code and comments.
12634 * configure.host: Ditto.
12635 * buildsym.h (make_blockvector): Ditto.
12636 * buildsym.c (make_blockvector): Ditto.
12637 * defs.h (enum language): Ditto.
12638 (chill_demangle): Ditto.
12639 * elfread.c (elf_symtab_read): Ditto.
12640 * dwarfread.c (CHILL_PRODUCER): Ditto.
12641 (set_cu_language): Ditto.
12642 (handle_producer): Ditto.
12643 * expprint.c (print_subexp): Ditto.
12644 * gdbtypes.c (chill_varying_type): Ditto.
12645 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12646 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12647 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12648 (chill_varying_type): Ditto.
12649 * language.h (_LANG_chill): Ditto.
12650 * language.c (binop_result_type, integral_type): Ditto.
12651 (character_type, string_type, structured_type): Ditto.
12652 (lang_bool_type, binop_type_check): Ditto.
12653 * stabsread.h (os9k_stabs): Ditto.
12654 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12655 (define_symbol, read_type, read_struct_fields): Ditto.
12656 (read_array_type, read_enum_type, read_huge_number): Ditto.
12657 (read_range_type, start_stabs): Ditto.
12658 * symfile.c (init_filename_language_table): Ditto.
12659 (add_psymbol_with_dem_name_to_list): Ditto.
12660 * symtab.c (symbol_init_language_specific): Ditto.
12661 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12662 * symtab.h (struct general_symbol_info): Ditto.
12663 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12664 * typeprint.c (typedef_print): Ditto.
12665 * utils.c (fprintf_symbol_filtered): Ditto.
12666 * valops.c (value_cast, search_struct_field, value_slice): Delete
12668 (varying_to_slice): Delete function.
12669 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12670 (varying_to_slice): Delete declaration.
12671 * MAINTAINERS: Update.
12673 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12675 * configure.in: Reorganize "Checks for library functions section"
12676 a bit. Remove check for `btowc' and `isascii' functions.
12677 * configure: Regenerated.
12679 * acconfig.h (_MSE_INT_H): Remove.
12680 * configure.in: Create "Checks for header files" section, and move
12681 appropriate tests there. Don't check for objlist.h, wchar.h,
12682 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12683 misdetection fix. Also add "Checks for types", "Checks for
12684 compiler characteristics" and "Checks for library functions"
12686 * config.in, configure: Regenerated.
12688 * configure.in: Create "Checks for programs" section, and move
12689 appropriate tests there.
12691 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12693 * configure.in: Create "Checks for libraries" section, and move
12694 appropriate tests there. Cleanup check for wctype in libw. Use
12695 AC_SEARCH_LIBS to see whether we need libsocket.
12696 * configure: Regenerated.
12698 For older changes see ChangeLog-2002
12704 version-control: never