daily update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
cf50a87a
EZ
12003-09-24 Elena Zannoni <ezannoni@redhat.com>
2
3 * linux-proc.c (linux_do_registers): New function.
4 (linux_make_note_section): Use linux_do_registers in case of
5 single threaded inferior programs.
6
64f395bf
AC
72003-10-01 Andrew Cagney <cagney@redhat.com>
8
9 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
10 use STRUCT_ADDR. When not using "struct return convention", pass
11 "0" to "value_being_returned". Add FIXMEs.
12 * infcmd.c (print_return_value): Pass an explicit 0/1 to
13 value_being_returned. Add comments.
14 * values.c (value_being_returned): Add fixme.
15 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
16 (hppa_value_returned_from_stack): Add FIXME.
17
639d11d3
DC
182003-09-30 David Carlton <carlton@kealia.com>
19
20 * dwarf2read.c (struct die_info): Add 'parent' field; replace
21 'has_children' and 'next' by 'child' and 'sibling'.
22 (read_comp_unit): Rework algorithm, breaking body into
23 read_die_and_children and read_die_and_siblings.
24 (read_die_and_children, read_die_and_siblings): New.
25 (read_full_die): Add 'has_children' argument; set it instead of
26 the die's 'has_children' field. Minor formatting cleanup.
27 (free_die_list): Use die->child and die->sibling instead of
28 die->next.
29 (dump_die_list): Ditto.
30 (sibling_die): Use die->sibling.
31 (psymtab_to_symtab_1): Use die's 'child' field in place of its
32 'has_children' and 'next' fields.
33 (process_die, read_file_scope, read_func_scope)
34 (read_lexical_block_scope, read_structure_scope)
35 (read_enumeration, read_array_type, read_common_block)
36 (read_namespace, read_subroutine_type, dump_die): Ditto.
37
5bffac25
AC
382003-09-30 Andrew Cagney <cagney@redhat.com>
39
40 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
41 to 224, not 220.
42
f30992d4
AC
432003-09-30 Andrew Cagney <cagney@redhat.com>
44
45 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
46 REGISTER_VIRTUAL_SIZE.
47 * gdbarch.h, gdbarch.c: Regenerate.
48 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
49 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
50 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
51
2e092625
AC
522003-09-29 Andrew Cagney <cagney@redhat.com>
53
54 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
55 DEPRECATED_REGISTER_VIRTUAL_TYPE.
56 * gdbarch.h, gdbarch.c: Regenerate.
57 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
58 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
59
60 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
61 * remote-vxmips.c (vx_read_register): Ditto.
62 * remote-vx68.c (vx_read_register): Ditto.
63 * gnu-nat.c (inf_validate_procs): Ditto.
64
7a5dd6ee
JB
652003-09-29 J. Brobecker <brobecker@gnat.com>
66
67 * infcall.c (call_function_by_hand): Fix build failure
68 introduced in the previous change to this file.
69
1fe43d45
AC
702003-09-29 Andrew Cagney <cagney@redhat.com>
71
72 * NEWS: Mention Objective-C.
73
e28a332c
JG
742003-09-29 Jerome Guitton <guitton@act-europe.fr>
75
76 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
77 test if the register has been saved on the stack.
78 (arm_scan_prologue_cache): When analysing the instruction
79 "str lr, [sp, #-4]", save the address where lr has been stored.
80
9ff63c35
AC
812003-09-28 Andrew Cagney <cagney@redhat.com>
82
7f5f525d
AC
83 * frame.c (frame_read_unsigned_register): Delete function.
84 * frame.h (frame_read_unsigned_register): Delete declaration.
85 * sparc-tdep.c (sparc_init_extra_frame_info): Use
86 get_frame_register_unsigned.
87 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
88 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
89 * d10v-tdep.c (d10v_print_registers_info): Ditto.
90
91 * frame.h (frame_read_register): Delete declaration.
92 * frame.c (frame_read_register): Delete function.
93 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
94 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
95 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
96 * mips-tdep.c (mips_register_to_value): Ditto.
97 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
98 * d10v-tdep.c (d10v_print_registers_info): Ditto.
99
100 * frame.c (frame_read_signed_register): Delete function.
101 (frame_read_unsigned_register): Update comments.
102 * frame.h (frame_read_signed_register): Delete declaration.
103 * h8300-tdep.c (h8300_print_register): Use
104 get_frame_register_signed.
105 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
106
9ff63c35
AC
107 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
108 Rename VALUE_RETURNED_FROM_STACK.
109 * infcmd.c (print_return_value): Update.
110 * infcall.c (call_function_by_hand): Update.
111
41d041d6
MK
1122003-09-28 Mark Kettenis <kettenis@gnu.org>
113
114 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
115 regcache argument and reverse the order of the other two
116 arguments. Remove local regcache variable. Determine
117 architecture from REGCACHE. Update comments.
118 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
119 reverse the order of the other two arguments. Remove local
120 regcache variable. Determine architecture from REGCACHE. Update
121 comments.
122 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
123 prototypes. Update comments.
124 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
125 comment.
126 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
127 Update.
128 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
129 * i386-interix-nat.c (supply_fpregset): Update.
130 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
131 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
132 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
133 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
134 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
135 Update.
136 * i386obsd-tdep.c (fetch_core_registers): Update.
137 * i386v4-nat.c (supply_fpregset): Update.
138 * x86-64-linux-nat.c (supply_fpregset): Update.
139 * x86-64-linux-tdep.c (fetch_core_registers): Update.
140
1cb97e17
MK
1412003-09-27 Mark Kettenis <kettenis@gnu.org>
142
5716833c
MK
143 * i386-tdep.h: Put opaque declarations in alphabetical
144 order. Remove spurious whitespace.
145 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
146 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
147 * i386-tdep.c (MM0_REGNUM): Remove define.
148 (i386_mmx_regnum_p): Add gdbarch argument.
149 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
150 Rewrite using new macro definitions for FPU/SSE registers.
151 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
152 definitions from i387-tdep.h.
153 (i386_register_name): Update.
154 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
155 new macro definitions for FPU/SSE registers.
156 (i386_extract_return_value): Determine whether floating-point
157 registers are present by examining REGCACHE's architecture.
158 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
159 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
160 FPU/SSE registers.
161 (i386_register_type): Update.
162 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
163 definitions for FPU registers. Use REGCACHE's architecture to
164 determine the appropriate register numbers.
165 (i386_pseudo_register_read, i386_pseudo_register_write,
166 i386_register_reggroup_p): Update.
167 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
168 TDEP->mm0_regnum.
169 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
170 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
171 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
172 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
173 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
174 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
175 *' to `void *'.
176 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
177 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
178 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
179 definitions for FPU/SSE registers.
180 (FXSAVE_MXCSR_ADDR): New define.
181 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
182 TDEP->mm0_regnum.
183 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
184 (I387_ST0_REGNUM): Define.
185
41d35cb0
MK
186 * regcache.h (get_regcache_arch): New prototype.
187 * regcache.c (get_regcache_arch): New function.
188
54e74f72
MK
189 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
190 whitespace.
191
1cb97e17
MK
192 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
193 Initialize using ARRAY_SIZE.
194
0968aa8c
AC
1952003-09-27 Andrew Cagney <cagney@redhat.com>
196
197 * arch-utils.c (deprecated_init_frame_pc_default): Rename
198 "init_frame_pc_default".
199 * arch-utils.h (deprecated_init_frame_pc_default): Update.
200 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
201 * vax-tdep.c (vax_gdbarch_init): Update.
202 * v850-tdep.c (v850_gdbarch_init): Update.
203 * sh64-tdep.c (sh64_gdbarch_init): Update.
204 * s390-tdep.c (s390_gdbarch_init): Update.
205 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
206 * mcore-tdep.c (mcore_gdbarch_init): Update.
207 * h8300-tdep.c (h8300_gdbarch_init): Update.
208 * cris-tdep.c (cris_gdbarch_init): Update.
209 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
210
54c84734
MK
2112003-09-26 Mark Kettenis <kettenis@gnu.org>
212
213 * regset.h: New file.
214 * Makefile.in (regset_h): Add.
215
1b1d3794
AC
2162003-09-25 Andrew Cagney <cagney@redhat.com>
217
218 * frame.h (deprecated_frame_saved_regs): Rename
219 get_frame_saved_regs.
220 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
221 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
222 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
223 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
224 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
225
e6beb428
AC
2262003-09-25 Andrew Cagney <cagney@redhat.com>
227
228 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
229 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
230 and Java.
231 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
232 arm*-*-* do not use the new frame code.
233
710122da
DC
2342003-09-25 David Carlton <carlton@kealia.com>
235
236 * c-exp.y: Remove 'register' declarations.
237 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
238
79c2c32d
DC
2392003-09-25 David Carlton <carlton@kealia.com>
240
241 * c-exp.y: Include cp-support.h. Add qualified_type.
242 (yylex): Delete nested type hack; add comments.
243 * cp-namespace.c (cp_lookup_nested_type): New function.
244 * cp-support.h: Declare cp_lookup_nested_type.
245 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
246 instead of value_struct_elt_for_reference.
247 * valops.c: Include cp-support.h.
248 (value_aggregate_elt): New function.
249 (value_namespace_elt): Ditto.
250 (value_struct_elt_for_reference): Make static.
251 * value.h: Delete declaration of value_struct_elt_for_reference;
252 add declaration for value_aggregate_elt.
253 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
254 (valops.o): Ditto.
255
898c62f5
DJ
2562003-09-25 Daniel Jacobowitz <drow@mvista.com>
257
258 * stack.c: Include "reggroups.h".
259 (frame_info): Only display registers in all_reggroup.
260 * Makefile.in (stack.o): Update dependencies.
261
28cd8767
JG
2622003-09-25 Jerome Guitton <guitton@act-europe.fr>
263
264 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
265 "add ip, sp #n" in the prologue.
266 (arm_scan_prologue): Ditto.
267
a4ab2b5d
JG
2682003-09-25 Jerome Guitton <guitton@act-europe.fr>
269
270 * MAINTAINERS (write after approval): Add myself.
271
3f244638
AS
2722003-09-25 Andreas Schwab <schwab@suse.de>
273
274 * m68k-tdep.c: Include "dwarf2-frame.h".
275 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
276 * Makefile.in (m68k-tdep.o): Update dependencies.
277
1c0159e0
CV
2782003-09-25 Corinna Vinschen <vinschen@redhat.com>
279
280 * sh-tdep.c (struct frame_extra_info): Remove.
281 (struct sh_frame_cache): New structure.
282 (GET_SOURCE_REG): New macro extracting source register of an opcode.
283 (GET_TARGET_REG): Ditto but target register.
284 (GET_PUSHED_REG): Remove.
285 (IS_MOV_ARG_TO_REG): New macro.
286 (IS_MOV_ARG_TO_IND_R14): New macro.
287 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
288 (IS_MOVW_PCREL_TO_REG): New macro.
289 (IS_MOVL_PCREL_TO_REG): New macro.
290 (IS_SUB_REG_FROM_SP): New macro.
291 (IS_ARG_MOV): Remove.
292 (IS_MOV_TO_R14): Remove.
293 (IS_RESTORE_FP): New macro.
294 (IS_RTS): New macro.
295 (IS_LDS): New macro.
296 (IS_MOV_FP_SP): New macro.
297 (IS_ADD_REG_TO_FP): New macro.
298 (IS_ADD_IMM_FP): New macro.
299 (sh_skip_prologue_hard_way): Remove.
300 (sh_saved_pc_after_call): Remove.
301 (sh_frame_chain): Remove.
302 (sh_find_callers_reg): Remove.
303 (sh_nofp_frame_init_saved_regs): Remove.
304 (sh_fp_frame_init_saved_regs): Remove.
305 (sh_init_extra_frame_info): Remove.
306 (sh_analyze_prologue): New function.
307 (sh_skip_prologue): Remove deprecated code. Rely on new function
308 sh_analyze_prologue when after_prologue fails.
309 (sh_frame_saved_pc): Remove.
310 (sh_alloc_frame_cache): New function.
311 (sh_frame_cache): Ditto.
312 (sh_frame_prev_register): Ditto.
313 (sh_frame_this_id): Ditto.
314 (sh_frame_unwind): New structure defining the heuristic frame
315 sniffer interface.
316 (sh_frame_sniffer): New function.
317 (sh_unwind_sp): Ditto.
318 (sh_unwind_pc): Ditto.
319 (sh_unwind_dummy_id): Ditto.
320 (sh_frame_base_address): Ditto.
321 (sh_frame_base): New structure defining new frame base code.
322 (sh_in_function_epilogue_p): New function.
323 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
324 code and to call all new code instead. Initialize dwarf2 and
325 heuristic frame sniffer.
326
5f9769d1
PH
3272003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
328
329 * parser-defs.h (struct exp_descriptor): New definition, containing
330 language-specific info for printing, prefixifying, dumping, and
331 evaluating expressions.
332 (exp_descriptor_standard): Declare new variable.
333 (print_subexp): Make global and declare here (from expprint.c).
334 (dump_subexp): Ditto.
335 (dump_subexp_body_standard): Declare.
336 (operator_length_standard): Declare.
337 (op_name_standard): Declare.
338 (print_subexp): Declare.
339 (print_subexp_standard): Declare.
340
341 * language.h (struct language_defn): Add la_exp_desc field to hold
342 pointer to table for language-specific operators.
343 Remove evaluate_exp field, which is now in struct exp_descriptor.
344
345 * parse.c (operator_length): Move most code to new
346 operator_length_standard function. Use language-specific information.
347 (operator_length_standard): New function taking most code from
348 operator_length.
349 (exp_descriptor_standard): New constant.
350
351 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
352 and OP_EXTENDED_LAST.
353
354 * expprint.c (print_subexp): Use language-specific print_subexp.
355 Make global; remove static declaration.
356 Move most code to print_subexp_standard.
357 (print_subexp_standard): New function, containing code formerly in
358 print_subexp.
359 (op_name): Add expression to argument signature.
360 Use langauge-specific op_name.
361 Move most code to op_name_standard.
362 (op_name_standard): New function, containing code formerly in op_name.
363 (dump_subexp): Use new version of op_name function.
364 Use language-specific dump_subexp_body, and move most existing code to
365 dump_subexp_body_standard.
366 (dump_raw_expression): Use new op_name interface.
367 (dump_subexp_body): Move most code to dump_subexp_body_standard.
368 (dump_subexp_body_standard): New function, containing code formerly
369 in dump_subexp_body.
370
371 * language.c (unknown_language): Add default la_exp_desc field and
372 remove evaluate_exp field.
373 (auto_language): Ditto.
374 (local_language): Ditto.
375 * f-lang.c (f_language_defn): Ditto.
376 * c-lang.c (c_language_defn): Ditto.
377 (cplus_language_defn): Ditto.
378 (asm_language_defn): Ditto.
379 (minimal_language_defn): Ditto.
380 * p-lang.c (pascal_language_defn): Ditto.
381 * m2-lang.c (m2_language_defn): Ditto.
382 * objc-lang.c (objc_language_defn): Ditto.
383
384 * jv-lang.c (exp_descriptor_java): New variable, containing
385 Java-specific expression evaluator.
386 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
387 field.
388 * scm-lang.c (exp_descriptor_scm): New variable, containing
389 Scheme-specific expression evaluator.
390 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
391 field.
392 * objc-lang.c (print_object_command): Take evaluate_exp from the
393 la_exp_desc field.
394
395 * Makefile.in (eval.o): Add dependency on parser-defs.h.
396
397 * eval.c: Include parser-defs.h for the full declaration of
398 la_exp_desc's type.
399 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
400
24daaebc
PH
4012003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
402
403 * parser-defs.h (operator_length): Declare.
404
405 * parse.c (length_of_subexp): Use operator_length to get operator
406 lengths and arities for operators.
407 Move most code to new operator_length function.
408 (operator_length): New function absorbing most code from
409 length_of_subexp.
410 (prefixify_subexp): Remove large case and use operator_length instead.
411 (parse_exp_1): Use renamings:
412 dump_prefix_expression => dump_raw_expression and
413 dump_postfix_expression => dump_prefix_expression.
414
415 * expression.h (dump_prefix_expression): Rename to ...
416 (dump_raw_expression): New name.
417 (dump_postfix_expression): Rename to ...
418 (dump_prefix_expression): New name.
419
420 * expprint.c (dump_subexp): Make global. Add comment.
421 Move most existing code to dump_subexp_body.
422 (dump_subexp_body): New function.
423 (dump_prefix_expression): Rename to dump_raw_expression.
424 Remove attempt to print the expression via print_expression: it can't
425 work before the expression is prefixified.
426 (dump_raw_expression): Renamed from dump_prefix_expression.
427 (dump_postfix_expression): Rename to dump_prefix_expression, since
428 that's what it does.
429 Remove 'note' parameter, since this routine must be used on
430 prefixified expression.
431 (dump_prefix_expression): Renamed from dump_postfix_expression.
432
8c2957c4
JB
4332003-09-22 Jim Blandy <jimb@redhat.com>
434
435 * dwarf2read.c (read_array_type): When building the type for an
436 array of unspecified length, make sure to choose the upper bound
437 so that the array's total length comes out to be zero --- that's
438 how we represent such arrays.
439
592e3010
MC
4402003-09-22 Michael Chastain <mec@shout.net>
441
442 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
443
365c70b1
JJ
4442003-09-22 Jeff Johnston <jjohnstn@redhat.com>
445
446 * top.c (quit_force): Fix indirect call to quit_target so
447 a struct qt_args pointer is passed.
448
5d6eb653
AC
4492003-09-22 Andrew Cagney <cagney@redhat.com>
450
451 * arch-utils.h (init_frame_pc_noop): Delete declaration.
452 * arch-utils.c (init_frame_pc_noop): Delete function.
453 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
454 "init_frame_pc".
455 * mips-tdep.c (mips_gdbarch_init): Ditto.
456 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
457 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
458 declaration.
459 (DEPRECATED_INIT_FRAME_PC): Delete macro.
460 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
461 declaration.
462 (DEPRECATED_INIT_FRAME_PC): Delete macro.
463
b222a67f
AG
4642003-09-22 Anthony Green <green@redhat.com>
465
466 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
467 declaration.
468
d5b5ac79
AC
4692003-09-20 Andrew Cagney <cagney@redhat.com>
470
deafb061
AC
471 * breakpoint.c: Eliminate ARGSUSED.
472 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
473 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
474 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
475 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
476 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
477 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
478 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
479 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
480 * wince.c, remote-vx.c: Ditto.
481
d5b5ac79
AC
482 * cli/cli-script.c: Remove "register" attributes.
483 * config/pa/tm-hppa.h: Ditto.
484 * cli/cli-decode.c: Ditto.
485 * cli/cli-cmds.c: Ditto.
486
c6316faa
AC
4872003-09-19 Andrew Cagney <cagney@redhat.com>
488
489 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
490 DEPRECATED_NPC_REGNUM.
491 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
492
f4f99b11
CF
4932003-09-19 Christopher Faylor <cgf@redhat.com>
494
495 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
496
1708f284
JB
4972003-09-19 Jim Blandy <jimb@redhat.com>
498
499 * macrotab.c (macro_include): Use the correct comparison to find
500 the appropriate place for this inclusion in the list.
501
b9fbf434
AC
5022003-09-19 Andrew Cagney <cagney@redhat.com>
503
504 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
505 (DEPRECATED_HPUX_TEXT_END): Define.
506 (deprecated_hpux_text_end): Declare.
507 (struct target_ops): Declare opaque.
508 * hppah-nat.c (text_end): Make static.
509 (deprecated_hpux_text_end): New function.
510 * exec.c (text_end): Delete global variable.
511 (NEED_TEXT_START_END): Do not define.
512 (exec_file_attach): Replace code computing "text_end" code with
513 call to DEPRECATED_HPUX_TEXT_END.
514
5b03f266
AC
5152003-09-19 Andrew Cagney <cagney@redhat.com>
516
517 * utils.c (align_up, align_down): New functions.
518 * defs.h (align_up, align_down): Declare.
519 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
520 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
521 and "align_down".
522 (round_up, round_down): Delete functions.
523 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
524 "align_down".
525 (ROUND_DOWN, ROUND_UP): Delete macros.
526 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
527 * h8300-tdep.c: Replace "round_up" and "round_down" with
528 "align_up" and "align_down".
529 (round_up, round_down): Delete macros.
530 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
531 "align_down".
532 (ROUND_UP, ROUND_DOWN): Delete macros.
533
51db5742
JB
5342003-09-18 J. Brobecker <brobecker@gnat.com>
535
536 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
537 hard-coded constant. Use the proper machine name instead.
538
77949794
AC
5392003-09-17 Andrew Cagney <cagney@redhat.com>
540
541 * sparc-tdep.c (legacy_register_name): Delete function.
542 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
543 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
544 * infcmd.c (gdb_register_name): Delete variable.
545 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
546 REGISTER_NAME and "tm.h".
547 * gdbarch.h, gdbarch.c: Regenerate.
548 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
549 REGISTER_NAMES in comments.
550 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
551 * m68klinux-nat.c (regmap): Ditto.
552
b55c33cc
JB
5532003-09-17 Jim Blandy <jimb@redhat.com>
554
555 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
556
957e27ac
AC
5572003-09-17 Andrew Cagney <cagney@redhat.com>
558
559 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
560 (ppcnbsd_init_abi): Set "use_struct_convention" to
561 "ppcnbsd_use_struct_convention".
562
192cb3d4
MK
5632003-09-17 Mark Kettenis <kettenis@gnu.org>
564
565 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
566 * gdbarch.h, gdbarch.c: Regenerate.
567 (stabs_argument_has_addr): New architecture method.
568 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
569 * arch-utils.c: Include "buildsym.h".
570 (default_stabs_argument_has_addr): New function.
571 * stabsread.c (define_symbol): Use stabs_argument_has_addr
572 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
573
efe59759
AC
5742003-09-17 Andrew Cagney <cagney@redhat.com>
575
576 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
577 * gdbarch.h, gdbarch.c: Regenerate.
578 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
579 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
580 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
581 * sparcnbsd-tdep.c: Update.
582
62700349
AC
5832003-09-17 Andrew Cagney <cagney@redhat.com>
584
585 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
586 * gdbarch.h, gdbarch.c: Regenerate.
587 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
588 * d10v-tdep.c, frame.c: Update.
589 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
590 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
591 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
592 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
593 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
594 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
595 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
596 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
597 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
598 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
599 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
600 * config/pa/nm-hppah.h: Update.
601
b9ff3018
AC
6022003-09-16 Andrew Cagney <cagney@redhat.com>
603
604 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
605 "use_struct_convention" to "ppc_linux_use_struct_convention".
606 (ppc_linux_use_struct_convention): New function.
607 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
608 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
609 "rs6000_use_struct_convention".
610 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
611 declaration.
612 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
613 Delete function.
614
aa1ee363
AC
6152003-09-16 Andrew Cagney <cagney@redhat.com>
616
617 * buildsym.c: Remove more occurances of "register".
618 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
619 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
620 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
621 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
622 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
623 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
624 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
625 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
626
f2ea0907
CV
6272003-09-16 Corinna Vinschen <vinschen@redhat.com>
628
629 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
630 numbers to enumeration values.
631 * sh-tdep.c: Accomodate above change.
632 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
633 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
634 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
635 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
636 (IS_FPUSH): Rename from IS_FMOV.
637 (sh_extract_struct_value_address): Remove useless comment.
638 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
639 instead of own local values.
640 (sh_dump_tdep): Remove.
641 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
642 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
643
1c704f11
AC
6442003-09-15 Andrew Cagney <cagney@redhat.com>
645
646 * doublest.c (convert_floatformat_to_doublest): No longer need to
647 cast "exp_bias" to an int. Reverts 2002-12-04 change.
648
ac79b88b
DJ
6492003-09-15 Daniel Jacobowitz <drow@mvista.com>
650
651 * values.c (unpack_double): Call floatformat_is_valid.
652
1c671366
MK
6532003-09-15 Mark Kettenis <kettenis@gnu.org>
654
de5227fb
MK
655 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
656 ps_strings into a long.
657
1c671366
MK
658 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
659 _initialize_am64fbsd_nat.
660
a604369a
KB
6612003-09-15 Kevin Buettner <kevinb@redhat.com>
662
663 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
664 associated with DW_AT_ranges attribute is out of bounds.
665
b3cacbee
DL
6662003-09-15 David Lecomber <dsl@sources.redhat.com>
667
668 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
669
d0f37bb2
MC
6702003-09-14 Michael Chastain <mec@shout.net>
671
672 * config/m68k/nm-apollo68v.h: Delete.
673 * config/m68k/xm-apollo68v.h: Delete.
674
69517000
AC
6752003-09-14 Andrew Cagney <cagney@redhat.com>
676
677 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
678 * dcache.c: Update copyrights and descriptions.
679 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
680
ef8b349d
AC
6812003-09-14 Andrew Cagney <cagney@redhat.com>
682
683 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
684 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
685
52f0bd74
AC
6862003-09-14 Andrew Cagney <cagney@redhat.com>
687
688 * alpha-nat.c: Remove some occurances of "register".
689 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
690 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
691 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
692 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
693 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
694 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
695 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
696 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
697 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
698 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
699 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
700 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
701 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
702 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
703 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
704 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
705 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
706 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
707 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
708 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
709 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
710 * values.c, vax-tdep.c, xcoffread.c: Ditto.
711
4a4b3fed
AC
7122003-09-13 Andrew Cagney <cagney@redhat.com>
713
714 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
715 * ppc-tdep.h (struct regcache): Declare opaque.
716 * objfiles.h (struct objfile_data): Declare opaque.
717 * cp-support.h (struct objfile): Declare opaque.
718 * linux-nat.h (target_waitstatus): Declare opaque.
719
2110b94f
MK
7202003-09-14 Mark Kettenis <kettenis@gnu.org>
721
1c671366
MK
722 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
723 (stabs_argument_has_addr): New architecture method.
724 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
725 * arch-utils.c: Include "buildsym.h".
726 (default_stabs_argument_has_addr): New function.
727 * stabsread.c (define_symbol): Use stabs_argument_has_addr
728 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
729
2110b94f
MK
730 * cris-tdep.c (cris_gdbarch_init): Set
731 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
732 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
733 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
734 * mips-tdep.c (mips_gdbarch_init): Likewise.
735 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
736 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
737
48436ce6
AC
7382003-09-13 Andrew Cagney <cagney@redhat.com>
739
740 * values.c (using_struct_return): Delete "function" and "funcaddr"
741 parameters.
742 * value.h (using_struct_return): Update declaration.
743 * infcmd.c (finish_command_continuation): Update.
744 (finish_command): Update.
745 * infcall.c (call_function_by_hand): Update.
746 * eval.c (evaluate_subexp_standard): Update.
747
403d9909
CF
7482003-09-13 Christopher Faylor <cgf@redhat.com>
749
750 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
751 SSE registers since gdb will not operate correctly without this.
752 Restore include file ordering munged in previous change.
753 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
754
ebf7d56b
MK
7552003-09-13 Mark Kettenis <kettenis@gnu.org>
756
8e823e25
MK
757 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
758 REG_STRUCT_HAS_ADDR.
759 * gdbarch.c, gdbarch.h: Updated.
760 * infcall.c (call_function_by_hand): Update.
761 * stabsread.c (define_symbol): Updated.
762
ebf7d56b
MK
763 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
764
d3f13f72
CF
7652003-09-12 Christopher Faylor <cgf@redhat.com>
766
767 * win32-nat.c: Reorganize so that defines used by target headers are
768 actually defined by the system headers.
769 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
770 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
771
14f75137
JB
7722003-09-12 Jim Blandy <jimb@redhat.com>
773
d646061f
JB
774 * dbxread.c (read_dbx_symtab): Don't report an internal error if
775 the file has no .data, .bss, or .rodata sections. Instead wait
776 until we see a variable alleged to live in one of those sections.
777
2a13f9bc
JB
778 * dbxread.c (read_dbx_symtab): If we have no .data section and no
779 .bss section, presume that any variables we find live in the
780 .rodata section.
781
4f49b26b
JB
782 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
783 offsets for global and static variables.
784
14f75137
JB
785 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
786 symbol types are, by definition, in the .data section, so it is
787 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
788 If there is no .data section, there should be no N_DATA or N_DATA
789 | N_EXT symbols.
790
212c460c
MK
7912003-09-12 Mark Kettenis <kettenis@gnu.org>
792
793 * amd64fbsd-tdep.c: Fix sigtramp recognition.
794 (amd64fbsd_sigcontext_addr): Rewrite.
795 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
796 with correct values.
797 (amd64fbsd_sc_reg_offset): Initialize with correct values.
798 (amd64fbsd_init_abi): Fix typo.
799
68856ea3
AC
8002003-09-12 Andrew Cagney <cagney@redhat.com>
801
802 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
803 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
804
627b3ba2
AC
8052003-09-12 Andrew Cagney <cagney@redhat.com>
806
807 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
808 "entry_file_highpc". Update comments.
809 * defs.h (deprecated_inside_entry_file): Rename
810 "inside_entry_file".
811 * blockframe.c (deprecated_inside_entry_file): Rename
812 "inside_entry_file".
813 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
814 * vax-tdep.c (vax_frame_chain): Update.
815 * sh64-tdep.c (sh64_frame_chain): Update.
816 * sh-tdep.c (sh_frame_chain): Update.
817 * rs6000-tdep.c (rs6000_frame_chain): Update.
818 * ns32k-tdep.c (ns32k_frame_chain): Update.
819 * mips-tdep.c (mips_frame_chain): Update.
820 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
821 * m32r-tdep.c (m32r_frame_this_id): Update.
822 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
823 * frv-tdep.c (frv_frame_this_id): Update.
824 * d10v-tdep.c (d10v_frame_this_id): Update.
825 * cris-tdep.c (cris_frame_chain): Update.
826 * blockframe.c (legacy_frame_chain_valid): Update.
827 * avr-tdep.c (avr_frame_this_id): Update.
828 * arm-tdep.c (arm_prologue_this_id): Update.
829 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
830 * objfiles.c (objfile_relocate): Update.
831 * mipsread.c (mipscoff_symfile_read): Update.
832 (mipscoff_symfile_read): Update.
833 * mdebugread.c (parse_partial_symbols): Update.
834 * dwarfread.c (read_file_scope): Update.
835 * dwarf2read.c (read_file_scope): Update.
836 * dbxread.c (read_dbx_symtab): Update.
837 (read_dbx_symtab): Update.
838 * coffread.c (complete_symtab): Update.
839
b0abbc58
JJ
8402003-09-12 Jeff Johnston <jjohnstn@redhat.com>
841
842 * top.c (quit_target): New static helper function.
843 (quit_force): Moved code to quit_target(). Call quit_target()
844 via catch_errors() to catch errors during quit.
845
a1632d59
DC
8462003-09-11 David Carlton <carlton@kealia.com>
847
848 * buildsym.c (finish_block): Use allocate_block to allocate the
849 block.
850 * mdebugread.c (new_block): Add FIXME.
851
5c4e30ca
DC
8522003-09-11 David Carlton <carlton@kealia.com>
853
854 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
855 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
856 (recursive_dump_type): Ditto.
857 * printcmd.c (print_formatted): Ditto.
858 * typeprint.c (print_type_scalar): Ditto.
859 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
860 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
861 * cp-support.h: Declare cp_check_possible_namespace_symbols,
862 maint_cplus_cmd_list.
863 * cp-support.c: Make maint_cplus_cmd_list extern.
864 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
865 command.h.
866 (lookup_symbol_file): Look in possible namespace blocks when
867 appropriate.
868 (initialize_namespace_symtab): New.
869 (get_possible_namespace_block, free_namespace_block)
870 (check_possible_namespace_symbols)
871 (check_possible_namespace_symbols_loop)
872 (check_one_possible_namespace_symbol)
873 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
874 (_initialize_cp_namespace): Ditto.
875 * block.h: Declare allocate_block.
876 * block.c (allocate_block): New.
877 * jv-lang.c (get_java_class_symtab): Allocate blocks via
878 allocate_block.
879 * symfile.h: Update declaration of add_psymbol_to_list.
880 * symfile.c (add_psymbol_to_list): Return the partial symbol in
881 question.
882 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
883 scan_partial_symbols_call.
884 (scan_partial_symbols): Add NAMESPACE argument; update calls to
885 helper functions.
886 (add_partial_symbol): If necessary, scan mangled names for names
887 of namespaces.
888 (add_partial_namespace): Add NAMESPACE argument; generate partial
889 symbols associated to namespaces.
890 (add_partial_enumeration): Add NAMESPACE argument.
891 (new_symbol): Allow namespace syms.
892 (read_namespace): Generate namespace syms.
893 * objfiles.h: Add opaque declaration of struct symtab.
894 (struct objfile): Add cp_namespace_symtab member.
895 * objfiles.c (allocate_objfile): Set
896 objfile->cp_namespace_symtab.
897 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
898 dictionary_h, command_h.
899
33a7c2fc
AC
9002003-09-11 Andrew Cagney <cagney@redhat.com>
901
902 * rs6000-tdep.c (rs6000_push_dummy_call): Use
903 regcache_raw_write_signed to set SP_REGNUM, move the operation to
904 near the function's end.
905 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
906 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
907 regcache_raw_write_signed to set SP_REGNUM.
908
63cd24fe
EZ
9092003-09-11 Elena Zannoni <ezannoni@redhat.com>
910
911 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
912 orig_addrs is set up properly.
913
f27dd7fd
AC
9142003-09-11 Andrew Cagney <cagney@redhat.com>
915
916 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
917 * gdbarch.h, gdbarch.c: Re-generate.
918 * infcall.c (call_function_by_hand): Update.
919 * hppa-tdep.c (hppa_push_arguments): Update.
920 * ada-lang.c (place_on_stack): Update.
921 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
922 * sparc-tdep.c (sparc_gdbarch_init): Update.
923 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
924 * hppa-tdep.c (hppa_gdbarch_init): Update.
925 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
926 stack_align.
927
f630a401
DJ
9282003-09-11 Daniel Jacobowitz <drow@mvista.com>
929
930 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
931 register do need a frame.
932
0ddabb4c
AC
9332003-09-11 Andrew Cagney <cagney@redhat.com>
934
935 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
936 buildable since GDB 5.0.
937 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
938 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
939 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
940 * irix4-nat.c: Delete file.
941 * config/mips/irix4.mh: Delete file.
942 * config/mips/irix3.mh: Delete file.
943 * config/mips/irix3.mt: Delete file.
944 * config/mips/tm-irix3.h: Delete file.
945 * config/mips/nm-irix3.h: Delete file.
946 * config/mips/xm-irix3.h: Delete file.
947 * config/mips/nm-irix4.h: Delete file.
948 * config/mips/xm-irix4.h: Delete file.
949 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
950
fde2cceb
JB
9512003-09-10 J. Brobecker <brobecker@gnat.com>
952
953 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
954 * Makefile.in (hppa-tdep.o): Update dependencies.
955
66f667f5
JW
9562003-09-10 James E Wilson <wilson@specifixinc.com>
957
ef5fd69f
JW
958 * MAINTAINERS: Change my e-mail address. Move to paper trail
959 section.
66f667f5 960
53e8aaea
KB
9612003-09-10 Kevin Buettner <kevinb@redhat.com>
962
963 * MAINTAINERS (frv): New ISA entry.
964
dcc6aaff
KB
9652003-09-10 Kevin Buettner <kevinb@redhat.com>
966
967 * frv-tdep.c (dis-asm.h): Include.
968 * Makefile.in (frv-tdep.o): Update dependencies.
969
932644f0
JJ
9702003-09-09 Jeff Johnston <jjohnstn@redhat.com>
971
972 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
973 Fix typo for high range of floating registers.
974
91c24f0a
DC
9752003-09-09 David Carlton <carlton@kealia.com>
976
977 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
978 highpc initialization here out of scan_partial_symbols.
979 (scan_partial_symbols): Restructure into a recursive version,
980 calling add_partial_namespace and add_partial_enumeration when
981 appropriate.
982 (add_partial_namespace): New.
983 (add_partial_enumeration, locate_pdi_sibling): Ditto.
984
c9263853
AC
9852003-09-09 Andrew Cagney <cagney@redhat.com>
986
e56a0ecc
AC
987 * rs6000-tdep.c (ppc_push_return_address): Delete function.
988 (rs6000_push_dummy_call): Set LR to BP_ADDR.
989 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
990 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
991
794a477a
AC
992 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
993 (rs6000_push_dummy_call): Set the "TOC" register.
994
c9263853
AC
995 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
996 methods "max_register_raw_size", "max_register_virtual_size" or
997 "register_virtual_size".
998
afa7d0b2
ILT
9992003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1000
1001 * MAINTAINERS: Update my e-mail address.
1002
7a41266b
AC
10032003-09-09 Andrew Cagney <cagney@redhat.com>
1004
1005 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1006 (rs6000_push_dummy_call): Store the struct return address.
1007 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1008
77b2b6d4
AC
10092003-09-09 Andrew Cagney <cagney@redhat.com>
1010
1011 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1012 "ppc_sysv_abi_push_arguments".
1013 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1014 "ppc_sysv_abi_push_arguments".
1015 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1016 instead of "push_arguments".
1017 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1018
e8a7b686
AC
10192003-09-09 Andrew Cagney <cagney@redhat.com>
1020
1021 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1022 instead of CALL_DUMMY_ADDRESS.
1023
f86f5ca3
PH
10242003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1025
1026 * p-lang.c: Eliminate "register".
1027 * c-lang.c: Ditto.
1028 * expprint.c: Ditto.
1029 * f-lang.c: Ditto.
1030 * jv-lang.c: Ditto.
1031 * language.c: Ditto.
1032 * m2-lang.c: Ditto.
1033 * parse.c: Ditto.
1034 * scm-lang.c: Ditto.
1035 * objc-lang.c: Ditto.
1036
83ee270e
NC
10372003-09-09 Nick Clifton <nickc@redhat.com>
1038
1039 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1040
a89aa300
AC
10412003-09-04 Andrew Cagney <cagney@redhat.com>
1042
1043 * avr-tdep.c: Include "dis-asm.h".
1044 * cris-tdep.c: Include "dis-asm.h".
1045 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1046 instead of corresponding typedef.
1047 * h8300-tdep.c: Include "dis-asm.h".
1048 * ia64-tdep.c: Include "dis-asm.h".
1049 * i386-tdep.c: Include "dis-asm.h".
1050 (i386_print_insn): Use "struct disassemble_info" instead of
1051 corresponding typedef.
1052 * m68k-tdep.c: Include "dis-asm.h".
1053 * mcore-tdep.c: Include "dis-asm.h".
1054 * mips-tdep.c: Include "dis-asm.h".
1055 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1056 instead of corresponding typedef.
1057 * ns32k-tdep.c: Include "dis-asm.h".
1058 * s390-tdep.c: Include "dis-asm.h".
1059 * sparc-tdep.c: Include "dis-asm.h".
1060 * vax-tdep.c: Include "dis-asm.h".
1061 * v850-tdep.c: Include "dis-asm.h".
1062 * mn10300-tdep.c: Include "dis-asm.h".
1063 * rs6000-tdep.c: Include "dis-asm.h".
1064 * xstormy16-tdep.c: Include "dis-asm.h".
1065 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1066 print_insn_xstormy16.
1067 * Makefile.in (v850-tdep.o): Update dependencies.
1068 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1069 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1070 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1071 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1072 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1073 (gdbarch_h): Remove $(dis_asm_h).
1074 * disasm.c: Include "dis-asm.h".
1075 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1076 corresponding typedef.
1077 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1078 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1079 * gdbarch.sh: Do not include "dis-asm.h".
1080 (struct disassemble_info): Declare opaque.
1081 (TARGET_PRINT_INSN): Update declaration.
1082 * gdbarch.h, gdbarch.c: Re-generate.
1083
88a82a65
AC
10842003-09-08 Andrew Cagney <cagney@redhat.com>
1085
1086 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1087 CALL_DUMMY_ADDRESS, change to a predicate.
1088 * gdbarch.h, gdbarch.c: Re-generate.
1089 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1090 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1091 * infcall.c (call_function_by_hand): Ditto.
1092 * sparc-tdep.c (sparc_push_return_address): Ditto.
1093 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1094 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1095 CALL_DUMMY_ADDRESS with entry_point_address.
1096 * v850-tdep.c (v850_push_return_address): Ditto.
1097 * s390-tdep.c (s390_push_return_address): Ditto.
1098 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1099 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1100 * mcore-tdep.c (mcore_push_return_address): Ditto.
1101 * cris-tdep.c (cris_push_return_address): Ditto.
1102 * arm-tdep.c (arm_push_return_address): Ditto.
1103
3e2c4033
AC
11042003-09-08 Andrew Cagney <cagney@redhat.com>
1105
1106 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1107 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1108 and REG_UNMODIFIED to REG_SAME_VALUE.
1109 (execute_cfa_program): Update.
1110 (dwarf2_frame_cache): Update. Initialize table to
1111 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1112 location.
1113 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1114
39efb398
AC
11152003-09-08 Andrew Cagney <cagney@redhat.com>
1116
1117 * gnu-nat.c: Remove "inline" function attribute.
1118 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1119
f5cb5aca
KB
11202003-09-08 Kevin Buettner <kevinb@redhat.com>
1121
1122 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1123 target.
1124
1cb761c7
KB
11252003-09-08 Kevin Buettner <kevinb@redhat.com>
1126
1127 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1128 (frame_extra_info): Rename this struct to frv_unwind_cache.
1129 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1130 Add fields ``prev_sp'' and ``base''.
1131 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1132 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1133 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1134 Delete.
1135 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1136 Revise all callers. Fill in the unwind cache argument and make
1137 other adjustments to account for new frame mechanisms.
1138 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1139 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1140 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1141 (frv_frame_unwind, frv_frame_base): New structs.
1142 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1143 additional arguments expected by this method and adjust function
1144 body accordingly.
1145 (frv_gdbarch_init): Remove calls to the following functions:
1146 set_gdbarch_deprecated_init_frame_pc(),
1147 set_gdbarch_deprecated_saved_pc_after_call(),
1148 set_gdbarch_deprecated_frame_chain(),
1149 set_gdbarch_deprecated_frame_saved_pc(),
1150 set_gdbarch_deprecated_frame_init_saved_regs(),
1151 set_gdbarch_deprecated_push_arguments(),
1152 set_gdbarch_deprecated_push_return_address(),
1153 set_gdbarch_deprecated_pop_frame(),
1154 set_gdbarch_deprecated_call_dummy_words(),
1155 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1156 set_gdbarch_deprecated_init_extra_frame_info(),
1157 set_gdbarch_deprecated_dummy_write_sp(), and
1158 set_gdbarch_deprecated_pc_in_call_dummy().
1159 Add calls to the following functions:
1160 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1161 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1162 frame_base_set_default().
1163 * Makefile.in (frv-tdep.o): Update dependencies.
1164
68f6cf99
MK
11652003-09-09 Mark Kettenis <kettenis@gnu.org>
1166
1167 * dwarf2-frame.c (read_encoded_value): Add support for
1168 DW_EH_PE_aligned encoding.
1169
73b65bb0
DJ
11702003-09-08 Daniel Jacobowitz <drow@mvista.com>
1171
1172 * infrun.c (normal_stop): Don't print a message if the inferior
1173 has exited.
1174
7c8a5605
JB
11752003-09-08 Jim Blandy <jimb@redhat.com>
1176
1177 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1178 * dbxread.c: #include "gdb_assert.h".
1179 (read_dbx_symtab): If the objfile has no .data section, use the
1180 section index for the .bss section instead.
1181
7dd88986
DJ
11822003-09-08 Daniel Jacobowitz <drow@mvista.com>
1183
1184 * frame.c (deprecated_safe_get_selected_frame): New function.
1185 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1186 * findvar.c (read_var_value): Call it.
1187
55ff77ac
CV
11882003-09-08 Corinna Vinschen <vinschen@redhat.com>
1189
1190 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1191 (sh64-tdep.o): Add dependencies.
1192 * configure.tgt: Add FIXME to sh-*-linux*.
1193 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1194 (sh_gdbarch_init): Always set correct sh_show_regs function
1195 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1196 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1197 * sh64-tdep.c: New file, containing all sh64 related code from
1198 sh-tdep.c.
1199 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1200 * config/sh/linux.mt (TDEPFILES): Ditto.
1201 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1202 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1203 * config/sh/wince.mt (TDEPFILES): Ditto.
1204
bfb39158
DJ
12052003-09-07 Daniel Jacobowitz <drow@mvista.com>
1206
1207 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1208 (stop_wait_callback): Handle !lp->signalled also.
1209 (lin_lwp_has_pending, flush_callback): New functions.
1210 (lin_lwp_wait): Call flush_callback.
1211 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1212 (linux_proc_pending_signals): New function.
1213 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1214
9407de8e
DJ
12152003-09-07 Daniel Jacobowitz <drow@mvista.com>
1216
1217 From Nick Kelsey <nickk@ubicom.com>:
1218 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1219 when the stop PC is at the beginning of a function also.
1220
2ef47cd0
DJ
12212003-09-06 Daniel Jacobowitz <drow@mvista.com>
1222
1223 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1224 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1225
6f4492c8
MK
12262003-09-06 Mark Kettenis <kettenis@gnu.org>
1227
1228 * sol-thread.c: Include "gdb_string.h".
1229
d3420b2f
MK
12302003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1231
1232 * gcore.c: Reorder include files in alphabetical order. Include
1233 "gdb_assert.h". Various coding style fixes.
1234 (derive_stack_segment, derive_heap_segment): Replace check for
1235 non-null BOTTOM and TOP with gdb_assert.
1236 (derive_heap_segment): Replace check for successful creation of
1237 ZERO with gdb_assert.
1238 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1239
5220ea4c
AC
12402003-09-04 Andrew Cagney <cagney@redhat.com>
1241
1242 * thread-db.c (verbose_dlsym): New function.
1243 (thread_db_load): Use verbose_dlsym
1244 (thread_db_new_objfile): Print that libthread_db was loaded, and
1245 that thread debugging was enabled.
1246
6e8c2c06
AC
12472003-09-04 Andrew Cagney <cagney@redhat.com>
1248
1249 * configure.tgt: Add "mips64*-*-*" target. Delete
1250 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1251 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1252 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1253 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1254 mips*-sony-*, and mips64*-*-elf* targets.
1255 * config/mips/embedl.mt: Delete file.
1256 * config/mips/embedl64.mt: Delete file.
1257 * config/mips/mips.mt: Delete file.
1258 * config/mips/mips64.mt: Delete file.
1259 * config/mips/tm-embed.h: Delete file.
1260 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1261 * config/mips/embed64.mt: Delete out-of-date comment.
1262
3a3bc038
AC
12632003-09-04 Andrew Cagney <cagney@redhat.com>
1264
1265 * hppa-tdep.c (hppa_gdbarch_init): Set
1266 "have_nonsteppable_watchpoint".
1267 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1268 * mips-tdep.c (mips_dump_tdep): Do not print
1269 HAVE_NONSTEPPABLE_WATCHPOINT.
1270 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1271 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1272 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1273 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1274
a957e642
CV
12752003-09-04 Corinna Vinschen <vinschen@redhat.com>
1276
1277 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1278 unused code. Add comment.
1279
a6fbcf2f
CV
12802003-09-04 Corinna Vinschen <vinschen@redhat.com>
1281
1282 * breakpoint.c (watchpoint_check): Check for pc being in an
1283 epilogue if watchpoint frame couldn't be found.
1284
c14a44d5
AC
12852003-09-04 Andrew Cagney <cagney@redhat.com>
1286
1287 * Makefile.in: Re-generate all dependencies.
1288
f6c40618
AC
12892003-09-03 Andrew Cagney <cagney@redhat.com>
1290
1291 * arch-utils.h (legacy_print_insn): Delete declaration.
1292 * arch-utils.c (legacy_print_insn): Delete function.
1293 * disasm.c (deprecated_tm_print_insn_info): Delete.
1294 (_initialize_disasm): Delete function, contained code initializing
1295 deprecated_tm_print_insn_info.
1296 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1297 (deprecated_tm_print_insn_info): Delete.
1298 (TARGET_PRINT_INSN): Do not provide a default.
1299 * gdbarch.h, gdbarch.c: Re-generate.
1300
242e8be5
AC
13012003-09-03 Andrew Cagney <cagney@redhat.com>
1302
1303 * disasm.c (fprintf_disasm): New function.
1304 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1305 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1306 reverts 2003-08-14 change.
1307 (_initialize_disasm): Call "init_disassemble_info", instead of
1308 INIT_DISASSEMBLE_INFO_NO_ARCH.
1309
3ffc3dda
MS
13102003-09-03 Michael Snyder <msnyder@redhat.com>
1311
1312 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1313
52d16ba8
AC
13142003-09-03 Andrew Cagney <cagney@redhat.com>
1315
1316 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1317 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1318 * symfile.c (syms_from_objfile): Update.
1319 (reread_symbols): `Update
1320 * exec.c (exec_file_attach): Update.
1321 (exec_file_attach): Update.
1322 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1323 2003-08-29 change.
1324 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1325
eb5492fa
DJ
13262003-09-03 Daniel Jacobowitz <drow@mvista.com>
1327
1328 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1329 trad-frame.h.
1330 (arm_get_cache): Delete macro.
1331 (struct arm_prologue_cache): Update comments. Make saved_regs into
1332 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1333 to prev_sp.
1334 (thumb_scan_prologue): Update for cache changes. Don't call
1335 DEPRECATED_PC_IN_CALL_DUMMY.
1336 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1337 argument and use it in desperation search for our prologue. Do not
1338 search past the specified PC.
1339 (arm_make_prologue_cache): Simplify.
1340
1341 (arm_prologue_this_id, arm_prologue_prev_register)
1342 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1343 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1344 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1345 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1346 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1347
1348 (arm_frame_chain_valid, arm_find_callers_reg)
1349 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1350 (arm_pop_frame): Delete obsolete methods.
1351 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1352
1353 (arm_gdbarch_init): Update for new frame methods. Register prologue
1354 and sigtramp unwinders. Set the default frame base method.
1355
1356 * Makefile.in (arm-tdep.o): Update dependencies.
1357 * varobj.c (find_frame_addr_in_frame_chain): Call
1358 get_frame_base_address.
1359 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1360
24de872b
DJ
13612003-09-03 Daniel Jacobowitz <drow@mvista.com>
1362
1363 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1364 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1365 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1366 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1367 Take NEXT_FRAME and CACHE arguments. Call
1368 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1369 Set unwound_pc in CACHE instead of modifying the frame argument.
1370 Don't bother checking the frame type when looking for sigtramp
1371 frames.
1372 (arm_make_prologue_cache, arm_frame_chain)
1373 (arm_init_extra_frame_info): New functions.
1374
9b8d791a
DJ
13752003-09-03 Daniel Jacobowitz <drow@mvista.com>
1376
1377 * arm-tdep.c (arm_get_cache): Define.
1378 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1379 unwound_sp, unwound_pc, and saved_regs.
1380 (thumb_scan_prologue): Take a cache instead of the frame.
1381 (arm_scan_prologue): Likewise.
1382 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1383 instead of a temporary frame.
1384 (arm_init_extra_frame_info): Allocate and use a cache.
1385 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1386
7ee3275f
AC
13872003-09-03 Andrew Cagney <cagney@redhat.com>
1388
1389 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1390 * config/mips/wince.mt (TM_CLIBS): Ditto.
1391 * config/sh/wince.mt (TM_CLIBS): Ditto.
1392 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1393 * config/sparc/sp64.mt (CC): Delete.
1394
57b29be7
AC
13952003-09-03 Andrew Cagney <cagney@redhat.com>
1396
1397 * defs.h: Do not include "arch-utils.h".
1398 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1399 GDB_MULTI_ARCH_PURE.
1400 * configure.in (GDB_MULTI_ARCH): Do not define.
1401 * configure, config.in: Regenerate.
1402 * configure.tgt: Do not set variable "gdb_multi_arch".
1403 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1404 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1405 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1406 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1407 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1408 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1409 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1410 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1411 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1412 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1413 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1414 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1415 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1416 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1417 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1418 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1419 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1420 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1421
12e035e2
MC
14222003-08-30 Michael Chastain <mec@shout.net>
1423
1424 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1425 * config/m68k/nm-hp300hpux.h: Delete.
1426 * config/m68k/tm-hp300hpux.h: Delete.
1427 * config/m68k/xm-hp300hpux.h: Delete.
1428 * config/m68k/xm-hp300bsd.h: Delete.
1429 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1430 tm-hp300hpux.h, xm-hp300hpux.h.
1431 * somsolib.c: Remove comment about hp300 shared libraries.
1432
bda34dc2
MK
14332003-08-31 Mark Kettenis <kettenis@gnu.org>
1434
5bca7895
MK
1435 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1436 Only define PTRACE_GET_THREAD_AREA is not already defined.
1437 Various style fixes in code and comments and some additional
1438 spelling fixes in comments. Move after functions dealing with
1439 debug registers.
1440 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1441 Fix coding-style.
1442
bda34dc2
MK
1443 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1444 frame_unwind_register_unsigned instead of
1445 frame_unwind_unsigned_register.
1446
c890192f
MK
14472003-08-30 Mark Kettenis <kettenis@gnu.org>
1448
1449 * configure.in: Search for gethostbyname in libnsl.
1450 * configure: Regenerated.
1451
60fac5b8
MK
14522003-08-29 Mark Kettenis <kettenis@gnu.org>
1453
e294916c
MK
1454 * configure.in: Remove redundant AC_MSG_RESULT in check for
1455 uintptr_t in stdint.h.
1456 * configure: Regenerated.
1457
c40d267a
MK
1458 * amd64-nat.h (struct regcache): Add opaque declaration.
1459
60fac5b8
MK
1460 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1461 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1462 Change "register array" to "register cache" in comments.
1463 (x86_64_linux_gregset64_reg_offset): New variable.
1464 (GETREGS_SUPPLIES): Remove macro.
1465 (supply_gregset): Call amd64_supply_native_gregset instead of
1466 x86_64_linux_supply_gregset.
1467 (fill_gregset): Rename `regno' to `regnum'. Call
1468 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1469 (store_regs): Rename `regno' to `regnum'.
1470 (store_fpregs): Rename `regno' to `regnum'.
1471 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1472 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1473 Reorganize function a bit.
1474 (store_inferior_registers): Rename `regno' to `regnum'. Use
1475 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1476 Reorganize function a bit.
1477 (_initialize_x86_64_linux_nat): New function.
1478 * config/i386/x86-64linux.mh.
1479
546143b6
AC
14802003-08-29 Andrew Cagney <cagney@redhat.com>
1481
1482 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1483 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1484 (target_remove_watchpoint): Delete macro.
1485 (target_insert_watchpoint): Delete macro.
1486 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1487 (remote_mips_stopped_by_watchpoint): Delete declaration.
1488 (remote_mips_remove_watchpoint): Delete declaration.
1489 (remote_mips_set_watchpoint): Delete declaration.
1490 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1491 * remote-mips.c (_initialize_remote_mips): Set
1492 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1493 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1494 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1495 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1496 (mips_stopped_by_watchpoint): Rename
1497 remote_mips_stopped_by_watchpoint.
1498 (mips_can_hardware_watchpoint): Rename
1499 remote_mips_can_use_hardware_watchpoint, update function
1500 signature.
1501
7bace51b
MK
15022003-08-29 Mark Kettenis <kettenis@gnu.org>
1503
b0f5c6f2
MK
1504 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1505 USER_DS. We haven't given them a register number yet.
1506
2a6d284d
MK
1507 * amd64-nat.h: New file.
1508 * amd64-nat.c: New file.
1509 * amd64fbsd-nat.c: Include "amd64-nat.h".
1510 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1511 (amd64fbsd32_r_reg_offset): New variable.
1512 (supply_gregset): Simply call amd64_supply_native_gregset.
1513 (fill_gregset): Rename `regno' to `regnum'. Simply call
1514 amd64_collect_native_gregset.
1515 (fill_fpregset): Rename `regno' to `regnum'.
1516 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1517 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1518 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1519 `fpregset_t'. Call amd64_supply_native_gregset instead of
1520 supply_gregset. Call x86_64_supply_fxsave instead of
1521 supply_fpregset.
1522 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1523 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1524 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1525 `fpregset_t'. Call amd64_collect_native_gregset instead of
1526 fill_gregset. Call x86_64_collect_fxsave instead of
1527 fill_fpregset.
1528 (_initialize_am64fbsd_nat): Initialize
1529 amd64_native_gregset32_reg_offset and
1530 amd64_native_gregset64_reg_offset.
1531 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1532
a16d75cc
MK
1533 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1534 null pointer. Fix typo in comment.
1535
7bace51b
MK
1536 * regcache.c (supply_register): Reimplement to call
1537 regcache_raw_supply.
1538 (regcache_collect): Reimplement by calling regcache_raw_collect.
1539
9a661b68
MK
15402003-08-28 Mark Kettenis <kettenis@gnu.org>
1541
1542 * regcache.c (register_buffer): Consitify first argument.
1543 (regcache_raw_supply, regcache_raw_collect): New
1544 functions.
1545
e94cc8fa
DJ
15462003-08-28 Daniel Jacobowitz <drow@mvista.com>
1547
1548 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1549 by Nathan J. Williams.
1550
c64bd0ce
DJ
15512003-08-28 Daniel Jacobowitz <drow@mvista.com>
1552
1553 * lin-lwp.c (wait_lwp): New function, copied from
1554 stop_wait_callback. Clean up.
1555 (stop_wait_callback): Use wait_lwp.
1556
e5ab0dce
AC
15572003-08-28 Andrew Cagney <cagney@redhat.com>
1558
1559 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1560 flavour and disassembler options.
1561 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1562 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1563 deprecated_tm_print_insn_info.
1564
a788de9b
AC
15652003-08-27 Andrew Cagney <cagney@redhat.com>
1566
1567 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1568 Use target_read_memory.
1569 (s390_get_frame_info): Update. Do not reference
1570 deprecated_tm_print_insn_info.
1571 (s390_check_function_end, s390_is_sigreturn): Ditto.
1572
36482093
AC
15732003-08-27 Andrew Cagney <cagney@redhat.com>
1574
1575 * Makefile.in (cris-tdep.o): Update dependencies.
1576 * cris-tdep.c: Include "gdb_assert.h".
1577 (cris_gdbarch_init): Set print_insn.
1578 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1579 (cris_delayed_get_disassembler): Simplify, directly call the
1580 disassembler returned by cris_get_disassembler.
1581 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1582 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1583 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1584 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1585 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1586 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1587 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1588 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1589 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1590 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1591 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1592 (gdb_print_insn_sparc): Delete function.
1593 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1594 deprecated_tm_print_insn_info.
1595 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1596 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1597 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1598 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1599 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1600 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1601 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1602 (s390_gdbarch_init): Set print_insn.
1603
0285512f
AC
16042003-08-27 Andrew Cagney <cagney@redhat.com>
1605
1606 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1607 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1608 * infcall.c (call_function_by_hand): Convert the entry point
1609 address into a code address.
1610
cdcd5552
AC
16112003-08-27 Andrew Cagney <cagney@redhat.com>
1612
1613 * dsrec.c: Include "gdb_string.h".
1614 * Makefile.in (dsrec.o): Update dependencies.
1615
e85cddad
MC
16162003-08-27 Michael Chastain <mec@shout.net>
1617
1618 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1619
8bbfbb23
AC
16202003-08-27 Andrew Cagney <cagney@redhat.com>
1621
1622 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1623 (alpha_osf1_init_abi): Do not set call_dummy_address.
1624
ba058b66
DC
16252003-08-27 David Carlton <carlton@kealia.com>
1626
1627 From Randolph Chung <tausq@debian.org>:
1628 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1629 compiles with -Wformat-nonliteral -Werror.
1630
87f84c9d
JB
16312003-08-26 Jim Blandy <jimb@redhat.com>
1632
1633 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1634 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1635 bfd_lookup_symbol, since we only want symbols in code sections.
1636 (look_for_base): Pass zero as the SECT_FLAGS argument to
1637 bfd_lookup_symbol, since we're not concerned about which section
1638 the symbol is in.
1639
102d615a
JJ
16402003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1641
1642 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1643 we are frameless or the return address register is already known.
1644
cc7ad3ea
AC
16452003-08-26 Andrew Cagney <cagney@redhat.com>
1646
1647 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1648 in size. Add comments.
1649
af8b88dd
JJ
16502003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1651
1652 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1653 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1654
e0a4f5a1
JM
16552003-08-26 Jason Merrill <jason@redhat.com>
1656
1657 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1658 case out of #ifdef MIPS block.
1659
4ae9ee8e
DJ
16602003-08-25 Daniel Jacobowitz <drow@mvista.com>
1661
1662 PR java/1322
1663 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1664 available before calling SECT_OFF_TEXT.
3c164570 1665 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 1666
004d836a
JJ
16672003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1668
1669 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1670 bof, and nat0-nat127 as pseudo-registers.
1671 (ia64_frame_cache): New struct used to cache frame info.
1672 (ia64_register_reggroup_p): New routine used to override default
1673 register grouping so registers without names are still saved and
1674 restored.
1675 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1676 pseudo values.
1677 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1678 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1679 (ia64_alloc_frame_cache): New routine to create a new
1680 ia64_frame_cache.
1681 (examine_prologue): Change prototype to add next_frame pointer.
1682 Assume frameless until otherwise proven. Verify that the cfm for
1683 current frame matches the cfm that should occur for the prologues
1684 alloc insn and if equal, mark as not frameless. At end of routine,
1685 if not frameless, calculate registers for the previous frame and store
1686 in the cache, if a cache is provided.
1687 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1688 and pass 0 for next_frame.
1689 (ia64_store_return_value): Change to use convert_typed_floating()
1690 instead of calling ia64_convert_to_raw().
1691 (ia64_extract_return_value): Change to use convert_typed_floating()
1692 instead of calling ia64_convert_to_virtual().
1693 (ia64_frame_cache): New routine to support new frame model.
1694 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1695 (ia64_frame_sniffer): Ditto.
1696 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1697 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1698 (ia64_sigtramp_frame_prev_register): Ditto.
1699 (ia64_sigtramp_frame_sniffer): Ditto.
1700 (ia64_frame_base_address): Ditto.
1701 (ia64_extract_struct_value_address): Change to issue error message.
1702 (ia64_frame_align): New routine to align sp.
1703 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1704 (ia64_push_arguments): Removed. Logic moved to
1705 ia64_push_dummy_call().
1706 (ia64_push_return_address): Ditto.
1707 (ia64_unwind_dummy_id): New function.
1708 (ia64_unwind_pc): Ditto.
1709 (ia64_convert_register_p): Ditto.
1710 (ia64_register_to_value): Ditto.
1711 (ia64_value_to_register): Ditto.
1712 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1713 (ia64_register_byte, ia64_register_raw_size): Ditto.
1714 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1715 (ia64_saved_pc_after_call): Ditto.
1716 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1717 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1718 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1719 (ia64_register_convert_to_raw): Ditto.
1720 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1721 (ia64_init_extra_frame_info): Ditto.
1722 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1723 (ia64_gdbarch_init): Remove registering of deprecated functions that
1724 are no longer used. Add registration of new gdbarch functions.
1725 Remove registering deprecated_write_sp. Replace
1726 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1727 Delete set_gdbarch_deprecated_register_convertible(),
1728 set_gdbarch_deprecated_register_convert_to_virtual(), and
1729 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1730 set_gdbarch_deprecated_register_size(),
1731 set_gdbarch_deprecated_register_bytes(),
1732 set_gdbarch_pcregnum(),
1733 set_gdbarch_deprecated_register_byte(),
1734 set_gdbarch_deprecated_register_raw_size(),
1735 set_gdbarch_deprecated_max_register_raw_size(),
1736 set_gdbarch_deprecated_register_virtual_size(),
1737 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1738 Replace set_gdbarch_deprecated_extract_return_value() with
1739 set_gdbarch_extract_return_value(). Remove calls to:
1740 set_gdbarch_deprecated_saved_pc_after_call();
1741 set_gdbarch_deprecated_frame_chain(),
1742 set_gdbarch_deprecated_frame_saved_pc(),
1743 set_gdbarch_deprecated_frame_init_saved_regs(),
1744 set_gdbarch_deprecated_get_saved_register(),
1745 set_gdbarch_deprecated_call_dummy_words(),
1746 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1747 set_gdbarch_deprecated_init_extra_frame_info(),
1748 set_gdbarch_deprecated_frame_args_address(),
1749 set_gdbarch_deprecated_frame_locals_address(),
1750 and set_gdbarch_deprecated_dummy_write_sp().
1751 Add set_gdbarch_convert_register_p(),
1752 set_gdbarch_register_to_value(),
1753 set_gdbarch_value_to_register(),
1754 set_gdbarch_push_dummy_call(),
1755 set_gdbarch_frame_align(),
1756 set_gdbarch_unwind_dummy_id(),
1757 set_gdbarch_unwind_pc(),
1758 frame_unwind_append_sniffer(),
1759 frame_unwind_append_sniffer(),
1760 and frame_base_set_default().
1761
aede7613
CD
17622003-08-25 Chris Demetriou <cgd@broadcom.com>
1763
1764 * configure.tgt: Document need for special "mipsisa64" handling.
1765 (mipsisa64*-*-linux64): Handle as target linux64.
1766 (mipsisa64*-*-*): Handle as target embed64.
1767
43c3a82e
MC
17682003-08-18 Michael Chastain <mec@shout.net>
1769
1770 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1771 objfile bug.
1772
6564f77d
MK
17732003-08-24 Mark Kettenis <kettenis@gnu.org>
1774
2de139ba
MK
1775 * i387-tdep.h: Update copyright date.
1776 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1777
6564f77d
MK
1778 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1779 CFLAGS games to reflect reality.
1780
42cf1509
AC
17812003-08-24 Andrew Cagney <cagney@redhat.com>
1782
1783 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1784 GDB_MULTI_ARCH is always non-zero.
1785 * osabi.c (_initialize_gdb_osabi): Ditto.
1786 (gdbarch_init_osabi): Ditto.
1787 * sparc-tdep.c: Ditto for #if code.
1788
0485f6ad
MK
17892003-08-23 Mark Kettenis <kettenis@gnu.org>
1790
1791 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1792 Update comments.
1793 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1794 comments.
1795 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1796 x86_64_supply_fxsave.
1797 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1798 x86_64_supply_fxsave.
1799 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1800 x86_64_supply_fxsave.
1801
c7716133
AJ
18022003-08-23 Andreas Jaeger <aj@suse.de>
1803
1804 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1805 i387_supply_fxsave.
1806
ed504bdf
MK
18072003-08-23 Mark Kettenis <kettenis@gnu.org>
1808
1809 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1810 i387_supply_register.
1811 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1812 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1813 i387_supply_fsave.
1814 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1815 i387_supply_fxsave.
1816 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1817 i387_supply_fsave.
1818 * i386bsd-nat.c (supply_fpregset): Adjust call to
1819 i387_supply_fsave.
1820 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1821 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1822 supply_fpregset.
1823 (store_inferior_registers): Remove extraneous whitespace. Call
1824 i387_fill_fsave instead of fill_fpregset.
1825 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1826 (supply_fpregset): Likewise.
1827 * i386v4-nat.c (supply_fpregset): Adjust call to
1828 i387_supply_fsave.
1829 * i386-interix-nat.c (supply_fpregset): Adjust call to
1830 i387_supply_fsave.
1831 * i386-linux-nat.c (supply_fpregset): Adjust call to
1832 i387_supply_fsave.
1833 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1834 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1835 i387supply_fsave and i387_supply_fxsave.
1836 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1837 Incorporate code from `i387_supply_register.
1838 (i387_supply_register): Remove.
1839 (i387_supply_fxsave): Add `regnum' argument.
1840 Update comments.
1841 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1842 prototype.
1843 (i387_supply_register): remove prototype.
1844 Update comments.
1845
4be5d520
MC
18462003-08-22 Michael Chastain <mec@shout.net>
1847
1848 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1849 Add lines for files in gdb/testsuite/gdb.cp/* that are
1850 still not 8.3 unique.
1851
7ed85d26
DJ
18522003-08-22 Daniel Jacobowitz <drow@mvista.com>
1853
1854 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1855 TYPE_VPTR_FIELDNO is valid.
1856
eb0d3137
MK
18572003-08-19 Mark Kettenis <kettenis@gnu.org>
1858
1859 * utils.c (set_width_command): Remove prototypes.
1860 (set_screen_size): New prototype.
1861 (init_page_info): Simplify by fetching the screen size from
1862 Readline. Call set_screen_size.
1863 (set_screen_size): New function.
1864 (set_width): Add missing whitespace in comment.
1865 (set_width_command): Call set_screen_size.
1866 (set_height_command): New function.
1867 (initialize_utils): Fix formatting. Make "set height" command
1868 call set_height_command. Remove redundant code that turns off
1869 pagination if output isn't a terminal. Remove redundant call to
1870 set_width_command.
1871
7e6d0ac8
MK
18722003-08-22 Mark Kettenis <kettenis@gnu.org>
1873
3567a8ea
MK
1874 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1875 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1876 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1877 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1878 `case' keyword.
1879 (sparc64_register_info): Give the reister with number
1880 SPARC64_STATE_REGNUM a name.
1881 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1882 %asi and %ccr.
1883 (sparc64_push_dummy_call): Take BIAS into account when checking
1884 stcak alignment.
1885 (sparc_software_single_step): Remove assertions that check whether
1886 NPC and NNPC were zero.
1887 (sparc_supply_rwindow): Make public. Merge functionality with
1888 sparc64_supply_rwindow.
1889 (sparc_fill_rwindow): Make public. Merge functionality with
1890 sparc64_fill_rwindow.
1891 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1892 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1893 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1894 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1895 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1896
7e6d0ac8
MK
1897 * reggroups.c: Add whitespace after declarations of local
1898 variables in functions.
1899
72e5f484
MC
19002003-08-21 Michael Chastain <mec@shout.net>
1901
1902 * gdbtypes.h: Change array bound type from an int to enum.
1903
435ac228
AC
19042003-08-21 Andrew Cagney <cagney@redhat.com>
1905
1906 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1907 * config/sparc/tm-sparc.h: Ditto.
1908 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1909 unconditionally.
1910 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1911
0d0e1a63
MK
19122003-07-13 Mark Kettenis <kettenis@gnu.org>
1913
1914 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1915 (register_objfile_data, set_objfile_data, objfile_data): New
1916 prototypes.
1917 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1918 prototypes.
1919 (allocate_objfile): Call objfile_alloc_data.
1920 (free_objfile): Call objfile_free_data.
1921 (struct objfile_data): New.
1922 (struct objfile_data_registration): New.
1923 (struct objfile_data_registry): New.
1924 (objfile_data_registry): New variable.
1925 (register_objfile_data): New function.
1926 (objfile_alloc_data, objfile_free_data): New functions.
1927 (set_objfile_data, objfile_data): New functions.
1928 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1929 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1930 (_initialize_dwarf2_frame): New function and prototype.
1931
d90cf509
AC
19322003-08-21 Andrew Cagney <cagney@redhat.com>
1933
1934 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1935 a specific architecture.
1936 * arch-utils.h (set_architecture_from_arch_mach): Delete
1937 declaration.
1938 (target_architecture_hook): Delete declaration.
1939 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1940 (default_float_format): Assume GDB_MULTI_ARCH.
1941 (default_double_format): Assume GDB_MULTI_ARCH.
1942 (set_endian_from_file): Delete function.
1943 (arch_ok): Delete function.
1944 (set_arch): Delete function.
1945 (set_architecture_from_arch_mach): Delete function.
1946 (set_architecture_from_file): Delete function.
1947 (set_architecture): Assume GDB_MULTI_ARCH.
1948 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1949
8b39fe56
MK
19502003-08-21 Mark Kettenis <kettenis@gnu.org>
1951
1952 Rewrite FreeBSD/sparc64 native configuration.
1953 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1954 * sparc64fbsd-nat.c: New file.
1955 * sparc64fbsd-tdep.c: New file.
1956 * sparc64-tdep.c sparc64-tdep.h: New files.
1957 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1958 sparc64fbsd-tdep.o): New dependencies.
1959 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1960 and sparc64fbsd-tdep.c.
1961 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1962 * config/sparc/fbsd.mh: Remove copyright notice.
1963 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1964 sparcbsd-nat.o.
1965 * config/sparc/fbsd.mt: Remove copyright notice.
1966 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1967 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1968 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1969 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1970 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1971 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1972 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1973 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1974 "sparc/tm-sp64.h".
1975 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1976 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1977
a7f19c79
MC
19782003-08-21 Michael Chastain <mec@shout.net>
1979
1980 * symtab.h: Add doco on the space critical structures and
1981 some measurements of space usage.
1982
da08ea5b
MS
19832003-08-21 Michael Snyder <msnyder@redhat.com>
1984
1985 * tracepoint.c (trace_dump_command): Trace break address
1986 is subject to DECR_PC_AFTER_BREAK.
1987 (set_traceframe_context): Make "trace_line" an int.
1988 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1989
6df2bf50
MS
19902003-08-20 Michael Snyder <msnyder@redhat.com>
1991
1992 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1993 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1994 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1995 argument passing.
1996 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1997 functions, replace sh_push_dummy_call.
1998 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1999
0955bbf0
MC
20002003-08-20 Michael Chastain <mec@shout.net>
2001
2002 * gdbtypes.h (struct main_type): Rearrange to save space.
2003
260a4188
MS
20042003-08-20 Michael Snyder <msnyder@redhat.com>
2005
2006 * trad-frame.c: Comment typo fix.
2007
8baa6f92
KB
20082003-08-20 Michael Snyder <msnyder@redhat.com>
2009 Kevin Buettner <kevinb@redhat.com>
2010
2011 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2012 (frv_frame_init_saved_regs): Add declaration.
2013 (frame_extra_info): Add new field ``saved_regs''.
2014 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2015 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2016 Update frame related code.
2017 (frv_extract_struct_value_address): Adjust formatting.
2018 * Makefile.in (frv-tdep.o): Update dependencies.
2019 * config/frv/tm-frv.h (target_insert_watchpoint)
2020 (target_remove_watchpoint, target_insert_hw_breakpoint)
2021 (target_remove_hw_breakpoint): Delete these macros.
2022 (remote_insert_watchpoint, remote_remove_watchpoint)
2023 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2024 these declarations.
2025
87193939
MC
20262003-08-20 Michael Chastain <mec@shout.net>
2027
2028 * defs.h (ENUM_BITFIELD): New macro.
2029 * symtab.h (ENUM_BITFIELD): Use it.
2030 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2031
062103ba
SA
20322003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2033
2034 * MAINTAINERS (write after approval): Add myself.
2035
8b148df9
AC
20362003-08-18 Andrew Cagney <cagney@redhat.com>
2037
2038 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2039 * gdbarch.h, gdbarch.c: Re-generate.
2040 * infcall.c (call_function_by_hand): Adjust the SP by
2041 frame_red_zone_size before allocating any stack space.
2042 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2043 * x86-64-tdep.c (x86_64_frame_align): New function.
2044 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2045
2046 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2047 Remove code adjusting SP so that it skips over the Red Zone.
2048
954a4db8
MK
20492003-08-18 Mark Kettenis <kettenis@gnu.org>
2050
2051 * NEWS (New native configurations): Mention FreeBSD/amd64.
2052
1a241548
AC
20532003-08-18 Andrew Cagney <cagney@redhat.com>
2054
2055 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2056 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2057 "m68k_frame_p".
2058 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2059
f82b2acd
MK
20602003-08-18 Mark Kettenis <kettenis@gnu.org>
2061
2062 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2063
4056d258
ML
20642003-08-18 Michal Ludvig <mludvig@suse.cz>
2065
2066 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2067 Define.
2068 * i386-linux-nat.c: Include "linux-nat.h".
2069 (child_post_startup_inferior): New function.
2070
99ab4326
MK
20712003-08-18 Mark Kettenis <kettenis@gnu.org>
2072
2073 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2074 at the start of a frameless function. This probably fixes PR
2075 backtrace/1338.
2076
c8d5f0d6
MC
20772003-08-17 Michael Chastain <mec@shout.net>
2078
2079 * symfile.c (find_sym_fns): Remove special case for apollo target.
2080
9016a515
DJ
20812003-08-17 Daniel Jacobowitz <drow@mvista.com>
2082
2083 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2084 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2085 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2086 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2087 (linux_supports_tracevforkdone): New function.
2088 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2089 TRACEVFORKDONE.
2090 (child_follow_fork): Handle vfork.
2091 (linux_handle_extended_wait): Likewise. Also handle exec.
2092 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2093 * NEWS: Mention fork tracing.
2094
c538c11c
DJ
20952003-08-17 Daniel Jacobowitz <drow@mvista.com>
2096
2097 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2098
4de4c07c
DJ
20992003-08-17 Daniel Jacobowitz <drow@mvista.com>
2100
2101 * Makefile.in (i386-linux-nat.o): Update dependencies.
2102 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2103 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2104 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2105 * i386-linux-nat.c: Include "linux-nat.h".
2106 (child_post_startup_inferior): New function.
2107 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2108 * infptrace.c (kill_inferior): Wrap in #ifdef.
2109 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2110 attaching to each LWP.
2111 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2112 (init_lin_lwp_ops): Fill in some more operations.
2113 * linux-nat.h (linux_enable_event_reporting)
2114 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2115 prototypes.
2116 * linux-nat.c (linux_enable_event_reporting): New function.
2117 (child_post_attach, linux_child_post_startup_inferior)
2118 (child_post_startup_inferior, child_follow_fork)
2119 (linux_handle_extended_wait, kill_inferior): New functions.
2120
7996bcec
AC
21212003-08-16 Andrew Cagney <cagney@redhat.com>
2122
2123 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2124 * gdbarch.h, gdbarch.c: Re-generate.
2125
3d48a7a0
MK
21262003-08-16 Mark Kettenis <kettenis@gnu.org>
2127
2128 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2129
7989c619
AC
21302003-08-16 Andrew Cagney <cagney@redhat.com>
2131
2132 * NEWS: Mention that "set prompt-escape-char" was deleted.
2133 * top.c (get_prompt_1): Delete function.
2134 (gdb_prompt_escape):
2135 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2136 prompt-escape-char" command.
2137 (MAX_PROMPT_SIZE): Delete macro.
2138 (get_prompt): Simplify, do not call get_prompt_1.
2139
07978cd8
AC
21402003-08-16 Andrew Cagney <cagney@redhat.com>
2141
2142 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2143 -Werror. -Wformat-nonliteral problems.
2144
3ff7cf9e
JB
21452003-08-15 J. Brobecker <brobecker@gnat.com>
2146
2147 Further multiarching work mostly for hppa64-*-hpux11:
2148 * hppa-tdep.h: New file.
2149 * hppa-tdep.c: #include hppa-tdep.c.
2150 (hppa32_num_regs): Renamed from hppa_num_regs.
2151 (hppa64_num_regs): New constant.
2152 (hppa64_call_dummy_breakpoint_offset): New constant.
2153 (hppa32_call_dummy_length): New constant.
2154 (hppa64_call_dummy_length): New constant.
2155 (hppa32_stack_align): Make name 32bit explicit.
2156 (hppa32_register_virtual_type): Likewise.
2157 (hppa32_extract_return_value): Likewise.
2158 (hppa32_use_struct_convention): Likewise.
2159 (hppa32_store_return_value): Likewise.
2160 (hppa64_register_virtual_type): New function.
2161 (hppa64_extract_return_value): New function.
2162 (hppa64_use_struct_convention): New function.
2163 (hppa64_store_return_value): New function.
2164 (hppa_frame_locals_address): Remove declaration, function does
2165 not exist anymore.
2166 (hppa_register_byte): Add support for PA64 ABI.
2167 (hppa_gdbarch_init): Add support for PA64 ABI.
2168 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2169 Make name 32bit explicit.
2170 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2171 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2172 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2173 (hppa64_hpux_frame_base_before_sigtramp): New function.
2174 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2175 * config/pa/tm-hppa64.h: Remove macros that are no longer
2176 necessary now that the gdbarch vector is properly setup.
2177 Transform some macros into function calls. Some minor cleanup.
2178 * config/pa/tm-hppah.h: Update function calls in macros
2179 following the function renaming in hppa-hpux-tdep.c.
2180 * Makefile.in (hppa_tdep_h): New variable.
2181 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2182
5d05ca6d
MS
21832003-08-14 Michael Snyder <msnyder@redhat.com>
2184
2185 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2186
37ba2569
JB
21872003-08-13 J. Brobecker <brobecker@gnat.com>
2188
2189 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2190 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2191 routine.
2192
aed7f26a
MS
21932003-08-13 Michael Snyder <msnyder@redhat.com>
2194
2195 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2196 (frv_saved_pc_after_call): Use deprecated ftype.
2197 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2198 (frv_remote_translate_xfer_address): Remove.
2199 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2200
752d4ac1
JB
22012003-08-13 J. Brobecker <brobecker@gnat.com>
2202
2203 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2204 initialization after the common gdbarch initialization, not before.
2205
1426ac1d
JB
22062003-08-13 J. Brobecker <brobecker@gnat.com>
2207
2208 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2209 (ADDR_BITS_REMOVE): Remove, redundant.
2210
b6fbdd1d
JB
22112003-08-13 J. Brobecker <brobecker@gnat.com>
2212
2213 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2214 gdbarch method to clear the 2 low bits of text addresses.
2215
44160db3
AC
22162003-08-12 Andrew Cagney <cagney@redhat.com>
2217
2218 * Makefile.in (dsrec.o): Update dependencies.
2219 * dsrec.c: Include "gdb_assert.h".
2220 (make_srec): Use snprintf instead of sprintf, use a literal format
2221 string.
2222
bcf7d3ca
AC
22232003-08-12 Andrew Cagney <cagney@redhat.com>
2224
2225 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2226 FRAME_OBSTACK_ZALLOC.
2227
49ed40de
KB
22282003-08-12 Kevin Buettner <kevinb@redhat.com>
2229
2230 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2231 SSE registers.
2232
b246147c
MK
22332003-08-10 Mark Kettenis <kettenis@gnu.org>
2234
2235 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2236 amd64fbsd_sc_reg_offset): Add extern declarations.
2237 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2238 declarations.
2239
d95fdc0d
BE
22402003-08-11 Ben Elliston <bje@wasabisystems.com>
2241
2242 * MAINTAINERS (write after approval): Update my mail address.
2243
cf6a0e73
AC
22442003-08-10 Andrew Cagney <cagney@redhat.com>
2245
2246 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2247
f837910f
MK
22482003-08-10 Mark Kettenis <kettenis@gnu.org>
2249
e2dbbd2d
MK
2250 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2251 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2252 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2253 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2254 i386bsd_sc_reg_offset): Add extern declarations.
2255 * i386obsd-nat.c: Include "i386-tdep.h"
2256 (_initialize_i386obsd_nat): Remove extern declarations.
2257 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2258 declarations.
2259 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2260 declarations.
2261
f837910f
MK
2262 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2263 instead of frame_read_register.
2264 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2265 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2266 SP_REGNUM.
2267 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2268 instead of frame_unwind_unsigned_register. Use
2269 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2270 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2271 instead of read_register. Use builtin_type_void_data_ptr instead
2272 of builtin_type_void_func_ptr when extracting the address of the
2273 jmp_buf.
2274 (i386_extract_return_value, i386_store_return_value,
2275 i386_pseudo_register_read, i386_pseudo_register_write): Use
2276 register_size instead REGISTER_RAW_SIZE.
2277
edcf254d
AC
22782003-08-10 Andrew Cagney <cagney@redhat.com>
2279
2280 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2281 sprintf. Make "name" constant.
2282
26604a34
MK
22832003-08-10 Mark Kettenis <kettenis@gnu.org>
2284
192285c6
MK
2285 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2286 instead of frame_read_register.
f837910f
MK
2287 (i387_print_float_info): Use get_frame_register and
2288 get_frame_register_unsigned instead of frame_register_read.
192285c6 2289
f0925262
MK
2290 * i386fbsd-nat.c: Include "i386-tdep.h".
2291 (child_resume): Make `eflags' an ULONGEST. Use
2292 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2293 instead of register_read and register_write.
2294
a144416f
MK
2295 * i386bsd-nat.c (fetch_inferior_registers,
2296 store_inferior_registers): Don't use && at the end of a line.
2297 (_initialize_i386bsd_nat): Fix typo.
2298
fec74868
MK
2299 * frame.c (_initialize_frame): Add missing backslash.
2300
87232496
MK
2301 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2302 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2303 and supply_register instead of manipulating the register buffer
2304 directly.
2305
c9b9de0b
MK
2306 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2307 * config/i386/nm-i386sol2.h
2308 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2309
26604a34
MK
2310 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2311 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2312 instructions that GCC likes to mingle into the prologue. Fixes
2313 gdb/1253 and gdb/1255.
2314
25d29d70
AC
23152003-08-09 Andrew Cagney <cagney@redhat.com>
2316
2317 Fix GDB PR cli/926.
2318 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2319 * command.h (add_setshow_uinteger_cmd): Declare.
2320 * frame.c (set_backtrace_cmd): New function.
2321 (show_backtrace_cmd): New function.
2322 * frame.c (_initialize_frame): Replace "set/show
2323 backtrace-below-main" with "set/show backtrace past-main". Add
2324 command "set/show backtrace limit".
2325 (backtrace_past_main): Rename "backtrace_below_main".
2326 (backtrace_limit): New variable.
2327 (get_prev_frame): Update. Check the backtrace_limit.
2328
9ebf4acf
AC
23292003-08-09 Andrew Cagney <cagney@redhat.com>
2330
2331 * defs.h (xstrprintf): Declare.
2332 * utils.c (xstrprintf): New function.
2333 * breakpoint.c (insert_breakpoints): Replace sprintf and
2334 non-literal format strings, with xstrprintf and cleanups.
2335 (delete_breakpoint,breakpoint_re_set): Ditto.
2336 (commands_command, insert_breakpoints): Ditto.
2337 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2338 (break_at_finish_command_1): Ditto.
2339
3771659b
AC
23402003-08-09 Andrew Cagney <cagney@redhat.com>
2341
2342 * MAINTAINERS (language support): List Adam Fedor as Objective C
2343 maintainer.
2344
b4263afa
JB
23452003-08-08 J. Brobecker <brobecker@gnat.com>
2346
2347 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2348 are now multiarched.
2349
d84defb1
JB
23502003-08-08 J. Brobecker <brobecker@gnat.com>
2351
2352 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2353 longer necessary now that hppa64 is partially multiarch'ed.
2354
f786f615
AC
23552003-08-08 Andrew Cagney <cagney@redhat.com>
2356
2357 * interps.c (interp_set): Check for a NULL "old_interp".
2358
c938e9b0
L
23592003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2360
2361 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2362 (install-only): Support DESTDIR.
2363 (uninstall): Likewise.
2364 (install-gdbtk): Likewise.
2365
9a146a11
EZ
23662003-08-08 Elena Zannoni <ezannoni@redhat.com>
2367
2368 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2369 contains something meaningful at all times.
2370
2371Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 2372
62599e99 2373 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 2374
56296155
BC
2375Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2376
62599e99 2377 * MAINTAINERS (write after approval): Added self.
56296155 2378
9710e734
AC
23792003-08-07 Andrew Cagney <cagney@redhat.com>
2380
2381 * inferior.h (AT_SYMBOL): Define.
2382 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2383 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2384 * mips-tdep.c (mips_call_dummy_address): Delete function.
2385 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2386 set call_dummy_address.
2387
98b3ab73
AC
23882003-08-07 Andrew Cagney <cagney@redhat.com>
2389
2390 * language.c (op_error): Delete function.
2391 (binop_type_check): Delete function.
2392 * language.h (type_op_error, range_op_error): Delete macros.
2393 (op_error): Delete declaration.
2394
2fcf52f0
AC
23952003-08-07 Andrew Cagney <cagney@redhat.com>
2396
2397 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2398
abd4220e 23992003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 2400
abd4220e 2401 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 2402 (x86_64_push_arguments): Skip the red zone.
abd4220e 2403
9dd5f34f
AC
24042003-08-05 Andrew Cagney <cagney@redhat.com>
2405
2406 * reggroups.c (reggroup_next): Check for the final entry.
2407
e5e78edc
AC
24082003-08-04 Andrew Cagney <cagney@redhat.com>
2409
ab4e3d93
AC
2410 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2411 * cli/cli-script.c (define_command): Call query directly, instead
2412 of passing it a buffer.
2413 * ocd.c (ocd_error): Pass error a constant format string.
2414 * remote-mips.c (mips_error): Use fputs_filtered.
2415
1062ca82
AC
2416 * solib-svr4.c (_initialize_svr4_solib): Update
2417 register_gdbarch_data call.
2418 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2419
fcc1c85c
AC
2420 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2421 (register_gdbarch_data): Delete "free" parameter. Update
2422 comments.
2423 * gdbarch.h, gdbarch.c: Re-generate.
2424 * reggroups.c (_initialize_reggroup): Update.
2425 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2426 * frame-base.c (_initialize_frame_base): Update.
2427 * frame-unwind.c (_initialize_frame_unwind): Update.
2428 * user-regs.c (_initialize_user_regs): Update.
2429 * remote.c (_initialize_remote): Update.
2430 * regcache.c (_initialize_regcache): Update.
2431
116f06ea
AC
2432 * regcache.c (xfree_regcache_descr): Delete function.
2433 (_initialize_regcache): Update call to register_gdbarch_data.
2434 (init_regcache_descr, init_legacy_regcache_descr): Use
2435 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2436
e5e78edc
AC
2437 * remote.c (free_remote_state): Delete function.
2438 (_initialize_remote): Update register_gdbarch_data.
2439 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2440 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2441
6c7d17ba
AC
24422003-08-04 Andrew Cagney <cagney@redhat.com>
2443
2444 * reggroups.c (struct reggroup_el): Define.
2445 (struct reggroups): Delete field "nr_group". Replace array
2446 "group" with a "first" to "last" linked list.
2447 (reggroups_init): Update. Allocate using gdbarch's obstack.
2448 (reggroups_free): Delete function.
2449 (add_group): Update. Add "el" parameter.
2450 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2451 (default_groups): Update.
2452 (reggroup_next): Replace reggroups.
2453 (reggroups_dump): Update.
2454 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2455 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2456 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2457
89b7795b
DJ
24582003-08-04 Daniel Jacobowitz <drow@mvista.com>
2459
2460 * Makefile.in (tui-interp.o): Update dependencies.
2461
306d9ac5
DC
24622003-08-04 David Carlton <carlton@kealia.com>
2463
2464 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2465 to internal_error call.
2466 * source.c (forward_search_command): Add "%s" format argument.
2467 (reverse_search_command): Ditto.
2468 * top.c (quit_confirm): Ditto.
2469 * cli/cli-setshow.c (do_setshow_command): Ditto.
2470 * cp-valprint.c (cp_print_class_method): Replace
2471 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2472 (cp_print_class_member): Ditto.
2473 * event-top.c (command_line_handler): Ditto.
2474 * linux-proc.c (linux_info_proc_cmd): Ditto.
2475 * p-typeprint.c (pascal_type_print_base): Ditto.
2476 * p-valprint.c (pascal_object_print_class_method): Ditto.
2477 (pascal_object_print_class_member): Ditto.
2478 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2479 * remote.c (remote_cisco_section_offsets): Ditto.
2480 * top.c (command_line_input): Ditto.
2481 * utils.c (vwarning,error_stream,quit): Ditto.
2482 * valprint.c (print_floating,print_binary_chars)
2483 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2484
57bfe177
AC
24852003-08-04 Andrew Cagney <cagney@redhat.com>
2486
2487 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2488
e546b999
AC
24892003-08-02 Andrew Cagney <cagney@redhat.com>
2490
2491 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2492 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2493 amd64fbsd-nat.c.
2494
91092ee5
AC
24952003-08-02 Andrew Cagney <cagney@redhat.com>
2496
2497 * Makefile.in: Update all dependencies and definitions.
2498
889f28e2
AF
24992003-08-02 Adam Fedor <fedor@gnu.org>
2500
2501 * linespec.c (is_objc_method_format): New function
2502 (decode_line_1, locate_first_half): Use it.
2503 Fixes PR objc/1298
2504
880bc914
AC
25052003-08-01 Andrew Cagney <cagney@redhat.com>
2506
2507 * NEWS: Mention that m32r is multi-arch.
2508 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2509 * configure.tgt: Recognize m32r-*-*.
2510 * config/m32r/tm-m32r.h: Delete file.
2511 * config/m32r/m32r.mt: New file.
2512 * m32r-rom.c (m32r_upload_command): Use hostent only when
2513 gethostname succeeds, in order to avoid a compilation
2514 warning.
2515 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2516 compiler warning.
2517
19f59343
MS
25182003-08-01 Michael Snyder <msnyder@redhat.com>
2519
2520 * sh-tdep.c (sh_frame_align): New gdbarch method.
2521 (sh_gdbarch_init): Set up frame_align method.
2522
4e7d7511
MS
25232003-07-31 Michael Snyder <msnyder@redhat.com>
2524
2525 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2526 which is already covered by the new frames infrastructure.
2527
63022984
AC
25282003-07-31 Andrew Cagney <cagney@redhat.com>
2529
2530 * user-regs.c (struct user_reg): Add "next" link.
2531 (struct user_regs): Replace "user" with "first" and "last" links.
2532 (append_user_reg): Add pre-allocated "reg" parameter.
2533 (builtin_user_regs): Provide initial value for "last".
2534 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2535 (user_regs_init): Allocate memory from the gdbarch obstack.
2536 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2537 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2538 linked list.
2539 (usernum_to_user_reg): New function.
2540 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2541 (value_of_user_reg): Use usernum_to_user_reg.
2542 (user_regs_free): Delete function.
2543 (_initialize_user_regs): Update register_gdbarch_data call.
2544
7cf6e574
DJ
25452003-07-31 Daniel Jacobowitz <drow@mvista.com>
2546
2547 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2548
c48a845b
MS
25492003-07-30 Michael Snyder <msnyder@redhat.com>
2550
4e7d7511 2551 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
2552 * infcall.c (call_function_by_hand): Pass struct_addr to
2553 value_being_returned.
2554 * infcmd.c (print_return_value): Pass zero as struct_addr.
2555 * values.c (value_being_returned): If struct_addr is passed,
2556 use it instead of trying to recover it from the inferior.
2557
f0d8db19
KB
25582003-07-30 Kevin Buettner <kevinb@redhat.com>
2559
2560 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2561 the prologue analyzer won't need to attempt to extract the pc
2562 value from the woefully incomplete dummy frame.
2563 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2564 possible. Disable code which modifies the frame.
2565
e5c113a1
AC
25662003-07-28 Andrew Cagney <cagney@redhat.com>
2567
2568 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2569 to level 2.
2570 (annotate_breakpoints_table, annotate_record): Ditto.
2571 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2572 (annotate_field_name_end, annotate_field_value): Ditto.
2573 (annotate_field_end, annotate_frame_source_begin): Ditto.
2574 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2575 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2576 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2577 (annotate_frame_address_end, annotate_frame_address): Ditto.
2578 (annotate_frame_args, annotate_frame_end): Ditto.
2579 (annotate_frame_where, annotate_arg_begin): Ditto.
2580 (annotate_arg_name_end, annotate_arg_value): Ditto.
2581 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2582 (annotate_function_call, annotate_signal_name): Ditto.
2583 (annotate_signal_string, annotate_signal_name_end): Ditto.
2584 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2585 (annotate_value_begin, annotate_value_history_value): Ditto.
2586 (annotate_value_history_end, annotate_value_end): Ditto.
2587 (annotate_display_begin, annotate_display_number_end): Ditto.
2588 (annotate_display_format, annotate_display_expression): Ditto.
2589 (annotate_display_expression_end, annotate_display_value): Ditto.
2590 (annotate_display_end, annotate_array_section_begin): Ditto.
2591 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2592 (annotate_elt, annotate_array_section_end): Ditto.
2593
bb1db049
AC
25942003-07-28 Andrew Cagney <cagney@redhat.com>
2595
2596 * regcache.c (struct regcache_descr): Update comments on
2597 nr_raw_registers.
2598 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2599 sizeof_raw_register_valid_p.
2600 (init_regcache_descr): Set nr_raw_registers and
2601 sizeof_raw_register_valid_p before calling
2602 init_legacy_regcache_descr.
2603
20e6603c
AC
26042003-07-28 Andrew Cagney <cagney@redhat.com>
2605
2606 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2607 MOD NUM_REGS.
2608
db742940
DJ
26092003-07-28 Daniel Jacobowitz <drow@mvista.com>
2610
2611 * thread.c (info_threads_command): Use get_selected_frame ().
2612 Check that there is at least one non-sentinel frame.
2613
ce7f4371
SC
26142003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2615
2616 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2617 (m68hc11_pop_frame): Remove.
2618 (m68hc11_frame_saved_pc): Remove.
2619 (m68hc11_frame_chain): Remove.
2620 (m68hc11_frame_init_saved_regs): Remove.
2621 (m68hc11_init_extra_frame_info): Remove.
2622 (m68hc11_store_struct_return): Remove.
2623 (m68hc11_saved_pc_after_call): Remove.
2624
1ea653ae
SC
26252003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2626
2627 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2628 frame unwind information.
2629 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2630 and adapted for frame unwinding.
2631 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2632 (m68hc11_unwind_pc): New function.
2633 (m68hc11_frame_unwind_cache): New function to analyze frames.
2634 (m68hc11_frame_this_id): New function to create new frame struct.
2635 (m68hc11_frame_prev_register): New function to unwind a register from
2636 the frame.
2637 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2638 (m68hc11_frame_p): New function for the above.
2639 (m68hc11_frame_base_address): New function to return fp of frame.
2640 (m68hc11_frame_args_address): Update for frame.
2641 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2642 (m68hc11_unwind_sp): New function.
2643 (m68hc11_unwind_dummy_id): New function.
2644 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2645 calls.
2646
c8a7f6ac
SC
26472003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2648
2649 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2650 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2651 when we are beyond the current pc.
2652
3dc990bf
SC
26532003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2654
2655 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2656 from m68hc11_push_arguments.
2657 (m68hc11_push_arguments): Remove.
2658 (m68hc11_push_return_address): Remove.
2659 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2660 handlers; remove deprecated_extra_stack_alignment_needed.
2661
222e5d1d
AC
26622003-07-27 Andrew Cagney <cagney@redhat.com>
2663
2664 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2665 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2666 REAL_PC and not the pointer.
2667 * hppa-hpux-tdep.c: Include frame.h
2668
a7e9a47e
AC
26692003-07-27 Andrew Cagney <cagney@redhat.com>
2670
2671 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2672 GDB_MULTI_ACH_PARTIAL.
2673
7e3dd49e
AC
26742003-07-27 Andrew Cagney <cagney@redhat.com>
2675
2676 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2677 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2678 operator at start and not end of line.
2679 (decode_prologue): Ditto.
2680 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2681 frame_unwind_register_unsigned instead of
2682 frame_unwind_unsigned_register.
2683 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2684 read_register.
2685 (m32r_push_dummy_call): Use register_size instead of
2686 REGISTER_RAW_SIZE.
2687 (m32r_frame_sniffer): Replace m32r_frame_p.
2688 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2689 * m32r-rom.c (report_transfer_performance): Delete extern
2690 declaration.
2691 (m32r_load, m32r_upload_command): Use print_transfer_performance
2692 instead of report_transfer_performance.
2693 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2694 / add_show_from_set.
2695
0880807f
AC
26962003-07-26 Andrew Cagney <cagney@redhat.com>
2697
2698 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2699 store_return_value and extract_struct_value_address.
2700
64ae9269
DJ
27012003-07-26 Daniel Jacobowitz <drow@mvista.com>
2702
2703 PR c++/1267
2704 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2705 NULL, default to the section containing PC.
2706
e286caf2
SC
27072003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2708
2709 * NEWS: Mention "regs" deprecated for m68hc11 too.
2710
2711 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2712 (m68hc11_print_register): New function to print out one register.
2713 (m68hc11_print_registers_info): New function to print registers.
2714 (show_regs): Deprecate and use the above.
2715 (m68hc11_gdbarch_init): Install the print_registers_info.
2716
705b278b
JJ
27172003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2718
2719 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2720 that we have a SIGTRAP before returning non-zero.
2721
63cd4198
EZ
27222003-07-23 Michal Ludvig <mludvig@suse.cz>
2723 Elena Zannoni <ezannoni@redhat.com>
2724
2725 * linespec.c (decode_line_2): Avoid crash if
2726 find_function_start_sal() returns empty record.
2727
6926787d
AS
27282003-07-23 Andreas Schwab <schwab@suse.de>
2729
2730 * ia64-tdep.c (ia64_print_insn): New function.
2731 (ia64_gdbarch_init): Set print_insn to it.
2732 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2733 deprecated_tm_print_insn_info.
2734
708cc1b6
MS
27352003-07-22 Michael Snyder <msnyder@redhat.com>
2736
2737 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2738 handle 8-bit returns (long long).
2739 (h8300h_extract_return_value): Ditto.
2740 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2741
aebd7893
AC
27422003-07-22 Andrew Cagney <cagney@redhat.com>
2743
2744 * gdbarch.c Include "gdb_obstack.h".
2745 (struct gdbarch): Add an "obstack".
2746 (alloc_gdbarch_data): Allocate the gdbarch data using
2747 GDBARCH_OBSTACK_CALLOC.
2748 (free_gdbarch_data): Delete function.
2749 (gdbarch_obstack_zalloc): New function.
2750 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2751 Assert that the architecture is not initialized.
2752 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2753 vector from the obstack.
2754 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2755 architecture obstack.
2756 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2757 (set_gdbarch_data): Assert that the data is not initialized.
2758 (struct gdbarch_data): Delete member "free".
2759 (register_gdbarch_data): Do not initialize "free".
2760 * gdbarch.h, gdbarch.c: Re-generate.
2761
153721e6
AC
27622003-07-22 Andrew Cagney <cagney@redhat.com>
2763
2764 * configure.in (build_warnings): Add -Wformat-nonliteral.
2765 * configure: Re-generate.
2766
c193f044 27672003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
2768
2769 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 2770
c3228f12
EZ
27712003-07-22 Elena Zannoni <ezannoni@redhat.com>
2772
2773 * findvar.c (read_var_value): Remove case for thread local storage
2774 variables. It is now entirely handled by the dwarf2 location
2775 expression code.
2776 * printcmd.c (address_info): Ditto.
2777 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2778 enumeration value.
2779 (struct symbol): Remove objfile field, which was used by
2780 LOC_THREAD_LOCAL_STATIC only.
2781 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2782 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2783 usage of objfile pointer.
2784 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2785 thread local variables.
2786 Add include of objfiles.h.
2787 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2788 storage variables.
2789 * Makefile.in (dwarf2loc.o): Update dependencies.
2790
aef9bcd2
AC
27912003-07-22 Andrew Cagney <cagney@redhat.com>
2792
2793 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2794 get_frame_base.
2795 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2796 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2797 (struct value): Add opaque declaration.
2798 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2799
d95a8903
AC
28002003-07-21 Andrew Cagney <cagney@redhat.com>
2801
2802 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2803 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2804
4db73d49
SC
28052003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2806
2807 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2808 regcache_cooked_read_unsigned instead of read_register.
2809 (m68hc11_saved_pc_after_call): Likewise.
2810 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2811 instead of write_register.
2812 (m68hc11_register_type): New function.
2813 (m68hc11_register_virtual_type): Remove.
2814 (m68hc11_store_return_value): Convert to use the regcache.
2815 (m68hc11_extract_struct_value_address): Likewise.
2816 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2817 m68hc11_register_type; undeprecate store_return_value and
2818 extract_struct_value_address.
2819
ef2b8fcd
SC
28202003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2821
2822 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2823 and translate to use regcache.
2824 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2825
625b0b97
AC
28262003-07-18 Andrew Cagney <cagney@redhat.com>
2827
2828 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2829 * gdbarch.h, gdbarch.c: Re-generate.
2830 * i386-tdep.c (i386_gdbarch_init): Do not set
2831 DWARF2_BUILD_FRAME_INFO.
2832 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2833 unconditionally.
2834 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2835 DWARF2_BUILD_FRAME_INFO.
2836
22b0d388
AC
28372003-07-18 Andrew Cagney <cagney@redhat.com>
2838
2839 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2840 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2841
1ce5d6dd
AC
28422003-07-18 Andrew Cagney <cagney@redhat.com>
2843
2844 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2845 frame_unwind_address_in_block, instead of frame_pc_unwind.
2846 (dwarf2_frame_cache): Ditto.
2847
e6e5e94c
AC
28482003-07-18 Andrew Cagney <cagney@redhat.com>
2849
2850 * user-regs.h (struct gdbarch): Declare opaque.
2851 * ui-out.h (struct ui_file): Declare opaque.
2852 * dwarf2-frame.h (struct frame_info): Declare opaque.
2853
5483d879
KW
28542003-07-18 Kris Warkentin <kewarken@qnx.com>
2855
2856 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2857 #include "...".
2858 (procfs_meminfo): Change strerror to safe_strerror.
2859 (procfs_can_run): Remove K&R badness.
2860
278a7cf7
MS
28612003-07-17 Michael Snyder <msnyder@redhat.com>
2862
2863 * remote-sim.c: Comment typo fix.
2864
606e3b82
AC
28652003-07-17 Andrew Cagney <cagney@redhat.com>
2866
2867 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2868 configure.
2869 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2870 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2871 GDB_MULTI_ARCH_PARTIAL.
2872
c43af07c
EZ
28732003-07-17 Elena Zannoni <ezannoni@redhat.com>
2874
2875 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2876 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2877 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2878
3b85b0f1
TR
28792003-07-16 Theodore A. Roth <troth@openavr.org>
2880
2881 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2882 found.
2883 (avr_frame_unwind_cache): Don't unwind FP for main.
2884 Update a comment.
2885 Save the computed prev_sp.
2886 (avr_saved_regs_unwinder): Remove function.
2887 (avr_frame_prev_register): Use PC unwind logic from
2888 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2889
336d1bba
AC
28902003-07-16 Andrew Cagney <cagney@redhat.com>
2891
2892 * frame-base.h (frame_base_p_ftype): Delete definition.
2893 (frame_base_append_predicate): Delete declaration.
2894 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2895 (frame_unwind_append_predicate): Delete declaration.
2896 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2897 (append_predicate): Delete parameter "p".
2898 (frame_unwind_append_predicate): Delete function.
2899 (frame_unwind_append_sniffer): Update call to append_predicate.
2900 (frame_unwind_free): Delete function.
2901 (_initialize_frame_unwind): Pass NULL as "free" to
2902 register_gdbarch_data.
2903 (frame_unwind_init): Append the dummy_frame_sniffer.
2904 (frame_unwind_find_by_frame): Simplify.
2905 * frame-base.c (struct frame_base_table): Delete field "p".
2906 (append_predicate): Delete parameter "p".
2907 (frame_base_append_predicate): Delete function.
2908 (frame_base_append_sniffer): Update call to append_predicate.
2909 (frame_base_free): Delete function.
2910 (frame_base_find_by_frame): Simplify.
2911 (_initialize_frame_base): Pass NULL as "free" to
2912 register_gdbarch_data.
2913 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2914 (x86_64_sigtramp_frame_sniffer): Replace
2915 "x86_64_sigtramp_frame_p".
2916 (x86_64_init_abi): Set the frame unwind sniffers.
2917 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2918 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2919 (m68k_gdbarch_init): Set the frame unwind sniffers.
2920 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2921 "i386_sigtramp_frame_p".
2922 (i386_frame_sniffer): Replace "i386_frame_p".
2923 (i386_gdbarch_init): Set the frame unwind sniffers.
2924 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2925 (avr_gdbarch_init): Set the frame unwind sniffers.
2926 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2927 "alpha_sigtramp_frame_p"
2928 (alpha_heuristic_frame_sniffer): Replace
2929 "alpha_heuristic_frame_p".
2930 (alpha_gdbarch_init): Set the frame unwind sniffers.
2931 (alpha_dwarf2_init_abi): Ditto.
2932 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2933 "alpha_debug_frame_p".
2934 (alpha_mdebug_frame_base_sniffer): Replace
2935 "alpha_mdebug_frame_base_p".
2936 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2937 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2938 (d10v_gdbarch_init): Set the frame unwind sniffer.
2939 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2940 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2941 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2942 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2943 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2944 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2945
48db5a3c
CV
29462003-07-16 Michael Snyder <msnyder@redhat.com>
2947
2948 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2949 should go thru sh_dsp_register_sim_regno, else the dsp regs
2950 will not get the right values.
2951
29522003-07-16 Corinna Vinschen <vinschen@redhat.com>
2953
2954 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2955 deprecated_store_floating by call to store_typed_floating.
2956 (sh_sh4_register_convert_to_raw): Substitute call to
2957 deprecated_extract_floating by call to extract_typed_floating.
2958
29592003-07-16 Corinna Vinschen <vinschen@redhat.com>
2960
2961 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2962
29632003-07-16 Corinna Vinschen <vinschen@redhat.com>
2964
2965 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2966 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2967 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2968 as possible.
2969 (do_pseudo_register): Remove.
2970 (sh_push_dummy_code): New function.
2971 (sh64_store_struct_return): Rename from sh_store_struct_return.
2972 Only called for sh64 now.
2973 (sh_extract_struct_value_address): Regcache'ify.
2974 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2975 and accomodate new tasks.
2976 (sh64_push_return_address): Rename from sh_push_return_address.
2977 Only called for sh64 now.
2978 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2979 Regcache'ify.
2980 (sh3e_sh4_extract_return_value): Regcache'ify.
2981 (sh_default_store_return_value): Ditto.
2982 (sh3e_sh4_store_return_value): Ditto.
2983 (sh_default_register_byte): Remove.
2984 (sh_sh4_register_byte): Remove.
2985 (sh_default_register_raw_size): Remove.
2986 (sh_sh4_register_raw_size): Remove.
2987 (sh_register_virtual_size): Remove.
2988 (sh_sh3e_register_virtual_type): Remove.
2989 (sh_sh3e_register_type): New function.
2990 (sh_sh4_register_virtual_type): Remove.
2991 (sh_sh4_register_type): New function.
2992 (sh_default_register_virtual_type): Remove.
2993 (sh_default_register_type): New function.
2994 (do_fv_register_info): Add parameters to accomodate call from
2995 sh_print_registers_info.
2996 (do_dr_register_info): Ditto.
2997 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2998 Add parameters to accomodate call from sh_print_registers_info.
2999 (sh_do_fp_register): Ditto.
3000 (sh64_do_pseudo_register): Call do_dr_register_info,
3001 do_fv_register_info and sh_do_fp_register with default parameters.
3002 (sh_do_register): Add parameters to accomodate call from
3003 sh_print_registers_info.
3004 (sh_print_register): Ditto.
3005 (sh_print_registers_info): Rename from sh_do_registers_info.
3006 Add parameters to be used as gdbarch_print_registers_info
3007 implementation. Accomodate removed do_pseudo_register function
3008 pointer.
3009 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3010 function pointer. Call sh_print_register with default parameters.
3011 (sh64_do_registers_info): Call sh_print_registers_info instead of
3012 sh_do_registers_info.
3013 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3014 detection of deprecated vs. non-deprecated functionality.
3015 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3016 function pointer assignments by direct function calls.
3017
e8a89fe2
AC
30182003-07-15 Andrew Cagney <cagney@redhat.com>
3019
3020 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3021 (frame_register_unwind, create_new_frame): Ditto.
3022 (legacy_get_prev_frame, get_frame_type): Ditto.
3023 (get_frame_base_address): Use frame_base_find_by_frame.
3024 (get_frame_locals_address): Use frame_base_find_by_frame.
3025 (get_frame_args_address): Use frame_base_find_by_frame.
3026 * frame-base.h (frame_base_sniffer_ftype): Declare.
3027 (frame_base_append_sniffer): Declare.
3028 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3029 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3030 (frame_base_append_sniffer): New function.
3031 (frame_base_append_predicate): Add a NULL sniffer.
3032 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3033 (struct frame_base_table): Add "sniffer".
3034 (frame_base_free): Free the "sniffer" table.
3035 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3036 (frame_unwind_append_sniffer): Declare.
3037 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3038 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3039 (struct frame_unwind_table): Add "sniffer", delete "middle".
3040 (append_predicate): Add "sniffer" parameter, append the sniffer.
3041 (frame_unwind_init): Update append_predicate call.
3042 (frame_unwind_append_sniffer): New function.
3043 (frame_unwind_append_predicate): Update append_predicate call.
3044 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3045
0714963c
AC
30462003-07-15 Andrew Cagney <cagney@redhat.com>
3047
3048 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3049 before code inhibiting repeated unwind attempts. Add to
3050 commentary on that test's problems.
3051 * blockframe.c (inside_main_func): Look for "main" in the minimal
3052 symbol table.
3053 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3054 identical.
3055
d9170e22
AC
30562003-07-15 Andrew Cagney <cagney@redhat.com>
3057
3058 * complaints.c (struct explanation): Define.
3059 (struct complaints): Change type of "explanation" to "struct
3060 explanation".
3061 (symfile_explanations): Convert to a "struct explanation" table.
3062 (vcomplaint): Update.
3063
eba29c8c
ML
30642003-07-15 Michal Ludvig <mludvig@suse.cz>
3065
3066 * x86-64-linux-nat.c (regmap): Removed.
3067 (supply_gregset, fill_gregset): Call
3068 x86_64_linux_(fill,supply)_gregset functions.
3069 * x86-64-linux-tdep.c (USER_*): New defines.
3070 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3071 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3072 New functions.
3073 (fetch_core_registers): Ditto.
3074 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3075 * x86-64-linux-tdep.h: New file.
3076 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3077 and core-regset.o.
3078 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3079
68cc0bfb
MK
30802003-07-13 Mark Kettenis <kettenis@gnu.org>
3081
88a115f7
MK
3082 * x86-64-tdep.c (x86_64_store_return_value): Use
3083 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 3084
68cc0bfb
MK
3085 * configure.host: Add x86_64-*-freebsd*.
3086 * configure.tgt: Add x86_64-*-freebsd*.
3087 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3088 * amd64fbsd-nat.c: New file.
3089 * amd64fbsd-tdep.c: New file.
3090 * config/i386/nm-fbsd64.h: New file.
3091 * config/i386/fbsd64.mh: New file.
3092 * config/i386/fbsd64.mt: New file.
3093
138e7be5
MK
30942003-07-11 Mark Kettenis <kettenis@gnu.org>
3095
3096 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3097 `sc_regs_offset' and `sc_fpregs_offset'.
3098 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3099 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3100 (alpha_sigtramp_register_address): Rewrite to use new members of
3101 `struct gdbarch_tdep'.
3102 (alpha_gdbarch_init): Initialize new members of struct
3103 gdbarch_tdep'.
3104 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3105 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3106 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3107 (alphafbsd_pc_in_sigtramp): Implement.
3108 (alphafbsd_sigtramp_offset): New function.
3109 (alphafbsd_sigcontext_addr): New function.
3110 (alphafbsd_init_abi): Initialize signal trampoline related members
3111 of `struct gdbarch_tdep'.
3112 (_initialize_alphafbsd_tdep): Add prototype.
3113
95303a68
TR
31142003-07-11 Theodore A. Roth <troth@openavr.org>
3115
ba292e4c
TR
3116 * Makefile.in (install-only): Quote sed expression when generating
3117 transformed_name.
95303a68 3118
6896c0c7
RH
31192003-07-11 Richard Henderson <rth@redhat.com>
3120
3121 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3122 * dwarf2-frame.c: Include complaints.h.
3123 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3124 variable initialization; return NULL on error.
3125 (decode_frame_entry): New.
3126
8edd5d01
AC
31272003-07-11 Andrew Cagney <cagney@redhat.com>
3128
c4a09524
AC
3129 * frame.h (frame_address_in_block): Delete declaration.
3130 * blockframe.c (frame_address_in_block): Delete function.
3131 (get_frame_block): Use get_frame_address_in_block.
3132 (block_innermost_frame): Ditto.
3133 * stack.c (print_frame, backtrace_command_1): Ditto.
3134
8edd5d01
AC
3135 * frame.h (get_frame_address_in_block): Declare.
3136 (frame_unwind_address_in_block): Declare.
3137 * frame.c (frame_unwind_address_in_block): New function.
3138 (get_frame_address_in_block): New function.
3139
f7968451
AC
31402003-07-10 Andrew Cagney <cagney@redhat.com>
3141
3142 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3143 pre-default. Note: re-generate has no effect.
3144
ae99b398
AC
31452003-07-10 Andrew Cagney <cagney@redhat.com>
3146
3147 * gdbarch.sh: When a variable, but not a function, compare against
3148 0. Fix problem in previous patch.
3149 * gdbarch.c: Re-generate.
3150
956ac328
AC
31512003-07-10 Andrew Cagney <cagney@redhat.com>
3152
3153 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3154 functions against NULL, not 0.
3155 * gdbarch.c: Re-generate.
3156
287c3240
FF
31572003-07-10 Fred Fish <fnf@ninemoons.com>
3158
3159 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3160 null string instead of a null pointer.
3161 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3162
32f63c4b
MS
31632003-07-09 Michael Snyder <msnyder@redhat.com>
3164
3165 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3166
402ecd56
MK
31672003-07-09 Mark Kettenis <kettenis@gnu.org>
3168
3169 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3170 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3171 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3172 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3173 * x86-64-tdep.c: ... from here.
3174
c481dac7
AS
31752003-07-09 Andreas Schwab <schwab@suse.de>
3176
3177 * m68k-tdep.h (enum struct_return): Define.
3178 (struct gdbarch_tdep): Add struct_return.
3179 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3180 bytes are padded to the right, not to the left. Pass struct value
3181 address in register %a1, not on stack.
3182 (m68k_use_struct_convention): New function.
3183 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3184 struct_return in tdep to pcc_struct_return.
3185 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3186 reg_struct_return.
3187
64176fa3
JB
31882003-07-09 Joel Brobecker <brobecker@gnat.com>
3189
3190 * somread.c (som_symfile_offsets): Fix compilation error.
3191
96a4ee76
AC
31922003-07-09 Andrew Cagney <cagney@redhat.com>
3193
3194 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3195 Add comments about the checks.
3196
1517c6d1
AC
31972003-07-08 Andrew Cagney <cagney@redhat.com>
3198
3199 * Makefile.in: Make dependency section headers consistent.
3200 (config_h): Move to $BUILD headers section.
3201 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3202 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3203 (ada-exp.tab.c): Move to YACC/LEX section.
3204 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3205 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3206
dc5dd1eb
KW
32072003-07-08 Kris Warkentin <kewarken@qnx.com>
3208
3209 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
3210 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3211 of strerror with safe_strerror, use ISO C function definitions,
3212 and replace instances of sprintf with snprintf.
dc5dd1eb 3213
612dde91
AC
32142003-07-07 Andrew Cagney <cagney@redhat.com>
3215
3216 * frame.c (get_prev_frame): Enable check for identical frames.
3217 Update comments. Update error messages.
3218
492c11d3
JB
32192003-07-07 Joel Brobecker <brobecker@gnat.com>
3220
3221 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3222
376a5a49
JB
32232003-07-07 Joel Brobecker <brobecker@gnat.com>
3224
3225 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3226 sort_symtab_syms, no longer necessary.
3227
22b4a9ad
JB
32282003-07-07 Joel Brobecker <brobecker@gnat.com>
3229
3230 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3231
5bbcb741
JB
32322003-07-07 Joel Brobecker <brobecker@gnat.com>
3233
3234 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3235 (mips_register_byte): Likewise.
3236
c139e7d9
DJ
32372003-07-07 Daniel Jacobowitz <drow@mvista.com>
3238
3239 * Makefile.in (sparc_tdep_h): New.
3240 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3241 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3242 * sparc-linux-nat.c: Include "sparc-tdep.h".
3243 * sparc-nat.c: Likewise.
3244 * sparc-tdep.c: Likewise.
3245 * sparc64nbsd-nat.c: Likewise.
3246 * sparcnbsd-nat.c: Likewise.
3247 * sparcnbsd-tdep.c: Likewise.
3248 * sparc-tdep.h: New file.
3249 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3250 and sparc_npc_regnum.
3251
fd8f87c5
DJ
32522003-07-07 Daniel Jacobowitz <drow@mvista.com>
3253
3254 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3255 (mips_linux_cannot_store_register): List supported instead of
3256 unsupported registers.
3257
13adf674
DJ
32582003-07-07 Daniel Jacobowitz <drow@mvista.com>
3259
3260 * disasm.c (dump_insns): Separate instructions from addresses.
3261
8de307e0
AS
32622003-07-07 Andreas Schwab <schwab@suse.de>
3263
3264 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3265 dependencies.
3266 * m68k-tdep.c (NUM_FREGS): Delete.
3267 (SIG_PC_FP_OFFSET): Delete.
3268 (TARGET_M68K): Delete.
3269 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3270 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3271 P_MOVEL_SP, P_MOVEML_SP): Define.
3272 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3273 P_TRAP): Delete.
3274 (m68k_register_raw_size): Delete.
3275 (m68k_register_virtual_size): Delete.
3276 (m68k_register_type): Renamed from m68k_register_virtual_type and
3277 add gdbarch argument.
3278 (m68k_store_struct_return): Delete.
3279 (m68k_deprecated_extract_return_value): Delete.
3280 (m68k_deprecated_extract_struct_value_address): Delete.
3281 (m68k_frame_chain): Delete.
3282 (m68k_frame_saved_pc): Delete.
3283 (m68k_fix_call_dummy): Delete.
3284 (m68k_push_dummy_frame): Delete.
3285 (m68k_pop_frame): Delete.
3286 (m68k_extract_return_value): New function.
3287 (m68k_store_return_value): Rewrite using regcache.
3288 (m68k_extract_struct_value_address): Rewrite using regcache.
3289 (m68k_push_dummy_call): New function.
3290 (struct m68k_frame_cache): Define.
3291 (m68k_alloc_frame_cache): New function.
3292 (m68k_analyze_frame_setup): New function.
3293 (m68k_analyze_register_saves): New function.
3294 (m68k_analyze_prologue): New function.
3295 (m68k_skip_prologue): Rewrite using above functions.
3296 (m68k_unwind_pc): New function.
3297 (m68k_frame_cache): New function.
3298 (m68k_frame_this_id): New function.
3299 (m68k_frame_prev_register): New function.
3300 (m68k_frame_unwind): New variable.
3301 (m68k_frame_p): New function.
3302 (m68k_sigtramp_frame_cache): New function.
3303 (m68k_sigtramp_frame_this_id): New function.
3304 (m68k_sigtramp_frame_prev_register): New function.
3305 (m68k_sigtramp_frame_unwind): New variable.
3306 (m68k_sigtramp_frame_p): New function.
3307 (m68k_frame_base_address): New function.
3308 (m68k_frame_base): New function.
3309 (m68k_unwind_dummy_id): New function.
3310 (fill_gregset): Use regcache_collect.
3311 (fill_fpregset): Likewise.
3312 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3313 defined.
3314 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3315 deprecated_init_frame_pc, deprecated_store_struct_return,
3316 deprecated_extract_return_value, deprecated_store_return_value,
3317 deprecated_frame_chain, deprecated_frame_saved_pc,
3318 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3319 deprecated_register_virtual_size,
3320 deprecated_max_register_raw_size,
3321 deprecated_max_register_virtual_size,
3322 deprecated_register_virtual_type, deprecated_register_size,
3323 deprecated_register_byte, deprecated_register_bytes,
3324 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3325 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3326 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3327 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3328 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3329 deprecated_push_dummy_frame, deprecated_pop_frame,
3330 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3331 only if SYSCALL_TRAP is defined. Set extract_return_value,
3332 store_return_value, extract_struct_value_address, register_type,
3333 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3334 predicates.
3335 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3336 M68K_MAX_REGISTER_SIZE): Define.
3337 (struct m68k_sigtramp_info): Define.
3338 (struct gdbarch_tdep): Add get_sigtramp_info.
3339 * m68klinux-nat.c (fetch_register): Use register_size instead of
3340 REGISTER_RAW_SIZE. Don't put assignment in if.
3341 (store_register): Likewise.
3342 (fetch_inferior_registers): Likewise.
3343 (store_inferior_registers): Likewise.
3344 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3345 (m68k_linux_frame_saved_pc): Delete.
3346 (m68k_linux_sigcontext_reg_offset,
3347 m68k_linux_ucontext_reg_offset): Define.
3348 (m68k_linux_get_sigtramp_info): New function.
3349 (m68k_linux_extract_return_value): Rewrite using regcache.
3350 (m68k_linux_store_return_value): Likewise.
3351 (m68k_linux_extract_struct_value_address): Likewise.
3352 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3353 Don't set deprecated_frame_saved_pc,
3354 deprecated_extract_return_value, deprecated_store_return_value,
3355 deprecated_extract_struct_value_address. Set
3356 extract_return_value, store_return_value,
3357 extract_struct_value_address.
3358
eb8bc282
AC
33592003-07-07 Andrew Cagney <cagney@redhat.com>
3360
3361 * expprint.c: Include "user-regs.h" instead of "frame.h".
3362 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3363 frame_map_regnum_to_name.
3364 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3365 (frame_map_name_to_regnum): Simplify, call
3366 user_reg_map_name_to_regnum.
3367 (frame_map_regnum_to_name): Simplify, call
3368 user_reg_map_regnum_to_name.
3369 (frame_register_unwind): Update.
3370 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3371 (_initialize_frame_reg): Call user_reg_add_builtin.
3372 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3373 (value_of_register): Use value_of_user_reg.
3374 * eval.c (evaluate_subexp_standard): Update.
3375 * parse.c (write_dollar_variable): Update.
3376 * d10v-tdep.c (d10v_print_registers_info): Update.
3377 * infcmd.c (registers_info): Update.
3378 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3379 (builtin_regs_h): Delete macro.
3380 (user_regs_h): Define.
3381 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3382 (builtin-regs.o): Delete target.
3383 (user-regs.o): Specify dependencies.
3384 (expprint.o): Update dependencies.
3385 (findvar.o): Update dependencies.
3386 (frame.o): Update dependencies.
3387 (std-regs.o): Update dependencies.
3388
9f476a01
CF
33892003-07-06 Christopher Faylor <cgf@redhat.com>
3390
3391 * win32-nat.c (solib_symbols_add): Use one variable for all section
3392 address stuff. Pass variable rather than address of variable to
3393 safe_symbol_file_add.
3394
a731b831
AS
33952003-07-06 Andreas Schwab <schwab@suse.de>
3396
3397 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3398
9f83329d
JB
33992003-07-04 Joel Brobecker <brobecker@gnat.com>
3400
3401 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3402
27e28cc5
KW
34032003-07-04 Kris Warkentin <kewarken@qnx.com>
3404
3405 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3406
34072003-07-04 Kris Warkentin <kewarken@qnx.com>
3408
3409 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3410 * config/i386/nto.mh: New file.
3411 * config/i386/nm-nto.h: New file.
3412 * configure.host: Add i[3456]86-*-nto*.
3413
100f2e98
JB
34142003-07-03 Joel Brobecker <brobecker@gnat.com>
3415
3416 * remote-vx.c (vx_add_symbols): Fix compilation error.
3417
e23457df
AC
34182003-07-03 Andrew Cagney <cagney@redhat.com>
3419
3420 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3421 * gdbarch.h, gdbarch.c: Re-generate.
3422 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3423 (legacy_register_name): Declare.
3424 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3425 (REGISTER_NAME): Define.
3426 * sparc-tdep.c (legacy_register_name): New function.
3427 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3428 (REGISTER_NAME): Define.
3429 (hppa64_register_name): Declare.
3430 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3431 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3432 (hppa64_register_name): New function.
3433 (hppa_register_name): New function.
3434 * arch-utils.c (legacy_register_name): Delete.
3435 * arch-utils.h (legacy_register_name): Delete.
3436
38caaeec
DJ
34372003-07-03 Daniel Jacobowitz <drow@mvista.com>
3438
3439 * cli/cli-interp.c (cli_interpreter_resume): Update the
3440 cli_uiout's stream to gdb_stdout.
3441
dadd712e
AC
34422003-07-03 Andrew Cagney <cagney@redhat.com>
3443
3444 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3445 predicate.
3446 * gdbarch.h, gdbarch.c: Re-generate.
3447 * regcache.c (init_regcache_descr): Use legacy code when either
3448 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3449
c7f1390e
DJ
34502003-07-02 Daniel Jacobowitz <drow@mvista.com>
3451
3452 * NEWS: Move "set logging" entry into GDB 6.0 section.
3453
4bc8c588
JB
34542003-07-02 Jim Blandy <jimb@redhat.com>
3455
a9dd42f1
JB
3456 * s390-tdep.c (struct frame_extra_info): new member:
3457 'stack_bought_valid'.
3458 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3459 initialize fextra_info->stack_bought.
3460 (s390_frameless_function_invocation): Don't trust the value of
3461 fextra_info_ptr->stack_bought unless
3462 fextra_info->stack_bought_valid is set.
3463
4bc8c588
JB
3464 New S390 prologue analyzer.
3465 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3466 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3467 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3468 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3469 compute_x_addr, s390_on_stack, s390_store,
3470 s390_get_signal_frame_info): New functions.
3471 (S390_NUM_SPILL_SLOTS): New macro.
3472 (s390_get_frame_info): Rewritten.
3473 (is_arg_reg): Deleted.
3474
3475 Break out the decoding of S/390 instructions into separate
3476 functions, to make it more legible, and easier to check
3477 against the spec.
3478 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3479 is_rx, is_rxe): New functions.
3480 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3481 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3482 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3483 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3484 enums for opcode values. (Is this an improvement?)
3485
fd13a04a
AC
34862003-07-02 Andrew Cagney <cagney@redhat.com>
3487
3488 * i386-tdep.c: Revert change committed as part of trad-frame code
3489 below.
3490
3f8091c1
DJ
34912003-07-02 Daniel Jacobowitz <drow@mvista.com>
3492
3493 * breakpoint.c (insert_catchpoint): Make static.
3494
8dd5115e
AS
34952003-07-02 Andreas Schwab <schwab@suse.de>
3496
3497 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3498 former ia64_push_arguments and ia64_push_return_address, and use
3499 regcache functions instead of read/write_register.
3500 (ia64_gdbarch_init): Set push_dummy_call instead of
3501 deprecated_push_arguments and deprecated_push_return_address.
3502
a2229c23
AJ
35032003-07-01 Andreas Jaeger <aj@suse.de>
3504
3505 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3506 before the call.
3507 Set %rax only to number of SSE registers used.
3508
3b3850e8
AC
35092003-07-01 Andrew Cagney <cagney@redhat.com>
3510
3511 * trad-frame.h: Update comments, a -1 .addr is reserved.
3512 (trad_frame_value_p, trad_frame_addr_p): Declare.
3513 (trad_frame_reg_p): Declare.
3514 (trad_frame_set_value): Rename trad_frame_register_value.
3515 (trad_frame_set_unknown): Declare.
3516 * trad-frame.c (trad_frame_realreg_p): New function.
3517 (trad_frame_addr_p, trad_frame_value_p): New function.
3518 (trad_frame_set_unknown): New function.
3519 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3520 (trad_frame_prev_register): Use trad_frame_realreg_p,
3521 trad_frame_addr_p and trad_frame_value_p.
3522 (trad_frame_set_value): Rename trad_frame_register_value.
3523 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3524 and trad_frame_set_value.
a2229c23 3525
4d819d0e
JB
35262003-06-30 Jim Blandy <jimb@redhat.com>
3527
3528 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3529 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3530 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3531 for 16 registers, and then 32 more bytes.
3532 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3533 New macros.
3534 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3535 Move up in the file, since it's now used by is_simple_arg.
3536 (is_simple_arg): Don't assume registers are four bytes long.
3537 Exclude all double arguments. Extended floats are not simple
3538 args.
3539 (is_power_of_two): New function.
3540 (pass_by_copy_ref): Call is_power_of_two, and check that the
3541 length fits in a register, rather than listing all the acceptable
3542 sizes. Extended floats are not passed by reference.
3543 (s390_push_arguments): Don't assume registers are four bytes long.
3544 Reserve an argument register to point to the buffer for structures
3545 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3546 S390_STACK_FRAME_OVERHEAD.
3547
1ad828f1
AS
35482003-06-30 Andreas Schwab <schwab@suse.de>
3549
3550 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3551 format error message.
3552
39b00981
JB
35532003-06-30 Joel Brobecker <brobecker@gnat.com>
3554
3555 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3556
b2a7f303
DC
35572003-06-30 David Carlton <carlton@kealia.com>
3558
3559 Band-aid for PR c++/1245.
3560 * Makefile.in (cp-support.o): Depend on complaints_h.
3561 * cp-support.c: Include complaints.h. Add declaration for
3562 find_last_component.
3563 (cp_find_first_component): Separate code into
3564 cp_find_first_component_aux.
3565 (cp_find_first_component_aux): Call demangled_name_complaint.
3566 (demangled_name_complaint): New.
3567
a257b5bb
AC
35682003-06-30 Andrew Cagney <cagney@redhat.com>
3569
3570 * remote.c (remote_write_bytes): Explicitly compute and then use
3571 the payload size. Update comments to reflect. Fixes problem of
3572 GDB not sending small packets as found by Fred Fish.
3573
0a2cfde4
AC
35742003-06-30 Andrew Cagney <cagney@redhat.com>
3575
3576 * remote.c (remote_async_wait): Fix -Wformat problem.
3577
3fcb8548
AC
35782003-06-29 Andrew Cagney <cagney@redhat.com>
3579
3580 * remote.c (remote_wait): Call error, and not warning, when the
3581 packet is corrupt.
3582 (remote_async_wait): Ditto.
3583
9f9970a3
DJ
35842003-06-29 Daniel Jacobowitz <drow@mvista.com>
3585
3586 * sparc-tdep.c (sparc_y_regnum): Make external again.
3587
83a8ccca
DJ
35882003-06-29 Daniel Jacobowitz <drow@mvista.com>
3589
3590 * cli/cli-logging.c (pop_output_files): Add void to function
3591 definition.
3592
d2cf594a
AC
35932003-06-29 Andrew Cagney <cagney@redhat.com>
3594
3595 * frame.c (frame_register_unwind): Use unsigned char when dumping
3596 the buffer contents.
3597
0fac0b41
DJ
35982003-06-28 Daniel Jacobowitz <drow@mvista.com>
3599
3600 * cli/cli-logging.c: New file.
3601 * cli-out.c (struct ui_out_data): Add original_stream.
3602 (cli_redirect): New function.
3603 (cli_ui_out_impl): Add cli_redirect.
3604 (cli_out_new): Initialize original_stream.
3605 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3606 (uo_redirect, ui_out_redirect): New.
3607 * ui-out.h (struct ui_out_impl): Add redirect member.
3608 (redirect_ftype): New.
3609 (ui_out_redirect): Add prototype.
3610 * Makefile.in: Add rules for cli-logging.c.
3611 * NEWS: Mention "set logging".
3612
88a07d7c
EZ
36132003-06-27 Elena Zannoni <ezannoni@redhat.com>
3614
3615 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3616
4eb58876
AC
36172003-06-27 Andrew Cagney <cagney@redhat.com>
3618
3619 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3620 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3621 * avr-tdep.c (avr_call_dummy_address): Delete function.
3622 (avr_gdbarch_init): Do not set call_dummy_address.
3623
1549f619
EZ
36242003-06-27 Elena Zannoni <ezannoni@redhat.com>
3625
3626 * symfile.c (syms_from_objfile): Move variables to inner block.
3627 Move the checks for the non-mainline case a bit earlier to avoid
3628 doing some useless computations.
3629
3cb3398d
EZ
36302003-06-27 Elena Zannoni <ezannoni@redhat.com>
3631
3632 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3633
3799ccc6
EZ
36342003-06-26 Elena Zannoni <ezannoni@redhat.com>
3635
3636 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3637 sections.
3638
ce1f6491
MC
36392003-06-26 Michael Chastain <mec@shout.net>
3640
3641 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3642 gdb/testsuite/gdb.c++/pr-1210.exp.
3643
d958dfd0
AC
36442003-06-26 Andrew Cagney <cagney@redhat.com>
3645
3646 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3647 altivec_expression.h and altivec_registers.h.
3648
d31431ed
AC
36492003-06-26 Andrew Cagney <cagney@redhat.com>
3650
3651 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3652 info->mach when MIPS16. Patch suggested by Fred Fish.
3653
714b1282
AC
36542003-06-26 Andrew Cagney <cagney@redhat.com>
3655
3656 * utils.c (internal_vproblem): Print the problem to a reason
3657 buffer and then pass to query. Make the msg variable more local.
3658
42efa47a
AC
36592003-06-26 Andrew Cagney <cagney@redhat.com>
3660
3661 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3662 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3663 * gdbarch.h, gdbarch.c: Re-generate.
3664 * frame-base.c (default_frame_args_address): Update. Use
3665 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3666 not available.
3667 (default_frame_locals_address): Ditto for
3668 DEPRECATED_FRAME_LOCALS_ADDRESS.
3669 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3670 (vax_frame_num_args): Update.
3671 (vax_gdbarch_init): Update.
3672 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3673 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3674 * mcore-tdep.c (mcore_gdbarch_init): Update.
3675 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3676 * ia64-tdep.c (ia64_gdbarch_init): Update.
3677 * symtab.h (address_class): Update comments.
3678 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3679 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3680 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3681 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3682 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3683 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3684 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3685 * alpha-mdebug-tdep.c: Update.
3686 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3687
8ffd9b1b
AJ
36882003-06-26 Andreas Jaeger <aj@suse.de>
3689
3690 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3691 of SSE registers so that varargs functions work. Rework handling
3692 of passing arguments on the stack.
3693 (x86_64_store_return_value): Return double and float values in SSE
3694 register.
3695
e8ac10a6
MC
36962003-06-24 Michael Chastain <mec@shout.net>
3697
3698 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3699 the "constructor breakpoints ignored" bug.
3700
986af8e6
DC
37012003-06-25 David Carlton <carlton@kealia.com>
3702
3703 * MAINTAINERS: Update e-mail address.
3704
d64558a5
JB
37052003-06-24 Jim Blandy <jimb@redhat.com>
3706
e538d2d7
JB
3707 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3708
02631ec0
JB
3709 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3710 function.
3711 (ppc_linux_init_abi): Register it as the
3712 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3713
e716d87a
JB
3714 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3715 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3716 method.
3717
d64558a5
JB
3718 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3719 (ppc64_standard_linkage_target): Use it.
3720
449a5da4
AC
37212003-06-23 Andrew Cagney <cagney@redhat.com>
3722
3723 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3724 for 0 "int0" and 4 "int32" sized registers.
3725 * gdbtypes.c (builtin_type_int0): Define.
3726 (build_gdbtypes): Initialize builtin_type_int0.
3727 * gdbtypes.h (builtin_type_int0): Declare.
3728
b2a02dda
SC
37292003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3730
3731 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3732 as characters are unsigned.
3733
fba3138e
DJ
37342003-06-22 Daniel Jacobowitz <drow@mvista.com>
3735
3736 PR gdb/1179
3737 * dwarfread.c (struct_type): Skip static fields without crashing.
3738
f6c8180b
AC
37392003-06-22 Andrew Cagney <cagney@redhat.com>
3740
3741 GDB 6.0 branch created.
f2c06f52
AC
3742 * README: Update.
3743 * PROBLEMS: Update. Empty.
3744 * NEWS: Update.
f6c8180b 3745
ae822768
DJ
37462003-06-22 Daniel Jacobowitz <drow@mvista.com>
3747
3748 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3749 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3750
261de166
AC
37512003-06-22 Andrew Cagney <cagney@redhat.com>
3752
3753 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3754 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3755 Velikov.
3756
30e94205
DJ
37572003-06-22 Daniel Jacobowitz <drow@mvista.com>
3758
3759 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3760 compilers.
3761
9e14d721
DJ
37622003-06-21 Daniel Jacobowitz <drow@mvista.com>
3763
3764 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3765 argument of val_print.
3766 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3767 to the address argument of baseclass_offset or target_read_memory.
3768 Do add it to the argument of cp_print_value_fields.
3769
a4b8ebc8
AC
37702003-06-21 Andrew Cagney <cagney@redhat.com>
3771
3772 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3773 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3774 instead of 0..NUM_REGS.
3775 (mips_register_reggroup_p): New function.
3776 (mips_pseudo_register_write): New function.
3777 (mips_pseudo_register_read): New function.
3778 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3779 based on the register's type.
3780 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3781 cooked.
3782 (mips_get_saved_register): Simplify. Assert that REGNO is a
3783 pseudo / cooked.
3784 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3785 (mips_register_type): Replace mips_register_virtual_type. Map
3786 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3787 when available.
3788 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3789 that the register is cooked / virtual.
3790 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3791 Only get the extra info when needed.
3792 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3793 (mips32_heuristic_proc_desc): Fetch the cooked register.
3794 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3795 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3796 (mips_print_register): Use gdbarch_register_type, instead of
3797 REGISTER_VIRTUAL_TYPE.
3798 (print_gp_register_row): Use gdbarch_register_type, instead of
3799 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3800 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3801 Print the pseudo / cooked registers.
3802 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3803 Print the pseudo / cooked registers.
3804 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3805 REG_NUM is pseudo / cooked.
3806 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3807 (mips_n32n64_xfer_return_value): Ditto.
3808 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3809 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3810 (mips_register_sim_regno): New function.
3811 (mips_gdbarch_init): Set deprecated_register_byte,
3812 register_group_p, pseudo_register_write, pseudo_register_read,
3813 register_sim_regno, and num_pseudo_regs. Set register_type,
3814 instead of register_virtual_type.
3815 * Makefile.in (mips-tdep.o): Update dependencies.
3816 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3817 REGISTER_VIRTUAL_TYPE.
3818 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3819 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3820 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3821 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3822 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3823
325ed089
DJ
38242003-06-21 Daniel Jacobowitz <drow@mvista.com>
3825
3826 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3827 * cli/cli-cmds.c: Include "gdb_vfork.h".
3828 (shell_escape): Use vfork.
3829
f0e7d0e8
AC
38302003-06-21 Andrew Cagney <cagney@redhat.com>
3831
c57bb9fa
AC
3832 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3833 32 bit floating-point register saves.
3834
6e51443a
AC
3835 * frame.h (deprecated_unwind_get_saved_register): Delete.
3836 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3837 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3838 and deprecated_get_next_frame_hack instead of
3839 deprecated_unwind_get_saved_register.
3840
ed183c7c
AC
3841 * mips-tdep.c (mips_dump_tdep): Do not print
3842 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3843
f0e7d0e8
AC
3844 * frame.c (get_frame_register): New function.
3845 (frame_unwind_register_signed): New function.
3846 (get_frame_register_signed): New function.
3847 (frame_unwind_register_unsigned): New function.
3848 (get_frame_register_unsigned): New function.
3849 * frame.h: Add comments on naming schema.
3850 (get_frame_register, frame_unwind_register_signed): Declare.
3851 (get_frame_register_signed, get_frame_register_signed): Declare.
3852 (frame_unwind_register_unsigned): Declare.
3853 (get_frame_register_unsigned): Declare.
3854
2224d941
TR
38552003-06-20 Theodore A. Roth <troth@openavr.org>
3856
3857 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3858
8619218d
TR
38592003-06-20 Theodore A. Roth <troth@openavr.org>
3860
3861 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3862 (avr_read_sp): Ditto.
3863
0b1b50c0
DJ
38642003-06-20 Daniel Jacobowitz <drow@mvista.com>
3865
3866 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3867 * config/arm/nm-linux.h: Likewise.
3868 * config/arm/tm-linux.h: Likewise.
3869 * config/ia64/nm-linux.h: Likewise.
3870 * config/ia64/tm-ia64.h: Likewise.
3871 * config/s390/tm-linux.h: Likewise.
3872 * config/s390/tm-s390.h: Likewise.
3873 * s390-nat.c: Likewise.
3874 * s390-tdep.c: Likewise.
3875
3876 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3877 * config/ia64/linux.mt: Likewise.
3878 * config/m68k/linux.mh: Likewise.
3879 * config/mips/linux.mt: Likewise.
3880 * config/powerpc/linux.mh: Likewise.
3881 * config/sh/linux.mt: Likewise.
3882
c8c18e65
KW
38832003-06-19 Kris Warkentin <kewarken@qnx.com>
3884
3885 * solib.c (solib_open): Change tests for whether to search
3886 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3887 comments.
3888
dcccef2e
TR
38892003-06-19 Theodore A. Roth <troth@openavr.org>
3890
3891 * avr-tdep.c (avr_frame_address): Delete function.
3892 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3893 set_gdbarch_frame_args_address.
3894
5861a190
AC
38952003-06-19 Andrew Cagney <cagney@redhat.com>
3896
3897 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3898 (REGISTER_CONVERT_FROM_TYPE): Delete.
3899 (mips_register_convert_to_type): Delete declaration.
3900 (mips_register_convert_from_type): Delete declaration.
3901 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3902 kernel/.
3903
0274a8ce
MS
39042003-06-19 Michael Snyder <msnyder@redhat.com>
3905
3906 * linux-nat.h: New file.
3907 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 3908 * lin-lwp.c: Include linux-nat.h.
0274a8ce 3909 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 3910 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
3911 (linux_make_note_section): Iterate over lwps instead of threads.
3912 (linux_do_thread_registers): Use lwp instead of merged pid.
3913 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 3914 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
3915 Add dependency on linux_nat_h.
3916
adf5f719
TR
39172003-06-19 Theodore A. Roth <troth@openavr.org>
3918
3919 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3920
6766a268
DJ
39212003-06-19 Daniel Jacobowitz <drow@mvista.com>
3922
3923 * varobj.c (get_type, get_target_type): Use check_typedef.
3924
1171114a
DJ
39252003-06-19 Daniel Jacobowitz <drow@mvista.com>
3926
3927 * breakpoint.c (insert_catchpoint): Call internal_error.
3928
adcf68a2
TR
39292003-06-19 Theodore A. Roth <troth@openavr.org>
3930
3931 * avr-tdep.c (avr_push_dummy_code): Delete function.
3932 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3933
ea67f13b
DJ
39342003-06-19 Daniel Jacobowitz <drow@mvista.com>
3935
3936 * arch-utils.c (default_prepare_to_proceed): Remove.
3937 (generic_prepare_to_proceed): Remove.
3938 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3939 (generic_prepare_to_proceed): Remove prototype.
3940 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3941 * gdbarch.c: Regenerate.
3942 * gdbarch.h: Regenerate.
3943 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3944 * hppah-nat.c (hppa_switched_threads): Remove.
3945 * infrun.c (prepare_to_proceed): New static function, copied from
3946 generic_prepare_to_proceed. Remove select_it argument.
3947 (proceed): Call prepare_to_proceed.
3948 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3949 variables.
3950 (ptrace_wait): Don't set the removed variables.
3951 (hppa_switched_threads): Remove.
3952 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3953 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3954 (lin_lwp_prepare_to_proceed): Remove prototype.
3955 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3956 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3957
4add8633
TR
39582003-06-18 Theodore A. Roth <troth@openavr.org>
3959
3960 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3961 trad-frame.h.
3962 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3963 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3964 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3965 (AVR_PROLOGUE_*): Enumerate prologue types.
3966 (struct frame_extra_info): Remove.
3967 (struct avr_unwind_cache): Define.
3968 (avr_write_sp): Delete function.
3969 (avr_read_fp): Ditto.
3970 (avr_init_extra_frame_info): Ditto.
3971 (avr_pop_frame): Ditto.
3972 (avr_frame_saved_pc): Ditto.
3973 (avr_saved_pc_after_call): Ditto.
3974 (avr_push_return_address): Ditto.
3975 (avr_frame_chain): Ditto.
3976 (avr_store_struct_return): Ditto.
3977 (avr_push_arguments): Ditto.
3978 (avr_scan_prologue): Update comments. Changed to set up the info for
3979 cache unwinding. Now returns end of prologue PC.
3980 (avr_skip_prologue): Better handling of functions lacking a prologue
3981 by using avr_scan_prologue.
3982 (avr_scan_arg_moves): New function.
3983 (avr_saved_regs_unwinder): Ditto.
3984 (avr_frame_unwind_cache): Ditto.
3985 (avr_unwind_pc): Ditto.
3986 (avr_frame_this_id): Ditto.
3987 (avr_frame_prev_register): Ditto.
3988 (avr_frame_p): Ditto.
3989 (avr_frame_base_address ): Ditto.
3990 (avr_unwind_dummy_id): Ditto.
3991 (avr_push_dummy_code): Ditto.
3992 (push_stack_item): Ditto.
3993 (pop_stack_item): Ditto.
3994 (avr_push_dummy_call): Ditto.
3995 (struct stack_item): Define.
3996 (avr_frame_unwind): Declare structure.
3997 (avr_frame_base): Ditto.
3998 (avr_gdbarch_init): Remove calls to
3999 set_gdbarch_deprecated_init_frame_pc,
4000 set_gdbarch_deprecated_target_read_fp,
4001 set_gdbarch_deprecated_dummy_write_sp,
4002 set_gdbarch_deprecated_fp_regnum,
4003 set_gdbarch_deprecated_push_arguments,
4004 set_gdbarch_deprecated_push_return_address,
4005 set_gdbarch_deprecated_pop_frame,
4006 set_gdbarch_deprecated_store_struct_return,
4007 set_gdbarch_deprecated_frame_init_saved_regs,
4008 set_gdbarch_deprecated_init_extra_frame_info,
4009 set_gdbarch_deprecated_frame_chain,
4010 set_gdbarch_deprecated_frame_saved_pc,
4011 set_gdbarch_deprecated_saved_pc_after_call.
4012 Add calls to set_gdbarch_push_dummy_call,
4013 set_gdbarch_push_dummy_code,
4014 frame_unwind_append_predicate,
4015 frame_base_set_default,
4016 set_gdbarch_unwind_dummy_id,
4017 set_gdbarch_unwind_pc.
4018 Wrap a long line.
4019
7be04a68
MS
40202003-06-18 Corinna Vinschen <vinschen@redhat.com>
4021
4022 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4023 registers for H8/300S.
4024 (h8300_print_registers_info): Ditto.
8ffd9b1b 4025 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 4026
ae087d01
DJ
40272003-06-18 Daniel Jacobowitz <drow@mvista.com>
4028
4029 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4030 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4031 (lin_lwp_wait): Likewise. Update comments.
4032 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4033 (pull_pid_from_list, linux_record_stopped_pid): New.
4034
07d8f827
SC
40352003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4036
4037 * ada-lang.c (scan_discrim_bound): Name first argument.
4038 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4039 declared by ALL_BLOCK_SYMBOLS.
4040
7cb47b14
SC
40412003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4042
4043 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4044 ("regcache.h"): Include it.
4045 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4046
6ad8ae5c
DJ
40472003-06-17 Daniel Jacobowitz <drow@mvista.com>
4048
4049 * NEWS: Mention gdbserver detach change and "disconnect" command.
4050 * infcmd.c (disconnect_command): New function.
4051 (_initialize_infcmd): Add ``disconnect'' command.
4052 * remote.c (remote_async_detach): Delete.
4053 (remote_detach): Merge remote_async_detach.
4054 (remote_disconnect): New.
4055 (init_remote_ops): Set to_disconnect.
4056 (init_remote_cisco_ops): Likewise.
4057 (init_remote_async_ops): Likewise. Use remote_detach.
4058 * target.c (cleanup_target): Default to_disconnect.
4059 (update_current_target): Inherit to_disconnect.
4060 (target_disconnect, debug_to_disconnect): New functions.
4061 (setup_target_debug): Set to_disconnect.
4062 * target.h (struct target_ops): Add to_disconnect.
4063 (target_disconnect): Add prototype.
4064
687595f9
DJ
40652003-06-17 Daniel Jacobowitz <drow@mvista.com>
4066
4067 * breakpoint.c (insert_catchpoint): New function.
4068 (insert_breakpoints): Use catch_exceptions to call
4069 insert_catchpoint. Disable catchpoints if they fail to insert.
4070
29239a8f
DJ
40712003-06-17 Daniel Jacobowitz <drow@mvista.com>
4072
4073 * symfile.c (reread_symbols): Clear sym_private.
4074
2cdf3c63
AC
40752003-06-17 Andrew Cagney <cagney@redhat.com>
4076
4077 * trad-frame.h (struct frame_info): Add opaque declaration.
4078 * remote-fileio.h (struct cmd_list_element): Add opaque
4079 declaration.
4080 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4081 comments.
4082
cf0e1e0d
DJ
40832003-06-17 Daniel Jacobowitz <drow@mvista.com>
4084
4085 * remote.c (remote_prepare_to_store): Replace call to
4086 deprecated_read_register_bytes with multiple regcache_raw_read
4087 calls.
4088
192cdb19
KW
40892003-06-17 Kris Warkentin <kewarken@qnx.com>
4090
4091 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4092 (nto_find_and_open_solib): Likewise.
4093 (nto_init_solib_absolute_prefix): Likewise.
4094 (_initialize_nto_tdep): Fix indentation.
4095
89929b45
KW
40962003-06-17 Kris Warkentin <kewarken@qnx.com>
4097
4098 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4099
46019f27
KW
41002003-06-17 Kris Warkentin <kewarken@qnx.com>
4101
4102 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4103
1a38736e
JB
41042003-06-17 Jim Blandy <jimb@redhat.com>
4105
4106 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4107
3605c34a
TR
41082003-06-16 Theodore A. Roth <troth@openavr.org>
4109
4110 * avr-tdep.c (avr_extract_return_value): New function.
4111 (avr_gdbarch_init): Set extract_return_value method.
4112
870b3035
AC
41132003-06-16 Andrew Cagney <cagney@redhat.com>
4114
4115 * frame.h (deprecated_get_next_frame_hack): Declare.
4116 * frame.c (legacy_saved_regs_prev_register): Only require
4117 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4118 there are always saved regs.
4119 (deprecated_generic_get_saved_register): Do not require
4120 DEPRECATED_FRAME_INIT_SAVED_REGS.
4121 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4122 use frame ID unwind instead.
4123 (deprecated_get_next_frame_hack): New function.
4124
63d47a7d
CV
41252003-06-16 Corinna Vinschen <vinschen@redhat.com>
4126
4127 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4128 (h8300_push_dummy_call): ...this function. Some minor optimization.
4129 (h8300_push_return_address): Remove.
4130 (h8300_gdbarch_init): Remove calls to
4131 set_gdbarch_deprecated_dummy_write_sp,
4132 set_gdbarch_deprecated_push_arguments and
4133 set_gdbarch_deprecated_push_return_address.
4134 Add call to set_gdbarch_push_dummy_call.
4135
4bb1dc5e
CV
41362003-06-16 Corinna Vinschen <vinschen@redhat.com>
4137
4138 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4139 (E_PSEUDO_EXR_REGNUM): Ditto.
4140 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 4141 registers into safe registers.
4bb1dc5e
CV
4142 (h8300_skip_prologue): Check for stm instruction to push registers
4143 used for register variables onto stack.
4144 (gdb_print_insn_h8300): Remove.
4145 (h8300_examine_prologue): Add a comment.
4146 (h8300_register_name): Take pseudo registers into account.
4147 (h8300s_register_name): Ditto.
4148 (h8300sx_register_name): Ditto.
4149 (h8300_print_register): Ditto.
4150 (h8300_print_registers_info): Define "nice" printing order.
4151 (h8300_saved_pc_after_call): Take pseudo registers into account.
4152 (h8300_register_type): Ditto. Return type used for remote connection
4153 when requesting real CCR or EXR register, return actual type when
4154 requesting pseudo CCR or EXR.
4155 (h8300_pseudo_register_read): New function.
4156 (h8300_pseudo_register_write): Ditto.
4157 (h8300_dbg_reg_to_regnum): Ditto.
4158 (h8300s_dbg_reg_to_regnum): Ditto.
4159 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4160 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4161 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4162 set_gdbarch_print_insn architecture dependent.
4163 Call set_gdbarch_pseudo_register_read and
4164 set_gdbarch_pseudo_register_write.
4165 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4166
a59fe496
AC
41672003-06-16 Andrew Cagney <cagney@redhat.com>
4168
4169 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4170 * gdbarch.h, gdbarch.c: Re-generate.
4171 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4172 * s390-tdep.c (s390_gdbarch_init): Update.
4173 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4174 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4175 * mips-tdep.c (mips_gdbarch_init): Update.
4176 * mcore-tdep.c (mcore_gdbarch_init): Update.
4177 * cris-tdep.c (cris_gdbarch_init): Update.
4178 * infcall.c (call_function_by_hand): Update.
4179 * ia64-tdep.c (ia64_push_arguments): Update comment.
4180 * frame.c (legacy_get_prev_frame): Do not assume
4181 SAVE_DUMMY_FRAME_TOS_P.
4182 * dummy-frame.c (find_dummy_frame): Update comment.
4183
6f4e5a41
AC
41842003-06-16 Andrew Cagney <cagney@redhat.com>
4185
4186 * regcache.c (do_cooked_read): Do not use register_valid_p.
4187
72fab697
TR
41882003-06-15 Theodore A. Roth <troth@openavr.org>
4189
4190 * avr-tdep.c (avr_register_type): Remove a blank line.
4191 (avr_scan_prologue): Correct some comments.
4192
e3d8b004
TR
41932003-06-15 Theodore A. Roth <troth@openavr.org>
4194
4195 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4196 prologue types.
8ffd9b1b 4197 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
4198 option.
4199 Add code to scan -mcall-prologues for mega devices.
4200
866b76ea
TR
42012003-06-15 Theodore A. Roth <troth@openavr.org>
4202
4203 * avr-tdep.c (avr_register_byte): Delete function.
4204 (avr_register_raw_size): Delete function.
4205 (avr_register_virtual_size): Delete function.
4206 (avr_register_virtual_type): Delete function.
4207 (avr_register_type): New function.
4208 (avr_address_to_pointer): Remove unused code.
4209 (avr_read_fp): Need to read FP as two separate bytes due to change to
4210 avr_register_type() usage.
4211 (avr_gdbarch_init): Don't set deprecated_register_size.
4212 Don't set deprecated_register_bytes.
4213 Don't set deprecated_register_byte.
4214 Don't set deprecated_register_raw_size.
4215 Don't set deprecated_max_register_raw_size.
4216 Don't set deprecated_register_virtual_size.
4217 Don't set deprecated_max_register_virtual_size.
4218 Don't set deprecated_register_virtual_type.
4219 Set register_type method.
4220
3993f6b1
DJ
42212003-06-15 Daniel Jacobowitz <drow@mvista.com>
4222
4223 * Makefile.in (linux-nat.o): Add rule.
4224 * linux-nat.c: New file.
4225 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4226 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4227 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4228 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4229 * config/arm/linux.mh (NATDEPFILES): Likewise.
4230 * config/i386/linux.mh (NATDEPFILES): Likewise.
4231 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4232 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4233 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4234 * config/mips/linux.mh (NATDEPFILES): Likewise.
4235 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4236 * config/s390/s390.mh (NATDEPFILES): Likewise.
4237 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4238
786a90bb
MK
42392003-06-15 Mark Kettenis <kettenis@gnu.org>
4240
4241 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4242 replace out-of-date comment.
4243
3bd3f01e
AC
42442003-06-15 Andrew Cagney <cagney@redhat.com>
4245
4246 * rdi-share/host.h (Fail): Change to a varargs function.
4247 * remote-rdi.c (Fail): Update.
8ffd9b1b 4248
de5b9bb9
MK
42492003-06-15 Mark Kettenis <kettenis@gnu.org>
4250
4251 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4252 (i386_convert_register_p, i386_register_to_value,
4253 i386_register_from_value): Handle types longer than 8 bytes.
4254
d532c08f
MK
42552003-06-15 Mark Kettenis <kettenis@gnu.org>
4256
4257 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4258 Move floating-point code to new function in i387-tdep.c.
4259 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4260 New functions containing code moved here from i386-tdep.c.
4261 * i387-tdep.h: Add opaque declaration for `struct type'.
4262 (i387_register_to_value, i387_value_to_register): New prototypes.
4263 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4264 (x86_64_init_abi): Set convert_register_p, register_to_value and
4265 value_to_register here.
8ffd9b1b 4266
42c466d7
AC
42672003-06-14 Andrew Cagney <cagney@redhat.com>
4268
4269 * mips-tdep.c (mips_register_to_value): Make static.
4270 (mips_value_to_register): Make static.
4271 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4272 * ia64-tdep.c (ia64_register_raw_size): Make static.
4273 (ia64_register_virtual_size): Make static.
4274 (ia64_register_byte): Make static.
4275 * i387-tdep.c: Include "i387-tdep.h".
4276 (print_387_control_word): Delete function.
4277 (print_387_status_word): Delete function.
4278 (print_387_status_bits): Delete function.
4279 (print_387_control_bits): Delete function.
4280 * Makefile.in (i387-tdep.o): Update dependencies.
4281 * rdi-share/host.h (Fail): Declare.
4282 * remote-rdi.c (Fail): Update to match declaration.
4283
2a9cda49
AC
42842003-06-14 Andrew Cagney <cagney@redhat.com>
4285
4286 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4287 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4288 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4289 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4290 * README: Delete reference to remote-array.
4291 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4292 (remote-array.o): Delete target.
4293 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4294 * remote-array.c: Delete file.
4295
ff2e87ac
AC
42962003-06-14 Andrew Cagney <cagney@redhat.com>
4297 Mark Kettenis <kettenis@gnu.org>
4298
4299 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4300 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4301 parameter with "frame".
4302 * gdbarch.h, gdbarch.c: Re-generate.
4303 * frame.h (put_frame_register): Declare.
4304 * frame.c (put_frame_register): New function.
4305 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4306 (legacy_register_to_value): Rewrite, use "frame" to get the
4307 register value.
4308 (legacy_value_to_register): Rewrite, use "frame" to find the
4309 register's location before storing.
4310 * arch-utils.h (legacy_convert_register_p): Update.
4311 (legacy_register_to_value, legacy_value_to_register): Update.
4312 * findvar.c (value_from_register): Rewrite, eliminate use of
4313 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4314 "frame" to REGISTER_TO_VALUE.
4315 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4316 lval_reg_frame_relative + lval_register branch of the switch. Do
4317 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4318 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4319 I386_EDI_REGNUM): New defines.
4320 (i386_next_regnum, i386_convert_register_p,
4321 i386_register_to_value, i386_value_to_register): New functions.
4322 (i386_register_convertible, i386_register_convert_to_virtual,
4323 i386_convert_to_raw): Remove functions.
4324 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4325 value_to_register instead of register_convertible,
4326 register_convert_to_virtual and register_convert_to_raw.
4327 * mips-tdep.c (mips_convert_register_p): New function.
4328 (mips_value_to_register): Replace mips_register_convert_from_type.
4329 (mips_register_to_value): Replace mips_register_convert_to_type.
4330 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4331 register_to_value.
4332 * alpha-tdep.c (alpha_convert_register_p): Update.
4333 (alpha_value_to_register): Update, store the register.
4334 (alpha_register_to_value): Update, fetch the register.
4335
98be1e77
TR
43362003-06-14 Theodore A. Roth <troth@openavr.org>
4337
4338 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4339 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4340 Don't set deprecated_call_dummy_words.
4341 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4342 Don't set remote_translate_xfer_address.
4343 (avr_io_reg_read_command): Remove commented out debug printf.
4344 Wrap a long line.
4345
57bc6122
TR
43462003-06-14 Theodore A. Roth <troth@openavr.org>
4347
4348 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4349 causes gdb to seg fault.
4350
eb01fc62
DJ
43512003-06-14 Daniel Jacobowitz <drow@mvista.com>
4352
4353 * sparc-nat.c (fetch_inferior_registers): Correct
4354 a reference to "registers".
4355
3b3e6bee
DJ
43562003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4357
4358 * Makefile.in (exc_request_U_h): Define
4359 (exc_request_S_h): Likewise.
4360 (msg_reply_S_h): Likewise.
4361 (msg_U_h): Likewise.
4362 (notify_S_h): Likewise.
4363 (process_reply_S_h): Likewise.
4364 (gnu-nat.o): Depend on gdb_obstack_h
4365 * gnu-nat.c: Include "gdb_obstack.h".
4366
b8de8283
AC
43672003-06-13 Andrew Cagney <cagney@redhat.com>
4368
4369 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4370 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 4371
f3be58bc
AC
43722003-06-13 Andrew Cagney <cagney@redhat.com>
4373
4374 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4375 when deprecated REGISTER macros can be deleted.
4376 * gdbarch.h, gdbarch.c: Re-generate.
4377
4c0122c8
JB
43782003-06-13 Jim Blandy <jimb@redhat.com>
4379
4380 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4381 Linux entry point symbols for _dl_debug_state, too.
4382
3e210248
AC
43832003-06-13 Andrew Cagney <cagney@redhat.com>
4384
4385 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4386 available, do not use the FP register, and always save the TOS.
4387 * dummy-frame.c (dummy_frame_this_id): Do not assert
4388 SAVE_DUMMY_FRAME_TOS.
4389 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4390 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4391 (i386_push_dummy_call): Add 8 to the returned SP.
4392 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4393 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4394 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4395 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4396 (x86_64_push_dummy_call): Return "sp + 16".
4397 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4398 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4399 save_dummy_frame_tos.
4400
0b65af49
JB
44012003-06-13 Jim Blandy <jimb@redhat.com>
4402
4403 * frv-tdep.c (frv_use_struct_convention): Delete static
4404 declaration for function deleted in my change of 2003-06-12.
4405
4ea2465e
TR
44062003-06-13 Theodore A. Roth <troth@openavr.org>
4407
4408 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4409 (avr_pointer_to_address): Shift code addrs left 1 bit.
4410 (avr_convert_from_func_ptr_addr): Delete function since operation is
4411 better handled by avr_address_to_pointer and avr_pointer_to_address.
4412 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4413
1581182a
MK
44142003-06-13 Mark Kettenis <kettenis@gnu.org>
4415
4416 From Kelley Cook <kelleycook@wideopenwest.com>:
4417 * configure.host: Accept i[34567]86 variants.
4418 * configure.tgt: Likewise.
4419 * nlm/configure.in: Likewise.
4420 * nlm/configure: Regenerated.
4421
7aa1783e
RE
44222003-06-13 Richard Earnshaw <rearnsha@arm.com>
4423
4424 * arm-tdep.c (solib-svr4.h): Dont' include it.
4425 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4426 * arm-linux-tdep.c: ... here. Make static.
4427 (arm_linux_init_abi): Register it.
4428 (solib-svr4.h): Include it.
4429 * Makefile.in: Update dependencies.
4430 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4431 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4432
0261a0d0
CV
44332003-06-13 Corinna Vinschen <vinschen@redhat.com>
4434
4435 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4436 indicate registers used for return values.
4437 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4438 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4439 members.
4440 (h8300_init_extra_frame_info): Ditto.
4441 (h8300_frame_locals_address): Removed.
4442 (h8300_frame_args_address): Removed.
4443 (h8300_extract_return_value): Use new regcache structure. Only care
4444 for 16 bit CPUs.
4445 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4446 (h8300_store_return_value): Use new regcache structure. Only care
4447 for 16 bit CPUs.
4448 (h8300h_store_return_value): Same function for 32 bit CPUs.
4449 (h8300_store_struct_return): Removed.
4450 (h8300_extract_struct_value_address): Use new regcache structure.
4451 (h8300h_extract_struct_value_address): Removed.
4452 (h8300_push_dummy_code): New function.
4453 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4454 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4455 set_gdbarch_store_return_value architecture dependent.
4456 Call set_gdbarch_push_dummy_code and
4457 set_gdbarch_extract_struct_value_address.
4458 Remove calls to set_gdbarch_frame_args_address,
4459 set_gdbarch_frame_locals_address,
4460 set_gdbarch_deprecated_store_struct_return,
4461 set_gdbarch_deprecated_extract_return_value,
4462 set_gdbarch_deprecated_extract_struct_value_address,
4463 set_gdbarch_deprecated_call_dummy_words and
4464 set_gdbarch_deprecated_sizeof_call_dummy_words.
4465
055c394a
CV
44662003-06-13 Corinna Vinschen <vinschen@redhat.com>
4467
4468 * h8300-tdep.c (h8300_register_byte): Remove.
4469 (h8300h_register_byte): Remove.
4470 (h8300_register_virtual_type): Remove. Substitute by...
4471 (h8300_register_type): New function.
4472 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4473 (h8300h_extract_struct_value_address): Ditto.
4474 (h8300_gdbarch_init): Drop calls to
4475 set_gdbarch_deprecated_register_byte and
4476 set_gdbarch_deprecated_register_virtual_type.
4477 Add call to set_gdbarch_register_type.
4478
9c04cab7
AC
44792003-06-13 Andrew Cagney <cagney@redhat.com>
4480
4481 * gdbarch.sh: Update comments on registers.
4482 (deprecated_register_byte): Rename register_byte.
4483 (deprecated_register_raw_size): Rename register_raw_size.
4484 (deprecated_register_virtual_size): Rename register_virtual_size.
4485 (deprecated_register_virtual_type): Rename register_virtual_type.
4486 * gdbarch.h, gdbarch.c: Re-generate.
4487 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4488 * vax-tdep.c (vax_gdbarch_init): Update.
4489 * v850-tdep.c (v850_gdbarch_init): Update.
4490 * sparc-tdep.c (sparc_gdbarch_init): Update.
4491 * sh-tdep.c (sh_gdbarch_init): Update.
4492 * s390-tdep.c (s390_gdbarch_init): Update.
4493 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4494 * ns32k-tdep.c: Update.
4495 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4496 * mips-tdep.c (mips_gdbarch_init): Update.
4497 * mcore-tdep.c (mcore_gdbarch_init): Update.
4498 * m68k-tdep.c (m68k_gdbarch_init): Update.
4499 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4500 * ia64-tdep.c (ia64_gdbarch_init): Update.
4501 * hppa-tdep.c (hppa_gdbarch_init): Update.
4502 * h8300-tdep.c (h8300_gdbarch_init): Update.
4503 * frv-tdep.c (frv_gdbarch_init): Update.
4504 * cris-tdep.c (cris_gdbarch_init): Update.
4505 * avr-tdep.c (avr_gdbarch_init): Update.
4506 * alpha-tdep.c (alpha_gdbarch_init): Update.
4507 * arm-tdep.c (arm_gdbarch_init): Update.
4508
b060cbea
AC
45092003-06-13 Andrew Cagney <cagney@redhat.com>
4510
4511 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4512 mips_o32_use_struct_convention with always_use_struct_convention.
4513
0fc9922a
DC
45142003-06-12 David Carlton <carlton@kealia.com>
4515
4516 * cp-namespace.c (cp_set_block_scope): Comment out
4517 processing_has_namespace_info branch.
4518
1fd35568
JB
45192003-06-12 Jim Blandy <jimb@redhat.com>
4520
f470a70a
JB
4521 Recognize and skip 64-bit PowerPC Linux linkage functions.
4522 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4523 insn_pattern, insns_match_pattern, d_field, ds_field): New
4524 functions, macros, and types for working with PPC instructions.
4525 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4526 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4527 ppc64_skip_trampoline_code): New functions, variables, and macros
4528 for recognizing and skipping linkage functions.
4529 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4530 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4531
49ff75ad
JB
4532 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4533 register offsets for both the 32- and 64-bit interfaces.
4534
bd918c83
JB
4535 Actually finish the job started by my change of 2003-05-29.
4536 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4537 other #definition of this.
4538 (ppc_linux_skip_trampoline_code): Remove declaration.
4539 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4540 static.
4541 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4542 method for GDBARCH.
4543
4544 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4545 'long' on ppc64-*-linux*.
4546
f8c59253
JB
4547 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4548 isn't #defined, assume the register doesn't exist: act as if
4549 tdep->ppc_mq_regnum were -1.
4550
8fbb30b1
JB
4551 * configure.host, configure.tgt: Add entries for
4552 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4553 powerpc/linux.mt.
4554 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4555 New files.
4556
1fd35568
JB
4557 * arch-utils.c (always_use_struct_convention): New function.
4558 * arch-utils.h (always_use_struct_convention): New prototype.
4559 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4560 (alpha_gdbarch_init): Register always_use_struct_convention,
4561 instead of alpha_use_struct_convention.
4562 * cris-tdep.c (cris_use_struct_convention): Delete.
4563 (cris_gdbarch_init): Register always_use_struct_convention,
4564 instead of cris_use_struct_convention.
4565 * frv-tdep.c (frv_use_struct_convention): Delete.
4566 (frv_gdbarch_init): Register always_use_struct_convention,
4567 instead of frv_use_struct_convention.
4568 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4569 (h8300_gdbarch_init): Register always_use_struct_convention,
4570 instead of h8300_use_struct_convention.
e3305dd9 4571 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
4572 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4573 instead of mips_o32_use_struct_convention.
4574
e14e6e9c
AC
45752003-06-12 Andrew Cagney <cagney@redhat.com>
4576
4577 * wince.c: Include "mips-tdep.h".
4578 * mips-tdep.h (mips_next_pc): Declare.
4579 * mcore-tdep.c: Make more local functions static.
4580 * Makefile.in (wince.o): Update dependencies.
4581
2335f48e
DC
45822003-06-12 David Carlton <carlton@kealia.com>
4583
4584 * symtab.c (lookup_symbol_aux_minsyms): Replace
4585 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4586 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4587 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4588 SYMBOL_NATURAL_NAME.
4589
f70a7d61
AS
45902003-06-12 Andreas Schwab <schwab@suse.de>
4591
4592 * Makefile.in (tuiDisassem.o): Update dependencies.
4593
b6429628
DC
45942003-06-12 David Carlton <carlton@bactrian.org>
4595
4596 * symtab.h: Delete declaration of make_symbol_overload_list.
4597 Add declaration of lookup_partial_symbol.
4598 * symtab.c (remove_params): Move to cp-support.c.
4599 (overload_list_add_symbol, make_symbol_overload_list)
4600 (sym_return_val_size, sym_return_val_index): Ditto.
4601 (lookup_partial_symbol): Make extern.
4602 * cp-support.h: Add declaration of make_symbol_overload_list.
4603 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4604 symtab.h, and block.h.
4605 (remove_params): Move here from symtab.c.
4606 (overload_list_add_symbol, make_symbol_overload_list)
4607 (sym_return_val_size, sym_return_val_index): Ditto.
4608 * valops.c: Include cp-support.h.
4609 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4610 frame_h, and block_h.
4611 (valops.o): Depend on cp_support_h.
4612
084edea5
CV
46132003-06-12 Corinna Vinschen <vinschen@redhat.com>
4614
4615 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4616 substitute by NUM_REGS throughout.
4617 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4618 (h8300s_register_name): New function for H8S registers.
4619 (h8300sx_register_name): Ditto for H8SX registers.
4620 (h8300_print_register): Revise register printing, avoid depending
4621 on 32 bit long.
0261a0d0 4622 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
4623 (h8300h_register_byte): New function for any other architecture.
4624 (h8300_register_raw_size): Remove.
4625 (h8300_register_virtual_type): Revise to return actually useful
4626 type.
4627 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4628 (h8300h_extract_struct_value_address): New function for any other
4629 architecture.
4630 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4631 set_gdbarch_register_name, set_gdbarch_register_byte,
4632 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4633 Remove calls to set_gdbarch_deprecated_register_size,
4634 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4635 set_gdbarch_deprecated_max_register_raw_size,
4636 set_gdbarch_register_virtual_size and
4637 set_gdbarch_deprecated_max_register_virtual_size entirely.
4638 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4639 set_gdbarch_long_double_bit.
4640
06194148
JJ
46412003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4642
8ffd9b1b
AJ
4643 * doublest.c (convert_doublest_to_floatformat): When dealing
4644 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
4645 processing a full 32 bits of mantissa.
4646
de4f826b
DC
46472003-06-11 David Carlton <carlton@bactrian.org>
4648
4649 * dictionary.h: New.
4650 * dictionary.c: New.
4651 * block.h: Add opaque declaration for struct dictionary.
4652 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4653 'sym' members.
4654 (BLOCK_DICT): New macro.
4655 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4656 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4657 BLOCK_SHOULD_SORT.
4658 (ALL_BLOCK_SYMBOLS): Update definition.
4659 * Makefile.in (SFILES): Add dictionary.c.
4660 (dictionary_h): New.
4661 (COMMON_OBS): Add dictionary.o.
4662 (dictionary.o): New.
4663 (ada-lang.o): Depend on dictionary_h.
4664 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4665 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4666 (mi-cmd-stack.o): Ditto.
4667 (gdbtk-cmds.o): Update dependencies.
4668 (gdbtk-stack.o): Ditto.
4669 * ada-lang.c: Include dictionary.h.
4670 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4671 (fill_in_ada_prototype, debug_print_block): Ditto.
4672 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4673 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4674 'is_sorted'.
4675 * mdebugread.c: Include dictionary.h.
4676 (struct parse_stack): Delete 'maxsyms' member.
4677 (parse_symbol): Update calls to new_block. Delete calls to
4678 shrink_block. Use dictionary methods.
4679 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4680 Update calls to new_symtab. Don't maintain maxsyms data.
4681 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4682 (add_symbol): Just call dict_add_symbol.
4683 (new_symtab): Delete 'maxsyms' argument.
4684 (new_symtab): Update calls to new_block.
4685 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4686 (shrink_block): Delete function.
4687 (fixup_sigtramp): Update call to new_block. Add symbol via
4688 dict_add_symbol.
4689 * jv-lang.c: Include dictionary.h.
4690 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4691 appropriately. Set class_symtab->free_func. Make sure the
4692 blockvector is big enough to hold two blocks.
4693 (add_class_symtab_symbol): Use dictionary methods.
4694 (free_class_block): New function.
4695 (type_from_class): Replace explicit iteration by
4696 ALL_BLOCK_SYMBOLS.
4697 * symtab.h (struct symtab): Replace 'free_ptr' method by
4698 'free_func'.
4699 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4700 sort_symtab_syms.
4701 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4702 sort_symtab_syms.
4703 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4704 Include dictionary.h.
4705 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4706 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4707 sort_symtab_syms.
4708 * objfiles.c: Include dictionary.h.
4709 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4710 * buildsym.c: Include dictionary.h.
4711 (finish_block): Use dictionary methods.
4712 (end_symtab): Set free_func to NULL, not free_ptr.
4713 * tracepoint.c: Include dictionary.h.
4714 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4715 (scope_info): Ditto.
4716 * stack.c: Include dictionary.h.
4717 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4718 (print_block_frame_labels, print_frame_arg_vars)
4719 (print_frame_args): Ditto.
4720 * symmisc.c (free_symtab_block): Use dictionary methods.
4721 (dump_symtab): Ditto.
4722 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4723 Include dictionary.h.
4724 * symfile.h: Delete declarations of sort_block_syms,
4725 sort_symtab_syms.
4726 * symfile.c (sort_block_syms): Delete.
4727 (sort_symtab_syms): Delete.
4728 * symtab.c: Include dictionary.h.
4729 (lookup_block_symbol): Use dictionary iterators.
4730 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4731 (search_symbols, make_symbol_completion_list): Ditto.
4732 (make_symbol_overload_list): Ditto.
4733 * valops.c (value_of_local): Use dict_empty.
4734 Include dictionary.h.
4735
a31f978c
JB
47362003-06-11 J. Brobecker <brobecker@gnat.com>
4737
4738 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4739
526e70c0
DC
47402003-06-11 David Carlton <carlton@bactrian.org>
4741
4742 * block.h (BLOCK_SHOULD_SORT): Delete.
4743 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4744 blocks.
4745 * ada-lang.c (ada_add_block_symbols): Ditto.
4746 * symfile.c (sort_block_syms): Delete.
4747 (sort_symtab_syms): Ditto.
4748 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4749 declarations.
4750 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4751 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4752 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4753 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4754 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4755 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4756 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4757
33c08150
JJ
47582003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4759
8ffd9b1b 4760 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
4761 bits to 128.
4762
781a750d
AC
47632003-06-11 Andrew Cagney <cagney@redhat.com>
4764
4765 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4766 REGISTER_CONVERTIBLE.
4767 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4768 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4769 * gdbarch.h, gdbarch.c: Re-generate.
4770 * arch-utils.h (deprecated_register_convertible_not): Rename
4771 generic_register_convertible_not.
4772 * arch-utils.c (deprecated_register_convertible_not): Rename
4773 generic_register_convertible.
4774 (legacy_convert_register_p, legacy_register_to_value): Update.
4775 * sh-tdep.c (sh64_push_arguments): Update.
4776 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4777 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4778 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4779 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4780 * arch-utils.c (legacy_value_to_register): Update.
4781 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4782 (rs6000_register_convert_to_raw): Make parameter "from" const.
4783 * mips-tdep.c (mips_gdbarch_init): Update.
4784 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4785 * infcmd.c (default_print_registers_info): Update.
4786 * ia64-tdep.c (ia64_gdbarch_init): Update.
4787 (ia64_register_convert_to_raw): Make parameter "from" const.
4788 * i386-tdep.c (i386_gdbarch_init): Update.
4789 (i386_register_convert_to_raw): Update.
4790
cd90e54f
AC
47912003-06-11 Andrew Cagney <cagney@redhat.com>
4792
4793 * remote-fileio.c: Include "remote-fileio.h".
4794 * Makefile.in (remote-fileio.o): Update dependencies.
4795 (remote_fileio_h): Fix typo.
4796
a78f21af
AC
47972003-06-11 Andrew Cagney <cagney@redhat.com>
4798
4799 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4800 (xstormy16_save_dummy_frame_tos): Make static.
4801 (_initialize_xstormy16_tdep): Add declaration.
4802 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4803 * v850-tdep.c: Make local functions static.
4804 (_initialize_v850_tdep): Add declaration.
4805 * sparc-tdep.c: Make local functions static.
4806 (_initialize_sparc_tdep): Add declaration.
4807 * sh-tdep.c: Make local functions static.
4808 (_initialize_sh_tdep): Add declaration.
4809 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4810 * s390-tdep.c: Make local functions static.
4811 (_initialize_s390_tdep): Add declaration.
4812 * dbxread.c (find_stab_function_addr): Make static.
4813 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4814 * ocd.c (_initialize_remote_ocd): Add declaration.
4815 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4816 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4817 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4818 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4819 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4820 * remote-array.c (_initialize_array): Add declaration.
4821 (_initialize_remote_monitors): Add declaration.
4822 * remote-mips.c: Make local functions static.
4823 (_initialize_remote_mips): Add declaration.
4824 * mcore-tdep.c: Make all local functions static.
4825 (_initialize_mcore_tdep): Add declaration.
4826 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4827 * abug-rom.c (_initialize_abug_rom): Add declaration.
4828 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4829 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4830 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4831 * remote-est.c (_initialize_est): Add declaration.
4832 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4833 (m68hc11_call_dummy_address): Make static.
4834 * ia64-tdep.c: Make local functions static.
4835 (_initialize_ia64_tdep): Add declaration.
4836 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4837 * monitor.c (monitor_wait_filter): Make static.
4838 (_initialize_remote_monitors): Add declaration.
4839 * remote-hms.c (_initialize_remote_hms): Add declaration.
4840 * remote-e7000.c (fetch_regs_from_dump): Make static.
4841 (expect_n): Make static.
4842 (_initialize_remote_e7000): Add declaration.
4843 * ser-e7kpc.c: Always include "defs.h".
4844 (_initialize_ser_e7000pc): Add declaration.
4845 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4846 * cris-tdep.c: Make all but one function static.
4847 (_initialize_cris_tdep): Add declaration.
4848 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4849 * solib.c (update_solib_list): Make static.
4850 (_initialize_solib): Add declaration.
4851 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4852 (_initialize_avr_tdep): Add declaration.
4853 * remote-rdi.c (voiddummy): Make static.
4854 (_initialize_remote_rdi): Add declaration.
4855 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4856 * remote-rdp.c (send_rdp): Make static.
4857 (_initialize_remote_rdp): Add declaration.
4858 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4859
cbcdb1f5
CV
48602003-06-11 Corinna Vinschen <vinschen@redhat.com>
4861
4862 * remote-fileio.c: Make ari happy.
4863
a191ea8d
JB
48642003-06-10 J. Brobecker <brobecker@gnat.com>
4865
4866 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4867 fetching the trailing bytes of the buffer we are about to write.
4868
0ef75e11
AC
48692003-06-10 Andrew Cagney <cagney@redhat.com>
4870
4871 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4872 * Makefile.in (remote-fileio.o): Update dependencies.
4873 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4874 include <setjmp.h>, or <sys/types.h> conditional on USG.
4875 (remote_fio_jmp_buf): Delete global variable.
4876
449092f6 48772003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 4878 Martin M. Hunt <hunt@redhat.com>
449092f6 4879
559fa028
AC
4880 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4881 (SFILES): Add remote-fileio.c.
4882 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4883 dependencies for building remote.o.
449092f6
CV
4884 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4885 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 4886 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
4887 static storage class.
4888 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4889 'F' packet.
4890 (_initialize_remote): Call initialize_remote_fileio().
4891 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
4892 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4893 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4894 (captured_main): Initialize new ui_files.
4895 * ui-file.c: Add read and fgets input functions.
4896 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4897 (null_file_read): New function.
4898 (ui_file_read): New function.
4899 (set_ui_file_read): New function.
4900 (stdio_file_read): New function.
4901 * ui-file.h: New type ui_file_read_ftype.
4902 (set_ui_file_read): Declare.
4903 (ui_file_read): Declare.
4904
248de703
AC
49052003-06-09 Andrew Cagney <cagney@redhat.com>
4906
4907 * frame.h (deprecated_unwind_get_saved_register): Rename
4908 generic_unwind_get_saved_register, update comments.
4909 * mips-tdep.c (mips_get_saved_register): Update.
4910 * frame.c (deprecated_unwind_get_saved_register): Update.
4911
0ed8aa57
AC
49122003-06-09 Andrew Cagney <cagney@redhat.com>
4913
4914 * vax-tdep.c (vax_frame_locals_address): Delete function.
4915 (vax_gdbarch_init): Do not set frame_locals_address.
4916 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4917 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4918 * s390-tdep.c (s390_frame_args_address): Delete function.
4919 (s390_gdbarch_init): Do not set frame_args_address or
4920 frame_locals_address.
4921 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4922 (ns32k_gdbarch_init): Do not set frame_locals_address.
4923 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4924 (hppa_frame_locals_address): Delete function.
4925 (hppa_gdbarch_init): Do not set frame_args_address, or
4926 frame_locals_address.
4927 * arm-tdep.c (arm_frame_args_address): Delete.
4928 (arm_frame_locals_address): Delete.
4929 (arm_gdbarch_init): Do not set frame_args_address, or
4930 frame_locals_address.
4931
983a287a
AC
49322003-06-09 Andrew Cagney <cagney@redhat.com>
4933
4934 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4935 * gdbarch.h, gdbarch.c: Re-generate.
4936 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4937 * arch-utils.c (frame_num_args_unknown): Delete function.
4938 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4939 (frame_info): Use FRAME_NUM_ARGS_P.
4940 * arm-tdep.c (arm_frame_num_args): Delete function.
4941 (arm_gdbarch_init): Do not set frame_num_args.
4942 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4943 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4944 (hppa_gdbarch_init): Do not set frame_num_args.
4945 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4946 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4947 frame_num_args to default frame_num_args_unknown.
4948 * v850-tdep.c (v850_gdbarch_init): Ditto.
4949 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4950 * sh-tdep.c (sh_gdbarch_init): Ditto.
4951 * s390-tdep.c (s390_gdbarch_init): Ditto.
4952 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4953 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4954 * mips-tdep.c (mips_gdbarch_init): Ditto.
4955 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4956 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4957 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4958 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4959 * i386-tdep.c (i386_gdbarch_init): Ditto.
4960 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4961 * frv-tdep.c (frv_gdbarch_init): Ditto.
4962 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4963 * cris-tdep.c (cris_gdbarch_init): Ditto.
4964 * avr-tdep.c (avr_gdbarch_init): Ditto.
4965 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4966
8d3b0994
AC
49672003-06-09 Andrew Cagney <cagney@redhat.com>
4968
4969 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4970 (print_frame_args): Moved to "stack.c".
4971 * stack.c: Include "gdb_assert.h".
4972 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4973 (print_frame_args): Moved from "printcmd.c".
4974 * frame.h (print_frame_args): Delete declaration.
4975 * Makefile.in (stack.o): Update dependencies.
4976
25e3a86b
AC
49772003-06-08 Andrew Cagney <cagney@redhat.com>
4978
4979 * frame.c (get_prev_frame): Remove reference to
4980 frame_args_address_correct in comments.
4981 * frame-base.c (default_frame_args_address): Delete code
4982 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4983 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4984 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4985 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4986 (vax_frame_args_address_correct): Delete declaration.
4987
a9e5fdc2
AC
49882003-06-08 Andrew Cagney <cagney@redhat.com>
4989
4990 * gdbarch.sh (UNWIND_SP): Add.
4991 * gdbarch.h, gdbarch.c: Re-generate.
4992 * frame.c (frame_sp_unwind): New function.
4993 (get_frame_sp): New function.
4994 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4995 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4996 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4997 value.
4998 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4999 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5000
8983bd83
AC
50012003-06-08 Andrew Cagney <cagney@redhat.com>
5002
7fec2c59
AC
5003 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5004 REMOTE_BREAKPOINT.
5005 * remote.c: Update.
5006 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5007 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5008 * config/m68k/tm-sun3.h: Update.
5009 * config/m68k/tm-m68klynx.h: Update.
5010 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5011
8983bd83
AC
5012 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5013 trad_frame". Update comments.
5014 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5015 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5016 (trad_frame_register_value, trad_frame_prev_register): Update.
5017
b9362cc7
AC
50182003-06-08 Andrew Cagney <cagney@redhat.com>
5019
5020 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5021 from GCC's acinclude.m4.
5022 * configure.in: Check for getopt's delcaration.
8ffd9b1b 5023 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
5024 * main.c (error_init): Delete declaration.
5025 * defs.h (error_init): Declare.
5026 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5027 (rs6000_convert_from_func_ptr_addr): Make static.
5028 (_initialize_rs6000_tdep): Add declaration.
5029 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5030 (show_commands, set_verbose, show_history): Delete declaration.
5031 * top.h (set_verbose): Add declaration.
5032 (show_history, set_history, show_commands): Add declaration.
5033 (do_restore_instream_cleanup): Add declaration.
5034 * objc-lang.c (specialcmp): Make static.
5035 (print_object_command): Make static.
5036 (find_objc_msgsend): Make static.
5037 (find_objc_msgcall_submethod_helper): Make static.
5038 (find_objc_msgcall_submethod): Make static.
5039 (_initialize_objc_language): Add declaration.
5040 (find_implementation_from_class): Make static.
5041 (find_implementation): Make static.
5042 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5043 * objc-lang.h (lookup_struct_typedef): Add declaration.
5044 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5045 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5046 (do_restore_user_call_depth): Make static.
5047 (do_restore_instream_cleanup): Delete declaration.
5048 (dont_repeat): Delete declaration.
5049 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5050 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5051 * reggroups.c (_initialize_reggroup): Add declaration.
5052 * cp-support.c (_initialize_cp_support): Add declaration.
5053 * cp-abi.c (_initialize_cp_abi): Add declaration.
5054 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5055 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5056 (_initialize_gnu_v3_abi): Add declaration.
5057 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5058 (_initialize_gnu_v2_abi): Add declaration.
5059 * frame-base.c (_initialize_frame_base): Add declaration.
5060 * doublest.c (floatformat_from_length): Make static.
5061 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5062 * frame.c (create_sentinel_frame): Make static.
5063 (_initialize_frame): Add declaration.
5064 * top.c (do_catch_errors): Make static.
5065 (gdb_rl_operate_and_get_next_completion): Make static.
5066 * typeprint.c: Include "typeprint.h".
5067 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5068 (sentinel_frame_this_id): Make static.
5069 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5070 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5071 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5072 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5073 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5074 * maint.c (maintenance_print_architecture): Make static.
5075 * signals/signals.c (_initialize_signals): Add declaration.
5076 * std-regs.c (_initialize_frame_reg): Add declaration.
5077 * jv-exp.y (push_variable): ISO C definition.
5078 (push_qualified_expression_name): Ditto.
5079 * memattr.c (_initialize_mem): Add declaration.
5080 * remote.c (remote_check_watch_resources): Make static.
5081 (remote_stopped_by_watchpoint): Make static.
5082 (remote_stopped_data_address): Make static.
5083 * d10v-tdep.c (nr_dmap_regs): Make static.
5084 (a0_regnum): Make static.
5085 (d10v_frame_unwind_cache): Make static.
5086 (d10v_frame_p): Make static.
5087 * osabi.c (show_osabi): Make static.
5088 (_initialize_gdb_osabi): Add extern declaration.
5089 * gdbtypes.c (make_qualified_type): Make static.
5090 (safe_parse_type): Make static.
5091 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5092 * macrotab.c (macro_bcache_free): Make static.
5093 * interps.c (interp_set_quiet): Make static.
5094 (interpreter_exec_cmd): Make static.
5095 * stack.h (select_frame_command): New file.
5096 * stack.c: Include "stack.h".
5097 (select_frame_command_wrapper): Delete function.
5098 (select_frame_command): Make global.
5099 * infcall.c: Include "infcall.h".
5100 * linespec.c: Include "linespec.h".
5101 * symfile.c (sections_overlap): Make static.
5102 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5103 * charset.c (_initialize_charset): Add missing prototype.
5104 * regcache.c (init_legacy_regcache_descr): Make static.
5105 (do_regcache_xfree): Make static.
5106 (regcache_xfer_part): Make static.
5107 (_initialize_regcache): Add missing prototype.
5108 * breakpoint.c (parse_breakpoint_sals): Make static.
5109 (breakpoint_sals_to_pc): Make static.
5110 * interps.h (clear_interpreter_hooks): ISO C declaration.
5111 * Makefile.in (stack_h): Define.
5112 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5113 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5114
a0f267c7
AC
51152003-06-08 Andrew Cagney <cagney@redhat.com>
5116
5117 * Makefile.in (d10v-tdep.o): Update dependencies.
5118 (SFILES): Add trad-frame.c.
5119 (trad_frame_h): Define.
5120 (COMMON_OBS): Add trad-frame.o.
5121 (trad-frame.o): Specify dependencies.
5122 * d10v-tdep.c: Include "trad-frame.h".
5123 (saved_regs_unwinder): Delete function.
5124 (d10v_frame_prev_register): Use trad_frame_prev_register.
5125 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5126 trad_frame", delete "regs" and "prev_sp".
5127 (prologue_find_regs): Use trad-frame.
5128 * trad-frame.h, trad-frame.c: New files.
5129
4538b4f4
MK
51302003-06-08 Mark Kettenis <kettenis@gnu.org>
5131
5132 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5133
a0273b2f
AF
51342003-06-07 Adam Fedor <fedor@gnu.org>
5135
5136 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5137 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5138 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5139 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 5140 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
5141 Use it.
5142
3a6c3343
AC
51432003-06-07 Andrew Cagney <cagney@redhat.com>
5144
5145 * symfile.h: Re-indent, clean up comments.
5146
b46e02f6
AC
51472003-06-07 Andrew Cagney <cagney@redhat.com>
5148
5149 * inferior.h (deprecated_write_sp): Replace
5150 generic_target_write_sp.
5151 * regcache.c (deprecated_write_sp): Replace
5152 generic_target_write_sp.
5153 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5154 * vax-tdep.c (vax_gdbarch_init): Update.
5155 * v850-tdep.c (v850_gdbarch_init): Update.
5156 * sparc-tdep.c (sparc_gdbarch_init): Update.
5157 * sh-tdep.c (sh_gdbarch_init): Update.
5158 * s390-tdep.c (s390_gdbarch_init): Update.
5159 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5160 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5161 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5162 * mcore-tdep.c (mcore_gdbarch_init): Update.
5163 * m68k-tdep.c (m68k_gdbarch_init): Update.
5164 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5165 * ia64-tdep.c (ia64_gdbarch_init): Update.
5166 * h8300-tdep.c (h8300_gdbarch_init): Update.
5167 * frv-tdep.c (frv_gdbarch_init): Update.
5168 * cris-tdep.c (cris_gdbarch_init): Update.
5169 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5170
a42e117c
AC
51712003-06-07 Andrew Cagney <cagney@redhat.com>
5172
5173 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5174 Assert that PC_REGNUM is valid.
5175 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5176
bd1ce8ba
AC
51772003-06-07 Andrew Cagney <cagney@redhat.com>
5178
5179 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5180 * gdbarch.h, gdbarch.c: Regenerate.
5181 * mn10300-tdep.c: Include "gdb_assert.h".
5182 (mn10300_read_fp): New function.
5183 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5184 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5185 * ia64-tdep.c: Include "gdb_assert.h".
5186 (ia64_read_fp): New function.
5187 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5188 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5189 * regcache.c (generic_target_read_sp): Delete function.
5190 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5191 * inferior.h (generic_target_read_sp): Delete declaration.
5192 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5193 generic_target_read_sp.
5194 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5195 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5196 * sh-tdep.c (sh_gdbarch_init): Ditto.
5197 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5198 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5199
ec5cbaec
AC
52002003-06-07 Andrew Cagney <cagney@redhat.com>
5201
5202 * gdbarch.sh: Comment each field of startup_gdbarch.
5203 * gdbarch.h, gdbarch.c: Re-generate.
5204
cde9ea48
AC
52052003-06-07 Andrew Cagney <cagney@redhat.com>
5206
5207 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5208 * gdbarch.h, gdbarch.c: Re-generate.
5209 * regcache.c: Update comments on read_pc et.al.
5210 (generic_target_read_pc): Delete function.
5211 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5212 * inferior.h (generic_target_read_pc): Delete declaration.
5213 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5214 generic_target_read_pc.
5215 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5216 * sh-tdep.c (sh_gdbarch_init): Ditto.
5217 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5218 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 5219
9a90a780
AC
52202003-06-07 Andrew Cagney <cagney@redhat.com>
5221
5222 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5223 "index" with "special_local_sect". Use strcmp instead of STREQ.
5224 Append period to coments.
5225
a39a16c4
MM
52262003-06-06 Mark Mitchell <mark@codesourcery.com>
5227
5228 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5229 (elfstab_offset_sections): Likewise.
5230 * gdb-stabs.h (stab_section_info): Likewise.
5231 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5232 * objfiles.c (objfile_relocate): Likewise.
5233 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5234 * remote.c (get_offsets): Likewise.
5235 (remote_cisco_objfile_relocate): Likewise.
5236 * somread.c (som_symfile_offsets): Likewise.
5237 * symfile.c (alloc_section_addr_info): New function.
5238 (build_section_addr_info_from_section_tab): Use it.
5239 (free_section_addr_info): Adjust.
5240 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5241 (syms_from_objfile): Allocate local_addr dynamically.
5242 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5243 dynamically.
5244 (add_symbol_file_command): Allocate sect_opts dynamically.
5245 (reread_symbols): Avoid use of SECT_OFF_MAX.
5246 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5247 (alloc_section_addr_info): Declare it.
5248 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5249 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5250 dynamically.
5251 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 5252
20c6c2f8
AC
52532003-06-06 Andrew Cagney <cagney@redhat.com>
5254
5255 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5256 (d10v_frame_unwind_cache): Do not set "return_pc".
5257
884a26c8
MS
52582003-06-06 Michael Snyder <msnyder@redhat.com>
5259
5260 * h8300-tdep.c: Make tidy (long lines).
5261
088ce440
ML
52622003-06-06 Michal Ludvig <mludvig@suse.cz>
5263
8ffd9b1b 5264 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
5265 to regcache_collect().
5266
7d773d96
JB
52672003-06-05 J. Brobecker <brobecker@gnat.com>
5268
5269 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5270 pc_in_sigtramp multiarch method.
5271 (hppa_hpux_som_init_abi): Use it.
5272 (hppa_hpux_elf_init_abi): Likewise.
5273 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5274 macro has been multiarched.
5275 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5276 macro here, as hppa64 isn't multiarched yet.
5277
1df6926e
AC
52782003-06-05 Andrew Cagney <cagney@redhat.com>
5279
5280 * Makefile.in (value_h): Add $(frame_h).
5281 * value.h: Include "frame.h".
5282 (struct value): Replace "frame_addr" with "frame_id".
5283 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5284 * values.c (allocate_value): Use VALUE_FRAME_ID.
5285 (value_copy): Use VALUE_FRAME_ID.
5286 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5287 * valops.c (value_assign): Update. Use frame_find_by_id.
5288
6b53acc6
ML
52892003-06-05 Michal Ludvig <mludvig@suse.cz>
5290
5291 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5292 in each pass.
5293
4d9850d3
JJ
52942003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5295
5296 * thread-db.c (check_event): For create/death event breakpoints,
5297 loop through all messages to ensure that we read the message
5298 corresponding to the breakpoint we are at.
5299
8efca6ba
MS
53002003-06-04 Michael Snyder <msnyder@redhat.com>
5301
5302 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5303
0912c7f2
MK
53042003-06-04 Mark Kettenis <kettenis@gnu.org>
5305
5306 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5307 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5308 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5309 when handling .eh_frame sections.
5310
4e370325
JB
53112003-06-04 J. Brobecker <brobecker@gnat.com>
5312
5313 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5314 prepare_to_proceed procedure instead of the hppa-specific one.
5315 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5316
b757528f 53172003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5318
b757528f
JJ
5319 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5320 * config.in: Regenerated.
5321 * configure.in: Add test for syscall function and check for
5322 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5323 * configure: Regenerated.
5324 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5325 <sys/syscall.h>.
5326 (kill_lwp): New function that uses tkill syscall or
5327 uses kill, depending on whether threading model is nptl or not.
5328 All callers of kill() changed to use kill_lwp().
5329 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5330 see if all threads have already exited in the nptl model.
5331 (stop_and_resume_callback): New callback function used by the
5332 lin_lwp_wait thread exit handling code.
5333 (stop_wait_callback): Check for threads already having exited and
5334 delete such threads fromt the lwp list when discovered.
5335 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 5336
b757528f
JJ
5337 Roland McGrath <roland@redhat.com>
5338 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5339 nptl libthread_db.
5340
087779b1
RH
53412003-06-03 Richard Henderson <rth@redhat.com>
5342
b21fd293
RH
5343 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5344 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5345 (alpha_sigtramp_frame_prev_register): Likewise.
5346 (alpha_heuristic_frame_prev_register): Likewise.
5347 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5348
8ffd9b1b 5349 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
5350 alpha-specific register id names.
5351 (alpha_mdebug_frame_unwind_cache): Likewise.
5352 (alpha_mdebug_frame_prev_register): Likewise.
5353
baa490c4
RH
53542003-06-03 Richard Henderson <rth@redhat.com>
5355
5356 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5357 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5358 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5359 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5360 unwind routines.
5361 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5362 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5363 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5364
5365 * alpha-linux-tdep.c: Remove unnecessary includes.
5366 * Makefile.in (alpha-linux-tdep.o): Update.
5367
53682003-06-03 Richard Henderson <rth@redhat.com>
5369
5370 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5371 (alphabsd_fill_fpreg): Likewise.
5372
f534e522
JB
53732003-06-03 J. Brobecker <brobecker@gnat.com>
5374
5375 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5376 references to struct frame_info fields by calls to the equivalent
5377 accessors. Necessary now that frame_info is opaque.
5378
4035536b
JB
53792003-06-03 J. Brobecker <brobecker@gnat.com>
5380
5381 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5382 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5383 structure, field no longer exists.
5384
0bd79c5c
JB
53852003-06-03 J. Brobecker <brobecker@gnat.com>
5386
5387 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5388 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5389
37bb6d9f
JB
53902003-06-03 J. Brobecker <brobecker@gnat.com>
5391
5392 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5393 references to struct frame_info fields by calls to the equivalent
5394 accessors. Necessary now that frame_info is opaque.
5395
852ee05c
JB
53962003-06-03 J. Brobecker <brobecker@gnat.com>
5397
5398 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5399 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5400 structure, field no longer exists.
5401
7d58c67d
TR
54022003-06-03 Theodore A. Roth <troth@openavr.org>
5403
8ffd9b1b 5404 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
5405 accumulation of the size of all registers instead of blindly using
5406 DEPRECATED_REGISTER_BYTES.
5407
0a48e7e8
MS
54082003-06-03 Michael Snyder <msnyder@redhat.com>
5409
5410 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5411 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5412 for h8300sx.
5413
9798ab0d
JB
54142003-06-03 J. Brobecker <brobecker@gnat.com>
5415
5416 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5417 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5418
00b037e2
AC
54192003-06-03 Andrew Cagney <cagney@redhat.com>
5420
5421 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5422 (sparc_convert_to_raw): Delete function.
5423 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5424 register_convert_to_virtual.
5425
043b2f77
JJ
54262003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5427
5428 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5429 layer if not dealing with a statically-linked threaded program.
5430
f43caff8
KW
54312003-06-03 Kris Warkentin <kewarken@qnx.com>
5432
5433 * solib.c (solib_open): Update comment to reflect actual search order.
5434
ae1e7417
AC
54352003-06-03 Andrew Cagney <cagney@redhat.com>
5436
5437 * frame.c (get_frame_memory_signed): New function.
5438 (get_frame_memory, get_frame_memory_unsigned): New function.
5439 (get_frame_arch): New function.
5440 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5441 (get_frame_memory, get_frame_unsigned_memory): Declare.
5442 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5443 get_frame_memory_unsigned and get_frame_arch.
5444 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5445
cb123844
RG
54462003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5447
5448 * MAINTAINERS (write after approval): Add myself.
5449
1bb792e9
JB
54502003-06-03 Jim Blandy <jimb@redhat.com>
5451
5452 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5453 elements of gregset_t are 64 bits each, but access registers
5454 are still 32 bits, so they're packed two per gregset_t
5455 element. Unpack/pack them properly.
5456
aee8d8ba
DC
54572003-06-02 David Carlton <carlton@bactrian.org>
5458
5459 * linespec.c (find_methods): Break out code into
5460 add_matching_methods and add_constructors.
5461 (add_matching_methods): New.
5462 (add_constructors): Ditto.
5463
bf7488d2
AC
54642003-06-02 Andrew Cagney <cagney@redhat.com>
5465
bf7488d2
AC
5466 * sparc-tdep.c (sparc_print_registers): Delete call to
5467 REGISTER_CONVERTIBLE.
5468 (sparc_gdbarch_init): Do not set register_convertible.
5469 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5470 * frv-tdep.c (frv_gdbarch_init): Ditto.
5471 * cris-tdep.c (cris_gdbarch_init): Ditto.
5472
adedef68
EZ
54732003-06-02 Elena Zannoni <ezannoni@redhat.com>
5474
8ffd9b1b 5475 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
5476 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5477 (syms_from_objfile): Ditto.
5478
650fcc91
AS
54792003-06-03 Andreas Schwab <schwab@suse.de>
5480
5481 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5482 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5483
df4a182b
RH
54842003-06-02 Richard Henderson <rth@redhat.com>
5485
5486 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5487 a member of all_reggroup.
5488
c483c494
RH
54892003-06-02 Richard Henderson <rth@redhat.com>
5490
5491 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5492 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5493 (alpha_lds, alpha_sts): New.
5494 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 5495 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
5496 restructure and fail for type sizes other than 4 or 8.
5497 (alpha_value_to_register): Similarly.
5498 (alpha_extract_return_value): Use alpha_sts.
5499 (alpha_store_return_value): Use alpha_lds.
5500 (alpha_gdbarch_init): Update hooks.
5501
b38b6be2
RH
55022003-06-02 Richard Henderson <rth@redhat.com>
5503
5504 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5505 regnum identifiers.
5506 (alpha_sigtramp_register_address): Likewise.
5507
98a8e1e5
RH
55082003-06-02 Richard Henderson <rth@redhat.com>
5509
5510 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5511 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5512 * alpha-tdep.h: Declare them.
5513
5514 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5515 Remove zerobuf. Don't error on UNIQUE.
5516 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5517 (ALPHA_REGSET_UNIQUE): Provide default.
5518 (supply_gregset): Use alpha_supply_int_regs.
5519 (fill_gregset): Use alpha_fill_int_regs.
5520 (supply_fpregset): Use alpha_supply_fp_regs.
5521 (fill_fpregset): Use alpha_fill_fp_regs.
5522 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5523 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5524 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5525 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5526 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5527 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5528
67dfac52
RH
55292003-06-02 Richard Henderson <rth@redhat.com>
5530
f75d70cc
RH
5531 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5532
67dfac52
RH
5533 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5534 (alpha_store_return_value): Likewise.
5535
0cf566ec
DC
55362003-06-02 David Carlton <carlton@math.stanford.edu>
5537
5538 * block.c (contained_in): Add 'const' to arguments.
5539 (block_function): Ditto.
5540 * block.h: Update declarations for block_function and
5541 contained_in.
5542
cdef89d0
DC
55432003-06-02 David Carlton <carlton@math.stanford.edu>
5544
5545 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5546 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5547 * p-valprint.c (pascal_val_print): Ditto.
5548 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5549
72667056
RH
55502003-06-02 Richard Henderson <rth@redhat.com>
5551
98a8e1e5
RH
5552 * alpha-tdep.c (alpha_push_dummy_call): Use
5553 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 5554
8ffd9b1b 5555 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
5556 sign-extension of 32-bit values.
5557 (alpha_store_return_value): Similarly.
0ede8eca 5558
98a8e1e5
RH
5559 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5560 (alpha_extract_return_value): Likewise.
5561 (alpha_store_return_value): Likewise.
7b5e1cb3 5562
98a8e1e5
RH
5563 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5564 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 5565
98a8e1e5
RH
5566 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5567 (alpha_extract_struct_value_address): Likewise.
5568 (alpha_store_return_value): Likewise.
5569 (alpha_store_struct_return): Remove.
5570 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 5571
98a8e1e5
RH
5572 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5573 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5574 macros where appropriate.
5575 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5576 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 5577
98a8e1e5
RH
5578 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5579 for SP, GP; void_func_ptr for PC; non-language-specific types
5580 for all others.
5581 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 5582
6dd77b81
RH
55832003-06-02 Richard Henderson <rth@redhat.com>
5584
5585 * top.h (lim_at_start): Declare.
5586 * main.c (captured_main): Set it.
5587 * top.c (lim_at_start): Define.
5588 (command_loop): Use it instead of &environ.
5589 * event-top.c (command_handler): Likewise.
5590
f4dbdb54
JT
55912003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5592
5593 * mipsnbsd-tdep.c: Update copyright years.
5594 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5595
8f285956
RH
55962003-06-01 Richard Henderson <rth@redhat.com>
5597
98a8e1e5
RH
5598 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5599 (alpha-linux-tdep.o): Update dependencies.
5600 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5601 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 5602
615967cb
RH
56032003-06-01 Richard Henderson <rth@redhat.com>
5604
98a8e1e5
RH
5605 * alpha-tdep.c (alpha_register_reggroup_p): New.
5606 (alpha_gdbarch_init): Register it.
615967cb 5607
b59661bd
AC
56082003-06-02 Andrew Cagney <cagney@redhat.com>
5609
5610 * dwarfread.c: Eliminate "register"
5611 (decode_die_type): Eliminate assignment within "if".
5612 (struct_type, decode_array_element_type): Ditto.
5613 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5614 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5615 (decode_modified_type, completedieinfo): Ditto.
5616 * block.c: Eliminate "register".
5617 (blockvector_for_pc_sect): Eliminate assignment within "if".
5618 * cp-support.h (struct symbol): Opaque declaration.
5619 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5620
5ef165c2
RH
56212003-06-01 Richard Henderson <rth@redhat.com>
5622
98a8e1e5
RH
5623 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5624 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 5625
143985b7
AF
56262003-06-01 Adam Fedor <fedor@gnu.org>
5627
5628 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5629 * gdbarch.[ch]: Regenerate.
5630 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5631 (hppa_gdbarch_init): Set it in the gdbarch vector.
5632 * i386-tdep.c (i386_fetch_pointer_argument): New
5633 (i386_gdbarch_init): Set it into gdbarch.
5634 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5635 (rs6000_gdbarch_init): Set it in gdbarch.
5636 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5637 (sparc_gdbarch_init): Set it in gdbarch.
5638
ae0167b9
AC
56392003-06-01 Andrew Cagney <cagney@redhat.com>
5640
7c0b4a20
AC
5641 * defs.h (extract_address): Delete declaration.
5642 * findvar.c (extract_address): Delete function.
5643 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5644 extract_address with the inline equivalent,
5645 extract_unsigned_integer.
5646 (xstormy16_extract_struct_value_address): Ditto.
5647 (xstormy16_pointer_to_address): Ditto.
5648 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5649 * v850-tdep.c (v850_push_arguments): Ditto.
5650 (v850_extract_return_value): Ditto.
5651 (v850_extract_struct_value_address): Ditto.
5652 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5653 (sparcnbsd_get_longjmp_target_64): Ditto.
5654 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5655 (get_longjmp_target): Ditto.
5656 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5657 (sh64_extract_struct_value_address): Ditto.
5658 (sh_push_arguments): Ditto.
5659 (sh64_push_arguments): Ditto.
5660 * remote-vxsparc.c (vx_read_register): Ditto.
5661 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5662 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5663 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5664 * mipsv4-nat.c (get_longjmp_target): Ditto.
5665 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5666 * mips-nat.c (get_longjmp_target): Ditto.
5667 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5668 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5669 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5670 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5671 * irix5-nat.c (get_longjmp_target): Ditto.
5672 * irix4-nat.c (get_longjmp_target): Ditto.
5673 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5674 (ia64_push_arguments): Ditto.
5675 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5676 * h8300-tdep.c (h8300_push_arguments): Ditto.
5677 (h8300_store_return_value): Ditto.
5678 (h8300_extract_struct_value_address): Ditto.
5679 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5680 (frv_push_arguments): Ditto.
5681 * avr-tdep.c (avr_pointer_to_address): Ditto.
5682 (avr_push_arguments): Ditto.
5683 * arm-tdep.c (arm_push_dummy_call): Ditto.
5684 (arm_get_longjmp_target): Ditto.
5685 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5686 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5687 (alpha_get_longjmp_target): Ditto.
5688
ae0167b9
AC
5689 * solib-irix.c (extract_mips_address): Inline extract_address,
5690 replacing it with extract_signed_integer.
5691 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5692 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5693 (first_link_map_member, open_symbol_file_object): Ditto.
5694 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5695 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5696 (LM_NEXT, LM_NAME): Ditto.
5697
44d88583
RH
56982003-06-01 Richard Henderson <rth@redhat.com>
5699
98a8e1e5
RH
5700 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5701 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5702 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5703 (alpha_cannot_store_register): Likewise.
5704 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5705 * alpha-nat.c (supply_gregset): Likewise.
5706 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 5707
310e9b6a
AC
57082003-06-01 Andrew Cagney <cagney@redhat.com>
5709
5710 * infcall.c (call_function_by_hand): Update comment on
5711 DEPRECATED_DUMMY_WRITE_SP.
5712
5713 * mips-tdep.c (mips_gdbarch_init): Do not set
5714 deprecated_dummy_write_sp.
5715 (mips_eabi_push_dummy_call): Set the SP register.
5716 (mips_o64_push_dummy_call): Set the SP register.
5717 (mips_o32_push_dummy_call): Set the SP register.
5718 (mips_n32n64_push_dummy_call): Set the SP register.
5719
5ab84872
RH
57202003-06-01 Richard Henderson <rth@redhat.com>
5721
98a8e1e5
RH
5722 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5723 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5724 (supply_gregset): Likewise.
5725 * alpha-tdep.c (alpha_store_return_value): Likewise.
5726 (alpha_get_longjmp_target): Likewise.
5727 (alpha_register_name): Constify array.
5728 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5729 deprecated_register_size, deprecated_register_bytes,
5730 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5731 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5732 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 5733
09cc52fd
RH
57342003-06-01 Richard Henderson <rth@redhat.com>
5735
5736 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5737 from arg_reg_buffer to regcache to avoid double conversion.
5738
c7f16359
MK
57392003-06-01 Mark Kettenis <kettenis@gnu.org>
5740
5741 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5742 SP_REGNUM.
5743 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5744 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5745
7131cb6e
RH
57462003-06-01 Richard Henderson <rth@redhat.com>
5747
98a8e1e5
RH
5748 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5749 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 5750
f3e0f90b
RH
57512003-06-01 Richard Henderson <rth@redhat.com>
5752
98a8e1e5
RH
5753 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5754 not overlapping PC_REGNUM.
f3e0f90b 5755
c88e30c0
RH
57562003-06-01 Richard Henderson <rth@redhat.com>
5757
98a8e1e5
RH
5758 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5759 alpha_push_arguments. Don't dump argument register data to
5760 the target stack. Fix float and 128-bit long double semantics.
5761 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5762 (alpha_fix_call_dummy): Remove.
5763 (alpha_call_dummy_words): Remove.
5764 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 5765
f1a559ae
RH
57662003-06-01 Richard Henderson <rth@redhat.com>
5767
5768 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5769
5e045346
AC
57702003-06-01 Andrew Cagney <cagney@redhat.com>
5771
95404a3e
AC
5772 * mips-tdep.c (is_mips16_addr): New function.
5773 (make_mips16_addr, unmake_mips16_addr): New functions.
5774 (pc_is_mips16, mips_fetch_instruction): Use.
5775 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5776 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5777 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5778 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5779 TARGET_MIPS.
5780 * config/mips/tm-mips.h: Update copyright.
5781 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5782 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5783 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5784 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5785 (TM_PRINT_INSN_MACH): Delete.
5786 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5787
5e045346
AC
5788 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5789 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5790 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5791 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5792 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5793 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5794 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5795 mips*-*-riscos* and mips*-*-sysv* onto mips.
5796 * config/mips/mips64.mt: New file.
5797 * config/mips/mips.mt: New file.
5798 * config/mips/littlemips.mt: Delete file.
5799 * config/mips/decstation.mt: Delete file.
5800 * config/mips/vr4300el.mt: Delete file.
5801 * config/mips/vr5000el.mt: Delete file.
5802 * config/mips/vr5000.mt: Delete file.
5803 * config/mips/vr4100.mt: Delete file.
5804 * config/mips/vr4xxxel.mt: Delete file.
5805 * config/mips/vr4300.mt: Delete file.
5806 * config/mips/vr4xxx.mt: Delete file.
5807 * config/mips/bigmips.mt: Delete file.
5808 * config/mips/bigmips64.mt: Delete file.
5809 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5810 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5811 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5812 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5813 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5814 "tm-bigmips.h".
5815 * config/mips/tm-irix3.h: Ditto.
5816 * config/mips/tm-mipsv4.h: Ditto.
5817 * config/mips/tm-embed.h: Ditto.
5818 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5819 "tm-bigmips64.h".
5820 * config/mips/tm-vr5000el.h: Delete file.
5821 * config/mips/tm-tx39l.h: Delete file.
5822 * config/mips/tm-vr4300el.h: Delete file.
5823 * config/mips/tm-vr4xxxel.h: Delete file.
5824 * config/mips/tm-vr4300.h: Delete file.
5825 * config/mips/tm-vr4100.h: Delete file.
5826 * config/mips/tm-vr4xxx.h: Delete file.
5827 * config/mips/tm-vr5000.h: Delete file.
5828 * config/mips/tm-embedl64.h: Delete file.
5829 * config/mips/tm-embedl.h: Delete file.
5830 * config/mips/tm-embed64.h: Delete file.
5831 * config/mips/tm-bigmips64.h: Delete file.
5832 * config/mips/tm-bigmips.h: Delete file.
5833
2473a4a9
MK
58342003-06-01 Mark Kettenis <kettenis@gnu.org>
5835
97a5b208
MK
5836 Fix gdb/1216.
5837 * shnbsd-nat.c: Include "sh-tdep.h".
5838
2473a4a9
MK
5839 From Richard Henderson <rth@redhat.com>:
5840 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5841
e0f7ec59
AC
58422003-05-31 Andrew Cagney <cagney@redhat.com>
5843
5844 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5845 forward declaration.
5846 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5847 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5848 (mips_find_saved_regs): Use set_reg_offset.
5849 (mips_frame_init_saved_regs): Delete function.
5850 (mips_pop_frame): Call mips_find_saved_regs instead of
5851 DEPRECATED_FRAME_INIT_SAVED_REGS.
5852
68dcc709
AC
58532003-05-31 Andrew Cagney <cagney@redhat.com>
5854
5855 * mips-tdep.c (mips_gdbarch_init): Do not set
5856 deprecated_max_register_raw_size, register_virtual_size, and
5857 deprecated_max_register_virtual_size.
5858
cfc14b3a
MK
58592003-05-31 Mark Kettenis <kettenis@gnu.org>
5860
6405b0a6
MK
5861 * i386-tdep.c: Include "dwarf2-frame.h".
5862 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5863 * Makefile.in (i386-tdep.o): Update dependencies.
5864
cfc14b3a
MK
5865 * dwarf2-frame.c, dwarf2-frame.h: New files.
5866 * Makefile.in (SFILES): Add dwarf2-frame.c.
5867 (dwarf2_frame_h): Define.
5868 (COMMON_OBS): Add dwarf2-frame.o.
5869 (dwarf2-frame.o): Add dependencies.
5870
6a2751d2
AJ
58712003-05-31 Andreas Jaeger <aj@suse.de>
5872
5873 * x86-64-linux-nat.c: Fix comment.
5874
1c3545ae
MK
58752003-05-31 Mark Kettenis <kettenis@gnu.org>
5876
10f93086
MK
5877 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5878 function signature.
5879
1c3545ae
MK
5880 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5881 have a sigcontext_addr handler.
5882 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5883 sigcontext_addr handler.
5884
e11c53d2
AC
58852003-05-31 Andrew Cagney <cagney@redhat.com>
5886
5887 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5888 (print_fp_register_row): Replace do_fp_register_row.
5889 (mips_print_fp_register): Add "file" and "frame" parameters.
5890 (mips_print_register): Add "file" and "frame" parameters.
5891 (mips_print_registers_info): Replace mips_do_registers_info.
5892 (mips_gdbarch_init): Set print_registers_info instead of
5893 deprecated_do_registers_info.
5894 (mips_read_fp_register_single): Add "frame" parameter.
5895 (mips_read_fp_register_double): Add "frame" parameter.
5896
a3386186
MK
58972003-05-31 Mark Kettenis <kettenis@gnu.org>
5898
70913449
MK
5899 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5900 Fixes a bug where GDB would print the wrong register names for
5901 targets without SSE.
5902
2b5e0749
MK
5903 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5904 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5905 registers.
5906
5907 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5908 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5909 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5910 TDEP->sc_sp_offset.
5911
a3386186
MK
5912 From Michal Ludvig <mludvig@suse.cz>:
5913 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5914 and `sc_num_regs'.
5915 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5916 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5917 I386_ST0_REGNUM): Move here from...
5918 * i386-tdep.c: ... here.
5919 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5920 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5921 registers if possible.
5922 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5923 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5924 Remove variables.
5925 (i386bsd_sc_reg_offset): New variable.
5926 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5927 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5928 TDEP->sc_sp_offset.
5929 (i386fbsd_sc_reg_offset): New variable.
5930 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5931 TDEP->sc_num_regs.
5932 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5933 variables.
5934 (i386fbsd4_sc_reg_offset): New variable.
5935 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5936 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5937 TDEP->sc_sp_offset.
5938 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5939 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5940 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5941 Remove variables.
5942 (i386nbsd_sc_reg_offset): New variable.
5943 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5944 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5945 TDEP->sc_sp_offset.
5946 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5947 Remove variables.
5948 (i386obsd_sc_reg_offset): New variable.
5949 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5950 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5951 TDEP->sc_sp_offset.
5952 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5953 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5954 for frame pointer offset in `struct sigcontext'.
5955
25ab4790
AC
59562003-05-31 Andrew Cagney <cagney@redhat.com>
5957
5958 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5959 architecture methods call_dummy_words, sizeof_call_dummy_words,
5960 push_return_address, store_struct_return, and fix_call_dummy. Set
5961 push_dummy_call instead of deprecated_push_arguments.
5962 (mips_store_struct_return): Delete function.
5963 (mips_fix_call_dummy): Delete function.
5964 (mips_push_return_address): Delete function.
5965 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5966 RA_REGNUM and T9_REGNUM.
5967 (mips_n32n64_push_dummy_call): Ditto for
5968 mips_n32n64_push_arguments.
5969 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5970 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5971
6a65450a
AC
59722003-05-31 Andrew Cagney <cagney@redhat.com>
5973
5974 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5975 "dummy_addr" to "bp_addr".
5976 * infcall.c (call_function_by_hand): Pass "funaddr" to
5977 gdbarch_push_dummy_call.
5978 * gdbarch.h, gdbarch.c: Re-generate.
5979 * i386-tdep.c (i386_push_dummy_call): Update.
5980 * arm-tdep.c (arm_push_dummy_call): Update.
5981 * d10v-tdep.c (d10v_push_dummy_call): Update.
5982
c4f35dd8
MK
59832003-05-31 Mark Kettenis <kettenis@gnu.org>
5984
5985 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5986 variable declarations.
5987 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5988 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5989 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5990 x86_64_init_frame_pc, x86_64_init_frame_pc,
5991 x86_64_function_has_prologue): Remove prototypes.
5992 (X86_64_NUM_GREGS): New define.
5993 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5994 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5995 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5996 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5997 XMM1_REGNUM): Remove defines.
5998 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5999 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6000 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6001 X86_64_XMM1_REGNUM): New defines.
6002 (struct x86_64_register_info): Renamed from `struct
6003 register_info'. Remove `size' member.
6004 (x86_64_register_info_table): Remove variable.
6005 (x86_64_register_info): New variable.
6006 (X86_64_NUM_REGS): New define.
6007 (X86_64_NUM_GREGS): Remove define.
6008 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6009 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6010 Remove variables.
6011 (x86_54_dwarf2_reg_to_regnum): Remove function.
6012 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6013 (x86_64_dwarf_reg_to_regnum): New function.
6014 (x86_64_register_name): Rewrite.
6015 (x86_64_register_raw_size): Remove function.
6016 (x86_64_register_byte_table): Remove variable.
6017 (x86_64_register_byte): Remove function.
6018 (x86_64_register_virtual_type): Remove function.
6019 (x86_64_register_type): New function.
6020 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6021 x86_64_register_convert_to_raw): Remove functions.
6022 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6023 (x86_64_use_struct_convention): Make static. Adjust for renamed
6024 defines.
6025 (x86_64_frame_init_saved_regs): Remove function.
6026 (x86_64_push_arguments): Make static. Change to accept a regcache
6027 as argument.
6028 (x86_64_store_return_value, x86_64_extract_return_value): Make
6029 static. Rewrite based on i386 counterparts.
6030 (x86_64_push_dummy_call): New function.
6031 (X86_64_NUM_SAVED_REGS): New define.
6032 (x86_64_register_number): Remove function.
6033 (x86_64_store_struct_return): Remove function.
6034 (x86_64_frameless_function_invocation,
6035 x86_64_function_has_prologue): Remove functions.
6036 (PROLOG_BUFSIZE): Remove define.
6037 (struct x86_64_frame_cache): New structure.
6038 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6039 x86_64_frame_cache, x86_64_frame_this_id,
6040 x86_64_frame_prev_register, x86_64_frame_p,
6041 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6042 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6043 functions.
6044 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6045 variables.
6046 (x86_64_skip_prologue): Rewrite in terms of
6047 x86_64_analyze_prologue.
6048 (x86_64_frame_base_address): New function.
6049 (x86_64_frame_base): New variable.
6050 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6051 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6052 set deprecated_fp_regnum, deprecated_register_size,
6053 deprecated_register_bytes, register_raw_size, register_byte,
6054 register_virtual_type, register_convertiable,
6055 register_convert_to_virtual, convert_to_raw,
6056 deprecated_get_saved_register, deprecated_target_read_fp,
6057 deprecated_push_arguments, deprecated_push_return_address,
6058 deprecated_pop_frame, deprecated_store_struct_return,
6059 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6060 frameless_function_invocation, deprecated_frame_saved_pc,
6061 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6062 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6063 deprecated_init_frame_pc and virtual_frame_pointer. Call
6064 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6065 and x86_64_frame_p. Call frame_base_set_default to register
6066 x86_64_frame_base.
6067 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6068 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6069 (_initialize_x86_64_tdep): Remove function.
6070 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6071 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6072 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6073 define.
6074 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6075 (x86_64_linux_sigcontext_addr): Rewrite.
6076 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6077 x86_64_linux_frame_saved_pc): Remove functions.
6078 (x86_64_linux_pc_in_sigtramp): Renamed from
6079 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6080 trampoline.
6081 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6082 Remove_functions.
6083 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6084 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6085 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6086 (x86_64_regmap): Rename to regmap.
6087 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6088 x86_64_num_gregs.
6089 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6090 x86_64_regmap.
6091 (x86_64_fxsave_offset): Remove function.
6092 (supply_fpregset): Simply call x86_64_supply_fxsave.
6093 (fill_fpregset): Simply call x86_64_fill_fxsave.
6094 (fetch_inferior_registers, store_inferior_registers): Avoid
6095 asignment in if-statement.
6096 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6097 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6098 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6099 (fetch_core_registers): Remove function.
6100 (linux_elf_core_fns): Remove.
6101 (offsetoff): Don't define.
6102 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6103 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6104 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6105 add core-regset.o.
6106 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6107 protection against multiple includes instead of NM_X86_64_h. Add
6108 various comments. Include "config/nm-linux.h". Don't include
6109 <signal.h>.
6110 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6111 GET_THREAD_SIGNALS): Remove defines.
6112 (x86_64_register_u_addr, kernel_u_size,
6113 lin_thread_get_thread_signals): Remove prototypes.
6114 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6115 [HAVE_LINK_H]: Don't include "solib.h".
6116 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6117 * config/i386/tm-x86-64linux.h: Fix comments.
6118 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6119 x86-64-tdep.o): Update dependencies.
6120
c25083af
AC
61212003-05-30 Andrew Cagney <cagney@redhat.com>
6122
c8f55a7b
AC
6123 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6124 Change parameter type to a "struct regcache *".
6125
c25083af
AC
6126 * gdbarch.sh: Regardless of the multi-arch level, always define
6127 the macro when not already defined.
6128 * gdbarch.h, gdbarch.c: Re-generate.
6129
fbe586ae
RH
61302003-05-30 Richard Henderson <rth@redhat.com>
6131
6132 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6133 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6134 (alpha_mdebug_frame_this_id): Likewise.
6135 (alpha_mdebug_frame_prev_register): Likewise.
6136 (alpha_mdebug_frame_base_address): Likewise.
6137 (alpha_mdebug_frame_locals_address): Likewise.
6138 (alpha_mdebug_frame_args_address): Likewise.
6139 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6140 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6141 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6142 loop increment.
6143 (alpha_heuristic_frame_this_id): Make static.
6144 (alpha_heuristic_frame_prev_register): Likewise.
6145 (alpha_heuristic_frame_base_address): Likewise.
6146 * alpha-tdep.h: Update.
6147
acd5c798
MK
61482003-05-30 Mark Kettenis <kettenis@gnu.org>
6149
6150 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6151 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6152 defenitions.
6153 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6154 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6155 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6156 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6157 I386_ST0_REGNUM): New defines.
6158 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6159 codestream_get): Remove define.
6160 (codestream_next_addr, condestream_addr, condestream_buf,
6161 codestream_off, codestream_cnt): Remove variables.
6162 (codestream_fill, codestream_seek, codestream_read): Remove
6163 functions.
6164 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6165 functionality.
6166 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6167 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6168 i386_frame_saved_pc, i386_saved_pc_after_call,
6169 i386_frame_num_args, i386_frame_init_saved_regs,
6170 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6171 i386_push_arguments): Remove functions.
6172 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6173 functionality. Use i386_analyze_prologue instead of
6174 i386_get_frame_setup.
6175 (I386_NUM_SAVED_REGS): New define.
6176 (struct i386_frame_cache): New structure.
6177 (i386_alloc_frame_cache, i386_analyze_struct_return,
6178 i386_skip_probe, i386_analyze_frame_setup,
6179 i386_analyze_register_saves, i386_analyze_prologue,
6180 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6181 i386_frame_prev_register, i386_sigtramp_frame_cache,
6182 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6183 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6184 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6185 New functions.
6186 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6187 New variables.
6188 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6189 I386_EAX_REGNUM and I386_EDX_REGNUM.
6190 (i386_extract_return_value, i386_store_return_value): Use
6191 I386_ST0_REGNUM where appropriate.
6192 (i386_extract_struct_value_address): Rewrite to use extract_address.
6193 (i386_svr4_pc_in_sigtramp): Add comment.
6194 (i386_svr4_sigcontext_addr): Rewrite.
6195 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6196 TDEP->sc_sp_offset.
6197 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6198 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6199 of new defines. Set push_dummy_call, don't set
6200 deprecated_push_arguments, deprecated_push_return_address,
6201 deprecated_pop_frame. Don't set parm_boundary. Don't set
6202 deprecated_frame_chain, deprecated_frame_saved_pc,
6203 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6204 save_dummy_frame_tos, unwind_pc. Call
6205 frame_unwind_append_predicate and frame_base_set_default. Don't
6206 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6207 Don't set frameless_function_invocation. Don't set
6208 deprecated_register_bytes, deprecated_register_size,
6209 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6210 * i386-linux-tdep.c: Fix formatting in some comments.
6211 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6212 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6213 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6214 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6215 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6216 redundant parentheses.
6217 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6218 (i386_linux_sigcontext_addr): Use it. Rewrite.
6219 (find_minsym_and_objfile): Change name of second argument.
6220 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6221 changed. Use frame_pc_unwind instead of
6222 DEPRECATED_SAVED_PC_AFTER_CALL.
6223 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6224 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6225 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6226 unwinder.
6227 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6228 "dummy-frame.h".
6229 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6230 (_initialize_i386_cygwin_tdep): New prototype.
6231 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6232 deprecated_frame_chain_valid.
6233 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6234 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6235 Rely on the SVR4 defaults.
6236 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6237 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6238
c89b70f1
AC
62392003-05-30 Andrew Cagney <cagney@redhat.com>
6240
6241 * infcall.c (call_function_by_hand): Always call
6242 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6243
85b32d22
RH
62442003-05-30 Richard Henderson <rth@redhat.com>
6245
c89b70f1
AC
6246 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6247 increment.
85b32d22 6248
bfe51b1e
JB
62492003-05-29 Jim Blandy <jimb@redhat.com>
6250
6251 Use gdbarch methods for solib stuff on PowerPC Linux.
6252 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6253 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6254 show through.
6255 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6256 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6257 giving the same effect as the #definitions above.
6258
1abf022c
AF
62592003-05-29 Adam Fedor <fedor@gnu.org>
6260
6261 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6262 (find_implementation_from_class): Replace it with the standard
6263 case i.e. do nothing.
6264
d2427a71
RH
62652003-05-29 Richard Henderson <rth@redhat.com>
6266
6267 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6268 (alpha_linux_sigtramp_offset): Use it. Make static.
6269 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6270 update for new frame model.
6271 * alpha-mdebug-tdep.c: New file.
6272 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6273 (alpha_osf1_init_abi): Install it.
6274 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6275 (linked_proc_desc_table): Remove.
6276 (alpha_frame_past_sigtramp_frame): Remove.
6277 (alpha_dynamic_sigtramp_offset): Remove.
6278 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6279 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6280 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6281 (push_sigtramp_desc): Remove.
6282 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6283 (alpha_cannot_store_register): Likewise.
6284 (alpha_sigcontext_addr): Remove.
6285 (alpha_find_saved_regs): Remove.
6286 (alpha_frame_init_saved_regs): Remove.
6287 (alpha_init_frame_pc_first): Remove.
6288 (read_next_frame_reg): Remove.
6289 (alpha_frame_saved_pc): Remove.
6290 (alpha_saved_pc_after_call): Remove.
6291 (temp_proc_desc, temp_saved_regs): Remove.
6292 (alpha_about_to_return): Remove.
6293 (cached_proc_desc): Remove.
6294 (alpha_frame_chain): Remove.
6295 (alpha_print_extra_frame_info): Remove.
6296 (alpha_init_extra_frame_info): Remove.
6297 (alpha_frame_locals_address): Remove.
6298 (alpha_frame_args_address): Remove.
6299 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6300 (alpha_push_dummy_frame): Remove.
6301 (alpha_pop_frame): Remove.
6302 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6303 (alpha_read_insn): New.
6304 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6305 for different insn encodings.
6306 (alpha_in_lenient_prologue): Remove.
6307 (struct alpha_sigtramp_unwind_cache): New.
6308 (alpha_sigtramp_frame_unwind_cache): New.
6309 (alpha_sigtramp_register_address): New.
6310 (alpha_sigtramp_frame_this_id): New.
6311 (alpha_sigtramp_frame_prev_register): New.
6312 (alpha_sigtramp_frame_unwind): New.
6313 (alpha_sigtramp_frame_p): New.
6314 (struct alpha_heuristic_unwind_cache): New.
6315 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6316 don't count nop insns that occur between functions.
6317 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6318 heuristic_proc_desc, but without the mdebug wrapping.
6319 (alpha_heuristic_frame_this_id): New.
6320 (alpha_heuristic_frame_prev_register): New.
6321 (alpha_heuristic_frame_unwind): New.
6322 (alpha_heuristic_frame_p): New.
6323 (alpha_heuristic_frame_base_address): New.
6324 (alpha_heuristic_frame_base): New.
6325 (alpha_unwind_dummy_id): New.
6326 (alpha_unwind_pc): New.
6327 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6328 frame related deprecated initializations; install replacements.
6329 (alpha_dump_tdep): Remove.
6330 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6331 (alpha_read_insn, alpha_after_prologue,
6332 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6333 alpha_heuristic_frame_prev_register,
6334 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6335 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6336 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6337 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6338
93ec1121
AC
63392003-05-29 Andrew Cagney <cagney@redhat.com>
6340
6341 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6342 dependant on the availability of ASSERT_FUNCTION.
6343 (ASSERT_FUNCTION): Do not define when there is no function name.
6344
98f08d3d
KB
63452003-05-29 Kevin Buettner <kevinb@redhat.com>
6346
6347 From Jimi X <jimix@watson.ibm.com>:
6348 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6349
0897f59b
JB
63502003-05-28 Jim Blandy <jimb@redhat.com>
6351
6352 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6353 argument to ptrace to int; the system headers should give it the
6354 right type, and pointers don't fit in ints on powerpc64-*-*.
6355
14898363
L
63562003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6357
6358 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6359 DW_TAG_catch_block.
6360
a7a48797
EZ
63612003-05-26 Elena Zannoni <ezannoni@redhat.com>
6362
6363 * stabsread.c (dbx_lookup_type): Make static.
6364 (read_type): Ditto.
6365 (add_undefined_type): Ditto.
6366 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6367 not export.
6368
f5479e9c
EZ
63692003-05-26 Elena Zannoni <ezannoni@redhat.com>
6370
6371 * hpread.c (hpread_has_name): Make static.
6372 (hpread_psymtab_to_symtab): Ditto.
6373 (file_exists): Ditto.
6374 (hpread_call_pxdb): Ditto.
6375 (hpread_pxdb_needed): Ditto.
6376 (hpread_quick_traverse): Ditto.
6377 (hpread_get_header): Ditto.
6378 (hpread_get_lntt): Ditto.
6379 (hpread_get_slt): Ditto.
6380 (class_of): Ditto.
6381
eb2e12d7
AS
63822003-05-25 Andreas Schwab <schwab@suse.de>
6383
78bf922a
AS
6384 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6385 stack_align and deprecated_extra_stack_alignment_needed.
6386 (m68k_stack_align): Delete.
6387
eb2e12d7
AS
6388 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6389 (m68k_register_virtual_size): Likewise.
6390 (altos_skip_prologue): Remove obsolete function.
6391 (isi_frame_num_args): Likewise.
6392 (news_frame_num_args): Likewise.
6393 (m68k_fix_call_dummy): Make static.
6394 (m68k_push_dummy_frame): Likewise.
6395 (m68k_pop_frame): Likewise.
6396 (m68k_skip_prologue): Likewise.
6397 (m68k_frame_init_saved_regs): Likewise.
6398 (m68k_saved_pc_after_call): Likewise.
6399 (m68k_get_longjmp_target): Make multi-arch.
6400 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6401 structure. Register m68k_get_longjmp_target if enabled.
6402 * m68k-tdep.h (struct gdbarch_tdep): Define.
6403 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6404
6405 * Makefile.in (config.status): Also depend on configure.tgt
6406 and configure.host.
6407 (m68klinux-tdep.o): Update dependencies.
6408 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6409 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6410 (M68K_LINUX_JB_PC): Define.
6411 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6412 and take additional parameter.
6413 (m68k_linux_sigtramp_saved_pc): Update.
6414 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6415 m68k_linux_pc_in_sigtramp, in_plt_section,
6416 find_solib_trampoline_target.
6417 * config/m68k/tm-linux.h: Don't include any tm headers.
6418 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6419 (JB_ELEMENT_SIZE): Likewise.
6420 (JB_PC): Likewise.
6421 (GET_LONGJMP_TARGET): Likewise.
6422 (IN_SIGTRAMP): Likewise.
6423 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6424
eb2c22dc
MK
64252003-05-25 Mark Kettenis <kettenis@gnu.org>
6426
6427 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6428 (sparc32_push_arguments): Re-implement by calling
6429 sparc32_do_push_arguments.
6430
44b7b84e
MK
64312003-05-25 Mark Kettenis <kettenis@gnu.org>
6432
6433 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6434 SPARC_O1_REGNUM): New defines.
6435 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6436 (sparc32_store_return_value): New function.
6437 (sparc_extract_struct_value_address): Rewrite to operate on a
6438 regcache.
6439 (sparc_gdbarch_init): Don't set
6440 deprecated_extract_struct_value_address. Set
6441 extract_struct_value_address instead. Don't set
6442 deprecated_extract_return_value and deprecated_store_return_value
6443 for 32-bit targets. Set extract_return_value and
6444 store_return_value instead.
6445 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6446 DEPRECTAED_EXTRACT_RETURN_VALUE,
6447 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6448 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6449 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6450 (sparc_store_return_value): Remove prototype.
6451 (sparc32_store_return_value): New prototype.
6452 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6453 Adjust prototypes.
6454
f6ad61e3
MK
64552003-05-24 Mark Kettenis <kettenis@gnu.org>
6456
6457 * sparcnbsd-tdep.c: Include "gdb_string.h".
6458
b276f1bb
AC
64592003-05-23 Andrew Cagney <cagney@redhat.com>
6460
6461 * p-valprint.c (pascal_val_print): Replace extract_address with
6462 the inline equivalent extract_unsigned_integer.
6463 * jv-valprint.c (java_value_print): Ditto.
6464 * ada-valprint.c (ada_val_print_1): Ditto.
6465 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6466
e76c5fcc
TR
64672003-05-23 Theodore A. Roth <troth@openavr.org>
6468
6469 * blockframe.c (frameless_look_for_prologue): Remove unused
6470 after_prologue variable.
6471
2cdd89cb
MK
64722003-05-23 Mark Kettenis <kettenis@gnu.org>
6473
6474 * blockframe.c (get_pc_function_start): Rewrite to avoid
6475 asignments in if-statements.
6476
182d43bc
EZ
64772003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6478
6479 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 6480 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
6481 files, don't relocate absolute symbols (and do use mst_abs).
6482
e8f3fcdd
AC
64832003-05-23 Andrew Cagney <cagney@redhat.com>
6484
6485 * objc-lang.c: Include "gdb_assert.h".
6486 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6487 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6488 (gdb_check, gdb_check_fatal): Delete functions.
6489 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6490 gdb_assert.
6491 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6492 * Makefile.in (objc-lang.o): Update dependencies.
6493
3c23e6fb
ILT
64942003-05-22 Ian Lance Taylor <ian@airs.com>
6495
6496 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6497 with fprintf_filtered, not fprintf_unfiltered.
6498
af1342ab
AC
64992003-05-22 Andrew Cagney <cagney@redhat.com>
6500
6501 * stack.c (frame_info): Inline extract_address, replacing it with
6502 extract_unsigned_integer.
6503 * findvar.c (unsigned_pointer_to_address): Ditto.
6504 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6505 * dwarf2expr.c (dwarf2_read_address): Ditto.
6506 * frame.c (frame_pc_unwind): Update comment.
6507 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6508
47e242ec
JJ
65092003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6510
6511 * infptrace.c (detach): Call print_sys_errmsg rather than
6512 perror_with_name to issue warning message when errno is non-zero
6513 after calling ptrace detach.
6514
e2ac8128
JB
65152003-05-21 J. Brobecker <brobecker@gnat.com>
6516
6517 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6518 macro definitions from here...
6519 * hppa-tdep.c: ...to there.
6520
92b3541e
KB
65212003-05-20 Kevin Buettner <kevinb@redhat.com>
6522
6523 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6524 register_ptrace_addr(). Fix all callers.
6525
55809acb
AS
65262003-05-21 Andreas Schwab <schwab@suse.de>
6527
6528 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6529 dependencies.
6530 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6531 end.
6532 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6533 (_initialize_m68k_linux_tdep): New function.
6534 (m68k_linux_frame_saved_pc): Make static.
6535 (m68k_linux_extract_return_value): Likewise.
6536 (m68k_linux_store_return_value): Likewise.
6537 (m68k_linux_extract_struct_value_address): Likewise.
6538 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6539 Remove.
6540 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6541 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6542 (DEPRECATED_FRAME_SAVED_PC): Remove.
6543
0fbc10f7
KW
65442003-05-20 Kris Warkentin <kewarken@qnx.com>
6545
6546 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6547 regset numbering rather than our own.
6548
58da2eb2
DC
65492003-05-19 David Carlton <carlton@bactrian.org>
6550
6551 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6552
1fcb5155
DC
65532003-05-19 David Carlton <carlton@bactrian.org>
6554
6555 Partial fix for PR c++/827.
6556 * cp-support.h: Include symtab.h.
6557 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6558 * cp-namespace.c: Update contributors.
6559 (cp_lookup_symbol_nonlocal): New.
6560 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6561 (lookup_symbol_file): Ditto.
6562 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6563 * block.h: Declare block_scope, block_using, block_global_block.
6564 * block.c (block_scope): New.
6565 (block_using, block_global_block): Ditto.
6566 * Makefile.in (cp_support_h): Depend on symtab_h.
6567 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6568
5f9a71c3
DC
65692003-05-19 David Carlton <carlton@bactrian.org>
6570
6571 * language.h (struct language_defn): Add 'la_value_of_this'
6572 and 'la_lookup_symbol_nonlocal' members.
6573 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6574 lookup_symbol_static, lookup_symbol_global,
6575 lookup_symbol_aux_block.
6576 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6577 if we should search fields of this and how to do static/global
6578 lookup.
6579 (lookup_symbol_aux_block): Make extern.
6580 (basic_lookup_symbol_nonlocal): New.
6581 (lookup_symbol_static, lookup_symbol_global): Ditto.
6582 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6583 'la_lookup_symbol_nonlocal' members.
6584 * c-lang.c (c_language_defn, cplus_language_defn)
6585 (asm_language_defn, minimal_language_defn): Ditto.
6586 * jv-lang.c (java_language_defn): Ditto.
6587 * language.c (unknown_language_defn, auto_language_defn)
6588 (local_language_defn): Ditto.
6589 * m2-lang.c (m2_language_defn): Ditto.
6590 * objc-lang.c (objc_language_defn): Ditto.
6591 * scm-lang.c (scm_language_defn): Ditto.
6592 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6593 * p-lang.c (pascal_language_defn): Ditto for both.
6594 * Makefile.in (f-lang.o): Depend on value_h.
6595 (p-lang.o): Ditto.
6596
89a9d1b1
DC
65972003-05-19 David Carlton <carlton@bactrian.org>
6598
6599 * block.h: Declare block_static_block.
6600 * block.c (block_static_block): New.
6601 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6602 lookup_symbol_aux_local, calling block_static_block instead.
6603 (lookup_symbol_aux_local): Delete 'static_block' argument.
6604
eed3f8ab
DC
66052003-05-19 David Carlton <carlton@bactrian.org>
6606
6607 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6608
a09d8bda
ML
66092003-05-19 Michal Ludvig <mludvig@suse.cz>
6610
6611 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6612 register numbers mapping.
6613
69636828
AF
66142003-05-18 Adam Fedor <fedor@gnu.org>
6615
6616 * symtab.c (completion_list_objc_symbol): New function.
6617 (make_symbol_completion_list): Use it to add ObjC symbols
6618 when looking though the list.
6619 (language_search_unquoted_string): New function.
6620 (make_file_symbol_completion_list): Use it.
6621
55baeb84
AS
66222003-05-18 Andreas Schwab <schwab@suse.de>
6623
d0b45d99
AS
6624 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6625 dependencies.
6626 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6627 as m68k_linux_extract_return_value.
6628 (DEPRECATED_STORE_RETURN_VALUE): Define as
6629 m68k_linux_store_return_value.
6630 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6631 m68k_linux_extract_struct_value_address.
6632 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6633 get_next_frame, get_frame_base, get_frame_pc.
6634 (m68k_linux_frame_saved_pc): Use get_frame_base.
6635 (m68k_linux_extract_return_value): New function.
6636 (m68k_linux_store_return_value): New function.
6637 (m68k_linux_extract_struct_value_address): New function.
6638 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6639
55baeb84
AS
6640 * c-exp.y (typebase): Remove duplicate occurence of
6641 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 6642 of lookup_signed_typename.
55baeb84 6643
b6b08ebf
MK
66442003-05-18 Mark Kettenis <kettenis@gnu.org>
6645
6646 * dwarf2loc.c (find_location_expression): Change type of second
6647 argument to `size_t *'.
6648 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6649 for size variable.
6650
5ad1c190
DC
66512003-05-18 David Carlton <carlton@bactrian.org>
6652
6653 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6654 'linkage_name'. Add comment.
6655 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6656 'linkage_name'.
6657 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6658 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6659 (lookup_block_symbol): Ditto.
6660
b8b527c5
AC
66612003-05-16 Andrew Cagney <cagney@redhat.com>
6662
6663 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6664 * gdbarch.h, gdbarch.c: Re-generate.
6665 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6666 * TODO (REGISTER_BYTES): Delete reference.
6667 * alpha-tdep.c (alpha_gdbarch_init): Update.
6668 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6669 * x86-64-tdep.c (x86_64_init_abi): Update.
6670 * vax-tdep.c (vax_gdbarch_init): Update.
6671 * v850-tdep.c (v850_gdbarch_init): Update.
6672 * sparc-tdep.c (sparc_gdbarch_init): Update.
6673 * sh-tdep.c (sh_gdbarch_init): Update.
6674 * s390-tdep.c (s390_gdbarch_init): Update.
6675 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6676 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6677 (ns32k_gdbarch_init_32382): Update.
6678 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6679 * mcore-tdep.c (mcore_gdbarch_init): Update.
6680 * m68k-tdep.c (m68k_gdbarch_init): Update.
6681 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6682 * ia64-tdep.c (ia64_gdbarch_init): Update.
6683 * i386-tdep.c (i386_gdbarch_init): Update.
6684 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6685 * hppa-tdep.c (hppa_gdbarch_init): Update.
6686 * h8300-tdep.c (h8300_gdbarch_init): Update.
6687 * frv-tdep.c (frv_gdbarch_init): Update.
6688 * cris-tdep.c (cris_gdbarch_init): Update.
6689 * avr-tdep.c (avr_gdbarch_init): Update.
6690 * arm-tdep.c (arm_gdbarch_init): Update.
6691 * sparc-tdep.c (sparc_pop_frame): Update.
6692 * rs6000-tdep.c (rs6000_pop_frame): Update.
6693 * remote.c (init_remote_state): Update.
6694 (remote_prepare_to_store): Update.
6695 * remote-vx.c (vx_prepare_to_store): Update.
6696 * remote-sds.c (sds_fetch_registers): Update.
6697 (sds_prepare_to_store): Update.
6698 * remote-array.c: Update.
6699 * regcache.c (init_legacy_regcache_descr): Update.
6700 (init_regcache_descr): Update.
6701 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6702 (mips_o64_extract_return_value): Update.
6703 * irix5-nat.c (fetch_core_registers): Update.
6704 * irix4-nat.c (fetch_core_registers): Update.
6705 * i386-tdep.h: Update.
6706 * hppa-tdep.c (pa_do_registers_info): Update.
6707 (pa_do_strcat_registers_info): Update.
6708 * cris-tdep.c (cris_register_bytes_ok): Update.
6709 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6710 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6711 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6712 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6713 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6714 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6715 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6716 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6717 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6718 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6719 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6720 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6721 (REGISTER_BYTES_OK): Update.
6722 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6723 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6724
ee2842e2
ILT
67252003-05-16 Ian Lance Taylor <ian@airs.com>
6726
6727 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6728 (vax_print_insn, print_insn_arg): Remove static functions.
6729 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6730 print_insn_vax from opcodes library.
6731 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6732
973177d3
AC
67332003-05-15 Andrew Cagney <cagney@redhat.com>
6734
aaab4dba
AC
6735 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6736 * target.h (memory_breakpoint_from_pc): Delete declaration.
6737 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6738 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6739 * monitor.c (monitor_insert_breakpoint): Use
6740 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6741 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6742 * gdbarch.h, gdbarch.c: Re-generate.
6743 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6744 (sparc_gdbarch_init): Set breakpoint_from_pc to
6745 sparc_breakpoint_from_pc.
6746 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6747 (BREAKPOINT_FROM_PC): Define.
6748 (sparc_breakpoint_from_pc): Declare.
6749 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6750 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6751 (BREAKPOINT_FROM_PC): Define.
6752 (BREAKPOINT): Delete macro.
6753 * target.h: Update comment.
6754 * s390-tdep.c (s390_gdbarch_init): Update comments.
6755 * remote.c: Update comments.
6756 * remote-mips.c: Update comments.
6757 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6758 * mem-break.c: Update comment.
6759 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6760 (ia64_memory_insert_breakpoint): Update.
6761 * config/sparc/tm-sparc.h: Update comment.
6762 * config/pa/tm-hppa64.h: Update comment.
6763 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6764 (rs6000_breakpoint_from_pc): Update.
6765 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6766 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6767 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6768 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6769 (mips_breakpoint_from_pc): Update.
6770 (mips_dump_tdep): Update.
6771
e06963ff
AC
6772 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6773 * minsyms.c (lookup_minimal_symbol): Inline
6774 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6775
973177d3
AC
6776 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6777 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6778 * p-lang.c (pascal_printstr): Ditto.
6779 * objc-lang.c (objc_printstr): Ditto.
6780 * m2-lang.c (m2_printstr): Ditto.
6781 * jv-valprint.c (java_print_value_fields): Ditto.
6782 * f-lang.c (f_printstr): Ditto.
6783 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6784 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6785 for repeat_count_threshold.
6786 * Makefile.in (cp-valprint.o): Update dependencies.
6787
5ea2bd7f 67882003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6789
5ea2bd7f
JJ
6790 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6791 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
6792 they start with mov r2,r12. Support skipping over indirect stores
6793 of the input registers. Upon hitting a non-nop branch instruction
6794 or predicated instruction, bail out by setting lim_pc to the current
6795 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
6796 beyond our calculated value and we have trust_limit set,
6797 use the lim_pc value.
6798
cc8c88f3
AC
67992003-05-15 Andrew Cagney <cagney@redhat.com>
6800
6801 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6802 generic_find_dummy_frame.
6803 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6804 (deprecated_generic_find_dummy_frame): Update.
6805 (deprecated_read_register_dummy): Update.
6806 * frame.c (deprecated_generic_get_saved_register): Update.
6807
909cd28e
TR
68082003-05-15 Theodore A. Roth <troth@openavr.org>
6809
6810 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6811 (avr_gdbarch_init): Set breakpoint_from_pc method.
6812
b923b08d
AC
68132003-05-15 Andrew Cagney <cagney@redhat.com>
6814
6815 * regcache.c (build_regcache): Set deprecated_register_valid
6816 directly.
6817 (deprecated_grub_regcache_for_register_valid): Delete function.
6818 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6819 declaration.
6820
ae2f03ac 68212003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
6822
6823 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
6824 * symtab.c (lookup_symbol_aux): Delete calls to
6825 lookup_symbol_aux_minsyms.
6826 (lookup_symbol_aux_minsyms): Comment out function and
6827 prototype. Delete lookup by mangled name.
ae2f03ac 6828
18ec9831
KB
68292003-05-14 Kevin Buettner <kevinb@redhat.com>
6830
6831 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6832 correctly indicate an empty stack and ``stack_allocated'' to the
6833 indicate the number of elements initially allocated.
6834 (dwarf_expr_grow_stack): Simplify method for computing new
6835 stack size. Don't loop infinitely if ``stack_len'' is zero.
6836 (execute_stack_op): Move ``ctx->in_reg'' initialization
6837 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6838 be used in conjuction with DW_OP_piece. Revise error message
6839 accordingly.
6840
de18ac1f
TR
68412003-05-14 Theodore A. Roth <troth@openavr.org>
6842
6843 * MAINTAINERS: Update my email address.
6844 * avr-tdep.c: Ditto.
6845
176620f1
EZ
68462003-05-14 Elena Zannoni <ezannoni@redhat.com>
6847
6848 * symtab.h (enum domain_enum): Rename from namespace_enum.
6849 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6850 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6851 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6852 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6853 TYPES_NAMESPACE, METHODS_NAMESPACE.
6854 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6855 (struct symbol, struct partial_symbol): Rename field
6856 'namespace_enum namespace' to 'domain_enum domain'.
6857 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6858 Delete old define kludge for namespace.
6859
6860 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6861 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6862 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6863 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6864 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6865 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6866 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6867 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6868 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6869 occurrences of the above.
6870
b7f31508
ILT
68712003-05-14 Ian Lance Taylor <ian@airs.com>
6872
6873 * Makefile.in (install-only): Use $(SHELL) when running
6874 mkinstalldirs.
6875
2fdbdd39
ILT
68762003-05-13 Ian Lance Taylor <ian@airs.com>
6877
a208d82c
ILT
6878 * MAINTAINERS (write after approval): Add myself.
6879
2fdbdd39
ILT
6880 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6881 second and third arguments.
6882 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6883 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6884
fbd9dcd3
AC
68852003-05-13 Andrew Cagney <cagney@redhat.com>
6886
6887 * defs.h (store_address): Delete declaration.
6888 findvar.c (store_address): Delete function.
6889 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6890 store_unsigned_integer.
6891 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6892 * v850-tdep.c (v850_push_arguments): Ditto.
6893 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6894 * sh-tdep.c (sh64_get_saved_register): Ditto.
6895 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6896 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6897 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6898 (mips_get_saved_register): Ditto.
6899 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6900 (find_func_descr, ia64_push_arguments): Ditto.
6901 * i386-tdep.c (i386_push_arguments): Ditto.
6902 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6903 * frv-tdep.c (frv_push_arguments): Ditto.
6904 * frame.c (legacy_saved_regs_prev_register): Ditto.
6905 (deprecated_generic_get_saved_register): Ditto.
6906 * findvar.c (unsigned_address_to_pointer): Ditto.
6907 * dwarf2read.c (dwarf2_const_value): Ditto.
6908 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6909 * alpha-tdep.c (alpha_push_arguments): Ditto.
6910
6760f9e6
JB
69112003-05-12 J. Brobecker <brobecker@gnat.com>
6912
6913 * NEWS: Mention that the hppa-hpux port has been partially
6914 multiarched (32bit ABIT only, so far).
6915
30e221b4
AC
69162003-05-11 Andrew Cagney <cagney@redhat.com>
6917
6918 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6919 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6920 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6921 sim/testsuite/sim/arm/misaligned2.ms, and
6922 sim/testsuite/sim/arm/misaligned3.ms.
6923 * disasm.h (struct ui_file): Add opaque struct declaration.
6924 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6925 * frame.h (struct ui_file): Ditto.
6926
dea7f9ba
MK
69272003-05-11 Mark Kettenis <kettenis@gnu.org>
6928
6929 * value.h: Pretty print.
6930
01986c48
MK
69312003-05-10 Mark Kettenis <kettenis@gnu.org>
6932
6933 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6934
123a958e
AC
69352003-05-08 Andrew Cagney <cagney@redhat.com>
6936
6937 * regcache.h (max_register_size): Delete declaration.
6938 * regcache.c (max_register_size): Delete function.
6939 (struct regcache_descr): Delete field "max_register_size".
6940 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6941 registers fit in MAX_REGISTER_SIZE.
6942 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6943 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6944 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6945 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6946 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6947 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6948 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6949 * dve3900-rom.c, hppa-tdep.c: Ditto.
6950
eb294659
DC
69512003-05-08 David Carlton <carlton@math.stanford.edu>
6952
6953 * valops.c (push_word): Fix typo.
6954
d9d9c31f
AC
69552003-05-08 Andrew Cagney <cagney@redhat.com>
6956
6957 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6958 * gdbarch.h: Re-generate.
6959 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6960 (legacy_max_register_raw_size): Delete declaration.
6961 * regcache.c (legacy_max_register_raw_size): Delete function.
6962 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6963 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6964 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6965 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6966 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6967 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6968 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6969 * findvar.c, dwarf2cfi.c: Ditto.
6970
22540ece
AC
69712003-05-08 Andrew Cagney <cagney@redhat.com>
6972
6973 * mips-tdep.c (read_signed_register): New function, moved to here
6974 from "regcache.c".
6975 (read_signed_register_pid): Ditto.
6976 * regcache.c (read_signed_register_pid): Delete function, moved to
6977 "mips-tdep.c".
6978 (read_signed_register): Ditto.
6979 * regcache.h (read_signed_register): Delete declaration.
6980 (read_signed_register_pid): Delete declaration.
6981
0c92afe8
AC
69822003-05-08 Andrew Cagney <cagney@redhat.com>
6983
6984 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6985 * gdbarch.h: Re-generate.
6986 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6987 (legacy_max_register_virtual_size): Delete declaration.
6988 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6989 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6990 * tracepoint.c (memrange_sortmerge): Ditto.
6991 * sparc-tdep.c (sparc_print_registers): Ditto.
6992 * regcache.c (legacy_max_register_virtual_size): Delete function.
6993
6037b830
JB
69942002-05-08 J. Brobecker <brobecker@gnat.com>
6995
6996 * fork-child.c (escape_bang_in_quoted_argument): New function.
6997 (fork_inferior): Escape '!' characters in quoted arguments
6998 only when needed.
6999
5d62c8b1
JB
70002003-05-08 J. Brobecker <brobecker@gnat.com>
7001
7002 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7003 the language of the CU is not currently supported by GDB.
7004
20a0e81d
JB
70052003-05-08 J. Brobecker <brobecker@gnat.com>
7006
7007 * defs.h (language): Add language_minimal enum value.
7008 * c-lang.c (minimal_language_defn): New language definition.
7009 (_initialize_c_language): Add the new minimal language to the list
7010 of languages known to GDB.
7011
710ee10a
KB
70122003-05-08 Kevin Buettner <kevinb@redhat.com>
7013
7014 * frame.c (get_frame_type): Don't attempt to lazily initialize
7015 frame's unwinder for legacy frames.
7016
1750fa04
AC
70172003-05-07 Andrew Cagney <cagney@redhat.com>
7018
7019 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7020 and "regcache" parameters.
7021 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7022
ddf9f258 70232003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7024
7025 * dwarf2read.c (dwarf_decode_lines): Only use output of
7026 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
7027 the current address.
7028
87767c29
AC
70292003-05-07 Andrew Cagney <cagney@redhat.com>
7030
7031 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7032 code.
7033
5e7b2f39
JB
70342003-05-07 Jim Blandy <jimb@redhat.com>
7035
7036 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7037 'maint info symtabs' and 'maint info psymtabs'.
7038 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7039 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7040 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7041 Declarations updated.
7042 * maint.c (maintenance_list_command): Delete.
7043 (_initialize_maint_cmds): Update calls to add_cmd.
7044 * gdbcmd.h (maintenancelistlist): Delete declaration.
7045 * cli/cli-cmds.c (maintenancelistlist): Delete.
7046 (init_cmd_lists): Don't initialize it.
7047 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7048
f6684c31
AC
70492003-05-07 Andrew Cagney <cagney@redhat.com>
7050
7051 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7052 "regcache".
7053 (d10v_print_registers_info): Update.
7054 (d10v_dmap_register, d10v_imap_register): Delete functions.
7055 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7056 and "imap_register".
7057 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7058 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7059 * arch-utils.c (generic_remote_translate_xfer_address): Add
7060 "regcache" and "gdbarch" parameters.
7061 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7062 parameter. Change class to multi-arch.
7063 * gdbarch.h, gdbarch.c: Re-generate.
7064 * remote.c (remote_xfer_memory): Use
7065 gdbarch_remote_translate_xfer_address.
8ffd9b1b 7066
e4846b08
JJ
70672003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7068
7069 * infrun.c (prev_pc): Move declaration ahead of proceed().
7070 (proceed): Refresh prev_pc value before resuming.
7071 (stop_stepping): Remove code to refresh prev_pc.
7072
6b71b8ac
KW
70732003-05-06 Kris Warkentin <kewarken@qnx.com>
7074
7075 * nto-tdep.c: Removed stray comment.
7076
47979a4b
KW
70772003-05-06 Kris Warkentin <kewarken@qnx.com>
7078
7079 * i386-nto-tdep.c: Fix old K&R function definitions.
7080 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7081 Also change add_show_from_set() call to add_setshow_cmd().
7082 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7083
00905d52
AC
70842003-05-05 Andrew Cagney <cagney@redhat.com>
7085
7086 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7087 (fprint_dummy_frames): New function.
7088 (maintenance_print_dummy_frames): New function.
7089 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7090 * frame.c (fprint_frame_id): Make global.
7091 * frame.h (fprint_frame_id): Declare.
7092 * Makefile.in (dummy-frame.o): Update dependencies.
7093
b1e29e33
AC
70942003-05-05 Andrew Cagney <cagney@redhat.com>
7095
7096 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7097 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7098 SIZEOF_CALL_DUMMY_WORDS.
7099 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7100 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7101 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7102 CALL_DUMMY_BREAKPOINT_OFFSET.
7103 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7104 CALL_DUMMY_START_OFFSET.
7105 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7106 * gdbarch.h, gdbarch.c: Re-generate.
7107 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7108 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7109 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7110 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7111 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7112 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7113 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7114 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7115 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7116 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7117 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7118 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7119 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7120 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7121 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
7122
71232003-05-05 Kris Warkentin <kewarken@qnx.com>
7124
7125 * configure.tgt: Add i[3456]86-*-nto*.
7126 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7127 * nto-tdep.c: New file. Neutrino target support routines.
7128 * nto-tdep.h: New file. Neutrino target header.
7129 * config/tm-qnxnto.h: New file.
7130 * config/i386/i386nto.mt: New file.
7131 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 7132
0ce3d317
AC
71332003-05-04 Andrew Cagney <cagney@redhat.com>
7134
7135 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7136 (load_infrun_state): Ditto.
7137 (struct thread_info): Drop "prev_func_name" field.
7138 * thread.c (load_infrun_state): Update.
7139 (save_infrun_state): Update.
7140 * infrun.c (prev_func_name): Delete variable.
7141 (init_wait_for_inferior): Do not clear prev_func_name.
7142 (stop_stepping, keep_going, context_switch): Do not swap
7143 prev_func_name.
7144 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7145 instead of PC_IN_SIGTRAMP.
7146
46654a5b
AC
71472003-05-04 Andrew Cagney <cagney@redhat.com>
7148
7149 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7150 REGISTER_BYTE with register_offset_hack.
7151 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7152 that REGISTER_BYTE is consistent with the regcache.
7153 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7154 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 7155
14b08c1b
MK
71562003-05-04 Mark Kettenis <kettenis@gnu.org>
7157
04c8243f
MK
7158 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7159 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7160
14b08c1b
MK
7161 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7162
c7a11e01
JB
71632003-05-03 J. Brobecker <brobecker@gnat.com>
7164
7165 From Thierry Schneider <tpschneider1@yahoo.com>
7166 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7167 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7168 (mi-cmd-symbol.o): Add rule.
7169
7043d8dc
AC
71702003-05-03 Andrew Cagney <cagney@redhat.com>
7171
7172 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7173 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7174 * gdbarch.h, gdbarch.c: Re-generate.
7175 * d10v-tdep.c (d10v_push_dummy_code): New function.
7176 (d10v_gdbarch_init): Set push_dummy_code.
7177 * infcall.c (legacy_push_dummy_code): New function.
7178 (generic_push_dummy_code): New function.
7179 (push_dummy_code): New function.
7180 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7181 instead of dummy_addr, to push_dummy_call. Move call to
7182 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7183 switch.
7184 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7185
92bf2b80
AC
71862003-05-03 Andrew Cagney <cagney@redhat.com>
7187
7188 * disasm.h (print_insn): Declare.
7189 * disasm.c (init_gdb_disassemble_info): New function.
7190 (gdb_disassembly): Call init_gdb_disassemble_info.
7191 (gdb_print_insn): New function.
7192 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7193 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7194 * mcore-tdep.c: Include "disasm.h"
7195 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7196 * d10v-tdep.c: Include "disasm.h".
7197 (display_trace): Call gdb_print_insn, instead of print_insn.
7198 (print_insn): Delete function.
7199 * printcmd.c: Include "disasm.h".
7200 (print_insn): Delete function.
7201 (print_formatted): Call gdb_print_insn, instead of print_insn.
7202 * Makefile.in (printcmd.o): Update dependencies.
7203 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 7204
27d94c49
AC
72052003-05-02 Andrew Cagney <cagney@redhat.com>
7206
82de1e5b
AC
7207 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7208 PC_REGNUM, re-indent.
7209 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7210 PC_REGNUM isn't set.
7211
27d94c49
AC
7212 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7213 * gdbarch.h, gdbarch.c: Re-generate.
7214 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7215 register_virtual_size, pc_regnum, or register_bytes.
7216 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7217 (d10v_register_type): Use D10V_PC_REGNUM.
7218 (d10v_print_registers_info, d10v_read_pc): Ditto.
7219 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7220 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7221
a9c0dc7f
DC
72222003-05-02 David Carlton <carlton@bactrian.org>
7223
7224 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7225 the name with mstrsave.
7226
e33d66ec
EZ
72272003-05-02 Elena Zannoni <ezannoni@redhat.com>
7228
7229 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7230 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7231 (host_charset_name, target_charset_name): New vars for use by
7232 set/show commands.
7233 (host_charset_enum, target_charset_enum): New enums for set/show
7234 commands.
7235 (set_charset_sfunc, set_host_charset_sfunc,
7236 set_target_charset_sfunc): New functions.
7237 (set_host_charset, set_target_charset): Make static.
7238 (list_charsets, set_host_charset_command,
7239 set_target_charset_command): Delete functions.
7240 (show_charset_command): Rewrite as....
7241 (show_charset): Hook this up with the set/show command mechanism.
7242 (_initialize_charset): Change names of charsets to match the
7243 set/show enums. Use host_charset_name and target_charset_name.
7244 Use set/show mechanism for charset, host-charset, target-charset
7245 commands. Do not make 'show host-charset' and 'show
7246 target-charset' be aliases of 'show charset'.
7247
7248 * charset.h (set_host_charset, set_target_charset): Don't export,
7249 they are not used outside the file.
7250
2b6fd0d8
AC
72512003-05-01 Andrew Cagney <cagney@redhat.com>
7252
7253 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7254 (gdb_disassembly): Make "di" non static, always initialize and
7255 cleanup. Always use dis_asm_read_memory.
7256 (gdb_dis_asm_read_memory): Delete function.
7257
6ae2f580
AC
72582003-05-01 Andrew Cagney <cagney@redhat.com>
7259
7260 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7261 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7262
810ecf9f
AC
72632003-04-30 Andrew Cagney <cagney@redhat.com>
7264
7265 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7266 "tm_print_insn_info".
7267 (TARGET_PRINT_INSN_INFO): Delete macro.
7268 (dis_asm_read_memory): Delete function declaration.
7269 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7270 (tm_print_insn_info): Delete variable definition.
7271 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7272 * gdbarch.h, gdbarch.c: Re-generate.
7273 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7274 "deprecated_tm_print_insn_info".
7275 * mcore-tdep.c (mcore_dump_insn): Ditto.
7276 * mips-tdep.c (mips_gdbarch_init): Ditto.
7277 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7278 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7279 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7280 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7281 instead of TARGET_PRINT_INSN_INFO, add comment.
7282 * s390-tdep.c (s390_get_frame_info): Instead of
7283 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7284 (s390_check_function_end, s390_is_sigreturn): Ditto.
7285 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7286 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7287 * disasm.c: Include "gdbcore.h".
7288 (_initialize_disasm): New function, initialize
7289 "deprecated_tm_print_insn_info".
7290 (deprecated_tm_print_insn_info): New variable.
7291 (dis_asm_read_memory): Moved from "corefile.c", made static.
7292 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7293 * Makefile.in (disasm.o): Update dependencies.
7294
07020390
AC
72952003-04-30 Andrew Cagney <cagney@redhat.com>
7296
7297 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7298
a9fa03de
AF
72992003-04-29 Adam Fedor <fedor@gnu.org>
7300
7301 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7302 * infcall.c (find_function_addr): Make non-static.
7303 * infcall.h (find_function_addr): Declare.
7304 * Makefile.in (eval.o): Update dependencies.
7305
1bae87b9
AF
73062003-04-28 Adam Fedor <fedor@gnu.org>
7307
7308 * symtab.c (symbol_find_demangled_name): Check for and demangle
7309 ObjC symbols.
7310 (symbol_init_demangled_name): Init for language_objc as well.
7311
0ba6dca9
AC
73122003-04-28 Andrew Cagney <cagney@redhat.com>
7313
7314 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7315 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7316 * gdbarch.h, gdbarch.c: Re-generate.
7317 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7318 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7319 * inferior.h (deprecated_read_fp): Rename read_fp.
7320 (generic_target_read_fp): Delete declaration.
7321 * regcache.c (generic_target_read_fp): Delete function.
7322 (deprecated_read_fp): Replace read_fp, use
7323 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7324 * d10v-tdep.c (d10v_read_fp): Delete function.
7325 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7326
7327 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7328 deprecated_target_read_fp to generic_target_read_fp.
7329 * sh-tdep.c (sh_gdbarch_init): Ditto.
7330 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7331 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7332 * frv-tdep.c (frv_gdbarch_init): Ditto.
7333
7334 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7335 deprecated_fp_regnum.
7336 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7337 * vax-tdep.c (vax_gdbarch_init): Ditto.
7338 * v850-tdep.c (v850_gdbarch_init): Ditto.
7339 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7340 * sh-tdep.c (sh_gdbarch_init): Ditto.
7341 * s390-tdep.c (s390_gdbarch_init): Ditto.
7342 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7343 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7344 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7345 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7346 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7347 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7348 * i386-tdep.c (i386_gdbarch_init): Ditto.
7349 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7350 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7351 * frv-tdep.c (frv_gdbarch_init): Ditto.
7352 * cris-tdep.c (cris_gdbarch_init): Ditto.
7353 * avr-tdep.c (avr_gdbarch_init): Ditto.
7354 * arm-tdep.c (arm_gdbarch_init): Ditto.
7355 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7356
7357 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7358 * v850-tdep.c (v850_gdbarch_init): Ditto.
7359 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7360 * sh-tdep.c (sh_gdbarch_init): Ditto.
7361 * s390-tdep.c (s390_gdbarch_init): Ditto.
7362 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7363 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7364 * mips-tdep.c (mips_gdbarch_init): Ditto.
7365 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7366 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7367 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7368 * frv-tdep.c (frv_gdbarch_init): Ditto.
7369 * avr-tdep.c (avr_gdbarch_init): Ditto.
7370 * arm-tdep.c (arm_gdbarch_init): Ditto.
7371
7372 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7373 DEPRECATED_FP_REGNUM.
7374 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7375 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7376 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7377 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7378 (sparc32_register_virtual_type): Ditto.
7379 * sh-tdep.c (sh64_frame_chain): Ditto.
7380 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7381 (sh_nofp_frame_init_saved_regs): Ditto.
7382 (sh64_nofp_frame_init_saved_regs): Ditto.
7383 (sh_fp_frame_init_saved_regs): Ditto.
7384 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7385 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7386 * procfs.c (procfs_fetch_registers): Ditto.
7387 (procfs_store_registers): Ditto.
7388 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7389 (store_inferior_registers, fetch_core_registers): Ditto.
7390 (fetch_kcore_registers, clear_regs): Ditto.
7391 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7392 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7393 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7394 * nlm/i386.c (do_status): Ditto.
7395 * mipsv4-nat.c (supply_gregset): Ditto.
7396 * mips-tdep.c: Ditto for comments.
7397 * mips-nat.c (fetch_inferior_registers): Ditto.
7398 (store_inferior_registers, fetch_core_registers): Ditto.
7399 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7400 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7401 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7402 (i386_do_pop_frame, i386_register_type): Ditto.
7403 * hppa-tdep.c (hppa_frame_chain): Ditto.
7404 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7405 (hppa_pop_frame, hppa_read_fp): Ditto.
7406 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7407 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7408 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7409 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7410 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7411 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7412 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7413 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7414 * blockframe.c: Ditto for comments.
7415 * arch-utils.h: Ditto for comments.
7416 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7417 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7418 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7419 * alpha-tdep.h: Ditto for comments.
7420 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7421 (alpha_cannot_store_register): Ditto.
7422 (alpha_push_dummy_frame): Ditto.
7423 * alpha-nat.c (supply_gregset): Ditto.
7424
7425 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7426 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7427 * config/sparc/tm-sparc.h: Update comment.
7428
7429 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7430 deprecated_read_fp instead of TARGET_READ_FP.
7431 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7432 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7433 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7434 deprecated_read_fp instead of read_fp.
7435 * s390-tdep.c (s390_push_arguments): Ditto.
7436 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7437 * frame.h: Ditto in comments.
7438 * frame.c (legacy_get_prev_frame): Ditto.
7439 * dummy-frame.c (dummy_frame_this_id): Ditto.
7440 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7441
d7a27068
AC
74422003-04-28 Andrew Cagney <cagney@redhat.com>
7443
7444 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7445 * gdbarch.h, gdbarch.c: Re-generate.
7446 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7447 * vax-tdep.c (_initialize_vax_tdep): Update.
7448 * v850-tdep.c (_initialize_v850_tdep): Update.
7449 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7450 * s390-tdep.c (_initialize_s390_tdep): Update.
7451 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7452 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7453 * mips-tdep.c (_initialize_mips_tdep): Update.
7454 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7455 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7456 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7457 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7458 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7459 * frv-tdep.c (_initialize_frv_tdep): Update.
7460 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7461 (_initialize_cris_tdep): Update.
7462 * arch-utils.c (legacy_print_insn): Update.
7463 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7464
d2630e69
AF
74652003-04-26 Adam Fedor <fedor@gnu.org>
7466
7467 * linespec.c (decode_objc): New function to decode ObjC calls
7468 (decode_line_1): Check for ObjC calls (using decode_objc)
7469 * Makefile (linespec.o): Update dependencies.
7470
3086aeae
DJ
74712003-04-26 Daniel Jacobowitz <drow@mvista.com>
7472
7473 * breakpoint.h (struct breakpoint_ops): New.
7474 (struct breakpoint): Add ops member.
7475
7476 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7477 (mention): Use new breakpoint ops member.
7478 (set_raw_breakpoint): Initialize ops field to NULL.
7479 (print_exception_catchpoint, print_one_exception_catchpoint)
7480 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7481 (gnu_v3_exception_catchpoint_ops): New.
7482 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7483
1fbec6c3
AF
74842003-04-25 Adam Fedor <fedor@gnu.org>
7485
7486 * Makefile.in (COMMON_OBS): Add objc-lang.o
7487
0ef21242
AC
74882003-04-25 Andrew Cagney <cagney@redhat.com>
7489
7490 * d10v-tdep.c (print_insn): Delete function.
7491 (display_trace): Use TARGET_PRINT_INSN.
7492 (_initialize_d10v_tdep): Do not set tm_print_insn.
7493 (d10v_gdbarch_init): Set print_insn.
7494
f75493ed
AC
74952003-04-25 Andrew Cagney <cagney@redhat.com>
7496
7497 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7498 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7499 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7500 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7501 (nr_dmap_regs, a0_regnum): ... new functions.
7502 (d10v_print_registers_info): Use a0_regnum, use register_size.
7503 (d10v_register_byte): Delete function.
7504 (d10v_register_raw_size): Delete function.
7505 (d10v_register_type): Use a0_regnum.
7506 (d10v_print_registers_info): Use a0_regnum.
7507 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7508 (d10v_gdbarch_init): Do not set register_byte or
7509 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7510 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7511 extract_address.
7512 (trace_command): Use XCALLOC.
7513 (print_insn): Delete reference to tm_print_insn.
7514 (saved_regs_unwinder): Use store_unsigned_integer instead of
7515 store_address.
7516 * frame.h (FRAME_OBSTACK_CALLOC): Define
7517
2202b100
DC
75182003-04-25 David Carlton <carlton@bactrian.org>
7519
7520 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7521
4e45ca2e
AF
75222003-04-24 Adam Fedor <fedor@gnu.org>
7523
7524 * objc-lang.c: Include "valprint.h"
7525 * Makefile.in (objc-lang.o): Update dependencies.
7526
93de3e7f
AF
75272003-04-24 Adam Fedor <fedor@gnu.org>
7528
8ffd9b1b 7529 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
7530 architecture dependant compilation and mark as unimplemented
7531 (until they get put in the gdbarch vector).
7532
0f20eeea
DC
75332003-04-23 David Carlton <carlton@bactrian.org>
7534
7535 * cp-support.c (cp_find_first_component): Accept 'operator' in
7536 more locations.
7537
74cfe982
AC
75382003-04-23 Andrew Cagney <cagney@redhat.com>
7539
7540 * infcall.c (call_function_by_hand): Eliminate redundant
7541 indentation. Move "saved_async" and "old_cleanups" to where they
7542 are needed.
8ffd9b1b 7543
52557533
AC
75442003-04-23 Andrew Cagney <cagney@redhat.com>
7545
7546 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7547 and "buffer". Move the "name" code to where it is needed.
7548
158775de
AC
75492003-04-23 Andrew Cagney <cagney@redhat.com>
7550
7551 * infcall.c (call_function_by_hand): Move variables "start_sp",
7552 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7553 code to ON_STACK switch branch.
8ffd9b1b 7554
ebc7896c
AC
75552003-04-23 Andrew Cagney <cagney@redhat.com>
7556
7557 * infcall.c (call_function_by_hand): Make declaration of "i",
7558 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7559 lint.
7560
d727590f
AC
75612003-04-23 Andrew Cagney <cagney@redhat.com>
7562
7563 * infcall.c (call_function_by_hand): Delete variable
7564 "n_method_args". Localize "param_type"'s declaration to the loop
7565 that it is used. Reinstate code assigning to said variable -
7566 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7567 Rationalize code using "param_type".
7568
d585e13a
AC
75692003-04-22 Andrew Cagney <cagney@redhat.com>
7570
7571 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7572 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7573 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7574 to DEPRECATED_PUSH_RETURN_ADDRESS.
7575
051caad9
KB
75762003-04-22 Kevin Buettner <kevinb@redhat.com>
7577
7578 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7579 on the DWARF2 register number prior to fetching a register.
7580
77296879
JB
75812003-04-22 J. Brobecker <brobecker@gnat.com>
7582
7583 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7584 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 7585 this macro was always set to 0.
77296879
JB
7586 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7587 considering the fact that this macro was always set to 0.
7588 * hppa-tdep.h (hppa_store_return_value): Likewise.
7589 (hppa_extract_return_value): Likewise.
7590
4252f1df
JB
75912003-04-22 J. Brobecker <brobecker@gnat.com>
7592
7593 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7594 the hppa-pro target only.
7595
14604c6b
JB
75962003-04-21 J. Brobecker <brobecker@gnat.com>
7597
7598 Ongoing multi-arch conversion effort for HP/UX:
7599 * config/pa/tm-hppa.h: Move all macro that are no longer
7600 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7601 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7602
77eb01d1
JB
76032003-04-21 J. Brobecker <brobecker@gnat.com>
7604
7605 * config/pa/tm-hppa.h: Obsolete a section that was only used
7606 for hppa-pro.
7607
61995b3b
JB
76082003-04-21 J. Brobecker <brobecker@gnat.com>
7609
7610 Ongoing multi-arch conversion for HP/UX.
7611 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7612 if already defined (allows hppa64 to stay non-multiarched for now).
7613 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7614
4aa79dcc
AC
76152003-04-21 Andrew Cagney <cagney@redhat.com>
7616
7617 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7618
0f751ff2
AC
76192003-04-21 Andrew Cagney <cagney@redhat.com>
7620
7621 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7622 "i386_num_mmx_regs".
7623
04714b91
AC
76242003-04-21 Andrew Cagney <cagney@redhat.com>
7625
7626 * infcall.c: New file.
7627 * infcall.h: New file.
7628 * valarith.c: Include "infcall.h".
7629 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7630 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7631 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7632 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7633 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7634 (SFILES): Add "infcall.c"
7635 (COMMON_OBS): Add "infcall.o".
7636 (infcall.o): Specify dependencies.
7637 * value.h (call_function_by_hand): Delete declaration.
7638 * inferior.h (run_stack_dummy): Delete declaration.
7639 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7640 (run_stack_dummy): Move to "infcall.c", merged into
7641 call_function_by_hand.
7642 * valops.c (call_function_by_hand): Moved to "infcall.c".
7643 (find_function_addr, value_arg_coerce): Ditto.
7644 (unwindonsignal_p, coerce_float_to_double): Ditto.
7645 (_initialize_valops): Move "set/show coerce-float-to-double", and
7646 "set/show unwindonsignal" commands to "infcall.c".
7647 * v850-tdep.c, target.h: Update comments.
7648 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7649 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7650 (sh64_init_extra_frame_info): Update comments.
7651 * mn10300-tdep.c: Update comments.
7652 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7653 * config/sparc/tm-sparc.h: Update comments.
7654 * breakpoint.h: Update comments.
7655 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7656 * arm-tdep.c: Update comment.
7657
f9d3c2a8
MK
76582003-04-19 Mark Kettenis <kettenis@gnu.org>
7659
c40e1eab
MK
7660 * i386-tdep.c (i386_num_register_names): New variable.
7661 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7662 (MM0_REGNUM): Remove redundant parentheses in define.
7663 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7664 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7665 i386_mxcsr_regnum_p): Remove redundant parentheses.
7666 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 7667
94ea66b3
MK
7668 * i386-tdep.c (i386_extract_return_value,
7669 i386_store_return_value): Correct check for availability of
7670 floating-point registers.
7671
54299a1d
MK
7672 * i386-tdep.c (i386_frame_num_args): Remove function.
7673 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7674
c86c27af
MK
7675 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7676 mmx_regnum_to_fp_regnum. Adjust all callers.
7677
f9d3c2a8
MK
7678 * i386-tdep.c (i386_get_longjmp_target): Use
7679 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7680 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7681 extract_address.
7682
94ba74a9
MK
76832003-04-19 Mark Kettenis <kettenis@gnu.org>
7684
7685 * core-regset.c: Update comments to reflect reality. Re-order
7686 includes.
7687 (fetch_core_registers): Use switch instead of if. Remove
7688 redundant prototype.
7689
4074e13c
JB
76902003-04-18 Jim Blandy <jimb@redhat.com>
7691
7692 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 7693 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 7694
e3ab4aba
RH
76952003-04-17 Richard Henderson <rth@redhat.com>
7696
7697 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7698
627bf7c1
EZ
76992003-04-17 Michael Snyder <msnyder@redhat.com>
7700 Karen Bennet <bennet@redhat.com>
7701
7702 Committed by Elena Zannoni <ezannoni@redhat.com>
7703 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 7704
514621a9
EZ
77052003-04-17 Elena Zannoni <ezannoni@redhat.com>
7706
7707 * values.c (value_being_returned): Don't fetch the return
fbe586ae 7708 value if the return type is void.
514621a9 7709
b4acd559
JJ
77102003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7711
7712 * thread-db.c: Reindented.
8ffd9b1b 7713
530b167e 77142003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7715
7716 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7717 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
7718 as types.
7719
0a48e7e8
MS
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
8ffd9b1b 7743
ab9fe00e
KB
77442003-04-16 Kevin Buettner <kevinb@redhat.com>
7745
610a3745 7746 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
7747 the size of ``long double'' to 16, instead of 8.
7748
e64a344c
MK
77492003-04-16 Mark Kettenis <kettenis@gnu.org>
7750
7751 * i386-linux-nat.c: Add some whitespace to make things more
7752 readable.
7753 (fetch_register, store_register, fetch_inferior_registers,
7754 store_inferior_registers): Get rid of assignment in if-statement.
7755 (store_register): Fix typo in error message.
7756
25d41031
AC
77572003-04-16 Andrew Cagney <cagney@redhat.com>
7758
7759 * utils.c (xmmalloc): Always allocate something, matches
7760 libiberty/xmalloc's semantics.
7761 (xmrealloc, xmcalloc): Ditto.
7762
c50901fd
AC
77632003-04-16 Andrew Cagney <cagney@redhat.com>
7764
7765 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7766 update comments.
7767 (get_frame_type): Initialize unwind and type when needed.
7768 (get_frame_id, frame_register_unwind): Ditto.
7769
f81824a9
AC
77702003-04-16 Andrew Cagney <cagney@redhat.com>
7771
7772 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7773 obsolete.
7774 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7775 * sparcl-stub.c: Obsolete file.
7776 * config/sparc/tm-sparclet.h: Obsolete file.
7777 * sparclet-stub.c: Obsolete file.
7778 * sparclet-rom.c: Obsolete file.
7779 * sparcl-tdep.c: Obsolete file.
7780 * config/sparc/tm-sparclite.h: Obsolete file.
7781 * config/sparc/sparclite.mt: Obsolete file.
7782 * config/sparc/sparclet.mt: Obsolete file.
7783 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7784 sparc86x-*-* obsolete.
7785
9219021c
DC
77862003-04-15 David Carlton <carlton@math.stanford.edu>
7787
7788 * Makefile.in (SFILES): Add cp-namespace.c.
7789 (COMMON_OBS): Add cp-namespace.o.
7790 (block.o): Depend on gdb_obstack_h and cp_support_h.
7791 (buildsym.o): Depend on cp_support_h.
7792 (cp-namespace.o): New.
7793 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7794 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7795 (dwarf2read.o): Depend on cp_support_h.
7796 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7797 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7798 processing_current_namespace.
7799 (read_namespace): Update processing_current_namespace; check for
7800 anonymous namespaces.
7801 (dwarf2_name): New function.
7802 (dwarf2_extension): Ditto.
7803 * cp-support.h: Update copyright, contributors.
7804 Add inclusion guards.
7805 Add opaque declaration for structs obstack, block, symbol.
7806 (struct using_direct): New struct.
7807 Add declarations for cp_find_first_component,
7808 cp_entire_prefix_len, processing_has_namespace_info,
7809 processing_current_namespace, cp_is_anonymous,
7810 cp_add_using_directive, cp_initialize_namespace,
7811 cp_finalize_namespace, cp_set_block_scope,
7812 cp_scan_for_anonymous_namespaces.
7813 * cp-namespace.c: New file.
7814 * cp-support.c: Update copyright.
7815 Include ctype.h, gdb_assert.h, gdbcmd.h.
7816 New variable maint_cplus_cmd_list.
7817 (cp_find_first_component): New function.
7818 (cp_entire_prefix_len, maint_cplus_command)
7819 (first_component_command, _initialize_cp_support): Ditto.
7820 * buildsym.c: Include cp-support.h.
7821 New variable using_list.
7822 (add_symbol_to_list): Check for anonymous namespaces.
7823 (finish_block): Set block's scope.
7824 (start_symtab): Initialize C++ namespace support.
7825 (end_symtab): Finalize C++ namespace support.
7826 * block.h: Add opaque declarations for structs
7827 block_namespace_info, using_direct, and obstack.
7828 Add declarations for block_set_scope and block_set_using.
7829 (struct block): Add 'language_specific' member.
7830 (BLOCK_NAMESPACE): New macro.
7831 * block.c: Include gdb_obstack.h and cp-support.h.
7832 (struct block_namespace_info): New struct.
7833 (block_set_scope): New function.
7834 (block_set_using, block_initialize_namespace): Ditto.
7835
d5a921c9
KB
78362003-04-14 Kevin Buettner <kevinb@redhat.com>
7837
7838 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7839 (locate_base): Return early if there aren't any link map offsets.
7840 (svr4_solib_create_inferior_hook): Warn if shared library support
7841 is unavailable.
7842
d2a52b27
DC
78432003-04-14 David Carlton <carlton@math.stanford.edu>
7844
7845 * symtab.c (symbol_set_names): Add prefix when storing Java names
7846 in hash table. Fix for PR java/1039.
7847
980cae7a
DC
78482003-04-14 David Carlton <carlton@math.stanford.edu>
7849
7850 * symtab.c (symbol_set_names): Rename 'name' arg to
7851 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7852 * symtab.h: Change 'name' argument in declaration of
7853 symbol_set_names to 'linkage_name'.
7854 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7855
e227b13c
AC
78562003-04-14 Andrew Cagney <cagney@redhat.com>
7857
7858 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7859 return the fully sign-extended register value.
7860 (get_frame_pointer): Ditto.
7861 (mips_pop_frame): Initialize "proc_desc" after checking for a
7862 dummy frame.
7863
36712a20
AC
78642003-04-14 Andrew Cagney <cagney@redhat.com>
7865
7866 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7867 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7868 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7869 (mips_push_register): Delete function.
7870 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7871 PUSH_FP_REGNUM.
7872
44ea7b70
JB
78732003-04-14 Jim Blandy <jimb@redhat.com>
7874
7875 * symmisc.c: #include "gdb_regex.h".
7876 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7877 functions.
7878 * maint.c (maintenance_list_command): New function.
7879 (_initialize_maint_cmds): Register the above as commands.
7880 * symtab.h (maintenance_list_symtabs,
7881 maintenance_list_psymtabs): New declarations.
7882 * cli/cli-cmds.c (maintenancelistlist): New variable.
7883 (init_cmd_lists): Initialize it.
7884 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7885 * gdbcmd.h (maintenancelistlist): New declaration.
7886 * Makefile.in (symmisc.o): Update dependencies.
7887
2d0c7962
EZ
78882003-04-14 Elena Zannoni <ezannoni@redhat.com>
7889
7890 * s390-nat.c: Include asm/types.h for addr_t.
7891
1947a811
CV
78922003-04-14 Corinna Vinschen <vinschen@redhat.com>
7893
7894 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7895 actually incoming type.
7896
adb616d7
AC
78972003-04-13 Andrew Cagney <cagney@redhat.com>
7898
7899 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7900 get_next_frame and get_frame_saved_regs.
7901
9b5e151c
AC
79022003-04-13 Andrew Cagney <cagney@redhat.com>
7903
7904 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7905 of gdbarch_num_regs.
7906
ef6e7e13
AC
79072003-04-13 Andrew Cagney <cagney@redhat.com>
7908
7909 * frame.h: Mention what replaced what in "struct frame_info".
7910 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7911 deprecated_update_frame_base_hack and
7912 deprecated_update_frame_pc_hack.
7913 * hppa-tdep.c: Ditto.
7914
61fbb938
DJ
79152003-04-13 Daniel Jacobowitz <drow@mvista.com>
7916
7917 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7918 to read_reg and update its comment. Remove regnum member.
7919 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7920 Don't call read_reg when setting in_reg. Call read_reg to get
7921 the frame base if it's in a register. Return the register number
7922 on the stack instead of in the context. Remove extra arguments
7923 to read_reg.
7924 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7925 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7926 the register number on the expression stack.
7927 (needs_frame_read_reg): Remove extra arguments.
7928
0d53c4c4
DJ
79292003-04-13 Daniel Jacobowitz <drow@mvista.com>
7930
7931 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7932 made non-static.
7933 (execute_stack_op): All callers updated.
7934 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7935 * dwarf2loc.c (find_location_expression): New function.
7936 (dwarf_expr_frame_base): Call it.
7937 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7938 (dwarf2_tracepoint_var_ref): New function, broken out from
7939 locexpr_tracepoint_var_ref.
7940 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7941 Make static.
7942 (loclist_read_variable, loclist_read_needs_frame): New functions.
7943 (loclist_describe_location, loclist_tracepoint_var_ref): New
7944 functions.
7945 (dwarf2_loclist_funcs): New struct location_funcs.
7946 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7947 (struct dwarf2_locexpr_baton): Add comments.
7948 (dwarf2_loclist_funcs): New extern.
7949 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7950 base_address and base_known.
7951 (dwarf_loc_buffer): New variable.
7952 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7953 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7954 (dwarf2_has_info): Initialize dwarf_loc_offset.
7955 (dwarf2_build_psymtabs): Read in .debug_loc.
7956 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7957 DWARF_LOC_SIZE.
7958 (psymtab_to_symtab_1): Likewise. Move base address calculation
7959 here, from...
7960 (dwarf2_get_pc_bounds): ... here. Use the base address from
7961 cu_header.
7962 (dwarf2_symbol_mark_computed): Handle location lists.
7963
6aca59a3
DJ
79642003-04-13 Daniel Jacobowitz <drow@mvista.com>
7965
7966 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7967 if the linkage name demangled successfully.
7968
aca1fcd0
MK
79692003-04-13 Mark Kettenis <kettenis@gnu.org>
7970
97095916
MK
7971 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7972 disassmbly_flavour): Removed.
7973
aca1fcd0
MK
7974 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7975
562a961f
MK
79762003-04-13 Mark Kettenis <kettenis@gnu.org>
7977
7978 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7979
bd013d54
AC
79802003-04-12 Andrew Cagney <cagney@redhat.com>
7981
7982 * frame.h (struct frame_info): Move definition from here ...
7983 * frame.c (struct frame_info): ... to here.
7984
167ef8b1
AC
79852003-04-12 Andrew Cagney <cagney@redhat.com>
7986
7987 * gdbthread.h (save_infrun_state): Delete parameter
7988 "prev_func_start".
7989 (struct thread_info): Delete field "prev_func_start".
7990 (load_infrun_state): Ditto.
7991 * thread.c (load_infrun_state, save_infrun_state): Update.
7992 * infrun.c (prev_func_start): Delete variable.
7993 (context_switch, init_wait_for_inferior): Update.
7994 (stop_stepping, keep_going): Update.
7995
da3331ec
AC
79962003-04-12 Andrew Cagney <cagney@redhat.com>
7997
7998 * gdbarch.sh: Add missing opaque declarations.
7999 * gdbarch.h: Regnerate.
8000 * symtab.h: Add missing opaque declarations.
8001 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8002 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8003 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8004 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8005 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8006 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8007 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8008 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8009 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8010 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8011 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8012 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8013 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8014
18adea3f
AC
80152003-04-11 Andrew Cagney <cagney@redhat.com>
8016
8017 * frame.c (get_frame_id): Return this frame's "id".
8018 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8019 function start.
8020 (legacy_saved_regs_this_id): Replace function body with
8021 internal-error.
8022 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8023 FRAME_OBSTACK_ZALLOC.
8024 (create_new_frame): Mark the frame ID as valid.
8025
2252e863
AO
80262003-04-11 Alexandre Oliva <aoliva@redhat.com>
8027
8028 * Makefile.in (libbfd_h): Added missing setting.
8029 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8030 according to the selected ABI.
8031
a8245ab8
JJ
80322003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8033
8034 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8035
6913c89a
AC
80362003-04-11 Andrew Cagney <cagney@redhat.com>
8037
8038 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8039 SAVED_PC_AFTER_CALL.
8040 * gdbarch.h, gdbarch.c: Regenerate.
8041 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8042 * x86-64-tdep.c (x86_64_init_abi): Update.
8043 * vax-tdep.c (vax_gdbarch_init): Update.
8044 * v850-tdep.c (v850_gdbarch_init): Update.
8045 * sparc-tdep.c (sparc_gdbarch_init): Update.
8046 * sh-tdep.c (sh_gdbarch_init): Update.
8047 * s390-tdep.c (s390_gdbarch_init): Update.
8048 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8049 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8050 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8051 * mips-tdep.c (mips_gdbarch_init): Update.
8052 * mcore-tdep.c (mcore_gdbarch_init): Update.
8053 * m68k-tdep.c (m68k_gdbarch_init): Update.
8054 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8055 * ia64-tdep.c (ia64_gdbarch_init): Update.
8056 (ia64_saved_pc_after_call): Update declaration.
8057 * i386ly-tdep.c (i386lynx_init_abi): Update.
8058 * i386-tdep.c (i386_gdbarch_init): Update.
8059 * hppa-tdep.c (hppa_gdbarch_init): Update.
8060 * h8300-tdep.c (h8300_gdbarch_init): Update.
8061 * frv-tdep.c (frv_gdbarch_init): Update.
8062 * cris-tdep.c (cris_gdbarch_init): Update.
8063 * avr-tdep.c (avr_gdbarch_init): Update.
8064 * arm-tdep.c (arm_gdbarch_init): Update.
8065 * alpha-tdep.c (alpha_gdbarch_init): Update.
8066 * ns32knbsd-nat.c (frame_num_args): Update.
8067 * ns32k-tdep.c (umax_frame_num_args): Update.
8068 * mips-tdep.c (mips_init_frame_pc_first): Update.
8069 * infrun.c (step_over_function): Update.
8070 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8071 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8072 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8073 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8074 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8075 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8076 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8077 * arch-utils.c (init_frame_pc_default): Update.
8078 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8079 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8080 declaration.
8ffd9b1b 8081
38edeab8
AC
80822003-04-11 Andrew Cagney <cagney@redhat.com>
8083
8084 * i387-tdep.c: Update copyright.
8085 (i387_to_double): Delete function.
8086 (double_to_i387): Delete function.
8087
81f8a206
AC
80882003-04-10 Andrew Cagney <cagney@redhat.com>
8089
8090 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8091 frame's function's address. Simplify.
8092 (d10v_frame_unwind_cache): Check that the frame's function is
8093 non-zero.
8094
6e691f7a
JB
80952003-04-10 Jim Blandy <jimb@redhat.com>
8096
8097 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8098 call to set_gdbarch_deprecated_push_arguments.
8099
7f78e237
AC
81002003-04-10 Andrew Cagney <cagney@redhat.com>
8101
8102 * frame.c (fprint_frame_id): New function.
8103 (fprint_frame_type, fprint_frame): New function.
8104 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8105 (create_sentinel_frame, get_frame_id): Ditto.
8106 (frame_id_p, frame_id_eq): Ditto.
8107 (frame_id_inner, create_new_frame): Ditto.
8108 (legacy_get_prev_frame, get_prev_frame): Ditto.
8109 (deprecated_update_frame_pc_hack): Ditto.
8110 (frame_register_unwind): Ditto.
8111 (deprecated_update_frame_base_hack): Ditto.
8112
f870b49b
CV
81132003-04-10 Corinna Vinschen <vinschen@redhat.com>
8114
8115 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8116 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8117 frame_chain function.
8118 * Makefile.in: Add dependencies due to above change.
8119
7c86889b
CV
81202003-04-10 Corinna Vinschen <vinschen@redhat.com>
8121
8122 * blockframe.c (legacy_frame_chain_valid): Move call to
8123 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8124 inside_entry_file.
8125
d0a55772
AC
81262003-04-09 Andrew Cagney <cagney@redhat.com>
8127
8128 * frame.h (struct frame_id): Replace "pc" and "base" with
8129 "stack_addr" and "code_addr". Update comments.
8130 (frame_id_build): Update parameter names and comment.
8131 (struct frame_info): Replace "id_p" and "id" with "this_id".
8132 * dummy-frame.c (dummy_frame_this_id): Update.
8133 * breakpoint.c (print_one_breakpoint): Update.
8134 * frame.c (get_frame_id): Update.
8135 (get_frame_base, frame_id_build): Update.
8136 (create_sentinel_frame, legacy_get_prev_frame): Update.
8137 (deprecated_update_frame_base_hack): Update.
8138 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8139 (frame_id_inner): Ditto.
8140
ac16bf07
AC
81412003-04-09 Andrew Cagney <cagney@redhat.com>
8142
8143 * defs.h (gdb_print_host_address): Make "addr" parameter a
8144 pointer constant.
8145 * utils.c (gdb_print_host_address): Update.
8146
366cfc9e
KB
81472003-04-09 Kevin Buettner <kevinb@redhat.com>
8148
8149 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8150 register number for R0 is 0.
8151
cd983b5c
JB
81522003-04-09 J. Brobecker <brobecker@gnat.com>
8153
8154 * frame.h (struct gdbarch): Add opaque structure definition
8155 to avoid a compilation warning on LynxOS 4.0.
8156
d1340264
AC
81572003-04-09 Andrew Cagney <cagney@redhat.com>
8158
8159 * frame.h (struct frame_info): Delete field "pc". Replace
8160 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8161 structure.
8162 * frame.c (frame_pc_unwind): Update.
8163 (create_sentinel_frame): Do not set "pc".
8164 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8165 (get_frame_pc): Call frame_pc_unwind.
8166 (deprecated_update_frame_pc_hack): Update.
8167 (create_new_frame): Use "pc" not "->pc".
8168
90a6fffb
AC
81692003-04-09 Andrew Cagney <cagney@redhat.com>
8170
8171 * frame.c (get_frame_id): Eliminate code updating "frame".
8172 (legacy_get_prev_frame): Ditto.
8173 (get_frame_base): Return id.base directly.
8174 (deprecated_update_frame_base_hack): Update "id.base".
8175 * frame.h (struct frame_info): Delete field "frame".
8176
2fbce691
AC
81772003-04-09 Andrew Cagney <cagney@redhat.com>
8178
8179 * NEWS: Mention that the "Sequent family" is obsolete.
8180 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8181 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8182 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8183 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8184 * config/i386/tm-ptx4.h: Obsolete file.
8185 * config/i386/tm-ptx.h: Obsolete file.
8186 * symm-tdep.c: Obsolete file.
8187 * config/i386/symmetry.mt: Obsolete file.
8188 * config/i386/tm-symmetry.h: Obsolete file.
8189 * symm-nat.c: Obsolete file.
8190 * config/i386/nm-symmetry.h: Obsolete file.
8191 * config/i386/xm-symmetry.h: Obsolete file.
8192 * config/i386/symmetry.mh: Obsolete file.
8193 * config/i386/nm-ptx4.h: Obsolete file.
8194 * config/i386/ptx4.mh: Obsolete file.
8195 * config/i386/ptx.mt: Obsolete file.
8196 * config/i386/ptx.mh: Obsolete file.
8197 * config/i386/xm-ptx4.h: Obsolete file.
8198 * config/i386/xm-ptx.h: Obsolete file.
8199
78c43945
AC
82002003-04-09 Andrew Cagney <cagney@redhat.com>
8201
8202 Obsolete mips*-*-mach3*.
8203 * NEWS: Mention that mips*-*-mach3* is obsolete.
8204 * m3-nat.c: Obsolete file.
8205 * config/nm-m3.h: Obsolete file.
8206 * config/mips/tm-mipsm3.h: Obsolete file.
8207 * config/mips/mipsm3.mt: Obsolete file.
8208 * config/mips/mipsm3.mh: Obsolete file.
8209 * config/mips/xm-mipsm3.h: Obsolete file.
8210 * mipsm3-nat.c: Obsolete file.
8211 * configure.host: Obsolete mips-dec-mach3*.
8212 * configure.tgt: Obsolete mips*-*-mach3*.
8213
f1908289
AC
82142003-04-09 Andrew Cagney <cagney@redhat.com>
8215
8216 * doublest.h: Update copyright.
8217 (deprecated_store_floating, deprecated_extract_floating): Rename
8218 store_floating and extract_floating. Update comments.
8219 * doublest.c: Update copyright.
8220 (extract_floating_by_length): Replace extract_floating.
8221 (store_floating_by_length): Replace store_floating.
8222 (deprecated_extract_floating): New function.
8223 (deprecated_store_floating): New function.
8224 (extract_typed_floating): Call extract_floating_by_length.
8225 (store_typed_floating): Call store_floating_by_length.
8226 * x86-64-tdep.c (x86_64_store_return_value): Update.
8227 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8228 (sh64_extract_return_value): Update.
8229 (sh_sh4_register_convert_to_virtual): Update.
8230 (sh_sh64_register_convert_to_virtual): Update.
8231 (sh_sh4_register_convert_to_raw): Update.
8232 (sh_sh64_register_convert_to_raw): Update.
8233 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8234 (rs6000_register_convert_to_raw): Update.
8235 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8236 (ia64_register_convert_to_raw): Update.
8237 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8238 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8239 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8240 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8241 (alpha_register_convert_to_raw): Update.
8242
4443bd83
AC
82432003-04-08 Andrew Cagney <cagney@redhat.com>
8244
8245 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8246 * gdbarch.h, gdbarch.c: Re-generate.
8247 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8248 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8249 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8250 conditionally, use frame_pc_unwind as an alternative. Add
8251 comments.
8252 * arch-utils.c (init_frame_pc_default): Only call
8253 SAVED_PC_AFTER_CALL when available.
8254
c0236d92
EZ
82552003-04-08 Elena Zannoni <ezannoni@redhat.com>
8256
fbe586ae 8257 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8258 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8259 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8260 (start_remote): Ditto.
8261 (handle_inferior_event): Ditto.
8262 (save_inferior_status): Ditto.
8263 (restore_inferior_status): Ditto.
8264 * infcmd.c (attach_command): Ditto.
8265 * fork-child.c (startup_inferior): Ditto.
fbe586ae 8266 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8267 * alpha-tdep.c (heuristic_proc_start): Ditto.
8268 * mips-tdep.c (heuristic_proc_start): Ditto.
8269 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8270 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8271 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8272 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8273 * remote-vx.c (vx_create_inferior): Ditto.
8274
82752003-04-08 Elena Zannoni <ezannoni@redhat.com>
8276
8277 * infrun.c (stop_soon_quietly): Make it an enum, to better
8278 override the default behavior of handle_inferior_event.
8279 (clear_proceed_status): Update uses of stop_soon_quietly to
8280 reflect that it is now an enum.
8281 (start_remote): Ditto.
8282 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8283 is set to handle the new GNU/Linux kernel behavior for
8284 attach/sigstop. Update uses of stop_soon_quietly.
8285 * inferior.h (enum stop_kind): New enum.
8286 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8287 Reset normal handle_inferior_event behavior, afterwards.
8288 * fork-child.c (startup_inferior): Update.
8289 * alpha-tdep.c (heuristic_proc_start): Update.
8290 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8291 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8292 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8293 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8294 * remote-vx.c (vx_create_inferior): Update.
8295 * mips-tdep.c (heuristic_proc_start): Update.
8296
1211bce3
EZ
82972003-04-07 Elena Zannoni <ezannoni@redhat.com>
8298
8299 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 8300 be freed more than once, causing wild memory corruptions.
1211bce3 8301 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 8302 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 8303 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 8304 with the "core" target.
1211bce3 8305
f0ef6b29
KB
83062003-04-07 Kevin Buettner <kevinb@redhat.com>
8307
8308 * mips-tdep.c (mips_print_fp_register): New function, created from
8309 do_fp_register_row(). Registers are now (also) printed as hex.
8310 Only one register is printed per row.
8311 (mips_print_register, do_fp_register_row): Print floating point
8312 registers with mips_print_fp_register().
8313
8cf71652
AC
83142003-04-06 Andrew Cagney <cagney@redhat.com>
8315
5e488a7b
AC
8316 * valprint.h (inspect_it): Add extern declaration.
8317 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8318 (selectors_info, classes_info): Ditto.
8319 (find_objc_msgcall): Fix indentation.
8320 (objc_printstr): Delete extern declarations.
8321
8cf71652
AC
8322 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8323
e6ba3bc9
AC
83242003-04-06 Andrew Cagney <cagney@redhat.com>
8325
8326 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8327 Update comment.
8328 * frame.c (legacy_saved_regs_this_id): Update.
8329 (legacy_get_prev_frame): Update.
8330 * xstormy16-tdep.c: Update comment.
8331 * sparc-tdep.c (sparc_frame_chain): Update comment.
8332 * blockframe.c (legacy_frame_chain_valid): Update.
8333
55e1d7e7
AC
83342003-04-06 Andrew Cagney <cagney@redhat.com>
8335
996179ee
AC
8336 * valprint.c (val_print_type_code_int): Delete #ifdef
8337 PRINT_TYPELESS_INTEGER code.
8338
55e1d7e7
AC
8339 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8340 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8341 multi-arch definition.
8342 * gdbarch.h: Re-generate.
8343
43bd9a9e
AC
83442003-04-05 Andrew Cagney <cagney@redhat.com>
8345
8346 Eliminate FRAME_FIND_SAVED_REGS.
8347 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8348 Change FSR parameter to a pointer.
8349 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8350 Assume FSR parameter is a pointer.
8351 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8352 Make fsr a pointer.
8353 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8354 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8355 saved_regs a pointer.
8356 (hppa_frame_saved_pc): Ditto.
8357 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8358 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8359 pointer.
8360 (restore_pc_queue): Make fsr a pointer.
8361 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8362 (hppa_frame_chain): Make saved_regs a pointer, call
8363 hppa_frame_init_saved_regs.
8364 * sparc-tdep.c: Include "gdb_assert.h".
8365 (sparc_frame_find_saved_regs): Replace internal_error with
8366 gdb_assert.
8367 * remote-vxsparc.c (vx_read_register): Delete reference to
8368 FRAME_FIND_SAVED_REGS.
8369 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8370 * gdbarch.h: Regenerate.
8371 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8372 (deprecated_get_frame_saved_regs): Delete declaration.
8373 (struct frame_saved_regs): Delete definition.
8374 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8375 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8376 (hppa_frame_find_saved_regs): Delete declaration.
8377 (FRAME_FIND_SAVED_REGS): Delete macro.
8378 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8379 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8380 FRAME_FIND_SAVED_REGS in comment.
8381
be41e9f4
AC
83822003-04-05 Andrew Cagney <cagney@redhat.com>
8383
8384 * frame.c (frame_func_unwind, get_frame_func): New functions.
8385 * frame.h (get_frame_func, frame_func_unwind): Declare.
8386 (struct frame_info): Add field "prev_func" for caching the
8387 previous frame's function address.
8388 * arm-tdep.c (arm_frameless_function_invocation): Combine
8389 get_pc_function_start and get_frame_pc into get_frame_func.
8390 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8391 (sh64_nofp_frame_init_saved_regs): Ditto.
8392 * s390-tdep.c (s390_function_start): Ditto.
8393 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8394 (rs6000_frameless_function_invocation): Ditto.
8395 (rs6000_frame_saved_pc): Ditto.
8396 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8397 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8398 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8399 (i386_frame_init_saved_regs): Ditto.
8400 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8401 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8402 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8403 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8404 * blockframe.c (frameless_look_for_prologue): Ditto.
8405
a01dd7cc
AC
84062003-04-05 Andrew Cagney <cagney@redhat.com>
8407
8408 * frame.c (legacy_get_prev_frame): Link prev to next at the
8409 function start. Update comments.
8410
5e5592e6
AC
84112003-04-05 Andrew Cagney <cagney@redhat.com>
8412
8413 * frame.c (get_frame_id): Update comment.
8414 (legacy_get_prev_frame): Update comment.
8415 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8416 * gdbarch.h: Regenerate.
8417 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8418 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8419
6fba5002
AC
84202003-04-05 Andrew Cagney <cagney@redhat.com>
8421
8422 * stack.c (print_frame_info): Use get_frame_pc.
8423
7df05f2b
AC
84242003-04-04 Andrew Cagney <cagney@redhat.com>
8425
8426 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8427 the frame's type from the unwinder.
8428 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8429 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8430 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8431 (get_frame_base_address): Use get_frame_type.
8432 (get_frame_locals_address, get_frame_args_address): Ditto.
8433 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8434 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8435 (struct frame_info): Add comment explaining why the frame contains
8436 a "type" field.
8437 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8438 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8439 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8440 NORMAL_FRAME.
8441 * frame-unwind.h: Include "frame.h".
8442 (struct frame_unwind): Add "type" field.
8443 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 8444
11889732
AC
84452003-04-04 Andrew Cagney <cagney@redhat.com>
8446
8447 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8448 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8449 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8450 get_frame_base.
8451 (d10v_unwind_dummy_id): Use frame_id_build.
8452 * frame.c (find_frame_sal): Use get_frame_pc.
8453 (create_new_frame): Use deprecated_update_frame_pc_hack and
8454 deprecated_update_frame_base_hack.
8455 (create_sentinel_frame): Add comment about ->pc going away.
8456 (get_prev_frame): Add comment about ->pc going away.
8457 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8458 frame_id_build, deprecated_update_frame_pc_hack and
8459 deprecated_update_frame_base_hack.
8460 (select_frame): Use get_frame_pc.
8461 (legacy_saved_regs_this_id): Use frame_id_build.
8462
50c46a0d
EZ
84632003-04-04 Elena Zannoni <ezannoni@redhat.com>
8464
fbe586ae
RH
8465 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8466 signed integer case.
8467 (classify_argument): Handle enumerations and references.
50c46a0d 8468
50bbdbd9
AC
84692003-04-04 Andrew Cagney <cagney@redhat.com>
8470
8471 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8472 ID to NULL.
8473
36018d2e
AF
84742003-04-01 Adam Fedor <fedor@gnu.org>
8475
8476 * gdb/objc-lang.c (selectors_info): Replace calls to
8477 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8478 SYMBOL_NATURAL_NAME.
8479 (classes_info, find_methods): Likewise.
8480
35cec841
KB
84812003-04-03 Kevin Buettner <kevinb@redhat.com>
8482
8483 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8484 ``mach'' to the value determined by bfd_default_set_arch_mach().
8485
43136899
BR
84862003-04-02 Bob Rossi <bob_rossi@cox.net>
8487
8488 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8489 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8490 (mi-cmd-file.o): Update dependencies.
8491
040b99fd
KB
84922003-04-01 Kevin Buettner <kevinb@redhat.com>
8493
8494 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8495 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8496
9a3d7dfd
AF
84972003-04-01 Adam Fedor <fedor@gnu.org>
8498
8499 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8500 * language.h (struct language_defn): Add la_demangle.
8501 (language_demangle): Declare.
8502 * language.c (language_demangle): New function.
8503 (unk_lang_demangle): Likewise.
8504 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 8505 Add ukn_lang_demangle.
9a3d7dfd 8506 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 8507 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
8508 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8509 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8510 * jv-lang.c (java_demangle): New function
8511 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
8512 * objc-lang.c (objc_demangle): Add options argument
8513 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
8514 * maint.c (maintenance_demangle): Replace switch with
8515 call to language_demangle.
8516 * utils.c (fprintf_symbol_filtered): Likewise.
8517
5e074003
AC
85182003-04-01 Andrew Cagney <cagney@redhat.com>
8519
8520 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8521 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8522 PRINT_TYPELESS_INTEGER.
8523 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8524 PUSH_RETURN_ADDRESS.
8525
270cb5d6
AC
85262003-04-01 Andrew Cagney <cagney@redhat.com>
8527
8528 * Makefile.in (d10v-tdep.o): Update dependencies.
8529 * d10v-tdep.c: Include "frame-base.h".
8530 (d10v_frame_unwind): Make constant.
8531 (d10v_frame_base_address): New function.
8532 (d10v_frame_base): New variable.
8533 (d10v_gdbarch_init): Set frame_base default.
8534 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8535 comment for base.
8536 (d10v_frame_unwind_cache): Set and use "prev_sp".
8537 (d10v_frame_this_id): Use the previous frame's inner most stack
8538 address and this frame's func address for the frame ID. Use
8539 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 8540
6bfb3e36
AC
85412003-04-01 Andrew Cagney <cagney@redhat.com>
8542
8543 * frame.h (get_frame_locals_address, get_frame_args_address):
8544 Refer to the base address, instead of the address of the first
8545 local or parameter.
8ffd9b1b 8546
da62e633
AC
85472003-04-01 Andrew Cagney <cagney@redhat.com>
8548
8549 Add frame debug info addresses:
8550 * frame-base.c: New file.
8551 * frame-base.h: New file.
8552 * frame.h (struct frame_base): Add opaque declaration.
8553 (get_frame_base): Update comment.
8554 (get_frame_base_address): Declare.
8555 (get_frame_locals_address): Declare.
8556 (get_frame_args_address): Declare.
8557 (struct frame_info): Add "base" and "base_cache". Update
8558 comments on the unwinder.
8559 * frame.c: Include "frame-base.h".
8560 (get_frame_locals_address): New function.
8561 (get_frame_base_address): New function.
8562 (get_frame_args_address): New function.
8563 * findvar.c (read_var_value): Use get_frame_locals_address and
8564 get_frame_args_address.
8565 * stack.c (frame_info): Use get_frame_locals_address and
8566 get_frame_args_address.
8567 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8568 moved to "frame-base.c".
8569 * printcmd.c (print_frame_nameless_args): Ditto.
8570 * symtab.h (address_class): Update comments.
8571 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8572 get_frame_base_address.
8573 * dwarf2expr.c (execute_stack_op): Ditto.
8574 * Makefile.in (frame_base_h): Define.
8575 (frame.o): Update dependencies.
8576 (frame-base.o): Add dependencies.
8577 (SFILES): Add frame-base.c.
8578 (COMMON_OBS): Add frame-base.o.
8579
3d30e9c2
AC
85802003-04-01 Andrew Cagney <cagney@redhat.com>
8581
8582 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8583 CALL_DUMMY_LENGTH): Ditto.
8584 * gdbarch.c: Re-generate.
8585 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8586 (CALL_DUMMY_LENGTH): Delete macro.
8587 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8588 * arm-tdep.c (arm_gdbarch_init): Ditto.
8589 * avr-tdep.c (avr_gdbarch_init): Ditto.
8590 * cris-tdep.c (cris_gdbarch_init): Ditto.
8591 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8592 * frv-tdep.c (frv_gdbarch_init): Ditto.
8593 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8594 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8595 * i386-tdep.c (i386_gdbarch_init): Ditto.
8596 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8597 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8598 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8599 * mips-tdep.c (mips_gdbarch_init): Ditto.
8600 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8601 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8602 * s390-tdep.c (s390_gdbarch_init): Ditto.
8603 * sh-tdep.c (sh_gdbarch_init): Ditto.
8604 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8605 * v850-tdep.c (v850_gdbarch_init): Ditto.
8606 * vax-tdep.c (vax_gdbarch_init): Ditto.
8607 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8608
ce0c7262
CV
86092003-04-01 Corinna Vinschen <vinschen@redhat.com>
8610
8611 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8612
73dd234f
AC
86132003-04-01 Andrew Cagney <cagney@redhat.com>
8614
8615 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8616 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8617 * gdbarch.h, gdbarch.c: Re-generate.
8618 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8619 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8620 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8621 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8622 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8623 * infcmd.c (run_stack_dummy): Simplify assuming
8624 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8625 * infrun.c (handle_inferior_event): Ditto.
8626 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8627 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8628 * arm-tdep.c (arm_gdbarch_init): Ditto.
8629 * avr-tdep.c (avr_gdbarch_init): Ditto.
8630 * cris-tdep.c (cris_gdbarch_init): Ditto.
8631 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8632 * frv-tdep.c (frv_gdbarch_init): Ditto.
8633 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8634 * i386-tdep.c (i386_gdbarch_init): Ditto.
8635 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8636 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8637 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8638 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8639 * mips-tdep.c (mips_gdbarch_init): Ditto.
8640 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8641 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8642 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8643 * s390-tdep.c (s390_gdbarch_init): Ditto.
8644 * sh-tdep.c (sh_gdbarch_init): Ditto.
8645 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8646 * v850-tdep.c (v850_gdbarch_init): Ditto.
8647 * vax-tdep.c (vax_gdbarch_init): Ditto.
8648 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8649
97606a13
DJ
86502003-04-01 Daniel Jacobowitz <drow@mvista.com>
8651
8652 * symfile.c (symfile_relocate_debug_section): Update call to
8653 bfd_simple_get_relocated_section_contents.
8654
e8ab51f7
AC
86552003-03-31 Andrew Cagney <cagney@redhat.com>
8656
8657 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8658 * gdbarch.h, gdbarch.c: Regenerate.
8659 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8660 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8661 available.
8662 * frame.h (generic_fix_call_dummy): Delete declaration.
8663 * dummy-frame.h: Update comment.
8664 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8665 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8666 fix_call_dummy.
8667 * sh-tdep.c (sh_gdbarch_init): Ditto.
8668 * s390-tdep.c (s390_gdbarch_init): Ditto.
8669 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8670 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8671 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8672 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8673 * i386-tdep.c (i386_gdbarch_init): Ditto.
8674 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8675 * frv-tdep.c (frv_gdbarch_init): Ditto.
8676 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8677 * cris-tdep.c (cris_gdbarch_init): Ditto.
8678 * avr-tdep.c (avr_gdbarch_init): Ditto.
8679 * arm-tdep.c (arm_gdbarch_init): Ditto.
8680
018d1b48
JB
86812003-03-31 J. Brobecker <brobecker@gnat.com>
8682
8683 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8684 (INIT_FRAME_AP): Likewise.
8685 (EXTRA_FRAME_INFO): Likewise.
8686
e9a2674e
AC
86872003-03-31 Andrew Cagney <cagney@redhat.com>
8688
8689 * gdbarch.sh: Include "symfile.h".
8690 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8691 * gdbarch.h, gdbarch.c: Re-generate.
8692 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8693 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8694 call_dummy_address, the default is at entry_point_address.
8695 * v850-tdep.c (v850_gdbarch_init): Ditto.
8696 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8697 * sh-tdep.c (sh_gdbarch_init): Ditto.
8698 * s390-tdep.c (s390_gdbarch_init): Ditto.
8699 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8700 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8701 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8702 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8703 * i386-tdep.c (i386_gdbarch_init): Ditto.
8704 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8705 * frv-tdep.c (frv_gdbarch_init): Ditto.
8706 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8707 * cris-tdep.c (cris_gdbarch_init): Ditto.
8708 * arm-tdep.c (arm_gdbarch_init): Ditto.
8709
e8a8712a
AC
87102003-03-31 Andrew Cagney <cagney@redhat.com>
8711
8712 * gdbarch.sh (CALL_DUMMY_P): Delete.
8713 * gdbarch.h, gdbarch.c: Re-generate.
8714 * inferior.h (CALL_DUMMY_P): Delete macro.
8715 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8716 * vax-tdep.c (vax_gdbarch_init): Update.
8717 * v850-tdep.c (v850_gdbarch_init): Update.
8718 * sparc-tdep.c (sparc_gdbarch_init): Update.
8719 * sh-tdep.c (sh_gdbarch_init): Update.
8720 * s390-tdep.c (s390_gdbarch_init): Update.
8721 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8722 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8723 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8724 * mips-tdep.c (mips_gdbarch_init): Update.
8725 * mcore-tdep.c (mcore_gdbarch_init): Update.
8726 * m68k-tdep.c (m68k_gdbarch_init): Update.
8727 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8728 * ia64-tdep.c (ia64_gdbarch_init): Update.
8729 * i386-tdep.c (i386_gdbarch_init): Update.
8730 * h8300-tdep.c (h8300_gdbarch_init): Update.
8731 * frv-tdep.c (frv_gdbarch_init): Update.
8732 * d10v-tdep.c (d10v_gdbarch_init): Update.
8733 * cris-tdep.c (cris_gdbarch_init): Update.
8734 * breakpoint.c (deprecated_frame_in_dummy): Update.
8735 * avr-tdep.c (avr_gdbarch_init): Update.
8736 * alpha-tdep.c (alpha_gdbarch_init): Update.
8737 * arm-tdep.c (arm_gdbarch_init): Update.
8738 * dummy-frame.c (dummy_frame_this_id): Update comments.
8739 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8740 * frame.c (legacy_get_prev_frame): Ditto.
8741 * valops.c (call_function_by_hand): Delete function.
8742 (hand_function_call): Rename to call_function_by_hand
8743
ed234cf8
AC
87442003-03-30 Andrew Cagney <cagney@redhat.com>
8745
8746 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 8747 * value.h (struct value): Update comment.
ed234cf8 8748
06c77151
AC
87492003-03-30 Andrew Cagney <cagney@redhat.com>
8750
6c2b5168
AC
8751 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8752 D10V_FP_REGNUM.
8753 (d10v_gdbarch_init): Do not set fp_regnum.
8754
06c77151
AC
8755 * frame.c (get_frame_base): Force ID initialization.
8756 (get_prev_frame): Move computation of the frame ID from here ...
8757 (get_frame_id): ... to here.
8758 (legacy_get_prev_frame): Mark the frame ID as valid.
8759 * frame.h (struct frame_info): Add field "id_p".
8760
97a1a11c
MK
87612003-03-30 Mark Kettenis <kettenis@gnu.org>
8762
8763 * i386-tdep.c (i386_store_struct_return): Removed.
8764 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8765
6c0e89ed
AC
87662003-03-30 Andrew Cagney <cagney@redhat.com>
8767
8768 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8769 * gdbarch.h, gdbarch.c: Regenerate.
8770 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8771 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8772 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8773 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8774 * i386-tdep.c (i386_gdbarch_init): Ditto.
8775 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8776 * cris-tdep.c (cris_gdbarch_init): Ditto.
8777 * vax-tdep.c (vax_gdbarch_init): Ditto.
8778 * s390-tdep.c (s390_gdbarch_init): Ditto.
8779 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8780 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8781 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8782 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8783 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8784 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8785 * sparc-tdep.c (sparc_gdbarch_init): Update.
8786 * sh-tdep.c (sh_gdbarch_init): Update.
8787 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8788 * mips-tdep.c (mips_gdbarch_init): Update.
8789 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8790 * ia64-tdep.c (ia64_gdbarch_init): Update.
8791 * frv-tdep.c (frv_gdbarch_init): Update.
8792 * avr-tdep.c (avr_gdbarch_init): Update.
8793 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8794 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8795 instead of when push_dummy_call is not available.
8ffd9b1b 8796
f7dd6af2
AC
87972003-03-30 Andrew Cagney <cagney@redhat.com>
8798
8799 * infttrace.c: Include "gdbthread.h".
8800 (parent_attach_all): Fix function signature.
8801 (call_ptrace): Update call.
8802 * Makefile.in (infttrace.o): Update dependencies.
8803
28f617b3
AC
88042003-03-30 Andrew Cagney <cagney@redhat.com>
8805
8806 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8807 PUSH_RETURN_ADDRESS.
8808 * gdbarch.h, gdbarch.c: Regenerate.
8809 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8810 * x86-64-tdep.c (x86_64_init_abi): Update.
8811 * v850-tdep.c (v850_gdbarch_init): Update.
8812 * sparc-tdep.c (sparc_gdbarch_init): Update.
8813 * sh-tdep.c (sh_gdbarch_init): Update.
8814 * s390-tdep.c (s390_gdbarch_init): Update.
8815 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8816 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8817 * mips-tdep.c (mips_gdbarch_init): Update.
8818 * mcore-tdep.c (mcore_gdbarch_init): Update.
8819 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8820 * ia64-tdep.c (ia64_gdbarch_init): Update.
8821 * i386-tdep.c (i386_gdbarch_init): Update.
8822 * h8300-tdep.c (h8300_gdbarch_init): Update.
8823 * frv-tdep.c (frv_gdbarch_init): Update.
8824 * cris-tdep.c (cris_gdbarch_init): Update.
8825 * avr-tdep.c (avr_gdbarch_init): Update.
8826 * arm-tdep.c (arm_gdbarch_init): Update.
8827 * valops.c (hand_function_call): Update.
8828
4d628cd7
AC
88292003-03-29 Andrew Cagney <cagney@redhat.com>
8830
8831 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8832 sizeof_call_dummy_words.
8833 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8834 define.
8835 * gdbarch.h: Regenerate.
8ffd9b1b 8836
65e82032
AC
88372003-03-29 Andrew Cagney <cagney@redhat.com>
8838
8839 * infttrace.h: New file.
8840 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8841 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8842 (hpread_read_doc_function_type): Detect an initialized type1.
8843 (hpread_quick_traverse): Initialize mod_name_string.
8844 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8845 (som_solib_get_solib_by_pc): Declare.
8846 (so_lib_thread_start_addr): Declare.
8847 (no_shared_libraries): Declare.
8848 * somread.c (init_import_symbols): Make static. Add forward
8849 declaration.
8850 * config/pa/nm-hppah.h: Include "infttrace.h" for
8851 parent_attach_all.
8852 (hppa_insert_hw_watchpoint): Declare.
8853 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8854 * hppah-nat.c: Include "gdb_string.h".
8855 (parent_attach_all): Delete extern declaration, moved to
8856 "infttrace.h".
8857 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8858 int.
8859 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8860 * Makefile.in (infttrace_h): Define.
8861 (hpread.o): Update dependencies.
8862 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8863 * hppa-hpux-tdep.c: Include "gdb_string.h".
8864 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8865 * infrun.c (handle_inferior_event): Always initialize
8866 stepped_after_stopped_by_watchpoint. Add default and remove
8867 fallthrough in switch statement.
8868 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8869 parameter to int.
8870 (hppa_remove_hw_watchpoint): Ditto.
8871
2c3bbe77
AC
88722003-03-29 Andrew Cagney <cagney@redhat.com>
8873
8874 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8875 offset.
8876
2dd604e7
RE
88772003-03-29 Richard Earnshaw <rearnsha@arm.com>
8878
8879 * arm-tdep.c (arm_push_arguments): Delete.
8880 (struct stack_item): New type.
8881 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8882 (arm_store_struct_return): Delte.
8883 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8884 arm_push_arguments or arm_store_struct_return.
8885
e8933a55
AC
88862003-03-28 Andrew Cagney <cagney@redhat.com>
8887
8888 * Makefile.in (d10v-tdep.o): Update dependencies.
8889 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8890 * d10v-tdep.c: Include "remote.h".
8891 (target_resume_hook): Delete extern declaration.
8892 (target_wait_loop_hook): Ditto.
8893 (tdisassemble_command): Eliminate assignment in "if" conditional.
8894 (d10v_ts2_register_sim_regno): Eliminate call to
8895 legacy_register_sim_regno.
8896 (d10v_ts3_register_sim_regno): Ditto.
8897
6949171e
JJ
88982003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8899
8900 * thread.c: Reindented.
8901 * lin-lwp.c: Ditto.
8902 * linux-proc.c: Ditto.
8903
98c7071f
BR
89042003-03-28 Bob Rossi <bob_rossi@cox.net>
8905
fbe586ae 8906 * MAINTAINERS (write after approval): Add myself.
98c7071f 8907
5edc9ca6
TR
89082003-03-27 Theodore A. Roth <troth@openavr.org>
8909
8910 * objc-exp.y: Add missing semi-colons.
8911
378bfd1b
AC
89122003-03-27 Andrew Cagney <cagney@redhat.com>
8913
8914 * regcache.c (write_sp): Delete function and references.
8915 * inferior.h (write_sp): Delete declaration.
8916 * valops.c (hand_function_call): Replace write_sp with
8917 TARGET_WRITE_SP.
8918 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8919 (sparc_pop_frame): Ditto.
8ffd9b1b 8920
56056df7
AC
89212003-03-27 Andrew Cagney <cagney@redhat.com>
8922
8923 * NEWS: Mention removal of support for hppa*-*-bsd* and
8924 hppa*-*-osf* natives, and hppa*-*-pro* target.
8925 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8926 * config/pa/xm-pa.h: Obsolete file.
8927 * config/pa/xm-hppab.h: Obsolete file.
8928 * config/pa/nm-hppab.h: Obsolete file.
8929 * config/pa/tm-hppab.h: Obsolete file.
8930 * config/pa/tm-hppao.h: Obsolete file.
8931 * config/pa/nm-hppao.h: Obsolete file.
8932 * config/pa/tm-pro.h: Obsolete file.
8933 * config/pa/hppaosf.mt: Obsolete file.
8934 * config/pa/hppaosf.mh: Obsolete file.
8935 * config/pa/hppapro.mt: Obsolete file.
8936 * config/pa/hppabsd.mt: Obsolete file.
8937 * config/pa/hppabsd.mh: Obsolete file.
8938 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8939 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8940 hppa*-*-osf*.
8941
5873a88d
AC
89422003-03-27 Andrew Cagney <cagney@redhat.com>
8943
8944 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8945 push_arguments. Don't set push_return_address or write_sp.
8946 (d10v_push_dummy_call): Replace d10v_push_arguments.
8947 (d10v_push_return_address, d10v_write_sp): Delete function,
8948 handled by push_dummy_call.
8949
b81774d8
AC
89502003-03-26 Andrew Cagney <cagney@redhat.com>
8951
8952 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8953 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8954 regcache and dummy_addr parameters.
8955 * gdbarch.h, gdbarch.c: Re-generate.
8956 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8957 available; assume it will handle stack alignment and return
8958 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8959 legacy_push_arguments.
8960 (legacy_push_arguments): Rename default_push_arguments.
8961 * value.h (legacy_push_arguments): Rename default_push_arguments.
8962 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8963 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8964 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8965 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8966 * config/i386/tm-symmetry.h: Update.
8967 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8968 * x86-64-tdep.c (x86_64_init_abi): Update.
8969 * v850-tdep.c (v850_gdbarch_init): Update.
8970 * sparc-tdep.c (sparc_gdbarch_init): Update.
8971 * sh-tdep.c (sh_gdbarch_init): Update.
8972 * s390-tdep.c (s390_gdbarch_init): Update.
8973 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8974 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8975 * mips-tdep.c (mips_gdbarch_init): Update.
8976 * mcore-tdep.c (mcore_gdbarch_init): Update.
8977 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8978 * ia64-tdep.c (ia64_gdbarch_init): Update.
8979 * i386-tdep.c (i386_gdbarch_init): Update.
8980 * hppa-tdep.c (hppa_gdbarch_init): Update.
8981 * h8300-tdep.c (h8300_gdbarch_init): Update.
8982 * frv-tdep.c (frv_gdbarch_init): Update.
8983 * d10v-tdep.c (d10v_gdbarch_init): Update.
8984 * cris-tdep.c (cris_gdbarch_init): Update.
8985 * avr-tdep.c (avr_gdbarch_init): Update.
8986 * arm-tdep.c (arm_gdbarch_init): Update.
8987 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8988 * alpha-tdep.c (alpha_gdbarch_init): Update.
8989
f541410f
DJ
89902003-03-26 Daniel Jacobowitz <drow@mvista.com>
8991
8992 * signals/signals.c (do_target_signal_to_host): Correct realtime
8993 signal range test.
8994
69f567ae
DJ
89952003-03-26 Daniel Jacobowitz <drow@mvista.com>
8996
8997 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8998 (struct sal_chain, map_catch_names): Remove.
8999 (catch_exception_command_1): Don't call
9000 handle_gnu_4_16_catch_command.
9001
d5d14a5a
DJ
90022003-03-26 Daniel Jacobowitz <drow@mvista.com>
9003
9004 From Mark Dettinger <dettinge@de.ibm.com>:
9005 * dwarf2cfi.c (read_2u): Increment pointer by two.
9006
bdd73e22
DJ
90072003-03-26 Daniel Jacobowitz <drow@mvista.com>
9008
9009 * signals/signals.c: Fix typos in last change.
9010
960cb555
DJ
90112003-03-26 Daniel Jacobowitz <drow@mvista.com>
9012
9013 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9014 not already defined. Use __SIGRTMIN if available.
9015 (target_signal_from_host): Remove SIGRTMIN block.
9016 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9017 the signal is within the realtime range.
9018
f636b87d
AF
90192003-03-25 Adam Fedor <fedor@gnu.org>
9020
9021 * Makefile.in (infrun.o): Add $(language_h)
9022 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9023 for language specific trampolines.
9024 * language.h (struct language_defn): Add skip_trampoline.
9025 (skip_language_trampoline): Declare.
9026 * language.c (unk_lang_trampoline, skip_language_trampoline):
9027 New functions.
9028 (unknown_language_defn, auto_language_defn, local_language_defn):
9029 Add ukn_lang_trampoline.
9030 * ada-lang.c (ada_language_defn): Add NULL for language
9031 specific skip_trampoline.
9032 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9033 scm-lang.c: Likewise.
9034 * objc-lang.c (objc_skip_trampoline): New function.
9035 (objc_language_defn): Add objc_skip_trampoline.
9036
28f617b3 90372003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
9038
9039 * frame.c (get_prev_frame): Delay validating a frame's ID -
9040 non-NULL, didn't go backwards - until an attempt to unwind it to
9041 the previous frame.
9042
f933a9c5
AC
90432003-03-25 Andrew Cagney <cagney@redhat.com>
9044
9045 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9046 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9047 * gdbarch.h, gdbarch.c: Re-generate.
9048 * config/sparc/tm-sparc.h
9049 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9050 * sparc-tdep.c (sparc_gdbarch_init): Set
9051 deprecated_extra_stack_alignment_needed.
9052 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9053 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9054 extra_stack_alignment_needed.
9055 * v850-tdep.c (v850_gdbarch_init): Ditto.
9056 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9057 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9058 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9059 * cris-tdep.c (cris_gdbarch_init): Ditto.
9060 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9061 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 9062
4183d812
AC
90632003-03-25 Andrew Cagney <cagney@redhat.com>
9064
9065 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9066 STORE_STRUCT_RETURN.
9067 * gdbarch.h, gdbarch.c: Regenerate.
9068 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9069 (d10v_push_arguments): Set the struct return register.
9070 (d10v_gdbarch_init): Update.
9071 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9072 * x86-64-tdep.c (x86_64_init_abi): Update.
9073 * vax-tdep.c (vax_gdbarch_init): Update.
9074 * v850-tdep.c (v850_gdbarch_init): Update.
9075 * sparc-tdep.c (sparc_gdbarch_init): Update.
9076 * sh-tdep.c (sh_gdbarch_init): Update.
9077 * s390-tdep.c (s390_gdbarch_init): Update.
9078 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9079 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9080 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9081 * mips-tdep.c (mips_gdbarch_init): Update.
9082 * mcore-tdep.c (mcore_gdbarch_init): Update.
9083 * m68k-tdep.c (m68k_gdbarch_init): Update.
9084 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9085 * ia64-tdep.c (ia64_gdbarch_init): Update.
9086 * i386-tdep.c (i386_gdbarch_init): Update.
9087 * hppa-tdep.c (hppa_gdbarch_init): Update.
9088 * h8300-tdep.c (h8300_gdbarch_init): Update.
9089 * frv-tdep.c (frv_gdbarch_init): Update.
9090 * cris-tdep.c (cris_gdbarch_init): Update.
9091 * avr-tdep.c (avr_gdbarch_init): Update.
9092 * arm-tdep.c (arm_gdbarch_init): Update.
9093 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9094
1bf6d5cc
AC
90952003-03-25 Andrew Cagney <cagney@redhat.com>
9096
9097 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9098 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9099 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9100 * gdbarch.h, gdbarch.c: Regenerate.
9101 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9102 call_dummy_stack_adjust_p.
9103 * vax-tdep.c (vax_gdbarch_init): Ditto.
9104 * v850-tdep.c (v850_gdbarch_init): Ditto.
9105 * sh-tdep.c (sh_gdbarch_init): Ditto.
9106 * s390-tdep.c (s390_gdbarch_init): Ditto.
9107 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9108 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9109 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9110 * mips-tdep.c (mips_gdbarch_init): Ditto.
9111 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9112 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9113 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9114 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9115 * i386-tdep.c (i386_gdbarch_init): Ditto.
9116 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9117 * frv-tdep.c (frv_gdbarch_init): Ditto.
9118 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9119 * cris-tdep.c (cris_gdbarch_init): Ditto.
9120 * avr-tdep.c (avr_gdbarch_init): Ditto.
9121 * arm-tdep.c (arm_gdbarch_init): Ditto.
9122 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9123 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9124 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9125 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9126 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9127 call_dummy_stack_adjust_p.
9128 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9129 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9130 * sparc-tdep.c (sparc32_push_arguments): Update.
9131 * valops.c (hand_function_call): Update.
9132
71c08af0
CV
91332003-03-25 Corinna Vinschen <vinschen@redhat.com>
9134
9135 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9136 set_gdbarch_char_signed.
9137
30757f90
RE
91382003-03-25 Richard Earnshaw <rearnsha@arm.com>
9139
9140 PR cli/548
9141 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9142
03d48a7d
RE
91432003-03-25 Richard Earnshaw <rearnsha@arm.com>
9144
9145 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9146 (_initialize_arm_tdep): Don't set tm_print_insn.
9147
2cf6873c
AF
91482003-03-24 Adam Fedor <fedor@gnu.org>
9149
9150 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9151 * objc-lang.h: Add multiple inclusion protection.
9152 (start_msglist, add_msglist, end_msglist): Additional declarations.
9153
17c0759e
RE
91542003-03-24 Richard Earnshaw <rearnsha@arm.com>
9155
9156 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9157 value was renamed to ARM_FLOAT_SOFT_FPA.
9158
618ce49f
AC
91592003-03-23 Andrew Cagney <cagney@redhat.com>
9160
9161 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9162 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9163 * gdbarch.h, gdbarch.c: Regenerate.
9164 * valops.c (hand_function_call): Update.
9165 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9166 * frame.c (legacy_saved_regs_this_id): Update.
9167 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9168 * dummy-frame.h: Update.
9169 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9170 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9171 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9172 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9173 * config/m68k/tm-sun3.h: Update.
9174 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9175 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9176 * x86-64-tdep.c (x86_64_init_abi): Update.
9177 * vax-tdep.c (vax_gdbarch_init): Update.
9178 * v850-tdep.c (v850_gdbarch_init): Update.
9179 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9180 * sh-tdep.c (sh_gdbarch_init): Update.
9181 * s390-tdep.c (s390_gdbarch_init): Update.
9182 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9183 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9184 (frame_get_saved_regs): Update.
9185 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9186 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9187 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9188 * mips-tdep.c (mips_gdbarch_init): Update.
9189 * mcore-tdep.c (mcore_gdbarch_init): Update.
9190 * m68k-tdep.c (m68k_gdbarch_init): Update.
9191 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9192 * ia64-tdep.c (ia64_gdbarch_init): Update.
9193 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9194 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9195 (i386_interix_back_one_frame): Update.
9196 * hppa-tdep.c (hppa_gdbarch_init): Update.
9197 (hppa_init_extra_frame_info): Update.
9198 * h8300-tdep.c (h8300_gdbarch_init): Update.
9199 * frv-tdep.c (frv_gdbarch_init): Update.
9200 * cris-tdep.c (cris_gdbarch_init): Update.
9201 * avr-tdep.c (avr_gdbarch_init): Update.
9202 * arm-tdep.c (arm_gdbarch_init): Update.
9203 * alpha-tdep.c (alpha_gdbarch_init): Update.
9204
fd50bc42
RE
92052003-03-22 Richard Earnshaw <rearnsha@arm.com>
9206
9207 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9208 (arm_get_fp_model): Declare.
9209 * arm-tdep.c (fp_model_strings): New string array.
9210 (arm_fp_model, current_fp_model): New variables.
9211 (arm_get_fp_model): New function.
9212 (arm_set_fp): New function.
9213 (set_fp_model_sfunc): New function.
9214 (show_fp_model): New function.
9215 (_initialize_arm_tdep): Add new command to set/show the FPU.
9216 (arm_extract_return_value): Use arm_get_fp_model.
9217 (arm_store_return_value): Likewise.
9218 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9219 to initialize the floating-point data types.
9220 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9221 model is FPA.
9222
26304000
RE
92232003-03-22 Richard Earnshaw <rearnsha@arm.com>
9224
9225 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9226 the current setting of each value.
9227 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 9228 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
9229 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9230 commands and add new version as subcommands of "set/show arm".
9231
afd7eef0
RE
92322003-03-22 Richard Earnshaw <rearnsha@arm.com>
9233
9234 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9235 (set_arm_command, show_arm_command): New functions.
9236 (_initialize_arm_tdep): Add them.
9237 (num_disassembly_options): Renamed from num_flavor_options.
9238 (valid_disassembly_styles): Renamed from valid_flavors.
9239 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 9240 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
9241 set_disassembly_flavor_sfunc.
9242 (set_disassembly_style): Renamed from set_disassembly_flavor.
9243 (arm_othernames): Updated.
9244 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9245 command. Add "set/show arm disassembly" commands. Deprecate
9246 "othernames" command.
9247
299a7944
RE
92482003-03-22 Richard Earnshaw <rearnsha@arm.com>
9249
9250 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9251 (arm-tdep.o): Depend on elf_arm_h.
9252
c1dac9e6
RE
92532003-03-22 Richard Earnshaw <rearnsha@arm.com>
9254
9255 * Makefile.in (coff_internal_h): Define.
9256 (arm-tdep.o): Update dependencies.
9257
2702d96c
RE
92582003-03-22 Richard Earnshaw <rearnsha@arm.com>
9259
9260 * arm-tdep.c (prologue_cache): Delete.
9261 (check_prologue_cache, save_prologue_cache): Delete.
9262 (arm_scan_prologue): Don't check or update the prologue_cache.
9263 (arm_gdb_arch_init): Don't initialize it.
9264 (_initialize_arm_tdep): Likewise.
9265
27d5d74b
SC
92662003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9267
9268 * MAINTAINERS (tui): Maintainer of tui code.
9269
1762d96d
CV
92702003-03-21 Corinna Vinschen <vinschen@redhat.com>
9271
9272 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9273 (i386-cygwin-tdep.o): Add dependencies.
9274 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9275 * i386-cygwin-tdep.c: New file.
9276 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9277 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9278
4c2e2391
AC
92792003-03-20 Andrew Cagney <cagney@redhat.com>
9280
f20d38b7
AC
9281 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9282 (handle_inferior_event): Remove code calling
9283 DYNAMIC_TRAMPOLINE_NEXTPC.
9284
0022b738
AC
9285 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9286 already has a full path.
9287
864dbc90
AC
9288 * main.c (gdb_main): Return 1.
9289 (captured_main): Call error to report an invalid interpreter.
9290
4c2e2391
AC
9291 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9292 * alpha-osf1-tdep.c: Include "gdb_string.h".
9293
5ef7553b
JB
92942003-03-19 J. Brobecker <brobecker@gnat.com>
9295
9296 Continuing work to convert the hppa targets to multiarch partial.
9297
9298 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9299 method, now that hppa_push_dummy_frame has a conformant prototype.
9300 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9301 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9302 for the switch to multiarch partial.
9303
7bde8967
KB
93042003-03-19 Kevin Buettner <kevinb@redhat.com>
9305
9306 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9307 when iss is issNull.
9308
b006a9e9
KB
93092003-03-18 Kevin Buettner <kevinb@redhat.com>
9310
9311 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9312 NUM_REGS bounds check.
9313
5e2e9765
KB
93142003-03-18 Kevin Buettner <kevinb@redhat.com>
9315
9316 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9317 * mips-tdep.c (gdb_assert.h): Include.
9318 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9319 (mips_register_name): Handle integer registers explicitly. Add
9320 bounds checking.
9321 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9322 (mips_lsi33k_reg_names): Don't list integer registers; they're
9323 handled by mips_register_name() now.
9324 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9325 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9326 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9327 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9328 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9329
a2867626
AC
93302003-03-18 Andrew Cagney <cagney@redhat.com>
9331
9332 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9333 a void pointer.
9334 * gdbtypes.h (print_scalar_formatted): Update declaration.
9335 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9336
06600e06
JB
93372003-03-18 J. Brobecker <brobecker@gnat.com>
9338
9339 * infrun.c (observer.h): Add #include.
9340 (normal_stop): Add call to observer_notify_normal_stop.
9341 * Makefile.in (infrun.o): Add dependency on observer.h.
9342
7daf4f5b
JB
93432003-03-18 J. Brobecker <brobecker@gnat.com>
9344
9345 Continuing work to convert the hppa targets to multiarch partial.
9346 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9347 parameter. Reformat comment.
9348 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9349 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9350 to match new profile.
9351
3371ccc0
JB
93522003-03-18 J. Brobecker <brobecker@gnat.com>
9353
9354 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9355 appear to be working in any case.
9356
4fbe891e
JB
93572003-03-18 J. Brobecker <brobecker@gnat.com>
9358
9359 * observer.c (observer_test_first_observer): New static variable.
9360 (observer_test_second_observer): Likewise.
9361 (observer_test_third_observer): Likewise.
9362 (observer_test_first_notification_function): New static function.
9363 (observer_test_second_notification_function): Likewise.
9364 (observer_test_third_notification_function): Likewise.
9365
a7ff40e7
JB
93662003-03-17 J. Brobecker <brobecker@gnat.com>
9367
9368 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9369 * somsolib.c (gdb_assert.h): Likewise.
9370 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9371 (somsolib.o): Likewise.
9372
26ca4152
AC
93732003-03-17 Andrew Cagney <cagney@redhat.com>
9374
9375 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9376 BFD. Simplify setting of di.endian.
9377
0a613259
AC
93782003-03-17 Andrew Cagney <cagney@redhat.com>
9379
9380 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9381 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9382
9383 From Elena Zannoni <ezannoni@redhat.com>
9384 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9385 vector and floating-point parameters.
9386 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9387 convention.
9388 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9389
1132738f
FN
93902003-03-17 Fernando Nasser <fnasser@redhat.com>
9391
9392 * MAINTAINERS: Remove my name from several maintainership roles.
9393
6dc42492
AC
93942003-03-17 Andrew Cagney <cagney@redhat.com>
9395
9396 Fix frame off-by-one bug.
9397 * frame-unwind.h (frame_this_id_ftype): Replace
9398 frame_unwind_id_ftype.
9399 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9400 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9401 with "prev_register".
9402 * frame-unwind.c (frame_unwind_find_by_pc): Return
9403 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9404 comment.
9405 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9406 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9407 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9408 (dummy_frame_unwind): Update.
9409 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9410 sentinel_frame_register_unwind.
9411 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9412 (sentinel_frame_unwinder): Update.
9413 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9414 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9415 * frame.c (create_sentinel_frame): Update. Initialize
9416 "prologue_cache" instead of "unwind_cache".
9417 (frame_register_unwind): Call this frame's prev_register with the
9418 next frame and this frame's prologue cache.
9419 (get_prev_frame): Simplify. Always call prev frame's this_id with
9420 this frame and prev frame's prologue cache. Document that this
9421 call is shifted one to the left when compared to the
9422 frame_register_unwind call.
9423 (legacy_saved_regs_prev_register): Replace
9424 frame_saved_regs_register_unwind.
9425 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9426 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9427 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9428 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9429 (d10v_frame_unwind): Update.
9430 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9431 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9432 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9433 "saved_regs" with "this_saved_regs".
9434
efd710d6
AC
94352003-03-16 Andrew Cagney <cagney@redhat.com>
9436
9437 * frame.c (frame_pop): Don't call target_store_registers. Fix
9438 problem reported by Mark Kettenis.
9439
4e259f09
MK
94402003-03-16 Mark Kettenis <kettenis@gnu.org>
9441
9442 * i386-tdep.c (i386_register_type): Renamed from
9443 i386_register_virtual_type. Adjust function signature.
9444 (i386_gdbarch_init): Set register_type instead of
9445 deprecated_max_register_raw_size,
9446 deprecated_max_register_virtual_size and register_virtual_type.
9447
055bb976
AC
94482003-03-14 Andrew Cagney <cagney@redhat.com>
9449
9450 * frame.c (get_prev_frame): When a legacy frame, always call
9451 legacy_get_prev_frame. Simplify unwind code using assumption that
9452 the unwinder is new.
9453 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9454 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9455 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9456
ac2adee5
AC
94572003-03-14 Andrew Cagney <cagney@redhat.com>
9458
9459 * frame.c (get_saved_register): Delete function.
9460 * frame.h (get_saved_register): Delete declaration.
9461 * xstormy16-tdep.c: Update comment.
9462 * regcache.h: Update comments.
9463 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9464 get_saved_register and extract_address, use
9465 frame_read_unsigned_register.
9466 (sparc_frame_saved_pc): Ditto.
9467 (sparc_get_saved_register): Instead of get_saved_register, use
9468 frame_register.
9469 (sparc_pop_frame): Ditto.
9470 * findvar.c: Update comments.
9471 (value_of_register): Call frame_register instead of
9472 get_saved_register.
9473 (value_from_register): Ditto.
9474 * config/sparc/tm-sparc.h: Update comment.
9475 * breakpoint.c: Update comment.
9476
129c1cd6
AC
94772003-03-14 Andrew Cagney <cagney@redhat.com>
9478
9479 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9480 GET_SAVED_REGISTER.
9481 * gdbarch.h, gdbarch.c: Re-generate.
9482 * frame.h: Update comments.
9483 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9484 * x86-64-tdep.c (x86_64_init_abi): Update.
9485 * sparc-tdep.c (sparc_gdbarch_init): Update.
9486 * sh-tdep.c (sh_gdbarch_init): Update.
9487 * mips-tdep.c (mips_gdbarch_init): Update.
9488 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9489 * cris-tdep.c (cris_gdbarch_init): Update.
9490 * ia64-tdep.c (ia64_gdbarch_init): Update.
9491 * frame.c (frame_register): Update.
9492 (get_saved_register): Update.
9493 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 9494
749b82f6
AC
94952003-03-13 Andrew Cagney <cagney@redhat.com>
9496
9497 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9498 * gdbarch.h, gdbarch.c: Regenerate.
9499 * valops.c (hand_function_call): Update comment.
9500 * stack.c (return_command): Update comment.
9501 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9502 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9503 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9504 * x86-64-tdep.c (x86_64_init_abi): Update.
9505 * vax-tdep.c (vax_gdbarch_init): Update.
9506 * v850-tdep.c (v850_gdbarch_init): Update.
9507 * sparc-tdep.c (sparc_gdbarch_init): Update.
9508 * sh-tdep.c (sh_gdbarch_init): Update.
9509 * s390-tdep.c (s390_gdbarch_init): Update.
9510 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9511 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9512 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9513 * mips-tdep.c (mips_gdbarch_init): Update.
9514 * mcore-tdep.c (mcore_gdbarch_init): Update.
9515 * m68k-tdep.c (m68k_gdbarch_init): Update.
9516 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9517 * ia64-tdep.c (ia64_gdbarch_init): Update.
9518 * i386-tdep.c (i386_gdbarch_init): Update.
9519 * hppa-tdep.c (hppa_gdbarch_init): Update.
9520 * h8300-tdep.c (h8300_gdbarch_init): Update.
9521 * frv-tdep.c (frv_gdbarch_init): Update.
9522 * cris-tdep.c (cris_gdbarch_init): Update.
9523 * avr-tdep.c (avr_gdbarch_init): Update.
9524 * arm-tdep.c (arm_gdbarch_init): Update.
9525 * alpha-tdep.c (alpha_gdbarch_init): Update.
9526
1594fa56
AC
95272003-03-13 Andrew Cagney <cagney@redhat.com>
9528
9529 * frame.c (legacy_frame_p): New function.
9530 (get_prev_frame): Use legacy_frame_p.
9531 * frame.h (legacy_frame_p): Declare.
9532
7717fda3
V
95332003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9534
fbe586ae 9535 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
9536 listing corrected.
9537
0c67cbe9
V
95382003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9539
fbe586ae 9540 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 9541
03febf99
AC
95422003-03-12 Andrew Cagney <cagney@redhat.com>
9543
9544 * frame.c (get_prev_frame): Rename the frame parameter to
9545 "this_frame".
9546 (get_next_frame, legacy_get_prev_frame): Ditto.
9547
0a1e1ca1
AC
95482003-03-12 Andrew Cagney <cagney@redhat.com>
9549
9550 * frame.c (get_current_frame): Check target_has_registers before
9551 checking target_has_stack.
9552 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9553 instead of deprecated_selected_frame.
9554 * findvar.c (value_of_register): Pass "frame", not
9555 deprecated_selected_frame, to value_of_builtin_reg.
9556
a66a9c23
AC
95572003-03-12 Andrew Cagney <cagney@redhat.com>
9558
9559 * regcache.c (regcache_cooked_write_signed): New function.
9560 (regcache_cooked_write_unsigned): New function.
9561 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9562 (regcache_cooked_read_signed): Fix regnum in range assertion.
9563 * regcache.h (regcache_cooked_write_signed): Declare.
9564 (regcache_cooked_write_unsigned): Declare.
9565
8bedc050
AC
95662003-03-12 Andrew Cagney <cagney@redhat.com>
9567
9568 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9569 * gdbarch.h, gdbarch.c: Re-generate.
9570 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9571 * x86-64-tdep.h: Update.
9572 * x86-64-tdep.c (x86_64_init_abi): Update.
9573 * v850-tdep.c (v850_gdbarch_init): Update.
9574 * sparc-tdep.c (sparc_gdbarch_init): Update.
9575 * sh-tdep.c (sh_gdbarch_init): Update.
9576 * s390-tdep.c (s390_gdbarch_init): Update.
9577 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9578 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9579 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9580 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9581 * mips-tdep.c (mips_gdbarch_init): Update.
9582 * mcore-tdep.c (mcore_gdbarch_init): Update.
9583 * m68k-tdep.c (m68k_gdbarch_init): Update.
9584 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9585 * ia64-tdep.c (ia64_gdbarch_init): Update.
9586 * i386-tdep.c (i386_gdbarch_init): Update.
9587 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9588 * hppa-tdep.c (hppa_gdbarch_init): Update.
9589 * h8300-tdep.c (h8300_gdbarch_init): Update.
9590 * frv-tdep.c (frv_gdbarch_init): Update.
9591 * cris-tdep.c (cris_gdbarch_init): Update.
9592 * avr-tdep.c (avr_gdbarch_init): Update.
9593 * arm-tdep.c (arm_gdbarch_init): Update.
9594 * alpha-tdep.c (alpha_gdbarch_init): Update.
9595 * sh-tdep.c (sh_init_extra_frame_info): Update.
9596 (sh64_init_extra_frame_info): Update.
9597 * ns32knbsd-nat.c (frame_num_args): Update.
9598 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9599 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9600 (xstormy16_frame_chain_valid): Update.
9601 * vax-tdep.c (vax_saved_pc_after_call): Update.
9602 * v850-tdep.c (v850_frame_chain): Update.
9603 (v850_pop_frame): Update.
9604 (v850_init_extra_frame_info): Update.
9605 * sparc-tdep.c (setup_arbitrary_frame): Update.
9606 * ns32k-tdep.c (umax_frame_num_args): Update.
9607 * s390-tdep.c (s390_pop_frame_regular): Update.
9608 * mn10300-tdep.c (mn10300_frame_chain): Update.
9609 (mn10300_pop_frame_regular): Update.
9610 (mn10300_init_extra_frame_info): Update.
9611 * mips-tdep.c (mips_init_frame_pc_first): Update.
9612 (mips_frame_chain): Update.
9613 (mips_pop_frame): Update.
9614 * mcore-tdep.c (mcore_frame_chain): Update.
9615 (mcore_pop_frame): Update.
9616 (mcore_init_extra_frame_info): Update.
9617 * arch-utils.c (init_frame_pc_default): Update.
9618 * m68k-tdep.c (isi_frame_num_args): Update.
9619 (delta68_frame_num_args): Update.
9620 (news_frame_num_args): Update.
9621 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9622 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9623 (alpha_frame_chain): Update.
9624 (alpha_pop_frame): Update.
9625 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9626 (hppa_init_extra_frame_info): Update.
9627 (hppa_frame_chain): Update.
9628 (hppa_frame_chain_valid): Update.
9629 * cris-tdep.c (cris_init_extra_frame_info): Update.
9630 * avr-tdep.c (avr_init_extra_frame_info): Update.
9631 * arm-tdep.c (arm_frame_chain_valid): Update.
9632 (arm_init_extra_frame_info): Update.
9633 (arm_pop_frame): Update.
9634 * frame.c (frame_pc_unwind): Update.
9635 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9636 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9637 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9638 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9639 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9640 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9641
7a25a7c1
AC
96422003-03-12 Andrew Cagney <cagney@redhat.com>
9643
9644 Eliminate the need for POP_FRAME.
9645 * frame.c (do_frame_unwind_register): New function.
9646 (frame_pop): When no POP_FRAME, pop the frame using register
9647 unwind and a scratch regcache.
9648 (frame_saved_regs_pop): Delete function.
9649 (trad_frame_unwinder): Update.
9650 * d10v-tdep.c (d10v_frame_pop): Delete function.
9651 (d10v_frame_unwind): Update.
9652 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9653 (sentinel_frame_unwinder): Update.
9654 * dummy-frame.c (dummy_frame_pop): Delete function.
9655 (dummy_frame_unwind): Update.
9656 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9657 (struct frame_unwind): Update.
9658
2f38ef89
KB
96592003-03-11 Kevin Buettner <kevinb@redhat.com>
9660
9661 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9662 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9663 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9664 Do range checks on register number obtained from debugging info.
9665 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9666 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9667 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9668 mapping function.
9669 (do_fp_register_row): Fix typo which caused double type to be
9670 used when attempting to unpack a float.
9671
552f4abf
JB
96722003-03-11 J. Brobecker <brobecker@gnat.com>
9673
9674 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9675
e0d2ae16
AC
96762003-03-11 Andrew Cagney <cagney@redhat.com>
9677
9678 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9679 frame. Problem found by Corinna Vinschen.
9680
ddbfdd06
PM
96812003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9682
9683 * doublest.c (floatformat_from_length): Accept also
9684 the real size of 'long double' type.
9685
088b2ddc 96862003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 9687
088b2ddc 9688 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
9689 * breakpoint.c (bpstat_copy): Copy the command lines as well
9690 as the old value, to match what is freed in bpstat_clear.
9691
f56f77c1
DC
96922003-03-10 David Carlton <carlton@math.stanford.edu>
9693
9694 * minsyms.c (add_minsym_to_hash_table): Replace
9695 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9696 (compare_minimal_symbols, compact_minimal_symbols)
9697 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9698 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9699 of DEPRECATED_SYMBOL_MATCHES_NAME.
9700 (lookup_minimal_symbol_solib_trampoline): Ditto.
9701
5602984a
AC
97022003-03-10 Andrew Cagney <cagney@redhat.com>
9703
9704 * regcache.h (regcache_cooked_read_ftype): Define.
9705 (regcache_save, regcache_restore): Add a cooked_read parameter.
9706 * regcache.c (regcache_save, regcache_restore): Update.
9707 (do_cooked_read): New function.
9708 (regcache_cpy): Pass do_cooked_read to regcache_save and
9709 regcache_restore.
9710
8bedc050
AC
97112003-03-10 Andrew Cagney <cagney@redhat.com>
9712
9713 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9714 * gdbarch.h, gdbarch.c: Re-generate.
9715 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9716 * x86-64-tdep.h: Update.
9717 * x86-64-tdep.c (x86_64_init_abi): Update.
9718 * v850-tdep.c (v850_gdbarch_init): Update.
9719 * sparc-tdep.c (sparc_gdbarch_init): Update.
9720 * sh-tdep.c (sh_gdbarch_init): Update.
9721 * s390-tdep.c (s390_gdbarch_init): Update.
9722 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9723 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9724 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9725 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9726 * mips-tdep.c (mips_gdbarch_init): Update.
9727 * mcore-tdep.c (mcore_gdbarch_init): Update.
9728 * m68k-tdep.c (m68k_gdbarch_init): Update.
9729 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9730 * ia64-tdep.c (ia64_gdbarch_init): Update.
9731 * i386-tdep.c (i386_gdbarch_init): Update.
9732 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9733 * hppa-tdep.c (hppa_gdbarch_init): Update.
9734 * h8300-tdep.c (h8300_gdbarch_init): Update.
9735 * frv-tdep.c (frv_gdbarch_init): Update.
9736 * cris-tdep.c (cris_gdbarch_init): Update.
9737 * avr-tdep.c (avr_gdbarch_init): Update.
9738 * arm-tdep.c (arm_gdbarch_init): Update.
9739 * alpha-tdep.c (alpha_gdbarch_init): Update.
9740 * sh-tdep.c (sh_init_extra_frame_info): Update.
9741 (sh64_init_extra_frame_info): Update.
9742 * ns32knbsd-nat.c (frame_num_args): Update.
9743 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9744 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9745 (xstormy16_frame_chain_valid): Update.
9746 * vax-tdep.c (vax_saved_pc_after_call): Update.
9747 * v850-tdep.c (v850_frame_chain): Update.
9748 (v850_pop_frame): Update.
9749 (v850_init_extra_frame_info): Update.
9750 * sparc-tdep.c (setup_arbitrary_frame): Update.
9751 * ns32k-tdep.c (umax_frame_num_args): Update.
9752 * s390-tdep.c (s390_pop_frame_regular): Update.
9753 * mn10300-tdep.c (mn10300_frame_chain): Update.
9754 (mn10300_pop_frame_regular): Update.
9755 (mn10300_init_extra_frame_info): Update.
9756 * mips-tdep.c (mips_init_frame_pc_first): Update.
9757 (mips_frame_chain): Update.
9758 (mips_pop_frame): Update.
9759 * mcore-tdep.c (mcore_frame_chain): Update.
9760 (mcore_pop_frame): Update.
9761 (mcore_init_extra_frame_info): Update.
9762 * arch-utils.c (init_frame_pc_default): Update.
9763 * m68k-tdep.c (isi_frame_num_args): Update.
9764 (delta68_frame_num_args): Update.
9765 (news_frame_num_args): Update.
9766 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9767 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9768 (alpha_frame_chain): Update.
9769 (alpha_pop_frame): Update.
9770 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9771 (hppa_init_extra_frame_info): Update.
9772 (hppa_frame_chain): Update.
9773 (hppa_frame_chain_valid): Update.
9774 * cris-tdep.c (cris_init_extra_frame_info): Update.
9775 * avr-tdep.c (avr_init_extra_frame_info): Update.
9776 * arm-tdep.c (arm_frame_chain_valid): Update.
9777 (arm_init_extra_frame_info): Update.
9778 (arm_pop_frame): Update.
9779 * frame.c (frame_pc_unwind): Update.
9780 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9781 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9782 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9783 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9784 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9785 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9786
12cc2063
AC
97872003-03-10 Andrew Cagney <cagney@redhat.com>
9788
9789 * gdbarch.sh (gdbarch_unwind_pc): New method.
9790 * gdbarch.h, gdbarch.c: Regenerate.
9791 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9792 but use read_pc and FRAME_SAVED_PC as fall backs.
9793 (frame_saved_regs_pc_unwind): Delete function.
9794 (trad_frame_unwinder): Update.
9795 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9796 (struct frame_unwind): Update.
9797 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9798 (dummy_frame_unwind): Update.
9799 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9800 (sentinel_frame_unwinder): Update.
9801 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9802 (d10v_frame_unwind): Update.
9803 (d10v_unwind_pc): New function.
9804 (d10v_gdbarch_init): Set unwind_pc.
9805
ef840a37
AC
98062003-03-10 Andrew Cagney <cagney@redhat.com>
9807
a2ce2e56
AC
9808 * gdbarch.h: Re-generate.
9809
ef840a37
AC
9810 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9811 PC.
9812 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9813 the PC register.
9814
08f3424b
MK
98152003-03-08 Mark Kettenis <kettenis@gnu.org>
9816
9817 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9818
1248ede2
AC
98192003-03-08 Andrew Cagney <cagney@redhat.com>
9820
9821 * cli-out.c: Update copyright.
9822 (cli_out_data): Define typedef. Use instead of ui_out_data.
9823
f49bacc8
AC
98242003-03-08 Andrew Cagney <cagney@redhat.com>
9825
9826 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9827 the result.
9828
9b05f993
AC
98292003-03-07 Andrew Cagney <cagney@redhat.com>
9830
9831 * gdbarch.sh: Don't generate two macro definitions when an
9832 undefined macro taking no arguments.
9833 * gdbarch.h: Regenerate.
8ffd9b1b 9834
166f4c7b
ML
98352002-03-07 Michal Ludvig <mludvig@suse.cz>
9836
9837 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9838 (x86_64_unwind_dummy_id): New functions.
9839 (x86_64_init_abi): Register these two new functions.
9840
6d686a84
ML
98412003-03-07 Michal Ludvig <mludvig@suse.cz>
9842
9843 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 9844 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
9845 separate function.
9846 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9847
6314f104
AC
98482003-03-05 Andrew Cagney <cagney@redhat.com>
9849
9850 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9851 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9852 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9853 to use unwind_dummy_id when a dummy frame.
9854 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9855 predicate.
9856 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 9857
ceea5145
AC
98582003-03-05 Andrew Cagney <cagney@redhat.com>
9859
9860 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9861 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9862 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9863 values.
9864
0d843116
AC
98652003-03-05 Andrew Cagney <cagney@redhat.com>
9866
9867 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9868 (struct d10v_unwind_cache): Delete field "frameless". Replace
9869 "next_addr" with "sp_offset". Add "r11_offset".
9870 (d10v_frame_unwind_cache): Update.
9871 (prologue_find_regs): Update. When "mv r11, sp", save the
9872 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9873 RN was saved in r11_offset.
9874
b2579786
AC
98752003-03-05 Andrew Cagney <cagney@redhat.com>
9876
9877 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9878 cached PC value in the next frame.
9879
218e5956
AC
98802003-03-05 Andrew Cagney <cagney@redhat.com>
9881
9882 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9883 "id_unwind_cache" with "id".
9884 (frame_id_unwind): Delete declaration.
9885 * frame.c (frame_id_unwind): Delete function.
9886 (get_prev_frame): Call the frame id unwind method directly. Store
9887 the returned next frame's ID value in NEXT_FRAME. Note that there
9888 is a problem with the wrong unwind ID being called with the wrong
9889 unwind cache.
9890
ed363b1b
DJ
98912003-03-05 Daniel Jacobowitz <drow@mvista.com>
9892
9893 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9894
fe1f4a5e
DJ
98952003-03-05 James Ingham <jingham@apple.com>
9896 Daniel Jacobowitz <drow@mvista.com>
9897
9898 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9899 (auto_cp_abi): New variable.
9900 (current_cp_abi, num_cp_abis): Make static.
9901 (CP_ABI_MAX): Define.
9902 (cp_abis): Turn into an array.
9903 (value_virtual_fn_field): Fix formatting.
9904 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9905 takes a pointer.
9906 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9907 (list_cp_abis, _initialize_cp_abi): New functions.
9908 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9909 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9910 switch_to_cp_abi. Update prototype for register_cp_abi.
9911 * Makefile.in (cp-abi.o): Update dependencies.
9912 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9913 instead of switch_to_cp_abi.
9914 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9915 register_cp_abi.
9916 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9917 register_cp_abi.
9918 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9919
e4adbba9
DJ
99202003-03-05 Daniel Jacobowitz <drow@mvista.com>
9921
9922 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9923 * dwarf2loc.c: Include "regcache.h".
9924 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9925 register_size.
9926 * Makefile.in (dwarf2loc.o): Update dependencies.
9927
91ccbfc1
TR
99282003-03-04 Theodore A. Roth <troth@openavr.org>
9929
9930 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9931 number of io registers reported by remote target is not a multiple of
9932 step.
9933
3d4e8fd2
DC
99342003-03-04 David Carlton <carlton@math.stanford.edu>
9935
9936 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9937 (lookup_symbol_aux_psymtabs): Update call to
9938 lookup_partial_symbol.
9939 (lookup_transparent_type, find_main_psymtab)
9940 (make_symbol_overload_list): Ditto.
9941
ed42d87b
KH
99422003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9943
9944 * MAINTAINERS (Write after approval): Update my email address.
9945
a0ed5532
AC
99462003-03-03 Andrew Cagney <cagney@redhat.com>
9947
9948 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9949 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9950 predicate. Replace MAX_REGISTER_RAW_SIZE.
9951 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9952 MAX_REGISTER_VIRTUAL_SIZE.
9953 * regcache.c (legacy_max_register_raw_size): New function.
9954 (legacy_max_register_virtual_size): New function.
9955 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9956 (MAX_REGISTER_RAW_SIZE): Define.
9957 (legacy_max_register_raw_size): Declare.
9958 (legacy_max_register_virtual_size): Declare.
9959 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9960 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9961 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9962 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9963 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9964 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9965 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9966 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9967 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9968 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9969 * vax-tdep.c (vax_gdbarch_init): Update.
9970 * v850-tdep.c (v850_gdbarch_init): Update.
9971 * sparc-tdep.c (sparc_gdbarch_init): Update.
9972 * sh-tdep.c (sh_gdbarch_init): Update.
9973 * s390-tdep.c (s390_gdbarch_init): Update.
9974 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9975 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9976 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9977 * mips-tdep.c (mips_gdbarch_init): Update.
9978 * mcore-tdep.c (mcore_gdbarch_init): Update.
9979 * m68k-tdep.c (m68k_gdbarch_init): Update.
9980 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9981 * ia64-tdep.c (ia64_gdbarch_init): Update.
9982 * i386-tdep.c (i386_gdbarch_init): Update.
9983 * hppa-tdep.c (hppa_gdbarch_init): Update.
9984 * h8300-tdep.c (h8300_gdbarch_init): Update.
9985 * frv-tdep.c (frv_gdbarch_init): Update.
9986 * cris-tdep.c (cris_gdbarch_init): Update.
9987 * avr-tdep.c (avr_gdbarch_init): Update.
9988 * arm-tdep.c (arm_gdbarch_init): Update.
9989 * alpha-tdep.c (alpha_gdbarch_init): Update.
9990 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9991 max_register_raw_size or max_register_virtual_size.
9992
8e437497
DC
99932003-03-03 David Carlton <carlton@math.stanford.edu>
9994
9995 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9996 SYMBOL_MATCHES_NAME, add comment.
9997 (SYMBOL_MATCHES_NATURAL_NAME): New.
9998 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9999 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10000 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10001 * symtab.c (lookup_partial_symbol): Use
10002 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10003 unhelpful comment.
10004 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10005 SYMBOL_MATCHES_NAME.
10006 Fix for PR c++/33.
10007
25120b0d
DC
100082003-03-03 David Carlton <carlton@math.stanford.edu>
10009
10010 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10011 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10012 by regexp matching against SYMBOL_NATURAL_NAME.
10013
78a11fb4
DC
100142003-03-03 David Carlton <carlton@math.stanford.edu>
10015
10016 * linespec.c (find_method): Extract code into collect_methods.
10017 (collect_methods): New.
10018
645dd519
MK
100192003-03-02 Mark Kettenis <kettenis@gnu.org>
10020
b4700d91
MK
10021 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10022 get_frame_base.
10023
645dd519
MK
10024 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10025 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10026
0aa7e1aa
SC
100272003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10028
8ffd9b1b 10029 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
10030 and not regnum when summing the size of all registers up to regnum.
10031
f30ee0bc
AC
100322003-03-01 Andrew Cagney <cagney@redhat.com>
10033
10034 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10035 FRAME_INIT_SAVED_REGS.
10036 * gdbarch.h, gdbarch.c: Regenerate.
10037 * stack.c (frame_info): Update.
10038 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10039 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10040 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10041 * ns32k-tdep.c (ns32k_pop_frame): Update.
10042 * mips-tdep.c (mips_pop_frame): Update.
10043 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10044 * ia64-tdep.c (ia64_frame_chain): Update.
10045 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10046 (ia64_frameless_function_invocation): Update.
10047 (ia64_init_extra_frame_info): Update.
10048 (ia64_pop_frame_regular): Update.
10049 * frame.h (struct frame_info): Update comment.
10050 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10051 * frame.c (frame_saved_regs_register_unwind): Update.
10052 (frame_saved_regs_register_unwind): Update.
10053 (deprecated_generic_get_saved_register): Update.
10054 * cris-tdep.c: Update comment.
10055 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10056 Rename macro.
10057 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10058 * x86-64-tdep.c (x86_64_init_abi): Update.
10059 * vax-tdep.c (vax_gdbarch_init): Update.
10060 * v850-tdep.c (v850_gdbarch_init): Update.
10061 * sparc-tdep.c (sparc_gdbarch_init): Update.
10062 * sh-tdep.c (sh_gdbarch_init): Update.
10063 * s390-tdep.c (s390_gdbarch_init): Update.
10064 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10065 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10066 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10067 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10068 * mips-tdep.c (mips_gdbarch_init): Update.
10069 * mcore-tdep.c (mcore_gdbarch_init): Update.
10070 * m68k-tdep.c (m68k_gdbarch_init): Update.
10071 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10072 * ia64-tdep.c (ia64_gdbarch_init): Update.
10073 * i386-tdep.c (i386_gdbarch_init): Update.
10074 * frv-tdep.c (frv_gdbarch_init): Update.
10075 * avr-tdep.c (avr_gdbarch_init): Update.
10076 * arm-tdep.c (arm_gdbarch_init): Update.
10077 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10078
42fa7c0f
AC
100792003-03-01 Andrew Cagney <cagney@redhat.com>
10080
10081 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10082 option enum and switch. When no windows, set the interpreter to
10083 INTERP_CONSOLE.
8ffd9b1b 10084
49c7e338
AC
100852003-03-01 Andrew Cagney <cagney@redhat.com>
10086
10087 * main.c (captured_main): Replace magic option characters with an
10088 enum.
10089
e9582e71
AC
100902003-03-01 Andrew Cagney <cagney@redhat.com>
10091
10092 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10093 INIT_EXTRA_FRAME_INFO.
10094 * gdbarch.h, gdbarch.c: Regenerate.
10095 * arm-tdep.c: Update comments.
10096 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10097 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10098 * frame.h, avr-tdep.c: Ditto.
10099 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10100 (create_new_frame, legacy_get_prev_frame): Ditto.
10101 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10102 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10103 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10104 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10105 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10106 * v850-tdep.c (v850_gdbarch_init): Ditto.
10107 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10108 * sh-tdep.c (sh_gdbarch_init): Ditto.
10109 * s390-tdep.c (s390_gdbarch_init): Ditto.
10110 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10111 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10112 * mips-tdep.c (mips_gdbarch_init): Ditto.
10113 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10114 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10115 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10116 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10117 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10118 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10119 * frv-tdep.c (frv_gdbarch_init): Ditto.
10120 * cris-tdep.c (cris_gdbarch_init): Ditto.
10121 * avr-tdep.c (avr_gdbarch_init): Ditto.
10122 * arm-tdep.c (arm_gdbarch_init): Ditto.
10123 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10124 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10125
35cac7cf
AC
101262003-03-01 Andrew Cagney <cagney@redhat.com>
10127
10128 * gdbarch.sh (register_type): New function with predicate.
10129 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10130 * gdbarch.h, gdbarch.c: Re-generate.
10131 * arch-utils.c (generic_register_byte): Use generic_register_size.
10132 (generic_register_size): When available, use
10133 gdbarch_register_type.
10134 * regcache.c (init_regcache_descr): When available, initialize the
10135 register type array using gdbarch_register_type. If the
10136 architecture supplies gdbarch_register_type, do not use the legacy
10137 regcache layout.
10138 * d10v-tdep.c (d10v_register_type): Replace
10139 d10v_register_virtual_type.
10140 (d10v_gdbarch_init): Set register_type instead of
10141 register_virtual_type.
10142
7b83296f
AC
101432003-03-01 Andrew Cagney <cagney@redhat.com>
10144
10145 * Makefile.in (ax-gdb.o): Update dependencies.
10146 * ax-gdb.c: Include "regcache.h".
10147 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10148 * findvar.c (value_of_register): Ditto.
10149 * infcmd.c (default_print_registers_info): Ditto.
10150
eadc1c87
MK
101512003-03-01 Mark Kettenis <kettenis@gnu.org>
10152
10153 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10154 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10155
14143612
MK
101562003-03-01 Mark Kettenis <kettenis@gnu.org>
10157
10158 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10159 of STREQ.
10160
a55cc764
DJ
101612003-02-28 Daniel Jacobowitz <drow@mvista.com>
10162
10163 * Makefile.in (dwarf2loc.o): Update dependencies.
10164 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10165 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10166 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10167 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10168 (locexpr_tracepoint_var_ref): New function.
10169 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10170
08a617da
AC
101712003-02-28 Andrew Cagney <cagney@redhat.com>
10172
10173 * regcache.c (register_size): New function.
10174 * regcache.h (register_size): Declare
10175 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10176 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10177
4224873a
DC
101782003-02-28 David Carlton <carlton@math.stanford.edu>
10179
10180 * linespec.c (decode_compound): Extract code into find_method.
10181 (find_method): New.
10182
ccdc5d7f
JB
101832003-02-28 J. Brobecker <brobecker@gnat.com>
10184
10185 * Makefile.in: Add rules to build and link in observer.o.
10186
974e8ced
JB
101872003-02-27 J. Brobecker <brobecker@gnat.com>
10188
10189 * observer.c: Minor comments edits.
10190
7a28f973
JB
101912003-02-27 J. Brobecker <brobecker@gnat.com>
10192
10193 * observer.h, observer.c: New file.
10194
27cddce2
AC
101952003-02-27 Andrew Cagney <cagney@redhat.com>
10196
10197 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10198
b94a41a1
SC
101992003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10200
10201 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10202 (M6812_OP_STS_EXT): Likewise.
10203 (m6811_prologue): Use the above to recognize prologue.
10204 (m6812_prologue): Likewise.
10205
c8be8951
DC
102062003-02-27 David Carlton <carlton@math.stanford.edu>
10207
10208 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10209 SYMBOL_PRINT_NAME.
10210 (compare_psymbols): Ditto.
10211 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10212
d05bb1fc
MS
102132003-02-27 Michael Snyder <msnyder@redhat.com>
10214
4e845cd3
MS
10215 * f-lang.c (build_fortran_types): New function.
10216 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
10217 * doublest.c (extract_floating): Fix warning text.
10218
f3824013
AC
102192003-02-27 Andrew Cagney <cagney@redhat.com>
10220
10221 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10222 predicate. Replaces PUSH_DUMMY_FRAME.
10223 * gdbarch.h, gdbarch.c: Regnerate.
10224 * valops.c (hand_function_call): Update. Call
10225 generic_push_dummy_frame directly.
10226 * vax-tdep.c (vax_gdbarch_init): Update.
10227 * sparc-tdep.c (sparc_gdbarch_init): Update.
10228 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10229 * m68k-tdep.c (m68k_gdbarch_init): Update.
10230 * hppa-tdep.c (hppa_gdbarch_init): Update.
10231 * alpha-tdep.c (alpha_gdbarch_init): Update.
10232 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10233 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10234 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10235 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10236 push_dummy_frame to generic_push_dummy_frame.
10237 * v850-tdep.c (v850_gdbarch_init): Ditto.
10238 * sh-tdep.c (sh_gdbarch_init): Ditto.
10239 * s390-tdep.c (s390_gdbarch_init): Ditto.
10240 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10241 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10242 * mips-tdep.c (mips_gdbarch_init): Ditto.
10243 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10244 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10245 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10246 * i386-tdep.c (i386_gdbarch_init): Ditto.
10247 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10248 * frv-tdep.c (frv_gdbarch_init): Ditto.
10249 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10250 * cris-tdep.c (cris_gdbarch_init): Ditto.
10251 * avr-tdep.c (avr_gdbarch_init): Ditto.
10252 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 10253
ad188201
KB
102542003-02-26 Kevin Buettner <kevinb@redhat.com>
10255
10256 * mips-tdep.c (show_mips_abi): New function.
10257 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10258 command ``show mips abi''.
10259
6b37567a 102602003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 10261
6b37567a 10262 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 10263 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
10264 more sline entries have been seen for the function.
10265
d3e0a5bf
MC
102662003-02-26 Michael Chastain <mec@shout.net>
10267
10268 * configure: Regenerate with autoconf 000227.
10269
18972eea
MC
102702003-02-26 Michael Chastain <mec@shout.net>
10271
10272 Close PR build/660.
10273 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10274 for old libc5/glibc.
10275 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10276
0bbde931
KW
102772003-02-26 Kris Warkentin <kewarken@qnx.com>
10278
10279 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10280 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10281
27ca5dad
MC
102822003-02-26 Michael Chastain <mec@shout.net>
10283
10284 * configure.in: New variable HAVE_UINTPTR_T.
10285 * configure, config.in: Regenerated.
10286
6f88d630
DJ
102872003-02-26 Daniel Jacobowitz <drow@mvista.com>
10288
10289 Fix PR build/1097.
10290 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10291
b14185ce
AC
102922003-02-25 Andrew Cagney <cagney@redhat.com>
10293
10294 * frame.c (get_prev_frame): Add comment on check for
10295 inside_entry_func. Only check for inside_entry_file when not a
10296 dummy and not a sentinel. Check that the new frame is not inner
10297 to the old frame.
10298
ac2bd0a9
AC
102992003-02-25 Andrew Cagney <cagney@redhat.com>
10300
10301 * frame.c (frame_debug): New variable.
10302 (_initialize_frame): Add "set/show debug frame" command.
10303 (get_prev_frame): When frame_debug, print reason why unwind
10304 failed.
10305
b18a0fd2
MC
103062003-02-25 Michael Chastain <mec@shout.net>
10307
10308 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10309 to avoid uintptr_t definition problems.
10310
22abf04a
DC
103112003-02-25 David Carlton <carlton@math.stanford.edu>
10312
10313 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10314 (SYMBOL_LINKAGE_NAME): Ditto.
10315 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10316 SYMBOL_LINKAGE_NAME.
10317 (struct general_symbol_info): Expand comment.
10318 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10319 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10320 (SYMBOL_MATCHES_REGEXP): Ditto.
10321 * symtab.c (symbol_natural_name): New function.
10322 * objfiles.h: Replace all uses of SYMBOL_NAME by
10323 DEPRECATED_SYMBOL_NAME.
10324 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10325 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10326 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10327 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10328 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10329 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10330 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10331 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10332 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10333 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10334 * ada-exp.y: Ditto.
10335 * ada-exp.y: Update copyright.
10336 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10337 * cp-valprint.c: Ditto.
10338
1a5848f6
JJ
103392003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10340
10341 * infptrace.c (detach): Do not flag error if ptrace detach fails
10342 and errno is set to ESRCH.
10343
7343d46a
AC
103442003-02-24 Andrew Cagney <cagney@redhat.com>
10345
10346 * infptrace.c (udot_info): Change type of udot_off to long. Use
10347 paddr when printing udot_off's value.
10348
49fa1dc2
DC
103492003-02-24 David Carlton <carlton@math.stanford.edu>
10350
10351 * symtab.c (make_symbol_overload_list): Only read in partial
10352 symtabs containing a matching partial symbol.
10353
0fe19209
DC
103542003-02-24 David Carlton <carlton@math.stanford.edu>
10355
10356 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10357 do the comparison, not strcmp.
10358 * symfile.c (compare_psymbols): Ditto.
10359 * defs.h: Declare strcmp_iw_ordered.
10360 * utils.c (strcmp_iw_ordered): New function.
10361
8e3ee7b5
JB
103622003-02-24 Jim Blandy <jimb@redhat.com>
10363
10364 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10365 support, shared libs): Remove my name from here, to better reflect
10366 reality.
10367
7df1a324
KW
103682003-02-24 Kris Warkentin <kewarken@qnx.com>
10369
10370 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10371 (target_ops): Add to_have_continuable_watchpoint.
10372 * target.c (update_current_target): Add INHERIT line for
10373 to_have_continuable_watchpoint.
10374 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10375 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10376 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10377 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10378
d1c76907
EZ
103792003-02-24 Elena Zannoni <ezannoni@redhat.com>
10380
10381 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10382 maintainership.
10383
2610b0bf
KW
103842003-02-24 Kris Warkentin <kewarken@qnx.com>
10385
f46169db
KW
10386 * solib.c (solib_open): Call target defined search function after
10387 failing with solib-search-path.
10388 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10389 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 10390
9a3c34fe
KW
103912003-02-24 Kris Warkentin <kewarken@qnx.com>
10392
f46169db 10393 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 10394
2417dd25
SC
103952003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10396
10397 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10398
b631436b
SC
103992003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10400
10401 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10402 (m68hc11_add_reggroups): New function.
10403 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10404 (m68hc11_gdbarch_init): Install the reggroups.
10405 (_initialize_m68hc11_tdep): Initialize them.
10406
0aa8c1e4
JW
104072003-02-21 James E Wilson <wilson@tuliptree.org>
10408
10409 * MAINTAINERS: Update my email address.
10410
50ceaba5
DC
104112003-02-21 David Carlton <carlton@math.stanford.edu>
10412
10413 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10414
4c2df51b
DJ
104152003-02-21 Daniel Jacobowitz <drow@mvista.com>
10416
10417 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10418 * symtab.h: Add opaque declarations of struct axs_value and
10419 struct agent_expr.
10420 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10421 (struct location_funcs): New type.
10422 (struct symbol): Add "loc" to aux_value.
10423 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10424 * dwarf2read.c: Include "dwarf2expr.h".
10425 (dwarf2_symbol_mark_computed): New function.
10426 (read_func_scope): Use it.
10427 (var_decode_location): New function.
10428 (new_symbol): Use it.
10429 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10430
10431 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10432 (dwarf2expr_h, dwarf2loc_h): New variables.
10433 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10434 (dwarf2expr.o, dwarf2loc.o): New rules.
10435 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10436 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10437 LOC_COMPUTED_ARG.
10438 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10439 * m2-exp.y (yylex): Likewise.
10440 * printcmd.c (address_info, print_frame_args): Likewise.
10441 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10442 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10443 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10444 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10445 * symtab.c (lookup_block_symbol): Likewise.
10446
5784d15e
AF
104472003-02-20 Adam Fedor <fedor@gnu.org>
10448
10449 * symtab.h: Remove objc_specific struct
10450 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10451 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10452 Have language_objc use cplus_specific struct.
10453
d4cad8db
TT
104542003-02-20 Tom Tromey <tromey@redhat.com>
10455
10456 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10457 TYPE_NAME, when printing a String value. PR java/1075.
10458
2f9a90b4
AF
104592003-02-20 Adam Fedor <fedor@gnu.org>
10460
d38074a8 10461 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 10462 * objc-lang.c (find_methods): Make static.
2f9a90b4 10463
6f17862b
CF
104642003-02-20 Christopher Faylor <cgf@redhat.com>
10465
10466 * win32-nat.c (get_image_name): Check return value from
10467 ReadProcessMemory.
10468 (child_xfer_memory): Ditto.
10469
715d1656
AO
104702003-02-20 Alexandre Oliva <aoliva@redhat.com>
10471
10472 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10473 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10474 '${exec_prefix}' (in addition to the expansion thereof) as
10475 relocatable.
10476 * configure: Rebuilt.
10477
b1262a02
DC
104782003-02-20 David Carlton <carlton@math.stanford.edu>
10479
10480 * symtab.c (search_symbols): Revert the search_symbols part of my
10481 2002-12-23 patch. Add comment.
10482
7134143f
DJ
104832002-02-20 Daniel Jacobowitz <drow@mvista.com>
10484
10485 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10486 * dbxread.c (elfstab_build_psymtabs): Don't call
10487 install_minimal_symbols.
10488 (stabsect_build_psymtabs): Likewise.
10489 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10490 earlier.
10491 * somread.c (som_symfile_read): Call install_minimal_symbols
10492 and do_cleanups earlier.
10493 * nlmread.c (nlm_symfile_read): Likewise.
10494 * mdebugread.c (elfmdebug_build_psymtabs): Call
10495 install_minimal_symbols and make appropriate cleanups.
10496
cf466558
KB
104972003-02-20 Kevin Buettner <kevinb@redhat.com>
10498
10499 * solib.c (reload_shared_libraries): New function.
10500 (_initialize_solib): Add callbacks for ``set solib-search-path''
10501 and ``set solib-absolute-prefix''.
10502
de5ad195
DC
105032003-02-20 David Carlton <carlton@math.stanford.edu>
10504
10505 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10506 expand comment.
10507 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10508 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10509 * ada-typeprint.c (ada_typedef_print): Ditto.
10510 * ax-gdb.c (gen_var_ref): Ditto.
10511 * breakpoint.c (print_one_breakpoint): Ditto.
10512 * buildsym.c (finish_block): Ditto.
10513 * c-valprint.c (c_val_print): Ditto.
10514 * expprint.c (print_subexp): Ditto.
10515 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
10516 * infcmd.c (jump_command): Ditto.
10517 * linespec.c (decode_line_2, decode_compound): Ditto.
10518 * maint.c (maintenance_translate_address): Ditto.
10519 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
10520 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10521 Ditto.
8ffd9b1b
AJ
10522 * p-valprint.c (pascal_val_print): Ditto.
10523 * stabsread.c (define_symbol): Ditto.
de5ad195 10524 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
10525 (print_frame_arg_vars, return_command): Ditto.
10526 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10527 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
10528 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10529 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
10530 (rbreak_command): Ditto.
10531 * tracepoint.c (tracepoints_info): Ditto.
10532 * typeprint.c (typedef_print): Ditto.
10533 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
10534 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10535 * ada-typeprint.c: Update Copyright.
10536 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10537 * tracepoint.c, cli/cli-cmds.c: Ditto.
10538
f796e4be
KB
105392003-02-20 Kevin Buettner <kevinb@redhat.com>
10540
10541 * frame.c (generic_unwind_get_saved_register): Make non-static.
10542 * frame.h (generic_unwind_get_saved_register): Declare.
10543 * mips-tdep.c (read_next_frame_reg): Fetch register from
10544 current regcache when frame is NULL.
10545 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10546 that must be NULL.
10547 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10548 instead of frame_register_unwind().
10549
836cc9f4
AC
105502003-02-20 Andrew Cagney <ac131313@redhat.com>
10551
10552 * remote-sim.c (gdbsim_insert_breakpoint)
10553 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10554 code.
10555
501eef12
AC
105562003-02-20 Andrew Cagney <ac131313@redhat.com>
10557
10558 * remote.c (_initialize_remote): Add commands "set/show remote
10559 hardware-watchpoint-limit" and "set/show remote
10560 hardware-breakpoint-limit".
10561 (remote_hw_watchpoint_limit): Initialize to -1.
10562 (remote_hw_breakpoint_limit): Ditto.
10563 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10564
1b6bc7e0
CF
105652003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10566
10567 * coff-pe-read.c: New file - support reading of minimal symbols from a
10568 portable executable using the export table.
10569 * coff-pe-read.h: New file.
10570 * coffread.c: Include coff-pe-read.h.
10571 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10572 debugging symbols found.
10573 * Makefile.in (SFILES): Add coff-pe-read.o.
10574 (coff_pe_read_h): Define.
10575 (COMMON_OBS): Add coff-pe-read.o.
10576 (coffread.o): Add coff_pe_read_h dependency.
10577 (coff-pe-read.o): New target.
10578
fe898f56
DC
105792003-02-19 David Carlton <carlton@math.stanford.edu>
10580
10581 * Makefile.in (SFILES): Add block.c.
10582 (block_h): New.
10583 (COMMON_OBS): Add block.o.
10584 (block.o): New.
10585 (x86-64-tdep.o): Add $(block_h).
10586 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10587 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10588 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10589 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10590 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10591 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10592 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10593 * value.h: Add opaque declaration for struct block.
10594 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10595 * ada-lang.h: Ditto.
10596 * x86-64-tdep.c: #include "block.h"
10597 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10598 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10599 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10600 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10601 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10602 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10603 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10604 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10605 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10606 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10607 * symtab.c (block_function): Ditto.
10608 (contained_in): Ditto.
10609 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10610 block.h. Add opaque declaration for struct block.
10611 * symtab.h: Move block_function and contained_in declarations to
10612 block.h. Add opaque declarations for struct block, struct
10613 blockvector.
10614 (struct block): Move to block.h.
10615 (struct blockvector): Ditto.
10616 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10617 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10618 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10619 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10620 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10621 Ditto.
10622 * block.c: New file.
10623 * block.h: New file.
10624
173345b5
TR
106252003-02-19 Theodore A. Roth <troth@openavr.org>
10626
10627 * avr-tdep.c (avr_extract_return_value): Remove function.
10628 (avr_store_return_value): Remove function.
10629 (avr_extract_struct_value_address): Remove function.
10630 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10631
338ef23d
AC
106322003-02-19 Andrew Cagney <ac131313@redhat.com>
10633
10634 * rs6000-tdep.c: Include "gdb_assert.h".
10635 (registers_e500): Add "acc" and "spefscr".
10636 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10637 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10638 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10639 really is "r0".
10640 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10641
5412f5f3
KS
106422003-02-18 Keith Seitz <keiths@redhat.com>
10643
10644 * Makefile.in: Add gdbtk-interps.c.
10645
881324eb
KB
106462003-02-18 Kevin Buettner <kevinb@redhat.com>
10647
10648 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10649 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10650
6a2f5abf
AC
106512003-02-18 Andrew Cagney <cagney@redhat.com>
10652
10653 * symtab.h (struct objfile): Add opaque declaration.
10654
54c7009d
EZ
106552003-02-18 Elena Zannoni <ezannoni@redhat.com>
10656
10657 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
10658 * dbxread.c (process_one_symbol): Use last_function_start rather
10659 than function_start_offset to find the real beginning of the
10660 current function. The latter is just the text section offset on
10661 some systems, the former is always the real function start.
54c7009d 10662
7ee6d7eb
AC
106632003-02-17 Andrew Cagney <cagney@redhat.com>
10664
10665 * configure.in: Revert ${target} != ${host}.
10666
2846da9b
AC
106672003-02-17 Andrew Cagney <ac131313@redhat.com>
10668
10669 * configure.in (Makefile): Use the test ${target} != ${host},
10670 instead of the absence of the "nm.h" file, to determine of the
10671 configuration non-native.
10672 * configure: Regenerate.
8ffd9b1b 10673
3b27aeea
EZ
106742003-02-14 Elena Zannoni <ezannoni@redhat.com>
10675
fbe586ae 10676 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
10677
10678 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10679 conditionalize tui_active test.
10680 (lookup_cmd_1): Ditto.
10681
b0b1c2c0
MK
106822003-02-14 Mark Kettenis <kettenis@gnu.org>
10683
10684 * configure.in: Add check for _etext.
10685 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10686 available.
10687 * config.in, configure: regenerated.
10688
8f05cde5
DJ
106892003-02-14 Daniel Jacobowitz <drow@mvista.com>
10690
10691 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10692
021e7609
AC
106932003-02-14 Andrew Cagney <ac131313@redhat.com>
10694
10695 * main.c (tui_version): Delete variable.
10696 (captured_main): When --tui, set interpreter_p to "tui" instead of
10697 enabling tui_version.
10698 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10699 tui_version.
10700 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10701 * cli/cli-cmds.c (disassemble_command): Ditto.
10702 * defs.h (tui_version): Delete declaration.
10703 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10704 (tui-interp.o): Add rules.
10705 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10706
e325dcec
CF
107072003-02-14 Christopher Faylor <cgf@redhat.com>
10708
36ffb041 10709 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
10710 just-loaded dll.
10711
c4f90d87
JM
107122003-02-12 Jason Molenda (jmolenda@apple.com)
10713
fbe586ae
RH
10714 * symmisc.c (print_objfile_statistics): Include information about
10715 the number of psymtabs and symtabs in each object file.
c4f90d87 10716
e46e5ccd
KS
107172003-02-13 Keith R Seitz <keiths@redhat.com>
10718
10719 * main.h (struct captured_main_args): Add interpreter_p.
10720 * main.c (captured_main): Initialize interpreter_p from context.
10721 * gdb.c (main): Set interpreter_p argument.
10722 * Makefile.in (gdb.o): Add dependency for interps.h.
10723
fe97fe9c
AC
107242003-02-12 Andrew Cagney <ac131313@redhat.com>
10725
10726 * event-top.c (cli_command_loop): Delete declaration.
10727 (_initialize_event_loop): Delete function setting event_loop_hook.
10728 * event-top.h (cli_command_loop): Declare. Update copyright.
10729 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10730 * interps.c (current_interp_command_loop): When event_loop_p, call
10731 cli_command_loop.
10732
1cdac4ef
AC
107332003-02-12 Andrew Cagney <ac131313@redhat.com>
10734
10735 * interps.h (interp_command_loop_ftype): Change return type to
10736 void.
10737
48037ead
ML
107382003-02-12 Michal Ludvig <mludvig@suse.cz>
10739
10740 * x86-64-tdep.c (x86_64_extract_return_value)
10741 (x86_64_store_return_value): Use regcache instead of regbuf.
10742 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10743 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10744
033afc63
AC
107452003-02-11 Andrew Cagney <ac131313@redhat.com>
10746
10747 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10748 * aclocal.m4: Regenerate.
10749 * configure: Regenerate.
10750
10751 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10752 TCL_LD_SEARCH_FLAGS.
10753
40d02bca
ML
107542003-02-10 Michal Ludvig <mludvig@suse.cz>
10755
10756 * dwarf2cfi.c: Reindented.
10757
11308a41
AC
107582003-02-09 Andrew Cagney <ac131313@redhat.com>
10759
10760 * interps.c (clear_interpreter_hooks): Convert function definition
10761 to ISO C.
10762
e1c1c0f6
DC
107632003-02-07 David Carlton <carlton@math.stanford.edu>
10764
10765 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10766
ab5d3da6
KB
107672003-02-07 Kevin Buettner <kevinb@redhat.com>
10768
10769 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10770 (struct type): ...to here.
10771 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10772 field.
10773 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10774 (replace_type): Set length on all type variants for a given type.
10775
b8a92b82
AC
107762003-02-07 Andrew Cagney <ac131313@redhat.com>
10777
10778 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10779 <sys/stat.h>.
10780 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 10781
5cb316ef
AC
107822003-02-06 Andrew Cagney <ac131313@redhat.com>
10783
2555fe1a
AC
10784 * Makefile.in (symm-nat.o): Update dependencies.
10785 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10786 (lynx-nat.o, ia64-linux-nat.): Ditto.
10787 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10788 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10789 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10790
44270758
AC
10791 * Makefile.in (inflow_h): Define.
10792 (procfs.o, inflow.o, procfs.o): Update dependencies.
10793 * inftarg.c (child_stop): Delete extern declaration of
10794 inferior_process_group. Include "inflow.h".
10795 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10796 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10797 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10798 (our_process_group, inferior_process_group): Extern declarations.
10799
df8f7274
AC
10800 * procfs.c: Include "gdb_assert.h".
10801
5cb316ef
AC
10802 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10803 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10804 * jv-typeprint.c (java_type_print_base): Ditto.
10805 * typeprint.c (typedef_print): Eliminate STREQ.
10806 * cli/cli-script.c (define_command, define_command): Ditto.
10807 * main.c (captured_main): Ditto.
10808 * values.c (lookup_internalvar): Ditto.
10809 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10810 within `if' conditional.
10811 * linespec.c (decode_line_2): Ditto.
10812 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10813 (bfd_openw_with_cleanup): Ditto.
10814
2a28ccea
MK
108152003-02-07 Mark Kettenis <kettenis@gnu.org>
10816
10817 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10818 legacy_extract_return_value and store_return_value to
10819 legacy_return_value.
10820
786b8124
CF
108212003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10822
10823 * win32-nat.c (get_relocated_section_addrs): New function. Find
10824 section load addresses for symbol handling in relocated DLLs.
10825 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10826
b871e4ec
FF
108272003-02-05 Fred Fish <fnf@intrinsity.com>
10828
10829 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10830 '=' and '!='.
10831 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10832 with '&' and '=='.
10833 (angel_RDI_info): Ditto.
10834 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10835 with '&' and '!='.
10836 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 10837
4389a95a 108382003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
10839 Keith Seitz <keiths@redhat.com>
10840 Elena Zannoni <ezannoni@redhat.com>
10841 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
10842
10843 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10844 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10845 (SUBDIR_MI_OBS): Add "mi-interp.o".
10846 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10847 (SFILES): Add "interps.c".
10848 (COMMON_OBS): Add "interps.o".
10849 (interps_h, mi_main_h): Define.
10850 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10851 (mi-main.o, main.o, event-top.o): Update dependencies.
10852 * cli/cli-interp.c: New file.
10853 * interps.h, interps.c: New files.
10854 * top.c: (gdb_init): Don't install the default interpreter, handed
10855 by captured_main.
10856 * main.c: Include "interps.h".
10857 (interpreter_p): Note that it should malloc'ed.
10858 (captured_command_loop): Call current_interp_command_loop.
10859 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10860 xfree and xstrdup when updating interpreter_p. Install the
10861 default interpreter. Add hack to stop mi1's copyright notice
10862 being encoded.
10863 * event-top.h (gdb_setup_readline): Declare.
10864 (gdb_disable_readline): Declare.
10865 * event-top.c: Include "interps.h".
10866 (display_gdb_prompt): Call current_interp_display_prompt_p.
10867 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10868 gdb_stdlog, and gdb_stdtarg.
10869 (_initialize_event_loop): Don't call gdb_setup_readline.
10870 * cli-out.c (cli_out_set_stream): New function.
10871 * cli-out.h (cli_out_set_stream): Declare.
10872
ff3b5810
MK
108732003-02-06 Mark Kettenis <kettenis@gnu.org>
10874
10875 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10876 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10877 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10878 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10879 config/i386/i386v42mp.mt: Removed.
10880
5b729aa5
MK
108812003-02-05 Mark Kettenis <kettenis@gnu.org>
10882
10883 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10884 GDB_OSABI_SOLARIS.
10885
8cc15142
MC
108862003-02-05 Michael Chastain <mec@shout.net>
10887
10888 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10889 2.12.1 and earlier versions.
10890
5aa5d4b9
AC
108912003-02-05 Andrew Cagney <ac131313@redhat.com>
10892
10893 Remove orphaned hosts, targets and files.
10894 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10895 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10896 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10897 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10898 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10899 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10900 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10901 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10902 * config/sparc/tm-sp64sim.h: Delete.
10903 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10904 hosts.
10905 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10906 mips*-dec-mach3* targets.
10907
b68767c1
MC
109082003-02-04 Michael Chastain <mec@shout.net>
10909
10910 * NEWS: Fix typo: sepcifying -> specifying.
10911
5ae7ca1d
MC
109122003-02-04 Michael Chastain <mec@shout.net>
10913
10914 * dwarfread.c: Add documentation on the state of dwarf-1,
10915 looking towards obsoletion.
10916
d08a4280
MC
109172003-02-03 Michael Chastain <mec@shout.net>
10918
10919 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10920 gdb/testsuite/gdb.c++/pr-1023.exp.
10921
e9be73e4
AC
109222003-02-04 Andrew Cagney <ac131313@redhat.com>
10923
10924 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10925 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10926
10927 * utils.c (init_page_info): Delete reference to MPW in comments.
10928 * main.c (captured_main): Delete #ifdef MPW.
10929
05d57f6f
AC
109302003-02-04 Andrew Cagney <ac131313@redhat.com>
10931
8ffd9b1b 10932 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
10933 * monitor.c (monitor_expect): Obsolete reference to m32r.
10934 * configure.tgt: Mark m32r-*-elf* as obsolete.
10935 * MAINTAINERS: Mark m32k as obsolete.
10936 * m32r-rom.c: Obsolete file.
10937 * config/m32r/m32r.mt: Obsolete file.
10938 * config/m32r/tm-m32r.h: Obsolete file.
10939 * m32r-stub.c: Obsolete file.
10940 * m32r-tdep.c: Obsolete file.
10941
8b0e5691
AC
109422003-02-04 Andrew Cagney <ac131313@redhat.com>
10943
10944 * NEWS: Mention that the z8k-zilog-none is obsolete.
10945 * MAINTAINERS: Mark z8k as obsolete.
10946 * configure.tgt: Obsolete the z8k-*-coff* target.
10947 * config/z8k/z8k.mt: Obsolete file.
10948 * config/z8k/tm-z8k.h: Obsolete file.
10949 * z8k-tdep.c: Obsolete file.
10950
67f16606
AC
109512003-02-04 Andrew Cagney <ac131313@redhat.com>
10952
10953 * NEWS: Mention that the mn10200-elf is obsolete.
10954 * configure.tgt: Obsolete mn10200-*-* target.
10955 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10956 mention that the mn10200 is obsolete.
10957 * breakpoint.h: Ditto.
10958 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10959 * config/mn10200/mn10200.mt: Obsolete file.
10960 * config/mn10200/tm-mn10200.h: Obsolete file.
10961 * mn10200-tdep.c: Obsolete file.
10962
fd2299bd
AC
109632003-02-04 Andrew Cagney <ac131313@redhat.com>
10964
10965 * MAINTAINERS: Mark h8500 as obsolete.
10966 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10967 * findvar.c (value_from_register): Ditto.
10968 * h8500-tdep.c: Mark file as obsolete.
10969 * config/h8500/h8500.mt: Ditto.
10970 * config/h8500/tm-h8500.h: Ditto.
10971 * NEWS: Mention that h8500 is obsolete.
10972
eb9a305d
DC
109732003-02-04 David Carlton <carlton@math.stanford.edu>
10974
10975 * objfiles.c (allocate_objfile): Always set name. Add comment at
10976 start of function.
10977 * jv-lang.c (get_dynamics_objfile): Add comment.
10978
406fc7fb
DC
109792003-02-04 David Carlton <carlton@math.stanford.edu>
10980
10981 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10982 * printcmd.c (build_address_symbolic): Replace uses of
10983 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10984 SYMBOL_NAME, and asm_demangle.
10985 Update copyright.
10986
93d91629
DC
109872003-02-04 David Carlton <carlton@math.stanford.edu>
10988
10989 * linespec.c (decode_compound): Extract code into
10990 lookup_prefix_sym.
10991 (lookup_prefix_sym): New function.
10992
1c5cb38e
DC
109932003-02-04 David Carlton <carlton@math.stanford.edu>
10994
10995 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10996 FLOAT_COERCION_BADNESS.
10997 * gdbtypes.c (rank_one_type): Replace all uses of
10998 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10999
0cf824c9
JB
110002003-02-04 Jim Blandy <jimb@redhat.com>
11001
11002 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11003 section, let dwarf_macinfo_section point to it, not
11004 dwarf_loc_section.
11005
a2d356b0
DJ
110062003-02-04 Daniel Jacobowitz <drow@mvista.com>
11007
11008 Pointed out by Anton Blanchard <anton@samba.org>.
11009 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11010 (ppc_linux_at_sigtramp_return_path): Use it.
11011
2de7ced7
DJ
110122003-02-04 Daniel Jacobowitz <drow@mvista.com>
11013
11014 * defs.h (streq): Add prototype.
11015 * utils.c (streq): New function.
11016
11017 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11018 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11019 * mdebugread.c (new_symbol): Likewise.
11020 * stabsread.c (define_symbol): Likewise.
11021 * coffread.c (process_coff_symbol): Likewise.
11022 * dwarfread.c (new_symbol): Likewise.
11023
11024 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11025 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11026 here.
11027 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11028 SYMBOL_INIT_DEMANGLED_NAME.
11029 * objfiles.c: Include "hashtab.h".
11030 (allocate_objfile): Call htab_set_functions_ex for the
11031 demangled_names_hash.
11032 (free_objfile): Call htab_delete for the demangled_names_hash.
11033 * objfiles.h (struct htab): Add declaration.
11034 (struct objfile): Add demangled_names_hash.
11035 * symfile.c: Include "hashtab.h".
11036 (reread_symbols): Call htab_delete for the demangled_names_hash.
11037 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11038 SYMBOL_NAME in the bcache.
11039 * symtab.c: Include "hashtab.h". Update comments.
11040 (create_demangled_names_hash, symbol_set_names): New functions.
11041 (symbol_find_demangled_name): New function, broken out from
11042 symbol_init_demangled_names.
11043 (symbol_init_demangled_names): Use it.
11044 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11045 (SYMBOL_SET_NAMES): New macro.
11046 (symbol_set_names): Add prototype.
11047
15831452
JB
110482003-02-03 Jim Blandy <jimb@redhat.com>
11049
11050 Use a single, consistent representation for an empty minimal
11051 symbol table in an objfile.
11052 * objfiles.c (terminate_minimal_symbol_table): New function.
11053 (allocate_objfile): Call it.
11054 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11055 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 11056 non-NULL.
15831452
JB
11057 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11058 objfile has minimal symbols, compare minimal_symbol_count to zero,
11059 instead of comparing msymbols with NULL.
11060 * objfiles.c (have_minimal_symbols): Same.
11061 * solib-sunos.c (solib_add_common_symbols): Call
11062 terminate_minimal_symbol_table.
11063 * symfile.c (reread_symbols): Same.
8ffd9b1b 11064
ffc65945
KB
110652003-02-03 Kevin Buettner <kevinb@redhat.com>
11066
11067 * s390-tdep.c (s390_address_class_type_flags)
11068 (s390_address_class_type_flags_to_name)
11069 (s390_address_class_name_to_type_flags): New functions.
11070 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11071 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11072
f211c6d4
MS
110732003-02-03 Michael Snyder <msnyder@redhat.com>
11074
11075 * arm-tdep.c: Fix spell-o in comment.
11076
659b0389
ML
110772003-02-03 Michal Ludvig <mludvig@suse.cz>
11078
11079 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11080 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 11081 error messages to contain BFD filename.
659b0389 11082
3b31d625
EZ
110832003-02-02 Elena Zannoni <ezannoni@redhat.com>
11084
997b089a 11085 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
11086 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11087 (do_mixed_source_and_assembly): Use
11088 make_cleanup_ui_out_tuple_begin_end and
11089 make_cleanup_ui_out_tuple_begin_end.
11090 (do_mixed_source_and_assembly): Ditto.
11091 * thread.c (do_captured_list_thread_ids): Ditto.
11092 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11093 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11094 ui_out_tuple_end): Delete prototypes.
11095 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11096 ui_out_list_end, ui_out_tuple_end): Delete.
11097
11098 From Kevin Buettner <kevinb@redhat.com>:
11099 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
11100 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11101 (do_cleanup_table_end): New functions.
11102 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11103 Use cleanups to invoke_ui_out_tuple_end().
11104 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
11105 * cli/cli-setshow.c (cmd_show_list): Use
11106 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 11107
5b181d62
AC
111082003-02-02 Andrew Cagney <ac131313@redhat.com>
11109
11110 * frame.c (frame_unwind_register): New function.
11111 (frame_unwind_unsigned_register): Use.
11112 (frame_unwind_signed_register): Use.
11113 (frame_read_register): New function.
11114 * frame.h (frame_unwind_register): Declare.
11115 (frame_read_register): Declare.
11116
11117 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11118 and frame_unwind_register instead of read_memory, write_register
11119 and deprecated_write_register_bytes.
11120
5f601589
AC
111212003-02-02 Andrew Cagney <ac131313@redhat.com>
11122
11123 * frame.h: Note that namelen can be negative.
11124 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11125 NAME's length.
11126
11127 * NEWS: Mention that the d10v's `regs' command is deprecated.
11128 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11129 (d10v_print_registers_info): New function.
11130 (show_regs): Call d10v_print_registers_info.
11131 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11132
6a3fe0a4
MK
111332003-02-02 Mark Kettenis <kettenis@gnu.org>
11134
11135 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11136 lost in the previous patch.
11137
075559bc
AC
111382003-02-01 Andrew Cagney <ac131313@redhat.com>
11139
11140 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
11141 * stack.c (print_frame_info_base): Output complete FRAME tuple
11142 for synthesized frames.
075559bc 11143
6789195b
AC
111442003-02-02 Andrew Cagney <ac131313@redhat.com>
11145
11146 * mips-nat.c (zerobuf): Delete.
11147 (fetch_inferior_registers): Alloc local zerobuf.
11148 (fetch_core_registers): Alloc local zerobuf.
11149 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11150 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11151 * thread-db.c (thread_db_store_registers): Ditto.
11152 * sh-tdep.c (sh_do_register): Ditto.
11153 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11154 * remote-sim.c (gdbsim_store_register): Ditto.
11155 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11156 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11157 * monitor.c (monitor_supply_register): Ditto.
11158 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11159 * mips-nat.c (fetch_inferior_registers): Ditto.
11160 * m68klinux-nat.c (fetch_register): Ditto.
11161 * lynx-nat.c (fetch_inferior_registers): Ditto.
11162 (fetch_inferior_registers): Ditto.
11163 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11164 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11165 (hpux_thread_store_registers): Ditto.
11166 * hppah-nat.c (fetch_register): Ditto.
11167 * hppab-nat.c (fetch_register): Ditto.
11168 * hppa-tdep.c (pa_register_look_aside): Ditto.
11169 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11170 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11171
e669114a
AC
111722003-02-01 Andrew Cagney <ac131313@redhat.com>
11173
11174 * gdbarch.sh: Explictly specify all method levels. When a
11175 variable with an empty level, provide a non-multi-arch default.
11176 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11177 * gdbarch.h: Re-generate.
11178 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11179 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11180
9a043c1d
AC
111812003-02-01 Andrew Cagney <ac131313@redhat.com>
11182
11183 * defs.h (host_pointer_to_address): Delete declaration.
11184 (address_to_host_pointer): Delete declaration.
11185 * utils.c (host_pointer_to_address): Delete function.
11186 (address_to_host_pointer): Delete function.
11187 * procfs.c (procfs_address_to_host_pointer): New function.
11188 * procfs.c (proc_set_watchpoint): Use.
11189 (procfs_can_use_hw_breakpoint): Update comments.
11190 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11191 (som_solib_add): Use.
11192 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11193 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 11194
7ca9f392
AC
111952003-02-01 Andrew Cagney <ac131313@redhat.com>
11196
94bbfd30
AC
11197 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11198 strlen d_name.
11199
7ca9f392
AC
11200 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11201 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11202 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11203 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11204 (define_symbol): Update.
11205 * symfile.c (generic_load): Remove references to nindy.
11206 * symtab.c: Remove references to nindy.
11207
31a85ea2
AC
112082003-02-01 Andrew Cagney <ac131313@redhat.com>
11209
11210 * infcmd.c (print_float_info): Delete code conditional on
11211 FLOAT_INFO.
11212 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11213 * config/m68k/nm-apollo68b.h: Ditto.
11214 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11215 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11216 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11217
f6e85fc8
MK
112182003-02-01 Mark Kettenis <kettenis@gnu.org>
11219
6015b6a0
MK
11220 * config/i386/tm-i386os9k.h: Removed.
11221
f7a30bdf
MK
11222 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11223 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11224 they're identical to i[3456]86-*-sysv* now.
11225 * config/i386/i386v32.mh: Removed.
11226 * config/i386/xm-i386v32.h: Removed.
11227 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11228
28d52111
MK
11229 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11230
4d3f6bce
MK
11231 * config/i386/i386dgux.mh: Removed.
11232 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11233
f6e85fc8
MK
11234 * configure.in: Fix typo.
11235 * configure: Regenerated.
11236
53955967
DC
112372003-01-31 David Carlton <carlton@math.stanford.edu>
11238
11239 * dwarf2read.c (dwarf2_locate_sections): Set
11240 dwarf_ranges_section.
11241
b1364885
AC
112422003-01-31 Andrew Cagney <ac131313@redhat.com>
11243
8dbb1c65
AC
11244 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11245 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 11246
8731e58e
AC
11247 * utils.c: Re-indent.
11248
b1364885
AC
11249 * config/djgpp/fnchange.lst: Delete nindy files.
11250 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11251 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11252 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11253 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11254 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11255 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11256 * Makefile.in (init.c): Remove nindy references.
11257 (saber_gdb): Delete rule.
11258 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11259 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11260 and a68v-nat.c.
11261 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11262 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11263 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11264 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11265 nindy-share/stop.h.
11266 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11267 * saber.suppress: Delete file.
11268
086df311
DJ
112692003-01-31 Daniel Jacobowitz <drow@mvista.com>
11270
11271 * dbxread.c (stabs_data): New static variable.
11272 (fill_symbuf): Support an in-memory buffer for stabs data.
11273 (stabs_seek): New function.
11274 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11275 (read_ofile_symtab): Use stabs_seek.
11276 (elfstab_build_psymtabs): Take an asection* instead of
11277 an offset and size. Relocate the stabs data if necessary.
11278 Save the section* for dbx_psymtab_to_symtab.
11279 * dwarf2read.c: Add section variables for each debug section.
11280 (dwarf2_locate_sections): Fill them in.
11281 (dwarf2_read_section): Take an asection* argument.
11282 Relocate the section contents if necessary.
11283 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11284 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11285 it to dwarf2_read_section.
11286 (dwarf2_build_frame_info): Update callers.
11287 * elfread.c (elf_symfile_read): Update call to
11288 elfstab_build_psymtabs.
11289 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11290 (DBX_STAB_SECTION): New macro.
8ffd9b1b 11291 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
11292 * symfile.c (symfile_dummy_outputs): New function.
11293 (symfile_relocate_debug_section): New function.
11294 * symfile.h (symfile_relocate_debug_section): Add prototype.
11295
87d1b352
RH
112962003-01-31 Richard Henderson <rth@redhat.com>
11297
11298 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11299 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11300 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11301 * alpha-tdep.c (alpha_register_name): Add "unique".
11302 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11303 (ALPHA_UNIQUE_REGNUM): New.
11304 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11305
c48861fb
AC
113062003-01-31 Andrew Cagney <ac131313@redhat.com>
11307
11308 * README: Remove reference to Ericsson 1800 monitor.
11309 * Makefile.in (remote-es.o): Delete rule.
11310 (ALLDEPFILES): Delete remote-es.c.
11311 * remote-es.c: Delete file.
11312 * config/m68k/es1800.mt: Delete file.
11313 * config/djgpp/fnchange.lst: Update.
11314 * configure.tgt: Delete m68*-ericsson-* target.
11315
d764a824
AF
113162003-01-31 Adam Fedor <fedor@gnu.org>
11317
11318 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11319 Remove duplicate/shadowing variable of same name.
11320
fe36c4f4
JB
113212003-01-30 Jim Blandy <jimb@redhat.com>
11322
11323 * symfile.c (find_separate_debug_file): Assert that the objfile's
11324 directory name we compute ends with a slash, and then assume that
11325 that's so everywhere we use it.
11326
cb741690
DJ
113272003-01-30 Daniel Jacobowitz <drow@mvista.com>
11328
11329 * valops.c (value_assign): Flush frame cache after stores to memory
11330 also.
11331
96ee5227
AC
113322003-01-30 Andrew Cagney <ac131313@redhat.com>
11333
11334 * Makefile.in (mon960-rom.o): Delete rule.
11335 * mon960-rom.c: Delete file.
11336
7f6104a9
AC
113372003-01-30 Andrew Cagney <ac131313@redhat.com>
11338
11339 * d10v-tdep.c: Include "frame-unwind.h".
11340 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11341 list.
11342 (next_addr, uses_frame): Delete.
11343 (struct d10v_unwind_cache): Define.
11344 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11345 Use info instead of next_addr and uses_frame globals.
11346 (d10v_frame_init_saved_regs): Delete function.
11347 (d10v_init_extra_frame_info): Delete function.
11348 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11349 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11350 init_frame_pc or frame_saved_pc.
11351 (d10v_pop_frame): Delete function.
11352 (do_d10v_pop_frame): Delete function.
11353 (d10v_frame_chain): Delete function.
11354 (d10v_frame_chain_valid): Delete function.
11355 (d10v_frame_pc_unwind): New function.
11356 (d10v_frame_id_unwind): New function.
11357 (saved_regs_unwinder): New function.
11358 (d10v_frame_register_unwind): New function.
11359 (d10v_frame_pop): New function.
11360 (d10v_frame_unwind): New variable.
11361 (d10v_frame_p): New function.
11362 (d10v_frame_saved_pc): Delete function.
11363 * Makefile.in (d10v-tdep.o): Update dependencies.
11364
cad2e848
JB
113652003-01-30 J. Brobecker <brobecker@gnat.com>
11366
11367 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11368 causing some regressions due to a change in the default value
11369 for this macro.
11370
af34e669
DJ
113712003-01-29 Richard Henderson <rth@redhat.com>
11372 Elena Zannoni <ezannoni@redhat.com>
11373 Daniel Jacobowitz <drow@mvista.com>
11374
11375 Fix PR gdb/961.
8ffd9b1b 11376 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
11377 variables.
11378 (RANGES_SECTION): New.
11379 (dwarf_ranges_buffer): New variable.
11380 (struct comp_unit_head): Add member "die".
11381 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11382 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11383 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11384 (dwarf2_locate_sections): Likewise.
11385 (dwarf2_build_psymtabs): Read .debug_ranges.
11386 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11387 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11388 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11389 Look for DW_AT_ranges and return the bounding box.
11390
baa93fa6
CF
113912003-01-29 Brian Ford <ford@vss.fsi.com>
11392
11393 * win32-nat.c (cygwin_pid): Removed as unused.
11394 (child_attach): Try fall back to Cygwin pid.
11395
c63f977f
JB
113962003-01-29 Jim Blandy <jimb@redhat.com>
11397
11398 * objfiles.h (struct objfile): Doc fix.
11399
d62d1979
AC
114002003-01-29 Andrew Cagney <ac131313@redhat.com>
11401
11402 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11403 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11404 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11405 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11406 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11407 (FRAME_SAVED_PC): Change to a function with predicate.
11408 * gdbarch.h, gdbarch.c: Re-generate.
11409
1ae18a04
AC
114102003-01-28 Andrew Cagney <ac131313@redhat.com>
11411
52287340
AC
11412 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11413
1ae18a04
AC
11414 * complaints.c (complain): Delete function.
11415 * complaints.h (struct deprecated_complaint): Delete definition.
11416 (complain): Delete declaration.
11417
f2c16bd6
KB
114182003-01-28 Kevin Buettner <kevinb@redhat.com>
11419
11420 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11421 dummy frames.
11422
a94dd1fd
AC
114232003-01-27 Andrew Cagney <ac131313@redhat.com>
11424
11425 * sentinel-frame.h, sentinel-frame.c: New files.
11426 * Makefile.in (frame.o): Update dependencies.
11427 (SFILES): Add sentinel-frame.c.
11428 (sentinel_frame_h): Define.
11429 (COMMON_OBS): Add sentinel-frame.o.
11430 (sentinel-frame.o): Specify dependencies.
11431 * frame.c: Include "sentinel-frame.h".
11432 (frame_register_unwind): Rewrite assuming that there is always a a
11433 ->next frame.
11434 (frame_register, generic_unwind_get_saved_register): Ditto.
11435 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11436 (create_sentinel_frame, unwind_to_current_frame): New functions.
11437 (get_current_frame): Rewrite using create_sentinel_frame and
11438 unwind_to_current_frame. When possible, always create a frame.
11439 (create_new_frame): Set next to the sentinel frame.
11440 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11441 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11442 ID cache when necessary.
11443 (frame_saved_regs_id_unwind): Use frame_relative_level.
11444 (deprecated_generic_get_saved_register): Use frame_relative_level,
11445 get_frame_saved_regs, get_frame_pc, get_frame_base and
11446 get_next_frame.
11447 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11448 frame_register.
11449
5378adc4
DJ
114502003-01-27 Daniel Jacobowitz <drow@mvista.com>
11451
11452 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11453
51ee2ddc
DJ
114542003-01-27 Daniel Jacobowitz <drow@mvista.com>
11455
11456 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11457 (maintenance_set_profile_cmd): Use error () instead of warning ().
11458
d9feb4e7
DJ
114592003-01-27 Daniel Jacobowitz <drow@mvista.com>
11460
11461 * configure.in: Check that -pg works if using --enable-profiling.
11462 Check for monstartup and _mcleanup regardless of --enable-profiling.
11463 * maint.c: Check for monstartup and _mcleanup before using them.
11464 * config.in: Regenerated.
11465 * configure: Regenerated.
11466
2d188dd3
NC
114672003-01-24 Nick Clifton <nickc@redhat.com>
11468
11469 * Add sh2e support:
11470
11471 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11472
11473 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11474 (sh2e_show_regs): New.
11475 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11476 * config/sh/tm-sh.h: Added sh2e to comments.
11477
cb3c37b2
JB
114782003-01-23 Jim Blandy <jimb@redhat.com>
11479
11480 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11481 symbols found)" message here; we haven't checked for a separate
11482 debug info file yet, so we don't know yet.
11483 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11484 we've looked everywhere. Also, there's no need to print a special
11485 message when we're loading the separate debug info file: the one
11486 symbol_file_add prints is fine.
11487
5b5d99cf
JB
114882003-01-23 Alexander Larsson <alexl@redhat.com>
11489 Jim Blandy <jimb@redhat.com>
11490
11491 Add support for executables whose debug info has been separated
11492 out into a separate file, leaving only a link behind.
11493 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11494 and separate_debug_objfile_backlink.
11495 (put_objfile_before): New declaration.
11496 * symfile.c: #include "filenames.h".
11497 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11498 debug info in a separate file, read that, too. Save the addrs
11499 argument, so we can use it again to read the separated debug info;
11500 syms_from_objfile modifies the table we pass it.
11501 (reread_symbols): After re-reading an objfile, call
11502 reread_separate_symbols to refresh its separate debug info
11503 objfile, if it has one.
11504 (reread_separate_symbols, find_separate_debug_file,
11505 get_debug_link_info, separate_debug_file_exists): New functions.
11506 (debug_file_directory): New global var.
11507 (_initialize_symfile): Initialize debug_file_directory, and
11508 provide the new `set debug-file-directory' command to let the user
11509 change it.
11510 * objfiles.c (free_objfile): If this objfile has its debug info in
11511 a separate objfile, free that one too. If this is itself a
11512 separate debug info objfile, clear our parent's backlink.
11513 (put_objfile_before): New function.
11514 * utils.c (gnu_debuglink_crc32): New function.
11515 * defs.h (gnu_debuglink_crc32): New declaration.
11516 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11517 * configure.in: Handle --with-separate-debug-dir config option.
11518 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11519 * acconfig.h (DEBUGDIR): New macro.
11520 * configure, aclocal.m4, config.in: Regenerated.
11521
7e8580c1
JB
115222003-01-22 Jim Blandy <jimb@redhat.com>
11523
7904e09f
JB
11524 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11525 like the old symbol_file_add, but taking new arguments: you can
11526 now pass in either a `struct section_addr_info' list to say where
11527 each section is loaded, or a `struct section_offsets' table. Pass
11528 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 11529 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
11530 with the appropriate quiescent values for the new arguments.
11531
7e8580c1
JB
11532 * symfile.c: #include "gdb_assert.h".
11533 (syms_from_objfile): Add the ability to pass in a section offset
11534 table directly, as an alternative to the section_addr_info table.
11535 Document arguments better.
11536 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11537 * symfile.h (syms_from_objfile): Update declaration.
11538 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11539 syms_from_objfile.
11540 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11541
d28f9cdf
DJ
115422003-01-22 Daniel Jacobowitz <drow@mvista.com>
11543
11544 Original patch by Tom Tromey <tromey@cygnus.com> and
11545 Jason Molenda <jmolenda@apple.com>.
11546 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11547 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11548 * NEWS: Mention profiling.
11549 * configure.in (--enable-gdbtk): Fix typo.
11550 (--enable-profiling): New. Set PROFILE_CFLAGS.
11551 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11552 Fill in function.
11553 (profiling_state): New variable.
11554 (mcleanup_wrapper): New function.
11555 (_initialize_maint): Remove NOTYET, fix call to
11556 add_setshow_boolean_cmd for "maint set profile".
11557 * configure: Regenerated.
11558
df21e465
MH
115592003-01-21 Martin M. Hunt <hunt@redhat.com>
11560
11561 * Makefile.in (install-gdbtk): Install PNG images too.
11562
73c1f219
AC
115632003-01-21 Andrew Cagney <ac131313@redhat.com>
11564
11565 * exec.c (text_start): Delete global variable.
11566 (exec_file_attach): Make text_start local to the function.
11567 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11568 * valops.c (hand_function_call): Delete code that handles
11569 BEFORE_TEXT_END and AFTER_TEXT_END.
11570 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11571 of CALL_DUMMY_LOCATION.
11572 * gdbarch.c: Regenerate.
11573 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11574 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11575 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11576 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11577 (text_end): Delete extern declaration.
11578
eb4f72c5
AC
115792003-01-21 Andrew Cagney <ac131313@redhat.com>
11580
11581 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11582 * blockframe.c (backtrace_below_main): Move to "frame.c".
11583 (frame_chain_valid): Delete check for backtrace_below_main.
11584 (_initialize_blockframe): Delete initialization, move ``set
11585 backtrace-below-main'' command to "frame.c".
11586 (do_flush_frames_sfunc): Delete function.
11587 * frame.c: Include "command.h" and "gdbcmd.h".
11588 (frame_type_from_pc): New function.
11589 (create_new_frame): Use frame_type_from_pc.
11590 (legacy_get_prev_frame): New function.
11591 (get_prev_frame): Rewrite. When an old style frame, call
11592 legacy_get_prev_frame. Otherwize, unwind the PC first.
11593 (_initialize_frame): Add ``set backtrace-below-main'' command.
11594 * Makefile.in (frame.o): Update dependencies.
11595
778ce8cc
AC
115962003-01-19 Andrew Cagney <ac131313@redhat.com>
11597
11598 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11599 DEPRECATED_REGISTERS_INFO.
11600
01c193c8
AC
116012003-01-19 Andrew Cagney <ac131313@redhat.com>
11602
11603 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11604 Maintainers'. Update `Various Maintainers'.
11605
dedc2a2b
AC
116062003-01-19 Andrew Cagney <ac131313@redhat.com>
11607
11608 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11609 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11610 Suppress actual parameters when `-'.
11611 * gdbarch.h, gdbarch.c: Regenerate.
11612
b7261c70
AC
116132003-01-19 Andrew Cagney <ac131313@redhat.com>
11614
11615 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11616 code handling dummy frames.
11617
dbe9fe58
AC
116182003-01-19 Andrew Cagney <ac131313@redhat.com>
11619
11620 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11621 (struct frame_unwind): Add field pop.
11622 * frame.h (frame_pop): Declare.
11623 * frame.c (frame_saved_regs_pop): New function.
11624 (trad_frame_unwinder): Add frame_saved_regs_pop.
11625 (frame_pop): New function.
11626 * dummy-frame.c (dummy_frame_pop): New function.
11627 (discard_innermost_dummy): New function.
11628 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11629 (dummy_frame_unwind): Add dummy_frame_pop.
11630 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11631 * valops.c (hand_function_call): Ditto.
11632 * stack.c (return_command): Ditto.
11633
570b8f7c
AC
116342003-01-18 Andrew Cagney <ac131313@redhat.com>
11635
11636 * cris-tdep.c: Fix function declaration indentation.
11637 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11638 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11639 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11640 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11641 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11642 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11643
116442003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
11645
11646 * README (Unpacking and Installation -- quick overview):
11647 Warn against ".../gdb-5.3/gdb/configure".
11648
494cca16
AC
116492003-01-18 Andrew Cagney <ac131313@redhat.com>
11650
11651 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11652 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11653 (struct frame_unwind): Declare opaque.
11654 (dummy_frame_p): Declare function.
11655 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11656 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11657 * dummy-frame.c: Include "frame-unwind.h".
11658 (dummy_frame_p): New function.
11659 (dummy_frame_unwind): New variable.
11660 * frame.c: Include "frame-unwind.h".
11661 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11662 to use the new unwind field.
11663 (set_unwind_by_pc): Delete function.
11664 (create_new_frame, get_prev_frame): Set unwind field using
11665 frame_unwind_find_by_pc.
11666 (trad_frame_unwind, trad_frame_unwinder): New variables.
11667 * frame.h (trad_frame_unwind): Declare variable.
11668 (frame_id_unwind_ftype): Delete declaration.
11669 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11670 (struct frame_unwind): Declare opaque.
11671 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11672 register_unwind with a single unwind pointer.
11673 * frame-unwind.h, frame-unwind.c: New files.
11674 * Makefile.in (SFILES): Add frame-unwind.c.
11675 (frame_unwind_h): Define.
11676 (COMMON_OBS): Add frame-unwind.o.
11677 (frame-unwind.o): Specify dependencies.
11678 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 11679
4efb68b1
AC
116802003-01-18 Andrew Cagney <ac131313@redhat.com>
11681
11682 * ada-valprint.c: Eliminate PTR.
11683 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11684 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11685 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11686 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11687 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11688 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11689 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 11690
a84d24ee
AC
116912003-01-17 Andrew Cagney <ac131313@redhat.com>
11692
762f08a3
AC
11693 * main.c (captured_main): Don't use PTR.
11694 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11695 * gdbtypes.c (lookup_primitive_typename): Ditto.
11696 (lookup_struct_elt_type): Ditto.
11697 * f-valprint.c (info_common_command): Ditto.
11698 (list_all_visible_commons): Ditto.
11699 * jv-typeprint.c (java_type_print_base): Ditto.
11700
a84d24ee
AC
11701 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11702 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11703 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11704 i386-interix-nat.c and i386-interix-tdep.c. Rename
11705 m68klinux-nat.c and m68klinux-tdep.c. Rename
11706 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11707 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11708 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11709 * main.c (captured_main): Use xfree, not free.
11710
c170fb60
AC
117112003-01-16 Andrew Cagney <ac131313@redhat.com>
11712
11713 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11714 ID back using a parameter.
11715 * frame.c (frame_id_unwind): Update call.
11716 (frame_saved_regs_id_unwind): Update.
11717 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11718 * dummy-frame.h (struct frame_id): Add opaque declaration.
11719 (dummy_frame_id_unwind): Update declaration.
11720
867f3898
AC
117212003-01-15 Andrew Cagney <ac131313@redhat.com>
11722
11723 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11724
40622be8 117252003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 11726
40622be8 11727 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 11728
ae66c1fc
EZ
117292003-01-14 Elena Zannoni <ezannoni@redhat.com>
11730
997b089a 11731 Fix PR gdb/898
ae66c1fc
EZ
11732 * breakpoint.c (until_break_command): Add new argument. Use it to
11733 decide whether to stop only at the current frame or not.
11734 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 11735 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
11736 call.
11737 (advance_command): New function.
11738 (_initialize_infcmd): Update help string for 'until' command.
11739 Add new 'advance' command.
11740
a04257e6
DC
117412003-01-14 David Carlton <carlton@math.stanford.edu>
11742
11743 * linespec.c (decode_line_1): Normalize comments.
11744 (set_flags): Ditto.
11745 (locate_first_half): Ditto.
11746 (decode_compound): Ditto.
11747 (symtab_from_filename): Ditto.
11748 (decode_all_digits): Ditto.
11749 (decode_dollar): Ditto.
11750 (find_methods): Ditto.
11751 (find_toplevel_char): Ditto.
11752
1bac305b
AC
117532003-01-13 Andrew Cagney <ac131313@redhat.com>
11754
11755 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11756 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11757 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11758 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11759 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11760 * language.c, language.h, m32r-tdep.c: Update copyright.
11761 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11762 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11763 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11764 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11765 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11766 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11767
25caa7a8
EZ
117682003-01-13 Elena Zannoni <ezannoni@redhat.com>
11769
11770 * stabsread.h (process_later, resolve_cfront_continuation):
11771 Obsolete.
11772 Update copyright years.
11773 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11774 Update copyright year.
11775 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 11776 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
11777 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11778 Update copyright year.
11779 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11780 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11781 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11782 (parse_partial_symbols): Obsolete cfront support.
11783 * stabsread.c
11784 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11785 macros.
11786 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11787 read_cfront_baseclasses, read_cfront_member_functions,
11788 resolve_cfront_continuation,read_cfront_static_fields,
11789 copy_cfront_struct_fields): Obsolete functions.
11790 (define_symbol, read_one_struct_field): Obsolete cfront support.
11791 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11792 Update Copyright year.
11793
7789c6f5
EZ
117942003-01-13 Elena Zannoni <ezannoni@redhat.com>
11795
11796 * stack.c (print_frame_info, print_stack_frame_base_stub,
11797 print_stack_frame_base, show_and_print_stack_frame_stub,
11798 show_and_print_stack_frame, print_only_stack_frame_stub,
11799 print_only_stack_frame): Delete functions.
11800 (print_stack_frame_stub): Call print_frame_info instead of
11801 print_frame_info_base.
11802 (print_frame_info_base): Rename to print_frame_info.
11803 (backtrace_command_1): Call print_frame_info, instead of
11804 print_frame_info_base.
11805 (current_frame_command): Call print_stack_frame, instead of
11806 print_only_stack_frame.
11807 (frame_command): Call print_stack_frame, instead of
11808 show_and_print_stack_frame.
11809 (up_command): Ditto.
11810 (down_command): Ditto.
11811 * frame.h (print_only_stack_frame): Delete prototype.
11812 * infrun.c (normal_stop): Call print_stack_frame, instead of
11813 show_and_print_stack_frame.
11814 * thread.c (info_threads_command): Call print_stack_frame, instead
11815 of print_only_stack_frame.
11816
3f5a3016
AC
118172003-01-13 Andrew Cagney <ac131313@redhat.com>
11818
d99ba314
AC
11819 * README (Graphical interface to GDB): Update URL. Point at
11820 gdb/links/.
11821
3f5a3016
AC
11822 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11823 version match.
11824
083ae935
DJ
118252003-01-13 Daniel Jacobowitz <drow@mvista.com>
11826
11827 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11828 lines.
11829
5365276c
DJ
118302003-01-13 Daniel Jacobowitz <drow@mvista.com>
11831
11832 * thread-db.c (attach_thread): Prototype.
11833 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11834 thread information (ti), and valid flags (th_valid, ti_valid).
11835 (attach_thread): Move target_pid_to_str call to after the thread
11836 is added to GDB's list. Initialize the cache.
11837 (thread_get_info_callback, thread_db_map_id2thr)
11838 (thread_db_get_info): New functions.
11839 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11840 (thread_db_store_registers, thread_db_thread_alive)
11841 (thread_db_get_thread_local_address): Use them.
11842 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11843 of calling error() for threads in unknown state.
11844
11845 (clear_lwpid_callback): New function.
11846 (thread_db_resume): Use it to clear the cache.
11847
9fc30b6b
DJ
118482003-01-13 Daniel Jacobowitz <drow@mvista.com>
11849
11850 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11851 (resume_callback): Remove dead code.
11852
8f871025
AC
118532003-01-13 Andrew Cagney <ac131313@redhat.com>
11854
11855 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11856 predicate.
11857 * gdbarch.h, gdbarch.c: Regenerate.
11858 * stack.c (frame_info): Only initialize the saved registers when
11859 FRAME_INIT_SAVED_REGS_P.
11860 * frame.c (frame_saved_regs_register_unwind): Assert
11861 FRAME_INIT_SAVED_REGS_P.
11862 (deprecated_generic_get_saved_register): Ditto.
11863
3f565f1e
DJ
118642003-01-13 Daniel Jacobowitz <drow@mvista.com>
11865
11866 * source.c (openp): Squelch warning about "filename".
11867
072b1022
DJ
118682003-01-13 Daniel Jacobowitz <drow@mvista.com>
11869
11870 * source.c (openp): If the file does not exist don't necessarily
11871 search the path.
11872
973ccf8b
DJ
118732003-01-13 Daniel Jacobowitz <drow@mvista.com>
11874
11875 Fix PR gdb/872.
11876 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11877 (integer_types_same_name_p): New function.
11878 (rank_one_type): Use it.
11879 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11880
030292b7
DJ
118812003-01-13 Daniel Jacobowitz <drow@mvista.com>
11882
11883 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11884 variables.
11885 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11886 * configure.in: Add --with-sysroot.
11887 * configure: Regenerated.
11888 * main.c (gdb_sysroot): New variable.
11889 (captured_main): Initialize gdb_sysroot.
11890 * defs.h (gdb_sysroot): New extern declaration.
11891 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11892
afb5d334
MC
118932003-01-12 Michael Chastain <mec@shout.net>
11894
11895 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11896
751ceeb4
MC
118972003-01-12 Michael Chastain <mec@shout.net>
11898
11899 * top.c (print_gdb_version): Bump copyright year to 2003.
11900
94cd26f8
DC
119012003-01-12 David Carlton <carlton@bactrian.org>
11902
11903 * linespec.c (symtab_from_filename): Rename variable 's' to
11904 'file_symtab'.
11905
1ce79225
AC
119062003-01-12 Andrew Cagney <ac131313@redhat.com>
11907
11908 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11909 dummy frame.
11910 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11911
fa1fd571
AC
119122003-01-12 Andrew Cagney <ac131313@redhat.com>
11913
11914 * d10v-tdep.c: Include "gdb_assert.h".
11915 (d10v_store_return_value): Rewrite to match current interface.
11916 (d10v_extract_struct_value_address): Ditto.
11917 (d10v_extract_return_value): Ditto.
11918 (d10v_gdbarch_init): Set store_restore_value,
11919 extract_struct_value_address and extract_return_value.
11920
68b8d23e
JB
119212003-01-12 J. Brobecker <brobecker@gnat.com>
11922
11923 * hpread.c (set_namestring): New procedure replacing the
11924 SET_NAMESTRING macro.
11925 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11926 by calls to set_namestring.
11927
119282003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
11929
11930 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11931 a compilation warning.
11932 (hpread_process_one_debug_symbol): Likewise.
11933
88d262ca
DC
119342003-01-10 David Carlton <carlton@math.stanford.edu>
11935
11936 * linespec.c (decode_line_1): Rename variable 's' to
11937 'file_symtab'.
11938 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11939 (decode_dollar): Ditto.
11940 (decode_variable): Ditto.
11941 (symbol_found): Ditto.
11942
86669319
MC
119432003-01-09 Michael Chastain <mec@shout.net>
11944
11945 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11946
616a9dc4
CV
119472003-01-07 Corinna Vinschen <vinschen@redhat.com>
11948
11949 * win32-nat.c (set_process_privilege): New function.
11950 (child_attach): Call set_process_privilege() to enable the
11951 SE_DEBUG_NAME user privilege if available in process token.
11952
3269bcfa
JB
119532003-01-10 J. Brobecker <brobecker@gnat.com>
11954
11955 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11956 compilation error in the previous revision.
11957
2b0ee454
DC
119582003-01-09 David Carlton <carlton@math.stanford.edu>
11959
11960 * linespec.c: Update copyright.
11961
b3ba1b44
DJ
119622003-01-09 Daniel Jacobowitz <drow@mvista.com>
11963
11964 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11965 than inferior_ptid.
11966 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11967
4ef3f3be
AC
119682003-01-09 Andrew Cagney <ac131313@redhat.com>
11969
479ab5a0
AC
11970 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11971 Update comments.
11972 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11973 (frame_saved_regs_zalloc): Update.
11974 (frame_saved_regs_register_unwind): Update.
11975 (create_new_frame): Update.
11976 (get_prev_frame): Update.
11977 (frame_extra_info_zalloc): Update.
11978 (deprecated_get_frame_saved_regs): Update.
11979 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11980 * cris-tdep.c: Update comment.
11981
bde58177
AC
11982 * somsolib.h: Fix function indentation.
11983 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11984 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11985 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11986 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11987 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11988
4ef3f3be
AC
11989 * infrun.c (follow_fork): Use ISO C definition.
11990 * expprint.c (print_subexp): Use xfree instead of free.
11991 * charset.c: Include "gdb_string.h" instead of <string.h>.
11992 (register_iconv_charsets): Use ISO C definition.
11993 (host_charset, target_charset): Ditto.
11994 * Makefile.in (charset.o): Update dependencies.
11995 (mi-cmd-env.o): Update dependencies.
11996
1c615f7a
AC
119972003-01-08 Andrew Cagney <cagney@redhat.com>
11998
11999 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12000 get_frame_base.
12001
c9a1dc08
AC
120022003-01-08 Andrew Cagney <ac131313@redhat.com>
12003
12004 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12005 build directories. Save edited gdb output in Mbuild.log. If a
12006 build fails, remove any final GDB executable.
12007
dbad9d94
AC
120082003-01-08 Andrew Cagney <ac131313@redhat.com>
12009
12010 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12011 replacing hex constants with function names and stripping leading
12012 file name directory prefixes.
12013
8d357cca
AC
120142003-01-08 Andrew Cagney <cagney@redhat.com>
12015
12016 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12017 get_frame_base.
12018
bca02a8a
DC
120192003-01-08 David Carlton <carlton@math.stanford.edu>
12020
12021 * linespec.c (decode_line_1): Move code into decode_variable.
12022 (decode_variable): New function.
12023
7f8ab3a0
AC
120242003-01-08 Andrew Cagney <ac131313@redhat.com>
12025
12026 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12027
7b5849cc
AC
120282003-01-08 Andrew Cagney <cagney@redhat.com>
12029
12030 * cris-tdep.c (cris_frame_init_saved_regs): Use
12031 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12032 saved_regs buffer.
12033 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12034 (sh64_nofp_frame_init_saved_regs): Ditto.
12035 (sh_fp_frame_init_saved_regs): Ditto.
12036 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12037 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12038 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12039 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12040
72a5efb3
DJ
120412003-01-08 Daniel Jacobowitz <drow@mvista.com>
12042
12043 * minsyms.c (lookup_minimal_symbol): Update comment.
12044 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12045 (lookup_minimal_symbol_solib_trampoline): Likewise.
12046
11c02a10
AC
120472003-01-08 Andrew Cagney <cagney@redhat.com>
12048
aab3ea25
AC
12049 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12050 frame_relative_level.
12051
da50a4b7
AC
12052 * alpha-tdep.c: Use get_frame_extra_info.
12053 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12054 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12055 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12056 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12057
11c02a10
AC
12058 * alpha-tdep.c: Use get_next_frame.
12059 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12060 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12061 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12062 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12063 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12064 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12065 * xstormy16-tdep.c: Ditto.
8ffd9b1b 12066
1e2330ba
AC
120672003-01-07 Andrew Cagney <cagney@redhat.com>
12068
12069 * alpha-tdep.c: Use get_frame_base.
12070 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12071 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12072 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12073 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12074 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12075 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12076 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12077 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 12078
2d75187b
AC
120792003-01-07 Andrew Cagney <cagney@redhat.com>
12080
12081 * frame.c (deprecated_get_frame_context): New function.
12082 (deprecated_set_frame_context): New function.
12083 * frame.h (deprecated_get_frame_context): Declare.
12084 (deprecated_set_frame_context): Declare.
12085 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12086 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 12087
483d36b2
AC
120882003-01-07 Andrew Cagney <cagney@redhat.com>
12089
12090 * frame.c (deprecated_set_frame_next_hack): New function.
12091 (deprecated_set_frame_prev_hack): New function.
12092 * frame.h (deprecated_set_frame_next_hack): Declare.
12093 (deprecated_set_frame_prev_hack): Declare.
12094 * mcore-tdep.c (analyze_dummy_frame): Use
12095 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12096 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12097
14e91ac5
DC
120982003-01-07 David Carlton <carlton@math.stanford.edu>
12099
12100 * linespec.c (decode_line_1): Move code into decode_dollar.
12101 (decode_dollar): New function.
12102
b0c6b05c
AC
121032003-01-07 Andrew Cagney <cagney@redhat.com>
12104
12105 * arm-tdep.c (arm_init_extra_frame_info): Use
12106 deprecated_update_frame_base_hack.
12107 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12108 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12109 (fix_frame_pointer): Ditto.
12110 (mn10300_analyze_prologue): Ditto.
12111
a00a19e9
AC
121122003-01-07 Andrew Cagney <cagney@redhat.com>
12113
12114 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12115 extra_info using frame_extra_info_zalloc.
12116 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12117 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12118 (sh64_init_extra_frame_info): Ditto.
12119 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12120 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12121 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12122 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12123 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12124 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12125 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12126 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12127 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12128 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12129 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12130 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12131
12132 * mn10300-tdep.c (analyze_dummy_frame): Use
12133 deprecated_set_frame_extra_info_hack.
12134 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12135
1fb4c65b
JB
121362003-01-07 J. Brobecker <brobecker@gnat.com>
12137
12138 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12139 class is not scText. These do not define "real" procedures.
12140 (parse_partial_symbols): Likewise.
12141
9fe7d6bf
MS
121422003-01-06 Michael Snyder <msnyder@redhat.com>
12143
12144 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12145
f6c609c4
AC
121462003-01-06 Andrew Cagney <ac131313@redhat.com>
12147
12148 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12149 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12150 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12151 deprecated_frame_xmalloc_with_cleanup.
12152 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12153 deprecated_frame_xmalloc.
12154 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12155 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12156
d995ff4b
AC
121572003-01-06 Andrew Cagney <cagney@redhat.com>
12158
84dc46cb
AC
12159 * x86-64-linux-tdep.c: Include "osabi.h".
12160 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12161
d995ff4b
AC
12162 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12163
66140c26
AC
121642003-01-06 Andrew Cagney <cagney@redhat.com>
12165
12166 * MAINTAINERS (Target Instruction Set Architectures): Update
12167 arm-elf. Can be built with -Werror, has been multiarched.
12168
12169 * value.h (unpack_long): Make buffer parameter constant.
12170 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12171 * scm-lang.h (scm_parse): Ditto.
12172 * defs.h (extract_typed_address, extract_address): Ditto.
12173 (extract_long_unsigned_integer): Ditto.
12174 * inferior.h (unsigned_pointer_to_address): Ditto.
12175 (signed_pointer_to_address): Ditto.
12176 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12177 * gdbarch.h, gdbarch.c: Regenerate.
12178 * findvar.c (extract_long_unsigned_integer): Update.
12179 (extract_address): Update.
12180 (extract_typed_address): Update.
12181 (unsigned_pointer_to_address): Update.
12182 * values.c (unpack_long): Update.
12183 (unpack_double): Update.
12184 (unpack_pointer): Update.
12185 (unpack_field_as_long): Update.
12186 * d10v-tdep.c (d10v_pointer_to_address): Update.
12187 * avr-tdep.c (avr_pointer_to_address): Update.
12188 * scm-lang.c (scm_unpack): Update.
12189 * findvar.c (signed_pointer_to_address): Update.
12190
b089b3da
ML
121912003-01-06 Michal Ludvig <mludvig@suse.cz>
12192
8ffd9b1b 12193 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
12194 since it is in i386-tdep.c.
12195
aff87235
JB
121962003-01-06 J. Brobecker <brobecker@gnat.com>
12197
12198 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12199 failure introduced in the previous change.
12200
34f5e845
MC
122012003-01-05 Michael Chastain <mec@shout.net>
12202
12203 * README: Remove references to deleted remote-*.c files:
12204 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12205 remote-nrom.c, remote-os9k.c, remote-udi.c.
12206
28bcfd30
MK
122072003-01-05 Mark Kettenis <kettenis@gnu.org>
12208
12209 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12210 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12211 i386_get_longjmp_target.
12212
15a5b3ee
AC
122132003-01-05 Andrew Cagney <ac131313@redhat.com>
12214
12215 * arm-tdep.c (prologue_cache): Change to a pointer.
12216 (_initialize_arm_tdep): Allocate prologue_cache.
12217 (check_prologue_cache): Update.
12218 (save_prologue_cache): Update.
12219 (arm_gdbarch_init): Update.
12220
c263362b
DJ
122212003-01-04 Daniel Jacobowitz <drow@mvista.com>
12222
12223 * stabsread.c (update_method_name_from_physname): Call complaint()
12224 instead of error.
12225
51603483
DJ
122262003-01-04 Daniel Jacobowitz <drow@mvista.com>
12227
12228 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12229 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12230 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12231
12232 * blockframe.c: Include "gdbcmd.h" and "command.h".
12233 (backtrace_below_main): New variable.
12234 (file_frame_chain_valid, func_frame_chain_valid)
12235 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12236 (generic_func_frame_chain_valid): Remove functions.
12237 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12238 (_initialize_blockframe): New function.
12239 * Makefile.in (blockframe.o): Update dependencies.
12240 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12241 comment. Call frame_chain_valid ().
12242 * frame.h: Remove old prototypes. Add prototype for
12243 frame_chain_valid and update comments to match.
12244 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12245 Remove old comment.
12246 * gdbarch.h: Regenerated.
12247 * gdbarch.c: Regenerated.
12248
12249 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12250 set_gdbarch_frame_chain_valid.
12251 * avr-tdep.c (avr_gdbarch_init): Likewise.
12252 * cris-tdep.c (cris_gdbarch_init): Likewise.
12253 * frv-tdep.c (frv_gdbarch_init): Likewise.
12254 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12255 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12256 (i386_nw_init_abi): Likewise.
12257 (i386_gdbarch_init): Likewise.
12258 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12259 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12260 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12261 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12262 * mips-tdep.c (mips_gdbarch_init): Likewise.
12263 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12264 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12265 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12266 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12267 * s390-tdep.c (s390_gdbarch_init): Likewise.
12268 * sh-tdep.c (sh_gdbarch_init): Likewise.
12269 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12270 * v850-tdep.c (v850_gdbarch_init): Likewise.
12271 * vax-tdep.c (vax_gdbarch_init): Likewise.
12272 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12273
12274 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12275 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12276 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12277 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12278 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12279 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12280 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12281 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12282
b00a8037
DJ
122832002-01-04 Daniel Jacobowitz <drow@mvista.com>
12284
12285 * Makefile.in (acconfig_h): Remove incorrect macro.
12286 (config_h): Define.
12287 (osabi.o): Update dependencies.
12288 * configure.tgt: Set gdb_osabi based on target triplet.
12289 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12290 * configure: Regenerated.
12291 * config.in: Regenerated.
12292 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12293 (GDB_OSABI_DEFAULT): Define if not already defined.
12294 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12295 (set_osabi_string): New variables.
12296 (gdbarch_register_osabi): Add new OS ABI to
12297 gdb_osabi_available_names.
12298 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12299 (set_osabi, show_osabi): New functions.
12300 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12301
4be87837
DJ
123022003-01-04 Daniel Jacobowitz <drow@mvista.com>
12303
12304 * arch-utils.c (gdbarch_info_init): Set osabi to
12305 GDB_OSABI_UNINITIALIZED.
12306 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12307 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12308 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12309 * gdbarch.c: Regenerated.
12310 * gdbarch.h: Regenerated.
12311 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12312 there's no BFD.
12313 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12314 * osabi.h (enum gdb_osabi): Move to defs.h.
12315 (gdbarch_init_osabi): Update prototype.
12316 * defs.h (enum gdb_osabi): Moved here.
12317 * Makefile.in: Update dependencies.
12318
12319 * alpha-tdep.h: Don't include "osabi.h".
12320 (struct gdbarch_tdep): Remove osabi member.
12321 * alpha-tdep.c: Include "osabi.h".
12322 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12323 iterate over arches. Update call to gdbarch_init_osabi.
12324 (alpha_dump_tdep): Don't dump osabi.
12325 * alpha-linux-tdep.c: Include "osabi.h".
12326 * alpha-osf1-tdep.c: Include "osabi.h".
12327 * alphafbsd-tdep.c: Include "osabi.h".
12328 * alphanbsd-tdep.c: Include "osabi.h".
12329
12330 * arm-tdep.h: Don't include "osabi.h".
12331 (struct gdbarch_tdep): Remove osabi member.
12332 * arm-tdep.c: Include "osabi.h".
12333 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12334 iterate over arches. Update call to gdbarch_init_osabi.
12335 (arm_dump_tdep): Don't dump osabi.
12336 * arm-linux-tdep.c: Include "osabi.h".
12337 * armnbsd-tdep.c: Include "osabi.h".
12338
12339 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12340 Update call to gdbarch_init_osabi.
12341
12342 * i386-tdep.h: Don't include "osabi.h".
12343 (struct gdbarch_tdep): Remove osabi member.
12344 * i386-tdep.c: Include "osabi.h".
12345 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12346 iterate over arches. Update call to gdbarch_init_osabi.
12347 (i386_dump_tdep): Don't dump osabi.
12348 * i386-linux-tdep.c: Include "osabi.h".
12349 * i386-sol2-tdep.c: Include "osabi.h".
12350 * i386bsd-tdep.c: Include "osabi.h".
12351 * i386gnu-tdep.c: Include "osabi.h".
12352 * i386ly-tdep.c: Include "osabi.h".
12353 * i386nbsd-tdep.c: Include "osabi.h".
12354 * i386obsd-tdep.c: Include "osabi.h".
12355
12356 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12357 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12358 check osabi when iterating over arches. Update call to
12359 gdbarch_init_osabi.
12360 (mips_dump_tdep): Don't dump osabi.
12361
12362 * ns32k-tdep.h: Don't include "osabi.h".
12363 (struct gdbarch_tdep): Remove.
12364 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12365 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12366 allocate tdep. Update call to gdbarch_init_osabi.
12367 (ns32k_dump_tdep): Remove.
12368 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12369 * ns32knbsd-tdep.c: Include "osabi.h".
12370
12371 * ppc-tdep.h: Don't include "osabi.h".
12372 (struct gdbarch_tdep): Remove osabi member.
12373 * rs6000-tdep.c: Include "osabi.h".
12374 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12375 osabi when iterating over arches. Update call to
12376 gdbarch_init_osabi.
12377 (rs6000_dump_tdep): Don't dump osabi.
12378 * ppc-linux-tdep.c: Include "osabi.h".
12379 * ppcnbsd-tdep.c: Include "osabi.h".
12380
12381 * sh-tdep.h: Don't include "osabi.h".
12382 (struct gdbarch_tdep): Remove osabi member.
12383 * sh-tdep.c: Include "osabi.h".
12384 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12385 iterate over arches. Update call to gdbarch_init_osabi.
12386 (sh_dump_tdep): Don't dump osabi.
12387 * shnbsd-tdep.c: Include "osabi.h".
12388
12389 * sparc-tdep.c: Include "osabi.h".
12390 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12391 iterate over arches. Update call to gdbarch_init_osabi.
12392 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12393 tdep structure.
12394
12395 * vax-tdep.h: Don't include "osabi.h".
12396 (struct gdbarch_tdep): Remove.
12397 * vax-tdep.c: Include "osabi.h".
12398 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12399 iterate over arches. Don't allocate tdep. Update call
12400 to gdbarch_init_osabi.
12401 (vax_dump_tdep): Remove.
12402 (_initialize_vax_tdep): Update call to gdbarch_register.
12403
a881cf8e
DJ
124042003-01-04 Daniel Jacobowitz <drow@mvista.com>
12405
12406 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12407 entirely.
12408 (breakpoint_re_set_one): Don't fetch the value for a disabled
12409 watchpoint.
12410
1e698235
DJ
124112003-01-04 Daniel Jacobowitz <drow@mvista.com>
12412
12413 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12414 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12415 (COERCE_FLOAT_TO_DOUBLE): Remove.
12416 * gdbarch.c: Regenerate.
12417 * gdbarch.h: Regenerate.
12418 * Makefile.in: Remove value_h from gdbarch_h.
12419 * valops.c (coerce_float_to_double): New variable.
12420 (default_coerce_float_to_double): Remove.
12421 (standard_coerce_float_to_double): Remove.
12422 (value_arg_coerce): Use coerce_float_to_double.
12423 (_initialize_valops): Add "set coerce-float-to-double".
12424 * value.h (default_coerce_float_to_double): Remove prototype.
12425 (standard_coerce_float_to_double): Remove prototype.
12426
12427 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12428 prototyped.
12429 * mdebugread.c (parse_symbol): Likewise.
12430 * stabsread.c (define_symbol): Mark all functions as prototyped.
12431
12432 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12433 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12434 set_gdbarch_coerce_float_to_double.
12435 * arm-tdep.c (arm_gdbarch_init): Likewise.
12436 * frv-tdep.c (frv_gdbarch_init): Likewise.
12437 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12438 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12439 * mips-tdep.c (mips_gdbarch_init): Likewise.
12440 (mips_coerce_float_to_double): Remove.
12441 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12442 (rs6000_coerce_float_to_double): Remove.
12443 * s390-tdep.c (s390_gdbarch_init): Likewise.
12444 * sh-tdep.c (sh_gdbarch_init): Likewise.
12445 (sh_coerce_float_to_double): Remove.
12446 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12447 (sparc_coerce_float_to_double): Remove.
12448 * v850-tdep.c (v850_gdbarch_init): Likewise.
12449 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12450 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12451 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12452 (hppa_coerce_float_to_double): Remove prototype.
12453 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12454
f436a26a
DJ
124552003-01-04 Daniel Jacobowitz <drow@mvista.com>
12456
12457 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12458
248f8055
DJ
124592003-01-04 Daniel Jacobowitz <drow@mvista.com>
12460
12461 Suggested by Stewart Brown <sb24@avaya.com>:
12462 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12463 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12464 (c_type_print_varspec_suffix): Likewise.
12465
72cfdc76
MK
124662003-01-04 Mark Kettenis <kettenis@gnu.org>
12467
bfd260bb
MK
12468 * configure.in: Don't set and AC_SUBST SUBDIRS.
12469 * configure: Regenerated.
12470
72cfdc76
MK
12471 * configure.in: Remove code dealing with shared libraries.
12472 * Makefile.in: Remove HLDFLAGS and HLDENV.
12473 * configure: Regenerated.
12474
c8b8a898
AC
124752003-01-04 Andrew Cagney <ac131313@redhat.com>
12476
12477 * frame.c (deprecated_frame_xmalloc): New function.
12478 (deprecated_set_frame_saved_regs_hack): New function.
12479 (deprecated_set_frame_extra_info_hack): New function.
12480 * frame.h (deprecated_frame_xmalloc): Declare.
12481 (deprecated_set_frame_saved_regs_hack): Declare.
12482 (deprecated_set_frame_extra_info_hack): Declare.
12483
14abd0fb
MK
124842003-01-04 Mark Kettenis <kettenis@gnu.org>
12485
8ee53726
MK
12486 * configure.in: Move code that provides the --enable-gdbtk option
12487 right after the code that handles the --enable-tui option, and
12488 polish it somewhat.
12489 * configure: Regenerated.
12490
14abd0fb
MK
12491 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12492 AC_CHECK_FUNCS and remove the old check for pread64.
12493 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12494 * acconfig.h (_GNU_SOURCE): Add.
12495 (HAVE_PREAD64): Remove.
12496 * configure, aclocal.m4, config.in: Regenerated.
12497
b2fb4676
AC
124982003-01-03 Andrew Cagney <ac131313@redhat.com>
12499
12500 * alpha-tdep.c: Use get_frame_saved_regs.
12501 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12502 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12503 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12504 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12505 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12506
8dcde887
MK
125072003-01-03 Mark Kettenis <kettenis@gnu.org>
12508
12509 * configure.in: Remove all use of the SUBDIRS variable; add
12510 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12511 code providing the --enable-multi-ice option, and move it right in
12512 front of the code that checks whether gdbserver is supported.
12513 Polish that too.
12514 * configure: Regenerated.
12515 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12516 @SUBDIRS@.
12517
8ccd593b
AC
125182003-01-03 Andrew Cagney <cagney@redhat.com>
12519
12520 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12521 * avr-tdep.c, cris-tdep.c: Ditto.
12522 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12523 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 12524
91151a06
MK
125252003-01-03 Mark Kettenis <kettenis@gnu.org>
12526
12527 * configure.in: Remove --enable-netrom option.
12528 * configure: Regenerated.
12529
8fe84d01
MK
125302003-01-03 Mark Kettenis <kettenis@gnu.org>
12531
12532 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12533 declaration for `struct re_pattern_buffer' instead.
12534 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12535
f0394be6
JB
125362003-01-03 J. Brobecker <brobecker@gnat.com>
12537
12538 * mdebugread.c (parse_symbol): Count until the stEnd matching
12539 the structure name.
12540
27e9bf90
MK
125412003-01-02 Mark Kettenis <kettenis@gnu.org>
12542
93d331ba
MK
12543 * configure.in: Remove --with-cpu option.
12544 subscripts. Remove evil changequotes here.
12545 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12546 * config.in, configure: Regenerated.
8ffd9b1b 12547
27e9bf90
MK
12548 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12549 * configure.in: Cleanup section that sources GDB and BFD configure
12550 subscripts. Remove evil changequotes here.
12551 * config.in, configure: Regenerated.
12552
50abf9e5
AC
125532003-01-02 Andrew Cagney <ac131313@redhat.com>
12554
12555 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12556 frame accessor methods.
12557 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12558 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12559 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12560 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12561 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12562 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12563 * z8k-tdep.c: Ditto.
8ffd9b1b 12564
287c1a40
MK
125652003-01-02 Mark Kettenis <kettenis@gnu.org>
12566
f5dbc56d
MK
12567 * configure.in: Remove UI_OUT configuration code.
12568 * ada-lang.c: Update assuming UI_OUT is always true.
12569 * Makefile.in (UIOUT_CFLAGS): Remove.
12570 * configure: Regenerated.
12571 * TODO: Remove blurb about elimination of -DUI_OUT.
12572
627af7ea
MK
12573 * configure.in: Move code that provides the --enable-gdbcli,
12574 --enable-gdbmi options right before the code that handles the
12575 --enable-tui option. Polish a bit.
12576 * configure: Regenerated.
12577
06825bd1
MK
12578 * configure.in: Rewrite check for GNU regex and the
12579 --without-included regex option, and move it into the "Checks for
12580 library functions" section. This makes us use the system regex
12581 again by default on systems with version 2 of the GNU C library.
12582 This was apparently broken.
12583 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12584 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12585 * config.in, configure: Regenerated.
12586
287c1a40
MK
12587 * configure.in: Move code that provides the --enable-tui option
12588 before the "Checks for libraries" section. Polish the code
12589 somewhat and set need_curses to yes if we build the TUI. Rewrite
12590 code that looks for a library providing termcap functionality to
12591 match more closely what's done in the Readline library, and move
12592 it into to the "Checks for libraries" section.
12593 * configure: Regenerated.
12594 * Makefile.in (TERMCAP): Remove variable.
12595 * config/i386/go32.mh (TERMCAP): Remove variable.
12596
684e56bf
AC
125972003-01-02 Andrew Cagney <ac131313@redhat.com>
12598
12599 * MAINTAINERS: Mention gdb_mbuild.sh.
12600 * gdb_mbuild.sh: Rewrite.
12601
e1ea1d75
MK
126022003-01-02 Mark Kettenis <kettenis@gnu.org>
12603
12604 * configure.in: Fix typo in last change.
12605 * config.in, configure: Regenerated.
12606
1b831c93
AC
126072003-01-02 Andrew Cagney <ac131313@redhat.com>
12608
12609 * valarith.c (value_binop): Delete obsolete code and comments.
12610 * configure.host: Ditto.
12611 * buildsym.h (make_blockvector): Ditto.
12612 * buildsym.c (make_blockvector): Ditto.
12613 * defs.h (enum language): Ditto.
12614 (chill_demangle): Ditto.
12615 * elfread.c (elf_symtab_read): Ditto.
12616 * dwarfread.c (CHILL_PRODUCER): Ditto.
12617 (set_cu_language): Ditto.
12618 (handle_producer): Ditto.
12619 * expprint.c (print_subexp): Ditto.
12620 * gdbtypes.c (chill_varying_type): Ditto.
12621 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12622 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12623 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12624 (chill_varying_type): Ditto.
12625 * language.h (_LANG_chill): Ditto.
12626 * language.c (binop_result_type, integral_type): Ditto.
12627 (character_type, string_type, structured_type): Ditto.
12628 (lang_bool_type, binop_type_check): Ditto.
12629 * stabsread.h (os9k_stabs): Ditto.
12630 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12631 (define_symbol, read_type, read_struct_fields): Ditto.
12632 (read_array_type, read_enum_type, read_huge_number): Ditto.
12633 (read_range_type, start_stabs): Ditto.
12634 * symfile.c (init_filename_language_table): Ditto.
12635 (add_psymbol_with_dem_name_to_list): Ditto.
12636 * symtab.c (symbol_init_language_specific): Ditto.
12637 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12638 * symtab.h (struct general_symbol_info): Ditto.
12639 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12640 * typeprint.c (typedef_print): Ditto.
12641 * utils.c (fprintf_symbol_filtered): Ditto.
12642 * valops.c (value_cast, search_struct_field, value_slice): Delete
12643 obsolete code.
12644 (varying_to_slice): Delete function.
12645 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12646 (varying_to_slice): Delete declaration.
12647 * MAINTAINERS: Update.
12648
8bb2c122
MK
126492003-01-02 Mark Kettenis <kettenis@gnu.org>
12650
97bf5e38
MK
12651 * configure.in: Reorganize "Checks for library functions section"
12652 a bit. Remove check for `btowc' and `isascii' functions.
12653 * configure: Regenerated.
12654
5ee754fc
MK
12655 * acconfig.h (_MSE_INT_H): Remove.
12656 * configure.in: Create "Checks for header files" section, and move
12657 appropriate tests there. Don't check for objlist.h, wchar.h,
12658 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12659 misdetection fix. Also add "Checks for types", "Checks for
12660 compiler characteristics" and "Checks for library functions"
12661 sections.
12662 * config.in, configure: Regenerated.
12663
8bb2c122
MK
12664 * configure.in: Create "Checks for programs" section, and move
12665 appropriate tests there.
12666
9a156167
MK
126672003-01-01 Mark Kettenis <kettenis@gnu.org>
12668
12669 * configure.in: Create "Checks for libraries" section, and move
12670 appropriate tests there. Cleanup check for wctype in libw. Use
12671 AC_SEARCH_LIBS to see whether we need libsocket.
12672 * configure: Regenerated.
12673
a80e2bcb 12674For older changes see ChangeLog-2002
c906108c
SS
12675\f
12676Local Variables:
12677mode: change-log
12678left-margin: 8
12679fill-column: 74
12680version-control: never
12681End:
This page took 1.032033 seconds and 4 git commands to generate.