1 2003-10-02 Jim Blandy <jimb@redhat.com>
3 * dwarf2read.c (struct die_info): Doc fix.
5 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
7 * sh-tdep.c: Running thru gdb_indent.sh.
9 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
11 * sh-tdep.c (sh_justify_value_in_reg): New function.
12 (sh_stack_allocsize): Ditto.
13 (flt_argreg_array): New array used for floating point argument
15 (sh_init_flt_argreg): New function.
16 (sh_next_flt_argreg): Ditto.
17 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
18 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
19 Fix argument passing strategy.
20 (sh_push_dummy_call_nofpu): Ditto.
22 2003-10-01 Andrew Cagney <cagney@redhat.com>
24 * value.h (register_value_being_returned): Declare. Replace
25 "value_being_returned".
26 * infcall.c (call_function_by_hand): Use
27 register_value_being_returned.
28 * infcmd.c (print_return_value): Call
29 "register_value_being_returned", handle struct return locally.
30 * values.c (register_value_being_returned): New function. Replace
31 "value_being_returned".
33 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
35 * linux-proc.c (linux_do_registers): New function.
36 (linux_make_note_section): Use linux_do_registers in case of
37 single threaded inferior programs.
39 2003-10-01 Andrew Cagney <cagney@redhat.com>
41 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
42 use STRUCT_ADDR. When not using "struct return convention", pass
43 "0" to "value_being_returned". Add FIXMEs.
44 * infcmd.c (print_return_value): Pass an explicit 0/1 to
45 value_being_returned. Add comments.
46 * values.c (value_being_returned): Add fixme.
47 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
48 (hppa_value_returned_from_stack): Add FIXME.
50 2003-09-30 David Carlton <carlton@kealia.com>
52 * dwarf2read.c (struct die_info): Add 'parent' field; replace
53 'has_children' and 'next' by 'child' and 'sibling'.
54 (read_comp_unit): Rework algorithm, breaking body into
55 read_die_and_children and read_die_and_siblings.
56 (read_die_and_children, read_die_and_siblings): New.
57 (read_full_die): Add 'has_children' argument; set it instead of
58 the die's 'has_children' field. Minor formatting cleanup.
59 (free_die_list): Use die->child and die->sibling instead of
61 (dump_die_list): Ditto.
62 (sibling_die): Use die->sibling.
63 (psymtab_to_symtab_1): Use die's 'child' field in place of its
64 'has_children' and 'next' fields.
65 (process_die, read_file_scope, read_func_scope)
66 (read_lexical_block_scope, read_structure_scope)
67 (read_enumeration, read_array_type, read_common_block)
68 (read_namespace, read_subroutine_type, dump_die): Ditto.
70 2003-09-30 Andrew Cagney <cagney@redhat.com>
72 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
75 2003-09-30 Andrew Cagney <cagney@redhat.com>
77 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
78 REGISTER_VIRTUAL_SIZE.
79 * gdbarch.h, gdbarch.c: Regenerate.
80 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
81 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
82 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
84 2003-09-29 Andrew Cagney <cagney@redhat.com>
86 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
87 DEPRECATED_REGISTER_VIRTUAL_TYPE.
88 * gdbarch.h, gdbarch.c: Regenerate.
89 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
90 * sh64-tdep.c, sparc-tdep.c: Update.
92 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
93 * remote-vxmips.c (vx_read_register): Ditto.
94 * remote-vx68.c (vx_read_register): Ditto.
95 * gnu-nat.c (inf_validate_procs): Ditto.
97 2003-09-29 J. Brobecker <brobecker@gnat.com>
99 * infcall.c (call_function_by_hand): Fix build failure
100 introduced in the previous change to this file.
102 2003-09-29 Andrew Cagney <cagney@redhat.com>
104 * NEWS: Mention Objective-C.
106 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
108 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
109 test if the register has been saved on the stack.
110 (arm_scan_prologue_cache): When analysing the instruction
111 "str lr, [sp, #-4]", save the address where lr has been stored.
113 2003-09-28 Andrew Cagney <cagney@redhat.com>
115 * frame.c (frame_read_unsigned_register): Delete function.
116 * frame.h (frame_read_unsigned_register): Delete declaration.
117 * sparc-tdep.c (sparc_init_extra_frame_info): Use
118 get_frame_register_unsigned.
119 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
120 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
121 * d10v-tdep.c (d10v_print_registers_info): Ditto.
123 * frame.h (frame_read_register): Delete declaration.
124 * frame.c (frame_read_register): Delete function.
125 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
126 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
127 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
128 * mips-tdep.c (mips_register_to_value): Ditto.
129 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
130 * d10v-tdep.c (d10v_print_registers_info): Ditto.
132 * frame.c (frame_read_signed_register): Delete function.
133 (frame_read_unsigned_register): Update comments.
134 * frame.h (frame_read_signed_register): Delete declaration.
135 * h8300-tdep.c (h8300_print_register): Use
136 get_frame_register_signed.
137 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
139 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
140 Rename VALUE_RETURNED_FROM_STACK.
141 * infcmd.c (print_return_value): Update.
142 * infcall.c (call_function_by_hand): Update.
144 2003-09-28 Mark Kettenis <kettenis@gnu.org>
146 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
147 regcache argument and reverse the order of the other two
148 arguments. Remove local regcache variable. Determine
149 architecture from REGCACHE. Update comments.
150 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
151 reverse the order of the other two arguments. Remove local
152 regcache variable. Determine architecture from REGCACHE. Update
154 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
155 prototypes. Update comments.
156 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
158 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
160 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
161 * i386-interix-nat.c (supply_fpregset): Update.
162 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
163 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
164 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
165 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
166 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
168 * i386obsd-tdep.c (fetch_core_registers): Update.
169 * i386v4-nat.c (supply_fpregset): Update.
170 * x86-64-linux-nat.c (supply_fpregset): Update.
171 * x86-64-linux-tdep.c (fetch_core_registers): Update.
173 2003-09-27 Mark Kettenis <kettenis@gnu.org>
175 * i386-tdep.h: Put opaque declarations in alphabetical
176 order. Remove spurious whitespace.
177 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
178 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
179 * i386-tdep.c (MM0_REGNUM): Remove define.
180 (i386_mmx_regnum_p): Add gdbarch argument.
181 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
182 Rewrite using new macro definitions for FPU/SSE registers.
183 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
184 definitions from i387-tdep.h.
185 (i386_register_name): Update.
186 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
187 new macro definitions for FPU/SSE registers.
188 (i386_extract_return_value): Determine whether floating-point
189 registers are present by examining REGCACHE's architecture.
190 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
191 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
193 (i386_register_type): Update.
194 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
195 definitions for FPU registers. Use REGCACHE's architecture to
196 determine the appropriate register numbers.
197 (i386_pseudo_register_read, i386_pseudo_register_write,
198 i386_register_reggroup_p): Update.
199 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
201 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
202 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
203 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
204 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
205 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
206 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
208 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
209 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
210 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
211 definitions for FPU/SSE registers.
212 (FXSAVE_MXCSR_ADDR): New define.
213 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
215 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
216 (I387_ST0_REGNUM): Define.
218 * regcache.h (get_regcache_arch): New prototype.
219 * regcache.c (get_regcache_arch): New function.
221 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
224 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
225 Initialize using ARRAY_SIZE.
227 2003-09-27 Andrew Cagney <cagney@redhat.com>
229 * arch-utils.c (deprecated_init_frame_pc_default): Rename
230 "init_frame_pc_default".
231 * arch-utils.h (deprecated_init_frame_pc_default): Update.
232 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
233 * vax-tdep.c (vax_gdbarch_init): Update.
234 * v850-tdep.c (v850_gdbarch_init): Update.
235 * sh64-tdep.c (sh64_gdbarch_init): Update.
236 * s390-tdep.c (s390_gdbarch_init): Update.
237 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
238 * mcore-tdep.c (mcore_gdbarch_init): Update.
239 * h8300-tdep.c (h8300_gdbarch_init): Update.
240 * cris-tdep.c (cris_gdbarch_init): Update.
241 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
243 2003-09-26 Mark Kettenis <kettenis@gnu.org>
245 * regset.h: New file.
246 * Makefile.in (regset_h): Add.
248 2003-09-25 Andrew Cagney <cagney@redhat.com>
250 * frame.h (deprecated_frame_saved_regs): Rename
251 get_frame_saved_regs.
252 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
253 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
254 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
255 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
256 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
258 2003-09-25 Andrew Cagney <cagney@redhat.com>
260 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
261 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
263 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
264 arm*-*-* do not use the new frame code.
266 2003-09-25 David Carlton <carlton@kealia.com>
268 * c-exp.y: Remove 'register' declarations.
269 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
271 2003-09-25 David Carlton <carlton@kealia.com>
273 * c-exp.y: Include cp-support.h. Add qualified_type.
274 (yylex): Delete nested type hack; add comments.
275 * cp-namespace.c (cp_lookup_nested_type): New function.
276 * cp-support.h: Declare cp_lookup_nested_type.
277 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
278 instead of value_struct_elt_for_reference.
279 * valops.c: Include cp-support.h.
280 (value_aggregate_elt): New function.
281 (value_namespace_elt): Ditto.
282 (value_struct_elt_for_reference): Make static.
283 * value.h: Delete declaration of value_struct_elt_for_reference;
284 add declaration for value_aggregate_elt.
285 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
288 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
290 * stack.c: Include "reggroups.h".
291 (frame_info): Only display registers in all_reggroup.
292 * Makefile.in (stack.o): Update dependencies.
294 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
296 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
297 "add ip, sp #n" in the prologue.
298 (arm_scan_prologue): Ditto.
300 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
302 * MAINTAINERS (write after approval): Add myself.
304 2003-09-25 Andreas Schwab <schwab@suse.de>
306 * m68k-tdep.c: Include "dwarf2-frame.h".
307 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
308 * Makefile.in (m68k-tdep.o): Update dependencies.
310 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
312 * sh-tdep.c (struct frame_extra_info): Remove.
313 (struct sh_frame_cache): New structure.
314 (GET_SOURCE_REG): New macro extracting source register of an opcode.
315 (GET_TARGET_REG): Ditto but target register.
316 (GET_PUSHED_REG): Remove.
317 (IS_MOV_ARG_TO_REG): New macro.
318 (IS_MOV_ARG_TO_IND_R14): New macro.
319 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
320 (IS_MOVW_PCREL_TO_REG): New macro.
321 (IS_MOVL_PCREL_TO_REG): New macro.
322 (IS_SUB_REG_FROM_SP): New macro.
323 (IS_ARG_MOV): Remove.
324 (IS_MOV_TO_R14): Remove.
325 (IS_RESTORE_FP): New macro.
328 (IS_MOV_FP_SP): New macro.
329 (IS_ADD_REG_TO_FP): New macro.
330 (IS_ADD_IMM_FP): New macro.
331 (sh_skip_prologue_hard_way): Remove.
332 (sh_saved_pc_after_call): Remove.
333 (sh_frame_chain): Remove.
334 (sh_find_callers_reg): Remove.
335 (sh_nofp_frame_init_saved_regs): Remove.
336 (sh_fp_frame_init_saved_regs): Remove.
337 (sh_init_extra_frame_info): Remove.
338 (sh_analyze_prologue): New function.
339 (sh_skip_prologue): Remove deprecated code. Rely on new function
340 sh_analyze_prologue when after_prologue fails.
341 (sh_frame_saved_pc): Remove.
342 (sh_alloc_frame_cache): New function.
343 (sh_frame_cache): Ditto.
344 (sh_frame_prev_register): Ditto.
345 (sh_frame_this_id): Ditto.
346 (sh_frame_unwind): New structure defining the heuristic frame
348 (sh_frame_sniffer): New function.
349 (sh_unwind_sp): Ditto.
350 (sh_unwind_pc): Ditto.
351 (sh_unwind_dummy_id): Ditto.
352 (sh_frame_base_address): Ditto.
353 (sh_frame_base): New structure defining new frame base code.
354 (sh_in_function_epilogue_p): New function.
355 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
356 code and to call all new code instead. Initialize dwarf2 and
357 heuristic frame sniffer.
359 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
361 * parser-defs.h (struct exp_descriptor): New definition, containing
362 language-specific info for printing, prefixifying, dumping, and
363 evaluating expressions.
364 (exp_descriptor_standard): Declare new variable.
365 (print_subexp): Make global and declare here (from expprint.c).
366 (dump_subexp): Ditto.
367 (dump_subexp_body_standard): Declare.
368 (operator_length_standard): Declare.
369 (op_name_standard): Declare.
370 (print_subexp): Declare.
371 (print_subexp_standard): Declare.
373 * language.h (struct language_defn): Add la_exp_desc field to hold
374 pointer to table for language-specific operators.
375 Remove evaluate_exp field, which is now in struct exp_descriptor.
377 * parse.c (operator_length): Move most code to new
378 operator_length_standard function. Use language-specific information.
379 (operator_length_standard): New function taking most code from
381 (exp_descriptor_standard): New constant.
383 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
384 and OP_EXTENDED_LAST.
386 * expprint.c (print_subexp): Use language-specific print_subexp.
387 Make global; remove static declaration.
388 Move most code to print_subexp_standard.
389 (print_subexp_standard): New function, containing code formerly in
391 (op_name): Add expression to argument signature.
392 Use langauge-specific op_name.
393 Move most code to op_name_standard.
394 (op_name_standard): New function, containing code formerly in op_name.
395 (dump_subexp): Use new version of op_name function.
396 Use language-specific dump_subexp_body, and move most existing code to
397 dump_subexp_body_standard.
398 (dump_raw_expression): Use new op_name interface.
399 (dump_subexp_body): Move most code to dump_subexp_body_standard.
400 (dump_subexp_body_standard): New function, containing code formerly
403 * language.c (unknown_language): Add default la_exp_desc field and
404 remove evaluate_exp field.
405 (auto_language): Ditto.
406 (local_language): Ditto.
407 * f-lang.c (f_language_defn): Ditto.
408 * c-lang.c (c_language_defn): Ditto.
409 (cplus_language_defn): Ditto.
410 (asm_language_defn): Ditto.
411 (minimal_language_defn): Ditto.
412 * p-lang.c (pascal_language_defn): Ditto.
413 * m2-lang.c (m2_language_defn): Ditto.
414 * objc-lang.c (objc_language_defn): Ditto.
416 * jv-lang.c (exp_descriptor_java): New variable, containing
417 Java-specific expression evaluator.
418 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
420 * scm-lang.c (exp_descriptor_scm): New variable, containing
421 Scheme-specific expression evaluator.
422 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
424 * objc-lang.c (print_object_command): Take evaluate_exp from the
427 * Makefile.in (eval.o): Add dependency on parser-defs.h.
429 * eval.c: Include parser-defs.h for the full declaration of
431 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
433 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
435 * parser-defs.h (operator_length): Declare.
437 * parse.c (length_of_subexp): Use operator_length to get operator
438 lengths and arities for operators.
439 Move most code to new operator_length function.
440 (operator_length): New function absorbing most code from
442 (prefixify_subexp): Remove large case and use operator_length instead.
443 (parse_exp_1): Use renamings:
444 dump_prefix_expression => dump_raw_expression and
445 dump_postfix_expression => dump_prefix_expression.
447 * expression.h (dump_prefix_expression): Rename to ...
448 (dump_raw_expression): New name.
449 (dump_postfix_expression): Rename to ...
450 (dump_prefix_expression): New name.
452 * expprint.c (dump_subexp): Make global. Add comment.
453 Move most existing code to dump_subexp_body.
454 (dump_subexp_body): New function.
455 (dump_prefix_expression): Rename to dump_raw_expression.
456 Remove attempt to print the expression via print_expression: it can't
457 work before the expression is prefixified.
458 (dump_raw_expression): Renamed from dump_prefix_expression.
459 (dump_postfix_expression): Rename to dump_prefix_expression, since
461 Remove 'note' parameter, since this routine must be used on
462 prefixified expression.
463 (dump_prefix_expression): Renamed from dump_postfix_expression.
465 2003-09-22 Jim Blandy <jimb@redhat.com>
467 * dwarf2read.c (read_array_type): When building the type for an
468 array of unspecified length, make sure to choose the upper bound
469 so that the array's total length comes out to be zero --- that's
470 how we represent such arrays.
472 2003-09-22 Michael Chastain <mec@shout.net>
474 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
476 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
478 * top.c (quit_force): Fix indirect call to quit_target so
479 a struct qt_args pointer is passed.
481 2003-09-22 Andrew Cagney <cagney@redhat.com>
483 * arch-utils.h (init_frame_pc_noop): Delete declaration.
484 * arch-utils.c (init_frame_pc_noop): Delete function.
485 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
487 * mips-tdep.c (mips_gdbarch_init): Ditto.
488 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
489 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
491 (DEPRECATED_INIT_FRAME_PC): Delete macro.
492 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
494 (DEPRECATED_INIT_FRAME_PC): Delete macro.
496 2003-09-22 Anthony Green <green@redhat.com>
498 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
501 2003-09-20 Andrew Cagney <cagney@redhat.com>
503 * breakpoint.c: Eliminate ARGSUSED.
504 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
505 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
506 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
507 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
508 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
509 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
510 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
511 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
512 * wince.c, remote-vx.c: Ditto.
514 * cli/cli-script.c: Remove "register" attributes.
515 * config/pa/tm-hppa.h: Ditto.
516 * cli/cli-decode.c: Ditto.
517 * cli/cli-cmds.c: Ditto.
519 2003-09-19 Andrew Cagney <cagney@redhat.com>
521 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
522 DEPRECATED_NPC_REGNUM.
523 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
525 2003-09-19 Christopher Faylor <cgf@redhat.com>
527 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
529 2003-09-19 Jim Blandy <jimb@redhat.com>
531 * macrotab.c (macro_include): Use the correct comparison to find
532 the appropriate place for this inclusion in the list.
534 2003-09-19 Andrew Cagney <cagney@redhat.com>
536 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
537 (DEPRECATED_HPUX_TEXT_END): Define.
538 (deprecated_hpux_text_end): Declare.
539 (struct target_ops): Declare opaque.
540 * hppah-nat.c (text_end): Make static.
541 (deprecated_hpux_text_end): New function.
542 * exec.c (text_end): Delete global variable.
543 (NEED_TEXT_START_END): Do not define.
544 (exec_file_attach): Replace code computing "text_end" code with
545 call to DEPRECATED_HPUX_TEXT_END.
547 2003-09-19 Andrew Cagney <cagney@redhat.com>
549 * utils.c (align_up, align_down): New functions.
550 * defs.h (align_up, align_down): Declare.
551 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
552 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
554 (round_up, round_down): Delete functions.
555 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
557 (ROUND_DOWN, ROUND_UP): Delete macros.
558 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
559 * h8300-tdep.c: Replace "round_up" and "round_down" with
560 "align_up" and "align_down".
561 (round_up, round_down): Delete macros.
562 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
564 (ROUND_UP, ROUND_DOWN): Delete macros.
566 2003-09-18 J. Brobecker <brobecker@gnat.com>
568 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
569 hard-coded constant. Use the proper machine name instead.
571 2003-09-17 Andrew Cagney <cagney@redhat.com>
573 * sparc-tdep.c (legacy_register_name): Delete function.
574 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
575 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
576 * infcmd.c (gdb_register_name): Delete variable.
577 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
578 REGISTER_NAME and "tm.h".
579 * gdbarch.h, gdbarch.c: Regenerate.
580 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
581 REGISTER_NAMES in comments.
582 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
583 * m68klinux-nat.c (regmap): Ditto.
585 2003-09-17 Jim Blandy <jimb@redhat.com>
587 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
589 2003-09-17 Andrew Cagney <cagney@redhat.com>
591 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
592 (ppcnbsd_init_abi): Set "use_struct_convention" to
593 "ppcnbsd_use_struct_convention".
595 2003-09-17 Mark Kettenis <kettenis@gnu.org>
597 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
598 * gdbarch.h, gdbarch.c: Regenerate.
599 (stabs_argument_has_addr): New architecture method.
600 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
601 * arch-utils.c: Include "buildsym.h".
602 (default_stabs_argument_has_addr): New function.
603 * stabsread.c (define_symbol): Use stabs_argument_has_addr
604 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
606 2003-09-17 Andrew Cagney <cagney@redhat.com>
608 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
609 * gdbarch.h, gdbarch.c: Regenerate.
610 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
611 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
612 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
613 * sparcnbsd-tdep.c: Update.
615 2003-09-17 Andrew Cagney <cagney@redhat.com>
617 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
618 * gdbarch.h, gdbarch.c: Regenerate.
619 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
620 * d10v-tdep.c, frame.c: Update.
621 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
622 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
623 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
624 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
625 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
626 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
627 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
628 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
629 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
630 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
631 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
632 * config/pa/nm-hppah.h: Update.
634 2003-09-16 Andrew Cagney <cagney@redhat.com>
636 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
637 "use_struct_convention" to "ppc_linux_use_struct_convention".
638 (ppc_linux_use_struct_convention): New function.
639 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
640 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
641 "rs6000_use_struct_convention".
642 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
644 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
647 2003-09-16 Andrew Cagney <cagney@redhat.com>
649 * buildsym.c: Remove more occurances of "register".
650 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
651 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
652 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
653 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
654 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
655 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
656 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
657 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
659 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
661 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
662 numbers to enumeration values.
663 * sh-tdep.c: Accomodate above change.
664 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
665 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
666 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
667 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
668 (IS_FPUSH): Rename from IS_FMOV.
669 (sh_extract_struct_value_address): Remove useless comment.
670 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
671 instead of own local values.
672 (sh_dump_tdep): Remove.
673 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
674 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
676 2003-09-15 Andrew Cagney <cagney@redhat.com>
678 * doublest.c (convert_floatformat_to_doublest): No longer need to
679 cast "exp_bias" to an int. Reverts 2002-12-04 change.
681 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
683 * values.c (unpack_double): Call floatformat_is_valid.
685 2003-09-15 Mark Kettenis <kettenis@gnu.org>
687 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
688 ps_strings into a long.
690 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
691 _initialize_am64fbsd_nat.
693 2003-09-15 Kevin Buettner <kevinb@redhat.com>
695 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
696 associated with DW_AT_ranges attribute is out of bounds.
698 2003-09-15 David Lecomber <dsl@sources.redhat.com>
700 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
702 2003-09-14 Michael Chastain <mec@shout.net>
704 * config/m68k/nm-apollo68v.h: Delete.
705 * config/m68k/xm-apollo68v.h: Delete.
707 2003-09-14 Andrew Cagney <cagney@redhat.com>
709 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
710 * dcache.c: Update copyrights and descriptions.
711 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
713 2003-09-14 Andrew Cagney <cagney@redhat.com>
715 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
716 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
718 2003-09-14 Andrew Cagney <cagney@redhat.com>
720 * alpha-nat.c: Remove some occurances of "register".
721 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
722 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
723 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
724 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
725 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
726 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
727 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
728 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
729 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
730 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
731 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
732 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
733 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
734 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
735 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
736 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
737 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
738 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
739 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
740 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
741 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
742 * values.c, vax-tdep.c, xcoffread.c: Ditto.
744 2003-09-13 Andrew Cagney <cagney@redhat.com>
746 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
747 * ppc-tdep.h (struct regcache): Declare opaque.
748 * objfiles.h (struct objfile_data): Declare opaque.
749 * cp-support.h (struct objfile): Declare opaque.
750 * linux-nat.h (target_waitstatus): Declare opaque.
752 2003-09-14 Mark Kettenis <kettenis@gnu.org>
754 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
755 (stabs_argument_has_addr): New architecture method.
756 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
757 * arch-utils.c: Include "buildsym.h".
758 (default_stabs_argument_has_addr): New function.
759 * stabsread.c (define_symbol): Use stabs_argument_has_addr
760 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
762 * cris-tdep.c (cris_gdbarch_init): Set
763 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
764 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
765 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
766 * mips-tdep.c (mips_gdbarch_init): Likewise.
767 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
768 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
770 2003-09-13 Andrew Cagney <cagney@redhat.com>
772 * values.c (using_struct_return): Delete "function" and "funcaddr"
774 * value.h (using_struct_return): Update declaration.
775 * infcmd.c (finish_command_continuation): Update.
776 (finish_command): Update.
777 * infcall.c (call_function_by_hand): Update.
778 * eval.c (evaluate_subexp_standard): Update.
780 2003-09-13 Christopher Faylor <cgf@redhat.com>
782 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
783 SSE registers since gdb will not operate correctly without this.
784 Restore include file ordering munged in previous change.
785 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
787 2003-09-13 Mark Kettenis <kettenis@gnu.org>
789 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
791 * gdbarch.c, gdbarch.h: Updated.
792 * infcall.c (call_function_by_hand): Update.
793 * stabsread.c (define_symbol): Updated.
795 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
797 2003-09-12 Christopher Faylor <cgf@redhat.com>
799 * win32-nat.c: Reorganize so that defines used by target headers are
800 actually defined by the system headers.
801 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
802 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
804 2003-09-12 Jim Blandy <jimb@redhat.com>
806 * dbxread.c (read_dbx_symtab): Don't report an internal error if
807 the file has no .data, .bss, or .rodata sections. Instead wait
808 until we see a variable alleged to live in one of those sections.
810 * dbxread.c (read_dbx_symtab): If we have no .data section and no
811 .bss section, presume that any variables we find live in the
814 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
815 offsets for global and static variables.
817 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
818 symbol types are, by definition, in the .data section, so it is
819 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
820 If there is no .data section, there should be no N_DATA or N_DATA
823 2003-09-12 Mark Kettenis <kettenis@gnu.org>
825 * amd64fbsd-tdep.c: Fix sigtramp recognition.
826 (amd64fbsd_sigcontext_addr): Rewrite.
827 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
829 (amd64fbsd_sc_reg_offset): Initialize with correct values.
830 (amd64fbsd_init_abi): Fix typo.
832 2003-09-12 Andrew Cagney <cagney@redhat.com>
834 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
835 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
837 2003-09-12 Andrew Cagney <cagney@redhat.com>
839 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
840 "entry_file_highpc". Update comments.
841 * defs.h (deprecated_inside_entry_file): Rename
843 * blockframe.c (deprecated_inside_entry_file): Rename
845 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
846 * vax-tdep.c (vax_frame_chain): Update.
847 * sh64-tdep.c (sh64_frame_chain): Update.
848 * sh-tdep.c (sh_frame_chain): Update.
849 * rs6000-tdep.c (rs6000_frame_chain): Update.
850 * ns32k-tdep.c (ns32k_frame_chain): Update.
851 * mips-tdep.c (mips_frame_chain): Update.
852 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
853 * m32r-tdep.c (m32r_frame_this_id): Update.
854 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
855 * frv-tdep.c (frv_frame_this_id): Update.
856 * d10v-tdep.c (d10v_frame_this_id): Update.
857 * cris-tdep.c (cris_frame_chain): Update.
858 * blockframe.c (legacy_frame_chain_valid): Update.
859 * avr-tdep.c (avr_frame_this_id): Update.
860 * arm-tdep.c (arm_prologue_this_id): Update.
861 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
862 * objfiles.c (objfile_relocate): Update.
863 * mipsread.c (mipscoff_symfile_read): Update.
864 (mipscoff_symfile_read): Update.
865 * mdebugread.c (parse_partial_symbols): Update.
866 * dwarfread.c (read_file_scope): Update.
867 * dwarf2read.c (read_file_scope): Update.
868 * dbxread.c (read_dbx_symtab): Update.
869 (read_dbx_symtab): Update.
870 * coffread.c (complete_symtab): Update.
872 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
874 * top.c (quit_target): New static helper function.
875 (quit_force): Moved code to quit_target(). Call quit_target()
876 via catch_errors() to catch errors during quit.
878 2003-09-11 David Carlton <carlton@kealia.com>
880 * buildsym.c (finish_block): Use allocate_block to allocate the
882 * mdebugread.c (new_block): Add FIXME.
884 2003-09-11 David Carlton <carlton@kealia.com>
886 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
887 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
888 (recursive_dump_type): Ditto.
889 * printcmd.c (print_formatted): Ditto.
890 * typeprint.c (print_type_scalar): Ditto.
891 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
892 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
893 * cp-support.h: Declare cp_check_possible_namespace_symbols,
894 maint_cplus_cmd_list.
895 * cp-support.c: Make maint_cplus_cmd_list extern.
896 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
898 (lookup_symbol_file): Look in possible namespace blocks when
900 (initialize_namespace_symtab): New.
901 (get_possible_namespace_block, free_namespace_block)
902 (check_possible_namespace_symbols)
903 (check_possible_namespace_symbols_loop)
904 (check_one_possible_namespace_symbol)
905 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
906 (_initialize_cp_namespace): Ditto.
907 * block.h: Declare allocate_block.
908 * block.c (allocate_block): New.
909 * jv-lang.c (get_java_class_symtab): Allocate blocks via
911 * symfile.h: Update declaration of add_psymbol_to_list.
912 * symfile.c (add_psymbol_to_list): Return the partial symbol in
914 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
915 scan_partial_symbols_call.
916 (scan_partial_symbols): Add NAMESPACE argument; update calls to
918 (add_partial_symbol): If necessary, scan mangled names for names
920 (add_partial_namespace): Add NAMESPACE argument; generate partial
921 symbols associated to namespaces.
922 (add_partial_enumeration): Add NAMESPACE argument.
923 (new_symbol): Allow namespace syms.
924 (read_namespace): Generate namespace syms.
925 * objfiles.h: Add opaque declaration of struct symtab.
926 (struct objfile): Add cp_namespace_symtab member.
927 * objfiles.c (allocate_objfile): Set
928 objfile->cp_namespace_symtab.
929 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
930 dictionary_h, command_h.
932 2003-09-11 Andrew Cagney <cagney@redhat.com>
934 * rs6000-tdep.c (rs6000_push_dummy_call): Use
935 regcache_raw_write_signed to set SP_REGNUM, move the operation to
936 near the function's end.
937 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
938 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
939 regcache_raw_write_signed to set SP_REGNUM.
941 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
943 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
944 orig_addrs is set up properly.
946 2003-09-11 Andrew Cagney <cagney@redhat.com>
948 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
949 * gdbarch.h, gdbarch.c: Re-generate.
950 * infcall.c (call_function_by_hand): Update.
951 * hppa-tdep.c (hppa_push_arguments): Update.
952 * ada-lang.c (place_on_stack): Update.
953 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
954 * sparc-tdep.c (sparc_gdbarch_init): Update.
955 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
956 * hppa-tdep.c (hppa_gdbarch_init): Update.
957 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
960 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
962 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
963 register do need a frame.
965 2003-09-11 Andrew Cagney <cagney@redhat.com>
967 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
968 buildable since GDB 5.0.
969 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
970 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
971 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
972 * irix4-nat.c: Delete file.
973 * config/mips/irix4.mh: Delete file.
974 * config/mips/irix3.mh: Delete file.
975 * config/mips/irix3.mt: Delete file.
976 * config/mips/tm-irix3.h: Delete file.
977 * config/mips/nm-irix3.h: Delete file.
978 * config/mips/xm-irix3.h: Delete file.
979 * config/mips/nm-irix4.h: Delete file.
980 * config/mips/xm-irix4.h: Delete file.
981 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
983 2003-09-10 J. Brobecker <brobecker@gnat.com>
985 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
986 * Makefile.in (hppa-tdep.o): Update dependencies.
988 2003-09-10 James E Wilson <wilson@specifixinc.com>
990 * MAINTAINERS: Change my e-mail address. Move to paper trail
993 2003-09-10 Kevin Buettner <kevinb@redhat.com>
995 * MAINTAINERS (frv): New ISA entry.
997 2003-09-10 Kevin Buettner <kevinb@redhat.com>
999 * frv-tdep.c (dis-asm.h): Include.
1000 * Makefile.in (frv-tdep.o): Update dependencies.
1002 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1004 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1005 Fix typo for high range of floating registers.
1007 2003-09-09 David Carlton <carlton@kealia.com>
1009 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1010 highpc initialization here out of scan_partial_symbols.
1011 (scan_partial_symbols): Restructure into a recursive version,
1012 calling add_partial_namespace and add_partial_enumeration when
1014 (add_partial_namespace): New.
1015 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1017 2003-09-09 Andrew Cagney <cagney@redhat.com>
1019 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1020 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1021 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1022 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1024 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1025 (rs6000_push_dummy_call): Set the "TOC" register.
1027 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1028 methods "max_register_raw_size", "max_register_virtual_size" or
1029 "register_virtual_size".
1031 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1033 * MAINTAINERS: Update my e-mail address.
1035 2003-09-09 Andrew Cagney <cagney@redhat.com>
1037 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1038 (rs6000_push_dummy_call): Store the struct return address.
1039 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1041 2003-09-09 Andrew Cagney <cagney@redhat.com>
1043 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1044 "ppc_sysv_abi_push_arguments".
1045 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1046 "ppc_sysv_abi_push_arguments".
1047 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1048 instead of "push_arguments".
1049 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1051 2003-09-09 Andrew Cagney <cagney@redhat.com>
1053 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1054 instead of CALL_DUMMY_ADDRESS.
1056 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1058 * p-lang.c: Eliminate "register".
1060 * expprint.c: Ditto.
1063 * language.c: Ditto.
1066 * scm-lang.c: Ditto.
1067 * objc-lang.c: Ditto.
1069 2003-09-09 Nick Clifton <nickc@redhat.com>
1071 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1073 2003-09-04 Andrew Cagney <cagney@redhat.com>
1075 * avr-tdep.c: Include "dis-asm.h".
1076 * cris-tdep.c: Include "dis-asm.h".
1077 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1078 instead of corresponding typedef.
1079 * h8300-tdep.c: Include "dis-asm.h".
1080 * ia64-tdep.c: Include "dis-asm.h".
1081 * i386-tdep.c: Include "dis-asm.h".
1082 (i386_print_insn): Use "struct disassemble_info" instead of
1083 corresponding typedef.
1084 * m68k-tdep.c: Include "dis-asm.h".
1085 * mcore-tdep.c: Include "dis-asm.h".
1086 * mips-tdep.c: Include "dis-asm.h".
1087 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1088 instead of corresponding typedef.
1089 * ns32k-tdep.c: Include "dis-asm.h".
1090 * s390-tdep.c: Include "dis-asm.h".
1091 * sparc-tdep.c: Include "dis-asm.h".
1092 * vax-tdep.c: Include "dis-asm.h".
1093 * v850-tdep.c: Include "dis-asm.h".
1094 * mn10300-tdep.c: Include "dis-asm.h".
1095 * rs6000-tdep.c: Include "dis-asm.h".
1096 * xstormy16-tdep.c: Include "dis-asm.h".
1097 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1098 print_insn_xstormy16.
1099 * Makefile.in (v850-tdep.o): Update dependencies.
1100 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1101 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1102 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1103 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1104 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1105 (gdbarch_h): Remove $(dis_asm_h).
1106 * disasm.c: Include "dis-asm.h".
1107 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1108 corresponding typedef.
1109 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1110 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1111 * gdbarch.sh: Do not include "dis-asm.h".
1112 (struct disassemble_info): Declare opaque.
1113 (TARGET_PRINT_INSN): Update declaration.
1114 * gdbarch.h, gdbarch.c: Re-generate.
1116 2003-09-08 Andrew Cagney <cagney@redhat.com>
1118 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1119 CALL_DUMMY_ADDRESS, change to a predicate.
1120 * gdbarch.h, gdbarch.c: Re-generate.
1121 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1122 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1123 * infcall.c (call_function_by_hand): Ditto.
1124 * sparc-tdep.c (sparc_push_return_address): Ditto.
1125 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1126 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1127 CALL_DUMMY_ADDRESS with entry_point_address.
1128 * v850-tdep.c (v850_push_return_address): Ditto.
1129 * s390-tdep.c (s390_push_return_address): Ditto.
1130 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1131 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1132 * mcore-tdep.c (mcore_push_return_address): Ditto.
1133 * cris-tdep.c (cris_push_return_address): Ditto.
1134 * arm-tdep.c (arm_push_return_address): Ditto.
1136 2003-09-08 Andrew Cagney <cagney@redhat.com>
1138 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1139 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1140 and REG_UNMODIFIED to REG_SAME_VALUE.
1141 (execute_cfa_program): Update.
1142 (dwarf2_frame_cache): Update. Initialize table to
1143 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1145 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1147 2003-09-08 Andrew Cagney <cagney@redhat.com>
1149 * gnu-nat.c: Remove "inline" function attribute.
1150 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1152 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1154 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1157 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1159 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1160 (frame_extra_info): Rename this struct to frv_unwind_cache.
1161 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1162 Add fields ``prev_sp'' and ``base''.
1163 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1164 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1165 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1167 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1168 Revise all callers. Fill in the unwind cache argument and make
1169 other adjustments to account for new frame mechanisms.
1170 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1171 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1172 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1173 (frv_frame_unwind, frv_frame_base): New structs.
1174 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1175 additional arguments expected by this method and adjust function
1177 (frv_gdbarch_init): Remove calls to the following functions:
1178 set_gdbarch_deprecated_init_frame_pc(),
1179 set_gdbarch_deprecated_saved_pc_after_call(),
1180 set_gdbarch_deprecated_frame_chain(),
1181 set_gdbarch_deprecated_frame_saved_pc(),
1182 set_gdbarch_deprecated_frame_init_saved_regs(),
1183 set_gdbarch_deprecated_push_arguments(),
1184 set_gdbarch_deprecated_push_return_address(),
1185 set_gdbarch_deprecated_pop_frame(),
1186 set_gdbarch_deprecated_call_dummy_words(),
1187 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1188 set_gdbarch_deprecated_init_extra_frame_info(),
1189 set_gdbarch_deprecated_dummy_write_sp(), and
1190 set_gdbarch_deprecated_pc_in_call_dummy().
1191 Add calls to the following functions:
1192 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1193 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1194 frame_base_set_default().
1195 * Makefile.in (frv-tdep.o): Update dependencies.
1197 2003-09-09 Mark Kettenis <kettenis@gnu.org>
1199 * dwarf2-frame.c (read_encoded_value): Add support for
1200 DW_EH_PE_aligned encoding.
1202 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1204 * infrun.c (normal_stop): Don't print a message if the inferior
1207 2003-09-08 Jim Blandy <jimb@redhat.com>
1209 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1210 * dbxread.c: #include "gdb_assert.h".
1211 (read_dbx_symtab): If the objfile has no .data section, use the
1212 section index for the .bss section instead.
1214 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1216 * frame.c (deprecated_safe_get_selected_frame): New function.
1217 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1218 * findvar.c (read_var_value): Call it.
1220 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1222 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1223 (sh64-tdep.o): Add dependencies.
1224 * configure.tgt: Add FIXME to sh-*-linux*.
1225 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1226 (sh_gdbarch_init): Always set correct sh_show_regs function
1227 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1228 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1229 * sh64-tdep.c: New file, containing all sh64 related code from
1231 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1232 * config/sh/linux.mt (TDEPFILES): Ditto.
1233 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1234 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1235 * config/sh/wince.mt (TDEPFILES): Ditto.
1237 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1239 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1240 (stop_wait_callback): Handle !lp->signalled also.
1241 (lin_lwp_has_pending, flush_callback): New functions.
1242 (lin_lwp_wait): Call flush_callback.
1243 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1244 (linux_proc_pending_signals): New function.
1245 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1247 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1249 From Nick Kelsey <nickk@ubicom.com>:
1250 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1251 when the stop PC is at the beginning of a function also.
1253 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1255 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1256 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1258 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1260 * sol-thread.c: Include "gdb_string.h".
1262 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1264 * gcore.c: Reorder include files in alphabetical order. Include
1265 "gdb_assert.h". Various coding style fixes.
1266 (derive_stack_segment, derive_heap_segment): Replace check for
1267 non-null BOTTOM and TOP with gdb_assert.
1268 (derive_heap_segment): Replace check for successful creation of
1269 ZERO with gdb_assert.
1270 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1272 2003-09-04 Andrew Cagney <cagney@redhat.com>
1274 * thread-db.c (verbose_dlsym): New function.
1275 (thread_db_load): Use verbose_dlsym
1276 (thread_db_new_objfile): Print that libthread_db was loaded, and
1277 that thread debugging was enabled.
1279 2003-09-04 Andrew Cagney <cagney@redhat.com>
1281 * configure.tgt: Add "mips64*-*-*" target. Delete
1282 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1283 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1284 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1285 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1286 mips*-sony-*, and mips64*-*-elf* targets.
1287 * config/mips/embedl.mt: Delete file.
1288 * config/mips/embedl64.mt: Delete file.
1289 * config/mips/mips.mt: Delete file.
1290 * config/mips/mips64.mt: Delete file.
1291 * config/mips/tm-embed.h: Delete file.
1292 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1293 * config/mips/embed64.mt: Delete out-of-date comment.
1295 2003-09-04 Andrew Cagney <cagney@redhat.com>
1297 * hppa-tdep.c (hppa_gdbarch_init): Set
1298 "have_nonsteppable_watchpoint".
1299 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1300 * mips-tdep.c (mips_dump_tdep): Do not print
1301 HAVE_NONSTEPPABLE_WATCHPOINT.
1302 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1303 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1304 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1305 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1307 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1309 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1310 unused code. Add comment.
1312 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1314 * breakpoint.c (watchpoint_check): Check for pc being in an
1315 epilogue if watchpoint frame couldn't be found.
1317 2003-09-04 Andrew Cagney <cagney@redhat.com>
1319 * Makefile.in: Re-generate all dependencies.
1321 2003-09-03 Andrew Cagney <cagney@redhat.com>
1323 * arch-utils.h (legacy_print_insn): Delete declaration.
1324 * arch-utils.c (legacy_print_insn): Delete function.
1325 * disasm.c (deprecated_tm_print_insn_info): Delete.
1326 (_initialize_disasm): Delete function, contained code initializing
1327 deprecated_tm_print_insn_info.
1328 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1329 (deprecated_tm_print_insn_info): Delete.
1330 (TARGET_PRINT_INSN): Do not provide a default.
1331 * gdbarch.h, gdbarch.c: Re-generate.
1333 2003-09-03 Andrew Cagney <cagney@redhat.com>
1335 * disasm.c (fprintf_disasm): New function.
1336 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1337 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1338 reverts 2003-08-14 change.
1339 (_initialize_disasm): Call "init_disassemble_info", instead of
1340 INIT_DISASSEMBLE_INFO_NO_ARCH.
1342 2003-09-03 Michael Snyder <msnyder@redhat.com>
1344 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1346 2003-09-03 Andrew Cagney <cagney@redhat.com>
1348 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1349 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1350 * symfile.c (syms_from_objfile): Update.
1351 (reread_symbols): `Update
1352 * exec.c (exec_file_attach): Update.
1353 (exec_file_attach): Update.
1354 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1356 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1358 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1360 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1362 (arm_get_cache): Delete macro.
1363 (struct arm_prologue_cache): Update comments. Make saved_regs into
1364 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1366 (thumb_scan_prologue): Update for cache changes. Don't call
1367 DEPRECATED_PC_IN_CALL_DUMMY.
1368 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1369 argument and use it in desperation search for our prologue. Do not
1370 search past the specified PC.
1371 (arm_make_prologue_cache): Simplify.
1373 (arm_prologue_this_id, arm_prologue_prev_register)
1374 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1375 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1376 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1377 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1378 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1380 (arm_frame_chain_valid, arm_find_callers_reg)
1381 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1382 (arm_pop_frame): Delete obsolete methods.
1383 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1385 (arm_gdbarch_init): Update for new frame methods. Register prologue
1386 and sigtramp unwinders. Set the default frame base method.
1388 * Makefile.in (arm-tdep.o): Update dependencies.
1389 * varobj.c (find_frame_addr_in_frame_chain): Call
1390 get_frame_base_address.
1391 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1393 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1395 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1396 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1397 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1398 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1399 Take NEXT_FRAME and CACHE arguments. Call
1400 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1401 Set unwound_pc in CACHE instead of modifying the frame argument.
1402 Don't bother checking the frame type when looking for sigtramp
1404 (arm_make_prologue_cache, arm_frame_chain)
1405 (arm_init_extra_frame_info): New functions.
1407 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1409 * arm-tdep.c (arm_get_cache): Define.
1410 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1411 unwound_sp, unwound_pc, and saved_regs.
1412 (thumb_scan_prologue): Take a cache instead of the frame.
1413 (arm_scan_prologue): Likewise.
1414 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1415 instead of a temporary frame.
1416 (arm_init_extra_frame_info): Allocate and use a cache.
1417 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1419 2003-09-03 Andrew Cagney <cagney@redhat.com>
1421 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1422 * config/mips/wince.mt (TM_CLIBS): Ditto.
1423 * config/sh/wince.mt (TM_CLIBS): Ditto.
1424 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1425 * config/sparc/sp64.mt (CC): Delete.
1427 2003-09-03 Andrew Cagney <cagney@redhat.com>
1429 * defs.h: Do not include "arch-utils.h".
1430 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1431 GDB_MULTI_ARCH_PURE.
1432 * configure.in (GDB_MULTI_ARCH): Do not define.
1433 * configure, config.in: Regenerate.
1434 * configure.tgt: Do not set variable "gdb_multi_arch".
1435 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1436 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1437 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1438 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1439 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1440 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1441 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1442 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1443 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1444 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1445 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1446 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1447 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1448 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1449 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1450 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1451 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1452 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1454 2003-08-30 Michael Chastain <mec@shout.net>
1456 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1457 * config/m68k/nm-hp300hpux.h: Delete.
1458 * config/m68k/tm-hp300hpux.h: Delete.
1459 * config/m68k/xm-hp300hpux.h: Delete.
1460 * config/m68k/xm-hp300bsd.h: Delete.
1461 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1462 tm-hp300hpux.h, xm-hp300hpux.h.
1463 * somsolib.c: Remove comment about hp300 shared libraries.
1465 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1467 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1468 Only define PTRACE_GET_THREAD_AREA is not already defined.
1469 Various style fixes in code and comments and some additional
1470 spelling fixes in comments. Move after functions dealing with
1472 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1475 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1476 frame_unwind_register_unsigned instead of
1477 frame_unwind_unsigned_register.
1479 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1481 * configure.in: Search for gethostbyname in libnsl.
1482 * configure: Regenerated.
1484 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1486 * configure.in: Remove redundant AC_MSG_RESULT in check for
1487 uintptr_t in stdint.h.
1488 * configure: Regenerated.
1490 * amd64-nat.h (struct regcache): Add opaque declaration.
1492 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1493 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1494 Change "register array" to "register cache" in comments.
1495 (x86_64_linux_gregset64_reg_offset): New variable.
1496 (GETREGS_SUPPLIES): Remove macro.
1497 (supply_gregset): Call amd64_supply_native_gregset instead of
1498 x86_64_linux_supply_gregset.
1499 (fill_gregset): Rename `regno' to `regnum'. Call
1500 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1501 (store_regs): Rename `regno' to `regnum'.
1502 (store_fpregs): Rename `regno' to `regnum'.
1503 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1504 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1505 Reorganize function a bit.
1506 (store_inferior_registers): Rename `regno' to `regnum'. Use
1507 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1508 Reorganize function a bit.
1509 (_initialize_x86_64_linux_nat): New function.
1510 * config/i386/x86-64linux.mh.
1512 2003-08-29 Andrew Cagney <cagney@redhat.com>
1514 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1515 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1516 (target_remove_watchpoint): Delete macro.
1517 (target_insert_watchpoint): Delete macro.
1518 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1519 (remote_mips_stopped_by_watchpoint): Delete declaration.
1520 (remote_mips_remove_watchpoint): Delete declaration.
1521 (remote_mips_set_watchpoint): Delete declaration.
1522 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1523 * remote-mips.c (_initialize_remote_mips): Set
1524 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1525 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1526 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1527 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1528 (mips_stopped_by_watchpoint): Rename
1529 remote_mips_stopped_by_watchpoint.
1530 (mips_can_hardware_watchpoint): Rename
1531 remote_mips_can_use_hardware_watchpoint, update function
1534 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1536 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1537 USER_DS. We haven't given them a register number yet.
1539 * amd64-nat.h: New file.
1540 * amd64-nat.c: New file.
1541 * amd64fbsd-nat.c: Include "amd64-nat.h".
1542 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1543 (amd64fbsd32_r_reg_offset): New variable.
1544 (supply_gregset): Simply call amd64_supply_native_gregset.
1545 (fill_gregset): Rename `regno' to `regnum'. Simply call
1546 amd64_collect_native_gregset.
1547 (fill_fpregset): Rename `regno' to `regnum'.
1548 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1549 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1550 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1551 `fpregset_t'. Call amd64_supply_native_gregset instead of
1552 supply_gregset. Call x86_64_supply_fxsave instead of
1554 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1555 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1556 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1557 `fpregset_t'. Call amd64_collect_native_gregset instead of
1558 fill_gregset. Call x86_64_collect_fxsave instead of
1560 (_initialize_am64fbsd_nat): Initialize
1561 amd64_native_gregset32_reg_offset and
1562 amd64_native_gregset64_reg_offset.
1563 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1565 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1566 null pointer. Fix typo in comment.
1568 * regcache.c (supply_register): Reimplement to call
1569 regcache_raw_supply.
1570 (regcache_collect): Reimplement by calling regcache_raw_collect.
1572 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1574 * regcache.c (register_buffer): Consitify first argument.
1575 (regcache_raw_supply, regcache_raw_collect): New
1578 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1580 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1581 by Nathan J. Williams.
1583 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1585 * lin-lwp.c (wait_lwp): New function, copied from
1586 stop_wait_callback. Clean up.
1587 (stop_wait_callback): Use wait_lwp.
1589 2003-08-28 Andrew Cagney <cagney@redhat.com>
1591 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1592 flavour and disassembler options.
1593 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1594 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1595 deprecated_tm_print_insn_info.
1597 2003-08-27 Andrew Cagney <cagney@redhat.com>
1599 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1600 Use target_read_memory.
1601 (s390_get_frame_info): Update. Do not reference
1602 deprecated_tm_print_insn_info.
1603 (s390_check_function_end, s390_is_sigreturn): Ditto.
1605 2003-08-27 Andrew Cagney <cagney@redhat.com>
1607 * Makefile.in (cris-tdep.o): Update dependencies.
1608 * cris-tdep.c: Include "gdb_assert.h".
1609 (cris_gdbarch_init): Set print_insn.
1610 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1611 (cris_delayed_get_disassembler): Simplify, directly call the
1612 disassembler returned by cris_get_disassembler.
1613 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1614 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1615 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1616 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1617 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1618 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1619 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1620 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1621 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1622 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1623 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1624 (gdb_print_insn_sparc): Delete function.
1625 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1626 deprecated_tm_print_insn_info.
1627 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1628 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1629 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1630 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1631 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1632 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1633 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1634 (s390_gdbarch_init): Set print_insn.
1636 2003-08-27 Andrew Cagney <cagney@redhat.com>
1638 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1639 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1640 * infcall.c (call_function_by_hand): Convert the entry point
1641 address into a code address.
1643 2003-08-27 Andrew Cagney <cagney@redhat.com>
1645 * dsrec.c: Include "gdb_string.h".
1646 * Makefile.in (dsrec.o): Update dependencies.
1648 2003-08-27 Michael Chastain <mec@shout.net>
1650 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1652 2003-08-27 Andrew Cagney <cagney@redhat.com>
1654 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1655 (alpha_osf1_init_abi): Do not set call_dummy_address.
1657 2003-08-27 David Carlton <carlton@kealia.com>
1659 From Randolph Chung <tausq@debian.org>:
1660 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1661 compiles with -Wformat-nonliteral -Werror.
1663 2003-08-26 Jim Blandy <jimb@redhat.com>
1665 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1666 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1667 bfd_lookup_symbol, since we only want symbols in code sections.
1668 (look_for_base): Pass zero as the SECT_FLAGS argument to
1669 bfd_lookup_symbol, since we're not concerned about which section
1672 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1674 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1675 we are frameless or the return address register is already known.
1677 2003-08-26 Andrew Cagney <cagney@redhat.com>
1679 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1680 in size. Add comments.
1682 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1684 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1685 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1687 2003-08-26 Jason Merrill <jason@redhat.com>
1689 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1690 case out of #ifdef MIPS block.
1692 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1695 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1696 available before calling SECT_OFF_TEXT.
1697 * PROBLEMS: Remove description of java/1322.
1699 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1701 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1702 bof, and nat0-nat127 as pseudo-registers.
1703 (ia64_frame_cache): New struct used to cache frame info.
1704 (ia64_register_reggroup_p): New routine used to override default
1705 register grouping so registers without names are still saved and
1707 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1709 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1710 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1711 (ia64_alloc_frame_cache): New routine to create a new
1713 (examine_prologue): Change prototype to add next_frame pointer.
1714 Assume frameless until otherwise proven. Verify that the cfm for
1715 current frame matches the cfm that should occur for the prologues
1716 alloc insn and if equal, mark as not frameless. At end of routine,
1717 if not frameless, calculate registers for the previous frame and store
1718 in the cache, if a cache is provided.
1719 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1720 and pass 0 for next_frame.
1721 (ia64_store_return_value): Change to use convert_typed_floating()
1722 instead of calling ia64_convert_to_raw().
1723 (ia64_extract_return_value): Change to use convert_typed_floating()
1724 instead of calling ia64_convert_to_virtual().
1725 (ia64_frame_cache): New routine to support new frame model.
1726 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1727 (ia64_frame_sniffer): Ditto.
1728 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1729 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1730 (ia64_sigtramp_frame_prev_register): Ditto.
1731 (ia64_sigtramp_frame_sniffer): Ditto.
1732 (ia64_frame_base_address): Ditto.
1733 (ia64_extract_struct_value_address): Change to issue error message.
1734 (ia64_frame_align): New routine to align sp.
1735 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1736 (ia64_push_arguments): Removed. Logic moved to
1737 ia64_push_dummy_call().
1738 (ia64_push_return_address): Ditto.
1739 (ia64_unwind_dummy_id): New function.
1740 (ia64_unwind_pc): Ditto.
1741 (ia64_convert_register_p): Ditto.
1742 (ia64_register_to_value): Ditto.
1743 (ia64_value_to_register): Ditto.
1744 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1745 (ia64_register_byte, ia64_register_raw_size): Ditto.
1746 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1747 (ia64_saved_pc_after_call): Ditto.
1748 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1749 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1750 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1751 (ia64_register_convert_to_raw): Ditto.
1752 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1753 (ia64_init_extra_frame_info): Ditto.
1754 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1755 (ia64_gdbarch_init): Remove registering of deprecated functions that
1756 are no longer used. Add registration of new gdbarch functions.
1757 Remove registering deprecated_write_sp. Replace
1758 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1759 Delete set_gdbarch_deprecated_register_convertible(),
1760 set_gdbarch_deprecated_register_convert_to_virtual(), and
1761 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1762 set_gdbarch_deprecated_register_size(),
1763 set_gdbarch_deprecated_register_bytes(),
1764 set_gdbarch_pcregnum(),
1765 set_gdbarch_deprecated_register_byte(),
1766 set_gdbarch_deprecated_register_raw_size(),
1767 set_gdbarch_deprecated_max_register_raw_size(),
1768 set_gdbarch_deprecated_register_virtual_size(),
1769 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1770 Replace set_gdbarch_deprecated_extract_return_value() with
1771 set_gdbarch_extract_return_value(). Remove calls to:
1772 set_gdbarch_deprecated_saved_pc_after_call();
1773 set_gdbarch_deprecated_frame_chain(),
1774 set_gdbarch_deprecated_frame_saved_pc(),
1775 set_gdbarch_deprecated_frame_init_saved_regs(),
1776 set_gdbarch_deprecated_get_saved_register(),
1777 set_gdbarch_deprecated_call_dummy_words(),
1778 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1779 set_gdbarch_deprecated_init_extra_frame_info(),
1780 set_gdbarch_deprecated_frame_args_address(),
1781 set_gdbarch_deprecated_frame_locals_address(),
1782 and set_gdbarch_deprecated_dummy_write_sp().
1783 Add set_gdbarch_convert_register_p(),
1784 set_gdbarch_register_to_value(),
1785 set_gdbarch_value_to_register(),
1786 set_gdbarch_push_dummy_call(),
1787 set_gdbarch_frame_align(),
1788 set_gdbarch_unwind_dummy_id(),
1789 set_gdbarch_unwind_pc(),
1790 frame_unwind_append_sniffer(),
1791 frame_unwind_append_sniffer(),
1792 and frame_base_set_default().
1794 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1796 * configure.tgt: Document need for special "mipsisa64" handling.
1797 (mipsisa64*-*-linux64): Handle as target linux64.
1798 (mipsisa64*-*-*): Handle as target embed64.
1800 2003-08-18 Michael Chastain <mec@shout.net>
1802 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1805 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1807 * i387-tdep.h: Update copyright date.
1808 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1810 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1811 CFLAGS games to reflect reality.
1813 2003-08-24 Andrew Cagney <cagney@redhat.com>
1815 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1816 GDB_MULTI_ARCH is always non-zero.
1817 * osabi.c (_initialize_gdb_osabi): Ditto.
1818 (gdbarch_init_osabi): Ditto.
1819 * sparc-tdep.c: Ditto for #if code.
1821 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1823 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1825 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1827 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1828 x86_64_supply_fxsave.
1829 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1830 x86_64_supply_fxsave.
1831 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1832 x86_64_supply_fxsave.
1834 2003-08-23 Andreas Jaeger <aj@suse.de>
1836 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1839 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1841 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1842 i387_supply_register.
1843 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1844 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1846 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1848 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1850 * i386bsd-nat.c (supply_fpregset): Adjust call to
1852 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1853 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1855 (store_inferior_registers): Remove extraneous whitespace. Call
1856 i387_fill_fsave instead of fill_fpregset.
1857 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1858 (supply_fpregset): Likewise.
1859 * i386v4-nat.c (supply_fpregset): Adjust call to
1861 * i386-interix-nat.c (supply_fpregset): Adjust call to
1863 * i386-linux-nat.c (supply_fpregset): Adjust call to
1865 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1866 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1867 i387supply_fsave and i387_supply_fxsave.
1868 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1869 Incorporate code from `i387_supply_register.
1870 (i387_supply_register): Remove.
1871 (i387_supply_fxsave): Add `regnum' argument.
1873 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1875 (i387_supply_register): remove prototype.
1878 2003-08-22 Michael Chastain <mec@shout.net>
1880 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1881 Add lines for files in gdb/testsuite/gdb.cp/* that are
1882 still not 8.3 unique.
1884 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1886 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1887 TYPE_VPTR_FIELDNO is valid.
1889 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1891 * utils.c (set_width_command): Remove prototypes.
1892 (set_screen_size): New prototype.
1893 (init_page_info): Simplify by fetching the screen size from
1894 Readline. Call set_screen_size.
1895 (set_screen_size): New function.
1896 (set_width): Add missing whitespace in comment.
1897 (set_width_command): Call set_screen_size.
1898 (set_height_command): New function.
1899 (initialize_utils): Fix formatting. Make "set height" command
1900 call set_height_command. Remove redundant code that turns off
1901 pagination if output isn't a terminal. Remove redundant call to
1904 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1906 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1907 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1908 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1909 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1911 (sparc64_register_info): Give the reister with number
1912 SPARC64_STATE_REGNUM a name.
1913 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1915 (sparc64_push_dummy_call): Take BIAS into account when checking
1917 (sparc_software_single_step): Remove assertions that check whether
1918 NPC and NNPC were zero.
1919 (sparc_supply_rwindow): Make public. Merge functionality with
1920 sparc64_supply_rwindow.
1921 (sparc_fill_rwindow): Make public. Merge functionality with
1922 sparc64_fill_rwindow.
1923 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1924 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1925 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1926 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1927 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1929 * reggroups.c: Add whitespace after declarations of local
1930 variables in functions.
1932 2003-08-21 Michael Chastain <mec@shout.net>
1934 * gdbtypes.h: Change array bound type from an int to enum.
1936 2003-08-21 Andrew Cagney <cagney@redhat.com>
1938 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1939 * config/sparc/tm-sparc.h: Ditto.
1940 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1942 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1944 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1946 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1947 (register_objfile_data, set_objfile_data, objfile_data): New
1949 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1951 (allocate_objfile): Call objfile_alloc_data.
1952 (free_objfile): Call objfile_free_data.
1953 (struct objfile_data): New.
1954 (struct objfile_data_registration): New.
1955 (struct objfile_data_registry): New.
1956 (objfile_data_registry): New variable.
1957 (register_objfile_data): New function.
1958 (objfile_alloc_data, objfile_free_data): New functions.
1959 (set_objfile_data, objfile_data): New functions.
1960 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1961 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1962 (_initialize_dwarf2_frame): New function and prototype.
1964 2003-08-21 Andrew Cagney <cagney@redhat.com>
1966 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1967 a specific architecture.
1968 * arch-utils.h (set_architecture_from_arch_mach): Delete
1970 (target_architecture_hook): Delete declaration.
1971 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1972 (default_float_format): Assume GDB_MULTI_ARCH.
1973 (default_double_format): Assume GDB_MULTI_ARCH.
1974 (set_endian_from_file): Delete function.
1975 (arch_ok): Delete function.
1976 (set_arch): Delete function.
1977 (set_architecture_from_arch_mach): Delete function.
1978 (set_architecture_from_file): Delete function.
1979 (set_architecture): Assume GDB_MULTI_ARCH.
1980 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1982 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1984 Rewrite FreeBSD/sparc64 native configuration.
1985 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1986 * sparc64fbsd-nat.c: New file.
1987 * sparc64fbsd-tdep.c: New file.
1988 * sparc64-tdep.c sparc64-tdep.h: New files.
1989 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1990 sparc64fbsd-tdep.o): New dependencies.
1991 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1992 and sparc64fbsd-tdep.c.
1993 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1994 * config/sparc/fbsd.mh: Remove copyright notice.
1995 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1997 * config/sparc/fbsd.mt: Remove copyright notice.
1998 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1999 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2000 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2001 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2002 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2003 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2004 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2005 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2007 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2008 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2010 2003-08-21 Michael Chastain <mec@shout.net>
2012 * symtab.h: Add doco on the space critical structures and
2013 some measurements of space usage.
2015 2003-08-21 Michael Snyder <msnyder@redhat.com>
2017 * tracepoint.c (trace_dump_command): Trace break address
2018 is subject to DECR_PC_AFTER_BREAK.
2019 (set_traceframe_context): Make "trace_line" an int.
2020 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2022 2003-08-20 Michael Snyder <msnyder@redhat.com>
2024 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2025 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2026 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2028 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2029 functions, replace sh_push_dummy_call.
2030 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2032 2003-08-20 Michael Chastain <mec@shout.net>
2034 * gdbtypes.h (struct main_type): Rearrange to save space.
2036 2003-08-20 Michael Snyder <msnyder@redhat.com>
2038 * trad-frame.c: Comment typo fix.
2040 2003-08-20 Michael Snyder <msnyder@redhat.com>
2041 Kevin Buettner <kevinb@redhat.com>
2043 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2044 (frv_frame_init_saved_regs): Add declaration.
2045 (frame_extra_info): Add new field ``saved_regs''.
2046 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2047 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2048 Update frame related code.
2049 (frv_extract_struct_value_address): Adjust formatting.
2050 * Makefile.in (frv-tdep.o): Update dependencies.
2051 * config/frv/tm-frv.h (target_insert_watchpoint)
2052 (target_remove_watchpoint, target_insert_hw_breakpoint)
2053 (target_remove_hw_breakpoint): Delete these macros.
2054 (remote_insert_watchpoint, remote_remove_watchpoint)
2055 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2058 2003-08-20 Michael Chastain <mec@shout.net>
2060 * defs.h (ENUM_BITFIELD): New macro.
2061 * symtab.h (ENUM_BITFIELD): Use it.
2062 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2064 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2066 * MAINTAINERS (write after approval): Add myself.
2068 2003-08-18 Andrew Cagney <cagney@redhat.com>
2070 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2071 * gdbarch.h, gdbarch.c: Re-generate.
2072 * infcall.c (call_function_by_hand): Adjust the SP by
2073 frame_red_zone_size before allocating any stack space.
2074 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2075 * x86-64-tdep.c (x86_64_frame_align): New function.
2076 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2078 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2079 Remove code adjusting SP so that it skips over the Red Zone.
2081 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2083 * NEWS (New native configurations): Mention FreeBSD/amd64.
2085 2003-08-18 Andrew Cagney <cagney@redhat.com>
2087 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2088 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2090 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2092 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2094 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2096 2003-08-18 Michal Ludvig <mludvig@suse.cz>
2098 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2100 * i386-linux-nat.c: Include "linux-nat.h".
2101 (child_post_startup_inferior): New function.
2103 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2105 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2106 at the start of a frameless function. This probably fixes PR
2109 2003-08-17 Michael Chastain <mec@shout.net>
2111 * symfile.c (find_sym_fns): Remove special case for apollo target.
2113 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2115 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2116 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2117 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2118 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2119 (linux_supports_tracevforkdone): New function.
2120 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2122 (child_follow_fork): Handle vfork.
2123 (linux_handle_extended_wait): Likewise. Also handle exec.
2124 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2125 * NEWS: Mention fork tracing.
2127 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2129 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2131 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2133 * Makefile.in (i386-linux-nat.o): Update dependencies.
2134 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2135 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2136 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2137 * i386-linux-nat.c: Include "linux-nat.h".
2138 (child_post_startup_inferior): New function.
2139 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2140 * infptrace.c (kill_inferior): Wrap in #ifdef.
2141 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2142 attaching to each LWP.
2143 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2144 (init_lin_lwp_ops): Fill in some more operations.
2145 * linux-nat.h (linux_enable_event_reporting)
2146 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2148 * linux-nat.c (linux_enable_event_reporting): New function.
2149 (child_post_attach, linux_child_post_startup_inferior)
2150 (child_post_startup_inferior, child_follow_fork)
2151 (linux_handle_extended_wait, kill_inferior): New functions.
2153 2003-08-16 Andrew Cagney <cagney@redhat.com>
2155 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2156 * gdbarch.h, gdbarch.c: Re-generate.
2158 2003-08-16 Mark Kettenis <kettenis@gnu.org>
2160 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2162 2003-08-16 Andrew Cagney <cagney@redhat.com>
2164 * NEWS: Mention that "set prompt-escape-char" was deleted.
2165 * top.c (get_prompt_1): Delete function.
2166 (gdb_prompt_escape):
2167 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2168 prompt-escape-char" command.
2169 (MAX_PROMPT_SIZE): Delete macro.
2170 (get_prompt): Simplify, do not call get_prompt_1.
2172 2003-08-16 Andrew Cagney <cagney@redhat.com>
2174 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2175 -Werror. -Wformat-nonliteral problems.
2177 2003-08-15 J. Brobecker <brobecker@gnat.com>
2179 Further multiarching work mostly for hppa64-*-hpux11:
2180 * hppa-tdep.h: New file.
2181 * hppa-tdep.c: #include hppa-tdep.c.
2182 (hppa32_num_regs): Renamed from hppa_num_regs.
2183 (hppa64_num_regs): New constant.
2184 (hppa64_call_dummy_breakpoint_offset): New constant.
2185 (hppa32_call_dummy_length): New constant.
2186 (hppa64_call_dummy_length): New constant.
2187 (hppa32_stack_align): Make name 32bit explicit.
2188 (hppa32_register_virtual_type): Likewise.
2189 (hppa32_extract_return_value): Likewise.
2190 (hppa32_use_struct_convention): Likewise.
2191 (hppa32_store_return_value): Likewise.
2192 (hppa64_register_virtual_type): New function.
2193 (hppa64_extract_return_value): New function.
2194 (hppa64_use_struct_convention): New function.
2195 (hppa64_store_return_value): New function.
2196 (hppa_frame_locals_address): Remove declaration, function does
2198 (hppa_register_byte): Add support for PA64 ABI.
2199 (hppa_gdbarch_init): Add support for PA64 ABI.
2200 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2201 Make name 32bit explicit.
2202 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2203 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2204 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2205 (hppa64_hpux_frame_base_before_sigtramp): New function.
2206 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2207 * config/pa/tm-hppa64.h: Remove macros that are no longer
2208 necessary now that the gdbarch vector is properly setup.
2209 Transform some macros into function calls. Some minor cleanup.
2210 * config/pa/tm-hppah.h: Update function calls in macros
2211 following the function renaming in hppa-hpux-tdep.c.
2212 * Makefile.in (hppa_tdep_h): New variable.
2213 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2215 2003-08-14 Michael Snyder <msnyder@redhat.com>
2217 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2219 2003-08-13 J. Brobecker <brobecker@gnat.com>
2221 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2222 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2225 2003-08-13 Michael Snyder <msnyder@redhat.com>
2227 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2228 (frv_saved_pc_after_call): Use deprecated ftype.
2229 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2230 (frv_remote_translate_xfer_address): Remove.
2231 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2233 2003-08-13 J. Brobecker <brobecker@gnat.com>
2235 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2236 initialization after the common gdbarch initialization, not before.
2238 2003-08-13 J. Brobecker <brobecker@gnat.com>
2240 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2241 (ADDR_BITS_REMOVE): Remove, redundant.
2243 2003-08-13 J. Brobecker <brobecker@gnat.com>
2245 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2246 gdbarch method to clear the 2 low bits of text addresses.
2248 2003-08-12 Andrew Cagney <cagney@redhat.com>
2250 * Makefile.in (dsrec.o): Update dependencies.
2251 * dsrec.c: Include "gdb_assert.h".
2252 (make_srec): Use snprintf instead of sprintf, use a literal format
2255 2003-08-12 Andrew Cagney <cagney@redhat.com>
2257 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2258 FRAME_OBSTACK_ZALLOC.
2260 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2262 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2265 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2267 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2268 amd64fbsd_sc_reg_offset): Add extern declarations.
2269 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2272 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2274 * MAINTAINERS (write after approval): Update my mail address.
2276 2003-08-10 Andrew Cagney <cagney@redhat.com>
2278 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2280 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2282 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2283 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2284 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2285 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2286 i386bsd_sc_reg_offset): Add extern declarations.
2287 * i386obsd-nat.c: Include "i386-tdep.h"
2288 (_initialize_i386obsd_nat): Remove extern declarations.
2289 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2291 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2294 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2295 instead of frame_read_register.
2296 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2297 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2299 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2300 instead of frame_unwind_unsigned_register. Use
2301 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2302 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2303 instead of read_register. Use builtin_type_void_data_ptr instead
2304 of builtin_type_void_func_ptr when extracting the address of the
2306 (i386_extract_return_value, i386_store_return_value,
2307 i386_pseudo_register_read, i386_pseudo_register_write): Use
2308 register_size instead REGISTER_RAW_SIZE.
2310 2003-08-10 Andrew Cagney <cagney@redhat.com>
2312 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2313 sprintf. Make "name" constant.
2315 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2317 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2318 instead of frame_read_register.
2319 (i387_print_float_info): Use get_frame_register and
2320 get_frame_register_unsigned instead of frame_register_read.
2322 * i386fbsd-nat.c: Include "i386-tdep.h".
2323 (child_resume): Make `eflags' an ULONGEST. Use
2324 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2325 instead of register_read and register_write.
2327 * i386bsd-nat.c (fetch_inferior_registers,
2328 store_inferior_registers): Don't use && at the end of a line.
2329 (_initialize_i386bsd_nat): Fix typo.
2331 * frame.c (_initialize_frame): Add missing backslash.
2333 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2334 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2335 and supply_register instead of manipulating the register buffer
2338 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2339 * config/i386/nm-i386sol2.h
2340 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2342 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2343 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2344 instructions that GCC likes to mingle into the prologue. Fixes
2345 gdb/1253 and gdb/1255.
2347 2003-08-09 Andrew Cagney <cagney@redhat.com>
2350 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2351 * command.h (add_setshow_uinteger_cmd): Declare.
2352 * frame.c (set_backtrace_cmd): New function.
2353 (show_backtrace_cmd): New function.
2354 * frame.c (_initialize_frame): Replace "set/show
2355 backtrace-below-main" with "set/show backtrace past-main". Add
2356 command "set/show backtrace limit".
2357 (backtrace_past_main): Rename "backtrace_below_main".
2358 (backtrace_limit): New variable.
2359 (get_prev_frame): Update. Check the backtrace_limit.
2361 2003-08-09 Andrew Cagney <cagney@redhat.com>
2363 * defs.h (xstrprintf): Declare.
2364 * utils.c (xstrprintf): New function.
2365 * breakpoint.c (insert_breakpoints): Replace sprintf and
2366 non-literal format strings, with xstrprintf and cleanups.
2367 (delete_breakpoint,breakpoint_re_set): Ditto.
2368 (commands_command, insert_breakpoints): Ditto.
2369 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2370 (break_at_finish_command_1): Ditto.
2372 2003-08-09 Andrew Cagney <cagney@redhat.com>
2374 * MAINTAINERS (language support): List Adam Fedor as Objective C
2377 2003-08-08 J. Brobecker <brobecker@gnat.com>
2379 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2380 are now multiarched.
2382 2003-08-08 J. Brobecker <brobecker@gnat.com>
2384 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2385 longer necessary now that hppa64 is partially multiarch'ed.
2387 2003-08-08 Andrew Cagney <cagney@redhat.com>
2389 * interps.c (interp_set): Check for a NULL "old_interp".
2391 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2393 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2394 (install-only): Support DESTDIR.
2395 (uninstall): Likewise.
2396 (install-gdbtk): Likewise.
2398 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2400 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2401 contains something meaningful at all times.
2403 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2405 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2407 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2409 * MAINTAINERS (write after approval): Added self.
2411 2003-08-07 Andrew Cagney <cagney@redhat.com>
2413 * inferior.h (AT_SYMBOL): Define.
2414 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2415 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2416 * mips-tdep.c (mips_call_dummy_address): Delete function.
2417 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2418 set call_dummy_address.
2420 2003-08-07 Andrew Cagney <cagney@redhat.com>
2422 * language.c (op_error): Delete function.
2423 (binop_type_check): Delete function.
2424 * language.h (type_op_error, range_op_error): Delete macros.
2425 (op_error): Delete declaration.
2427 2003-08-07 Andrew Cagney <cagney@redhat.com>
2429 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2431 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2433 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2434 (x86_64_push_arguments): Skip the red zone.
2436 2003-08-05 Andrew Cagney <cagney@redhat.com>
2438 * reggroups.c (reggroup_next): Check for the final entry.
2440 2003-08-04 Andrew Cagney <cagney@redhat.com>
2442 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2443 * cli/cli-script.c (define_command): Call query directly, instead
2444 of passing it a buffer.
2445 * ocd.c (ocd_error): Pass error a constant format string.
2446 * remote-mips.c (mips_error): Use fputs_filtered.
2448 * solib-svr4.c (_initialize_svr4_solib): Update
2449 register_gdbarch_data call.
2450 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2452 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2453 (register_gdbarch_data): Delete "free" parameter. Update
2455 * gdbarch.h, gdbarch.c: Re-generate.
2456 * reggroups.c (_initialize_reggroup): Update.
2457 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2458 * frame-base.c (_initialize_frame_base): Update.
2459 * frame-unwind.c (_initialize_frame_unwind): Update.
2460 * user-regs.c (_initialize_user_regs): Update.
2461 * remote.c (_initialize_remote): Update.
2462 * regcache.c (_initialize_regcache): Update.
2464 * regcache.c (xfree_regcache_descr): Delete function.
2465 (_initialize_regcache): Update call to register_gdbarch_data.
2466 (init_regcache_descr, init_legacy_regcache_descr): Use
2467 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2469 * remote.c (free_remote_state): Delete function.
2470 (_initialize_remote): Update register_gdbarch_data.
2471 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2472 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2474 2003-08-04 Andrew Cagney <cagney@redhat.com>
2476 * reggroups.c (struct reggroup_el): Define.
2477 (struct reggroups): Delete field "nr_group". Replace array
2478 "group" with a "first" to "last" linked list.
2479 (reggroups_init): Update. Allocate using gdbarch's obstack.
2480 (reggroups_free): Delete function.
2481 (add_group): Update. Add "el" parameter.
2482 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2483 (default_groups): Update.
2484 (reggroup_next): Replace reggroups.
2485 (reggroups_dump): Update.
2486 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2487 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2488 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2490 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2492 * Makefile.in (tui-interp.o): Update dependencies.
2494 2003-08-04 David Carlton <carlton@kealia.com>
2496 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2497 to internal_error call.
2498 * source.c (forward_search_command): Add "%s" format argument.
2499 (reverse_search_command): Ditto.
2500 * top.c (quit_confirm): Ditto.
2501 * cli/cli-setshow.c (do_setshow_command): Ditto.
2502 * cp-valprint.c (cp_print_class_method): Replace
2503 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2504 (cp_print_class_member): Ditto.
2505 * event-top.c (command_line_handler): Ditto.
2506 * linux-proc.c (linux_info_proc_cmd): Ditto.
2507 * p-typeprint.c (pascal_type_print_base): Ditto.
2508 * p-valprint.c (pascal_object_print_class_method): Ditto.
2509 (pascal_object_print_class_member): Ditto.
2510 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2511 * remote.c (remote_cisco_section_offsets): Ditto.
2512 * top.c (command_line_input): Ditto.
2513 * utils.c (vwarning,error_stream,quit): Ditto.
2514 * valprint.c (print_floating,print_binary_chars)
2515 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2517 2003-08-04 Andrew Cagney <cagney@redhat.com>
2519 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2521 2003-08-02 Andrew Cagney <cagney@redhat.com>
2523 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2524 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2527 2003-08-02 Andrew Cagney <cagney@redhat.com>
2529 * Makefile.in: Update all dependencies and definitions.
2531 2003-08-02 Adam Fedor <fedor@gnu.org>
2533 * linespec.c (is_objc_method_format): New function
2534 (decode_line_1, locate_first_half): Use it.
2537 2003-08-01 Andrew Cagney <cagney@redhat.com>
2539 * NEWS: Mention that m32r is multi-arch.
2540 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2541 * configure.tgt: Recognize m32r-*-*.
2542 * config/m32r/tm-m32r.h: Delete file.
2543 * config/m32r/m32r.mt: New file.
2544 * m32r-rom.c (m32r_upload_command): Use hostent only when
2545 gethostname succeeds, in order to avoid a compilation
2547 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2550 2003-08-01 Michael Snyder <msnyder@redhat.com>
2552 * sh-tdep.c (sh_frame_align): New gdbarch method.
2553 (sh_gdbarch_init): Set up frame_align method.
2555 2003-07-31 Michael Snyder <msnyder@redhat.com>
2557 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2558 which is already covered by the new frames infrastructure.
2560 2003-07-31 Andrew Cagney <cagney@redhat.com>
2562 * user-regs.c (struct user_reg): Add "next" link.
2563 (struct user_regs): Replace "user" with "first" and "last" links.
2564 (append_user_reg): Add pre-allocated "reg" parameter.
2565 (builtin_user_regs): Provide initial value for "last".
2566 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2567 (user_regs_init): Allocate memory from the gdbarch obstack.
2568 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2569 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2571 (usernum_to_user_reg): New function.
2572 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2573 (value_of_user_reg): Use usernum_to_user_reg.
2574 (user_regs_free): Delete function.
2575 (_initialize_user_regs): Update register_gdbarch_data call.
2577 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2579 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2581 2003-07-30 Michael Snyder <msnyder@redhat.com>
2583 * value.h (value_being_returned): Add a struct_addr argument.
2584 * infcall.c (call_function_by_hand): Pass struct_addr to
2585 value_being_returned.
2586 * infcmd.c (print_return_value): Pass zero as struct_addr.
2587 * values.c (value_being_returned): If struct_addr is passed,
2588 use it instead of trying to recover it from the inferior.
2590 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2592 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2593 the prologue analyzer won't need to attempt to extract the pc
2594 value from the woefully incomplete dummy frame.
2595 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2596 possible. Disable code which modifies the frame.
2598 2003-07-28 Andrew Cagney <cagney@redhat.com>
2600 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2602 (annotate_breakpoints_table, annotate_record): Ditto.
2603 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2604 (annotate_field_name_end, annotate_field_value): Ditto.
2605 (annotate_field_end, annotate_frame_source_begin): Ditto.
2606 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2607 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2608 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2609 (annotate_frame_address_end, annotate_frame_address): Ditto.
2610 (annotate_frame_args, annotate_frame_end): Ditto.
2611 (annotate_frame_where, annotate_arg_begin): Ditto.
2612 (annotate_arg_name_end, annotate_arg_value): Ditto.
2613 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2614 (annotate_function_call, annotate_signal_name): Ditto.
2615 (annotate_signal_string, annotate_signal_name_end): Ditto.
2616 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2617 (annotate_value_begin, annotate_value_history_value): Ditto.
2618 (annotate_value_history_end, annotate_value_end): Ditto.
2619 (annotate_display_begin, annotate_display_number_end): Ditto.
2620 (annotate_display_format, annotate_display_expression): Ditto.
2621 (annotate_display_expression_end, annotate_display_value): Ditto.
2622 (annotate_display_end, annotate_array_section_begin): Ditto.
2623 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2624 (annotate_elt, annotate_array_section_end): Ditto.
2626 2003-07-28 Andrew Cagney <cagney@redhat.com>
2628 * regcache.c (struct regcache_descr): Update comments on
2630 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2631 sizeof_raw_register_valid_p.
2632 (init_regcache_descr): Set nr_raw_registers and
2633 sizeof_raw_register_valid_p before calling
2634 init_legacy_regcache_descr.
2636 2003-07-28 Andrew Cagney <cagney@redhat.com>
2638 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2641 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2643 * thread.c (info_threads_command): Use get_selected_frame ().
2644 Check that there is at least one non-sentinel frame.
2646 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2648 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2649 (m68hc11_pop_frame): Remove.
2650 (m68hc11_frame_saved_pc): Remove.
2651 (m68hc11_frame_chain): Remove.
2652 (m68hc11_frame_init_saved_regs): Remove.
2653 (m68hc11_init_extra_frame_info): Remove.
2654 (m68hc11_store_struct_return): Remove.
2655 (m68hc11_saved_pc_after_call): Remove.
2657 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2659 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2660 frame unwind information.
2661 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2662 and adapted for frame unwinding.
2663 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2664 (m68hc11_unwind_pc): New function.
2665 (m68hc11_frame_unwind_cache): New function to analyze frames.
2666 (m68hc11_frame_this_id): New function to create new frame struct.
2667 (m68hc11_frame_prev_register): New function to unwind a register from
2669 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2670 (m68hc11_frame_p): New function for the above.
2671 (m68hc11_frame_base_address): New function to return fp of frame.
2672 (m68hc11_frame_args_address): Update for frame.
2673 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2674 (m68hc11_unwind_sp): New function.
2675 (m68hc11_unwind_dummy_id): New function.
2676 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2679 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2681 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2682 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2683 when we are beyond the current pc.
2685 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2687 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2688 from m68hc11_push_arguments.
2689 (m68hc11_push_arguments): Remove.
2690 (m68hc11_push_return_address): Remove.
2691 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2692 handlers; remove deprecated_extra_stack_alignment_needed.
2694 2003-07-27 Andrew Cagney <cagney@redhat.com>
2696 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2697 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2698 REAL_PC and not the pointer.
2699 * hppa-hpux-tdep.c: Include frame.h
2701 2003-07-27 Andrew Cagney <cagney@redhat.com>
2703 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2704 GDB_MULTI_ACH_PARTIAL.
2706 2003-07-27 Andrew Cagney <cagney@redhat.com>
2708 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2709 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2710 operator at start and not end of line.
2711 (decode_prologue): Ditto.
2712 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2713 frame_unwind_register_unsigned instead of
2714 frame_unwind_unsigned_register.
2715 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2717 (m32r_push_dummy_call): Use register_size instead of
2719 (m32r_frame_sniffer): Replace m32r_frame_p.
2720 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2721 * m32r-rom.c (report_transfer_performance): Delete extern
2723 (m32r_load, m32r_upload_command): Use print_transfer_performance
2724 instead of report_transfer_performance.
2725 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2726 / add_show_from_set.
2728 2003-07-26 Andrew Cagney <cagney@redhat.com>
2730 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2731 store_return_value and extract_struct_value_address.
2733 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2736 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2737 NULL, default to the section containing PC.
2739 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2741 * NEWS: Mention "regs" deprecated for m68hc11 too.
2743 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2744 (m68hc11_print_register): New function to print out one register.
2745 (m68hc11_print_registers_info): New function to print registers.
2746 (show_regs): Deprecate and use the above.
2747 (m68hc11_gdbarch_init): Install the print_registers_info.
2749 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2751 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2752 that we have a SIGTRAP before returning non-zero.
2754 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2755 Elena Zannoni <ezannoni@redhat.com>
2757 * linespec.c (decode_line_2): Avoid crash if
2758 find_function_start_sal() returns empty record.
2760 2003-07-23 Andreas Schwab <schwab@suse.de>
2762 * ia64-tdep.c (ia64_print_insn): New function.
2763 (ia64_gdbarch_init): Set print_insn to it.
2764 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2765 deprecated_tm_print_insn_info.
2767 2003-07-22 Michael Snyder <msnyder@redhat.com>
2769 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2770 handle 8-bit returns (long long).
2771 (h8300h_extract_return_value): Ditto.
2772 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2774 2003-07-22 Andrew Cagney <cagney@redhat.com>
2776 * gdbarch.c Include "gdb_obstack.h".
2777 (struct gdbarch): Add an "obstack".
2778 (alloc_gdbarch_data): Allocate the gdbarch data using
2779 GDBARCH_OBSTACK_CALLOC.
2780 (free_gdbarch_data): Delete function.
2781 (gdbarch_obstack_zalloc): New function.
2782 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2783 Assert that the architecture is not initialized.
2784 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2785 vector from the obstack.
2786 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2787 architecture obstack.
2788 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2789 (set_gdbarch_data): Assert that the data is not initialized.
2790 (struct gdbarch_data): Delete member "free".
2791 (register_gdbarch_data): Do not initialize "free".
2792 * gdbarch.h, gdbarch.c: Re-generate.
2794 2003-07-22 Andrew Cagney <cagney@redhat.com>
2796 * configure.in (build_warnings): Add -Wformat-nonliteral.
2797 * configure: Re-generate.
2799 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2801 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2803 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2805 * findvar.c (read_var_value): Remove case for thread local storage
2806 variables. It is now entirely handled by the dwarf2 location
2808 * printcmd.c (address_info): Ditto.
2809 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2811 (struct symbol): Remove objfile field, which was used by
2812 LOC_THREAD_LOCAL_STATIC only.
2813 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2814 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2815 usage of objfile pointer.
2816 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2817 thread local variables.
2818 Add include of objfiles.h.
2819 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2821 * Makefile.in (dwarf2loc.o): Update dependencies.
2823 2003-07-22 Andrew Cagney <cagney@redhat.com>
2825 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2827 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2828 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2829 (struct value): Add opaque declaration.
2830 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2832 2003-07-21 Andrew Cagney <cagney@redhat.com>
2834 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2835 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2837 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2839 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2840 regcache_cooked_read_unsigned instead of read_register.
2841 (m68hc11_saved_pc_after_call): Likewise.
2842 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2843 instead of write_register.
2844 (m68hc11_register_type): New function.
2845 (m68hc11_register_virtual_type): Remove.
2846 (m68hc11_store_return_value): Convert to use the regcache.
2847 (m68hc11_extract_struct_value_address): Likewise.
2848 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2849 m68hc11_register_type; undeprecate store_return_value and
2850 extract_struct_value_address.
2852 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2854 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2855 and translate to use regcache.
2856 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2858 2003-07-18 Andrew Cagney <cagney@redhat.com>
2860 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2861 * gdbarch.h, gdbarch.c: Re-generate.
2862 * i386-tdep.c (i386_gdbarch_init): Do not set
2863 DWARF2_BUILD_FRAME_INFO.
2864 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2866 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2867 DWARF2_BUILD_FRAME_INFO.
2869 2003-07-18 Andrew Cagney <cagney@redhat.com>
2871 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2872 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2874 2003-07-18 Andrew Cagney <cagney@redhat.com>
2876 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2877 frame_unwind_address_in_block, instead of frame_pc_unwind.
2878 (dwarf2_frame_cache): Ditto.
2880 2003-07-18 Andrew Cagney <cagney@redhat.com>
2882 * user-regs.h (struct gdbarch): Declare opaque.
2883 * ui-out.h (struct ui_file): Declare opaque.
2884 * dwarf2-frame.h (struct frame_info): Declare opaque.
2886 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2888 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2890 (procfs_meminfo): Change strerror to safe_strerror.
2891 (procfs_can_run): Remove K&R badness.
2893 2003-07-17 Michael Snyder <msnyder@redhat.com>
2895 * remote-sim.c: Comment typo fix.
2897 2003-07-17 Andrew Cagney <cagney@redhat.com>
2899 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2901 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2902 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2903 GDB_MULTI_ARCH_PARTIAL.
2905 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2907 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2908 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2909 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2911 2003-07-16 Theodore A. Roth <troth@openavr.org>
2913 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2915 (avr_frame_unwind_cache): Don't unwind FP for main.
2917 Save the computed prev_sp.
2918 (avr_saved_regs_unwinder): Remove function.
2919 (avr_frame_prev_register): Use PC unwind logic from
2920 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2922 2003-07-16 Andrew Cagney <cagney@redhat.com>
2924 * frame-base.h (frame_base_p_ftype): Delete definition.
2925 (frame_base_append_predicate): Delete declaration.
2926 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2927 (frame_unwind_append_predicate): Delete declaration.
2928 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2929 (append_predicate): Delete parameter "p".
2930 (frame_unwind_append_predicate): Delete function.
2931 (frame_unwind_append_sniffer): Update call to append_predicate.
2932 (frame_unwind_free): Delete function.
2933 (_initialize_frame_unwind): Pass NULL as "free" to
2934 register_gdbarch_data.
2935 (frame_unwind_init): Append the dummy_frame_sniffer.
2936 (frame_unwind_find_by_frame): Simplify.
2937 * frame-base.c (struct frame_base_table): Delete field "p".
2938 (append_predicate): Delete parameter "p".
2939 (frame_base_append_predicate): Delete function.
2940 (frame_base_append_sniffer): Update call to append_predicate.
2941 (frame_base_free): Delete function.
2942 (frame_base_find_by_frame): Simplify.
2943 (_initialize_frame_base): Pass NULL as "free" to
2944 register_gdbarch_data.
2945 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2946 (x86_64_sigtramp_frame_sniffer): Replace
2947 "x86_64_sigtramp_frame_p".
2948 (x86_64_init_abi): Set the frame unwind sniffers.
2949 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2950 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2951 (m68k_gdbarch_init): Set the frame unwind sniffers.
2952 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2953 "i386_sigtramp_frame_p".
2954 (i386_frame_sniffer): Replace "i386_frame_p".
2955 (i386_gdbarch_init): Set the frame unwind sniffers.
2956 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2957 (avr_gdbarch_init): Set the frame unwind sniffers.
2958 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2959 "alpha_sigtramp_frame_p"
2960 (alpha_heuristic_frame_sniffer): Replace
2961 "alpha_heuristic_frame_p".
2962 (alpha_gdbarch_init): Set the frame unwind sniffers.
2963 (alpha_dwarf2_init_abi): Ditto.
2964 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2965 "alpha_debug_frame_p".
2966 (alpha_mdebug_frame_base_sniffer): Replace
2967 "alpha_mdebug_frame_base_p".
2968 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2969 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2970 (d10v_gdbarch_init): Set the frame unwind sniffer.
2971 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2972 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2973 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2974 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2975 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2976 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2978 2003-07-16 Michael Snyder <msnyder@redhat.com>
2980 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2981 should go thru sh_dsp_register_sim_regno, else the dsp regs
2982 will not get the right values.
2984 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2986 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2987 deprecated_store_floating by call to store_typed_floating.
2988 (sh_sh4_register_convert_to_raw): Substitute call to
2989 deprecated_extract_floating by call to extract_typed_floating.
2991 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2993 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2995 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2997 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2998 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2999 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3001 (do_pseudo_register): Remove.
3002 (sh_push_dummy_code): New function.
3003 (sh64_store_struct_return): Rename from sh_store_struct_return.
3004 Only called for sh64 now.
3005 (sh_extract_struct_value_address): Regcache'ify.
3006 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3007 and accomodate new tasks.
3008 (sh64_push_return_address): Rename from sh_push_return_address.
3009 Only called for sh64 now.
3010 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3012 (sh3e_sh4_extract_return_value): Regcache'ify.
3013 (sh_default_store_return_value): Ditto.
3014 (sh3e_sh4_store_return_value): Ditto.
3015 (sh_default_register_byte): Remove.
3016 (sh_sh4_register_byte): Remove.
3017 (sh_default_register_raw_size): Remove.
3018 (sh_sh4_register_raw_size): Remove.
3019 (sh_register_virtual_size): Remove.
3020 (sh_sh3e_register_virtual_type): Remove.
3021 (sh_sh3e_register_type): New function.
3022 (sh_sh4_register_virtual_type): Remove.
3023 (sh_sh4_register_type): New function.
3024 (sh_default_register_virtual_type): Remove.
3025 (sh_default_register_type): New function.
3026 (do_fv_register_info): Add parameters to accomodate call from
3027 sh_print_registers_info.
3028 (do_dr_register_info): Ditto.
3029 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3030 Add parameters to accomodate call from sh_print_registers_info.
3031 (sh_do_fp_register): Ditto.
3032 (sh64_do_pseudo_register): Call do_dr_register_info,
3033 do_fv_register_info and sh_do_fp_register with default parameters.
3034 (sh_do_register): Add parameters to accomodate call from
3035 sh_print_registers_info.
3036 (sh_print_register): Ditto.
3037 (sh_print_registers_info): Rename from sh_do_registers_info.
3038 Add parameters to be used as gdbarch_print_registers_info
3039 implementation. Accomodate removed do_pseudo_register function
3041 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3042 function pointer. Call sh_print_register with default parameters.
3043 (sh64_do_registers_info): Call sh_print_registers_info instead of
3044 sh_do_registers_info.
3045 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3046 detection of deprecated vs. non-deprecated functionality.
3047 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3048 function pointer assignments by direct function calls.
3050 2003-07-15 Andrew Cagney <cagney@redhat.com>
3052 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3053 (frame_register_unwind, create_new_frame): Ditto.
3054 (legacy_get_prev_frame, get_frame_type): Ditto.
3055 (get_frame_base_address): Use frame_base_find_by_frame.
3056 (get_frame_locals_address): Use frame_base_find_by_frame.
3057 (get_frame_args_address): Use frame_base_find_by_frame.
3058 * frame-base.h (frame_base_sniffer_ftype): Declare.
3059 (frame_base_append_sniffer): Declare.
3060 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3061 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3062 (frame_base_append_sniffer): New function.
3063 (frame_base_append_predicate): Add a NULL sniffer.
3064 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3065 (struct frame_base_table): Add "sniffer".
3066 (frame_base_free): Free the "sniffer" table.
3067 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3068 (frame_unwind_append_sniffer): Declare.
3069 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3070 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3071 (struct frame_unwind_table): Add "sniffer", delete "middle".
3072 (append_predicate): Add "sniffer" parameter, append the sniffer.
3073 (frame_unwind_init): Update append_predicate call.
3074 (frame_unwind_append_sniffer): New function.
3075 (frame_unwind_append_predicate): Update append_predicate call.
3076 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3078 2003-07-15 Andrew Cagney <cagney@redhat.com>
3080 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3081 before code inhibiting repeated unwind attempts. Add to
3082 commentary on that test's problems.
3083 * blockframe.c (inside_main_func): Look for "main" in the minimal
3085 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3088 2003-07-15 Andrew Cagney <cagney@redhat.com>
3090 * complaints.c (struct explanation): Define.
3091 (struct complaints): Change type of "explanation" to "struct
3093 (symfile_explanations): Convert to a "struct explanation" table.
3094 (vcomplaint): Update.
3096 2003-07-15 Michal Ludvig <mludvig@suse.cz>
3098 * x86-64-linux-nat.c (regmap): Removed.
3099 (supply_gregset, fill_gregset): Call
3100 x86_64_linux_(fill,supply)_gregset functions.
3101 * x86-64-linux-tdep.c (USER_*): New defines.
3102 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3103 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3105 (fetch_core_registers): Ditto.
3106 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3107 * x86-64-linux-tdep.h: New file.
3108 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3110 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3112 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3114 * x86-64-tdep.c (x86_64_store_return_value): Use
3115 regcache_cooked_write_part instead of regcache_cooked_write.
3117 * configure.host: Add x86_64-*-freebsd*.
3118 * configure.tgt: Add x86_64-*-freebsd*.
3119 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3120 * amd64fbsd-nat.c: New file.
3121 * amd64fbsd-tdep.c: New file.
3122 * config/i386/nm-fbsd64.h: New file.
3123 * config/i386/fbsd64.mh: New file.
3124 * config/i386/fbsd64.mt: New file.
3126 2003-07-11 Mark Kettenis <kettenis@gnu.org>
3128 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3129 `sc_regs_offset' and `sc_fpregs_offset'.
3130 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3131 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3132 (alpha_sigtramp_register_address): Rewrite to use new members of
3133 `struct gdbarch_tdep'.
3134 (alpha_gdbarch_init): Initialize new members of struct
3136 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3137 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3138 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3139 (alphafbsd_pc_in_sigtramp): Implement.
3140 (alphafbsd_sigtramp_offset): New function.
3141 (alphafbsd_sigcontext_addr): New function.
3142 (alphafbsd_init_abi): Initialize signal trampoline related members
3143 of `struct gdbarch_tdep'.
3144 (_initialize_alphafbsd_tdep): Add prototype.
3146 2003-07-11 Theodore A. Roth <troth@openavr.org>
3148 * Makefile.in (install-only): Quote sed expression when generating
3151 2003-07-11 Richard Henderson <rth@redhat.com>
3153 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3154 * dwarf2-frame.c: Include complaints.h.
3155 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3156 variable initialization; return NULL on error.
3157 (decode_frame_entry): New.
3159 2003-07-11 Andrew Cagney <cagney@redhat.com>
3161 * frame.h (frame_address_in_block): Delete declaration.
3162 * blockframe.c (frame_address_in_block): Delete function.
3163 (get_frame_block): Use get_frame_address_in_block.
3164 (block_innermost_frame): Ditto.
3165 * stack.c (print_frame, backtrace_command_1): Ditto.
3167 * frame.h (get_frame_address_in_block): Declare.
3168 (frame_unwind_address_in_block): Declare.
3169 * frame.c (frame_unwind_address_in_block): New function.
3170 (get_frame_address_in_block): New function.
3172 2003-07-10 Andrew Cagney <cagney@redhat.com>
3174 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3175 pre-default. Note: re-generate has no effect.
3177 2003-07-10 Andrew Cagney <cagney@redhat.com>
3179 * gdbarch.sh: When a variable, but not a function, compare against
3180 0. Fix problem in previous patch.
3181 * gdbarch.c: Re-generate.
3183 2003-07-10 Andrew Cagney <cagney@redhat.com>
3185 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3186 functions against NULL, not 0.
3187 * gdbarch.c: Re-generate.
3189 2003-07-10 Fred Fish <fnf@ninemoons.com>
3191 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3192 null string instead of a null pointer.
3193 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3195 2003-07-09 Michael Snyder <msnyder@redhat.com>
3197 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3199 2003-07-09 Mark Kettenis <kettenis@gnu.org>
3201 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3202 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3203 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3204 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3205 * x86-64-tdep.c: ... from here.
3207 2003-07-09 Andreas Schwab <schwab@suse.de>
3209 * m68k-tdep.h (enum struct_return): Define.
3210 (struct gdbarch_tdep): Add struct_return.
3211 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3212 bytes are padded to the right, not to the left. Pass struct value
3213 address in register %a1, not on stack.
3214 (m68k_use_struct_convention): New function.
3215 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3216 struct_return in tdep to pcc_struct_return.
3217 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3220 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3222 * somread.c (som_symfile_offsets): Fix compilation error.
3224 2003-07-09 Andrew Cagney <cagney@redhat.com>
3226 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3227 Add comments about the checks.
3229 2003-07-08 Andrew Cagney <cagney@redhat.com>
3231 * Makefile.in: Make dependency section headers consistent.
3232 (config_h): Move to $BUILD headers section.
3233 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3234 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3235 (ada-exp.tab.c): Move to YACC/LEX section.
3236 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3237 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3239 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3241 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3242 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3243 of strerror with safe_strerror, use ISO C function definitions,
3244 and replace instances of sprintf with snprintf.
3246 2003-07-07 Andrew Cagney <cagney@redhat.com>
3248 * frame.c (get_prev_frame): Enable check for identical frames.
3249 Update comments. Update error messages.
3251 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3253 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3255 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3257 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3258 sort_symtab_syms, no longer necessary.
3260 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3262 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3264 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3266 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3267 (mips_register_byte): Likewise.
3269 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3271 * Makefile.in (sparc_tdep_h): New.
3272 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3273 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3274 * sparc-linux-nat.c: Include "sparc-tdep.h".
3275 * sparc-nat.c: Likewise.
3276 * sparc-tdep.c: Likewise.
3277 * sparc64nbsd-nat.c: Likewise.
3278 * sparcnbsd-nat.c: Likewise.
3279 * sparcnbsd-tdep.c: Likewise.
3280 * sparc-tdep.h: New file.
3281 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3282 and sparc_npc_regnum.
3284 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3286 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3287 (mips_linux_cannot_store_register): List supported instead of
3288 unsupported registers.
3290 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3292 * disasm.c (dump_insns): Separate instructions from addresses.
3294 2003-07-07 Andreas Schwab <schwab@suse.de>
3296 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3298 * m68k-tdep.c (NUM_FREGS): Delete.
3299 (SIG_PC_FP_OFFSET): Delete.
3300 (TARGET_M68K): Delete.
3301 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3302 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3303 P_MOVEL_SP, P_MOVEML_SP): Define.
3304 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3306 (m68k_register_raw_size): Delete.
3307 (m68k_register_virtual_size): Delete.
3308 (m68k_register_type): Renamed from m68k_register_virtual_type and
3309 add gdbarch argument.
3310 (m68k_store_struct_return): Delete.
3311 (m68k_deprecated_extract_return_value): Delete.
3312 (m68k_deprecated_extract_struct_value_address): Delete.
3313 (m68k_frame_chain): Delete.
3314 (m68k_frame_saved_pc): Delete.
3315 (m68k_fix_call_dummy): Delete.
3316 (m68k_push_dummy_frame): Delete.
3317 (m68k_pop_frame): Delete.
3318 (m68k_extract_return_value): New function.
3319 (m68k_store_return_value): Rewrite using regcache.
3320 (m68k_extract_struct_value_address): Rewrite using regcache.
3321 (m68k_push_dummy_call): New function.
3322 (struct m68k_frame_cache): Define.
3323 (m68k_alloc_frame_cache): New function.
3324 (m68k_analyze_frame_setup): New function.
3325 (m68k_analyze_register_saves): New function.
3326 (m68k_analyze_prologue): New function.
3327 (m68k_skip_prologue): Rewrite using above functions.
3328 (m68k_unwind_pc): New function.
3329 (m68k_frame_cache): New function.
3330 (m68k_frame_this_id): New function.
3331 (m68k_frame_prev_register): New function.
3332 (m68k_frame_unwind): New variable.
3333 (m68k_frame_p): New function.
3334 (m68k_sigtramp_frame_cache): New function.
3335 (m68k_sigtramp_frame_this_id): New function.
3336 (m68k_sigtramp_frame_prev_register): New function.
3337 (m68k_sigtramp_frame_unwind): New variable.
3338 (m68k_sigtramp_frame_p): New function.
3339 (m68k_frame_base_address): New function.
3340 (m68k_frame_base): New function.
3341 (m68k_unwind_dummy_id): New function.
3342 (fill_gregset): Use regcache_collect.
3343 (fill_fpregset): Likewise.
3344 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3346 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3347 deprecated_init_frame_pc, deprecated_store_struct_return,
3348 deprecated_extract_return_value, deprecated_store_return_value,
3349 deprecated_frame_chain, deprecated_frame_saved_pc,
3350 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3351 deprecated_register_virtual_size,
3352 deprecated_max_register_raw_size,
3353 deprecated_max_register_virtual_size,
3354 deprecated_register_virtual_type, deprecated_register_size,
3355 deprecated_register_byte, deprecated_register_bytes,
3356 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3357 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3358 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3359 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3360 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3361 deprecated_push_dummy_frame, deprecated_pop_frame,
3362 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3363 only if SYSCALL_TRAP is defined. Set extract_return_value,
3364 store_return_value, extract_struct_value_address, register_type,
3365 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3367 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3368 M68K_MAX_REGISTER_SIZE): Define.
3369 (struct m68k_sigtramp_info): Define.
3370 (struct gdbarch_tdep): Add get_sigtramp_info.
3371 * m68klinux-nat.c (fetch_register): Use register_size instead of
3372 REGISTER_RAW_SIZE. Don't put assignment in if.
3373 (store_register): Likewise.
3374 (fetch_inferior_registers): Likewise.
3375 (store_inferior_registers): Likewise.
3376 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3377 (m68k_linux_frame_saved_pc): Delete.
3378 (m68k_linux_sigcontext_reg_offset,
3379 m68k_linux_ucontext_reg_offset): Define.
3380 (m68k_linux_get_sigtramp_info): New function.
3381 (m68k_linux_extract_return_value): Rewrite using regcache.
3382 (m68k_linux_store_return_value): Likewise.
3383 (m68k_linux_extract_struct_value_address): Likewise.
3384 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3385 Don't set deprecated_frame_saved_pc,
3386 deprecated_extract_return_value, deprecated_store_return_value,
3387 deprecated_extract_struct_value_address. Set
3388 extract_return_value, store_return_value,
3389 extract_struct_value_address.
3391 2003-07-07 Andrew Cagney <cagney@redhat.com>
3393 * expprint.c: Include "user-regs.h" instead of "frame.h".
3394 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3395 frame_map_regnum_to_name.
3396 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3397 (frame_map_name_to_regnum): Simplify, call
3398 user_reg_map_name_to_regnum.
3399 (frame_map_regnum_to_name): Simplify, call
3400 user_reg_map_regnum_to_name.
3401 (frame_register_unwind): Update.
3402 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3403 (_initialize_frame_reg): Call user_reg_add_builtin.
3404 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3405 (value_of_register): Use value_of_user_reg.
3406 * eval.c (evaluate_subexp_standard): Update.
3407 * parse.c (write_dollar_variable): Update.
3408 * d10v-tdep.c (d10v_print_registers_info): Update.
3409 * infcmd.c (registers_info): Update.
3410 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3411 (builtin_regs_h): Delete macro.
3412 (user_regs_h): Define.
3413 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3414 (builtin-regs.o): Delete target.
3415 (user-regs.o): Specify dependencies.
3416 (expprint.o): Update dependencies.
3417 (findvar.o): Update dependencies.
3418 (frame.o): Update dependencies.
3419 (std-regs.o): Update dependencies.
3421 2003-07-06 Christopher Faylor <cgf@redhat.com>
3423 * win32-nat.c (solib_symbols_add): Use one variable for all section
3424 address stuff. Pass variable rather than address of variable to
3425 safe_symbol_file_add.
3427 2003-07-06 Andreas Schwab <schwab@suse.de>
3429 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3431 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3433 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3435 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3437 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3439 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3441 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3442 * config/i386/nto.mh: New file.
3443 * config/i386/nm-nto.h: New file.
3444 * configure.host: Add i[3456]86-*-nto*.
3446 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3448 * remote-vx.c (vx_add_symbols): Fix compilation error.
3450 2003-07-03 Andrew Cagney <cagney@redhat.com>
3452 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3453 * gdbarch.h, gdbarch.c: Re-generate.
3454 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3455 (legacy_register_name): Declare.
3456 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3457 (REGISTER_NAME): Define.
3458 * sparc-tdep.c (legacy_register_name): New function.
3459 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3460 (REGISTER_NAME): Define.
3461 (hppa64_register_name): Declare.
3462 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3463 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3464 (hppa64_register_name): New function.
3465 (hppa_register_name): New function.
3466 * arch-utils.c (legacy_register_name): Delete.
3467 * arch-utils.h (legacy_register_name): Delete.
3469 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3471 * cli/cli-interp.c (cli_interpreter_resume): Update the
3472 cli_uiout's stream to gdb_stdout.
3474 2003-07-03 Andrew Cagney <cagney@redhat.com>
3476 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3478 * gdbarch.h, gdbarch.c: Re-generate.
3479 * regcache.c (init_regcache_descr): Use legacy code when either
3480 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3482 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3484 * NEWS: Move "set logging" entry into GDB 6.0 section.
3486 2003-07-02 Jim Blandy <jimb@redhat.com>
3488 * s390-tdep.c (struct frame_extra_info): new member:
3489 'stack_bought_valid'.
3490 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3491 initialize fextra_info->stack_bought.
3492 (s390_frameless_function_invocation): Don't trust the value of
3493 fextra_info_ptr->stack_bought unless
3494 fextra_info->stack_bought_valid is set.
3496 New S390 prologue analyzer.
3497 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3498 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3499 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3500 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3501 compute_x_addr, s390_on_stack, s390_store,
3502 s390_get_signal_frame_info): New functions.
3503 (S390_NUM_SPILL_SLOTS): New macro.
3504 (s390_get_frame_info): Rewritten.
3505 (is_arg_reg): Deleted.
3507 Break out the decoding of S/390 instructions into separate
3508 functions, to make it more legible, and easier to check
3510 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3511 is_rx, is_rxe): New functions.
3512 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3513 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3514 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3515 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3516 enums for opcode values. (Is this an improvement?)
3518 2003-07-02 Andrew Cagney <cagney@redhat.com>
3520 * i386-tdep.c: Revert change committed as part of trad-frame code
3523 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3525 * breakpoint.c (insert_catchpoint): Make static.
3527 2003-07-02 Andreas Schwab <schwab@suse.de>
3529 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3530 former ia64_push_arguments and ia64_push_return_address, and use
3531 regcache functions instead of read/write_register.
3532 (ia64_gdbarch_init): Set push_dummy_call instead of
3533 deprecated_push_arguments and deprecated_push_return_address.
3535 2003-07-01 Andreas Jaeger <aj@suse.de>
3537 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3539 Set %rax only to number of SSE registers used.
3541 2003-07-01 Andrew Cagney <cagney@redhat.com>
3543 * trad-frame.h: Update comments, a -1 .addr is reserved.
3544 (trad_frame_value_p, trad_frame_addr_p): Declare.
3545 (trad_frame_reg_p): Declare.
3546 (trad_frame_set_value): Rename trad_frame_register_value.
3547 (trad_frame_set_unknown): Declare.
3548 * trad-frame.c (trad_frame_realreg_p): New function.
3549 (trad_frame_addr_p, trad_frame_value_p): New function.
3550 (trad_frame_set_unknown): New function.
3551 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3552 (trad_frame_prev_register): Use trad_frame_realreg_p,
3553 trad_frame_addr_p and trad_frame_value_p.
3554 (trad_frame_set_value): Rename trad_frame_register_value.
3555 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3556 and trad_frame_set_value.
3558 2003-06-30 Jim Blandy <jimb@redhat.com>
3560 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3561 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3562 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3563 for 16 registers, and then 32 more bytes.
3564 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3566 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3567 Move up in the file, since it's now used by is_simple_arg.
3568 (is_simple_arg): Don't assume registers are four bytes long.
3569 Exclude all double arguments. Extended floats are not simple
3571 (is_power_of_two): New function.
3572 (pass_by_copy_ref): Call is_power_of_two, and check that the
3573 length fits in a register, rather than listing all the acceptable
3574 sizes. Extended floats are not passed by reference.
3575 (s390_push_arguments): Don't assume registers are four bytes long.
3576 Reserve an argument register to point to the buffer for structures
3577 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3578 S390_STACK_FRAME_OVERHEAD.
3580 2003-06-30 Andreas Schwab <schwab@suse.de>
3582 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3583 format error message.
3585 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3587 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3589 2003-06-30 David Carlton <carlton@kealia.com>
3591 Band-aid for PR c++/1245.
3592 * Makefile.in (cp-support.o): Depend on complaints_h.
3593 * cp-support.c: Include complaints.h. Add declaration for
3594 find_last_component.
3595 (cp_find_first_component): Separate code into
3596 cp_find_first_component_aux.
3597 (cp_find_first_component_aux): Call demangled_name_complaint.
3598 (demangled_name_complaint): New.
3600 2003-06-30 Andrew Cagney <cagney@redhat.com>
3602 * remote.c (remote_write_bytes): Explicitly compute and then use
3603 the payload size. Update comments to reflect. Fixes problem of
3604 GDB not sending small packets as found by Fred Fish.
3606 2003-06-30 Andrew Cagney <cagney@redhat.com>
3608 * remote.c (remote_async_wait): Fix -Wformat problem.
3610 2003-06-29 Andrew Cagney <cagney@redhat.com>
3612 * remote.c (remote_wait): Call error, and not warning, when the
3614 (remote_async_wait): Ditto.
3616 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3618 * sparc-tdep.c (sparc_y_regnum): Make external again.
3620 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3622 * cli/cli-logging.c (pop_output_files): Add void to function
3625 2003-06-29 Andrew Cagney <cagney@redhat.com>
3627 * frame.c (frame_register_unwind): Use unsigned char when dumping
3628 the buffer contents.
3630 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3632 * cli/cli-logging.c: New file.
3633 * cli-out.c (struct ui_out_data): Add original_stream.
3634 (cli_redirect): New function.
3635 (cli_ui_out_impl): Add cli_redirect.
3636 (cli_out_new): Initialize original_stream.
3637 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3638 (uo_redirect, ui_out_redirect): New.
3639 * ui-out.h (struct ui_out_impl): Add redirect member.
3640 (redirect_ftype): New.
3641 (ui_out_redirect): Add prototype.
3642 * Makefile.in: Add rules for cli-logging.c.
3643 * NEWS: Mention "set logging".
3645 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3647 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3649 2003-06-27 Andrew Cagney <cagney@redhat.com>
3651 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3652 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3653 * avr-tdep.c (avr_call_dummy_address): Delete function.
3654 (avr_gdbarch_init): Do not set call_dummy_address.
3656 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3658 * symfile.c (syms_from_objfile): Move variables to inner block.
3659 Move the checks for the non-mainline case a bit earlier to avoid
3660 doing some useless computations.
3662 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3664 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3666 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3668 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3671 2003-06-26 Michael Chastain <mec@shout.net>
3673 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3674 gdb/testsuite/gdb.c++/pr-1210.exp.
3676 2003-06-26 Andrew Cagney <cagney@redhat.com>
3678 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3679 altivec_expression.h and altivec_registers.h.
3681 2003-06-26 Andrew Cagney <cagney@redhat.com>
3683 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3684 info->mach when MIPS16. Patch suggested by Fred Fish.
3686 2003-06-26 Andrew Cagney <cagney@redhat.com>
3688 * utils.c (internal_vproblem): Print the problem to a reason
3689 buffer and then pass to query. Make the msg variable more local.
3691 2003-06-26 Andrew Cagney <cagney@redhat.com>
3693 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3694 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3695 * gdbarch.h, gdbarch.c: Re-generate.
3696 * frame-base.c (default_frame_args_address): Update. Use
3697 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3699 (default_frame_locals_address): Ditto for
3700 DEPRECATED_FRAME_LOCALS_ADDRESS.
3701 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3702 (vax_frame_num_args): Update.
3703 (vax_gdbarch_init): Update.
3704 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3705 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3706 * mcore-tdep.c (mcore_gdbarch_init): Update.
3707 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3708 * ia64-tdep.c (ia64_gdbarch_init): Update.
3709 * symtab.h (address_class): Update comments.
3710 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3711 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3712 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3713 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3714 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3715 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3716 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3717 * alpha-mdebug-tdep.c: Update.
3718 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3720 2003-06-26 Andreas Jaeger <aj@suse.de>
3722 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3723 of SSE registers so that varargs functions work. Rework handling
3724 of passing arguments on the stack.
3725 (x86_64_store_return_value): Return double and float values in SSE
3728 2003-06-24 Michael Chastain <mec@shout.net>
3730 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3731 the "constructor breakpoints ignored" bug.
3733 2003-06-25 David Carlton <carlton@kealia.com>
3735 * MAINTAINERS: Update e-mail address.
3737 2003-06-24 Jim Blandy <jimb@redhat.com>
3739 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3741 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3743 (ppc_linux_init_abi): Register it as the
3744 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3746 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3747 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3750 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3751 (ppc64_standard_linkage_target): Use it.
3753 2003-06-23 Andrew Cagney <cagney@redhat.com>
3755 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3756 for 0 "int0" and 4 "int32" sized registers.
3757 * gdbtypes.c (builtin_type_int0): Define.
3758 (build_gdbtypes): Initialize builtin_type_int0.
3759 * gdbtypes.h (builtin_type_int0): Declare.
3761 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3763 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3764 as characters are unsigned.
3766 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3769 * dwarfread.c (struct_type): Skip static fields without crashing.
3771 2003-06-22 Andrew Cagney <cagney@redhat.com>
3773 GDB 6.0 branch created.
3775 * PROBLEMS: Update. Empty.
3778 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3780 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3781 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3783 2003-06-22 Andrew Cagney <cagney@redhat.com>
3785 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3786 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3789 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3791 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3794 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3796 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3797 argument of val_print.
3798 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3799 to the address argument of baseclass_offset or target_read_memory.
3800 Do add it to the argument of cp_print_value_fields.
3802 2003-06-21 Andrew Cagney <cagney@redhat.com>
3804 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3805 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3806 instead of 0..NUM_REGS.
3807 (mips_register_reggroup_p): New function.
3808 (mips_pseudo_register_write): New function.
3809 (mips_pseudo_register_read): New function.
3810 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3811 based on the register's type.
3812 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3814 (mips_get_saved_register): Simplify. Assert that REGNO is a
3816 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3817 (mips_register_type): Replace mips_register_virtual_type. Map
3818 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3820 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3821 that the register is cooked / virtual.
3822 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3823 Only get the extra info when needed.
3824 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3825 (mips32_heuristic_proc_desc): Fetch the cooked register.
3826 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3827 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3828 (mips_print_register): Use gdbarch_register_type, instead of
3829 REGISTER_VIRTUAL_TYPE.
3830 (print_gp_register_row): Use gdbarch_register_type, instead of
3831 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3832 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3833 Print the pseudo / cooked registers.
3834 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3835 Print the pseudo / cooked registers.
3836 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3837 REG_NUM is pseudo / cooked.
3838 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3839 (mips_n32n64_xfer_return_value): Ditto.
3840 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3841 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3842 (mips_register_sim_regno): New function.
3843 (mips_gdbarch_init): Set deprecated_register_byte,
3844 register_group_p, pseudo_register_write, pseudo_register_read,
3845 register_sim_regno, and num_pseudo_regs. Set register_type,
3846 instead of register_virtual_type.
3847 * Makefile.in (mips-tdep.o): Update dependencies.
3848 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3849 REGISTER_VIRTUAL_TYPE.
3850 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3851 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3852 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3853 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3854 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3856 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3858 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3859 * cli/cli-cmds.c: Include "gdb_vfork.h".
3860 (shell_escape): Use vfork.
3862 2003-06-21 Andrew Cagney <cagney@redhat.com>
3864 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3865 32 bit floating-point register saves.
3867 * frame.h (deprecated_unwind_get_saved_register): Delete.
3868 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3869 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3870 and deprecated_get_next_frame_hack instead of
3871 deprecated_unwind_get_saved_register.
3873 * mips-tdep.c (mips_dump_tdep): Do not print
3874 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3876 * frame.c (get_frame_register): New function.
3877 (frame_unwind_register_signed): New function.
3878 (get_frame_register_signed): New function.
3879 (frame_unwind_register_unsigned): New function.
3880 (get_frame_register_unsigned): New function.
3881 * frame.h: Add comments on naming schema.
3882 (get_frame_register, frame_unwind_register_signed): Declare.
3883 (get_frame_register_signed, get_frame_register_signed): Declare.
3884 (frame_unwind_register_unsigned): Declare.
3885 (get_frame_register_unsigned): Declare.
3887 2003-06-20 Theodore A. Roth <troth@openavr.org>
3889 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3891 2003-06-20 Theodore A. Roth <troth@openavr.org>
3893 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3894 (avr_read_sp): Ditto.
3896 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3898 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3899 * config/arm/nm-linux.h: Likewise.
3900 * config/arm/tm-linux.h: Likewise.
3901 * config/ia64/nm-linux.h: Likewise.
3902 * config/ia64/tm-ia64.h: Likewise.
3903 * config/s390/tm-linux.h: Likewise.
3904 * config/s390/tm-s390.h: Likewise.
3905 * s390-nat.c: Likewise.
3906 * s390-tdep.c: Likewise.
3908 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3909 * config/ia64/linux.mt: Likewise.
3910 * config/m68k/linux.mh: Likewise.
3911 * config/mips/linux.mt: Likewise.
3912 * config/powerpc/linux.mh: Likewise.
3913 * config/sh/linux.mt: Likewise.
3915 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3917 * solib.c (solib_open): Change tests for whether to search
3918 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3921 2003-06-19 Theodore A. Roth <troth@openavr.org>
3923 * avr-tdep.c (avr_frame_address): Delete function.
3924 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3925 set_gdbarch_frame_args_address.
3927 2003-06-19 Andrew Cagney <cagney@redhat.com>
3929 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3930 (REGISTER_CONVERT_FROM_TYPE): Delete.
3931 (mips_register_convert_to_type): Delete declaration.
3932 (mips_register_convert_from_type): Delete declaration.
3933 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3936 2003-06-19 Michael Snyder <msnyder@redhat.com>
3938 * linux-nat.h: New file.
3939 * linux-nat.c: Include linux-nat.h.
3940 * lin-lwp.c: Include linux-nat.h.
3941 Move struct lwp_info def to linux-nat.h.
3942 * linux-proc.c: Include linux-nat.h.
3943 (linux_make_note_section): Iterate over lwps instead of threads.
3944 (linux_do_thread_registers): Use lwp instead of merged pid.
3945 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3946 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3947 Add dependency on linux_nat_h.
3949 2003-06-19 Theodore A. Roth <troth@openavr.org>
3951 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3953 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3955 * varobj.c (get_type, get_target_type): Use check_typedef.
3957 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3959 * breakpoint.c (insert_catchpoint): Call internal_error.
3961 2003-06-19 Theodore A. Roth <troth@openavr.org>
3963 * avr-tdep.c (avr_push_dummy_code): Delete function.
3964 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3966 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3968 * arch-utils.c (default_prepare_to_proceed): Remove.
3969 (generic_prepare_to_proceed): Remove.
3970 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3971 (generic_prepare_to_proceed): Remove prototype.
3972 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3973 * gdbarch.c: Regenerate.
3974 * gdbarch.h: Regenerate.
3975 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3976 * hppah-nat.c (hppa_switched_threads): Remove.
3977 * infrun.c (prepare_to_proceed): New static function, copied from
3978 generic_prepare_to_proceed. Remove select_it argument.
3979 (proceed): Call prepare_to_proceed.
3980 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3982 (ptrace_wait): Don't set the removed variables.
3983 (hppa_switched_threads): Remove.
3984 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3985 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3986 (lin_lwp_prepare_to_proceed): Remove prototype.
3987 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3988 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3990 2003-06-18 Theodore A. Roth <troth@openavr.org>
3992 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3994 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3995 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3996 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3997 (AVR_PROLOGUE_*): Enumerate prologue types.
3998 (struct frame_extra_info): Remove.
3999 (struct avr_unwind_cache): Define.
4000 (avr_write_sp): Delete function.
4001 (avr_read_fp): Ditto.
4002 (avr_init_extra_frame_info): Ditto.
4003 (avr_pop_frame): Ditto.
4004 (avr_frame_saved_pc): Ditto.
4005 (avr_saved_pc_after_call): Ditto.
4006 (avr_push_return_address): Ditto.
4007 (avr_frame_chain): Ditto.
4008 (avr_store_struct_return): Ditto.
4009 (avr_push_arguments): Ditto.
4010 (avr_scan_prologue): Update comments. Changed to set up the info for
4011 cache unwinding. Now returns end of prologue PC.
4012 (avr_skip_prologue): Better handling of functions lacking a prologue
4013 by using avr_scan_prologue.
4014 (avr_scan_arg_moves): New function.
4015 (avr_saved_regs_unwinder): Ditto.
4016 (avr_frame_unwind_cache): Ditto.
4017 (avr_unwind_pc): Ditto.
4018 (avr_frame_this_id): Ditto.
4019 (avr_frame_prev_register): Ditto.
4020 (avr_frame_p): Ditto.
4021 (avr_frame_base_address ): Ditto.
4022 (avr_unwind_dummy_id): Ditto.
4023 (avr_push_dummy_code): Ditto.
4024 (push_stack_item): Ditto.
4025 (pop_stack_item): Ditto.
4026 (avr_push_dummy_call): Ditto.
4027 (struct stack_item): Define.
4028 (avr_frame_unwind): Declare structure.
4029 (avr_frame_base): Ditto.
4030 (avr_gdbarch_init): Remove calls to
4031 set_gdbarch_deprecated_init_frame_pc,
4032 set_gdbarch_deprecated_target_read_fp,
4033 set_gdbarch_deprecated_dummy_write_sp,
4034 set_gdbarch_deprecated_fp_regnum,
4035 set_gdbarch_deprecated_push_arguments,
4036 set_gdbarch_deprecated_push_return_address,
4037 set_gdbarch_deprecated_pop_frame,
4038 set_gdbarch_deprecated_store_struct_return,
4039 set_gdbarch_deprecated_frame_init_saved_regs,
4040 set_gdbarch_deprecated_init_extra_frame_info,
4041 set_gdbarch_deprecated_frame_chain,
4042 set_gdbarch_deprecated_frame_saved_pc,
4043 set_gdbarch_deprecated_saved_pc_after_call.
4044 Add calls to set_gdbarch_push_dummy_call,
4045 set_gdbarch_push_dummy_code,
4046 frame_unwind_append_predicate,
4047 frame_base_set_default,
4048 set_gdbarch_unwind_dummy_id,
4049 set_gdbarch_unwind_pc.
4052 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
4054 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4055 registers for H8/300S.
4056 (h8300_print_registers_info): Ditto.
4057 (h8300_gdbarch_init): Accommodate register count for H8/300S.
4059 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
4061 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4062 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4063 (lin_lwp_wait): Likewise. Update comments.
4064 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4065 (pull_pid_from_list, linux_record_stopped_pid): New.
4067 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4069 * ada-lang.c (scan_discrim_bound): Name first argument.
4070 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4071 declared by ALL_BLOCK_SYMBOLS.
4073 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4075 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4076 ("regcache.h"): Include it.
4077 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4079 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4081 * NEWS: Mention gdbserver detach change and "disconnect" command.
4082 * infcmd.c (disconnect_command): New function.
4083 (_initialize_infcmd): Add ``disconnect'' command.
4084 * remote.c (remote_async_detach): Delete.
4085 (remote_detach): Merge remote_async_detach.
4086 (remote_disconnect): New.
4087 (init_remote_ops): Set to_disconnect.
4088 (init_remote_cisco_ops): Likewise.
4089 (init_remote_async_ops): Likewise. Use remote_detach.
4090 * target.c (cleanup_target): Default to_disconnect.
4091 (update_current_target): Inherit to_disconnect.
4092 (target_disconnect, debug_to_disconnect): New functions.
4093 (setup_target_debug): Set to_disconnect.
4094 * target.h (struct target_ops): Add to_disconnect.
4095 (target_disconnect): Add prototype.
4097 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4099 * breakpoint.c (insert_catchpoint): New function.
4100 (insert_breakpoints): Use catch_exceptions to call
4101 insert_catchpoint. Disable catchpoints if they fail to insert.
4103 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4105 * symfile.c (reread_symbols): Clear sym_private.
4107 2003-06-17 Andrew Cagney <cagney@redhat.com>
4109 * trad-frame.h (struct frame_info): Add opaque declaration.
4110 * remote-fileio.h (struct cmd_list_element): Add opaque
4112 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4115 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4117 * remote.c (remote_prepare_to_store): Replace call to
4118 deprecated_read_register_bytes with multiple regcache_raw_read
4121 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4123 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4124 (nto_find_and_open_solib): Likewise.
4125 (nto_init_solib_absolute_prefix): Likewise.
4126 (_initialize_nto_tdep): Fix indentation.
4128 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4130 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4132 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4134 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4136 2003-06-17 Jim Blandy <jimb@redhat.com>
4138 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4140 2003-06-16 Theodore A. Roth <troth@openavr.org>
4142 * avr-tdep.c (avr_extract_return_value): New function.
4143 (avr_gdbarch_init): Set extract_return_value method.
4145 2003-06-16 Andrew Cagney <cagney@redhat.com>
4147 * frame.h (deprecated_get_next_frame_hack): Declare.
4148 * frame.c (legacy_saved_regs_prev_register): Only require
4149 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4150 there are always saved regs.
4151 (deprecated_generic_get_saved_register): Do not require
4152 DEPRECATED_FRAME_INIT_SAVED_REGS.
4153 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4154 use frame ID unwind instead.
4155 (deprecated_get_next_frame_hack): New function.
4157 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4159 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4160 (h8300_push_dummy_call): ...this function. Some minor optimization.
4161 (h8300_push_return_address): Remove.
4162 (h8300_gdbarch_init): Remove calls to
4163 set_gdbarch_deprecated_dummy_write_sp,
4164 set_gdbarch_deprecated_push_arguments and
4165 set_gdbarch_deprecated_push_return_address.
4166 Add call to set_gdbarch_push_dummy_call.
4168 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4170 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4171 (E_PSEUDO_EXR_REGNUM): Ditto.
4172 (h8300_is_argument_spill): Check for instructions moving argument
4173 registers into safe registers.
4174 (h8300_skip_prologue): Check for stm instruction to push registers
4175 used for register variables onto stack.
4176 (gdb_print_insn_h8300): Remove.
4177 (h8300_examine_prologue): Add a comment.
4178 (h8300_register_name): Take pseudo registers into account.
4179 (h8300s_register_name): Ditto.
4180 (h8300sx_register_name): Ditto.
4181 (h8300_print_register): Ditto.
4182 (h8300_print_registers_info): Define "nice" printing order.
4183 (h8300_saved_pc_after_call): Take pseudo registers into account.
4184 (h8300_register_type): Ditto. Return type used for remote connection
4185 when requesting real CCR or EXR register, return actual type when
4186 requesting pseudo CCR or EXR.
4187 (h8300_pseudo_register_read): New function.
4188 (h8300_pseudo_register_write): Ditto.
4189 (h8300_dbg_reg_to_regnum): Ditto.
4190 (h8300s_dbg_reg_to_regnum): Ditto.
4191 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4192 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4193 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4194 set_gdbarch_print_insn architecture dependent.
4195 Call set_gdbarch_pseudo_register_read and
4196 set_gdbarch_pseudo_register_write.
4197 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4199 2003-06-16 Andrew Cagney <cagney@redhat.com>
4201 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4202 * gdbarch.h, gdbarch.c: Re-generate.
4203 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4204 * s390-tdep.c (s390_gdbarch_init): Update.
4205 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4206 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4207 * mips-tdep.c (mips_gdbarch_init): Update.
4208 * mcore-tdep.c (mcore_gdbarch_init): Update.
4209 * cris-tdep.c (cris_gdbarch_init): Update.
4210 * infcall.c (call_function_by_hand): Update.
4211 * ia64-tdep.c (ia64_push_arguments): Update comment.
4212 * frame.c (legacy_get_prev_frame): Do not assume
4213 SAVE_DUMMY_FRAME_TOS_P.
4214 * dummy-frame.c (find_dummy_frame): Update comment.
4216 2003-06-16 Andrew Cagney <cagney@redhat.com>
4218 * regcache.c (do_cooked_read): Do not use register_valid_p.
4220 2003-06-15 Theodore A. Roth <troth@openavr.org>
4222 * avr-tdep.c (avr_register_type): Remove a blank line.
4223 (avr_scan_prologue): Correct some comments.
4225 2003-06-15 Theodore A. Roth <troth@openavr.org>
4227 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4229 Properly scan prologues generated by gcc with the -mcall-prologues
4231 Add code to scan -mcall-prologues for mega devices.
4233 2003-06-15 Theodore A. Roth <troth@openavr.org>
4235 * avr-tdep.c (avr_register_byte): Delete function.
4236 (avr_register_raw_size): Delete function.
4237 (avr_register_virtual_size): Delete function.
4238 (avr_register_virtual_type): Delete function.
4239 (avr_register_type): New function.
4240 (avr_address_to_pointer): Remove unused code.
4241 (avr_read_fp): Need to read FP as two separate bytes due to change to
4242 avr_register_type() usage.
4243 (avr_gdbarch_init): Don't set deprecated_register_size.
4244 Don't set deprecated_register_bytes.
4245 Don't set deprecated_register_byte.
4246 Don't set deprecated_register_raw_size.
4247 Don't set deprecated_max_register_raw_size.
4248 Don't set deprecated_register_virtual_size.
4249 Don't set deprecated_max_register_virtual_size.
4250 Don't set deprecated_register_virtual_type.
4251 Set register_type method.
4253 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4255 * Makefile.in (linux-nat.o): Add rule.
4256 * linux-nat.c: New file.
4257 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4258 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4259 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4260 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4261 * config/arm/linux.mh (NATDEPFILES): Likewise.
4262 * config/i386/linux.mh (NATDEPFILES): Likewise.
4263 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4264 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4265 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4266 * config/mips/linux.mh (NATDEPFILES): Likewise.
4267 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4268 * config/s390/s390.mh (NATDEPFILES): Likewise.
4269 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4271 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4273 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4274 replace out-of-date comment.
4276 2003-06-15 Andrew Cagney <cagney@redhat.com>
4278 * rdi-share/host.h (Fail): Change to a varargs function.
4279 * remote-rdi.c (Fail): Update.
4281 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4283 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4284 (i386_convert_register_p, i386_register_to_value,
4285 i386_register_from_value): Handle types longer than 8 bytes.
4287 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4289 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4290 Move floating-point code to new function in i387-tdep.c.
4291 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4292 New functions containing code moved here from i386-tdep.c.
4293 * i387-tdep.h: Add opaque declaration for `struct type'.
4294 (i387_register_to_value, i387_value_to_register): New prototypes.
4295 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4296 (x86_64_init_abi): Set convert_register_p, register_to_value and
4297 value_to_register here.
4299 2003-06-14 Andrew Cagney <cagney@redhat.com>
4301 * mips-tdep.c (mips_register_to_value): Make static.
4302 (mips_value_to_register): Make static.
4303 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4304 * ia64-tdep.c (ia64_register_raw_size): Make static.
4305 (ia64_register_virtual_size): Make static.
4306 (ia64_register_byte): Make static.
4307 * i387-tdep.c: Include "i387-tdep.h".
4308 (print_387_control_word): Delete function.
4309 (print_387_status_word): Delete function.
4310 (print_387_status_bits): Delete function.
4311 (print_387_control_bits): Delete function.
4312 * Makefile.in (i387-tdep.o): Update dependencies.
4313 * rdi-share/host.h (Fail): Declare.
4314 * remote-rdi.c (Fail): Update to match declaration.
4316 2003-06-14 Andrew Cagney <cagney@redhat.com>
4318 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4319 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4320 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4321 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4322 * README: Delete reference to remote-array.
4323 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4324 (remote-array.o): Delete target.
4325 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4326 * remote-array.c: Delete file.
4328 2003-06-14 Andrew Cagney <cagney@redhat.com>
4329 Mark Kettenis <kettenis@gnu.org>
4331 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4332 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4333 parameter with "frame".
4334 * gdbarch.h, gdbarch.c: Re-generate.
4335 * frame.h (put_frame_register): Declare.
4336 * frame.c (put_frame_register): New function.
4337 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4338 (legacy_register_to_value): Rewrite, use "frame" to get the
4340 (legacy_value_to_register): Rewrite, use "frame" to find the
4341 register's location before storing.
4342 * arch-utils.h (legacy_convert_register_p): Update.
4343 (legacy_register_to_value, legacy_value_to_register): Update.
4344 * findvar.c (value_from_register): Rewrite, eliminate use of
4345 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4346 "frame" to REGISTER_TO_VALUE.
4347 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4348 lval_reg_frame_relative + lval_register branch of the switch. Do
4349 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4350 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4351 I386_EDI_REGNUM): New defines.
4352 (i386_next_regnum, i386_convert_register_p,
4353 i386_register_to_value, i386_value_to_register): New functions.
4354 (i386_register_convertible, i386_register_convert_to_virtual,
4355 i386_convert_to_raw): Remove functions.
4356 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4357 value_to_register instead of register_convertible,
4358 register_convert_to_virtual and register_convert_to_raw.
4359 * mips-tdep.c (mips_convert_register_p): New function.
4360 (mips_value_to_register): Replace mips_register_convert_from_type.
4361 (mips_register_to_value): Replace mips_register_convert_to_type.
4362 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4364 * alpha-tdep.c (alpha_convert_register_p): Update.
4365 (alpha_value_to_register): Update, store the register.
4366 (alpha_register_to_value): Update, fetch the register.
4368 2003-06-14 Theodore A. Roth <troth@openavr.org>
4370 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4371 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4372 Don't set deprecated_call_dummy_words.
4373 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4374 Don't set remote_translate_xfer_address.
4375 (avr_io_reg_read_command): Remove commented out debug printf.
4378 2003-06-14 Theodore A. Roth <troth@openavr.org>
4380 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4381 causes gdb to seg fault.
4383 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4385 * sparc-nat.c (fetch_inferior_registers): Correct
4386 a reference to "registers".
4388 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4390 * Makefile.in (exc_request_U_h): Define
4391 (exc_request_S_h): Likewise.
4392 (msg_reply_S_h): Likewise.
4393 (msg_U_h): Likewise.
4394 (notify_S_h): Likewise.
4395 (process_reply_S_h): Likewise.
4396 (gnu-nat.o): Depend on gdb_obstack_h
4397 * gnu-nat.c: Include "gdb_obstack.h".
4399 2003-06-13 Andrew Cagney <cagney@redhat.com>
4401 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4402 * gdbarch.h, gdbarch.c: Re-generate.
4404 2003-06-13 Andrew Cagney <cagney@redhat.com>
4406 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4407 when deprecated REGISTER macros can be deleted.
4408 * gdbarch.h, gdbarch.c: Re-generate.
4410 2003-06-13 Jim Blandy <jimb@redhat.com>
4412 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4413 Linux entry point symbols for _dl_debug_state, too.
4415 2003-06-13 Andrew Cagney <cagney@redhat.com>
4417 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4418 available, do not use the FP register, and always save the TOS.
4419 * dummy-frame.c (dummy_frame_this_id): Do not assert
4420 SAVE_DUMMY_FRAME_TOS.
4421 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4422 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4423 (i386_push_dummy_call): Add 8 to the returned SP.
4424 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4425 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4426 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4427 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4428 (x86_64_push_dummy_call): Return "sp + 16".
4429 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4430 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4431 save_dummy_frame_tos.
4433 2003-06-13 Jim Blandy <jimb@redhat.com>
4435 * frv-tdep.c (frv_use_struct_convention): Delete static
4436 declaration for function deleted in my change of 2003-06-12.
4438 2003-06-13 Theodore A. Roth <troth@openavr.org>
4440 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4441 (avr_pointer_to_address): Shift code addrs left 1 bit.
4442 (avr_convert_from_func_ptr_addr): Delete function since operation is
4443 better handled by avr_address_to_pointer and avr_pointer_to_address.
4444 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4446 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4448 From Kelley Cook <kelleycook@wideopenwest.com>:
4449 * configure.host: Accept i[34567]86 variants.
4450 * configure.tgt: Likewise.
4451 * nlm/configure.in: Likewise.
4452 * nlm/configure: Regenerated.
4454 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4456 * arm-tdep.c (solib-svr4.h): Dont' include it.
4457 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4458 * arm-linux-tdep.c: ... here. Make static.
4459 (arm_linux_init_abi): Register it.
4460 (solib-svr4.h): Include it.
4461 * Makefile.in: Update dependencies.
4462 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4463 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4465 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4467 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4468 indicate registers used for return values.
4469 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4470 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4472 (h8300_init_extra_frame_info): Ditto.
4473 (h8300_frame_locals_address): Removed.
4474 (h8300_frame_args_address): Removed.
4475 (h8300_extract_return_value): Use new regcache structure. Only care
4477 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4478 (h8300_store_return_value): Use new regcache structure. Only care
4480 (h8300h_store_return_value): Same function for 32 bit CPUs.
4481 (h8300_store_struct_return): Removed.
4482 (h8300_extract_struct_value_address): Use new regcache structure.
4483 (h8300h_extract_struct_value_address): Removed.
4484 (h8300_push_dummy_code): New function.
4485 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4486 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4487 set_gdbarch_store_return_value architecture dependent.
4488 Call set_gdbarch_push_dummy_code and
4489 set_gdbarch_extract_struct_value_address.
4490 Remove calls to set_gdbarch_frame_args_address,
4491 set_gdbarch_frame_locals_address,
4492 set_gdbarch_deprecated_store_struct_return,
4493 set_gdbarch_deprecated_extract_return_value,
4494 set_gdbarch_deprecated_extract_struct_value_address,
4495 set_gdbarch_deprecated_call_dummy_words and
4496 set_gdbarch_deprecated_sizeof_call_dummy_words.
4498 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4500 * h8300-tdep.c (h8300_register_byte): Remove.
4501 (h8300h_register_byte): Remove.
4502 (h8300_register_virtual_type): Remove. Substitute by...
4503 (h8300_register_type): New function.
4504 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4505 (h8300h_extract_struct_value_address): Ditto.
4506 (h8300_gdbarch_init): Drop calls to
4507 set_gdbarch_deprecated_register_byte and
4508 set_gdbarch_deprecated_register_virtual_type.
4509 Add call to set_gdbarch_register_type.
4511 2003-06-13 Andrew Cagney <cagney@redhat.com>
4513 * gdbarch.sh: Update comments on registers.
4514 (deprecated_register_byte): Rename register_byte.
4515 (deprecated_register_raw_size): Rename register_raw_size.
4516 (deprecated_register_virtual_size): Rename register_virtual_size.
4517 (deprecated_register_virtual_type): Rename register_virtual_type.
4518 * gdbarch.h, gdbarch.c: Re-generate.
4519 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4520 * vax-tdep.c (vax_gdbarch_init): Update.
4521 * v850-tdep.c (v850_gdbarch_init): Update.
4522 * sparc-tdep.c (sparc_gdbarch_init): Update.
4523 * sh-tdep.c (sh_gdbarch_init): Update.
4524 * s390-tdep.c (s390_gdbarch_init): Update.
4525 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4526 * ns32k-tdep.c: Update.
4527 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4528 * mips-tdep.c (mips_gdbarch_init): Update.
4529 * mcore-tdep.c (mcore_gdbarch_init): Update.
4530 * m68k-tdep.c (m68k_gdbarch_init): Update.
4531 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4532 * ia64-tdep.c (ia64_gdbarch_init): Update.
4533 * hppa-tdep.c (hppa_gdbarch_init): Update.
4534 * h8300-tdep.c (h8300_gdbarch_init): Update.
4535 * frv-tdep.c (frv_gdbarch_init): Update.
4536 * cris-tdep.c (cris_gdbarch_init): Update.
4537 * avr-tdep.c (avr_gdbarch_init): Update.
4538 * alpha-tdep.c (alpha_gdbarch_init): Update.
4539 * arm-tdep.c (arm_gdbarch_init): Update.
4541 2003-06-13 Andrew Cagney <cagney@redhat.com>
4543 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4544 mips_o32_use_struct_convention with always_use_struct_convention.
4546 2003-06-12 David Carlton <carlton@kealia.com>
4548 * cp-namespace.c (cp_set_block_scope): Comment out
4549 processing_has_namespace_info branch.
4551 2003-06-12 Jim Blandy <jimb@redhat.com>
4553 Recognize and skip 64-bit PowerPC Linux linkage functions.
4554 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4555 insn_pattern, insns_match_pattern, d_field, ds_field): New
4556 functions, macros, and types for working with PPC instructions.
4557 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4558 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4559 ppc64_skip_trampoline_code): New functions, variables, and macros
4560 for recognizing and skipping linkage functions.
4561 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4562 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4564 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4565 register offsets for both the 32- and 64-bit interfaces.
4567 Actually finish the job started by my change of 2003-05-29.
4568 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4569 other #definition of this.
4570 (ppc_linux_skip_trampoline_code): Remove declaration.
4571 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4573 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4576 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4577 'long' on ppc64-*-linux*.
4579 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4580 isn't #defined, assume the register doesn't exist: act as if
4581 tdep->ppc_mq_regnum were -1.
4583 * configure.host, configure.tgt: Add entries for
4584 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4586 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4589 * arch-utils.c (always_use_struct_convention): New function.
4590 * arch-utils.h (always_use_struct_convention): New prototype.
4591 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4592 (alpha_gdbarch_init): Register always_use_struct_convention,
4593 instead of alpha_use_struct_convention.
4594 * cris-tdep.c (cris_use_struct_convention): Delete.
4595 (cris_gdbarch_init): Register always_use_struct_convention,
4596 instead of cris_use_struct_convention.
4597 * frv-tdep.c (frv_use_struct_convention): Delete.
4598 (frv_gdbarch_init): Register always_use_struct_convention,
4599 instead of frv_use_struct_convention.
4600 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4601 (h8300_gdbarch_init): Register always_use_struct_convention,
4602 instead of h8300_use_struct_convention.
4603 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4604 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4605 instead of mips_o32_use_struct_convention.
4607 2003-06-12 Andrew Cagney <cagney@redhat.com>
4609 * wince.c: Include "mips-tdep.h".
4610 * mips-tdep.h (mips_next_pc): Declare.
4611 * mcore-tdep.c: Make more local functions static.
4612 * Makefile.in (wince.o): Update dependencies.
4614 2003-06-12 David Carlton <carlton@kealia.com>
4616 * symtab.c (lookup_symbol_aux_minsyms): Replace
4617 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4618 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4619 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4620 SYMBOL_NATURAL_NAME.
4622 2003-06-12 Andreas Schwab <schwab@suse.de>
4624 * Makefile.in (tuiDisassem.o): Update dependencies.
4626 2003-06-12 David Carlton <carlton@bactrian.org>
4628 * symtab.h: Delete declaration of make_symbol_overload_list.
4629 Add declaration of lookup_partial_symbol.
4630 * symtab.c (remove_params): Move to cp-support.c.
4631 (overload_list_add_symbol, make_symbol_overload_list)
4632 (sym_return_val_size, sym_return_val_index): Ditto.
4633 (lookup_partial_symbol): Make extern.
4634 * cp-support.h: Add declaration of make_symbol_overload_list.
4635 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4636 symtab.h, and block.h.
4637 (remove_params): Move here from symtab.c.
4638 (overload_list_add_symbol, make_symbol_overload_list)
4639 (sym_return_val_size, sym_return_val_index): Ditto.
4640 * valops.c: Include cp-support.h.
4641 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4642 frame_h, and block_h.
4643 (valops.o): Depend on cp_support_h.
4645 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4647 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4648 substitute by NUM_REGS throughout.
4649 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4650 (h8300s_register_name): New function for H8S registers.
4651 (h8300sx_register_name): Ditto for H8SX registers.
4652 (h8300_print_register): Revise register printing, avoid depending
4654 (h8300_register_byte): Only care for H8/300 registers.
4655 (h8300h_register_byte): New function for any other architecture.
4656 (h8300_register_raw_size): Remove.
4657 (h8300_register_virtual_type): Revise to return actually useful
4659 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4660 (h8300h_extract_struct_value_address): New function for any other
4662 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4663 set_gdbarch_register_name, set_gdbarch_register_byte,
4664 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4665 Remove calls to set_gdbarch_deprecated_register_size,
4666 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4667 set_gdbarch_deprecated_max_register_raw_size,
4668 set_gdbarch_register_virtual_size and
4669 set_gdbarch_deprecated_max_register_virtual_size entirely.
4670 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4671 set_gdbarch_long_double_bit.
4673 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4675 * doublest.c (convert_doublest_to_floatformat): When dealing
4676 with the implied integer bit, only alter mant_bits if we are
4677 processing a full 32 bits of mantissa.
4679 2003-06-11 David Carlton <carlton@bactrian.org>
4681 * dictionary.h: New.
4682 * dictionary.c: New.
4683 * block.h: Add opaque declaration for struct dictionary.
4684 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4686 (BLOCK_DICT): New macro.
4687 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4688 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4690 (ALL_BLOCK_SYMBOLS): Update definition.
4691 * Makefile.in (SFILES): Add dictionary.c.
4692 (dictionary_h): New.
4693 (COMMON_OBS): Add dictionary.o.
4694 (dictionary.o): New.
4695 (ada-lang.o): Depend on dictionary_h.
4696 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4697 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4698 (mi-cmd-stack.o): Ditto.
4699 (gdbtk-cmds.o): Update dependencies.
4700 (gdbtk-stack.o): Ditto.
4701 * ada-lang.c: Include dictionary.h.
4702 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4703 (fill_in_ada_prototype, debug_print_block): Ditto.
4704 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4705 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4707 * mdebugread.c: Include dictionary.h.
4708 (struct parse_stack): Delete 'maxsyms' member.
4709 (parse_symbol): Update calls to new_block. Delete calls to
4710 shrink_block. Use dictionary methods.
4711 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4712 Update calls to new_symtab. Don't maintain maxsyms data.
4713 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4714 (add_symbol): Just call dict_add_symbol.
4715 (new_symtab): Delete 'maxsyms' argument.
4716 (new_symtab): Update calls to new_block.
4717 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4718 (shrink_block): Delete function.
4719 (fixup_sigtramp): Update call to new_block. Add symbol via
4721 * jv-lang.c: Include dictionary.h.
4722 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4723 appropriately. Set class_symtab->free_func. Make sure the
4724 blockvector is big enough to hold two blocks.
4725 (add_class_symtab_symbol): Use dictionary methods.
4726 (free_class_block): New function.
4727 (type_from_class): Replace explicit iteration by
4729 * symtab.h (struct symtab): Replace 'free_ptr' method by
4731 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4733 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4735 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4736 Include dictionary.h.
4737 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4738 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4740 * objfiles.c: Include dictionary.h.
4741 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4742 * buildsym.c: Include dictionary.h.
4743 (finish_block): Use dictionary methods.
4744 (end_symtab): Set free_func to NULL, not free_ptr.
4745 * tracepoint.c: Include dictionary.h.
4746 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4747 (scope_info): Ditto.
4748 * stack.c: Include dictionary.h.
4749 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4750 (print_block_frame_labels, print_frame_arg_vars)
4751 (print_frame_args): Ditto.
4752 * symmisc.c (free_symtab_block): Use dictionary methods.
4753 (dump_symtab): Ditto.
4754 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4755 Include dictionary.h.
4756 * symfile.h: Delete declarations of sort_block_syms,
4758 * symfile.c (sort_block_syms): Delete.
4759 (sort_symtab_syms): Delete.
4760 * symtab.c: Include dictionary.h.
4761 (lookup_block_symbol): Use dictionary iterators.
4762 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4763 (search_symbols, make_symbol_completion_list): Ditto.
4764 (make_symbol_overload_list): Ditto.
4765 * valops.c (value_of_local): Use dict_empty.
4766 Include dictionary.h.
4768 2003-06-11 J. Brobecker <brobecker@gnat.com>
4770 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4772 2003-06-11 David Carlton <carlton@bactrian.org>
4774 * block.h (BLOCK_SHOULD_SORT): Delete.
4775 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4777 * ada-lang.c (ada_add_block_symbols): Ditto.
4778 * symfile.c (sort_block_syms): Delete.
4779 (sort_symtab_syms): Ditto.
4780 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4782 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4783 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4784 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4785 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4786 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4787 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4788 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4790 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4792 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4795 2003-06-11 Andrew Cagney <cagney@redhat.com>
4797 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4798 REGISTER_CONVERTIBLE.
4799 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4800 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4801 * gdbarch.h, gdbarch.c: Re-generate.
4802 * arch-utils.h (deprecated_register_convertible_not): Rename
4803 generic_register_convertible_not.
4804 * arch-utils.c (deprecated_register_convertible_not): Rename
4805 generic_register_convertible.
4806 (legacy_convert_register_p, legacy_register_to_value): Update.
4807 * sh-tdep.c (sh64_push_arguments): Update.
4808 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4809 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4810 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4811 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4812 * arch-utils.c (legacy_value_to_register): Update.
4813 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4814 (rs6000_register_convert_to_raw): Make parameter "from" const.
4815 * mips-tdep.c (mips_gdbarch_init): Update.
4816 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4817 * infcmd.c (default_print_registers_info): Update.
4818 * ia64-tdep.c (ia64_gdbarch_init): Update.
4819 (ia64_register_convert_to_raw): Make parameter "from" const.
4820 * i386-tdep.c (i386_gdbarch_init): Update.
4821 (i386_register_convert_to_raw): Update.
4823 2003-06-11 Andrew Cagney <cagney@redhat.com>
4825 * remote-fileio.c: Include "remote-fileio.h".
4826 * Makefile.in (remote-fileio.o): Update dependencies.
4827 (remote_fileio_h): Fix typo.
4829 2003-06-11 Andrew Cagney <cagney@redhat.com>
4831 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4832 (xstormy16_save_dummy_frame_tos): Make static.
4833 (_initialize_xstormy16_tdep): Add declaration.
4834 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4835 * v850-tdep.c: Make local functions static.
4836 (_initialize_v850_tdep): Add declaration.
4837 * sparc-tdep.c: Make local functions static.
4838 (_initialize_sparc_tdep): Add declaration.
4839 * sh-tdep.c: Make local functions static.
4840 (_initialize_sh_tdep): Add declaration.
4841 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4842 * s390-tdep.c: Make local functions static.
4843 (_initialize_s390_tdep): Add declaration.
4844 * dbxread.c (find_stab_function_addr): Make static.
4845 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4846 * ocd.c (_initialize_remote_ocd): Add declaration.
4847 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4848 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4849 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4850 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4851 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4852 * remote-array.c (_initialize_array): Add declaration.
4853 (_initialize_remote_monitors): Add declaration.
4854 * remote-mips.c: Make local functions static.
4855 (_initialize_remote_mips): Add declaration.
4856 * mcore-tdep.c: Make all local functions static.
4857 (_initialize_mcore_tdep): Add declaration.
4858 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4859 * abug-rom.c (_initialize_abug_rom): Add declaration.
4860 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4861 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4862 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4863 * remote-est.c (_initialize_est): Add declaration.
4864 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4865 (m68hc11_call_dummy_address): Make static.
4866 * ia64-tdep.c: Make local functions static.
4867 (_initialize_ia64_tdep): Add declaration.
4868 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4869 * monitor.c (monitor_wait_filter): Make static.
4870 (_initialize_remote_monitors): Add declaration.
4871 * remote-hms.c (_initialize_remote_hms): Add declaration.
4872 * remote-e7000.c (fetch_regs_from_dump): Make static.
4873 (expect_n): Make static.
4874 (_initialize_remote_e7000): Add declaration.
4875 * ser-e7kpc.c: Always include "defs.h".
4876 (_initialize_ser_e7000pc): Add declaration.
4877 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4878 * cris-tdep.c: Make all but one function static.
4879 (_initialize_cris_tdep): Add declaration.
4880 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4881 * solib.c (update_solib_list): Make static.
4882 (_initialize_solib): Add declaration.
4883 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4884 (_initialize_avr_tdep): Add declaration.
4885 * remote-rdi.c (voiddummy): Make static.
4886 (_initialize_remote_rdi): Add declaration.
4887 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4888 * remote-rdp.c (send_rdp): Make static.
4889 (_initialize_remote_rdp): Add declaration.
4890 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4892 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4894 * remote-fileio.c: Make ari happy.
4896 2003-06-10 J. Brobecker <brobecker@gnat.com>
4898 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4899 fetching the trailing bytes of the buffer we are about to write.
4901 2003-06-10 Andrew Cagney <cagney@redhat.com>
4903 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4904 * Makefile.in (remote-fileio.o): Update dependencies.
4905 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4906 include <setjmp.h>, or <sys/types.h> conditional on USG.
4907 (remote_fio_jmp_buf): Delete global variable.
4909 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4910 Martin M. Hunt <hunt@redhat.com>
4912 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4913 (SFILES): Add remote-fileio.c.
4914 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4915 dependencies for building remote.o.
4916 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4917 * remote-fileio.h: New header file defining remote File-I/O interface.
4918 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4919 static storage class.
4920 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4922 (_initialize_remote): Call initialize_remote_fileio().
4923 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4924 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4925 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4926 (captured_main): Initialize new ui_files.
4927 * ui-file.c: Add read and fgets input functions.
4928 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4929 (null_file_read): New function.
4930 (ui_file_read): New function.
4931 (set_ui_file_read): New function.
4932 (stdio_file_read): New function.
4933 * ui-file.h: New type ui_file_read_ftype.
4934 (set_ui_file_read): Declare.
4935 (ui_file_read): Declare.
4937 2003-06-09 Andrew Cagney <cagney@redhat.com>
4939 * frame.h (deprecated_unwind_get_saved_register): Rename
4940 generic_unwind_get_saved_register, update comments.
4941 * mips-tdep.c (mips_get_saved_register): Update.
4942 * frame.c (deprecated_unwind_get_saved_register): Update.
4944 2003-06-09 Andrew Cagney <cagney@redhat.com>
4946 * vax-tdep.c (vax_frame_locals_address): Delete function.
4947 (vax_gdbarch_init): Do not set frame_locals_address.
4948 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4949 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4950 * s390-tdep.c (s390_frame_args_address): Delete function.
4951 (s390_gdbarch_init): Do not set frame_args_address or
4952 frame_locals_address.
4953 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4954 (ns32k_gdbarch_init): Do not set frame_locals_address.
4955 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4956 (hppa_frame_locals_address): Delete function.
4957 (hppa_gdbarch_init): Do not set frame_args_address, or
4958 frame_locals_address.
4959 * arm-tdep.c (arm_frame_args_address): Delete.
4960 (arm_frame_locals_address): Delete.
4961 (arm_gdbarch_init): Do not set frame_args_address, or
4962 frame_locals_address.
4964 2003-06-09 Andrew Cagney <cagney@redhat.com>
4966 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4967 * gdbarch.h, gdbarch.c: Re-generate.
4968 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4969 * arch-utils.c (frame_num_args_unknown): Delete function.
4970 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4971 (frame_info): Use FRAME_NUM_ARGS_P.
4972 * arm-tdep.c (arm_frame_num_args): Delete function.
4973 (arm_gdbarch_init): Do not set frame_num_args.
4974 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4975 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4976 (hppa_gdbarch_init): Do not set frame_num_args.
4977 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4978 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4979 frame_num_args to default frame_num_args_unknown.
4980 * v850-tdep.c (v850_gdbarch_init): Ditto.
4981 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4982 * sh-tdep.c (sh_gdbarch_init): Ditto.
4983 * s390-tdep.c (s390_gdbarch_init): Ditto.
4984 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4985 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4986 * mips-tdep.c (mips_gdbarch_init): Ditto.
4987 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4988 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4989 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4990 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4991 * i386-tdep.c (i386_gdbarch_init): Ditto.
4992 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4993 * frv-tdep.c (frv_gdbarch_init): Ditto.
4994 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4995 * cris-tdep.c (cris_gdbarch_init): Ditto.
4996 * avr-tdep.c (avr_gdbarch_init): Ditto.
4997 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4999 2003-06-09 Andrew Cagney <cagney@redhat.com>
5001 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5002 (print_frame_args): Moved to "stack.c".
5003 * stack.c: Include "gdb_assert.h".
5004 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5005 (print_frame_args): Moved from "printcmd.c".
5006 * frame.h (print_frame_args): Delete declaration.
5007 * Makefile.in (stack.o): Update dependencies.
5009 2003-06-08 Andrew Cagney <cagney@redhat.com>
5011 * frame.c (get_prev_frame): Remove reference to
5012 frame_args_address_correct in comments.
5013 * frame-base.c (default_frame_args_address): Delete code
5014 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5015 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5016 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5017 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5018 (vax_frame_args_address_correct): Delete declaration.
5020 2003-06-08 Andrew Cagney <cagney@redhat.com>
5022 * gdbarch.sh (UNWIND_SP): Add.
5023 * gdbarch.h, gdbarch.c: Re-generate.
5024 * frame.c (frame_sp_unwind): New function.
5025 (get_frame_sp): New function.
5026 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5027 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5028 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5030 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5031 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5033 2003-06-08 Andrew Cagney <cagney@redhat.com>
5035 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5038 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5039 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5040 * config/m68k/tm-sun3.h: Update.
5041 * config/m68k/tm-m68klynx.h: Update.
5042 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5044 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5045 trad_frame". Update comments.
5046 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5047 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5048 (trad_frame_register_value, trad_frame_prev_register): Update.
5050 2003-06-08 Andrew Cagney <cagney@redhat.com>
5052 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5053 from GCC's acinclude.m4.
5054 * configure.in: Check for getopt's delcaration.
5055 * aclocal.m4, config.in, configure: Re-generate.
5056 * main.c (error_init): Delete declaration.
5057 * defs.h (error_init): Declare.
5058 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5059 (rs6000_convert_from_func_ptr_addr): Make static.
5060 (_initialize_rs6000_tdep): Add declaration.
5061 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5062 (show_commands, set_verbose, show_history): Delete declaration.
5063 * top.h (set_verbose): Add declaration.
5064 (show_history, set_history, show_commands): Add declaration.
5065 (do_restore_instream_cleanup): Add declaration.
5066 * objc-lang.c (specialcmp): Make static.
5067 (print_object_command): Make static.
5068 (find_objc_msgsend): Make static.
5069 (find_objc_msgcall_submethod_helper): Make static.
5070 (find_objc_msgcall_submethod): Make static.
5071 (_initialize_objc_language): Add declaration.
5072 (find_implementation_from_class): Make static.
5073 (find_implementation): Make static.
5074 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5075 * objc-lang.h (lookup_struct_typedef): Add declaration.
5076 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5077 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5078 (do_restore_user_call_depth): Make static.
5079 (do_restore_instream_cleanup): Delete declaration.
5080 (dont_repeat): Delete declaration.
5081 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5082 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5083 * reggroups.c (_initialize_reggroup): Add declaration.
5084 * cp-support.c (_initialize_cp_support): Add declaration.
5085 * cp-abi.c (_initialize_cp_abi): Add declaration.
5086 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5087 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5088 (_initialize_gnu_v3_abi): Add declaration.
5089 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5090 (_initialize_gnu_v2_abi): Add declaration.
5091 * frame-base.c (_initialize_frame_base): Add declaration.
5092 * doublest.c (floatformat_from_length): Make static.
5093 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5094 * frame.c (create_sentinel_frame): Make static.
5095 (_initialize_frame): Add declaration.
5096 * top.c (do_catch_errors): Make static.
5097 (gdb_rl_operate_and_get_next_completion): Make static.
5098 * typeprint.c: Include "typeprint.h".
5099 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5100 (sentinel_frame_this_id): Make static.
5101 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5102 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5103 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5104 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5105 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5106 * maint.c (maintenance_print_architecture): Make static.
5107 * signals/signals.c (_initialize_signals): Add declaration.
5108 * std-regs.c (_initialize_frame_reg): Add declaration.
5109 * jv-exp.y (push_variable): ISO C definition.
5110 (push_qualified_expression_name): Ditto.
5111 * memattr.c (_initialize_mem): Add declaration.
5112 * remote.c (remote_check_watch_resources): Make static.
5113 (remote_stopped_by_watchpoint): Make static.
5114 (remote_stopped_data_address): Make static.
5115 * d10v-tdep.c (nr_dmap_regs): Make static.
5116 (a0_regnum): Make static.
5117 (d10v_frame_unwind_cache): Make static.
5118 (d10v_frame_p): Make static.
5119 * osabi.c (show_osabi): Make static.
5120 (_initialize_gdb_osabi): Add extern declaration.
5121 * gdbtypes.c (make_qualified_type): Make static.
5122 (safe_parse_type): Make static.
5123 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5124 * macrotab.c (macro_bcache_free): Make static.
5125 * interps.c (interp_set_quiet): Make static.
5126 (interpreter_exec_cmd): Make static.
5127 * stack.h (select_frame_command): New file.
5128 * stack.c: Include "stack.h".
5129 (select_frame_command_wrapper): Delete function.
5130 (select_frame_command): Make global.
5131 * infcall.c: Include "infcall.h".
5132 * linespec.c: Include "linespec.h".
5133 * symfile.c (sections_overlap): Make static.
5134 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5135 * charset.c (_initialize_charset): Add missing prototype.
5136 * regcache.c (init_legacy_regcache_descr): Make static.
5137 (do_regcache_xfree): Make static.
5138 (regcache_xfer_part): Make static.
5139 (_initialize_regcache): Add missing prototype.
5140 * breakpoint.c (parse_breakpoint_sals): Make static.
5141 (breakpoint_sals_to_pc): Make static.
5142 * interps.h (clear_interpreter_hooks): ISO C declaration.
5143 * Makefile.in (stack_h): Define.
5144 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5145 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5147 2003-06-08 Andrew Cagney <cagney@redhat.com>
5149 * Makefile.in (d10v-tdep.o): Update dependencies.
5150 (SFILES): Add trad-frame.c.
5151 (trad_frame_h): Define.
5152 (COMMON_OBS): Add trad-frame.o.
5153 (trad-frame.o): Specify dependencies.
5154 * d10v-tdep.c: Include "trad-frame.h".
5155 (saved_regs_unwinder): Delete function.
5156 (d10v_frame_prev_register): Use trad_frame_prev_register.
5157 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5158 trad_frame", delete "regs" and "prev_sp".
5159 (prologue_find_regs): Use trad-frame.
5160 * trad-frame.h, trad-frame.c: New files.
5162 2003-06-08 Mark Kettenis <kettenis@gnu.org>
5164 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5166 2003-06-07 Adam Fedor <fedor@gnu.org>
5168 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5169 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5170 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5171 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5172 resolve_msgsend_super, resolve_msgsend_super_stret):
5175 2003-06-07 Andrew Cagney <cagney@redhat.com>
5177 * symfile.h: Re-indent, clean up comments.
5179 2003-06-07 Andrew Cagney <cagney@redhat.com>
5181 * inferior.h (deprecated_write_sp): Replace
5182 generic_target_write_sp.
5183 * regcache.c (deprecated_write_sp): Replace
5184 generic_target_write_sp.
5185 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5186 * vax-tdep.c (vax_gdbarch_init): Update.
5187 * v850-tdep.c (v850_gdbarch_init): Update.
5188 * sparc-tdep.c (sparc_gdbarch_init): Update.
5189 * sh-tdep.c (sh_gdbarch_init): Update.
5190 * s390-tdep.c (s390_gdbarch_init): Update.
5191 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5192 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5193 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5194 * mcore-tdep.c (mcore_gdbarch_init): Update.
5195 * m68k-tdep.c (m68k_gdbarch_init): Update.
5196 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5197 * ia64-tdep.c (ia64_gdbarch_init): Update.
5198 * h8300-tdep.c (h8300_gdbarch_init): Update.
5199 * frv-tdep.c (frv_gdbarch_init): Update.
5200 * cris-tdep.c (cris_gdbarch_init): Update.
5201 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5203 2003-06-07 Andrew Cagney <cagney@redhat.com>
5205 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5206 Assert that PC_REGNUM is valid.
5207 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5209 2003-06-07 Andrew Cagney <cagney@redhat.com>
5211 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5212 * gdbarch.h, gdbarch.c: Regenerate.
5213 * mn10300-tdep.c: Include "gdb_assert.h".
5214 (mn10300_read_fp): New function.
5215 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5216 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5217 * ia64-tdep.c: Include "gdb_assert.h".
5218 (ia64_read_fp): New function.
5219 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5220 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5221 * regcache.c (generic_target_read_sp): Delete function.
5222 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5223 * inferior.h (generic_target_read_sp): Delete declaration.
5224 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5225 generic_target_read_sp.
5226 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5227 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5228 * sh-tdep.c (sh_gdbarch_init): Ditto.
5229 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5230 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5232 2003-06-07 Andrew Cagney <cagney@redhat.com>
5234 * gdbarch.sh: Comment each field of startup_gdbarch.
5235 * gdbarch.h, gdbarch.c: Re-generate.
5237 2003-06-07 Andrew Cagney <cagney@redhat.com>
5239 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5240 * gdbarch.h, gdbarch.c: Re-generate.
5241 * regcache.c: Update comments on read_pc et.al.
5242 (generic_target_read_pc): Delete function.
5243 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5244 * inferior.h (generic_target_read_pc): Delete declaration.
5245 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5246 generic_target_read_pc.
5247 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5248 * sh-tdep.c (sh_gdbarch_init): Ditto.
5249 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5250 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5252 2003-06-07 Andrew Cagney <cagney@redhat.com>
5254 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5255 "index" with "special_local_sect". Use strcmp instead of STREQ.
5256 Append period to coments.
5258 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5260 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5261 (elfstab_offset_sections): Likewise.
5262 * gdb-stabs.h (stab_section_info): Likewise.
5263 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5264 * objfiles.c (objfile_relocate): Likewise.
5265 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5266 * remote.c (get_offsets): Likewise.
5267 (remote_cisco_objfile_relocate): Likewise.
5268 * somread.c (som_symfile_offsets): Likewise.
5269 * symfile.c (alloc_section_addr_info): New function.
5270 (build_section_addr_info_from_section_tab): Use it.
5271 (free_section_addr_info): Adjust.
5272 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5273 (syms_from_objfile): Allocate local_addr dynamically.
5274 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5276 (add_symbol_file_command): Allocate sect_opts dynamically.
5277 (reread_symbols): Avoid use of SECT_OFF_MAX.
5278 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5279 (alloc_section_addr_info): Declare it.
5280 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5281 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5283 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5285 2003-06-06 Andrew Cagney <cagney@redhat.com>
5287 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5288 (d10v_frame_unwind_cache): Do not set "return_pc".
5290 2003-06-06 Michael Snyder <msnyder@redhat.com>
5292 * h8300-tdep.c: Make tidy (long lines).
5294 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5296 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5297 to regcache_collect().
5299 2003-06-05 J. Brobecker <brobecker@gnat.com>
5301 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5302 pc_in_sigtramp multiarch method.
5303 (hppa_hpux_som_init_abi): Use it.
5304 (hppa_hpux_elf_init_abi): Likewise.
5305 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5306 macro has been multiarched.
5307 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5308 macro here, as hppa64 isn't multiarched yet.
5310 2003-06-05 Andrew Cagney <cagney@redhat.com>
5312 * Makefile.in (value_h): Add $(frame_h).
5313 * value.h: Include "frame.h".
5314 (struct value): Replace "frame_addr" with "frame_id".
5315 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5316 * values.c (allocate_value): Use VALUE_FRAME_ID.
5317 (value_copy): Use VALUE_FRAME_ID.
5318 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5319 * valops.c (value_assign): Update. Use frame_find_by_id.
5321 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5323 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5326 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5328 * thread-db.c (check_event): For create/death event breakpoints,
5329 loop through all messages to ensure that we read the message
5330 corresponding to the breakpoint we are at.
5332 2003-06-04 Michael Snyder <msnyder@redhat.com>
5334 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5336 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5338 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5339 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5340 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5341 when handling .eh_frame sections.
5343 2003-06-04 J. Brobecker <brobecker@gnat.com>
5345 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5346 prepare_to_proceed procedure instead of the hppa-specific one.
5347 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5349 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5351 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5352 * config.in: Regenerated.
5353 * configure.in: Add test for syscall function and check for
5354 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5355 * configure: Regenerated.
5356 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5358 (kill_lwp): New function that uses tkill syscall or
5359 uses kill, depending on whether threading model is nptl or not.
5360 All callers of kill() changed to use kill_lwp().
5361 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5362 see if all threads have already exited in the nptl model.
5363 (stop_and_resume_callback): New callback function used by the
5364 lin_lwp_wait thread exit handling code.
5365 (stop_wait_callback): Check for threads already having exited and
5366 delete such threads fromt the lwp list when discovered.
5367 (stop_callback): Don't assert retcode of kill call.
5369 Roland McGrath <roland@redhat.com>
5370 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5373 2003-06-03 Richard Henderson <rth@redhat.com>
5375 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5376 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5377 (alpha_sigtramp_frame_prev_register): Likewise.
5378 (alpha_heuristic_frame_prev_register): Likewise.
5379 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5381 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5382 alpha-specific register id names.
5383 (alpha_mdebug_frame_unwind_cache): Likewise.
5384 (alpha_mdebug_frame_prev_register): Likewise.
5386 2003-06-03 Richard Henderson <rth@redhat.com>
5388 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5389 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5390 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5391 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5393 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5394 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5395 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5397 * alpha-linux-tdep.c: Remove unnecessary includes.
5398 * Makefile.in (alpha-linux-tdep.o): Update.
5400 2003-06-03 Richard Henderson <rth@redhat.com>
5402 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5403 (alphabsd_fill_fpreg): Likewise.
5405 2003-06-03 J. Brobecker <brobecker@gnat.com>
5407 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5408 references to struct frame_info fields by calls to the equivalent
5409 accessors. Necessary now that frame_info is opaque.
5411 2003-06-03 J. Brobecker <brobecker@gnat.com>
5413 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5414 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5415 structure, field no longer exists.
5417 2003-06-03 J. Brobecker <brobecker@gnat.com>
5419 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5420 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5422 2003-06-03 J. Brobecker <brobecker@gnat.com>
5424 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5425 references to struct frame_info fields by calls to the equivalent
5426 accessors. Necessary now that frame_info is opaque.
5428 2003-06-03 J. Brobecker <brobecker@gnat.com>
5430 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5431 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5432 structure, field no longer exists.
5434 2003-06-03 Theodore A. Roth <troth@openavr.org>
5436 * remote.c (init_remote_state): Compute sizeof_g_packet by
5437 accumulation of the size of all registers instead of blindly using
5438 DEPRECATED_REGISTER_BYTES.
5440 2003-06-03 Michael Snyder <msnyder@redhat.com>
5442 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5443 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5446 2003-06-03 J. Brobecker <brobecker@gnat.com>
5448 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5449 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5451 2003-06-03 Andrew Cagney <cagney@redhat.com>
5453 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5454 (sparc_convert_to_raw): Delete function.
5455 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5456 register_convert_to_virtual.
5458 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5460 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5461 layer if not dealing with a statically-linked threaded program.
5463 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5465 * solib.c (solib_open): Update comment to reflect actual search order.
5467 2003-06-03 Andrew Cagney <cagney@redhat.com>
5469 * frame.c (get_frame_memory_signed): New function.
5470 (get_frame_memory, get_frame_memory_unsigned): New function.
5471 (get_frame_arch): New function.
5472 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5473 (get_frame_memory, get_frame_unsigned_memory): Declare.
5474 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5475 get_frame_memory_unsigned and get_frame_arch.
5476 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5478 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5480 * MAINTAINERS (write after approval): Add myself.
5482 2003-06-03 Jim Blandy <jimb@redhat.com>
5484 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5485 elements of gregset_t are 64 bits each, but access registers
5486 are still 32 bits, so they're packed two per gregset_t
5487 element. Unpack/pack them properly.
5489 2003-06-02 David Carlton <carlton@bactrian.org>
5491 * linespec.c (find_methods): Break out code into
5492 add_matching_methods and add_constructors.
5493 (add_matching_methods): New.
5494 (add_constructors): Ditto.
5496 2003-06-02 Andrew Cagney <cagney@redhat.com>
5498 * sparc-tdep.c (sparc_print_registers): Delete call to
5499 REGISTER_CONVERTIBLE.
5500 (sparc_gdbarch_init): Do not set register_convertible.
5501 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5502 * frv-tdep.c (frv_gdbarch_init): Ditto.
5503 * cris-tdep.c (cris_gdbarch_init): Ditto.
5505 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5507 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5508 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5509 (syms_from_objfile): Ditto.
5511 2003-06-03 Andreas Schwab <schwab@suse.de>
5513 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5514 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5516 2003-06-02 Richard Henderson <rth@redhat.com>
5518 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5519 a member of all_reggroup.
5521 2003-06-02 Richard Henderson <rth@redhat.com>
5523 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5524 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5525 (alpha_lds, alpha_sts): New.
5526 (alpha_convert_register_p): Change from _register_convertible.
5527 (alpha_register_to_value): Change from _convert_to_virtual;
5528 restructure and fail for type sizes other than 4 or 8.
5529 (alpha_value_to_register): Similarly.
5530 (alpha_extract_return_value): Use alpha_sts.
5531 (alpha_store_return_value): Use alpha_lds.
5532 (alpha_gdbarch_init): Update hooks.
5534 2003-06-02 Richard Henderson <rth@redhat.com>
5536 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5538 (alpha_sigtramp_register_address): Likewise.
5540 2003-06-02 Richard Henderson <rth@redhat.com>
5542 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5543 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5544 * alpha-tdep.h: Declare them.
5546 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5547 Remove zerobuf. Don't error on UNIQUE.
5548 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5549 (ALPHA_REGSET_UNIQUE): Provide default.
5550 (supply_gregset): Use alpha_supply_int_regs.
5551 (fill_gregset): Use alpha_fill_int_regs.
5552 (supply_fpregset): Use alpha_supply_fp_regs.
5553 (fill_fpregset): Use alpha_fill_fp_regs.
5554 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5555 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5556 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5557 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5558 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5559 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5561 2003-06-02 Richard Henderson <rth@redhat.com>
5563 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5565 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5566 (alpha_store_return_value): Likewise.
5568 2003-06-02 David Carlton <carlton@math.stanford.edu>
5570 * block.c (contained_in): Add 'const' to arguments.
5571 (block_function): Ditto.
5572 * block.h: Update declarations for block_function and
5575 2003-06-02 David Carlton <carlton@math.stanford.edu>
5577 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5578 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5579 * p-valprint.c (pascal_val_print): Ditto.
5580 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5582 2003-06-02 Richard Henderson <rth@redhat.com>
5584 * alpha-tdep.c (alpha_push_dummy_call): Use
5585 builtin_type_ieee_double_little instead of builtin_type_double.
5587 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5588 sign-extension of 32-bit values.
5589 (alpha_store_return_value): Similarly.
5591 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5592 (alpha_extract_return_value): Likewise.
5593 (alpha_store_return_value): Likewise.
5595 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5596 (alpha_store_return_value): Error on IEEE Quad floats.
5598 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5599 (alpha_extract_struct_value_address): Likewise.
5600 (alpha_store_return_value): Likewise.
5601 (alpha_store_struct_return): Remove.
5602 (alpha_gdbarch_init): Update hook registration to match.
5604 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5605 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5606 macros where appropriate.
5607 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5608 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5610 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5611 for SP, GP; void_func_ptr for PC; non-language-specific types
5613 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5615 2003-06-02 Richard Henderson <rth@redhat.com>
5617 * top.h (lim_at_start): Declare.
5618 * main.c (captured_main): Set it.
5619 * top.c (lim_at_start): Define.
5620 (command_loop): Use it instead of &environ.
5621 * event-top.c (command_handler): Likewise.
5623 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5625 * mipsnbsd-tdep.c: Update copyright years.
5626 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5628 2003-06-01 Richard Henderson <rth@redhat.com>
5630 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5631 (alpha-linux-tdep.o): Update dependencies.
5632 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5633 * alpha-mdebug-tdep.c: Remove unneeded includes.
5635 2003-06-01 Richard Henderson <rth@redhat.com>
5637 * alpha-tdep.c (alpha_register_reggroup_p): New.
5638 (alpha_gdbarch_init): Register it.
5640 2003-06-02 Andrew Cagney <cagney@redhat.com>
5642 * dwarfread.c: Eliminate "register"
5643 (decode_die_type): Eliminate assignment within "if".
5644 (struct_type, decode_array_element_type): Ditto.
5645 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5646 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5647 (decode_modified_type, completedieinfo): Ditto.
5648 * block.c: Eliminate "register".
5649 (blockvector_for_pc_sect): Eliminate assignment within "if".
5650 * cp-support.h (struct symbol): Opaque declaration.
5651 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5653 2003-06-01 Richard Henderson <rth@redhat.com>
5655 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5656 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5658 2003-06-01 Adam Fedor <fedor@gnu.org>
5660 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5661 * gdbarch.[ch]: Regenerate.
5662 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5663 (hppa_gdbarch_init): Set it in the gdbarch vector.
5664 * i386-tdep.c (i386_fetch_pointer_argument): New
5665 (i386_gdbarch_init): Set it into gdbarch.
5666 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5667 (rs6000_gdbarch_init): Set it in gdbarch.
5668 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5669 (sparc_gdbarch_init): Set it in gdbarch.
5671 2003-06-01 Andrew Cagney <cagney@redhat.com>
5673 * defs.h (extract_address): Delete declaration.
5674 * findvar.c (extract_address): Delete function.
5675 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5676 extract_address with the inline equivalent,
5677 extract_unsigned_integer.
5678 (xstormy16_extract_struct_value_address): Ditto.
5679 (xstormy16_pointer_to_address): Ditto.
5680 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5681 * v850-tdep.c (v850_push_arguments): Ditto.
5682 (v850_extract_return_value): Ditto.
5683 (v850_extract_struct_value_address): Ditto.
5684 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5685 (sparcnbsd_get_longjmp_target_64): Ditto.
5686 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5687 (get_longjmp_target): Ditto.
5688 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5689 (sh64_extract_struct_value_address): Ditto.
5690 (sh_push_arguments): Ditto.
5691 (sh64_push_arguments): Ditto.
5692 * remote-vxsparc.c (vx_read_register): Ditto.
5693 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5694 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5695 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5696 * mipsv4-nat.c (get_longjmp_target): Ditto.
5697 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5698 * mips-nat.c (get_longjmp_target): Ditto.
5699 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5700 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5701 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5702 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5703 * irix5-nat.c (get_longjmp_target): Ditto.
5704 * irix4-nat.c (get_longjmp_target): Ditto.
5705 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5706 (ia64_push_arguments): Ditto.
5707 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5708 * h8300-tdep.c (h8300_push_arguments): Ditto.
5709 (h8300_store_return_value): Ditto.
5710 (h8300_extract_struct_value_address): Ditto.
5711 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5712 (frv_push_arguments): Ditto.
5713 * avr-tdep.c (avr_pointer_to_address): Ditto.
5714 (avr_push_arguments): Ditto.
5715 * arm-tdep.c (arm_push_dummy_call): Ditto.
5716 (arm_get_longjmp_target): Ditto.
5717 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5718 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5719 (alpha_get_longjmp_target): Ditto.
5721 * solib-irix.c (extract_mips_address): Inline extract_address,
5722 replacing it with extract_signed_integer.
5723 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5724 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5725 (first_link_map_member, open_symbol_file_object): Ditto.
5726 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5727 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5728 (LM_NEXT, LM_NAME): Ditto.
5730 2003-06-01 Richard Henderson <rth@redhat.com>
5732 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5733 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5734 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5735 (alpha_cannot_store_register): Likewise.
5736 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5737 * alpha-nat.c (supply_gregset): Likewise.
5738 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5740 2003-06-01 Andrew Cagney <cagney@redhat.com>
5742 * infcall.c (call_function_by_hand): Update comment on
5743 DEPRECATED_DUMMY_WRITE_SP.
5745 * mips-tdep.c (mips_gdbarch_init): Do not set
5746 deprecated_dummy_write_sp.
5747 (mips_eabi_push_dummy_call): Set the SP register.
5748 (mips_o64_push_dummy_call): Set the SP register.
5749 (mips_o32_push_dummy_call): Set the SP register.
5750 (mips_n32n64_push_dummy_call): Set the SP register.
5752 2003-06-01 Richard Henderson <rth@redhat.com>
5754 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5755 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5756 (supply_gregset): Likewise.
5757 * alpha-tdep.c (alpha_store_return_value): Likewise.
5758 (alpha_get_longjmp_target): Likewise.
5759 (alpha_register_name): Constify array.
5760 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5761 deprecated_register_size, deprecated_register_bytes,
5762 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5763 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5764 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5766 2003-06-01 Richard Henderson <rth@redhat.com>
5768 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5769 from arg_reg_buffer to regcache to avoid double conversion.
5771 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5773 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5775 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5776 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5778 2003-06-01 Richard Henderson <rth@redhat.com>
5780 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5781 (decode_frame_entry): Set it. Skip FDE augmentation.
5783 2003-06-01 Richard Henderson <rth@redhat.com>
5785 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5786 not overlapping PC_REGNUM.
5788 2003-06-01 Richard Henderson <rth@redhat.com>
5790 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5791 alpha_push_arguments. Don't dump argument register data to
5792 the target stack. Fix float and 128-bit long double semantics.
5793 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5794 (alpha_fix_call_dummy): Remove.
5795 (alpha_call_dummy_words): Remove.
5796 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5798 2003-06-01 Richard Henderson <rth@redhat.com>
5800 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5802 2003-06-01 Andrew Cagney <cagney@redhat.com>
5804 * mips-tdep.c (is_mips16_addr): New function.
5805 (make_mips16_addr, unmake_mips16_addr): New functions.
5806 (pc_is_mips16, mips_fetch_instruction): Use.
5807 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5808 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5809 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5810 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5812 * config/mips/tm-mips.h: Update copyright.
5813 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5814 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5815 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5816 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5817 (TM_PRINT_INSN_MACH): Delete.
5818 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5820 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5821 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5822 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5823 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5824 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5825 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5826 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5827 mips*-*-riscos* and mips*-*-sysv* onto mips.
5828 * config/mips/mips64.mt: New file.
5829 * config/mips/mips.mt: New file.
5830 * config/mips/littlemips.mt: Delete file.
5831 * config/mips/decstation.mt: Delete file.
5832 * config/mips/vr4300el.mt: Delete file.
5833 * config/mips/vr5000el.mt: Delete file.
5834 * config/mips/vr5000.mt: Delete file.
5835 * config/mips/vr4100.mt: Delete file.
5836 * config/mips/vr4xxxel.mt: Delete file.
5837 * config/mips/vr4300.mt: Delete file.
5838 * config/mips/vr4xxx.mt: Delete file.
5839 * config/mips/bigmips.mt: Delete file.
5840 * config/mips/bigmips64.mt: Delete file.
5841 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5842 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5843 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5844 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5845 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5847 * config/mips/tm-irix3.h: Ditto.
5848 * config/mips/tm-mipsv4.h: Ditto.
5849 * config/mips/tm-embed.h: Ditto.
5850 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5852 * config/mips/tm-vr5000el.h: Delete file.
5853 * config/mips/tm-tx39l.h: Delete file.
5854 * config/mips/tm-vr4300el.h: Delete file.
5855 * config/mips/tm-vr4xxxel.h: Delete file.
5856 * config/mips/tm-vr4300.h: Delete file.
5857 * config/mips/tm-vr4100.h: Delete file.
5858 * config/mips/tm-vr4xxx.h: Delete file.
5859 * config/mips/tm-vr5000.h: Delete file.
5860 * config/mips/tm-embedl64.h: Delete file.
5861 * config/mips/tm-embedl.h: Delete file.
5862 * config/mips/tm-embed64.h: Delete file.
5863 * config/mips/tm-bigmips64.h: Delete file.
5864 * config/mips/tm-bigmips.h: Delete file.
5866 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5869 * shnbsd-nat.c: Include "sh-tdep.h".
5871 From Richard Henderson <rth@redhat.com>:
5872 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5874 2003-05-31 Andrew Cagney <cagney@redhat.com>
5876 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5877 forward declaration.
5878 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5879 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5880 (mips_find_saved_regs): Use set_reg_offset.
5881 (mips_frame_init_saved_regs): Delete function.
5882 (mips_pop_frame): Call mips_find_saved_regs instead of
5883 DEPRECATED_FRAME_INIT_SAVED_REGS.
5885 2003-05-31 Andrew Cagney <cagney@redhat.com>
5887 * mips-tdep.c (mips_gdbarch_init): Do not set
5888 deprecated_max_register_raw_size, register_virtual_size, and
5889 deprecated_max_register_virtual_size.
5891 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5893 * i386-tdep.c: Include "dwarf2-frame.h".
5894 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5895 * Makefile.in (i386-tdep.o): Update dependencies.
5897 * dwarf2-frame.c, dwarf2-frame.h: New files.
5898 * Makefile.in (SFILES): Add dwarf2-frame.c.
5899 (dwarf2_frame_h): Define.
5900 (COMMON_OBS): Add dwarf2-frame.o.
5901 (dwarf2-frame.o): Add dependencies.
5903 2003-05-31 Andreas Jaeger <aj@suse.de>
5905 * x86-64-linux-nat.c: Fix comment.
5907 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5909 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5912 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5913 have a sigcontext_addr handler.
5914 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5915 sigcontext_addr handler.
5917 2003-05-31 Andrew Cagney <cagney@redhat.com>
5919 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5920 (print_fp_register_row): Replace do_fp_register_row.
5921 (mips_print_fp_register): Add "file" and "frame" parameters.
5922 (mips_print_register): Add "file" and "frame" parameters.
5923 (mips_print_registers_info): Replace mips_do_registers_info.
5924 (mips_gdbarch_init): Set print_registers_info instead of
5925 deprecated_do_registers_info.
5926 (mips_read_fp_register_single): Add "frame" parameter.
5927 (mips_read_fp_register_double): Add "frame" parameter.
5929 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5931 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5932 Fixes a bug where GDB would print the wrong register names for
5933 targets without SSE.
5935 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5936 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5939 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5940 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5941 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5944 From Michal Ludvig <mludvig@suse.cz>:
5945 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5947 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5948 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5949 I386_ST0_REGNUM): Move here from...
5950 * i386-tdep.c: ... here.
5951 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5952 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5953 registers if possible.
5954 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5955 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5957 (i386bsd_sc_reg_offset): New variable.
5958 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5959 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5961 (i386fbsd_sc_reg_offset): New variable.
5962 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5964 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5966 (i386fbsd4_sc_reg_offset): New variable.
5967 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5968 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5970 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5971 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5972 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5974 (i386nbsd_sc_reg_offset): New variable.
5975 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5976 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5978 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5980 (i386obsd_sc_reg_offset): New variable.
5981 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5982 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5984 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5985 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5986 for frame pointer offset in `struct sigcontext'.
5988 2003-05-31 Andrew Cagney <cagney@redhat.com>
5990 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5991 architecture methods call_dummy_words, sizeof_call_dummy_words,
5992 push_return_address, store_struct_return, and fix_call_dummy. Set
5993 push_dummy_call instead of deprecated_push_arguments.
5994 (mips_store_struct_return): Delete function.
5995 (mips_fix_call_dummy): Delete function.
5996 (mips_push_return_address): Delete function.
5997 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5998 RA_REGNUM and T9_REGNUM.
5999 (mips_n32n64_push_dummy_call): Ditto for
6000 mips_n32n64_push_arguments.
6001 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6002 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6004 2003-05-31 Andrew Cagney <cagney@redhat.com>
6006 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6007 "dummy_addr" to "bp_addr".
6008 * infcall.c (call_function_by_hand): Pass "funaddr" to
6009 gdbarch_push_dummy_call.
6010 * gdbarch.h, gdbarch.c: Re-generate.
6011 * i386-tdep.c (i386_push_dummy_call): Update.
6012 * arm-tdep.c (arm_push_dummy_call): Update.
6013 * d10v-tdep.c (d10v_push_dummy_call): Update.
6015 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6017 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6018 variable declarations.
6019 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6020 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6021 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6022 x86_64_init_frame_pc, x86_64_init_frame_pc,
6023 x86_64_function_has_prologue): Remove prototypes.
6024 (X86_64_NUM_GREGS): New define.
6025 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6026 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6027 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6028 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6029 XMM1_REGNUM): Remove defines.
6030 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6031 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6032 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6033 X86_64_XMM1_REGNUM): New defines.
6034 (struct x86_64_register_info): Renamed from `struct
6035 register_info'. Remove `size' member.
6036 (x86_64_register_info_table): Remove variable.
6037 (x86_64_register_info): New variable.
6038 (X86_64_NUM_REGS): New define.
6039 (X86_64_NUM_GREGS): Remove define.
6040 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6041 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6043 (x86_54_dwarf2_reg_to_regnum): Remove function.
6044 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6045 (x86_64_dwarf_reg_to_regnum): New function.
6046 (x86_64_register_name): Rewrite.
6047 (x86_64_register_raw_size): Remove function.
6048 (x86_64_register_byte_table): Remove variable.
6049 (x86_64_register_byte): Remove function.
6050 (x86_64_register_virtual_type): Remove function.
6051 (x86_64_register_type): New function.
6052 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6053 x86_64_register_convert_to_raw): Remove functions.
6054 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6055 (x86_64_use_struct_convention): Make static. Adjust for renamed
6057 (x86_64_frame_init_saved_regs): Remove function.
6058 (x86_64_push_arguments): Make static. Change to accept a regcache
6060 (x86_64_store_return_value, x86_64_extract_return_value): Make
6061 static. Rewrite based on i386 counterparts.
6062 (x86_64_push_dummy_call): New function.
6063 (X86_64_NUM_SAVED_REGS): New define.
6064 (x86_64_register_number): Remove function.
6065 (x86_64_store_struct_return): Remove function.
6066 (x86_64_frameless_function_invocation,
6067 x86_64_function_has_prologue): Remove functions.
6068 (PROLOG_BUFSIZE): Remove define.
6069 (struct x86_64_frame_cache): New structure.
6070 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6071 x86_64_frame_cache, x86_64_frame_this_id,
6072 x86_64_frame_prev_register, x86_64_frame_p,
6073 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6074 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6076 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6078 (x86_64_skip_prologue): Rewrite in terms of
6079 x86_64_analyze_prologue.
6080 (x86_64_frame_base_address): New function.
6081 (x86_64_frame_base): New variable.
6082 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6083 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6084 set deprecated_fp_regnum, deprecated_register_size,
6085 deprecated_register_bytes, register_raw_size, register_byte,
6086 register_virtual_type, register_convertiable,
6087 register_convert_to_virtual, convert_to_raw,
6088 deprecated_get_saved_register, deprecated_target_read_fp,
6089 deprecated_push_arguments, deprecated_push_return_address,
6090 deprecated_pop_frame, deprecated_store_struct_return,
6091 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6092 frameless_function_invocation, deprecated_frame_saved_pc,
6093 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6094 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6095 deprecated_init_frame_pc and virtual_frame_pointer. Call
6096 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6097 and x86_64_frame_p. Call frame_base_set_default to register
6099 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6100 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6101 (_initialize_x86_64_tdep): Remove function.
6102 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6103 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6104 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6106 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6107 (x86_64_linux_sigcontext_addr): Rewrite.
6108 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6109 x86_64_linux_frame_saved_pc): Remove functions.
6110 (x86_64_linux_pc_in_sigtramp): Renamed from
6111 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6113 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6115 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6116 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6117 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6118 (x86_64_regmap): Rename to regmap.
6119 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6121 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6123 (x86_64_fxsave_offset): Remove function.
6124 (supply_fpregset): Simply call x86_64_supply_fxsave.
6125 (fill_fpregset): Simply call x86_64_fill_fxsave.
6126 (fetch_inferior_registers, store_inferior_registers): Avoid
6127 asignment in if-statement.
6128 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6129 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6130 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6131 (fetch_core_registers): Remove function.
6132 (linux_elf_core_fns): Remove.
6133 (offsetoff): Don't define.
6134 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6135 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6136 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6138 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6139 protection against multiple includes instead of NM_X86_64_h. Add
6140 various comments. Include "config/nm-linux.h". Don't include
6142 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6143 GET_THREAD_SIGNALS): Remove defines.
6144 (x86_64_register_u_addr, kernel_u_size,
6145 lin_thread_get_thread_signals): Remove prototypes.
6146 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6147 [HAVE_LINK_H]: Don't include "solib.h".
6148 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6149 * config/i386/tm-x86-64linux.h: Fix comments.
6150 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6151 x86-64-tdep.o): Update dependencies.
6153 2003-05-30 Andrew Cagney <cagney@redhat.com>
6155 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6156 Change parameter type to a "struct regcache *".
6158 * gdbarch.sh: Regardless of the multi-arch level, always define
6159 the macro when not already defined.
6160 * gdbarch.h, gdbarch.c: Re-generate.
6162 2003-05-30 Richard Henderson <rth@redhat.com>
6164 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6165 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6166 (alpha_mdebug_frame_this_id): Likewise.
6167 (alpha_mdebug_frame_prev_register): Likewise.
6168 (alpha_mdebug_frame_base_address): Likewise.
6169 (alpha_mdebug_frame_locals_address): Likewise.
6170 (alpha_mdebug_frame_args_address): Likewise.
6171 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6172 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6173 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6175 (alpha_heuristic_frame_this_id): Make static.
6176 (alpha_heuristic_frame_prev_register): Likewise.
6177 (alpha_heuristic_frame_base_address): Likewise.
6178 * alpha-tdep.h: Update.
6180 2003-05-30 Mark Kettenis <kettenis@gnu.org>
6182 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6183 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6185 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6186 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6187 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6188 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6189 I386_ST0_REGNUM): New defines.
6190 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6191 codestream_get): Remove define.
6192 (codestream_next_addr, condestream_addr, condestream_buf,
6193 codestream_off, codestream_cnt): Remove variables.
6194 (codestream_fill, codestream_seek, codestream_read): Remove
6196 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6198 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6199 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6200 i386_frame_saved_pc, i386_saved_pc_after_call,
6201 i386_frame_num_args, i386_frame_init_saved_regs,
6202 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6203 i386_push_arguments): Remove functions.
6204 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6205 functionality. Use i386_analyze_prologue instead of
6206 i386_get_frame_setup.
6207 (I386_NUM_SAVED_REGS): New define.
6208 (struct i386_frame_cache): New structure.
6209 (i386_alloc_frame_cache, i386_analyze_struct_return,
6210 i386_skip_probe, i386_analyze_frame_setup,
6211 i386_analyze_register_saves, i386_analyze_prologue,
6212 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6213 i386_frame_prev_register, i386_sigtramp_frame_cache,
6214 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6215 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6216 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6218 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6220 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6221 I386_EAX_REGNUM and I386_EDX_REGNUM.
6222 (i386_extract_return_value, i386_store_return_value): Use
6223 I386_ST0_REGNUM where appropriate.
6224 (i386_extract_struct_value_address): Rewrite to use extract_address.
6225 (i386_svr4_pc_in_sigtramp): Add comment.
6226 (i386_svr4_sigcontext_addr): Rewrite.
6227 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6229 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6230 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6231 of new defines. Set push_dummy_call, don't set
6232 deprecated_push_arguments, deprecated_push_return_address,
6233 deprecated_pop_frame. Don't set parm_boundary. Don't set
6234 deprecated_frame_chain, deprecated_frame_saved_pc,
6235 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6236 save_dummy_frame_tos, unwind_pc. Call
6237 frame_unwind_append_predicate and frame_base_set_default. Don't
6238 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6239 Don't set frameless_function_invocation. Don't set
6240 deprecated_register_bytes, deprecated_register_size,
6241 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6242 * i386-linux-tdep.c: Fix formatting in some comments.
6243 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6244 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6245 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6246 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6247 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6248 redundant parentheses.
6249 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6250 (i386_linux_sigcontext_addr): Use it. Rewrite.
6251 (find_minsym_and_objfile): Change name of second argument.
6252 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6253 changed. Use frame_pc_unwind instead of
6254 DEPRECATED_SAVED_PC_AFTER_CALL.
6255 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6256 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6257 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6259 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6261 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6262 (_initialize_i386_cygwin_tdep): New prototype.
6263 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6264 deprecated_frame_chain_valid.
6265 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6266 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6267 Rely on the SVR4 defaults.
6268 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6269 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6271 2003-05-30 Andrew Cagney <cagney@redhat.com>
6273 * infcall.c (call_function_by_hand): Always call
6274 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6276 2003-05-30 Richard Henderson <rth@redhat.com>
6278 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6281 2003-05-29 Jim Blandy <jimb@redhat.com>
6283 Use gdbarch methods for solib stuff on PowerPC Linux.
6284 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6285 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6287 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6288 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6289 giving the same effect as the #definitions above.
6291 2003-05-29 Adam Fedor <fedor@gnu.org>
6293 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6294 (find_implementation_from_class): Replace it with the standard
6295 case i.e. do nothing.
6297 2003-05-29 Richard Henderson <rth@redhat.com>
6299 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6300 (alpha_linux_sigtramp_offset): Use it. Make static.
6301 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6302 update for new frame model.
6303 * alpha-mdebug-tdep.c: New file.
6304 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6305 (alpha_osf1_init_abi): Install it.
6306 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6307 (linked_proc_desc_table): Remove.
6308 (alpha_frame_past_sigtramp_frame): Remove.
6309 (alpha_dynamic_sigtramp_offset): Remove.
6310 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6311 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6312 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6313 (push_sigtramp_desc): Remove.
6314 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6315 (alpha_cannot_store_register): Likewise.
6316 (alpha_sigcontext_addr): Remove.
6317 (alpha_find_saved_regs): Remove.
6318 (alpha_frame_init_saved_regs): Remove.
6319 (alpha_init_frame_pc_first): Remove.
6320 (read_next_frame_reg): Remove.
6321 (alpha_frame_saved_pc): Remove.
6322 (alpha_saved_pc_after_call): Remove.
6323 (temp_proc_desc, temp_saved_regs): Remove.
6324 (alpha_about_to_return): Remove.
6325 (cached_proc_desc): Remove.
6326 (alpha_frame_chain): Remove.
6327 (alpha_print_extra_frame_info): Remove.
6328 (alpha_init_extra_frame_info): Remove.
6329 (alpha_frame_locals_address): Remove.
6330 (alpha_frame_args_address): Remove.
6331 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6332 (alpha_push_dummy_frame): Remove.
6333 (alpha_pop_frame): Remove.
6334 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6335 (alpha_read_insn): New.
6336 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6337 for different insn encodings.
6338 (alpha_in_lenient_prologue): Remove.
6339 (struct alpha_sigtramp_unwind_cache): New.
6340 (alpha_sigtramp_frame_unwind_cache): New.
6341 (alpha_sigtramp_register_address): New.
6342 (alpha_sigtramp_frame_this_id): New.
6343 (alpha_sigtramp_frame_prev_register): New.
6344 (alpha_sigtramp_frame_unwind): New.
6345 (alpha_sigtramp_frame_p): New.
6346 (struct alpha_heuristic_unwind_cache): New.
6347 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6348 don't count nop insns that occur between functions.
6349 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6350 heuristic_proc_desc, but without the mdebug wrapping.
6351 (alpha_heuristic_frame_this_id): New.
6352 (alpha_heuristic_frame_prev_register): New.
6353 (alpha_heuristic_frame_unwind): New.
6354 (alpha_heuristic_frame_p): New.
6355 (alpha_heuristic_frame_base_address): New.
6356 (alpha_heuristic_frame_base): New.
6357 (alpha_unwind_dummy_id): New.
6358 (alpha_unwind_pc): New.
6359 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6360 frame related deprecated initializations; install replacements.
6361 (alpha_dump_tdep): Remove.
6362 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6363 (alpha_read_insn, alpha_after_prologue,
6364 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6365 alpha_heuristic_frame_prev_register,
6366 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6367 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6368 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6369 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6371 2003-05-29 Andrew Cagney <cagney@redhat.com>
6373 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6374 dependant on the availability of ASSERT_FUNCTION.
6375 (ASSERT_FUNCTION): Do not define when there is no function name.
6377 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6379 From Jimi X <jimix@watson.ibm.com>:
6380 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6382 2003-05-28 Jim Blandy <jimb@redhat.com>
6384 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6385 argument to ptrace to int; the system headers should give it the
6386 right type, and pointers don't fit in ints on powerpc64-*-*.
6388 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6390 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6393 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6395 * stabsread.c (dbx_lookup_type): Make static.
6397 (add_undefined_type): Ditto.
6398 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6401 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6403 * hpread.c (hpread_has_name): Make static.
6404 (hpread_psymtab_to_symtab): Ditto.
6405 (file_exists): Ditto.
6406 (hpread_call_pxdb): Ditto.
6407 (hpread_pxdb_needed): Ditto.
6408 (hpread_quick_traverse): Ditto.
6409 (hpread_get_header): Ditto.
6410 (hpread_get_lntt): Ditto.
6411 (hpread_get_slt): Ditto.
6414 2003-05-25 Andreas Schwab <schwab@suse.de>
6416 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6417 stack_align and deprecated_extra_stack_alignment_needed.
6418 (m68k_stack_align): Delete.
6420 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6421 (m68k_register_virtual_size): Likewise.
6422 (altos_skip_prologue): Remove obsolete function.
6423 (isi_frame_num_args): Likewise.
6424 (news_frame_num_args): Likewise.
6425 (m68k_fix_call_dummy): Make static.
6426 (m68k_push_dummy_frame): Likewise.
6427 (m68k_pop_frame): Likewise.
6428 (m68k_skip_prologue): Likewise.
6429 (m68k_frame_init_saved_regs): Likewise.
6430 (m68k_saved_pc_after_call): Likewise.
6431 (m68k_get_longjmp_target): Make multi-arch.
6432 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6433 structure. Register m68k_get_longjmp_target if enabled.
6434 * m68k-tdep.h (struct gdbarch_tdep): Define.
6435 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6437 * Makefile.in (config.status): Also depend on configure.tgt
6439 (m68klinux-tdep.o): Update dependencies.
6440 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6441 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6442 (M68K_LINUX_JB_PC): Define.
6443 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6444 and take additional parameter.
6445 (m68k_linux_sigtramp_saved_pc): Update.
6446 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6447 m68k_linux_pc_in_sigtramp, in_plt_section,
6448 find_solib_trampoline_target.
6449 * config/m68k/tm-linux.h: Don't include any tm headers.
6450 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6451 (JB_ELEMENT_SIZE): Likewise.
6453 (GET_LONGJMP_TARGET): Likewise.
6454 (IN_SIGTRAMP): Likewise.
6455 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6457 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6459 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6460 (sparc32_push_arguments): Re-implement by calling
6461 sparc32_do_push_arguments.
6463 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6465 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6466 SPARC_O1_REGNUM): New defines.
6467 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6468 (sparc32_store_return_value): New function.
6469 (sparc_extract_struct_value_address): Rewrite to operate on a
6471 (sparc_gdbarch_init): Don't set
6472 deprecated_extract_struct_value_address. Set
6473 extract_struct_value_address instead. Don't set
6474 deprecated_extract_return_value and deprecated_store_return_value
6475 for 32-bit targets. Set extract_return_value and
6476 store_return_value instead.
6477 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6478 DEPRECTAED_EXTRACT_RETURN_VALUE,
6479 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6480 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6481 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6482 (sparc_store_return_value): Remove prototype.
6483 (sparc32_store_return_value): New prototype.
6484 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6487 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6489 * sparcnbsd-tdep.c: Include "gdb_string.h".
6491 2003-05-23 Andrew Cagney <cagney@redhat.com>
6493 * p-valprint.c (pascal_val_print): Replace extract_address with
6494 the inline equivalent extract_unsigned_integer.
6495 * jv-valprint.c (java_value_print): Ditto.
6496 * ada-valprint.c (ada_val_print_1): Ditto.
6497 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6499 2003-05-23 Theodore A. Roth <troth@openavr.org>
6501 * blockframe.c (frameless_look_for_prologue): Remove unused
6502 after_prologue variable.
6504 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6506 * blockframe.c (get_pc_function_start): Rewrite to avoid
6507 asignments in if-statements.
6509 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6511 Committed by Elena Zannoni <ezannoni@redhat.com>.
6512 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6513 files, don't relocate absolute symbols (and do use mst_abs).
6515 2003-05-23 Andrew Cagney <cagney@redhat.com>
6517 * objc-lang.c: Include "gdb_assert.h".
6518 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6519 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6520 (gdb_check, gdb_check_fatal): Delete functions.
6521 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6523 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6524 * Makefile.in (objc-lang.o): Update dependencies.
6526 2003-05-22 Ian Lance Taylor <ian@airs.com>
6528 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6529 with fprintf_filtered, not fprintf_unfiltered.
6531 2003-05-22 Andrew Cagney <cagney@redhat.com>
6533 * stack.c (frame_info): Inline extract_address, replacing it with
6534 extract_unsigned_integer.
6535 * findvar.c (unsigned_pointer_to_address): Ditto.
6536 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6537 * dwarf2expr.c (dwarf2_read_address): Ditto.
6538 * frame.c (frame_pc_unwind): Update comment.
6539 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6541 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6543 * infptrace.c (detach): Call print_sys_errmsg rather than
6544 perror_with_name to issue warning message when errno is non-zero
6545 after calling ptrace detach.
6547 2003-05-21 J. Brobecker <brobecker@gnat.com>
6549 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6550 macro definitions from here...
6551 * hppa-tdep.c: ...to there.
6553 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6555 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6556 register_ptrace_addr(). Fix all callers.
6558 2003-05-21 Andreas Schwab <schwab@suse.de>
6560 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6562 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6564 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6565 (_initialize_m68k_linux_tdep): New function.
6566 (m68k_linux_frame_saved_pc): Make static.
6567 (m68k_linux_extract_return_value): Likewise.
6568 (m68k_linux_store_return_value): Likewise.
6569 (m68k_linux_extract_struct_value_address): Likewise.
6570 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6572 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6573 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6574 (DEPRECATED_FRAME_SAVED_PC): Remove.
6576 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6578 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6579 regset numbering rather than our own.
6581 2003-05-19 David Carlton <carlton@bactrian.org>
6583 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6585 2003-05-19 David Carlton <carlton@bactrian.org>
6587 Partial fix for PR c++/827.
6588 * cp-support.h: Include symtab.h.
6589 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6590 * cp-namespace.c: Update contributors.
6591 (cp_lookup_symbol_nonlocal): New.
6592 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6593 (lookup_symbol_file): Ditto.
6594 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6595 * block.h: Declare block_scope, block_using, block_global_block.
6596 * block.c (block_scope): New.
6597 (block_using, block_global_block): Ditto.
6598 * Makefile.in (cp_support_h): Depend on symtab_h.
6599 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6601 2003-05-19 David Carlton <carlton@bactrian.org>
6603 * language.h (struct language_defn): Add 'la_value_of_this'
6604 and 'la_lookup_symbol_nonlocal' members.
6605 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6606 lookup_symbol_static, lookup_symbol_global,
6607 lookup_symbol_aux_block.
6608 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6609 if we should search fields of this and how to do static/global
6611 (lookup_symbol_aux_block): Make extern.
6612 (basic_lookup_symbol_nonlocal): New.
6613 (lookup_symbol_static, lookup_symbol_global): Ditto.
6614 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6615 'la_lookup_symbol_nonlocal' members.
6616 * c-lang.c (c_language_defn, cplus_language_defn)
6617 (asm_language_defn, minimal_language_defn): Ditto.
6618 * jv-lang.c (java_language_defn): Ditto.
6619 * language.c (unknown_language_defn, auto_language_defn)
6620 (local_language_defn): Ditto.
6621 * m2-lang.c (m2_language_defn): Ditto.
6622 * objc-lang.c (objc_language_defn): Ditto.
6623 * scm-lang.c (scm_language_defn): Ditto.
6624 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6625 * p-lang.c (pascal_language_defn): Ditto for both.
6626 * Makefile.in (f-lang.o): Depend on value_h.
6629 2003-05-19 David Carlton <carlton@bactrian.org>
6631 * block.h: Declare block_static_block.
6632 * block.c (block_static_block): New.
6633 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6634 lookup_symbol_aux_local, calling block_static_block instead.
6635 (lookup_symbol_aux_local): Delete 'static_block' argument.
6637 2003-05-19 David Carlton <carlton@bactrian.org>
6639 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6641 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6643 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6644 register numbers mapping.
6646 2003-05-18 Adam Fedor <fedor@gnu.org>
6648 * symtab.c (completion_list_objc_symbol): New function.
6649 (make_symbol_completion_list): Use it to add ObjC symbols
6650 when looking though the list.
6651 (language_search_unquoted_string): New function.
6652 (make_file_symbol_completion_list): Use it.
6654 2003-05-18 Andreas Schwab <schwab@suse.de>
6656 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6658 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6659 as m68k_linux_extract_return_value.
6660 (DEPRECATED_STORE_RETURN_VALUE): Define as
6661 m68k_linux_store_return_value.
6662 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6663 m68k_linux_extract_struct_value_address.
6664 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6665 get_next_frame, get_frame_base, get_frame_pc.
6666 (m68k_linux_frame_saved_pc): Use get_frame_base.
6667 (m68k_linux_extract_return_value): New function.
6668 (m68k_linux_store_return_value): New function.
6669 (m68k_linux_extract_struct_value_address): New function.
6670 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6672 * c-exp.y (typebase): Remove duplicate occurence of
6673 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6674 of lookup_signed_typename.
6676 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6678 * dwarf2loc.c (find_location_expression): Change type of second
6679 argument to `size_t *'.
6680 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6683 2003-05-18 David Carlton <carlton@bactrian.org>
6685 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6686 'linkage_name'. Add comment.
6687 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6689 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6690 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6691 (lookup_block_symbol): Ditto.
6693 2003-05-16 Andrew Cagney <cagney@redhat.com>
6695 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6696 * gdbarch.h, gdbarch.c: Re-generate.
6697 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6698 * TODO (REGISTER_BYTES): Delete reference.
6699 * alpha-tdep.c (alpha_gdbarch_init): Update.
6700 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6701 * x86-64-tdep.c (x86_64_init_abi): Update.
6702 * vax-tdep.c (vax_gdbarch_init): Update.
6703 * v850-tdep.c (v850_gdbarch_init): Update.
6704 * sparc-tdep.c (sparc_gdbarch_init): Update.
6705 * sh-tdep.c (sh_gdbarch_init): Update.
6706 * s390-tdep.c (s390_gdbarch_init): Update.
6707 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6708 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6709 (ns32k_gdbarch_init_32382): Update.
6710 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6711 * mcore-tdep.c (mcore_gdbarch_init): Update.
6712 * m68k-tdep.c (m68k_gdbarch_init): Update.
6713 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6714 * ia64-tdep.c (ia64_gdbarch_init): Update.
6715 * i386-tdep.c (i386_gdbarch_init): Update.
6716 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6717 * hppa-tdep.c (hppa_gdbarch_init): Update.
6718 * h8300-tdep.c (h8300_gdbarch_init): Update.
6719 * frv-tdep.c (frv_gdbarch_init): Update.
6720 * cris-tdep.c (cris_gdbarch_init): Update.
6721 * avr-tdep.c (avr_gdbarch_init): Update.
6722 * arm-tdep.c (arm_gdbarch_init): Update.
6723 * sparc-tdep.c (sparc_pop_frame): Update.
6724 * rs6000-tdep.c (rs6000_pop_frame): Update.
6725 * remote.c (init_remote_state): Update.
6726 (remote_prepare_to_store): Update.
6727 * remote-vx.c (vx_prepare_to_store): Update.
6728 * remote-sds.c (sds_fetch_registers): Update.
6729 (sds_prepare_to_store): Update.
6730 * remote-array.c: Update.
6731 * regcache.c (init_legacy_regcache_descr): Update.
6732 (init_regcache_descr): Update.
6733 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6734 (mips_o64_extract_return_value): Update.
6735 * irix5-nat.c (fetch_core_registers): Update.
6736 * irix4-nat.c (fetch_core_registers): Update.
6737 * i386-tdep.h: Update.
6738 * hppa-tdep.c (pa_do_registers_info): Update.
6739 (pa_do_strcat_registers_info): Update.
6740 * cris-tdep.c (cris_register_bytes_ok): Update.
6741 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6742 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6743 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6744 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6745 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6746 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6747 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6748 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6749 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6750 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6751 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6752 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6753 (REGISTER_BYTES_OK): Update.
6754 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6755 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6757 2003-05-16 Ian Lance Taylor <ian@airs.com>
6759 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6760 (vax_print_insn, print_insn_arg): Remove static functions.
6761 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6762 print_insn_vax from opcodes library.
6763 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6765 2003-05-15 Andrew Cagney <cagney@redhat.com>
6767 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6768 * target.h (memory_breakpoint_from_pc): Delete declaration.
6769 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6770 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6771 * monitor.c (monitor_insert_breakpoint): Use
6772 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6773 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6774 * gdbarch.h, gdbarch.c: Re-generate.
6775 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6776 (sparc_gdbarch_init): Set breakpoint_from_pc to
6777 sparc_breakpoint_from_pc.
6778 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6779 (BREAKPOINT_FROM_PC): Define.
6780 (sparc_breakpoint_from_pc): Declare.
6781 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6782 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6783 (BREAKPOINT_FROM_PC): Define.
6784 (BREAKPOINT): Delete macro.
6785 * target.h: Update comment.
6786 * s390-tdep.c (s390_gdbarch_init): Update comments.
6787 * remote.c: Update comments.
6788 * remote-mips.c: Update comments.
6789 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6790 * mem-break.c: Update comment.
6791 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6792 (ia64_memory_insert_breakpoint): Update.
6793 * config/sparc/tm-sparc.h: Update comment.
6794 * config/pa/tm-hppa64.h: Update comment.
6795 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6796 (rs6000_breakpoint_from_pc): Update.
6797 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6798 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6799 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6800 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6801 (mips_breakpoint_from_pc): Update.
6802 (mips_dump_tdep): Update.
6804 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6805 * minsyms.c (lookup_minimal_symbol): Inline
6806 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6808 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6809 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6810 * p-lang.c (pascal_printstr): Ditto.
6811 * objc-lang.c (objc_printstr): Ditto.
6812 * m2-lang.c (m2_printstr): Ditto.
6813 * jv-valprint.c (java_print_value_fields): Ditto.
6814 * f-lang.c (f_printstr): Ditto.
6815 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6816 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6817 for repeat_count_threshold.
6818 * Makefile.in (cp-valprint.o): Update dependencies.
6820 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6822 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6823 (examine_prologue): Support looking through leaf functions, knowing
6824 they start with mov r2,r12. Support skipping over indirect stores
6825 of the input registers. Upon hitting a non-nop branch instruction
6826 or predicated instruction, bail out by setting lim_pc to the current
6827 pc value in the loop. At the end, if the lim_pc value is still
6828 beyond our calculated value and we have trust_limit set,
6829 use the lim_pc value.
6831 2003-05-15 Andrew Cagney <cagney@redhat.com>
6833 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6834 generic_find_dummy_frame.
6835 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6836 (deprecated_generic_find_dummy_frame): Update.
6837 (deprecated_read_register_dummy): Update.
6838 * frame.c (deprecated_generic_get_saved_register): Update.
6840 2003-05-15 Theodore A. Roth <troth@openavr.org>
6842 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6843 (avr_gdbarch_init): Set breakpoint_from_pc method.
6845 2003-05-15 Andrew Cagney <cagney@redhat.com>
6847 * regcache.c (build_regcache): Set deprecated_register_valid
6849 (deprecated_grub_regcache_for_register_valid): Delete function.
6850 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6853 2003-05-15 David Carlton <carlton@bactrian.org>
6855 Committed by Elena Zannoni <ezannoni@redhat.com>
6856 * symtab.c (lookup_symbol_aux): Delete calls to
6857 lookup_symbol_aux_minsyms.
6858 (lookup_symbol_aux_minsyms): Comment out function and
6859 prototype. Delete lookup by mangled name.
6861 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6863 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6864 correctly indicate an empty stack and ``stack_allocated'' to the
6865 indicate the number of elements initially allocated.
6866 (dwarf_expr_grow_stack): Simplify method for computing new
6867 stack size. Don't loop infinitely if ``stack_len'' is zero.
6868 (execute_stack_op): Move ``ctx->in_reg'' initialization
6869 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6870 be used in conjuction with DW_OP_piece. Revise error message
6873 2003-05-14 Theodore A. Roth <troth@openavr.org>
6875 * MAINTAINERS: Update my email address.
6876 * avr-tdep.c: Ditto.
6878 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6880 * symtab.h (enum domain_enum): Rename from namespace_enum.
6881 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6882 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6883 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6884 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6885 TYPES_NAMESPACE, METHODS_NAMESPACE.
6886 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6887 (struct symbol, struct partial_symbol): Rename field
6888 'namespace_enum namespace' to 'domain_enum domain'.
6889 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6890 Delete old define kludge for namespace.
6892 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6893 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6894 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6895 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6896 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6897 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6898 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6899 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6900 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6901 occurrences of the above.
6903 2003-05-14 Ian Lance Taylor <ian@airs.com>
6905 * Makefile.in (install-only): Use $(SHELL) when running
6908 2003-05-13 Ian Lance Taylor <ian@airs.com>
6910 * MAINTAINERS (write after approval): Add myself.
6912 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6913 second and third arguments.
6914 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6915 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6917 2003-05-13 Andrew Cagney <cagney@redhat.com>
6919 * defs.h (store_address): Delete declaration.
6920 findvar.c (store_address): Delete function.
6921 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6922 store_unsigned_integer.
6923 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6924 * v850-tdep.c (v850_push_arguments): Ditto.
6925 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6926 * sh-tdep.c (sh64_get_saved_register): Ditto.
6927 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6928 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6929 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6930 (mips_get_saved_register): Ditto.
6931 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6932 (find_func_descr, ia64_push_arguments): Ditto.
6933 * i386-tdep.c (i386_push_arguments): Ditto.
6934 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6935 * frv-tdep.c (frv_push_arguments): Ditto.
6936 * frame.c (legacy_saved_regs_prev_register): Ditto.
6937 (deprecated_generic_get_saved_register): Ditto.
6938 * findvar.c (unsigned_address_to_pointer): Ditto.
6939 * dwarf2read.c (dwarf2_const_value): Ditto.
6940 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6941 * alpha-tdep.c (alpha_push_arguments): Ditto.
6943 2003-05-12 J. Brobecker <brobecker@gnat.com>
6945 * NEWS: Mention that the hppa-hpux port has been partially
6946 multiarched (32bit ABIT only, so far).
6948 2003-05-11 Andrew Cagney <cagney@redhat.com>
6950 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6951 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6952 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6953 sim/testsuite/sim/arm/misaligned2.ms, and
6954 sim/testsuite/sim/arm/misaligned3.ms.
6955 * disasm.h (struct ui_file): Add opaque struct declaration.
6956 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6957 * frame.h (struct ui_file): Ditto.
6959 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6961 * value.h: Pretty print.
6963 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6965 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6967 2003-05-08 Andrew Cagney <cagney@redhat.com>
6969 * regcache.h (max_register_size): Delete declaration.
6970 * regcache.c (max_register_size): Delete function.
6971 (struct regcache_descr): Delete field "max_register_size".
6972 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6973 registers fit in MAX_REGISTER_SIZE.
6974 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6975 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6976 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6977 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6978 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6979 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6980 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6981 * dve3900-rom.c, hppa-tdep.c: Ditto.
6983 2003-05-08 David Carlton <carlton@math.stanford.edu>
6985 * valops.c (push_word): Fix typo.
6987 2003-05-08 Andrew Cagney <cagney@redhat.com>
6989 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6990 * gdbarch.h: Re-generate.
6991 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6992 (legacy_max_register_raw_size): Delete declaration.
6993 * regcache.c (legacy_max_register_raw_size): Delete function.
6994 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6995 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6996 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6997 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6998 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6999 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7000 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7001 * findvar.c, dwarf2cfi.c: Ditto.
7003 2003-05-08 Andrew Cagney <cagney@redhat.com>
7005 * mips-tdep.c (read_signed_register): New function, moved to here
7007 (read_signed_register_pid): Ditto.
7008 * regcache.c (read_signed_register_pid): Delete function, moved to
7010 (read_signed_register): Ditto.
7011 * regcache.h (read_signed_register): Delete declaration.
7012 (read_signed_register_pid): Delete declaration.
7014 2003-05-08 Andrew Cagney <cagney@redhat.com>
7016 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7017 * gdbarch.h: Re-generate.
7018 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7019 (legacy_max_register_virtual_size): Delete declaration.
7020 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7021 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7022 * tracepoint.c (memrange_sortmerge): Ditto.
7023 * sparc-tdep.c (sparc_print_registers): Ditto.
7024 * regcache.c (legacy_max_register_virtual_size): Delete function.
7026 2002-05-08 J. Brobecker <brobecker@gnat.com>
7028 * fork-child.c (escape_bang_in_quoted_argument): New function.
7029 (fork_inferior): Escape '!' characters in quoted arguments
7032 2003-05-08 J. Brobecker <brobecker@gnat.com>
7034 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7035 the language of the CU is not currently supported by GDB.
7037 2003-05-08 J. Brobecker <brobecker@gnat.com>
7039 * defs.h (language): Add language_minimal enum value.
7040 * c-lang.c (minimal_language_defn): New language definition.
7041 (_initialize_c_language): Add the new minimal language to the list
7042 of languages known to GDB.
7044 2003-05-08 Kevin Buettner <kevinb@redhat.com>
7046 * frame.c (get_frame_type): Don't attempt to lazily initialize
7047 frame's unwinder for legacy frames.
7049 2003-05-07 Andrew Cagney <cagney@redhat.com>
7051 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7052 and "regcache" parameters.
7053 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7055 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7057 * dwarf2read.c (dwarf_decode_lines): Only use output of
7058 check_cu_functions() when calling record_line(). Do not update
7059 the current address.
7061 2003-05-07 Andrew Cagney <cagney@redhat.com>
7063 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7066 2003-05-07 Jim Blandy <jimb@redhat.com>
7068 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7069 'maint info symtabs' and 'maint info psymtabs'.
7070 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7071 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7072 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7073 Declarations updated.
7074 * maint.c (maintenance_list_command): Delete.
7075 (_initialize_maint_cmds): Update calls to add_cmd.
7076 * gdbcmd.h (maintenancelistlist): Delete declaration.
7077 * cli/cli-cmds.c (maintenancelistlist): Delete.
7078 (init_cmd_lists): Don't initialize it.
7079 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7081 2003-05-07 Andrew Cagney <cagney@redhat.com>
7083 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7085 (d10v_print_registers_info): Update.
7086 (d10v_dmap_register, d10v_imap_register): Delete functions.
7087 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7088 and "imap_register".
7089 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7090 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7091 * arch-utils.c (generic_remote_translate_xfer_address): Add
7092 "regcache" and "gdbarch" parameters.
7093 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7094 parameter. Change class to multi-arch.
7095 * gdbarch.h, gdbarch.c: Re-generate.
7096 * remote.c (remote_xfer_memory): Use
7097 gdbarch_remote_translate_xfer_address.
7099 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7101 * infrun.c (prev_pc): Move declaration ahead of proceed().
7102 (proceed): Refresh prev_pc value before resuming.
7103 (stop_stepping): Remove code to refresh prev_pc.
7105 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7107 * nto-tdep.c: Removed stray comment.
7109 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7111 * i386-nto-tdep.c: Fix old K&R function definitions.
7112 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7113 Also change add_show_from_set() call to add_setshow_cmd().
7114 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7116 2003-05-05 Andrew Cagney <cagney@redhat.com>
7118 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7119 (fprint_dummy_frames): New function.
7120 (maintenance_print_dummy_frames): New function.
7121 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7122 * frame.c (fprint_frame_id): Make global.
7123 * frame.h (fprint_frame_id): Declare.
7124 * Makefile.in (dummy-frame.o): Update dependencies.
7126 2003-05-05 Andrew Cagney <cagney@redhat.com>
7128 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7129 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7130 SIZEOF_CALL_DUMMY_WORDS.
7131 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7132 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7133 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7134 CALL_DUMMY_BREAKPOINT_OFFSET.
7135 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7136 CALL_DUMMY_START_OFFSET.
7137 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7138 * gdbarch.h, gdbarch.c: Re-generate.
7139 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7140 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7141 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7142 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7143 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7144 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7145 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7146 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7147 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7148 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7149 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7150 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7151 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7152 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7153 * config/sparc/tm-sparc.h: Update.
7155 2003-05-05 Kris Warkentin <kewarken@qnx.com>
7157 * configure.tgt: Add i[3456]86-*-nto*.
7158 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7159 * nto-tdep.c: New file. Neutrino target support routines.
7160 * nto-tdep.h: New file. Neutrino target header.
7161 * config/tm-qnxnto.h: New file.
7162 * config/i386/i386nto.mt: New file.
7163 * config/i386/tm-i386nto.h: New file.
7165 2003-05-04 Andrew Cagney <cagney@redhat.com>
7167 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7168 (load_infrun_state): Ditto.
7169 (struct thread_info): Drop "prev_func_name" field.
7170 * thread.c (load_infrun_state): Update.
7171 (save_infrun_state): Update.
7172 * infrun.c (prev_func_name): Delete variable.
7173 (init_wait_for_inferior): Do not clear prev_func_name.
7174 (stop_stepping, keep_going, context_switch): Do not swap
7176 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7177 instead of PC_IN_SIGTRAMP.
7179 2003-05-04 Andrew Cagney <cagney@redhat.com>
7181 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7182 REGISTER_BYTE with register_offset_hack.
7183 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7184 that REGISTER_BYTE is consistent with the regcache.
7185 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7186 * gdbarch.h, gdbarch.c: Regenerate.
7188 2003-05-04 Mark Kettenis <kettenis@gnu.org>
7190 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7191 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7193 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7195 2003-05-03 J. Brobecker <brobecker@gnat.com>
7197 From Thierry Schneider <tpschneider1@yahoo.com>
7198 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7199 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7200 (mi-cmd-symbol.o): Add rule.
7202 2003-05-03 Andrew Cagney <cagney@redhat.com>
7204 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7205 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7206 * gdbarch.h, gdbarch.c: Re-generate.
7207 * d10v-tdep.c (d10v_push_dummy_code): New function.
7208 (d10v_gdbarch_init): Set push_dummy_code.
7209 * infcall.c (legacy_push_dummy_code): New function.
7210 (generic_push_dummy_code): New function.
7211 (push_dummy_code): New function.
7212 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7213 instead of dummy_addr, to push_dummy_call. Move call to
7214 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7216 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7218 2003-05-03 Andrew Cagney <cagney@redhat.com>
7220 * disasm.h (print_insn): Declare.
7221 * disasm.c (init_gdb_disassemble_info): New function.
7222 (gdb_disassembly): Call init_gdb_disassemble_info.
7223 (gdb_print_insn): New function.
7224 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7225 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7226 * mcore-tdep.c: Include "disasm.h"
7227 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7228 * d10v-tdep.c: Include "disasm.h".
7229 (display_trace): Call gdb_print_insn, instead of print_insn.
7230 (print_insn): Delete function.
7231 * printcmd.c: Include "disasm.h".
7232 (print_insn): Delete function.
7233 (print_formatted): Call gdb_print_insn, instead of print_insn.
7234 * Makefile.in (printcmd.o): Update dependencies.
7235 (mcore-tdep.o, d10v-tdep.o): Ditto.
7237 2003-05-02 Andrew Cagney <cagney@redhat.com>
7239 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7240 PC_REGNUM, re-indent.
7241 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7242 PC_REGNUM isn't set.
7244 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7245 * gdbarch.h, gdbarch.c: Re-generate.
7246 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7247 register_virtual_size, pc_regnum, or register_bytes.
7248 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7249 (d10v_register_type): Use D10V_PC_REGNUM.
7250 (d10v_print_registers_info, d10v_read_pc): Ditto.
7251 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7252 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7254 2003-05-02 David Carlton <carlton@bactrian.org>
7256 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7257 the name with mstrsave.
7259 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7261 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7262 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7263 (host_charset_name, target_charset_name): New vars for use by
7265 (host_charset_enum, target_charset_enum): New enums for set/show
7267 (set_charset_sfunc, set_host_charset_sfunc,
7268 set_target_charset_sfunc): New functions.
7269 (set_host_charset, set_target_charset): Make static.
7270 (list_charsets, set_host_charset_command,
7271 set_target_charset_command): Delete functions.
7272 (show_charset_command): Rewrite as....
7273 (show_charset): Hook this up with the set/show command mechanism.
7274 (_initialize_charset): Change names of charsets to match the
7275 set/show enums. Use host_charset_name and target_charset_name.
7276 Use set/show mechanism for charset, host-charset, target-charset
7277 commands. Do not make 'show host-charset' and 'show
7278 target-charset' be aliases of 'show charset'.
7280 * charset.h (set_host_charset, set_target_charset): Don't export,
7281 they are not used outside the file.
7283 2003-05-01 Andrew Cagney <cagney@redhat.com>
7285 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7286 (gdb_disassembly): Make "di" non static, always initialize and
7287 cleanup. Always use dis_asm_read_memory.
7288 (gdb_dis_asm_read_memory): Delete function.
7290 2003-05-01 Andrew Cagney <cagney@redhat.com>
7292 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7293 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7295 2003-04-30 Andrew Cagney <cagney@redhat.com>
7297 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7298 "tm_print_insn_info".
7299 (TARGET_PRINT_INSN_INFO): Delete macro.
7300 (dis_asm_read_memory): Delete function declaration.
7301 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7302 (tm_print_insn_info): Delete variable definition.
7303 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7304 * gdbarch.h, gdbarch.c: Re-generate.
7305 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7306 "deprecated_tm_print_insn_info".
7307 * mcore-tdep.c (mcore_dump_insn): Ditto.
7308 * mips-tdep.c (mips_gdbarch_init): Ditto.
7309 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7310 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7311 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7312 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7313 instead of TARGET_PRINT_INSN_INFO, add comment.
7314 * s390-tdep.c (s390_get_frame_info): Instead of
7315 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7316 (s390_check_function_end, s390_is_sigreturn): Ditto.
7317 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7318 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7319 * disasm.c: Include "gdbcore.h".
7320 (_initialize_disasm): New function, initialize
7321 "deprecated_tm_print_insn_info".
7322 (deprecated_tm_print_insn_info): New variable.
7323 (dis_asm_read_memory): Moved from "corefile.c", made static.
7324 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7325 * Makefile.in (disasm.o): Update dependencies.
7327 2003-04-30 Andrew Cagney <cagney@redhat.com>
7329 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7331 2003-04-29 Adam Fedor <fedor@gnu.org>
7333 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7334 * infcall.c (find_function_addr): Make non-static.
7335 * infcall.h (find_function_addr): Declare.
7336 * Makefile.in (eval.o): Update dependencies.
7338 2003-04-28 Adam Fedor <fedor@gnu.org>
7340 * symtab.c (symbol_find_demangled_name): Check for and demangle
7342 (symbol_init_demangled_name): Init for language_objc as well.
7344 2003-04-28 Andrew Cagney <cagney@redhat.com>
7346 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7347 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7348 * gdbarch.h, gdbarch.c: Re-generate.
7349 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7350 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7351 * inferior.h (deprecated_read_fp): Rename read_fp.
7352 (generic_target_read_fp): Delete declaration.
7353 * regcache.c (generic_target_read_fp): Delete function.
7354 (deprecated_read_fp): Replace read_fp, use
7355 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7356 * d10v-tdep.c (d10v_read_fp): Delete function.
7357 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7359 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7360 deprecated_target_read_fp to generic_target_read_fp.
7361 * sh-tdep.c (sh_gdbarch_init): Ditto.
7362 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7363 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7364 * frv-tdep.c (frv_gdbarch_init): Ditto.
7366 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7367 deprecated_fp_regnum.
7368 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7369 * vax-tdep.c (vax_gdbarch_init): Ditto.
7370 * v850-tdep.c (v850_gdbarch_init): Ditto.
7371 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7372 * sh-tdep.c (sh_gdbarch_init): Ditto.
7373 * s390-tdep.c (s390_gdbarch_init): Ditto.
7374 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7375 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7376 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7377 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7378 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7379 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7380 * i386-tdep.c (i386_gdbarch_init): Ditto.
7381 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7382 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7383 * frv-tdep.c (frv_gdbarch_init): Ditto.
7384 * cris-tdep.c (cris_gdbarch_init): Ditto.
7385 * avr-tdep.c (avr_gdbarch_init): Ditto.
7386 * arm-tdep.c (arm_gdbarch_init): Ditto.
7387 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7389 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7390 * v850-tdep.c (v850_gdbarch_init): Ditto.
7391 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7392 * sh-tdep.c (sh_gdbarch_init): Ditto.
7393 * s390-tdep.c (s390_gdbarch_init): Ditto.
7394 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7395 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7396 * mips-tdep.c (mips_gdbarch_init): Ditto.
7397 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7398 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7399 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7400 * frv-tdep.c (frv_gdbarch_init): Ditto.
7401 * avr-tdep.c (avr_gdbarch_init): Ditto.
7402 * arm-tdep.c (arm_gdbarch_init): Ditto.
7404 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7405 DEPRECATED_FP_REGNUM.
7406 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7407 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7408 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7409 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7410 (sparc32_register_virtual_type): Ditto.
7411 * sh-tdep.c (sh64_frame_chain): Ditto.
7412 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7413 (sh_nofp_frame_init_saved_regs): Ditto.
7414 (sh64_nofp_frame_init_saved_regs): Ditto.
7415 (sh_fp_frame_init_saved_regs): Ditto.
7416 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7417 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7418 * procfs.c (procfs_fetch_registers): Ditto.
7419 (procfs_store_registers): Ditto.
7420 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7421 (store_inferior_registers, fetch_core_registers): Ditto.
7422 (fetch_kcore_registers, clear_regs): Ditto.
7423 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7424 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7425 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7426 * nlm/i386.c (do_status): Ditto.
7427 * mipsv4-nat.c (supply_gregset): Ditto.
7428 * mips-tdep.c: Ditto for comments.
7429 * mips-nat.c (fetch_inferior_registers): Ditto.
7430 (store_inferior_registers, fetch_core_registers): Ditto.
7431 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7432 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7433 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7434 (i386_do_pop_frame, i386_register_type): Ditto.
7435 * hppa-tdep.c (hppa_frame_chain): Ditto.
7436 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7437 (hppa_pop_frame, hppa_read_fp): Ditto.
7438 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7439 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7440 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7441 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7442 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7443 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7444 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7445 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7446 * blockframe.c: Ditto for comments.
7447 * arch-utils.h: Ditto for comments.
7448 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7449 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7450 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7451 * alpha-tdep.h: Ditto for comments.
7452 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7453 (alpha_cannot_store_register): Ditto.
7454 (alpha_push_dummy_frame): Ditto.
7455 * alpha-nat.c (supply_gregset): Ditto.
7457 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7458 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7459 * config/sparc/tm-sparc.h: Update comment.
7461 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7462 deprecated_read_fp instead of TARGET_READ_FP.
7463 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7464 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7465 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7466 deprecated_read_fp instead of read_fp.
7467 * s390-tdep.c (s390_push_arguments): Ditto.
7468 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7469 * frame.h: Ditto in comments.
7470 * frame.c (legacy_get_prev_frame): Ditto.
7471 * dummy-frame.c (dummy_frame_this_id): Ditto.
7472 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7474 2003-04-28 Andrew Cagney <cagney@redhat.com>
7476 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7477 * gdbarch.h, gdbarch.c: Re-generate.
7478 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7479 * vax-tdep.c (_initialize_vax_tdep): Update.
7480 * v850-tdep.c (_initialize_v850_tdep): Update.
7481 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7482 * s390-tdep.c (_initialize_s390_tdep): Update.
7483 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7484 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7485 * mips-tdep.c (_initialize_mips_tdep): Update.
7486 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7487 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7488 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7489 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7490 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7491 * frv-tdep.c (_initialize_frv_tdep): Update.
7492 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7493 (_initialize_cris_tdep): Update.
7494 * arch-utils.c (legacy_print_insn): Update.
7495 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7497 2003-04-26 Adam Fedor <fedor@gnu.org>
7499 * linespec.c (decode_objc): New function to decode ObjC calls
7500 (decode_line_1): Check for ObjC calls (using decode_objc)
7501 * Makefile (linespec.o): Update dependencies.
7503 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7505 * breakpoint.h (struct breakpoint_ops): New.
7506 (struct breakpoint): Add ops member.
7508 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7509 (mention): Use new breakpoint ops member.
7510 (set_raw_breakpoint): Initialize ops field to NULL.
7511 (print_exception_catchpoint, print_one_exception_catchpoint)
7512 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7513 (gnu_v3_exception_catchpoint_ops): New.
7514 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7516 2003-04-25 Adam Fedor <fedor@gnu.org>
7518 * Makefile.in (COMMON_OBS): Add objc-lang.o
7520 2003-04-25 Andrew Cagney <cagney@redhat.com>
7522 * d10v-tdep.c (print_insn): Delete function.
7523 (display_trace): Use TARGET_PRINT_INSN.
7524 (_initialize_d10v_tdep): Do not set tm_print_insn.
7525 (d10v_gdbarch_init): Set print_insn.
7527 2003-04-25 Andrew Cagney <cagney@redhat.com>
7529 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7530 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7531 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7532 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7533 (nr_dmap_regs, a0_regnum): ... new functions.
7534 (d10v_print_registers_info): Use a0_regnum, use register_size.
7535 (d10v_register_byte): Delete function.
7536 (d10v_register_raw_size): Delete function.
7537 (d10v_register_type): Use a0_regnum.
7538 (d10v_print_registers_info): Use a0_regnum.
7539 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7540 (d10v_gdbarch_init): Do not set register_byte or
7541 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7542 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7544 (trace_command): Use XCALLOC.
7545 (print_insn): Delete reference to tm_print_insn.
7546 (saved_regs_unwinder): Use store_unsigned_integer instead of
7548 * frame.h (FRAME_OBSTACK_CALLOC): Define
7550 2003-04-25 David Carlton <carlton@bactrian.org>
7552 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7554 2003-04-24 Adam Fedor <fedor@gnu.org>
7556 * objc-lang.c: Include "valprint.h"
7557 * Makefile.in (objc-lang.o): Update dependencies.
7559 2003-04-24 Adam Fedor <fedor@gnu.org>
7561 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7562 architecture dependant compilation and mark as unimplemented
7563 (until they get put in the gdbarch vector).
7565 2003-04-23 David Carlton <carlton@bactrian.org>
7567 * cp-support.c (cp_find_first_component): Accept 'operator' in
7570 2003-04-23 Andrew Cagney <cagney@redhat.com>
7572 * infcall.c (call_function_by_hand): Eliminate redundant
7573 indentation. Move "saved_async" and "old_cleanups" to where they
7576 2003-04-23 Andrew Cagney <cagney@redhat.com>
7578 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7579 and "buffer". Move the "name" code to where it is needed.
7581 2003-04-23 Andrew Cagney <cagney@redhat.com>
7583 * infcall.c (call_function_by_hand): Move variables "start_sp",
7584 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7585 code to ON_STACK switch branch.
7587 2003-04-23 Andrew Cagney <cagney@redhat.com>
7589 * infcall.c (call_function_by_hand): Make declaration of "i",
7590 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7593 2003-04-23 Andrew Cagney <cagney@redhat.com>
7595 * infcall.c (call_function_by_hand): Delete variable
7596 "n_method_args". Localize "param_type"'s declaration to the loop
7597 that it is used. Reinstate code assigning to said variable -
7598 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7599 Rationalize code using "param_type".
7601 2003-04-22 Andrew Cagney <cagney@redhat.com>
7603 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7604 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7605 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7606 to DEPRECATED_PUSH_RETURN_ADDRESS.
7608 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7610 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7611 on the DWARF2 register number prior to fetching a register.
7613 2003-04-22 J. Brobecker <brobecker@gnat.com>
7615 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7616 Update all the tests using SOFT_FLOAT considering the fact that
7617 this macro was always set to 0.
7618 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7619 considering the fact that this macro was always set to 0.
7620 * hppa-tdep.h (hppa_store_return_value): Likewise.
7621 (hppa_extract_return_value): Likewise.
7623 2003-04-22 J. Brobecker <brobecker@gnat.com>
7625 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7626 the hppa-pro target only.
7628 2003-04-21 J. Brobecker <brobecker@gnat.com>
7630 Ongoing multi-arch conversion effort for HP/UX:
7631 * config/pa/tm-hppa.h: Move all macro that are no longer
7632 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7633 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7635 2003-04-21 J. Brobecker <brobecker@gnat.com>
7637 * config/pa/tm-hppa.h: Obsolete a section that was only used
7640 2003-04-21 J. Brobecker <brobecker@gnat.com>
7642 Ongoing multi-arch conversion for HP/UX.
7643 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7644 if already defined (allows hppa64 to stay non-multiarched for now).
7645 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7647 2003-04-21 Andrew Cagney <cagney@redhat.com>
7649 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7651 2003-04-21 Andrew Cagney <cagney@redhat.com>
7653 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7654 "i386_num_mmx_regs".
7656 2003-04-21 Andrew Cagney <cagney@redhat.com>
7658 * infcall.c: New file.
7659 * infcall.h: New file.
7660 * valarith.c: Include "infcall.h".
7661 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7662 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7663 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7664 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7665 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7666 (SFILES): Add "infcall.c"
7667 (COMMON_OBS): Add "infcall.o".
7668 (infcall.o): Specify dependencies.
7669 * value.h (call_function_by_hand): Delete declaration.
7670 * inferior.h (run_stack_dummy): Delete declaration.
7671 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7672 (run_stack_dummy): Move to "infcall.c", merged into
7673 call_function_by_hand.
7674 * valops.c (call_function_by_hand): Moved to "infcall.c".
7675 (find_function_addr, value_arg_coerce): Ditto.
7676 (unwindonsignal_p, coerce_float_to_double): Ditto.
7677 (_initialize_valops): Move "set/show coerce-float-to-double", and
7678 "set/show unwindonsignal" commands to "infcall.c".
7679 * v850-tdep.c, target.h: Update comments.
7680 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7681 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7682 (sh64_init_extra_frame_info): Update comments.
7683 * mn10300-tdep.c: Update comments.
7684 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7685 * config/sparc/tm-sparc.h: Update comments.
7686 * breakpoint.h: Update comments.
7687 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7688 * arm-tdep.c: Update comment.
7690 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7692 * i386-tdep.c (i386_num_register_names): New variable.
7693 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7694 (MM0_REGNUM): Remove redundant parentheses in define.
7695 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7696 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7697 i386_mxcsr_regnum_p): Remove redundant parentheses.
7698 (i386_register_name): Use i386_num_register_names.
7700 * i386-tdep.c (i386_extract_return_value,
7701 i386_store_return_value): Correct check for availability of
7702 floating-point registers.
7704 * i386-tdep.c (i386_frame_num_args): Remove function.
7705 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7707 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7708 mmx_regnum_to_fp_regnum. Adjust all callers.
7710 * i386-tdep.c (i386_get_longjmp_target): Use
7711 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7712 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7715 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7717 * core-regset.c: Update comments to reflect reality. Re-order
7719 (fetch_core_registers): Use switch instead of if. Remove
7720 redundant prototype.
7722 2003-04-18 Jim Blandy <jimb@redhat.com>
7724 * s390-tdep.c (s390_frame_align): New function.
7725 (s390_gdbarch_init): Register it with the gdbarch object.
7727 2003-04-17 Richard Henderson <rth@redhat.com>
7729 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7731 2003-04-17 Michael Snyder <msnyder@redhat.com>
7732 Karen Bennet <bennet@redhat.com>
7734 Committed by Elena Zannoni <ezannoni@redhat.com>
7735 * gdb_gcore.sh: New script to create a core dump of a process.
7737 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7739 * values.c (value_being_returned): Don't fetch the return
7740 value if the return type is void.
7742 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7744 * thread-db.c: Reindented.
7746 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7748 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7749 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7776 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7778 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7779 the size of ``long double'' to 16, instead of 8.
7781 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7783 * i386-linux-nat.c: Add some whitespace to make things more
7785 (fetch_register, store_register, fetch_inferior_registers,
7786 store_inferior_registers): Get rid of assignment in if-statement.
7787 (store_register): Fix typo in error message.
7789 2003-04-16 Andrew Cagney <cagney@redhat.com>
7791 * utils.c (xmmalloc): Always allocate something, matches
7792 libiberty/xmalloc's semantics.
7793 (xmrealloc, xmcalloc): Ditto.
7795 2003-04-16 Andrew Cagney <cagney@redhat.com>
7797 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7799 (get_frame_type): Initialize unwind and type when needed.
7800 (get_frame_id, frame_register_unwind): Ditto.
7802 2003-04-16 Andrew Cagney <cagney@redhat.com>
7804 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7806 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7807 * sparcl-stub.c: Obsolete file.
7808 * config/sparc/tm-sparclet.h: Obsolete file.
7809 * sparclet-stub.c: Obsolete file.
7810 * sparclet-rom.c: Obsolete file.
7811 * sparcl-tdep.c: Obsolete file.
7812 * config/sparc/tm-sparclite.h: Obsolete file.
7813 * config/sparc/sparclite.mt: Obsolete file.
7814 * config/sparc/sparclet.mt: Obsolete file.
7815 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7816 sparc86x-*-* obsolete.
7818 2003-04-15 David Carlton <carlton@math.stanford.edu>
7820 * Makefile.in (SFILES): Add cp-namespace.c.
7821 (COMMON_OBS): Add cp-namespace.o.
7822 (block.o): Depend on gdb_obstack_h and cp_support_h.
7823 (buildsym.o): Depend on cp_support_h.
7824 (cp-namespace.o): New.
7825 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7826 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7827 (dwarf2read.o): Depend on cp_support_h.
7828 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7829 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7830 processing_current_namespace.
7831 (read_namespace): Update processing_current_namespace; check for
7832 anonymous namespaces.
7833 (dwarf2_name): New function.
7834 (dwarf2_extension): Ditto.
7835 * cp-support.h: Update copyright, contributors.
7836 Add inclusion guards.
7837 Add opaque declaration for structs obstack, block, symbol.
7838 (struct using_direct): New struct.
7839 Add declarations for cp_find_first_component,
7840 cp_entire_prefix_len, processing_has_namespace_info,
7841 processing_current_namespace, cp_is_anonymous,
7842 cp_add_using_directive, cp_initialize_namespace,
7843 cp_finalize_namespace, cp_set_block_scope,
7844 cp_scan_for_anonymous_namespaces.
7845 * cp-namespace.c: New file.
7846 * cp-support.c: Update copyright.
7847 Include ctype.h, gdb_assert.h, gdbcmd.h.
7848 New variable maint_cplus_cmd_list.
7849 (cp_find_first_component): New function.
7850 (cp_entire_prefix_len, maint_cplus_command)
7851 (first_component_command, _initialize_cp_support): Ditto.
7852 * buildsym.c: Include cp-support.h.
7853 New variable using_list.
7854 (add_symbol_to_list): Check for anonymous namespaces.
7855 (finish_block): Set block's scope.
7856 (start_symtab): Initialize C++ namespace support.
7857 (end_symtab): Finalize C++ namespace support.
7858 * block.h: Add opaque declarations for structs
7859 block_namespace_info, using_direct, and obstack.
7860 Add declarations for block_set_scope and block_set_using.
7861 (struct block): Add 'language_specific' member.
7862 (BLOCK_NAMESPACE): New macro.
7863 * block.c: Include gdb_obstack.h and cp-support.h.
7864 (struct block_namespace_info): New struct.
7865 (block_set_scope): New function.
7866 (block_set_using, block_initialize_namespace): Ditto.
7868 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7870 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7871 (locate_base): Return early if there aren't any link map offsets.
7872 (svr4_solib_create_inferior_hook): Warn if shared library support
7875 2003-04-14 David Carlton <carlton@math.stanford.edu>
7877 * symtab.c (symbol_set_names): Add prefix when storing Java names
7878 in hash table. Fix for PR java/1039.
7880 2003-04-14 David Carlton <carlton@math.stanford.edu>
7882 * symtab.c (symbol_set_names): Rename 'name' arg to
7883 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7884 * symtab.h: Change 'name' argument in declaration of
7885 symbol_set_names to 'linkage_name'.
7886 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7888 2003-04-14 Andrew Cagney <cagney@redhat.com>
7890 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7891 return the fully sign-extended register value.
7892 (get_frame_pointer): Ditto.
7893 (mips_pop_frame): Initialize "proc_desc" after checking for a
7896 2003-04-14 Andrew Cagney <cagney@redhat.com>
7898 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7899 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7900 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7901 (mips_push_register): Delete function.
7902 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7905 2003-04-14 Jim Blandy <jimb@redhat.com>
7907 * symmisc.c: #include "gdb_regex.h".
7908 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7910 * maint.c (maintenance_list_command): New function.
7911 (_initialize_maint_cmds): Register the above as commands.
7912 * symtab.h (maintenance_list_symtabs,
7913 maintenance_list_psymtabs): New declarations.
7914 * cli/cli-cmds.c (maintenancelistlist): New variable.
7915 (init_cmd_lists): Initialize it.
7916 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7917 * gdbcmd.h (maintenancelistlist): New declaration.
7918 * Makefile.in (symmisc.o): Update dependencies.
7920 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7922 * s390-nat.c: Include asm/types.h for addr_t.
7924 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7926 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7927 actually incoming type.
7929 2003-04-13 Andrew Cagney <cagney@redhat.com>
7931 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7932 get_next_frame and get_frame_saved_regs.
7934 2003-04-13 Andrew Cagney <cagney@redhat.com>
7936 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7937 of gdbarch_num_regs.
7939 2003-04-13 Andrew Cagney <cagney@redhat.com>
7941 * frame.h: Mention what replaced what in "struct frame_info".
7942 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7943 deprecated_update_frame_base_hack and
7944 deprecated_update_frame_pc_hack.
7945 * hppa-tdep.c: Ditto.
7947 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7949 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7950 to read_reg and update its comment. Remove regnum member.
7951 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7952 Don't call read_reg when setting in_reg. Call read_reg to get
7953 the frame base if it's in a register. Return the register number
7954 on the stack instead of in the context. Remove extra arguments
7956 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7957 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7958 the register number on the expression stack.
7959 (needs_frame_read_reg): Remove extra arguments.
7961 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7963 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7965 (execute_stack_op): All callers updated.
7966 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7967 * dwarf2loc.c (find_location_expression): New function.
7968 (dwarf_expr_frame_base): Call it.
7969 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7970 (dwarf2_tracepoint_var_ref): New function, broken out from
7971 locexpr_tracepoint_var_ref.
7972 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7974 (loclist_read_variable, loclist_read_needs_frame): New functions.
7975 (loclist_describe_location, loclist_tracepoint_var_ref): New
7977 (dwarf2_loclist_funcs): New struct location_funcs.
7978 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7979 (struct dwarf2_locexpr_baton): Add comments.
7980 (dwarf2_loclist_funcs): New extern.
7981 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7982 base_address and base_known.
7983 (dwarf_loc_buffer): New variable.
7984 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7985 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7986 (dwarf2_has_info): Initialize dwarf_loc_offset.
7987 (dwarf2_build_psymtabs): Read in .debug_loc.
7988 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7990 (psymtab_to_symtab_1): Likewise. Move base address calculation
7992 (dwarf2_get_pc_bounds): ... here. Use the base address from
7994 (dwarf2_symbol_mark_computed): Handle location lists.
7996 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7998 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7999 if the linkage name demangled successfully.
8001 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8003 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8004 disassmbly_flavour): Removed.
8006 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8008 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8010 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8012 2003-04-12 Andrew Cagney <cagney@redhat.com>
8014 * frame.h (struct frame_info): Move definition from here ...
8015 * frame.c (struct frame_info): ... to here.
8017 2003-04-12 Andrew Cagney <cagney@redhat.com>
8019 * gdbthread.h (save_infrun_state): Delete parameter
8021 (struct thread_info): Delete field "prev_func_start".
8022 (load_infrun_state): Ditto.
8023 * thread.c (load_infrun_state, save_infrun_state): Update.
8024 * infrun.c (prev_func_start): Delete variable.
8025 (context_switch, init_wait_for_inferior): Update.
8026 (stop_stepping, keep_going): Update.
8028 2003-04-12 Andrew Cagney <cagney@redhat.com>
8030 * gdbarch.sh: Add missing opaque declarations.
8031 * gdbarch.h: Regnerate.
8032 * symtab.h: Add missing opaque declarations.
8033 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8034 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8035 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8036 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8037 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8038 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8039 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8040 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8041 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8042 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8043 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8044 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8045 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8047 2003-04-11 Andrew Cagney <cagney@redhat.com>
8049 * frame.c (get_frame_id): Return this frame's "id".
8050 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8052 (legacy_saved_regs_this_id): Replace function body with
8054 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8055 FRAME_OBSTACK_ZALLOC.
8056 (create_new_frame): Mark the frame ID as valid.
8058 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
8060 * Makefile.in (libbfd_h): Added missing setting.
8061 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8062 according to the selected ABI.
8064 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8066 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8068 2003-04-11 Andrew Cagney <cagney@redhat.com>
8070 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8071 SAVED_PC_AFTER_CALL.
8072 * gdbarch.h, gdbarch.c: Regenerate.
8073 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8074 * x86-64-tdep.c (x86_64_init_abi): Update.
8075 * vax-tdep.c (vax_gdbarch_init): Update.
8076 * v850-tdep.c (v850_gdbarch_init): Update.
8077 * sparc-tdep.c (sparc_gdbarch_init): Update.
8078 * sh-tdep.c (sh_gdbarch_init): Update.
8079 * s390-tdep.c (s390_gdbarch_init): Update.
8080 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8081 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8082 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8083 * mips-tdep.c (mips_gdbarch_init): Update.
8084 * mcore-tdep.c (mcore_gdbarch_init): Update.
8085 * m68k-tdep.c (m68k_gdbarch_init): Update.
8086 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8087 * ia64-tdep.c (ia64_gdbarch_init): Update.
8088 (ia64_saved_pc_after_call): Update declaration.
8089 * i386ly-tdep.c (i386lynx_init_abi): Update.
8090 * i386-tdep.c (i386_gdbarch_init): Update.
8091 * hppa-tdep.c (hppa_gdbarch_init): Update.
8092 * h8300-tdep.c (h8300_gdbarch_init): Update.
8093 * frv-tdep.c (frv_gdbarch_init): Update.
8094 * cris-tdep.c (cris_gdbarch_init): Update.
8095 * avr-tdep.c (avr_gdbarch_init): Update.
8096 * arm-tdep.c (arm_gdbarch_init): Update.
8097 * alpha-tdep.c (alpha_gdbarch_init): Update.
8098 * ns32knbsd-nat.c (frame_num_args): Update.
8099 * ns32k-tdep.c (umax_frame_num_args): Update.
8100 * mips-tdep.c (mips_init_frame_pc_first): Update.
8101 * infrun.c (step_over_function): Update.
8102 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8103 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8104 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8105 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8106 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8107 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8108 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8109 * arch-utils.c (init_frame_pc_default): Update.
8110 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8111 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8114 2003-04-11 Andrew Cagney <cagney@redhat.com>
8116 * i387-tdep.c: Update copyright.
8117 (i387_to_double): Delete function.
8118 (double_to_i387): Delete function.
8120 2003-04-10 Andrew Cagney <cagney@redhat.com>
8122 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8123 frame's function's address. Simplify.
8124 (d10v_frame_unwind_cache): Check that the frame's function is
8127 2003-04-10 Jim Blandy <jimb@redhat.com>
8129 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8130 call to set_gdbarch_deprecated_push_arguments.
8132 2003-04-10 Andrew Cagney <cagney@redhat.com>
8134 * frame.c (fprint_frame_id): New function.
8135 (fprint_frame_type, fprint_frame): New function.
8136 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8137 (create_sentinel_frame, get_frame_id): Ditto.
8138 (frame_id_p, frame_id_eq): Ditto.
8139 (frame_id_inner, create_new_frame): Ditto.
8140 (legacy_get_prev_frame, get_prev_frame): Ditto.
8141 (deprecated_update_frame_pc_hack): Ditto.
8142 (frame_register_unwind): Ditto.
8143 (deprecated_update_frame_base_hack): Ditto.
8145 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8147 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8148 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8149 frame_chain function.
8150 * Makefile.in: Add dependencies due to above change.
8152 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8154 * blockframe.c (legacy_frame_chain_valid): Move call to
8155 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8158 2003-04-09 Andrew Cagney <cagney@redhat.com>
8160 * frame.h (struct frame_id): Replace "pc" and "base" with
8161 "stack_addr" and "code_addr". Update comments.
8162 (frame_id_build): Update parameter names and comment.
8163 (struct frame_info): Replace "id_p" and "id" with "this_id".
8164 * dummy-frame.c (dummy_frame_this_id): Update.
8165 * breakpoint.c (print_one_breakpoint): Update.
8166 * frame.c (get_frame_id): Update.
8167 (get_frame_base, frame_id_build): Update.
8168 (create_sentinel_frame, legacy_get_prev_frame): Update.
8169 (deprecated_update_frame_base_hack): Update.
8170 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8171 (frame_id_inner): Ditto.
8173 2003-04-09 Andrew Cagney <cagney@redhat.com>
8175 * defs.h (gdb_print_host_address): Make "addr" parameter a
8177 * utils.c (gdb_print_host_address): Update.
8179 2003-04-09 Kevin Buettner <kevinb@redhat.com>
8181 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8182 register number for R0 is 0.
8184 2003-04-09 J. Brobecker <brobecker@gnat.com>
8186 * frame.h (struct gdbarch): Add opaque structure definition
8187 to avoid a compilation warning on LynxOS 4.0.
8189 2003-04-09 Andrew Cagney <cagney@redhat.com>
8191 * frame.h (struct frame_info): Delete field "pc". Replace
8192 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8194 * frame.c (frame_pc_unwind): Update.
8195 (create_sentinel_frame): Do not set "pc".
8196 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8197 (get_frame_pc): Call frame_pc_unwind.
8198 (deprecated_update_frame_pc_hack): Update.
8199 (create_new_frame): Use "pc" not "->pc".
8201 2003-04-09 Andrew Cagney <cagney@redhat.com>
8203 * frame.c (get_frame_id): Eliminate code updating "frame".
8204 (legacy_get_prev_frame): Ditto.
8205 (get_frame_base): Return id.base directly.
8206 (deprecated_update_frame_base_hack): Update "id.base".
8207 * frame.h (struct frame_info): Delete field "frame".
8209 2003-04-09 Andrew Cagney <cagney@redhat.com>
8211 * NEWS: Mention that the "Sequent family" is obsolete.
8212 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8213 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8214 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8215 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8216 * config/i386/tm-ptx4.h: Obsolete file.
8217 * config/i386/tm-ptx.h: Obsolete file.
8218 * symm-tdep.c: Obsolete file.
8219 * config/i386/symmetry.mt: Obsolete file.
8220 * config/i386/tm-symmetry.h: Obsolete file.
8221 * symm-nat.c: Obsolete file.
8222 * config/i386/nm-symmetry.h: Obsolete file.
8223 * config/i386/xm-symmetry.h: Obsolete file.
8224 * config/i386/symmetry.mh: Obsolete file.
8225 * config/i386/nm-ptx4.h: Obsolete file.
8226 * config/i386/ptx4.mh: Obsolete file.
8227 * config/i386/ptx.mt: Obsolete file.
8228 * config/i386/ptx.mh: Obsolete file.
8229 * config/i386/xm-ptx4.h: Obsolete file.
8230 * config/i386/xm-ptx.h: Obsolete file.
8232 2003-04-09 Andrew Cagney <cagney@redhat.com>
8234 Obsolete mips*-*-mach3*.
8235 * NEWS: Mention that mips*-*-mach3* is obsolete.
8236 * m3-nat.c: Obsolete file.
8237 * config/nm-m3.h: Obsolete file.
8238 * config/mips/tm-mipsm3.h: Obsolete file.
8239 * config/mips/mipsm3.mt: Obsolete file.
8240 * config/mips/mipsm3.mh: Obsolete file.
8241 * config/mips/xm-mipsm3.h: Obsolete file.
8242 * mipsm3-nat.c: Obsolete file.
8243 * configure.host: Obsolete mips-dec-mach3*.
8244 * configure.tgt: Obsolete mips*-*-mach3*.
8246 2003-04-09 Andrew Cagney <cagney@redhat.com>
8248 * doublest.h: Update copyright.
8249 (deprecated_store_floating, deprecated_extract_floating): Rename
8250 store_floating and extract_floating. Update comments.
8251 * doublest.c: Update copyright.
8252 (extract_floating_by_length): Replace extract_floating.
8253 (store_floating_by_length): Replace store_floating.
8254 (deprecated_extract_floating): New function.
8255 (deprecated_store_floating): New function.
8256 (extract_typed_floating): Call extract_floating_by_length.
8257 (store_typed_floating): Call store_floating_by_length.
8258 * x86-64-tdep.c (x86_64_store_return_value): Update.
8259 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8260 (sh64_extract_return_value): Update.
8261 (sh_sh4_register_convert_to_virtual): Update.
8262 (sh_sh64_register_convert_to_virtual): Update.
8263 (sh_sh4_register_convert_to_raw): Update.
8264 (sh_sh64_register_convert_to_raw): Update.
8265 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8266 (rs6000_register_convert_to_raw): Update.
8267 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8268 (ia64_register_convert_to_raw): Update.
8269 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8270 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8271 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8272 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8273 (alpha_register_convert_to_raw): Update.
8275 2003-04-08 Andrew Cagney <cagney@redhat.com>
8277 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8278 * gdbarch.h, gdbarch.c: Re-generate.
8279 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8280 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8281 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8282 conditionally, use frame_pc_unwind as an alternative. Add
8284 * arch-utils.c (init_frame_pc_default): Only call
8285 SAVED_PC_AFTER_CALL when available.
8287 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8289 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8290 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8291 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8292 (start_remote): Ditto.
8293 (handle_inferior_event): Ditto.
8294 (save_inferior_status): Ditto.
8295 (restore_inferior_status): Ditto.
8296 * infcmd.c (attach_command): Ditto.
8297 * fork-child.c (startup_inferior): Ditto.
8298 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8299 * alpha-tdep.c (heuristic_proc_start): Ditto.
8300 * mips-tdep.c (heuristic_proc_start): Ditto.
8301 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8302 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8303 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8304 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8305 * remote-vx.c (vx_create_inferior): Ditto.
8307 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8309 * infrun.c (stop_soon_quietly): Make it an enum, to better
8310 override the default behavior of handle_inferior_event.
8311 (clear_proceed_status): Update uses of stop_soon_quietly to
8312 reflect that it is now an enum.
8313 (start_remote): Ditto.
8314 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8315 is set to handle the new GNU/Linux kernel behavior for
8316 attach/sigstop. Update uses of stop_soon_quietly.
8317 * inferior.h (enum stop_kind): New enum.
8318 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8319 Reset normal handle_inferior_event behavior, afterwards.
8320 * fork-child.c (startup_inferior): Update.
8321 * alpha-tdep.c (heuristic_proc_start): Update.
8322 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8323 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8324 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8325 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8326 * remote-vx.c (vx_create_inferior): Update.
8327 * mips-tdep.c (heuristic_proc_start): Update.
8329 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8331 * disasm.c (dump_insns): Move variables inside loop, or they will
8332 be freed more than once, causing wild memory corruptions.
8333 (gdb_disassembly): Look for the substring "-thread",
8334 instead of "-threads" in the target name, to make sure to find
8335 the 'multi-thread' target. Also, make sure we do the right thing
8336 with the "core" target.
8338 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8340 * mips-tdep.c (mips_print_fp_register): New function, created from
8341 do_fp_register_row(). Registers are now (also) printed as hex.
8342 Only one register is printed per row.
8343 (mips_print_register, do_fp_register_row): Print floating point
8344 registers with mips_print_fp_register().
8346 2003-04-06 Andrew Cagney <cagney@redhat.com>
8348 * valprint.h (inspect_it): Add extern declaration.
8349 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8350 (selectors_info, classes_info): Ditto.
8351 (find_objc_msgcall): Fix indentation.
8352 (objc_printstr): Delete extern declarations.
8354 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8356 2003-04-06 Andrew Cagney <cagney@redhat.com>
8358 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8360 * frame.c (legacy_saved_regs_this_id): Update.
8361 (legacy_get_prev_frame): Update.
8362 * xstormy16-tdep.c: Update comment.
8363 * sparc-tdep.c (sparc_frame_chain): Update comment.
8364 * blockframe.c (legacy_frame_chain_valid): Update.
8366 2003-04-06 Andrew Cagney <cagney@redhat.com>
8368 * valprint.c (val_print_type_code_int): Delete #ifdef
8369 PRINT_TYPELESS_INTEGER code.
8371 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8372 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8373 multi-arch definition.
8374 * gdbarch.h: Re-generate.
8376 2003-04-05 Andrew Cagney <cagney@redhat.com>
8378 Eliminate FRAME_FIND_SAVED_REGS.
8379 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8380 Change FSR parameter to a pointer.
8381 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8382 Assume FSR parameter is a pointer.
8383 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8385 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8386 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8387 saved_regs a pointer.
8388 (hppa_frame_saved_pc): Ditto.
8389 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8390 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8392 (restore_pc_queue): Make fsr a pointer.
8393 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8394 (hppa_frame_chain): Make saved_regs a pointer, call
8395 hppa_frame_init_saved_regs.
8396 * sparc-tdep.c: Include "gdb_assert.h".
8397 (sparc_frame_find_saved_regs): Replace internal_error with
8399 * remote-vxsparc.c (vx_read_register): Delete reference to
8400 FRAME_FIND_SAVED_REGS.
8401 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8402 * gdbarch.h: Regenerate.
8403 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8404 (deprecated_get_frame_saved_regs): Delete declaration.
8405 (struct frame_saved_regs): Delete definition.
8406 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8407 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8408 (hppa_frame_find_saved_regs): Delete declaration.
8409 (FRAME_FIND_SAVED_REGS): Delete macro.
8410 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8411 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8412 FRAME_FIND_SAVED_REGS in comment.
8414 2003-04-05 Andrew Cagney <cagney@redhat.com>
8416 * frame.c (frame_func_unwind, get_frame_func): New functions.
8417 * frame.h (get_frame_func, frame_func_unwind): Declare.
8418 (struct frame_info): Add field "prev_func" for caching the
8419 previous frame's function address.
8420 * arm-tdep.c (arm_frameless_function_invocation): Combine
8421 get_pc_function_start and get_frame_pc into get_frame_func.
8422 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8423 (sh64_nofp_frame_init_saved_regs): Ditto.
8424 * s390-tdep.c (s390_function_start): Ditto.
8425 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8426 (rs6000_frameless_function_invocation): Ditto.
8427 (rs6000_frame_saved_pc): Ditto.
8428 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8429 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8430 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8431 (i386_frame_init_saved_regs): Ditto.
8432 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8433 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8434 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8435 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8436 * blockframe.c (frameless_look_for_prologue): Ditto.
8438 2003-04-05 Andrew Cagney <cagney@redhat.com>
8440 * frame.c (legacy_get_prev_frame): Link prev to next at the
8441 function start. Update comments.
8443 2003-04-05 Andrew Cagney <cagney@redhat.com>
8445 * frame.c (get_frame_id): Update comment.
8446 (legacy_get_prev_frame): Update comment.
8447 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8448 * gdbarch.h: Regenerate.
8449 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8450 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8452 2003-04-05 Andrew Cagney <cagney@redhat.com>
8454 * stack.c (print_frame_info): Use get_frame_pc.
8456 2003-04-04 Andrew Cagney <cagney@redhat.com>
8458 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8459 the frame's type from the unwinder.
8460 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8461 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8462 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8463 (get_frame_base_address): Use get_frame_type.
8464 (get_frame_locals_address, get_frame_args_address): Ditto.
8465 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8466 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8467 (struct frame_info): Add comment explaining why the frame contains
8469 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8470 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8471 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8473 * frame-unwind.h: Include "frame.h".
8474 (struct frame_unwind): Add "type" field.
8475 * Makefile.in (frame_unwind_h): Add $(frame_h).
8477 2003-04-04 Andrew Cagney <cagney@redhat.com>
8479 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8480 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8481 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8483 (d10v_unwind_dummy_id): Use frame_id_build.
8484 * frame.c (find_frame_sal): Use get_frame_pc.
8485 (create_new_frame): Use deprecated_update_frame_pc_hack and
8486 deprecated_update_frame_base_hack.
8487 (create_sentinel_frame): Add comment about ->pc going away.
8488 (get_prev_frame): Add comment about ->pc going away.
8489 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8490 frame_id_build, deprecated_update_frame_pc_hack and
8491 deprecated_update_frame_base_hack.
8492 (select_frame): Use get_frame_pc.
8493 (legacy_saved_regs_this_id): Use frame_id_build.
8495 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8497 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8498 signed integer case.
8499 (classify_argument): Handle enumerations and references.
8501 2003-04-04 Andrew Cagney <cagney@redhat.com>
8503 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8506 2003-04-01 Adam Fedor <fedor@gnu.org>
8508 * gdb/objc-lang.c (selectors_info): Replace calls to
8509 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8510 SYMBOL_NATURAL_NAME.
8511 (classes_info, find_methods): Likewise.
8513 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8515 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8516 ``mach'' to the value determined by bfd_default_set_arch_mach().
8518 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8520 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8521 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8522 (mi-cmd-file.o): Update dependencies.
8524 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8526 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8527 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8529 2003-04-01 Adam Fedor <fedor@gnu.org>
8531 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8532 * language.h (struct language_defn): Add la_demangle.
8533 (language_demangle): Declare.
8534 * language.c (language_demangle): New function.
8535 (unk_lang_demangle): Likewise.
8536 (unknown_language_defn, auto_language_defn, local_language_defn):
8537 Add ukn_lang_demangle.
8538 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8539 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8540 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8541 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8542 * jv-lang.c (java_demangle): New function
8543 (java_language_defn): Use it for la_demangle element.
8544 * objc-lang.c (objc_demangle): Add options argument
8545 (objc_language_defn): Use objc_demangle for la_demangle element.
8546 * maint.c (maintenance_demangle): Replace switch with
8547 call to language_demangle.
8548 * utils.c (fprintf_symbol_filtered): Likewise.
8550 2003-04-01 Andrew Cagney <cagney@redhat.com>
8552 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8553 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8554 PRINT_TYPELESS_INTEGER.
8555 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8556 PUSH_RETURN_ADDRESS.
8558 2003-04-01 Andrew Cagney <cagney@redhat.com>
8560 * Makefile.in (d10v-tdep.o): Update dependencies.
8561 * d10v-tdep.c: Include "frame-base.h".
8562 (d10v_frame_unwind): Make constant.
8563 (d10v_frame_base_address): New function.
8564 (d10v_frame_base): New variable.
8565 (d10v_gdbarch_init): Set frame_base default.
8566 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8568 (d10v_frame_unwind_cache): Set and use "prev_sp".
8569 (d10v_frame_this_id): Use the previous frame's inner most stack
8570 address and this frame's func address for the frame ID. Use
8571 frame_id_build. Don't analyze beyond the current instruction.
8573 2003-04-01 Andrew Cagney <cagney@redhat.com>
8575 * frame.h (get_frame_locals_address, get_frame_args_address):
8576 Refer to the base address, instead of the address of the first
8579 2003-04-01 Andrew Cagney <cagney@redhat.com>
8581 Add frame debug info addresses:
8582 * frame-base.c: New file.
8583 * frame-base.h: New file.
8584 * frame.h (struct frame_base): Add opaque declaration.
8585 (get_frame_base): Update comment.
8586 (get_frame_base_address): Declare.
8587 (get_frame_locals_address): Declare.
8588 (get_frame_args_address): Declare.
8589 (struct frame_info): Add "base" and "base_cache". Update
8590 comments on the unwinder.
8591 * frame.c: Include "frame-base.h".
8592 (get_frame_locals_address): New function.
8593 (get_frame_base_address): New function.
8594 (get_frame_args_address): New function.
8595 * findvar.c (read_var_value): Use get_frame_locals_address and
8596 get_frame_args_address.
8597 * stack.c (frame_info): Use get_frame_locals_address and
8598 get_frame_args_address.
8599 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8600 moved to "frame-base.c".
8601 * printcmd.c (print_frame_nameless_args): Ditto.
8602 * symtab.h (address_class): Update comments.
8603 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8604 get_frame_base_address.
8605 * dwarf2expr.c (execute_stack_op): Ditto.
8606 * Makefile.in (frame_base_h): Define.
8607 (frame.o): Update dependencies.
8608 (frame-base.o): Add dependencies.
8609 (SFILES): Add frame-base.c.
8610 (COMMON_OBS): Add frame-base.o.
8612 2003-04-01 Andrew Cagney <cagney@redhat.com>
8614 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8615 CALL_DUMMY_LENGTH): Ditto.
8616 * gdbarch.c: Re-generate.
8617 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8618 (CALL_DUMMY_LENGTH): Delete macro.
8619 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8620 * arm-tdep.c (arm_gdbarch_init): Ditto.
8621 * avr-tdep.c (avr_gdbarch_init): Ditto.
8622 * cris-tdep.c (cris_gdbarch_init): Ditto.
8623 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8624 * frv-tdep.c (frv_gdbarch_init): Ditto.
8625 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8626 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8627 * i386-tdep.c (i386_gdbarch_init): Ditto.
8628 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8629 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8630 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8631 * mips-tdep.c (mips_gdbarch_init): Ditto.
8632 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8633 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8634 * s390-tdep.c (s390_gdbarch_init): Ditto.
8635 * sh-tdep.c (sh_gdbarch_init): Ditto.
8636 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8637 * v850-tdep.c (v850_gdbarch_init): Ditto.
8638 * vax-tdep.c (vax_gdbarch_init): Ditto.
8639 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8641 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8643 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8645 2003-04-01 Andrew Cagney <cagney@redhat.com>
8647 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8648 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8649 * gdbarch.h, gdbarch.c: Re-generate.
8650 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8651 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8652 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8653 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8654 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8655 * infcmd.c (run_stack_dummy): Simplify assuming
8656 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8657 * infrun.c (handle_inferior_event): Ditto.
8658 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8659 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8660 * arm-tdep.c (arm_gdbarch_init): Ditto.
8661 * avr-tdep.c (avr_gdbarch_init): Ditto.
8662 * cris-tdep.c (cris_gdbarch_init): Ditto.
8663 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8664 * frv-tdep.c (frv_gdbarch_init): Ditto.
8665 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8666 * i386-tdep.c (i386_gdbarch_init): Ditto.
8667 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8668 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8669 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8670 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8671 * mips-tdep.c (mips_gdbarch_init): Ditto.
8672 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8673 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8674 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8675 * s390-tdep.c (s390_gdbarch_init): Ditto.
8676 * sh-tdep.c (sh_gdbarch_init): Ditto.
8677 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8678 * v850-tdep.c (v850_gdbarch_init): Ditto.
8679 * vax-tdep.c (vax_gdbarch_init): Ditto.
8680 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8682 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8684 * symfile.c (symfile_relocate_debug_section): Update call to
8685 bfd_simple_get_relocated_section_contents.
8687 2003-03-31 Andrew Cagney <cagney@redhat.com>
8689 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8690 * gdbarch.h, gdbarch.c: Regenerate.
8691 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8692 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8694 * frame.h (generic_fix_call_dummy): Delete declaration.
8695 * dummy-frame.h: Update comment.
8696 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8697 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8699 * sh-tdep.c (sh_gdbarch_init): Ditto.
8700 * s390-tdep.c (s390_gdbarch_init): Ditto.
8701 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8702 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8703 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8704 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8705 * i386-tdep.c (i386_gdbarch_init): Ditto.
8706 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8707 * frv-tdep.c (frv_gdbarch_init): Ditto.
8708 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8709 * cris-tdep.c (cris_gdbarch_init): Ditto.
8710 * avr-tdep.c (avr_gdbarch_init): Ditto.
8711 * arm-tdep.c (arm_gdbarch_init): Ditto.
8713 2003-03-31 J. Brobecker <brobecker@gnat.com>
8715 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8716 (INIT_FRAME_AP): Likewise.
8717 (EXTRA_FRAME_INFO): Likewise.
8719 2003-03-31 Andrew Cagney <cagney@redhat.com>
8721 * gdbarch.sh: Include "symfile.h".
8722 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8723 * gdbarch.h, gdbarch.c: Re-generate.
8724 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8725 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8726 call_dummy_address, the default is at entry_point_address.
8727 * v850-tdep.c (v850_gdbarch_init): Ditto.
8728 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8729 * sh-tdep.c (sh_gdbarch_init): Ditto.
8730 * s390-tdep.c (s390_gdbarch_init): Ditto.
8731 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8732 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8733 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8734 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8735 * i386-tdep.c (i386_gdbarch_init): Ditto.
8736 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8737 * frv-tdep.c (frv_gdbarch_init): Ditto.
8738 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8739 * cris-tdep.c (cris_gdbarch_init): Ditto.
8740 * arm-tdep.c (arm_gdbarch_init): Ditto.
8742 2003-03-31 Andrew Cagney <cagney@redhat.com>
8744 * gdbarch.sh (CALL_DUMMY_P): Delete.
8745 * gdbarch.h, gdbarch.c: Re-generate.
8746 * inferior.h (CALL_DUMMY_P): Delete macro.
8747 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8748 * vax-tdep.c (vax_gdbarch_init): Update.
8749 * v850-tdep.c (v850_gdbarch_init): Update.
8750 * sparc-tdep.c (sparc_gdbarch_init): Update.
8751 * sh-tdep.c (sh_gdbarch_init): Update.
8752 * s390-tdep.c (s390_gdbarch_init): Update.
8753 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8754 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8755 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8756 * mips-tdep.c (mips_gdbarch_init): Update.
8757 * mcore-tdep.c (mcore_gdbarch_init): Update.
8758 * m68k-tdep.c (m68k_gdbarch_init): Update.
8759 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8760 * ia64-tdep.c (ia64_gdbarch_init): Update.
8761 * i386-tdep.c (i386_gdbarch_init): Update.
8762 * h8300-tdep.c (h8300_gdbarch_init): Update.
8763 * frv-tdep.c (frv_gdbarch_init): Update.
8764 * d10v-tdep.c (d10v_gdbarch_init): Update.
8765 * cris-tdep.c (cris_gdbarch_init): Update.
8766 * breakpoint.c (deprecated_frame_in_dummy): Update.
8767 * avr-tdep.c (avr_gdbarch_init): Update.
8768 * alpha-tdep.c (alpha_gdbarch_init): Update.
8769 * arm-tdep.c (arm_gdbarch_init): Update.
8770 * dummy-frame.c (dummy_frame_this_id): Update comments.
8771 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8772 * frame.c (legacy_get_prev_frame): Ditto.
8773 * valops.c (call_function_by_hand): Delete function.
8774 (hand_function_call): Rename to call_function_by_hand
8776 2003-03-30 Andrew Cagney <cagney@redhat.com>
8778 2002-11-10 Klee Dienes <kdienes@apple.com>
8779 * value.h (struct value): Update comment.
8781 2003-03-30 Andrew Cagney <cagney@redhat.com>
8783 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8785 (d10v_gdbarch_init): Do not set fp_regnum.
8787 * frame.c (get_frame_base): Force ID initialization.
8788 (get_prev_frame): Move computation of the frame ID from here ...
8789 (get_frame_id): ... to here.
8790 (legacy_get_prev_frame): Mark the frame ID as valid.
8791 * frame.h (struct frame_info): Add field "id_p".
8793 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8795 * i386-tdep.c (i386_store_struct_return): Removed.
8796 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8798 2003-03-30 Andrew Cagney <cagney@redhat.com>
8800 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8801 * gdbarch.h, gdbarch.c: Regenerate.
8802 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8803 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8804 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8805 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8806 * i386-tdep.c (i386_gdbarch_init): Ditto.
8807 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8808 * cris-tdep.c (cris_gdbarch_init): Ditto.
8809 * vax-tdep.c (vax_gdbarch_init): Ditto.
8810 * s390-tdep.c (s390_gdbarch_init): Ditto.
8811 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8812 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8813 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8814 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8815 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8816 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8817 * sparc-tdep.c (sparc_gdbarch_init): Update.
8818 * sh-tdep.c (sh_gdbarch_init): Update.
8819 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8820 * mips-tdep.c (mips_gdbarch_init): Update.
8821 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8822 * ia64-tdep.c (ia64_gdbarch_init): Update.
8823 * frv-tdep.c (frv_gdbarch_init): Update.
8824 * avr-tdep.c (avr_gdbarch_init): Update.
8825 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8826 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8827 instead of when push_dummy_call is not available.
8829 2003-03-30 Andrew Cagney <cagney@redhat.com>
8831 * infttrace.c: Include "gdbthread.h".
8832 (parent_attach_all): Fix function signature.
8833 (call_ptrace): Update call.
8834 * Makefile.in (infttrace.o): Update dependencies.
8836 2003-03-30 Andrew Cagney <cagney@redhat.com>
8838 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8839 PUSH_RETURN_ADDRESS.
8840 * gdbarch.h, gdbarch.c: Regenerate.
8841 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8842 * x86-64-tdep.c (x86_64_init_abi): Update.
8843 * v850-tdep.c (v850_gdbarch_init): Update.
8844 * sparc-tdep.c (sparc_gdbarch_init): Update.
8845 * sh-tdep.c (sh_gdbarch_init): Update.
8846 * s390-tdep.c (s390_gdbarch_init): Update.
8847 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8848 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8849 * mips-tdep.c (mips_gdbarch_init): Update.
8850 * mcore-tdep.c (mcore_gdbarch_init): Update.
8851 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8852 * ia64-tdep.c (ia64_gdbarch_init): Update.
8853 * i386-tdep.c (i386_gdbarch_init): Update.
8854 * h8300-tdep.c (h8300_gdbarch_init): Update.
8855 * frv-tdep.c (frv_gdbarch_init): Update.
8856 * cris-tdep.c (cris_gdbarch_init): Update.
8857 * avr-tdep.c (avr_gdbarch_init): Update.
8858 * arm-tdep.c (arm_gdbarch_init): Update.
8859 * valops.c (hand_function_call): Update.
8861 2003-03-29 Andrew Cagney <cagney@redhat.com>
8863 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8864 sizeof_call_dummy_words.
8865 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8867 * gdbarch.h: Regenerate.
8869 2003-03-29 Andrew Cagney <cagney@redhat.com>
8871 * infttrace.h: New file.
8872 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8873 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8874 (hpread_read_doc_function_type): Detect an initialized type1.
8875 (hpread_quick_traverse): Initialize mod_name_string.
8876 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8877 (som_solib_get_solib_by_pc): Declare.
8878 (so_lib_thread_start_addr): Declare.
8879 (no_shared_libraries): Declare.
8880 * somread.c (init_import_symbols): Make static. Add forward
8882 * config/pa/nm-hppah.h: Include "infttrace.h" for
8884 (hppa_insert_hw_watchpoint): Declare.
8885 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8886 * hppah-nat.c: Include "gdb_string.h".
8887 (parent_attach_all): Delete extern declaration, moved to
8889 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8891 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8892 * Makefile.in (infttrace_h): Define.
8893 (hpread.o): Update dependencies.
8894 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8895 * hppa-hpux-tdep.c: Include "gdb_string.h".
8896 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8897 * infrun.c (handle_inferior_event): Always initialize
8898 stepped_after_stopped_by_watchpoint. Add default and remove
8899 fallthrough in switch statement.
8900 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8902 (hppa_remove_hw_watchpoint): Ditto.
8904 2003-03-29 Andrew Cagney <cagney@redhat.com>
8906 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8909 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8911 * arm-tdep.c (arm_push_arguments): Delete.
8912 (struct stack_item): New type.
8913 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8914 (arm_store_struct_return): Delte.
8915 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8916 arm_push_arguments or arm_store_struct_return.
8918 2003-03-28 Andrew Cagney <cagney@redhat.com>
8920 * Makefile.in (d10v-tdep.o): Update dependencies.
8921 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8922 * d10v-tdep.c: Include "remote.h".
8923 (target_resume_hook): Delete extern declaration.
8924 (target_wait_loop_hook): Ditto.
8925 (tdisassemble_command): Eliminate assignment in "if" conditional.
8926 (d10v_ts2_register_sim_regno): Eliminate call to
8927 legacy_register_sim_regno.
8928 (d10v_ts3_register_sim_regno): Ditto.
8930 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8932 * thread.c: Reindented.
8934 * linux-proc.c: Ditto.
8936 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8938 * MAINTAINERS (write after approval): Add myself.
8940 2003-03-27 Theodore A. Roth <troth@openavr.org>
8942 * objc-exp.y: Add missing semi-colons.
8944 2003-03-27 Andrew Cagney <cagney@redhat.com>
8946 * regcache.c (write_sp): Delete function and references.
8947 * inferior.h (write_sp): Delete declaration.
8948 * valops.c (hand_function_call): Replace write_sp with
8950 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8951 (sparc_pop_frame): Ditto.
8953 2003-03-27 Andrew Cagney <cagney@redhat.com>
8955 * NEWS: Mention removal of support for hppa*-*-bsd* and
8956 hppa*-*-osf* natives, and hppa*-*-pro* target.
8957 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8958 * config/pa/xm-pa.h: Obsolete file.
8959 * config/pa/xm-hppab.h: Obsolete file.
8960 * config/pa/nm-hppab.h: Obsolete file.
8961 * config/pa/tm-hppab.h: Obsolete file.
8962 * config/pa/tm-hppao.h: Obsolete file.
8963 * config/pa/nm-hppao.h: Obsolete file.
8964 * config/pa/tm-pro.h: Obsolete file.
8965 * config/pa/hppaosf.mt: Obsolete file.
8966 * config/pa/hppaosf.mh: Obsolete file.
8967 * config/pa/hppapro.mt: Obsolete file.
8968 * config/pa/hppabsd.mt: Obsolete file.
8969 * config/pa/hppabsd.mh: Obsolete file.
8970 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8971 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8974 2003-03-27 Andrew Cagney <cagney@redhat.com>
8976 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8977 push_arguments. Don't set push_return_address or write_sp.
8978 (d10v_push_dummy_call): Replace d10v_push_arguments.
8979 (d10v_push_return_address, d10v_write_sp): Delete function,
8980 handled by push_dummy_call.
8982 2003-03-26 Andrew Cagney <cagney@redhat.com>
8984 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8985 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8986 regcache and dummy_addr parameters.
8987 * gdbarch.h, gdbarch.c: Re-generate.
8988 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8989 available; assume it will handle stack alignment and return
8990 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8991 legacy_push_arguments.
8992 (legacy_push_arguments): Rename default_push_arguments.
8993 * value.h (legacy_push_arguments): Rename default_push_arguments.
8994 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8995 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8996 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8997 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8998 * config/i386/tm-symmetry.h: Update.
8999 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9000 * x86-64-tdep.c (x86_64_init_abi): Update.
9001 * v850-tdep.c (v850_gdbarch_init): Update.
9002 * sparc-tdep.c (sparc_gdbarch_init): Update.
9003 * sh-tdep.c (sh_gdbarch_init): Update.
9004 * s390-tdep.c (s390_gdbarch_init): Update.
9005 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9006 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9007 * mips-tdep.c (mips_gdbarch_init): Update.
9008 * mcore-tdep.c (mcore_gdbarch_init): Update.
9009 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9010 * ia64-tdep.c (ia64_gdbarch_init): Update.
9011 * i386-tdep.c (i386_gdbarch_init): Update.
9012 * hppa-tdep.c (hppa_gdbarch_init): Update.
9013 * h8300-tdep.c (h8300_gdbarch_init): Update.
9014 * frv-tdep.c (frv_gdbarch_init): Update.
9015 * d10v-tdep.c (d10v_gdbarch_init): Update.
9016 * cris-tdep.c (cris_gdbarch_init): Update.
9017 * avr-tdep.c (avr_gdbarch_init): Update.
9018 * arm-tdep.c (arm_gdbarch_init): Update.
9019 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9020 * alpha-tdep.c (alpha_gdbarch_init): Update.
9022 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9024 * signals/signals.c (do_target_signal_to_host): Correct realtime
9027 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9029 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9030 (struct sal_chain, map_catch_names): Remove.
9031 (catch_exception_command_1): Don't call
9032 handle_gnu_4_16_catch_command.
9034 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9036 From Mark Dettinger <dettinge@de.ibm.com>:
9037 * dwarf2cfi.c (read_2u): Increment pointer by two.
9039 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9041 * signals/signals.c: Fix typos in last change.
9043 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9045 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9046 not already defined. Use __SIGRTMIN if available.
9047 (target_signal_from_host): Remove SIGRTMIN block.
9048 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9049 the signal is within the realtime range.
9051 2003-03-25 Adam Fedor <fedor@gnu.org>
9053 * Makefile.in (infrun.o): Add $(language_h)
9054 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9055 for language specific trampolines.
9056 * language.h (struct language_defn): Add skip_trampoline.
9057 (skip_language_trampoline): Declare.
9058 * language.c (unk_lang_trampoline, skip_language_trampoline):
9060 (unknown_language_defn, auto_language_defn, local_language_defn):
9061 Add ukn_lang_trampoline.
9062 * ada-lang.c (ada_language_defn): Add NULL for language
9063 specific skip_trampoline.
9064 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9065 scm-lang.c: Likewise.
9066 * objc-lang.c (objc_skip_trampoline): New function.
9067 (objc_language_defn): Add objc_skip_trampoline.
9069 2003-03-25 Andrew Cagney <cagney@redhat.com>
9071 * frame.c (get_prev_frame): Delay validating a frame's ID -
9072 non-NULL, didn't go backwards - until an attempt to unwind it to
9075 2003-03-25 Andrew Cagney <cagney@redhat.com>
9077 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9078 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9079 * gdbarch.h, gdbarch.c: Re-generate.
9080 * config/sparc/tm-sparc.h
9081 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9082 * sparc-tdep.c (sparc_gdbarch_init): Set
9083 deprecated_extra_stack_alignment_needed.
9084 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9085 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9086 extra_stack_alignment_needed.
9087 * v850-tdep.c (v850_gdbarch_init): Ditto.
9088 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9089 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9090 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9091 * cris-tdep.c (cris_gdbarch_init): Ditto.
9092 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9093 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9095 2003-03-25 Andrew Cagney <cagney@redhat.com>
9097 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9098 STORE_STRUCT_RETURN.
9099 * gdbarch.h, gdbarch.c: Regenerate.
9100 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9101 (d10v_push_arguments): Set the struct return register.
9102 (d10v_gdbarch_init): Update.
9103 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9104 * x86-64-tdep.c (x86_64_init_abi): Update.
9105 * vax-tdep.c (vax_gdbarch_init): Update.
9106 * v850-tdep.c (v850_gdbarch_init): Update.
9107 * sparc-tdep.c (sparc_gdbarch_init): Update.
9108 * sh-tdep.c (sh_gdbarch_init): Update.
9109 * s390-tdep.c (s390_gdbarch_init): Update.
9110 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9111 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9112 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9113 * mips-tdep.c (mips_gdbarch_init): Update.
9114 * mcore-tdep.c (mcore_gdbarch_init): Update.
9115 * m68k-tdep.c (m68k_gdbarch_init): Update.
9116 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9117 * ia64-tdep.c (ia64_gdbarch_init): Update.
9118 * i386-tdep.c (i386_gdbarch_init): Update.
9119 * hppa-tdep.c (hppa_gdbarch_init): Update.
9120 * h8300-tdep.c (h8300_gdbarch_init): Update.
9121 * frv-tdep.c (frv_gdbarch_init): Update.
9122 * cris-tdep.c (cris_gdbarch_init): Update.
9123 * avr-tdep.c (avr_gdbarch_init): Update.
9124 * arm-tdep.c (arm_gdbarch_init): Update.
9125 * alpha-tdep.c (alpha_gdbarch_init): Update.
9127 2003-03-25 Andrew Cagney <cagney@redhat.com>
9129 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9130 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9131 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9132 * gdbarch.h, gdbarch.c: Regenerate.
9133 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9134 call_dummy_stack_adjust_p.
9135 * vax-tdep.c (vax_gdbarch_init): Ditto.
9136 * v850-tdep.c (v850_gdbarch_init): Ditto.
9137 * sh-tdep.c (sh_gdbarch_init): Ditto.
9138 * s390-tdep.c (s390_gdbarch_init): Ditto.
9139 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9140 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9141 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9142 * mips-tdep.c (mips_gdbarch_init): Ditto.
9143 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9144 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9145 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9146 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9147 * i386-tdep.c (i386_gdbarch_init): Ditto.
9148 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9149 * frv-tdep.c (frv_gdbarch_init): Ditto.
9150 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9151 * cris-tdep.c (cris_gdbarch_init): Ditto.
9152 * avr-tdep.c (avr_gdbarch_init): Ditto.
9153 * arm-tdep.c (arm_gdbarch_init): Ditto.
9154 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9155 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9156 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9157 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9158 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9159 call_dummy_stack_adjust_p.
9160 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9161 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9162 * sparc-tdep.c (sparc32_push_arguments): Update.
9163 * valops.c (hand_function_call): Update.
9165 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
9167 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9168 set_gdbarch_char_signed.
9170 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9173 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9175 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9177 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9178 (_initialize_arm_tdep): Don't set tm_print_insn.
9180 2003-03-24 Adam Fedor <fedor@gnu.org>
9182 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9183 * objc-lang.h: Add multiple inclusion protection.
9184 (start_msglist, add_msglist, end_msglist): Additional declarations.
9186 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
9188 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9189 value was renamed to ARM_FLOAT_SOFT_FPA.
9191 2003-03-23 Andrew Cagney <cagney@redhat.com>
9193 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9194 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9195 * gdbarch.h, gdbarch.c: Regenerate.
9196 * valops.c (hand_function_call): Update.
9197 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9198 * frame.c (legacy_saved_regs_this_id): Update.
9199 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9200 * dummy-frame.h: Update.
9201 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9202 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9203 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9204 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9205 * config/m68k/tm-sun3.h: Update.
9206 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9207 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9208 * x86-64-tdep.c (x86_64_init_abi): Update.
9209 * vax-tdep.c (vax_gdbarch_init): Update.
9210 * v850-tdep.c (v850_gdbarch_init): Update.
9211 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9212 * sh-tdep.c (sh_gdbarch_init): Update.
9213 * s390-tdep.c (s390_gdbarch_init): Update.
9214 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9215 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9216 (frame_get_saved_regs): Update.
9217 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9218 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9219 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9220 * mips-tdep.c (mips_gdbarch_init): Update.
9221 * mcore-tdep.c (mcore_gdbarch_init): Update.
9222 * m68k-tdep.c (m68k_gdbarch_init): Update.
9223 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9224 * ia64-tdep.c (ia64_gdbarch_init): Update.
9225 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9226 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9227 (i386_interix_back_one_frame): Update.
9228 * hppa-tdep.c (hppa_gdbarch_init): Update.
9229 (hppa_init_extra_frame_info): Update.
9230 * h8300-tdep.c (h8300_gdbarch_init): Update.
9231 * frv-tdep.c (frv_gdbarch_init): Update.
9232 * cris-tdep.c (cris_gdbarch_init): Update.
9233 * avr-tdep.c (avr_gdbarch_init): Update.
9234 * arm-tdep.c (arm_gdbarch_init): Update.
9235 * alpha-tdep.c (alpha_gdbarch_init): Update.
9237 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9239 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9240 (arm_get_fp_model): Declare.
9241 * arm-tdep.c (fp_model_strings): New string array.
9242 (arm_fp_model, current_fp_model): New variables.
9243 (arm_get_fp_model): New function.
9244 (arm_set_fp): New function.
9245 (set_fp_model_sfunc): New function.
9246 (show_fp_model): New function.
9247 (_initialize_arm_tdep): Add new command to set/show the FPU.
9248 (arm_extract_return_value): Use arm_get_fp_model.
9249 (arm_store_return_value): Likewise.
9250 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9251 to initialize the floating-point data types.
9252 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9255 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9257 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9258 the current setting of each value.
9259 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9260 new_set and new_show. Use add_setshow_cmd_full and
9261 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9262 commands and add new version as subcommands of "set/show arm".
9264 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9266 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9267 (set_arm_command, show_arm_command): New functions.
9268 (_initialize_arm_tdep): Add them.
9269 (num_disassembly_options): Renamed from num_flavor_options.
9270 (valid_disassembly_styles): Renamed from valid_flavors.
9271 (disassembly_style): Renamed from disassembly_flavor.
9272 (set_disassembly_style_sfunc): Renamed from
9273 set_disassembly_flavor_sfunc.
9274 (set_disassembly_style): Renamed from set_disassembly_flavor.
9275 (arm_othernames): Updated.
9276 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9277 command. Add "set/show arm disassembly" commands. Deprecate
9278 "othernames" command.
9280 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9282 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9283 (arm-tdep.o): Depend on elf_arm_h.
9285 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9287 * Makefile.in (coff_internal_h): Define.
9288 (arm-tdep.o): Update dependencies.
9290 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9292 * arm-tdep.c (prologue_cache): Delete.
9293 (check_prologue_cache, save_prologue_cache): Delete.
9294 (arm_scan_prologue): Don't check or update the prologue_cache.
9295 (arm_gdb_arch_init): Don't initialize it.
9296 (_initialize_arm_tdep): Likewise.
9298 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9300 * MAINTAINERS (tui): Maintainer of tui code.
9302 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9304 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9305 (i386-cygwin-tdep.o): Add dependencies.
9306 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9307 * i386-cygwin-tdep.c: New file.
9308 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9309 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9311 2003-03-20 Andrew Cagney <cagney@redhat.com>
9313 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9314 (handle_inferior_event): Remove code calling
9315 DYNAMIC_TRAMPOLINE_NEXTPC.
9317 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9318 already has a full path.
9320 * main.c (gdb_main): Return 1.
9321 (captured_main): Call error to report an invalid interpreter.
9323 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9324 * alpha-osf1-tdep.c: Include "gdb_string.h".
9326 2003-03-19 J. Brobecker <brobecker@gnat.com>
9328 Continuing work to convert the hppa targets to multiarch partial.
9330 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9331 method, now that hppa_push_dummy_frame has a conformant prototype.
9332 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9333 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9334 for the switch to multiarch partial.
9336 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9338 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9339 when iss is issNull.
9341 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9343 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9344 NUM_REGS bounds check.
9346 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9348 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9349 * mips-tdep.c (gdb_assert.h): Include.
9350 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9351 (mips_register_name): Handle integer registers explicitly. Add
9353 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9354 (mips_lsi33k_reg_names): Don't list integer registers; they're
9355 handled by mips_register_name() now.
9356 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9357 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9358 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9359 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9360 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9362 2003-03-18 Andrew Cagney <cagney@redhat.com>
9364 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9366 * gdbtypes.h (print_scalar_formatted): Update declaration.
9367 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9369 2003-03-18 J. Brobecker <brobecker@gnat.com>
9371 * infrun.c (observer.h): Add #include.
9372 (normal_stop): Add call to observer_notify_normal_stop.
9373 * Makefile.in (infrun.o): Add dependency on observer.h.
9375 2003-03-18 J. Brobecker <brobecker@gnat.com>
9377 Continuing work to convert the hppa targets to multiarch partial.
9378 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9379 parameter. Reformat comment.
9380 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9381 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9382 to match new profile.
9384 2003-03-18 J. Brobecker <brobecker@gnat.com>
9386 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9387 appear to be working in any case.
9389 2003-03-18 J. Brobecker <brobecker@gnat.com>
9391 * observer.c (observer_test_first_observer): New static variable.
9392 (observer_test_second_observer): Likewise.
9393 (observer_test_third_observer): Likewise.
9394 (observer_test_first_notification_function): New static function.
9395 (observer_test_second_notification_function): Likewise.
9396 (observer_test_third_notification_function): Likewise.
9398 2003-03-17 J. Brobecker <brobecker@gnat.com>
9400 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9401 * somsolib.c (gdb_assert.h): Likewise.
9402 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9403 (somsolib.o): Likewise.
9405 2003-03-17 Andrew Cagney <cagney@redhat.com>
9407 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9408 BFD. Simplify setting of di.endian.
9410 2003-03-17 Andrew Cagney <cagney@redhat.com>
9412 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9413 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9415 From Elena Zannoni <ezannoni@redhat.com>
9416 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9417 vector and floating-point parameters.
9418 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9420 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9422 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9424 * MAINTAINERS: Remove my name from several maintainership roles.
9426 2003-03-17 Andrew Cagney <cagney@redhat.com>
9428 Fix frame off-by-one bug.
9429 * frame-unwind.h (frame_this_id_ftype): Replace
9430 frame_unwind_id_ftype.
9431 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9432 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9433 with "prev_register".
9434 * frame-unwind.c (frame_unwind_find_by_pc): Return
9435 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9437 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9438 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9439 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9440 (dummy_frame_unwind): Update.
9441 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9442 sentinel_frame_register_unwind.
9443 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9444 (sentinel_frame_unwinder): Update.
9445 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9446 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9447 * frame.c (create_sentinel_frame): Update. Initialize
9448 "prologue_cache" instead of "unwind_cache".
9449 (frame_register_unwind): Call this frame's prev_register with the
9450 next frame and this frame's prologue cache.
9451 (get_prev_frame): Simplify. Always call prev frame's this_id with
9452 this frame and prev frame's prologue cache. Document that this
9453 call is shifted one to the left when compared to the
9454 frame_register_unwind call.
9455 (legacy_saved_regs_prev_register): Replace
9456 frame_saved_regs_register_unwind.
9457 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9458 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9459 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9460 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9461 (d10v_frame_unwind): Update.
9462 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9463 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9464 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9465 "saved_regs" with "this_saved_regs".
9467 2003-03-16 Andrew Cagney <cagney@redhat.com>
9469 * frame.c (frame_pop): Don't call target_store_registers. Fix
9470 problem reported by Mark Kettenis.
9472 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9474 * i386-tdep.c (i386_register_type): Renamed from
9475 i386_register_virtual_type. Adjust function signature.
9476 (i386_gdbarch_init): Set register_type instead of
9477 deprecated_max_register_raw_size,
9478 deprecated_max_register_virtual_size and register_virtual_type.
9480 2003-03-14 Andrew Cagney <cagney@redhat.com>
9482 * frame.c (get_prev_frame): When a legacy frame, always call
9483 legacy_get_prev_frame. Simplify unwind code using assumption that
9484 the unwinder is new.
9485 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9486 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9487 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9489 2003-03-14 Andrew Cagney <cagney@redhat.com>
9491 * frame.c (get_saved_register): Delete function.
9492 * frame.h (get_saved_register): Delete declaration.
9493 * xstormy16-tdep.c: Update comment.
9494 * regcache.h: Update comments.
9495 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9496 get_saved_register and extract_address, use
9497 frame_read_unsigned_register.
9498 (sparc_frame_saved_pc): Ditto.
9499 (sparc_get_saved_register): Instead of get_saved_register, use
9501 (sparc_pop_frame): Ditto.
9502 * findvar.c: Update comments.
9503 (value_of_register): Call frame_register instead of
9505 (value_from_register): Ditto.
9506 * config/sparc/tm-sparc.h: Update comment.
9507 * breakpoint.c: Update comment.
9509 2003-03-14 Andrew Cagney <cagney@redhat.com>
9511 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9513 * gdbarch.h, gdbarch.c: Re-generate.
9514 * frame.h: Update comments.
9515 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9516 * x86-64-tdep.c (x86_64_init_abi): Update.
9517 * sparc-tdep.c (sparc_gdbarch_init): Update.
9518 * sh-tdep.c (sh_gdbarch_init): Update.
9519 * mips-tdep.c (mips_gdbarch_init): Update.
9520 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9521 * cris-tdep.c (cris_gdbarch_init): Update.
9522 * ia64-tdep.c (ia64_gdbarch_init): Update.
9523 * frame.c (frame_register): Update.
9524 (get_saved_register): Update.
9525 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9527 2003-03-13 Andrew Cagney <cagney@redhat.com>
9529 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9530 * gdbarch.h, gdbarch.c: Regenerate.
9531 * valops.c (hand_function_call): Update comment.
9532 * stack.c (return_command): Update comment.
9533 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9534 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9535 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9536 * x86-64-tdep.c (x86_64_init_abi): Update.
9537 * vax-tdep.c (vax_gdbarch_init): Update.
9538 * v850-tdep.c (v850_gdbarch_init): Update.
9539 * sparc-tdep.c (sparc_gdbarch_init): Update.
9540 * sh-tdep.c (sh_gdbarch_init): Update.
9541 * s390-tdep.c (s390_gdbarch_init): Update.
9542 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9543 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9544 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9545 * mips-tdep.c (mips_gdbarch_init): Update.
9546 * mcore-tdep.c (mcore_gdbarch_init): Update.
9547 * m68k-tdep.c (m68k_gdbarch_init): Update.
9548 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9549 * ia64-tdep.c (ia64_gdbarch_init): Update.
9550 * i386-tdep.c (i386_gdbarch_init): Update.
9551 * hppa-tdep.c (hppa_gdbarch_init): Update.
9552 * h8300-tdep.c (h8300_gdbarch_init): Update.
9553 * frv-tdep.c (frv_gdbarch_init): Update.
9554 * cris-tdep.c (cris_gdbarch_init): Update.
9555 * avr-tdep.c (avr_gdbarch_init): Update.
9556 * arm-tdep.c (arm_gdbarch_init): Update.
9557 * alpha-tdep.c (alpha_gdbarch_init): Update.
9559 2003-03-13 Andrew Cagney <cagney@redhat.com>
9561 * frame.c (legacy_frame_p): New function.
9562 (get_prev_frame): Use legacy_frame_p.
9563 * frame.h (legacy_frame_p): Declare.
9565 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9567 * MAINTAINERS (write after approval): Alphabetically
9570 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9572 * MAINTAINERS (write after approval): Add myself.
9574 2003-03-12 Andrew Cagney <cagney@redhat.com>
9576 * frame.c (get_prev_frame): Rename the frame parameter to
9578 (get_next_frame, legacy_get_prev_frame): Ditto.
9580 2003-03-12 Andrew Cagney <cagney@redhat.com>
9582 * frame.c (get_current_frame): Check target_has_registers before
9583 checking target_has_stack.
9584 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9585 instead of deprecated_selected_frame.
9586 * findvar.c (value_of_register): Pass "frame", not
9587 deprecated_selected_frame, to value_of_builtin_reg.
9589 2003-03-12 Andrew Cagney <cagney@redhat.com>
9591 * regcache.c (regcache_cooked_write_signed): New function.
9592 (regcache_cooked_write_unsigned): New function.
9593 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9594 (regcache_cooked_read_signed): Fix regnum in range assertion.
9595 * regcache.h (regcache_cooked_write_signed): Declare.
9596 (regcache_cooked_write_unsigned): Declare.
9598 2003-03-12 Andrew Cagney <cagney@redhat.com>
9600 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9601 * gdbarch.h, gdbarch.c: Re-generate.
9602 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9603 * x86-64-tdep.h: Update.
9604 * x86-64-tdep.c (x86_64_init_abi): Update.
9605 * v850-tdep.c (v850_gdbarch_init): Update.
9606 * sparc-tdep.c (sparc_gdbarch_init): Update.
9607 * sh-tdep.c (sh_gdbarch_init): Update.
9608 * s390-tdep.c (s390_gdbarch_init): Update.
9609 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9610 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9611 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9612 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9613 * mips-tdep.c (mips_gdbarch_init): Update.
9614 * mcore-tdep.c (mcore_gdbarch_init): Update.
9615 * m68k-tdep.c (m68k_gdbarch_init): Update.
9616 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9617 * ia64-tdep.c (ia64_gdbarch_init): Update.
9618 * i386-tdep.c (i386_gdbarch_init): Update.
9619 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9620 * hppa-tdep.c (hppa_gdbarch_init): Update.
9621 * h8300-tdep.c (h8300_gdbarch_init): Update.
9622 * frv-tdep.c (frv_gdbarch_init): Update.
9623 * cris-tdep.c (cris_gdbarch_init): Update.
9624 * avr-tdep.c (avr_gdbarch_init): Update.
9625 * arm-tdep.c (arm_gdbarch_init): Update.
9626 * alpha-tdep.c (alpha_gdbarch_init): Update.
9627 * sh-tdep.c (sh_init_extra_frame_info): Update.
9628 (sh64_init_extra_frame_info): Update.
9629 * ns32knbsd-nat.c (frame_num_args): Update.
9630 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9631 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9632 (xstormy16_frame_chain_valid): Update.
9633 * vax-tdep.c (vax_saved_pc_after_call): Update.
9634 * v850-tdep.c (v850_frame_chain): Update.
9635 (v850_pop_frame): Update.
9636 (v850_init_extra_frame_info): Update.
9637 * sparc-tdep.c (setup_arbitrary_frame): Update.
9638 * ns32k-tdep.c (umax_frame_num_args): Update.
9639 * s390-tdep.c (s390_pop_frame_regular): Update.
9640 * mn10300-tdep.c (mn10300_frame_chain): Update.
9641 (mn10300_pop_frame_regular): Update.
9642 (mn10300_init_extra_frame_info): Update.
9643 * mips-tdep.c (mips_init_frame_pc_first): Update.
9644 (mips_frame_chain): Update.
9645 (mips_pop_frame): Update.
9646 * mcore-tdep.c (mcore_frame_chain): Update.
9647 (mcore_pop_frame): Update.
9648 (mcore_init_extra_frame_info): Update.
9649 * arch-utils.c (init_frame_pc_default): Update.
9650 * m68k-tdep.c (isi_frame_num_args): Update.
9651 (delta68_frame_num_args): Update.
9652 (news_frame_num_args): Update.
9653 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9654 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9655 (alpha_frame_chain): Update.
9656 (alpha_pop_frame): Update.
9657 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9658 (hppa_init_extra_frame_info): Update.
9659 (hppa_frame_chain): Update.
9660 (hppa_frame_chain_valid): Update.
9661 * cris-tdep.c (cris_init_extra_frame_info): Update.
9662 * avr-tdep.c (avr_init_extra_frame_info): Update.
9663 * arm-tdep.c (arm_frame_chain_valid): Update.
9664 (arm_init_extra_frame_info): Update.
9665 (arm_pop_frame): Update.
9666 * frame.c (frame_pc_unwind): Update.
9667 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9668 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9669 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9670 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9671 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9672 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9674 2003-03-12 Andrew Cagney <cagney@redhat.com>
9676 Eliminate the need for POP_FRAME.
9677 * frame.c (do_frame_unwind_register): New function.
9678 (frame_pop): When no POP_FRAME, pop the frame using register
9679 unwind and a scratch regcache.
9680 (frame_saved_regs_pop): Delete function.
9681 (trad_frame_unwinder): Update.
9682 * d10v-tdep.c (d10v_frame_pop): Delete function.
9683 (d10v_frame_unwind): Update.
9684 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9685 (sentinel_frame_unwinder): Update.
9686 * dummy-frame.c (dummy_frame_pop): Delete function.
9687 (dummy_frame_unwind): Update.
9688 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9689 (struct frame_unwind): Update.
9691 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9693 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9694 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9695 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9696 Do range checks on register number obtained from debugging info.
9697 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9698 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9699 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9701 (do_fp_register_row): Fix typo which caused double type to be
9702 used when attempting to unpack a float.
9704 2003-03-11 J. Brobecker <brobecker@gnat.com>
9706 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9708 2003-03-11 Andrew Cagney <cagney@redhat.com>
9710 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9711 frame. Problem found by Corinna Vinschen.
9713 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9715 * doublest.c (floatformat_from_length): Accept also
9716 the real size of 'long double' type.
9718 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9720 From Klee Dienes <kdienes@apple.com>:
9721 * breakpoint.c (bpstat_copy): Copy the command lines as well
9722 as the old value, to match what is freed in bpstat_clear.
9724 2003-03-10 David Carlton <carlton@math.stanford.edu>
9726 * minsyms.c (add_minsym_to_hash_table): Replace
9727 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9728 (compare_minimal_symbols, compact_minimal_symbols)
9729 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9730 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9731 of DEPRECATED_SYMBOL_MATCHES_NAME.
9732 (lookup_minimal_symbol_solib_trampoline): Ditto.
9734 2003-03-10 Andrew Cagney <cagney@redhat.com>
9736 * regcache.h (regcache_cooked_read_ftype): Define.
9737 (regcache_save, regcache_restore): Add a cooked_read parameter.
9738 * regcache.c (regcache_save, regcache_restore): Update.
9739 (do_cooked_read): New function.
9740 (regcache_cpy): Pass do_cooked_read to regcache_save and
9743 2003-03-10 Andrew Cagney <cagney@redhat.com>
9745 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9746 * gdbarch.h, gdbarch.c: Re-generate.
9747 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9748 * x86-64-tdep.h: Update.
9749 * x86-64-tdep.c (x86_64_init_abi): Update.
9750 * v850-tdep.c (v850_gdbarch_init): Update.
9751 * sparc-tdep.c (sparc_gdbarch_init): Update.
9752 * sh-tdep.c (sh_gdbarch_init): Update.
9753 * s390-tdep.c (s390_gdbarch_init): Update.
9754 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9755 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9756 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9757 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9758 * mips-tdep.c (mips_gdbarch_init): Update.
9759 * mcore-tdep.c (mcore_gdbarch_init): Update.
9760 * m68k-tdep.c (m68k_gdbarch_init): Update.
9761 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9762 * ia64-tdep.c (ia64_gdbarch_init): Update.
9763 * i386-tdep.c (i386_gdbarch_init): Update.
9764 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9765 * hppa-tdep.c (hppa_gdbarch_init): Update.
9766 * h8300-tdep.c (h8300_gdbarch_init): Update.
9767 * frv-tdep.c (frv_gdbarch_init): Update.
9768 * cris-tdep.c (cris_gdbarch_init): Update.
9769 * avr-tdep.c (avr_gdbarch_init): Update.
9770 * arm-tdep.c (arm_gdbarch_init): Update.
9771 * alpha-tdep.c (alpha_gdbarch_init): Update.
9772 * sh-tdep.c (sh_init_extra_frame_info): Update.
9773 (sh64_init_extra_frame_info): Update.
9774 * ns32knbsd-nat.c (frame_num_args): Update.
9775 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9776 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9777 (xstormy16_frame_chain_valid): Update.
9778 * vax-tdep.c (vax_saved_pc_after_call): Update.
9779 * v850-tdep.c (v850_frame_chain): Update.
9780 (v850_pop_frame): Update.
9781 (v850_init_extra_frame_info): Update.
9782 * sparc-tdep.c (setup_arbitrary_frame): Update.
9783 * ns32k-tdep.c (umax_frame_num_args): Update.
9784 * s390-tdep.c (s390_pop_frame_regular): Update.
9785 * mn10300-tdep.c (mn10300_frame_chain): Update.
9786 (mn10300_pop_frame_regular): Update.
9787 (mn10300_init_extra_frame_info): Update.
9788 * mips-tdep.c (mips_init_frame_pc_first): Update.
9789 (mips_frame_chain): Update.
9790 (mips_pop_frame): Update.
9791 * mcore-tdep.c (mcore_frame_chain): Update.
9792 (mcore_pop_frame): Update.
9793 (mcore_init_extra_frame_info): Update.
9794 * arch-utils.c (init_frame_pc_default): Update.
9795 * m68k-tdep.c (isi_frame_num_args): Update.
9796 (delta68_frame_num_args): Update.
9797 (news_frame_num_args): Update.
9798 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9799 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9800 (alpha_frame_chain): Update.
9801 (alpha_pop_frame): Update.
9802 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9803 (hppa_init_extra_frame_info): Update.
9804 (hppa_frame_chain): Update.
9805 (hppa_frame_chain_valid): Update.
9806 * cris-tdep.c (cris_init_extra_frame_info): Update.
9807 * avr-tdep.c (avr_init_extra_frame_info): Update.
9808 * arm-tdep.c (arm_frame_chain_valid): Update.
9809 (arm_init_extra_frame_info): Update.
9810 (arm_pop_frame): Update.
9811 * frame.c (frame_pc_unwind): Update.
9812 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9813 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9814 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9815 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9816 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9817 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9819 2003-03-10 Andrew Cagney <cagney@redhat.com>
9821 * gdbarch.sh (gdbarch_unwind_pc): New method.
9822 * gdbarch.h, gdbarch.c: Regenerate.
9823 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9824 but use read_pc and FRAME_SAVED_PC as fall backs.
9825 (frame_saved_regs_pc_unwind): Delete function.
9826 (trad_frame_unwinder): Update.
9827 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9828 (struct frame_unwind): Update.
9829 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9830 (dummy_frame_unwind): Update.
9831 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9832 (sentinel_frame_unwinder): Update.
9833 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9834 (d10v_frame_unwind): Update.
9835 (d10v_unwind_pc): New function.
9836 (d10v_gdbarch_init): Set unwind_pc.
9838 2003-03-10 Andrew Cagney <cagney@redhat.com>
9840 * gdbarch.h: Re-generate.
9842 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9844 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9847 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9849 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9851 2003-03-08 Andrew Cagney <cagney@redhat.com>
9853 * cli-out.c: Update copyright.
9854 (cli_out_data): Define typedef. Use instead of ui_out_data.
9856 2003-03-08 Andrew Cagney <cagney@redhat.com>
9858 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9861 2003-03-07 Andrew Cagney <cagney@redhat.com>
9863 * gdbarch.sh: Don't generate two macro definitions when an
9864 undefined macro taking no arguments.
9865 * gdbarch.h: Regenerate.
9867 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9869 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9870 (x86_64_unwind_dummy_id): New functions.
9871 (x86_64_init_abi): Register these two new functions.
9873 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9875 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9876 (x86_64_skip_prologue): Move prologue detection to
9878 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9880 2003-03-05 Andrew Cagney <cagney@redhat.com>
9882 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9883 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9884 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9885 to use unwind_dummy_id when a dummy frame.
9886 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9888 * gdbarch.h, gdbarch.c: Regneerate.
9890 2003-03-05 Andrew Cagney <cagney@redhat.com>
9892 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9893 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9894 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9897 2003-03-05 Andrew Cagney <cagney@redhat.com>
9899 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9900 (struct d10v_unwind_cache): Delete field "frameless". Replace
9901 "next_addr" with "sp_offset". Add "r11_offset".
9902 (d10v_frame_unwind_cache): Update.
9903 (prologue_find_regs): Update. When "mv r11, sp", save the
9904 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9905 RN was saved in r11_offset.
9907 2003-03-05 Andrew Cagney <cagney@redhat.com>
9909 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9910 cached PC value in the next frame.
9912 2003-03-05 Andrew Cagney <cagney@redhat.com>
9914 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9915 "id_unwind_cache" with "id".
9916 (frame_id_unwind): Delete declaration.
9917 * frame.c (frame_id_unwind): Delete function.
9918 (get_prev_frame): Call the frame id unwind method directly. Store
9919 the returned next frame's ID value in NEXT_FRAME. Note that there
9920 is a problem with the wrong unwind ID being called with the wrong
9923 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9925 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9927 2003-03-05 James Ingham <jingham@apple.com>
9928 Daniel Jacobowitz <drow@mvista.com>
9930 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9931 (auto_cp_abi): New variable.
9932 (current_cp_abi, num_cp_abis): Make static.
9933 (CP_ABI_MAX): Define.
9934 (cp_abis): Turn into an array.
9935 (value_virtual_fn_field): Fix formatting.
9936 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9938 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9939 (list_cp_abis, _initialize_cp_abi): New functions.
9940 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9941 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9942 switch_to_cp_abi. Update prototype for register_cp_abi.
9943 * Makefile.in (cp-abi.o): Update dependencies.
9944 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9945 instead of switch_to_cp_abi.
9946 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9948 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9950 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9952 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9954 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9955 * dwarf2loc.c: Include "regcache.h".
9956 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9958 * Makefile.in (dwarf2loc.o): Update dependencies.
9960 2003-03-04 Theodore A. Roth <troth@openavr.org>
9962 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9963 number of io registers reported by remote target is not a multiple of
9966 2003-03-04 David Carlton <carlton@math.stanford.edu>
9968 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9969 (lookup_symbol_aux_psymtabs): Update call to
9970 lookup_partial_symbol.
9971 (lookup_transparent_type, find_main_psymtab)
9972 (make_symbol_overload_list): Ditto.
9974 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9976 * MAINTAINERS (Write after approval): Update my email address.
9978 2003-03-03 Andrew Cagney <cagney@redhat.com>
9980 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9981 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9982 predicate. Replace MAX_REGISTER_RAW_SIZE.
9983 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9984 MAX_REGISTER_VIRTUAL_SIZE.
9985 * regcache.c (legacy_max_register_raw_size): New function.
9986 (legacy_max_register_virtual_size): New function.
9987 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9988 (MAX_REGISTER_RAW_SIZE): Define.
9989 (legacy_max_register_raw_size): Declare.
9990 (legacy_max_register_virtual_size): Declare.
9991 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9992 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9993 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9994 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9995 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9996 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9997 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9998 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9999 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10000 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10001 * vax-tdep.c (vax_gdbarch_init): Update.
10002 * v850-tdep.c (v850_gdbarch_init): Update.
10003 * sparc-tdep.c (sparc_gdbarch_init): Update.
10004 * sh-tdep.c (sh_gdbarch_init): Update.
10005 * s390-tdep.c (s390_gdbarch_init): Update.
10006 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10007 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10008 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10009 * mips-tdep.c (mips_gdbarch_init): Update.
10010 * mcore-tdep.c (mcore_gdbarch_init): Update.
10011 * m68k-tdep.c (m68k_gdbarch_init): Update.
10012 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10013 * ia64-tdep.c (ia64_gdbarch_init): Update.
10014 * i386-tdep.c (i386_gdbarch_init): Update.
10015 * hppa-tdep.c (hppa_gdbarch_init): Update.
10016 * h8300-tdep.c (h8300_gdbarch_init): Update.
10017 * frv-tdep.c (frv_gdbarch_init): Update.
10018 * cris-tdep.c (cris_gdbarch_init): Update.
10019 * avr-tdep.c (avr_gdbarch_init): Update.
10020 * arm-tdep.c (arm_gdbarch_init): Update.
10021 * alpha-tdep.c (alpha_gdbarch_init): Update.
10022 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10023 max_register_raw_size or max_register_virtual_size.
10025 2003-03-03 David Carlton <carlton@math.stanford.edu>
10027 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10028 SYMBOL_MATCHES_NAME, add comment.
10029 (SYMBOL_MATCHES_NATURAL_NAME): New.
10030 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10031 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10032 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10033 * symtab.c (lookup_partial_symbol): Use
10034 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10036 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10037 SYMBOL_MATCHES_NAME.
10040 2003-03-03 David Carlton <carlton@math.stanford.edu>
10042 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10043 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10044 by regexp matching against SYMBOL_NATURAL_NAME.
10046 2003-03-03 David Carlton <carlton@math.stanford.edu>
10048 * linespec.c (find_method): Extract code into collect_methods.
10049 (collect_methods): New.
10051 2003-03-02 Mark Kettenis <kettenis@gnu.org>
10053 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10056 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10057 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10059 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10061 * arch-utils.c (generic_register_byte): Fix to use the loop index
10062 and not regnum when summing the size of all registers up to regnum.
10064 2003-03-01 Andrew Cagney <cagney@redhat.com>
10066 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10067 FRAME_INIT_SAVED_REGS.
10068 * gdbarch.h, gdbarch.c: Regenerate.
10069 * stack.c (frame_info): Update.
10070 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10071 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10072 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10073 * ns32k-tdep.c (ns32k_pop_frame): Update.
10074 * mips-tdep.c (mips_pop_frame): Update.
10075 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10076 * ia64-tdep.c (ia64_frame_chain): Update.
10077 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10078 (ia64_frameless_function_invocation): Update.
10079 (ia64_init_extra_frame_info): Update.
10080 (ia64_pop_frame_regular): Update.
10081 * frame.h (struct frame_info): Update comment.
10082 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10083 * frame.c (frame_saved_regs_register_unwind): Update.
10084 (frame_saved_regs_register_unwind): Update.
10085 (deprecated_generic_get_saved_register): Update.
10086 * cris-tdep.c: Update comment.
10087 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10089 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10090 * x86-64-tdep.c (x86_64_init_abi): Update.
10091 * vax-tdep.c (vax_gdbarch_init): Update.
10092 * v850-tdep.c (v850_gdbarch_init): Update.
10093 * sparc-tdep.c (sparc_gdbarch_init): Update.
10094 * sh-tdep.c (sh_gdbarch_init): Update.
10095 * s390-tdep.c (s390_gdbarch_init): Update.
10096 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10097 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10098 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10099 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10100 * mips-tdep.c (mips_gdbarch_init): Update.
10101 * mcore-tdep.c (mcore_gdbarch_init): Update.
10102 * m68k-tdep.c (m68k_gdbarch_init): Update.
10103 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10104 * ia64-tdep.c (ia64_gdbarch_init): Update.
10105 * i386-tdep.c (i386_gdbarch_init): Update.
10106 * frv-tdep.c (frv_gdbarch_init): Update.
10107 * avr-tdep.c (avr_gdbarch_init): Update.
10108 * arm-tdep.c (arm_gdbarch_init): Update.
10109 * alpha-tdep.c (alpha_gdbarch_init): Update.
10111 2003-03-01 Andrew Cagney <cagney@redhat.com>
10113 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10114 option enum and switch. When no windows, set the interpreter to
10117 2003-03-01 Andrew Cagney <cagney@redhat.com>
10119 * main.c (captured_main): Replace magic option characters with an
10122 2003-03-01 Andrew Cagney <cagney@redhat.com>
10124 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10125 INIT_EXTRA_FRAME_INFO.
10126 * gdbarch.h, gdbarch.c: Regenerate.
10127 * arm-tdep.c: Update comments.
10128 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10129 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10130 * frame.h, avr-tdep.c: Ditto.
10131 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10132 (create_new_frame, legacy_get_prev_frame): Ditto.
10133 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10134 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10135 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10136 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10137 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10138 * v850-tdep.c (v850_gdbarch_init): Ditto.
10139 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10140 * sh-tdep.c (sh_gdbarch_init): Ditto.
10141 * s390-tdep.c (s390_gdbarch_init): Ditto.
10142 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10143 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10144 * mips-tdep.c (mips_gdbarch_init): Ditto.
10145 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10146 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10147 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10148 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10149 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10150 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10151 * frv-tdep.c (frv_gdbarch_init): Ditto.
10152 * cris-tdep.c (cris_gdbarch_init): Ditto.
10153 * avr-tdep.c (avr_gdbarch_init): Ditto.
10154 * arm-tdep.c (arm_gdbarch_init): Ditto.
10155 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10156 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10158 2003-03-01 Andrew Cagney <cagney@redhat.com>
10160 * gdbarch.sh (register_type): New function with predicate.
10161 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10162 * gdbarch.h, gdbarch.c: Re-generate.
10163 * arch-utils.c (generic_register_byte): Use generic_register_size.
10164 (generic_register_size): When available, use
10165 gdbarch_register_type.
10166 * regcache.c (init_regcache_descr): When available, initialize the
10167 register type array using gdbarch_register_type. If the
10168 architecture supplies gdbarch_register_type, do not use the legacy
10170 * d10v-tdep.c (d10v_register_type): Replace
10171 d10v_register_virtual_type.
10172 (d10v_gdbarch_init): Set register_type instead of
10173 register_virtual_type.
10175 2003-03-01 Andrew Cagney <cagney@redhat.com>
10177 * Makefile.in (ax-gdb.o): Update dependencies.
10178 * ax-gdb.c: Include "regcache.h".
10179 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10180 * findvar.c (value_of_register): Ditto.
10181 * infcmd.c (default_print_registers_info): Ditto.
10183 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10185 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10186 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10188 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10190 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10193 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
10195 * Makefile.in (dwarf2loc.o): Update dependencies.
10196 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10197 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10198 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10199 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10200 (locexpr_tracepoint_var_ref): New function.
10201 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10203 2003-02-28 Andrew Cagney <cagney@redhat.com>
10205 * regcache.c (register_size): New function.
10206 * regcache.h (register_size): Declare
10207 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10208 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10210 2003-02-28 David Carlton <carlton@math.stanford.edu>
10212 * linespec.c (decode_compound): Extract code into find_method.
10213 (find_method): New.
10215 2003-02-28 J. Brobecker <brobecker@gnat.com>
10217 * Makefile.in: Add rules to build and link in observer.o.
10219 2003-02-27 J. Brobecker <brobecker@gnat.com>
10221 * observer.c: Minor comments edits.
10223 2003-02-27 J. Brobecker <brobecker@gnat.com>
10225 * observer.h, observer.c: New file.
10227 2003-02-27 Andrew Cagney <cagney@redhat.com>
10229 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10231 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10233 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10234 (M6812_OP_STS_EXT): Likewise.
10235 (m6811_prologue): Use the above to recognize prologue.
10236 (m6812_prologue): Likewise.
10238 2003-02-27 David Carlton <carlton@math.stanford.edu>
10240 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10242 (compare_psymbols): Ditto.
10243 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10245 2003-02-27 Michael Snyder <msnyder@redhat.com>
10247 * f-lang.c (build_fortran_types): New function.
10248 (_initialize_f_language): Gdbarch-register built-in fortran types.
10249 * doublest.c (extract_floating): Fix warning text.
10251 2003-02-27 Andrew Cagney <cagney@redhat.com>
10253 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10254 predicate. Replaces PUSH_DUMMY_FRAME.
10255 * gdbarch.h, gdbarch.c: Regnerate.
10256 * valops.c (hand_function_call): Update. Call
10257 generic_push_dummy_frame directly.
10258 * vax-tdep.c (vax_gdbarch_init): Update.
10259 * sparc-tdep.c (sparc_gdbarch_init): Update.
10260 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10261 * m68k-tdep.c (m68k_gdbarch_init): Update.
10262 * hppa-tdep.c (hppa_gdbarch_init): Update.
10263 * alpha-tdep.c (alpha_gdbarch_init): Update.
10264 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10265 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10266 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10267 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10268 push_dummy_frame to generic_push_dummy_frame.
10269 * v850-tdep.c (v850_gdbarch_init): Ditto.
10270 * sh-tdep.c (sh_gdbarch_init): Ditto.
10271 * s390-tdep.c (s390_gdbarch_init): Ditto.
10272 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10273 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10274 * mips-tdep.c (mips_gdbarch_init): Ditto.
10275 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10276 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10277 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10278 * i386-tdep.c (i386_gdbarch_init): Ditto.
10279 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10280 * frv-tdep.c (frv_gdbarch_init): Ditto.
10281 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10282 * cris-tdep.c (cris_gdbarch_init): Ditto.
10283 * avr-tdep.c (avr_gdbarch_init): Ditto.
10284 * arm-tdep.c (arm_gdbarch_init): Ditto.
10286 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10288 * mips-tdep.c (show_mips_abi): New function.
10289 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10290 command ``show mips abi''.
10292 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10294 From Elena Zannoni <ezannoni@redhat.com>
10295 * dbxread.c (process_one_symbol): Only record line 0 if one or
10296 more sline entries have been seen for the function.
10298 2003-02-26 Michael Chastain <mec@shout.net>
10300 * configure: Regenerate with autoconf 000227.
10302 2003-02-26 Michael Chastain <mec@shout.net>
10304 Close PR build/660.
10305 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10306 for old libc5/glibc.
10307 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10309 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10311 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10312 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10314 2003-02-26 Michael Chastain <mec@shout.net>
10316 * configure.in: New variable HAVE_UINTPTR_T.
10317 * configure, config.in: Regenerated.
10319 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10322 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10324 2003-02-25 Andrew Cagney <cagney@redhat.com>
10326 * frame.c (get_prev_frame): Add comment on check for
10327 inside_entry_func. Only check for inside_entry_file when not a
10328 dummy and not a sentinel. Check that the new frame is not inner
10331 2003-02-25 Andrew Cagney <cagney@redhat.com>
10333 * frame.c (frame_debug): New variable.
10334 (_initialize_frame): Add "set/show debug frame" command.
10335 (get_prev_frame): When frame_debug, print reason why unwind
10338 2003-02-25 Michael Chastain <mec@shout.net>
10340 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10341 to avoid uintptr_t definition problems.
10343 2003-02-25 David Carlton <carlton@math.stanford.edu>
10345 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10346 (SYMBOL_LINKAGE_NAME): Ditto.
10347 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10348 SYMBOL_LINKAGE_NAME.
10349 (struct general_symbol_info): Expand comment.
10350 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10351 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10352 (SYMBOL_MATCHES_REGEXP): Ditto.
10353 * symtab.c (symbol_natural_name): New function.
10354 * objfiles.h: Replace all uses of SYMBOL_NAME by
10355 DEPRECATED_SYMBOL_NAME.
10356 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10357 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10358 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10359 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10360 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10361 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10362 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10363 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10364 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10365 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10366 * ada-exp.y: Ditto.
10367 * ada-exp.y: Update copyright.
10368 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10369 * cp-valprint.c: Ditto.
10371 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10373 * infptrace.c (detach): Do not flag error if ptrace detach fails
10374 and errno is set to ESRCH.
10376 2003-02-24 Andrew Cagney <cagney@redhat.com>
10378 * infptrace.c (udot_info): Change type of udot_off to long. Use
10379 paddr when printing udot_off's value.
10381 2003-02-24 David Carlton <carlton@math.stanford.edu>
10383 * symtab.c (make_symbol_overload_list): Only read in partial
10384 symtabs containing a matching partial symbol.
10386 2003-02-24 David Carlton <carlton@math.stanford.edu>
10388 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10389 do the comparison, not strcmp.
10390 * symfile.c (compare_psymbols): Ditto.
10391 * defs.h: Declare strcmp_iw_ordered.
10392 * utils.c (strcmp_iw_ordered): New function.
10394 2003-02-24 Jim Blandy <jimb@redhat.com>
10396 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10397 support, shared libs): Remove my name from here, to better reflect
10400 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10402 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10403 (target_ops): Add to_have_continuable_watchpoint.
10404 * target.c (update_current_target): Add INHERIT line for
10405 to_have_continuable_watchpoint.
10406 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10407 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10408 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10409 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10411 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10413 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10416 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10418 * solib.c (solib_open): Call target defined search function after
10419 failing with solib-search-path.
10420 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10421 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10423 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10425 * MAINTAINERS: Add myself to Write After section.
10427 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10429 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10431 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10433 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10434 (m68hc11_add_reggroups): New function.
10435 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10436 (m68hc11_gdbarch_init): Install the reggroups.
10437 (_initialize_m68hc11_tdep): Initialize them.
10439 2003-02-21 James E Wilson <wilson@tuliptree.org>
10441 * MAINTAINERS: Update my email address.
10443 2003-02-21 David Carlton <carlton@math.stanford.edu>
10445 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10447 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10449 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10450 * symtab.h: Add opaque declarations of struct axs_value and
10452 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10453 (struct location_funcs): New type.
10454 (struct symbol): Add "loc" to aux_value.
10455 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10456 * dwarf2read.c: Include "dwarf2expr.h".
10457 (dwarf2_symbol_mark_computed): New function.
10458 (read_func_scope): Use it.
10459 (var_decode_location): New function.
10460 (new_symbol): Use it.
10461 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10463 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10464 (dwarf2expr_h, dwarf2loc_h): New variables.
10465 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10466 (dwarf2expr.o, dwarf2loc.o): New rules.
10467 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10468 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10470 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10471 * m2-exp.y (yylex): Likewise.
10472 * printcmd.c (address_info, print_frame_args): Likewise.
10473 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10474 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10475 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10476 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10477 * symtab.c (lookup_block_symbol): Likewise.
10479 2003-02-20 Adam Fedor <fedor@gnu.org>
10481 * symtab.h: Remove objc_specific struct
10482 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10483 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10484 Have language_objc use cplus_specific struct.
10486 2003-02-20 Tom Tromey <tromey@redhat.com>
10488 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10489 TYPE_NAME, when printing a String value. PR java/1075.
10491 2003-02-20 Adam Fedor <fedor@gnu.org>
10493 * objc-lang.h (find_methods): Remove declaration.
10494 * objc-lang.c (find_methods): Make static.
10496 2003-02-20 Christopher Faylor <cgf@redhat.com>
10498 * win32-nat.c (get_image_name): Check return value from
10500 (child_xfer_memory): Ditto.
10502 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10504 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10505 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10506 '${exec_prefix}' (in addition to the expansion thereof) as
10508 * configure: Rebuilt.
10510 2003-02-20 David Carlton <carlton@math.stanford.edu>
10512 * symtab.c (search_symbols): Revert the search_symbols part of my
10513 2002-12-23 patch. Add comment.
10515 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10517 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10518 * dbxread.c (elfstab_build_psymtabs): Don't call
10519 install_minimal_symbols.
10520 (stabsect_build_psymtabs): Likewise.
10521 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10523 * somread.c (som_symfile_read): Call install_minimal_symbols
10524 and do_cleanups earlier.
10525 * nlmread.c (nlm_symfile_read): Likewise.
10526 * mdebugread.c (elfmdebug_build_psymtabs): Call
10527 install_minimal_symbols and make appropriate cleanups.
10529 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10531 * solib.c (reload_shared_libraries): New function.
10532 (_initialize_solib): Add callbacks for ``set solib-search-path''
10533 and ``set solib-absolute-prefix''.
10535 2003-02-20 David Carlton <carlton@math.stanford.edu>
10537 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10539 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10540 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10541 * ada-typeprint.c (ada_typedef_print): Ditto.
10542 * ax-gdb.c (gen_var_ref): Ditto.
10543 * breakpoint.c (print_one_breakpoint): Ditto.
10544 * buildsym.c (finish_block): Ditto.
10545 * c-valprint.c (c_val_print): Ditto.
10546 * expprint.c (print_subexp): Ditto.
10547 * findvar.c (locate_var_value): Ditto.
10548 * infcmd.c (jump_command): Ditto.
10549 * linespec.c (decode_line_2, decode_compound): Ditto.
10550 * maint.c (maintenance_translate_address): Ditto.
10551 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10552 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10554 * p-valprint.c (pascal_val_print): Ditto.
10555 * stabsread.c (define_symbol): Ditto.
10556 * stack.c (print_frame, frame_info, print_block_frame_locals)
10557 (print_frame_arg_vars, return_command): Ditto.
10558 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10559 * symmisc.c (print_symbol): Ditto.
10560 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10561 (compare_search_syms, print_symbol_info, print_msymbol_info)
10562 (rbreak_command): Ditto.
10563 * tracepoint.c (tracepoints_info): Ditto.
10564 * typeprint.c (typedef_print): Ditto.
10565 * valops.c (value_of_variable, hand_function_call): Ditto.
10566 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10567 * ada-typeprint.c: Update Copyright.
10568 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10569 * tracepoint.c, cli/cli-cmds.c: Ditto.
10571 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10573 * frame.c (generic_unwind_get_saved_register): Make non-static.
10574 * frame.h (generic_unwind_get_saved_register): Declare.
10575 * mips-tdep.c (read_next_frame_reg): Fetch register from
10576 current regcache when frame is NULL.
10577 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10579 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10580 instead of frame_register_unwind().
10582 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10584 * remote-sim.c (gdbsim_insert_breakpoint)
10585 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10588 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10590 * remote.c (_initialize_remote): Add commands "set/show remote
10591 hardware-watchpoint-limit" and "set/show remote
10592 hardware-breakpoint-limit".
10593 (remote_hw_watchpoint_limit): Initialize to -1.
10594 (remote_hw_breakpoint_limit): Ditto.
10595 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10597 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10599 * coff-pe-read.c: New file - support reading of minimal symbols from a
10600 portable executable using the export table.
10601 * coff-pe-read.h: New file.
10602 * coffread.c: Include coff-pe-read.h.
10603 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10604 debugging symbols found.
10605 * Makefile.in (SFILES): Add coff-pe-read.o.
10606 (coff_pe_read_h): Define.
10607 (COMMON_OBS): Add coff-pe-read.o.
10608 (coffread.o): Add coff_pe_read_h dependency.
10609 (coff-pe-read.o): New target.
10611 2003-02-19 David Carlton <carlton@math.stanford.edu>
10613 * Makefile.in (SFILES): Add block.c.
10615 (COMMON_OBS): Add block.o.
10617 (x86-64-tdep.o): Add $(block_h).
10618 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10619 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10620 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10621 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10622 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10623 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10624 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10625 * value.h: Add opaque declaration for struct block.
10626 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10627 * ada-lang.h: Ditto.
10628 * x86-64-tdep.c: #include "block.h"
10629 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10630 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10631 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10632 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10633 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10634 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10635 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10636 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10637 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10638 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10639 * symtab.c (block_function): Ditto.
10640 (contained_in): Ditto.
10641 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10642 block.h. Add opaque declaration for struct block.
10643 * symtab.h: Move block_function and contained_in declarations to
10644 block.h. Add opaque declarations for struct block, struct
10646 (struct block): Move to block.h.
10647 (struct blockvector): Ditto.
10648 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10649 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10650 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10651 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10652 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10654 * block.c: New file.
10655 * block.h: New file.
10657 2003-02-19 Theodore A. Roth <troth@openavr.org>
10659 * avr-tdep.c (avr_extract_return_value): Remove function.
10660 (avr_store_return_value): Remove function.
10661 (avr_extract_struct_value_address): Remove function.
10662 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10664 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10666 * rs6000-tdep.c: Include "gdb_assert.h".
10667 (registers_e500): Add "acc" and "spefscr".
10668 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10669 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10670 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10672 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10674 2003-02-18 Keith Seitz <keiths@redhat.com>
10676 * Makefile.in: Add gdbtk-interps.c.
10678 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10680 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10681 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10683 2003-02-18 Andrew Cagney <cagney@redhat.com>
10685 * symtab.h (struct objfile): Add opaque declaration.
10687 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10689 From Jim Ingham <jingham@apple.com>:
10690 * dbxread.c (process_one_symbol): Use last_function_start rather
10691 than function_start_offset to find the real beginning of the
10692 current function. The latter is just the text section offset on
10693 some systems, the former is always the real function start.
10695 2003-02-17 Andrew Cagney <cagney@redhat.com>
10697 * configure.in: Revert ${target} != ${host}.
10699 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10701 * configure.in (Makefile): Use the test ${target} != ${host},
10702 instead of the absence of the "nm.h" file, to determine of the
10703 configuration non-native.
10704 * configure: Regenerate.
10706 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10708 From Brian Ford <ford@vss.fsi.com>
10710 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10711 conditionalize tui_active test.
10712 (lookup_cmd_1): Ditto.
10714 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10716 * configure.in: Add check for _etext.
10717 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10719 * config.in, configure: regenerated.
10721 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10723 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10725 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10727 * main.c (tui_version): Delete variable.
10728 (captured_main): When --tui, set interpreter_p to "tui" instead of
10729 enabling tui_version.
10730 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10732 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10733 * cli/cli-cmds.c (disassemble_command): Ditto.
10734 * defs.h (tui_version): Delete declaration.
10735 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10736 (tui-interp.o): Add rules.
10737 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10739 2003-02-14 Christopher Faylor <cgf@redhat.com>
10741 * win32-nat.c (register_loaded_dll): Correctly set address range for
10744 2003-02-12 Jason Molenda (jmolenda@apple.com)
10746 * symmisc.c (print_objfile_statistics): Include information about
10747 the number of psymtabs and symtabs in each object file.
10749 2003-02-13 Keith R Seitz <keiths@redhat.com>
10751 * main.h (struct captured_main_args): Add interpreter_p.
10752 * main.c (captured_main): Initialize interpreter_p from context.
10753 * gdb.c (main): Set interpreter_p argument.
10754 * Makefile.in (gdb.o): Add dependency for interps.h.
10756 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10758 * event-top.c (cli_command_loop): Delete declaration.
10759 (_initialize_event_loop): Delete function setting event_loop_hook.
10760 * event-top.h (cli_command_loop): Declare. Update copyright.
10761 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10762 * interps.c (current_interp_command_loop): When event_loop_p, call
10765 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10767 * interps.h (interp_command_loop_ftype): Change return type to
10770 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10772 * x86-64-tdep.c (x86_64_extract_return_value)
10773 (x86_64_store_return_value): Use regcache instead of regbuf.
10774 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10775 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10777 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10779 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10780 * aclocal.m4: Regenerate.
10781 * configure: Regenerate.
10783 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10784 TCL_LD_SEARCH_FLAGS.
10786 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10788 * dwarf2cfi.c: Reindented.
10790 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10792 * interps.c (clear_interpreter_hooks): Convert function definition
10795 2003-02-07 David Carlton <carlton@math.stanford.edu>
10797 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10799 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10801 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10802 (struct type): ...to here.
10803 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10805 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10806 (replace_type): Set length on all type variants for a given type.
10808 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10810 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10812 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10814 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10816 * Makefile.in (symm-nat.o): Update dependencies.
10817 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10818 (lynx-nat.o, ia64-linux-nat.): Ditto.
10819 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10820 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10821 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10823 * Makefile.in (inflow_h): Define.
10824 (procfs.o, inflow.o, procfs.o): Update dependencies.
10825 * inftarg.c (child_stop): Delete extern declaration of
10826 inferior_process_group. Include "inflow.h".
10827 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10828 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10829 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10830 (our_process_group, inferior_process_group): Extern declarations.
10832 * procfs.c: Include "gdb_assert.h".
10834 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10835 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10836 * jv-typeprint.c (java_type_print_base): Ditto.
10837 * typeprint.c (typedef_print): Eliminate STREQ.
10838 * cli/cli-script.c (define_command, define_command): Ditto.
10839 * main.c (captured_main): Ditto.
10840 * values.c (lookup_internalvar): Ditto.
10841 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10842 within `if' conditional.
10843 * linespec.c (decode_line_2): Ditto.
10844 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10845 (bfd_openw_with_cleanup): Ditto.
10847 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10849 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10850 legacy_extract_return_value and store_return_value to
10851 legacy_return_value.
10853 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10855 * win32-nat.c (get_relocated_section_addrs): New function. Find
10856 section load addresses for symbol handling in relocated DLLs.
10857 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10859 2003-02-05 Fred Fish <fnf@intrinsity.com>
10861 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10863 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10865 (angel_RDI_info): Ditto.
10866 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10868 (threads_continue_all_with_signals): Ditto.
10870 2003-02-05 Jim Ingham <jingham@apple.com>
10871 Keith Seitz <keiths@redhat.com>
10872 Elena Zannoni <ezannoni@redhat.com>
10873 Andrew Cagney <ac131313@redhat.com>
10875 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10876 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10877 (SUBDIR_MI_OBS): Add "mi-interp.o".
10878 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10879 (SFILES): Add "interps.c".
10880 (COMMON_OBS): Add "interps.o".
10881 (interps_h, mi_main_h): Define.
10882 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10883 (mi-main.o, main.o, event-top.o): Update dependencies.
10884 * cli/cli-interp.c: New file.
10885 * interps.h, interps.c: New files.
10886 * top.c: (gdb_init): Don't install the default interpreter, handed
10888 * main.c: Include "interps.h".
10889 (interpreter_p): Note that it should malloc'ed.
10890 (captured_command_loop): Call current_interp_command_loop.
10891 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10892 xfree and xstrdup when updating interpreter_p. Install the
10893 default interpreter. Add hack to stop mi1's copyright notice
10895 * event-top.h (gdb_setup_readline): Declare.
10896 (gdb_disable_readline): Declare.
10897 * event-top.c: Include "interps.h".
10898 (display_gdb_prompt): Call current_interp_display_prompt_p.
10899 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10900 gdb_stdlog, and gdb_stdtarg.
10901 (_initialize_event_loop): Don't call gdb_setup_readline.
10902 * cli-out.c (cli_out_set_stream): New function.
10903 * cli-out.h (cli_out_set_stream): Declare.
10905 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10907 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10908 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10909 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10910 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10911 config/i386/i386v42mp.mt: Removed.
10913 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10915 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10918 2003-02-05 Michael Chastain <mec@shout.net>
10920 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10921 2.12.1 and earlier versions.
10923 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10925 Remove orphaned hosts, targets and files.
10926 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10927 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10928 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10929 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10930 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10931 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10932 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10933 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10934 * config/sparc/tm-sp64sim.h: Delete.
10935 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10937 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10938 mips*-dec-mach3* targets.
10940 2003-02-04 Michael Chastain <mec@shout.net>
10942 * NEWS: Fix typo: sepcifying -> specifying.
10944 2003-02-04 Michael Chastain <mec@shout.net>
10946 * dwarfread.c: Add documentation on the state of dwarf-1,
10947 looking towards obsoletion.
10949 2003-02-03 Michael Chastain <mec@shout.net>
10951 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10952 gdb/testsuite/gdb.c++/pr-1023.exp.
10954 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10956 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10957 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10959 * utils.c (init_page_info): Delete reference to MPW in comments.
10960 * main.c (captured_main): Delete #ifdef MPW.
10962 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10964 * NEWS: Note that the m32r-*-elf* is obsolete.
10965 * monitor.c (monitor_expect): Obsolete reference to m32r.
10966 * configure.tgt: Mark m32r-*-elf* as obsolete.
10967 * MAINTAINERS: Mark m32k as obsolete.
10968 * m32r-rom.c: Obsolete file.
10969 * config/m32r/m32r.mt: Obsolete file.
10970 * config/m32r/tm-m32r.h: Obsolete file.
10971 * m32r-stub.c: Obsolete file.
10972 * m32r-tdep.c: Obsolete file.
10974 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10976 * NEWS: Mention that the z8k-zilog-none is obsolete.
10977 * MAINTAINERS: Mark z8k as obsolete.
10978 * configure.tgt: Obsolete the z8k-*-coff* target.
10979 * config/z8k/z8k.mt: Obsolete file.
10980 * config/z8k/tm-z8k.h: Obsolete file.
10981 * z8k-tdep.c: Obsolete file.
10983 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10985 * NEWS: Mention that the mn10200-elf is obsolete.
10986 * configure.tgt: Obsolete mn10200-*-* target.
10987 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10988 mention that the mn10200 is obsolete.
10989 * breakpoint.h: Ditto.
10990 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10991 * config/mn10200/mn10200.mt: Obsolete file.
10992 * config/mn10200/tm-mn10200.h: Obsolete file.
10993 * mn10200-tdep.c: Obsolete file.
10995 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10997 * MAINTAINERS: Mark h8500 as obsolete.
10998 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10999 * findvar.c (value_from_register): Ditto.
11000 * h8500-tdep.c: Mark file as obsolete.
11001 * config/h8500/h8500.mt: Ditto.
11002 * config/h8500/tm-h8500.h: Ditto.
11003 * NEWS: Mention that h8500 is obsolete.
11005 2003-02-04 David Carlton <carlton@math.stanford.edu>
11007 * objfiles.c (allocate_objfile): Always set name. Add comment at
11009 * jv-lang.c (get_dynamics_objfile): Add comment.
11011 2003-02-04 David Carlton <carlton@math.stanford.edu>
11013 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11014 * printcmd.c (build_address_symbolic): Replace uses of
11015 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11016 SYMBOL_NAME, and asm_demangle.
11019 2003-02-04 David Carlton <carlton@math.stanford.edu>
11021 * linespec.c (decode_compound): Extract code into
11023 (lookup_prefix_sym): New function.
11025 2003-02-04 David Carlton <carlton@math.stanford.edu>
11027 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11028 FLOAT_COERCION_BADNESS.
11029 * gdbtypes.c (rank_one_type): Replace all uses of
11030 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11032 2003-02-04 Jim Blandy <jimb@redhat.com>
11034 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11035 section, let dwarf_macinfo_section point to it, not
11038 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11040 Pointed out by Anton Blanchard <anton@samba.org>.
11041 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11042 (ppc_linux_at_sigtramp_return_path): Use it.
11044 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11046 * defs.h (streq): Add prototype.
11047 * utils.c (streq): New function.
11049 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11050 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11051 * mdebugread.c (new_symbol): Likewise.
11052 * stabsread.c (define_symbol): Likewise.
11053 * coffread.c (process_coff_symbol): Likewise.
11054 * dwarfread.c (new_symbol): Likewise.
11056 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11057 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11059 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11060 SYMBOL_INIT_DEMANGLED_NAME.
11061 * objfiles.c: Include "hashtab.h".
11062 (allocate_objfile): Call htab_set_functions_ex for the
11063 demangled_names_hash.
11064 (free_objfile): Call htab_delete for the demangled_names_hash.
11065 * objfiles.h (struct htab): Add declaration.
11066 (struct objfile): Add demangled_names_hash.
11067 * symfile.c: Include "hashtab.h".
11068 (reread_symbols): Call htab_delete for the demangled_names_hash.
11069 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11070 SYMBOL_NAME in the bcache.
11071 * symtab.c: Include "hashtab.h". Update comments.
11072 (create_demangled_names_hash, symbol_set_names): New functions.
11073 (symbol_find_demangled_name): New function, broken out from
11074 symbol_init_demangled_names.
11075 (symbol_init_demangled_names): Use it.
11076 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11077 (SYMBOL_SET_NAMES): New macro.
11078 (symbol_set_names): Add prototype.
11080 2003-02-03 Jim Blandy <jimb@redhat.com>
11082 Use a single, consistent representation for an empty minimal
11083 symbol table in an objfile.
11084 * objfiles.c (terminate_minimal_symbol_table): New function.
11085 (allocate_objfile): Call it.
11086 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11087 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
11089 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11090 objfile has minimal symbols, compare minimal_symbol_count to zero,
11091 instead of comparing msymbols with NULL.
11092 * objfiles.c (have_minimal_symbols): Same.
11093 * solib-sunos.c (solib_add_common_symbols): Call
11094 terminate_minimal_symbol_table.
11095 * symfile.c (reread_symbols): Same.
11097 2003-02-03 Kevin Buettner <kevinb@redhat.com>
11099 * s390-tdep.c (s390_address_class_type_flags)
11100 (s390_address_class_type_flags_to_name)
11101 (s390_address_class_name_to_type_flags): New functions.
11102 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11103 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11105 2003-02-03 Michael Snyder <msnyder@redhat.com>
11107 * arm-tdep.c: Fix spell-o in comment.
11109 2003-02-03 Michal Ludvig <mludvig@suse.cz>
11111 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11112 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
11113 error messages to contain BFD filename.
11115 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
11117 Fix PR gdb/742 gdb/743 gdb/877
11118 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11119 (do_mixed_source_and_assembly): Use
11120 make_cleanup_ui_out_tuple_begin_end and
11121 make_cleanup_ui_out_tuple_begin_end.
11122 (do_mixed_source_and_assembly): Ditto.
11123 * thread.c (do_captured_list_thread_ids): Ditto.
11124 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11125 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11126 ui_out_tuple_end): Delete prototypes.
11127 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11128 ui_out_list_end, ui_out_tuple_end): Delete.
11130 From Kevin Buettner <kevinb@redhat.com>:
11131 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
11132 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11133 (do_cleanup_table_end): New functions.
11134 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11135 Use cleanups to invoke_ui_out_tuple_end().
11136 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11137 * cli/cli-setshow.c (cmd_show_list): Use
11138 make_cleanup_ui_out_tuple_begin_end.
11140 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11142 * frame.c (frame_unwind_register): New function.
11143 (frame_unwind_unsigned_register): Use.
11144 (frame_unwind_signed_register): Use.
11145 (frame_read_register): New function.
11146 * frame.h (frame_unwind_register): Declare.
11147 (frame_read_register): Declare.
11149 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11150 and frame_unwind_register instead of read_memory, write_register
11151 and deprecated_write_register_bytes.
11153 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11155 * frame.h: Note that namelen can be negative.
11156 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11159 * NEWS: Mention that the d10v's `regs' command is deprecated.
11160 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11161 (d10v_print_registers_info): New function.
11162 (show_regs): Call d10v_print_registers_info.
11163 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11165 2003-02-02 Mark Kettenis <kettenis@gnu.org>
11167 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11168 lost in the previous patch.
11170 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11172 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11173 * stack.c (print_frame_info_base): Output complete FRAME tuple
11174 for synthesized frames.
11176 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11178 * mips-nat.c (zerobuf): Delete.
11179 (fetch_inferior_registers): Alloc local zerobuf.
11180 (fetch_core_registers): Alloc local zerobuf.
11181 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11182 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11183 * thread-db.c (thread_db_store_registers): Ditto.
11184 * sh-tdep.c (sh_do_register): Ditto.
11185 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11186 * remote-sim.c (gdbsim_store_register): Ditto.
11187 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11188 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11189 * monitor.c (monitor_supply_register): Ditto.
11190 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11191 * mips-nat.c (fetch_inferior_registers): Ditto.
11192 * m68klinux-nat.c (fetch_register): Ditto.
11193 * lynx-nat.c (fetch_inferior_registers): Ditto.
11194 (fetch_inferior_registers): Ditto.
11195 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11196 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11197 (hpux_thread_store_registers): Ditto.
11198 * hppah-nat.c (fetch_register): Ditto.
11199 * hppab-nat.c (fetch_register): Ditto.
11200 * hppa-tdep.c (pa_register_look_aside): Ditto.
11201 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11202 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11204 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11206 * gdbarch.sh: Explictly specify all method levels. When a
11207 variable with an empty level, provide a non-multi-arch default.
11208 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11209 * gdbarch.h: Re-generate.
11210 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11211 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11213 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11215 * defs.h (host_pointer_to_address): Delete declaration.
11216 (address_to_host_pointer): Delete declaration.
11217 * utils.c (host_pointer_to_address): Delete function.
11218 (address_to_host_pointer): Delete function.
11219 * procfs.c (procfs_address_to_host_pointer): New function.
11220 * procfs.c (proc_set_watchpoint): Use.
11221 (procfs_can_use_hw_breakpoint): Update comments.
11222 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11223 (som_solib_add): Use.
11224 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11225 * hppa-tdep.c (unwind_command): Use.
11227 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11229 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11232 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11233 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11234 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11235 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11236 (define_symbol): Update.
11237 * symfile.c (generic_load): Remove references to nindy.
11238 * symtab.c: Remove references to nindy.
11240 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11242 * infcmd.c (print_float_info): Delete code conditional on
11244 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11245 * config/m68k/nm-apollo68b.h: Ditto.
11246 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11247 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11248 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11250 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11252 * config/i386/tm-i386os9k.h: Removed.
11254 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11255 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11256 they're identical to i[3456]86-*-sysv* now.
11257 * config/i386/i386v32.mh: Removed.
11258 * config/i386/xm-i386v32.h: Removed.
11259 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11261 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11263 * config/i386/i386dgux.mh: Removed.
11264 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11266 * configure.in: Fix typo.
11267 * configure: Regenerated.
11269 2003-01-31 David Carlton <carlton@math.stanford.edu>
11271 * dwarf2read.c (dwarf2_locate_sections): Set
11272 dwarf_ranges_section.
11274 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11276 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11277 * utils.c: Update comments documenting legitimate uses of PTR.
11279 * utils.c: Re-indent.
11281 * config/djgpp/fnchange.lst: Delete nindy files.
11282 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11283 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11284 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11285 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11286 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11287 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11288 * Makefile.in (init.c): Remove nindy references.
11289 (saber_gdb): Delete rule.
11290 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11291 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11293 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11294 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11295 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11296 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11297 nindy-share/stop.h.
11298 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11299 * saber.suppress: Delete file.
11301 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11303 * dbxread.c (stabs_data): New static variable.
11304 (fill_symbuf): Support an in-memory buffer for stabs data.
11305 (stabs_seek): New function.
11306 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11307 (read_ofile_symtab): Use stabs_seek.
11308 (elfstab_build_psymtabs): Take an asection* instead of
11309 an offset and size. Relocate the stabs data if necessary.
11310 Save the section* for dbx_psymtab_to_symtab.
11311 * dwarf2read.c: Add section variables for each debug section.
11312 (dwarf2_locate_sections): Fill them in.
11313 (dwarf2_read_section): Take an asection* argument.
11314 Relocate the section contents if necessary.
11315 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11316 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11317 it to dwarf2_read_section.
11318 (dwarf2_build_frame_info): Update callers.
11319 * elfread.c (elf_symfile_read): Update call to
11320 elfstab_build_psymtabs.
11321 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11322 (DBX_STAB_SECTION): New macro.
11323 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11324 * symfile.c (symfile_dummy_outputs): New function.
11325 (symfile_relocate_debug_section): New function.
11326 * symfile.h (symfile_relocate_debug_section): Add prototype.
11328 2003-01-31 Richard Henderson <rth@redhat.com>
11330 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11331 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11332 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11333 * alpha-tdep.c (alpha_register_name): Add "unique".
11334 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11335 (ALPHA_UNIQUE_REGNUM): New.
11336 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11338 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11340 * README: Remove reference to Ericsson 1800 monitor.
11341 * Makefile.in (remote-es.o): Delete rule.
11342 (ALLDEPFILES): Delete remote-es.c.
11343 * remote-es.c: Delete file.
11344 * config/m68k/es1800.mt: Delete file.
11345 * config/djgpp/fnchange.lst: Update.
11346 * configure.tgt: Delete m68*-ericsson-* target.
11348 2003-01-31 Adam Fedor <fedor@gnu.org>
11350 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11351 Remove duplicate/shadowing variable of same name.
11353 2003-01-30 Jim Blandy <jimb@redhat.com>
11355 * symfile.c (find_separate_debug_file): Assert that the objfile's
11356 directory name we compute ends with a slash, and then assume that
11357 that's so everywhere we use it.
11359 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11361 * valops.c (value_assign): Flush frame cache after stores to memory
11364 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11366 * Makefile.in (mon960-rom.o): Delete rule.
11367 * mon960-rom.c: Delete file.
11369 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11371 * d10v-tdep.c: Include "frame-unwind.h".
11372 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11374 (next_addr, uses_frame): Delete.
11375 (struct d10v_unwind_cache): Define.
11376 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11377 Use info instead of next_addr and uses_frame globals.
11378 (d10v_frame_init_saved_regs): Delete function.
11379 (d10v_init_extra_frame_info): Delete function.
11380 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11381 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11382 init_frame_pc or frame_saved_pc.
11383 (d10v_pop_frame): Delete function.
11384 (do_d10v_pop_frame): Delete function.
11385 (d10v_frame_chain): Delete function.
11386 (d10v_frame_chain_valid): Delete function.
11387 (d10v_frame_pc_unwind): New function.
11388 (d10v_frame_id_unwind): New function.
11389 (saved_regs_unwinder): New function.
11390 (d10v_frame_register_unwind): New function.
11391 (d10v_frame_pop): New function.
11392 (d10v_frame_unwind): New variable.
11393 (d10v_frame_p): New function.
11394 (d10v_frame_saved_pc): Delete function.
11395 * Makefile.in (d10v-tdep.o): Update dependencies.
11397 2003-01-30 J. Brobecker <brobecker@gnat.com>
11399 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11400 causing some regressions due to a change in the default value
11403 2003-01-29 Richard Henderson <rth@redhat.com>
11404 Elena Zannoni <ezannoni@redhat.com>
11405 Daniel Jacobowitz <drow@mvista.com>
11408 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11410 (RANGES_SECTION): New.
11411 (dwarf_ranges_buffer): New variable.
11412 (struct comp_unit_head): Add member "die".
11413 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11414 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11415 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11416 (dwarf2_locate_sections): Likewise.
11417 (dwarf2_build_psymtabs): Read .debug_ranges.
11418 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11419 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11420 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11421 Look for DW_AT_ranges and return the bounding box.
11423 2003-01-29 Brian Ford <ford@vss.fsi.com>
11425 * win32-nat.c (cygwin_pid): Removed as unused.
11426 (child_attach): Try fall back to Cygwin pid.
11428 2003-01-29 Jim Blandy <jimb@redhat.com>
11430 * objfiles.h (struct objfile): Doc fix.
11432 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11434 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11435 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11436 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11437 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11438 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11439 (FRAME_SAVED_PC): Change to a function with predicate.
11440 * gdbarch.h, gdbarch.c: Re-generate.
11442 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11444 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11446 * complaints.c (complain): Delete function.
11447 * complaints.h (struct deprecated_complaint): Delete definition.
11448 (complain): Delete declaration.
11450 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11452 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11455 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11457 * sentinel-frame.h, sentinel-frame.c: New files.
11458 * Makefile.in (frame.o): Update dependencies.
11459 (SFILES): Add sentinel-frame.c.
11460 (sentinel_frame_h): Define.
11461 (COMMON_OBS): Add sentinel-frame.o.
11462 (sentinel-frame.o): Specify dependencies.
11463 * frame.c: Include "sentinel-frame.h".
11464 (frame_register_unwind): Rewrite assuming that there is always a a
11466 (frame_register, generic_unwind_get_saved_register): Ditto.
11467 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11468 (create_sentinel_frame, unwind_to_current_frame): New functions.
11469 (get_current_frame): Rewrite using create_sentinel_frame and
11470 unwind_to_current_frame. When possible, always create a frame.
11471 (create_new_frame): Set next to the sentinel frame.
11472 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11473 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11474 ID cache when necessary.
11475 (frame_saved_regs_id_unwind): Use frame_relative_level.
11476 (deprecated_generic_get_saved_register): Use frame_relative_level,
11477 get_frame_saved_regs, get_frame_pc, get_frame_base and
11479 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11482 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11484 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11486 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11488 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11489 (maintenance_set_profile_cmd): Use error () instead of warning ().
11491 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11493 * configure.in: Check that -pg works if using --enable-profiling.
11494 Check for monstartup and _mcleanup regardless of --enable-profiling.
11495 * maint.c: Check for monstartup and _mcleanup before using them.
11496 * config.in: Regenerated.
11497 * configure: Regenerated.
11499 2003-01-24 Nick Clifton <nickc@redhat.com>
11501 * Add sh2e support:
11503 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11505 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11506 (sh2e_show_regs): New.
11507 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11508 * config/sh/tm-sh.h: Added sh2e to comments.
11510 2003-01-23 Jim Blandy <jimb@redhat.com>
11512 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11513 symbols found)" message here; we haven't checked for a separate
11514 debug info file yet, so we don't know yet.
11515 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11516 we've looked everywhere. Also, there's no need to print a special
11517 message when we're loading the separate debug info file: the one
11518 symbol_file_add prints is fine.
11520 2003-01-23 Alexander Larsson <alexl@redhat.com>
11521 Jim Blandy <jimb@redhat.com>
11523 Add support for executables whose debug info has been separated
11524 out into a separate file, leaving only a link behind.
11525 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11526 and separate_debug_objfile_backlink.
11527 (put_objfile_before): New declaration.
11528 * symfile.c: #include "filenames.h".
11529 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11530 debug info in a separate file, read that, too. Save the addrs
11531 argument, so we can use it again to read the separated debug info;
11532 syms_from_objfile modifies the table we pass it.
11533 (reread_symbols): After re-reading an objfile, call
11534 reread_separate_symbols to refresh its separate debug info
11535 objfile, if it has one.
11536 (reread_separate_symbols, find_separate_debug_file,
11537 get_debug_link_info, separate_debug_file_exists): New functions.
11538 (debug_file_directory): New global var.
11539 (_initialize_symfile): Initialize debug_file_directory, and
11540 provide the new `set debug-file-directory' command to let the user
11542 * objfiles.c (free_objfile): If this objfile has its debug info in
11543 a separate objfile, free that one too. If this is itself a
11544 separate debug info objfile, clear our parent's backlink.
11545 (put_objfile_before): New function.
11546 * utils.c (gnu_debuglink_crc32): New function.
11547 * defs.h (gnu_debuglink_crc32): New declaration.
11548 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11549 * configure.in: Handle --with-separate-debug-dir config option.
11550 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11551 * acconfig.h (DEBUGDIR): New macro.
11552 * configure, aclocal.m4, config.in: Regenerated.
11554 2003-01-22 Jim Blandy <jimb@redhat.com>
11556 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11557 like the old symbol_file_add, but taking new arguments: you can
11558 now pass in either a `struct section_addr_info' list to say where
11559 each section is loaded, or a `struct section_offsets' table. Pass
11560 these new arguments through to syms_from_objfile as appropriate.
11561 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11562 with the appropriate quiescent values for the new arguments.
11564 * symfile.c: #include "gdb_assert.h".
11565 (syms_from_objfile): Add the ability to pass in a section offset
11566 table directly, as an alternative to the section_addr_info table.
11567 Document arguments better.
11568 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11569 * symfile.h (syms_from_objfile): Update declaration.
11570 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11572 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11574 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11576 Original patch by Tom Tromey <tromey@cygnus.com> and
11577 Jason Molenda <jmolenda@apple.com>.
11578 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11579 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11580 * NEWS: Mention profiling.
11581 * configure.in (--enable-gdbtk): Fix typo.
11582 (--enable-profiling): New. Set PROFILE_CFLAGS.
11583 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11585 (profiling_state): New variable.
11586 (mcleanup_wrapper): New function.
11587 (_initialize_maint): Remove NOTYET, fix call to
11588 add_setshow_boolean_cmd for "maint set profile".
11589 * configure: Regenerated.
11591 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11593 * Makefile.in (install-gdbtk): Install PNG images too.
11595 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11597 * exec.c (text_start): Delete global variable.
11598 (exec_file_attach): Make text_start local to the function.
11599 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11600 * valops.c (hand_function_call): Delete code that handles
11601 BEFORE_TEXT_END and AFTER_TEXT_END.
11602 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11603 of CALL_DUMMY_LOCATION.
11604 * gdbarch.c: Regenerate.
11605 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11606 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11607 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11608 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11609 (text_end): Delete extern declaration.
11611 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11613 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11614 * blockframe.c (backtrace_below_main): Move to "frame.c".
11615 (frame_chain_valid): Delete check for backtrace_below_main.
11616 (_initialize_blockframe): Delete initialization, move ``set
11617 backtrace-below-main'' command to "frame.c".
11618 (do_flush_frames_sfunc): Delete function.
11619 * frame.c: Include "command.h" and "gdbcmd.h".
11620 (frame_type_from_pc): New function.
11621 (create_new_frame): Use frame_type_from_pc.
11622 (legacy_get_prev_frame): New function.
11623 (get_prev_frame): Rewrite. When an old style frame, call
11624 legacy_get_prev_frame. Otherwize, unwind the PC first.
11625 (_initialize_frame): Add ``set backtrace-below-main'' command.
11626 * Makefile.in (frame.o): Update dependencies.
11628 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11630 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11631 DEPRECATED_REGISTERS_INFO.
11633 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11635 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11636 Maintainers'. Update `Various Maintainers'.
11638 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11640 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11641 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11642 Suppress actual parameters when `-'.
11643 * gdbarch.h, gdbarch.c: Regenerate.
11645 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11647 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11648 code handling dummy frames.
11650 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11652 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11653 (struct frame_unwind): Add field pop.
11654 * frame.h (frame_pop): Declare.
11655 * frame.c (frame_saved_regs_pop): New function.
11656 (trad_frame_unwinder): Add frame_saved_regs_pop.
11657 (frame_pop): New function.
11658 * dummy-frame.c (dummy_frame_pop): New function.
11659 (discard_innermost_dummy): New function.
11660 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11661 (dummy_frame_unwind): Add dummy_frame_pop.
11662 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11663 * valops.c (hand_function_call): Ditto.
11664 * stack.c (return_command): Ditto.
11666 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11668 * cris-tdep.c: Fix function declaration indentation.
11669 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11670 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11671 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11672 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11673 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11674 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11676 2003-01-18 Michael Chastain <mec@shout.net>
11678 * README (Unpacking and Installation -- quick overview):
11679 Warn against ".../gdb-5.3/gdb/configure".
11681 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11683 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11684 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11685 (struct frame_unwind): Declare opaque.
11686 (dummy_frame_p): Declare function.
11687 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11688 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11689 * dummy-frame.c: Include "frame-unwind.h".
11690 (dummy_frame_p): New function.
11691 (dummy_frame_unwind): New variable.
11692 * frame.c: Include "frame-unwind.h".
11693 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11694 to use the new unwind field.
11695 (set_unwind_by_pc): Delete function.
11696 (create_new_frame, get_prev_frame): Set unwind field using
11697 frame_unwind_find_by_pc.
11698 (trad_frame_unwind, trad_frame_unwinder): New variables.
11699 * frame.h (trad_frame_unwind): Declare variable.
11700 (frame_id_unwind_ftype): Delete declaration.
11701 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11702 (struct frame_unwind): Declare opaque.
11703 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11704 register_unwind with a single unwind pointer.
11705 * frame-unwind.h, frame-unwind.c: New files.
11706 * Makefile.in (SFILES): Add frame-unwind.c.
11707 (frame_unwind_h): Define.
11708 (COMMON_OBS): Add frame-unwind.o.
11709 (frame-unwind.o): Specify dependencies.
11710 (frame.o, dummy-frame.o): Update dependencies.
11712 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11714 * ada-valprint.c: Eliminate PTR.
11715 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11716 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11717 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11718 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11719 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11720 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11721 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11723 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11725 * main.c (captured_main): Don't use PTR.
11726 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11727 * gdbtypes.c (lookup_primitive_typename): Ditto.
11728 (lookup_struct_elt_type): Ditto.
11729 * f-valprint.c (info_common_command): Ditto.
11730 (list_all_visible_commons): Ditto.
11731 * jv-typeprint.c (java_type_print_base): Ditto.
11733 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11734 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11735 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11736 i386-interix-nat.c and i386-interix-tdep.c. Rename
11737 m68klinux-nat.c and m68klinux-tdep.c. Rename
11738 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11739 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11740 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11741 * main.c (captured_main): Use xfree, not free.
11743 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11745 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11746 ID back using a parameter.
11747 * frame.c (frame_id_unwind): Update call.
11748 (frame_saved_regs_id_unwind): Update.
11749 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11750 * dummy-frame.h (struct frame_id): Add opaque declaration.
11751 (dummy_frame_id_unwind): Update declaration.
11753 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11755 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11757 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11759 * MAINTAINERS (Stephen P. Smith): Updated email address.
11761 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11764 * breakpoint.c (until_break_command): Add new argument. Use it to
11765 decide whether to stop only at the current frame or not.
11766 * breakpoint.h (until_break_command): Update prototype.
11767 * infcmd.c (until_command): Add new argument to until_break_command
11769 (advance_command): New function.
11770 (_initialize_infcmd): Update help string for 'until' command.
11771 Add new 'advance' command.
11773 2003-01-14 David Carlton <carlton@math.stanford.edu>
11775 * linespec.c (decode_line_1): Normalize comments.
11776 (set_flags): Ditto.
11777 (locate_first_half): Ditto.
11778 (decode_compound): Ditto.
11779 (symtab_from_filename): Ditto.
11780 (decode_all_digits): Ditto.
11781 (decode_dollar): Ditto.
11782 (find_methods): Ditto.
11783 (find_toplevel_char): Ditto.
11785 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11787 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11788 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11789 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11790 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11791 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11792 * language.c, language.h, m32r-tdep.c: Update copyright.
11793 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11794 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11795 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11796 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11797 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11798 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11800 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11802 * stabsread.h (process_later, resolve_cfront_continuation):
11804 Update copyright years.
11805 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11806 Update copyright year.
11807 * dbxread.c(struct cont_elem): Obsolete.
11808 (process_later, process_now): Obsolete functions.
11809 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11810 Update copyright year.
11811 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11812 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11813 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11814 (parse_partial_symbols): Obsolete cfront support.
11816 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11818 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11819 read_cfront_baseclasses, read_cfront_member_functions,
11820 resolve_cfront_continuation,read_cfront_static_fields,
11821 copy_cfront_struct_fields): Obsolete functions.
11822 (define_symbol, read_one_struct_field): Obsolete cfront support.
11823 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11824 Update Copyright year.
11826 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11828 * stack.c (print_frame_info, print_stack_frame_base_stub,
11829 print_stack_frame_base, show_and_print_stack_frame_stub,
11830 show_and_print_stack_frame, print_only_stack_frame_stub,
11831 print_only_stack_frame): Delete functions.
11832 (print_stack_frame_stub): Call print_frame_info instead of
11833 print_frame_info_base.
11834 (print_frame_info_base): Rename to print_frame_info.
11835 (backtrace_command_1): Call print_frame_info, instead of
11836 print_frame_info_base.
11837 (current_frame_command): Call print_stack_frame, instead of
11838 print_only_stack_frame.
11839 (frame_command): Call print_stack_frame, instead of
11840 show_and_print_stack_frame.
11841 (up_command): Ditto.
11842 (down_command): Ditto.
11843 * frame.h (print_only_stack_frame): Delete prototype.
11844 * infrun.c (normal_stop): Call print_stack_frame, instead of
11845 show_and_print_stack_frame.
11846 * thread.c (info_threads_command): Call print_stack_frame, instead
11847 of print_only_stack_frame.
11849 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11851 * README (Graphical interface to GDB): Update URL. Point at
11854 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11857 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11859 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11862 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11864 * thread-db.c (attach_thread): Prototype.
11865 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11866 thread information (ti), and valid flags (th_valid, ti_valid).
11867 (attach_thread): Move target_pid_to_str call to after the thread
11868 is added to GDB's list. Initialize the cache.
11869 (thread_get_info_callback, thread_db_map_id2thr)
11870 (thread_db_get_info): New functions.
11871 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11872 (thread_db_store_registers, thread_db_thread_alive)
11873 (thread_db_get_thread_local_address): Use them.
11874 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11875 of calling error() for threads in unknown state.
11877 (clear_lwpid_callback): New function.
11878 (thread_db_resume): Use it to clear the cache.
11880 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11882 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11883 (resume_callback): Remove dead code.
11885 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11887 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11889 * gdbarch.h, gdbarch.c: Regenerate.
11890 * stack.c (frame_info): Only initialize the saved registers when
11891 FRAME_INIT_SAVED_REGS_P.
11892 * frame.c (frame_saved_regs_register_unwind): Assert
11893 FRAME_INIT_SAVED_REGS_P.
11894 (deprecated_generic_get_saved_register): Ditto.
11896 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11898 * source.c (openp): Squelch warning about "filename".
11900 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11902 * source.c (openp): If the file does not exist don't necessarily
11905 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11908 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11909 (integer_types_same_name_p): New function.
11910 (rank_one_type): Use it.
11911 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11913 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11915 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11917 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11918 * configure.in: Add --with-sysroot.
11919 * configure: Regenerated.
11920 * main.c (gdb_sysroot): New variable.
11921 (captured_main): Initialize gdb_sysroot.
11922 * defs.h (gdb_sysroot): New extern declaration.
11923 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11925 2003-01-12 Michael Chastain <mec@shout.net>
11927 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11929 2003-01-12 Michael Chastain <mec@shout.net>
11931 * top.c (print_gdb_version): Bump copyright year to 2003.
11933 2003-01-12 David Carlton <carlton@bactrian.org>
11935 * linespec.c (symtab_from_filename): Rename variable 's' to
11938 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11940 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11942 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11944 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11946 * d10v-tdep.c: Include "gdb_assert.h".
11947 (d10v_store_return_value): Rewrite to match current interface.
11948 (d10v_extract_struct_value_address): Ditto.
11949 (d10v_extract_return_value): Ditto.
11950 (d10v_gdbarch_init): Set store_restore_value,
11951 extract_struct_value_address and extract_return_value.
11953 2003-01-12 J. Brobecker <brobecker@gnat.com>
11955 * hpread.c (set_namestring): New procedure replacing the
11956 SET_NAMESTRING macro.
11957 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11958 by calls to set_namestring.
11960 2003-01-11 J. Brobecker <brobecker@gnat.com>
11962 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11963 a compilation warning.
11964 (hpread_process_one_debug_symbol): Likewise.
11966 2003-01-10 David Carlton <carlton@math.stanford.edu>
11968 * linespec.c (decode_line_1): Rename variable 's' to
11970 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11971 (decode_dollar): Ditto.
11972 (decode_variable): Ditto.
11973 (symbol_found): Ditto.
11975 2003-01-09 Michael Chastain <mec@shout.net>
11977 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11979 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11981 * win32-nat.c (set_process_privilege): New function.
11982 (child_attach): Call set_process_privilege() to enable the
11983 SE_DEBUG_NAME user privilege if available in process token.
11985 2003-01-10 J. Brobecker <brobecker@gnat.com>
11987 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11988 compilation error in the previous revision.
11990 2003-01-09 David Carlton <carlton@math.stanford.edu>
11992 * linespec.c: Update copyright.
11994 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11996 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11997 than inferior_ptid.
11998 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12000 2003-01-09 Andrew Cagney <ac131313@redhat.com>
12002 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12004 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12005 (frame_saved_regs_zalloc): Update.
12006 (frame_saved_regs_register_unwind): Update.
12007 (create_new_frame): Update.
12008 (get_prev_frame): Update.
12009 (frame_extra_info_zalloc): Update.
12010 (deprecated_get_frame_saved_regs): Update.
12011 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12012 * cris-tdep.c: Update comment.
12014 * somsolib.h: Fix function indentation.
12015 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12016 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12017 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12018 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12019 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12021 * infrun.c (follow_fork): Use ISO C definition.
12022 * expprint.c (print_subexp): Use xfree instead of free.
12023 * charset.c: Include "gdb_string.h" instead of <string.h>.
12024 (register_iconv_charsets): Use ISO C definition.
12025 (host_charset, target_charset): Ditto.
12026 * Makefile.in (charset.o): Update dependencies.
12027 (mi-cmd-env.o): Update dependencies.
12029 2003-01-08 Andrew Cagney <cagney@redhat.com>
12031 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12034 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12036 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12037 build directories. Save edited gdb output in Mbuild.log. If a
12038 build fails, remove any final GDB executable.
12040 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12042 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12043 replacing hex constants with function names and stripping leading
12044 file name directory prefixes.
12046 2003-01-08 Andrew Cagney <cagney@redhat.com>
12048 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12051 2003-01-08 David Carlton <carlton@math.stanford.edu>
12053 * linespec.c (decode_line_1): Move code into decode_variable.
12054 (decode_variable): New function.
12056 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12058 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12060 2003-01-08 Andrew Cagney <cagney@redhat.com>
12062 * cris-tdep.c (cris_frame_init_saved_regs): Use
12063 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12065 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12066 (sh64_nofp_frame_init_saved_regs): Ditto.
12067 (sh_fp_frame_init_saved_regs): Ditto.
12068 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12069 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12070 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12071 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12073 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
12075 * minsyms.c (lookup_minimal_symbol): Update comment.
12076 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12077 (lookup_minimal_symbol_solib_trampoline): Likewise.
12079 2003-01-08 Andrew Cagney <cagney@redhat.com>
12081 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12082 frame_relative_level.
12084 * alpha-tdep.c: Use get_frame_extra_info.
12085 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12086 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12087 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12088 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12090 * alpha-tdep.c: Use get_next_frame.
12091 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12092 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12093 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12094 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12095 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12096 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12097 * xstormy16-tdep.c: Ditto.
12099 2003-01-07 Andrew Cagney <cagney@redhat.com>
12101 * alpha-tdep.c: Use get_frame_base.
12102 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12103 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12104 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12105 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12106 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12107 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12108 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12109 * config/sparc/tm-sparc.h: Ditto.
12111 2003-01-07 Andrew Cagney <cagney@redhat.com>
12113 * frame.c (deprecated_get_frame_context): New function.
12114 (deprecated_set_frame_context): New function.
12115 * frame.h (deprecated_get_frame_context): Declare.
12116 (deprecated_set_frame_context): Declare.
12117 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12118 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
12120 2003-01-07 Andrew Cagney <cagney@redhat.com>
12122 * frame.c (deprecated_set_frame_next_hack): New function.
12123 (deprecated_set_frame_prev_hack): New function.
12124 * frame.h (deprecated_set_frame_next_hack): Declare.
12125 (deprecated_set_frame_prev_hack): Declare.
12126 * mcore-tdep.c (analyze_dummy_frame): Use
12127 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12128 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12130 2003-01-07 David Carlton <carlton@math.stanford.edu>
12132 * linespec.c (decode_line_1): Move code into decode_dollar.
12133 (decode_dollar): New function.
12135 2003-01-07 Andrew Cagney <cagney@redhat.com>
12137 * arm-tdep.c (arm_init_extra_frame_info): Use
12138 deprecated_update_frame_base_hack.
12139 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12140 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12141 (fix_frame_pointer): Ditto.
12142 (mn10300_analyze_prologue): Ditto.
12144 2003-01-07 Andrew Cagney <cagney@redhat.com>
12146 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12147 extra_info using frame_extra_info_zalloc.
12148 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12149 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12150 (sh64_init_extra_frame_info): Ditto.
12151 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12152 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12153 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12154 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12155 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12156 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12157 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12158 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12159 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12160 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12161 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12162 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12164 * mn10300-tdep.c (analyze_dummy_frame): Use
12165 deprecated_set_frame_extra_info_hack.
12166 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12168 2003-01-07 J. Brobecker <brobecker@gnat.com>
12170 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12171 class is not scText. These do not define "real" procedures.
12172 (parse_partial_symbols): Likewise.
12174 2003-01-06 Michael Snyder <msnyder@redhat.com>
12176 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12178 2003-01-06 Andrew Cagney <ac131313@redhat.com>
12180 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12181 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12182 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12183 deprecated_frame_xmalloc_with_cleanup.
12184 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12185 deprecated_frame_xmalloc.
12186 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12187 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12189 2003-01-06 Andrew Cagney <cagney@redhat.com>
12191 * x86-64-linux-tdep.c: Include "osabi.h".
12192 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12194 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12196 2003-01-06 Andrew Cagney <cagney@redhat.com>
12198 * MAINTAINERS (Target Instruction Set Architectures): Update
12199 arm-elf. Can be built with -Werror, has been multiarched.
12201 * value.h (unpack_long): Make buffer parameter constant.
12202 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12203 * scm-lang.h (scm_parse): Ditto.
12204 * defs.h (extract_typed_address, extract_address): Ditto.
12205 (extract_long_unsigned_integer): Ditto.
12206 * inferior.h (unsigned_pointer_to_address): Ditto.
12207 (signed_pointer_to_address): Ditto.
12208 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12209 * gdbarch.h, gdbarch.c: Regenerate.
12210 * findvar.c (extract_long_unsigned_integer): Update.
12211 (extract_address): Update.
12212 (extract_typed_address): Update.
12213 (unsigned_pointer_to_address): Update.
12214 * values.c (unpack_long): Update.
12215 (unpack_double): Update.
12216 (unpack_pointer): Update.
12217 (unpack_field_as_long): Update.
12218 * d10v-tdep.c (d10v_pointer_to_address): Update.
12219 * avr-tdep.c (avr_pointer_to_address): Update.
12220 * scm-lang.c (scm_unpack): Update.
12221 * findvar.c (signed_pointer_to_address): Update.
12223 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12225 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12226 since it is in i386-tdep.c.
12228 2003-01-06 J. Brobecker <brobecker@gnat.com>
12230 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12231 failure introduced in the previous change.
12233 2003-01-05 Michael Chastain <mec@shout.net>
12235 * README: Remove references to deleted remote-*.c files:
12236 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12237 remote-nrom.c, remote-os9k.c, remote-udi.c.
12239 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12241 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12242 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12243 i386_get_longjmp_target.
12245 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12247 * arm-tdep.c (prologue_cache): Change to a pointer.
12248 (_initialize_arm_tdep): Allocate prologue_cache.
12249 (check_prologue_cache): Update.
12250 (save_prologue_cache): Update.
12251 (arm_gdbarch_init): Update.
12253 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12255 * stabsread.c (update_method_name_from_physname): Call complaint()
12258 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12260 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12261 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12262 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12264 * blockframe.c: Include "gdbcmd.h" and "command.h".
12265 (backtrace_below_main): New variable.
12266 (file_frame_chain_valid, func_frame_chain_valid)
12267 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12268 (generic_func_frame_chain_valid): Remove functions.
12269 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12270 (_initialize_blockframe): New function.
12271 * Makefile.in (blockframe.o): Update dependencies.
12272 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12273 comment. Call frame_chain_valid ().
12274 * frame.h: Remove old prototypes. Add prototype for
12275 frame_chain_valid and update comments to match.
12276 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12277 Remove old comment.
12278 * gdbarch.h: Regenerated.
12279 * gdbarch.c: Regenerated.
12281 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12282 set_gdbarch_frame_chain_valid.
12283 * avr-tdep.c (avr_gdbarch_init): Likewise.
12284 * cris-tdep.c (cris_gdbarch_init): Likewise.
12285 * frv-tdep.c (frv_gdbarch_init): Likewise.
12286 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12287 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12288 (i386_nw_init_abi): Likewise.
12289 (i386_gdbarch_init): Likewise.
12290 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12291 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12292 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12293 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12294 * mips-tdep.c (mips_gdbarch_init): Likewise.
12295 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12296 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12297 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12298 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12299 * s390-tdep.c (s390_gdbarch_init): Likewise.
12300 * sh-tdep.c (sh_gdbarch_init): Likewise.
12301 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12302 * v850-tdep.c (v850_gdbarch_init): Likewise.
12303 * vax-tdep.c (vax_gdbarch_init): Likewise.
12304 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12306 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12307 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12308 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12309 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12310 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12311 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12312 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12313 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12315 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12317 * Makefile.in (acconfig_h): Remove incorrect macro.
12318 (config_h): Define.
12319 (osabi.o): Update dependencies.
12320 * configure.tgt: Set gdb_osabi based on target triplet.
12321 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12322 * configure: Regenerated.
12323 * config.in: Regenerated.
12324 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12325 (GDB_OSABI_DEFAULT): Define if not already defined.
12326 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12327 (set_osabi_string): New variables.
12328 (gdbarch_register_osabi): Add new OS ABI to
12329 gdb_osabi_available_names.
12330 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12331 (set_osabi, show_osabi): New functions.
12332 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12334 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12336 * arch-utils.c (gdbarch_info_init): Set osabi to
12337 GDB_OSABI_UNINITIALIZED.
12338 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12339 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12340 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12341 * gdbarch.c: Regenerated.
12342 * gdbarch.h: Regenerated.
12343 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12345 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12346 * osabi.h (enum gdb_osabi): Move to defs.h.
12347 (gdbarch_init_osabi): Update prototype.
12348 * defs.h (enum gdb_osabi): Moved here.
12349 * Makefile.in: Update dependencies.
12351 * alpha-tdep.h: Don't include "osabi.h".
12352 (struct gdbarch_tdep): Remove osabi member.
12353 * alpha-tdep.c: Include "osabi.h".
12354 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12355 iterate over arches. Update call to gdbarch_init_osabi.
12356 (alpha_dump_tdep): Don't dump osabi.
12357 * alpha-linux-tdep.c: Include "osabi.h".
12358 * alpha-osf1-tdep.c: Include "osabi.h".
12359 * alphafbsd-tdep.c: Include "osabi.h".
12360 * alphanbsd-tdep.c: Include "osabi.h".
12362 * arm-tdep.h: Don't include "osabi.h".
12363 (struct gdbarch_tdep): Remove osabi member.
12364 * arm-tdep.c: Include "osabi.h".
12365 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12366 iterate over arches. Update call to gdbarch_init_osabi.
12367 (arm_dump_tdep): Don't dump osabi.
12368 * arm-linux-tdep.c: Include "osabi.h".
12369 * armnbsd-tdep.c: Include "osabi.h".
12371 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12372 Update call to gdbarch_init_osabi.
12374 * i386-tdep.h: Don't include "osabi.h".
12375 (struct gdbarch_tdep): Remove osabi member.
12376 * i386-tdep.c: Include "osabi.h".
12377 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12378 iterate over arches. Update call to gdbarch_init_osabi.
12379 (i386_dump_tdep): Don't dump osabi.
12380 * i386-linux-tdep.c: Include "osabi.h".
12381 * i386-sol2-tdep.c: Include "osabi.h".
12382 * i386bsd-tdep.c: Include "osabi.h".
12383 * i386gnu-tdep.c: Include "osabi.h".
12384 * i386ly-tdep.c: Include "osabi.h".
12385 * i386nbsd-tdep.c: Include "osabi.h".
12386 * i386obsd-tdep.c: Include "osabi.h".
12388 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12389 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12390 check osabi when iterating over arches. Update call to
12391 gdbarch_init_osabi.
12392 (mips_dump_tdep): Don't dump osabi.
12394 * ns32k-tdep.h: Don't include "osabi.h".
12395 (struct gdbarch_tdep): Remove.
12396 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12397 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12398 allocate tdep. Update call to gdbarch_init_osabi.
12399 (ns32k_dump_tdep): Remove.
12400 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12401 * ns32knbsd-tdep.c: Include "osabi.h".
12403 * ppc-tdep.h: Don't include "osabi.h".
12404 (struct gdbarch_tdep): Remove osabi member.
12405 * rs6000-tdep.c: Include "osabi.h".
12406 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12407 osabi when iterating over arches. Update call to
12408 gdbarch_init_osabi.
12409 (rs6000_dump_tdep): Don't dump osabi.
12410 * ppc-linux-tdep.c: Include "osabi.h".
12411 * ppcnbsd-tdep.c: Include "osabi.h".
12413 * sh-tdep.h: Don't include "osabi.h".
12414 (struct gdbarch_tdep): Remove osabi member.
12415 * sh-tdep.c: Include "osabi.h".
12416 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12417 iterate over arches. Update call to gdbarch_init_osabi.
12418 (sh_dump_tdep): Don't dump osabi.
12419 * shnbsd-tdep.c: Include "osabi.h".
12421 * sparc-tdep.c: Include "osabi.h".
12422 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12423 iterate over arches. Update call to gdbarch_init_osabi.
12424 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12427 * vax-tdep.h: Don't include "osabi.h".
12428 (struct gdbarch_tdep): Remove.
12429 * vax-tdep.c: Include "osabi.h".
12430 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12431 iterate over arches. Don't allocate tdep. Update call
12432 to gdbarch_init_osabi.
12433 (vax_dump_tdep): Remove.
12434 (_initialize_vax_tdep): Update call to gdbarch_register.
12436 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12438 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12440 (breakpoint_re_set_one): Don't fetch the value for a disabled
12443 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12445 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12446 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12447 (COERCE_FLOAT_TO_DOUBLE): Remove.
12448 * gdbarch.c: Regenerate.
12449 * gdbarch.h: Regenerate.
12450 * Makefile.in: Remove value_h from gdbarch_h.
12451 * valops.c (coerce_float_to_double): New variable.
12452 (default_coerce_float_to_double): Remove.
12453 (standard_coerce_float_to_double): Remove.
12454 (value_arg_coerce): Use coerce_float_to_double.
12455 (_initialize_valops): Add "set coerce-float-to-double".
12456 * value.h (default_coerce_float_to_double): Remove prototype.
12457 (standard_coerce_float_to_double): Remove prototype.
12459 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12461 * mdebugread.c (parse_symbol): Likewise.
12462 * stabsread.c (define_symbol): Mark all functions as prototyped.
12464 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12465 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12466 set_gdbarch_coerce_float_to_double.
12467 * arm-tdep.c (arm_gdbarch_init): Likewise.
12468 * frv-tdep.c (frv_gdbarch_init): Likewise.
12469 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12470 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12471 * mips-tdep.c (mips_gdbarch_init): Likewise.
12472 (mips_coerce_float_to_double): Remove.
12473 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12474 (rs6000_coerce_float_to_double): Remove.
12475 * s390-tdep.c (s390_gdbarch_init): Likewise.
12476 * sh-tdep.c (sh_gdbarch_init): Likewise.
12477 (sh_coerce_float_to_double): Remove.
12478 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12479 (sparc_coerce_float_to_double): Remove.
12480 * v850-tdep.c (v850_gdbarch_init): Likewise.
12481 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12482 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12483 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12484 (hppa_coerce_float_to_double): Remove prototype.
12485 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12487 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12489 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12491 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12493 Suggested by Stewart Brown <sb24@avaya.com>:
12494 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12495 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12496 (c_type_print_varspec_suffix): Likewise.
12498 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12500 * configure.in: Don't set and AC_SUBST SUBDIRS.
12501 * configure: Regenerated.
12503 * configure.in: Remove code dealing with shared libraries.
12504 * Makefile.in: Remove HLDFLAGS and HLDENV.
12505 * configure: Regenerated.
12507 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12509 * frame.c (deprecated_frame_xmalloc): New function.
12510 (deprecated_set_frame_saved_regs_hack): New function.
12511 (deprecated_set_frame_extra_info_hack): New function.
12512 * frame.h (deprecated_frame_xmalloc): Declare.
12513 (deprecated_set_frame_saved_regs_hack): Declare.
12514 (deprecated_set_frame_extra_info_hack): Declare.
12516 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12518 * configure.in: Move code that provides the --enable-gdbtk option
12519 right after the code that handles the --enable-tui option, and
12520 polish it somewhat.
12521 * configure: Regenerated.
12523 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12524 AC_CHECK_FUNCS and remove the old check for pread64.
12525 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12526 * acconfig.h (_GNU_SOURCE): Add.
12527 (HAVE_PREAD64): Remove.
12528 * configure, aclocal.m4, config.in: Regenerated.
12530 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12532 * alpha-tdep.c: Use get_frame_saved_regs.
12533 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12534 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12535 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12536 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12537 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12539 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12541 * configure.in: Remove all use of the SUBDIRS variable; add
12542 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12543 code providing the --enable-multi-ice option, and move it right in
12544 front of the code that checks whether gdbserver is supported.
12546 * configure: Regenerated.
12547 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12550 2003-01-03 Andrew Cagney <cagney@redhat.com>
12552 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12553 * avr-tdep.c, cris-tdep.c: Ditto.
12554 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12555 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12557 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12559 * configure.in: Remove --enable-netrom option.
12560 * configure: Regenerated.
12562 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12564 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12565 declaration for `struct re_pattern_buffer' instead.
12566 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12568 2003-01-03 J. Brobecker <brobecker@gnat.com>
12570 * mdebugread.c (parse_symbol): Count until the stEnd matching
12571 the structure name.
12573 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12575 * configure.in: Remove --with-cpu option.
12576 subscripts. Remove evil changequotes here.
12577 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12578 * config.in, configure: Regenerated.
12580 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12581 * configure.in: Cleanup section that sources GDB and BFD configure
12582 subscripts. Remove evil changequotes here.
12583 * config.in, configure: Regenerated.
12585 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12587 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12588 frame accessor methods.
12589 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12590 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12591 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12592 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12593 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12594 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12595 * z8k-tdep.c: Ditto.
12597 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12599 * configure.in: Remove UI_OUT configuration code.
12600 * ada-lang.c: Update assuming UI_OUT is always true.
12601 * Makefile.in (UIOUT_CFLAGS): Remove.
12602 * configure: Regenerated.
12603 * TODO: Remove blurb about elimination of -DUI_OUT.
12605 * configure.in: Move code that provides the --enable-gdbcli,
12606 --enable-gdbmi options right before the code that handles the
12607 --enable-tui option. Polish a bit.
12608 * configure: Regenerated.
12610 * configure.in: Rewrite check for GNU regex and the
12611 --without-included regex option, and move it into the "Checks for
12612 library functions" section. This makes us use the system regex
12613 again by default on systems with version 2 of the GNU C library.
12614 This was apparently broken.
12615 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12616 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12617 * config.in, configure: Regenerated.
12619 * configure.in: Move code that provides the --enable-tui option
12620 before the "Checks for libraries" section. Polish the code
12621 somewhat and set need_curses to yes if we build the TUI. Rewrite
12622 code that looks for a library providing termcap functionality to
12623 match more closely what's done in the Readline library, and move
12624 it into to the "Checks for libraries" section.
12625 * configure: Regenerated.
12626 * Makefile.in (TERMCAP): Remove variable.
12627 * config/i386/go32.mh (TERMCAP): Remove variable.
12629 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12631 * MAINTAINERS: Mention gdb_mbuild.sh.
12632 * gdb_mbuild.sh: Rewrite.
12634 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12636 * configure.in: Fix typo in last change.
12637 * config.in, configure: Regenerated.
12639 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12641 * valarith.c (value_binop): Delete obsolete code and comments.
12642 * configure.host: Ditto.
12643 * buildsym.h (make_blockvector): Ditto.
12644 * buildsym.c (make_blockvector): Ditto.
12645 * defs.h (enum language): Ditto.
12646 (chill_demangle): Ditto.
12647 * elfread.c (elf_symtab_read): Ditto.
12648 * dwarfread.c (CHILL_PRODUCER): Ditto.
12649 (set_cu_language): Ditto.
12650 (handle_producer): Ditto.
12651 * expprint.c (print_subexp): Ditto.
12652 * gdbtypes.c (chill_varying_type): Ditto.
12653 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12654 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12655 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12656 (chill_varying_type): Ditto.
12657 * language.h (_LANG_chill): Ditto.
12658 * language.c (binop_result_type, integral_type): Ditto.
12659 (character_type, string_type, structured_type): Ditto.
12660 (lang_bool_type, binop_type_check): Ditto.
12661 * stabsread.h (os9k_stabs): Ditto.
12662 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12663 (define_symbol, read_type, read_struct_fields): Ditto.
12664 (read_array_type, read_enum_type, read_huge_number): Ditto.
12665 (read_range_type, start_stabs): Ditto.
12666 * symfile.c (init_filename_language_table): Ditto.
12667 (add_psymbol_with_dem_name_to_list): Ditto.
12668 * symtab.c (symbol_init_language_specific): Ditto.
12669 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12670 * symtab.h (struct general_symbol_info): Ditto.
12671 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12672 * typeprint.c (typedef_print): Ditto.
12673 * utils.c (fprintf_symbol_filtered): Ditto.
12674 * valops.c (value_cast, search_struct_field, value_slice): Delete
12676 (varying_to_slice): Delete function.
12677 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12678 (varying_to_slice): Delete declaration.
12679 * MAINTAINERS: Update.
12681 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12683 * configure.in: Reorganize "Checks for library functions section"
12684 a bit. Remove check for `btowc' and `isascii' functions.
12685 * configure: Regenerated.
12687 * acconfig.h (_MSE_INT_H): Remove.
12688 * configure.in: Create "Checks for header files" section, and move
12689 appropriate tests there. Don't check for objlist.h, wchar.h,
12690 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12691 misdetection fix. Also add "Checks for types", "Checks for
12692 compiler characteristics" and "Checks for library functions"
12694 * config.in, configure: Regenerated.
12696 * configure.in: Create "Checks for programs" section, and move
12697 appropriate tests there.
12699 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12701 * configure.in: Create "Checks for libraries" section, and move
12702 appropriate tests there. Cleanup check for wctype in libw. Use
12703 AC_SEARCH_LIBS to see whether we need libsocket.
12704 * configure: Regenerated.
12706 For older changes see ChangeLog-2002
12712 version-control: never