*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
37b517aa
MK
12003-10-03 Mark Kettenis <kettenis@gnu.org>
2
3 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
4
12c266ea
AC
52003-10-02 Andrew Cagney <cagney@redhat.com>
6
7 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
8 REGISTER_RAW_SIZE.
9 * gdbarch.h, gdbarch.c: Re-generate.
10 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
11 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
12 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
13 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
14 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
15 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
16 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
17 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
18 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
19 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
20 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
21 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
22 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
23 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
24 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
25 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
26
78ba4af6
JB
272003-10-02 Jim Blandy <jimb@redhat.com>
28
29 * dwarf2read.c (struct die_info): Doc fix.
30
617daa0e
CV
312003-10-02 Corinna Vinschen <vinschen@redhat.com>
32
33 * sh-tdep.c: Running thru gdb_indent.sh.
34
e5e33cd9
CV
352003-10-02 Corinna Vinschen <vinschen@redhat.com>
36
37 * sh-tdep.c (sh_justify_value_in_reg): New function.
38 (sh_stack_allocsize): Ditto.
39 (flt_argreg_array): New array used for floating point argument
40 passing.
41 (sh_init_flt_argreg): New function.
42 (sh_next_flt_argreg): Ditto.
43 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
44 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
45 Fix argument passing strategy.
46 (sh_push_dummy_call_nofpu): Ditto.
47
5fe830e4
AC
482003-10-01 Andrew Cagney <cagney@redhat.com>
49
50 * value.h (register_value_being_returned): Declare. Replace
51 "value_being_returned".
52 * infcall.c (call_function_by_hand): Use
53 register_value_being_returned.
54 * infcmd.c (print_return_value): Call
55 "register_value_being_returned", handle struct return locally.
56 * values.c (register_value_being_returned): New function. Replace
57 "value_being_returned".
58
592003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
60
61 * linux-proc.c (linux_do_registers): New function.
62 (linux_make_note_section): Use linux_do_registers in case of
63 single threaded inferior programs.
64
64f395bf
AC
652003-10-01 Andrew Cagney <cagney@redhat.com>
66
67 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
68 use STRUCT_ADDR. When not using "struct return convention", pass
69 "0" to "value_being_returned". Add FIXMEs.
70 * infcmd.c (print_return_value): Pass an explicit 0/1 to
71 value_being_returned. Add comments.
72 * values.c (value_being_returned): Add fixme.
73 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
74 (hppa_value_returned_from_stack): Add FIXME.
75
639d11d3
DC
762003-09-30 David Carlton <carlton@kealia.com>
77
78 * dwarf2read.c (struct die_info): Add 'parent' field; replace
79 'has_children' and 'next' by 'child' and 'sibling'.
80 (read_comp_unit): Rework algorithm, breaking body into
81 read_die_and_children and read_die_and_siblings.
82 (read_die_and_children, read_die_and_siblings): New.
83 (read_full_die): Add 'has_children' argument; set it instead of
84 the die's 'has_children' field. Minor formatting cleanup.
85 (free_die_list): Use die->child and die->sibling instead of
86 die->next.
87 (dump_die_list): Ditto.
88 (sibling_die): Use die->sibling.
89 (psymtab_to_symtab_1): Use die's 'child' field in place of its
90 'has_children' and 'next' fields.
91 (process_die, read_file_scope, read_func_scope)
92 (read_lexical_block_scope, read_structure_scope)
93 (read_enumeration, read_array_type, read_common_block)
94 (read_namespace, read_subroutine_type, dump_die): Ditto.
95
5bffac25
AC
962003-09-30 Andrew Cagney <cagney@redhat.com>
97
98 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
99 to 224, not 220.
100
f30992d4
AC
1012003-09-30 Andrew Cagney <cagney@redhat.com>
102
103 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
104 REGISTER_VIRTUAL_SIZE.
105 * gdbarch.h, gdbarch.c: Regenerate.
106 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
107 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
108 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
109
2e092625
AC
1102003-09-29 Andrew Cagney <cagney@redhat.com>
111
112 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
113 DEPRECATED_REGISTER_VIRTUAL_TYPE.
114 * gdbarch.h, gdbarch.c: Regenerate.
115 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
116 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
117
118 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
119 * remote-vxmips.c (vx_read_register): Ditto.
120 * remote-vx68.c (vx_read_register): Ditto.
121 * gnu-nat.c (inf_validate_procs): Ditto.
122
7a5dd6ee
JB
1232003-09-29 J. Brobecker <brobecker@gnat.com>
124
125 * infcall.c (call_function_by_hand): Fix build failure
126 introduced in the previous change to this file.
127
1fe43d45
AC
1282003-09-29 Andrew Cagney <cagney@redhat.com>
129
130 * NEWS: Mention Objective-C.
131
e28a332c
JG
1322003-09-29 Jerome Guitton <guitton@act-europe.fr>
133
134 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
135 test if the register has been saved on the stack.
136 (arm_scan_prologue_cache): When analysing the instruction
137 "str lr, [sp, #-4]", save the address where lr has been stored.
138
9ff63c35
AC
1392003-09-28 Andrew Cagney <cagney@redhat.com>
140
7f5f525d
AC
141 * frame.c (frame_read_unsigned_register): Delete function.
142 * frame.h (frame_read_unsigned_register): Delete declaration.
143 * sparc-tdep.c (sparc_init_extra_frame_info): Use
144 get_frame_register_unsigned.
145 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
146 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
147 * d10v-tdep.c (d10v_print_registers_info): Ditto.
148
149 * frame.h (frame_read_register): Delete declaration.
150 * frame.c (frame_read_register): Delete function.
151 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
152 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
153 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
154 * mips-tdep.c (mips_register_to_value): Ditto.
155 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
156 * d10v-tdep.c (d10v_print_registers_info): Ditto.
157
158 * frame.c (frame_read_signed_register): Delete function.
159 (frame_read_unsigned_register): Update comments.
160 * frame.h (frame_read_signed_register): Delete declaration.
161 * h8300-tdep.c (h8300_print_register): Use
162 get_frame_register_signed.
163 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
164
9ff63c35
AC
165 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
166 Rename VALUE_RETURNED_FROM_STACK.
167 * infcmd.c (print_return_value): Update.
168 * infcall.c (call_function_by_hand): Update.
169
41d041d6
MK
1702003-09-28 Mark Kettenis <kettenis@gnu.org>
171
172 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
173 regcache argument and reverse the order of the other two
174 arguments. Remove local regcache variable. Determine
175 architecture from REGCACHE. Update comments.
176 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
177 reverse the order of the other two arguments. Remove local
178 regcache variable. Determine architecture from REGCACHE. Update
179 comments.
180 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
181 prototypes. Update comments.
182 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
183 comment.
184 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
185 Update.
186 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
187 * i386-interix-nat.c (supply_fpregset): Update.
188 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
189 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
190 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
191 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
192 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
193 Update.
194 * i386obsd-tdep.c (fetch_core_registers): Update.
195 * i386v4-nat.c (supply_fpregset): Update.
196 * x86-64-linux-nat.c (supply_fpregset): Update.
197 * x86-64-linux-tdep.c (fetch_core_registers): Update.
198
1cb97e17
MK
1992003-09-27 Mark Kettenis <kettenis@gnu.org>
200
5716833c
MK
201 * i386-tdep.h: Put opaque declarations in alphabetical
202 order. Remove spurious whitespace.
203 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
204 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
205 * i386-tdep.c (MM0_REGNUM): Remove define.
206 (i386_mmx_regnum_p): Add gdbarch argument.
207 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
208 Rewrite using new macro definitions for FPU/SSE registers.
209 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
210 definitions from i387-tdep.h.
211 (i386_register_name): Update.
212 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
213 new macro definitions for FPU/SSE registers.
214 (i386_extract_return_value): Determine whether floating-point
215 registers are present by examining REGCACHE's architecture.
216 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
217 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
218 FPU/SSE registers.
219 (i386_register_type): Update.
220 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
221 definitions for FPU registers. Use REGCACHE's architecture to
222 determine the appropriate register numbers.
223 (i386_pseudo_register_read, i386_pseudo_register_write,
224 i386_register_reggroup_p): Update.
225 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
226 TDEP->mm0_regnum.
227 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
228 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
229 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
230 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
231 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
232 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
233 *' to `void *'.
234 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
235 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
236 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
237 definitions for FPU/SSE registers.
238 (FXSAVE_MXCSR_ADDR): New define.
239 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
240 TDEP->mm0_regnum.
241 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
242 (I387_ST0_REGNUM): Define.
243
41d35cb0
MK
244 * regcache.h (get_regcache_arch): New prototype.
245 * regcache.c (get_regcache_arch): New function.
246
54e74f72
MK
247 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
248 whitespace.
249
1cb97e17
MK
250 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
251 Initialize using ARRAY_SIZE.
252
0968aa8c
AC
2532003-09-27 Andrew Cagney <cagney@redhat.com>
254
255 * arch-utils.c (deprecated_init_frame_pc_default): Rename
256 "init_frame_pc_default".
257 * arch-utils.h (deprecated_init_frame_pc_default): Update.
258 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
259 * vax-tdep.c (vax_gdbarch_init): Update.
260 * v850-tdep.c (v850_gdbarch_init): Update.
261 * sh64-tdep.c (sh64_gdbarch_init): Update.
262 * s390-tdep.c (s390_gdbarch_init): Update.
263 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
264 * mcore-tdep.c (mcore_gdbarch_init): Update.
265 * h8300-tdep.c (h8300_gdbarch_init): Update.
266 * cris-tdep.c (cris_gdbarch_init): Update.
267 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
268
54c84734
MK
2692003-09-26 Mark Kettenis <kettenis@gnu.org>
270
271 * regset.h: New file.
272 * Makefile.in (regset_h): Add.
273
1b1d3794
AC
2742003-09-25 Andrew Cagney <cagney@redhat.com>
275
276 * frame.h (deprecated_frame_saved_regs): Rename
277 get_frame_saved_regs.
278 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
279 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
280 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
281 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
282 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
283
e6beb428
AC
2842003-09-25 Andrew Cagney <cagney@redhat.com>
285
286 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
287 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
288 and Java.
289 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
290 arm*-*-* do not use the new frame code.
291
710122da
DC
2922003-09-25 David Carlton <carlton@kealia.com>
293
294 * c-exp.y: Remove 'register' declarations.
295 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
296
79c2c32d
DC
2972003-09-25 David Carlton <carlton@kealia.com>
298
299 * c-exp.y: Include cp-support.h. Add qualified_type.
300 (yylex): Delete nested type hack; add comments.
301 * cp-namespace.c (cp_lookup_nested_type): New function.
302 * cp-support.h: Declare cp_lookup_nested_type.
303 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
304 instead of value_struct_elt_for_reference.
305 * valops.c: Include cp-support.h.
306 (value_aggregate_elt): New function.
307 (value_namespace_elt): Ditto.
308 (value_struct_elt_for_reference): Make static.
309 * value.h: Delete declaration of value_struct_elt_for_reference;
310 add declaration for value_aggregate_elt.
311 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
312 (valops.o): Ditto.
313
898c62f5
DJ
3142003-09-25 Daniel Jacobowitz <drow@mvista.com>
315
316 * stack.c: Include "reggroups.h".
317 (frame_info): Only display registers in all_reggroup.
318 * Makefile.in (stack.o): Update dependencies.
319
28cd8767
JG
3202003-09-25 Jerome Guitton <guitton@act-europe.fr>
321
322 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
323 "add ip, sp #n" in the prologue.
324 (arm_scan_prologue): Ditto.
325
a4ab2b5d
JG
3262003-09-25 Jerome Guitton <guitton@act-europe.fr>
327
328 * MAINTAINERS (write after approval): Add myself.
329
3f244638
AS
3302003-09-25 Andreas Schwab <schwab@suse.de>
331
332 * m68k-tdep.c: Include "dwarf2-frame.h".
333 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
334 * Makefile.in (m68k-tdep.o): Update dependencies.
335
1c0159e0
CV
3362003-09-25 Corinna Vinschen <vinschen@redhat.com>
337
338 * sh-tdep.c (struct frame_extra_info): Remove.
339 (struct sh_frame_cache): New structure.
340 (GET_SOURCE_REG): New macro extracting source register of an opcode.
341 (GET_TARGET_REG): Ditto but target register.
342 (GET_PUSHED_REG): Remove.
343 (IS_MOV_ARG_TO_REG): New macro.
344 (IS_MOV_ARG_TO_IND_R14): New macro.
345 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
346 (IS_MOVW_PCREL_TO_REG): New macro.
347 (IS_MOVL_PCREL_TO_REG): New macro.
348 (IS_SUB_REG_FROM_SP): New macro.
349 (IS_ARG_MOV): Remove.
350 (IS_MOV_TO_R14): Remove.
351 (IS_RESTORE_FP): New macro.
352 (IS_RTS): New macro.
353 (IS_LDS): New macro.
354 (IS_MOV_FP_SP): New macro.
355 (IS_ADD_REG_TO_FP): New macro.
356 (IS_ADD_IMM_FP): New macro.
357 (sh_skip_prologue_hard_way): Remove.
358 (sh_saved_pc_after_call): Remove.
359 (sh_frame_chain): Remove.
360 (sh_find_callers_reg): Remove.
361 (sh_nofp_frame_init_saved_regs): Remove.
362 (sh_fp_frame_init_saved_regs): Remove.
363 (sh_init_extra_frame_info): Remove.
364 (sh_analyze_prologue): New function.
365 (sh_skip_prologue): Remove deprecated code. Rely on new function
366 sh_analyze_prologue when after_prologue fails.
367 (sh_frame_saved_pc): Remove.
368 (sh_alloc_frame_cache): New function.
369 (sh_frame_cache): Ditto.
370 (sh_frame_prev_register): Ditto.
371 (sh_frame_this_id): Ditto.
372 (sh_frame_unwind): New structure defining the heuristic frame
373 sniffer interface.
374 (sh_frame_sniffer): New function.
375 (sh_unwind_sp): Ditto.
376 (sh_unwind_pc): Ditto.
377 (sh_unwind_dummy_id): Ditto.
378 (sh_frame_base_address): Ditto.
379 (sh_frame_base): New structure defining new frame base code.
380 (sh_in_function_epilogue_p): New function.
381 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
382 code and to call all new code instead. Initialize dwarf2 and
383 heuristic frame sniffer.
384
5f9769d1
PH
3852003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
386
387 * parser-defs.h (struct exp_descriptor): New definition, containing
388 language-specific info for printing, prefixifying, dumping, and
389 evaluating expressions.
390 (exp_descriptor_standard): Declare new variable.
391 (print_subexp): Make global and declare here (from expprint.c).
392 (dump_subexp): Ditto.
393 (dump_subexp_body_standard): Declare.
394 (operator_length_standard): Declare.
395 (op_name_standard): Declare.
396 (print_subexp): Declare.
397 (print_subexp_standard): Declare.
398
399 * language.h (struct language_defn): Add la_exp_desc field to hold
400 pointer to table for language-specific operators.
401 Remove evaluate_exp field, which is now in struct exp_descriptor.
402
403 * parse.c (operator_length): Move most code to new
404 operator_length_standard function. Use language-specific information.
405 (operator_length_standard): New function taking most code from
406 operator_length.
407 (exp_descriptor_standard): New constant.
408
409 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
410 and OP_EXTENDED_LAST.
411
412 * expprint.c (print_subexp): Use language-specific print_subexp.
413 Make global; remove static declaration.
414 Move most code to print_subexp_standard.
415 (print_subexp_standard): New function, containing code formerly in
416 print_subexp.
417 (op_name): Add expression to argument signature.
418 Use langauge-specific op_name.
419 Move most code to op_name_standard.
420 (op_name_standard): New function, containing code formerly in op_name.
421 (dump_subexp): Use new version of op_name function.
422 Use language-specific dump_subexp_body, and move most existing code to
423 dump_subexp_body_standard.
424 (dump_raw_expression): Use new op_name interface.
425 (dump_subexp_body): Move most code to dump_subexp_body_standard.
426 (dump_subexp_body_standard): New function, containing code formerly
427 in dump_subexp_body.
428
429 * language.c (unknown_language): Add default la_exp_desc field and
430 remove evaluate_exp field.
431 (auto_language): Ditto.
432 (local_language): Ditto.
433 * f-lang.c (f_language_defn): Ditto.
434 * c-lang.c (c_language_defn): Ditto.
435 (cplus_language_defn): Ditto.
436 (asm_language_defn): Ditto.
437 (minimal_language_defn): Ditto.
438 * p-lang.c (pascal_language_defn): Ditto.
439 * m2-lang.c (m2_language_defn): Ditto.
440 * objc-lang.c (objc_language_defn): Ditto.
441
442 * jv-lang.c (exp_descriptor_java): New variable, containing
443 Java-specific expression evaluator.
444 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
445 field.
446 * scm-lang.c (exp_descriptor_scm): New variable, containing
447 Scheme-specific expression evaluator.
448 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
449 field.
450 * objc-lang.c (print_object_command): Take evaluate_exp from the
451 la_exp_desc field.
452
453 * Makefile.in (eval.o): Add dependency on parser-defs.h.
454
455 * eval.c: Include parser-defs.h for the full declaration of
456 la_exp_desc's type.
457 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
458
24daaebc
PH
4592003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
460
461 * parser-defs.h (operator_length): Declare.
462
463 * parse.c (length_of_subexp): Use operator_length to get operator
464 lengths and arities for operators.
465 Move most code to new operator_length function.
466 (operator_length): New function absorbing most code from
467 length_of_subexp.
468 (prefixify_subexp): Remove large case and use operator_length instead.
469 (parse_exp_1): Use renamings:
470 dump_prefix_expression => dump_raw_expression and
471 dump_postfix_expression => dump_prefix_expression.
472
473 * expression.h (dump_prefix_expression): Rename to ...
474 (dump_raw_expression): New name.
475 (dump_postfix_expression): Rename to ...
476 (dump_prefix_expression): New name.
477
478 * expprint.c (dump_subexp): Make global. Add comment.
479 Move most existing code to dump_subexp_body.
480 (dump_subexp_body): New function.
481 (dump_prefix_expression): Rename to dump_raw_expression.
482 Remove attempt to print the expression via print_expression: it can't
483 work before the expression is prefixified.
484 (dump_raw_expression): Renamed from dump_prefix_expression.
485 (dump_postfix_expression): Rename to dump_prefix_expression, since
486 that's what it does.
487 Remove 'note' parameter, since this routine must be used on
488 prefixified expression.
489 (dump_prefix_expression): Renamed from dump_postfix_expression.
490
8c2957c4
JB
4912003-09-22 Jim Blandy <jimb@redhat.com>
492
493 * dwarf2read.c (read_array_type): When building the type for an
494 array of unspecified length, make sure to choose the upper bound
495 so that the array's total length comes out to be zero --- that's
496 how we represent such arrays.
497
592e3010
MC
4982003-09-22 Michael Chastain <mec@shout.net>
499
500 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
501
365c70b1
JJ
5022003-09-22 Jeff Johnston <jjohnstn@redhat.com>
503
504 * top.c (quit_force): Fix indirect call to quit_target so
505 a struct qt_args pointer is passed.
506
5d6eb653
AC
5072003-09-22 Andrew Cagney <cagney@redhat.com>
508
509 * arch-utils.h (init_frame_pc_noop): Delete declaration.
510 * arch-utils.c (init_frame_pc_noop): Delete function.
511 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
512 "init_frame_pc".
513 * mips-tdep.c (mips_gdbarch_init): Ditto.
514 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
515 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
516 declaration.
517 (DEPRECATED_INIT_FRAME_PC): Delete macro.
518 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
519 declaration.
520 (DEPRECATED_INIT_FRAME_PC): Delete macro.
521
b222a67f
AG
5222003-09-22 Anthony Green <green@redhat.com>
523
524 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
525 declaration.
526
d5b5ac79
AC
5272003-09-20 Andrew Cagney <cagney@redhat.com>
528
deafb061
AC
529 * breakpoint.c: Eliminate ARGSUSED.
530 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
531 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
532 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
533 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
534 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
535 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
536 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
537 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
538 * wince.c, remote-vx.c: Ditto.
539
d5b5ac79
AC
540 * cli/cli-script.c: Remove "register" attributes.
541 * config/pa/tm-hppa.h: Ditto.
542 * cli/cli-decode.c: Ditto.
543 * cli/cli-cmds.c: Ditto.
544
c6316faa
AC
5452003-09-19 Andrew Cagney <cagney@redhat.com>
546
547 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
548 DEPRECATED_NPC_REGNUM.
549 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
550
f4f99b11
CF
5512003-09-19 Christopher Faylor <cgf@redhat.com>
552
553 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
554
1708f284
JB
5552003-09-19 Jim Blandy <jimb@redhat.com>
556
557 * macrotab.c (macro_include): Use the correct comparison to find
558 the appropriate place for this inclusion in the list.
559
b9fbf434
AC
5602003-09-19 Andrew Cagney <cagney@redhat.com>
561
562 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
563 (DEPRECATED_HPUX_TEXT_END): Define.
564 (deprecated_hpux_text_end): Declare.
565 (struct target_ops): Declare opaque.
566 * hppah-nat.c (text_end): Make static.
567 (deprecated_hpux_text_end): New function.
568 * exec.c (text_end): Delete global variable.
569 (NEED_TEXT_START_END): Do not define.
570 (exec_file_attach): Replace code computing "text_end" code with
571 call to DEPRECATED_HPUX_TEXT_END.
572
5b03f266
AC
5732003-09-19 Andrew Cagney <cagney@redhat.com>
574
575 * utils.c (align_up, align_down): New functions.
576 * defs.h (align_up, align_down): Declare.
577 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
578 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
579 and "align_down".
580 (round_up, round_down): Delete functions.
581 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
582 "align_down".
583 (ROUND_DOWN, ROUND_UP): Delete macros.
584 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
585 * h8300-tdep.c: Replace "round_up" and "round_down" with
586 "align_up" and "align_down".
587 (round_up, round_down): Delete macros.
588 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
589 "align_down".
590 (ROUND_UP, ROUND_DOWN): Delete macros.
591
51db5742
JB
5922003-09-18 J. Brobecker <brobecker@gnat.com>
593
594 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
595 hard-coded constant. Use the proper machine name instead.
596
77949794
AC
5972003-09-17 Andrew Cagney <cagney@redhat.com>
598
599 * sparc-tdep.c (legacy_register_name): Delete function.
600 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
601 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
602 * infcmd.c (gdb_register_name): Delete variable.
603 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
604 REGISTER_NAME and "tm.h".
605 * gdbarch.h, gdbarch.c: Regenerate.
606 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
607 REGISTER_NAMES in comments.
608 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
609 * m68klinux-nat.c (regmap): Ditto.
610
b55c33cc
JB
6112003-09-17 Jim Blandy <jimb@redhat.com>
612
613 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
614
957e27ac
AC
6152003-09-17 Andrew Cagney <cagney@redhat.com>
616
617 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
618 (ppcnbsd_init_abi): Set "use_struct_convention" to
619 "ppcnbsd_use_struct_convention".
620
192cb3d4
MK
6212003-09-17 Mark Kettenis <kettenis@gnu.org>
622
623 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
624 * gdbarch.h, gdbarch.c: Regenerate.
625 (stabs_argument_has_addr): New architecture method.
626 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
627 * arch-utils.c: Include "buildsym.h".
628 (default_stabs_argument_has_addr): New function.
629 * stabsread.c (define_symbol): Use stabs_argument_has_addr
630 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
631
efe59759
AC
6322003-09-17 Andrew Cagney <cagney@redhat.com>
633
634 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
635 * gdbarch.h, gdbarch.c: Regenerate.
636 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
637 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
638 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
639 * sparcnbsd-tdep.c: Update.
640
62700349
AC
6412003-09-17 Andrew Cagney <cagney@redhat.com>
642
643 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
644 * gdbarch.h, gdbarch.c: Regenerate.
645 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
646 * d10v-tdep.c, frame.c: Update.
647 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
648 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
649 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
650 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
651 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
652 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
653 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
654 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
655 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
656 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
657 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
658 * config/pa/nm-hppah.h: Update.
659
b9ff3018
AC
6602003-09-16 Andrew Cagney <cagney@redhat.com>
661
662 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
663 "use_struct_convention" to "ppc_linux_use_struct_convention".
664 (ppc_linux_use_struct_convention): New function.
665 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
666 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
667 "rs6000_use_struct_convention".
668 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
669 declaration.
670 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
671 Delete function.
672
aa1ee363
AC
6732003-09-16 Andrew Cagney <cagney@redhat.com>
674
675 * buildsym.c: Remove more occurances of "register".
676 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
677 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
678 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
679 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
680 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
681 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
682 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
683 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
684
f2ea0907
CV
6852003-09-16 Corinna Vinschen <vinschen@redhat.com>
686
687 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
688 numbers to enumeration values.
689 * sh-tdep.c: Accomodate above change.
690 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
691 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
692 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
693 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
694 (IS_FPUSH): Rename from IS_FMOV.
695 (sh_extract_struct_value_address): Remove useless comment.
696 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
697 instead of own local values.
698 (sh_dump_tdep): Remove.
699 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
700 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
701
1c704f11
AC
7022003-09-15 Andrew Cagney <cagney@redhat.com>
703
704 * doublest.c (convert_floatformat_to_doublest): No longer need to
705 cast "exp_bias" to an int. Reverts 2002-12-04 change.
706
ac79b88b
DJ
7072003-09-15 Daniel Jacobowitz <drow@mvista.com>
708
709 * values.c (unpack_double): Call floatformat_is_valid.
710
1c671366
MK
7112003-09-15 Mark Kettenis <kettenis@gnu.org>
712
de5227fb
MK
713 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
714 ps_strings into a long.
715
1c671366
MK
716 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
717 _initialize_am64fbsd_nat.
718
a604369a
KB
7192003-09-15 Kevin Buettner <kevinb@redhat.com>
720
721 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
722 associated with DW_AT_ranges attribute is out of bounds.
723
b3cacbee
DL
7242003-09-15 David Lecomber <dsl@sources.redhat.com>
725
726 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
727
d0f37bb2
MC
7282003-09-14 Michael Chastain <mec@shout.net>
729
730 * config/m68k/nm-apollo68v.h: Delete.
731 * config/m68k/xm-apollo68v.h: Delete.
732
69517000
AC
7332003-09-14 Andrew Cagney <cagney@redhat.com>
734
735 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
736 * dcache.c: Update copyrights and descriptions.
737 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
738
ef8b349d
AC
7392003-09-14 Andrew Cagney <cagney@redhat.com>
740
741 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
742 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
743
52f0bd74
AC
7442003-09-14 Andrew Cagney <cagney@redhat.com>
745
746 * alpha-nat.c: Remove some occurances of "register".
747 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
748 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
749 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
750 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
751 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
752 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
753 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
754 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
755 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
756 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
757 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
758 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
759 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
760 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
761 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
762 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
763 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
764 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
765 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
766 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
767 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
768 * values.c, vax-tdep.c, xcoffread.c: Ditto.
769
4a4b3fed
AC
7702003-09-13 Andrew Cagney <cagney@redhat.com>
771
772 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
773 * ppc-tdep.h (struct regcache): Declare opaque.
774 * objfiles.h (struct objfile_data): Declare opaque.
775 * cp-support.h (struct objfile): Declare opaque.
776 * linux-nat.h (target_waitstatus): Declare opaque.
777
2110b94f
MK
7782003-09-14 Mark Kettenis <kettenis@gnu.org>
779
1c671366
MK
780 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
781 (stabs_argument_has_addr): New architecture method.
782 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
783 * arch-utils.c: Include "buildsym.h".
784 (default_stabs_argument_has_addr): New function.
785 * stabsread.c (define_symbol): Use stabs_argument_has_addr
786 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
787
2110b94f
MK
788 * cris-tdep.c (cris_gdbarch_init): Set
789 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
790 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
791 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
792 * mips-tdep.c (mips_gdbarch_init): Likewise.
793 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
794 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
795
48436ce6
AC
7962003-09-13 Andrew Cagney <cagney@redhat.com>
797
798 * values.c (using_struct_return): Delete "function" and "funcaddr"
799 parameters.
800 * value.h (using_struct_return): Update declaration.
801 * infcmd.c (finish_command_continuation): Update.
802 (finish_command): Update.
803 * infcall.c (call_function_by_hand): Update.
804 * eval.c (evaluate_subexp_standard): Update.
805
403d9909
CF
8062003-09-13 Christopher Faylor <cgf@redhat.com>
807
808 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
809 SSE registers since gdb will not operate correctly without this.
810 Restore include file ordering munged in previous change.
811 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
812
ebf7d56b
MK
8132003-09-13 Mark Kettenis <kettenis@gnu.org>
814
8e823e25
MK
815 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
816 REG_STRUCT_HAS_ADDR.
817 * gdbarch.c, gdbarch.h: Updated.
818 * infcall.c (call_function_by_hand): Update.
819 * stabsread.c (define_symbol): Updated.
820
ebf7d56b
MK
821 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
822
d3f13f72
CF
8232003-09-12 Christopher Faylor <cgf@redhat.com>
824
825 * win32-nat.c: Reorganize so that defines used by target headers are
826 actually defined by the system headers.
827 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
828 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
829
14f75137
JB
8302003-09-12 Jim Blandy <jimb@redhat.com>
831
d646061f
JB
832 * dbxread.c (read_dbx_symtab): Don't report an internal error if
833 the file has no .data, .bss, or .rodata sections. Instead wait
834 until we see a variable alleged to live in one of those sections.
835
2a13f9bc
JB
836 * dbxread.c (read_dbx_symtab): If we have no .data section and no
837 .bss section, presume that any variables we find live in the
838 .rodata section.
839
4f49b26b
JB
840 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
841 offsets for global and static variables.
842
14f75137
JB
843 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
844 symbol types are, by definition, in the .data section, so it is
845 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
846 If there is no .data section, there should be no N_DATA or N_DATA
847 | N_EXT symbols.
848
212c460c
MK
8492003-09-12 Mark Kettenis <kettenis@gnu.org>
850
851 * amd64fbsd-tdep.c: Fix sigtramp recognition.
852 (amd64fbsd_sigcontext_addr): Rewrite.
853 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
854 with correct values.
855 (amd64fbsd_sc_reg_offset): Initialize with correct values.
856 (amd64fbsd_init_abi): Fix typo.
857
68856ea3
AC
8582003-09-12 Andrew Cagney <cagney@redhat.com>
859
860 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
861 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
862
627b3ba2
AC
8632003-09-12 Andrew Cagney <cagney@redhat.com>
864
865 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
866 "entry_file_highpc". Update comments.
867 * defs.h (deprecated_inside_entry_file): Rename
868 "inside_entry_file".
869 * blockframe.c (deprecated_inside_entry_file): Rename
870 "inside_entry_file".
871 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
872 * vax-tdep.c (vax_frame_chain): Update.
873 * sh64-tdep.c (sh64_frame_chain): Update.
874 * sh-tdep.c (sh_frame_chain): Update.
875 * rs6000-tdep.c (rs6000_frame_chain): Update.
876 * ns32k-tdep.c (ns32k_frame_chain): Update.
877 * mips-tdep.c (mips_frame_chain): Update.
878 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
879 * m32r-tdep.c (m32r_frame_this_id): Update.
880 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
881 * frv-tdep.c (frv_frame_this_id): Update.
882 * d10v-tdep.c (d10v_frame_this_id): Update.
883 * cris-tdep.c (cris_frame_chain): Update.
884 * blockframe.c (legacy_frame_chain_valid): Update.
885 * avr-tdep.c (avr_frame_this_id): Update.
886 * arm-tdep.c (arm_prologue_this_id): Update.
887 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
888 * objfiles.c (objfile_relocate): Update.
889 * mipsread.c (mipscoff_symfile_read): Update.
890 (mipscoff_symfile_read): Update.
891 * mdebugread.c (parse_partial_symbols): Update.
892 * dwarfread.c (read_file_scope): Update.
893 * dwarf2read.c (read_file_scope): Update.
894 * dbxread.c (read_dbx_symtab): Update.
895 (read_dbx_symtab): Update.
896 * coffread.c (complete_symtab): Update.
897
b0abbc58
JJ
8982003-09-12 Jeff Johnston <jjohnstn@redhat.com>
899
900 * top.c (quit_target): New static helper function.
901 (quit_force): Moved code to quit_target(). Call quit_target()
902 via catch_errors() to catch errors during quit.
903
a1632d59
DC
9042003-09-11 David Carlton <carlton@kealia.com>
905
906 * buildsym.c (finish_block): Use allocate_block to allocate the
907 block.
908 * mdebugread.c (new_block): Add FIXME.
909
5c4e30ca
DC
9102003-09-11 David Carlton <carlton@kealia.com>
911
912 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
913 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
914 (recursive_dump_type): Ditto.
915 * printcmd.c (print_formatted): Ditto.
916 * typeprint.c (print_type_scalar): Ditto.
917 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
918 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
919 * cp-support.h: Declare cp_check_possible_namespace_symbols,
920 maint_cplus_cmd_list.
921 * cp-support.c: Make maint_cplus_cmd_list extern.
922 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
923 command.h.
924 (lookup_symbol_file): Look in possible namespace blocks when
925 appropriate.
926 (initialize_namespace_symtab): New.
927 (get_possible_namespace_block, free_namespace_block)
928 (check_possible_namespace_symbols)
929 (check_possible_namespace_symbols_loop)
930 (check_one_possible_namespace_symbol)
931 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
932 (_initialize_cp_namespace): Ditto.
933 * block.h: Declare allocate_block.
934 * block.c (allocate_block): New.
935 * jv-lang.c (get_java_class_symtab): Allocate blocks via
936 allocate_block.
937 * symfile.h: Update declaration of add_psymbol_to_list.
938 * symfile.c (add_psymbol_to_list): Return the partial symbol in
939 question.
940 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
941 scan_partial_symbols_call.
942 (scan_partial_symbols): Add NAMESPACE argument; update calls to
943 helper functions.
944 (add_partial_symbol): If necessary, scan mangled names for names
945 of namespaces.
946 (add_partial_namespace): Add NAMESPACE argument; generate partial
947 symbols associated to namespaces.
948 (add_partial_enumeration): Add NAMESPACE argument.
949 (new_symbol): Allow namespace syms.
950 (read_namespace): Generate namespace syms.
951 * objfiles.h: Add opaque declaration of struct symtab.
952 (struct objfile): Add cp_namespace_symtab member.
953 * objfiles.c (allocate_objfile): Set
954 objfile->cp_namespace_symtab.
955 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
956 dictionary_h, command_h.
957
33a7c2fc
AC
9582003-09-11 Andrew Cagney <cagney@redhat.com>
959
960 * rs6000-tdep.c (rs6000_push_dummy_call): Use
961 regcache_raw_write_signed to set SP_REGNUM, move the operation to
962 near the function's end.
963 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
964 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
965 regcache_raw_write_signed to set SP_REGNUM.
966
63cd24fe
EZ
9672003-09-11 Elena Zannoni <ezannoni@redhat.com>
968
969 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
970 orig_addrs is set up properly.
971
f27dd7fd
AC
9722003-09-11 Andrew Cagney <cagney@redhat.com>
973
974 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
975 * gdbarch.h, gdbarch.c: Re-generate.
976 * infcall.c (call_function_by_hand): Update.
977 * hppa-tdep.c (hppa_push_arguments): Update.
978 * ada-lang.c (place_on_stack): Update.
979 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
980 * sparc-tdep.c (sparc_gdbarch_init): Update.
981 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
982 * hppa-tdep.c (hppa_gdbarch_init): Update.
983 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
984 stack_align.
985
f630a401
DJ
9862003-09-11 Daniel Jacobowitz <drow@mvista.com>
987
988 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
989 register do need a frame.
990
0ddabb4c
AC
9912003-09-11 Andrew Cagney <cagney@redhat.com>
992
993 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
994 buildable since GDB 5.0.
995 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
996 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
997 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
998 * irix4-nat.c: Delete file.
999 * config/mips/irix4.mh: Delete file.
1000 * config/mips/irix3.mh: Delete file.
1001 * config/mips/irix3.mt: Delete file.
1002 * config/mips/tm-irix3.h: Delete file.
1003 * config/mips/nm-irix3.h: Delete file.
1004 * config/mips/xm-irix3.h: Delete file.
1005 * config/mips/nm-irix4.h: Delete file.
1006 * config/mips/xm-irix4.h: Delete file.
1007 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1008
fde2cceb
JB
10092003-09-10 J. Brobecker <brobecker@gnat.com>
1010
1011 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1012 * Makefile.in (hppa-tdep.o): Update dependencies.
1013
66f667f5
JW
10142003-09-10 James E Wilson <wilson@specifixinc.com>
1015
ef5fd69f
JW
1016 * MAINTAINERS: Change my e-mail address. Move to paper trail
1017 section.
66f667f5 1018
53e8aaea
KB
10192003-09-10 Kevin Buettner <kevinb@redhat.com>
1020
1021 * MAINTAINERS (frv): New ISA entry.
1022
dcc6aaff
KB
10232003-09-10 Kevin Buettner <kevinb@redhat.com>
1024
1025 * frv-tdep.c (dis-asm.h): Include.
1026 * Makefile.in (frv-tdep.o): Update dependencies.
1027
932644f0
JJ
10282003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1029
1030 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1031 Fix typo for high range of floating registers.
1032
91c24f0a
DC
10332003-09-09 David Carlton <carlton@kealia.com>
1034
1035 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1036 highpc initialization here out of scan_partial_symbols.
1037 (scan_partial_symbols): Restructure into a recursive version,
1038 calling add_partial_namespace and add_partial_enumeration when
1039 appropriate.
1040 (add_partial_namespace): New.
1041 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1042
c9263853
AC
10432003-09-09 Andrew Cagney <cagney@redhat.com>
1044
e56a0ecc
AC
1045 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1046 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1047 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1048 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1049
794a477a
AC
1050 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1051 (rs6000_push_dummy_call): Set the "TOC" register.
1052
c9263853
AC
1053 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1054 methods "max_register_raw_size", "max_register_virtual_size" or
1055 "register_virtual_size".
1056
afa7d0b2
ILT
10572003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1058
1059 * MAINTAINERS: Update my e-mail address.
1060
7a41266b
AC
10612003-09-09 Andrew Cagney <cagney@redhat.com>
1062
1063 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1064 (rs6000_push_dummy_call): Store the struct return address.
1065 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1066
77b2b6d4
AC
10672003-09-09 Andrew Cagney <cagney@redhat.com>
1068
1069 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1070 "ppc_sysv_abi_push_arguments".
1071 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1072 "ppc_sysv_abi_push_arguments".
1073 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1074 instead of "push_arguments".
1075 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1076
e8a7b686
AC
10772003-09-09 Andrew Cagney <cagney@redhat.com>
1078
1079 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1080 instead of CALL_DUMMY_ADDRESS.
1081
f86f5ca3
PH
10822003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1083
1084 * p-lang.c: Eliminate "register".
1085 * c-lang.c: Ditto.
1086 * expprint.c: Ditto.
1087 * f-lang.c: Ditto.
1088 * jv-lang.c: Ditto.
1089 * language.c: Ditto.
1090 * m2-lang.c: Ditto.
1091 * parse.c: Ditto.
1092 * scm-lang.c: Ditto.
1093 * objc-lang.c: Ditto.
1094
83ee270e
NC
10952003-09-09 Nick Clifton <nickc@redhat.com>
1096
1097 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1098
a89aa300
AC
10992003-09-04 Andrew Cagney <cagney@redhat.com>
1100
1101 * avr-tdep.c: Include "dis-asm.h".
1102 * cris-tdep.c: Include "dis-asm.h".
1103 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1104 instead of corresponding typedef.
1105 * h8300-tdep.c: Include "dis-asm.h".
1106 * ia64-tdep.c: Include "dis-asm.h".
1107 * i386-tdep.c: Include "dis-asm.h".
1108 (i386_print_insn): Use "struct disassemble_info" instead of
1109 corresponding typedef.
1110 * m68k-tdep.c: Include "dis-asm.h".
1111 * mcore-tdep.c: Include "dis-asm.h".
1112 * mips-tdep.c: Include "dis-asm.h".
1113 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1114 instead of corresponding typedef.
1115 * ns32k-tdep.c: Include "dis-asm.h".
1116 * s390-tdep.c: Include "dis-asm.h".
1117 * sparc-tdep.c: Include "dis-asm.h".
1118 * vax-tdep.c: Include "dis-asm.h".
1119 * v850-tdep.c: Include "dis-asm.h".
1120 * mn10300-tdep.c: Include "dis-asm.h".
1121 * rs6000-tdep.c: Include "dis-asm.h".
1122 * xstormy16-tdep.c: Include "dis-asm.h".
1123 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1124 print_insn_xstormy16.
1125 * Makefile.in (v850-tdep.o): Update dependencies.
1126 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1127 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1128 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1129 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1130 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1131 (gdbarch_h): Remove $(dis_asm_h).
1132 * disasm.c: Include "dis-asm.h".
1133 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1134 corresponding typedef.
1135 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1136 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1137 * gdbarch.sh: Do not include "dis-asm.h".
1138 (struct disassemble_info): Declare opaque.
1139 (TARGET_PRINT_INSN): Update declaration.
1140 * gdbarch.h, gdbarch.c: Re-generate.
1141
88a82a65
AC
11422003-09-08 Andrew Cagney <cagney@redhat.com>
1143
1144 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1145 CALL_DUMMY_ADDRESS, change to a predicate.
1146 * gdbarch.h, gdbarch.c: Re-generate.
1147 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1148 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1149 * infcall.c (call_function_by_hand): Ditto.
1150 * sparc-tdep.c (sparc_push_return_address): Ditto.
1151 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1152 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1153 CALL_DUMMY_ADDRESS with entry_point_address.
1154 * v850-tdep.c (v850_push_return_address): Ditto.
1155 * s390-tdep.c (s390_push_return_address): Ditto.
1156 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1157 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1158 * mcore-tdep.c (mcore_push_return_address): Ditto.
1159 * cris-tdep.c (cris_push_return_address): Ditto.
1160 * arm-tdep.c (arm_push_return_address): Ditto.
1161
3e2c4033
AC
11622003-09-08 Andrew Cagney <cagney@redhat.com>
1163
1164 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1165 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1166 and REG_UNMODIFIED to REG_SAME_VALUE.
1167 (execute_cfa_program): Update.
1168 (dwarf2_frame_cache): Update. Initialize table to
1169 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1170 location.
1171 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1172
39efb398
AC
11732003-09-08 Andrew Cagney <cagney@redhat.com>
1174
1175 * gnu-nat.c: Remove "inline" function attribute.
1176 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1177
f5cb5aca
KB
11782003-09-08 Kevin Buettner <kevinb@redhat.com>
1179
1180 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1181 target.
1182
1cb761c7
KB
11832003-09-08 Kevin Buettner <kevinb@redhat.com>
1184
1185 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1186 (frame_extra_info): Rename this struct to frv_unwind_cache.
1187 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1188 Add fields ``prev_sp'' and ``base''.
1189 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1190 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1191 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1192 Delete.
1193 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1194 Revise all callers. Fill in the unwind cache argument and make
1195 other adjustments to account for new frame mechanisms.
1196 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1197 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1198 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1199 (frv_frame_unwind, frv_frame_base): New structs.
1200 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1201 additional arguments expected by this method and adjust function
1202 body accordingly.
1203 (frv_gdbarch_init): Remove calls to the following functions:
1204 set_gdbarch_deprecated_init_frame_pc(),
1205 set_gdbarch_deprecated_saved_pc_after_call(),
1206 set_gdbarch_deprecated_frame_chain(),
1207 set_gdbarch_deprecated_frame_saved_pc(),
1208 set_gdbarch_deprecated_frame_init_saved_regs(),
1209 set_gdbarch_deprecated_push_arguments(),
1210 set_gdbarch_deprecated_push_return_address(),
1211 set_gdbarch_deprecated_pop_frame(),
1212 set_gdbarch_deprecated_call_dummy_words(),
1213 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1214 set_gdbarch_deprecated_init_extra_frame_info(),
1215 set_gdbarch_deprecated_dummy_write_sp(), and
1216 set_gdbarch_deprecated_pc_in_call_dummy().
1217 Add calls to the following functions:
1218 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1219 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1220 frame_base_set_default().
1221 * Makefile.in (frv-tdep.o): Update dependencies.
1222
68f6cf99
MK
12232003-09-09 Mark Kettenis <kettenis@gnu.org>
1224
1225 * dwarf2-frame.c (read_encoded_value): Add support for
1226 DW_EH_PE_aligned encoding.
1227
73b65bb0
DJ
12282003-09-08 Daniel Jacobowitz <drow@mvista.com>
1229
1230 * infrun.c (normal_stop): Don't print a message if the inferior
1231 has exited.
1232
7c8a5605
JB
12332003-09-08 Jim Blandy <jimb@redhat.com>
1234
1235 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1236 * dbxread.c: #include "gdb_assert.h".
1237 (read_dbx_symtab): If the objfile has no .data section, use the
1238 section index for the .bss section instead.
1239
7dd88986
DJ
12402003-09-08 Daniel Jacobowitz <drow@mvista.com>
1241
1242 * frame.c (deprecated_safe_get_selected_frame): New function.
1243 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1244 * findvar.c (read_var_value): Call it.
1245
55ff77ac
CV
12462003-09-08 Corinna Vinschen <vinschen@redhat.com>
1247
1248 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1249 (sh64-tdep.o): Add dependencies.
1250 * configure.tgt: Add FIXME to sh-*-linux*.
1251 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1252 (sh_gdbarch_init): Always set correct sh_show_regs function
1253 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1254 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1255 * sh64-tdep.c: New file, containing all sh64 related code from
1256 sh-tdep.c.
1257 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1258 * config/sh/linux.mt (TDEPFILES): Ditto.
1259 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1260 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1261 * config/sh/wince.mt (TDEPFILES): Ditto.
1262
bfb39158
DJ
12632003-09-07 Daniel Jacobowitz <drow@mvista.com>
1264
1265 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1266 (stop_wait_callback): Handle !lp->signalled also.
1267 (lin_lwp_has_pending, flush_callback): New functions.
1268 (lin_lwp_wait): Call flush_callback.
1269 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1270 (linux_proc_pending_signals): New function.
1271 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1272
9407de8e
DJ
12732003-09-07 Daniel Jacobowitz <drow@mvista.com>
1274
1275 From Nick Kelsey <nickk@ubicom.com>:
1276 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1277 when the stop PC is at the beginning of a function also.
1278
2ef47cd0
DJ
12792003-09-06 Daniel Jacobowitz <drow@mvista.com>
1280
1281 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1282 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1283
6f4492c8
MK
12842003-09-06 Mark Kettenis <kettenis@gnu.org>
1285
1286 * sol-thread.c: Include "gdb_string.h".
1287
d3420b2f
MK
12882003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1289
1290 * gcore.c: Reorder include files in alphabetical order. Include
1291 "gdb_assert.h". Various coding style fixes.
1292 (derive_stack_segment, derive_heap_segment): Replace check for
1293 non-null BOTTOM and TOP with gdb_assert.
1294 (derive_heap_segment): Replace check for successful creation of
1295 ZERO with gdb_assert.
1296 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1297
5220ea4c
AC
12982003-09-04 Andrew Cagney <cagney@redhat.com>
1299
1300 * thread-db.c (verbose_dlsym): New function.
1301 (thread_db_load): Use verbose_dlsym
1302 (thread_db_new_objfile): Print that libthread_db was loaded, and
1303 that thread debugging was enabled.
1304
6e8c2c06
AC
13052003-09-04 Andrew Cagney <cagney@redhat.com>
1306
1307 * configure.tgt: Add "mips64*-*-*" target. Delete
1308 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1309 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1310 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1311 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1312 mips*-sony-*, and mips64*-*-elf* targets.
1313 * config/mips/embedl.mt: Delete file.
1314 * config/mips/embedl64.mt: Delete file.
1315 * config/mips/mips.mt: Delete file.
1316 * config/mips/mips64.mt: Delete file.
1317 * config/mips/tm-embed.h: Delete file.
1318 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1319 * config/mips/embed64.mt: Delete out-of-date comment.
1320
3a3bc038
AC
13212003-09-04 Andrew Cagney <cagney@redhat.com>
1322
1323 * hppa-tdep.c (hppa_gdbarch_init): Set
1324 "have_nonsteppable_watchpoint".
1325 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1326 * mips-tdep.c (mips_dump_tdep): Do not print
1327 HAVE_NONSTEPPABLE_WATCHPOINT.
1328 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1329 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1330 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1331 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1332
a957e642
CV
13332003-09-04 Corinna Vinschen <vinschen@redhat.com>
1334
1335 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1336 unused code. Add comment.
1337
a6fbcf2f
CV
13382003-09-04 Corinna Vinschen <vinschen@redhat.com>
1339
1340 * breakpoint.c (watchpoint_check): Check for pc being in an
1341 epilogue if watchpoint frame couldn't be found.
1342
c14a44d5
AC
13432003-09-04 Andrew Cagney <cagney@redhat.com>
1344
1345 * Makefile.in: Re-generate all dependencies.
1346
f6c40618
AC
13472003-09-03 Andrew Cagney <cagney@redhat.com>
1348
1349 * arch-utils.h (legacy_print_insn): Delete declaration.
1350 * arch-utils.c (legacy_print_insn): Delete function.
1351 * disasm.c (deprecated_tm_print_insn_info): Delete.
1352 (_initialize_disasm): Delete function, contained code initializing
1353 deprecated_tm_print_insn_info.
1354 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1355 (deprecated_tm_print_insn_info): Delete.
1356 (TARGET_PRINT_INSN): Do not provide a default.
1357 * gdbarch.h, gdbarch.c: Re-generate.
1358
242e8be5
AC
13592003-09-03 Andrew Cagney <cagney@redhat.com>
1360
1361 * disasm.c (fprintf_disasm): New function.
1362 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1363 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1364 reverts 2003-08-14 change.
1365 (_initialize_disasm): Call "init_disassemble_info", instead of
1366 INIT_DISASSEMBLE_INFO_NO_ARCH.
1367
3ffc3dda
MS
13682003-09-03 Michael Snyder <msnyder@redhat.com>
1369
1370 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1371
52d16ba8
AC
13722003-09-03 Andrew Cagney <cagney@redhat.com>
1373
1374 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1375 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1376 * symfile.c (syms_from_objfile): Update.
1377 (reread_symbols): `Update
1378 * exec.c (exec_file_attach): Update.
1379 (exec_file_attach): Update.
1380 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1381 2003-08-29 change.
1382 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1383
eb5492fa
DJ
13842003-09-03 Daniel Jacobowitz <drow@mvista.com>
1385
1386 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1387 trad-frame.h.
1388 (arm_get_cache): Delete macro.
1389 (struct arm_prologue_cache): Update comments. Make saved_regs into
1390 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1391 to prev_sp.
1392 (thumb_scan_prologue): Update for cache changes. Don't call
1393 DEPRECATED_PC_IN_CALL_DUMMY.
1394 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1395 argument and use it in desperation search for our prologue. Do not
1396 search past the specified PC.
1397 (arm_make_prologue_cache): Simplify.
1398
1399 (arm_prologue_this_id, arm_prologue_prev_register)
1400 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1401 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1402 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1403 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1404 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1405
1406 (arm_frame_chain_valid, arm_find_callers_reg)
1407 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1408 (arm_pop_frame): Delete obsolete methods.
1409 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1410
1411 (arm_gdbarch_init): Update for new frame methods. Register prologue
1412 and sigtramp unwinders. Set the default frame base method.
1413
1414 * Makefile.in (arm-tdep.o): Update dependencies.
1415 * varobj.c (find_frame_addr_in_frame_chain): Call
1416 get_frame_base_address.
1417 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1418
24de872b
DJ
14192003-09-03 Daniel Jacobowitz <drow@mvista.com>
1420
1421 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1422 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1423 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1424 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1425 Take NEXT_FRAME and CACHE arguments. Call
1426 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1427 Set unwound_pc in CACHE instead of modifying the frame argument.
1428 Don't bother checking the frame type when looking for sigtramp
1429 frames.
1430 (arm_make_prologue_cache, arm_frame_chain)
1431 (arm_init_extra_frame_info): New functions.
1432
9b8d791a
DJ
14332003-09-03 Daniel Jacobowitz <drow@mvista.com>
1434
1435 * arm-tdep.c (arm_get_cache): Define.
1436 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1437 unwound_sp, unwound_pc, and saved_regs.
1438 (thumb_scan_prologue): Take a cache instead of the frame.
1439 (arm_scan_prologue): Likewise.
1440 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1441 instead of a temporary frame.
1442 (arm_init_extra_frame_info): Allocate and use a cache.
1443 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1444
7ee3275f
AC
14452003-09-03 Andrew Cagney <cagney@redhat.com>
1446
1447 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1448 * config/mips/wince.mt (TM_CLIBS): Ditto.
1449 * config/sh/wince.mt (TM_CLIBS): Ditto.
1450 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1451 * config/sparc/sp64.mt (CC): Delete.
1452
57b29be7
AC
14532003-09-03 Andrew Cagney <cagney@redhat.com>
1454
1455 * defs.h: Do not include "arch-utils.h".
1456 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1457 GDB_MULTI_ARCH_PURE.
1458 * configure.in (GDB_MULTI_ARCH): Do not define.
1459 * configure, config.in: Regenerate.
1460 * configure.tgt: Do not set variable "gdb_multi_arch".
1461 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1462 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1463 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1464 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1465 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1466 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1467 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1468 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1469 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1470 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1471 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1472 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1473 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1474 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1475 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1476 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1477 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1478 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1479
12e035e2
MC
14802003-08-30 Michael Chastain <mec@shout.net>
1481
1482 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1483 * config/m68k/nm-hp300hpux.h: Delete.
1484 * config/m68k/tm-hp300hpux.h: Delete.
1485 * config/m68k/xm-hp300hpux.h: Delete.
1486 * config/m68k/xm-hp300bsd.h: Delete.
1487 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1488 tm-hp300hpux.h, xm-hp300hpux.h.
1489 * somsolib.c: Remove comment about hp300 shared libraries.
1490
bda34dc2
MK
14912003-08-31 Mark Kettenis <kettenis@gnu.org>
1492
5bca7895
MK
1493 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1494 Only define PTRACE_GET_THREAD_AREA is not already defined.
1495 Various style fixes in code and comments and some additional
1496 spelling fixes in comments. Move after functions dealing with
1497 debug registers.
1498 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1499 Fix coding-style.
1500
bda34dc2
MK
1501 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1502 frame_unwind_register_unsigned instead of
1503 frame_unwind_unsigned_register.
1504
c890192f
MK
15052003-08-30 Mark Kettenis <kettenis@gnu.org>
1506
1507 * configure.in: Search for gethostbyname in libnsl.
1508 * configure: Regenerated.
1509
60fac5b8
MK
15102003-08-29 Mark Kettenis <kettenis@gnu.org>
1511
e294916c
MK
1512 * configure.in: Remove redundant AC_MSG_RESULT in check for
1513 uintptr_t in stdint.h.
1514 * configure: Regenerated.
1515
c40d267a
MK
1516 * amd64-nat.h (struct regcache): Add opaque declaration.
1517
60fac5b8
MK
1518 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1519 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1520 Change "register array" to "register cache" in comments.
1521 (x86_64_linux_gregset64_reg_offset): New variable.
1522 (GETREGS_SUPPLIES): Remove macro.
1523 (supply_gregset): Call amd64_supply_native_gregset instead of
1524 x86_64_linux_supply_gregset.
1525 (fill_gregset): Rename `regno' to `regnum'. Call
1526 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1527 (store_regs): Rename `regno' to `regnum'.
1528 (store_fpregs): Rename `regno' to `regnum'.
1529 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1530 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1531 Reorganize function a bit.
1532 (store_inferior_registers): Rename `regno' to `regnum'. Use
1533 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1534 Reorganize function a bit.
1535 (_initialize_x86_64_linux_nat): New function.
1536 * config/i386/x86-64linux.mh.
1537
546143b6
AC
15382003-08-29 Andrew Cagney <cagney@redhat.com>
1539
1540 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1541 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1542 (target_remove_watchpoint): Delete macro.
1543 (target_insert_watchpoint): Delete macro.
1544 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1545 (remote_mips_stopped_by_watchpoint): Delete declaration.
1546 (remote_mips_remove_watchpoint): Delete declaration.
1547 (remote_mips_set_watchpoint): Delete declaration.
1548 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1549 * remote-mips.c (_initialize_remote_mips): Set
1550 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1551 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1552 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1553 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1554 (mips_stopped_by_watchpoint): Rename
1555 remote_mips_stopped_by_watchpoint.
1556 (mips_can_hardware_watchpoint): Rename
1557 remote_mips_can_use_hardware_watchpoint, update function
1558 signature.
1559
7bace51b
MK
15602003-08-29 Mark Kettenis <kettenis@gnu.org>
1561
b0f5c6f2
MK
1562 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1563 USER_DS. We haven't given them a register number yet.
1564
2a6d284d
MK
1565 * amd64-nat.h: New file.
1566 * amd64-nat.c: New file.
1567 * amd64fbsd-nat.c: Include "amd64-nat.h".
1568 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1569 (amd64fbsd32_r_reg_offset): New variable.
1570 (supply_gregset): Simply call amd64_supply_native_gregset.
1571 (fill_gregset): Rename `regno' to `regnum'. Simply call
1572 amd64_collect_native_gregset.
1573 (fill_fpregset): Rename `regno' to `regnum'.
1574 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1575 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1576 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1577 `fpregset_t'. Call amd64_supply_native_gregset instead of
1578 supply_gregset. Call x86_64_supply_fxsave instead of
1579 supply_fpregset.
1580 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1581 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1582 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1583 `fpregset_t'. Call amd64_collect_native_gregset instead of
1584 fill_gregset. Call x86_64_collect_fxsave instead of
1585 fill_fpregset.
1586 (_initialize_am64fbsd_nat): Initialize
1587 amd64_native_gregset32_reg_offset and
1588 amd64_native_gregset64_reg_offset.
1589 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1590
a16d75cc
MK
1591 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1592 null pointer. Fix typo in comment.
1593
7bace51b
MK
1594 * regcache.c (supply_register): Reimplement to call
1595 regcache_raw_supply.
1596 (regcache_collect): Reimplement by calling regcache_raw_collect.
1597
9a661b68
MK
15982003-08-28 Mark Kettenis <kettenis@gnu.org>
1599
1600 * regcache.c (register_buffer): Consitify first argument.
1601 (regcache_raw_supply, regcache_raw_collect): New
1602 functions.
1603
e94cc8fa
DJ
16042003-08-28 Daniel Jacobowitz <drow@mvista.com>
1605
1606 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1607 by Nathan J. Williams.
1608
c64bd0ce
DJ
16092003-08-28 Daniel Jacobowitz <drow@mvista.com>
1610
1611 * lin-lwp.c (wait_lwp): New function, copied from
1612 stop_wait_callback. Clean up.
1613 (stop_wait_callback): Use wait_lwp.
1614
e5ab0dce
AC
16152003-08-28 Andrew Cagney <cagney@redhat.com>
1616
1617 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1618 flavour and disassembler options.
1619 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1620 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1621 deprecated_tm_print_insn_info.
1622
a788de9b
AC
16232003-08-27 Andrew Cagney <cagney@redhat.com>
1624
1625 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1626 Use target_read_memory.
1627 (s390_get_frame_info): Update. Do not reference
1628 deprecated_tm_print_insn_info.
1629 (s390_check_function_end, s390_is_sigreturn): Ditto.
1630
36482093
AC
16312003-08-27 Andrew Cagney <cagney@redhat.com>
1632
1633 * Makefile.in (cris-tdep.o): Update dependencies.
1634 * cris-tdep.c: Include "gdb_assert.h".
1635 (cris_gdbarch_init): Set print_insn.
1636 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1637 (cris_delayed_get_disassembler): Simplify, directly call the
1638 disassembler returned by cris_get_disassembler.
1639 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1640 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1641 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1642 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1643 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1644 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1645 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1646 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1647 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1648 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1649 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1650 (gdb_print_insn_sparc): Delete function.
1651 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1652 deprecated_tm_print_insn_info.
1653 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1654 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1655 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1656 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1657 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1658 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1659 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1660 (s390_gdbarch_init): Set print_insn.
1661
0285512f
AC
16622003-08-27 Andrew Cagney <cagney@redhat.com>
1663
1664 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1665 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1666 * infcall.c (call_function_by_hand): Convert the entry point
1667 address into a code address.
1668
cdcd5552
AC
16692003-08-27 Andrew Cagney <cagney@redhat.com>
1670
1671 * dsrec.c: Include "gdb_string.h".
1672 * Makefile.in (dsrec.o): Update dependencies.
1673
e85cddad
MC
16742003-08-27 Michael Chastain <mec@shout.net>
1675
1676 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1677
8bbfbb23
AC
16782003-08-27 Andrew Cagney <cagney@redhat.com>
1679
1680 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1681 (alpha_osf1_init_abi): Do not set call_dummy_address.
1682
ba058b66
DC
16832003-08-27 David Carlton <carlton@kealia.com>
1684
1685 From Randolph Chung <tausq@debian.org>:
1686 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1687 compiles with -Wformat-nonliteral -Werror.
1688
87f84c9d
JB
16892003-08-26 Jim Blandy <jimb@redhat.com>
1690
1691 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1692 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1693 bfd_lookup_symbol, since we only want symbols in code sections.
1694 (look_for_base): Pass zero as the SECT_FLAGS argument to
1695 bfd_lookup_symbol, since we're not concerned about which section
1696 the symbol is in.
1697
102d615a
JJ
16982003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1699
1700 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1701 we are frameless or the return address register is already known.
1702
cc7ad3ea
AC
17032003-08-26 Andrew Cagney <cagney@redhat.com>
1704
1705 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1706 in size. Add comments.
1707
af8b88dd
JJ
17082003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1709
1710 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1711 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1712
e0a4f5a1
JM
17132003-08-26 Jason Merrill <jason@redhat.com>
1714
1715 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1716 case out of #ifdef MIPS block.
1717
4ae9ee8e
DJ
17182003-08-25 Daniel Jacobowitz <drow@mvista.com>
1719
1720 PR java/1322
1721 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1722 available before calling SECT_OFF_TEXT.
3c164570 1723 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 1724
004d836a
JJ
17252003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1726
1727 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1728 bof, and nat0-nat127 as pseudo-registers.
1729 (ia64_frame_cache): New struct used to cache frame info.
1730 (ia64_register_reggroup_p): New routine used to override default
1731 register grouping so registers without names are still saved and
1732 restored.
1733 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1734 pseudo values.
1735 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1736 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1737 (ia64_alloc_frame_cache): New routine to create a new
1738 ia64_frame_cache.
1739 (examine_prologue): Change prototype to add next_frame pointer.
1740 Assume frameless until otherwise proven. Verify that the cfm for
1741 current frame matches the cfm that should occur for the prologues
1742 alloc insn and if equal, mark as not frameless. At end of routine,
1743 if not frameless, calculate registers for the previous frame and store
1744 in the cache, if a cache is provided.
1745 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1746 and pass 0 for next_frame.
1747 (ia64_store_return_value): Change to use convert_typed_floating()
1748 instead of calling ia64_convert_to_raw().
1749 (ia64_extract_return_value): Change to use convert_typed_floating()
1750 instead of calling ia64_convert_to_virtual().
1751 (ia64_frame_cache): New routine to support new frame model.
1752 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1753 (ia64_frame_sniffer): Ditto.
1754 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1755 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1756 (ia64_sigtramp_frame_prev_register): Ditto.
1757 (ia64_sigtramp_frame_sniffer): Ditto.
1758 (ia64_frame_base_address): Ditto.
1759 (ia64_extract_struct_value_address): Change to issue error message.
1760 (ia64_frame_align): New routine to align sp.
1761 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1762 (ia64_push_arguments): Removed. Logic moved to
1763 ia64_push_dummy_call().
1764 (ia64_push_return_address): Ditto.
1765 (ia64_unwind_dummy_id): New function.
1766 (ia64_unwind_pc): Ditto.
1767 (ia64_convert_register_p): Ditto.
1768 (ia64_register_to_value): Ditto.
1769 (ia64_value_to_register): Ditto.
1770 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1771 (ia64_register_byte, ia64_register_raw_size): Ditto.
1772 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1773 (ia64_saved_pc_after_call): Ditto.
1774 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1775 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1776 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1777 (ia64_register_convert_to_raw): Ditto.
1778 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1779 (ia64_init_extra_frame_info): Ditto.
1780 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1781 (ia64_gdbarch_init): Remove registering of deprecated functions that
1782 are no longer used. Add registration of new gdbarch functions.
1783 Remove registering deprecated_write_sp. Replace
1784 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1785 Delete set_gdbarch_deprecated_register_convertible(),
1786 set_gdbarch_deprecated_register_convert_to_virtual(), and
1787 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1788 set_gdbarch_deprecated_register_size(),
1789 set_gdbarch_deprecated_register_bytes(),
1790 set_gdbarch_pcregnum(),
1791 set_gdbarch_deprecated_register_byte(),
1792 set_gdbarch_deprecated_register_raw_size(),
1793 set_gdbarch_deprecated_max_register_raw_size(),
1794 set_gdbarch_deprecated_register_virtual_size(),
1795 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1796 Replace set_gdbarch_deprecated_extract_return_value() with
1797 set_gdbarch_extract_return_value(). Remove calls to:
1798 set_gdbarch_deprecated_saved_pc_after_call();
1799 set_gdbarch_deprecated_frame_chain(),
1800 set_gdbarch_deprecated_frame_saved_pc(),
1801 set_gdbarch_deprecated_frame_init_saved_regs(),
1802 set_gdbarch_deprecated_get_saved_register(),
1803 set_gdbarch_deprecated_call_dummy_words(),
1804 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1805 set_gdbarch_deprecated_init_extra_frame_info(),
1806 set_gdbarch_deprecated_frame_args_address(),
1807 set_gdbarch_deprecated_frame_locals_address(),
1808 and set_gdbarch_deprecated_dummy_write_sp().
1809 Add set_gdbarch_convert_register_p(),
1810 set_gdbarch_register_to_value(),
1811 set_gdbarch_value_to_register(),
1812 set_gdbarch_push_dummy_call(),
1813 set_gdbarch_frame_align(),
1814 set_gdbarch_unwind_dummy_id(),
1815 set_gdbarch_unwind_pc(),
1816 frame_unwind_append_sniffer(),
1817 frame_unwind_append_sniffer(),
1818 and frame_base_set_default().
1819
aede7613
CD
18202003-08-25 Chris Demetriou <cgd@broadcom.com>
1821
1822 * configure.tgt: Document need for special "mipsisa64" handling.
1823 (mipsisa64*-*-linux64): Handle as target linux64.
1824 (mipsisa64*-*-*): Handle as target embed64.
1825
43c3a82e
MC
18262003-08-18 Michael Chastain <mec@shout.net>
1827
1828 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1829 objfile bug.
1830
6564f77d
MK
18312003-08-24 Mark Kettenis <kettenis@gnu.org>
1832
2de139ba
MK
1833 * i387-tdep.h: Update copyright date.
1834 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1835
6564f77d
MK
1836 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1837 CFLAGS games to reflect reality.
1838
42cf1509
AC
18392003-08-24 Andrew Cagney <cagney@redhat.com>
1840
1841 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1842 GDB_MULTI_ARCH is always non-zero.
1843 * osabi.c (_initialize_gdb_osabi): Ditto.
1844 (gdbarch_init_osabi): Ditto.
1845 * sparc-tdep.c: Ditto for #if code.
1846
0485f6ad
MK
18472003-08-23 Mark Kettenis <kettenis@gnu.org>
1848
1849 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1850 Update comments.
1851 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1852 comments.
1853 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1854 x86_64_supply_fxsave.
1855 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1856 x86_64_supply_fxsave.
1857 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1858 x86_64_supply_fxsave.
1859
c7716133
AJ
18602003-08-23 Andreas Jaeger <aj@suse.de>
1861
1862 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1863 i387_supply_fxsave.
1864
ed504bdf
MK
18652003-08-23 Mark Kettenis <kettenis@gnu.org>
1866
1867 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1868 i387_supply_register.
1869 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1870 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1871 i387_supply_fsave.
1872 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1873 i387_supply_fxsave.
1874 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1875 i387_supply_fsave.
1876 * i386bsd-nat.c (supply_fpregset): Adjust call to
1877 i387_supply_fsave.
1878 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1879 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1880 supply_fpregset.
1881 (store_inferior_registers): Remove extraneous whitespace. Call
1882 i387_fill_fsave instead of fill_fpregset.
1883 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1884 (supply_fpregset): Likewise.
1885 * i386v4-nat.c (supply_fpregset): Adjust call to
1886 i387_supply_fsave.
1887 * i386-interix-nat.c (supply_fpregset): Adjust call to
1888 i387_supply_fsave.
1889 * i386-linux-nat.c (supply_fpregset): Adjust call to
1890 i387_supply_fsave.
1891 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1892 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1893 i387supply_fsave and i387_supply_fxsave.
1894 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1895 Incorporate code from `i387_supply_register.
1896 (i387_supply_register): Remove.
1897 (i387_supply_fxsave): Add `regnum' argument.
1898 Update comments.
1899 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1900 prototype.
1901 (i387_supply_register): remove prototype.
1902 Update comments.
1903
4be5d520
MC
19042003-08-22 Michael Chastain <mec@shout.net>
1905
1906 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1907 Add lines for files in gdb/testsuite/gdb.cp/* that are
1908 still not 8.3 unique.
1909
7ed85d26
DJ
19102003-08-22 Daniel Jacobowitz <drow@mvista.com>
1911
1912 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1913 TYPE_VPTR_FIELDNO is valid.
1914
eb0d3137
MK
19152003-08-19 Mark Kettenis <kettenis@gnu.org>
1916
1917 * utils.c (set_width_command): Remove prototypes.
1918 (set_screen_size): New prototype.
1919 (init_page_info): Simplify by fetching the screen size from
1920 Readline. Call set_screen_size.
1921 (set_screen_size): New function.
1922 (set_width): Add missing whitespace in comment.
1923 (set_width_command): Call set_screen_size.
1924 (set_height_command): New function.
1925 (initialize_utils): Fix formatting. Make "set height" command
1926 call set_height_command. Remove redundant code that turns off
1927 pagination if output isn't a terminal. Remove redundant call to
1928 set_width_command.
1929
7e6d0ac8
MK
19302003-08-22 Mark Kettenis <kettenis@gnu.org>
1931
3567a8ea
MK
1932 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1933 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1934 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1935 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1936 `case' keyword.
1937 (sparc64_register_info): Give the reister with number
1938 SPARC64_STATE_REGNUM a name.
1939 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1940 %asi and %ccr.
1941 (sparc64_push_dummy_call): Take BIAS into account when checking
1942 stcak alignment.
1943 (sparc_software_single_step): Remove assertions that check whether
1944 NPC and NNPC were zero.
1945 (sparc_supply_rwindow): Make public. Merge functionality with
1946 sparc64_supply_rwindow.
1947 (sparc_fill_rwindow): Make public. Merge functionality with
1948 sparc64_fill_rwindow.
1949 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1950 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1951 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1952 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1953 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1954
7e6d0ac8
MK
1955 * reggroups.c: Add whitespace after declarations of local
1956 variables in functions.
1957
72e5f484
MC
19582003-08-21 Michael Chastain <mec@shout.net>
1959
1960 * gdbtypes.h: Change array bound type from an int to enum.
1961
435ac228
AC
19622003-08-21 Andrew Cagney <cagney@redhat.com>
1963
1964 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1965 * config/sparc/tm-sparc.h: Ditto.
1966 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1967 unconditionally.
1968 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1969
0d0e1a63
MK
19702003-07-13 Mark Kettenis <kettenis@gnu.org>
1971
1972 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1973 (register_objfile_data, set_objfile_data, objfile_data): New
1974 prototypes.
1975 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1976 prototypes.
1977 (allocate_objfile): Call objfile_alloc_data.
1978 (free_objfile): Call objfile_free_data.
1979 (struct objfile_data): New.
1980 (struct objfile_data_registration): New.
1981 (struct objfile_data_registry): New.
1982 (objfile_data_registry): New variable.
1983 (register_objfile_data): New function.
1984 (objfile_alloc_data, objfile_free_data): New functions.
1985 (set_objfile_data, objfile_data): New functions.
1986 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1987 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1988 (_initialize_dwarf2_frame): New function and prototype.
1989
d90cf509
AC
19902003-08-21 Andrew Cagney <cagney@redhat.com>
1991
1992 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1993 a specific architecture.
1994 * arch-utils.h (set_architecture_from_arch_mach): Delete
1995 declaration.
1996 (target_architecture_hook): Delete declaration.
1997 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1998 (default_float_format): Assume GDB_MULTI_ARCH.
1999 (default_double_format): Assume GDB_MULTI_ARCH.
2000 (set_endian_from_file): Delete function.
2001 (arch_ok): Delete function.
2002 (set_arch): Delete function.
2003 (set_architecture_from_arch_mach): Delete function.
2004 (set_architecture_from_file): Delete function.
2005 (set_architecture): Assume GDB_MULTI_ARCH.
2006 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2007
8b39fe56
MK
20082003-08-21 Mark Kettenis <kettenis@gnu.org>
2009
2010 Rewrite FreeBSD/sparc64 native configuration.
2011 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2012 * sparc64fbsd-nat.c: New file.
2013 * sparc64fbsd-tdep.c: New file.
2014 * sparc64-tdep.c sparc64-tdep.h: New files.
2015 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2016 sparc64fbsd-tdep.o): New dependencies.
2017 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2018 and sparc64fbsd-tdep.c.
2019 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2020 * config/sparc/fbsd.mh: Remove copyright notice.
2021 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2022 sparcbsd-nat.o.
2023 * config/sparc/fbsd.mt: Remove copyright notice.
2024 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2025 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2026 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2027 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2028 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2029 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2030 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2031 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2032 "sparc/tm-sp64.h".
2033 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2034 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2035
a7f19c79
MC
20362003-08-21 Michael Chastain <mec@shout.net>
2037
2038 * symtab.h: Add doco on the space critical structures and
2039 some measurements of space usage.
2040
da08ea5b
MS
20412003-08-21 Michael Snyder <msnyder@redhat.com>
2042
2043 * tracepoint.c (trace_dump_command): Trace break address
2044 is subject to DECR_PC_AFTER_BREAK.
2045 (set_traceframe_context): Make "trace_line" an int.
2046 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2047
6df2bf50
MS
20482003-08-20 Michael Snyder <msnyder@redhat.com>
2049
2050 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2051 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2052 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2053 argument passing.
2054 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2055 functions, replace sh_push_dummy_call.
2056 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2057
0955bbf0
MC
20582003-08-20 Michael Chastain <mec@shout.net>
2059
2060 * gdbtypes.h (struct main_type): Rearrange to save space.
2061
260a4188
MS
20622003-08-20 Michael Snyder <msnyder@redhat.com>
2063
2064 * trad-frame.c: Comment typo fix.
2065
8baa6f92
KB
20662003-08-20 Michael Snyder <msnyder@redhat.com>
2067 Kevin Buettner <kevinb@redhat.com>
2068
2069 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2070 (frv_frame_init_saved_regs): Add declaration.
2071 (frame_extra_info): Add new field ``saved_regs''.
2072 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2073 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2074 Update frame related code.
2075 (frv_extract_struct_value_address): Adjust formatting.
2076 * Makefile.in (frv-tdep.o): Update dependencies.
2077 * config/frv/tm-frv.h (target_insert_watchpoint)
2078 (target_remove_watchpoint, target_insert_hw_breakpoint)
2079 (target_remove_hw_breakpoint): Delete these macros.
2080 (remote_insert_watchpoint, remote_remove_watchpoint)
2081 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2082 these declarations.
2083
87193939
MC
20842003-08-20 Michael Chastain <mec@shout.net>
2085
2086 * defs.h (ENUM_BITFIELD): New macro.
2087 * symtab.h (ENUM_BITFIELD): Use it.
2088 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2089
062103ba
SA
20902003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2091
2092 * MAINTAINERS (write after approval): Add myself.
2093
8b148df9
AC
20942003-08-18 Andrew Cagney <cagney@redhat.com>
2095
2096 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2097 * gdbarch.h, gdbarch.c: Re-generate.
2098 * infcall.c (call_function_by_hand): Adjust the SP by
2099 frame_red_zone_size before allocating any stack space.
2100 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2101 * x86-64-tdep.c (x86_64_frame_align): New function.
2102 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2103
2104 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2105 Remove code adjusting SP so that it skips over the Red Zone.
2106
954a4db8
MK
21072003-08-18 Mark Kettenis <kettenis@gnu.org>
2108
2109 * NEWS (New native configurations): Mention FreeBSD/amd64.
2110
1a241548
AC
21112003-08-18 Andrew Cagney <cagney@redhat.com>
2112
2113 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2114 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2115 "m68k_frame_p".
2116 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2117
f82b2acd
MK
21182003-08-18 Mark Kettenis <kettenis@gnu.org>
2119
2120 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2121
4056d258
ML
21222003-08-18 Michal Ludvig <mludvig@suse.cz>
2123
2124 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2125 Define.
2126 * i386-linux-nat.c: Include "linux-nat.h".
2127 (child_post_startup_inferior): New function.
2128
99ab4326
MK
21292003-08-18 Mark Kettenis <kettenis@gnu.org>
2130
2131 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2132 at the start of a frameless function. This probably fixes PR
2133 backtrace/1338.
2134
c8d5f0d6
MC
21352003-08-17 Michael Chastain <mec@shout.net>
2136
2137 * symfile.c (find_sym_fns): Remove special case for apollo target.
2138
9016a515
DJ
21392003-08-17 Daniel Jacobowitz <drow@mvista.com>
2140
2141 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2142 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2143 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2144 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2145 (linux_supports_tracevforkdone): New function.
2146 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2147 TRACEVFORKDONE.
2148 (child_follow_fork): Handle vfork.
2149 (linux_handle_extended_wait): Likewise. Also handle exec.
2150 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2151 * NEWS: Mention fork tracing.
2152
c538c11c
DJ
21532003-08-17 Daniel Jacobowitz <drow@mvista.com>
2154
2155 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2156
4de4c07c
DJ
21572003-08-17 Daniel Jacobowitz <drow@mvista.com>
2158
2159 * Makefile.in (i386-linux-nat.o): Update dependencies.
2160 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2161 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2162 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2163 * i386-linux-nat.c: Include "linux-nat.h".
2164 (child_post_startup_inferior): New function.
2165 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2166 * infptrace.c (kill_inferior): Wrap in #ifdef.
2167 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2168 attaching to each LWP.
2169 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2170 (init_lin_lwp_ops): Fill in some more operations.
2171 * linux-nat.h (linux_enable_event_reporting)
2172 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2173 prototypes.
2174 * linux-nat.c (linux_enable_event_reporting): New function.
2175 (child_post_attach, linux_child_post_startup_inferior)
2176 (child_post_startup_inferior, child_follow_fork)
2177 (linux_handle_extended_wait, kill_inferior): New functions.
2178
7996bcec
AC
21792003-08-16 Andrew Cagney <cagney@redhat.com>
2180
2181 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2182 * gdbarch.h, gdbarch.c: Re-generate.
2183
3d48a7a0
MK
21842003-08-16 Mark Kettenis <kettenis@gnu.org>
2185
2186 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2187
7989c619
AC
21882003-08-16 Andrew Cagney <cagney@redhat.com>
2189
2190 * NEWS: Mention that "set prompt-escape-char" was deleted.
2191 * top.c (get_prompt_1): Delete function.
2192 (gdb_prompt_escape):
2193 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2194 prompt-escape-char" command.
2195 (MAX_PROMPT_SIZE): Delete macro.
2196 (get_prompt): Simplify, do not call get_prompt_1.
2197
07978cd8
AC
21982003-08-16 Andrew Cagney <cagney@redhat.com>
2199
2200 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2201 -Werror. -Wformat-nonliteral problems.
2202
3ff7cf9e
JB
22032003-08-15 J. Brobecker <brobecker@gnat.com>
2204
2205 Further multiarching work mostly for hppa64-*-hpux11:
2206 * hppa-tdep.h: New file.
2207 * hppa-tdep.c: #include hppa-tdep.c.
2208 (hppa32_num_regs): Renamed from hppa_num_regs.
2209 (hppa64_num_regs): New constant.
2210 (hppa64_call_dummy_breakpoint_offset): New constant.
2211 (hppa32_call_dummy_length): New constant.
2212 (hppa64_call_dummy_length): New constant.
2213 (hppa32_stack_align): Make name 32bit explicit.
2214 (hppa32_register_virtual_type): Likewise.
2215 (hppa32_extract_return_value): Likewise.
2216 (hppa32_use_struct_convention): Likewise.
2217 (hppa32_store_return_value): Likewise.
2218 (hppa64_register_virtual_type): New function.
2219 (hppa64_extract_return_value): New function.
2220 (hppa64_use_struct_convention): New function.
2221 (hppa64_store_return_value): New function.
2222 (hppa_frame_locals_address): Remove declaration, function does
2223 not exist anymore.
2224 (hppa_register_byte): Add support for PA64 ABI.
2225 (hppa_gdbarch_init): Add support for PA64 ABI.
2226 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2227 Make name 32bit explicit.
2228 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2229 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2230 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2231 (hppa64_hpux_frame_base_before_sigtramp): New function.
2232 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2233 * config/pa/tm-hppa64.h: Remove macros that are no longer
2234 necessary now that the gdbarch vector is properly setup.
2235 Transform some macros into function calls. Some minor cleanup.
2236 * config/pa/tm-hppah.h: Update function calls in macros
2237 following the function renaming in hppa-hpux-tdep.c.
2238 * Makefile.in (hppa_tdep_h): New variable.
2239 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2240
5d05ca6d
MS
22412003-08-14 Michael Snyder <msnyder@redhat.com>
2242
2243 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2244
37ba2569
JB
22452003-08-13 J. Brobecker <brobecker@gnat.com>
2246
2247 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2248 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2249 routine.
2250
aed7f26a
MS
22512003-08-13 Michael Snyder <msnyder@redhat.com>
2252
2253 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2254 (frv_saved_pc_after_call): Use deprecated ftype.
2255 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2256 (frv_remote_translate_xfer_address): Remove.
2257 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2258
752d4ac1
JB
22592003-08-13 J. Brobecker <brobecker@gnat.com>
2260
2261 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2262 initialization after the common gdbarch initialization, not before.
2263
1426ac1d
JB
22642003-08-13 J. Brobecker <brobecker@gnat.com>
2265
2266 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2267 (ADDR_BITS_REMOVE): Remove, redundant.
2268
b6fbdd1d
JB
22692003-08-13 J. Brobecker <brobecker@gnat.com>
2270
2271 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2272 gdbarch method to clear the 2 low bits of text addresses.
2273
44160db3
AC
22742003-08-12 Andrew Cagney <cagney@redhat.com>
2275
2276 * Makefile.in (dsrec.o): Update dependencies.
2277 * dsrec.c: Include "gdb_assert.h".
2278 (make_srec): Use snprintf instead of sprintf, use a literal format
2279 string.
2280
bcf7d3ca
AC
22812003-08-12 Andrew Cagney <cagney@redhat.com>
2282
2283 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2284 FRAME_OBSTACK_ZALLOC.
2285
49ed40de
KB
22862003-08-12 Kevin Buettner <kevinb@redhat.com>
2287
2288 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2289 SSE registers.
2290
b246147c
MK
22912003-08-10 Mark Kettenis <kettenis@gnu.org>
2292
2293 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2294 amd64fbsd_sc_reg_offset): Add extern declarations.
2295 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2296 declarations.
2297
d95fdc0d
BE
22982003-08-11 Ben Elliston <bje@wasabisystems.com>
2299
2300 * MAINTAINERS (write after approval): Update my mail address.
2301
cf6a0e73
AC
23022003-08-10 Andrew Cagney <cagney@redhat.com>
2303
2304 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2305
f837910f
MK
23062003-08-10 Mark Kettenis <kettenis@gnu.org>
2307
e2dbbd2d
MK
2308 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2309 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2310 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2311 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2312 i386bsd_sc_reg_offset): Add extern declarations.
2313 * i386obsd-nat.c: Include "i386-tdep.h"
2314 (_initialize_i386obsd_nat): Remove extern declarations.
2315 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2316 declarations.
2317 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2318 declarations.
2319
f837910f
MK
2320 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2321 instead of frame_read_register.
2322 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2323 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2324 SP_REGNUM.
2325 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2326 instead of frame_unwind_unsigned_register. Use
2327 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2328 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2329 instead of read_register. Use builtin_type_void_data_ptr instead
2330 of builtin_type_void_func_ptr when extracting the address of the
2331 jmp_buf.
2332 (i386_extract_return_value, i386_store_return_value,
2333 i386_pseudo_register_read, i386_pseudo_register_write): Use
2334 register_size instead REGISTER_RAW_SIZE.
2335
edcf254d
AC
23362003-08-10 Andrew Cagney <cagney@redhat.com>
2337
2338 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2339 sprintf. Make "name" constant.
2340
26604a34
MK
23412003-08-10 Mark Kettenis <kettenis@gnu.org>
2342
192285c6
MK
2343 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2344 instead of frame_read_register.
f837910f
MK
2345 (i387_print_float_info): Use get_frame_register and
2346 get_frame_register_unsigned instead of frame_register_read.
192285c6 2347
f0925262
MK
2348 * i386fbsd-nat.c: Include "i386-tdep.h".
2349 (child_resume): Make `eflags' an ULONGEST. Use
2350 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2351 instead of register_read and register_write.
2352
a144416f
MK
2353 * i386bsd-nat.c (fetch_inferior_registers,
2354 store_inferior_registers): Don't use && at the end of a line.
2355 (_initialize_i386bsd_nat): Fix typo.
2356
fec74868
MK
2357 * frame.c (_initialize_frame): Add missing backslash.
2358
87232496
MK
2359 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2360 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2361 and supply_register instead of manipulating the register buffer
2362 directly.
2363
c9b9de0b
MK
2364 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2365 * config/i386/nm-i386sol2.h
2366 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2367
26604a34
MK
2368 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2369 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2370 instructions that GCC likes to mingle into the prologue. Fixes
2371 gdb/1253 and gdb/1255.
2372
25d29d70
AC
23732003-08-09 Andrew Cagney <cagney@redhat.com>
2374
2375 Fix GDB PR cli/926.
2376 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2377 * command.h (add_setshow_uinteger_cmd): Declare.
2378 * frame.c (set_backtrace_cmd): New function.
2379 (show_backtrace_cmd): New function.
2380 * frame.c (_initialize_frame): Replace "set/show
2381 backtrace-below-main" with "set/show backtrace past-main". Add
2382 command "set/show backtrace limit".
2383 (backtrace_past_main): Rename "backtrace_below_main".
2384 (backtrace_limit): New variable.
2385 (get_prev_frame): Update. Check the backtrace_limit.
2386
9ebf4acf
AC
23872003-08-09 Andrew Cagney <cagney@redhat.com>
2388
2389 * defs.h (xstrprintf): Declare.
2390 * utils.c (xstrprintf): New function.
2391 * breakpoint.c (insert_breakpoints): Replace sprintf and
2392 non-literal format strings, with xstrprintf and cleanups.
2393 (delete_breakpoint,breakpoint_re_set): Ditto.
2394 (commands_command, insert_breakpoints): Ditto.
2395 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2396 (break_at_finish_command_1): Ditto.
2397
3771659b
AC
23982003-08-09 Andrew Cagney <cagney@redhat.com>
2399
2400 * MAINTAINERS (language support): List Adam Fedor as Objective C
2401 maintainer.
2402
b4263afa
JB
24032003-08-08 J. Brobecker <brobecker@gnat.com>
2404
2405 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2406 are now multiarched.
2407
d84defb1
JB
24082003-08-08 J. Brobecker <brobecker@gnat.com>
2409
2410 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2411 longer necessary now that hppa64 is partially multiarch'ed.
2412
f786f615
AC
24132003-08-08 Andrew Cagney <cagney@redhat.com>
2414
2415 * interps.c (interp_set): Check for a NULL "old_interp".
2416
c938e9b0
L
24172003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2418
2419 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2420 (install-only): Support DESTDIR.
2421 (uninstall): Likewise.
2422 (install-gdbtk): Likewise.
2423
9a146a11
EZ
24242003-08-08 Elena Zannoni <ezannoni@redhat.com>
2425
2426 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2427 contains something meaningful at all times.
2428
2429Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 2430
62599e99 2431 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 2432
56296155
BC
2433Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2434
62599e99 2435 * MAINTAINERS (write after approval): Added self.
56296155 2436
9710e734
AC
24372003-08-07 Andrew Cagney <cagney@redhat.com>
2438
2439 * inferior.h (AT_SYMBOL): Define.
2440 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2441 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2442 * mips-tdep.c (mips_call_dummy_address): Delete function.
2443 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2444 set call_dummy_address.
2445
98b3ab73
AC
24462003-08-07 Andrew Cagney <cagney@redhat.com>
2447
2448 * language.c (op_error): Delete function.
2449 (binop_type_check): Delete function.
2450 * language.h (type_op_error, range_op_error): Delete macros.
2451 (op_error): Delete declaration.
2452
2fcf52f0
AC
24532003-08-07 Andrew Cagney <cagney@redhat.com>
2454
2455 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2456
abd4220e 24572003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 2458
abd4220e 2459 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 2460 (x86_64_push_arguments): Skip the red zone.
abd4220e 2461
9dd5f34f
AC
24622003-08-05 Andrew Cagney <cagney@redhat.com>
2463
2464 * reggroups.c (reggroup_next): Check for the final entry.
2465
e5e78edc
AC
24662003-08-04 Andrew Cagney <cagney@redhat.com>
2467
ab4e3d93
AC
2468 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2469 * cli/cli-script.c (define_command): Call query directly, instead
2470 of passing it a buffer.
2471 * ocd.c (ocd_error): Pass error a constant format string.
2472 * remote-mips.c (mips_error): Use fputs_filtered.
2473
1062ca82
AC
2474 * solib-svr4.c (_initialize_svr4_solib): Update
2475 register_gdbarch_data call.
2476 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2477
fcc1c85c
AC
2478 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2479 (register_gdbarch_data): Delete "free" parameter. Update
2480 comments.
2481 * gdbarch.h, gdbarch.c: Re-generate.
2482 * reggroups.c (_initialize_reggroup): Update.
2483 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2484 * frame-base.c (_initialize_frame_base): Update.
2485 * frame-unwind.c (_initialize_frame_unwind): Update.
2486 * user-regs.c (_initialize_user_regs): Update.
2487 * remote.c (_initialize_remote): Update.
2488 * regcache.c (_initialize_regcache): Update.
2489
116f06ea
AC
2490 * regcache.c (xfree_regcache_descr): Delete function.
2491 (_initialize_regcache): Update call to register_gdbarch_data.
2492 (init_regcache_descr, init_legacy_regcache_descr): Use
2493 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2494
e5e78edc
AC
2495 * remote.c (free_remote_state): Delete function.
2496 (_initialize_remote): Update register_gdbarch_data.
2497 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2498 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2499
6c7d17ba
AC
25002003-08-04 Andrew Cagney <cagney@redhat.com>
2501
2502 * reggroups.c (struct reggroup_el): Define.
2503 (struct reggroups): Delete field "nr_group". Replace array
2504 "group" with a "first" to "last" linked list.
2505 (reggroups_init): Update. Allocate using gdbarch's obstack.
2506 (reggroups_free): Delete function.
2507 (add_group): Update. Add "el" parameter.
2508 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2509 (default_groups): Update.
2510 (reggroup_next): Replace reggroups.
2511 (reggroups_dump): Update.
2512 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2513 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2514 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2515
89b7795b
DJ
25162003-08-04 Daniel Jacobowitz <drow@mvista.com>
2517
2518 * Makefile.in (tui-interp.o): Update dependencies.
2519
306d9ac5
DC
25202003-08-04 David Carlton <carlton@kealia.com>
2521
2522 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2523 to internal_error call.
2524 * source.c (forward_search_command): Add "%s" format argument.
2525 (reverse_search_command): Ditto.
2526 * top.c (quit_confirm): Ditto.
2527 * cli/cli-setshow.c (do_setshow_command): Ditto.
2528 * cp-valprint.c (cp_print_class_method): Replace
2529 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2530 (cp_print_class_member): Ditto.
2531 * event-top.c (command_line_handler): Ditto.
2532 * linux-proc.c (linux_info_proc_cmd): Ditto.
2533 * p-typeprint.c (pascal_type_print_base): Ditto.
2534 * p-valprint.c (pascal_object_print_class_method): Ditto.
2535 (pascal_object_print_class_member): Ditto.
2536 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2537 * remote.c (remote_cisco_section_offsets): Ditto.
2538 * top.c (command_line_input): Ditto.
2539 * utils.c (vwarning,error_stream,quit): Ditto.
2540 * valprint.c (print_floating,print_binary_chars)
2541 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2542
57bfe177
AC
25432003-08-04 Andrew Cagney <cagney@redhat.com>
2544
2545 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2546
e546b999
AC
25472003-08-02 Andrew Cagney <cagney@redhat.com>
2548
2549 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2550 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2551 amd64fbsd-nat.c.
2552
91092ee5
AC
25532003-08-02 Andrew Cagney <cagney@redhat.com>
2554
2555 * Makefile.in: Update all dependencies and definitions.
2556
889f28e2
AF
25572003-08-02 Adam Fedor <fedor@gnu.org>
2558
2559 * linespec.c (is_objc_method_format): New function
2560 (decode_line_1, locate_first_half): Use it.
2561 Fixes PR objc/1298
2562
880bc914
AC
25632003-08-01 Andrew Cagney <cagney@redhat.com>
2564
2565 * NEWS: Mention that m32r is multi-arch.
2566 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2567 * configure.tgt: Recognize m32r-*-*.
2568 * config/m32r/tm-m32r.h: Delete file.
2569 * config/m32r/m32r.mt: New file.
2570 * m32r-rom.c (m32r_upload_command): Use hostent only when
2571 gethostname succeeds, in order to avoid a compilation
2572 warning.
2573 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2574 compiler warning.
2575
19f59343
MS
25762003-08-01 Michael Snyder <msnyder@redhat.com>
2577
2578 * sh-tdep.c (sh_frame_align): New gdbarch method.
2579 (sh_gdbarch_init): Set up frame_align method.
2580
4e7d7511
MS
25812003-07-31 Michael Snyder <msnyder@redhat.com>
2582
2583 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2584 which is already covered by the new frames infrastructure.
2585
63022984
AC
25862003-07-31 Andrew Cagney <cagney@redhat.com>
2587
2588 * user-regs.c (struct user_reg): Add "next" link.
2589 (struct user_regs): Replace "user" with "first" and "last" links.
2590 (append_user_reg): Add pre-allocated "reg" parameter.
2591 (builtin_user_regs): Provide initial value for "last".
2592 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2593 (user_regs_init): Allocate memory from the gdbarch obstack.
2594 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2595 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2596 linked list.
2597 (usernum_to_user_reg): New function.
2598 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2599 (value_of_user_reg): Use usernum_to_user_reg.
2600 (user_regs_free): Delete function.
2601 (_initialize_user_regs): Update register_gdbarch_data call.
2602
7cf6e574
DJ
26032003-07-31 Daniel Jacobowitz <drow@mvista.com>
2604
2605 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2606
c48a845b
MS
26072003-07-30 Michael Snyder <msnyder@redhat.com>
2608
4e7d7511 2609 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
2610 * infcall.c (call_function_by_hand): Pass struct_addr to
2611 value_being_returned.
2612 * infcmd.c (print_return_value): Pass zero as struct_addr.
2613 * values.c (value_being_returned): If struct_addr is passed,
2614 use it instead of trying to recover it from the inferior.
2615
f0d8db19
KB
26162003-07-30 Kevin Buettner <kevinb@redhat.com>
2617
2618 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2619 the prologue analyzer won't need to attempt to extract the pc
2620 value from the woefully incomplete dummy frame.
2621 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2622 possible. Disable code which modifies the frame.
2623
e5c113a1
AC
26242003-07-28 Andrew Cagney <cagney@redhat.com>
2625
2626 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2627 to level 2.
2628 (annotate_breakpoints_table, annotate_record): Ditto.
2629 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2630 (annotate_field_name_end, annotate_field_value): Ditto.
2631 (annotate_field_end, annotate_frame_source_begin): Ditto.
2632 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2633 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2634 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2635 (annotate_frame_address_end, annotate_frame_address): Ditto.
2636 (annotate_frame_args, annotate_frame_end): Ditto.
2637 (annotate_frame_where, annotate_arg_begin): Ditto.
2638 (annotate_arg_name_end, annotate_arg_value): Ditto.
2639 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2640 (annotate_function_call, annotate_signal_name): Ditto.
2641 (annotate_signal_string, annotate_signal_name_end): Ditto.
2642 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2643 (annotate_value_begin, annotate_value_history_value): Ditto.
2644 (annotate_value_history_end, annotate_value_end): Ditto.
2645 (annotate_display_begin, annotate_display_number_end): Ditto.
2646 (annotate_display_format, annotate_display_expression): Ditto.
2647 (annotate_display_expression_end, annotate_display_value): Ditto.
2648 (annotate_display_end, annotate_array_section_begin): Ditto.
2649 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2650 (annotate_elt, annotate_array_section_end): Ditto.
2651
bb1db049
AC
26522003-07-28 Andrew Cagney <cagney@redhat.com>
2653
2654 * regcache.c (struct regcache_descr): Update comments on
2655 nr_raw_registers.
2656 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2657 sizeof_raw_register_valid_p.
2658 (init_regcache_descr): Set nr_raw_registers and
2659 sizeof_raw_register_valid_p before calling
2660 init_legacy_regcache_descr.
2661
20e6603c
AC
26622003-07-28 Andrew Cagney <cagney@redhat.com>
2663
2664 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2665 MOD NUM_REGS.
2666
db742940
DJ
26672003-07-28 Daniel Jacobowitz <drow@mvista.com>
2668
2669 * thread.c (info_threads_command): Use get_selected_frame ().
2670 Check that there is at least one non-sentinel frame.
2671
ce7f4371
SC
26722003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2673
2674 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2675 (m68hc11_pop_frame): Remove.
2676 (m68hc11_frame_saved_pc): Remove.
2677 (m68hc11_frame_chain): Remove.
2678 (m68hc11_frame_init_saved_regs): Remove.
2679 (m68hc11_init_extra_frame_info): Remove.
2680 (m68hc11_store_struct_return): Remove.
2681 (m68hc11_saved_pc_after_call): Remove.
2682
1ea653ae
SC
26832003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2684
2685 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2686 frame unwind information.
2687 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2688 and adapted for frame unwinding.
2689 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2690 (m68hc11_unwind_pc): New function.
2691 (m68hc11_frame_unwind_cache): New function to analyze frames.
2692 (m68hc11_frame_this_id): New function to create new frame struct.
2693 (m68hc11_frame_prev_register): New function to unwind a register from
2694 the frame.
2695 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2696 (m68hc11_frame_p): New function for the above.
2697 (m68hc11_frame_base_address): New function to return fp of frame.
2698 (m68hc11_frame_args_address): Update for frame.
2699 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2700 (m68hc11_unwind_sp): New function.
2701 (m68hc11_unwind_dummy_id): New function.
2702 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2703 calls.
2704
c8a7f6ac
SC
27052003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2706
2707 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2708 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2709 when we are beyond the current pc.
2710
3dc990bf
SC
27112003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2712
2713 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2714 from m68hc11_push_arguments.
2715 (m68hc11_push_arguments): Remove.
2716 (m68hc11_push_return_address): Remove.
2717 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2718 handlers; remove deprecated_extra_stack_alignment_needed.
2719
222e5d1d
AC
27202003-07-27 Andrew Cagney <cagney@redhat.com>
2721
2722 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2723 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2724 REAL_PC and not the pointer.
2725 * hppa-hpux-tdep.c: Include frame.h
2726
a7e9a47e
AC
27272003-07-27 Andrew Cagney <cagney@redhat.com>
2728
2729 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2730 GDB_MULTI_ACH_PARTIAL.
2731
7e3dd49e
AC
27322003-07-27 Andrew Cagney <cagney@redhat.com>
2733
2734 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2735 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2736 operator at start and not end of line.
2737 (decode_prologue): Ditto.
2738 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2739 frame_unwind_register_unsigned instead of
2740 frame_unwind_unsigned_register.
2741 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2742 read_register.
2743 (m32r_push_dummy_call): Use register_size instead of
2744 REGISTER_RAW_SIZE.
2745 (m32r_frame_sniffer): Replace m32r_frame_p.
2746 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2747 * m32r-rom.c (report_transfer_performance): Delete extern
2748 declaration.
2749 (m32r_load, m32r_upload_command): Use print_transfer_performance
2750 instead of report_transfer_performance.
2751 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2752 / add_show_from_set.
2753
0880807f
AC
27542003-07-26 Andrew Cagney <cagney@redhat.com>
2755
2756 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2757 store_return_value and extract_struct_value_address.
2758
64ae9269
DJ
27592003-07-26 Daniel Jacobowitz <drow@mvista.com>
2760
2761 PR c++/1267
2762 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2763 NULL, default to the section containing PC.
2764
e286caf2
SC
27652003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2766
2767 * NEWS: Mention "regs" deprecated for m68hc11 too.
2768
2769 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2770 (m68hc11_print_register): New function to print out one register.
2771 (m68hc11_print_registers_info): New function to print registers.
2772 (show_regs): Deprecate and use the above.
2773 (m68hc11_gdbarch_init): Install the print_registers_info.
2774
705b278b
JJ
27752003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2776
2777 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2778 that we have a SIGTRAP before returning non-zero.
2779
63cd4198
EZ
27802003-07-23 Michal Ludvig <mludvig@suse.cz>
2781 Elena Zannoni <ezannoni@redhat.com>
2782
2783 * linespec.c (decode_line_2): Avoid crash if
2784 find_function_start_sal() returns empty record.
2785
6926787d
AS
27862003-07-23 Andreas Schwab <schwab@suse.de>
2787
2788 * ia64-tdep.c (ia64_print_insn): New function.
2789 (ia64_gdbarch_init): Set print_insn to it.
2790 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2791 deprecated_tm_print_insn_info.
2792
708cc1b6
MS
27932003-07-22 Michael Snyder <msnyder@redhat.com>
2794
2795 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2796 handle 8-bit returns (long long).
2797 (h8300h_extract_return_value): Ditto.
2798 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2799
aebd7893
AC
28002003-07-22 Andrew Cagney <cagney@redhat.com>
2801
2802 * gdbarch.c Include "gdb_obstack.h".
2803 (struct gdbarch): Add an "obstack".
2804 (alloc_gdbarch_data): Allocate the gdbarch data using
2805 GDBARCH_OBSTACK_CALLOC.
2806 (free_gdbarch_data): Delete function.
2807 (gdbarch_obstack_zalloc): New function.
2808 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2809 Assert that the architecture is not initialized.
2810 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2811 vector from the obstack.
2812 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2813 architecture obstack.
2814 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2815 (set_gdbarch_data): Assert that the data is not initialized.
2816 (struct gdbarch_data): Delete member "free".
2817 (register_gdbarch_data): Do not initialize "free".
2818 * gdbarch.h, gdbarch.c: Re-generate.
2819
153721e6
AC
28202003-07-22 Andrew Cagney <cagney@redhat.com>
2821
2822 * configure.in (build_warnings): Add -Wformat-nonliteral.
2823 * configure: Re-generate.
2824
c193f044 28252003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
2826
2827 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 2828
c3228f12
EZ
28292003-07-22 Elena Zannoni <ezannoni@redhat.com>
2830
2831 * findvar.c (read_var_value): Remove case for thread local storage
2832 variables. It is now entirely handled by the dwarf2 location
2833 expression code.
2834 * printcmd.c (address_info): Ditto.
2835 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2836 enumeration value.
2837 (struct symbol): Remove objfile field, which was used by
2838 LOC_THREAD_LOCAL_STATIC only.
2839 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2840 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2841 usage of objfile pointer.
2842 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2843 thread local variables.
2844 Add include of objfiles.h.
2845 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2846 storage variables.
2847 * Makefile.in (dwarf2loc.o): Update dependencies.
2848
aef9bcd2
AC
28492003-07-22 Andrew Cagney <cagney@redhat.com>
2850
2851 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2852 get_frame_base.
2853 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2854 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2855 (struct value): Add opaque declaration.
2856 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2857
d95a8903
AC
28582003-07-21 Andrew Cagney <cagney@redhat.com>
2859
2860 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2861 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2862
4db73d49
SC
28632003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2864
2865 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2866 regcache_cooked_read_unsigned instead of read_register.
2867 (m68hc11_saved_pc_after_call): Likewise.
2868 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2869 instead of write_register.
2870 (m68hc11_register_type): New function.
2871 (m68hc11_register_virtual_type): Remove.
2872 (m68hc11_store_return_value): Convert to use the regcache.
2873 (m68hc11_extract_struct_value_address): Likewise.
2874 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2875 m68hc11_register_type; undeprecate store_return_value and
2876 extract_struct_value_address.
2877
ef2b8fcd
SC
28782003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2879
2880 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2881 and translate to use regcache.
2882 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2883
625b0b97
AC
28842003-07-18 Andrew Cagney <cagney@redhat.com>
2885
2886 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2887 * gdbarch.h, gdbarch.c: Re-generate.
2888 * i386-tdep.c (i386_gdbarch_init): Do not set
2889 DWARF2_BUILD_FRAME_INFO.
2890 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2891 unconditionally.
2892 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2893 DWARF2_BUILD_FRAME_INFO.
2894
22b0d388
AC
28952003-07-18 Andrew Cagney <cagney@redhat.com>
2896
2897 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2898 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2899
1ce5d6dd
AC
29002003-07-18 Andrew Cagney <cagney@redhat.com>
2901
2902 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2903 frame_unwind_address_in_block, instead of frame_pc_unwind.
2904 (dwarf2_frame_cache): Ditto.
2905
e6e5e94c
AC
29062003-07-18 Andrew Cagney <cagney@redhat.com>
2907
2908 * user-regs.h (struct gdbarch): Declare opaque.
2909 * ui-out.h (struct ui_file): Declare opaque.
2910 * dwarf2-frame.h (struct frame_info): Declare opaque.
2911
5483d879
KW
29122003-07-18 Kris Warkentin <kewarken@qnx.com>
2913
2914 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2915 #include "...".
2916 (procfs_meminfo): Change strerror to safe_strerror.
2917 (procfs_can_run): Remove K&R badness.
2918
278a7cf7
MS
29192003-07-17 Michael Snyder <msnyder@redhat.com>
2920
2921 * remote-sim.c: Comment typo fix.
2922
606e3b82
AC
29232003-07-17 Andrew Cagney <cagney@redhat.com>
2924
2925 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2926 configure.
2927 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2928 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2929 GDB_MULTI_ARCH_PARTIAL.
2930
c43af07c
EZ
29312003-07-17 Elena Zannoni <ezannoni@redhat.com>
2932
2933 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2934 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2935 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2936
3b85b0f1
TR
29372003-07-16 Theodore A. Roth <troth@openavr.org>
2938
2939 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2940 found.
2941 (avr_frame_unwind_cache): Don't unwind FP for main.
2942 Update a comment.
2943 Save the computed prev_sp.
2944 (avr_saved_regs_unwinder): Remove function.
2945 (avr_frame_prev_register): Use PC unwind logic from
2946 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2947
336d1bba
AC
29482003-07-16 Andrew Cagney <cagney@redhat.com>
2949
2950 * frame-base.h (frame_base_p_ftype): Delete definition.
2951 (frame_base_append_predicate): Delete declaration.
2952 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2953 (frame_unwind_append_predicate): Delete declaration.
2954 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2955 (append_predicate): Delete parameter "p".
2956 (frame_unwind_append_predicate): Delete function.
2957 (frame_unwind_append_sniffer): Update call to append_predicate.
2958 (frame_unwind_free): Delete function.
2959 (_initialize_frame_unwind): Pass NULL as "free" to
2960 register_gdbarch_data.
2961 (frame_unwind_init): Append the dummy_frame_sniffer.
2962 (frame_unwind_find_by_frame): Simplify.
2963 * frame-base.c (struct frame_base_table): Delete field "p".
2964 (append_predicate): Delete parameter "p".
2965 (frame_base_append_predicate): Delete function.
2966 (frame_base_append_sniffer): Update call to append_predicate.
2967 (frame_base_free): Delete function.
2968 (frame_base_find_by_frame): Simplify.
2969 (_initialize_frame_base): Pass NULL as "free" to
2970 register_gdbarch_data.
2971 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2972 (x86_64_sigtramp_frame_sniffer): Replace
2973 "x86_64_sigtramp_frame_p".
2974 (x86_64_init_abi): Set the frame unwind sniffers.
2975 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2976 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2977 (m68k_gdbarch_init): Set the frame unwind sniffers.
2978 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2979 "i386_sigtramp_frame_p".
2980 (i386_frame_sniffer): Replace "i386_frame_p".
2981 (i386_gdbarch_init): Set the frame unwind sniffers.
2982 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2983 (avr_gdbarch_init): Set the frame unwind sniffers.
2984 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2985 "alpha_sigtramp_frame_p"
2986 (alpha_heuristic_frame_sniffer): Replace
2987 "alpha_heuristic_frame_p".
2988 (alpha_gdbarch_init): Set the frame unwind sniffers.
2989 (alpha_dwarf2_init_abi): Ditto.
2990 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2991 "alpha_debug_frame_p".
2992 (alpha_mdebug_frame_base_sniffer): Replace
2993 "alpha_mdebug_frame_base_p".
2994 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2995 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2996 (d10v_gdbarch_init): Set the frame unwind sniffer.
2997 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2998 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2999 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3000 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3001 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3002 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3003
48db5a3c
CV
30042003-07-16 Michael Snyder <msnyder@redhat.com>
3005
3006 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3007 should go thru sh_dsp_register_sim_regno, else the dsp regs
3008 will not get the right values.
3009
30102003-07-16 Corinna Vinschen <vinschen@redhat.com>
3011
3012 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3013 deprecated_store_floating by call to store_typed_floating.
3014 (sh_sh4_register_convert_to_raw): Substitute call to
3015 deprecated_extract_floating by call to extract_typed_floating.
3016
30172003-07-16 Corinna Vinschen <vinschen@redhat.com>
3018
3019 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3020
30212003-07-16 Corinna Vinschen <vinschen@redhat.com>
3022
3023 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3024 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3025 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3026 as possible.
3027 (do_pseudo_register): Remove.
3028 (sh_push_dummy_code): New function.
3029 (sh64_store_struct_return): Rename from sh_store_struct_return.
3030 Only called for sh64 now.
3031 (sh_extract_struct_value_address): Regcache'ify.
3032 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3033 and accomodate new tasks.
3034 (sh64_push_return_address): Rename from sh_push_return_address.
3035 Only called for sh64 now.
3036 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3037 Regcache'ify.
3038 (sh3e_sh4_extract_return_value): Regcache'ify.
3039 (sh_default_store_return_value): Ditto.
3040 (sh3e_sh4_store_return_value): Ditto.
3041 (sh_default_register_byte): Remove.
3042 (sh_sh4_register_byte): Remove.
3043 (sh_default_register_raw_size): Remove.
3044 (sh_sh4_register_raw_size): Remove.
3045 (sh_register_virtual_size): Remove.
3046 (sh_sh3e_register_virtual_type): Remove.
3047 (sh_sh3e_register_type): New function.
3048 (sh_sh4_register_virtual_type): Remove.
3049 (sh_sh4_register_type): New function.
3050 (sh_default_register_virtual_type): Remove.
3051 (sh_default_register_type): New function.
3052 (do_fv_register_info): Add parameters to accomodate call from
3053 sh_print_registers_info.
3054 (do_dr_register_info): Ditto.
3055 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3056 Add parameters to accomodate call from sh_print_registers_info.
3057 (sh_do_fp_register): Ditto.
3058 (sh64_do_pseudo_register): Call do_dr_register_info,
3059 do_fv_register_info and sh_do_fp_register with default parameters.
3060 (sh_do_register): Add parameters to accomodate call from
3061 sh_print_registers_info.
3062 (sh_print_register): Ditto.
3063 (sh_print_registers_info): Rename from sh_do_registers_info.
3064 Add parameters to be used as gdbarch_print_registers_info
3065 implementation. Accomodate removed do_pseudo_register function
3066 pointer.
3067 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3068 function pointer. Call sh_print_register with default parameters.
3069 (sh64_do_registers_info): Call sh_print_registers_info instead of
3070 sh_do_registers_info.
3071 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3072 detection of deprecated vs. non-deprecated functionality.
3073 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3074 function pointer assignments by direct function calls.
3075
e8a89fe2
AC
30762003-07-15 Andrew Cagney <cagney@redhat.com>
3077
3078 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3079 (frame_register_unwind, create_new_frame): Ditto.
3080 (legacy_get_prev_frame, get_frame_type): Ditto.
3081 (get_frame_base_address): Use frame_base_find_by_frame.
3082 (get_frame_locals_address): Use frame_base_find_by_frame.
3083 (get_frame_args_address): Use frame_base_find_by_frame.
3084 * frame-base.h (frame_base_sniffer_ftype): Declare.
3085 (frame_base_append_sniffer): Declare.
3086 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3087 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3088 (frame_base_append_sniffer): New function.
3089 (frame_base_append_predicate): Add a NULL sniffer.
3090 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3091 (struct frame_base_table): Add "sniffer".
3092 (frame_base_free): Free the "sniffer" table.
3093 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3094 (frame_unwind_append_sniffer): Declare.
3095 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3096 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3097 (struct frame_unwind_table): Add "sniffer", delete "middle".
3098 (append_predicate): Add "sniffer" parameter, append the sniffer.
3099 (frame_unwind_init): Update append_predicate call.
3100 (frame_unwind_append_sniffer): New function.
3101 (frame_unwind_append_predicate): Update append_predicate call.
3102 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3103
0714963c
AC
31042003-07-15 Andrew Cagney <cagney@redhat.com>
3105
3106 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3107 before code inhibiting repeated unwind attempts. Add to
3108 commentary on that test's problems.
3109 * blockframe.c (inside_main_func): Look for "main" in the minimal
3110 symbol table.
3111 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3112 identical.
3113
d9170e22
AC
31142003-07-15 Andrew Cagney <cagney@redhat.com>
3115
3116 * complaints.c (struct explanation): Define.
3117 (struct complaints): Change type of "explanation" to "struct
3118 explanation".
3119 (symfile_explanations): Convert to a "struct explanation" table.
3120 (vcomplaint): Update.
3121
eba29c8c
ML
31222003-07-15 Michal Ludvig <mludvig@suse.cz>
3123
3124 * x86-64-linux-nat.c (regmap): Removed.
3125 (supply_gregset, fill_gregset): Call
3126 x86_64_linux_(fill,supply)_gregset functions.
3127 * x86-64-linux-tdep.c (USER_*): New defines.
3128 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3129 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3130 New functions.
3131 (fetch_core_registers): Ditto.
3132 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3133 * x86-64-linux-tdep.h: New file.
3134 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3135 and core-regset.o.
3136 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3137
68cc0bfb
MK
31382003-07-13 Mark Kettenis <kettenis@gnu.org>
3139
88a115f7
MK
3140 * x86-64-tdep.c (x86_64_store_return_value): Use
3141 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 3142
68cc0bfb
MK
3143 * configure.host: Add x86_64-*-freebsd*.
3144 * configure.tgt: Add x86_64-*-freebsd*.
3145 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3146 * amd64fbsd-nat.c: New file.
3147 * amd64fbsd-tdep.c: New file.
3148 * config/i386/nm-fbsd64.h: New file.
3149 * config/i386/fbsd64.mh: New file.
3150 * config/i386/fbsd64.mt: New file.
3151
138e7be5
MK
31522003-07-11 Mark Kettenis <kettenis@gnu.org>
3153
3154 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3155 `sc_regs_offset' and `sc_fpregs_offset'.
3156 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3157 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3158 (alpha_sigtramp_register_address): Rewrite to use new members of
3159 `struct gdbarch_tdep'.
3160 (alpha_gdbarch_init): Initialize new members of struct
3161 gdbarch_tdep'.
3162 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3163 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3164 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3165 (alphafbsd_pc_in_sigtramp): Implement.
3166 (alphafbsd_sigtramp_offset): New function.
3167 (alphafbsd_sigcontext_addr): New function.
3168 (alphafbsd_init_abi): Initialize signal trampoline related members
3169 of `struct gdbarch_tdep'.
3170 (_initialize_alphafbsd_tdep): Add prototype.
3171
95303a68
TR
31722003-07-11 Theodore A. Roth <troth@openavr.org>
3173
ba292e4c
TR
3174 * Makefile.in (install-only): Quote sed expression when generating
3175 transformed_name.
95303a68 3176
6896c0c7
RH
31772003-07-11 Richard Henderson <rth@redhat.com>
3178
3179 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3180 * dwarf2-frame.c: Include complaints.h.
3181 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3182 variable initialization; return NULL on error.
3183 (decode_frame_entry): New.
3184
8edd5d01
AC
31852003-07-11 Andrew Cagney <cagney@redhat.com>
3186
c4a09524
AC
3187 * frame.h (frame_address_in_block): Delete declaration.
3188 * blockframe.c (frame_address_in_block): Delete function.
3189 (get_frame_block): Use get_frame_address_in_block.
3190 (block_innermost_frame): Ditto.
3191 * stack.c (print_frame, backtrace_command_1): Ditto.
3192
8edd5d01
AC
3193 * frame.h (get_frame_address_in_block): Declare.
3194 (frame_unwind_address_in_block): Declare.
3195 * frame.c (frame_unwind_address_in_block): New function.
3196 (get_frame_address_in_block): New function.
3197
f7968451
AC
31982003-07-10 Andrew Cagney <cagney@redhat.com>
3199
3200 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3201 pre-default. Note: re-generate has no effect.
3202
ae99b398
AC
32032003-07-10 Andrew Cagney <cagney@redhat.com>
3204
3205 * gdbarch.sh: When a variable, but not a function, compare against
3206 0. Fix problem in previous patch.
3207 * gdbarch.c: Re-generate.
3208
956ac328
AC
32092003-07-10 Andrew Cagney <cagney@redhat.com>
3210
3211 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3212 functions against NULL, not 0.
3213 * gdbarch.c: Re-generate.
3214
287c3240
FF
32152003-07-10 Fred Fish <fnf@ninemoons.com>
3216
3217 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3218 null string instead of a null pointer.
3219 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3220
32f63c4b
MS
32212003-07-09 Michael Snyder <msnyder@redhat.com>
3222
3223 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3224
402ecd56
MK
32252003-07-09 Mark Kettenis <kettenis@gnu.org>
3226
3227 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3228 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3229 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3230 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3231 * x86-64-tdep.c: ... from here.
3232
c481dac7
AS
32332003-07-09 Andreas Schwab <schwab@suse.de>
3234
3235 * m68k-tdep.h (enum struct_return): Define.
3236 (struct gdbarch_tdep): Add struct_return.
3237 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3238 bytes are padded to the right, not to the left. Pass struct value
3239 address in register %a1, not on stack.
3240 (m68k_use_struct_convention): New function.
3241 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3242 struct_return in tdep to pcc_struct_return.
3243 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3244 reg_struct_return.
3245
64176fa3
JB
32462003-07-09 Joel Brobecker <brobecker@gnat.com>
3247
3248 * somread.c (som_symfile_offsets): Fix compilation error.
3249
96a4ee76
AC
32502003-07-09 Andrew Cagney <cagney@redhat.com>
3251
3252 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3253 Add comments about the checks.
3254
1517c6d1
AC
32552003-07-08 Andrew Cagney <cagney@redhat.com>
3256
3257 * Makefile.in: Make dependency section headers consistent.
3258 (config_h): Move to $BUILD headers section.
3259 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3260 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3261 (ada-exp.tab.c): Move to YACC/LEX section.
3262 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3263 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3264
dc5dd1eb
KW
32652003-07-08 Kris Warkentin <kewarken@qnx.com>
3266
3267 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
3268 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3269 of strerror with safe_strerror, use ISO C function definitions,
3270 and replace instances of sprintf with snprintf.
dc5dd1eb 3271
612dde91
AC
32722003-07-07 Andrew Cagney <cagney@redhat.com>
3273
3274 * frame.c (get_prev_frame): Enable check for identical frames.
3275 Update comments. Update error messages.
3276
492c11d3
JB
32772003-07-07 Joel Brobecker <brobecker@gnat.com>
3278
3279 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3280
376a5a49
JB
32812003-07-07 Joel Brobecker <brobecker@gnat.com>
3282
3283 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3284 sort_symtab_syms, no longer necessary.
3285
22b4a9ad
JB
32862003-07-07 Joel Brobecker <brobecker@gnat.com>
3287
3288 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3289
5bbcb741
JB
32902003-07-07 Joel Brobecker <brobecker@gnat.com>
3291
3292 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3293 (mips_register_byte): Likewise.
3294
c139e7d9
DJ
32952003-07-07 Daniel Jacobowitz <drow@mvista.com>
3296
3297 * Makefile.in (sparc_tdep_h): New.
3298 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3299 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3300 * sparc-linux-nat.c: Include "sparc-tdep.h".
3301 * sparc-nat.c: Likewise.
3302 * sparc-tdep.c: Likewise.
3303 * sparc64nbsd-nat.c: Likewise.
3304 * sparcnbsd-nat.c: Likewise.
3305 * sparcnbsd-tdep.c: Likewise.
3306 * sparc-tdep.h: New file.
3307 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3308 and sparc_npc_regnum.
3309
fd8f87c5
DJ
33102003-07-07 Daniel Jacobowitz <drow@mvista.com>
3311
3312 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3313 (mips_linux_cannot_store_register): List supported instead of
3314 unsupported registers.
3315
13adf674
DJ
33162003-07-07 Daniel Jacobowitz <drow@mvista.com>
3317
3318 * disasm.c (dump_insns): Separate instructions from addresses.
3319
8de307e0
AS
33202003-07-07 Andreas Schwab <schwab@suse.de>
3321
3322 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3323 dependencies.
3324 * m68k-tdep.c (NUM_FREGS): Delete.
3325 (SIG_PC_FP_OFFSET): Delete.
3326 (TARGET_M68K): Delete.
3327 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3328 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3329 P_MOVEL_SP, P_MOVEML_SP): Define.
3330 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3331 P_TRAP): Delete.
3332 (m68k_register_raw_size): Delete.
3333 (m68k_register_virtual_size): Delete.
3334 (m68k_register_type): Renamed from m68k_register_virtual_type and
3335 add gdbarch argument.
3336 (m68k_store_struct_return): Delete.
3337 (m68k_deprecated_extract_return_value): Delete.
3338 (m68k_deprecated_extract_struct_value_address): Delete.
3339 (m68k_frame_chain): Delete.
3340 (m68k_frame_saved_pc): Delete.
3341 (m68k_fix_call_dummy): Delete.
3342 (m68k_push_dummy_frame): Delete.
3343 (m68k_pop_frame): Delete.
3344 (m68k_extract_return_value): New function.
3345 (m68k_store_return_value): Rewrite using regcache.
3346 (m68k_extract_struct_value_address): Rewrite using regcache.
3347 (m68k_push_dummy_call): New function.
3348 (struct m68k_frame_cache): Define.
3349 (m68k_alloc_frame_cache): New function.
3350 (m68k_analyze_frame_setup): New function.
3351 (m68k_analyze_register_saves): New function.
3352 (m68k_analyze_prologue): New function.
3353 (m68k_skip_prologue): Rewrite using above functions.
3354 (m68k_unwind_pc): New function.
3355 (m68k_frame_cache): New function.
3356 (m68k_frame_this_id): New function.
3357 (m68k_frame_prev_register): New function.
3358 (m68k_frame_unwind): New variable.
3359 (m68k_frame_p): New function.
3360 (m68k_sigtramp_frame_cache): New function.
3361 (m68k_sigtramp_frame_this_id): New function.
3362 (m68k_sigtramp_frame_prev_register): New function.
3363 (m68k_sigtramp_frame_unwind): New variable.
3364 (m68k_sigtramp_frame_p): New function.
3365 (m68k_frame_base_address): New function.
3366 (m68k_frame_base): New function.
3367 (m68k_unwind_dummy_id): New function.
3368 (fill_gregset): Use regcache_collect.
3369 (fill_fpregset): Likewise.
3370 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3371 defined.
3372 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3373 deprecated_init_frame_pc, deprecated_store_struct_return,
3374 deprecated_extract_return_value, deprecated_store_return_value,
3375 deprecated_frame_chain, deprecated_frame_saved_pc,
3376 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3377 deprecated_register_virtual_size,
3378 deprecated_max_register_raw_size,
3379 deprecated_max_register_virtual_size,
3380 deprecated_register_virtual_type, deprecated_register_size,
3381 deprecated_register_byte, deprecated_register_bytes,
3382 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3383 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3384 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3385 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3386 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3387 deprecated_push_dummy_frame, deprecated_pop_frame,
3388 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3389 only if SYSCALL_TRAP is defined. Set extract_return_value,
3390 store_return_value, extract_struct_value_address, register_type,
3391 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3392 predicates.
3393 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3394 M68K_MAX_REGISTER_SIZE): Define.
3395 (struct m68k_sigtramp_info): Define.
3396 (struct gdbarch_tdep): Add get_sigtramp_info.
3397 * m68klinux-nat.c (fetch_register): Use register_size instead of
3398 REGISTER_RAW_SIZE. Don't put assignment in if.
3399 (store_register): Likewise.
3400 (fetch_inferior_registers): Likewise.
3401 (store_inferior_registers): Likewise.
3402 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3403 (m68k_linux_frame_saved_pc): Delete.
3404 (m68k_linux_sigcontext_reg_offset,
3405 m68k_linux_ucontext_reg_offset): Define.
3406 (m68k_linux_get_sigtramp_info): New function.
3407 (m68k_linux_extract_return_value): Rewrite using regcache.
3408 (m68k_linux_store_return_value): Likewise.
3409 (m68k_linux_extract_struct_value_address): Likewise.
3410 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3411 Don't set deprecated_frame_saved_pc,
3412 deprecated_extract_return_value, deprecated_store_return_value,
3413 deprecated_extract_struct_value_address. Set
3414 extract_return_value, store_return_value,
3415 extract_struct_value_address.
3416
eb8bc282
AC
34172003-07-07 Andrew Cagney <cagney@redhat.com>
3418
3419 * expprint.c: Include "user-regs.h" instead of "frame.h".
3420 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3421 frame_map_regnum_to_name.
3422 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3423 (frame_map_name_to_regnum): Simplify, call
3424 user_reg_map_name_to_regnum.
3425 (frame_map_regnum_to_name): Simplify, call
3426 user_reg_map_regnum_to_name.
3427 (frame_register_unwind): Update.
3428 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3429 (_initialize_frame_reg): Call user_reg_add_builtin.
3430 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3431 (value_of_register): Use value_of_user_reg.
3432 * eval.c (evaluate_subexp_standard): Update.
3433 * parse.c (write_dollar_variable): Update.
3434 * d10v-tdep.c (d10v_print_registers_info): Update.
3435 * infcmd.c (registers_info): Update.
3436 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3437 (builtin_regs_h): Delete macro.
3438 (user_regs_h): Define.
3439 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3440 (builtin-regs.o): Delete target.
3441 (user-regs.o): Specify dependencies.
3442 (expprint.o): Update dependencies.
3443 (findvar.o): Update dependencies.
3444 (frame.o): Update dependencies.
3445 (std-regs.o): Update dependencies.
3446
9f476a01
CF
34472003-07-06 Christopher Faylor <cgf@redhat.com>
3448
3449 * win32-nat.c (solib_symbols_add): Use one variable for all section
3450 address stuff. Pass variable rather than address of variable to
3451 safe_symbol_file_add.
3452
a731b831
AS
34532003-07-06 Andreas Schwab <schwab@suse.de>
3454
3455 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3456
9f83329d
JB
34572003-07-04 Joel Brobecker <brobecker@gnat.com>
3458
3459 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3460
27e28cc5
KW
34612003-07-04 Kris Warkentin <kewarken@qnx.com>
3462
3463 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3464
34652003-07-04 Kris Warkentin <kewarken@qnx.com>
3466
3467 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3468 * config/i386/nto.mh: New file.
3469 * config/i386/nm-nto.h: New file.
3470 * configure.host: Add i[3456]86-*-nto*.
3471
100f2e98
JB
34722003-07-03 Joel Brobecker <brobecker@gnat.com>
3473
3474 * remote-vx.c (vx_add_symbols): Fix compilation error.
3475
e23457df
AC
34762003-07-03 Andrew Cagney <cagney@redhat.com>
3477
3478 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3479 * gdbarch.h, gdbarch.c: Re-generate.
3480 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3481 (legacy_register_name): Declare.
3482 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3483 (REGISTER_NAME): Define.
3484 * sparc-tdep.c (legacy_register_name): New function.
3485 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3486 (REGISTER_NAME): Define.
3487 (hppa64_register_name): Declare.
3488 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3489 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3490 (hppa64_register_name): New function.
3491 (hppa_register_name): New function.
3492 * arch-utils.c (legacy_register_name): Delete.
3493 * arch-utils.h (legacy_register_name): Delete.
3494
38caaeec
DJ
34952003-07-03 Daniel Jacobowitz <drow@mvista.com>
3496
3497 * cli/cli-interp.c (cli_interpreter_resume): Update the
3498 cli_uiout's stream to gdb_stdout.
3499
dadd712e
AC
35002003-07-03 Andrew Cagney <cagney@redhat.com>
3501
3502 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3503 predicate.
3504 * gdbarch.h, gdbarch.c: Re-generate.
3505 * regcache.c (init_regcache_descr): Use legacy code when either
3506 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3507
c7f1390e
DJ
35082003-07-02 Daniel Jacobowitz <drow@mvista.com>
3509
3510 * NEWS: Move "set logging" entry into GDB 6.0 section.
3511
4bc8c588
JB
35122003-07-02 Jim Blandy <jimb@redhat.com>
3513
a9dd42f1
JB
3514 * s390-tdep.c (struct frame_extra_info): new member:
3515 'stack_bought_valid'.
3516 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3517 initialize fextra_info->stack_bought.
3518 (s390_frameless_function_invocation): Don't trust the value of
3519 fextra_info_ptr->stack_bought unless
3520 fextra_info->stack_bought_valid is set.
3521
4bc8c588
JB
3522 New S390 prologue analyzer.
3523 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3524 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3525 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3526 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3527 compute_x_addr, s390_on_stack, s390_store,
3528 s390_get_signal_frame_info): New functions.
3529 (S390_NUM_SPILL_SLOTS): New macro.
3530 (s390_get_frame_info): Rewritten.
3531 (is_arg_reg): Deleted.
3532
3533 Break out the decoding of S/390 instructions into separate
3534 functions, to make it more legible, and easier to check
3535 against the spec.
3536 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3537 is_rx, is_rxe): New functions.
3538 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3539 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3540 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3541 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3542 enums for opcode values. (Is this an improvement?)
3543
fd13a04a
AC
35442003-07-02 Andrew Cagney <cagney@redhat.com>
3545
3546 * i386-tdep.c: Revert change committed as part of trad-frame code
3547 below.
3548
3f8091c1
DJ
35492003-07-02 Daniel Jacobowitz <drow@mvista.com>
3550
3551 * breakpoint.c (insert_catchpoint): Make static.
3552
8dd5115e
AS
35532003-07-02 Andreas Schwab <schwab@suse.de>
3554
3555 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3556 former ia64_push_arguments and ia64_push_return_address, and use
3557 regcache functions instead of read/write_register.
3558 (ia64_gdbarch_init): Set push_dummy_call instead of
3559 deprecated_push_arguments and deprecated_push_return_address.
3560
a2229c23
AJ
35612003-07-01 Andreas Jaeger <aj@suse.de>
3562
3563 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3564 before the call.
3565 Set %rax only to number of SSE registers used.
3566
3b3850e8
AC
35672003-07-01 Andrew Cagney <cagney@redhat.com>
3568
3569 * trad-frame.h: Update comments, a -1 .addr is reserved.
3570 (trad_frame_value_p, trad_frame_addr_p): Declare.
3571 (trad_frame_reg_p): Declare.
3572 (trad_frame_set_value): Rename trad_frame_register_value.
3573 (trad_frame_set_unknown): Declare.
3574 * trad-frame.c (trad_frame_realreg_p): New function.
3575 (trad_frame_addr_p, trad_frame_value_p): New function.
3576 (trad_frame_set_unknown): New function.
3577 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3578 (trad_frame_prev_register): Use trad_frame_realreg_p,
3579 trad_frame_addr_p and trad_frame_value_p.
3580 (trad_frame_set_value): Rename trad_frame_register_value.
3581 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3582 and trad_frame_set_value.
a2229c23 3583
4d819d0e
JB
35842003-06-30 Jim Blandy <jimb@redhat.com>
3585
3586 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3587 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3588 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3589 for 16 registers, and then 32 more bytes.
3590 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3591 New macros.
3592 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3593 Move up in the file, since it's now used by is_simple_arg.
3594 (is_simple_arg): Don't assume registers are four bytes long.
3595 Exclude all double arguments. Extended floats are not simple
3596 args.
3597 (is_power_of_two): New function.
3598 (pass_by_copy_ref): Call is_power_of_two, and check that the
3599 length fits in a register, rather than listing all the acceptable
3600 sizes. Extended floats are not passed by reference.
3601 (s390_push_arguments): Don't assume registers are four bytes long.
3602 Reserve an argument register to point to the buffer for structures
3603 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3604 S390_STACK_FRAME_OVERHEAD.
3605
1ad828f1
AS
36062003-06-30 Andreas Schwab <schwab@suse.de>
3607
3608 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3609 format error message.
3610
39b00981
JB
36112003-06-30 Joel Brobecker <brobecker@gnat.com>
3612
3613 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3614
b2a7f303
DC
36152003-06-30 David Carlton <carlton@kealia.com>
3616
3617 Band-aid for PR c++/1245.
3618 * Makefile.in (cp-support.o): Depend on complaints_h.
3619 * cp-support.c: Include complaints.h. Add declaration for
3620 find_last_component.
3621 (cp_find_first_component): Separate code into
3622 cp_find_first_component_aux.
3623 (cp_find_first_component_aux): Call demangled_name_complaint.
3624 (demangled_name_complaint): New.
3625
a257b5bb
AC
36262003-06-30 Andrew Cagney <cagney@redhat.com>
3627
3628 * remote.c (remote_write_bytes): Explicitly compute and then use
3629 the payload size. Update comments to reflect. Fixes problem of
3630 GDB not sending small packets as found by Fred Fish.
3631
0a2cfde4
AC
36322003-06-30 Andrew Cagney <cagney@redhat.com>
3633
3634 * remote.c (remote_async_wait): Fix -Wformat problem.
3635
3fcb8548
AC
36362003-06-29 Andrew Cagney <cagney@redhat.com>
3637
3638 * remote.c (remote_wait): Call error, and not warning, when the
3639 packet is corrupt.
3640 (remote_async_wait): Ditto.
3641
9f9970a3
DJ
36422003-06-29 Daniel Jacobowitz <drow@mvista.com>
3643
3644 * sparc-tdep.c (sparc_y_regnum): Make external again.
3645
83a8ccca
DJ
36462003-06-29 Daniel Jacobowitz <drow@mvista.com>
3647
3648 * cli/cli-logging.c (pop_output_files): Add void to function
3649 definition.
3650
d2cf594a
AC
36512003-06-29 Andrew Cagney <cagney@redhat.com>
3652
3653 * frame.c (frame_register_unwind): Use unsigned char when dumping
3654 the buffer contents.
3655
0fac0b41
DJ
36562003-06-28 Daniel Jacobowitz <drow@mvista.com>
3657
3658 * cli/cli-logging.c: New file.
3659 * cli-out.c (struct ui_out_data): Add original_stream.
3660 (cli_redirect): New function.
3661 (cli_ui_out_impl): Add cli_redirect.
3662 (cli_out_new): Initialize original_stream.
3663 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3664 (uo_redirect, ui_out_redirect): New.
3665 * ui-out.h (struct ui_out_impl): Add redirect member.
3666 (redirect_ftype): New.
3667 (ui_out_redirect): Add prototype.
3668 * Makefile.in: Add rules for cli-logging.c.
3669 * NEWS: Mention "set logging".
3670
88a07d7c
EZ
36712003-06-27 Elena Zannoni <ezannoni@redhat.com>
3672
3673 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3674
4eb58876
AC
36752003-06-27 Andrew Cagney <cagney@redhat.com>
3676
3677 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3678 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3679 * avr-tdep.c (avr_call_dummy_address): Delete function.
3680 (avr_gdbarch_init): Do not set call_dummy_address.
3681
1549f619
EZ
36822003-06-27 Elena Zannoni <ezannoni@redhat.com>
3683
3684 * symfile.c (syms_from_objfile): Move variables to inner block.
3685 Move the checks for the non-mainline case a bit earlier to avoid
3686 doing some useless computations.
3687
3cb3398d
EZ
36882003-06-27 Elena Zannoni <ezannoni@redhat.com>
3689
3690 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3691
3799ccc6
EZ
36922003-06-26 Elena Zannoni <ezannoni@redhat.com>
3693
3694 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3695 sections.
3696
ce1f6491
MC
36972003-06-26 Michael Chastain <mec@shout.net>
3698
3699 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3700 gdb/testsuite/gdb.c++/pr-1210.exp.
3701
d958dfd0
AC
37022003-06-26 Andrew Cagney <cagney@redhat.com>
3703
3704 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3705 altivec_expression.h and altivec_registers.h.
3706
d31431ed
AC
37072003-06-26 Andrew Cagney <cagney@redhat.com>
3708
3709 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3710 info->mach when MIPS16. Patch suggested by Fred Fish.
3711
714b1282
AC
37122003-06-26 Andrew Cagney <cagney@redhat.com>
3713
3714 * utils.c (internal_vproblem): Print the problem to a reason
3715 buffer and then pass to query. Make the msg variable more local.
3716
42efa47a
AC
37172003-06-26 Andrew Cagney <cagney@redhat.com>
3718
3719 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3720 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3721 * gdbarch.h, gdbarch.c: Re-generate.
3722 * frame-base.c (default_frame_args_address): Update. Use
3723 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3724 not available.
3725 (default_frame_locals_address): Ditto for
3726 DEPRECATED_FRAME_LOCALS_ADDRESS.
3727 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3728 (vax_frame_num_args): Update.
3729 (vax_gdbarch_init): Update.
3730 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3731 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3732 * mcore-tdep.c (mcore_gdbarch_init): Update.
3733 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3734 * ia64-tdep.c (ia64_gdbarch_init): Update.
3735 * symtab.h (address_class): Update comments.
3736 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3737 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3738 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3739 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3740 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3741 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3742 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3743 * alpha-mdebug-tdep.c: Update.
3744 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3745
8ffd9b1b
AJ
37462003-06-26 Andreas Jaeger <aj@suse.de>
3747
3748 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3749 of SSE registers so that varargs functions work. Rework handling
3750 of passing arguments on the stack.
3751 (x86_64_store_return_value): Return double and float values in SSE
3752 register.
3753
e8ac10a6
MC
37542003-06-24 Michael Chastain <mec@shout.net>
3755
3756 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3757 the "constructor breakpoints ignored" bug.
3758
986af8e6
DC
37592003-06-25 David Carlton <carlton@kealia.com>
3760
3761 * MAINTAINERS: Update e-mail address.
3762
d64558a5
JB
37632003-06-24 Jim Blandy <jimb@redhat.com>
3764
e538d2d7
JB
3765 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3766
02631ec0
JB
3767 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3768 function.
3769 (ppc_linux_init_abi): Register it as the
3770 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3771
e716d87a
JB
3772 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3773 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3774 method.
3775
d64558a5
JB
3776 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3777 (ppc64_standard_linkage_target): Use it.
3778
449a5da4
AC
37792003-06-23 Andrew Cagney <cagney@redhat.com>
3780
3781 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3782 for 0 "int0" and 4 "int32" sized registers.
3783 * gdbtypes.c (builtin_type_int0): Define.
3784 (build_gdbtypes): Initialize builtin_type_int0.
3785 * gdbtypes.h (builtin_type_int0): Declare.
3786
b2a02dda
SC
37872003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3788
3789 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3790 as characters are unsigned.
3791
fba3138e
DJ
37922003-06-22 Daniel Jacobowitz <drow@mvista.com>
3793
3794 PR gdb/1179
3795 * dwarfread.c (struct_type): Skip static fields without crashing.
3796
f6c8180b
AC
37972003-06-22 Andrew Cagney <cagney@redhat.com>
3798
3799 GDB 6.0 branch created.
f2c06f52
AC
3800 * README: Update.
3801 * PROBLEMS: Update. Empty.
3802 * NEWS: Update.
f6c8180b 3803
ae822768
DJ
38042003-06-22 Daniel Jacobowitz <drow@mvista.com>
3805
3806 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3807 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3808
261de166
AC
38092003-06-22 Andrew Cagney <cagney@redhat.com>
3810
3811 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3812 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3813 Velikov.
3814
30e94205
DJ
38152003-06-22 Daniel Jacobowitz <drow@mvista.com>
3816
3817 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3818 compilers.
3819
9e14d721
DJ
38202003-06-21 Daniel Jacobowitz <drow@mvista.com>
3821
3822 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3823 argument of val_print.
3824 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3825 to the address argument of baseclass_offset or target_read_memory.
3826 Do add it to the argument of cp_print_value_fields.
3827
a4b8ebc8
AC
38282003-06-21 Andrew Cagney <cagney@redhat.com>
3829
3830 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3831 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3832 instead of 0..NUM_REGS.
3833 (mips_register_reggroup_p): New function.
3834 (mips_pseudo_register_write): New function.
3835 (mips_pseudo_register_read): New function.
3836 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3837 based on the register's type.
3838 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3839 cooked.
3840 (mips_get_saved_register): Simplify. Assert that REGNO is a
3841 pseudo / cooked.
3842 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3843 (mips_register_type): Replace mips_register_virtual_type. Map
3844 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3845 when available.
3846 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3847 that the register is cooked / virtual.
3848 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3849 Only get the extra info when needed.
3850 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3851 (mips32_heuristic_proc_desc): Fetch the cooked register.
3852 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3853 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3854 (mips_print_register): Use gdbarch_register_type, instead of
3855 REGISTER_VIRTUAL_TYPE.
3856 (print_gp_register_row): Use gdbarch_register_type, instead of
3857 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3858 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3859 Print the pseudo / cooked registers.
3860 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3861 Print the pseudo / cooked registers.
3862 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3863 REG_NUM is pseudo / cooked.
3864 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3865 (mips_n32n64_xfer_return_value): Ditto.
3866 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3867 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3868 (mips_register_sim_regno): New function.
3869 (mips_gdbarch_init): Set deprecated_register_byte,
3870 register_group_p, pseudo_register_write, pseudo_register_read,
3871 register_sim_regno, and num_pseudo_regs. Set register_type,
3872 instead of register_virtual_type.
3873 * Makefile.in (mips-tdep.o): Update dependencies.
3874 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3875 REGISTER_VIRTUAL_TYPE.
3876 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3877 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3878 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3879 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3880 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3881
325ed089
DJ
38822003-06-21 Daniel Jacobowitz <drow@mvista.com>
3883
3884 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3885 * cli/cli-cmds.c: Include "gdb_vfork.h".
3886 (shell_escape): Use vfork.
3887
f0e7d0e8
AC
38882003-06-21 Andrew Cagney <cagney@redhat.com>
3889
c57bb9fa
AC
3890 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3891 32 bit floating-point register saves.
3892
6e51443a
AC
3893 * frame.h (deprecated_unwind_get_saved_register): Delete.
3894 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3895 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3896 and deprecated_get_next_frame_hack instead of
3897 deprecated_unwind_get_saved_register.
3898
ed183c7c
AC
3899 * mips-tdep.c (mips_dump_tdep): Do not print
3900 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3901
f0e7d0e8
AC
3902 * frame.c (get_frame_register): New function.
3903 (frame_unwind_register_signed): New function.
3904 (get_frame_register_signed): New function.
3905 (frame_unwind_register_unsigned): New function.
3906 (get_frame_register_unsigned): New function.
3907 * frame.h: Add comments on naming schema.
3908 (get_frame_register, frame_unwind_register_signed): Declare.
3909 (get_frame_register_signed, get_frame_register_signed): Declare.
3910 (frame_unwind_register_unsigned): Declare.
3911 (get_frame_register_unsigned): Declare.
3912
2224d941
TR
39132003-06-20 Theodore A. Roth <troth@openavr.org>
3914
3915 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3916
8619218d
TR
39172003-06-20 Theodore A. Roth <troth@openavr.org>
3918
3919 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3920 (avr_read_sp): Ditto.
3921
0b1b50c0
DJ
39222003-06-20 Daniel Jacobowitz <drow@mvista.com>
3923
3924 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3925 * config/arm/nm-linux.h: Likewise.
3926 * config/arm/tm-linux.h: Likewise.
3927 * config/ia64/nm-linux.h: Likewise.
3928 * config/ia64/tm-ia64.h: Likewise.
3929 * config/s390/tm-linux.h: Likewise.
3930 * config/s390/tm-s390.h: Likewise.
3931 * s390-nat.c: Likewise.
3932 * s390-tdep.c: Likewise.
3933
3934 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3935 * config/ia64/linux.mt: Likewise.
3936 * config/m68k/linux.mh: Likewise.
3937 * config/mips/linux.mt: Likewise.
3938 * config/powerpc/linux.mh: Likewise.
3939 * config/sh/linux.mt: Likewise.
3940
c8c18e65
KW
39412003-06-19 Kris Warkentin <kewarken@qnx.com>
3942
3943 * solib.c (solib_open): Change tests for whether to search
3944 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3945 comments.
3946
dcccef2e
TR
39472003-06-19 Theodore A. Roth <troth@openavr.org>
3948
3949 * avr-tdep.c (avr_frame_address): Delete function.
3950 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3951 set_gdbarch_frame_args_address.
3952
5861a190
AC
39532003-06-19 Andrew Cagney <cagney@redhat.com>
3954
3955 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3956 (REGISTER_CONVERT_FROM_TYPE): Delete.
3957 (mips_register_convert_to_type): Delete declaration.
3958 (mips_register_convert_from_type): Delete declaration.
3959 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3960 kernel/.
3961
0274a8ce
MS
39622003-06-19 Michael Snyder <msnyder@redhat.com>
3963
3964 * linux-nat.h: New file.
3965 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 3966 * lin-lwp.c: Include linux-nat.h.
0274a8ce 3967 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 3968 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
3969 (linux_make_note_section): Iterate over lwps instead of threads.
3970 (linux_do_thread_registers): Use lwp instead of merged pid.
3971 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 3972 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
3973 Add dependency on linux_nat_h.
3974
adf5f719
TR
39752003-06-19 Theodore A. Roth <troth@openavr.org>
3976
3977 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3978
6766a268
DJ
39792003-06-19 Daniel Jacobowitz <drow@mvista.com>
3980
3981 * varobj.c (get_type, get_target_type): Use check_typedef.
3982
1171114a
DJ
39832003-06-19 Daniel Jacobowitz <drow@mvista.com>
3984
3985 * breakpoint.c (insert_catchpoint): Call internal_error.
3986
adcf68a2
TR
39872003-06-19 Theodore A. Roth <troth@openavr.org>
3988
3989 * avr-tdep.c (avr_push_dummy_code): Delete function.
3990 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3991
ea67f13b
DJ
39922003-06-19 Daniel Jacobowitz <drow@mvista.com>
3993
3994 * arch-utils.c (default_prepare_to_proceed): Remove.
3995 (generic_prepare_to_proceed): Remove.
3996 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3997 (generic_prepare_to_proceed): Remove prototype.
3998 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3999 * gdbarch.c: Regenerate.
4000 * gdbarch.h: Regenerate.
4001 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4002 * hppah-nat.c (hppa_switched_threads): Remove.
4003 * infrun.c (prepare_to_proceed): New static function, copied from
4004 generic_prepare_to_proceed. Remove select_it argument.
4005 (proceed): Call prepare_to_proceed.
4006 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4007 variables.
4008 (ptrace_wait): Don't set the removed variables.
4009 (hppa_switched_threads): Remove.
4010 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4011 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4012 (lin_lwp_prepare_to_proceed): Remove prototype.
4013 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4014 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4015
4add8633
TR
40162003-06-18 Theodore A. Roth <troth@openavr.org>
4017
4018 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4019 trad-frame.h.
4020 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4021 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4022 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4023 (AVR_PROLOGUE_*): Enumerate prologue types.
4024 (struct frame_extra_info): Remove.
4025 (struct avr_unwind_cache): Define.
4026 (avr_write_sp): Delete function.
4027 (avr_read_fp): Ditto.
4028 (avr_init_extra_frame_info): Ditto.
4029 (avr_pop_frame): Ditto.
4030 (avr_frame_saved_pc): Ditto.
4031 (avr_saved_pc_after_call): Ditto.
4032 (avr_push_return_address): Ditto.
4033 (avr_frame_chain): Ditto.
4034 (avr_store_struct_return): Ditto.
4035 (avr_push_arguments): Ditto.
4036 (avr_scan_prologue): Update comments. Changed to set up the info for
4037 cache unwinding. Now returns end of prologue PC.
4038 (avr_skip_prologue): Better handling of functions lacking a prologue
4039 by using avr_scan_prologue.
4040 (avr_scan_arg_moves): New function.
4041 (avr_saved_regs_unwinder): Ditto.
4042 (avr_frame_unwind_cache): Ditto.
4043 (avr_unwind_pc): Ditto.
4044 (avr_frame_this_id): Ditto.
4045 (avr_frame_prev_register): Ditto.
4046 (avr_frame_p): Ditto.
4047 (avr_frame_base_address ): Ditto.
4048 (avr_unwind_dummy_id): Ditto.
4049 (avr_push_dummy_code): Ditto.
4050 (push_stack_item): Ditto.
4051 (pop_stack_item): Ditto.
4052 (avr_push_dummy_call): Ditto.
4053 (struct stack_item): Define.
4054 (avr_frame_unwind): Declare structure.
4055 (avr_frame_base): Ditto.
4056 (avr_gdbarch_init): Remove calls to
4057 set_gdbarch_deprecated_init_frame_pc,
4058 set_gdbarch_deprecated_target_read_fp,
4059 set_gdbarch_deprecated_dummy_write_sp,
4060 set_gdbarch_deprecated_fp_regnum,
4061 set_gdbarch_deprecated_push_arguments,
4062 set_gdbarch_deprecated_push_return_address,
4063 set_gdbarch_deprecated_pop_frame,
4064 set_gdbarch_deprecated_store_struct_return,
4065 set_gdbarch_deprecated_frame_init_saved_regs,
4066 set_gdbarch_deprecated_init_extra_frame_info,
4067 set_gdbarch_deprecated_frame_chain,
4068 set_gdbarch_deprecated_frame_saved_pc,
4069 set_gdbarch_deprecated_saved_pc_after_call.
4070 Add calls to set_gdbarch_push_dummy_call,
4071 set_gdbarch_push_dummy_code,
4072 frame_unwind_append_predicate,
4073 frame_base_set_default,
4074 set_gdbarch_unwind_dummy_id,
4075 set_gdbarch_unwind_pc.
4076 Wrap a long line.
4077
7be04a68
MS
40782003-06-18 Corinna Vinschen <vinschen@redhat.com>
4079
4080 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4081 registers for H8/300S.
4082 (h8300_print_registers_info): Ditto.
8ffd9b1b 4083 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 4084
ae087d01
DJ
40852003-06-18 Daniel Jacobowitz <drow@mvista.com>
4086
4087 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4088 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4089 (lin_lwp_wait): Likewise. Update comments.
4090 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4091 (pull_pid_from_list, linux_record_stopped_pid): New.
4092
07d8f827
SC
40932003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4094
4095 * ada-lang.c (scan_discrim_bound): Name first argument.
4096 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4097 declared by ALL_BLOCK_SYMBOLS.
4098
7cb47b14
SC
40992003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4100
4101 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4102 ("regcache.h"): Include it.
4103 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4104
6ad8ae5c
DJ
41052003-06-17 Daniel Jacobowitz <drow@mvista.com>
4106
4107 * NEWS: Mention gdbserver detach change and "disconnect" command.
4108 * infcmd.c (disconnect_command): New function.
4109 (_initialize_infcmd): Add ``disconnect'' command.
4110 * remote.c (remote_async_detach): Delete.
4111 (remote_detach): Merge remote_async_detach.
4112 (remote_disconnect): New.
4113 (init_remote_ops): Set to_disconnect.
4114 (init_remote_cisco_ops): Likewise.
4115 (init_remote_async_ops): Likewise. Use remote_detach.
4116 * target.c (cleanup_target): Default to_disconnect.
4117 (update_current_target): Inherit to_disconnect.
4118 (target_disconnect, debug_to_disconnect): New functions.
4119 (setup_target_debug): Set to_disconnect.
4120 * target.h (struct target_ops): Add to_disconnect.
4121 (target_disconnect): Add prototype.
4122
687595f9
DJ
41232003-06-17 Daniel Jacobowitz <drow@mvista.com>
4124
4125 * breakpoint.c (insert_catchpoint): New function.
4126 (insert_breakpoints): Use catch_exceptions to call
4127 insert_catchpoint. Disable catchpoints if they fail to insert.
4128
29239a8f
DJ
41292003-06-17 Daniel Jacobowitz <drow@mvista.com>
4130
4131 * symfile.c (reread_symbols): Clear sym_private.
4132
2cdf3c63
AC
41332003-06-17 Andrew Cagney <cagney@redhat.com>
4134
4135 * trad-frame.h (struct frame_info): Add opaque declaration.
4136 * remote-fileio.h (struct cmd_list_element): Add opaque
4137 declaration.
4138 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4139 comments.
4140
cf0e1e0d
DJ
41412003-06-17 Daniel Jacobowitz <drow@mvista.com>
4142
4143 * remote.c (remote_prepare_to_store): Replace call to
4144 deprecated_read_register_bytes with multiple regcache_raw_read
4145 calls.
4146
192cdb19
KW
41472003-06-17 Kris Warkentin <kewarken@qnx.com>
4148
4149 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4150 (nto_find_and_open_solib): Likewise.
4151 (nto_init_solib_absolute_prefix): Likewise.
4152 (_initialize_nto_tdep): Fix indentation.
4153
89929b45
KW
41542003-06-17 Kris Warkentin <kewarken@qnx.com>
4155
4156 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4157
46019f27
KW
41582003-06-17 Kris Warkentin <kewarken@qnx.com>
4159
4160 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4161
1a38736e
JB
41622003-06-17 Jim Blandy <jimb@redhat.com>
4163
4164 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4165
3605c34a
TR
41662003-06-16 Theodore A. Roth <troth@openavr.org>
4167
4168 * avr-tdep.c (avr_extract_return_value): New function.
4169 (avr_gdbarch_init): Set extract_return_value method.
4170
870b3035
AC
41712003-06-16 Andrew Cagney <cagney@redhat.com>
4172
4173 * frame.h (deprecated_get_next_frame_hack): Declare.
4174 * frame.c (legacy_saved_regs_prev_register): Only require
4175 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4176 there are always saved regs.
4177 (deprecated_generic_get_saved_register): Do not require
4178 DEPRECATED_FRAME_INIT_SAVED_REGS.
4179 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4180 use frame ID unwind instead.
4181 (deprecated_get_next_frame_hack): New function.
4182
63d47a7d
CV
41832003-06-16 Corinna Vinschen <vinschen@redhat.com>
4184
4185 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4186 (h8300_push_dummy_call): ...this function. Some minor optimization.
4187 (h8300_push_return_address): Remove.
4188 (h8300_gdbarch_init): Remove calls to
4189 set_gdbarch_deprecated_dummy_write_sp,
4190 set_gdbarch_deprecated_push_arguments and
4191 set_gdbarch_deprecated_push_return_address.
4192 Add call to set_gdbarch_push_dummy_call.
4193
4bb1dc5e
CV
41942003-06-16 Corinna Vinschen <vinschen@redhat.com>
4195
4196 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4197 (E_PSEUDO_EXR_REGNUM): Ditto.
4198 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 4199 registers into safe registers.
4bb1dc5e
CV
4200 (h8300_skip_prologue): Check for stm instruction to push registers
4201 used for register variables onto stack.
4202 (gdb_print_insn_h8300): Remove.
4203 (h8300_examine_prologue): Add a comment.
4204 (h8300_register_name): Take pseudo registers into account.
4205 (h8300s_register_name): Ditto.
4206 (h8300sx_register_name): Ditto.
4207 (h8300_print_register): Ditto.
4208 (h8300_print_registers_info): Define "nice" printing order.
4209 (h8300_saved_pc_after_call): Take pseudo registers into account.
4210 (h8300_register_type): Ditto. Return type used for remote connection
4211 when requesting real CCR or EXR register, return actual type when
4212 requesting pseudo CCR or EXR.
4213 (h8300_pseudo_register_read): New function.
4214 (h8300_pseudo_register_write): Ditto.
4215 (h8300_dbg_reg_to_regnum): Ditto.
4216 (h8300s_dbg_reg_to_regnum): Ditto.
4217 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4218 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4219 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4220 set_gdbarch_print_insn architecture dependent.
4221 Call set_gdbarch_pseudo_register_read and
4222 set_gdbarch_pseudo_register_write.
4223 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4224
a59fe496
AC
42252003-06-16 Andrew Cagney <cagney@redhat.com>
4226
4227 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4228 * gdbarch.h, gdbarch.c: Re-generate.
4229 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4230 * s390-tdep.c (s390_gdbarch_init): Update.
4231 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4232 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4233 * mips-tdep.c (mips_gdbarch_init): Update.
4234 * mcore-tdep.c (mcore_gdbarch_init): Update.
4235 * cris-tdep.c (cris_gdbarch_init): Update.
4236 * infcall.c (call_function_by_hand): Update.
4237 * ia64-tdep.c (ia64_push_arguments): Update comment.
4238 * frame.c (legacy_get_prev_frame): Do not assume
4239 SAVE_DUMMY_FRAME_TOS_P.
4240 * dummy-frame.c (find_dummy_frame): Update comment.
4241
6f4e5a41
AC
42422003-06-16 Andrew Cagney <cagney@redhat.com>
4243
4244 * regcache.c (do_cooked_read): Do not use register_valid_p.
4245
72fab697
TR
42462003-06-15 Theodore A. Roth <troth@openavr.org>
4247
4248 * avr-tdep.c (avr_register_type): Remove a blank line.
4249 (avr_scan_prologue): Correct some comments.
4250
e3d8b004
TR
42512003-06-15 Theodore A. Roth <troth@openavr.org>
4252
4253 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4254 prologue types.
8ffd9b1b 4255 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
4256 option.
4257 Add code to scan -mcall-prologues for mega devices.
4258
866b76ea
TR
42592003-06-15 Theodore A. Roth <troth@openavr.org>
4260
4261 * avr-tdep.c (avr_register_byte): Delete function.
4262 (avr_register_raw_size): Delete function.
4263 (avr_register_virtual_size): Delete function.
4264 (avr_register_virtual_type): Delete function.
4265 (avr_register_type): New function.
4266 (avr_address_to_pointer): Remove unused code.
4267 (avr_read_fp): Need to read FP as two separate bytes due to change to
4268 avr_register_type() usage.
4269 (avr_gdbarch_init): Don't set deprecated_register_size.
4270 Don't set deprecated_register_bytes.
4271 Don't set deprecated_register_byte.
4272 Don't set deprecated_register_raw_size.
4273 Don't set deprecated_max_register_raw_size.
4274 Don't set deprecated_register_virtual_size.
4275 Don't set deprecated_max_register_virtual_size.
4276 Don't set deprecated_register_virtual_type.
4277 Set register_type method.
4278
3993f6b1
DJ
42792003-06-15 Daniel Jacobowitz <drow@mvista.com>
4280
4281 * Makefile.in (linux-nat.o): Add rule.
4282 * linux-nat.c: New file.
4283 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4284 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4285 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4286 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4287 * config/arm/linux.mh (NATDEPFILES): Likewise.
4288 * config/i386/linux.mh (NATDEPFILES): Likewise.
4289 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4290 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4291 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4292 * config/mips/linux.mh (NATDEPFILES): Likewise.
4293 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4294 * config/s390/s390.mh (NATDEPFILES): Likewise.
4295 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4296
786a90bb
MK
42972003-06-15 Mark Kettenis <kettenis@gnu.org>
4298
4299 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4300 replace out-of-date comment.
4301
3bd3f01e
AC
43022003-06-15 Andrew Cagney <cagney@redhat.com>
4303
4304 * rdi-share/host.h (Fail): Change to a varargs function.
4305 * remote-rdi.c (Fail): Update.
8ffd9b1b 4306
de5b9bb9
MK
43072003-06-15 Mark Kettenis <kettenis@gnu.org>
4308
4309 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4310 (i386_convert_register_p, i386_register_to_value,
4311 i386_register_from_value): Handle types longer than 8 bytes.
4312
d532c08f
MK
43132003-06-15 Mark Kettenis <kettenis@gnu.org>
4314
4315 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4316 Move floating-point code to new function in i387-tdep.c.
4317 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4318 New functions containing code moved here from i386-tdep.c.
4319 * i387-tdep.h: Add opaque declaration for `struct type'.
4320 (i387_register_to_value, i387_value_to_register): New prototypes.
4321 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4322 (x86_64_init_abi): Set convert_register_p, register_to_value and
4323 value_to_register here.
8ffd9b1b 4324
42c466d7
AC
43252003-06-14 Andrew Cagney <cagney@redhat.com>
4326
4327 * mips-tdep.c (mips_register_to_value): Make static.
4328 (mips_value_to_register): Make static.
4329 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4330 * ia64-tdep.c (ia64_register_raw_size): Make static.
4331 (ia64_register_virtual_size): Make static.
4332 (ia64_register_byte): Make static.
4333 * i387-tdep.c: Include "i387-tdep.h".
4334 (print_387_control_word): Delete function.
4335 (print_387_status_word): Delete function.
4336 (print_387_status_bits): Delete function.
4337 (print_387_control_bits): Delete function.
4338 * Makefile.in (i387-tdep.o): Update dependencies.
4339 * rdi-share/host.h (Fail): Declare.
4340 * remote-rdi.c (Fail): Update to match declaration.
4341
2a9cda49
AC
43422003-06-14 Andrew Cagney <cagney@redhat.com>
4343
4344 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4345 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4346 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4347 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4348 * README: Delete reference to remote-array.
4349 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4350 (remote-array.o): Delete target.
4351 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4352 * remote-array.c: Delete file.
4353
ff2e87ac
AC
43542003-06-14 Andrew Cagney <cagney@redhat.com>
4355 Mark Kettenis <kettenis@gnu.org>
4356
4357 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4358 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4359 parameter with "frame".
4360 * gdbarch.h, gdbarch.c: Re-generate.
4361 * frame.h (put_frame_register): Declare.
4362 * frame.c (put_frame_register): New function.
4363 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4364 (legacy_register_to_value): Rewrite, use "frame" to get the
4365 register value.
4366 (legacy_value_to_register): Rewrite, use "frame" to find the
4367 register's location before storing.
4368 * arch-utils.h (legacy_convert_register_p): Update.
4369 (legacy_register_to_value, legacy_value_to_register): Update.
4370 * findvar.c (value_from_register): Rewrite, eliminate use of
4371 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4372 "frame" to REGISTER_TO_VALUE.
4373 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4374 lval_reg_frame_relative + lval_register branch of the switch. Do
4375 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4376 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4377 I386_EDI_REGNUM): New defines.
4378 (i386_next_regnum, i386_convert_register_p,
4379 i386_register_to_value, i386_value_to_register): New functions.
4380 (i386_register_convertible, i386_register_convert_to_virtual,
4381 i386_convert_to_raw): Remove functions.
4382 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4383 value_to_register instead of register_convertible,
4384 register_convert_to_virtual and register_convert_to_raw.
4385 * mips-tdep.c (mips_convert_register_p): New function.
4386 (mips_value_to_register): Replace mips_register_convert_from_type.
4387 (mips_register_to_value): Replace mips_register_convert_to_type.
4388 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4389 register_to_value.
4390 * alpha-tdep.c (alpha_convert_register_p): Update.
4391 (alpha_value_to_register): Update, store the register.
4392 (alpha_register_to_value): Update, fetch the register.
4393
98be1e77
TR
43942003-06-14 Theodore A. Roth <troth@openavr.org>
4395
4396 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4397 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4398 Don't set deprecated_call_dummy_words.
4399 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4400 Don't set remote_translate_xfer_address.
4401 (avr_io_reg_read_command): Remove commented out debug printf.
4402 Wrap a long line.
4403
57bc6122
TR
44042003-06-14 Theodore A. Roth <troth@openavr.org>
4405
4406 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4407 causes gdb to seg fault.
4408
eb01fc62
DJ
44092003-06-14 Daniel Jacobowitz <drow@mvista.com>
4410
4411 * sparc-nat.c (fetch_inferior_registers): Correct
4412 a reference to "registers".
4413
3b3e6bee
DJ
44142003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4415
4416 * Makefile.in (exc_request_U_h): Define
4417 (exc_request_S_h): Likewise.
4418 (msg_reply_S_h): Likewise.
4419 (msg_U_h): Likewise.
4420 (notify_S_h): Likewise.
4421 (process_reply_S_h): Likewise.
4422 (gnu-nat.o): Depend on gdb_obstack_h
4423 * gnu-nat.c: Include "gdb_obstack.h".
4424
b8de8283
AC
44252003-06-13 Andrew Cagney <cagney@redhat.com>
4426
4427 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4428 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 4429
f3be58bc
AC
44302003-06-13 Andrew Cagney <cagney@redhat.com>
4431
4432 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4433 when deprecated REGISTER macros can be deleted.
4434 * gdbarch.h, gdbarch.c: Re-generate.
4435
4c0122c8
JB
44362003-06-13 Jim Blandy <jimb@redhat.com>
4437
4438 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4439 Linux entry point symbols for _dl_debug_state, too.
4440
3e210248
AC
44412003-06-13 Andrew Cagney <cagney@redhat.com>
4442
4443 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4444 available, do not use the FP register, and always save the TOS.
4445 * dummy-frame.c (dummy_frame_this_id): Do not assert
4446 SAVE_DUMMY_FRAME_TOS.
4447 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4448 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4449 (i386_push_dummy_call): Add 8 to the returned SP.
4450 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4451 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4452 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4453 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4454 (x86_64_push_dummy_call): Return "sp + 16".
4455 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4456 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4457 save_dummy_frame_tos.
4458
0b65af49
JB
44592003-06-13 Jim Blandy <jimb@redhat.com>
4460
4461 * frv-tdep.c (frv_use_struct_convention): Delete static
4462 declaration for function deleted in my change of 2003-06-12.
4463
4ea2465e
TR
44642003-06-13 Theodore A. Roth <troth@openavr.org>
4465
4466 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4467 (avr_pointer_to_address): Shift code addrs left 1 bit.
4468 (avr_convert_from_func_ptr_addr): Delete function since operation is
4469 better handled by avr_address_to_pointer and avr_pointer_to_address.
4470 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4471
1581182a
MK
44722003-06-13 Mark Kettenis <kettenis@gnu.org>
4473
4474 From Kelley Cook <kelleycook@wideopenwest.com>:
4475 * configure.host: Accept i[34567]86 variants.
4476 * configure.tgt: Likewise.
4477 * nlm/configure.in: Likewise.
4478 * nlm/configure: Regenerated.
4479
7aa1783e
RE
44802003-06-13 Richard Earnshaw <rearnsha@arm.com>
4481
4482 * arm-tdep.c (solib-svr4.h): Dont' include it.
4483 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4484 * arm-linux-tdep.c: ... here. Make static.
4485 (arm_linux_init_abi): Register it.
4486 (solib-svr4.h): Include it.
4487 * Makefile.in: Update dependencies.
4488 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4489 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4490
0261a0d0
CV
44912003-06-13 Corinna Vinschen <vinschen@redhat.com>
4492
4493 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4494 indicate registers used for return values.
4495 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4496 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4497 members.
4498 (h8300_init_extra_frame_info): Ditto.
4499 (h8300_frame_locals_address): Removed.
4500 (h8300_frame_args_address): Removed.
4501 (h8300_extract_return_value): Use new regcache structure. Only care
4502 for 16 bit CPUs.
4503 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4504 (h8300_store_return_value): Use new regcache structure. Only care
4505 for 16 bit CPUs.
4506 (h8300h_store_return_value): Same function for 32 bit CPUs.
4507 (h8300_store_struct_return): Removed.
4508 (h8300_extract_struct_value_address): Use new regcache structure.
4509 (h8300h_extract_struct_value_address): Removed.
4510 (h8300_push_dummy_code): New function.
4511 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4512 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4513 set_gdbarch_store_return_value architecture dependent.
4514 Call set_gdbarch_push_dummy_code and
4515 set_gdbarch_extract_struct_value_address.
4516 Remove calls to set_gdbarch_frame_args_address,
4517 set_gdbarch_frame_locals_address,
4518 set_gdbarch_deprecated_store_struct_return,
4519 set_gdbarch_deprecated_extract_return_value,
4520 set_gdbarch_deprecated_extract_struct_value_address,
4521 set_gdbarch_deprecated_call_dummy_words and
4522 set_gdbarch_deprecated_sizeof_call_dummy_words.
4523
055c394a
CV
45242003-06-13 Corinna Vinschen <vinschen@redhat.com>
4525
4526 * h8300-tdep.c (h8300_register_byte): Remove.
4527 (h8300h_register_byte): Remove.
4528 (h8300_register_virtual_type): Remove. Substitute by...
4529 (h8300_register_type): New function.
4530 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4531 (h8300h_extract_struct_value_address): Ditto.
4532 (h8300_gdbarch_init): Drop calls to
4533 set_gdbarch_deprecated_register_byte and
4534 set_gdbarch_deprecated_register_virtual_type.
4535 Add call to set_gdbarch_register_type.
4536
9c04cab7
AC
45372003-06-13 Andrew Cagney <cagney@redhat.com>
4538
4539 * gdbarch.sh: Update comments on registers.
4540 (deprecated_register_byte): Rename register_byte.
4541 (deprecated_register_raw_size): Rename register_raw_size.
4542 (deprecated_register_virtual_size): Rename register_virtual_size.
4543 (deprecated_register_virtual_type): Rename register_virtual_type.
4544 * gdbarch.h, gdbarch.c: Re-generate.
4545 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4546 * vax-tdep.c (vax_gdbarch_init): Update.
4547 * v850-tdep.c (v850_gdbarch_init): Update.
4548 * sparc-tdep.c (sparc_gdbarch_init): Update.
4549 * sh-tdep.c (sh_gdbarch_init): Update.
4550 * s390-tdep.c (s390_gdbarch_init): Update.
4551 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4552 * ns32k-tdep.c: Update.
4553 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4554 * mips-tdep.c (mips_gdbarch_init): Update.
4555 * mcore-tdep.c (mcore_gdbarch_init): Update.
4556 * m68k-tdep.c (m68k_gdbarch_init): Update.
4557 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4558 * ia64-tdep.c (ia64_gdbarch_init): Update.
4559 * hppa-tdep.c (hppa_gdbarch_init): Update.
4560 * h8300-tdep.c (h8300_gdbarch_init): Update.
4561 * frv-tdep.c (frv_gdbarch_init): Update.
4562 * cris-tdep.c (cris_gdbarch_init): Update.
4563 * avr-tdep.c (avr_gdbarch_init): Update.
4564 * alpha-tdep.c (alpha_gdbarch_init): Update.
4565 * arm-tdep.c (arm_gdbarch_init): Update.
4566
b060cbea
AC
45672003-06-13 Andrew Cagney <cagney@redhat.com>
4568
4569 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4570 mips_o32_use_struct_convention with always_use_struct_convention.
4571
0fc9922a
DC
45722003-06-12 David Carlton <carlton@kealia.com>
4573
4574 * cp-namespace.c (cp_set_block_scope): Comment out
4575 processing_has_namespace_info branch.
4576
1fd35568
JB
45772003-06-12 Jim Blandy <jimb@redhat.com>
4578
f470a70a
JB
4579 Recognize and skip 64-bit PowerPC Linux linkage functions.
4580 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4581 insn_pattern, insns_match_pattern, d_field, ds_field): New
4582 functions, macros, and types for working with PPC instructions.
4583 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4584 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4585 ppc64_skip_trampoline_code): New functions, variables, and macros
4586 for recognizing and skipping linkage functions.
4587 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4588 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4589
49ff75ad
JB
4590 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4591 register offsets for both the 32- and 64-bit interfaces.
4592
bd918c83
JB
4593 Actually finish the job started by my change of 2003-05-29.
4594 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4595 other #definition of this.
4596 (ppc_linux_skip_trampoline_code): Remove declaration.
4597 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4598 static.
4599 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4600 method for GDBARCH.
4601
4602 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4603 'long' on ppc64-*-linux*.
4604
f8c59253
JB
4605 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4606 isn't #defined, assume the register doesn't exist: act as if
4607 tdep->ppc_mq_regnum were -1.
4608
8fbb30b1
JB
4609 * configure.host, configure.tgt: Add entries for
4610 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4611 powerpc/linux.mt.
4612 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4613 New files.
4614
1fd35568
JB
4615 * arch-utils.c (always_use_struct_convention): New function.
4616 * arch-utils.h (always_use_struct_convention): New prototype.
4617 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4618 (alpha_gdbarch_init): Register always_use_struct_convention,
4619 instead of alpha_use_struct_convention.
4620 * cris-tdep.c (cris_use_struct_convention): Delete.
4621 (cris_gdbarch_init): Register always_use_struct_convention,
4622 instead of cris_use_struct_convention.
4623 * frv-tdep.c (frv_use_struct_convention): Delete.
4624 (frv_gdbarch_init): Register always_use_struct_convention,
4625 instead of frv_use_struct_convention.
4626 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4627 (h8300_gdbarch_init): Register always_use_struct_convention,
4628 instead of h8300_use_struct_convention.
e3305dd9 4629 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
4630 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4631 instead of mips_o32_use_struct_convention.
4632
e14e6e9c
AC
46332003-06-12 Andrew Cagney <cagney@redhat.com>
4634
4635 * wince.c: Include "mips-tdep.h".
4636 * mips-tdep.h (mips_next_pc): Declare.
4637 * mcore-tdep.c: Make more local functions static.
4638 * Makefile.in (wince.o): Update dependencies.
4639
2335f48e
DC
46402003-06-12 David Carlton <carlton@kealia.com>
4641
4642 * symtab.c (lookup_symbol_aux_minsyms): Replace
4643 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4644 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4645 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4646 SYMBOL_NATURAL_NAME.
4647
f70a7d61
AS
46482003-06-12 Andreas Schwab <schwab@suse.de>
4649
4650 * Makefile.in (tuiDisassem.o): Update dependencies.
4651
b6429628
DC
46522003-06-12 David Carlton <carlton@bactrian.org>
4653
4654 * symtab.h: Delete declaration of make_symbol_overload_list.
4655 Add declaration of lookup_partial_symbol.
4656 * symtab.c (remove_params): Move to cp-support.c.
4657 (overload_list_add_symbol, make_symbol_overload_list)
4658 (sym_return_val_size, sym_return_val_index): Ditto.
4659 (lookup_partial_symbol): Make extern.
4660 * cp-support.h: Add declaration of make_symbol_overload_list.
4661 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4662 symtab.h, and block.h.
4663 (remove_params): Move here from symtab.c.
4664 (overload_list_add_symbol, make_symbol_overload_list)
4665 (sym_return_val_size, sym_return_val_index): Ditto.
4666 * valops.c: Include cp-support.h.
4667 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4668 frame_h, and block_h.
4669 (valops.o): Depend on cp_support_h.
4670
084edea5
CV
46712003-06-12 Corinna Vinschen <vinschen@redhat.com>
4672
4673 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4674 substitute by NUM_REGS throughout.
4675 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4676 (h8300s_register_name): New function for H8S registers.
4677 (h8300sx_register_name): Ditto for H8SX registers.
4678 (h8300_print_register): Revise register printing, avoid depending
4679 on 32 bit long.
0261a0d0 4680 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
4681 (h8300h_register_byte): New function for any other architecture.
4682 (h8300_register_raw_size): Remove.
4683 (h8300_register_virtual_type): Revise to return actually useful
4684 type.
4685 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4686 (h8300h_extract_struct_value_address): New function for any other
4687 architecture.
4688 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4689 set_gdbarch_register_name, set_gdbarch_register_byte,
4690 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4691 Remove calls to set_gdbarch_deprecated_register_size,
4692 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4693 set_gdbarch_deprecated_max_register_raw_size,
4694 set_gdbarch_register_virtual_size and
4695 set_gdbarch_deprecated_max_register_virtual_size entirely.
4696 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4697 set_gdbarch_long_double_bit.
4698
06194148
JJ
46992003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4700
8ffd9b1b
AJ
4701 * doublest.c (convert_doublest_to_floatformat): When dealing
4702 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
4703 processing a full 32 bits of mantissa.
4704
de4f826b
DC
47052003-06-11 David Carlton <carlton@bactrian.org>
4706
4707 * dictionary.h: New.
4708 * dictionary.c: New.
4709 * block.h: Add opaque declaration for struct dictionary.
4710 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4711 'sym' members.
4712 (BLOCK_DICT): New macro.
4713 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4714 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4715 BLOCK_SHOULD_SORT.
4716 (ALL_BLOCK_SYMBOLS): Update definition.
4717 * Makefile.in (SFILES): Add dictionary.c.
4718 (dictionary_h): New.
4719 (COMMON_OBS): Add dictionary.o.
4720 (dictionary.o): New.
4721 (ada-lang.o): Depend on dictionary_h.
4722 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4723 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4724 (mi-cmd-stack.o): Ditto.
4725 (gdbtk-cmds.o): Update dependencies.
4726 (gdbtk-stack.o): Ditto.
4727 * ada-lang.c: Include dictionary.h.
4728 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4729 (fill_in_ada_prototype, debug_print_block): Ditto.
4730 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4731 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4732 'is_sorted'.
4733 * mdebugread.c: Include dictionary.h.
4734 (struct parse_stack): Delete 'maxsyms' member.
4735 (parse_symbol): Update calls to new_block. Delete calls to
4736 shrink_block. Use dictionary methods.
4737 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4738 Update calls to new_symtab. Don't maintain maxsyms data.
4739 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4740 (add_symbol): Just call dict_add_symbol.
4741 (new_symtab): Delete 'maxsyms' argument.
4742 (new_symtab): Update calls to new_block.
4743 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4744 (shrink_block): Delete function.
4745 (fixup_sigtramp): Update call to new_block. Add symbol via
4746 dict_add_symbol.
4747 * jv-lang.c: Include dictionary.h.
4748 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4749 appropriately. Set class_symtab->free_func. Make sure the
4750 blockvector is big enough to hold two blocks.
4751 (add_class_symtab_symbol): Use dictionary methods.
4752 (free_class_block): New function.
4753 (type_from_class): Replace explicit iteration by
4754 ALL_BLOCK_SYMBOLS.
4755 * symtab.h (struct symtab): Replace 'free_ptr' method by
4756 'free_func'.
4757 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4758 sort_symtab_syms.
4759 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4760 sort_symtab_syms.
4761 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4762 Include dictionary.h.
4763 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4764 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4765 sort_symtab_syms.
4766 * objfiles.c: Include dictionary.h.
4767 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4768 * buildsym.c: Include dictionary.h.
4769 (finish_block): Use dictionary methods.
4770 (end_symtab): Set free_func to NULL, not free_ptr.
4771 * tracepoint.c: Include dictionary.h.
4772 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4773 (scope_info): Ditto.
4774 * stack.c: Include dictionary.h.
4775 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4776 (print_block_frame_labels, print_frame_arg_vars)
4777 (print_frame_args): Ditto.
4778 * symmisc.c (free_symtab_block): Use dictionary methods.
4779 (dump_symtab): Ditto.
4780 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4781 Include dictionary.h.
4782 * symfile.h: Delete declarations of sort_block_syms,
4783 sort_symtab_syms.
4784 * symfile.c (sort_block_syms): Delete.
4785 (sort_symtab_syms): Delete.
4786 * symtab.c: Include dictionary.h.
4787 (lookup_block_symbol): Use dictionary iterators.
4788 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4789 (search_symbols, make_symbol_completion_list): Ditto.
4790 (make_symbol_overload_list): Ditto.
4791 * valops.c (value_of_local): Use dict_empty.
4792 Include dictionary.h.
4793
a31f978c
JB
47942003-06-11 J. Brobecker <brobecker@gnat.com>
4795
4796 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4797
526e70c0
DC
47982003-06-11 David Carlton <carlton@bactrian.org>
4799
4800 * block.h (BLOCK_SHOULD_SORT): Delete.
4801 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4802 blocks.
4803 * ada-lang.c (ada_add_block_symbols): Ditto.
4804 * symfile.c (sort_block_syms): Delete.
4805 (sort_symtab_syms): Ditto.
4806 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4807 declarations.
4808 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4809 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4810 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4811 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4812 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4813 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4814 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4815
33c08150
JJ
48162003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4817
8ffd9b1b 4818 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
4819 bits to 128.
4820
781a750d
AC
48212003-06-11 Andrew Cagney <cagney@redhat.com>
4822
4823 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4824 REGISTER_CONVERTIBLE.
4825 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4826 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4827 * gdbarch.h, gdbarch.c: Re-generate.
4828 * arch-utils.h (deprecated_register_convertible_not): Rename
4829 generic_register_convertible_not.
4830 * arch-utils.c (deprecated_register_convertible_not): Rename
4831 generic_register_convertible.
4832 (legacy_convert_register_p, legacy_register_to_value): Update.
4833 * sh-tdep.c (sh64_push_arguments): Update.
4834 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4835 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4836 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4837 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4838 * arch-utils.c (legacy_value_to_register): Update.
4839 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4840 (rs6000_register_convert_to_raw): Make parameter "from" const.
4841 * mips-tdep.c (mips_gdbarch_init): Update.
4842 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4843 * infcmd.c (default_print_registers_info): Update.
4844 * ia64-tdep.c (ia64_gdbarch_init): Update.
4845 (ia64_register_convert_to_raw): Make parameter "from" const.
4846 * i386-tdep.c (i386_gdbarch_init): Update.
4847 (i386_register_convert_to_raw): Update.
4848
cd90e54f
AC
48492003-06-11 Andrew Cagney <cagney@redhat.com>
4850
4851 * remote-fileio.c: Include "remote-fileio.h".
4852 * Makefile.in (remote-fileio.o): Update dependencies.
4853 (remote_fileio_h): Fix typo.
4854
a78f21af
AC
48552003-06-11 Andrew Cagney <cagney@redhat.com>
4856
4857 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4858 (xstormy16_save_dummy_frame_tos): Make static.
4859 (_initialize_xstormy16_tdep): Add declaration.
4860 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4861 * v850-tdep.c: Make local functions static.
4862 (_initialize_v850_tdep): Add declaration.
4863 * sparc-tdep.c: Make local functions static.
4864 (_initialize_sparc_tdep): Add declaration.
4865 * sh-tdep.c: Make local functions static.
4866 (_initialize_sh_tdep): Add declaration.
4867 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4868 * s390-tdep.c: Make local functions static.
4869 (_initialize_s390_tdep): Add declaration.
4870 * dbxread.c (find_stab_function_addr): Make static.
4871 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4872 * ocd.c (_initialize_remote_ocd): Add declaration.
4873 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4874 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4875 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4876 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4877 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4878 * remote-array.c (_initialize_array): Add declaration.
4879 (_initialize_remote_monitors): Add declaration.
4880 * remote-mips.c: Make local functions static.
4881 (_initialize_remote_mips): Add declaration.
4882 * mcore-tdep.c: Make all local functions static.
4883 (_initialize_mcore_tdep): Add declaration.
4884 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4885 * abug-rom.c (_initialize_abug_rom): Add declaration.
4886 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4887 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4888 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4889 * remote-est.c (_initialize_est): Add declaration.
4890 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4891 (m68hc11_call_dummy_address): Make static.
4892 * ia64-tdep.c: Make local functions static.
4893 (_initialize_ia64_tdep): Add declaration.
4894 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4895 * monitor.c (monitor_wait_filter): Make static.
4896 (_initialize_remote_monitors): Add declaration.
4897 * remote-hms.c (_initialize_remote_hms): Add declaration.
4898 * remote-e7000.c (fetch_regs_from_dump): Make static.
4899 (expect_n): Make static.
4900 (_initialize_remote_e7000): Add declaration.
4901 * ser-e7kpc.c: Always include "defs.h".
4902 (_initialize_ser_e7000pc): Add declaration.
4903 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4904 * cris-tdep.c: Make all but one function static.
4905 (_initialize_cris_tdep): Add declaration.
4906 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4907 * solib.c (update_solib_list): Make static.
4908 (_initialize_solib): Add declaration.
4909 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4910 (_initialize_avr_tdep): Add declaration.
4911 * remote-rdi.c (voiddummy): Make static.
4912 (_initialize_remote_rdi): Add declaration.
4913 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4914 * remote-rdp.c (send_rdp): Make static.
4915 (_initialize_remote_rdp): Add declaration.
4916 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4917
cbcdb1f5
CV
49182003-06-11 Corinna Vinschen <vinschen@redhat.com>
4919
4920 * remote-fileio.c: Make ari happy.
4921
a191ea8d
JB
49222003-06-10 J. Brobecker <brobecker@gnat.com>
4923
4924 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4925 fetching the trailing bytes of the buffer we are about to write.
4926
0ef75e11
AC
49272003-06-10 Andrew Cagney <cagney@redhat.com>
4928
4929 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4930 * Makefile.in (remote-fileio.o): Update dependencies.
4931 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4932 include <setjmp.h>, or <sys/types.h> conditional on USG.
4933 (remote_fio_jmp_buf): Delete global variable.
4934
449092f6 49352003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 4936 Martin M. Hunt <hunt@redhat.com>
449092f6 4937
559fa028
AC
4938 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4939 (SFILES): Add remote-fileio.c.
4940 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4941 dependencies for building remote.o.
449092f6
CV
4942 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4943 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 4944 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
4945 static storage class.
4946 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4947 'F' packet.
4948 (_initialize_remote): Call initialize_remote_fileio().
4949 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
4950 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4951 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4952 (captured_main): Initialize new ui_files.
4953 * ui-file.c: Add read and fgets input functions.
4954 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4955 (null_file_read): New function.
4956 (ui_file_read): New function.
4957 (set_ui_file_read): New function.
4958 (stdio_file_read): New function.
4959 * ui-file.h: New type ui_file_read_ftype.
4960 (set_ui_file_read): Declare.
4961 (ui_file_read): Declare.
4962
248de703
AC
49632003-06-09 Andrew Cagney <cagney@redhat.com>
4964
4965 * frame.h (deprecated_unwind_get_saved_register): Rename
4966 generic_unwind_get_saved_register, update comments.
4967 * mips-tdep.c (mips_get_saved_register): Update.
4968 * frame.c (deprecated_unwind_get_saved_register): Update.
4969
0ed8aa57
AC
49702003-06-09 Andrew Cagney <cagney@redhat.com>
4971
4972 * vax-tdep.c (vax_frame_locals_address): Delete function.
4973 (vax_gdbarch_init): Do not set frame_locals_address.
4974 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4975 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4976 * s390-tdep.c (s390_frame_args_address): Delete function.
4977 (s390_gdbarch_init): Do not set frame_args_address or
4978 frame_locals_address.
4979 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4980 (ns32k_gdbarch_init): Do not set frame_locals_address.
4981 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4982 (hppa_frame_locals_address): Delete function.
4983 (hppa_gdbarch_init): Do not set frame_args_address, or
4984 frame_locals_address.
4985 * arm-tdep.c (arm_frame_args_address): Delete.
4986 (arm_frame_locals_address): Delete.
4987 (arm_gdbarch_init): Do not set frame_args_address, or
4988 frame_locals_address.
4989
983a287a
AC
49902003-06-09 Andrew Cagney <cagney@redhat.com>
4991
4992 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4993 * gdbarch.h, gdbarch.c: Re-generate.
4994 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4995 * arch-utils.c (frame_num_args_unknown): Delete function.
4996 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4997 (frame_info): Use FRAME_NUM_ARGS_P.
4998 * arm-tdep.c (arm_frame_num_args): Delete function.
4999 (arm_gdbarch_init): Do not set frame_num_args.
5000 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5001 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5002 (hppa_gdbarch_init): Do not set frame_num_args.
5003 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5004 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5005 frame_num_args to default frame_num_args_unknown.
5006 * v850-tdep.c (v850_gdbarch_init): Ditto.
5007 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5008 * sh-tdep.c (sh_gdbarch_init): Ditto.
5009 * s390-tdep.c (s390_gdbarch_init): Ditto.
5010 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5011 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5012 * mips-tdep.c (mips_gdbarch_init): Ditto.
5013 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5014 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5015 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5016 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5017 * i386-tdep.c (i386_gdbarch_init): Ditto.
5018 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5019 * frv-tdep.c (frv_gdbarch_init): Ditto.
5020 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5021 * cris-tdep.c (cris_gdbarch_init): Ditto.
5022 * avr-tdep.c (avr_gdbarch_init): Ditto.
5023 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5024
8d3b0994
AC
50252003-06-09 Andrew Cagney <cagney@redhat.com>
5026
5027 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5028 (print_frame_args): Moved to "stack.c".
5029 * stack.c: Include "gdb_assert.h".
5030 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5031 (print_frame_args): Moved from "printcmd.c".
5032 * frame.h (print_frame_args): Delete declaration.
5033 * Makefile.in (stack.o): Update dependencies.
5034
25e3a86b
AC
50352003-06-08 Andrew Cagney <cagney@redhat.com>
5036
5037 * frame.c (get_prev_frame): Remove reference to
5038 frame_args_address_correct in comments.
5039 * frame-base.c (default_frame_args_address): Delete code
5040 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5041 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5042 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5043 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5044 (vax_frame_args_address_correct): Delete declaration.
5045
a9e5fdc2
AC
50462003-06-08 Andrew Cagney <cagney@redhat.com>
5047
5048 * gdbarch.sh (UNWIND_SP): Add.
5049 * gdbarch.h, gdbarch.c: Re-generate.
5050 * frame.c (frame_sp_unwind): New function.
5051 (get_frame_sp): New function.
5052 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5053 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5054 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5055 value.
5056 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5057 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5058
8983bd83
AC
50592003-06-08 Andrew Cagney <cagney@redhat.com>
5060
7fec2c59
AC
5061 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5062 REMOTE_BREAKPOINT.
5063 * remote.c: Update.
5064 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5065 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5066 * config/m68k/tm-sun3.h: Update.
5067 * config/m68k/tm-m68klynx.h: Update.
5068 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5069
8983bd83
AC
5070 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5071 trad_frame". Update comments.
5072 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5073 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5074 (trad_frame_register_value, trad_frame_prev_register): Update.
5075
b9362cc7
AC
50762003-06-08 Andrew Cagney <cagney@redhat.com>
5077
5078 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5079 from GCC's acinclude.m4.
5080 * configure.in: Check for getopt's delcaration.
8ffd9b1b 5081 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
5082 * main.c (error_init): Delete declaration.
5083 * defs.h (error_init): Declare.
5084 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5085 (rs6000_convert_from_func_ptr_addr): Make static.
5086 (_initialize_rs6000_tdep): Add declaration.
5087 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5088 (show_commands, set_verbose, show_history): Delete declaration.
5089 * top.h (set_verbose): Add declaration.
5090 (show_history, set_history, show_commands): Add declaration.
5091 (do_restore_instream_cleanup): Add declaration.
5092 * objc-lang.c (specialcmp): Make static.
5093 (print_object_command): Make static.
5094 (find_objc_msgsend): Make static.
5095 (find_objc_msgcall_submethod_helper): Make static.
5096 (find_objc_msgcall_submethod): Make static.
5097 (_initialize_objc_language): Add declaration.
5098 (find_implementation_from_class): Make static.
5099 (find_implementation): Make static.
5100 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5101 * objc-lang.h (lookup_struct_typedef): Add declaration.
5102 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5103 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5104 (do_restore_user_call_depth): Make static.
5105 (do_restore_instream_cleanup): Delete declaration.
5106 (dont_repeat): Delete declaration.
5107 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5108 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5109 * reggroups.c (_initialize_reggroup): Add declaration.
5110 * cp-support.c (_initialize_cp_support): Add declaration.
5111 * cp-abi.c (_initialize_cp_abi): Add declaration.
5112 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5113 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5114 (_initialize_gnu_v3_abi): Add declaration.
5115 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5116 (_initialize_gnu_v2_abi): Add declaration.
5117 * frame-base.c (_initialize_frame_base): Add declaration.
5118 * doublest.c (floatformat_from_length): Make static.
5119 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5120 * frame.c (create_sentinel_frame): Make static.
5121 (_initialize_frame): Add declaration.
5122 * top.c (do_catch_errors): Make static.
5123 (gdb_rl_operate_and_get_next_completion): Make static.
5124 * typeprint.c: Include "typeprint.h".
5125 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5126 (sentinel_frame_this_id): Make static.
5127 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5128 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5129 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5130 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5131 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5132 * maint.c (maintenance_print_architecture): Make static.
5133 * signals/signals.c (_initialize_signals): Add declaration.
5134 * std-regs.c (_initialize_frame_reg): Add declaration.
5135 * jv-exp.y (push_variable): ISO C definition.
5136 (push_qualified_expression_name): Ditto.
5137 * memattr.c (_initialize_mem): Add declaration.
5138 * remote.c (remote_check_watch_resources): Make static.
5139 (remote_stopped_by_watchpoint): Make static.
5140 (remote_stopped_data_address): Make static.
5141 * d10v-tdep.c (nr_dmap_regs): Make static.
5142 (a0_regnum): Make static.
5143 (d10v_frame_unwind_cache): Make static.
5144 (d10v_frame_p): Make static.
5145 * osabi.c (show_osabi): Make static.
5146 (_initialize_gdb_osabi): Add extern declaration.
5147 * gdbtypes.c (make_qualified_type): Make static.
5148 (safe_parse_type): Make static.
5149 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5150 * macrotab.c (macro_bcache_free): Make static.
5151 * interps.c (interp_set_quiet): Make static.
5152 (interpreter_exec_cmd): Make static.
5153 * stack.h (select_frame_command): New file.
5154 * stack.c: Include "stack.h".
5155 (select_frame_command_wrapper): Delete function.
5156 (select_frame_command): Make global.
5157 * infcall.c: Include "infcall.h".
5158 * linespec.c: Include "linespec.h".
5159 * symfile.c (sections_overlap): Make static.
5160 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5161 * charset.c (_initialize_charset): Add missing prototype.
5162 * regcache.c (init_legacy_regcache_descr): Make static.
5163 (do_regcache_xfree): Make static.
5164 (regcache_xfer_part): Make static.
5165 (_initialize_regcache): Add missing prototype.
5166 * breakpoint.c (parse_breakpoint_sals): Make static.
5167 (breakpoint_sals_to_pc): Make static.
5168 * interps.h (clear_interpreter_hooks): ISO C declaration.
5169 * Makefile.in (stack_h): Define.
5170 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5171 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5172
a0f267c7
AC
51732003-06-08 Andrew Cagney <cagney@redhat.com>
5174
5175 * Makefile.in (d10v-tdep.o): Update dependencies.
5176 (SFILES): Add trad-frame.c.
5177 (trad_frame_h): Define.
5178 (COMMON_OBS): Add trad-frame.o.
5179 (trad-frame.o): Specify dependencies.
5180 * d10v-tdep.c: Include "trad-frame.h".
5181 (saved_regs_unwinder): Delete function.
5182 (d10v_frame_prev_register): Use trad_frame_prev_register.
5183 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5184 trad_frame", delete "regs" and "prev_sp".
5185 (prologue_find_regs): Use trad-frame.
5186 * trad-frame.h, trad-frame.c: New files.
5187
4538b4f4
MK
51882003-06-08 Mark Kettenis <kettenis@gnu.org>
5189
5190 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5191
a0273b2f
AF
51922003-06-07 Adam Fedor <fedor@gnu.org>
5193
5194 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5195 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5196 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5197 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 5198 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
5199 Use it.
5200
3a6c3343
AC
52012003-06-07 Andrew Cagney <cagney@redhat.com>
5202
5203 * symfile.h: Re-indent, clean up comments.
5204
b46e02f6
AC
52052003-06-07 Andrew Cagney <cagney@redhat.com>
5206
5207 * inferior.h (deprecated_write_sp): Replace
5208 generic_target_write_sp.
5209 * regcache.c (deprecated_write_sp): Replace
5210 generic_target_write_sp.
5211 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5212 * vax-tdep.c (vax_gdbarch_init): Update.
5213 * v850-tdep.c (v850_gdbarch_init): Update.
5214 * sparc-tdep.c (sparc_gdbarch_init): Update.
5215 * sh-tdep.c (sh_gdbarch_init): Update.
5216 * s390-tdep.c (s390_gdbarch_init): Update.
5217 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5218 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5219 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5220 * mcore-tdep.c (mcore_gdbarch_init): Update.
5221 * m68k-tdep.c (m68k_gdbarch_init): Update.
5222 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5223 * ia64-tdep.c (ia64_gdbarch_init): Update.
5224 * h8300-tdep.c (h8300_gdbarch_init): Update.
5225 * frv-tdep.c (frv_gdbarch_init): Update.
5226 * cris-tdep.c (cris_gdbarch_init): Update.
5227 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5228
a42e117c
AC
52292003-06-07 Andrew Cagney <cagney@redhat.com>
5230
5231 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5232 Assert that PC_REGNUM is valid.
5233 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5234
bd1ce8ba
AC
52352003-06-07 Andrew Cagney <cagney@redhat.com>
5236
5237 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5238 * gdbarch.h, gdbarch.c: Regenerate.
5239 * mn10300-tdep.c: Include "gdb_assert.h".
5240 (mn10300_read_fp): New function.
5241 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5242 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5243 * ia64-tdep.c: Include "gdb_assert.h".
5244 (ia64_read_fp): New function.
5245 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5246 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5247 * regcache.c (generic_target_read_sp): Delete function.
5248 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5249 * inferior.h (generic_target_read_sp): Delete declaration.
5250 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5251 generic_target_read_sp.
5252 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5253 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5254 * sh-tdep.c (sh_gdbarch_init): Ditto.
5255 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5256 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5257
ec5cbaec
AC
52582003-06-07 Andrew Cagney <cagney@redhat.com>
5259
5260 * gdbarch.sh: Comment each field of startup_gdbarch.
5261 * gdbarch.h, gdbarch.c: Re-generate.
5262
cde9ea48
AC
52632003-06-07 Andrew Cagney <cagney@redhat.com>
5264
5265 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5266 * gdbarch.h, gdbarch.c: Re-generate.
5267 * regcache.c: Update comments on read_pc et.al.
5268 (generic_target_read_pc): Delete function.
5269 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5270 * inferior.h (generic_target_read_pc): Delete declaration.
5271 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5272 generic_target_read_pc.
5273 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5274 * sh-tdep.c (sh_gdbarch_init): Ditto.
5275 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5276 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 5277
9a90a780
AC
52782003-06-07 Andrew Cagney <cagney@redhat.com>
5279
5280 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5281 "index" with "special_local_sect". Use strcmp instead of STREQ.
5282 Append period to coments.
5283
a39a16c4
MM
52842003-06-06 Mark Mitchell <mark@codesourcery.com>
5285
5286 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5287 (elfstab_offset_sections): Likewise.
5288 * gdb-stabs.h (stab_section_info): Likewise.
5289 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5290 * objfiles.c (objfile_relocate): Likewise.
5291 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5292 * remote.c (get_offsets): Likewise.
5293 (remote_cisco_objfile_relocate): Likewise.
5294 * somread.c (som_symfile_offsets): Likewise.
5295 * symfile.c (alloc_section_addr_info): New function.
5296 (build_section_addr_info_from_section_tab): Use it.
5297 (free_section_addr_info): Adjust.
5298 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5299 (syms_from_objfile): Allocate local_addr dynamically.
5300 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5301 dynamically.
5302 (add_symbol_file_command): Allocate sect_opts dynamically.
5303 (reread_symbols): Avoid use of SECT_OFF_MAX.
5304 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5305 (alloc_section_addr_info): Declare it.
5306 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5307 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5308 dynamically.
5309 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 5310
20c6c2f8
AC
53112003-06-06 Andrew Cagney <cagney@redhat.com>
5312
5313 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5314 (d10v_frame_unwind_cache): Do not set "return_pc".
5315
884a26c8
MS
53162003-06-06 Michael Snyder <msnyder@redhat.com>
5317
5318 * h8300-tdep.c: Make tidy (long lines).
5319
088ce440
ML
53202003-06-06 Michal Ludvig <mludvig@suse.cz>
5321
8ffd9b1b 5322 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
5323 to regcache_collect().
5324
7d773d96
JB
53252003-06-05 J. Brobecker <brobecker@gnat.com>
5326
5327 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5328 pc_in_sigtramp multiarch method.
5329 (hppa_hpux_som_init_abi): Use it.
5330 (hppa_hpux_elf_init_abi): Likewise.
5331 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5332 macro has been multiarched.
5333 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5334 macro here, as hppa64 isn't multiarched yet.
5335
1df6926e
AC
53362003-06-05 Andrew Cagney <cagney@redhat.com>
5337
5338 * Makefile.in (value_h): Add $(frame_h).
5339 * value.h: Include "frame.h".
5340 (struct value): Replace "frame_addr" with "frame_id".
5341 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5342 * values.c (allocate_value): Use VALUE_FRAME_ID.
5343 (value_copy): Use VALUE_FRAME_ID.
5344 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5345 * valops.c (value_assign): Update. Use frame_find_by_id.
5346
6b53acc6
ML
53472003-06-05 Michal Ludvig <mludvig@suse.cz>
5348
5349 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5350 in each pass.
5351
4d9850d3
JJ
53522003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5353
5354 * thread-db.c (check_event): For create/death event breakpoints,
5355 loop through all messages to ensure that we read the message
5356 corresponding to the breakpoint we are at.
5357
8efca6ba
MS
53582003-06-04 Michael Snyder <msnyder@redhat.com>
5359
5360 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5361
0912c7f2
MK
53622003-06-04 Mark Kettenis <kettenis@gnu.org>
5363
5364 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5365 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5366 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5367 when handling .eh_frame sections.
5368
4e370325
JB
53692003-06-04 J. Brobecker <brobecker@gnat.com>
5370
5371 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5372 prepare_to_proceed procedure instead of the hppa-specific one.
5373 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5374
b757528f 53752003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5376
b757528f
JJ
5377 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5378 * config.in: Regenerated.
5379 * configure.in: Add test for syscall function and check for
5380 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5381 * configure: Regenerated.
5382 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5383 <sys/syscall.h>.
5384 (kill_lwp): New function that uses tkill syscall or
5385 uses kill, depending on whether threading model is nptl or not.
5386 All callers of kill() changed to use kill_lwp().
5387 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5388 see if all threads have already exited in the nptl model.
5389 (stop_and_resume_callback): New callback function used by the
5390 lin_lwp_wait thread exit handling code.
5391 (stop_wait_callback): Check for threads already having exited and
5392 delete such threads fromt the lwp list when discovered.
5393 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 5394
b757528f
JJ
5395 Roland McGrath <roland@redhat.com>
5396 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5397 nptl libthread_db.
5398
087779b1
RH
53992003-06-03 Richard Henderson <rth@redhat.com>
5400
b21fd293
RH
5401 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5402 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5403 (alpha_sigtramp_frame_prev_register): Likewise.
5404 (alpha_heuristic_frame_prev_register): Likewise.
5405 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5406
8ffd9b1b 5407 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
5408 alpha-specific register id names.
5409 (alpha_mdebug_frame_unwind_cache): Likewise.
5410 (alpha_mdebug_frame_prev_register): Likewise.
5411
baa490c4
RH
54122003-06-03 Richard Henderson <rth@redhat.com>
5413
5414 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5415 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5416 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5417 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5418 unwind routines.
5419 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5420 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5421 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5422
5423 * alpha-linux-tdep.c: Remove unnecessary includes.
5424 * Makefile.in (alpha-linux-tdep.o): Update.
5425
54262003-06-03 Richard Henderson <rth@redhat.com>
5427
5428 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5429 (alphabsd_fill_fpreg): Likewise.
5430
f534e522
JB
54312003-06-03 J. Brobecker <brobecker@gnat.com>
5432
5433 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5434 references to struct frame_info fields by calls to the equivalent
5435 accessors. Necessary now that frame_info is opaque.
5436
4035536b
JB
54372003-06-03 J. Brobecker <brobecker@gnat.com>
5438
5439 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5440 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5441 structure, field no longer exists.
5442
0bd79c5c
JB
54432003-06-03 J. Brobecker <brobecker@gnat.com>
5444
5445 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5446 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5447
37bb6d9f
JB
54482003-06-03 J. Brobecker <brobecker@gnat.com>
5449
5450 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5451 references to struct frame_info fields by calls to the equivalent
5452 accessors. Necessary now that frame_info is opaque.
5453
852ee05c
JB
54542003-06-03 J. Brobecker <brobecker@gnat.com>
5455
5456 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5457 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5458 structure, field no longer exists.
5459
7d58c67d
TR
54602003-06-03 Theodore A. Roth <troth@openavr.org>
5461
8ffd9b1b 5462 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
5463 accumulation of the size of all registers instead of blindly using
5464 DEPRECATED_REGISTER_BYTES.
5465
0a48e7e8
MS
54662003-06-03 Michael Snyder <msnyder@redhat.com>
5467
5468 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5469 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5470 for h8300sx.
5471
9798ab0d
JB
54722003-06-03 J. Brobecker <brobecker@gnat.com>
5473
5474 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5475 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5476
00b037e2
AC
54772003-06-03 Andrew Cagney <cagney@redhat.com>
5478
5479 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5480 (sparc_convert_to_raw): Delete function.
5481 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5482 register_convert_to_virtual.
5483
043b2f77
JJ
54842003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5485
5486 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5487 layer if not dealing with a statically-linked threaded program.
5488
f43caff8
KW
54892003-06-03 Kris Warkentin <kewarken@qnx.com>
5490
5491 * solib.c (solib_open): Update comment to reflect actual search order.
5492
ae1e7417
AC
54932003-06-03 Andrew Cagney <cagney@redhat.com>
5494
5495 * frame.c (get_frame_memory_signed): New function.
5496 (get_frame_memory, get_frame_memory_unsigned): New function.
5497 (get_frame_arch): New function.
5498 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5499 (get_frame_memory, get_frame_unsigned_memory): Declare.
5500 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5501 get_frame_memory_unsigned and get_frame_arch.
5502 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5503
cb123844
RG
55042003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5505
5506 * MAINTAINERS (write after approval): Add myself.
5507
1bb792e9
JB
55082003-06-03 Jim Blandy <jimb@redhat.com>
5509
5510 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5511 elements of gregset_t are 64 bits each, but access registers
5512 are still 32 bits, so they're packed two per gregset_t
5513 element. Unpack/pack them properly.
5514
aee8d8ba
DC
55152003-06-02 David Carlton <carlton@bactrian.org>
5516
5517 * linespec.c (find_methods): Break out code into
5518 add_matching_methods and add_constructors.
5519 (add_matching_methods): New.
5520 (add_constructors): Ditto.
5521
bf7488d2
AC
55222003-06-02 Andrew Cagney <cagney@redhat.com>
5523
bf7488d2
AC
5524 * sparc-tdep.c (sparc_print_registers): Delete call to
5525 REGISTER_CONVERTIBLE.
5526 (sparc_gdbarch_init): Do not set register_convertible.
5527 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5528 * frv-tdep.c (frv_gdbarch_init): Ditto.
5529 * cris-tdep.c (cris_gdbarch_init): Ditto.
5530
adedef68
EZ
55312003-06-02 Elena Zannoni <ezannoni@redhat.com>
5532
8ffd9b1b 5533 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
5534 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5535 (syms_from_objfile): Ditto.
5536
650fcc91
AS
55372003-06-03 Andreas Schwab <schwab@suse.de>
5538
5539 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5540 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5541
df4a182b
RH
55422003-06-02 Richard Henderson <rth@redhat.com>
5543
5544 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5545 a member of all_reggroup.
5546
c483c494
RH
55472003-06-02 Richard Henderson <rth@redhat.com>
5548
5549 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5550 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5551 (alpha_lds, alpha_sts): New.
5552 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 5553 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
5554 restructure and fail for type sizes other than 4 or 8.
5555 (alpha_value_to_register): Similarly.
5556 (alpha_extract_return_value): Use alpha_sts.
5557 (alpha_store_return_value): Use alpha_lds.
5558 (alpha_gdbarch_init): Update hooks.
5559
b38b6be2
RH
55602003-06-02 Richard Henderson <rth@redhat.com>
5561
5562 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5563 regnum identifiers.
5564 (alpha_sigtramp_register_address): Likewise.
5565
98a8e1e5
RH
55662003-06-02 Richard Henderson <rth@redhat.com>
5567
5568 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5569 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5570 * alpha-tdep.h: Declare them.
5571
5572 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5573 Remove zerobuf. Don't error on UNIQUE.
5574 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5575 (ALPHA_REGSET_UNIQUE): Provide default.
5576 (supply_gregset): Use alpha_supply_int_regs.
5577 (fill_gregset): Use alpha_fill_int_regs.
5578 (supply_fpregset): Use alpha_supply_fp_regs.
5579 (fill_fpregset): Use alpha_fill_fp_regs.
5580 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5581 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5582 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5583 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5584 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5585 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5586
67dfac52
RH
55872003-06-02 Richard Henderson <rth@redhat.com>
5588
f75d70cc
RH
5589 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5590
67dfac52
RH
5591 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5592 (alpha_store_return_value): Likewise.
5593
0cf566ec
DC
55942003-06-02 David Carlton <carlton@math.stanford.edu>
5595
5596 * block.c (contained_in): Add 'const' to arguments.
5597 (block_function): Ditto.
5598 * block.h: Update declarations for block_function and
5599 contained_in.
5600
cdef89d0
DC
56012003-06-02 David Carlton <carlton@math.stanford.edu>
5602
5603 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5604 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5605 * p-valprint.c (pascal_val_print): Ditto.
5606 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5607
72667056
RH
56082003-06-02 Richard Henderson <rth@redhat.com>
5609
98a8e1e5
RH
5610 * alpha-tdep.c (alpha_push_dummy_call): Use
5611 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 5612
8ffd9b1b 5613 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
5614 sign-extension of 32-bit values.
5615 (alpha_store_return_value): Similarly.
0ede8eca 5616
98a8e1e5
RH
5617 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5618 (alpha_extract_return_value): Likewise.
5619 (alpha_store_return_value): Likewise.
7b5e1cb3 5620
98a8e1e5
RH
5621 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5622 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 5623
98a8e1e5
RH
5624 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5625 (alpha_extract_struct_value_address): Likewise.
5626 (alpha_store_return_value): Likewise.
5627 (alpha_store_struct_return): Remove.
5628 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 5629
98a8e1e5
RH
5630 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5631 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5632 macros where appropriate.
5633 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5634 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 5635
98a8e1e5
RH
5636 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5637 for SP, GP; void_func_ptr for PC; non-language-specific types
5638 for all others.
5639 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 5640
6dd77b81
RH
56412003-06-02 Richard Henderson <rth@redhat.com>
5642
5643 * top.h (lim_at_start): Declare.
5644 * main.c (captured_main): Set it.
5645 * top.c (lim_at_start): Define.
5646 (command_loop): Use it instead of &environ.
5647 * event-top.c (command_handler): Likewise.
5648
f4dbdb54
JT
56492003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5650
5651 * mipsnbsd-tdep.c: Update copyright years.
5652 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5653
8f285956
RH
56542003-06-01 Richard Henderson <rth@redhat.com>
5655
98a8e1e5
RH
5656 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5657 (alpha-linux-tdep.o): Update dependencies.
5658 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5659 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 5660
615967cb
RH
56612003-06-01 Richard Henderson <rth@redhat.com>
5662
98a8e1e5
RH
5663 * alpha-tdep.c (alpha_register_reggroup_p): New.
5664 (alpha_gdbarch_init): Register it.
615967cb 5665
b59661bd
AC
56662003-06-02 Andrew Cagney <cagney@redhat.com>
5667
5668 * dwarfread.c: Eliminate "register"
5669 (decode_die_type): Eliminate assignment within "if".
5670 (struct_type, decode_array_element_type): Ditto.
5671 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5672 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5673 (decode_modified_type, completedieinfo): Ditto.
5674 * block.c: Eliminate "register".
5675 (blockvector_for_pc_sect): Eliminate assignment within "if".
5676 * cp-support.h (struct symbol): Opaque declaration.
5677 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5678
5ef165c2
RH
56792003-06-01 Richard Henderson <rth@redhat.com>
5680
98a8e1e5
RH
5681 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5682 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 5683
143985b7
AF
56842003-06-01 Adam Fedor <fedor@gnu.org>
5685
5686 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5687 * gdbarch.[ch]: Regenerate.
5688 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5689 (hppa_gdbarch_init): Set it in the gdbarch vector.
5690 * i386-tdep.c (i386_fetch_pointer_argument): New
5691 (i386_gdbarch_init): Set it into gdbarch.
5692 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5693 (rs6000_gdbarch_init): Set it in gdbarch.
5694 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5695 (sparc_gdbarch_init): Set it in gdbarch.
5696
ae0167b9
AC
56972003-06-01 Andrew Cagney <cagney@redhat.com>
5698
7c0b4a20
AC
5699 * defs.h (extract_address): Delete declaration.
5700 * findvar.c (extract_address): Delete function.
5701 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5702 extract_address with the inline equivalent,
5703 extract_unsigned_integer.
5704 (xstormy16_extract_struct_value_address): Ditto.
5705 (xstormy16_pointer_to_address): Ditto.
5706 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5707 * v850-tdep.c (v850_push_arguments): Ditto.
5708 (v850_extract_return_value): Ditto.
5709 (v850_extract_struct_value_address): Ditto.
5710 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5711 (sparcnbsd_get_longjmp_target_64): Ditto.
5712 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5713 (get_longjmp_target): Ditto.
5714 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5715 (sh64_extract_struct_value_address): Ditto.
5716 (sh_push_arguments): Ditto.
5717 (sh64_push_arguments): Ditto.
5718 * remote-vxsparc.c (vx_read_register): Ditto.
5719 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5720 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5721 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5722 * mipsv4-nat.c (get_longjmp_target): Ditto.
5723 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5724 * mips-nat.c (get_longjmp_target): Ditto.
5725 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5726 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5727 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5728 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5729 * irix5-nat.c (get_longjmp_target): Ditto.
5730 * irix4-nat.c (get_longjmp_target): Ditto.
5731 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5732 (ia64_push_arguments): Ditto.
5733 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5734 * h8300-tdep.c (h8300_push_arguments): Ditto.
5735 (h8300_store_return_value): Ditto.
5736 (h8300_extract_struct_value_address): Ditto.
5737 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5738 (frv_push_arguments): Ditto.
5739 * avr-tdep.c (avr_pointer_to_address): Ditto.
5740 (avr_push_arguments): Ditto.
5741 * arm-tdep.c (arm_push_dummy_call): Ditto.
5742 (arm_get_longjmp_target): Ditto.
5743 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5744 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5745 (alpha_get_longjmp_target): Ditto.
5746
ae0167b9
AC
5747 * solib-irix.c (extract_mips_address): Inline extract_address,
5748 replacing it with extract_signed_integer.
5749 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5750 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5751 (first_link_map_member, open_symbol_file_object): Ditto.
5752 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5753 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5754 (LM_NEXT, LM_NAME): Ditto.
5755
44d88583
RH
57562003-06-01 Richard Henderson <rth@redhat.com>
5757
98a8e1e5
RH
5758 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5759 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5760 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5761 (alpha_cannot_store_register): Likewise.
5762 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5763 * alpha-nat.c (supply_gregset): Likewise.
5764 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 5765
310e9b6a
AC
57662003-06-01 Andrew Cagney <cagney@redhat.com>
5767
5768 * infcall.c (call_function_by_hand): Update comment on
5769 DEPRECATED_DUMMY_WRITE_SP.
5770
5771 * mips-tdep.c (mips_gdbarch_init): Do not set
5772 deprecated_dummy_write_sp.
5773 (mips_eabi_push_dummy_call): Set the SP register.
5774 (mips_o64_push_dummy_call): Set the SP register.
5775 (mips_o32_push_dummy_call): Set the SP register.
5776 (mips_n32n64_push_dummy_call): Set the SP register.
5777
5ab84872
RH
57782003-06-01 Richard Henderson <rth@redhat.com>
5779
98a8e1e5
RH
5780 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5781 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5782 (supply_gregset): Likewise.
5783 * alpha-tdep.c (alpha_store_return_value): Likewise.
5784 (alpha_get_longjmp_target): Likewise.
5785 (alpha_register_name): Constify array.
5786 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5787 deprecated_register_size, deprecated_register_bytes,
5788 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5789 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5790 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 5791
09cc52fd
RH
57922003-06-01 Richard Henderson <rth@redhat.com>
5793
5794 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5795 from arg_reg_buffer to regcache to avoid double conversion.
5796
c7f16359
MK
57972003-06-01 Mark Kettenis <kettenis@gnu.org>
5798
5799 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5800 SP_REGNUM.
5801 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5802 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5803
7131cb6e
RH
58042003-06-01 Richard Henderson <rth@redhat.com>
5805
98a8e1e5
RH
5806 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5807 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 5808
f3e0f90b
RH
58092003-06-01 Richard Henderson <rth@redhat.com>
5810
98a8e1e5
RH
5811 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5812 not overlapping PC_REGNUM.
f3e0f90b 5813
c88e30c0
RH
58142003-06-01 Richard Henderson <rth@redhat.com>
5815
98a8e1e5
RH
5816 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5817 alpha_push_arguments. Don't dump argument register data to
5818 the target stack. Fix float and 128-bit long double semantics.
5819 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5820 (alpha_fix_call_dummy): Remove.
5821 (alpha_call_dummy_words): Remove.
5822 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 5823
f1a559ae
RH
58242003-06-01 Richard Henderson <rth@redhat.com>
5825
5826 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5827
5e045346
AC
58282003-06-01 Andrew Cagney <cagney@redhat.com>
5829
95404a3e
AC
5830 * mips-tdep.c (is_mips16_addr): New function.
5831 (make_mips16_addr, unmake_mips16_addr): New functions.
5832 (pc_is_mips16, mips_fetch_instruction): Use.
5833 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5834 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5835 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5836 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5837 TARGET_MIPS.
5838 * config/mips/tm-mips.h: Update copyright.
5839 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5840 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5841 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5842 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5843 (TM_PRINT_INSN_MACH): Delete.
5844 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5845
5e045346
AC
5846 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5847 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5848 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5849 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5850 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5851 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5852 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5853 mips*-*-riscos* and mips*-*-sysv* onto mips.
5854 * config/mips/mips64.mt: New file.
5855 * config/mips/mips.mt: New file.
5856 * config/mips/littlemips.mt: Delete file.
5857 * config/mips/decstation.mt: Delete file.
5858 * config/mips/vr4300el.mt: Delete file.
5859 * config/mips/vr5000el.mt: Delete file.
5860 * config/mips/vr5000.mt: Delete file.
5861 * config/mips/vr4100.mt: Delete file.
5862 * config/mips/vr4xxxel.mt: Delete file.
5863 * config/mips/vr4300.mt: Delete file.
5864 * config/mips/vr4xxx.mt: Delete file.
5865 * config/mips/bigmips.mt: Delete file.
5866 * config/mips/bigmips64.mt: Delete file.
5867 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5868 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5869 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5870 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5871 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5872 "tm-bigmips.h".
5873 * config/mips/tm-irix3.h: Ditto.
5874 * config/mips/tm-mipsv4.h: Ditto.
5875 * config/mips/tm-embed.h: Ditto.
5876 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5877 "tm-bigmips64.h".
5878 * config/mips/tm-vr5000el.h: Delete file.
5879 * config/mips/tm-tx39l.h: Delete file.
5880 * config/mips/tm-vr4300el.h: Delete file.
5881 * config/mips/tm-vr4xxxel.h: Delete file.
5882 * config/mips/tm-vr4300.h: Delete file.
5883 * config/mips/tm-vr4100.h: Delete file.
5884 * config/mips/tm-vr4xxx.h: Delete file.
5885 * config/mips/tm-vr5000.h: Delete file.
5886 * config/mips/tm-embedl64.h: Delete file.
5887 * config/mips/tm-embedl.h: Delete file.
5888 * config/mips/tm-embed64.h: Delete file.
5889 * config/mips/tm-bigmips64.h: Delete file.
5890 * config/mips/tm-bigmips.h: Delete file.
5891
2473a4a9
MK
58922003-06-01 Mark Kettenis <kettenis@gnu.org>
5893
97a5b208
MK
5894 Fix gdb/1216.
5895 * shnbsd-nat.c: Include "sh-tdep.h".
5896
2473a4a9
MK
5897 From Richard Henderson <rth@redhat.com>:
5898 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5899
e0f7ec59
AC
59002003-05-31 Andrew Cagney <cagney@redhat.com>
5901
5902 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5903 forward declaration.
5904 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5905 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5906 (mips_find_saved_regs): Use set_reg_offset.
5907 (mips_frame_init_saved_regs): Delete function.
5908 (mips_pop_frame): Call mips_find_saved_regs instead of
5909 DEPRECATED_FRAME_INIT_SAVED_REGS.
5910
68dcc709
AC
59112003-05-31 Andrew Cagney <cagney@redhat.com>
5912
5913 * mips-tdep.c (mips_gdbarch_init): Do not set
5914 deprecated_max_register_raw_size, register_virtual_size, and
5915 deprecated_max_register_virtual_size.
5916
cfc14b3a
MK
59172003-05-31 Mark Kettenis <kettenis@gnu.org>
5918
6405b0a6
MK
5919 * i386-tdep.c: Include "dwarf2-frame.h".
5920 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5921 * Makefile.in (i386-tdep.o): Update dependencies.
5922
cfc14b3a
MK
5923 * dwarf2-frame.c, dwarf2-frame.h: New files.
5924 * Makefile.in (SFILES): Add dwarf2-frame.c.
5925 (dwarf2_frame_h): Define.
5926 (COMMON_OBS): Add dwarf2-frame.o.
5927 (dwarf2-frame.o): Add dependencies.
5928
6a2751d2
AJ
59292003-05-31 Andreas Jaeger <aj@suse.de>
5930
5931 * x86-64-linux-nat.c: Fix comment.
5932
1c3545ae
MK
59332003-05-31 Mark Kettenis <kettenis@gnu.org>
5934
10f93086
MK
5935 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5936 function signature.
5937
1c3545ae
MK
5938 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5939 have a sigcontext_addr handler.
5940 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5941 sigcontext_addr handler.
5942
e11c53d2
AC
59432003-05-31 Andrew Cagney <cagney@redhat.com>
5944
5945 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5946 (print_fp_register_row): Replace do_fp_register_row.
5947 (mips_print_fp_register): Add "file" and "frame" parameters.
5948 (mips_print_register): Add "file" and "frame" parameters.
5949 (mips_print_registers_info): Replace mips_do_registers_info.
5950 (mips_gdbarch_init): Set print_registers_info instead of
5951 deprecated_do_registers_info.
5952 (mips_read_fp_register_single): Add "frame" parameter.
5953 (mips_read_fp_register_double): Add "frame" parameter.
5954
a3386186
MK
59552003-05-31 Mark Kettenis <kettenis@gnu.org>
5956
70913449
MK
5957 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5958 Fixes a bug where GDB would print the wrong register names for
5959 targets without SSE.
5960
2b5e0749
MK
5961 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5962 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5963 registers.
5964
5965 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5966 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5967 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5968 TDEP->sc_sp_offset.
5969
a3386186
MK
5970 From Michal Ludvig <mludvig@suse.cz>:
5971 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5972 and `sc_num_regs'.
5973 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5974 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5975 I386_ST0_REGNUM): Move here from...
5976 * i386-tdep.c: ... here.
5977 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5978 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5979 registers if possible.
5980 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5981 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5982 Remove variables.
5983 (i386bsd_sc_reg_offset): New variable.
5984 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5985 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5986 TDEP->sc_sp_offset.
5987 (i386fbsd_sc_reg_offset): New variable.
5988 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5989 TDEP->sc_num_regs.
5990 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5991 variables.
5992 (i386fbsd4_sc_reg_offset): New variable.
5993 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5994 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5995 TDEP->sc_sp_offset.
5996 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5997 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5998 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5999 Remove variables.
6000 (i386nbsd_sc_reg_offset): New variable.
6001 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6002 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6003 TDEP->sc_sp_offset.
6004 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6005 Remove variables.
6006 (i386obsd_sc_reg_offset): New variable.
6007 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6008 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6009 TDEP->sc_sp_offset.
6010 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6011 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6012 for frame pointer offset in `struct sigcontext'.
6013
25ab4790
AC
60142003-05-31 Andrew Cagney <cagney@redhat.com>
6015
6016 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6017 architecture methods call_dummy_words, sizeof_call_dummy_words,
6018 push_return_address, store_struct_return, and fix_call_dummy. Set
6019 push_dummy_call instead of deprecated_push_arguments.
6020 (mips_store_struct_return): Delete function.
6021 (mips_fix_call_dummy): Delete function.
6022 (mips_push_return_address): Delete function.
6023 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6024 RA_REGNUM and T9_REGNUM.
6025 (mips_n32n64_push_dummy_call): Ditto for
6026 mips_n32n64_push_arguments.
6027 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6028 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6029
6a65450a
AC
60302003-05-31 Andrew Cagney <cagney@redhat.com>
6031
6032 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6033 "dummy_addr" to "bp_addr".
6034 * infcall.c (call_function_by_hand): Pass "funaddr" to
6035 gdbarch_push_dummy_call.
6036 * gdbarch.h, gdbarch.c: Re-generate.
6037 * i386-tdep.c (i386_push_dummy_call): Update.
6038 * arm-tdep.c (arm_push_dummy_call): Update.
6039 * d10v-tdep.c (d10v_push_dummy_call): Update.
6040
c4f35dd8
MK
60412003-05-31 Mark Kettenis <kettenis@gnu.org>
6042
6043 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6044 variable declarations.
6045 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6046 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6047 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6048 x86_64_init_frame_pc, x86_64_init_frame_pc,
6049 x86_64_function_has_prologue): Remove prototypes.
6050 (X86_64_NUM_GREGS): New define.
6051 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6052 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6053 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6054 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6055 XMM1_REGNUM): Remove defines.
6056 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6057 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6058 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6059 X86_64_XMM1_REGNUM): New defines.
6060 (struct x86_64_register_info): Renamed from `struct
6061 register_info'. Remove `size' member.
6062 (x86_64_register_info_table): Remove variable.
6063 (x86_64_register_info): New variable.
6064 (X86_64_NUM_REGS): New define.
6065 (X86_64_NUM_GREGS): Remove define.
6066 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6067 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6068 Remove variables.
6069 (x86_54_dwarf2_reg_to_regnum): Remove function.
6070 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6071 (x86_64_dwarf_reg_to_regnum): New function.
6072 (x86_64_register_name): Rewrite.
6073 (x86_64_register_raw_size): Remove function.
6074 (x86_64_register_byte_table): Remove variable.
6075 (x86_64_register_byte): Remove function.
6076 (x86_64_register_virtual_type): Remove function.
6077 (x86_64_register_type): New function.
6078 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6079 x86_64_register_convert_to_raw): Remove functions.
6080 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6081 (x86_64_use_struct_convention): Make static. Adjust for renamed
6082 defines.
6083 (x86_64_frame_init_saved_regs): Remove function.
6084 (x86_64_push_arguments): Make static. Change to accept a regcache
6085 as argument.
6086 (x86_64_store_return_value, x86_64_extract_return_value): Make
6087 static. Rewrite based on i386 counterparts.
6088 (x86_64_push_dummy_call): New function.
6089 (X86_64_NUM_SAVED_REGS): New define.
6090 (x86_64_register_number): Remove function.
6091 (x86_64_store_struct_return): Remove function.
6092 (x86_64_frameless_function_invocation,
6093 x86_64_function_has_prologue): Remove functions.
6094 (PROLOG_BUFSIZE): Remove define.
6095 (struct x86_64_frame_cache): New structure.
6096 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6097 x86_64_frame_cache, x86_64_frame_this_id,
6098 x86_64_frame_prev_register, x86_64_frame_p,
6099 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6100 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6101 functions.
6102 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6103 variables.
6104 (x86_64_skip_prologue): Rewrite in terms of
6105 x86_64_analyze_prologue.
6106 (x86_64_frame_base_address): New function.
6107 (x86_64_frame_base): New variable.
6108 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6109 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6110 set deprecated_fp_regnum, deprecated_register_size,
6111 deprecated_register_bytes, register_raw_size, register_byte,
6112 register_virtual_type, register_convertiable,
6113 register_convert_to_virtual, convert_to_raw,
6114 deprecated_get_saved_register, deprecated_target_read_fp,
6115 deprecated_push_arguments, deprecated_push_return_address,
6116 deprecated_pop_frame, deprecated_store_struct_return,
6117 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6118 frameless_function_invocation, deprecated_frame_saved_pc,
6119 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6120 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6121 deprecated_init_frame_pc and virtual_frame_pointer. Call
6122 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6123 and x86_64_frame_p. Call frame_base_set_default to register
6124 x86_64_frame_base.
6125 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6126 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6127 (_initialize_x86_64_tdep): Remove function.
6128 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6129 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6130 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6131 define.
6132 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6133 (x86_64_linux_sigcontext_addr): Rewrite.
6134 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6135 x86_64_linux_frame_saved_pc): Remove functions.
6136 (x86_64_linux_pc_in_sigtramp): Renamed from
6137 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6138 trampoline.
6139 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6140 Remove_functions.
6141 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6142 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6143 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6144 (x86_64_regmap): Rename to regmap.
6145 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6146 x86_64_num_gregs.
6147 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6148 x86_64_regmap.
6149 (x86_64_fxsave_offset): Remove function.
6150 (supply_fpregset): Simply call x86_64_supply_fxsave.
6151 (fill_fpregset): Simply call x86_64_fill_fxsave.
6152 (fetch_inferior_registers, store_inferior_registers): Avoid
6153 asignment in if-statement.
6154 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6155 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6156 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6157 (fetch_core_registers): Remove function.
6158 (linux_elf_core_fns): Remove.
6159 (offsetoff): Don't define.
6160 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6161 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6162 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6163 add core-regset.o.
6164 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6165 protection against multiple includes instead of NM_X86_64_h. Add
6166 various comments. Include "config/nm-linux.h". Don't include
6167 <signal.h>.
6168 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6169 GET_THREAD_SIGNALS): Remove defines.
6170 (x86_64_register_u_addr, kernel_u_size,
6171 lin_thread_get_thread_signals): Remove prototypes.
6172 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6173 [HAVE_LINK_H]: Don't include "solib.h".
6174 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6175 * config/i386/tm-x86-64linux.h: Fix comments.
6176 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6177 x86-64-tdep.o): Update dependencies.
6178
c25083af
AC
61792003-05-30 Andrew Cagney <cagney@redhat.com>
6180
c8f55a7b
AC
6181 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6182 Change parameter type to a "struct regcache *".
6183
c25083af
AC
6184 * gdbarch.sh: Regardless of the multi-arch level, always define
6185 the macro when not already defined.
6186 * gdbarch.h, gdbarch.c: Re-generate.
6187
fbe586ae
RH
61882003-05-30 Richard Henderson <rth@redhat.com>
6189
6190 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6191 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6192 (alpha_mdebug_frame_this_id): Likewise.
6193 (alpha_mdebug_frame_prev_register): Likewise.
6194 (alpha_mdebug_frame_base_address): Likewise.
6195 (alpha_mdebug_frame_locals_address): Likewise.
6196 (alpha_mdebug_frame_args_address): Likewise.
6197 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6198 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6199 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6200 loop increment.
6201 (alpha_heuristic_frame_this_id): Make static.
6202 (alpha_heuristic_frame_prev_register): Likewise.
6203 (alpha_heuristic_frame_base_address): Likewise.
6204 * alpha-tdep.h: Update.
6205
acd5c798
MK
62062003-05-30 Mark Kettenis <kettenis@gnu.org>
6207
6208 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6209 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6210 defenitions.
6211 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6212 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6213 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6214 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6215 I386_ST0_REGNUM): New defines.
6216 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6217 codestream_get): Remove define.
6218 (codestream_next_addr, condestream_addr, condestream_buf,
6219 codestream_off, codestream_cnt): Remove variables.
6220 (codestream_fill, codestream_seek, codestream_read): Remove
6221 functions.
6222 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6223 functionality.
6224 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6225 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6226 i386_frame_saved_pc, i386_saved_pc_after_call,
6227 i386_frame_num_args, i386_frame_init_saved_regs,
6228 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6229 i386_push_arguments): Remove functions.
6230 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6231 functionality. Use i386_analyze_prologue instead of
6232 i386_get_frame_setup.
6233 (I386_NUM_SAVED_REGS): New define.
6234 (struct i386_frame_cache): New structure.
6235 (i386_alloc_frame_cache, i386_analyze_struct_return,
6236 i386_skip_probe, i386_analyze_frame_setup,
6237 i386_analyze_register_saves, i386_analyze_prologue,
6238 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6239 i386_frame_prev_register, i386_sigtramp_frame_cache,
6240 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6241 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6242 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6243 New functions.
6244 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6245 New variables.
6246 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6247 I386_EAX_REGNUM and I386_EDX_REGNUM.
6248 (i386_extract_return_value, i386_store_return_value): Use
6249 I386_ST0_REGNUM where appropriate.
6250 (i386_extract_struct_value_address): Rewrite to use extract_address.
6251 (i386_svr4_pc_in_sigtramp): Add comment.
6252 (i386_svr4_sigcontext_addr): Rewrite.
6253 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6254 TDEP->sc_sp_offset.
6255 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6256 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6257 of new defines. Set push_dummy_call, don't set
6258 deprecated_push_arguments, deprecated_push_return_address,
6259 deprecated_pop_frame. Don't set parm_boundary. Don't set
6260 deprecated_frame_chain, deprecated_frame_saved_pc,
6261 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6262 save_dummy_frame_tos, unwind_pc. Call
6263 frame_unwind_append_predicate and frame_base_set_default. Don't
6264 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6265 Don't set frameless_function_invocation. Don't set
6266 deprecated_register_bytes, deprecated_register_size,
6267 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6268 * i386-linux-tdep.c: Fix formatting in some comments.
6269 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6270 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6271 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6272 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6273 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6274 redundant parentheses.
6275 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6276 (i386_linux_sigcontext_addr): Use it. Rewrite.
6277 (find_minsym_and_objfile): Change name of second argument.
6278 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6279 changed. Use frame_pc_unwind instead of
6280 DEPRECATED_SAVED_PC_AFTER_CALL.
6281 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6282 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6283 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6284 unwinder.
6285 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6286 "dummy-frame.h".
6287 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6288 (_initialize_i386_cygwin_tdep): New prototype.
6289 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6290 deprecated_frame_chain_valid.
6291 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6292 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6293 Rely on the SVR4 defaults.
6294 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6295 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6296
c89b70f1
AC
62972003-05-30 Andrew Cagney <cagney@redhat.com>
6298
6299 * infcall.c (call_function_by_hand): Always call
6300 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6301
85b32d22
RH
63022003-05-30 Richard Henderson <rth@redhat.com>
6303
c89b70f1
AC
6304 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6305 increment.
85b32d22 6306
bfe51b1e
JB
63072003-05-29 Jim Blandy <jimb@redhat.com>
6308
6309 Use gdbarch methods for solib stuff on PowerPC Linux.
6310 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6311 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6312 show through.
6313 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6314 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6315 giving the same effect as the #definitions above.
6316
1abf022c
AF
63172003-05-29 Adam Fedor <fedor@gnu.org>
6318
6319 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6320 (find_implementation_from_class): Replace it with the standard
6321 case i.e. do nothing.
6322
d2427a71
RH
63232003-05-29 Richard Henderson <rth@redhat.com>
6324
6325 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6326 (alpha_linux_sigtramp_offset): Use it. Make static.
6327 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6328 update for new frame model.
6329 * alpha-mdebug-tdep.c: New file.
6330 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6331 (alpha_osf1_init_abi): Install it.
6332 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6333 (linked_proc_desc_table): Remove.
6334 (alpha_frame_past_sigtramp_frame): Remove.
6335 (alpha_dynamic_sigtramp_offset): Remove.
6336 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6337 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6338 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6339 (push_sigtramp_desc): Remove.
6340 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6341 (alpha_cannot_store_register): Likewise.
6342 (alpha_sigcontext_addr): Remove.
6343 (alpha_find_saved_regs): Remove.
6344 (alpha_frame_init_saved_regs): Remove.
6345 (alpha_init_frame_pc_first): Remove.
6346 (read_next_frame_reg): Remove.
6347 (alpha_frame_saved_pc): Remove.
6348 (alpha_saved_pc_after_call): Remove.
6349 (temp_proc_desc, temp_saved_regs): Remove.
6350 (alpha_about_to_return): Remove.
6351 (cached_proc_desc): Remove.
6352 (alpha_frame_chain): Remove.
6353 (alpha_print_extra_frame_info): Remove.
6354 (alpha_init_extra_frame_info): Remove.
6355 (alpha_frame_locals_address): Remove.
6356 (alpha_frame_args_address): Remove.
6357 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6358 (alpha_push_dummy_frame): Remove.
6359 (alpha_pop_frame): Remove.
6360 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6361 (alpha_read_insn): New.
6362 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6363 for different insn encodings.
6364 (alpha_in_lenient_prologue): Remove.
6365 (struct alpha_sigtramp_unwind_cache): New.
6366 (alpha_sigtramp_frame_unwind_cache): New.
6367 (alpha_sigtramp_register_address): New.
6368 (alpha_sigtramp_frame_this_id): New.
6369 (alpha_sigtramp_frame_prev_register): New.
6370 (alpha_sigtramp_frame_unwind): New.
6371 (alpha_sigtramp_frame_p): New.
6372 (struct alpha_heuristic_unwind_cache): New.
6373 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6374 don't count nop insns that occur between functions.
6375 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6376 heuristic_proc_desc, but without the mdebug wrapping.
6377 (alpha_heuristic_frame_this_id): New.
6378 (alpha_heuristic_frame_prev_register): New.
6379 (alpha_heuristic_frame_unwind): New.
6380 (alpha_heuristic_frame_p): New.
6381 (alpha_heuristic_frame_base_address): New.
6382 (alpha_heuristic_frame_base): New.
6383 (alpha_unwind_dummy_id): New.
6384 (alpha_unwind_pc): New.
6385 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6386 frame related deprecated initializations; install replacements.
6387 (alpha_dump_tdep): Remove.
6388 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6389 (alpha_read_insn, alpha_after_prologue,
6390 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6391 alpha_heuristic_frame_prev_register,
6392 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6393 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6394 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6395 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6396
93ec1121
AC
63972003-05-29 Andrew Cagney <cagney@redhat.com>
6398
6399 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6400 dependant on the availability of ASSERT_FUNCTION.
6401 (ASSERT_FUNCTION): Do not define when there is no function name.
6402
98f08d3d
KB
64032003-05-29 Kevin Buettner <kevinb@redhat.com>
6404
6405 From Jimi X <jimix@watson.ibm.com>:
6406 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6407
0897f59b
JB
64082003-05-28 Jim Blandy <jimb@redhat.com>
6409
6410 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6411 argument to ptrace to int; the system headers should give it the
6412 right type, and pointers don't fit in ints on powerpc64-*-*.
6413
14898363
L
64142003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6415
6416 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6417 DW_TAG_catch_block.
6418
a7a48797
EZ
64192003-05-26 Elena Zannoni <ezannoni@redhat.com>
6420
6421 * stabsread.c (dbx_lookup_type): Make static.
6422 (read_type): Ditto.
6423 (add_undefined_type): Ditto.
6424 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6425 not export.
6426
f5479e9c
EZ
64272003-05-26 Elena Zannoni <ezannoni@redhat.com>
6428
6429 * hpread.c (hpread_has_name): Make static.
6430 (hpread_psymtab_to_symtab): Ditto.
6431 (file_exists): Ditto.
6432 (hpread_call_pxdb): Ditto.
6433 (hpread_pxdb_needed): Ditto.
6434 (hpread_quick_traverse): Ditto.
6435 (hpread_get_header): Ditto.
6436 (hpread_get_lntt): Ditto.
6437 (hpread_get_slt): Ditto.
6438 (class_of): Ditto.
6439
eb2e12d7
AS
64402003-05-25 Andreas Schwab <schwab@suse.de>
6441
78bf922a
AS
6442 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6443 stack_align and deprecated_extra_stack_alignment_needed.
6444 (m68k_stack_align): Delete.
6445
eb2e12d7
AS
6446 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6447 (m68k_register_virtual_size): Likewise.
6448 (altos_skip_prologue): Remove obsolete function.
6449 (isi_frame_num_args): Likewise.
6450 (news_frame_num_args): Likewise.
6451 (m68k_fix_call_dummy): Make static.
6452 (m68k_push_dummy_frame): Likewise.
6453 (m68k_pop_frame): Likewise.
6454 (m68k_skip_prologue): Likewise.
6455 (m68k_frame_init_saved_regs): Likewise.
6456 (m68k_saved_pc_after_call): Likewise.
6457 (m68k_get_longjmp_target): Make multi-arch.
6458 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6459 structure. Register m68k_get_longjmp_target if enabled.
6460 * m68k-tdep.h (struct gdbarch_tdep): Define.
6461 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6462
6463 * Makefile.in (config.status): Also depend on configure.tgt
6464 and configure.host.
6465 (m68klinux-tdep.o): Update dependencies.
6466 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6467 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6468 (M68K_LINUX_JB_PC): Define.
6469 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6470 and take additional parameter.
6471 (m68k_linux_sigtramp_saved_pc): Update.
6472 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6473 m68k_linux_pc_in_sigtramp, in_plt_section,
6474 find_solib_trampoline_target.
6475 * config/m68k/tm-linux.h: Don't include any tm headers.
6476 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6477 (JB_ELEMENT_SIZE): Likewise.
6478 (JB_PC): Likewise.
6479 (GET_LONGJMP_TARGET): Likewise.
6480 (IN_SIGTRAMP): Likewise.
6481 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6482
eb2c22dc
MK
64832003-05-25 Mark Kettenis <kettenis@gnu.org>
6484
6485 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6486 (sparc32_push_arguments): Re-implement by calling
6487 sparc32_do_push_arguments.
6488
44b7b84e
MK
64892003-05-25 Mark Kettenis <kettenis@gnu.org>
6490
6491 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6492 SPARC_O1_REGNUM): New defines.
6493 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6494 (sparc32_store_return_value): New function.
6495 (sparc_extract_struct_value_address): Rewrite to operate on a
6496 regcache.
6497 (sparc_gdbarch_init): Don't set
6498 deprecated_extract_struct_value_address. Set
6499 extract_struct_value_address instead. Don't set
6500 deprecated_extract_return_value and deprecated_store_return_value
6501 for 32-bit targets. Set extract_return_value and
6502 store_return_value instead.
6503 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6504 DEPRECTAED_EXTRACT_RETURN_VALUE,
6505 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6506 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6507 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6508 (sparc_store_return_value): Remove prototype.
6509 (sparc32_store_return_value): New prototype.
6510 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6511 Adjust prototypes.
6512
f6ad61e3
MK
65132003-05-24 Mark Kettenis <kettenis@gnu.org>
6514
6515 * sparcnbsd-tdep.c: Include "gdb_string.h".
6516
b276f1bb
AC
65172003-05-23 Andrew Cagney <cagney@redhat.com>
6518
6519 * p-valprint.c (pascal_val_print): Replace extract_address with
6520 the inline equivalent extract_unsigned_integer.
6521 * jv-valprint.c (java_value_print): Ditto.
6522 * ada-valprint.c (ada_val_print_1): Ditto.
6523 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6524
e76c5fcc
TR
65252003-05-23 Theodore A. Roth <troth@openavr.org>
6526
6527 * blockframe.c (frameless_look_for_prologue): Remove unused
6528 after_prologue variable.
6529
2cdd89cb
MK
65302003-05-23 Mark Kettenis <kettenis@gnu.org>
6531
6532 * blockframe.c (get_pc_function_start): Rewrite to avoid
6533 asignments in if-statements.
6534
182d43bc
EZ
65352003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6536
6537 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 6538 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
6539 files, don't relocate absolute symbols (and do use mst_abs).
6540
e8f3fcdd
AC
65412003-05-23 Andrew Cagney <cagney@redhat.com>
6542
6543 * objc-lang.c: Include "gdb_assert.h".
6544 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6545 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6546 (gdb_check, gdb_check_fatal): Delete functions.
6547 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6548 gdb_assert.
6549 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6550 * Makefile.in (objc-lang.o): Update dependencies.
6551
3c23e6fb
ILT
65522003-05-22 Ian Lance Taylor <ian@airs.com>
6553
6554 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6555 with fprintf_filtered, not fprintf_unfiltered.
6556
af1342ab
AC
65572003-05-22 Andrew Cagney <cagney@redhat.com>
6558
6559 * stack.c (frame_info): Inline extract_address, replacing it with
6560 extract_unsigned_integer.
6561 * findvar.c (unsigned_pointer_to_address): Ditto.
6562 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6563 * dwarf2expr.c (dwarf2_read_address): Ditto.
6564 * frame.c (frame_pc_unwind): Update comment.
6565 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6566
47e242ec
JJ
65672003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6568
6569 * infptrace.c (detach): Call print_sys_errmsg rather than
6570 perror_with_name to issue warning message when errno is non-zero
6571 after calling ptrace detach.
6572
e2ac8128
JB
65732003-05-21 J. Brobecker <brobecker@gnat.com>
6574
6575 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6576 macro definitions from here...
6577 * hppa-tdep.c: ...to there.
6578
92b3541e
KB
65792003-05-20 Kevin Buettner <kevinb@redhat.com>
6580
6581 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6582 register_ptrace_addr(). Fix all callers.
6583
55809acb
AS
65842003-05-21 Andreas Schwab <schwab@suse.de>
6585
6586 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6587 dependencies.
6588 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6589 end.
6590 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6591 (_initialize_m68k_linux_tdep): New function.
6592 (m68k_linux_frame_saved_pc): Make static.
6593 (m68k_linux_extract_return_value): Likewise.
6594 (m68k_linux_store_return_value): Likewise.
6595 (m68k_linux_extract_struct_value_address): Likewise.
6596 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6597 Remove.
6598 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6599 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6600 (DEPRECATED_FRAME_SAVED_PC): Remove.
6601
0fbc10f7
KW
66022003-05-20 Kris Warkentin <kewarken@qnx.com>
6603
6604 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6605 regset numbering rather than our own.
6606
58da2eb2
DC
66072003-05-19 David Carlton <carlton@bactrian.org>
6608
6609 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6610
1fcb5155
DC
66112003-05-19 David Carlton <carlton@bactrian.org>
6612
6613 Partial fix for PR c++/827.
6614 * cp-support.h: Include symtab.h.
6615 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6616 * cp-namespace.c: Update contributors.
6617 (cp_lookup_symbol_nonlocal): New.
6618 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6619 (lookup_symbol_file): Ditto.
6620 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6621 * block.h: Declare block_scope, block_using, block_global_block.
6622 * block.c (block_scope): New.
6623 (block_using, block_global_block): Ditto.
6624 * Makefile.in (cp_support_h): Depend on symtab_h.
6625 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6626
5f9a71c3
DC
66272003-05-19 David Carlton <carlton@bactrian.org>
6628
6629 * language.h (struct language_defn): Add 'la_value_of_this'
6630 and 'la_lookup_symbol_nonlocal' members.
6631 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6632 lookup_symbol_static, lookup_symbol_global,
6633 lookup_symbol_aux_block.
6634 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6635 if we should search fields of this and how to do static/global
6636 lookup.
6637 (lookup_symbol_aux_block): Make extern.
6638 (basic_lookup_symbol_nonlocal): New.
6639 (lookup_symbol_static, lookup_symbol_global): Ditto.
6640 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6641 'la_lookup_symbol_nonlocal' members.
6642 * c-lang.c (c_language_defn, cplus_language_defn)
6643 (asm_language_defn, minimal_language_defn): Ditto.
6644 * jv-lang.c (java_language_defn): Ditto.
6645 * language.c (unknown_language_defn, auto_language_defn)
6646 (local_language_defn): Ditto.
6647 * m2-lang.c (m2_language_defn): Ditto.
6648 * objc-lang.c (objc_language_defn): Ditto.
6649 * scm-lang.c (scm_language_defn): Ditto.
6650 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6651 * p-lang.c (pascal_language_defn): Ditto for both.
6652 * Makefile.in (f-lang.o): Depend on value_h.
6653 (p-lang.o): Ditto.
6654
89a9d1b1
DC
66552003-05-19 David Carlton <carlton@bactrian.org>
6656
6657 * block.h: Declare block_static_block.
6658 * block.c (block_static_block): New.
6659 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6660 lookup_symbol_aux_local, calling block_static_block instead.
6661 (lookup_symbol_aux_local): Delete 'static_block' argument.
6662
eed3f8ab
DC
66632003-05-19 David Carlton <carlton@bactrian.org>
6664
6665 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6666
a09d8bda
ML
66672003-05-19 Michal Ludvig <mludvig@suse.cz>
6668
6669 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6670 register numbers mapping.
6671
69636828
AF
66722003-05-18 Adam Fedor <fedor@gnu.org>
6673
6674 * symtab.c (completion_list_objc_symbol): New function.
6675 (make_symbol_completion_list): Use it to add ObjC symbols
6676 when looking though the list.
6677 (language_search_unquoted_string): New function.
6678 (make_file_symbol_completion_list): Use it.
6679
55baeb84
AS
66802003-05-18 Andreas Schwab <schwab@suse.de>
6681
d0b45d99
AS
6682 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6683 dependencies.
6684 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6685 as m68k_linux_extract_return_value.
6686 (DEPRECATED_STORE_RETURN_VALUE): Define as
6687 m68k_linux_store_return_value.
6688 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6689 m68k_linux_extract_struct_value_address.
6690 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6691 get_next_frame, get_frame_base, get_frame_pc.
6692 (m68k_linux_frame_saved_pc): Use get_frame_base.
6693 (m68k_linux_extract_return_value): New function.
6694 (m68k_linux_store_return_value): New function.
6695 (m68k_linux_extract_struct_value_address): New function.
6696 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6697
55baeb84
AS
6698 * c-exp.y (typebase): Remove duplicate occurence of
6699 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 6700 of lookup_signed_typename.
55baeb84 6701
b6b08ebf
MK
67022003-05-18 Mark Kettenis <kettenis@gnu.org>
6703
6704 * dwarf2loc.c (find_location_expression): Change type of second
6705 argument to `size_t *'.
6706 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6707 for size variable.
6708
5ad1c190
DC
67092003-05-18 David Carlton <carlton@bactrian.org>
6710
6711 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6712 'linkage_name'. Add comment.
6713 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6714 'linkage_name'.
6715 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6716 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6717 (lookup_block_symbol): Ditto.
6718
b8b527c5
AC
67192003-05-16 Andrew Cagney <cagney@redhat.com>
6720
6721 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6722 * gdbarch.h, gdbarch.c: Re-generate.
6723 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6724 * TODO (REGISTER_BYTES): Delete reference.
6725 * alpha-tdep.c (alpha_gdbarch_init): Update.
6726 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6727 * x86-64-tdep.c (x86_64_init_abi): Update.
6728 * vax-tdep.c (vax_gdbarch_init): Update.
6729 * v850-tdep.c (v850_gdbarch_init): Update.
6730 * sparc-tdep.c (sparc_gdbarch_init): Update.
6731 * sh-tdep.c (sh_gdbarch_init): Update.
6732 * s390-tdep.c (s390_gdbarch_init): Update.
6733 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6734 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6735 (ns32k_gdbarch_init_32382): Update.
6736 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6737 * mcore-tdep.c (mcore_gdbarch_init): Update.
6738 * m68k-tdep.c (m68k_gdbarch_init): Update.
6739 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6740 * ia64-tdep.c (ia64_gdbarch_init): Update.
6741 * i386-tdep.c (i386_gdbarch_init): Update.
6742 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6743 * hppa-tdep.c (hppa_gdbarch_init): Update.
6744 * h8300-tdep.c (h8300_gdbarch_init): Update.
6745 * frv-tdep.c (frv_gdbarch_init): Update.
6746 * cris-tdep.c (cris_gdbarch_init): Update.
6747 * avr-tdep.c (avr_gdbarch_init): Update.
6748 * arm-tdep.c (arm_gdbarch_init): Update.
6749 * sparc-tdep.c (sparc_pop_frame): Update.
6750 * rs6000-tdep.c (rs6000_pop_frame): Update.
6751 * remote.c (init_remote_state): Update.
6752 (remote_prepare_to_store): Update.
6753 * remote-vx.c (vx_prepare_to_store): Update.
6754 * remote-sds.c (sds_fetch_registers): Update.
6755 (sds_prepare_to_store): Update.
6756 * remote-array.c: Update.
6757 * regcache.c (init_legacy_regcache_descr): Update.
6758 (init_regcache_descr): Update.
6759 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6760 (mips_o64_extract_return_value): Update.
6761 * irix5-nat.c (fetch_core_registers): Update.
6762 * irix4-nat.c (fetch_core_registers): Update.
6763 * i386-tdep.h: Update.
6764 * hppa-tdep.c (pa_do_registers_info): Update.
6765 (pa_do_strcat_registers_info): Update.
6766 * cris-tdep.c (cris_register_bytes_ok): Update.
6767 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6768 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6769 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6770 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6771 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6772 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6773 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6774 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6775 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6776 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6777 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6778 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6779 (REGISTER_BYTES_OK): Update.
6780 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6781 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6782
ee2842e2
ILT
67832003-05-16 Ian Lance Taylor <ian@airs.com>
6784
6785 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6786 (vax_print_insn, print_insn_arg): Remove static functions.
6787 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6788 print_insn_vax from opcodes library.
6789 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6790
973177d3
AC
67912003-05-15 Andrew Cagney <cagney@redhat.com>
6792
aaab4dba
AC
6793 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6794 * target.h (memory_breakpoint_from_pc): Delete declaration.
6795 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6796 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6797 * monitor.c (monitor_insert_breakpoint): Use
6798 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6799 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6800 * gdbarch.h, gdbarch.c: Re-generate.
6801 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6802 (sparc_gdbarch_init): Set breakpoint_from_pc to
6803 sparc_breakpoint_from_pc.
6804 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6805 (BREAKPOINT_FROM_PC): Define.
6806 (sparc_breakpoint_from_pc): Declare.
6807 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6808 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6809 (BREAKPOINT_FROM_PC): Define.
6810 (BREAKPOINT): Delete macro.
6811 * target.h: Update comment.
6812 * s390-tdep.c (s390_gdbarch_init): Update comments.
6813 * remote.c: Update comments.
6814 * remote-mips.c: Update comments.
6815 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6816 * mem-break.c: Update comment.
6817 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6818 (ia64_memory_insert_breakpoint): Update.
6819 * config/sparc/tm-sparc.h: Update comment.
6820 * config/pa/tm-hppa64.h: Update comment.
6821 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6822 (rs6000_breakpoint_from_pc): Update.
6823 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6824 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6825 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6826 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6827 (mips_breakpoint_from_pc): Update.
6828 (mips_dump_tdep): Update.
6829
e06963ff
AC
6830 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6831 * minsyms.c (lookup_minimal_symbol): Inline
6832 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6833
973177d3
AC
6834 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6835 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6836 * p-lang.c (pascal_printstr): Ditto.
6837 * objc-lang.c (objc_printstr): Ditto.
6838 * m2-lang.c (m2_printstr): Ditto.
6839 * jv-valprint.c (java_print_value_fields): Ditto.
6840 * f-lang.c (f_printstr): Ditto.
6841 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6842 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6843 for repeat_count_threshold.
6844 * Makefile.in (cp-valprint.o): Update dependencies.
6845
5ea2bd7f 68462003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6847
5ea2bd7f
JJ
6848 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6849 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
6850 they start with mov r2,r12. Support skipping over indirect stores
6851 of the input registers. Upon hitting a non-nop branch instruction
6852 or predicated instruction, bail out by setting lim_pc to the current
6853 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
6854 beyond our calculated value and we have trust_limit set,
6855 use the lim_pc value.
6856
cc8c88f3
AC
68572003-05-15 Andrew Cagney <cagney@redhat.com>
6858
6859 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6860 generic_find_dummy_frame.
6861 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6862 (deprecated_generic_find_dummy_frame): Update.
6863 (deprecated_read_register_dummy): Update.
6864 * frame.c (deprecated_generic_get_saved_register): Update.
6865
909cd28e
TR
68662003-05-15 Theodore A. Roth <troth@openavr.org>
6867
6868 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6869 (avr_gdbarch_init): Set breakpoint_from_pc method.
6870
b923b08d
AC
68712003-05-15 Andrew Cagney <cagney@redhat.com>
6872
6873 * regcache.c (build_regcache): Set deprecated_register_valid
6874 directly.
6875 (deprecated_grub_regcache_for_register_valid): Delete function.
6876 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6877 declaration.
6878
ae2f03ac 68792003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
6880
6881 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
6882 * symtab.c (lookup_symbol_aux): Delete calls to
6883 lookup_symbol_aux_minsyms.
6884 (lookup_symbol_aux_minsyms): Comment out function and
6885 prototype. Delete lookup by mangled name.
ae2f03ac 6886
18ec9831
KB
68872003-05-14 Kevin Buettner <kevinb@redhat.com>
6888
6889 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6890 correctly indicate an empty stack and ``stack_allocated'' to the
6891 indicate the number of elements initially allocated.
6892 (dwarf_expr_grow_stack): Simplify method for computing new
6893 stack size. Don't loop infinitely if ``stack_len'' is zero.
6894 (execute_stack_op): Move ``ctx->in_reg'' initialization
6895 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6896 be used in conjuction with DW_OP_piece. Revise error message
6897 accordingly.
6898
de18ac1f
TR
68992003-05-14 Theodore A. Roth <troth@openavr.org>
6900
6901 * MAINTAINERS: Update my email address.
6902 * avr-tdep.c: Ditto.
6903
176620f1
EZ
69042003-05-14 Elena Zannoni <ezannoni@redhat.com>
6905
6906 * symtab.h (enum domain_enum): Rename from namespace_enum.
6907 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6908 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6909 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6910 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6911 TYPES_NAMESPACE, METHODS_NAMESPACE.
6912 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6913 (struct symbol, struct partial_symbol): Rename field
6914 'namespace_enum namespace' to 'domain_enum domain'.
6915 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6916 Delete old define kludge for namespace.
6917
6918 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6919 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6920 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6921 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6922 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6923 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6924 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6925 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6926 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6927 occurrences of the above.
6928
b7f31508
ILT
69292003-05-14 Ian Lance Taylor <ian@airs.com>
6930
6931 * Makefile.in (install-only): Use $(SHELL) when running
6932 mkinstalldirs.
6933
2fdbdd39
ILT
69342003-05-13 Ian Lance Taylor <ian@airs.com>
6935
a208d82c
ILT
6936 * MAINTAINERS (write after approval): Add myself.
6937
2fdbdd39
ILT
6938 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6939 second and third arguments.
6940 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6941 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6942
fbd9dcd3
AC
69432003-05-13 Andrew Cagney <cagney@redhat.com>
6944
6945 * defs.h (store_address): Delete declaration.
6946 findvar.c (store_address): Delete function.
6947 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6948 store_unsigned_integer.
6949 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6950 * v850-tdep.c (v850_push_arguments): Ditto.
6951 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6952 * sh-tdep.c (sh64_get_saved_register): Ditto.
6953 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6954 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6955 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6956 (mips_get_saved_register): Ditto.
6957 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6958 (find_func_descr, ia64_push_arguments): Ditto.
6959 * i386-tdep.c (i386_push_arguments): Ditto.
6960 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6961 * frv-tdep.c (frv_push_arguments): Ditto.
6962 * frame.c (legacy_saved_regs_prev_register): Ditto.
6963 (deprecated_generic_get_saved_register): Ditto.
6964 * findvar.c (unsigned_address_to_pointer): Ditto.
6965 * dwarf2read.c (dwarf2_const_value): Ditto.
6966 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6967 * alpha-tdep.c (alpha_push_arguments): Ditto.
6968
6760f9e6
JB
69692003-05-12 J. Brobecker <brobecker@gnat.com>
6970
6971 * NEWS: Mention that the hppa-hpux port has been partially
6972 multiarched (32bit ABIT only, so far).
6973
30e221b4
AC
69742003-05-11 Andrew Cagney <cagney@redhat.com>
6975
6976 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6977 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6978 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6979 sim/testsuite/sim/arm/misaligned2.ms, and
6980 sim/testsuite/sim/arm/misaligned3.ms.
6981 * disasm.h (struct ui_file): Add opaque struct declaration.
6982 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6983 * frame.h (struct ui_file): Ditto.
6984
dea7f9ba
MK
69852003-05-11 Mark Kettenis <kettenis@gnu.org>
6986
6987 * value.h: Pretty print.
6988
01986c48
MK
69892003-05-10 Mark Kettenis <kettenis@gnu.org>
6990
6991 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6992
123a958e
AC
69932003-05-08 Andrew Cagney <cagney@redhat.com>
6994
6995 * regcache.h (max_register_size): Delete declaration.
6996 * regcache.c (max_register_size): Delete function.
6997 (struct regcache_descr): Delete field "max_register_size".
6998 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6999 registers fit in MAX_REGISTER_SIZE.
7000 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7001 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7002 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7003 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7004 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7005 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7006 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7007 * dve3900-rom.c, hppa-tdep.c: Ditto.
7008
eb294659
DC
70092003-05-08 David Carlton <carlton@math.stanford.edu>
7010
7011 * valops.c (push_word): Fix typo.
7012
d9d9c31f
AC
70132003-05-08 Andrew Cagney <cagney@redhat.com>
7014
7015 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7016 * gdbarch.h: Re-generate.
7017 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7018 (legacy_max_register_raw_size): Delete declaration.
7019 * regcache.c (legacy_max_register_raw_size): Delete function.
7020 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7021 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7022 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7023 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7024 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7025 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7026 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7027 * findvar.c, dwarf2cfi.c: Ditto.
7028
22540ece
AC
70292003-05-08 Andrew Cagney <cagney@redhat.com>
7030
7031 * mips-tdep.c (read_signed_register): New function, moved to here
7032 from "regcache.c".
7033 (read_signed_register_pid): Ditto.
7034 * regcache.c (read_signed_register_pid): Delete function, moved to
7035 "mips-tdep.c".
7036 (read_signed_register): Ditto.
7037 * regcache.h (read_signed_register): Delete declaration.
7038 (read_signed_register_pid): Delete declaration.
7039
0c92afe8
AC
70402003-05-08 Andrew Cagney <cagney@redhat.com>
7041
7042 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7043 * gdbarch.h: Re-generate.
7044 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7045 (legacy_max_register_virtual_size): Delete declaration.
7046 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7047 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7048 * tracepoint.c (memrange_sortmerge): Ditto.
7049 * sparc-tdep.c (sparc_print_registers): Ditto.
7050 * regcache.c (legacy_max_register_virtual_size): Delete function.
7051
6037b830
JB
70522002-05-08 J. Brobecker <brobecker@gnat.com>
7053
7054 * fork-child.c (escape_bang_in_quoted_argument): New function.
7055 (fork_inferior): Escape '!' characters in quoted arguments
7056 only when needed.
7057
5d62c8b1
JB
70582003-05-08 J. Brobecker <brobecker@gnat.com>
7059
7060 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7061 the language of the CU is not currently supported by GDB.
7062
20a0e81d
JB
70632003-05-08 J. Brobecker <brobecker@gnat.com>
7064
7065 * defs.h (language): Add language_minimal enum value.
7066 * c-lang.c (minimal_language_defn): New language definition.
7067 (_initialize_c_language): Add the new minimal language to the list
7068 of languages known to GDB.
7069
710ee10a
KB
70702003-05-08 Kevin Buettner <kevinb@redhat.com>
7071
7072 * frame.c (get_frame_type): Don't attempt to lazily initialize
7073 frame's unwinder for legacy frames.
7074
1750fa04
AC
70752003-05-07 Andrew Cagney <cagney@redhat.com>
7076
7077 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7078 and "regcache" parameters.
7079 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7080
ddf9f258 70812003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7082
7083 * dwarf2read.c (dwarf_decode_lines): Only use output of
7084 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
7085 the current address.
7086
87767c29
AC
70872003-05-07 Andrew Cagney <cagney@redhat.com>
7088
7089 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7090 code.
7091
5e7b2f39
JB
70922003-05-07 Jim Blandy <jimb@redhat.com>
7093
7094 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7095 'maint info symtabs' and 'maint info psymtabs'.
7096 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7097 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7098 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7099 Declarations updated.
7100 * maint.c (maintenance_list_command): Delete.
7101 (_initialize_maint_cmds): Update calls to add_cmd.
7102 * gdbcmd.h (maintenancelistlist): Delete declaration.
7103 * cli/cli-cmds.c (maintenancelistlist): Delete.
7104 (init_cmd_lists): Don't initialize it.
7105 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7106
f6684c31
AC
71072003-05-07 Andrew Cagney <cagney@redhat.com>
7108
7109 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7110 "regcache".
7111 (d10v_print_registers_info): Update.
7112 (d10v_dmap_register, d10v_imap_register): Delete functions.
7113 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7114 and "imap_register".
7115 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7116 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7117 * arch-utils.c (generic_remote_translate_xfer_address): Add
7118 "regcache" and "gdbarch" parameters.
7119 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7120 parameter. Change class to multi-arch.
7121 * gdbarch.h, gdbarch.c: Re-generate.
7122 * remote.c (remote_xfer_memory): Use
7123 gdbarch_remote_translate_xfer_address.
8ffd9b1b 7124
e4846b08
JJ
71252003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7126
7127 * infrun.c (prev_pc): Move declaration ahead of proceed().
7128 (proceed): Refresh prev_pc value before resuming.
7129 (stop_stepping): Remove code to refresh prev_pc.
7130
6b71b8ac
KW
71312003-05-06 Kris Warkentin <kewarken@qnx.com>
7132
7133 * nto-tdep.c: Removed stray comment.
7134
47979a4b
KW
71352003-05-06 Kris Warkentin <kewarken@qnx.com>
7136
7137 * i386-nto-tdep.c: Fix old K&R function definitions.
7138 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7139 Also change add_show_from_set() call to add_setshow_cmd().
7140 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7141
00905d52
AC
71422003-05-05 Andrew Cagney <cagney@redhat.com>
7143
7144 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7145 (fprint_dummy_frames): New function.
7146 (maintenance_print_dummy_frames): New function.
7147 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7148 * frame.c (fprint_frame_id): Make global.
7149 * frame.h (fprint_frame_id): Declare.
7150 * Makefile.in (dummy-frame.o): Update dependencies.
7151
b1e29e33
AC
71522003-05-05 Andrew Cagney <cagney@redhat.com>
7153
7154 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7155 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7156 SIZEOF_CALL_DUMMY_WORDS.
7157 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7158 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7159 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7160 CALL_DUMMY_BREAKPOINT_OFFSET.
7161 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7162 CALL_DUMMY_START_OFFSET.
7163 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7164 * gdbarch.h, gdbarch.c: Re-generate.
7165 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7166 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7167 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7168 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7169 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7170 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7171 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7172 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7173 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7174 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7175 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7176 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7177 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7178 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7179 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
7180
71812003-05-05 Kris Warkentin <kewarken@qnx.com>
7182
7183 * configure.tgt: Add i[3456]86-*-nto*.
7184 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7185 * nto-tdep.c: New file. Neutrino target support routines.
7186 * nto-tdep.h: New file. Neutrino target header.
7187 * config/tm-qnxnto.h: New file.
7188 * config/i386/i386nto.mt: New file.
7189 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 7190
0ce3d317
AC
71912003-05-04 Andrew Cagney <cagney@redhat.com>
7192
7193 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7194 (load_infrun_state): Ditto.
7195 (struct thread_info): Drop "prev_func_name" field.
7196 * thread.c (load_infrun_state): Update.
7197 (save_infrun_state): Update.
7198 * infrun.c (prev_func_name): Delete variable.
7199 (init_wait_for_inferior): Do not clear prev_func_name.
7200 (stop_stepping, keep_going, context_switch): Do not swap
7201 prev_func_name.
7202 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7203 instead of PC_IN_SIGTRAMP.
7204
46654a5b
AC
72052003-05-04 Andrew Cagney <cagney@redhat.com>
7206
7207 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7208 REGISTER_BYTE with register_offset_hack.
7209 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7210 that REGISTER_BYTE is consistent with the regcache.
7211 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7212 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 7213
14b08c1b
MK
72142003-05-04 Mark Kettenis <kettenis@gnu.org>
7215
04c8243f
MK
7216 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7217 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7218
14b08c1b
MK
7219 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7220
c7a11e01
JB
72212003-05-03 J. Brobecker <brobecker@gnat.com>
7222
7223 From Thierry Schneider <tpschneider1@yahoo.com>
7224 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7225 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7226 (mi-cmd-symbol.o): Add rule.
7227
7043d8dc
AC
72282003-05-03 Andrew Cagney <cagney@redhat.com>
7229
7230 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7231 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7232 * gdbarch.h, gdbarch.c: Re-generate.
7233 * d10v-tdep.c (d10v_push_dummy_code): New function.
7234 (d10v_gdbarch_init): Set push_dummy_code.
7235 * infcall.c (legacy_push_dummy_code): New function.
7236 (generic_push_dummy_code): New function.
7237 (push_dummy_code): New function.
7238 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7239 instead of dummy_addr, to push_dummy_call. Move call to
7240 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7241 switch.
7242 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7243
92bf2b80
AC
72442003-05-03 Andrew Cagney <cagney@redhat.com>
7245
7246 * disasm.h (print_insn): Declare.
7247 * disasm.c (init_gdb_disassemble_info): New function.
7248 (gdb_disassembly): Call init_gdb_disassemble_info.
7249 (gdb_print_insn): New function.
7250 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7251 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7252 * mcore-tdep.c: Include "disasm.h"
7253 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7254 * d10v-tdep.c: Include "disasm.h".
7255 (display_trace): Call gdb_print_insn, instead of print_insn.
7256 (print_insn): Delete function.
7257 * printcmd.c: Include "disasm.h".
7258 (print_insn): Delete function.
7259 (print_formatted): Call gdb_print_insn, instead of print_insn.
7260 * Makefile.in (printcmd.o): Update dependencies.
7261 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 7262
27d94c49
AC
72632003-05-02 Andrew Cagney <cagney@redhat.com>
7264
82de1e5b
AC
7265 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7266 PC_REGNUM, re-indent.
7267 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7268 PC_REGNUM isn't set.
7269
27d94c49
AC
7270 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7271 * gdbarch.h, gdbarch.c: Re-generate.
7272 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7273 register_virtual_size, pc_regnum, or register_bytes.
7274 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7275 (d10v_register_type): Use D10V_PC_REGNUM.
7276 (d10v_print_registers_info, d10v_read_pc): Ditto.
7277 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7278 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7279
a9c0dc7f
DC
72802003-05-02 David Carlton <carlton@bactrian.org>
7281
7282 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7283 the name with mstrsave.
7284
e33d66ec
EZ
72852003-05-02 Elena Zannoni <ezannoni@redhat.com>
7286
7287 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7288 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7289 (host_charset_name, target_charset_name): New vars for use by
7290 set/show commands.
7291 (host_charset_enum, target_charset_enum): New enums for set/show
7292 commands.
7293 (set_charset_sfunc, set_host_charset_sfunc,
7294 set_target_charset_sfunc): New functions.
7295 (set_host_charset, set_target_charset): Make static.
7296 (list_charsets, set_host_charset_command,
7297 set_target_charset_command): Delete functions.
7298 (show_charset_command): Rewrite as....
7299 (show_charset): Hook this up with the set/show command mechanism.
7300 (_initialize_charset): Change names of charsets to match the
7301 set/show enums. Use host_charset_name and target_charset_name.
7302 Use set/show mechanism for charset, host-charset, target-charset
7303 commands. Do not make 'show host-charset' and 'show
7304 target-charset' be aliases of 'show charset'.
7305
7306 * charset.h (set_host_charset, set_target_charset): Don't export,
7307 they are not used outside the file.
7308
2b6fd0d8
AC
73092003-05-01 Andrew Cagney <cagney@redhat.com>
7310
7311 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7312 (gdb_disassembly): Make "di" non static, always initialize and
7313 cleanup. Always use dis_asm_read_memory.
7314 (gdb_dis_asm_read_memory): Delete function.
7315
6ae2f580
AC
73162003-05-01 Andrew Cagney <cagney@redhat.com>
7317
7318 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7319 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7320
810ecf9f
AC
73212003-04-30 Andrew Cagney <cagney@redhat.com>
7322
7323 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7324 "tm_print_insn_info".
7325 (TARGET_PRINT_INSN_INFO): Delete macro.
7326 (dis_asm_read_memory): Delete function declaration.
7327 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7328 (tm_print_insn_info): Delete variable definition.
7329 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7330 * gdbarch.h, gdbarch.c: Re-generate.
7331 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7332 "deprecated_tm_print_insn_info".
7333 * mcore-tdep.c (mcore_dump_insn): Ditto.
7334 * mips-tdep.c (mips_gdbarch_init): Ditto.
7335 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7336 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7337 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7338 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7339 instead of TARGET_PRINT_INSN_INFO, add comment.
7340 * s390-tdep.c (s390_get_frame_info): Instead of
7341 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7342 (s390_check_function_end, s390_is_sigreturn): Ditto.
7343 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7344 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7345 * disasm.c: Include "gdbcore.h".
7346 (_initialize_disasm): New function, initialize
7347 "deprecated_tm_print_insn_info".
7348 (deprecated_tm_print_insn_info): New variable.
7349 (dis_asm_read_memory): Moved from "corefile.c", made static.
7350 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7351 * Makefile.in (disasm.o): Update dependencies.
7352
07020390
AC
73532003-04-30 Andrew Cagney <cagney@redhat.com>
7354
7355 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7356
a9fa03de
AF
73572003-04-29 Adam Fedor <fedor@gnu.org>
7358
7359 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7360 * infcall.c (find_function_addr): Make non-static.
7361 * infcall.h (find_function_addr): Declare.
7362 * Makefile.in (eval.o): Update dependencies.
7363
1bae87b9
AF
73642003-04-28 Adam Fedor <fedor@gnu.org>
7365
7366 * symtab.c (symbol_find_demangled_name): Check for and demangle
7367 ObjC symbols.
7368 (symbol_init_demangled_name): Init for language_objc as well.
7369
0ba6dca9
AC
73702003-04-28 Andrew Cagney <cagney@redhat.com>
7371
7372 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7373 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7374 * gdbarch.h, gdbarch.c: Re-generate.
7375 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7376 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7377 * inferior.h (deprecated_read_fp): Rename read_fp.
7378 (generic_target_read_fp): Delete declaration.
7379 * regcache.c (generic_target_read_fp): Delete function.
7380 (deprecated_read_fp): Replace read_fp, use
7381 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7382 * d10v-tdep.c (d10v_read_fp): Delete function.
7383 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7384
7385 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7386 deprecated_target_read_fp to generic_target_read_fp.
7387 * sh-tdep.c (sh_gdbarch_init): Ditto.
7388 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7389 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7390 * frv-tdep.c (frv_gdbarch_init): Ditto.
7391
7392 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7393 deprecated_fp_regnum.
7394 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7395 * vax-tdep.c (vax_gdbarch_init): Ditto.
7396 * v850-tdep.c (v850_gdbarch_init): Ditto.
7397 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7398 * sh-tdep.c (sh_gdbarch_init): Ditto.
7399 * s390-tdep.c (s390_gdbarch_init): Ditto.
7400 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7401 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7402 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7403 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7404 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7405 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7406 * i386-tdep.c (i386_gdbarch_init): Ditto.
7407 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7408 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7409 * frv-tdep.c (frv_gdbarch_init): Ditto.
7410 * cris-tdep.c (cris_gdbarch_init): Ditto.
7411 * avr-tdep.c (avr_gdbarch_init): Ditto.
7412 * arm-tdep.c (arm_gdbarch_init): Ditto.
7413 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7414
7415 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7416 * v850-tdep.c (v850_gdbarch_init): Ditto.
7417 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7418 * sh-tdep.c (sh_gdbarch_init): Ditto.
7419 * s390-tdep.c (s390_gdbarch_init): Ditto.
7420 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7421 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7422 * mips-tdep.c (mips_gdbarch_init): Ditto.
7423 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7424 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7425 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7426 * frv-tdep.c (frv_gdbarch_init): Ditto.
7427 * avr-tdep.c (avr_gdbarch_init): Ditto.
7428 * arm-tdep.c (arm_gdbarch_init): Ditto.
7429
7430 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7431 DEPRECATED_FP_REGNUM.
7432 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7433 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7434 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7435 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7436 (sparc32_register_virtual_type): Ditto.
7437 * sh-tdep.c (sh64_frame_chain): Ditto.
7438 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7439 (sh_nofp_frame_init_saved_regs): Ditto.
7440 (sh64_nofp_frame_init_saved_regs): Ditto.
7441 (sh_fp_frame_init_saved_regs): Ditto.
7442 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7443 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7444 * procfs.c (procfs_fetch_registers): Ditto.
7445 (procfs_store_registers): Ditto.
7446 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7447 (store_inferior_registers, fetch_core_registers): Ditto.
7448 (fetch_kcore_registers, clear_regs): Ditto.
7449 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7450 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7451 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7452 * nlm/i386.c (do_status): Ditto.
7453 * mipsv4-nat.c (supply_gregset): Ditto.
7454 * mips-tdep.c: Ditto for comments.
7455 * mips-nat.c (fetch_inferior_registers): Ditto.
7456 (store_inferior_registers, fetch_core_registers): Ditto.
7457 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7458 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7459 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7460 (i386_do_pop_frame, i386_register_type): Ditto.
7461 * hppa-tdep.c (hppa_frame_chain): Ditto.
7462 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7463 (hppa_pop_frame, hppa_read_fp): Ditto.
7464 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7465 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7466 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7467 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7468 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7469 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7470 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7471 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7472 * blockframe.c: Ditto for comments.
7473 * arch-utils.h: Ditto for comments.
7474 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7475 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7476 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7477 * alpha-tdep.h: Ditto for comments.
7478 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7479 (alpha_cannot_store_register): Ditto.
7480 (alpha_push_dummy_frame): Ditto.
7481 * alpha-nat.c (supply_gregset): Ditto.
7482
7483 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7484 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7485 * config/sparc/tm-sparc.h: Update comment.
7486
7487 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7488 deprecated_read_fp instead of TARGET_READ_FP.
7489 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7490 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7491 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7492 deprecated_read_fp instead of read_fp.
7493 * s390-tdep.c (s390_push_arguments): Ditto.
7494 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7495 * frame.h: Ditto in comments.
7496 * frame.c (legacy_get_prev_frame): Ditto.
7497 * dummy-frame.c (dummy_frame_this_id): Ditto.
7498 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7499
d7a27068
AC
75002003-04-28 Andrew Cagney <cagney@redhat.com>
7501
7502 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7503 * gdbarch.h, gdbarch.c: Re-generate.
7504 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7505 * vax-tdep.c (_initialize_vax_tdep): Update.
7506 * v850-tdep.c (_initialize_v850_tdep): Update.
7507 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7508 * s390-tdep.c (_initialize_s390_tdep): Update.
7509 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7510 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7511 * mips-tdep.c (_initialize_mips_tdep): Update.
7512 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7513 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7514 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7515 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7516 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7517 * frv-tdep.c (_initialize_frv_tdep): Update.
7518 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7519 (_initialize_cris_tdep): Update.
7520 * arch-utils.c (legacy_print_insn): Update.
7521 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7522
d2630e69
AF
75232003-04-26 Adam Fedor <fedor@gnu.org>
7524
7525 * linespec.c (decode_objc): New function to decode ObjC calls
7526 (decode_line_1): Check for ObjC calls (using decode_objc)
7527 * Makefile (linespec.o): Update dependencies.
7528
3086aeae
DJ
75292003-04-26 Daniel Jacobowitz <drow@mvista.com>
7530
7531 * breakpoint.h (struct breakpoint_ops): New.
7532 (struct breakpoint): Add ops member.
7533
7534 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7535 (mention): Use new breakpoint ops member.
7536 (set_raw_breakpoint): Initialize ops field to NULL.
7537 (print_exception_catchpoint, print_one_exception_catchpoint)
7538 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7539 (gnu_v3_exception_catchpoint_ops): New.
7540 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7541
1fbec6c3
AF
75422003-04-25 Adam Fedor <fedor@gnu.org>
7543
7544 * Makefile.in (COMMON_OBS): Add objc-lang.o
7545
0ef21242
AC
75462003-04-25 Andrew Cagney <cagney@redhat.com>
7547
7548 * d10v-tdep.c (print_insn): Delete function.
7549 (display_trace): Use TARGET_PRINT_INSN.
7550 (_initialize_d10v_tdep): Do not set tm_print_insn.
7551 (d10v_gdbarch_init): Set print_insn.
7552
f75493ed
AC
75532003-04-25 Andrew Cagney <cagney@redhat.com>
7554
7555 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7556 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7557 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7558 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7559 (nr_dmap_regs, a0_regnum): ... new functions.
7560 (d10v_print_registers_info): Use a0_regnum, use register_size.
7561 (d10v_register_byte): Delete function.
7562 (d10v_register_raw_size): Delete function.
7563 (d10v_register_type): Use a0_regnum.
7564 (d10v_print_registers_info): Use a0_regnum.
7565 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7566 (d10v_gdbarch_init): Do not set register_byte or
7567 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7568 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7569 extract_address.
7570 (trace_command): Use XCALLOC.
7571 (print_insn): Delete reference to tm_print_insn.
7572 (saved_regs_unwinder): Use store_unsigned_integer instead of
7573 store_address.
7574 * frame.h (FRAME_OBSTACK_CALLOC): Define
7575
2202b100
DC
75762003-04-25 David Carlton <carlton@bactrian.org>
7577
7578 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7579
4e45ca2e
AF
75802003-04-24 Adam Fedor <fedor@gnu.org>
7581
7582 * objc-lang.c: Include "valprint.h"
7583 * Makefile.in (objc-lang.o): Update dependencies.
7584
93de3e7f
AF
75852003-04-24 Adam Fedor <fedor@gnu.org>
7586
8ffd9b1b 7587 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
7588 architecture dependant compilation and mark as unimplemented
7589 (until they get put in the gdbarch vector).
7590
0f20eeea
DC
75912003-04-23 David Carlton <carlton@bactrian.org>
7592
7593 * cp-support.c (cp_find_first_component): Accept 'operator' in
7594 more locations.
7595
74cfe982
AC
75962003-04-23 Andrew Cagney <cagney@redhat.com>
7597
7598 * infcall.c (call_function_by_hand): Eliminate redundant
7599 indentation. Move "saved_async" and "old_cleanups" to where they
7600 are needed.
8ffd9b1b 7601
52557533
AC
76022003-04-23 Andrew Cagney <cagney@redhat.com>
7603
7604 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7605 and "buffer". Move the "name" code to where it is needed.
7606
158775de
AC
76072003-04-23 Andrew Cagney <cagney@redhat.com>
7608
7609 * infcall.c (call_function_by_hand): Move variables "start_sp",
7610 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7611 code to ON_STACK switch branch.
8ffd9b1b 7612
ebc7896c
AC
76132003-04-23 Andrew Cagney <cagney@redhat.com>
7614
7615 * infcall.c (call_function_by_hand): Make declaration of "i",
7616 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7617 lint.
7618
d727590f
AC
76192003-04-23 Andrew Cagney <cagney@redhat.com>
7620
7621 * infcall.c (call_function_by_hand): Delete variable
7622 "n_method_args". Localize "param_type"'s declaration to the loop
7623 that it is used. Reinstate code assigning to said variable -
7624 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7625 Rationalize code using "param_type".
7626
d585e13a
AC
76272003-04-22 Andrew Cagney <cagney@redhat.com>
7628
7629 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7630 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7631 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7632 to DEPRECATED_PUSH_RETURN_ADDRESS.
7633
051caad9
KB
76342003-04-22 Kevin Buettner <kevinb@redhat.com>
7635
7636 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7637 on the DWARF2 register number prior to fetching a register.
7638
77296879
JB
76392003-04-22 J. Brobecker <brobecker@gnat.com>
7640
7641 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7642 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 7643 this macro was always set to 0.
77296879
JB
7644 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7645 considering the fact that this macro was always set to 0.
7646 * hppa-tdep.h (hppa_store_return_value): Likewise.
7647 (hppa_extract_return_value): Likewise.
7648
4252f1df
JB
76492003-04-22 J. Brobecker <brobecker@gnat.com>
7650
7651 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7652 the hppa-pro target only.
7653
14604c6b
JB
76542003-04-21 J. Brobecker <brobecker@gnat.com>
7655
7656 Ongoing multi-arch conversion effort for HP/UX:
7657 * config/pa/tm-hppa.h: Move all macro that are no longer
7658 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7659 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7660
77eb01d1
JB
76612003-04-21 J. Brobecker <brobecker@gnat.com>
7662
7663 * config/pa/tm-hppa.h: Obsolete a section that was only used
7664 for hppa-pro.
7665
61995b3b
JB
76662003-04-21 J. Brobecker <brobecker@gnat.com>
7667
7668 Ongoing multi-arch conversion for HP/UX.
7669 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7670 if already defined (allows hppa64 to stay non-multiarched for now).
7671 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7672
4aa79dcc
AC
76732003-04-21 Andrew Cagney <cagney@redhat.com>
7674
7675 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7676
0f751ff2
AC
76772003-04-21 Andrew Cagney <cagney@redhat.com>
7678
7679 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7680 "i386_num_mmx_regs".
7681
04714b91
AC
76822003-04-21 Andrew Cagney <cagney@redhat.com>
7683
7684 * infcall.c: New file.
7685 * infcall.h: New file.
7686 * valarith.c: Include "infcall.h".
7687 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7688 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7689 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7690 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7691 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7692 (SFILES): Add "infcall.c"
7693 (COMMON_OBS): Add "infcall.o".
7694 (infcall.o): Specify dependencies.
7695 * value.h (call_function_by_hand): Delete declaration.
7696 * inferior.h (run_stack_dummy): Delete declaration.
7697 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7698 (run_stack_dummy): Move to "infcall.c", merged into
7699 call_function_by_hand.
7700 * valops.c (call_function_by_hand): Moved to "infcall.c".
7701 (find_function_addr, value_arg_coerce): Ditto.
7702 (unwindonsignal_p, coerce_float_to_double): Ditto.
7703 (_initialize_valops): Move "set/show coerce-float-to-double", and
7704 "set/show unwindonsignal" commands to "infcall.c".
7705 * v850-tdep.c, target.h: Update comments.
7706 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7707 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7708 (sh64_init_extra_frame_info): Update comments.
7709 * mn10300-tdep.c: Update comments.
7710 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7711 * config/sparc/tm-sparc.h: Update comments.
7712 * breakpoint.h: Update comments.
7713 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7714 * arm-tdep.c: Update comment.
7715
f9d3c2a8
MK
77162003-04-19 Mark Kettenis <kettenis@gnu.org>
7717
c40e1eab
MK
7718 * i386-tdep.c (i386_num_register_names): New variable.
7719 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7720 (MM0_REGNUM): Remove redundant parentheses in define.
7721 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7722 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7723 i386_mxcsr_regnum_p): Remove redundant parentheses.
7724 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 7725
94ea66b3
MK
7726 * i386-tdep.c (i386_extract_return_value,
7727 i386_store_return_value): Correct check for availability of
7728 floating-point registers.
7729
54299a1d
MK
7730 * i386-tdep.c (i386_frame_num_args): Remove function.
7731 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7732
c86c27af
MK
7733 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7734 mmx_regnum_to_fp_regnum. Adjust all callers.
7735
f9d3c2a8
MK
7736 * i386-tdep.c (i386_get_longjmp_target): Use
7737 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7738 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7739 extract_address.
7740
94ba74a9
MK
77412003-04-19 Mark Kettenis <kettenis@gnu.org>
7742
7743 * core-regset.c: Update comments to reflect reality. Re-order
7744 includes.
7745 (fetch_core_registers): Use switch instead of if. Remove
7746 redundant prototype.
7747
4074e13c
JB
77482003-04-18 Jim Blandy <jimb@redhat.com>
7749
7750 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 7751 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 7752
e3ab4aba
RH
77532003-04-17 Richard Henderson <rth@redhat.com>
7754
7755 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7756
627bf7c1
EZ
77572003-04-17 Michael Snyder <msnyder@redhat.com>
7758 Karen Bennet <bennet@redhat.com>
7759
7760 Committed by Elena Zannoni <ezannoni@redhat.com>
7761 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 7762
514621a9
EZ
77632003-04-17 Elena Zannoni <ezannoni@redhat.com>
7764
7765 * values.c (value_being_returned): Don't fetch the return
fbe586ae 7766 value if the return type is void.
514621a9 7767
b4acd559
JJ
77682003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7769
7770 * thread-db.c: Reindented.
8ffd9b1b 7771
530b167e 77722003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7773
7774 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7775 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
7776 as types.
7777
0a48e7e8
MS
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
8ffd9b1b 7801
ab9fe00e
KB
78022003-04-16 Kevin Buettner <kevinb@redhat.com>
7803
610a3745 7804 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
7805 the size of ``long double'' to 16, instead of 8.
7806
e64a344c
MK
78072003-04-16 Mark Kettenis <kettenis@gnu.org>
7808
7809 * i386-linux-nat.c: Add some whitespace to make things more
7810 readable.
7811 (fetch_register, store_register, fetch_inferior_registers,
7812 store_inferior_registers): Get rid of assignment in if-statement.
7813 (store_register): Fix typo in error message.
7814
25d41031
AC
78152003-04-16 Andrew Cagney <cagney@redhat.com>
7816
7817 * utils.c (xmmalloc): Always allocate something, matches
7818 libiberty/xmalloc's semantics.
7819 (xmrealloc, xmcalloc): Ditto.
7820
c50901fd
AC
78212003-04-16 Andrew Cagney <cagney@redhat.com>
7822
7823 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7824 update comments.
7825 (get_frame_type): Initialize unwind and type when needed.
7826 (get_frame_id, frame_register_unwind): Ditto.
7827
f81824a9
AC
78282003-04-16 Andrew Cagney <cagney@redhat.com>
7829
7830 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7831 obsolete.
7832 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7833 * sparcl-stub.c: Obsolete file.
7834 * config/sparc/tm-sparclet.h: Obsolete file.
7835 * sparclet-stub.c: Obsolete file.
7836 * sparclet-rom.c: Obsolete file.
7837 * sparcl-tdep.c: Obsolete file.
7838 * config/sparc/tm-sparclite.h: Obsolete file.
7839 * config/sparc/sparclite.mt: Obsolete file.
7840 * config/sparc/sparclet.mt: Obsolete file.
7841 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7842 sparc86x-*-* obsolete.
7843
9219021c
DC
78442003-04-15 David Carlton <carlton@math.stanford.edu>
7845
7846 * Makefile.in (SFILES): Add cp-namespace.c.
7847 (COMMON_OBS): Add cp-namespace.o.
7848 (block.o): Depend on gdb_obstack_h and cp_support_h.
7849 (buildsym.o): Depend on cp_support_h.
7850 (cp-namespace.o): New.
7851 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7852 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7853 (dwarf2read.o): Depend on cp_support_h.
7854 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7855 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7856 processing_current_namespace.
7857 (read_namespace): Update processing_current_namespace; check for
7858 anonymous namespaces.
7859 (dwarf2_name): New function.
7860 (dwarf2_extension): Ditto.
7861 * cp-support.h: Update copyright, contributors.
7862 Add inclusion guards.
7863 Add opaque declaration for structs obstack, block, symbol.
7864 (struct using_direct): New struct.
7865 Add declarations for cp_find_first_component,
7866 cp_entire_prefix_len, processing_has_namespace_info,
7867 processing_current_namespace, cp_is_anonymous,
7868 cp_add_using_directive, cp_initialize_namespace,
7869 cp_finalize_namespace, cp_set_block_scope,
7870 cp_scan_for_anonymous_namespaces.
7871 * cp-namespace.c: New file.
7872 * cp-support.c: Update copyright.
7873 Include ctype.h, gdb_assert.h, gdbcmd.h.
7874 New variable maint_cplus_cmd_list.
7875 (cp_find_first_component): New function.
7876 (cp_entire_prefix_len, maint_cplus_command)
7877 (first_component_command, _initialize_cp_support): Ditto.
7878 * buildsym.c: Include cp-support.h.
7879 New variable using_list.
7880 (add_symbol_to_list): Check for anonymous namespaces.
7881 (finish_block): Set block's scope.
7882 (start_symtab): Initialize C++ namespace support.
7883 (end_symtab): Finalize C++ namespace support.
7884 * block.h: Add opaque declarations for structs
7885 block_namespace_info, using_direct, and obstack.
7886 Add declarations for block_set_scope and block_set_using.
7887 (struct block): Add 'language_specific' member.
7888 (BLOCK_NAMESPACE): New macro.
7889 * block.c: Include gdb_obstack.h and cp-support.h.
7890 (struct block_namespace_info): New struct.
7891 (block_set_scope): New function.
7892 (block_set_using, block_initialize_namespace): Ditto.
7893
d5a921c9
KB
78942003-04-14 Kevin Buettner <kevinb@redhat.com>
7895
7896 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7897 (locate_base): Return early if there aren't any link map offsets.
7898 (svr4_solib_create_inferior_hook): Warn if shared library support
7899 is unavailable.
7900
d2a52b27
DC
79012003-04-14 David Carlton <carlton@math.stanford.edu>
7902
7903 * symtab.c (symbol_set_names): Add prefix when storing Java names
7904 in hash table. Fix for PR java/1039.
7905
980cae7a
DC
79062003-04-14 David Carlton <carlton@math.stanford.edu>
7907
7908 * symtab.c (symbol_set_names): Rename 'name' arg to
7909 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7910 * symtab.h: Change 'name' argument in declaration of
7911 symbol_set_names to 'linkage_name'.
7912 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7913
e227b13c
AC
79142003-04-14 Andrew Cagney <cagney@redhat.com>
7915
7916 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7917 return the fully sign-extended register value.
7918 (get_frame_pointer): Ditto.
7919 (mips_pop_frame): Initialize "proc_desc" after checking for a
7920 dummy frame.
7921
36712a20
AC
79222003-04-14 Andrew Cagney <cagney@redhat.com>
7923
7924 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7925 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7926 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7927 (mips_push_register): Delete function.
7928 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7929 PUSH_FP_REGNUM.
7930
44ea7b70
JB
79312003-04-14 Jim Blandy <jimb@redhat.com>
7932
7933 * symmisc.c: #include "gdb_regex.h".
7934 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7935 functions.
7936 * maint.c (maintenance_list_command): New function.
7937 (_initialize_maint_cmds): Register the above as commands.
7938 * symtab.h (maintenance_list_symtabs,
7939 maintenance_list_psymtabs): New declarations.
7940 * cli/cli-cmds.c (maintenancelistlist): New variable.
7941 (init_cmd_lists): Initialize it.
7942 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7943 * gdbcmd.h (maintenancelistlist): New declaration.
7944 * Makefile.in (symmisc.o): Update dependencies.
7945
2d0c7962
EZ
79462003-04-14 Elena Zannoni <ezannoni@redhat.com>
7947
7948 * s390-nat.c: Include asm/types.h for addr_t.
7949
1947a811
CV
79502003-04-14 Corinna Vinschen <vinschen@redhat.com>
7951
7952 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7953 actually incoming type.
7954
adb616d7
AC
79552003-04-13 Andrew Cagney <cagney@redhat.com>
7956
7957 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7958 get_next_frame and get_frame_saved_regs.
7959
9b5e151c
AC
79602003-04-13 Andrew Cagney <cagney@redhat.com>
7961
7962 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7963 of gdbarch_num_regs.
7964
ef6e7e13
AC
79652003-04-13 Andrew Cagney <cagney@redhat.com>
7966
7967 * frame.h: Mention what replaced what in "struct frame_info".
7968 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7969 deprecated_update_frame_base_hack and
7970 deprecated_update_frame_pc_hack.
7971 * hppa-tdep.c: Ditto.
7972
61fbb938
DJ
79732003-04-13 Daniel Jacobowitz <drow@mvista.com>
7974
7975 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7976 to read_reg and update its comment. Remove regnum member.
7977 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7978 Don't call read_reg when setting in_reg. Call read_reg to get
7979 the frame base if it's in a register. Return the register number
7980 on the stack instead of in the context. Remove extra arguments
7981 to read_reg.
7982 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7983 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7984 the register number on the expression stack.
7985 (needs_frame_read_reg): Remove extra arguments.
7986
0d53c4c4
DJ
79872003-04-13 Daniel Jacobowitz <drow@mvista.com>
7988
7989 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7990 made non-static.
7991 (execute_stack_op): All callers updated.
7992 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7993 * dwarf2loc.c (find_location_expression): New function.
7994 (dwarf_expr_frame_base): Call it.
7995 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7996 (dwarf2_tracepoint_var_ref): New function, broken out from
7997 locexpr_tracepoint_var_ref.
7998 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7999 Make static.
8000 (loclist_read_variable, loclist_read_needs_frame): New functions.
8001 (loclist_describe_location, loclist_tracepoint_var_ref): New
8002 functions.
8003 (dwarf2_loclist_funcs): New struct location_funcs.
8004 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8005 (struct dwarf2_locexpr_baton): Add comments.
8006 (dwarf2_loclist_funcs): New extern.
8007 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8008 base_address and base_known.
8009 (dwarf_loc_buffer): New variable.
8010 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8011 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8012 (dwarf2_has_info): Initialize dwarf_loc_offset.
8013 (dwarf2_build_psymtabs): Read in .debug_loc.
8014 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8015 DWARF_LOC_SIZE.
8016 (psymtab_to_symtab_1): Likewise. Move base address calculation
8017 here, from...
8018 (dwarf2_get_pc_bounds): ... here. Use the base address from
8019 cu_header.
8020 (dwarf2_symbol_mark_computed): Handle location lists.
8021
6aca59a3
DJ
80222003-04-13 Daniel Jacobowitz <drow@mvista.com>
8023
8024 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8025 if the linkage name demangled successfully.
8026
aca1fcd0
MK
80272003-04-13 Mark Kettenis <kettenis@gnu.org>
8028
97095916
MK
8029 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8030 disassmbly_flavour): Removed.
8031
aca1fcd0
MK
8032 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8033
562a961f
MK
80342003-04-13 Mark Kettenis <kettenis@gnu.org>
8035
8036 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8037
bd013d54
AC
80382003-04-12 Andrew Cagney <cagney@redhat.com>
8039
8040 * frame.h (struct frame_info): Move definition from here ...
8041 * frame.c (struct frame_info): ... to here.
8042
167ef8b1
AC
80432003-04-12 Andrew Cagney <cagney@redhat.com>
8044
8045 * gdbthread.h (save_infrun_state): Delete parameter
8046 "prev_func_start".
8047 (struct thread_info): Delete field "prev_func_start".
8048 (load_infrun_state): Ditto.
8049 * thread.c (load_infrun_state, save_infrun_state): Update.
8050 * infrun.c (prev_func_start): Delete variable.
8051 (context_switch, init_wait_for_inferior): Update.
8052 (stop_stepping, keep_going): Update.
8053
da3331ec
AC
80542003-04-12 Andrew Cagney <cagney@redhat.com>
8055
8056 * gdbarch.sh: Add missing opaque declarations.
8057 * gdbarch.h: Regnerate.
8058 * symtab.h: Add missing opaque declarations.
8059 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8060 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8061 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8062 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8063 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8064 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8065 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8066 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8067 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8068 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8069 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8070 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8071 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8072
18adea3f
AC
80732003-04-11 Andrew Cagney <cagney@redhat.com>
8074
8075 * frame.c (get_frame_id): Return this frame's "id".
8076 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8077 function start.
8078 (legacy_saved_regs_this_id): Replace function body with
8079 internal-error.
8080 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8081 FRAME_OBSTACK_ZALLOC.
8082 (create_new_frame): Mark the frame ID as valid.
8083
2252e863
AO
80842003-04-11 Alexandre Oliva <aoliva@redhat.com>
8085
8086 * Makefile.in (libbfd_h): Added missing setting.
8087 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8088 according to the selected ABI.
8089
a8245ab8
JJ
80902003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8091
8092 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8093
6913c89a
AC
80942003-04-11 Andrew Cagney <cagney@redhat.com>
8095
8096 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8097 SAVED_PC_AFTER_CALL.
8098 * gdbarch.h, gdbarch.c: Regenerate.
8099 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8100 * x86-64-tdep.c (x86_64_init_abi): Update.
8101 * vax-tdep.c (vax_gdbarch_init): Update.
8102 * v850-tdep.c (v850_gdbarch_init): Update.
8103 * sparc-tdep.c (sparc_gdbarch_init): Update.
8104 * sh-tdep.c (sh_gdbarch_init): Update.
8105 * s390-tdep.c (s390_gdbarch_init): Update.
8106 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8107 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8108 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8109 * mips-tdep.c (mips_gdbarch_init): Update.
8110 * mcore-tdep.c (mcore_gdbarch_init): Update.
8111 * m68k-tdep.c (m68k_gdbarch_init): Update.
8112 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8113 * ia64-tdep.c (ia64_gdbarch_init): Update.
8114 (ia64_saved_pc_after_call): Update declaration.
8115 * i386ly-tdep.c (i386lynx_init_abi): Update.
8116 * i386-tdep.c (i386_gdbarch_init): Update.
8117 * hppa-tdep.c (hppa_gdbarch_init): Update.
8118 * h8300-tdep.c (h8300_gdbarch_init): Update.
8119 * frv-tdep.c (frv_gdbarch_init): Update.
8120 * cris-tdep.c (cris_gdbarch_init): Update.
8121 * avr-tdep.c (avr_gdbarch_init): Update.
8122 * arm-tdep.c (arm_gdbarch_init): Update.
8123 * alpha-tdep.c (alpha_gdbarch_init): Update.
8124 * ns32knbsd-nat.c (frame_num_args): Update.
8125 * ns32k-tdep.c (umax_frame_num_args): Update.
8126 * mips-tdep.c (mips_init_frame_pc_first): Update.
8127 * infrun.c (step_over_function): Update.
8128 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8129 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8130 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8131 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8132 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8133 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8134 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8135 * arch-utils.c (init_frame_pc_default): Update.
8136 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8137 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8138 declaration.
8ffd9b1b 8139
38edeab8
AC
81402003-04-11 Andrew Cagney <cagney@redhat.com>
8141
8142 * i387-tdep.c: Update copyright.
8143 (i387_to_double): Delete function.
8144 (double_to_i387): Delete function.
8145
81f8a206
AC
81462003-04-10 Andrew Cagney <cagney@redhat.com>
8147
8148 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8149 frame's function's address. Simplify.
8150 (d10v_frame_unwind_cache): Check that the frame's function is
8151 non-zero.
8152
6e691f7a
JB
81532003-04-10 Jim Blandy <jimb@redhat.com>
8154
8155 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8156 call to set_gdbarch_deprecated_push_arguments.
8157
7f78e237
AC
81582003-04-10 Andrew Cagney <cagney@redhat.com>
8159
8160 * frame.c (fprint_frame_id): New function.
8161 (fprint_frame_type, fprint_frame): New function.
8162 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8163 (create_sentinel_frame, get_frame_id): Ditto.
8164 (frame_id_p, frame_id_eq): Ditto.
8165 (frame_id_inner, create_new_frame): Ditto.
8166 (legacy_get_prev_frame, get_prev_frame): Ditto.
8167 (deprecated_update_frame_pc_hack): Ditto.
8168 (frame_register_unwind): Ditto.
8169 (deprecated_update_frame_base_hack): Ditto.
8170
f870b49b
CV
81712003-04-10 Corinna Vinschen <vinschen@redhat.com>
8172
8173 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8174 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8175 frame_chain function.
8176 * Makefile.in: Add dependencies due to above change.
8177
7c86889b
CV
81782003-04-10 Corinna Vinschen <vinschen@redhat.com>
8179
8180 * blockframe.c (legacy_frame_chain_valid): Move call to
8181 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8182 inside_entry_file.
8183
d0a55772
AC
81842003-04-09 Andrew Cagney <cagney@redhat.com>
8185
8186 * frame.h (struct frame_id): Replace "pc" and "base" with
8187 "stack_addr" and "code_addr". Update comments.
8188 (frame_id_build): Update parameter names and comment.
8189 (struct frame_info): Replace "id_p" and "id" with "this_id".
8190 * dummy-frame.c (dummy_frame_this_id): Update.
8191 * breakpoint.c (print_one_breakpoint): Update.
8192 * frame.c (get_frame_id): Update.
8193 (get_frame_base, frame_id_build): Update.
8194 (create_sentinel_frame, legacy_get_prev_frame): Update.
8195 (deprecated_update_frame_base_hack): Update.
8196 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8197 (frame_id_inner): Ditto.
8198
ac16bf07
AC
81992003-04-09 Andrew Cagney <cagney@redhat.com>
8200
8201 * defs.h (gdb_print_host_address): Make "addr" parameter a
8202 pointer constant.
8203 * utils.c (gdb_print_host_address): Update.
8204
366cfc9e
KB
82052003-04-09 Kevin Buettner <kevinb@redhat.com>
8206
8207 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8208 register number for R0 is 0.
8209
cd983b5c
JB
82102003-04-09 J. Brobecker <brobecker@gnat.com>
8211
8212 * frame.h (struct gdbarch): Add opaque structure definition
8213 to avoid a compilation warning on LynxOS 4.0.
8214
d1340264
AC
82152003-04-09 Andrew Cagney <cagney@redhat.com>
8216
8217 * frame.h (struct frame_info): Delete field "pc". Replace
8218 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8219 structure.
8220 * frame.c (frame_pc_unwind): Update.
8221 (create_sentinel_frame): Do not set "pc".
8222 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8223 (get_frame_pc): Call frame_pc_unwind.
8224 (deprecated_update_frame_pc_hack): Update.
8225 (create_new_frame): Use "pc" not "->pc".
8226
90a6fffb
AC
82272003-04-09 Andrew Cagney <cagney@redhat.com>
8228
8229 * frame.c (get_frame_id): Eliminate code updating "frame".
8230 (legacy_get_prev_frame): Ditto.
8231 (get_frame_base): Return id.base directly.
8232 (deprecated_update_frame_base_hack): Update "id.base".
8233 * frame.h (struct frame_info): Delete field "frame".
8234
2fbce691
AC
82352003-04-09 Andrew Cagney <cagney@redhat.com>
8236
8237 * NEWS: Mention that the "Sequent family" is obsolete.
8238 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8239 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8240 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8241 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8242 * config/i386/tm-ptx4.h: Obsolete file.
8243 * config/i386/tm-ptx.h: Obsolete file.
8244 * symm-tdep.c: Obsolete file.
8245 * config/i386/symmetry.mt: Obsolete file.
8246 * config/i386/tm-symmetry.h: Obsolete file.
8247 * symm-nat.c: Obsolete file.
8248 * config/i386/nm-symmetry.h: Obsolete file.
8249 * config/i386/xm-symmetry.h: Obsolete file.
8250 * config/i386/symmetry.mh: Obsolete file.
8251 * config/i386/nm-ptx4.h: Obsolete file.
8252 * config/i386/ptx4.mh: Obsolete file.
8253 * config/i386/ptx.mt: Obsolete file.
8254 * config/i386/ptx.mh: Obsolete file.
8255 * config/i386/xm-ptx4.h: Obsolete file.
8256 * config/i386/xm-ptx.h: Obsolete file.
8257
78c43945
AC
82582003-04-09 Andrew Cagney <cagney@redhat.com>
8259
8260 Obsolete mips*-*-mach3*.
8261 * NEWS: Mention that mips*-*-mach3* is obsolete.
8262 * m3-nat.c: Obsolete file.
8263 * config/nm-m3.h: Obsolete file.
8264 * config/mips/tm-mipsm3.h: Obsolete file.
8265 * config/mips/mipsm3.mt: Obsolete file.
8266 * config/mips/mipsm3.mh: Obsolete file.
8267 * config/mips/xm-mipsm3.h: Obsolete file.
8268 * mipsm3-nat.c: Obsolete file.
8269 * configure.host: Obsolete mips-dec-mach3*.
8270 * configure.tgt: Obsolete mips*-*-mach3*.
8271
f1908289
AC
82722003-04-09 Andrew Cagney <cagney@redhat.com>
8273
8274 * doublest.h: Update copyright.
8275 (deprecated_store_floating, deprecated_extract_floating): Rename
8276 store_floating and extract_floating. Update comments.
8277 * doublest.c: Update copyright.
8278 (extract_floating_by_length): Replace extract_floating.
8279 (store_floating_by_length): Replace store_floating.
8280 (deprecated_extract_floating): New function.
8281 (deprecated_store_floating): New function.
8282 (extract_typed_floating): Call extract_floating_by_length.
8283 (store_typed_floating): Call store_floating_by_length.
8284 * x86-64-tdep.c (x86_64_store_return_value): Update.
8285 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8286 (sh64_extract_return_value): Update.
8287 (sh_sh4_register_convert_to_virtual): Update.
8288 (sh_sh64_register_convert_to_virtual): Update.
8289 (sh_sh4_register_convert_to_raw): Update.
8290 (sh_sh64_register_convert_to_raw): Update.
8291 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8292 (rs6000_register_convert_to_raw): Update.
8293 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8294 (ia64_register_convert_to_raw): Update.
8295 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8296 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8297 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8298 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8299 (alpha_register_convert_to_raw): Update.
8300
4443bd83
AC
83012003-04-08 Andrew Cagney <cagney@redhat.com>
8302
8303 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8304 * gdbarch.h, gdbarch.c: Re-generate.
8305 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8306 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8307 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8308 conditionally, use frame_pc_unwind as an alternative. Add
8309 comments.
8310 * arch-utils.c (init_frame_pc_default): Only call
8311 SAVED_PC_AFTER_CALL when available.
8312
c0236d92
EZ
83132003-04-08 Elena Zannoni <ezannoni@redhat.com>
8314
fbe586ae 8315 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8316 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8317 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8318 (start_remote): Ditto.
8319 (handle_inferior_event): Ditto.
8320 (save_inferior_status): Ditto.
8321 (restore_inferior_status): Ditto.
8322 * infcmd.c (attach_command): Ditto.
8323 * fork-child.c (startup_inferior): Ditto.
fbe586ae 8324 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8325 * alpha-tdep.c (heuristic_proc_start): Ditto.
8326 * mips-tdep.c (heuristic_proc_start): Ditto.
8327 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8328 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8329 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8330 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8331 * remote-vx.c (vx_create_inferior): Ditto.
8332
83332003-04-08 Elena Zannoni <ezannoni@redhat.com>
8334
8335 * infrun.c (stop_soon_quietly): Make it an enum, to better
8336 override the default behavior of handle_inferior_event.
8337 (clear_proceed_status): Update uses of stop_soon_quietly to
8338 reflect that it is now an enum.
8339 (start_remote): Ditto.
8340 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8341 is set to handle the new GNU/Linux kernel behavior for
8342 attach/sigstop. Update uses of stop_soon_quietly.
8343 * inferior.h (enum stop_kind): New enum.
8344 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8345 Reset normal handle_inferior_event behavior, afterwards.
8346 * fork-child.c (startup_inferior): Update.
8347 * alpha-tdep.c (heuristic_proc_start): Update.
8348 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8349 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8350 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8351 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8352 * remote-vx.c (vx_create_inferior): Update.
8353 * mips-tdep.c (heuristic_proc_start): Update.
8354
1211bce3
EZ
83552003-04-07 Elena Zannoni <ezannoni@redhat.com>
8356
8357 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 8358 be freed more than once, causing wild memory corruptions.
1211bce3 8359 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 8360 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 8361 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 8362 with the "core" target.
1211bce3 8363
f0ef6b29
KB
83642003-04-07 Kevin Buettner <kevinb@redhat.com>
8365
8366 * mips-tdep.c (mips_print_fp_register): New function, created from
8367 do_fp_register_row(). Registers are now (also) printed as hex.
8368 Only one register is printed per row.
8369 (mips_print_register, do_fp_register_row): Print floating point
8370 registers with mips_print_fp_register().
8371
8cf71652
AC
83722003-04-06 Andrew Cagney <cagney@redhat.com>
8373
5e488a7b
AC
8374 * valprint.h (inspect_it): Add extern declaration.
8375 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8376 (selectors_info, classes_info): Ditto.
8377 (find_objc_msgcall): Fix indentation.
8378 (objc_printstr): Delete extern declarations.
8379
8cf71652
AC
8380 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8381
e6ba3bc9
AC
83822003-04-06 Andrew Cagney <cagney@redhat.com>
8383
8384 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8385 Update comment.
8386 * frame.c (legacy_saved_regs_this_id): Update.
8387 (legacy_get_prev_frame): Update.
8388 * xstormy16-tdep.c: Update comment.
8389 * sparc-tdep.c (sparc_frame_chain): Update comment.
8390 * blockframe.c (legacy_frame_chain_valid): Update.
8391
55e1d7e7
AC
83922003-04-06 Andrew Cagney <cagney@redhat.com>
8393
996179ee
AC
8394 * valprint.c (val_print_type_code_int): Delete #ifdef
8395 PRINT_TYPELESS_INTEGER code.
8396
55e1d7e7
AC
8397 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8398 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8399 multi-arch definition.
8400 * gdbarch.h: Re-generate.
8401
43bd9a9e
AC
84022003-04-05 Andrew Cagney <cagney@redhat.com>
8403
8404 Eliminate FRAME_FIND_SAVED_REGS.
8405 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8406 Change FSR parameter to a pointer.
8407 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8408 Assume FSR parameter is a pointer.
8409 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8410 Make fsr a pointer.
8411 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8412 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8413 saved_regs a pointer.
8414 (hppa_frame_saved_pc): Ditto.
8415 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8416 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8417 pointer.
8418 (restore_pc_queue): Make fsr a pointer.
8419 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8420 (hppa_frame_chain): Make saved_regs a pointer, call
8421 hppa_frame_init_saved_regs.
8422 * sparc-tdep.c: Include "gdb_assert.h".
8423 (sparc_frame_find_saved_regs): Replace internal_error with
8424 gdb_assert.
8425 * remote-vxsparc.c (vx_read_register): Delete reference to
8426 FRAME_FIND_SAVED_REGS.
8427 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8428 * gdbarch.h: Regenerate.
8429 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8430 (deprecated_get_frame_saved_regs): Delete declaration.
8431 (struct frame_saved_regs): Delete definition.
8432 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8433 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8434 (hppa_frame_find_saved_regs): Delete declaration.
8435 (FRAME_FIND_SAVED_REGS): Delete macro.
8436 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8437 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8438 FRAME_FIND_SAVED_REGS in comment.
8439
be41e9f4
AC
84402003-04-05 Andrew Cagney <cagney@redhat.com>
8441
8442 * frame.c (frame_func_unwind, get_frame_func): New functions.
8443 * frame.h (get_frame_func, frame_func_unwind): Declare.
8444 (struct frame_info): Add field "prev_func" for caching the
8445 previous frame's function address.
8446 * arm-tdep.c (arm_frameless_function_invocation): Combine
8447 get_pc_function_start and get_frame_pc into get_frame_func.
8448 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8449 (sh64_nofp_frame_init_saved_regs): Ditto.
8450 * s390-tdep.c (s390_function_start): Ditto.
8451 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8452 (rs6000_frameless_function_invocation): Ditto.
8453 (rs6000_frame_saved_pc): Ditto.
8454 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8455 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8456 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8457 (i386_frame_init_saved_regs): Ditto.
8458 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8459 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8460 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8461 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8462 * blockframe.c (frameless_look_for_prologue): Ditto.
8463
a01dd7cc
AC
84642003-04-05 Andrew Cagney <cagney@redhat.com>
8465
8466 * frame.c (legacy_get_prev_frame): Link prev to next at the
8467 function start. Update comments.
8468
5e5592e6
AC
84692003-04-05 Andrew Cagney <cagney@redhat.com>
8470
8471 * frame.c (get_frame_id): Update comment.
8472 (legacy_get_prev_frame): Update comment.
8473 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8474 * gdbarch.h: Regenerate.
8475 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8476 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8477
6fba5002
AC
84782003-04-05 Andrew Cagney <cagney@redhat.com>
8479
8480 * stack.c (print_frame_info): Use get_frame_pc.
8481
7df05f2b
AC
84822003-04-04 Andrew Cagney <cagney@redhat.com>
8483
8484 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8485 the frame's type from the unwinder.
8486 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8487 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8488 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8489 (get_frame_base_address): Use get_frame_type.
8490 (get_frame_locals_address, get_frame_args_address): Ditto.
8491 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8492 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8493 (struct frame_info): Add comment explaining why the frame contains
8494 a "type" field.
8495 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8496 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8497 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8498 NORMAL_FRAME.
8499 * frame-unwind.h: Include "frame.h".
8500 (struct frame_unwind): Add "type" field.
8501 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 8502
11889732
AC
85032003-04-04 Andrew Cagney <cagney@redhat.com>
8504
8505 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8506 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8507 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8508 get_frame_base.
8509 (d10v_unwind_dummy_id): Use frame_id_build.
8510 * frame.c (find_frame_sal): Use get_frame_pc.
8511 (create_new_frame): Use deprecated_update_frame_pc_hack and
8512 deprecated_update_frame_base_hack.
8513 (create_sentinel_frame): Add comment about ->pc going away.
8514 (get_prev_frame): Add comment about ->pc going away.
8515 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8516 frame_id_build, deprecated_update_frame_pc_hack and
8517 deprecated_update_frame_base_hack.
8518 (select_frame): Use get_frame_pc.
8519 (legacy_saved_regs_this_id): Use frame_id_build.
8520
50c46a0d
EZ
85212003-04-04 Elena Zannoni <ezannoni@redhat.com>
8522
fbe586ae
RH
8523 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8524 signed integer case.
8525 (classify_argument): Handle enumerations and references.
50c46a0d 8526
50bbdbd9
AC
85272003-04-04 Andrew Cagney <cagney@redhat.com>
8528
8529 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8530 ID to NULL.
8531
36018d2e
AF
85322003-04-01 Adam Fedor <fedor@gnu.org>
8533
8534 * gdb/objc-lang.c (selectors_info): Replace calls to
8535 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8536 SYMBOL_NATURAL_NAME.
8537 (classes_info, find_methods): Likewise.
8538
35cec841
KB
85392003-04-03 Kevin Buettner <kevinb@redhat.com>
8540
8541 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8542 ``mach'' to the value determined by bfd_default_set_arch_mach().
8543
43136899
BR
85442003-04-02 Bob Rossi <bob_rossi@cox.net>
8545
8546 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8547 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8548 (mi-cmd-file.o): Update dependencies.
8549
040b99fd
KB
85502003-04-01 Kevin Buettner <kevinb@redhat.com>
8551
8552 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8553 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8554
9a3d7dfd
AF
85552003-04-01 Adam Fedor <fedor@gnu.org>
8556
8557 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8558 * language.h (struct language_defn): Add la_demangle.
8559 (language_demangle): Declare.
8560 * language.c (language_demangle): New function.
8561 (unk_lang_demangle): Likewise.
8562 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 8563 Add ukn_lang_demangle.
9a3d7dfd 8564 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 8565 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
8566 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8567 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8568 * jv-lang.c (java_demangle): New function
8569 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
8570 * objc-lang.c (objc_demangle): Add options argument
8571 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
8572 * maint.c (maintenance_demangle): Replace switch with
8573 call to language_demangle.
8574 * utils.c (fprintf_symbol_filtered): Likewise.
8575
5e074003
AC
85762003-04-01 Andrew Cagney <cagney@redhat.com>
8577
8578 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8579 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8580 PRINT_TYPELESS_INTEGER.
8581 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8582 PUSH_RETURN_ADDRESS.
8583
270cb5d6
AC
85842003-04-01 Andrew Cagney <cagney@redhat.com>
8585
8586 * Makefile.in (d10v-tdep.o): Update dependencies.
8587 * d10v-tdep.c: Include "frame-base.h".
8588 (d10v_frame_unwind): Make constant.
8589 (d10v_frame_base_address): New function.
8590 (d10v_frame_base): New variable.
8591 (d10v_gdbarch_init): Set frame_base default.
8592 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8593 comment for base.
8594 (d10v_frame_unwind_cache): Set and use "prev_sp".
8595 (d10v_frame_this_id): Use the previous frame's inner most stack
8596 address and this frame's func address for the frame ID. Use
8597 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 8598
6bfb3e36
AC
85992003-04-01 Andrew Cagney <cagney@redhat.com>
8600
8601 * frame.h (get_frame_locals_address, get_frame_args_address):
8602 Refer to the base address, instead of the address of the first
8603 local or parameter.
8ffd9b1b 8604
da62e633
AC
86052003-04-01 Andrew Cagney <cagney@redhat.com>
8606
8607 Add frame debug info addresses:
8608 * frame-base.c: New file.
8609 * frame-base.h: New file.
8610 * frame.h (struct frame_base): Add opaque declaration.
8611 (get_frame_base): Update comment.
8612 (get_frame_base_address): Declare.
8613 (get_frame_locals_address): Declare.
8614 (get_frame_args_address): Declare.
8615 (struct frame_info): Add "base" and "base_cache". Update
8616 comments on the unwinder.
8617 * frame.c: Include "frame-base.h".
8618 (get_frame_locals_address): New function.
8619 (get_frame_base_address): New function.
8620 (get_frame_args_address): New function.
8621 * findvar.c (read_var_value): Use get_frame_locals_address and
8622 get_frame_args_address.
8623 * stack.c (frame_info): Use get_frame_locals_address and
8624 get_frame_args_address.
8625 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8626 moved to "frame-base.c".
8627 * printcmd.c (print_frame_nameless_args): Ditto.
8628 * symtab.h (address_class): Update comments.
8629 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8630 get_frame_base_address.
8631 * dwarf2expr.c (execute_stack_op): Ditto.
8632 * Makefile.in (frame_base_h): Define.
8633 (frame.o): Update dependencies.
8634 (frame-base.o): Add dependencies.
8635 (SFILES): Add frame-base.c.
8636 (COMMON_OBS): Add frame-base.o.
8637
3d30e9c2
AC
86382003-04-01 Andrew Cagney <cagney@redhat.com>
8639
8640 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8641 CALL_DUMMY_LENGTH): Ditto.
8642 * gdbarch.c: Re-generate.
8643 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8644 (CALL_DUMMY_LENGTH): Delete macro.
8645 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8646 * arm-tdep.c (arm_gdbarch_init): Ditto.
8647 * avr-tdep.c (avr_gdbarch_init): Ditto.
8648 * cris-tdep.c (cris_gdbarch_init): Ditto.
8649 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8650 * frv-tdep.c (frv_gdbarch_init): Ditto.
8651 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8652 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8653 * i386-tdep.c (i386_gdbarch_init): Ditto.
8654 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8655 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8656 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8657 * mips-tdep.c (mips_gdbarch_init): Ditto.
8658 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8659 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8660 * s390-tdep.c (s390_gdbarch_init): Ditto.
8661 * sh-tdep.c (sh_gdbarch_init): Ditto.
8662 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8663 * v850-tdep.c (v850_gdbarch_init): Ditto.
8664 * vax-tdep.c (vax_gdbarch_init): Ditto.
8665 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8666
ce0c7262
CV
86672003-04-01 Corinna Vinschen <vinschen@redhat.com>
8668
8669 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8670
73dd234f
AC
86712003-04-01 Andrew Cagney <cagney@redhat.com>
8672
8673 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8674 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8675 * gdbarch.h, gdbarch.c: Re-generate.
8676 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8677 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8678 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8679 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8680 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8681 * infcmd.c (run_stack_dummy): Simplify assuming
8682 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8683 * infrun.c (handle_inferior_event): Ditto.
8684 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8685 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8686 * arm-tdep.c (arm_gdbarch_init): Ditto.
8687 * avr-tdep.c (avr_gdbarch_init): Ditto.
8688 * cris-tdep.c (cris_gdbarch_init): Ditto.
8689 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8690 * frv-tdep.c (frv_gdbarch_init): Ditto.
8691 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8692 * i386-tdep.c (i386_gdbarch_init): Ditto.
8693 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8694 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8695 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8696 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8697 * mips-tdep.c (mips_gdbarch_init): Ditto.
8698 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8699 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8700 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8701 * s390-tdep.c (s390_gdbarch_init): Ditto.
8702 * sh-tdep.c (sh_gdbarch_init): Ditto.
8703 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8704 * v850-tdep.c (v850_gdbarch_init): Ditto.
8705 * vax-tdep.c (vax_gdbarch_init): Ditto.
8706 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8707
97606a13
DJ
87082003-04-01 Daniel Jacobowitz <drow@mvista.com>
8709
8710 * symfile.c (symfile_relocate_debug_section): Update call to
8711 bfd_simple_get_relocated_section_contents.
8712
e8ab51f7
AC
87132003-03-31 Andrew Cagney <cagney@redhat.com>
8714
8715 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8716 * gdbarch.h, gdbarch.c: Regenerate.
8717 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8718 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8719 available.
8720 * frame.h (generic_fix_call_dummy): Delete declaration.
8721 * dummy-frame.h: Update comment.
8722 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8723 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8724 fix_call_dummy.
8725 * sh-tdep.c (sh_gdbarch_init): Ditto.
8726 * s390-tdep.c (s390_gdbarch_init): Ditto.
8727 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8728 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8729 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8730 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8731 * i386-tdep.c (i386_gdbarch_init): Ditto.
8732 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8733 * frv-tdep.c (frv_gdbarch_init): Ditto.
8734 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8735 * cris-tdep.c (cris_gdbarch_init): Ditto.
8736 * avr-tdep.c (avr_gdbarch_init): Ditto.
8737 * arm-tdep.c (arm_gdbarch_init): Ditto.
8738
018d1b48
JB
87392003-03-31 J. Brobecker <brobecker@gnat.com>
8740
8741 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8742 (INIT_FRAME_AP): Likewise.
8743 (EXTRA_FRAME_INFO): Likewise.
8744
e9a2674e
AC
87452003-03-31 Andrew Cagney <cagney@redhat.com>
8746
8747 * gdbarch.sh: Include "symfile.h".
8748 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8749 * gdbarch.h, gdbarch.c: Re-generate.
8750 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8751 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8752 call_dummy_address, the default is at entry_point_address.
8753 * v850-tdep.c (v850_gdbarch_init): Ditto.
8754 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8755 * sh-tdep.c (sh_gdbarch_init): Ditto.
8756 * s390-tdep.c (s390_gdbarch_init): Ditto.
8757 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8758 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8759 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8760 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8761 * i386-tdep.c (i386_gdbarch_init): Ditto.
8762 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8763 * frv-tdep.c (frv_gdbarch_init): Ditto.
8764 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8765 * cris-tdep.c (cris_gdbarch_init): Ditto.
8766 * arm-tdep.c (arm_gdbarch_init): Ditto.
8767
e8a8712a
AC
87682003-03-31 Andrew Cagney <cagney@redhat.com>
8769
8770 * gdbarch.sh (CALL_DUMMY_P): Delete.
8771 * gdbarch.h, gdbarch.c: Re-generate.
8772 * inferior.h (CALL_DUMMY_P): Delete macro.
8773 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8774 * vax-tdep.c (vax_gdbarch_init): Update.
8775 * v850-tdep.c (v850_gdbarch_init): Update.
8776 * sparc-tdep.c (sparc_gdbarch_init): Update.
8777 * sh-tdep.c (sh_gdbarch_init): Update.
8778 * s390-tdep.c (s390_gdbarch_init): Update.
8779 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8780 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8781 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8782 * mips-tdep.c (mips_gdbarch_init): Update.
8783 * mcore-tdep.c (mcore_gdbarch_init): Update.
8784 * m68k-tdep.c (m68k_gdbarch_init): Update.
8785 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8786 * ia64-tdep.c (ia64_gdbarch_init): Update.
8787 * i386-tdep.c (i386_gdbarch_init): Update.
8788 * h8300-tdep.c (h8300_gdbarch_init): Update.
8789 * frv-tdep.c (frv_gdbarch_init): Update.
8790 * d10v-tdep.c (d10v_gdbarch_init): Update.
8791 * cris-tdep.c (cris_gdbarch_init): Update.
8792 * breakpoint.c (deprecated_frame_in_dummy): Update.
8793 * avr-tdep.c (avr_gdbarch_init): Update.
8794 * alpha-tdep.c (alpha_gdbarch_init): Update.
8795 * arm-tdep.c (arm_gdbarch_init): Update.
8796 * dummy-frame.c (dummy_frame_this_id): Update comments.
8797 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8798 * frame.c (legacy_get_prev_frame): Ditto.
8799 * valops.c (call_function_by_hand): Delete function.
8800 (hand_function_call): Rename to call_function_by_hand
8801
ed234cf8
AC
88022003-03-30 Andrew Cagney <cagney@redhat.com>
8803
8804 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 8805 * value.h (struct value): Update comment.
ed234cf8 8806
06c77151
AC
88072003-03-30 Andrew Cagney <cagney@redhat.com>
8808
6c2b5168
AC
8809 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8810 D10V_FP_REGNUM.
8811 (d10v_gdbarch_init): Do not set fp_regnum.
8812
06c77151
AC
8813 * frame.c (get_frame_base): Force ID initialization.
8814 (get_prev_frame): Move computation of the frame ID from here ...
8815 (get_frame_id): ... to here.
8816 (legacy_get_prev_frame): Mark the frame ID as valid.
8817 * frame.h (struct frame_info): Add field "id_p".
8818
97a1a11c
MK
88192003-03-30 Mark Kettenis <kettenis@gnu.org>
8820
8821 * i386-tdep.c (i386_store_struct_return): Removed.
8822 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8823
6c0e89ed
AC
88242003-03-30 Andrew Cagney <cagney@redhat.com>
8825
8826 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8827 * gdbarch.h, gdbarch.c: Regenerate.
8828 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8829 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8830 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8831 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8832 * i386-tdep.c (i386_gdbarch_init): Ditto.
8833 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8834 * cris-tdep.c (cris_gdbarch_init): Ditto.
8835 * vax-tdep.c (vax_gdbarch_init): Ditto.
8836 * s390-tdep.c (s390_gdbarch_init): Ditto.
8837 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8838 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8839 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8840 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8841 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8842 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8843 * sparc-tdep.c (sparc_gdbarch_init): Update.
8844 * sh-tdep.c (sh_gdbarch_init): Update.
8845 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8846 * mips-tdep.c (mips_gdbarch_init): Update.
8847 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8848 * ia64-tdep.c (ia64_gdbarch_init): Update.
8849 * frv-tdep.c (frv_gdbarch_init): Update.
8850 * avr-tdep.c (avr_gdbarch_init): Update.
8851 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8852 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8853 instead of when push_dummy_call is not available.
8ffd9b1b 8854
f7dd6af2
AC
88552003-03-30 Andrew Cagney <cagney@redhat.com>
8856
8857 * infttrace.c: Include "gdbthread.h".
8858 (parent_attach_all): Fix function signature.
8859 (call_ptrace): Update call.
8860 * Makefile.in (infttrace.o): Update dependencies.
8861
28f617b3
AC
88622003-03-30 Andrew Cagney <cagney@redhat.com>
8863
8864 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8865 PUSH_RETURN_ADDRESS.
8866 * gdbarch.h, gdbarch.c: Regenerate.
8867 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8868 * x86-64-tdep.c (x86_64_init_abi): Update.
8869 * v850-tdep.c (v850_gdbarch_init): Update.
8870 * sparc-tdep.c (sparc_gdbarch_init): Update.
8871 * sh-tdep.c (sh_gdbarch_init): Update.
8872 * s390-tdep.c (s390_gdbarch_init): Update.
8873 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8874 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8875 * mips-tdep.c (mips_gdbarch_init): Update.
8876 * mcore-tdep.c (mcore_gdbarch_init): Update.
8877 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8878 * ia64-tdep.c (ia64_gdbarch_init): Update.
8879 * i386-tdep.c (i386_gdbarch_init): Update.
8880 * h8300-tdep.c (h8300_gdbarch_init): Update.
8881 * frv-tdep.c (frv_gdbarch_init): Update.
8882 * cris-tdep.c (cris_gdbarch_init): Update.
8883 * avr-tdep.c (avr_gdbarch_init): Update.
8884 * arm-tdep.c (arm_gdbarch_init): Update.
8885 * valops.c (hand_function_call): Update.
8886
4d628cd7
AC
88872003-03-29 Andrew Cagney <cagney@redhat.com>
8888
8889 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8890 sizeof_call_dummy_words.
8891 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8892 define.
8893 * gdbarch.h: Regenerate.
8ffd9b1b 8894
65e82032
AC
88952003-03-29 Andrew Cagney <cagney@redhat.com>
8896
8897 * infttrace.h: New file.
8898 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8899 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8900 (hpread_read_doc_function_type): Detect an initialized type1.
8901 (hpread_quick_traverse): Initialize mod_name_string.
8902 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8903 (som_solib_get_solib_by_pc): Declare.
8904 (so_lib_thread_start_addr): Declare.
8905 (no_shared_libraries): Declare.
8906 * somread.c (init_import_symbols): Make static. Add forward
8907 declaration.
8908 * config/pa/nm-hppah.h: Include "infttrace.h" for
8909 parent_attach_all.
8910 (hppa_insert_hw_watchpoint): Declare.
8911 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8912 * hppah-nat.c: Include "gdb_string.h".
8913 (parent_attach_all): Delete extern declaration, moved to
8914 "infttrace.h".
8915 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8916 int.
8917 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8918 * Makefile.in (infttrace_h): Define.
8919 (hpread.o): Update dependencies.
8920 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8921 * hppa-hpux-tdep.c: Include "gdb_string.h".
8922 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8923 * infrun.c (handle_inferior_event): Always initialize
8924 stepped_after_stopped_by_watchpoint. Add default and remove
8925 fallthrough in switch statement.
8926 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8927 parameter to int.
8928 (hppa_remove_hw_watchpoint): Ditto.
8929
2c3bbe77
AC
89302003-03-29 Andrew Cagney <cagney@redhat.com>
8931
8932 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8933 offset.
8934
2dd604e7
RE
89352003-03-29 Richard Earnshaw <rearnsha@arm.com>
8936
8937 * arm-tdep.c (arm_push_arguments): Delete.
8938 (struct stack_item): New type.
8939 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8940 (arm_store_struct_return): Delte.
8941 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8942 arm_push_arguments or arm_store_struct_return.
8943
e8933a55
AC
89442003-03-28 Andrew Cagney <cagney@redhat.com>
8945
8946 * Makefile.in (d10v-tdep.o): Update dependencies.
8947 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8948 * d10v-tdep.c: Include "remote.h".
8949 (target_resume_hook): Delete extern declaration.
8950 (target_wait_loop_hook): Ditto.
8951 (tdisassemble_command): Eliminate assignment in "if" conditional.
8952 (d10v_ts2_register_sim_regno): Eliminate call to
8953 legacy_register_sim_regno.
8954 (d10v_ts3_register_sim_regno): Ditto.
8955
6949171e
JJ
89562003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8957
8958 * thread.c: Reindented.
8959 * lin-lwp.c: Ditto.
8960 * linux-proc.c: Ditto.
8961
98c7071f
BR
89622003-03-28 Bob Rossi <bob_rossi@cox.net>
8963
fbe586ae 8964 * MAINTAINERS (write after approval): Add myself.
98c7071f 8965
5edc9ca6
TR
89662003-03-27 Theodore A. Roth <troth@openavr.org>
8967
8968 * objc-exp.y: Add missing semi-colons.
8969
378bfd1b
AC
89702003-03-27 Andrew Cagney <cagney@redhat.com>
8971
8972 * regcache.c (write_sp): Delete function and references.
8973 * inferior.h (write_sp): Delete declaration.
8974 * valops.c (hand_function_call): Replace write_sp with
8975 TARGET_WRITE_SP.
8976 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8977 (sparc_pop_frame): Ditto.
8ffd9b1b 8978
56056df7
AC
89792003-03-27 Andrew Cagney <cagney@redhat.com>
8980
8981 * NEWS: Mention removal of support for hppa*-*-bsd* and
8982 hppa*-*-osf* natives, and hppa*-*-pro* target.
8983 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8984 * config/pa/xm-pa.h: Obsolete file.
8985 * config/pa/xm-hppab.h: Obsolete file.
8986 * config/pa/nm-hppab.h: Obsolete file.
8987 * config/pa/tm-hppab.h: Obsolete file.
8988 * config/pa/tm-hppao.h: Obsolete file.
8989 * config/pa/nm-hppao.h: Obsolete file.
8990 * config/pa/tm-pro.h: Obsolete file.
8991 * config/pa/hppaosf.mt: Obsolete file.
8992 * config/pa/hppaosf.mh: Obsolete file.
8993 * config/pa/hppapro.mt: Obsolete file.
8994 * config/pa/hppabsd.mt: Obsolete file.
8995 * config/pa/hppabsd.mh: Obsolete file.
8996 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8997 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8998 hppa*-*-osf*.
8999
5873a88d
AC
90002003-03-27 Andrew Cagney <cagney@redhat.com>
9001
9002 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9003 push_arguments. Don't set push_return_address or write_sp.
9004 (d10v_push_dummy_call): Replace d10v_push_arguments.
9005 (d10v_push_return_address, d10v_write_sp): Delete function,
9006 handled by push_dummy_call.
9007
b81774d8
AC
90082003-03-26 Andrew Cagney <cagney@redhat.com>
9009
9010 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9011 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9012 regcache and dummy_addr parameters.
9013 * gdbarch.h, gdbarch.c: Re-generate.
9014 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9015 available; assume it will handle stack alignment and return
9016 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9017 legacy_push_arguments.
9018 (legacy_push_arguments): Rename default_push_arguments.
9019 * value.h (legacy_push_arguments): Rename default_push_arguments.
9020 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9021 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9022 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9023 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9024 * config/i386/tm-symmetry.h: Update.
9025 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9026 * x86-64-tdep.c (x86_64_init_abi): Update.
9027 * v850-tdep.c (v850_gdbarch_init): Update.
9028 * sparc-tdep.c (sparc_gdbarch_init): Update.
9029 * sh-tdep.c (sh_gdbarch_init): Update.
9030 * s390-tdep.c (s390_gdbarch_init): Update.
9031 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9032 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9033 * mips-tdep.c (mips_gdbarch_init): Update.
9034 * mcore-tdep.c (mcore_gdbarch_init): Update.
9035 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9036 * ia64-tdep.c (ia64_gdbarch_init): Update.
9037 * i386-tdep.c (i386_gdbarch_init): Update.
9038 * hppa-tdep.c (hppa_gdbarch_init): Update.
9039 * h8300-tdep.c (h8300_gdbarch_init): Update.
9040 * frv-tdep.c (frv_gdbarch_init): Update.
9041 * d10v-tdep.c (d10v_gdbarch_init): Update.
9042 * cris-tdep.c (cris_gdbarch_init): Update.
9043 * avr-tdep.c (avr_gdbarch_init): Update.
9044 * arm-tdep.c (arm_gdbarch_init): Update.
9045 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9046 * alpha-tdep.c (alpha_gdbarch_init): Update.
9047
f541410f
DJ
90482003-03-26 Daniel Jacobowitz <drow@mvista.com>
9049
9050 * signals/signals.c (do_target_signal_to_host): Correct realtime
9051 signal range test.
9052
69f567ae
DJ
90532003-03-26 Daniel Jacobowitz <drow@mvista.com>
9054
9055 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9056 (struct sal_chain, map_catch_names): Remove.
9057 (catch_exception_command_1): Don't call
9058 handle_gnu_4_16_catch_command.
9059
d5d14a5a
DJ
90602003-03-26 Daniel Jacobowitz <drow@mvista.com>
9061
9062 From Mark Dettinger <dettinge@de.ibm.com>:
9063 * dwarf2cfi.c (read_2u): Increment pointer by two.
9064
bdd73e22
DJ
90652003-03-26 Daniel Jacobowitz <drow@mvista.com>
9066
9067 * signals/signals.c: Fix typos in last change.
9068
960cb555
DJ
90692003-03-26 Daniel Jacobowitz <drow@mvista.com>
9070
9071 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9072 not already defined. Use __SIGRTMIN if available.
9073 (target_signal_from_host): Remove SIGRTMIN block.
9074 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9075 the signal is within the realtime range.
9076
f636b87d
AF
90772003-03-25 Adam Fedor <fedor@gnu.org>
9078
9079 * Makefile.in (infrun.o): Add $(language_h)
9080 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9081 for language specific trampolines.
9082 * language.h (struct language_defn): Add skip_trampoline.
9083 (skip_language_trampoline): Declare.
9084 * language.c (unk_lang_trampoline, skip_language_trampoline):
9085 New functions.
9086 (unknown_language_defn, auto_language_defn, local_language_defn):
9087 Add ukn_lang_trampoline.
9088 * ada-lang.c (ada_language_defn): Add NULL for language
9089 specific skip_trampoline.
9090 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9091 scm-lang.c: Likewise.
9092 * objc-lang.c (objc_skip_trampoline): New function.
9093 (objc_language_defn): Add objc_skip_trampoline.
9094
28f617b3 90952003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
9096
9097 * frame.c (get_prev_frame): Delay validating a frame's ID -
9098 non-NULL, didn't go backwards - until an attempt to unwind it to
9099 the previous frame.
9100
f933a9c5
AC
91012003-03-25 Andrew Cagney <cagney@redhat.com>
9102
9103 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9104 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9105 * gdbarch.h, gdbarch.c: Re-generate.
9106 * config/sparc/tm-sparc.h
9107 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9108 * sparc-tdep.c (sparc_gdbarch_init): Set
9109 deprecated_extra_stack_alignment_needed.
9110 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9111 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9112 extra_stack_alignment_needed.
9113 * v850-tdep.c (v850_gdbarch_init): Ditto.
9114 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9115 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9116 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9117 * cris-tdep.c (cris_gdbarch_init): Ditto.
9118 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9119 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 9120
4183d812
AC
91212003-03-25 Andrew Cagney <cagney@redhat.com>
9122
9123 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9124 STORE_STRUCT_RETURN.
9125 * gdbarch.h, gdbarch.c: Regenerate.
9126 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9127 (d10v_push_arguments): Set the struct return register.
9128 (d10v_gdbarch_init): Update.
9129 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9130 * x86-64-tdep.c (x86_64_init_abi): Update.
9131 * vax-tdep.c (vax_gdbarch_init): Update.
9132 * v850-tdep.c (v850_gdbarch_init): Update.
9133 * sparc-tdep.c (sparc_gdbarch_init): Update.
9134 * sh-tdep.c (sh_gdbarch_init): Update.
9135 * s390-tdep.c (s390_gdbarch_init): Update.
9136 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9137 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9138 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9139 * mips-tdep.c (mips_gdbarch_init): Update.
9140 * mcore-tdep.c (mcore_gdbarch_init): Update.
9141 * m68k-tdep.c (m68k_gdbarch_init): Update.
9142 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9143 * ia64-tdep.c (ia64_gdbarch_init): Update.
9144 * i386-tdep.c (i386_gdbarch_init): Update.
9145 * hppa-tdep.c (hppa_gdbarch_init): Update.
9146 * h8300-tdep.c (h8300_gdbarch_init): Update.
9147 * frv-tdep.c (frv_gdbarch_init): Update.
9148 * cris-tdep.c (cris_gdbarch_init): Update.
9149 * avr-tdep.c (avr_gdbarch_init): Update.
9150 * arm-tdep.c (arm_gdbarch_init): Update.
9151 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9152
1bf6d5cc
AC
91532003-03-25 Andrew Cagney <cagney@redhat.com>
9154
9155 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9156 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9157 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9158 * gdbarch.h, gdbarch.c: Regenerate.
9159 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9160 call_dummy_stack_adjust_p.
9161 * vax-tdep.c (vax_gdbarch_init): Ditto.
9162 * v850-tdep.c (v850_gdbarch_init): Ditto.
9163 * sh-tdep.c (sh_gdbarch_init): Ditto.
9164 * s390-tdep.c (s390_gdbarch_init): Ditto.
9165 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9166 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9167 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9168 * mips-tdep.c (mips_gdbarch_init): Ditto.
9169 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9170 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9171 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9172 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9173 * i386-tdep.c (i386_gdbarch_init): Ditto.
9174 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9175 * frv-tdep.c (frv_gdbarch_init): Ditto.
9176 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9177 * cris-tdep.c (cris_gdbarch_init): Ditto.
9178 * avr-tdep.c (avr_gdbarch_init): Ditto.
9179 * arm-tdep.c (arm_gdbarch_init): Ditto.
9180 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9181 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9182 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9183 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9184 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9185 call_dummy_stack_adjust_p.
9186 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9187 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9188 * sparc-tdep.c (sparc32_push_arguments): Update.
9189 * valops.c (hand_function_call): Update.
9190
71c08af0
CV
91912003-03-25 Corinna Vinschen <vinschen@redhat.com>
9192
9193 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9194 set_gdbarch_char_signed.
9195
30757f90
RE
91962003-03-25 Richard Earnshaw <rearnsha@arm.com>
9197
9198 PR cli/548
9199 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9200
03d48a7d
RE
92012003-03-25 Richard Earnshaw <rearnsha@arm.com>
9202
9203 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9204 (_initialize_arm_tdep): Don't set tm_print_insn.
9205
2cf6873c
AF
92062003-03-24 Adam Fedor <fedor@gnu.org>
9207
9208 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9209 * objc-lang.h: Add multiple inclusion protection.
9210 (start_msglist, add_msglist, end_msglist): Additional declarations.
9211
17c0759e
RE
92122003-03-24 Richard Earnshaw <rearnsha@arm.com>
9213
9214 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9215 value was renamed to ARM_FLOAT_SOFT_FPA.
9216
618ce49f
AC
92172003-03-23 Andrew Cagney <cagney@redhat.com>
9218
9219 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9220 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9221 * gdbarch.h, gdbarch.c: Regenerate.
9222 * valops.c (hand_function_call): Update.
9223 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9224 * frame.c (legacy_saved_regs_this_id): Update.
9225 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9226 * dummy-frame.h: Update.
9227 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9228 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9229 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9230 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9231 * config/m68k/tm-sun3.h: Update.
9232 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9233 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9234 * x86-64-tdep.c (x86_64_init_abi): Update.
9235 * vax-tdep.c (vax_gdbarch_init): Update.
9236 * v850-tdep.c (v850_gdbarch_init): Update.
9237 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9238 * sh-tdep.c (sh_gdbarch_init): Update.
9239 * s390-tdep.c (s390_gdbarch_init): Update.
9240 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9241 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9242 (frame_get_saved_regs): Update.
9243 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9244 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9245 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9246 * mips-tdep.c (mips_gdbarch_init): Update.
9247 * mcore-tdep.c (mcore_gdbarch_init): Update.
9248 * m68k-tdep.c (m68k_gdbarch_init): Update.
9249 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9250 * ia64-tdep.c (ia64_gdbarch_init): Update.
9251 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9252 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9253 (i386_interix_back_one_frame): Update.
9254 * hppa-tdep.c (hppa_gdbarch_init): Update.
9255 (hppa_init_extra_frame_info): Update.
9256 * h8300-tdep.c (h8300_gdbarch_init): Update.
9257 * frv-tdep.c (frv_gdbarch_init): Update.
9258 * cris-tdep.c (cris_gdbarch_init): Update.
9259 * avr-tdep.c (avr_gdbarch_init): Update.
9260 * arm-tdep.c (arm_gdbarch_init): Update.
9261 * alpha-tdep.c (alpha_gdbarch_init): Update.
9262
fd50bc42
RE
92632003-03-22 Richard Earnshaw <rearnsha@arm.com>
9264
9265 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9266 (arm_get_fp_model): Declare.
9267 * arm-tdep.c (fp_model_strings): New string array.
9268 (arm_fp_model, current_fp_model): New variables.
9269 (arm_get_fp_model): New function.
9270 (arm_set_fp): New function.
9271 (set_fp_model_sfunc): New function.
9272 (show_fp_model): New function.
9273 (_initialize_arm_tdep): Add new command to set/show the FPU.
9274 (arm_extract_return_value): Use arm_get_fp_model.
9275 (arm_store_return_value): Likewise.
9276 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9277 to initialize the floating-point data types.
9278 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9279 model is FPA.
9280
26304000
RE
92812003-03-22 Richard Earnshaw <rearnsha@arm.com>
9282
9283 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9284 the current setting of each value.
9285 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 9286 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
9287 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9288 commands and add new version as subcommands of "set/show arm".
9289
afd7eef0
RE
92902003-03-22 Richard Earnshaw <rearnsha@arm.com>
9291
9292 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9293 (set_arm_command, show_arm_command): New functions.
9294 (_initialize_arm_tdep): Add them.
9295 (num_disassembly_options): Renamed from num_flavor_options.
9296 (valid_disassembly_styles): Renamed from valid_flavors.
9297 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 9298 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
9299 set_disassembly_flavor_sfunc.
9300 (set_disassembly_style): Renamed from set_disassembly_flavor.
9301 (arm_othernames): Updated.
9302 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9303 command. Add "set/show arm disassembly" commands. Deprecate
9304 "othernames" command.
9305
299a7944
RE
93062003-03-22 Richard Earnshaw <rearnsha@arm.com>
9307
9308 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9309 (arm-tdep.o): Depend on elf_arm_h.
9310
c1dac9e6
RE
93112003-03-22 Richard Earnshaw <rearnsha@arm.com>
9312
9313 * Makefile.in (coff_internal_h): Define.
9314 (arm-tdep.o): Update dependencies.
9315
2702d96c
RE
93162003-03-22 Richard Earnshaw <rearnsha@arm.com>
9317
9318 * arm-tdep.c (prologue_cache): Delete.
9319 (check_prologue_cache, save_prologue_cache): Delete.
9320 (arm_scan_prologue): Don't check or update the prologue_cache.
9321 (arm_gdb_arch_init): Don't initialize it.
9322 (_initialize_arm_tdep): Likewise.
9323
27d5d74b
SC
93242003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9325
9326 * MAINTAINERS (tui): Maintainer of tui code.
9327
1762d96d
CV
93282003-03-21 Corinna Vinschen <vinschen@redhat.com>
9329
9330 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9331 (i386-cygwin-tdep.o): Add dependencies.
9332 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9333 * i386-cygwin-tdep.c: New file.
9334 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9335 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9336
4c2e2391
AC
93372003-03-20 Andrew Cagney <cagney@redhat.com>
9338
f20d38b7
AC
9339 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9340 (handle_inferior_event): Remove code calling
9341 DYNAMIC_TRAMPOLINE_NEXTPC.
9342
0022b738
AC
9343 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9344 already has a full path.
9345
864dbc90
AC
9346 * main.c (gdb_main): Return 1.
9347 (captured_main): Call error to report an invalid interpreter.
9348
4c2e2391
AC
9349 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9350 * alpha-osf1-tdep.c: Include "gdb_string.h".
9351
5ef7553b
JB
93522003-03-19 J. Brobecker <brobecker@gnat.com>
9353
9354 Continuing work to convert the hppa targets to multiarch partial.
9355
9356 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9357 method, now that hppa_push_dummy_frame has a conformant prototype.
9358 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9359 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9360 for the switch to multiarch partial.
9361
7bde8967
KB
93622003-03-19 Kevin Buettner <kevinb@redhat.com>
9363
9364 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9365 when iss is issNull.
9366
b006a9e9
KB
93672003-03-18 Kevin Buettner <kevinb@redhat.com>
9368
9369 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9370 NUM_REGS bounds check.
9371
5e2e9765
KB
93722003-03-18 Kevin Buettner <kevinb@redhat.com>
9373
9374 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9375 * mips-tdep.c (gdb_assert.h): Include.
9376 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9377 (mips_register_name): Handle integer registers explicitly. Add
9378 bounds checking.
9379 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9380 (mips_lsi33k_reg_names): Don't list integer registers; they're
9381 handled by mips_register_name() now.
9382 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9383 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9384 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9385 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9386 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9387
a2867626
AC
93882003-03-18 Andrew Cagney <cagney@redhat.com>
9389
9390 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9391 a void pointer.
9392 * gdbtypes.h (print_scalar_formatted): Update declaration.
9393 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9394
06600e06
JB
93952003-03-18 J. Brobecker <brobecker@gnat.com>
9396
9397 * infrun.c (observer.h): Add #include.
9398 (normal_stop): Add call to observer_notify_normal_stop.
9399 * Makefile.in (infrun.o): Add dependency on observer.h.
9400
7daf4f5b
JB
94012003-03-18 J. Brobecker <brobecker@gnat.com>
9402
9403 Continuing work to convert the hppa targets to multiarch partial.
9404 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9405 parameter. Reformat comment.
9406 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9407 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9408 to match new profile.
9409
3371ccc0
JB
94102003-03-18 J. Brobecker <brobecker@gnat.com>
9411
9412 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9413 appear to be working in any case.
9414
4fbe891e
JB
94152003-03-18 J. Brobecker <brobecker@gnat.com>
9416
9417 * observer.c (observer_test_first_observer): New static variable.
9418 (observer_test_second_observer): Likewise.
9419 (observer_test_third_observer): Likewise.
9420 (observer_test_first_notification_function): New static function.
9421 (observer_test_second_notification_function): Likewise.
9422 (observer_test_third_notification_function): Likewise.
9423
a7ff40e7
JB
94242003-03-17 J. Brobecker <brobecker@gnat.com>
9425
9426 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9427 * somsolib.c (gdb_assert.h): Likewise.
9428 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9429 (somsolib.o): Likewise.
9430
26ca4152
AC
94312003-03-17 Andrew Cagney <cagney@redhat.com>
9432
9433 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9434 BFD. Simplify setting of di.endian.
9435
0a613259
AC
94362003-03-17 Andrew Cagney <cagney@redhat.com>
9437
9438 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9439 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9440
9441 From Elena Zannoni <ezannoni@redhat.com>
9442 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9443 vector and floating-point parameters.
9444 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9445 convention.
9446 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9447
1132738f
FN
94482003-03-17 Fernando Nasser <fnasser@redhat.com>
9449
9450 * MAINTAINERS: Remove my name from several maintainership roles.
9451
6dc42492
AC
94522003-03-17 Andrew Cagney <cagney@redhat.com>
9453
9454 Fix frame off-by-one bug.
9455 * frame-unwind.h (frame_this_id_ftype): Replace
9456 frame_unwind_id_ftype.
9457 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9458 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9459 with "prev_register".
9460 * frame-unwind.c (frame_unwind_find_by_pc): Return
9461 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9462 comment.
9463 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9464 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9465 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9466 (dummy_frame_unwind): Update.
9467 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9468 sentinel_frame_register_unwind.
9469 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9470 (sentinel_frame_unwinder): Update.
9471 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9472 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9473 * frame.c (create_sentinel_frame): Update. Initialize
9474 "prologue_cache" instead of "unwind_cache".
9475 (frame_register_unwind): Call this frame's prev_register with the
9476 next frame and this frame's prologue cache.
9477 (get_prev_frame): Simplify. Always call prev frame's this_id with
9478 this frame and prev frame's prologue cache. Document that this
9479 call is shifted one to the left when compared to the
9480 frame_register_unwind call.
9481 (legacy_saved_regs_prev_register): Replace
9482 frame_saved_regs_register_unwind.
9483 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9484 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9485 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9486 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9487 (d10v_frame_unwind): Update.
9488 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9489 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9490 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9491 "saved_regs" with "this_saved_regs".
9492
efd710d6
AC
94932003-03-16 Andrew Cagney <cagney@redhat.com>
9494
9495 * frame.c (frame_pop): Don't call target_store_registers. Fix
9496 problem reported by Mark Kettenis.
9497
4e259f09
MK
94982003-03-16 Mark Kettenis <kettenis@gnu.org>
9499
9500 * i386-tdep.c (i386_register_type): Renamed from
9501 i386_register_virtual_type. Adjust function signature.
9502 (i386_gdbarch_init): Set register_type instead of
9503 deprecated_max_register_raw_size,
9504 deprecated_max_register_virtual_size and register_virtual_type.
9505
055bb976
AC
95062003-03-14 Andrew Cagney <cagney@redhat.com>
9507
9508 * frame.c (get_prev_frame): When a legacy frame, always call
9509 legacy_get_prev_frame. Simplify unwind code using assumption that
9510 the unwinder is new.
9511 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9512 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9513 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9514
ac2adee5
AC
95152003-03-14 Andrew Cagney <cagney@redhat.com>
9516
9517 * frame.c (get_saved_register): Delete function.
9518 * frame.h (get_saved_register): Delete declaration.
9519 * xstormy16-tdep.c: Update comment.
9520 * regcache.h: Update comments.
9521 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9522 get_saved_register and extract_address, use
9523 frame_read_unsigned_register.
9524 (sparc_frame_saved_pc): Ditto.
9525 (sparc_get_saved_register): Instead of get_saved_register, use
9526 frame_register.
9527 (sparc_pop_frame): Ditto.
9528 * findvar.c: Update comments.
9529 (value_of_register): Call frame_register instead of
9530 get_saved_register.
9531 (value_from_register): Ditto.
9532 * config/sparc/tm-sparc.h: Update comment.
9533 * breakpoint.c: Update comment.
9534
129c1cd6
AC
95352003-03-14 Andrew Cagney <cagney@redhat.com>
9536
9537 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9538 GET_SAVED_REGISTER.
9539 * gdbarch.h, gdbarch.c: Re-generate.
9540 * frame.h: Update comments.
9541 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9542 * x86-64-tdep.c (x86_64_init_abi): Update.
9543 * sparc-tdep.c (sparc_gdbarch_init): Update.
9544 * sh-tdep.c (sh_gdbarch_init): Update.
9545 * mips-tdep.c (mips_gdbarch_init): Update.
9546 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9547 * cris-tdep.c (cris_gdbarch_init): Update.
9548 * ia64-tdep.c (ia64_gdbarch_init): Update.
9549 * frame.c (frame_register): Update.
9550 (get_saved_register): Update.
9551 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 9552
749b82f6
AC
95532003-03-13 Andrew Cagney <cagney@redhat.com>
9554
9555 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9556 * gdbarch.h, gdbarch.c: Regenerate.
9557 * valops.c (hand_function_call): Update comment.
9558 * stack.c (return_command): Update comment.
9559 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9560 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9561 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9562 * x86-64-tdep.c (x86_64_init_abi): Update.
9563 * vax-tdep.c (vax_gdbarch_init): Update.
9564 * v850-tdep.c (v850_gdbarch_init): Update.
9565 * sparc-tdep.c (sparc_gdbarch_init): Update.
9566 * sh-tdep.c (sh_gdbarch_init): Update.
9567 * s390-tdep.c (s390_gdbarch_init): Update.
9568 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9569 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9570 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9571 * mips-tdep.c (mips_gdbarch_init): Update.
9572 * mcore-tdep.c (mcore_gdbarch_init): Update.
9573 * m68k-tdep.c (m68k_gdbarch_init): Update.
9574 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9575 * ia64-tdep.c (ia64_gdbarch_init): Update.
9576 * i386-tdep.c (i386_gdbarch_init): Update.
9577 * hppa-tdep.c (hppa_gdbarch_init): Update.
9578 * h8300-tdep.c (h8300_gdbarch_init): Update.
9579 * frv-tdep.c (frv_gdbarch_init): Update.
9580 * cris-tdep.c (cris_gdbarch_init): Update.
9581 * avr-tdep.c (avr_gdbarch_init): Update.
9582 * arm-tdep.c (arm_gdbarch_init): Update.
9583 * alpha-tdep.c (alpha_gdbarch_init): Update.
9584
1594fa56
AC
95852003-03-13 Andrew Cagney <cagney@redhat.com>
9586
9587 * frame.c (legacy_frame_p): New function.
9588 (get_prev_frame): Use legacy_frame_p.
9589 * frame.h (legacy_frame_p): Declare.
9590
7717fda3
V
95912003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9592
fbe586ae 9593 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
9594 listing corrected.
9595
0c67cbe9
V
95962003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9597
fbe586ae 9598 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 9599
03febf99
AC
96002003-03-12 Andrew Cagney <cagney@redhat.com>
9601
9602 * frame.c (get_prev_frame): Rename the frame parameter to
9603 "this_frame".
9604 (get_next_frame, legacy_get_prev_frame): Ditto.
9605
0a1e1ca1
AC
96062003-03-12 Andrew Cagney <cagney@redhat.com>
9607
9608 * frame.c (get_current_frame): Check target_has_registers before
9609 checking target_has_stack.
9610 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9611 instead of deprecated_selected_frame.
9612 * findvar.c (value_of_register): Pass "frame", not
9613 deprecated_selected_frame, to value_of_builtin_reg.
9614
a66a9c23
AC
96152003-03-12 Andrew Cagney <cagney@redhat.com>
9616
9617 * regcache.c (regcache_cooked_write_signed): New function.
9618 (regcache_cooked_write_unsigned): New function.
9619 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9620 (regcache_cooked_read_signed): Fix regnum in range assertion.
9621 * regcache.h (regcache_cooked_write_signed): Declare.
9622 (regcache_cooked_write_unsigned): Declare.
9623
8bedc050
AC
96242003-03-12 Andrew Cagney <cagney@redhat.com>
9625
9626 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9627 * gdbarch.h, gdbarch.c: Re-generate.
9628 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9629 * x86-64-tdep.h: Update.
9630 * x86-64-tdep.c (x86_64_init_abi): Update.
9631 * v850-tdep.c (v850_gdbarch_init): Update.
9632 * sparc-tdep.c (sparc_gdbarch_init): Update.
9633 * sh-tdep.c (sh_gdbarch_init): Update.
9634 * s390-tdep.c (s390_gdbarch_init): Update.
9635 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9636 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9637 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9638 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9639 * mips-tdep.c (mips_gdbarch_init): Update.
9640 * mcore-tdep.c (mcore_gdbarch_init): Update.
9641 * m68k-tdep.c (m68k_gdbarch_init): Update.
9642 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9643 * ia64-tdep.c (ia64_gdbarch_init): Update.
9644 * i386-tdep.c (i386_gdbarch_init): Update.
9645 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9646 * hppa-tdep.c (hppa_gdbarch_init): Update.
9647 * h8300-tdep.c (h8300_gdbarch_init): Update.
9648 * frv-tdep.c (frv_gdbarch_init): Update.
9649 * cris-tdep.c (cris_gdbarch_init): Update.
9650 * avr-tdep.c (avr_gdbarch_init): Update.
9651 * arm-tdep.c (arm_gdbarch_init): Update.
9652 * alpha-tdep.c (alpha_gdbarch_init): Update.
9653 * sh-tdep.c (sh_init_extra_frame_info): Update.
9654 (sh64_init_extra_frame_info): Update.
9655 * ns32knbsd-nat.c (frame_num_args): Update.
9656 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9657 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9658 (xstormy16_frame_chain_valid): Update.
9659 * vax-tdep.c (vax_saved_pc_after_call): Update.
9660 * v850-tdep.c (v850_frame_chain): Update.
9661 (v850_pop_frame): Update.
9662 (v850_init_extra_frame_info): Update.
9663 * sparc-tdep.c (setup_arbitrary_frame): Update.
9664 * ns32k-tdep.c (umax_frame_num_args): Update.
9665 * s390-tdep.c (s390_pop_frame_regular): Update.
9666 * mn10300-tdep.c (mn10300_frame_chain): Update.
9667 (mn10300_pop_frame_regular): Update.
9668 (mn10300_init_extra_frame_info): Update.
9669 * mips-tdep.c (mips_init_frame_pc_first): Update.
9670 (mips_frame_chain): Update.
9671 (mips_pop_frame): Update.
9672 * mcore-tdep.c (mcore_frame_chain): Update.
9673 (mcore_pop_frame): Update.
9674 (mcore_init_extra_frame_info): Update.
9675 * arch-utils.c (init_frame_pc_default): Update.
9676 * m68k-tdep.c (isi_frame_num_args): Update.
9677 (delta68_frame_num_args): Update.
9678 (news_frame_num_args): Update.
9679 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9680 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9681 (alpha_frame_chain): Update.
9682 (alpha_pop_frame): Update.
9683 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9684 (hppa_init_extra_frame_info): Update.
9685 (hppa_frame_chain): Update.
9686 (hppa_frame_chain_valid): Update.
9687 * cris-tdep.c (cris_init_extra_frame_info): Update.
9688 * avr-tdep.c (avr_init_extra_frame_info): Update.
9689 * arm-tdep.c (arm_frame_chain_valid): Update.
9690 (arm_init_extra_frame_info): Update.
9691 (arm_pop_frame): Update.
9692 * frame.c (frame_pc_unwind): Update.
9693 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9694 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9695 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9696 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9697 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9698 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9699
7a25a7c1
AC
97002003-03-12 Andrew Cagney <cagney@redhat.com>
9701
9702 Eliminate the need for POP_FRAME.
9703 * frame.c (do_frame_unwind_register): New function.
9704 (frame_pop): When no POP_FRAME, pop the frame using register
9705 unwind and a scratch regcache.
9706 (frame_saved_regs_pop): Delete function.
9707 (trad_frame_unwinder): Update.
9708 * d10v-tdep.c (d10v_frame_pop): Delete function.
9709 (d10v_frame_unwind): Update.
9710 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9711 (sentinel_frame_unwinder): Update.
9712 * dummy-frame.c (dummy_frame_pop): Delete function.
9713 (dummy_frame_unwind): Update.
9714 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9715 (struct frame_unwind): Update.
9716
2f38ef89
KB
97172003-03-11 Kevin Buettner <kevinb@redhat.com>
9718
9719 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9720 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9721 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9722 Do range checks on register number obtained from debugging info.
9723 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9724 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9725 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9726 mapping function.
9727 (do_fp_register_row): Fix typo which caused double type to be
9728 used when attempting to unpack a float.
9729
552f4abf
JB
97302003-03-11 J. Brobecker <brobecker@gnat.com>
9731
9732 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9733
e0d2ae16
AC
97342003-03-11 Andrew Cagney <cagney@redhat.com>
9735
9736 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9737 frame. Problem found by Corinna Vinschen.
9738
ddbfdd06
PM
97392003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9740
9741 * doublest.c (floatformat_from_length): Accept also
9742 the real size of 'long double' type.
9743
088b2ddc 97442003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 9745
088b2ddc 9746 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
9747 * breakpoint.c (bpstat_copy): Copy the command lines as well
9748 as the old value, to match what is freed in bpstat_clear.
9749
f56f77c1
DC
97502003-03-10 David Carlton <carlton@math.stanford.edu>
9751
9752 * minsyms.c (add_minsym_to_hash_table): Replace
9753 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9754 (compare_minimal_symbols, compact_minimal_symbols)
9755 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9756 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9757 of DEPRECATED_SYMBOL_MATCHES_NAME.
9758 (lookup_minimal_symbol_solib_trampoline): Ditto.
9759
5602984a
AC
97602003-03-10 Andrew Cagney <cagney@redhat.com>
9761
9762 * regcache.h (regcache_cooked_read_ftype): Define.
9763 (regcache_save, regcache_restore): Add a cooked_read parameter.
9764 * regcache.c (regcache_save, regcache_restore): Update.
9765 (do_cooked_read): New function.
9766 (regcache_cpy): Pass do_cooked_read to regcache_save and
9767 regcache_restore.
9768
8bedc050
AC
97692003-03-10 Andrew Cagney <cagney@redhat.com>
9770
9771 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9772 * gdbarch.h, gdbarch.c: Re-generate.
9773 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9774 * x86-64-tdep.h: Update.
9775 * x86-64-tdep.c (x86_64_init_abi): Update.
9776 * v850-tdep.c (v850_gdbarch_init): Update.
9777 * sparc-tdep.c (sparc_gdbarch_init): Update.
9778 * sh-tdep.c (sh_gdbarch_init): Update.
9779 * s390-tdep.c (s390_gdbarch_init): Update.
9780 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9781 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9782 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9783 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9784 * mips-tdep.c (mips_gdbarch_init): Update.
9785 * mcore-tdep.c (mcore_gdbarch_init): Update.
9786 * m68k-tdep.c (m68k_gdbarch_init): Update.
9787 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9788 * ia64-tdep.c (ia64_gdbarch_init): Update.
9789 * i386-tdep.c (i386_gdbarch_init): Update.
9790 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9791 * hppa-tdep.c (hppa_gdbarch_init): Update.
9792 * h8300-tdep.c (h8300_gdbarch_init): Update.
9793 * frv-tdep.c (frv_gdbarch_init): Update.
9794 * cris-tdep.c (cris_gdbarch_init): Update.
9795 * avr-tdep.c (avr_gdbarch_init): Update.
9796 * arm-tdep.c (arm_gdbarch_init): Update.
9797 * alpha-tdep.c (alpha_gdbarch_init): Update.
9798 * sh-tdep.c (sh_init_extra_frame_info): Update.
9799 (sh64_init_extra_frame_info): Update.
9800 * ns32knbsd-nat.c (frame_num_args): Update.
9801 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9802 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9803 (xstormy16_frame_chain_valid): Update.
9804 * vax-tdep.c (vax_saved_pc_after_call): Update.
9805 * v850-tdep.c (v850_frame_chain): Update.
9806 (v850_pop_frame): Update.
9807 (v850_init_extra_frame_info): Update.
9808 * sparc-tdep.c (setup_arbitrary_frame): Update.
9809 * ns32k-tdep.c (umax_frame_num_args): Update.
9810 * s390-tdep.c (s390_pop_frame_regular): Update.
9811 * mn10300-tdep.c (mn10300_frame_chain): Update.
9812 (mn10300_pop_frame_regular): Update.
9813 (mn10300_init_extra_frame_info): Update.
9814 * mips-tdep.c (mips_init_frame_pc_first): Update.
9815 (mips_frame_chain): Update.
9816 (mips_pop_frame): Update.
9817 * mcore-tdep.c (mcore_frame_chain): Update.
9818 (mcore_pop_frame): Update.
9819 (mcore_init_extra_frame_info): Update.
9820 * arch-utils.c (init_frame_pc_default): Update.
9821 * m68k-tdep.c (isi_frame_num_args): Update.
9822 (delta68_frame_num_args): Update.
9823 (news_frame_num_args): Update.
9824 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9825 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9826 (alpha_frame_chain): Update.
9827 (alpha_pop_frame): Update.
9828 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9829 (hppa_init_extra_frame_info): Update.
9830 (hppa_frame_chain): Update.
9831 (hppa_frame_chain_valid): Update.
9832 * cris-tdep.c (cris_init_extra_frame_info): Update.
9833 * avr-tdep.c (avr_init_extra_frame_info): Update.
9834 * arm-tdep.c (arm_frame_chain_valid): Update.
9835 (arm_init_extra_frame_info): Update.
9836 (arm_pop_frame): Update.
9837 * frame.c (frame_pc_unwind): Update.
9838 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9839 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9840 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9841 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9842 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9843 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9844
12cc2063
AC
98452003-03-10 Andrew Cagney <cagney@redhat.com>
9846
9847 * gdbarch.sh (gdbarch_unwind_pc): New method.
9848 * gdbarch.h, gdbarch.c: Regenerate.
9849 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9850 but use read_pc and FRAME_SAVED_PC as fall backs.
9851 (frame_saved_regs_pc_unwind): Delete function.
9852 (trad_frame_unwinder): Update.
9853 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9854 (struct frame_unwind): Update.
9855 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9856 (dummy_frame_unwind): Update.
9857 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9858 (sentinel_frame_unwinder): Update.
9859 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9860 (d10v_frame_unwind): Update.
9861 (d10v_unwind_pc): New function.
9862 (d10v_gdbarch_init): Set unwind_pc.
9863
ef840a37
AC
98642003-03-10 Andrew Cagney <cagney@redhat.com>
9865
a2ce2e56
AC
9866 * gdbarch.h: Re-generate.
9867
ef840a37
AC
9868 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9869 PC.
9870 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9871 the PC register.
9872
08f3424b
MK
98732003-03-08 Mark Kettenis <kettenis@gnu.org>
9874
9875 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9876
1248ede2
AC
98772003-03-08 Andrew Cagney <cagney@redhat.com>
9878
9879 * cli-out.c: Update copyright.
9880 (cli_out_data): Define typedef. Use instead of ui_out_data.
9881
f49bacc8
AC
98822003-03-08 Andrew Cagney <cagney@redhat.com>
9883
9884 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9885 the result.
9886
9b05f993
AC
98872003-03-07 Andrew Cagney <cagney@redhat.com>
9888
9889 * gdbarch.sh: Don't generate two macro definitions when an
9890 undefined macro taking no arguments.
9891 * gdbarch.h: Regenerate.
8ffd9b1b 9892
166f4c7b
ML
98932002-03-07 Michal Ludvig <mludvig@suse.cz>
9894
9895 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9896 (x86_64_unwind_dummy_id): New functions.
9897 (x86_64_init_abi): Register these two new functions.
9898
6d686a84
ML
98992003-03-07 Michal Ludvig <mludvig@suse.cz>
9900
9901 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 9902 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
9903 separate function.
9904 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9905
6314f104
AC
99062003-03-05 Andrew Cagney <cagney@redhat.com>
9907
9908 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9909 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9910 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9911 to use unwind_dummy_id when a dummy frame.
9912 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9913 predicate.
9914 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 9915
ceea5145
AC
99162003-03-05 Andrew Cagney <cagney@redhat.com>
9917
9918 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9919 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9920 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9921 values.
9922
0d843116
AC
99232003-03-05 Andrew Cagney <cagney@redhat.com>
9924
9925 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9926 (struct d10v_unwind_cache): Delete field "frameless". Replace
9927 "next_addr" with "sp_offset". Add "r11_offset".
9928 (d10v_frame_unwind_cache): Update.
9929 (prologue_find_regs): Update. When "mv r11, sp", save the
9930 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9931 RN was saved in r11_offset.
9932
b2579786
AC
99332003-03-05 Andrew Cagney <cagney@redhat.com>
9934
9935 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9936 cached PC value in the next frame.
9937
218e5956
AC
99382003-03-05 Andrew Cagney <cagney@redhat.com>
9939
9940 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9941 "id_unwind_cache" with "id".
9942 (frame_id_unwind): Delete declaration.
9943 * frame.c (frame_id_unwind): Delete function.
9944 (get_prev_frame): Call the frame id unwind method directly. Store
9945 the returned next frame's ID value in NEXT_FRAME. Note that there
9946 is a problem with the wrong unwind ID being called with the wrong
9947 unwind cache.
9948
ed363b1b
DJ
99492003-03-05 Daniel Jacobowitz <drow@mvista.com>
9950
9951 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9952
fe1f4a5e
DJ
99532003-03-05 James Ingham <jingham@apple.com>
9954 Daniel Jacobowitz <drow@mvista.com>
9955
9956 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9957 (auto_cp_abi): New variable.
9958 (current_cp_abi, num_cp_abis): Make static.
9959 (CP_ABI_MAX): Define.
9960 (cp_abis): Turn into an array.
9961 (value_virtual_fn_field): Fix formatting.
9962 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9963 takes a pointer.
9964 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9965 (list_cp_abis, _initialize_cp_abi): New functions.
9966 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9967 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9968 switch_to_cp_abi. Update prototype for register_cp_abi.
9969 * Makefile.in (cp-abi.o): Update dependencies.
9970 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9971 instead of switch_to_cp_abi.
9972 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9973 register_cp_abi.
9974 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9975 register_cp_abi.
9976 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9977
e4adbba9
DJ
99782003-03-05 Daniel Jacobowitz <drow@mvista.com>
9979
9980 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9981 * dwarf2loc.c: Include "regcache.h".
9982 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9983 register_size.
9984 * Makefile.in (dwarf2loc.o): Update dependencies.
9985
91ccbfc1
TR
99862003-03-04 Theodore A. Roth <troth@openavr.org>
9987
9988 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9989 number of io registers reported by remote target is not a multiple of
9990 step.
9991
3d4e8fd2
DC
99922003-03-04 David Carlton <carlton@math.stanford.edu>
9993
9994 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9995 (lookup_symbol_aux_psymtabs): Update call to
9996 lookup_partial_symbol.
9997 (lookup_transparent_type, find_main_psymtab)
9998 (make_symbol_overload_list): Ditto.
9999
ed42d87b
KH
100002003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10001
10002 * MAINTAINERS (Write after approval): Update my email address.
10003
a0ed5532
AC
100042003-03-03 Andrew Cagney <cagney@redhat.com>
10005
10006 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10007 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10008 predicate. Replace MAX_REGISTER_RAW_SIZE.
10009 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10010 MAX_REGISTER_VIRTUAL_SIZE.
10011 * regcache.c (legacy_max_register_raw_size): New function.
10012 (legacy_max_register_virtual_size): New function.
10013 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10014 (MAX_REGISTER_RAW_SIZE): Define.
10015 (legacy_max_register_raw_size): Declare.
10016 (legacy_max_register_virtual_size): Declare.
10017 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10018 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10019 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10020 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10021 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10022 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10023 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10024 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10025 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10026 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10027 * vax-tdep.c (vax_gdbarch_init): Update.
10028 * v850-tdep.c (v850_gdbarch_init): Update.
10029 * sparc-tdep.c (sparc_gdbarch_init): Update.
10030 * sh-tdep.c (sh_gdbarch_init): Update.
10031 * s390-tdep.c (s390_gdbarch_init): Update.
10032 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10033 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10034 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10035 * mips-tdep.c (mips_gdbarch_init): Update.
10036 * mcore-tdep.c (mcore_gdbarch_init): Update.
10037 * m68k-tdep.c (m68k_gdbarch_init): Update.
10038 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10039 * ia64-tdep.c (ia64_gdbarch_init): Update.
10040 * i386-tdep.c (i386_gdbarch_init): Update.
10041 * hppa-tdep.c (hppa_gdbarch_init): Update.
10042 * h8300-tdep.c (h8300_gdbarch_init): Update.
10043 * frv-tdep.c (frv_gdbarch_init): Update.
10044 * cris-tdep.c (cris_gdbarch_init): Update.
10045 * avr-tdep.c (avr_gdbarch_init): Update.
10046 * arm-tdep.c (arm_gdbarch_init): Update.
10047 * alpha-tdep.c (alpha_gdbarch_init): Update.
10048 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10049 max_register_raw_size or max_register_virtual_size.
10050
8e437497
DC
100512003-03-03 David Carlton <carlton@math.stanford.edu>
10052
10053 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10054 SYMBOL_MATCHES_NAME, add comment.
10055 (SYMBOL_MATCHES_NATURAL_NAME): New.
10056 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10057 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10058 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10059 * symtab.c (lookup_partial_symbol): Use
10060 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10061 unhelpful comment.
10062 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10063 SYMBOL_MATCHES_NAME.
10064 Fix for PR c++/33.
10065
25120b0d
DC
100662003-03-03 David Carlton <carlton@math.stanford.edu>
10067
10068 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10069 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10070 by regexp matching against SYMBOL_NATURAL_NAME.
10071
78a11fb4
DC
100722003-03-03 David Carlton <carlton@math.stanford.edu>
10073
10074 * linespec.c (find_method): Extract code into collect_methods.
10075 (collect_methods): New.
10076
645dd519
MK
100772003-03-02 Mark Kettenis <kettenis@gnu.org>
10078
b4700d91
MK
10079 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10080 get_frame_base.
10081
645dd519
MK
10082 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10083 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10084
0aa7e1aa
SC
100852003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10086
8ffd9b1b 10087 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
10088 and not regnum when summing the size of all registers up to regnum.
10089
f30ee0bc
AC
100902003-03-01 Andrew Cagney <cagney@redhat.com>
10091
10092 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10093 FRAME_INIT_SAVED_REGS.
10094 * gdbarch.h, gdbarch.c: Regenerate.
10095 * stack.c (frame_info): Update.
10096 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10097 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10098 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10099 * ns32k-tdep.c (ns32k_pop_frame): Update.
10100 * mips-tdep.c (mips_pop_frame): Update.
10101 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10102 * ia64-tdep.c (ia64_frame_chain): Update.
10103 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10104 (ia64_frameless_function_invocation): Update.
10105 (ia64_init_extra_frame_info): Update.
10106 (ia64_pop_frame_regular): Update.
10107 * frame.h (struct frame_info): Update comment.
10108 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10109 * frame.c (frame_saved_regs_register_unwind): Update.
10110 (frame_saved_regs_register_unwind): Update.
10111 (deprecated_generic_get_saved_register): Update.
10112 * cris-tdep.c: Update comment.
10113 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10114 Rename macro.
10115 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10116 * x86-64-tdep.c (x86_64_init_abi): Update.
10117 * vax-tdep.c (vax_gdbarch_init): Update.
10118 * v850-tdep.c (v850_gdbarch_init): Update.
10119 * sparc-tdep.c (sparc_gdbarch_init): Update.
10120 * sh-tdep.c (sh_gdbarch_init): Update.
10121 * s390-tdep.c (s390_gdbarch_init): Update.
10122 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10123 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10124 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10125 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10126 * mips-tdep.c (mips_gdbarch_init): Update.
10127 * mcore-tdep.c (mcore_gdbarch_init): Update.
10128 * m68k-tdep.c (m68k_gdbarch_init): Update.
10129 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10130 * ia64-tdep.c (ia64_gdbarch_init): Update.
10131 * i386-tdep.c (i386_gdbarch_init): Update.
10132 * frv-tdep.c (frv_gdbarch_init): Update.
10133 * avr-tdep.c (avr_gdbarch_init): Update.
10134 * arm-tdep.c (arm_gdbarch_init): Update.
10135 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10136
42fa7c0f
AC
101372003-03-01 Andrew Cagney <cagney@redhat.com>
10138
10139 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10140 option enum and switch. When no windows, set the interpreter to
10141 INTERP_CONSOLE.
8ffd9b1b 10142
49c7e338
AC
101432003-03-01 Andrew Cagney <cagney@redhat.com>
10144
10145 * main.c (captured_main): Replace magic option characters with an
10146 enum.
10147
e9582e71
AC
101482003-03-01 Andrew Cagney <cagney@redhat.com>
10149
10150 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10151 INIT_EXTRA_FRAME_INFO.
10152 * gdbarch.h, gdbarch.c: Regenerate.
10153 * arm-tdep.c: Update comments.
10154 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10155 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10156 * frame.h, avr-tdep.c: Ditto.
10157 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10158 (create_new_frame, legacy_get_prev_frame): Ditto.
10159 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10160 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10161 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10162 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10163 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10164 * v850-tdep.c (v850_gdbarch_init): Ditto.
10165 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10166 * sh-tdep.c (sh_gdbarch_init): Ditto.
10167 * s390-tdep.c (s390_gdbarch_init): Ditto.
10168 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10169 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10170 * mips-tdep.c (mips_gdbarch_init): Ditto.
10171 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10172 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10173 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10174 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10175 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10176 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10177 * frv-tdep.c (frv_gdbarch_init): Ditto.
10178 * cris-tdep.c (cris_gdbarch_init): Ditto.
10179 * avr-tdep.c (avr_gdbarch_init): Ditto.
10180 * arm-tdep.c (arm_gdbarch_init): Ditto.
10181 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10182 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10183
35cac7cf
AC
101842003-03-01 Andrew Cagney <cagney@redhat.com>
10185
10186 * gdbarch.sh (register_type): New function with predicate.
10187 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10188 * gdbarch.h, gdbarch.c: Re-generate.
10189 * arch-utils.c (generic_register_byte): Use generic_register_size.
10190 (generic_register_size): When available, use
10191 gdbarch_register_type.
10192 * regcache.c (init_regcache_descr): When available, initialize the
10193 register type array using gdbarch_register_type. If the
10194 architecture supplies gdbarch_register_type, do not use the legacy
10195 regcache layout.
10196 * d10v-tdep.c (d10v_register_type): Replace
10197 d10v_register_virtual_type.
10198 (d10v_gdbarch_init): Set register_type instead of
10199 register_virtual_type.
10200
7b83296f
AC
102012003-03-01 Andrew Cagney <cagney@redhat.com>
10202
10203 * Makefile.in (ax-gdb.o): Update dependencies.
10204 * ax-gdb.c: Include "regcache.h".
10205 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10206 * findvar.c (value_of_register): Ditto.
10207 * infcmd.c (default_print_registers_info): Ditto.
10208
eadc1c87
MK
102092003-03-01 Mark Kettenis <kettenis@gnu.org>
10210
10211 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10212 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10213
14143612
MK
102142003-03-01 Mark Kettenis <kettenis@gnu.org>
10215
10216 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10217 of STREQ.
10218
a55cc764
DJ
102192003-02-28 Daniel Jacobowitz <drow@mvista.com>
10220
10221 * Makefile.in (dwarf2loc.o): Update dependencies.
10222 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10223 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10224 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10225 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10226 (locexpr_tracepoint_var_ref): New function.
10227 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10228
08a617da
AC
102292003-02-28 Andrew Cagney <cagney@redhat.com>
10230
10231 * regcache.c (register_size): New function.
10232 * regcache.h (register_size): Declare
10233 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10234 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10235
4224873a
DC
102362003-02-28 David Carlton <carlton@math.stanford.edu>
10237
10238 * linespec.c (decode_compound): Extract code into find_method.
10239 (find_method): New.
10240
ccdc5d7f
JB
102412003-02-28 J. Brobecker <brobecker@gnat.com>
10242
10243 * Makefile.in: Add rules to build and link in observer.o.
10244
974e8ced
JB
102452003-02-27 J. Brobecker <brobecker@gnat.com>
10246
10247 * observer.c: Minor comments edits.
10248
7a28f973
JB
102492003-02-27 J. Brobecker <brobecker@gnat.com>
10250
10251 * observer.h, observer.c: New file.
10252
27cddce2
AC
102532003-02-27 Andrew Cagney <cagney@redhat.com>
10254
10255 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10256
b94a41a1
SC
102572003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10258
10259 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10260 (M6812_OP_STS_EXT): Likewise.
10261 (m6811_prologue): Use the above to recognize prologue.
10262 (m6812_prologue): Likewise.
10263
c8be8951
DC
102642003-02-27 David Carlton <carlton@math.stanford.edu>
10265
10266 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10267 SYMBOL_PRINT_NAME.
10268 (compare_psymbols): Ditto.
10269 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10270
d05bb1fc
MS
102712003-02-27 Michael Snyder <msnyder@redhat.com>
10272
4e845cd3
MS
10273 * f-lang.c (build_fortran_types): New function.
10274 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
10275 * doublest.c (extract_floating): Fix warning text.
10276
f3824013
AC
102772003-02-27 Andrew Cagney <cagney@redhat.com>
10278
10279 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10280 predicate. Replaces PUSH_DUMMY_FRAME.
10281 * gdbarch.h, gdbarch.c: Regnerate.
10282 * valops.c (hand_function_call): Update. Call
10283 generic_push_dummy_frame directly.
10284 * vax-tdep.c (vax_gdbarch_init): Update.
10285 * sparc-tdep.c (sparc_gdbarch_init): Update.
10286 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10287 * m68k-tdep.c (m68k_gdbarch_init): Update.
10288 * hppa-tdep.c (hppa_gdbarch_init): Update.
10289 * alpha-tdep.c (alpha_gdbarch_init): Update.
10290 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10291 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10292 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10293 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10294 push_dummy_frame to generic_push_dummy_frame.
10295 * v850-tdep.c (v850_gdbarch_init): Ditto.
10296 * sh-tdep.c (sh_gdbarch_init): Ditto.
10297 * s390-tdep.c (s390_gdbarch_init): Ditto.
10298 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10299 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10300 * mips-tdep.c (mips_gdbarch_init): Ditto.
10301 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10302 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10303 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10304 * i386-tdep.c (i386_gdbarch_init): Ditto.
10305 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10306 * frv-tdep.c (frv_gdbarch_init): Ditto.
10307 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10308 * cris-tdep.c (cris_gdbarch_init): Ditto.
10309 * avr-tdep.c (avr_gdbarch_init): Ditto.
10310 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 10311
ad188201
KB
103122003-02-26 Kevin Buettner <kevinb@redhat.com>
10313
10314 * mips-tdep.c (show_mips_abi): New function.
10315 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10316 command ``show mips abi''.
10317
6b37567a 103182003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 10319
6b37567a 10320 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 10321 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
10322 more sline entries have been seen for the function.
10323
d3e0a5bf
MC
103242003-02-26 Michael Chastain <mec@shout.net>
10325
10326 * configure: Regenerate with autoconf 000227.
10327
18972eea
MC
103282003-02-26 Michael Chastain <mec@shout.net>
10329
10330 Close PR build/660.
10331 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10332 for old libc5/glibc.
10333 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10334
0bbde931
KW
103352003-02-26 Kris Warkentin <kewarken@qnx.com>
10336
10337 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10338 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10339
27ca5dad
MC
103402003-02-26 Michael Chastain <mec@shout.net>
10341
10342 * configure.in: New variable HAVE_UINTPTR_T.
10343 * configure, config.in: Regenerated.
10344
6f88d630
DJ
103452003-02-26 Daniel Jacobowitz <drow@mvista.com>
10346
10347 Fix PR build/1097.
10348 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10349
b14185ce
AC
103502003-02-25 Andrew Cagney <cagney@redhat.com>
10351
10352 * frame.c (get_prev_frame): Add comment on check for
10353 inside_entry_func. Only check for inside_entry_file when not a
10354 dummy and not a sentinel. Check that the new frame is not inner
10355 to the old frame.
10356
ac2bd0a9
AC
103572003-02-25 Andrew Cagney <cagney@redhat.com>
10358
10359 * frame.c (frame_debug): New variable.
10360 (_initialize_frame): Add "set/show debug frame" command.
10361 (get_prev_frame): When frame_debug, print reason why unwind
10362 failed.
10363
b18a0fd2
MC
103642003-02-25 Michael Chastain <mec@shout.net>
10365
10366 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10367 to avoid uintptr_t definition problems.
10368
22abf04a
DC
103692003-02-25 David Carlton <carlton@math.stanford.edu>
10370
10371 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10372 (SYMBOL_LINKAGE_NAME): Ditto.
10373 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10374 SYMBOL_LINKAGE_NAME.
10375 (struct general_symbol_info): Expand comment.
10376 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10377 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10378 (SYMBOL_MATCHES_REGEXP): Ditto.
10379 * symtab.c (symbol_natural_name): New function.
10380 * objfiles.h: Replace all uses of SYMBOL_NAME by
10381 DEPRECATED_SYMBOL_NAME.
10382 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10383 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10384 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10385 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10386 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10387 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10388 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10389 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10390 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10391 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10392 * ada-exp.y: Ditto.
10393 * ada-exp.y: Update copyright.
10394 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10395 * cp-valprint.c: Ditto.
10396
1a5848f6
JJ
103972003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10398
10399 * infptrace.c (detach): Do not flag error if ptrace detach fails
10400 and errno is set to ESRCH.
10401
7343d46a
AC
104022003-02-24 Andrew Cagney <cagney@redhat.com>
10403
10404 * infptrace.c (udot_info): Change type of udot_off to long. Use
10405 paddr when printing udot_off's value.
10406
49fa1dc2
DC
104072003-02-24 David Carlton <carlton@math.stanford.edu>
10408
10409 * symtab.c (make_symbol_overload_list): Only read in partial
10410 symtabs containing a matching partial symbol.
10411
0fe19209
DC
104122003-02-24 David Carlton <carlton@math.stanford.edu>
10413
10414 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10415 do the comparison, not strcmp.
10416 * symfile.c (compare_psymbols): Ditto.
10417 * defs.h: Declare strcmp_iw_ordered.
10418 * utils.c (strcmp_iw_ordered): New function.
10419
8e3ee7b5
JB
104202003-02-24 Jim Blandy <jimb@redhat.com>
10421
10422 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10423 support, shared libs): Remove my name from here, to better reflect
10424 reality.
10425
7df1a324
KW
104262003-02-24 Kris Warkentin <kewarken@qnx.com>
10427
10428 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10429 (target_ops): Add to_have_continuable_watchpoint.
10430 * target.c (update_current_target): Add INHERIT line for
10431 to_have_continuable_watchpoint.
10432 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10433 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10434 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10435 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10436
d1c76907
EZ
104372003-02-24 Elena Zannoni <ezannoni@redhat.com>
10438
10439 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10440 maintainership.
10441
2610b0bf
KW
104422003-02-24 Kris Warkentin <kewarken@qnx.com>
10443
f46169db
KW
10444 * solib.c (solib_open): Call target defined search function after
10445 failing with solib-search-path.
10446 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10447 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 10448
9a3c34fe
KW
104492003-02-24 Kris Warkentin <kewarken@qnx.com>
10450
f46169db 10451 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 10452
2417dd25
SC
104532003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10454
10455 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10456
b631436b
SC
104572003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10458
10459 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10460 (m68hc11_add_reggroups): New function.
10461 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10462 (m68hc11_gdbarch_init): Install the reggroups.
10463 (_initialize_m68hc11_tdep): Initialize them.
10464
0aa8c1e4
JW
104652003-02-21 James E Wilson <wilson@tuliptree.org>
10466
10467 * MAINTAINERS: Update my email address.
10468
50ceaba5
DC
104692003-02-21 David Carlton <carlton@math.stanford.edu>
10470
10471 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10472
4c2df51b
DJ
104732003-02-21 Daniel Jacobowitz <drow@mvista.com>
10474
10475 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10476 * symtab.h: Add opaque declarations of struct axs_value and
10477 struct agent_expr.
10478 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10479 (struct location_funcs): New type.
10480 (struct symbol): Add "loc" to aux_value.
10481 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10482 * dwarf2read.c: Include "dwarf2expr.h".
10483 (dwarf2_symbol_mark_computed): New function.
10484 (read_func_scope): Use it.
10485 (var_decode_location): New function.
10486 (new_symbol): Use it.
10487 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10488
10489 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10490 (dwarf2expr_h, dwarf2loc_h): New variables.
10491 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10492 (dwarf2expr.o, dwarf2loc.o): New rules.
10493 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10494 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10495 LOC_COMPUTED_ARG.
10496 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10497 * m2-exp.y (yylex): Likewise.
10498 * printcmd.c (address_info, print_frame_args): Likewise.
10499 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10500 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10501 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10502 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10503 * symtab.c (lookup_block_symbol): Likewise.
10504
5784d15e
AF
105052003-02-20 Adam Fedor <fedor@gnu.org>
10506
10507 * symtab.h: Remove objc_specific struct
10508 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10509 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10510 Have language_objc use cplus_specific struct.
10511
d4cad8db
TT
105122003-02-20 Tom Tromey <tromey@redhat.com>
10513
10514 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10515 TYPE_NAME, when printing a String value. PR java/1075.
10516
2f9a90b4
AF
105172003-02-20 Adam Fedor <fedor@gnu.org>
10518
d38074a8 10519 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 10520 * objc-lang.c (find_methods): Make static.
2f9a90b4 10521
6f17862b
CF
105222003-02-20 Christopher Faylor <cgf@redhat.com>
10523
10524 * win32-nat.c (get_image_name): Check return value from
10525 ReadProcessMemory.
10526 (child_xfer_memory): Ditto.
10527
715d1656
AO
105282003-02-20 Alexandre Oliva <aoliva@redhat.com>
10529
10530 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10531 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10532 '${exec_prefix}' (in addition to the expansion thereof) as
10533 relocatable.
10534 * configure: Rebuilt.
10535
b1262a02
DC
105362003-02-20 David Carlton <carlton@math.stanford.edu>
10537
10538 * symtab.c (search_symbols): Revert the search_symbols part of my
10539 2002-12-23 patch. Add comment.
10540
7134143f
DJ
105412002-02-20 Daniel Jacobowitz <drow@mvista.com>
10542
10543 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10544 * dbxread.c (elfstab_build_psymtabs): Don't call
10545 install_minimal_symbols.
10546 (stabsect_build_psymtabs): Likewise.
10547 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10548 earlier.
10549 * somread.c (som_symfile_read): Call install_minimal_symbols
10550 and do_cleanups earlier.
10551 * nlmread.c (nlm_symfile_read): Likewise.
10552 * mdebugread.c (elfmdebug_build_psymtabs): Call
10553 install_minimal_symbols and make appropriate cleanups.
10554
cf466558
KB
105552003-02-20 Kevin Buettner <kevinb@redhat.com>
10556
10557 * solib.c (reload_shared_libraries): New function.
10558 (_initialize_solib): Add callbacks for ``set solib-search-path''
10559 and ``set solib-absolute-prefix''.
10560
de5ad195
DC
105612003-02-20 David Carlton <carlton@math.stanford.edu>
10562
10563 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10564 expand comment.
10565 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10566 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10567 * ada-typeprint.c (ada_typedef_print): Ditto.
10568 * ax-gdb.c (gen_var_ref): Ditto.
10569 * breakpoint.c (print_one_breakpoint): Ditto.
10570 * buildsym.c (finish_block): Ditto.
10571 * c-valprint.c (c_val_print): Ditto.
10572 * expprint.c (print_subexp): Ditto.
10573 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
10574 * infcmd.c (jump_command): Ditto.
10575 * linespec.c (decode_line_2, decode_compound): Ditto.
10576 * maint.c (maintenance_translate_address): Ditto.
10577 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
10578 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10579 Ditto.
8ffd9b1b
AJ
10580 * p-valprint.c (pascal_val_print): Ditto.
10581 * stabsread.c (define_symbol): Ditto.
de5ad195 10582 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
10583 (print_frame_arg_vars, return_command): Ditto.
10584 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10585 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
10586 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10587 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
10588 (rbreak_command): Ditto.
10589 * tracepoint.c (tracepoints_info): Ditto.
10590 * typeprint.c (typedef_print): Ditto.
10591 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
10592 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10593 * ada-typeprint.c: Update Copyright.
10594 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10595 * tracepoint.c, cli/cli-cmds.c: Ditto.
10596
f796e4be
KB
105972003-02-20 Kevin Buettner <kevinb@redhat.com>
10598
10599 * frame.c (generic_unwind_get_saved_register): Make non-static.
10600 * frame.h (generic_unwind_get_saved_register): Declare.
10601 * mips-tdep.c (read_next_frame_reg): Fetch register from
10602 current regcache when frame is NULL.
10603 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10604 that must be NULL.
10605 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10606 instead of frame_register_unwind().
10607
836cc9f4
AC
106082003-02-20 Andrew Cagney <ac131313@redhat.com>
10609
10610 * remote-sim.c (gdbsim_insert_breakpoint)
10611 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10612 code.
10613
501eef12
AC
106142003-02-20 Andrew Cagney <ac131313@redhat.com>
10615
10616 * remote.c (_initialize_remote): Add commands "set/show remote
10617 hardware-watchpoint-limit" and "set/show remote
10618 hardware-breakpoint-limit".
10619 (remote_hw_watchpoint_limit): Initialize to -1.
10620 (remote_hw_breakpoint_limit): Ditto.
10621 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10622
1b6bc7e0
CF
106232003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10624
10625 * coff-pe-read.c: New file - support reading of minimal symbols from a
10626 portable executable using the export table.
10627 * coff-pe-read.h: New file.
10628 * coffread.c: Include coff-pe-read.h.
10629 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10630 debugging symbols found.
10631 * Makefile.in (SFILES): Add coff-pe-read.o.
10632 (coff_pe_read_h): Define.
10633 (COMMON_OBS): Add coff-pe-read.o.
10634 (coffread.o): Add coff_pe_read_h dependency.
10635 (coff-pe-read.o): New target.
10636
fe898f56
DC
106372003-02-19 David Carlton <carlton@math.stanford.edu>
10638
10639 * Makefile.in (SFILES): Add block.c.
10640 (block_h): New.
10641 (COMMON_OBS): Add block.o.
10642 (block.o): New.
10643 (x86-64-tdep.o): Add $(block_h).
10644 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10645 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10646 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10647 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10648 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10649 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10650 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10651 * value.h: Add opaque declaration for struct block.
10652 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10653 * ada-lang.h: Ditto.
10654 * x86-64-tdep.c: #include "block.h"
10655 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10656 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10657 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10658 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10659 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10660 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10661 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10662 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10663 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10664 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10665 * symtab.c (block_function): Ditto.
10666 (contained_in): Ditto.
10667 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10668 block.h. Add opaque declaration for struct block.
10669 * symtab.h: Move block_function and contained_in declarations to
10670 block.h. Add opaque declarations for struct block, struct
10671 blockvector.
10672 (struct block): Move to block.h.
10673 (struct blockvector): Ditto.
10674 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10675 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10676 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10677 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10678 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10679 Ditto.
10680 * block.c: New file.
10681 * block.h: New file.
10682
173345b5
TR
106832003-02-19 Theodore A. Roth <troth@openavr.org>
10684
10685 * avr-tdep.c (avr_extract_return_value): Remove function.
10686 (avr_store_return_value): Remove function.
10687 (avr_extract_struct_value_address): Remove function.
10688 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10689
338ef23d
AC
106902003-02-19 Andrew Cagney <ac131313@redhat.com>
10691
10692 * rs6000-tdep.c: Include "gdb_assert.h".
10693 (registers_e500): Add "acc" and "spefscr".
10694 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10695 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10696 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10697 really is "r0".
10698 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10699
5412f5f3
KS
107002003-02-18 Keith Seitz <keiths@redhat.com>
10701
10702 * Makefile.in: Add gdbtk-interps.c.
10703
881324eb
KB
107042003-02-18 Kevin Buettner <kevinb@redhat.com>
10705
10706 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10707 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10708
6a2f5abf
AC
107092003-02-18 Andrew Cagney <cagney@redhat.com>
10710
10711 * symtab.h (struct objfile): Add opaque declaration.
10712
54c7009d
EZ
107132003-02-18 Elena Zannoni <ezannoni@redhat.com>
10714
10715 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
10716 * dbxread.c (process_one_symbol): Use last_function_start rather
10717 than function_start_offset to find the real beginning of the
10718 current function. The latter is just the text section offset on
10719 some systems, the former is always the real function start.
54c7009d 10720
7ee6d7eb
AC
107212003-02-17 Andrew Cagney <cagney@redhat.com>
10722
10723 * configure.in: Revert ${target} != ${host}.
10724
2846da9b
AC
107252003-02-17 Andrew Cagney <ac131313@redhat.com>
10726
10727 * configure.in (Makefile): Use the test ${target} != ${host},
10728 instead of the absence of the "nm.h" file, to determine of the
10729 configuration non-native.
10730 * configure: Regenerate.
8ffd9b1b 10731
3b27aeea
EZ
107322003-02-14 Elena Zannoni <ezannoni@redhat.com>
10733
fbe586ae 10734 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
10735
10736 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10737 conditionalize tui_active test.
10738 (lookup_cmd_1): Ditto.
10739
b0b1c2c0
MK
107402003-02-14 Mark Kettenis <kettenis@gnu.org>
10741
10742 * configure.in: Add check for _etext.
10743 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10744 available.
10745 * config.in, configure: regenerated.
10746
8f05cde5
DJ
107472003-02-14 Daniel Jacobowitz <drow@mvista.com>
10748
10749 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10750
021e7609
AC
107512003-02-14 Andrew Cagney <ac131313@redhat.com>
10752
10753 * main.c (tui_version): Delete variable.
10754 (captured_main): When --tui, set interpreter_p to "tui" instead of
10755 enabling tui_version.
10756 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10757 tui_version.
10758 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10759 * cli/cli-cmds.c (disassemble_command): Ditto.
10760 * defs.h (tui_version): Delete declaration.
10761 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10762 (tui-interp.o): Add rules.
10763 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10764
e325dcec
CF
107652003-02-14 Christopher Faylor <cgf@redhat.com>
10766
36ffb041 10767 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
10768 just-loaded dll.
10769
c4f90d87
JM
107702003-02-12 Jason Molenda (jmolenda@apple.com)
10771
fbe586ae
RH
10772 * symmisc.c (print_objfile_statistics): Include information about
10773 the number of psymtabs and symtabs in each object file.
c4f90d87 10774
e46e5ccd
KS
107752003-02-13 Keith R Seitz <keiths@redhat.com>
10776
10777 * main.h (struct captured_main_args): Add interpreter_p.
10778 * main.c (captured_main): Initialize interpreter_p from context.
10779 * gdb.c (main): Set interpreter_p argument.
10780 * Makefile.in (gdb.o): Add dependency for interps.h.
10781
fe97fe9c
AC
107822003-02-12 Andrew Cagney <ac131313@redhat.com>
10783
10784 * event-top.c (cli_command_loop): Delete declaration.
10785 (_initialize_event_loop): Delete function setting event_loop_hook.
10786 * event-top.h (cli_command_loop): Declare. Update copyright.
10787 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10788 * interps.c (current_interp_command_loop): When event_loop_p, call
10789 cli_command_loop.
10790
1cdac4ef
AC
107912003-02-12 Andrew Cagney <ac131313@redhat.com>
10792
10793 * interps.h (interp_command_loop_ftype): Change return type to
10794 void.
10795
48037ead
ML
107962003-02-12 Michal Ludvig <mludvig@suse.cz>
10797
10798 * x86-64-tdep.c (x86_64_extract_return_value)
10799 (x86_64_store_return_value): Use regcache instead of regbuf.
10800 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10801 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10802
033afc63
AC
108032003-02-11 Andrew Cagney <ac131313@redhat.com>
10804
10805 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10806 * aclocal.m4: Regenerate.
10807 * configure: Regenerate.
10808
10809 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10810 TCL_LD_SEARCH_FLAGS.
10811
40d02bca
ML
108122003-02-10 Michal Ludvig <mludvig@suse.cz>
10813
10814 * dwarf2cfi.c: Reindented.
10815
11308a41
AC
108162003-02-09 Andrew Cagney <ac131313@redhat.com>
10817
10818 * interps.c (clear_interpreter_hooks): Convert function definition
10819 to ISO C.
10820
e1c1c0f6
DC
108212003-02-07 David Carlton <carlton@math.stanford.edu>
10822
10823 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10824
ab5d3da6
KB
108252003-02-07 Kevin Buettner <kevinb@redhat.com>
10826
10827 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10828 (struct type): ...to here.
10829 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10830 field.
10831 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10832 (replace_type): Set length on all type variants for a given type.
10833
b8a92b82
AC
108342003-02-07 Andrew Cagney <ac131313@redhat.com>
10835
10836 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10837 <sys/stat.h>.
10838 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 10839
5cb316ef
AC
108402003-02-06 Andrew Cagney <ac131313@redhat.com>
10841
2555fe1a
AC
10842 * Makefile.in (symm-nat.o): Update dependencies.
10843 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10844 (lynx-nat.o, ia64-linux-nat.): Ditto.
10845 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10846 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10847 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10848
44270758
AC
10849 * Makefile.in (inflow_h): Define.
10850 (procfs.o, inflow.o, procfs.o): Update dependencies.
10851 * inftarg.c (child_stop): Delete extern declaration of
10852 inferior_process_group. Include "inflow.h".
10853 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10854 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10855 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10856 (our_process_group, inferior_process_group): Extern declarations.
10857
df8f7274
AC
10858 * procfs.c: Include "gdb_assert.h".
10859
5cb316ef
AC
10860 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10861 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10862 * jv-typeprint.c (java_type_print_base): Ditto.
10863 * typeprint.c (typedef_print): Eliminate STREQ.
10864 * cli/cli-script.c (define_command, define_command): Ditto.
10865 * main.c (captured_main): Ditto.
10866 * values.c (lookup_internalvar): Ditto.
10867 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10868 within `if' conditional.
10869 * linespec.c (decode_line_2): Ditto.
10870 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10871 (bfd_openw_with_cleanup): Ditto.
10872
2a28ccea
MK
108732003-02-07 Mark Kettenis <kettenis@gnu.org>
10874
10875 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10876 legacy_extract_return_value and store_return_value to
10877 legacy_return_value.
10878
786b8124
CF
108792003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10880
10881 * win32-nat.c (get_relocated_section_addrs): New function. Find
10882 section load addresses for symbol handling in relocated DLLs.
10883 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10884
b871e4ec
FF
108852003-02-05 Fred Fish <fnf@intrinsity.com>
10886
10887 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10888 '=' and '!='.
10889 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10890 with '&' and '=='.
10891 (angel_RDI_info): Ditto.
10892 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10893 with '&' and '!='.
10894 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 10895
4389a95a 108962003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
10897 Keith Seitz <keiths@redhat.com>
10898 Elena Zannoni <ezannoni@redhat.com>
10899 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
10900
10901 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10902 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10903 (SUBDIR_MI_OBS): Add "mi-interp.o".
10904 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10905 (SFILES): Add "interps.c".
10906 (COMMON_OBS): Add "interps.o".
10907 (interps_h, mi_main_h): Define.
10908 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10909 (mi-main.o, main.o, event-top.o): Update dependencies.
10910 * cli/cli-interp.c: New file.
10911 * interps.h, interps.c: New files.
10912 * top.c: (gdb_init): Don't install the default interpreter, handed
10913 by captured_main.
10914 * main.c: Include "interps.h".
10915 (interpreter_p): Note that it should malloc'ed.
10916 (captured_command_loop): Call current_interp_command_loop.
10917 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10918 xfree and xstrdup when updating interpreter_p. Install the
10919 default interpreter. Add hack to stop mi1's copyright notice
10920 being encoded.
10921 * event-top.h (gdb_setup_readline): Declare.
10922 (gdb_disable_readline): Declare.
10923 * event-top.c: Include "interps.h".
10924 (display_gdb_prompt): Call current_interp_display_prompt_p.
10925 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10926 gdb_stdlog, and gdb_stdtarg.
10927 (_initialize_event_loop): Don't call gdb_setup_readline.
10928 * cli-out.c (cli_out_set_stream): New function.
10929 * cli-out.h (cli_out_set_stream): Declare.
10930
ff3b5810
MK
109312003-02-06 Mark Kettenis <kettenis@gnu.org>
10932
10933 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10934 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10935 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10936 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10937 config/i386/i386v42mp.mt: Removed.
10938
5b729aa5
MK
109392003-02-05 Mark Kettenis <kettenis@gnu.org>
10940
10941 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10942 GDB_OSABI_SOLARIS.
10943
8cc15142
MC
109442003-02-05 Michael Chastain <mec@shout.net>
10945
10946 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10947 2.12.1 and earlier versions.
10948
5aa5d4b9
AC
109492003-02-05 Andrew Cagney <ac131313@redhat.com>
10950
10951 Remove orphaned hosts, targets and files.
10952 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10953 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10954 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10955 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10956 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10957 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10958 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10959 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10960 * config/sparc/tm-sp64sim.h: Delete.
10961 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10962 hosts.
10963 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10964 mips*-dec-mach3* targets.
10965
b68767c1
MC
109662003-02-04 Michael Chastain <mec@shout.net>
10967
10968 * NEWS: Fix typo: sepcifying -> specifying.
10969
5ae7ca1d
MC
109702003-02-04 Michael Chastain <mec@shout.net>
10971
10972 * dwarfread.c: Add documentation on the state of dwarf-1,
10973 looking towards obsoletion.
10974
d08a4280
MC
109752003-02-03 Michael Chastain <mec@shout.net>
10976
10977 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10978 gdb/testsuite/gdb.c++/pr-1023.exp.
10979
e9be73e4
AC
109802003-02-04 Andrew Cagney <ac131313@redhat.com>
10981
10982 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10983 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10984
10985 * utils.c (init_page_info): Delete reference to MPW in comments.
10986 * main.c (captured_main): Delete #ifdef MPW.
10987
05d57f6f
AC
109882003-02-04 Andrew Cagney <ac131313@redhat.com>
10989
8ffd9b1b 10990 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
10991 * monitor.c (monitor_expect): Obsolete reference to m32r.
10992 * configure.tgt: Mark m32r-*-elf* as obsolete.
10993 * MAINTAINERS: Mark m32k as obsolete.
10994 * m32r-rom.c: Obsolete file.
10995 * config/m32r/m32r.mt: Obsolete file.
10996 * config/m32r/tm-m32r.h: Obsolete file.
10997 * m32r-stub.c: Obsolete file.
10998 * m32r-tdep.c: Obsolete file.
10999
8b0e5691
AC
110002003-02-04 Andrew Cagney <ac131313@redhat.com>
11001
11002 * NEWS: Mention that the z8k-zilog-none is obsolete.
11003 * MAINTAINERS: Mark z8k as obsolete.
11004 * configure.tgt: Obsolete the z8k-*-coff* target.
11005 * config/z8k/z8k.mt: Obsolete file.
11006 * config/z8k/tm-z8k.h: Obsolete file.
11007 * z8k-tdep.c: Obsolete file.
11008
67f16606
AC
110092003-02-04 Andrew Cagney <ac131313@redhat.com>
11010
11011 * NEWS: Mention that the mn10200-elf is obsolete.
11012 * configure.tgt: Obsolete mn10200-*-* target.
11013 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11014 mention that the mn10200 is obsolete.
11015 * breakpoint.h: Ditto.
11016 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11017 * config/mn10200/mn10200.mt: Obsolete file.
11018 * config/mn10200/tm-mn10200.h: Obsolete file.
11019 * mn10200-tdep.c: Obsolete file.
11020
fd2299bd
AC
110212003-02-04 Andrew Cagney <ac131313@redhat.com>
11022
11023 * MAINTAINERS: Mark h8500 as obsolete.
11024 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11025 * findvar.c (value_from_register): Ditto.
11026 * h8500-tdep.c: Mark file as obsolete.
11027 * config/h8500/h8500.mt: Ditto.
11028 * config/h8500/tm-h8500.h: Ditto.
11029 * NEWS: Mention that h8500 is obsolete.
11030
eb9a305d
DC
110312003-02-04 David Carlton <carlton@math.stanford.edu>
11032
11033 * objfiles.c (allocate_objfile): Always set name. Add comment at
11034 start of function.
11035 * jv-lang.c (get_dynamics_objfile): Add comment.
11036
406fc7fb
DC
110372003-02-04 David Carlton <carlton@math.stanford.edu>
11038
11039 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11040 * printcmd.c (build_address_symbolic): Replace uses of
11041 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11042 SYMBOL_NAME, and asm_demangle.
11043 Update copyright.
11044
93d91629
DC
110452003-02-04 David Carlton <carlton@math.stanford.edu>
11046
11047 * linespec.c (decode_compound): Extract code into
11048 lookup_prefix_sym.
11049 (lookup_prefix_sym): New function.
11050
1c5cb38e
DC
110512003-02-04 David Carlton <carlton@math.stanford.edu>
11052
11053 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11054 FLOAT_COERCION_BADNESS.
11055 * gdbtypes.c (rank_one_type): Replace all uses of
11056 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11057
0cf824c9
JB
110582003-02-04 Jim Blandy <jimb@redhat.com>
11059
11060 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11061 section, let dwarf_macinfo_section point to it, not
11062 dwarf_loc_section.
11063
a2d356b0
DJ
110642003-02-04 Daniel Jacobowitz <drow@mvista.com>
11065
11066 Pointed out by Anton Blanchard <anton@samba.org>.
11067 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11068 (ppc_linux_at_sigtramp_return_path): Use it.
11069
2de7ced7
DJ
110702003-02-04 Daniel Jacobowitz <drow@mvista.com>
11071
11072 * defs.h (streq): Add prototype.
11073 * utils.c (streq): New function.
11074
11075 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11076 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11077 * mdebugread.c (new_symbol): Likewise.
11078 * stabsread.c (define_symbol): Likewise.
11079 * coffread.c (process_coff_symbol): Likewise.
11080 * dwarfread.c (new_symbol): Likewise.
11081
11082 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11083 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11084 here.
11085 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11086 SYMBOL_INIT_DEMANGLED_NAME.
11087 * objfiles.c: Include "hashtab.h".
11088 (allocate_objfile): Call htab_set_functions_ex for the
11089 demangled_names_hash.
11090 (free_objfile): Call htab_delete for the demangled_names_hash.
11091 * objfiles.h (struct htab): Add declaration.
11092 (struct objfile): Add demangled_names_hash.
11093 * symfile.c: Include "hashtab.h".
11094 (reread_symbols): Call htab_delete for the demangled_names_hash.
11095 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11096 SYMBOL_NAME in the bcache.
11097 * symtab.c: Include "hashtab.h". Update comments.
11098 (create_demangled_names_hash, symbol_set_names): New functions.
11099 (symbol_find_demangled_name): New function, broken out from
11100 symbol_init_demangled_names.
11101 (symbol_init_demangled_names): Use it.
11102 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11103 (SYMBOL_SET_NAMES): New macro.
11104 (symbol_set_names): Add prototype.
11105
15831452
JB
111062003-02-03 Jim Blandy <jimb@redhat.com>
11107
11108 Use a single, consistent representation for an empty minimal
11109 symbol table in an objfile.
11110 * objfiles.c (terminate_minimal_symbol_table): New function.
11111 (allocate_objfile): Call it.
11112 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11113 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 11114 non-NULL.
15831452
JB
11115 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11116 objfile has minimal symbols, compare minimal_symbol_count to zero,
11117 instead of comparing msymbols with NULL.
11118 * objfiles.c (have_minimal_symbols): Same.
11119 * solib-sunos.c (solib_add_common_symbols): Call
11120 terminate_minimal_symbol_table.
11121 * symfile.c (reread_symbols): Same.
8ffd9b1b 11122
ffc65945
KB
111232003-02-03 Kevin Buettner <kevinb@redhat.com>
11124
11125 * s390-tdep.c (s390_address_class_type_flags)
11126 (s390_address_class_type_flags_to_name)
11127 (s390_address_class_name_to_type_flags): New functions.
11128 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11129 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11130
f211c6d4
MS
111312003-02-03 Michael Snyder <msnyder@redhat.com>
11132
11133 * arm-tdep.c: Fix spell-o in comment.
11134
659b0389
ML
111352003-02-03 Michal Ludvig <mludvig@suse.cz>
11136
11137 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11138 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 11139 error messages to contain BFD filename.
659b0389 11140
3b31d625
EZ
111412003-02-02 Elena Zannoni <ezannoni@redhat.com>
11142
997b089a 11143 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
11144 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11145 (do_mixed_source_and_assembly): Use
11146 make_cleanup_ui_out_tuple_begin_end and
11147 make_cleanup_ui_out_tuple_begin_end.
11148 (do_mixed_source_and_assembly): Ditto.
11149 * thread.c (do_captured_list_thread_ids): Ditto.
11150 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11151 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11152 ui_out_tuple_end): Delete prototypes.
11153 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11154 ui_out_list_end, ui_out_tuple_end): Delete.
11155
11156 From Kevin Buettner <kevinb@redhat.com>:
11157 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
11158 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11159 (do_cleanup_table_end): New functions.
11160 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11161 Use cleanups to invoke_ui_out_tuple_end().
11162 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
11163 * cli/cli-setshow.c (cmd_show_list): Use
11164 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 11165
5b181d62
AC
111662003-02-02 Andrew Cagney <ac131313@redhat.com>
11167
11168 * frame.c (frame_unwind_register): New function.
11169 (frame_unwind_unsigned_register): Use.
11170 (frame_unwind_signed_register): Use.
11171 (frame_read_register): New function.
11172 * frame.h (frame_unwind_register): Declare.
11173 (frame_read_register): Declare.
11174
11175 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11176 and frame_unwind_register instead of read_memory, write_register
11177 and deprecated_write_register_bytes.
11178
5f601589
AC
111792003-02-02 Andrew Cagney <ac131313@redhat.com>
11180
11181 * frame.h: Note that namelen can be negative.
11182 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11183 NAME's length.
11184
11185 * NEWS: Mention that the d10v's `regs' command is deprecated.
11186 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11187 (d10v_print_registers_info): New function.
11188 (show_regs): Call d10v_print_registers_info.
11189 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11190
6a3fe0a4
MK
111912003-02-02 Mark Kettenis <kettenis@gnu.org>
11192
11193 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11194 lost in the previous patch.
11195
075559bc
AC
111962003-02-01 Andrew Cagney <ac131313@redhat.com>
11197
11198 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
11199 * stack.c (print_frame_info_base): Output complete FRAME tuple
11200 for synthesized frames.
075559bc 11201
6789195b
AC
112022003-02-02 Andrew Cagney <ac131313@redhat.com>
11203
11204 * mips-nat.c (zerobuf): Delete.
11205 (fetch_inferior_registers): Alloc local zerobuf.
11206 (fetch_core_registers): Alloc local zerobuf.
11207 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11208 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11209 * thread-db.c (thread_db_store_registers): Ditto.
11210 * sh-tdep.c (sh_do_register): Ditto.
11211 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11212 * remote-sim.c (gdbsim_store_register): Ditto.
11213 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11214 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11215 * monitor.c (monitor_supply_register): Ditto.
11216 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11217 * mips-nat.c (fetch_inferior_registers): Ditto.
11218 * m68klinux-nat.c (fetch_register): Ditto.
11219 * lynx-nat.c (fetch_inferior_registers): Ditto.
11220 (fetch_inferior_registers): Ditto.
11221 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11222 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11223 (hpux_thread_store_registers): Ditto.
11224 * hppah-nat.c (fetch_register): Ditto.
11225 * hppab-nat.c (fetch_register): Ditto.
11226 * hppa-tdep.c (pa_register_look_aside): Ditto.
11227 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11228 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11229
e669114a
AC
112302003-02-01 Andrew Cagney <ac131313@redhat.com>
11231
11232 * gdbarch.sh: Explictly specify all method levels. When a
11233 variable with an empty level, provide a non-multi-arch default.
11234 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11235 * gdbarch.h: Re-generate.
11236 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11237 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11238
9a043c1d
AC
112392003-02-01 Andrew Cagney <ac131313@redhat.com>
11240
11241 * defs.h (host_pointer_to_address): Delete declaration.
11242 (address_to_host_pointer): Delete declaration.
11243 * utils.c (host_pointer_to_address): Delete function.
11244 (address_to_host_pointer): Delete function.
11245 * procfs.c (procfs_address_to_host_pointer): New function.
11246 * procfs.c (proc_set_watchpoint): Use.
11247 (procfs_can_use_hw_breakpoint): Update comments.
11248 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11249 (som_solib_add): Use.
11250 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11251 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 11252
7ca9f392
AC
112532003-02-01 Andrew Cagney <ac131313@redhat.com>
11254
94bbfd30
AC
11255 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11256 strlen d_name.
11257
7ca9f392
AC
11258 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11259 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11260 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11261 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11262 (define_symbol): Update.
11263 * symfile.c (generic_load): Remove references to nindy.
11264 * symtab.c: Remove references to nindy.
11265
31a85ea2
AC
112662003-02-01 Andrew Cagney <ac131313@redhat.com>
11267
11268 * infcmd.c (print_float_info): Delete code conditional on
11269 FLOAT_INFO.
11270 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11271 * config/m68k/nm-apollo68b.h: Ditto.
11272 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11273 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11274 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11275
f6e85fc8
MK
112762003-02-01 Mark Kettenis <kettenis@gnu.org>
11277
6015b6a0
MK
11278 * config/i386/tm-i386os9k.h: Removed.
11279
f7a30bdf
MK
11280 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11281 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11282 they're identical to i[3456]86-*-sysv* now.
11283 * config/i386/i386v32.mh: Removed.
11284 * config/i386/xm-i386v32.h: Removed.
11285 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11286
28d52111
MK
11287 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11288
4d3f6bce
MK
11289 * config/i386/i386dgux.mh: Removed.
11290 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11291
f6e85fc8
MK
11292 * configure.in: Fix typo.
11293 * configure: Regenerated.
11294
53955967
DC
112952003-01-31 David Carlton <carlton@math.stanford.edu>
11296
11297 * dwarf2read.c (dwarf2_locate_sections): Set
11298 dwarf_ranges_section.
11299
b1364885
AC
113002003-01-31 Andrew Cagney <ac131313@redhat.com>
11301
8dbb1c65
AC
11302 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11303 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 11304
8731e58e
AC
11305 * utils.c: Re-indent.
11306
b1364885
AC
11307 * config/djgpp/fnchange.lst: Delete nindy files.
11308 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11309 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11310 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11311 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11312 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11313 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11314 * Makefile.in (init.c): Remove nindy references.
11315 (saber_gdb): Delete rule.
11316 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11317 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11318 and a68v-nat.c.
11319 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11320 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11321 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11322 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11323 nindy-share/stop.h.
11324 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11325 * saber.suppress: Delete file.
11326
086df311
DJ
113272003-01-31 Daniel Jacobowitz <drow@mvista.com>
11328
11329 * dbxread.c (stabs_data): New static variable.
11330 (fill_symbuf): Support an in-memory buffer for stabs data.
11331 (stabs_seek): New function.
11332 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11333 (read_ofile_symtab): Use stabs_seek.
11334 (elfstab_build_psymtabs): Take an asection* instead of
11335 an offset and size. Relocate the stabs data if necessary.
11336 Save the section* for dbx_psymtab_to_symtab.
11337 * dwarf2read.c: Add section variables for each debug section.
11338 (dwarf2_locate_sections): Fill them in.
11339 (dwarf2_read_section): Take an asection* argument.
11340 Relocate the section contents if necessary.
11341 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11342 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11343 it to dwarf2_read_section.
11344 (dwarf2_build_frame_info): Update callers.
11345 * elfread.c (elf_symfile_read): Update call to
11346 elfstab_build_psymtabs.
11347 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11348 (DBX_STAB_SECTION): New macro.
8ffd9b1b 11349 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
11350 * symfile.c (symfile_dummy_outputs): New function.
11351 (symfile_relocate_debug_section): New function.
11352 * symfile.h (symfile_relocate_debug_section): Add prototype.
11353
87d1b352
RH
113542003-01-31 Richard Henderson <rth@redhat.com>
11355
11356 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11357 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11358 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11359 * alpha-tdep.c (alpha_register_name): Add "unique".
11360 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11361 (ALPHA_UNIQUE_REGNUM): New.
11362 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11363
c48861fb
AC
113642003-01-31 Andrew Cagney <ac131313@redhat.com>
11365
11366 * README: Remove reference to Ericsson 1800 monitor.
11367 * Makefile.in (remote-es.o): Delete rule.
11368 (ALLDEPFILES): Delete remote-es.c.
11369 * remote-es.c: Delete file.
11370 * config/m68k/es1800.mt: Delete file.
11371 * config/djgpp/fnchange.lst: Update.
11372 * configure.tgt: Delete m68*-ericsson-* target.
11373
d764a824
AF
113742003-01-31 Adam Fedor <fedor@gnu.org>
11375
11376 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11377 Remove duplicate/shadowing variable of same name.
11378
fe36c4f4
JB
113792003-01-30 Jim Blandy <jimb@redhat.com>
11380
11381 * symfile.c (find_separate_debug_file): Assert that the objfile's
11382 directory name we compute ends with a slash, and then assume that
11383 that's so everywhere we use it.
11384
cb741690
DJ
113852003-01-30 Daniel Jacobowitz <drow@mvista.com>
11386
11387 * valops.c (value_assign): Flush frame cache after stores to memory
11388 also.
11389
96ee5227
AC
113902003-01-30 Andrew Cagney <ac131313@redhat.com>
11391
11392 * Makefile.in (mon960-rom.o): Delete rule.
11393 * mon960-rom.c: Delete file.
11394
7f6104a9
AC
113952003-01-30 Andrew Cagney <ac131313@redhat.com>
11396
11397 * d10v-tdep.c: Include "frame-unwind.h".
11398 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11399 list.
11400 (next_addr, uses_frame): Delete.
11401 (struct d10v_unwind_cache): Define.
11402 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11403 Use info instead of next_addr and uses_frame globals.
11404 (d10v_frame_init_saved_regs): Delete function.
11405 (d10v_init_extra_frame_info): Delete function.
11406 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11407 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11408 init_frame_pc or frame_saved_pc.
11409 (d10v_pop_frame): Delete function.
11410 (do_d10v_pop_frame): Delete function.
11411 (d10v_frame_chain): Delete function.
11412 (d10v_frame_chain_valid): Delete function.
11413 (d10v_frame_pc_unwind): New function.
11414 (d10v_frame_id_unwind): New function.
11415 (saved_regs_unwinder): New function.
11416 (d10v_frame_register_unwind): New function.
11417 (d10v_frame_pop): New function.
11418 (d10v_frame_unwind): New variable.
11419 (d10v_frame_p): New function.
11420 (d10v_frame_saved_pc): Delete function.
11421 * Makefile.in (d10v-tdep.o): Update dependencies.
11422
cad2e848
JB
114232003-01-30 J. Brobecker <brobecker@gnat.com>
11424
11425 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11426 causing some regressions due to a change in the default value
11427 for this macro.
11428
af34e669
DJ
114292003-01-29 Richard Henderson <rth@redhat.com>
11430 Elena Zannoni <ezannoni@redhat.com>
11431 Daniel Jacobowitz <drow@mvista.com>
11432
11433 Fix PR gdb/961.
8ffd9b1b 11434 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
11435 variables.
11436 (RANGES_SECTION): New.
11437 (dwarf_ranges_buffer): New variable.
11438 (struct comp_unit_head): Add member "die".
11439 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11440 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11441 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11442 (dwarf2_locate_sections): Likewise.
11443 (dwarf2_build_psymtabs): Read .debug_ranges.
11444 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11445 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11446 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11447 Look for DW_AT_ranges and return the bounding box.
11448
baa93fa6
CF
114492003-01-29 Brian Ford <ford@vss.fsi.com>
11450
11451 * win32-nat.c (cygwin_pid): Removed as unused.
11452 (child_attach): Try fall back to Cygwin pid.
11453
c63f977f
JB
114542003-01-29 Jim Blandy <jimb@redhat.com>
11455
11456 * objfiles.h (struct objfile): Doc fix.
11457
d62d1979
AC
114582003-01-29 Andrew Cagney <ac131313@redhat.com>
11459
11460 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11461 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11462 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11463 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11464 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11465 (FRAME_SAVED_PC): Change to a function with predicate.
11466 * gdbarch.h, gdbarch.c: Re-generate.
11467
1ae18a04
AC
114682003-01-28 Andrew Cagney <ac131313@redhat.com>
11469
52287340
AC
11470 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11471
1ae18a04
AC
11472 * complaints.c (complain): Delete function.
11473 * complaints.h (struct deprecated_complaint): Delete definition.
11474 (complain): Delete declaration.
11475
f2c16bd6
KB
114762003-01-28 Kevin Buettner <kevinb@redhat.com>
11477
11478 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11479 dummy frames.
11480
a94dd1fd
AC
114812003-01-27 Andrew Cagney <ac131313@redhat.com>
11482
11483 * sentinel-frame.h, sentinel-frame.c: New files.
11484 * Makefile.in (frame.o): Update dependencies.
11485 (SFILES): Add sentinel-frame.c.
11486 (sentinel_frame_h): Define.
11487 (COMMON_OBS): Add sentinel-frame.o.
11488 (sentinel-frame.o): Specify dependencies.
11489 * frame.c: Include "sentinel-frame.h".
11490 (frame_register_unwind): Rewrite assuming that there is always a a
11491 ->next frame.
11492 (frame_register, generic_unwind_get_saved_register): Ditto.
11493 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11494 (create_sentinel_frame, unwind_to_current_frame): New functions.
11495 (get_current_frame): Rewrite using create_sentinel_frame and
11496 unwind_to_current_frame. When possible, always create a frame.
11497 (create_new_frame): Set next to the sentinel frame.
11498 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11499 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11500 ID cache when necessary.
11501 (frame_saved_regs_id_unwind): Use frame_relative_level.
11502 (deprecated_generic_get_saved_register): Use frame_relative_level,
11503 get_frame_saved_regs, get_frame_pc, get_frame_base and
11504 get_next_frame.
11505 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11506 frame_register.
11507
5378adc4
DJ
115082003-01-27 Daniel Jacobowitz <drow@mvista.com>
11509
11510 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11511
51ee2ddc
DJ
115122003-01-27 Daniel Jacobowitz <drow@mvista.com>
11513
11514 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11515 (maintenance_set_profile_cmd): Use error () instead of warning ().
11516
d9feb4e7
DJ
115172003-01-27 Daniel Jacobowitz <drow@mvista.com>
11518
11519 * configure.in: Check that -pg works if using --enable-profiling.
11520 Check for monstartup and _mcleanup regardless of --enable-profiling.
11521 * maint.c: Check for monstartup and _mcleanup before using them.
11522 * config.in: Regenerated.
11523 * configure: Regenerated.
11524
2d188dd3
NC
115252003-01-24 Nick Clifton <nickc@redhat.com>
11526
11527 * Add sh2e support:
11528
11529 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11530
11531 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11532 (sh2e_show_regs): New.
11533 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11534 * config/sh/tm-sh.h: Added sh2e to comments.
11535
cb3c37b2
JB
115362003-01-23 Jim Blandy <jimb@redhat.com>
11537
11538 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11539 symbols found)" message here; we haven't checked for a separate
11540 debug info file yet, so we don't know yet.
11541 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11542 we've looked everywhere. Also, there's no need to print a special
11543 message when we're loading the separate debug info file: the one
11544 symbol_file_add prints is fine.
11545
5b5d99cf
JB
115462003-01-23 Alexander Larsson <alexl@redhat.com>
11547 Jim Blandy <jimb@redhat.com>
11548
11549 Add support for executables whose debug info has been separated
11550 out into a separate file, leaving only a link behind.
11551 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11552 and separate_debug_objfile_backlink.
11553 (put_objfile_before): New declaration.
11554 * symfile.c: #include "filenames.h".
11555 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11556 debug info in a separate file, read that, too. Save the addrs
11557 argument, so we can use it again to read the separated debug info;
11558 syms_from_objfile modifies the table we pass it.
11559 (reread_symbols): After re-reading an objfile, call
11560 reread_separate_symbols to refresh its separate debug info
11561 objfile, if it has one.
11562 (reread_separate_symbols, find_separate_debug_file,
11563 get_debug_link_info, separate_debug_file_exists): New functions.
11564 (debug_file_directory): New global var.
11565 (_initialize_symfile): Initialize debug_file_directory, and
11566 provide the new `set debug-file-directory' command to let the user
11567 change it.
11568 * objfiles.c (free_objfile): If this objfile has its debug info in
11569 a separate objfile, free that one too. If this is itself a
11570 separate debug info objfile, clear our parent's backlink.
11571 (put_objfile_before): New function.
11572 * utils.c (gnu_debuglink_crc32): New function.
11573 * defs.h (gnu_debuglink_crc32): New declaration.
11574 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11575 * configure.in: Handle --with-separate-debug-dir config option.
11576 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11577 * acconfig.h (DEBUGDIR): New macro.
11578 * configure, aclocal.m4, config.in: Regenerated.
11579
7e8580c1
JB
115802003-01-22 Jim Blandy <jimb@redhat.com>
11581
7904e09f
JB
11582 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11583 like the old symbol_file_add, but taking new arguments: you can
11584 now pass in either a `struct section_addr_info' list to say where
11585 each section is loaded, or a `struct section_offsets' table. Pass
11586 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 11587 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
11588 with the appropriate quiescent values for the new arguments.
11589
7e8580c1
JB
11590 * symfile.c: #include "gdb_assert.h".
11591 (syms_from_objfile): Add the ability to pass in a section offset
11592 table directly, as an alternative to the section_addr_info table.
11593 Document arguments better.
11594 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11595 * symfile.h (syms_from_objfile): Update declaration.
11596 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11597 syms_from_objfile.
11598 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11599
d28f9cdf
DJ
116002003-01-22 Daniel Jacobowitz <drow@mvista.com>
11601
11602 Original patch by Tom Tromey <tromey@cygnus.com> and
11603 Jason Molenda <jmolenda@apple.com>.
11604 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11605 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11606 * NEWS: Mention profiling.
11607 * configure.in (--enable-gdbtk): Fix typo.
11608 (--enable-profiling): New. Set PROFILE_CFLAGS.
11609 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11610 Fill in function.
11611 (profiling_state): New variable.
11612 (mcleanup_wrapper): New function.
11613 (_initialize_maint): Remove NOTYET, fix call to
11614 add_setshow_boolean_cmd for "maint set profile".
11615 * configure: Regenerated.
11616
df21e465
MH
116172003-01-21 Martin M. Hunt <hunt@redhat.com>
11618
11619 * Makefile.in (install-gdbtk): Install PNG images too.
11620
73c1f219
AC
116212003-01-21 Andrew Cagney <ac131313@redhat.com>
11622
11623 * exec.c (text_start): Delete global variable.
11624 (exec_file_attach): Make text_start local to the function.
11625 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11626 * valops.c (hand_function_call): Delete code that handles
11627 BEFORE_TEXT_END and AFTER_TEXT_END.
11628 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11629 of CALL_DUMMY_LOCATION.
11630 * gdbarch.c: Regenerate.
11631 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11632 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11633 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11634 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11635 (text_end): Delete extern declaration.
11636
eb4f72c5
AC
116372003-01-21 Andrew Cagney <ac131313@redhat.com>
11638
11639 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11640 * blockframe.c (backtrace_below_main): Move to "frame.c".
11641 (frame_chain_valid): Delete check for backtrace_below_main.
11642 (_initialize_blockframe): Delete initialization, move ``set
11643 backtrace-below-main'' command to "frame.c".
11644 (do_flush_frames_sfunc): Delete function.
11645 * frame.c: Include "command.h" and "gdbcmd.h".
11646 (frame_type_from_pc): New function.
11647 (create_new_frame): Use frame_type_from_pc.
11648 (legacy_get_prev_frame): New function.
11649 (get_prev_frame): Rewrite. When an old style frame, call
11650 legacy_get_prev_frame. Otherwize, unwind the PC first.
11651 (_initialize_frame): Add ``set backtrace-below-main'' command.
11652 * Makefile.in (frame.o): Update dependencies.
11653
778ce8cc
AC
116542003-01-19 Andrew Cagney <ac131313@redhat.com>
11655
11656 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11657 DEPRECATED_REGISTERS_INFO.
11658
01c193c8
AC
116592003-01-19 Andrew Cagney <ac131313@redhat.com>
11660
11661 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11662 Maintainers'. Update `Various Maintainers'.
11663
dedc2a2b
AC
116642003-01-19 Andrew Cagney <ac131313@redhat.com>
11665
11666 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11667 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11668 Suppress actual parameters when `-'.
11669 * gdbarch.h, gdbarch.c: Regenerate.
11670
b7261c70
AC
116712003-01-19 Andrew Cagney <ac131313@redhat.com>
11672
11673 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11674 code handling dummy frames.
11675
dbe9fe58
AC
116762003-01-19 Andrew Cagney <ac131313@redhat.com>
11677
11678 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11679 (struct frame_unwind): Add field pop.
11680 * frame.h (frame_pop): Declare.
11681 * frame.c (frame_saved_regs_pop): New function.
11682 (trad_frame_unwinder): Add frame_saved_regs_pop.
11683 (frame_pop): New function.
11684 * dummy-frame.c (dummy_frame_pop): New function.
11685 (discard_innermost_dummy): New function.
11686 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11687 (dummy_frame_unwind): Add dummy_frame_pop.
11688 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11689 * valops.c (hand_function_call): Ditto.
11690 * stack.c (return_command): Ditto.
11691
570b8f7c
AC
116922003-01-18 Andrew Cagney <ac131313@redhat.com>
11693
11694 * cris-tdep.c: Fix function declaration indentation.
11695 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11696 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11697 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11698 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11699 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11700 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11701
117022003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
11703
11704 * README (Unpacking and Installation -- quick overview):
11705 Warn against ".../gdb-5.3/gdb/configure".
11706
494cca16
AC
117072003-01-18 Andrew Cagney <ac131313@redhat.com>
11708
11709 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11710 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11711 (struct frame_unwind): Declare opaque.
11712 (dummy_frame_p): Declare function.
11713 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11714 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11715 * dummy-frame.c: Include "frame-unwind.h".
11716 (dummy_frame_p): New function.
11717 (dummy_frame_unwind): New variable.
11718 * frame.c: Include "frame-unwind.h".
11719 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11720 to use the new unwind field.
11721 (set_unwind_by_pc): Delete function.
11722 (create_new_frame, get_prev_frame): Set unwind field using
11723 frame_unwind_find_by_pc.
11724 (trad_frame_unwind, trad_frame_unwinder): New variables.
11725 * frame.h (trad_frame_unwind): Declare variable.
11726 (frame_id_unwind_ftype): Delete declaration.
11727 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11728 (struct frame_unwind): Declare opaque.
11729 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11730 register_unwind with a single unwind pointer.
11731 * frame-unwind.h, frame-unwind.c: New files.
11732 * Makefile.in (SFILES): Add frame-unwind.c.
11733 (frame_unwind_h): Define.
11734 (COMMON_OBS): Add frame-unwind.o.
11735 (frame-unwind.o): Specify dependencies.
11736 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 11737
4efb68b1
AC
117382003-01-18 Andrew Cagney <ac131313@redhat.com>
11739
11740 * ada-valprint.c: Eliminate PTR.
11741 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11742 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11743 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11744 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11745 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11746 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11747 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 11748
a84d24ee
AC
117492003-01-17 Andrew Cagney <ac131313@redhat.com>
11750
762f08a3
AC
11751 * main.c (captured_main): Don't use PTR.
11752 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11753 * gdbtypes.c (lookup_primitive_typename): Ditto.
11754 (lookup_struct_elt_type): Ditto.
11755 * f-valprint.c (info_common_command): Ditto.
11756 (list_all_visible_commons): Ditto.
11757 * jv-typeprint.c (java_type_print_base): Ditto.
11758
a84d24ee
AC
11759 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11760 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11761 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11762 i386-interix-nat.c and i386-interix-tdep.c. Rename
11763 m68klinux-nat.c and m68klinux-tdep.c. Rename
11764 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11765 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11766 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11767 * main.c (captured_main): Use xfree, not free.
11768
c170fb60
AC
117692003-01-16 Andrew Cagney <ac131313@redhat.com>
11770
11771 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11772 ID back using a parameter.
11773 * frame.c (frame_id_unwind): Update call.
11774 (frame_saved_regs_id_unwind): Update.
11775 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11776 * dummy-frame.h (struct frame_id): Add opaque declaration.
11777 (dummy_frame_id_unwind): Update declaration.
11778
867f3898
AC
117792003-01-15 Andrew Cagney <ac131313@redhat.com>
11780
11781 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11782
40622be8 117832003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 11784
40622be8 11785 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 11786
ae66c1fc
EZ
117872003-01-14 Elena Zannoni <ezannoni@redhat.com>
11788
997b089a 11789 Fix PR gdb/898
ae66c1fc
EZ
11790 * breakpoint.c (until_break_command): Add new argument. Use it to
11791 decide whether to stop only at the current frame or not.
11792 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 11793 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
11794 call.
11795 (advance_command): New function.
11796 (_initialize_infcmd): Update help string for 'until' command.
11797 Add new 'advance' command.
11798
a04257e6
DC
117992003-01-14 David Carlton <carlton@math.stanford.edu>
11800
11801 * linespec.c (decode_line_1): Normalize comments.
11802 (set_flags): Ditto.
11803 (locate_first_half): Ditto.
11804 (decode_compound): Ditto.
11805 (symtab_from_filename): Ditto.
11806 (decode_all_digits): Ditto.
11807 (decode_dollar): Ditto.
11808 (find_methods): Ditto.
11809 (find_toplevel_char): Ditto.
11810
1bac305b
AC
118112003-01-13 Andrew Cagney <ac131313@redhat.com>
11812
11813 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11814 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11815 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11816 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11817 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11818 * language.c, language.h, m32r-tdep.c: Update copyright.
11819 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11820 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11821 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11822 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11823 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11824 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11825
25caa7a8
EZ
118262003-01-13 Elena Zannoni <ezannoni@redhat.com>
11827
11828 * stabsread.h (process_later, resolve_cfront_continuation):
11829 Obsolete.
11830 Update copyright years.
11831 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11832 Update copyright year.
11833 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 11834 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
11835 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11836 Update copyright year.
11837 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11838 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11839 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11840 (parse_partial_symbols): Obsolete cfront support.
11841 * stabsread.c
11842 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11843 macros.
11844 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11845 read_cfront_baseclasses, read_cfront_member_functions,
11846 resolve_cfront_continuation,read_cfront_static_fields,
11847 copy_cfront_struct_fields): Obsolete functions.
11848 (define_symbol, read_one_struct_field): Obsolete cfront support.
11849 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11850 Update Copyright year.
11851
7789c6f5
EZ
118522003-01-13 Elena Zannoni <ezannoni@redhat.com>
11853
11854 * stack.c (print_frame_info, print_stack_frame_base_stub,
11855 print_stack_frame_base, show_and_print_stack_frame_stub,
11856 show_and_print_stack_frame, print_only_stack_frame_stub,
11857 print_only_stack_frame): Delete functions.
11858 (print_stack_frame_stub): Call print_frame_info instead of
11859 print_frame_info_base.
11860 (print_frame_info_base): Rename to print_frame_info.
11861 (backtrace_command_1): Call print_frame_info, instead of
11862 print_frame_info_base.
11863 (current_frame_command): Call print_stack_frame, instead of
11864 print_only_stack_frame.
11865 (frame_command): Call print_stack_frame, instead of
11866 show_and_print_stack_frame.
11867 (up_command): Ditto.
11868 (down_command): Ditto.
11869 * frame.h (print_only_stack_frame): Delete prototype.
11870 * infrun.c (normal_stop): Call print_stack_frame, instead of
11871 show_and_print_stack_frame.
11872 * thread.c (info_threads_command): Call print_stack_frame, instead
11873 of print_only_stack_frame.
11874
3f5a3016
AC
118752003-01-13 Andrew Cagney <ac131313@redhat.com>
11876
d99ba314
AC
11877 * README (Graphical interface to GDB): Update URL. Point at
11878 gdb/links/.
11879
3f5a3016
AC
11880 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11881 version match.
11882
083ae935
DJ
118832003-01-13 Daniel Jacobowitz <drow@mvista.com>
11884
11885 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11886 lines.
11887
5365276c
DJ
118882003-01-13 Daniel Jacobowitz <drow@mvista.com>
11889
11890 * thread-db.c (attach_thread): Prototype.
11891 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11892 thread information (ti), and valid flags (th_valid, ti_valid).
11893 (attach_thread): Move target_pid_to_str call to after the thread
11894 is added to GDB's list. Initialize the cache.
11895 (thread_get_info_callback, thread_db_map_id2thr)
11896 (thread_db_get_info): New functions.
11897 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11898 (thread_db_store_registers, thread_db_thread_alive)
11899 (thread_db_get_thread_local_address): Use them.
11900 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11901 of calling error() for threads in unknown state.
11902
11903 (clear_lwpid_callback): New function.
11904 (thread_db_resume): Use it to clear the cache.
11905
9fc30b6b
DJ
119062003-01-13 Daniel Jacobowitz <drow@mvista.com>
11907
11908 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11909 (resume_callback): Remove dead code.
11910
8f871025
AC
119112003-01-13 Andrew Cagney <ac131313@redhat.com>
11912
11913 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11914 predicate.
11915 * gdbarch.h, gdbarch.c: Regenerate.
11916 * stack.c (frame_info): Only initialize the saved registers when
11917 FRAME_INIT_SAVED_REGS_P.
11918 * frame.c (frame_saved_regs_register_unwind): Assert
11919 FRAME_INIT_SAVED_REGS_P.
11920 (deprecated_generic_get_saved_register): Ditto.
11921
3f565f1e
DJ
119222003-01-13 Daniel Jacobowitz <drow@mvista.com>
11923
11924 * source.c (openp): Squelch warning about "filename".
11925
072b1022
DJ
119262003-01-13 Daniel Jacobowitz <drow@mvista.com>
11927
11928 * source.c (openp): If the file does not exist don't necessarily
11929 search the path.
11930
973ccf8b
DJ
119312003-01-13 Daniel Jacobowitz <drow@mvista.com>
11932
11933 Fix PR gdb/872.
11934 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11935 (integer_types_same_name_p): New function.
11936 (rank_one_type): Use it.
11937 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11938
030292b7
DJ
119392003-01-13 Daniel Jacobowitz <drow@mvista.com>
11940
11941 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11942 variables.
11943 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11944 * configure.in: Add --with-sysroot.
11945 * configure: Regenerated.
11946 * main.c (gdb_sysroot): New variable.
11947 (captured_main): Initialize gdb_sysroot.
11948 * defs.h (gdb_sysroot): New extern declaration.
11949 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11950
afb5d334
MC
119512003-01-12 Michael Chastain <mec@shout.net>
11952
11953 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11954
751ceeb4
MC
119552003-01-12 Michael Chastain <mec@shout.net>
11956
11957 * top.c (print_gdb_version): Bump copyright year to 2003.
11958
94cd26f8
DC
119592003-01-12 David Carlton <carlton@bactrian.org>
11960
11961 * linespec.c (symtab_from_filename): Rename variable 's' to
11962 'file_symtab'.
11963
1ce79225
AC
119642003-01-12 Andrew Cagney <ac131313@redhat.com>
11965
11966 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11967 dummy frame.
11968 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11969
fa1fd571
AC
119702003-01-12 Andrew Cagney <ac131313@redhat.com>
11971
11972 * d10v-tdep.c: Include "gdb_assert.h".
11973 (d10v_store_return_value): Rewrite to match current interface.
11974 (d10v_extract_struct_value_address): Ditto.
11975 (d10v_extract_return_value): Ditto.
11976 (d10v_gdbarch_init): Set store_restore_value,
11977 extract_struct_value_address and extract_return_value.
11978
68b8d23e
JB
119792003-01-12 J. Brobecker <brobecker@gnat.com>
11980
11981 * hpread.c (set_namestring): New procedure replacing the
11982 SET_NAMESTRING macro.
11983 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11984 by calls to set_namestring.
11985
119862003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
11987
11988 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11989 a compilation warning.
11990 (hpread_process_one_debug_symbol): Likewise.
11991
88d262ca
DC
119922003-01-10 David Carlton <carlton@math.stanford.edu>
11993
11994 * linespec.c (decode_line_1): Rename variable 's' to
11995 'file_symtab'.
11996 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11997 (decode_dollar): Ditto.
11998 (decode_variable): Ditto.
11999 (symbol_found): Ditto.
12000
86669319
MC
120012003-01-09 Michael Chastain <mec@shout.net>
12002
12003 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12004
616a9dc4
CV
120052003-01-07 Corinna Vinschen <vinschen@redhat.com>
12006
12007 * win32-nat.c (set_process_privilege): New function.
12008 (child_attach): Call set_process_privilege() to enable the
12009 SE_DEBUG_NAME user privilege if available in process token.
12010
3269bcfa
JB
120112003-01-10 J. Brobecker <brobecker@gnat.com>
12012
12013 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12014 compilation error in the previous revision.
12015
2b0ee454
DC
120162003-01-09 David Carlton <carlton@math.stanford.edu>
12017
12018 * linespec.c: Update copyright.
12019
b3ba1b44
DJ
120202003-01-09 Daniel Jacobowitz <drow@mvista.com>
12021
12022 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12023 than inferior_ptid.
12024 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12025
4ef3f3be
AC
120262003-01-09 Andrew Cagney <ac131313@redhat.com>
12027
479ab5a0
AC
12028 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12029 Update comments.
12030 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12031 (frame_saved_regs_zalloc): Update.
12032 (frame_saved_regs_register_unwind): Update.
12033 (create_new_frame): Update.
12034 (get_prev_frame): Update.
12035 (frame_extra_info_zalloc): Update.
12036 (deprecated_get_frame_saved_regs): Update.
12037 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12038 * cris-tdep.c: Update comment.
12039
bde58177
AC
12040 * somsolib.h: Fix function indentation.
12041 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12042 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12043 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12044 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12045 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12046
4ef3f3be
AC
12047 * infrun.c (follow_fork): Use ISO C definition.
12048 * expprint.c (print_subexp): Use xfree instead of free.
12049 * charset.c: Include "gdb_string.h" instead of <string.h>.
12050 (register_iconv_charsets): Use ISO C definition.
12051 (host_charset, target_charset): Ditto.
12052 * Makefile.in (charset.o): Update dependencies.
12053 (mi-cmd-env.o): Update dependencies.
12054
1c615f7a
AC
120552003-01-08 Andrew Cagney <cagney@redhat.com>
12056
12057 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12058 get_frame_base.
12059
c9a1dc08
AC
120602003-01-08 Andrew Cagney <ac131313@redhat.com>
12061
12062 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12063 build directories. Save edited gdb output in Mbuild.log. If a
12064 build fails, remove any final GDB executable.
12065
dbad9d94
AC
120662003-01-08 Andrew Cagney <ac131313@redhat.com>
12067
12068 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12069 replacing hex constants with function names and stripping leading
12070 file name directory prefixes.
12071
8d357cca
AC
120722003-01-08 Andrew Cagney <cagney@redhat.com>
12073
12074 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12075 get_frame_base.
12076
bca02a8a
DC
120772003-01-08 David Carlton <carlton@math.stanford.edu>
12078
12079 * linespec.c (decode_line_1): Move code into decode_variable.
12080 (decode_variable): New function.
12081
7f8ab3a0
AC
120822003-01-08 Andrew Cagney <ac131313@redhat.com>
12083
12084 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12085
7b5849cc
AC
120862003-01-08 Andrew Cagney <cagney@redhat.com>
12087
12088 * cris-tdep.c (cris_frame_init_saved_regs): Use
12089 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12090 saved_regs buffer.
12091 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12092 (sh64_nofp_frame_init_saved_regs): Ditto.
12093 (sh_fp_frame_init_saved_regs): Ditto.
12094 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12095 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12096 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12097 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12098
72a5efb3
DJ
120992003-01-08 Daniel Jacobowitz <drow@mvista.com>
12100
12101 * minsyms.c (lookup_minimal_symbol): Update comment.
12102 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12103 (lookup_minimal_symbol_solib_trampoline): Likewise.
12104
11c02a10
AC
121052003-01-08 Andrew Cagney <cagney@redhat.com>
12106
aab3ea25
AC
12107 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12108 frame_relative_level.
12109
da50a4b7
AC
12110 * alpha-tdep.c: Use get_frame_extra_info.
12111 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12112 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12113 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12114 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12115
11c02a10
AC
12116 * alpha-tdep.c: Use get_next_frame.
12117 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12118 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12119 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12120 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12121 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12122 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12123 * xstormy16-tdep.c: Ditto.
8ffd9b1b 12124
1e2330ba
AC
121252003-01-07 Andrew Cagney <cagney@redhat.com>
12126
12127 * alpha-tdep.c: Use get_frame_base.
12128 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12129 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12130 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12131 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12132 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12133 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12134 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12135 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 12136
2d75187b
AC
121372003-01-07 Andrew Cagney <cagney@redhat.com>
12138
12139 * frame.c (deprecated_get_frame_context): New function.
12140 (deprecated_set_frame_context): New function.
12141 * frame.h (deprecated_get_frame_context): Declare.
12142 (deprecated_set_frame_context): Declare.
12143 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12144 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 12145
483d36b2
AC
121462003-01-07 Andrew Cagney <cagney@redhat.com>
12147
12148 * frame.c (deprecated_set_frame_next_hack): New function.
12149 (deprecated_set_frame_prev_hack): New function.
12150 * frame.h (deprecated_set_frame_next_hack): Declare.
12151 (deprecated_set_frame_prev_hack): Declare.
12152 * mcore-tdep.c (analyze_dummy_frame): Use
12153 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12154 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12155
14e91ac5
DC
121562003-01-07 David Carlton <carlton@math.stanford.edu>
12157
12158 * linespec.c (decode_line_1): Move code into decode_dollar.
12159 (decode_dollar): New function.
12160
b0c6b05c
AC
121612003-01-07 Andrew Cagney <cagney@redhat.com>
12162
12163 * arm-tdep.c (arm_init_extra_frame_info): Use
12164 deprecated_update_frame_base_hack.
12165 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12166 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12167 (fix_frame_pointer): Ditto.
12168 (mn10300_analyze_prologue): Ditto.
12169
a00a19e9
AC
121702003-01-07 Andrew Cagney <cagney@redhat.com>
12171
12172 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12173 extra_info using frame_extra_info_zalloc.
12174 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12175 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12176 (sh64_init_extra_frame_info): Ditto.
12177 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12178 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12179 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12180 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12181 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12182 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12183 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12184 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12185 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12186 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12187 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12188 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12189
12190 * mn10300-tdep.c (analyze_dummy_frame): Use
12191 deprecated_set_frame_extra_info_hack.
12192 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12193
1fb4c65b
JB
121942003-01-07 J. Brobecker <brobecker@gnat.com>
12195
12196 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12197 class is not scText. These do not define "real" procedures.
12198 (parse_partial_symbols): Likewise.
12199
9fe7d6bf
MS
122002003-01-06 Michael Snyder <msnyder@redhat.com>
12201
12202 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12203
f6c609c4
AC
122042003-01-06 Andrew Cagney <ac131313@redhat.com>
12205
12206 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12207 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12208 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12209 deprecated_frame_xmalloc_with_cleanup.
12210 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12211 deprecated_frame_xmalloc.
12212 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12213 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12214
d995ff4b
AC
122152003-01-06 Andrew Cagney <cagney@redhat.com>
12216
84dc46cb
AC
12217 * x86-64-linux-tdep.c: Include "osabi.h".
12218 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12219
d995ff4b
AC
12220 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12221
66140c26
AC
122222003-01-06 Andrew Cagney <cagney@redhat.com>
12223
12224 * MAINTAINERS (Target Instruction Set Architectures): Update
12225 arm-elf. Can be built with -Werror, has been multiarched.
12226
12227 * value.h (unpack_long): Make buffer parameter constant.
12228 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12229 * scm-lang.h (scm_parse): Ditto.
12230 * defs.h (extract_typed_address, extract_address): Ditto.
12231 (extract_long_unsigned_integer): Ditto.
12232 * inferior.h (unsigned_pointer_to_address): Ditto.
12233 (signed_pointer_to_address): Ditto.
12234 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12235 * gdbarch.h, gdbarch.c: Regenerate.
12236 * findvar.c (extract_long_unsigned_integer): Update.
12237 (extract_address): Update.
12238 (extract_typed_address): Update.
12239 (unsigned_pointer_to_address): Update.
12240 * values.c (unpack_long): Update.
12241 (unpack_double): Update.
12242 (unpack_pointer): Update.
12243 (unpack_field_as_long): Update.
12244 * d10v-tdep.c (d10v_pointer_to_address): Update.
12245 * avr-tdep.c (avr_pointer_to_address): Update.
12246 * scm-lang.c (scm_unpack): Update.
12247 * findvar.c (signed_pointer_to_address): Update.
12248
b089b3da
ML
122492003-01-06 Michal Ludvig <mludvig@suse.cz>
12250
8ffd9b1b 12251 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
12252 since it is in i386-tdep.c.
12253
aff87235
JB
122542003-01-06 J. Brobecker <brobecker@gnat.com>
12255
12256 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12257 failure introduced in the previous change.
12258
34f5e845
MC
122592003-01-05 Michael Chastain <mec@shout.net>
12260
12261 * README: Remove references to deleted remote-*.c files:
12262 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12263 remote-nrom.c, remote-os9k.c, remote-udi.c.
12264
28bcfd30
MK
122652003-01-05 Mark Kettenis <kettenis@gnu.org>
12266
12267 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12268 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12269 i386_get_longjmp_target.
12270
15a5b3ee
AC
122712003-01-05 Andrew Cagney <ac131313@redhat.com>
12272
12273 * arm-tdep.c (prologue_cache): Change to a pointer.
12274 (_initialize_arm_tdep): Allocate prologue_cache.
12275 (check_prologue_cache): Update.
12276 (save_prologue_cache): Update.
12277 (arm_gdbarch_init): Update.
12278
c263362b
DJ
122792003-01-04 Daniel Jacobowitz <drow@mvista.com>
12280
12281 * stabsread.c (update_method_name_from_physname): Call complaint()
12282 instead of error.
12283
51603483
DJ
122842003-01-04 Daniel Jacobowitz <drow@mvista.com>
12285
12286 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12287 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12288 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12289
12290 * blockframe.c: Include "gdbcmd.h" and "command.h".
12291 (backtrace_below_main): New variable.
12292 (file_frame_chain_valid, func_frame_chain_valid)
12293 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12294 (generic_func_frame_chain_valid): Remove functions.
12295 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12296 (_initialize_blockframe): New function.
12297 * Makefile.in (blockframe.o): Update dependencies.
12298 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12299 comment. Call frame_chain_valid ().
12300 * frame.h: Remove old prototypes. Add prototype for
12301 frame_chain_valid and update comments to match.
12302 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12303 Remove old comment.
12304 * gdbarch.h: Regenerated.
12305 * gdbarch.c: Regenerated.
12306
12307 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12308 set_gdbarch_frame_chain_valid.
12309 * avr-tdep.c (avr_gdbarch_init): Likewise.
12310 * cris-tdep.c (cris_gdbarch_init): Likewise.
12311 * frv-tdep.c (frv_gdbarch_init): Likewise.
12312 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12313 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12314 (i386_nw_init_abi): Likewise.
12315 (i386_gdbarch_init): Likewise.
12316 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12317 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12318 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12319 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12320 * mips-tdep.c (mips_gdbarch_init): Likewise.
12321 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12322 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12323 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12324 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12325 * s390-tdep.c (s390_gdbarch_init): Likewise.
12326 * sh-tdep.c (sh_gdbarch_init): Likewise.
12327 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12328 * v850-tdep.c (v850_gdbarch_init): Likewise.
12329 * vax-tdep.c (vax_gdbarch_init): Likewise.
12330 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12331
12332 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12333 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12334 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12335 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12336 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12337 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12338 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12339 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12340
b00a8037
DJ
123412002-01-04 Daniel Jacobowitz <drow@mvista.com>
12342
12343 * Makefile.in (acconfig_h): Remove incorrect macro.
12344 (config_h): Define.
12345 (osabi.o): Update dependencies.
12346 * configure.tgt: Set gdb_osabi based on target triplet.
12347 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12348 * configure: Regenerated.
12349 * config.in: Regenerated.
12350 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12351 (GDB_OSABI_DEFAULT): Define if not already defined.
12352 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12353 (set_osabi_string): New variables.
12354 (gdbarch_register_osabi): Add new OS ABI to
12355 gdb_osabi_available_names.
12356 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12357 (set_osabi, show_osabi): New functions.
12358 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12359
4be87837
DJ
123602003-01-04 Daniel Jacobowitz <drow@mvista.com>
12361
12362 * arch-utils.c (gdbarch_info_init): Set osabi to
12363 GDB_OSABI_UNINITIALIZED.
12364 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12365 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12366 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12367 * gdbarch.c: Regenerated.
12368 * gdbarch.h: Regenerated.
12369 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12370 there's no BFD.
12371 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12372 * osabi.h (enum gdb_osabi): Move to defs.h.
12373 (gdbarch_init_osabi): Update prototype.
12374 * defs.h (enum gdb_osabi): Moved here.
12375 * Makefile.in: Update dependencies.
12376
12377 * alpha-tdep.h: Don't include "osabi.h".
12378 (struct gdbarch_tdep): Remove osabi member.
12379 * alpha-tdep.c: Include "osabi.h".
12380 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12381 iterate over arches. Update call to gdbarch_init_osabi.
12382 (alpha_dump_tdep): Don't dump osabi.
12383 * alpha-linux-tdep.c: Include "osabi.h".
12384 * alpha-osf1-tdep.c: Include "osabi.h".
12385 * alphafbsd-tdep.c: Include "osabi.h".
12386 * alphanbsd-tdep.c: Include "osabi.h".
12387
12388 * arm-tdep.h: Don't include "osabi.h".
12389 (struct gdbarch_tdep): Remove osabi member.
12390 * arm-tdep.c: Include "osabi.h".
12391 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12392 iterate over arches. Update call to gdbarch_init_osabi.
12393 (arm_dump_tdep): Don't dump osabi.
12394 * arm-linux-tdep.c: Include "osabi.h".
12395 * armnbsd-tdep.c: Include "osabi.h".
12396
12397 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12398 Update call to gdbarch_init_osabi.
12399
12400 * i386-tdep.h: Don't include "osabi.h".
12401 (struct gdbarch_tdep): Remove osabi member.
12402 * i386-tdep.c: Include "osabi.h".
12403 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12404 iterate over arches. Update call to gdbarch_init_osabi.
12405 (i386_dump_tdep): Don't dump osabi.
12406 * i386-linux-tdep.c: Include "osabi.h".
12407 * i386-sol2-tdep.c: Include "osabi.h".
12408 * i386bsd-tdep.c: Include "osabi.h".
12409 * i386gnu-tdep.c: Include "osabi.h".
12410 * i386ly-tdep.c: Include "osabi.h".
12411 * i386nbsd-tdep.c: Include "osabi.h".
12412 * i386obsd-tdep.c: Include "osabi.h".
12413
12414 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12415 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12416 check osabi when iterating over arches. Update call to
12417 gdbarch_init_osabi.
12418 (mips_dump_tdep): Don't dump osabi.
12419
12420 * ns32k-tdep.h: Don't include "osabi.h".
12421 (struct gdbarch_tdep): Remove.
12422 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12423 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12424 allocate tdep. Update call to gdbarch_init_osabi.
12425 (ns32k_dump_tdep): Remove.
12426 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12427 * ns32knbsd-tdep.c: Include "osabi.h".
12428
12429 * ppc-tdep.h: Don't include "osabi.h".
12430 (struct gdbarch_tdep): Remove osabi member.
12431 * rs6000-tdep.c: Include "osabi.h".
12432 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12433 osabi when iterating over arches. Update call to
12434 gdbarch_init_osabi.
12435 (rs6000_dump_tdep): Don't dump osabi.
12436 * ppc-linux-tdep.c: Include "osabi.h".
12437 * ppcnbsd-tdep.c: Include "osabi.h".
12438
12439 * sh-tdep.h: Don't include "osabi.h".
12440 (struct gdbarch_tdep): Remove osabi member.
12441 * sh-tdep.c: Include "osabi.h".
12442 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12443 iterate over arches. Update call to gdbarch_init_osabi.
12444 (sh_dump_tdep): Don't dump osabi.
12445 * shnbsd-tdep.c: Include "osabi.h".
12446
12447 * sparc-tdep.c: Include "osabi.h".
12448 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12449 iterate over arches. Update call to gdbarch_init_osabi.
12450 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12451 tdep structure.
12452
12453 * vax-tdep.h: Don't include "osabi.h".
12454 (struct gdbarch_tdep): Remove.
12455 * vax-tdep.c: Include "osabi.h".
12456 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12457 iterate over arches. Don't allocate tdep. Update call
12458 to gdbarch_init_osabi.
12459 (vax_dump_tdep): Remove.
12460 (_initialize_vax_tdep): Update call to gdbarch_register.
12461
a881cf8e
DJ
124622003-01-04 Daniel Jacobowitz <drow@mvista.com>
12463
12464 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12465 entirely.
12466 (breakpoint_re_set_one): Don't fetch the value for a disabled
12467 watchpoint.
12468
1e698235
DJ
124692003-01-04 Daniel Jacobowitz <drow@mvista.com>
12470
12471 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12472 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12473 (COERCE_FLOAT_TO_DOUBLE): Remove.
12474 * gdbarch.c: Regenerate.
12475 * gdbarch.h: Regenerate.
12476 * Makefile.in: Remove value_h from gdbarch_h.
12477 * valops.c (coerce_float_to_double): New variable.
12478 (default_coerce_float_to_double): Remove.
12479 (standard_coerce_float_to_double): Remove.
12480 (value_arg_coerce): Use coerce_float_to_double.
12481 (_initialize_valops): Add "set coerce-float-to-double".
12482 * value.h (default_coerce_float_to_double): Remove prototype.
12483 (standard_coerce_float_to_double): Remove prototype.
12484
12485 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12486 prototyped.
12487 * mdebugread.c (parse_symbol): Likewise.
12488 * stabsread.c (define_symbol): Mark all functions as prototyped.
12489
12490 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12491 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12492 set_gdbarch_coerce_float_to_double.
12493 * arm-tdep.c (arm_gdbarch_init): Likewise.
12494 * frv-tdep.c (frv_gdbarch_init): Likewise.
12495 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12496 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12497 * mips-tdep.c (mips_gdbarch_init): Likewise.
12498 (mips_coerce_float_to_double): Remove.
12499 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12500 (rs6000_coerce_float_to_double): Remove.
12501 * s390-tdep.c (s390_gdbarch_init): Likewise.
12502 * sh-tdep.c (sh_gdbarch_init): Likewise.
12503 (sh_coerce_float_to_double): Remove.
12504 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12505 (sparc_coerce_float_to_double): Remove.
12506 * v850-tdep.c (v850_gdbarch_init): Likewise.
12507 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12508 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12509 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12510 (hppa_coerce_float_to_double): Remove prototype.
12511 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12512
f436a26a
DJ
125132003-01-04 Daniel Jacobowitz <drow@mvista.com>
12514
12515 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12516
248f8055
DJ
125172003-01-04 Daniel Jacobowitz <drow@mvista.com>
12518
12519 Suggested by Stewart Brown <sb24@avaya.com>:
12520 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12521 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12522 (c_type_print_varspec_suffix): Likewise.
12523
72cfdc76
MK
125242003-01-04 Mark Kettenis <kettenis@gnu.org>
12525
bfd260bb
MK
12526 * configure.in: Don't set and AC_SUBST SUBDIRS.
12527 * configure: Regenerated.
12528
72cfdc76
MK
12529 * configure.in: Remove code dealing with shared libraries.
12530 * Makefile.in: Remove HLDFLAGS and HLDENV.
12531 * configure: Regenerated.
12532
c8b8a898
AC
125332003-01-04 Andrew Cagney <ac131313@redhat.com>
12534
12535 * frame.c (deprecated_frame_xmalloc): New function.
12536 (deprecated_set_frame_saved_regs_hack): New function.
12537 (deprecated_set_frame_extra_info_hack): New function.
12538 * frame.h (deprecated_frame_xmalloc): Declare.
12539 (deprecated_set_frame_saved_regs_hack): Declare.
12540 (deprecated_set_frame_extra_info_hack): Declare.
12541
14abd0fb
MK
125422003-01-04 Mark Kettenis <kettenis@gnu.org>
12543
8ee53726
MK
12544 * configure.in: Move code that provides the --enable-gdbtk option
12545 right after the code that handles the --enable-tui option, and
12546 polish it somewhat.
12547 * configure: Regenerated.
12548
14abd0fb
MK
12549 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12550 AC_CHECK_FUNCS and remove the old check for pread64.
12551 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12552 * acconfig.h (_GNU_SOURCE): Add.
12553 (HAVE_PREAD64): Remove.
12554 * configure, aclocal.m4, config.in: Regenerated.
12555
b2fb4676
AC
125562003-01-03 Andrew Cagney <ac131313@redhat.com>
12557
12558 * alpha-tdep.c: Use get_frame_saved_regs.
12559 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12560 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12561 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12562 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12563 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12564
8dcde887
MK
125652003-01-03 Mark Kettenis <kettenis@gnu.org>
12566
12567 * configure.in: Remove all use of the SUBDIRS variable; add
12568 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12569 code providing the --enable-multi-ice option, and move it right in
12570 front of the code that checks whether gdbserver is supported.
12571 Polish that too.
12572 * configure: Regenerated.
12573 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12574 @SUBDIRS@.
12575
8ccd593b
AC
125762003-01-03 Andrew Cagney <cagney@redhat.com>
12577
12578 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12579 * avr-tdep.c, cris-tdep.c: Ditto.
12580 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12581 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 12582
91151a06
MK
125832003-01-03 Mark Kettenis <kettenis@gnu.org>
12584
12585 * configure.in: Remove --enable-netrom option.
12586 * configure: Regenerated.
12587
8fe84d01
MK
125882003-01-03 Mark Kettenis <kettenis@gnu.org>
12589
12590 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12591 declaration for `struct re_pattern_buffer' instead.
12592 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12593
f0394be6
JB
125942003-01-03 J. Brobecker <brobecker@gnat.com>
12595
12596 * mdebugread.c (parse_symbol): Count until the stEnd matching
12597 the structure name.
12598
27e9bf90
MK
125992003-01-02 Mark Kettenis <kettenis@gnu.org>
12600
93d331ba
MK
12601 * configure.in: Remove --with-cpu option.
12602 subscripts. Remove evil changequotes here.
12603 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12604 * config.in, configure: Regenerated.
8ffd9b1b 12605
27e9bf90
MK
12606 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12607 * configure.in: Cleanup section that sources GDB and BFD configure
12608 subscripts. Remove evil changequotes here.
12609 * config.in, configure: Regenerated.
12610
50abf9e5
AC
126112003-01-02 Andrew Cagney <ac131313@redhat.com>
12612
12613 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12614 frame accessor methods.
12615 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12616 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12617 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12618 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12619 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12620 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12621 * z8k-tdep.c: Ditto.
8ffd9b1b 12622
287c1a40
MK
126232003-01-02 Mark Kettenis <kettenis@gnu.org>
12624
f5dbc56d
MK
12625 * configure.in: Remove UI_OUT configuration code.
12626 * ada-lang.c: Update assuming UI_OUT is always true.
12627 * Makefile.in (UIOUT_CFLAGS): Remove.
12628 * configure: Regenerated.
12629 * TODO: Remove blurb about elimination of -DUI_OUT.
12630
627af7ea
MK
12631 * configure.in: Move code that provides the --enable-gdbcli,
12632 --enable-gdbmi options right before the code that handles the
12633 --enable-tui option. Polish a bit.
12634 * configure: Regenerated.
12635
06825bd1
MK
12636 * configure.in: Rewrite check for GNU regex and the
12637 --without-included regex option, and move it into the "Checks for
12638 library functions" section. This makes us use the system regex
12639 again by default on systems with version 2 of the GNU C library.
12640 This was apparently broken.
12641 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12642 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12643 * config.in, configure: Regenerated.
12644
287c1a40
MK
12645 * configure.in: Move code that provides the --enable-tui option
12646 before the "Checks for libraries" section. Polish the code
12647 somewhat and set need_curses to yes if we build the TUI. Rewrite
12648 code that looks for a library providing termcap functionality to
12649 match more closely what's done in the Readline library, and move
12650 it into to the "Checks for libraries" section.
12651 * configure: Regenerated.
12652 * Makefile.in (TERMCAP): Remove variable.
12653 * config/i386/go32.mh (TERMCAP): Remove variable.
12654
684e56bf
AC
126552003-01-02 Andrew Cagney <ac131313@redhat.com>
12656
12657 * MAINTAINERS: Mention gdb_mbuild.sh.
12658 * gdb_mbuild.sh: Rewrite.
12659
e1ea1d75
MK
126602003-01-02 Mark Kettenis <kettenis@gnu.org>
12661
12662 * configure.in: Fix typo in last change.
12663 * config.in, configure: Regenerated.
12664
1b831c93
AC
126652003-01-02 Andrew Cagney <ac131313@redhat.com>
12666
12667 * valarith.c (value_binop): Delete obsolete code and comments.
12668 * configure.host: Ditto.
12669 * buildsym.h (make_blockvector): Ditto.
12670 * buildsym.c (make_blockvector): Ditto.
12671 * defs.h (enum language): Ditto.
12672 (chill_demangle): Ditto.
12673 * elfread.c (elf_symtab_read): Ditto.
12674 * dwarfread.c (CHILL_PRODUCER): Ditto.
12675 (set_cu_language): Ditto.
12676 (handle_producer): Ditto.
12677 * expprint.c (print_subexp): Ditto.
12678 * gdbtypes.c (chill_varying_type): Ditto.
12679 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12680 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12681 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12682 (chill_varying_type): Ditto.
12683 * language.h (_LANG_chill): Ditto.
12684 * language.c (binop_result_type, integral_type): Ditto.
12685 (character_type, string_type, structured_type): Ditto.
12686 (lang_bool_type, binop_type_check): Ditto.
12687 * stabsread.h (os9k_stabs): Ditto.
12688 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12689 (define_symbol, read_type, read_struct_fields): Ditto.
12690 (read_array_type, read_enum_type, read_huge_number): Ditto.
12691 (read_range_type, start_stabs): Ditto.
12692 * symfile.c (init_filename_language_table): Ditto.
12693 (add_psymbol_with_dem_name_to_list): Ditto.
12694 * symtab.c (symbol_init_language_specific): Ditto.
12695 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12696 * symtab.h (struct general_symbol_info): Ditto.
12697 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12698 * typeprint.c (typedef_print): Ditto.
12699 * utils.c (fprintf_symbol_filtered): Ditto.
12700 * valops.c (value_cast, search_struct_field, value_slice): Delete
12701 obsolete code.
12702 (varying_to_slice): Delete function.
12703 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12704 (varying_to_slice): Delete declaration.
12705 * MAINTAINERS: Update.
12706
8bb2c122
MK
127072003-01-02 Mark Kettenis <kettenis@gnu.org>
12708
97bf5e38
MK
12709 * configure.in: Reorganize "Checks for library functions section"
12710 a bit. Remove check for `btowc' and `isascii' functions.
12711 * configure: Regenerated.
12712
5ee754fc
MK
12713 * acconfig.h (_MSE_INT_H): Remove.
12714 * configure.in: Create "Checks for header files" section, and move
12715 appropriate tests there. Don't check for objlist.h, wchar.h,
12716 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12717 misdetection fix. Also add "Checks for types", "Checks for
12718 compiler characteristics" and "Checks for library functions"
12719 sections.
12720 * config.in, configure: Regenerated.
12721
8bb2c122
MK
12722 * configure.in: Create "Checks for programs" section, and move
12723 appropriate tests there.
12724
9a156167
MK
127252003-01-01 Mark Kettenis <kettenis@gnu.org>
12726
12727 * configure.in: Create "Checks for libraries" section, and move
12728 appropriate tests there. Cleanup check for wctype in libw. Use
12729 AC_SEARCH_LIBS to see whether we need libsocket.
12730 * configure: Regenerated.
12731
a80e2bcb 12732For older changes see ChangeLog-2002
c906108c
SS
12733\f
12734Local Variables:
12735mode: change-log
12736left-margin: 8
12737fill-column: 74
12738version-control: never
12739End:
This page took 1.036254 seconds and 4 git commands to generate.